Merge in from trunk r68684 - r69046
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.3.
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.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 CFLAGS_VISIBILITY
700 CXXFLAGS_VISIBILITY
701 LIBICONV
702 GXX_VERSION
703 SDL_CONFIG
704 SDL_CFLAGS
705 SDL_LIBS
706 GTKPRINT_CFLAGS
707 GTKPRINT_LIBS
708 LIBGNOMEPRINTUI_CFLAGS
709 LIBGNOMEPRINTUI_LIBS
710 GNOMEVFS_CFLAGS
711 GNOMEVFS_LIBS
712 HILDON_CFLAGS
713 HILDON_LIBS
714 HILDON2_CFLAGS
715 HILDON2_LIBS
716 PYTHON
717 COND_PYTHON
718 CAIRO_CFLAGS
719 CAIRO_LIBS
720 GST_CFLAGS
721 GST_LIBS
722 ALL_WX_LIBS
723 BUILT_WX_LIBS
724 STD_BASE_LIBS
725 STD_GUI_LIBS
726 wxUSE_ZLIB
727 wxUSE_REGEX
728 wxUSE_EXPAT
729 wxUSE_LIBJPEG
730 wxUSE_LIBPNG
731 wxUSE_LIBTIFF
732 VENDOR
733 OFFICIAL_BUILD
734 WX_FLAVOUR
735 WX_LIB_FLAVOUR
736 WXUNIV
737 MONOLITHIC
738 USE_PLUGINS
739 CXXWARNINGS
740 EXTRALIBS
741 EXTRALIBS_XML
742 EXTRALIBS_HTML
743 EXTRALIBS_MEDIA
744 EXTRALIBS_GUI
745 EXTRALIBS_OPENGL
746 EXTRALIBS_SDL
747 EXTRALIBS_STC
748 WITH_PLUGIN_SDL
749 EXTRALIBS_GTKPRINT
750 EXTRALIBS_GNOMEPRINT
751 EXTRALIBS_GNOMEVFS
752 EXTRALIBS_HILDON
753 UNICODE
754 DEBUG_INFO
755 DEBUG_FLAG
756 TOOLKIT_LOWERCASE
757 TOOLKIT_VERSION
758 DYLIB_RPATH_INSTALL
759 DYLIB_RPATH_POSTLINK
760 SAMPLES_RPATH_FLAG
761 HEADER_PAD_OPTION
762 HOST_SUFFIX
763 CPPUNIT_CFLAGS
764 CPPUNIT_LIBS
765 RANLIB
766 INSTALL_PROGRAM
767 INSTALL_SCRIPT
768 INSTALL_DATA
769 LN_S
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 STRIP
774 NM
775 INSTALL_DIR
776 LDFLAGS_GUI
777 IF_GNU_MAKE
778 PLATFORM_UNIX
779 PLATFORM_WIN32
780 PLATFORM_MSDOS
781 PLATFORM_MAC
782 PLATFORM_MACOS
783 PLATFORM_MACOSX
784 PLATFORM_OS2
785 PLATFORM_BEOS
786 SO_SUFFIX
787 SO_SUFFIX_MODULE
788 DLLIMP_SUFFIX
789 LIBPREFIX
790 LIBEXT
791 DLLPREFIX
792 DLLPREFIX_MODULE
793 dlldir
794 AIX_CXX_LD
795 SHARED_LD_CC
796 SHARED_LD_CXX
797 SHARED_LD_MODULE_CC
798 SHARED_LD_MODULE_CXX
799 PIC_FLAG
800 WINDOWS_IMPLIB
801 USE_SOVERSION
802 USE_SOVERLINUX
803 USE_SOVERSOLARIS
804 USE_SOVERCYGWIN
805 USE_MACVERSION
806 USE_SOTWOSYMLINKS
807 SONAME_FLAG
808 DEPS_TRACKING
809 BK_DEPS
810 WINDRES
811 REZ
812 SETFILE
813 OBJCXXFLAGS
814 GCC_PCH
815 ICC_PCH
816 ICC_PCH_CREATE_SWITCH
817 ICC_PCH_USE_SWITCH
818 BK_MAKE_PCH
819 COND_BUILD_DEBUG
820 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
821 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
822 COND_BUILD_DEBUG_UNICODE_0
823 COND_BUILD_DEBUG_UNICODE_1
824 COND_BUILD_RELEASE
825 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
826 COND_BUILD_RELEASE_UNICODE_0
827 COND_BUILD_RELEASE_UNICODE_1
828 COND_BUILD_debug
829 COND_BUILD_debug_DEBUG_FLAG_default
830 COND_BUILD_debug_DEBUG_INFO_default
831 COND_BUILD_debug_UNICODE_0
832 COND_BUILD_debug_UNICODE_1
833 COND_BUILD_release
834 COND_BUILD_release_DEBUG_INFO_default
835 COND_BUILD_release_UNICODE_0
836 COND_BUILD_release_UNICODE_1
837 COND_DEBUG_FLAG_0
838 COND_DEBUG_FLAG_1
839 COND_DEBUG_INFO_0
840 COND_DEBUG_INFO_1
841 COND_DEPS_TRACKING_0
842 COND_DEPS_TRACKING_1
843 COND_GCC_PCH_1
844 COND_ICC_PCH_1
845 COND_MONOLITHIC_0
846 COND_MONOLITHIC_0_SHARED_0
847 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
852 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1
853 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
855 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
856 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
857 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
858 COND_MONOLITHIC_0_SHARED_1
859 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1
865 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
870 COND_MONOLITHIC_0_USE_AUI_1
871 COND_MONOLITHIC_0_USE_GUI_1
872 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_HTML_1
874 COND_MONOLITHIC_0_USE_MEDIA_1
875 COND_MONOLITHIC_0_USE_PROPGRID_1
876 COND_MONOLITHIC_0_USE_QA_1
877 COND_MONOLITHIC_0_USE_RIBBON_1
878 COND_MONOLITHIC_0_USE_RICHTEXT_1
879 COND_MONOLITHIC_0_USE_STC_1
880 COND_MONOLITHIC_0_USE_WEB_1
881 COND_MONOLITHIC_0_USE_XRC_1
882 COND_MONOLITHIC_1
883 COND_MONOLITHIC_1_SHARED_0
884 COND_MONOLITHIC_1_SHARED_1
885 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
886 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
887 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
888 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
889 COND_PLATFORM_MACOSX_1
890 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
891 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
895 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
896 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
897 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
898 COND_PLATFORM_MACOSX_1_USE_GUI_1
899 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
900 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
901 COND_PLATFORM_MACOS_1
902 COND_PLATFORM_MAC_0
903 COND_PLATFORM_MAC_1
904 COND_PLATFORM_MSDOS_0
905 COND_PLATFORM_MSDOS_1
906 COND_PLATFORM_OS2_1
907 COND_PLATFORM_UNIX_0
908 COND_PLATFORM_UNIX_1
909 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
910 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
911 COND_PLATFORM_UNIX_1_USE_GUI_1
912 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
913 COND_PLATFORM_WIN32_0
914 COND_PLATFORM_WIN32_1
915 COND_PLATFORM_WIN32_1_SHARED_0
916 COND_SHARED_0
917 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
918 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
919 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
920 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
921 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
922 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
923 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
924 COND_SHARED_0_USE_STC_1
925 COND_SHARED_0_wxUSE_EXPAT_builtin
926 COND_SHARED_0_wxUSE_REGEX_builtin
927 COND_SHARED_0_wxUSE_ZLIB_builtin
928 COND_SHARED_1
929 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
930 COND_TOOLKIT_
931 COND_TOOLKIT_COCOA
932 COND_TOOLKIT_COCOA_USE_GUI_1
933 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_DFB
935 COND_TOOLKIT_DFB_USE_GUI_1
936 COND_TOOLKIT_GTK
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
940 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
942 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_GTK_USE_GUI_1
944 COND_TOOLKIT_MAC
945 COND_TOOLKIT_MGL
946 COND_TOOLKIT_MGL_USE_GUI_1
947 COND_TOOLKIT_MOTIF
948 COND_TOOLKIT_MOTIF_USE_GUI_1
949 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW
951 COND_TOOLKIT_MSW_USE_GUI_1
952 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_MSW_WXUNIV_0
954 COND_TOOLKIT_OSX_CARBON
955 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
956 COND_TOOLKIT_OSX_COCOA
957 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
958 COND_TOOLKIT_OSX_IPHONE
959 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
960 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_PM
962 COND_TOOLKIT_PM_USE_GUI_1
963 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE
965 COND_TOOLKIT_WINCE_USE_GUI_1
966 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
967 COND_TOOLKIT_WINCE_WXUNIV_0
968 COND_TOOLKIT_X11
969 COND_TOOLKIT_X11_USE_GUI_1
970 COND_UNICODE_1
971 COND_USE_CAIRO_1
972 COND_USE_EXCEPTIONS_0
973 COND_USE_EXCEPTIONS_1
974 COND_USE_GUI_0
975 COND_USE_GUI_1
976 COND_USE_GUI_1_USE_OPENGL_1
977 COND_USE_GUI_1_WXUNIV_0
978 COND_USE_GUI_1_WXUNIV_1
979 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
980 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
981 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
982 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
983 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
984 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
985 COND_USE_OPENGL_1
986 COND_USE_PCH_1
987 COND_USE_PLUGINS_0
988 COND_USE_RTTI_0
989 COND_USE_RTTI_1
990 COND_USE_SOTWOSYMLINKS_1
991 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
992 COND_USE_SOVERLINUX_1
993 COND_USE_SOVERSION_0
994 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
995 COND_USE_SOVERSOLARIS_1
996 COND_USE_STC_1
997 COND_USE_THREADS_0
998 COND_USE_THREADS_1
999 COND_USE_XRC_1
1000 COND_WINDOWS_IMPLIB_1
1001 COND_WITH_PLUGIN_SDL_1
1002 COND_WXUNIV_0
1003 COND_WXUNIV_1
1004 COND_WXUSE_EXPAT_BUILTIN
1005 COND_WXUSE_LIBJPEG_BUILTIN
1006 COND_WXUSE_LIBPNG_BUILTIN
1007 COND_WXUSE_LIBTIFF_BUILTIN
1008 COND_WXUSE_REGEX_BUILTIN
1009 COND_WXUSE_ZLIB_BUILTIN
1010 COND_wxUSE_EXPAT_builtin
1011 COND_wxUSE_LIBJPEG_builtin
1012 COND_wxUSE_LIBPNG_builtin
1013 COND_wxUSE_LIBTIFF_builtin
1014 COND_wxUSE_REGEX_builtin
1015 COND_wxUSE_ZLIB_builtin
1016 DEREZ
1017 SHARED
1018 WX_LIBRARY_BASENAME_NOGUI
1019 WX_LIBRARY_BASENAME_GUI
1020 USE_GUI
1021 AFMINSTALL
1022 WIN32INSTALL
1023 TOOLKIT
1024 TOOLKIT_DIR
1025 TOOLCHAIN_NAME
1026 TOOLCHAIN_FULLNAME
1027 cross_compiling
1028 WIDGET_SET
1029 WX_RELEASE
1030 WX_VERSION
1031 WX_SUBVERSION
1032 WX_CHARTYPE
1033 WXCONFIG_CPPFLAGS
1034 WXCONFIG_CFLAGS
1035 WXCONFIG_CXXFLAGS
1036 WXCONFIG_LIBS
1037 WXCONFIG_RPATH
1038 WXCONFIG_LDFLAGS
1039 WXCONFIG_LDFLAGS_GUI
1040 WXCONFIG_RESFLAGS
1041 GUIDIST
1042 DISTDIR
1043 SAMPLES_SUBDIRS
1044 LDFLAGS_GL
1045 OPENGL_LIBS
1046 DMALLOC_LIBS
1047 WX_VERSION_TAG
1048 RESCOMP
1049 RESFLAGS
1050 RESPROGRAMOBJ
1051 WX_RESOURCES_MACOSX_ASCII
1052 WX_RESOURCES_MACOSX_DATA
1053 LIBWXMACRES
1054 POSTLINK_COMMAND
1055 MACSETFILE
1056 GCC
1057 DLLTOOL
1058 CPPUNIT_CONFIG
1059 LIBOBJS
1060 LTLIBOBJS'
1061 ac_subst_files=''
1062       ac_precious_vars='build_alias
1063 host_alias
1064 target_alias
1065 CC
1066 CFLAGS
1067 LDFLAGS
1068 LIBS
1069 CPPFLAGS
1070 CPP
1071 CXX
1072 CXXFLAGS
1073 CCC
1074 CXXCPP
1075 PKG_CONFIG
1076 DIRECTFB_CFLAGS
1077 DIRECTFB_LIBS
1078 XMKMF
1079 PANGOX_CFLAGS
1080 PANGOX_LIBS
1081 PANGOFT2_CFLAGS
1082 PANGOFT2_LIBS
1083 PANGOXFT_CFLAGS
1084 PANGOXFT_LIBS
1085 GTKPRINT_CFLAGS
1086 GTKPRINT_LIBS
1087 LIBGNOMEPRINTUI_CFLAGS
1088 LIBGNOMEPRINTUI_LIBS
1089 GNOMEVFS_CFLAGS
1090 GNOMEVFS_LIBS
1091 HILDON_CFLAGS
1092 HILDON_LIBS
1093 HILDON2_CFLAGS
1094 HILDON2_LIBS
1095 CAIRO_CFLAGS
1096 CAIRO_LIBS
1097 GST_CFLAGS
1098 GST_LIBS'
1099 ac_subdirs_all='src/tiff
1100 src/expat'
1101
1102 # Initialize some variables set by options.
1103 ac_init_help=
1104 ac_init_version=false
1105 # The variables have the same names as the options, with
1106 # dashes changed to underlines.
1107 cache_file=/dev/null
1108 exec_prefix=NONE
1109 no_create=
1110 no_recursion=
1111 prefix=NONE
1112 program_prefix=NONE
1113 program_suffix=NONE
1114 program_transform_name=s,x,x,
1115 silent=
1116 site=
1117 srcdir=
1118 verbose=
1119 x_includes=NONE
1120 x_libraries=NONE
1121
1122 # Installation directory options.
1123 # These are left unexpanded so users can "make install exec_prefix=/foo"
1124 # and all the variables that are supposed to be based on exec_prefix
1125 # by default will actually change.
1126 # Use braces instead of parens because sh, perl, etc. also accept them.
1127 # (The list follows the same order as the GNU Coding Standards.)
1128 bindir='${exec_prefix}/bin'
1129 sbindir='${exec_prefix}/sbin'
1130 libexecdir='${exec_prefix}/libexec'
1131 datarootdir='${prefix}/share'
1132 datadir='${datarootdir}'
1133 sysconfdir='${prefix}/etc'
1134 sharedstatedir='${prefix}/com'
1135 localstatedir='${prefix}/var'
1136 includedir='${prefix}/include'
1137 oldincludedir='/usr/include'
1138 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1139 infodir='${datarootdir}/info'
1140 htmldir='${docdir}'
1141 dvidir='${docdir}'
1142 pdfdir='${docdir}'
1143 psdir='${docdir}'
1144 libdir='${exec_prefix}/lib'
1145 localedir='${datarootdir}/locale'
1146 mandir='${datarootdir}/man'
1147
1148 ac_prev=
1149 ac_dashdash=
1150 for ac_option
1151 do
1152   # If the previous option needs an argument, assign it.
1153   if test -n "$ac_prev"; then
1154     eval $ac_prev=\$ac_option
1155     ac_prev=
1156     continue
1157   fi
1158
1159   case $ac_option in
1160   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1161   *)    ac_optarg=yes ;;
1162   esac
1163
1164   # Accept the important Cygnus configure options, so we can diagnose typos.
1165
1166   case $ac_dashdash$ac_option in
1167   --)
1168     ac_dashdash=yes ;;
1169
1170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1171     ac_prev=bindir ;;
1172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1173     bindir=$ac_optarg ;;
1174
1175   -build | --build | --buil | --bui | --bu)
1176     ac_prev=build_alias ;;
1177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1178     build_alias=$ac_optarg ;;
1179
1180   -cache-file | --cache-file | --cache-fil | --cache-fi \
1181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1182     ac_prev=cache_file ;;
1183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1185     cache_file=$ac_optarg ;;
1186
1187   --config-cache | -C)
1188     cache_file=config.cache ;;
1189
1190   -datadir | --datadir | --datadi | --datad)
1191     ac_prev=datadir ;;
1192   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1193     datadir=$ac_optarg ;;
1194
1195   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1196   | --dataroo | --dataro | --datar)
1197     ac_prev=datarootdir ;;
1198   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1199   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1200     datarootdir=$ac_optarg ;;
1201
1202   -disable-* | --disable-*)
1203     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1209     eval enable_$ac_feature=no ;;
1210
1211   -docdir | --docdir | --docdi | --doc | --do)
1212     ac_prev=docdir ;;
1213   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1214     docdir=$ac_optarg ;;
1215
1216   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1217     ac_prev=dvidir ;;
1218   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1219     dvidir=$ac_optarg ;;
1220
1221   -enable-* | --enable-*)
1222     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1228     eval enable_$ac_feature=\$ac_optarg ;;
1229
1230   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232   | --exec | --exe | --ex)
1233     ac_prev=exec_prefix ;;
1234   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236   | --exec=* | --exe=* | --ex=*)
1237     exec_prefix=$ac_optarg ;;
1238
1239   -gas | --gas | --ga | --g)
1240     # Obsolete; use --with-gas.
1241     with_gas=yes ;;
1242
1243   -help | --help | --hel | --he | -h)
1244     ac_init_help=long ;;
1245   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246     ac_init_help=recursive ;;
1247   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248     ac_init_help=short ;;
1249
1250   -host | --host | --hos | --ho)
1251     ac_prev=host_alias ;;
1252   -host=* | --host=* | --hos=* | --ho=*)
1253     host_alias=$ac_optarg ;;
1254
1255   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1256     ac_prev=htmldir ;;
1257   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1258   | --ht=*)
1259     htmldir=$ac_optarg ;;
1260
1261   -includedir | --includedir | --includedi | --included | --include \
1262   | --includ | --inclu | --incl | --inc)
1263     ac_prev=includedir ;;
1264   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265   | --includ=* | --inclu=* | --incl=* | --inc=*)
1266     includedir=$ac_optarg ;;
1267
1268   -infodir | --infodir | --infodi | --infod | --info | --inf)
1269     ac_prev=infodir ;;
1270   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271     infodir=$ac_optarg ;;
1272
1273   -libdir | --libdir | --libdi | --libd)
1274     ac_prev=libdir ;;
1275   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276     libdir=$ac_optarg ;;
1277
1278   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279   | --libexe | --libex | --libe)
1280     ac_prev=libexecdir ;;
1281   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282   | --libexe=* | --libex=* | --libe=*)
1283     libexecdir=$ac_optarg ;;
1284
1285   -localedir | --localedir | --localedi | --localed | --locale)
1286     ac_prev=localedir ;;
1287   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288     localedir=$ac_optarg ;;
1289
1290   -localstatedir | --localstatedir | --localstatedi | --localstated \
1291   | --localstate | --localstat | --localsta | --localst | --locals)
1292     ac_prev=localstatedir ;;
1293   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295     localstatedir=$ac_optarg ;;
1296
1297   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1298     ac_prev=mandir ;;
1299   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300     mandir=$ac_optarg ;;
1301
1302   -nfp | --nfp | --nf)
1303     # Obsolete; use --without-fp.
1304     with_fp=no ;;
1305
1306   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307   | --no-cr | --no-c | -n)
1308     no_create=yes ;;
1309
1310   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312     no_recursion=yes ;;
1313
1314   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316   | --oldin | --oldi | --old | --ol | --o)
1317     ac_prev=oldincludedir ;;
1318   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321     oldincludedir=$ac_optarg ;;
1322
1323   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1324     ac_prev=prefix ;;
1325   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326     prefix=$ac_optarg ;;
1327
1328   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329   | --program-pre | --program-pr | --program-p)
1330     ac_prev=program_prefix ;;
1331   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333     program_prefix=$ac_optarg ;;
1334
1335   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336   | --program-suf | --program-su | --program-s)
1337     ac_prev=program_suffix ;;
1338   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340     program_suffix=$ac_optarg ;;
1341
1342   -program-transform-name | --program-transform-name \
1343   | --program-transform-nam | --program-transform-na \
1344   | --program-transform-n | --program-transform- \
1345   | --program-transform | --program-transfor \
1346   | --program-transfo | --program-transf \
1347   | --program-trans | --program-tran \
1348   | --progr-tra | --program-tr | --program-t)
1349     ac_prev=program_transform_name ;;
1350   -program-transform-name=* | --program-transform-name=* \
1351   | --program-transform-nam=* | --program-transform-na=* \
1352   | --program-transform-n=* | --program-transform-=* \
1353   | --program-transform=* | --program-transfor=* \
1354   | --program-transfo=* | --program-transf=* \
1355   | --program-trans=* | --program-tran=* \
1356   | --progr-tra=* | --program-tr=* | --program-t=*)
1357     program_transform_name=$ac_optarg ;;
1358
1359   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1360     ac_prev=pdfdir ;;
1361   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362     pdfdir=$ac_optarg ;;
1363
1364   -psdir | --psdir | --psdi | --psd | --ps)
1365     ac_prev=psdir ;;
1366   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367     psdir=$ac_optarg ;;
1368
1369   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370   | -silent | --silent | --silen | --sile | --sil)
1371     silent=yes ;;
1372
1373   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374     ac_prev=sbindir ;;
1375   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376   | --sbi=* | --sb=*)
1377     sbindir=$ac_optarg ;;
1378
1379   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381   | --sharedst | --shareds | --shared | --share | --shar \
1382   | --sha | --sh)
1383     ac_prev=sharedstatedir ;;
1384   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387   | --sha=* | --sh=*)
1388     sharedstatedir=$ac_optarg ;;
1389
1390   -site | --site | --sit)
1391     ac_prev=site ;;
1392   -site=* | --site=* | --sit=*)
1393     site=$ac_optarg ;;
1394
1395   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396     ac_prev=srcdir ;;
1397   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398     srcdir=$ac_optarg ;;
1399
1400   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401   | --syscon | --sysco | --sysc | --sys | --sy)
1402     ac_prev=sysconfdir ;;
1403   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405     sysconfdir=$ac_optarg ;;
1406
1407   -target | --target | --targe | --targ | --tar | --ta | --t)
1408     ac_prev=target_alias ;;
1409   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410     target_alias=$ac_optarg ;;
1411
1412   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413     verbose=yes ;;
1414
1415   -version | --version | --versio | --versi | --vers | -V)
1416     ac_init_version=: ;;
1417
1418   -with-* | --with-*)
1419     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422       { echo "$as_me: error: invalid package name: $ac_package" >&2
1423    { (exit 1); exit 1; }; }
1424     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1425     eval with_$ac_package=\$ac_optarg ;;
1426
1427   -without-* | --without-*)
1428     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       { echo "$as_me: error: invalid package name: $ac_package" >&2
1432    { (exit 1); exit 1; }; }
1433     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1434     eval with_$ac_package=no ;;
1435
1436   --x)
1437     # Obsolete; use --with-x.
1438     with_x=yes ;;
1439
1440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441   | --x-incl | --x-inc | --x-in | --x-i)
1442     ac_prev=x_includes ;;
1443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445     x_includes=$ac_optarg ;;
1446
1447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449     ac_prev=x_libraries ;;
1450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452     x_libraries=$ac_optarg ;;
1453
1454   -*) { echo "$as_me: error: unrecognized option: $ac_option
1455 Try \`$0 --help' for more information." >&2
1456    { (exit 1); exit 1; }; }
1457     ;;
1458
1459   *=*)
1460     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1463       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1464    { (exit 1); exit 1; }; }
1465     eval $ac_envvar=\$ac_optarg
1466     export $ac_envvar ;;
1467
1468   *)
1469     # FIXME: should be removed in autoconf 3.0.
1470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474     ;;
1475
1476   esac
1477 done
1478
1479 if test -n "$ac_prev"; then
1480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481   { echo "$as_me: error: missing argument to $ac_option" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Be sure to have absolute directory names.
1486 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1487                 datadir sysconfdir sharedstatedir localstatedir includedir \
1488                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1489                 libdir localedir mandir
1490 do
1491   eval ac_val=\$$ac_var
1492   case $ac_val in
1493     [\\/$]* | ?:[\\/]* )  continue;;
1494     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495   esac
1496   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497    { (exit 1); exit 1; }; }
1498 done
1499
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1506
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509   if test "x$build_alias" = x; then
1510     cross_compiling=maybe
1511     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512     If a cross compiler is detected then cross compile mode will be used." >&2
1513   elif test "x$build_alias" != "x$host_alias"; then
1514     cross_compiling=yes
1515   fi
1516 fi
1517
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521 test "$silent" = yes && exec 6>/dev/null
1522
1523
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527   { echo "$as_me: error: Working directory cannot be determined" >&2
1528    { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530   { echo "$as_me: error: pwd does not report name of working directory" >&2
1531    { (exit 1); exit 1; }; }
1532
1533
1534 # Find the source files, if location was not specified.
1535 if test -z "$srcdir"; then
1536   ac_srcdir_defaulted=yes
1537   # Try the directory containing this script, then the parent directory.
1538   ac_confdir=`$as_dirname -- "$0" ||
1539 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540          X"$0" : 'X\(//\)[^/]' \| \
1541          X"$0" : 'X\(//\)$' \| \
1542          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1543 echo X"$0" |
1544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545             s//\1/
1546             q
1547           }
1548           /^X\(\/\/\)[^/].*/{
1549             s//\1/
1550             q
1551           }
1552           /^X\(\/\/\)$/{
1553             s//\1/
1554             q
1555           }
1556           /^X\(\/\).*/{
1557             s//\1/
1558             q
1559           }
1560           s/.*/./; q'`
1561   srcdir=$ac_confdir
1562   if test ! -r "$srcdir/$ac_unique_file"; then
1563     srcdir=..
1564   fi
1565 else
1566   ac_srcdir_defaulted=no
1567 fi
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1576    { (exit 1); exit 1; }; }
1577         pwd)`
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1580   srcdir=.
1581 fi
1582 # Remove unnecessary trailing slashes from srcdir.
1583 # Double slashes in file names in object file debugging info
1584 # mess up M-x gdb in Emacs.
1585 case $srcdir in
1586 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 esac
1588 for ac_var in $ac_precious_vars; do
1589   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1590   eval ac_env_${ac_var}_value=\$${ac_var}
1591   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1592   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593 done
1594
1595 #
1596 # Report the --help message.
1597 #
1598 if test "$ac_init_help" = "long"; then
1599   # Omit some internal or obsolete options to make the list less imposing.
1600   # This message is too long to be a string in the A/UX 3.1 sh.
1601   cat <<_ACEOF
1602 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1603
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE.  See below for descriptions of some of the useful variables.
1608
1609 Defaults for the options are specified in brackets.
1610
1611 Configuration:
1612   -h, --help              display this help and exit
1613       --help=short        display options specific to this package
1614       --help=recursive    display the short help of all the included packages
1615   -V, --version           display version information and exit
1616   -q, --quiet, --silent   do not print \`checking...' messages
1617       --cache-file=FILE   cache test results in FILE [disabled]
1618   -C, --config-cache      alias for \`--cache-file=config.cache'
1619   -n, --no-create         do not create output files
1620       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1621
1622 Installation directories:
1623   --prefix=PREFIX         install architecture-independent files in PREFIX
1624                           [$ac_default_prefix]
1625   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1626                           [PREFIX]
1627
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1632
1633 For better control, use the options below.
1634
1635 Fine tuning of the installation directories:
1636   --bindir=DIR           user executables [EPREFIX/bin]
1637   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1638   --libexecdir=DIR       program executables [EPREFIX/libexec]
1639   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1640   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1641   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1642   --libdir=DIR           object code libraries [EPREFIX/lib]
1643   --includedir=DIR       C header files [PREFIX/include]
1644   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1645   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1646   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1647   --infodir=DIR          info documentation [DATAROOTDIR/info]
1648   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1649   --mandir=DIR           man documentation [DATAROOTDIR/man]
1650   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1651   --htmldir=DIR          html documentation [DOCDIR]
1652   --dvidir=DIR           dvi documentation [DOCDIR]
1653   --pdfdir=DIR           pdf documentation [DOCDIR]
1654   --psdir=DIR            ps documentation [DOCDIR]
1655 _ACEOF
1656
1657   cat <<\_ACEOF
1658
1659 X features:
1660   --x-includes=DIR    X include files are in DIR
1661   --x-libraries=DIR   X library files are in DIR
1662
1663 System types:
1664   --build=BUILD     configure for building on BUILD [guessed]
1665   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1666 _ACEOF
1667 fi
1668
1669 if test -n "$ac_init_help"; then
1670   case $ac_init_help in
1671      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1672    esac
1673   cat <<\_ACEOF
1674
1675 Optional Features:
1676   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1677   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1678   --disable-gui           don't build GUI parts of the library
1679   --enable-monolithic     build wxWidgets as single library
1680   --enable-plugins        build parts of wxWidgets as loadable components
1681   --enable-official_build official build of wxWidgets (win32 DLL only)
1682   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1683   --disable-all-features  disable all optional features to build minimal library
1684   --enable-universal      use wxWidgets GUI controls instead of native ones
1685   --enable-nanox          use NanoX
1686   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1687   --enable-gpe            use GNOME PDA Environment features if possible
1688   --enable-debug          build library for debugging
1689   --disable-debug_flag    disable all debugging support
1690   --enable-debug_info     generate debug information
1691   --enable-debug_gdb      create code with extra GDB debugging information
1692   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1693   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1694   --disable-shared        create static library instead of shared
1695   --enable-stl            use standard C++ classes for everything
1696   --enable-std_containers use standard C++ container classes
1697   --enable-std_iostreams  use standard C++ stream classes
1698   --enable-std_string     use standard C++ string classes
1699  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1700   --disable-unicode       compile without Unicode support
1701   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1702   --enable-utf8           use UTF-8 representation for strings (Unix only)
1703   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1704   --enable-extended_rtti  use extended RTTI (XTI)
1705   --enable-omf            use OMF object format
1706   --disable-optimise      compile without optimisations
1707   --enable-profile        create code with profiling information
1708   --enable-no_rtti        create code without RTTI information
1709   --enable-no_exceptions  create code without C++ exceptions handling
1710   --enable-permissive     compile code disregarding strict ANSI
1711   --enable-no_deps        create code without dependency information
1712   --disable-vararg_macros don't use vararg macros, even if they are supported
1713   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1714   --enable-macosx_arch=ARCH  build for just the specified architecture
1715   --enable-compat26       enable wxWidgets 2.6 compatibility
1716   --disable-compat28      disable wxWidgets 2.8 compatibility
1717   --disable-rpath         disable use of rpath for uninstalled builds
1718   --enable-objc_uniquifying enable Objective-C class name uniquifying
1719   --disable-visibility    disable use of ELF symbols visibility even if supported
1720   --disable-tls           disable use of compiler TLS support
1721   --enable-intl           use internationalization system
1722   --enable-xlocale        use x-locale support (requires wxLocale)
1723   --enable-config         use wxConfig (and derived) classes
1724   --enable-protocols      use wxProtocol and derived classes
1725   --enable-ftp            use wxFTP (requires wxProtocol
1726   --enable-http           use wxHTTP (requires wxProtocol
1727   --enable-fileproto      use wxFileProto class (requires wxProtocol
1728   --enable-sockets        use socket/network classes
1729   --enable-ipv6           enable IPv6 support in wxSocket
1730   --enable-ole            use OLE classes (Win32 only)
1731   --enable-dataobj        use data object classes
1732   --enable-ipc            use interprocess communication (wxSocket etc.)
1733   --enable-baseevtloop    use event loop in console programs too
1734   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1735   --enable-selectloop     use wxSelectDispatcher class
1736   --enable-any            use wxAny class
1737   --enable-apple_ieee     use the Apple IEEE codec
1738   --enable-arcstream      use wxArchive streams
1739   --enable-base64         use base64 encoding/decoding functions
1740   --enable-backtrace      use wxStackWalker class for getting backtraces
1741   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1742   --enable-cmdline        use wxCmdLineParser class
1743   --enable-datetime       use wxDateTime class
1744   --enable-debugreport    use wxDebugReport class
1745   --enable-dialupman      use dialup network classes
1746   --enable-dynlib         use wxLibrary class for DLL loading
1747   --enable-dynamicloader  use (new) wxDynamicLibrary class
1748   --enable-exceptions     build exception-safe library
1749   --enable-ffile          use wxFFile class
1750   --enable-file           use wxFile class
1751   --enable-filehistory    use wxFileHistory class
1752   --enable-filesystem     use virtual file systems classes
1753   --enable-fontenum       use wxFontEnumerator class
1754   --enable-fontmap        use font encodings conversion classes
1755   --enable-fs_archive     use virtual archive filesystems
1756   --enable-fs_inet        use virtual HTTP/FTP filesystems
1757   --enable-fs_zip         now replaced by fs_archive
1758   --enable-fswatcher      use wxFileSystemWatcher class
1759   --enable-geometry       use geometry class
1760   --enable-log            use logging system
1761   --enable-longlong       use wxLongLong class
1762   --enable-mimetype       use wxMimeTypesManager
1763   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1764   --enable-snglinst       use wxSingleInstanceChecker class
1765   --enable-sound          use wxSound class
1766   --enable-stdpaths       use wxStandardPaths class
1767   --enable-stopwatch      use wxStopWatch class
1768   --enable-streams        use wxStream etc classes
1769   --enable-sysoptions     use wxSystemOptions
1770   --enable-tarstream      use wxTar streams
1771   --enable-textbuf        use wxTextBuffer class
1772   --enable-textfile       use wxTextFile class
1773   --enable-timer          use wxTimer class
1774   --enable-variant        use wxVariant class
1775   --enable-zipstream      use wxZip streams
1776   --enable-url            use wxURL class
1777   --enable-protocol       use wxProtocol class
1778   --enable-protocol-http  HTTP support in wxProtocol
1779   --enable-protocol-ftp   FTP support in wxProtocol
1780   --enable-protocol-file  FILE support in wxProtocol
1781   --enable-threads        use threads
1782   --enable-iniconf        use wxIniConfig (Win32 only)
1783   --enable-regkey         use wxRegKey class (Win32 only)
1784   --enable-docview        use document view architecture
1785   --enable-help           use help subsystem
1786   --enable-mshtmlhelp     use MS HTML Help (win32)
1787   --enable-html           use wxHTML sub-library
1788   --enable-htmlhelp       use wxHTML-based help
1789   --enable-xrc            use XRC resources sub-library
1790   --enable-aui            use AUI docking library
1791   --enable-propgrid       use wxPropertyGrid library
1792   --enable-ribbon         use wxRibbon library
1793   --enable-stc            use wxStyledTextCtrl library
1794   --enable-constraints    use layout-constraints system
1795   --enable-loggui         use standard GUI logger
1796   --enable-logwin         use wxLogWindow
1797   --enable-logdialog      use wxLogDialog
1798   --enable-mdi            use multiple document interface architecture
1799   --enable-mdidoc         use docview architecture with MDI
1800   --enable-mediactrl      use wxMediaCtrl class
1801   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1802   --enable-webkit         use wxWebKitCtrl (Mac)
1803   --enable-richtext       use wxRichTextCtrl
1804   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1805   --enable-printarch      use printing architecture
1806   --enable-svg            use wxSVGFileDC device context
1807   --enable-web            use wxWeb library
1808   --enable-graphics_ctx   use graphics context 2D drawing API
1809   --enable-clipboard      use wxClipboard class
1810   --enable-dnd            use Drag'n'Drop classes
1811   --disable-controls      disable compilation of all standard controls
1812   --enable-markup         support wxControl::SetLabelMarkup
1813   --enable-accel          use accelerators
1814   --enable-animatectrl    use wxAnimationCtrl class
1815   --enable-bannerwindow   use wxBannerWindow class
1816   --enable-artstd         use standard XPM icons in wxArtProvider
1817   --enable-arttango       use Tango icons in wxArtProvider
1818   --enable-bmpbutton      use wxBitmapButton class
1819   --enable-bmpcombobox    use wxBitmapComboBox class
1820   --enable-button         use wxButton class
1821   --enable-calendar       use wxCalendarCtrl class
1822   --enable-caret          use wxCaret class
1823   --enable-checkbox       use wxCheckBox class
1824   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1825   --enable-choice         use wxChoice class
1826   --enable-choicebook     use wxChoicebook class
1827   --enable-collpane       use wxCollapsiblePane class
1828   --enable-colourpicker   use wxColourPickerCtrl class
1829   --enable-combobox       use wxComboBox class
1830   --enable-comboctrl      use wxComboCtrl class
1831   --enable-commandlinkbutton      use wxCommmandLinkButton class
1832   --enable-dataviewctrl   use wxDataViewCtrl class
1833   --enable-datepick       use wxDatePickerCtrl class
1834   --enable-detect_sm      use code to detect X11 session manager
1835   --enable-dirpicker      use wxDirPickerCtrl class
1836   --enable-display        use wxDisplay class
1837   --enable-editablebox    use wxEditableListBox class
1838   --enable-filectrl       use wxFileCtrl class
1839   --enable-filepicker     use wxFilePickerCtrl class
1840   --enable-fontpicker     use wxFontPickerCtrl class
1841   --enable-gauge          use wxGauge class
1842   --enable-grid           use wxGrid class
1843   --enable-headerctrl     use wxHeaderCtrl class
1844   --enable-hyperlink      use wxHyperlinkCtrl class
1845   --enable-imaglist       use wxImageList class
1846   --enable-infobar        use wxInfoBar class
1847   --enable-listbook       use wxListbook class
1848   --enable-listbox        use wxListBox class
1849   --enable-listctrl       use wxListCtrl class
1850   --enable-notebook       use wxNotebook class
1851   --enable-notifmsg       use wxNotificationMessage class
1852   --enable-odcombobox     use wxOwnerDrawnComboBox class
1853   --enable-popupwin       use wxPopUpWindow class
1854   --enable-radiobox       use wxRadioBox class
1855   --enable-radiobtn       use wxRadioButton class
1856   --enable-richmsgdlg     use wxRichMessageDialog class
1857   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1858   --enable-sash           use wxSashWindow class
1859   --enable-scrollbar      use wxScrollBar class and scrollable windows
1860   --enable-searchctrl     use wxSearchCtrl class
1861   --enable-slider         use wxSlider class
1862   --enable-spinbtn        use wxSpinButton class
1863   --enable-spinctrl       use wxSpinCtrl class
1864   --enable-splitter       use wxSplitterWindow class
1865   --enable-statbmp        use wxStaticBitmap class
1866   --enable-statbox        use wxStaticBox class
1867   --enable-statline       use wxStaticLine class
1868   --enable-stattext       use wxStaticText class
1869   --enable-statusbar      use wxStatusBar class
1870   --enable-taskbaricon    use wxTaskBarIcon class
1871   --enable-tbarnative     use native wxToolBar class
1872   --enable-textctrl       use wxTextCtrl class
1873   --enable-tipwindow      use wxTipWindow class
1874   --enable-togglebtn      use wxToggleButton class
1875   --enable-toolbar        use wxToolBar class
1876   --enable-toolbook       use wxToolbook class
1877   --enable-treebook       use wxTreebook class
1878   --enable-treectrl       use wxTreeCtrl class
1879   --enable-treelist       use wxTreeListCtrl class
1880   --enable-commondlg      use all common dialogs
1881   --enable-aboutdlg       use wxAboutBox
1882   --enable-choicedlg      use wxChoiceDialog
1883   --enable-coldlg         use wxColourDialog
1884   --enable-filedlg        use wxFileDialog
1885   --enable-finddlg        use wxFindReplaceDialog
1886   --enable-fontdlg        use wxFontDialog
1887   --enable-dirdlg         use wxDirDialog
1888   --enable-msgdlg         use wxMessageDialog
1889   --enable-numberdlg      use wxNumberEntryDialog
1890   --enable-splash         use wxSplashScreen
1891   --enable-textdlg        use wxTextDialog
1892   --enable-tipdlg         use startup tips
1893   --enable-progressdlg    use wxProgressDialog
1894   --enable-wizarddlg      use wxWizard
1895   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1896   --enable-miniframe      use wxMiniFrame class
1897   --enable-tooltips       use wxToolTip class
1898   --enable-splines        use spline drawing code
1899   --enable-mousewheel     use mousewheel
1900   --enable-validators     use wxValidator and derived classes
1901   --enable-busyinfo       use wxBusyInfo
1902   --enable-hotkey         use wxWindow::RegisterHotKey()
1903   --enable-joystick       use wxJoystick
1904   --enable-metafiles      use wxMetaFile
1905   --enable-dragimage      use wxDragImage
1906   --enable-accessibility  enable accessibility support
1907   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1908   --enable-dctransform    use wxDC::SetTransformMatrix and related
1909   --enable-webview-webkit use wxWebView WebKit backend
1910   --enable-palette        use wxPalette class
1911   --enable-image          use wxImage class
1912   --enable-gif            use gif images (GIF file format)
1913   --enable-pcx            use pcx images (PCX file format)
1914   --enable-tga            use tga images (TGA file format)
1915   --enable-iff            use iff images (IFF file format)
1916   --enable-pnm            use pnm images (PNM file format)
1917   --enable-xpm            use xpm images (XPM file format)
1918   --enable-ico_cur        use Windows ICO and CUR formats
1919   --enable-dccache        cache temporary wxDC objects (Win32 only)
1920   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1921   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1922   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1923   --enable-wxdib          use wxDIB class (Win32 only)
1924   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1925   --enable-autoidman      use automatic ids management
1926   --disable-largefile     omit support for large files
1927   --disable-gtktest       do not try to compile and run a test GTK+ program
1928   --disable-gtktest       Do not try to compile and run a test GTK program
1929   --disable-sdltest       Do not try to compile and run a test SDL program
1930   --enable-omf            use OMF object format (OS/2)
1931   --disable-dependency-tracking
1932                           don't use dependency tracking even if the compiler
1933                           can
1934   --disable-precomp-headers
1935                           don't use precompiled headers even if compiler can
1936
1937 Optional Packages:
1938   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1939   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1940   --without-subdirs       don't generate makefiles for samples/demos/...
1941   --with-flavour=NAME     specify a name to identify this build
1942   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1943   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1944   --with-motif            use Motif/Lesstif
1945   --with-osx_carbon       use Mac OS X (Carbon)
1946   --with-osx_cocoa        use Mac OS X (Cocoa)
1947   --with-osx_iphone       use iPhone OS X port
1948   --with-osx              use Mac OS X (default port, currently Carbon)
1949   --with-carbon           same as --with-osx_carbon
1950   --with-cocoa            same as --with-osx_cocoa
1951   --with-iphone           same as --with-osx_iphone
1952   --with-mac              same as --with-osx
1953   --with-old_cocoa        use old, deprecated, Cocoa port
1954   --with-wine             use Wine
1955   --with-msw              use MS-Windows
1956   --with-pm               use OS/2 Presentation Manager
1957   --with-mgl              use SciTech MGL
1958   --with-directfb         use DirectFB
1959   --with-microwin         use MicroWindows
1960   --with-x11              use X11
1961   --with-libpng           use libpng (PNG image format)
1962   --with-libjpeg          use libjpeg (JPEG file format)
1963   --with-libtiff          use libtiff (TIFF file format)
1964   --with-libxpm           use libxpm (XPM file format)
1965   --with-libiconv         use libiconv (character conversion)
1966   --with-libmspack        use libmspack (CHM help files loading)
1967   --without-gtkprint      don't use GTK printing support
1968   --without-gnomeprint    don't use GNOME printing libraries
1969   --with-gnomevfs         use GNOME VFS for associating MIME types
1970   --with-hildon           use Hildon framework for Nokia 770/800/810
1971   --with-opengl           use OpenGL (or Mesa)
1972   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1973   --with-sdl              use SDL for audio on Unix
1974   --with-regex            enable support for wxRegEx class
1975   --with-zlib             use zlib for LZW compression
1976   --with-expat            enable XML support using expat parser
1977   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1978   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1979   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1980   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1981   --with-x                use the X Window System
1982   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1983   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1984   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1985   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1986   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1987
1988 Some influential environment variables:
1989   CC          C compiler command
1990   CFLAGS      C compiler flags
1991   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1992               nonstandard directory <lib dir>
1993   LIBS        libraries to pass to the linker, e.g. -l<library>
1994   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1995               you have headers in a nonstandard directory <include dir>
1996   CPP         C preprocessor
1997   CXX         C++ compiler command
1998   CXXFLAGS    C++ compiler flags
1999   CXXCPP      C++ preprocessor
2000   PKG_CONFIG  path to pkg-config utility
2001   DIRECTFB_CFLAGS
2002               C compiler flags for DIRECTFB, overriding pkg-config
2003   DIRECTFB_LIBS
2004               linker flags for DIRECTFB, overriding pkg-config
2005   XMKMF       Path to xmkmf, Makefile generator for X Window System
2006   PANGOX_CFLAGS
2007               C compiler flags for PANGOX, overriding pkg-config
2008   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2009   PANGOFT2_CFLAGS
2010               C compiler flags for PANGOFT2, overriding pkg-config
2011   PANGOFT2_LIBS
2012               linker flags for PANGOFT2, overriding pkg-config
2013   PANGOXFT_CFLAGS
2014               C compiler flags for PANGOXFT, overriding pkg-config
2015   PANGOXFT_LIBS
2016               linker flags for PANGOXFT, overriding pkg-config
2017   GTKPRINT_CFLAGS
2018               C compiler flags for GTKPRINT, overriding pkg-config
2019   GTKPRINT_LIBS
2020               linker flags for GTKPRINT, overriding pkg-config
2021   LIBGNOMEPRINTUI_CFLAGS
2022               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2023   LIBGNOMEPRINTUI_LIBS
2024               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2025   GNOMEVFS_CFLAGS
2026               C compiler flags for GNOMEVFS, overriding pkg-config
2027   GNOMEVFS_LIBS
2028               linker flags for GNOMEVFS, overriding pkg-config
2029   HILDON_CFLAGS
2030               C compiler flags for HILDON, overriding pkg-config
2031   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2032   HILDON2_CFLAGS
2033               C compiler flags for HILDON2, overriding pkg-config
2034   HILDON2_LIBS
2035               linker flags for HILDON2, overriding pkg-config
2036   CAIRO_CFLAGS
2037               C compiler flags for CAIRO, overriding pkg-config
2038   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2039   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2040   GST_LIBS    linker flags for GST, overriding pkg-config
2041
2042 Use these variables to override the choices made by `configure' or to help
2043 it to find libraries and programs with nonstandard names/locations.
2044
2045 Report bugs to <wx-dev@lists.wxwidgets.org>.
2046 _ACEOF
2047 ac_status=$?
2048 fi
2049
2050 if test "$ac_init_help" = "recursive"; then
2051   # If there are subdirs, report their specific --help.
2052   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053     test -d "$ac_dir" || continue
2054     ac_builddir=.
2055
2056 case "$ac_dir" in
2057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2058 *)
2059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2060   # A ".." for each directory in $ac_dir_suffix.
2061   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2062   case $ac_top_builddir_sub in
2063   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2064   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2065   esac ;;
2066 esac
2067 ac_abs_top_builddir=$ac_pwd
2068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2069 # for backward compatibility:
2070 ac_top_builddir=$ac_top_build_prefix
2071
2072 case $srcdir in
2073   .)  # We are building in place.
2074     ac_srcdir=.
2075     ac_top_srcdir=$ac_top_builddir_sub
2076     ac_abs_top_srcdir=$ac_pwd ;;
2077   [\\/]* | ?:[\\/]* )  # Absolute name.
2078     ac_srcdir=$srcdir$ac_dir_suffix;
2079     ac_top_srcdir=$srcdir
2080     ac_abs_top_srcdir=$srcdir ;;
2081   *) # Relative name.
2082     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2083     ac_top_srcdir=$ac_top_build_prefix$srcdir
2084     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2085 esac
2086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2087
2088     cd "$ac_dir" || { ac_status=$?; continue; }
2089     # Check for guested configure.
2090     if test -f "$ac_srcdir/configure.gnu"; then
2091       echo &&
2092       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2093     elif test -f "$ac_srcdir/configure"; then
2094       echo &&
2095       $SHELL "$ac_srcdir/configure" --help=recursive
2096     else
2097       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2098     fi || ac_status=$?
2099     cd "$ac_pwd" || { ac_status=$?; break; }
2100   done
2101 fi
2102
2103 test -n "$ac_init_help" && exit $ac_status
2104 if $ac_init_version; then
2105   cat <<\_ACEOF
2106 wxWidgets configure 2.9.3
2107 generated by GNU Autoconf 2.61
2108
2109 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2110 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2111 This configure script is free software; the Free Software Foundation
2112 gives unlimited permission to copy, distribute and modify it.
2113 _ACEOF
2114   exit
2115 fi
2116 cat >config.log <<_ACEOF
2117 This file contains any messages produced by compilers while
2118 running configure, to aid debugging if configure makes a mistake.
2119
2120 It was created by wxWidgets $as_me 2.9.3, which was
2121 generated by GNU Autoconf 2.61.  Invocation command line was
2122
2123   $ $0 $@
2124
2125 _ACEOF
2126 exec 5>>config.log
2127 {
2128 cat <<_ASUNAME
2129 ## --------- ##
2130 ## Platform. ##
2131 ## --------- ##
2132
2133 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2141
2142 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2143 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2144 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2146 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2147 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2148 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2149
2150 _ASUNAME
2151
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   echo "PATH: $as_dir"
2158 done
2159 IFS=$as_save_IFS
2160
2161 } >&5
2162
2163 cat >&5 <<_ACEOF
2164
2165
2166 ## ----------- ##
2167 ## Core tests. ##
2168 ## ----------- ##
2169
2170 _ACEOF
2171
2172
2173 # Keep a trace of the command line.
2174 # Strip out --no-create and --no-recursion so they do not pile up.
2175 # Strip out --silent because we don't want to record it for future runs.
2176 # Also quote any args containing shell meta-characters.
2177 # Make two passes to allow for proper duplicate-argument suppression.
2178 ac_configure_args=
2179 ac_configure_args0=
2180 ac_configure_args1=
2181 ac_must_keep_next=false
2182 for ac_pass in 1 2
2183 do
2184   for ac_arg
2185   do
2186     case $ac_arg in
2187     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189     | -silent | --silent | --silen | --sile | --sil)
2190       continue ;;
2191     *\'*)
2192       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193     esac
2194     case $ac_pass in
2195     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2196     2)
2197       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2198       if test $ac_must_keep_next = true; then
2199         ac_must_keep_next=false # Got value, back to normal.
2200       else
2201         case $ac_arg in
2202           *=* | --config-cache | -C | -disable-* | --disable-* \
2203           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205           | -with-* | --with-* | -without-* | --without-* | --x)
2206             case "$ac_configure_args0 " in
2207               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208             esac
2209             ;;
2210           -* ) ac_must_keep_next=true ;;
2211         esac
2212       fi
2213       ac_configure_args="$ac_configure_args '$ac_arg'"
2214       ;;
2215     esac
2216   done
2217 done
2218 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2219 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2220
2221 # When interrupted or exit'd, cleanup temporary files, and complete
2222 # config.log.  We remove comments because anyway the quotes in there
2223 # would cause problems or look ugly.
2224 # WARNING: Use '\'' to represent an apostrophe within the trap.
2225 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226 trap 'exit_status=$?
2227   # Save into config.log some information that might help in debugging.
2228   {
2229     echo
2230
2231     cat <<\_ASBOX
2232 ## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##
2235 _ASBOX
2236     echo
2237     # The following way of writing the cache mishandles newlines in values,
2238 (
2239   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2240     eval ac_val=\$$ac_var
2241     case $ac_val in #(
2242     *${as_nl}*)
2243       case $ac_var in #(
2244       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2245 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2246       esac
2247       case $ac_var in #(
2248       _ | IFS | as_nl) ;; #(
2249       *) $as_unset $ac_var ;;
2250       esac ;;
2251     esac
2252   done
2253   (set) 2>&1 |
2254     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255     *${as_nl}ac_space=\ *)
2256       sed -n \
2257         "s/'\''/'\''\\\\'\'''\''/g;
2258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259       ;; #(
2260     *)
2261       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262       ;;
2263     esac |
2264     sort
2265 )
2266     echo
2267
2268     cat <<\_ASBOX
2269 ## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##
2272 _ASBOX
2273     echo
2274     for ac_var in $ac_subst_vars
2275     do
2276       eval ac_val=\$$ac_var
2277       case $ac_val in
2278       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279       esac
2280       echo "$ac_var='\''$ac_val'\''"
2281     done | sort
2282     echo
2283
2284     if test -n "$ac_subst_files"; then
2285       cat <<\_ASBOX
2286 ## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##
2289 _ASBOX
2290       echo
2291       for ac_var in $ac_subst_files
2292       do
2293         eval ac_val=\$$ac_var
2294         case $ac_val in
2295         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296         esac
2297         echo "$ac_var='\''$ac_val'\''"
2298       done | sort
2299       echo
2300     fi
2301
2302     if test -s confdefs.h; then
2303       cat <<\_ASBOX
2304 ## ----------- ##
2305 ## confdefs.h. ##
2306 ## ----------- ##
2307 _ASBOX
2308       echo
2309       cat confdefs.h
2310       echo
2311     fi
2312     test "$ac_signal" != 0 &&
2313       echo "$as_me: caught signal $ac_signal"
2314     echo "$as_me: exit $exit_status"
2315   } >&5
2316   rm -f core *.core core.conftest.* &&
2317     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2318     exit $exit_status
2319 ' 0
2320 for ac_signal in 1 2 13 15; do
2321   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2322 done
2323 ac_signal=0
2324
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2327
2328 # Predefined preprocessor variables.
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2333
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337 _ACEOF
2338
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2342 _ACEOF
2343
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_STRING "$PACKAGE_STRING"
2347 _ACEOF
2348
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 _ACEOF
2353
2354
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer explicitly selected file to automatically selected ones.
2357 if test -n "$CONFIG_SITE"; then
2358   set x "$CONFIG_SITE"
2359 elif test "x$prefix" != xNONE; then
2360   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2361 else
2362   set x "$ac_default_prefix/share/config.site" \
2363         "$ac_default_prefix/etc/config.site"
2364 fi
2365 shift
2366 for ac_site_file
2367 do
2368   if test -r "$ac_site_file"; then
2369     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2370 echo "$as_me: loading site script $ac_site_file" >&6;}
2371     sed 's/^/| /' "$ac_site_file" >&5
2372     . "$ac_site_file"
2373   fi
2374 done
2375
2376 if test -r "$cache_file"; then
2377   # Some versions of bash will fail to source /dev/null (special
2378   # files actually), so we avoid doing that.
2379   if test -f "$cache_file"; then
2380     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2381 echo "$as_me: loading cache $cache_file" >&6;}
2382     case $cache_file in
2383       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2384       *)                      . "./$cache_file";;
2385     esac
2386   fi
2387 else
2388   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2389 echo "$as_me: creating cache $cache_file" >&6;}
2390   >$cache_file
2391 fi
2392
2393 # Check that the precious variables saved in the cache have kept the same
2394 # value.
2395 ac_cache_corrupted=false
2396 for ac_var in $ac_precious_vars; do
2397   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2398   eval ac_new_set=\$ac_env_${ac_var}_set
2399   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2400   eval ac_new_val=\$ac_env_${ac_var}_value
2401   case $ac_old_set,$ac_new_set in
2402     set,)
2403       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2404 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2405       ac_cache_corrupted=: ;;
2406     ,set)
2407       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2408 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2409       ac_cache_corrupted=: ;;
2410     ,);;
2411     *)
2412       if test "x$ac_old_val" != "x$ac_new_val"; then
2413         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2414 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2416 echo "$as_me:   former value:  $ac_old_val" >&2;}
2417         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2418 echo "$as_me:   current value: $ac_new_val" >&2;}
2419         ac_cache_corrupted=:
2420       fi;;
2421   esac
2422   # Pass precious variables to config.status.
2423   if test "$ac_new_set" = set; then
2424     case $ac_new_val in
2425     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426     *) ac_arg=$ac_var=$ac_new_val ;;
2427     esac
2428     case " $ac_configure_args " in
2429       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2430       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2431     esac
2432   fi
2433 done
2434 if $ac_cache_corrupted; then
2435   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2436 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2438 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472
2473
2474
2475
2476 ac_aux_dir=
2477 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2478   if test -f "$ac_dir/install-sh"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/install-sh -c"
2481     break
2482   elif test -f "$ac_dir/install.sh"; then
2483     ac_aux_dir=$ac_dir
2484     ac_install_sh="$ac_aux_dir/install.sh -c"
2485     break
2486   elif test -f "$ac_dir/shtool"; then
2487     ac_aux_dir=$ac_dir
2488     ac_install_sh="$ac_aux_dir/shtool install -c"
2489     break
2490   fi
2491 done
2492 if test -z "$ac_aux_dir"; then
2493   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2494 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2495    { (exit 1); exit 1; }; }
2496 fi
2497
2498 # These three variables are undocumented and unsupported,
2499 # and are intended to be withdrawn in a future Autoconf release.
2500 # They can cause serious problems if a builder's source tree is in a directory
2501 # whose full name contains unusual characters.
2502 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2503 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2504 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2505
2506
2507 # Make sure we can run config.sub.
2508 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2509   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2510 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2511    { (exit 1); exit 1; }; }
2512
2513 { echo "$as_me:$LINENO: checking build system type" >&5
2514 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2515 if test "${ac_cv_build+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   ac_build_alias=$build_alias
2519 test "x$ac_build_alias" = x &&
2520   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2521 test "x$ac_build_alias" = x &&
2522   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2523 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2524    { (exit 1); exit 1; }; }
2525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2526   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2527 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2528    { (exit 1); exit 1; }; }
2529
2530 fi
2531 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2532 echo "${ECHO_T}$ac_cv_build" >&6; }
2533 case $ac_cv_build in
2534 *-*-*) ;;
2535 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2536 echo "$as_me: error: invalid value of canonical build" >&2;}
2537    { (exit 1); exit 1; }; };;
2538 esac
2539 build=$ac_cv_build
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_build
2542 shift
2543 build_cpu=$1
2544 build_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 build_os=$*
2549 IFS=$ac_save_IFS
2550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2551
2552
2553 { echo "$as_me:$LINENO: checking host system type" >&5
2554 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2555 if test "${ac_cv_host+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test "x$host_alias" = x; then
2559   ac_cv_host=$ac_cv_build
2560 else
2561   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 fi
2568 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2569 echo "${ECHO_T}$ac_cv_host" >&6; }
2570 case $ac_cv_host in
2571 *-*-*) ;;
2572 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2573 echo "$as_me: error: invalid value of canonical host" >&2;}
2574    { (exit 1); exit 1; }; };;
2575 esac
2576 host=$ac_cv_host
2577 ac_save_IFS=$IFS; IFS='-'
2578 set x $ac_cv_host
2579 shift
2580 host_cpu=$1
2581 host_vendor=$2
2582 shift; shift
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2585 host_os=$*
2586 IFS=$ac_save_IFS
2587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588
2589
2590
2591 if test "$cross_compiling" != "no"; then
2592     HOST_PREFIX="${host_alias}-"
2593     HOST_SUFFIX="-$host_alias"
2594 else
2595     HOST_PREFIX=
2596     HOST_SUFFIX=
2597 fi
2598
2599
2600 wx_major_version_number=2
2601 wx_minor_version_number=9
2602 wx_release_number=3
2603 wx_subrelease_number=0
2604
2605 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2606 WX_VERSION=$WX_RELEASE.$wx_release_number
2607 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2608
2609 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2610
2611
2612 wx_top_builddir="`pwd`"
2613
2614
2615
2616
2617 USE_UNIX=1
2618 USE_OS2=0
2619 USE_WIN32=0
2620 USE_DOS=0
2621 USE_BEOS=0
2622 USE_MAC=0
2623
2624 USE_AIX=
2625 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2626 USE_GNU=                            USE_HPUX=
2627 USE_LINUX=
2628 USE_NETBSD=
2629 USE_OPENBSD=
2630 USE_OSF=                            USE_SGI=
2631 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2632 USE_ULTRIX=
2633 USE_UNIXWARE=
2634
2635 USE_ALPHA=
2636
2637 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2638
2639 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2640
2641 DEFAULT_wxUSE_OLD_COCOA=0
2642 DEFAULT_wxUSE_GTK=0
2643 DEFAULT_wxUSE_OSX_CARBON=0
2644 DEFAULT_wxUSE_OSX_COCOA=0
2645 DEFAULT_wxUSE_OSX_IPHONE=0
2646 DEFAULT_wxUSE_MGL=0
2647 DEFAULT_wxUSE_MICROWIN=0
2648 DEFAULT_wxUSE_MOTIF=0
2649 DEFAULT_wxUSE_MSW=0
2650 DEFAULT_wxUSE_PM=0
2651 DEFAULT_wxUSE_X11=0
2652 DEFAULT_wxUSE_DFB=0
2653
2654 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2655 DEFAULT_DEFAULT_wxUSE_GTK=0
2656 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2657 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2658 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2659 DEFAULT_DEFAULT_wxUSE_MGL=0
2660 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2661 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2662 DEFAULT_DEFAULT_wxUSE_MSW=0
2663 DEFAULT_DEFAULT_wxUSE_PM=0
2664 DEFAULT_DEFAULT_wxUSE_X11=0
2665 DEFAULT_DEFAULT_wxUSE_DFB=0
2666
2667 PROGRAM_EXT=
2668 SAMPLES_RPATH_FLAG=
2669 DYLIB_RPATH_INSTALL=
2670 DYLIB_RPATH_POSTLINK=
2671
2672 DEFAULT_STD_FLAG=yes
2673
2674 case "${host}" in
2675   *-hp-hpux* )
2676     USE_HPUX=1
2677     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2678     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2679     cat >>confdefs.h <<\_ACEOF
2680 #define __HPUX__ 1
2681 _ACEOF
2682
2683
2684             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2685   ;;
2686   *-*-linux* )
2687     USE_LINUX=1
2688     cat >>confdefs.h <<\_ACEOF
2689 #define __LINUX__ 1
2690 _ACEOF
2691
2692     TMP=`uname -m`
2693     if test "x$TMP" = "xalpha"; then
2694       USE_ALPHA=1
2695       cat >>confdefs.h <<\_ACEOF
2696 #define __ALPHA__ 1
2697 _ACEOF
2698
2699     fi
2700     DEFAULT_DEFAULT_wxUSE_GTK=1
2701   ;;
2702   *-*-gnu* | *-*-k*bsd*-gnu )
2703     USE_GNU=1
2704     TMP=`uname -m`
2705     if test "x$TMP" = "xalpha"; then
2706       USE_ALPHA=1
2707       cat >>confdefs.h <<\_ACEOF
2708 #define __ALPHA__ 1
2709 _ACEOF
2710
2711     fi
2712     DEFAULT_DEFAULT_wxUSE_GTK=1
2713   ;;
2714   *-*-irix5* | *-*-irix6* )
2715     USE_SGI=1
2716     USE_SVR4=1
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __SGI__ 1
2719 _ACEOF
2720
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __SVR4__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2726   ;;
2727   *-*-qnx*)
2728     USE_QNX=1
2729     cat >>confdefs.h <<\_ACEOF
2730 #define __QNX__ 1
2731 _ACEOF
2732
2733     DEFAULT_DEFAULT_wxUSE_X11=1
2734   ;;
2735   *-*-solaris2* )
2736     USE_SUN=1
2737     USE_SOLARIS=1
2738     USE_SVR4=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __SUN__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __SOLARIS__ 1
2745 _ACEOF
2746
2747     cat >>confdefs.h <<\_ACEOF
2748 #define __SVR4__ 1
2749 _ACEOF
2750
2751     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2752     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2753   ;;
2754   *-*-sunos4* )
2755     USE_SUN=1
2756     USE_SUNOS=1
2757     USE_BSD=1
2758     cat >>confdefs.h <<\_ACEOF
2759 #define __SUN__ 1
2760 _ACEOF
2761
2762     cat >>confdefs.h <<\_ACEOF
2763 #define __SUNOS__ 1
2764 _ACEOF
2765
2766     cat >>confdefs.h <<\_ACEOF
2767 #define __BSD__ 1
2768 _ACEOF
2769
2770     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2771   ;;
2772   *-*-freebsd*)
2773     USE_BSD=1
2774     USE_FREEBSD=1
2775     cat >>confdefs.h <<\_ACEOF
2776 #define __FREEBSD__ 1
2777 _ACEOF
2778
2779     cat >>confdefs.h <<\_ACEOF
2780 #define __BSD__ 1
2781 _ACEOF
2782
2783     DEFAULT_DEFAULT_wxUSE_GTK=1
2784   ;;
2785   *-*-openbsd*|*-*-mirbsd*)
2786     USE_BSD=1
2787     USE_OPENBSD=1
2788     cat >>confdefs.h <<\_ACEOF
2789 #define __OPENBSD__ 1
2790 _ACEOF
2791
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __BSD__ 1
2794 _ACEOF
2795
2796     DEFAULT_DEFAULT_wxUSE_GTK=1
2797   ;;
2798   *-*-netbsd*)
2799     USE_BSD=1
2800     USE_NETBSD=1
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __NETBSD__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __BSD__ 1
2807 _ACEOF
2808
2809     DEFAULT_DEFAULT_wxUSE_GTK=1
2810     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2811
2812             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2813   ;;
2814   *-*-osf* )
2815     USE_ALPHA=1
2816     USE_OSF=1
2817     cat >>confdefs.h <<\_ACEOF
2818 #define __ALPHA__ 1
2819 _ACEOF
2820
2821     cat >>confdefs.h <<\_ACEOF
2822 #define __OSF__ 1
2823 _ACEOF
2824
2825     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2826     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2827   ;;
2828   *-*-dgux5* )
2829     USE_ALPHA=1
2830     USE_SVR4=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __ALPHA__ 1
2833 _ACEOF
2834
2835     cat >>confdefs.h <<\_ACEOF
2836 #define __SVR4__ 1
2837 _ACEOF
2838
2839     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2840   ;;
2841   *-*-sysv5* )
2842     USE_SYSV=1
2843     USE_SVR4=1
2844     cat >>confdefs.h <<\_ACEOF
2845 #define __SYSV__ 1
2846 _ACEOF
2847
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __SVR4__ 1
2850 _ACEOF
2851
2852     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2853   ;;
2854   *-*-aix* )
2855     USE_AIX=1
2856     USE_SYSV=1
2857     USE_SVR4=1
2858     cat >>confdefs.h <<\_ACEOF
2859 #define __AIX__ 1
2860 _ACEOF
2861
2862     cat >>confdefs.h <<\_ACEOF
2863 #define __SYSV__ 1
2864 _ACEOF
2865
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __SVR4__ 1
2868 _ACEOF
2869
2870     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2871   ;;
2872
2873   *-*-*UnixWare*)
2874     USE_SYSV=1
2875     USE_SVR4=1
2876     USE_UNIXWARE=1
2877     cat >>confdefs.h <<\_ACEOF
2878 #define __UNIXWARE__ 1
2879 _ACEOF
2880
2881   ;;
2882
2883   *-*-cygwin* | *-*-mingw32* )
2884                 PROGRAM_EXT=".exe"
2885     DEFAULT_DEFAULT_wxUSE_MSW=1
2886   ;;
2887
2888   *-pc-msdosdjgpp )
2889     USE_UNIX=0
2890     USE_DOS=1
2891     cat >>confdefs.h <<\_ACEOF
2892 #define __DOS__ 1
2893 _ACEOF
2894
2895     PROGRAM_EXT=".exe"
2896     DEFAULT_DEFAULT_wxUSE_MGL=1
2897   ;;
2898
2899   *-pc-os2_emx | *-pc-os2-emx )
2900     cat >>confdefs.h <<\_ACEOF
2901 #define __EMX__ 1
2902 _ACEOF
2903
2904     USE_OS2=1
2905     cat >>confdefs.h <<\_ACEOF
2906 #define __OS2__ 1
2907 _ACEOF
2908
2909     PROGRAM_EXT=".exe"
2910     DEFAULT_DEFAULT_wxUSE_PM=1
2911         CXX=gcc
2912     LDFLAGS="$LDFLAGS -Zcrtdll"
2913                         ac_executable_extensions=".exe"
2914     export ac_executable_extensions
2915             ac_save_IFS="$IFS"
2916     IFS='\\'
2917     ac_TEMP_PATH=
2918     for ac_dir in $PATH; do
2919       IFS=$ac_save_IFS
2920       if test -z "$ac_TEMP_PATH"; then
2921         ac_TEMP_PATH="$ac_dir"
2922       else
2923         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2924       fi
2925     done
2926     export PATH="$ac_TEMP_PATH"
2927     unset ac_TEMP_PATH
2928     DEFAULT_STD_FLAG=no
2929   ;;
2930
2931   arm-apple-darwin*)
2932         USE_BSD=1
2933     USE_DARWIN=1
2934     cat >>confdefs.h <<\_ACEOF
2935 #define __BSD__ 1
2936 _ACEOF
2937
2938     cat >>confdefs.h <<\_ACEOF
2939 #define __DARWIN__ 1
2940 _ACEOF
2941
2942     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2943   ;;
2944
2945   *-*-darwin* )
2946         USE_BSD=1
2947     USE_DARWIN=1
2948     cat >>confdefs.h <<\_ACEOF
2949 #define __BSD__ 1
2950 _ACEOF
2951
2952     cat >>confdefs.h <<\_ACEOF
2953 #define __DARWIN__ 1
2954 _ACEOF
2955
2956     cat >>confdefs.h <<\_ACEOF
2957 #define TARGET_CARBON 1
2958 _ACEOF
2959
2960     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2961   ;;
2962
2963   *-*-beos* )
2964         USE_BEOS=1
2965     cat >>confdefs.h <<\_ACEOF
2966 #define __BEOS__ 1
2967 _ACEOF
2968
2969   ;;
2970
2971   *)
2972     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2973 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2974     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2975 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2976
2977     DEFAULT_DEFAULT_wxUSE_X11=1
2978     DEFAULT_wxUSE_SHARED=no
2979 esac
2980
2981
2982
2983 DEFAULT_wxUSE_ALL_FEATURES=yes
2984
2985 DEFAULT_wxUSE_STD_CONTAINERS=no
2986 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2987 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2988
2989 DEFAULT_wxUSE_DMALLOC=no
2990 DEFAULT_wxUSE_LIBGNOMEVFS=no
2991 DEFAULT_wxUSE_LIBHILDON=no
2992 DEFAULT_wxUSE_LIBHILDON2=no
2993 DEFAULT_wxUSE_LIBMSPACK=no
2994 DEFAULT_wxUSE_LIBSDL=no
2995
2996 DEFAULT_wxUSE_ACCESSIBILITY=no
2997 DEFAULT_wxUSE_IPV6=no
2998 DEFAULT_wxUSE_GSTREAMER8=no
2999
3000 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3001 DEFAULT_wxUSE_UNICODE_UTF8=auto
3002 DEFAULT_wxUSE_OPENGL=auto
3003 DEFAULT_wxUSE_MEDIACTRL=auto
3004 DEFAULT_wxUSE_COMPILER_TLS=auto
3005 DEFAULT_wxUSE_HOTKEY=auto
3006 DEFAULT_wxUSE_METAFILE=auto
3007
3008 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3009
3010 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3011 DEFAULT_wxUSE_MAC_ARCH=no
3012
3013 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3014
3015 DEFAULT_wxUSE_GTK2=yes
3016
3017 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3018
3019
3020
3021
3022
3023           enablestring=disable
3024           defaultval=
3025           if test -z "$defaultval"; then
3026               if test x"$enablestring" = xdisable; then
3027                   defaultval=yes
3028               else
3029                   defaultval=no
3030               fi
3031           fi
3032
3033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3034 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3035           # Check whether --enable-gui was given.
3036 if test "${enable_gui+set}" = set; then
3037   enableval=$enable_gui;
3038                           if test "$enableval" = yes; then
3039                             wx_cv_use_gui='wxUSE_GUI=yes'
3040                           else
3041                             wx_cv_use_gui='wxUSE_GUI=no'
3042                           fi
3043
3044 else
3045
3046                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3047
3048 fi
3049
3050
3051           eval "$wx_cv_use_gui"
3052
3053           if test x"$enablestring" = xdisable; then
3054             if test $wxUSE_GUI = no; then
3055               result=yes
3056             else
3057               result=no
3058             fi
3059           else
3060             result=$wxUSE_GUI
3061           fi
3062
3063           { echo "$as_me:$LINENO: result: $result" >&5
3064 echo "${ECHO_T}$result" >&6; }
3065
3066
3067           enablestring=
3068           defaultval=
3069           if test -z "$defaultval"; then
3070               if test x"$enablestring" = xdisable; then
3071                   defaultval=yes
3072               else
3073                   defaultval=no
3074               fi
3075           fi
3076
3077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3078 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3079           # Check whether --enable-monolithic was given.
3080 if test "${enable_monolithic+set}" = set; then
3081   enableval=$enable_monolithic;
3082                           if test "$enableval" = yes; then
3083                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3084                           else
3085                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3086                           fi
3087
3088 else
3089
3090                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3091
3092 fi
3093
3094
3095           eval "$wx_cv_use_monolithic"
3096
3097           if test x"$enablestring" = xdisable; then
3098             if test $wxUSE_MONOLITHIC = no; then
3099               result=yes
3100             else
3101               result=no
3102             fi
3103           else
3104             result=$wxUSE_MONOLITHIC
3105           fi
3106
3107           { echo "$as_me:$LINENO: result: $result" >&5
3108 echo "${ECHO_T}$result" >&6; }
3109
3110
3111           enablestring=
3112           defaultval=
3113           if test -z "$defaultval"; then
3114               if test x"$enablestring" = xdisable; then
3115                   defaultval=yes
3116               else
3117                   defaultval=no
3118               fi
3119           fi
3120
3121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3122 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3123           # Check whether --enable-plugins was given.
3124 if test "${enable_plugins+set}" = set; then
3125   enableval=$enable_plugins;
3126                           if test "$enableval" = yes; then
3127                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3128                           else
3129                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3130                           fi
3131
3132 else
3133
3134                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3135
3136 fi
3137
3138
3139           eval "$wx_cv_use_plugins"
3140
3141           if test x"$enablestring" = xdisable; then
3142             if test $wxUSE_PLUGINS = no; then
3143               result=yes
3144             else
3145               result=no
3146             fi
3147           else
3148             result=$wxUSE_PLUGINS
3149           fi
3150
3151           { echo "$as_me:$LINENO: result: $result" >&5
3152 echo "${ECHO_T}$result" >&6; }
3153
3154
3155           withstring=without
3156           defaultval=$wxUSE_ALL_FEATURES
3157           if test -z "$defaultval"; then
3158               if test x"$withstring" = xwithout; then
3159                   defaultval=yes
3160               else
3161                   defaultval=no
3162               fi
3163           fi
3164           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3165 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3166
3167 # Check whether --with-subdirs was given.
3168 if test "${with_subdirs+set}" = set; then
3169   withval=$with_subdirs;
3170                         if test "$withval" = yes; then
3171                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3172                         else
3173                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3174                         fi
3175
3176 else
3177
3178                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3179
3180 fi
3181
3182
3183           eval "$wx_cv_use_subdirs"
3184
3185           if test x"$withstring" = xwithout; then
3186             if test $wxWITH_SUBDIRS = yes; then
3187               result=no
3188             else
3189               result=yes
3190             fi
3191           else
3192             result=$wxWITH_SUBDIRS
3193           fi
3194
3195           { echo "$as_me:$LINENO: result: $result" >&5
3196 echo "${ECHO_T}$result" >&6; }
3197
3198
3199 # Check whether --with-flavour was given.
3200 if test "${with_flavour+set}" = set; then
3201   withval=$with_flavour; WX_FLAVOUR="$withval"
3202 fi
3203
3204
3205           enablestring=
3206           defaultval=
3207           if test -z "$defaultval"; then
3208               if test x"$enablestring" = xdisable; then
3209                   defaultval=yes
3210               else
3211                   defaultval=no
3212               fi
3213           fi
3214
3215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3216 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3217           # Check whether --enable-official_build was given.
3218 if test "${enable_official_build+set}" = set; then
3219   enableval=$enable_official_build;
3220                           if test "$enableval" = yes; then
3221                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3222                           else
3223                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3224                           fi
3225
3226 else
3227
3228                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3229
3230 fi
3231
3232
3233           eval "$wx_cv_use_official_build"
3234
3235           if test x"$enablestring" = xdisable; then
3236             if test $wxUSE_OFFICIAL_BUILD = no; then
3237               result=yes
3238             else
3239               result=no
3240             fi
3241           else
3242             result=$wxUSE_OFFICIAL_BUILD
3243           fi
3244
3245           { echo "$as_me:$LINENO: result: $result" >&5
3246 echo "${ECHO_T}$result" >&6; }
3247
3248 # Check whether --enable-vendor was given.
3249 if test "${enable_vendor+set}" = set; then
3250   enableval=$enable_vendor; VENDOR="$enableval"
3251 fi
3252
3253 if test "x$VENDOR" = "x"; then
3254     VENDOR="custom"
3255 fi
3256
3257
3258           enablestring=disable
3259           defaultval=
3260           if test -z "$defaultval"; then
3261               if test x"$enablestring" = xdisable; then
3262                   defaultval=yes
3263               else
3264                   defaultval=no
3265               fi
3266           fi
3267
3268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3269 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3270           # Check whether --enable-all-features was given.
3271 if test "${enable_all_features+set}" = set; then
3272   enableval=$enable_all_features;
3273                           if test "$enableval" = yes; then
3274                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3275                           else
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3277                           fi
3278
3279 else
3280
3281                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3282
3283 fi
3284
3285
3286           eval "$wx_cv_use_all_features"
3287
3288           if test x"$enablestring" = xdisable; then
3289             if test $wxUSE_ALL_FEATURES = no; then
3290               result=yes
3291             else
3292               result=no
3293             fi
3294           else
3295             result=$wxUSE_ALL_FEATURES
3296           fi
3297
3298           { echo "$as_me:$LINENO: result: $result" >&5
3299 echo "${ECHO_T}$result" >&6; }
3300
3301
3302 if test "$wxUSE_ALL_FEATURES" = "no"; then
3303                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3304     DEFAULT_wxUSE_MEDIACTRL=no
3305 fi
3306
3307
3308 if test "$wxUSE_GUI" = "yes"; then
3309
3310
3311           enablestring=
3312           defaultval=
3313           if test -z "$defaultval"; then
3314               if test x"$enablestring" = xdisable; then
3315                   defaultval=yes
3316               else
3317                   defaultval=no
3318               fi
3319           fi
3320
3321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3322 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3323           # Check whether --enable-universal was given.
3324 if test "${enable_universal+set}" = set; then
3325   enableval=$enable_universal;
3326                           if test "$enableval" = yes; then
3327                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3328                           else
3329                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3330                           fi
3331
3332 else
3333
3334                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3335
3336 fi
3337
3338
3339           eval "$wx_cv_use_universal"
3340
3341           if test x"$enablestring" = xdisable; then
3342             if test $wxUSE_UNIVERSAL = no; then
3343               result=yes
3344             else
3345               result=no
3346             fi
3347           else
3348             result=$wxUSE_UNIVERSAL
3349           fi
3350
3351           { echo "$as_me:$LINENO: result: $result" >&5
3352 echo "${ECHO_T}$result" >&6; }
3353
3354 if test "$wxUSE_UNIVERSAL" = "yes"; then
3355
3356 # Check whether --with-themes was given.
3357 if test "${with_themes+set}" = set; then
3358   withval=$with_themes; wxUNIV_THEMES="$withval"
3359 fi
3360
3361 fi
3362
3363
3364 # Check whether --with-gtk was given.
3365 if test "${with_gtk+set}" = set; then
3366   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3367 fi
3368
3369
3370 # Check whether --with-motif was given.
3371 if test "${with_motif+set}" = set; then
3372   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3373 fi
3374
3375
3376 # Check whether --with-osx_carbon was given.
3377 if test "${with_osx_carbon+set}" = set; then
3378   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3379 fi
3380
3381
3382 # Check whether --with-osx_cocoa was given.
3383 if test "${with_osx_cocoa+set}" = set; then
3384   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3385 fi
3386
3387
3388 # Check whether --with-osx_iphone was given.
3389 if test "${with_osx_iphone+set}" = set; then
3390   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3391 fi
3392
3393
3394 # Check whether --with-osx was given.
3395 if test "${with_osx+set}" = set; then
3396   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3397 fi
3398
3399
3400 # Check whether --with-carbon was given.
3401 if test "${with_carbon+set}" = set; then
3402   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3403 fi
3404
3405
3406 # Check whether --with-cocoa was given.
3407 if test "${with_cocoa+set}" = set; then
3408   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3409 fi
3410
3411
3412 # Check whether --with-iphone was given.
3413 if test "${with_iphone+set}" = set; then
3414   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3415 fi
3416
3417
3418 # Check whether --with-mac was given.
3419 if test "${with_mac+set}" = set; then
3420   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3421 fi
3422
3423
3424 # Check whether --with-old_cocoa was given.
3425 if test "${with_old_cocoa+set}" = set; then
3426   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3427 fi
3428
3429
3430 # Check whether --with-wine was given.
3431 if test "${with_wine+set}" = set; then
3432   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3433 fi
3434
3435
3436 # Check whether --with-msw was given.
3437 if test "${with_msw+set}" = set; then
3438   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3439 fi
3440
3441
3442 # Check whether --with-pm was given.
3443 if test "${with_pm+set}" = set; then
3444   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3445 fi
3446
3447
3448 # Check whether --with-mgl was given.
3449 if test "${with_mgl+set}" = set; then
3450   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3451 fi
3452
3453
3454 # Check whether --with-directfb was given.
3455 if test "${with_directfb+set}" = set; then
3456   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3457 fi
3458
3459
3460 # Check whether --with-microwin was given.
3461 if test "${with_microwin+set}" = set; then
3462   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3463 fi
3464
3465
3466 # Check whether --with-x11 was given.
3467 if test "${with_x11+set}" = set; then
3468   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3469 fi
3470
3471
3472           enablestring=
3473           defaultval=
3474           if test -z "$defaultval"; then
3475               if test x"$enablestring" = xdisable; then
3476                   defaultval=yes
3477               else
3478                   defaultval=no
3479               fi
3480           fi
3481
3482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3483 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3484           # Check whether --enable-nanox was given.
3485 if test "${enable_nanox+set}" = set; then
3486   enableval=$enable_nanox;
3487                           if test "$enableval" = yes; then
3488                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3489                           else
3490                             wx_cv_use_nanox='wxUSE_NANOX=no'
3491                           fi
3492
3493 else
3494
3495                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3496
3497 fi
3498
3499
3500           eval "$wx_cv_use_nanox"
3501
3502           if test x"$enablestring" = xdisable; then
3503             if test $wxUSE_NANOX = no; then
3504               result=yes
3505             else
3506               result=no
3507             fi
3508           else
3509             result=$wxUSE_NANOX
3510           fi
3511
3512           { echo "$as_me:$LINENO: result: $result" >&5
3513 echo "${ECHO_T}$result" >&6; }
3514
3515
3516 # Check whether --enable-gtk2 was given.
3517 if test "${enable_gtk2+set}" = set; then
3518   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3519 fi
3520
3521
3522           enablestring=
3523           defaultval=
3524           if test -z "$defaultval"; then
3525               if test x"$enablestring" = xdisable; then
3526                   defaultval=yes
3527               else
3528                   defaultval=no
3529               fi
3530           fi
3531
3532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3533 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3534           # Check whether --enable-gpe was given.
3535 if test "${enable_gpe+set}" = set; then
3536   enableval=$enable_gpe;
3537                           if test "$enableval" = yes; then
3538                             wx_cv_use_gpe='wxUSE_GPE=yes'
3539                           else
3540                             wx_cv_use_gpe='wxUSE_GPE=no'
3541                           fi
3542
3543 else
3544
3545                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3546
3547 fi
3548
3549
3550           eval "$wx_cv_use_gpe"
3551
3552           if test x"$enablestring" = xdisable; then
3553             if test $wxUSE_GPE = no; then
3554               result=yes
3555             else
3556               result=no
3557             fi
3558           else
3559             result=$wxUSE_GPE
3560           fi
3561
3562           { echo "$as_me:$LINENO: result: $result" >&5
3563 echo "${ECHO_T}$result" >&6; }
3564
3565
3566
3567 { echo "$as_me:$LINENO: checking for toolkit" >&5
3568 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3569
3570
3571
3572 # In Wine, we need to default to MSW, not GTK or MOTIF
3573 if test "$wxUSE_WINE" = "yes"; then
3574     DEFAULT_DEFAULT_wxUSE_GTK=0
3575     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3576     DEFAULT_DEFAULT_wxUSE_MSW=1
3577     wxUSE_SHARED=no
3578     CC=${CC:-winegcc}
3579     CXX=${CXX:-wineg++}
3580 fi
3581
3582
3583 if test "$wxUSE_GUI" = "yes"; then
3584
3585     if test "$USE_BEOS" = 1; then
3586         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3587 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3588    { (exit 1); exit 1; }; }
3589     fi
3590
3591     if test "$TOOLKIT_GIVEN" = 1; then
3592             for toolkit in $ALL_TOOLKITS; do
3593         var=wxUSE_$toolkit
3594         eval "value=\$${var}"
3595         if test "x$value" = "xno"; then
3596           eval "$var=0"
3597         elif test "x$value" != "x"; then
3598           eval "$var=1"
3599         fi
3600
3601         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3602           eval "wx${toolkit}_VERSION=$value"
3603         fi
3604       done
3605     else
3606             for toolkit in $ALL_TOOLKITS; do
3607         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3608         eval "wxUSE_$toolkit=\$${var}"
3609       done
3610     fi
3611
3612             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3613                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3614                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3615
3616         case "${host}" in
3617       *-pc-os2_emx | *-pc-os2-emx )
3618         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3619     esac
3620
3621     case "$NUM_TOOLKITS" in
3622       1)
3623       ;;
3624       0)
3625         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3626 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3627    { (exit 1); exit 1; }; }
3628       ;;
3629       *)
3630         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3631 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3632    { (exit 1); exit 1; }; }
3633     esac
3634
3635     # to be removed when --disable-gtk2 isn't needed
3636     if test "x$wxUSE_GTK2" = "xyes"; then
3637         wxGTK_VERSION=2
3638         wxUSE_GTK1=0
3639     elif test "x$wxUSE_GTK2" = "xno"; then
3640         wxGTK_VERSION=1
3641         wxUSE_GTK1=1
3642     fi
3643
3644     for toolkit in $ALL_TOOLKITS; do
3645         var=wxUSE_$toolkit
3646         eval "value=\$${var}"
3647         if test "$value" = 1; then
3648           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3649           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3650 echo "${ECHO_T}$toolkit_echo" >&6; }
3651         fi
3652     done
3653 else
3654     if test "x$host_alias" != "x"; then
3655         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3656 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3657     else
3658         { echo "$as_me:$LINENO: result: base only" >&5
3659 echo "${ECHO_T}base only" >&6; }
3660     fi
3661 fi
3662
3663 wxUSE_MAC=0
3664 if test "$wxUSE_OSX_CARBON" = 1 \
3665        -o "$wxUSE_OSX_COCOA" = 1 \
3666        -o "$wxUSE_OSX_IPHONE" = 1; then
3667     wxUSE_MAC=1
3668 fi
3669
3670
3671
3672           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3673 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3674
3675 # Check whether --with-libpng was given.
3676 if test "${with_libpng+set}" = set; then
3677   withval=$with_libpng;
3678                         if test "$withval" = yes; then
3679                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3680                         elif test "$withval" = no; then
3681                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3682                         elif test "$withval" = sys; then
3683                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3684                         elif test "$withval" = builtin; then
3685                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3686                         else
3687                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3688 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3689    { (exit 1); exit 1; }; }
3690                         fi
3691
3692 else
3693
3694                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3695
3696 fi
3697
3698
3699           eval "$wx_cv_use_libpng"
3700
3701           if test "$wxUSE_LIBPNG" = yes; then
3702             { echo "$as_me:$LINENO: result: yes" >&5
3703 echo "${ECHO_T}yes" >&6; }
3704           elif test "$wxUSE_LIBPNG" = no; then
3705             { echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6; }
3707           elif test "$wxUSE_LIBPNG" = sys; then
3708             { echo "$as_me:$LINENO: result: system version" >&5
3709 echo "${ECHO_T}system version" >&6; }
3710           elif test "$wxUSE_LIBPNG" = builtin; then
3711             { echo "$as_me:$LINENO: result: builtin version" >&5
3712 echo "${ECHO_T}builtin version" >&6; }
3713           else
3714             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3715 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3716    { (exit 1); exit 1; }; }
3717           fi
3718
3719
3720           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3721 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3722
3723 # Check whether --with-libjpeg was given.
3724 if test "${with_libjpeg+set}" = set; then
3725   withval=$with_libjpeg;
3726                         if test "$withval" = yes; then
3727                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3728                         elif test "$withval" = no; then
3729                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3730                         elif test "$withval" = sys; then
3731                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3732                         elif test "$withval" = builtin; then
3733                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3734                         else
3735                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3736 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3737    { (exit 1); exit 1; }; }
3738                         fi
3739
3740 else
3741
3742                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3743
3744 fi
3745
3746
3747           eval "$wx_cv_use_libjpeg"
3748
3749           if test "$wxUSE_LIBJPEG" = yes; then
3750             { echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6; }
3752           elif test "$wxUSE_LIBJPEG" = no; then
3753             { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3755           elif test "$wxUSE_LIBJPEG" = sys; then
3756             { echo "$as_me:$LINENO: result: system version" >&5
3757 echo "${ECHO_T}system version" >&6; }
3758           elif test "$wxUSE_LIBJPEG" = builtin; then
3759             { echo "$as_me:$LINENO: result: builtin version" >&5
3760 echo "${ECHO_T}builtin version" >&6; }
3761           else
3762             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3763 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3764    { (exit 1); exit 1; }; }
3765           fi
3766
3767
3768           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3769 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3770
3771 # Check whether --with-libtiff was given.
3772 if test "${with_libtiff+set}" = set; then
3773   withval=$with_libtiff;
3774                         if test "$withval" = yes; then
3775                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3776                         elif test "$withval" = no; then
3777                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3778                         elif test "$withval" = sys; then
3779                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3780                         elif test "$withval" = builtin; then
3781                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3782                         else
3783                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3784 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3785    { (exit 1); exit 1; }; }
3786                         fi
3787
3788 else
3789
3790                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3791
3792 fi
3793
3794
3795           eval "$wx_cv_use_libtiff"
3796
3797           if test "$wxUSE_LIBTIFF" = yes; then
3798             { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3800           elif test "$wxUSE_LIBTIFF" = no; then
3801             { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3803           elif test "$wxUSE_LIBTIFF" = sys; then
3804             { echo "$as_me:$LINENO: result: system version" >&5
3805 echo "${ECHO_T}system version" >&6; }
3806           elif test "$wxUSE_LIBTIFF" = builtin; then
3807             { echo "$as_me:$LINENO: result: builtin version" >&5
3808 echo "${ECHO_T}builtin version" >&6; }
3809           else
3810             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3811 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3812    { (exit 1); exit 1; }; }
3813           fi
3814
3815
3816           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3817 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3818
3819 # Check whether --with-libxpm was given.
3820 if test "${with_libxpm+set}" = set; then
3821   withval=$with_libxpm;
3822                         if test "$withval" = yes; then
3823                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3824                         elif test "$withval" = no; then
3825                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3826                         elif test "$withval" = sys; then
3827                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3828                         elif test "$withval" = builtin; then
3829                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3830                         else
3831                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3832 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3833    { (exit 1); exit 1; }; }
3834                         fi
3835
3836 else
3837
3838                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3839
3840 fi
3841
3842
3843           eval "$wx_cv_use_libxpm"
3844
3845           if test "$wxUSE_LIBXPM" = yes; then
3846             { echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6; }
3848           elif test "$wxUSE_LIBXPM" = no; then
3849             { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3851           elif test "$wxUSE_LIBXPM" = sys; then
3852             { echo "$as_me:$LINENO: result: system version" >&5
3853 echo "${ECHO_T}system version" >&6; }
3854           elif test "$wxUSE_LIBXPM" = builtin; then
3855             { echo "$as_me:$LINENO: result: builtin version" >&5
3856 echo "${ECHO_T}builtin version" >&6; }
3857           else
3858             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3859 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3860    { (exit 1); exit 1; }; }
3861           fi
3862
3863
3864           withstring=
3865           defaultval=$wxUSE_ALL_FEATURES
3866           if test -z "$defaultval"; then
3867               if test x"$withstring" = xwithout; then
3868                   defaultval=yes
3869               else
3870                   defaultval=no
3871               fi
3872           fi
3873           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3874 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3875
3876 # Check whether --with-libiconv was given.
3877 if test "${with_libiconv+set}" = set; then
3878   withval=$with_libiconv;
3879                         if test "$withval" = yes; then
3880                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3881                         else
3882                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3883                         fi
3884
3885 else
3886
3887                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3888
3889 fi
3890
3891
3892           eval "$wx_cv_use_libiconv"
3893
3894           if test x"$withstring" = xwithout; then
3895             if test $wxUSE_LIBICONV = yes; then
3896               result=no
3897             else
3898               result=yes
3899             fi
3900           else
3901             result=$wxUSE_LIBICONV
3902           fi
3903
3904           { echo "$as_me:$LINENO: result: $result" >&5
3905 echo "${ECHO_T}$result" >&6; }
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}-libmspack" >&5
3918 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3919
3920 # Check whether --with-libmspack was given.
3921 if test "${with_libmspack+set}" = set; then
3922   withval=$with_libmspack;
3923                         if test "$withval" = yes; then
3924                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3925                         else
3926                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3927                         fi
3928
3929 else
3930
3931                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3932
3933 fi
3934
3935
3936           eval "$wx_cv_use_libmspack"
3937
3938           if test x"$withstring" = xwithout; then
3939             if test $wxUSE_LIBMSPACK = yes; then
3940               result=no
3941             else
3942               result=yes
3943             fi
3944           else
3945             result=$wxUSE_LIBMSPACK
3946           fi
3947
3948           { echo "$as_me:$LINENO: result: $result" >&5
3949 echo "${ECHO_T}$result" >&6; }
3950
3951
3952           withstring=without
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}-gtkprint" >&5
3962 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3963
3964 # Check whether --with-gtkprint was given.
3965 if test "${with_gtkprint+set}" = set; then
3966   withval=$with_gtkprint;
3967                         if test "$withval" = yes; then
3968                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3969                         else
3970                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3971                         fi
3972
3973 else
3974
3975                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3976
3977 fi
3978
3979
3980           eval "$wx_cv_use_gtkprint"
3981
3982           if test x"$withstring" = xwithout; then
3983             if test $wxUSE_GTKPRINT = yes; then
3984               result=no
3985             else
3986               result=yes
3987             fi
3988           else
3989             result=$wxUSE_GTKPRINT
3990           fi
3991
3992           { echo "$as_me:$LINENO: result: $result" >&5
3993 echo "${ECHO_T}$result" >&6; }
3994
3995
3996           withstring=without
3997           defaultval=$wxUSE_ALL_FEATURES
3998           if test -z "$defaultval"; then
3999               if test x"$withstring" = xwithout; then
4000                   defaultval=yes
4001               else
4002                   defaultval=no
4003               fi
4004           fi
4005           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4006 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4007
4008 # Check whether --with-gnomeprint was given.
4009 if test "${with_gnomeprint+set}" = set; then
4010   withval=$with_gnomeprint;
4011                         if test "$withval" = yes; then
4012                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4013                         else
4014                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4015                         fi
4016
4017 else
4018
4019                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4020
4021 fi
4022
4023
4024           eval "$wx_cv_use_gnomeprint"
4025
4026           if test x"$withstring" = xwithout; then
4027             if test $wxUSE_LIBGNOMEPRINT = yes; then
4028               result=no
4029             else
4030               result=yes
4031             fi
4032           else
4033             result=$wxUSE_LIBGNOMEPRINT
4034           fi
4035
4036           { echo "$as_me:$LINENO: result: $result" >&5
4037 echo "${ECHO_T}$result" >&6; }
4038
4039
4040           withstring=
4041           defaultval=$wxUSE_ALL_FEATURES
4042           if test -z "$defaultval"; then
4043               if test x"$withstring" = xwithout; then
4044                   defaultval=yes
4045               else
4046                   defaultval=no
4047               fi
4048           fi
4049           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4050 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4051
4052 # Check whether --with-gnomevfs was given.
4053 if test "${with_gnomevfs+set}" = set; then
4054   withval=$with_gnomevfs;
4055                         if test "$withval" = yes; then
4056                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4057                         else
4058                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4059                         fi
4060
4061 else
4062
4063                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4064
4065 fi
4066
4067
4068           eval "$wx_cv_use_gnomevfs"
4069
4070           if test x"$withstring" = xwithout; then
4071             if test $wxUSE_LIBGNOMEVFS = yes; then
4072               result=no
4073             else
4074               result=yes
4075             fi
4076           else
4077             result=$wxUSE_LIBGNOMEVFS
4078           fi
4079
4080           { echo "$as_me:$LINENO: result: $result" >&5
4081 echo "${ECHO_T}$result" >&6; }
4082
4083
4084           withstring=
4085           defaultval=$wxUSE_ALL_FEATURES
4086           if test -z "$defaultval"; then
4087               if test x"$withstring" = xwithout; then
4088                   defaultval=yes
4089               else
4090                   defaultval=no
4091               fi
4092           fi
4093           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4094 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4095
4096 # Check whether --with-hildon was given.
4097 if test "${with_hildon+set}" = set; then
4098   withval=$with_hildon;
4099                         if test "$withval" = yes; then
4100                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4101                         else
4102                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4103                         fi
4104
4105 else
4106
4107                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4108
4109 fi
4110
4111
4112           eval "$wx_cv_use_hildon"
4113
4114           if test x"$withstring" = xwithout; then
4115             if test $wxUSE_LIBHILDON = yes; then
4116               result=no
4117             else
4118               result=yes
4119             fi
4120           else
4121             result=$wxUSE_LIBHILDON
4122           fi
4123
4124           { echo "$as_me:$LINENO: result: $result" >&5
4125 echo "${ECHO_T}$result" >&6; }
4126
4127
4128           withstring=
4129           defaultval=$wxUSE_ALL_FEATURES
4130           if test -z "$defaultval"; then
4131               if test x"$withstring" = xwithout; then
4132                   defaultval=yes
4133               else
4134                   defaultval=no
4135               fi
4136           fi
4137           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4138 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4139
4140 # Check whether --with-opengl was given.
4141 if test "${with_opengl+set}" = set; then
4142   withval=$with_opengl;
4143                         if test "$withval" = yes; then
4144                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4145                         else
4146                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4147                         fi
4148
4149 else
4150
4151                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4152
4153 fi
4154
4155
4156           eval "$wx_cv_use_opengl"
4157
4158           if test x"$withstring" = xwithout; then
4159             if test $wxUSE_OPENGL = yes; then
4160               result=no
4161             else
4162               result=yes
4163             fi
4164           else
4165             result=$wxUSE_OPENGL
4166           fi
4167
4168           { echo "$as_me:$LINENO: result: $result" >&5
4169 echo "${ECHO_T}$result" >&6; }
4170
4171
4172 fi
4173
4174
4175           withstring=
4176           defaultval=$wxUSE_ALL_FEATURES
4177           if test -z "$defaultval"; then
4178               if test x"$withstring" = xwithout; then
4179                   defaultval=yes
4180               else
4181                   defaultval=no
4182               fi
4183           fi
4184           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4185 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4186
4187 # Check whether --with-dmalloc was given.
4188 if test "${with_dmalloc+set}" = set; then
4189   withval=$with_dmalloc;
4190                         if test "$withval" = yes; then
4191                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4192                         else
4193                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4194                         fi
4195
4196 else
4197
4198                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4199
4200 fi
4201
4202
4203           eval "$wx_cv_use_dmalloc"
4204
4205           if test x"$withstring" = xwithout; then
4206             if test $wxUSE_DMALLOC = yes; then
4207               result=no
4208             else
4209               result=yes
4210             fi
4211           else
4212             result=$wxUSE_DMALLOC
4213           fi
4214
4215           { echo "$as_me:$LINENO: result: $result" >&5
4216 echo "${ECHO_T}$result" >&6; }
4217
4218
4219           withstring=
4220           defaultval=$wxUSE_ALL_FEATURES
4221           if test -z "$defaultval"; then
4222               if test x"$withstring" = xwithout; then
4223                   defaultval=yes
4224               else
4225                   defaultval=no
4226               fi
4227           fi
4228           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4229 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4230
4231 # Check whether --with-sdl was given.
4232 if test "${with_sdl+set}" = set; then
4233   withval=$with_sdl;
4234                         if test "$withval" = yes; then
4235                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4236                         else
4237                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4238                         fi
4239
4240 else
4241
4242                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4243
4244 fi
4245
4246
4247           eval "$wx_cv_use_sdl"
4248
4249           if test x"$withstring" = xwithout; then
4250             if test $wxUSE_LIBSDL = yes; then
4251               result=no
4252             else
4253               result=yes
4254             fi
4255           else
4256             result=$wxUSE_LIBSDL
4257           fi
4258
4259           { echo "$as_me:$LINENO: result: $result" >&5
4260 echo "${ECHO_T}$result" >&6; }
4261
4262
4263           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4264 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4265
4266 # Check whether --with-regex was given.
4267 if test "${with_regex+set}" = set; then
4268   withval=$with_regex;
4269                         if test "$withval" = yes; then
4270                           wx_cv_use_regex='wxUSE_REGEX=yes'
4271                         elif test "$withval" = no; then
4272                           wx_cv_use_regex='wxUSE_REGEX=no'
4273                         elif test "$withval" = sys; then
4274                           wx_cv_use_regex='wxUSE_REGEX=sys'
4275                         elif test "$withval" = builtin; then
4276                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4277                         else
4278                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4279 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4280    { (exit 1); exit 1; }; }
4281                         fi
4282
4283 else
4284
4285                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4286
4287 fi
4288
4289
4290           eval "$wx_cv_use_regex"
4291
4292           if test "$wxUSE_REGEX" = yes; then
4293             { echo "$as_me:$LINENO: result: yes" >&5
4294 echo "${ECHO_T}yes" >&6; }
4295           elif test "$wxUSE_REGEX" = no; then
4296             { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4298           elif test "$wxUSE_REGEX" = sys; then
4299             { echo "$as_me:$LINENO: result: system version" >&5
4300 echo "${ECHO_T}system version" >&6; }
4301           elif test "$wxUSE_REGEX" = builtin; then
4302             { echo "$as_me:$LINENO: result: builtin version" >&5
4303 echo "${ECHO_T}builtin version" >&6; }
4304           else
4305             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4306 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4307    { (exit 1); exit 1; }; }
4308           fi
4309
4310
4311           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4312 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4313
4314 # Check whether --with-zlib was given.
4315 if test "${with_zlib+set}" = set; then
4316   withval=$with_zlib;
4317                         if test "$withval" = yes; then
4318                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4319                         elif test "$withval" = no; then
4320                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4321                         elif test "$withval" = sys; then
4322                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4323                         elif test "$withval" = builtin; then
4324                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4325                         else
4326                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4327 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4328    { (exit 1); exit 1; }; }
4329                         fi
4330
4331 else
4332
4333                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4334
4335 fi
4336
4337
4338           eval "$wx_cv_use_zlib"
4339
4340           if test "$wxUSE_ZLIB" = yes; then
4341             { echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6; }
4343           elif test "$wxUSE_ZLIB" = no; then
4344             { echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6; }
4346           elif test "$wxUSE_ZLIB" = sys; then
4347             { echo "$as_me:$LINENO: result: system version" >&5
4348 echo "${ECHO_T}system version" >&6; }
4349           elif test "$wxUSE_ZLIB" = builtin; then
4350             { echo "$as_me:$LINENO: result: builtin version" >&5
4351 echo "${ECHO_T}builtin version" >&6; }
4352           else
4353             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4354 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4355    { (exit 1); exit 1; }; }
4356           fi
4357
4358
4359           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4360 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4361
4362 # Check whether --with-expat was given.
4363 if test "${with_expat+set}" = set; then
4364   withval=$with_expat;
4365                         if test "$withval" = yes; then
4366                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4367                         elif test "$withval" = no; then
4368                           wx_cv_use_expat='wxUSE_EXPAT=no'
4369                         elif test "$withval" = sys; then
4370                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4371                         elif test "$withval" = builtin; then
4372                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4373                         else
4374                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4375 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4376    { (exit 1); exit 1; }; }
4377                         fi
4378
4379 else
4380
4381                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4382
4383 fi
4384
4385
4386           eval "$wx_cv_use_expat"
4387
4388           if test "$wxUSE_EXPAT" = yes; then
4389             { echo "$as_me:$LINENO: result: yes" >&5
4390 echo "${ECHO_T}yes" >&6; }
4391           elif test "$wxUSE_EXPAT" = no; then
4392             { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394           elif test "$wxUSE_EXPAT" = sys; then
4395             { echo "$as_me:$LINENO: result: system version" >&5
4396 echo "${ECHO_T}system version" >&6; }
4397           elif test "$wxUSE_EXPAT" = builtin; then
4398             { echo "$as_me:$LINENO: result: builtin version" >&5
4399 echo "${ECHO_T}builtin version" >&6; }
4400           else
4401             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4402 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4403    { (exit 1); exit 1; }; }
4404           fi
4405
4406
4407 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4408 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4409
4410 # Check whether --with-macosx-sdk was given.
4411 if test "${with_macosx_sdk+set}" = set; then
4412   withval=$with_macosx_sdk;
4413         wxUSE_MACOSX_SDK=$withval
4414         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4415
4416 fi
4417
4418 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4419 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4420
4421 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4422 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4423
4424 # Check whether --with-macosx-version-min was given.
4425 if test "${with_macosx_version_min+set}" = set; then
4426   withval=$with_macosx_version_min;
4427         wxUSE_MACOSX_VERSION_MIN=$withval
4428         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4429
4430 fi
4431
4432 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4433 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4434
4435
4436 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4437 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4438 # Check whether --enable-debug was given.
4439 if test "${enable_debug+set}" = set; then
4440   enableval=$enable_debug;
4441         if test "$enableval" = yes; then
4442             wxUSE_DEBUG=yes
4443         elif test "$enableval" = no; then
4444             wxUSE_DEBUG=no
4445         elif test "$enableval" = max; then
4446             wxUSE_DEBUG=yes
4447             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4448         else
4449             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4450 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4451    { (exit 1); exit 1; }; }
4452         fi
4453
4454 else
4455   wxUSE_DEBUG=default
4456
4457 fi
4458
4459
4460 case "$wxUSE_DEBUG" in
4461     yes)
4462                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4463         DEFAULT_wxUSE_DEBUG_INFO=yes
4464
4465                         DEFAULT_wxUSE_OPTIMISE=no
4466         ;;
4467
4468     no)
4469                         DEFAULT_wxUSE_DEBUG_FLAG=no
4470         DEFAULT_wxUSE_DEBUG_INFO=no
4471         ;;
4472
4473     default)
4474                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4475         DEFAULT_wxUSE_DEBUG_INFO=no
4476         ;;
4477 esac
4478
4479
4480           enablestring=disable
4481           defaultval=
4482           if test -z "$defaultval"; then
4483               if test x"$enablestring" = xdisable; then
4484                   defaultval=yes
4485               else
4486                   defaultval=no
4487               fi
4488           fi
4489
4490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4491 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4492           # Check whether --enable-debug_flag was given.
4493 if test "${enable_debug_flag+set}" = set; then
4494   enableval=$enable_debug_flag;
4495                           if test "$enableval" = yes; then
4496                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4497                           else
4498                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4499                           fi
4500
4501 else
4502
4503                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4504
4505 fi
4506
4507
4508           eval "$wx_cv_use_debug_flag"
4509
4510           if test x"$enablestring" = xdisable; then
4511             if test $wxUSE_DEBUG_FLAG = no; then
4512               result=yes
4513             else
4514               result=no
4515             fi
4516           else
4517             result=$wxUSE_DEBUG_FLAG
4518           fi
4519
4520           { echo "$as_me:$LINENO: result: $result" >&5
4521 echo "${ECHO_T}$result" >&6; }
4522
4523
4524           enablestring=
4525           defaultval=
4526           if test -z "$defaultval"; then
4527               if test x"$enablestring" = xdisable; then
4528                   defaultval=yes
4529               else
4530                   defaultval=no
4531               fi
4532           fi
4533
4534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4535 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4536           # Check whether --enable-debug_info was given.
4537 if test "${enable_debug_info+set}" = set; then
4538   enableval=$enable_debug_info;
4539                           if test "$enableval" = yes; then
4540                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4541                           else
4542                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4543                           fi
4544
4545 else
4546
4547                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4548
4549 fi
4550
4551
4552           eval "$wx_cv_use_debug_info"
4553
4554           if test x"$enablestring" = xdisable; then
4555             if test $wxUSE_DEBUG_INFO = no; then
4556               result=yes
4557             else
4558               result=no
4559             fi
4560           else
4561             result=$wxUSE_DEBUG_INFO
4562           fi
4563
4564           { echo "$as_me:$LINENO: result: $result" >&5
4565 echo "${ECHO_T}$result" >&6; }
4566
4567
4568
4569
4570           enablestring=
4571           defaultval=
4572           if test -z "$defaultval"; then
4573               if test x"$enablestring" = xdisable; then
4574                   defaultval=yes
4575               else
4576                   defaultval=no
4577               fi
4578           fi
4579
4580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4581 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4582           # Check whether --enable-debug_gdb was given.
4583 if test "${enable_debug_gdb+set}" = set; then
4584   enableval=$enable_debug_gdb;
4585                           if test "$enableval" = yes; then
4586                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4587                           else
4588                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4589                           fi
4590
4591 else
4592
4593                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4594
4595 fi
4596
4597
4598           eval "$wx_cv_use_debug_gdb"
4599
4600           if test x"$enablestring" = xdisable; then
4601             if test $wxUSE_DEBUG_GDB = no; then
4602               result=yes
4603             else
4604               result=no
4605             fi
4606           else
4607             result=$wxUSE_DEBUG_GDB
4608           fi
4609
4610           { echo "$as_me:$LINENO: result: $result" >&5
4611 echo "${ECHO_T}$result" >&6; }
4612
4613
4614           enablestring=
4615           defaultval=
4616           if test -z "$defaultval"; then
4617               if test x"$enablestring" = xdisable; then
4618                   defaultval=yes
4619               else
4620                   defaultval=no
4621               fi
4622           fi
4623
4624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4625 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4626           # Check whether --enable-debug_cntxt was given.
4627 if test "${enable_debug_cntxt+set}" = set; then
4628   enableval=$enable_debug_cntxt;
4629                           if test "$enableval" = yes; then
4630                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4631                           else
4632                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4633                           fi
4634
4635 else
4636
4637                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4638
4639 fi
4640
4641
4642           eval "$wx_cv_use_debug_cntxt"
4643
4644           if test x"$enablestring" = xdisable; then
4645             if test $wxUSE_DEBUG_CONTEXT = no; then
4646               result=yes
4647             else
4648               result=no
4649             fi
4650           else
4651             result=$wxUSE_DEBUG_CONTEXT
4652           fi
4653
4654           { echo "$as_me:$LINENO: result: $result" >&5
4655 echo "${ECHO_T}$result" >&6; }
4656
4657
4658           enablestring=
4659           defaultval=
4660           if test -z "$defaultval"; then
4661               if test x"$enablestring" = xdisable; then
4662                   defaultval=yes
4663               else
4664                   defaultval=no
4665               fi
4666           fi
4667
4668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4669 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4670           # Check whether --enable-mem_tracing was given.
4671 if test "${enable_mem_tracing+set}" = set; then
4672   enableval=$enable_mem_tracing;
4673                           if test "$enableval" = yes; then
4674                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4675                           else
4676                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4677                           fi
4678
4679 else
4680
4681                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4682
4683 fi
4684
4685
4686           eval "$wx_cv_use_mem_tracing"
4687
4688           if test x"$enablestring" = xdisable; then
4689             if test $wxUSE_MEM_TRACING = no; then
4690               result=yes
4691             else
4692               result=no
4693             fi
4694           else
4695             result=$wxUSE_MEM_TRACING
4696           fi
4697
4698           { echo "$as_me:$LINENO: result: $result" >&5
4699 echo "${ECHO_T}$result" >&6; }
4700
4701
4702
4703
4704           enablestring=disable
4705           defaultval=
4706           if test -z "$defaultval"; then
4707               if test x"$enablestring" = xdisable; then
4708                   defaultval=yes
4709               else
4710                   defaultval=no
4711               fi
4712           fi
4713
4714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4715 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4716           # Check whether --enable-shared was given.
4717 if test "${enable_shared+set}" = set; then
4718   enableval=$enable_shared;
4719                           if test "$enableval" = yes; then
4720                             wx_cv_use_shared='wxUSE_SHARED=yes'
4721                           else
4722                             wx_cv_use_shared='wxUSE_SHARED=no'
4723                           fi
4724
4725 else
4726
4727                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4728
4729 fi
4730
4731
4732           eval "$wx_cv_use_shared"
4733
4734           if test x"$enablestring" = xdisable; then
4735             if test $wxUSE_SHARED = no; then
4736               result=yes
4737             else
4738               result=no
4739             fi
4740           else
4741             result=$wxUSE_SHARED
4742           fi
4743
4744           { echo "$as_me:$LINENO: result: $result" >&5
4745 echo "${ECHO_T}$result" >&6; }
4746
4747
4748           enablestring=
4749           defaultval=
4750           if test -z "$defaultval"; then
4751               if test x"$enablestring" = xdisable; then
4752                   defaultval=yes
4753               else
4754                   defaultval=no
4755               fi
4756           fi
4757
4758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4759 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4760           # Check whether --enable-stl was given.
4761 if test "${enable_stl+set}" = set; then
4762   enableval=$enable_stl;
4763                           if test "$enableval" = yes; then
4764                             wx_cv_use_stl='wxUSE_STL=yes'
4765                           else
4766                             wx_cv_use_stl='wxUSE_STL=no'
4767                           fi
4768
4769 else
4770
4771                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4772
4773 fi
4774
4775
4776           eval "$wx_cv_use_stl"
4777
4778           if test x"$enablestring" = xdisable; then
4779             if test $wxUSE_STL = no; then
4780               result=yes
4781             else
4782               result=no
4783             fi
4784           else
4785             result=$wxUSE_STL
4786           fi
4787
4788           { echo "$as_me:$LINENO: result: $result" >&5
4789 echo "${ECHO_T}$result" >&6; }
4790
4791 if test "$wxUSE_STL" = "yes"; then
4792     DEFAULT_wxUSE_STD_CONTAINERS=yes
4793     DEFAULT_wxUSE_STD_IOSTREAM=yes
4794     DEFAULT_wxUSE_STD_STRING=yes
4795 fi
4796
4797           enablestring=
4798           defaultval=
4799           if test -z "$defaultval"; then
4800               if test x"$enablestring" = xdisable; then
4801                   defaultval=yes
4802               else
4803                   defaultval=no
4804               fi
4805           fi
4806
4807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4808 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4809           # Check whether --enable-std_containers was given.
4810 if test "${enable_std_containers+set}" = set; then
4811   enableval=$enable_std_containers;
4812                           if test "$enableval" = yes; then
4813                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4814                           else
4815                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4816                           fi
4817
4818 else
4819
4820                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4821
4822 fi
4823
4824
4825           eval "$wx_cv_use_std_containers"
4826
4827           if test x"$enablestring" = xdisable; then
4828             if test $wxUSE_STD_CONTAINERS = no; then
4829               result=yes
4830             else
4831               result=no
4832             fi
4833           else
4834             result=$wxUSE_STD_CONTAINERS
4835           fi
4836
4837           { echo "$as_me:$LINENO: result: $result" >&5
4838 echo "${ECHO_T}$result" >&6; }
4839
4840
4841           enablestring=
4842           defaultval=
4843           if test -z "$defaultval"; then
4844               if test x"$enablestring" = xdisable; then
4845                   defaultval=yes
4846               else
4847                   defaultval=no
4848               fi
4849           fi
4850
4851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4852 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4853           # Check whether --enable-std_iostreams was given.
4854 if test "${enable_std_iostreams+set}" = set; then
4855   enableval=$enable_std_iostreams;
4856                           if test "$enableval" = yes; then
4857                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4858                           else
4859                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4860                           fi
4861
4862 else
4863
4864                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4865
4866 fi
4867
4868
4869           eval "$wx_cv_use_std_iostreams"
4870
4871           if test x"$enablestring" = xdisable; then
4872             if test $wxUSE_STD_IOSTREAM = no; then
4873               result=yes
4874             else
4875               result=no
4876             fi
4877           else
4878             result=$wxUSE_STD_IOSTREAM
4879           fi
4880
4881           { echo "$as_me:$LINENO: result: $result" >&5
4882 echo "${ECHO_T}$result" >&6; }
4883
4884
4885           enablestring=
4886           defaultval=
4887           if test -z "$defaultval"; then
4888               if test x"$enablestring" = xdisable; then
4889                   defaultval=yes
4890               else
4891                   defaultval=no
4892               fi
4893           fi
4894
4895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4896 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4897           # Check whether --enable-std_string was given.
4898 if test "${enable_std_string+set}" = set; then
4899   enableval=$enable_std_string;
4900                           if test "$enableval" = yes; then
4901                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4902                           else
4903                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4904                           fi
4905
4906 else
4907
4908                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4909
4910 fi
4911
4912
4913           eval "$wx_cv_use_std_string"
4914
4915           if test x"$enablestring" = xdisable; then
4916             if test $wxUSE_STD_STRING = no; then
4917               result=yes
4918             else
4919               result=no
4920             fi
4921           else
4922             result=$wxUSE_STD_STRING
4923           fi
4924
4925           { echo "$as_me:$LINENO: result: $result" >&5
4926 echo "${ECHO_T}$result" >&6; }
4927
4928
4929           enablestring=
4930           defaultval=
4931           if test -z "$defaultval"; then
4932               if test x"$enablestring" = xdisable; then
4933                   defaultval=yes
4934               else
4935                   defaultval=no
4936               fi
4937           fi
4938
4939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4940 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4941           # Check whether --enable-std_string_conv_in_wxstring was given.
4942 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4943   enableval=$enable_std_string_conv_in_wxstring;
4944                           if test "$enableval" = yes; then
4945                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4946                           else
4947                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4948                           fi
4949
4950 else
4951
4952                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4953
4954 fi
4955
4956
4957           eval "$wx_cv_use_std_string_conv_in_wxstring"
4958
4959           if test x"$enablestring" = xdisable; then
4960             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4961               result=yes
4962             else
4963               result=no
4964             fi
4965           else
4966             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4967           fi
4968
4969           { echo "$as_me:$LINENO: result: $result" >&5
4970 echo "${ECHO_T}$result" >&6; }
4971
4972
4973           enablestring=disable
4974           defaultval=
4975           if test -z "$defaultval"; then
4976               if test x"$enablestring" = xdisable; then
4977                   defaultval=yes
4978               else
4979                   defaultval=no
4980               fi
4981           fi
4982
4983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4984 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4985           # Check whether --enable-unicode was given.
4986 if test "${enable_unicode+set}" = set; then
4987   enableval=$enable_unicode;
4988                           if test "$enableval" = yes; then
4989                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4990                           else
4991                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4992                           fi
4993
4994 else
4995
4996                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4997
4998 fi
4999
5000
5001           eval "$wx_cv_use_unicode"
5002
5003           if test x"$enablestring" = xdisable; then
5004             if test $wxUSE_UNICODE = no; then
5005               result=yes
5006             else
5007               result=no
5008             fi
5009           else
5010             result=$wxUSE_UNICODE
5011           fi
5012
5013           { echo "$as_me:$LINENO: result: $result" >&5
5014 echo "${ECHO_T}$result" >&6; }
5015
5016
5017           enablestring=
5018           defaultval=
5019           if test -z "$defaultval"; then
5020               if test x"$enablestring" = xdisable; then
5021                   defaultval=yes
5022               else
5023                   defaultval=no
5024               fi
5025           fi
5026
5027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5028 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5029           # Check whether --enable-mslu was given.
5030 if test "${enable_mslu+set}" = set; then
5031   enableval=$enable_mslu;
5032                           if test "$enableval" = yes; then
5033                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5034                           else
5035                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5036                           fi
5037
5038 else
5039
5040                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5041
5042 fi
5043
5044
5045           eval "$wx_cv_use_mslu"
5046
5047           if test x"$enablestring" = xdisable; then
5048             if test $wxUSE_UNICODE_MSLU = no; then
5049               result=yes
5050             else
5051               result=no
5052             fi
5053           else
5054             result=$wxUSE_UNICODE_MSLU
5055           fi
5056
5057           { echo "$as_me:$LINENO: result: $result" >&5
5058 echo "${ECHO_T}$result" >&6; }
5059
5060
5061           enablestring=
5062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5063 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5064           # Check whether --enable-utf8 was given.
5065 if test "${enable_utf8+set}" = set; then
5066   enableval=$enable_utf8;
5067                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5068
5069 else
5070
5071                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5072
5073 fi
5074
5075
5076           eval "$wx_cv_use_utf8"
5077
5078           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5079 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5080
5081
5082           enablestring=
5083           defaultval=
5084           if test -z "$defaultval"; then
5085               if test x"$enablestring" = xdisable; then
5086                   defaultval=yes
5087               else
5088                   defaultval=no
5089               fi
5090           fi
5091
5092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5093 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5094           # Check whether --enable-utf8only was given.
5095 if test "${enable_utf8only+set}" = set; then
5096   enableval=$enable_utf8only;
5097                           if test "$enableval" = yes; then
5098                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5099                           else
5100                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5101                           fi
5102
5103 else
5104
5105                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5106
5107 fi
5108
5109
5110           eval "$wx_cv_use_utf8only"
5111
5112           if test x"$enablestring" = xdisable; then
5113             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5114               result=yes
5115             else
5116               result=no
5117             fi
5118           else
5119             result=$wxUSE_UNICODE_UTF8_LOCALE
5120           fi
5121
5122           { echo "$as_me:$LINENO: result: $result" >&5
5123 echo "${ECHO_T}$result" >&6; }
5124
5125
5126           enablestring=
5127           defaultval=
5128           if test -z "$defaultval"; then
5129               if test x"$enablestring" = xdisable; then
5130                   defaultval=yes
5131               else
5132                   defaultval=no
5133               fi
5134           fi
5135
5136           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5137 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5138           # Check whether --enable-extended_rtti was given.
5139 if test "${enable_extended_rtti+set}" = set; then
5140   enableval=$enable_extended_rtti;
5141                           if test "$enableval" = yes; then
5142                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5143                           else
5144                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5145                           fi
5146
5147 else
5148
5149                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5150
5151 fi
5152
5153
5154           eval "$wx_cv_use_extended_rtti"
5155
5156           if test x"$enablestring" = xdisable; then
5157             if test $wxUSE_EXTENDED_RTTI = no; then
5158               result=yes
5159             else
5160               result=no
5161             fi
5162           else
5163             result=$wxUSE_EXTENDED_RTTI
5164           fi
5165
5166           { echo "$as_me:$LINENO: result: $result" >&5
5167 echo "${ECHO_T}$result" >&6; }
5168
5169 if test "$USE_OS2" = 1; then
5170     DEFAULT_wxUSE_OMF=no
5171
5172           enablestring=
5173           defaultval=
5174           if test -z "$defaultval"; then
5175               if test x"$enablestring" = xdisable; then
5176                   defaultval=yes
5177               else
5178                   defaultval=no
5179               fi
5180           fi
5181
5182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5183 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5184           # Check whether --enable-omf was given.
5185 if test "${enable_omf+set}" = set; then
5186   enableval=$enable_omf;
5187                           if test "$enableval" = yes; then
5188                             wx_cv_use_omf='wxUSE_OMF=yes'
5189                           else
5190                             wx_cv_use_omf='wxUSE_OMF=no'
5191                           fi
5192
5193 else
5194
5195                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5196
5197 fi
5198
5199
5200           eval "$wx_cv_use_omf"
5201
5202           if test x"$enablestring" = xdisable; then
5203             if test $wxUSE_OMF = no; then
5204               result=yes
5205             else
5206               result=no
5207             fi
5208           else
5209             result=$wxUSE_OMF
5210           fi
5211
5212           { echo "$as_me:$LINENO: result: $result" >&5
5213 echo "${ECHO_T}$result" >&6; }
5214
5215 fi
5216
5217
5218           enablestring=disable
5219           defaultval=
5220           if test -z "$defaultval"; then
5221               if test x"$enablestring" = xdisable; then
5222                   defaultval=yes
5223               else
5224                   defaultval=no
5225               fi
5226           fi
5227
5228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5229 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5230           # Check whether --enable-optimise was given.
5231 if test "${enable_optimise+set}" = set; then
5232   enableval=$enable_optimise;
5233                           if test "$enableval" = yes; then
5234                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5235                           else
5236                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5237                           fi
5238
5239 else
5240
5241                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5242
5243 fi
5244
5245
5246           eval "$wx_cv_use_optimise"
5247
5248           if test x"$enablestring" = xdisable; then
5249             if test $wxUSE_OPTIMISE = no; then
5250               result=yes
5251             else
5252               result=no
5253             fi
5254           else
5255             result=$wxUSE_OPTIMISE
5256           fi
5257
5258           { echo "$as_me:$LINENO: result: $result" >&5
5259 echo "${ECHO_T}$result" >&6; }
5260
5261
5262
5263           enablestring=
5264           defaultval=
5265           if test -z "$defaultval"; then
5266               if test x"$enablestring" = xdisable; then
5267                   defaultval=yes
5268               else
5269                   defaultval=no
5270               fi
5271           fi
5272
5273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5274 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5275           # Check whether --enable-profile was given.
5276 if test "${enable_profile+set}" = set; then
5277   enableval=$enable_profile;
5278                           if test "$enableval" = yes; then
5279                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5280                           else
5281                             wx_cv_use_profile='wxUSE_PROFILE=no'
5282                           fi
5283
5284 else
5285
5286                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5287
5288 fi
5289
5290
5291           eval "$wx_cv_use_profile"
5292
5293           if test x"$enablestring" = xdisable; then
5294             if test $wxUSE_PROFILE = no; then
5295               result=yes
5296             else
5297               result=no
5298             fi
5299           else
5300             result=$wxUSE_PROFILE
5301           fi
5302
5303           { echo "$as_me:$LINENO: result: $result" >&5
5304 echo "${ECHO_T}$result" >&6; }
5305
5306
5307           enablestring=
5308           defaultval=
5309           if test -z "$defaultval"; then
5310               if test x"$enablestring" = xdisable; then
5311                   defaultval=yes
5312               else
5313                   defaultval=no
5314               fi
5315           fi
5316
5317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5318 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5319           # Check whether --enable-no_rtti was given.
5320 if test "${enable_no_rtti+set}" = set; then
5321   enableval=$enable_no_rtti;
5322                           if test "$enableval" = yes; then
5323                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5324                           else
5325                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5326                           fi
5327
5328 else
5329
5330                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5331
5332 fi
5333
5334
5335           eval "$wx_cv_use_no_rtti"
5336
5337           if test x"$enablestring" = xdisable; then
5338             if test $wxUSE_NO_RTTI = no; then
5339               result=yes
5340             else
5341               result=no
5342             fi
5343           else
5344             result=$wxUSE_NO_RTTI
5345           fi
5346
5347           { echo "$as_me:$LINENO: result: $result" >&5
5348 echo "${ECHO_T}$result" >&6; }
5349
5350
5351           enablestring=
5352           defaultval=
5353           if test -z "$defaultval"; then
5354               if test x"$enablestring" = xdisable; then
5355                   defaultval=yes
5356               else
5357                   defaultval=no
5358               fi
5359           fi
5360
5361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5362 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5363           # Check whether --enable-no_exceptions was given.
5364 if test "${enable_no_exceptions+set}" = set; then
5365   enableval=$enable_no_exceptions;
5366                           if test "$enableval" = yes; then
5367                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5368                           else
5369                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5370                           fi
5371
5372 else
5373
5374                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5375
5376 fi
5377
5378
5379           eval "$wx_cv_use_no_exceptions"
5380
5381           if test x"$enablestring" = xdisable; then
5382             if test $wxUSE_NO_EXCEPTIONS = no; then
5383               result=yes
5384             else
5385               result=no
5386             fi
5387           else
5388             result=$wxUSE_NO_EXCEPTIONS
5389           fi
5390
5391           { echo "$as_me:$LINENO: result: $result" >&5
5392 echo "${ECHO_T}$result" >&6; }
5393
5394
5395           enablestring=
5396           defaultval=
5397           if test -z "$defaultval"; then
5398               if test x"$enablestring" = xdisable; then
5399                   defaultval=yes
5400               else
5401                   defaultval=no
5402               fi
5403           fi
5404
5405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5406 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5407           # Check whether --enable-permissive was given.
5408 if test "${enable_permissive+set}" = set; then
5409   enableval=$enable_permissive;
5410                           if test "$enableval" = yes; then
5411                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5412                           else
5413                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5414                           fi
5415
5416 else
5417
5418                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5419
5420 fi
5421
5422
5423           eval "$wx_cv_use_permissive"
5424
5425           if test x"$enablestring" = xdisable; then
5426             if test $wxUSE_PERMISSIVE = no; then
5427               result=yes
5428             else
5429               result=no
5430             fi
5431           else
5432             result=$wxUSE_PERMISSIVE
5433           fi
5434
5435           { echo "$as_me:$LINENO: result: $result" >&5
5436 echo "${ECHO_T}$result" >&6; }
5437
5438
5439           enablestring=
5440           defaultval=
5441           if test -z "$defaultval"; then
5442               if test x"$enablestring" = xdisable; then
5443                   defaultval=yes
5444               else
5445                   defaultval=no
5446               fi
5447           fi
5448
5449           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5450 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5451           # Check whether --enable-no_deps was given.
5452 if test "${enable_no_deps+set}" = set; then
5453   enableval=$enable_no_deps;
5454                           if test "$enableval" = yes; then
5455                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5456                           else
5457                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5458                           fi
5459
5460 else
5461
5462                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5463
5464 fi
5465
5466
5467           eval "$wx_cv_use_no_deps"
5468
5469           if test x"$enablestring" = xdisable; then
5470             if test $wxUSE_NO_DEPS = no; then
5471               result=yes
5472             else
5473               result=no
5474             fi
5475           else
5476             result=$wxUSE_NO_DEPS
5477           fi
5478
5479           { echo "$as_me:$LINENO: result: $result" >&5
5480 echo "${ECHO_T}$result" >&6; }
5481
5482
5483           enablestring=disable
5484           defaultval=
5485           if test -z "$defaultval"; then
5486               if test x"$enablestring" = xdisable; then
5487                   defaultval=yes
5488               else
5489                   defaultval=no
5490               fi
5491           fi
5492
5493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5494 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5495           # Check whether --enable-vararg_macros was given.
5496 if test "${enable_vararg_macros+set}" = set; then
5497   enableval=$enable_vararg_macros;
5498                           if test "$enableval" = yes; then
5499                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5500                           else
5501                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5502                           fi
5503
5504 else
5505
5506                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5507
5508 fi
5509
5510
5511           eval "$wx_cv_use_vararg_macros"
5512
5513           if test x"$enablestring" = xdisable; then
5514             if test $wxUSE_VARARG_MACROS = no; then
5515               result=yes
5516             else
5517               result=no
5518             fi
5519           else
5520             result=$wxUSE_VARARG_MACROS
5521           fi
5522
5523           { echo "$as_me:$LINENO: result: $result" >&5
5524 echo "${ECHO_T}$result" >&6; }
5525
5526
5527
5528           enablestring=
5529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5530 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5531           # Check whether --enable-universal_binary was given.
5532 if test "${enable_universal_binary+set}" = set; then
5533   enableval=$enable_universal_binary;
5534                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5535
5536 else
5537
5538                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5539
5540 fi
5541
5542
5543           eval "$wx_cv_use_universal_binary"
5544
5545           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5546 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5547
5548
5549           enablestring=
5550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5551 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5552           # Check whether --enable-macosx_arch was given.
5553 if test "${enable_macosx_arch+set}" = set; then
5554   enableval=$enable_macosx_arch;
5555                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5556
5557 else
5558
5559                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5560
5561 fi
5562
5563
5564           eval "$wx_cv_use_macosx_arch"
5565
5566           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5567 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5568
5569
5570
5571           enablestring=
5572           defaultval=
5573           if test -z "$defaultval"; then
5574               if test x"$enablestring" = xdisable; then
5575                   defaultval=yes
5576               else
5577                   defaultval=no
5578               fi
5579           fi
5580
5581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5582 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5583           # Check whether --enable-compat26 was given.
5584 if test "${enable_compat26+set}" = set; then
5585   enableval=$enable_compat26;
5586                           if test "$enableval" = yes; then
5587                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5588                           else
5589                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5590                           fi
5591
5592 else
5593
5594                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5595
5596 fi
5597
5598
5599           eval "$wx_cv_use_compat26"
5600
5601           if test x"$enablestring" = xdisable; then
5602             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5603               result=yes
5604             else
5605               result=no
5606             fi
5607           else
5608             result=$WXWIN_COMPATIBILITY_2_6
5609           fi
5610
5611           { echo "$as_me:$LINENO: result: $result" >&5
5612 echo "${ECHO_T}$result" >&6; }
5613
5614
5615           enablestring=disable
5616           defaultval=
5617           if test -z "$defaultval"; then
5618               if test x"$enablestring" = xdisable; then
5619                   defaultval=yes
5620               else
5621                   defaultval=no
5622               fi
5623           fi
5624
5625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5626 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5627           # Check whether --enable-compat28 was given.
5628 if test "${enable_compat28+set}" = set; then
5629   enableval=$enable_compat28;
5630                           if test "$enableval" = yes; then
5631                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5632                           else
5633                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5634                           fi
5635
5636 else
5637
5638                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5639
5640 fi
5641
5642
5643           eval "$wx_cv_use_compat28"
5644
5645           if test x"$enablestring" = xdisable; then
5646             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5647               result=yes
5648             else
5649               result=no
5650             fi
5651           else
5652             result=$WXWIN_COMPATIBILITY_2_8
5653           fi
5654
5655           { echo "$as_me:$LINENO: result: $result" >&5
5656 echo "${ECHO_T}$result" >&6; }
5657
5658
5659
5660           enablestring=disable
5661           defaultval=
5662           if test -z "$defaultval"; then
5663               if test x"$enablestring" = xdisable; then
5664                   defaultval=yes
5665               else
5666                   defaultval=no
5667               fi
5668           fi
5669
5670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5671 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5672           # Check whether --enable-rpath was given.
5673 if test "${enable_rpath+set}" = set; then
5674   enableval=$enable_rpath;
5675                           if test "$enableval" = yes; then
5676                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5677                           else
5678                             wx_cv_use_rpath='wxUSE_RPATH=no'
5679                           fi
5680
5681 else
5682
5683                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5684
5685 fi
5686
5687
5688           eval "$wx_cv_use_rpath"
5689
5690           if test x"$enablestring" = xdisable; then
5691             if test $wxUSE_RPATH = no; then
5692               result=yes
5693             else
5694               result=no
5695             fi
5696           else
5697             result=$wxUSE_RPATH
5698           fi
5699
5700           { echo "$as_me:$LINENO: result: $result" >&5
5701 echo "${ECHO_T}$result" >&6; }
5702
5703
5704
5705           enablestring=
5706           defaultval=
5707           if test -z "$defaultval"; then
5708               if test x"$enablestring" = xdisable; then
5709                   defaultval=yes
5710               else
5711                   defaultval=no
5712               fi
5713           fi
5714
5715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5716 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5717           # Check whether --enable-objc_uniquifying was given.
5718 if test "${enable_objc_uniquifying+set}" = set; then
5719   enableval=$enable_objc_uniquifying;
5720                           if test "$enableval" = yes; then
5721                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5722                           else
5723                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5724                           fi
5725
5726 else
5727
5728                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5729
5730 fi
5731
5732
5733           eval "$wx_cv_use_objc_uniquifying"
5734
5735           if test x"$enablestring" = xdisable; then
5736             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5737               result=yes
5738             else
5739               result=no
5740             fi
5741           else
5742             result=$wxUSE_OBJC_UNIQUIFYING
5743           fi
5744
5745           { echo "$as_me:$LINENO: result: $result" >&5
5746 echo "${ECHO_T}$result" >&6; }
5747
5748
5749
5750           enablestring=disable
5751           defaultval=
5752           if test -z "$defaultval"; then
5753               if test x"$enablestring" = xdisable; then
5754                   defaultval=yes
5755               else
5756                   defaultval=no
5757               fi
5758           fi
5759
5760           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5761 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5762           # Check whether --enable-visibility was given.
5763 if test "${enable_visibility+set}" = set; then
5764   enableval=$enable_visibility;
5765                           if test "$enableval" = yes; then
5766                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5767                           else
5768                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5769                           fi
5770
5771 else
5772
5773                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5774
5775 fi
5776
5777
5778           eval "$wx_cv_use_visibility"
5779
5780           if test x"$enablestring" = xdisable; then
5781             if test $wxUSE_VISIBILITY = no; then
5782               result=yes
5783             else
5784               result=no
5785             fi
5786           else
5787             result=$wxUSE_VISIBILITY
5788           fi
5789
5790           { echo "$as_me:$LINENO: result: $result" >&5
5791 echo "${ECHO_T}$result" >&6; }
5792
5793
5794           enablestring=disable
5795           defaultval=
5796           if test -z "$defaultval"; then
5797               if test x"$enablestring" = xdisable; then
5798                   defaultval=yes
5799               else
5800                   defaultval=no
5801               fi
5802           fi
5803
5804           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5805 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5806           # Check whether --enable-tls was given.
5807 if test "${enable_tls+set}" = set; then
5808   enableval=$enable_tls;
5809                           if test "$enableval" = yes; then
5810                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5811                           else
5812                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5813                           fi
5814
5815 else
5816
5817                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5818
5819 fi
5820
5821
5822           eval "$wx_cv_use_tls"
5823
5824           if test x"$enablestring" = xdisable; then
5825             if test $wxUSE_COMPILER_TLS = no; then
5826               result=yes
5827             else
5828               result=no
5829             fi
5830           else
5831             result=$wxUSE_COMPILER_TLS
5832           fi
5833
5834           { echo "$as_me:$LINENO: result: $result" >&5
5835 echo "${ECHO_T}$result" >&6; }
5836
5837
5838
5839
5840           enablestring=
5841           defaultval=$wxUSE_ALL_FEATURES
5842           if test -z "$defaultval"; then
5843               if test x"$enablestring" = xdisable; then
5844                   defaultval=yes
5845               else
5846                   defaultval=no
5847               fi
5848           fi
5849
5850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5851 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5852           # Check whether --enable-intl was given.
5853 if test "${enable_intl+set}" = set; then
5854   enableval=$enable_intl;
5855                           if test "$enableval" = yes; then
5856                             wx_cv_use_intl='wxUSE_INTL=yes'
5857                           else
5858                             wx_cv_use_intl='wxUSE_INTL=no'
5859                           fi
5860
5861 else
5862
5863                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5864
5865 fi
5866
5867
5868           eval "$wx_cv_use_intl"
5869
5870           if test x"$enablestring" = xdisable; then
5871             if test $wxUSE_INTL = no; then
5872               result=yes
5873             else
5874               result=no
5875             fi
5876           else
5877             result=$wxUSE_INTL
5878           fi
5879
5880           { echo "$as_me:$LINENO: result: $result" >&5
5881 echo "${ECHO_T}$result" >&6; }
5882
5883
5884           enablestring=
5885           defaultval=$wxUSE_ALL_FEATURES
5886           if test -z "$defaultval"; then
5887               if test x"$enablestring" = xdisable; then
5888                   defaultval=yes
5889               else
5890                   defaultval=no
5891               fi
5892           fi
5893
5894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5895 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5896           # Check whether --enable-xlocale was given.
5897 if test "${enable_xlocale+set}" = set; then
5898   enableval=$enable_xlocale;
5899                           if test "$enableval" = yes; then
5900                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5901                           else
5902                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5903                           fi
5904
5905 else
5906
5907                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5908
5909 fi
5910
5911
5912           eval "$wx_cv_use_xlocale"
5913
5914           if test x"$enablestring" = xdisable; then
5915             if test $wxUSE_XLOCALE = no; then
5916               result=yes
5917             else
5918               result=no
5919             fi
5920           else
5921             result=$wxUSE_XLOCALE
5922           fi
5923
5924           { echo "$as_me:$LINENO: result: $result" >&5
5925 echo "${ECHO_T}$result" >&6; }
5926
5927
5928           enablestring=
5929           defaultval=$wxUSE_ALL_FEATURES
5930           if test -z "$defaultval"; then
5931               if test x"$enablestring" = xdisable; then
5932                   defaultval=yes
5933               else
5934                   defaultval=no
5935               fi
5936           fi
5937
5938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5939 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5940           # Check whether --enable-config was given.
5941 if test "${enable_config+set}" = set; then
5942   enableval=$enable_config;
5943                           if test "$enableval" = yes; then
5944                             wx_cv_use_config='wxUSE_CONFIG=yes'
5945                           else
5946                             wx_cv_use_config='wxUSE_CONFIG=no'
5947                           fi
5948
5949 else
5950
5951                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5952
5953 fi
5954
5955
5956           eval "$wx_cv_use_config"
5957
5958           if test x"$enablestring" = xdisable; then
5959             if test $wxUSE_CONFIG = no; then
5960               result=yes
5961             else
5962               result=no
5963             fi
5964           else
5965             result=$wxUSE_CONFIG
5966           fi
5967
5968           { echo "$as_me:$LINENO: result: $result" >&5
5969 echo "${ECHO_T}$result" >&6; }
5970
5971
5972
5973           enablestring=
5974           defaultval=$wxUSE_ALL_FEATURES
5975           if test -z "$defaultval"; then
5976               if test x"$enablestring" = xdisable; then
5977                   defaultval=yes
5978               else
5979                   defaultval=no
5980               fi
5981           fi
5982
5983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5984 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5985           # Check whether --enable-protocols was given.
5986 if test "${enable_protocols+set}" = set; then
5987   enableval=$enable_protocols;
5988                           if test "$enableval" = yes; then
5989                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5990                           else
5991                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5992                           fi
5993
5994 else
5995
5996                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5997
5998 fi
5999
6000
6001           eval "$wx_cv_use_protocols"
6002
6003           if test x"$enablestring" = xdisable; then
6004             if test $wxUSE_PROTOCOL = no; then
6005               result=yes
6006             else
6007               result=no
6008             fi
6009           else
6010             result=$wxUSE_PROTOCOL
6011           fi
6012
6013           { echo "$as_me:$LINENO: result: $result" >&5
6014 echo "${ECHO_T}$result" >&6; }
6015
6016
6017           enablestring=
6018           defaultval=$wxUSE_ALL_FEATURES
6019           if test -z "$defaultval"; then
6020               if test x"$enablestring" = xdisable; then
6021                   defaultval=yes
6022               else
6023                   defaultval=no
6024               fi
6025           fi
6026
6027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6028 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6029           # Check whether --enable-ftp was given.
6030 if test "${enable_ftp+set}" = set; then
6031   enableval=$enable_ftp;
6032                           if test "$enableval" = yes; then
6033                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6034                           else
6035                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6036                           fi
6037
6038 else
6039
6040                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6041
6042 fi
6043
6044
6045           eval "$wx_cv_use_ftp"
6046
6047           if test x"$enablestring" = xdisable; then
6048             if test $wxUSE_PROTOCOL_FTP = no; then
6049               result=yes
6050             else
6051               result=no
6052             fi
6053           else
6054             result=$wxUSE_PROTOCOL_FTP
6055           fi
6056
6057           { echo "$as_me:$LINENO: result: $result" >&5
6058 echo "${ECHO_T}$result" >&6; }
6059
6060
6061           enablestring=
6062           defaultval=$wxUSE_ALL_FEATURES
6063           if test -z "$defaultval"; then
6064               if test x"$enablestring" = xdisable; then
6065                   defaultval=yes
6066               else
6067                   defaultval=no
6068               fi
6069           fi
6070
6071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6072 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6073           # Check whether --enable-http was given.
6074 if test "${enable_http+set}" = set; then
6075   enableval=$enable_http;
6076                           if test "$enableval" = yes; then
6077                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6078                           else
6079                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6080                           fi
6081
6082 else
6083
6084                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6085
6086 fi
6087
6088
6089           eval "$wx_cv_use_http"
6090
6091           if test x"$enablestring" = xdisable; then
6092             if test $wxUSE_PROTOCOL_HTTP = no; then
6093               result=yes
6094             else
6095               result=no
6096             fi
6097           else
6098             result=$wxUSE_PROTOCOL_HTTP
6099           fi
6100
6101           { echo "$as_me:$LINENO: result: $result" >&5
6102 echo "${ECHO_T}$result" >&6; }
6103
6104
6105           enablestring=
6106           defaultval=$wxUSE_ALL_FEATURES
6107           if test -z "$defaultval"; then
6108               if test x"$enablestring" = xdisable; then
6109                   defaultval=yes
6110               else
6111                   defaultval=no
6112               fi
6113           fi
6114
6115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6116 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6117           # Check whether --enable-fileproto was given.
6118 if test "${enable_fileproto+set}" = set; then
6119   enableval=$enable_fileproto;
6120                           if test "$enableval" = yes; then
6121                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6122                           else
6123                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6124                           fi
6125
6126 else
6127
6128                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6129
6130 fi
6131
6132
6133           eval "$wx_cv_use_fileproto"
6134
6135           if test x"$enablestring" = xdisable; then
6136             if test $wxUSE_PROTOCOL_FILE = no; then
6137               result=yes
6138             else
6139               result=no
6140             fi
6141           else
6142             result=$wxUSE_PROTOCOL_FILE
6143           fi
6144
6145           { echo "$as_me:$LINENO: result: $result" >&5
6146 echo "${ECHO_T}$result" >&6; }
6147
6148
6149           enablestring=
6150           defaultval=$wxUSE_ALL_FEATURES
6151           if test -z "$defaultval"; then
6152               if test x"$enablestring" = xdisable; then
6153                   defaultval=yes
6154               else
6155                   defaultval=no
6156               fi
6157           fi
6158
6159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6160 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6161           # Check whether --enable-sockets was given.
6162 if test "${enable_sockets+set}" = set; then
6163   enableval=$enable_sockets;
6164                           if test "$enableval" = yes; then
6165                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6166                           else
6167                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6168                           fi
6169
6170 else
6171
6172                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6173
6174 fi
6175
6176
6177           eval "$wx_cv_use_sockets"
6178
6179           if test x"$enablestring" = xdisable; then
6180             if test $wxUSE_SOCKETS = no; then
6181               result=yes
6182             else
6183               result=no
6184             fi
6185           else
6186             result=$wxUSE_SOCKETS
6187           fi
6188
6189           { echo "$as_me:$LINENO: result: $result" >&5
6190 echo "${ECHO_T}$result" >&6; }
6191
6192
6193           enablestring=
6194           defaultval=$wxUSE_ALL_FEATURES
6195           if test -z "$defaultval"; then
6196               if test x"$enablestring" = xdisable; then
6197                   defaultval=yes
6198               else
6199                   defaultval=no
6200               fi
6201           fi
6202
6203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6204 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6205           # Check whether --enable-ipv6 was given.
6206 if test "${enable_ipv6+set}" = set; then
6207   enableval=$enable_ipv6;
6208                           if test "$enableval" = yes; then
6209                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6210                           else
6211                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6212                           fi
6213
6214 else
6215
6216                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6217
6218 fi
6219
6220
6221           eval "$wx_cv_use_ipv6"
6222
6223           if test x"$enablestring" = xdisable; then
6224             if test $wxUSE_IPV6 = no; then
6225               result=yes
6226             else
6227               result=no
6228             fi
6229           else
6230             result=$wxUSE_IPV6
6231           fi
6232
6233           { echo "$as_me:$LINENO: result: $result" >&5
6234 echo "${ECHO_T}$result" >&6; }
6235
6236
6237           enablestring=
6238           defaultval=$wxUSE_ALL_FEATURES
6239           if test -z "$defaultval"; then
6240               if test x"$enablestring" = xdisable; then
6241                   defaultval=yes
6242               else
6243                   defaultval=no
6244               fi
6245           fi
6246
6247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6248 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6249           # Check whether --enable-ole was given.
6250 if test "${enable_ole+set}" = set; then
6251   enableval=$enable_ole;
6252                           if test "$enableval" = yes; then
6253                             wx_cv_use_ole='wxUSE_OLE=yes'
6254                           else
6255                             wx_cv_use_ole='wxUSE_OLE=no'
6256                           fi
6257
6258 else
6259
6260                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6261
6262 fi
6263
6264
6265           eval "$wx_cv_use_ole"
6266
6267           if test x"$enablestring" = xdisable; then
6268             if test $wxUSE_OLE = no; then
6269               result=yes
6270             else
6271               result=no
6272             fi
6273           else
6274             result=$wxUSE_OLE
6275           fi
6276
6277           { echo "$as_me:$LINENO: result: $result" >&5
6278 echo "${ECHO_T}$result" >&6; }
6279
6280
6281           enablestring=
6282           defaultval=$wxUSE_ALL_FEATURES
6283           if test -z "$defaultval"; then
6284               if test x"$enablestring" = xdisable; then
6285                   defaultval=yes
6286               else
6287                   defaultval=no
6288               fi
6289           fi
6290
6291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6292 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6293           # Check whether --enable-dataobj was given.
6294 if test "${enable_dataobj+set}" = set; then
6295   enableval=$enable_dataobj;
6296                           if test "$enableval" = yes; then
6297                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6298                           else
6299                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6300                           fi
6301
6302 else
6303
6304                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6305
6306 fi
6307
6308
6309           eval "$wx_cv_use_dataobj"
6310
6311           if test x"$enablestring" = xdisable; then
6312             if test $wxUSE_DATAOBJ = no; then
6313               result=yes
6314             else
6315               result=no
6316             fi
6317           else
6318             result=$wxUSE_DATAOBJ
6319           fi
6320
6321           { echo "$as_me:$LINENO: result: $result" >&5
6322 echo "${ECHO_T}$result" >&6; }
6323
6324
6325
6326           enablestring=
6327           defaultval=$wxUSE_ALL_FEATURES
6328           if test -z "$defaultval"; then
6329               if test x"$enablestring" = xdisable; then
6330                   defaultval=yes
6331               else
6332                   defaultval=no
6333               fi
6334           fi
6335
6336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6337 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6338           # Check whether --enable-ipc was given.
6339 if test "${enable_ipc+set}" = set; then
6340   enableval=$enable_ipc;
6341                           if test "$enableval" = yes; then
6342                             wx_cv_use_ipc='wxUSE_IPC=yes'
6343                           else
6344                             wx_cv_use_ipc='wxUSE_IPC=no'
6345                           fi
6346
6347 else
6348
6349                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6350
6351 fi
6352
6353
6354           eval "$wx_cv_use_ipc"
6355
6356           if test x"$enablestring" = xdisable; then
6357             if test $wxUSE_IPC = no; then
6358               result=yes
6359             else
6360               result=no
6361             fi
6362           else
6363             result=$wxUSE_IPC
6364           fi
6365
6366           { echo "$as_me:$LINENO: result: $result" >&5
6367 echo "${ECHO_T}$result" >&6; }
6368
6369
6370
6371           enablestring=
6372           defaultval=$wxUSE_ALL_FEATURES
6373           if test -z "$defaultval"; then
6374               if test x"$enablestring" = xdisable; then
6375                   defaultval=yes
6376               else
6377                   defaultval=no
6378               fi
6379           fi
6380
6381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6382 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6383           # Check whether --enable-baseevtloop was given.
6384 if test "${enable_baseevtloop+set}" = set; then
6385   enableval=$enable_baseevtloop;
6386                           if test "$enableval" = yes; then
6387                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6388                           else
6389                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6390                           fi
6391
6392 else
6393
6394                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6395
6396 fi
6397
6398
6399           eval "$wx_cv_use_baseevtloop"
6400
6401           if test x"$enablestring" = xdisable; then
6402             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6403               result=yes
6404             else
6405               result=no
6406             fi
6407           else
6408             result=$wxUSE_CONSOLE_EVENTLOOP
6409           fi
6410
6411           { echo "$as_me:$LINENO: result: $result" >&5
6412 echo "${ECHO_T}$result" >&6; }
6413
6414
6415           enablestring=
6416           defaultval=$wxUSE_ALL_FEATURES
6417           if test -z "$defaultval"; then
6418               if test x"$enablestring" = xdisable; then
6419                   defaultval=yes
6420               else
6421                   defaultval=no
6422               fi
6423           fi
6424
6425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6426 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6427           # Check whether --enable-epollloop was given.
6428 if test "${enable_epollloop+set}" = set; then
6429   enableval=$enable_epollloop;
6430                           if test "$enableval" = yes; then
6431                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6432                           else
6433                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6434                           fi
6435
6436 else
6437
6438                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6439
6440 fi
6441
6442
6443           eval "$wx_cv_use_epollloop"
6444
6445           if test x"$enablestring" = xdisable; then
6446             if test $wxUSE_EPOLL_DISPATCHER = no; then
6447               result=yes
6448             else
6449               result=no
6450             fi
6451           else
6452             result=$wxUSE_EPOLL_DISPATCHER
6453           fi
6454
6455           { echo "$as_me:$LINENO: result: $result" >&5
6456 echo "${ECHO_T}$result" >&6; }
6457
6458
6459           enablestring=
6460           defaultval=$wxUSE_ALL_FEATURES
6461           if test -z "$defaultval"; then
6462               if test x"$enablestring" = xdisable; then
6463                   defaultval=yes
6464               else
6465                   defaultval=no
6466               fi
6467           fi
6468
6469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6470 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6471           # Check whether --enable-selectloop was given.
6472 if test "${enable_selectloop+set}" = set; then
6473   enableval=$enable_selectloop;
6474                           if test "$enableval" = yes; then
6475                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6476                           else
6477                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6478                           fi
6479
6480 else
6481
6482                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6483
6484 fi
6485
6486
6487           eval "$wx_cv_use_selectloop"
6488
6489           if test x"$enablestring" = xdisable; then
6490             if test $wxUSE_SELECT_DISPATCHER = no; then
6491               result=yes
6492             else
6493               result=no
6494             fi
6495           else
6496             result=$wxUSE_SELECT_DISPATCHER
6497           fi
6498
6499           { echo "$as_me:$LINENO: result: $result" >&5
6500 echo "${ECHO_T}$result" >&6; }
6501
6502
6503
6504           enablestring=
6505           defaultval=$wxUSE_ALL_FEATURES
6506           if test -z "$defaultval"; then
6507               if test x"$enablestring" = xdisable; then
6508                   defaultval=yes
6509               else
6510                   defaultval=no
6511               fi
6512           fi
6513
6514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6515 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6516           # Check whether --enable-any was given.
6517 if test "${enable_any+set}" = set; then
6518   enableval=$enable_any;
6519                           if test "$enableval" = yes; then
6520                             wx_cv_use_any='wxUSE_ANY=yes'
6521                           else
6522                             wx_cv_use_any='wxUSE_ANY=no'
6523                           fi
6524
6525 else
6526
6527                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6528
6529 fi
6530
6531
6532           eval "$wx_cv_use_any"
6533
6534           if test x"$enablestring" = xdisable; then
6535             if test $wxUSE_ANY = no; then
6536               result=yes
6537             else
6538               result=no
6539             fi
6540           else
6541             result=$wxUSE_ANY
6542           fi
6543
6544           { echo "$as_me:$LINENO: result: $result" >&5
6545 echo "${ECHO_T}$result" >&6; }
6546
6547
6548           enablestring=
6549           defaultval=$wxUSE_ALL_FEATURES
6550           if test -z "$defaultval"; then
6551               if test x"$enablestring" = xdisable; then
6552                   defaultval=yes
6553               else
6554                   defaultval=no
6555               fi
6556           fi
6557
6558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6559 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6560           # Check whether --enable-apple_ieee was given.
6561 if test "${enable_apple_ieee+set}" = set; then
6562   enableval=$enable_apple_ieee;
6563                           if test "$enableval" = yes; then
6564                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6565                           else
6566                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6567                           fi
6568
6569 else
6570
6571                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6572
6573 fi
6574
6575
6576           eval "$wx_cv_use_apple_ieee"
6577
6578           if test x"$enablestring" = xdisable; then
6579             if test $wxUSE_APPLE_IEEE = no; then
6580               result=yes
6581             else
6582               result=no
6583             fi
6584           else
6585             result=$wxUSE_APPLE_IEEE
6586           fi
6587
6588           { echo "$as_me:$LINENO: result: $result" >&5
6589 echo "${ECHO_T}$result" >&6; }
6590
6591
6592           enablestring=
6593           defaultval=$wxUSE_ALL_FEATURES
6594           if test -z "$defaultval"; then
6595               if test x"$enablestring" = xdisable; then
6596                   defaultval=yes
6597               else
6598                   defaultval=no
6599               fi
6600           fi
6601
6602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6603 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6604           # Check whether --enable-arcstream was given.
6605 if test "${enable_arcstream+set}" = set; then
6606   enableval=$enable_arcstream;
6607                           if test "$enableval" = yes; then
6608                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6609                           else
6610                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6611                           fi
6612
6613 else
6614
6615                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6616
6617 fi
6618
6619
6620           eval "$wx_cv_use_arcstream"
6621
6622           if test x"$enablestring" = xdisable; then
6623             if test $wxUSE_ARCHIVE_STREAMS = no; then
6624               result=yes
6625             else
6626               result=no
6627             fi
6628           else
6629             result=$wxUSE_ARCHIVE_STREAMS
6630           fi
6631
6632           { echo "$as_me:$LINENO: result: $result" >&5
6633 echo "${ECHO_T}$result" >&6; }
6634
6635
6636           enablestring=
6637           defaultval=$wxUSE_ALL_FEATURES
6638           if test -z "$defaultval"; then
6639               if test x"$enablestring" = xdisable; then
6640                   defaultval=yes
6641               else
6642                   defaultval=no
6643               fi
6644           fi
6645
6646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6647 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6648           # Check whether --enable-base64 was given.
6649 if test "${enable_base64+set}" = set; then
6650   enableval=$enable_base64;
6651                           if test "$enableval" = yes; then
6652                             wx_cv_use_base64='wxUSE_BASE64=yes'
6653                           else
6654                             wx_cv_use_base64='wxUSE_BASE64=no'
6655                           fi
6656
6657 else
6658
6659                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6660
6661 fi
6662
6663
6664           eval "$wx_cv_use_base64"
6665
6666           if test x"$enablestring" = xdisable; then
6667             if test $wxUSE_BASE64 = no; then
6668               result=yes
6669             else
6670               result=no
6671             fi
6672           else
6673             result=$wxUSE_BASE64
6674           fi
6675
6676           { echo "$as_me:$LINENO: result: $result" >&5
6677 echo "${ECHO_T}$result" >&6; }
6678
6679
6680           enablestring=
6681           defaultval=$wxUSE_ALL_FEATURES
6682           if test -z "$defaultval"; then
6683               if test x"$enablestring" = xdisable; then
6684                   defaultval=yes
6685               else
6686                   defaultval=no
6687               fi
6688           fi
6689
6690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6691 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6692           # Check whether --enable-backtrace was given.
6693 if test "${enable_backtrace+set}" = set; then
6694   enableval=$enable_backtrace;
6695                           if test "$enableval" = yes; then
6696                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6697                           else
6698                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6699                           fi
6700
6701 else
6702
6703                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6704
6705 fi
6706
6707
6708           eval "$wx_cv_use_backtrace"
6709
6710           if test x"$enablestring" = xdisable; then
6711             if test $wxUSE_STACKWALKER = no; then
6712               result=yes
6713             else
6714               result=no
6715             fi
6716           else
6717             result=$wxUSE_STACKWALKER
6718           fi
6719
6720           { echo "$as_me:$LINENO: result: $result" >&5
6721 echo "${ECHO_T}$result" >&6; }
6722
6723
6724           enablestring=
6725           defaultval=$wxUSE_ALL_FEATURES
6726           if test -z "$defaultval"; then
6727               if test x"$enablestring" = xdisable; then
6728                   defaultval=yes
6729               else
6730                   defaultval=no
6731               fi
6732           fi
6733
6734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6735 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6736           # Check whether --enable-catch_segvs was given.
6737 if test "${enable_catch_segvs+set}" = set; then
6738   enableval=$enable_catch_segvs;
6739                           if test "$enableval" = yes; then
6740                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6741                           else
6742                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6743                           fi
6744
6745 else
6746
6747                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6748
6749 fi
6750
6751
6752           eval "$wx_cv_use_catch_segvs"
6753
6754           if test x"$enablestring" = xdisable; then
6755             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6756               result=yes
6757             else
6758               result=no
6759             fi
6760           else
6761             result=$wxUSE_ON_FATAL_EXCEPTION
6762           fi
6763
6764           { echo "$as_me:$LINENO: result: $result" >&5
6765 echo "${ECHO_T}$result" >&6; }
6766
6767
6768           enablestring=
6769           defaultval=$wxUSE_ALL_FEATURES
6770           if test -z "$defaultval"; then
6771               if test x"$enablestring" = xdisable; then
6772                   defaultval=yes
6773               else
6774                   defaultval=no
6775               fi
6776           fi
6777
6778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6779 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6780           # Check whether --enable-cmdline was given.
6781 if test "${enable_cmdline+set}" = set; then
6782   enableval=$enable_cmdline;
6783                           if test "$enableval" = yes; then
6784                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6785                           else
6786                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6787                           fi
6788
6789 else
6790
6791                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6792
6793 fi
6794
6795
6796           eval "$wx_cv_use_cmdline"
6797
6798           if test x"$enablestring" = xdisable; then
6799             if test $wxUSE_CMDLINE_PARSER = no; then
6800               result=yes
6801             else
6802               result=no
6803             fi
6804           else
6805             result=$wxUSE_CMDLINE_PARSER
6806           fi
6807
6808           { echo "$as_me:$LINENO: result: $result" >&5
6809 echo "${ECHO_T}$result" >&6; }
6810
6811
6812           enablestring=
6813           defaultval=$wxUSE_ALL_FEATURES
6814           if test -z "$defaultval"; then
6815               if test x"$enablestring" = xdisable; then
6816                   defaultval=yes
6817               else
6818                   defaultval=no
6819               fi
6820           fi
6821
6822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6823 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6824           # Check whether --enable-datetime was given.
6825 if test "${enable_datetime+set}" = set; then
6826   enableval=$enable_datetime;
6827                           if test "$enableval" = yes; then
6828                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6829                           else
6830                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6831                           fi
6832
6833 else
6834
6835                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6836
6837 fi
6838
6839
6840           eval "$wx_cv_use_datetime"
6841
6842           if test x"$enablestring" = xdisable; then
6843             if test $wxUSE_DATETIME = no; then
6844               result=yes
6845             else
6846               result=no
6847             fi
6848           else
6849             result=$wxUSE_DATETIME
6850           fi
6851
6852           { echo "$as_me:$LINENO: result: $result" >&5
6853 echo "${ECHO_T}$result" >&6; }
6854
6855
6856           enablestring=
6857           defaultval=$wxUSE_ALL_FEATURES
6858           if test -z "$defaultval"; then
6859               if test x"$enablestring" = xdisable; then
6860                   defaultval=yes
6861               else
6862                   defaultval=no
6863               fi
6864           fi
6865
6866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6867 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6868           # Check whether --enable-debugreport was given.
6869 if test "${enable_debugreport+set}" = set; then
6870   enableval=$enable_debugreport;
6871                           if test "$enableval" = yes; then
6872                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6873                           else
6874                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6875                           fi
6876
6877 else
6878
6879                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6880
6881 fi
6882
6883
6884           eval "$wx_cv_use_debugreport"
6885
6886           if test x"$enablestring" = xdisable; then
6887             if test $wxUSE_DEBUGREPORT = no; then
6888               result=yes
6889             else
6890               result=no
6891             fi
6892           else
6893             result=$wxUSE_DEBUGREPORT
6894           fi
6895
6896           { echo "$as_me:$LINENO: result: $result" >&5
6897 echo "${ECHO_T}$result" >&6; }
6898
6899
6900           enablestring=
6901           defaultval=$wxUSE_ALL_FEATURES
6902           if test -z "$defaultval"; then
6903               if test x"$enablestring" = xdisable; then
6904                   defaultval=yes
6905               else
6906                   defaultval=no
6907               fi
6908           fi
6909
6910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6911 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6912           # Check whether --enable-dialupman was given.
6913 if test "${enable_dialupman+set}" = set; then
6914   enableval=$enable_dialupman;
6915                           if test "$enableval" = yes; then
6916                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6917                           else
6918                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6919                           fi
6920
6921 else
6922
6923                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6924
6925 fi
6926
6927
6928           eval "$wx_cv_use_dialupman"
6929
6930           if test x"$enablestring" = xdisable; then
6931             if test $wxUSE_DIALUP_MANAGER = no; then
6932               result=yes
6933             else
6934               result=no
6935             fi
6936           else
6937             result=$wxUSE_DIALUP_MANAGER
6938           fi
6939
6940           { echo "$as_me:$LINENO: result: $result" >&5
6941 echo "${ECHO_T}$result" >&6; }
6942
6943
6944           enablestring=
6945           defaultval=$wxUSE_ALL_FEATURES
6946           if test -z "$defaultval"; then
6947               if test x"$enablestring" = xdisable; then
6948                   defaultval=yes
6949               else
6950                   defaultval=no
6951               fi
6952           fi
6953
6954           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6955 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6956           # Check whether --enable-dynlib was given.
6957 if test "${enable_dynlib+set}" = set; then
6958   enableval=$enable_dynlib;
6959                           if test "$enableval" = yes; then
6960                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6961                           else
6962                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6963                           fi
6964
6965 else
6966
6967                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6968
6969 fi
6970
6971
6972           eval "$wx_cv_use_dynlib"
6973
6974           if test x"$enablestring" = xdisable; then
6975             if test $wxUSE_DYNLIB_CLASS = no; then
6976               result=yes
6977             else
6978               result=no
6979             fi
6980           else
6981             result=$wxUSE_DYNLIB_CLASS
6982           fi
6983
6984           { echo "$as_me:$LINENO: result: $result" >&5
6985 echo "${ECHO_T}$result" >&6; }
6986
6987
6988           enablestring=
6989           defaultval=$wxUSE_ALL_FEATURES
6990           if test -z "$defaultval"; then
6991               if test x"$enablestring" = xdisable; then
6992                   defaultval=yes
6993               else
6994                   defaultval=no
6995               fi
6996           fi
6997
6998           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6999 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7000           # Check whether --enable-dynamicloader was given.
7001 if test "${enable_dynamicloader+set}" = set; then
7002   enableval=$enable_dynamicloader;
7003                           if test "$enableval" = yes; then
7004                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7005                           else
7006                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7007                           fi
7008
7009 else
7010
7011                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7012
7013 fi
7014
7015
7016           eval "$wx_cv_use_dynamicloader"
7017
7018           if test x"$enablestring" = xdisable; then
7019             if test $wxUSE_DYNAMIC_LOADER = no; then
7020               result=yes
7021             else
7022               result=no
7023             fi
7024           else
7025             result=$wxUSE_DYNAMIC_LOADER
7026           fi
7027
7028           { echo "$as_me:$LINENO: result: $result" >&5
7029 echo "${ECHO_T}$result" >&6; }
7030
7031
7032           enablestring=
7033           defaultval=$wxUSE_ALL_FEATURES
7034           if test -z "$defaultval"; then
7035               if test x"$enablestring" = xdisable; then
7036                   defaultval=yes
7037               else
7038                   defaultval=no
7039               fi
7040           fi
7041
7042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7043 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7044           # Check whether --enable-exceptions was given.
7045 if test "${enable_exceptions+set}" = set; then
7046   enableval=$enable_exceptions;
7047                           if test "$enableval" = yes; then
7048                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7049                           else
7050                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7051                           fi
7052
7053 else
7054
7055                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7056
7057 fi
7058
7059
7060           eval "$wx_cv_use_exceptions"
7061
7062           if test x"$enablestring" = xdisable; then
7063             if test $wxUSE_EXCEPTIONS = no; then
7064               result=yes
7065             else
7066               result=no
7067             fi
7068           else
7069             result=$wxUSE_EXCEPTIONS
7070           fi
7071
7072           { echo "$as_me:$LINENO: result: $result" >&5
7073 echo "${ECHO_T}$result" >&6; }
7074
7075
7076           enablestring=
7077           defaultval=$wxUSE_ALL_FEATURES
7078           if test -z "$defaultval"; then
7079               if test x"$enablestring" = xdisable; then
7080                   defaultval=yes
7081               else
7082                   defaultval=no
7083               fi
7084           fi
7085
7086           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7087 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7088           # Check whether --enable-ffile was given.
7089 if test "${enable_ffile+set}" = set; then
7090   enableval=$enable_ffile;
7091                           if test "$enableval" = yes; then
7092                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7093                           else
7094                             wx_cv_use_ffile='wxUSE_FFILE=no'
7095                           fi
7096
7097 else
7098
7099                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7100
7101 fi
7102
7103
7104           eval "$wx_cv_use_ffile"
7105
7106           if test x"$enablestring" = xdisable; then
7107             if test $wxUSE_FFILE = no; then
7108               result=yes
7109             else
7110               result=no
7111             fi
7112           else
7113             result=$wxUSE_FFILE
7114           fi
7115
7116           { echo "$as_me:$LINENO: result: $result" >&5
7117 echo "${ECHO_T}$result" >&6; }
7118
7119
7120           enablestring=
7121           defaultval=$wxUSE_ALL_FEATURES
7122           if test -z "$defaultval"; then
7123               if test x"$enablestring" = xdisable; then
7124                   defaultval=yes
7125               else
7126                   defaultval=no
7127               fi
7128           fi
7129
7130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7131 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7132           # Check whether --enable-file was given.
7133 if test "${enable_file+set}" = set; then
7134   enableval=$enable_file;
7135                           if test "$enableval" = yes; then
7136                             wx_cv_use_file='wxUSE_FILE=yes'
7137                           else
7138                             wx_cv_use_file='wxUSE_FILE=no'
7139                           fi
7140
7141 else
7142
7143                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7144
7145 fi
7146
7147
7148           eval "$wx_cv_use_file"
7149
7150           if test x"$enablestring" = xdisable; then
7151             if test $wxUSE_FILE = no; then
7152               result=yes
7153             else
7154               result=no
7155             fi
7156           else
7157             result=$wxUSE_FILE
7158           fi
7159
7160           { echo "$as_me:$LINENO: result: $result" >&5
7161 echo "${ECHO_T}$result" >&6; }
7162
7163
7164           enablestring=
7165           defaultval=$wxUSE_ALL_FEATURES
7166           if test -z "$defaultval"; then
7167               if test x"$enablestring" = xdisable; then
7168                   defaultval=yes
7169               else
7170                   defaultval=no
7171               fi
7172           fi
7173
7174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7175 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7176           # Check whether --enable-filehistory was given.
7177 if test "${enable_filehistory+set}" = set; then
7178   enableval=$enable_filehistory;
7179                           if test "$enableval" = yes; then
7180                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7181                           else
7182                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7183                           fi
7184
7185 else
7186
7187                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7188
7189 fi
7190
7191
7192           eval "$wx_cv_use_filehistory"
7193
7194           if test x"$enablestring" = xdisable; then
7195             if test $wxUSE_FILE_HISTORY = no; then
7196               result=yes
7197             else
7198               result=no
7199             fi
7200           else
7201             result=$wxUSE_FILE_HISTORY
7202           fi
7203
7204           { echo "$as_me:$LINENO: result: $result" >&5
7205 echo "${ECHO_T}$result" >&6; }
7206
7207
7208           enablestring=
7209           defaultval=$wxUSE_ALL_FEATURES
7210           if test -z "$defaultval"; then
7211               if test x"$enablestring" = xdisable; then
7212                   defaultval=yes
7213               else
7214                   defaultval=no
7215               fi
7216           fi
7217
7218           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7219 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7220           # Check whether --enable-filesystem was given.
7221 if test "${enable_filesystem+set}" = set; then
7222   enableval=$enable_filesystem;
7223                           if test "$enableval" = yes; then
7224                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7225                           else
7226                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7227                           fi
7228
7229 else
7230
7231                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7232
7233 fi
7234
7235
7236           eval "$wx_cv_use_filesystem"
7237
7238           if test x"$enablestring" = xdisable; then
7239             if test $wxUSE_FILESYSTEM = no; then
7240               result=yes
7241             else
7242               result=no
7243             fi
7244           else
7245             result=$wxUSE_FILESYSTEM
7246           fi
7247
7248           { echo "$as_me:$LINENO: result: $result" >&5
7249 echo "${ECHO_T}$result" >&6; }
7250
7251
7252           enablestring=
7253           defaultval=$wxUSE_ALL_FEATURES
7254           if test -z "$defaultval"; then
7255               if test x"$enablestring" = xdisable; then
7256                   defaultval=yes
7257               else
7258                   defaultval=no
7259               fi
7260           fi
7261
7262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7263 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7264           # Check whether --enable-fontenum was given.
7265 if test "${enable_fontenum+set}" = set; then
7266   enableval=$enable_fontenum;
7267                           if test "$enableval" = yes; then
7268                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7269                           else
7270                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7271                           fi
7272
7273 else
7274
7275                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7276
7277 fi
7278
7279
7280           eval "$wx_cv_use_fontenum"
7281
7282           if test x"$enablestring" = xdisable; then
7283             if test $wxUSE_FONTENUM = no; then
7284               result=yes
7285             else
7286               result=no
7287             fi
7288           else
7289             result=$wxUSE_FONTENUM
7290           fi
7291
7292           { echo "$as_me:$LINENO: result: $result" >&5
7293 echo "${ECHO_T}$result" >&6; }
7294
7295
7296           enablestring=
7297           defaultval=$wxUSE_ALL_FEATURES
7298           if test -z "$defaultval"; then
7299               if test x"$enablestring" = xdisable; then
7300                   defaultval=yes
7301               else
7302                   defaultval=no
7303               fi
7304           fi
7305
7306           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7307 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7308           # Check whether --enable-fontmap was given.
7309 if test "${enable_fontmap+set}" = set; then
7310   enableval=$enable_fontmap;
7311                           if test "$enableval" = yes; then
7312                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7313                           else
7314                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7315                           fi
7316
7317 else
7318
7319                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7320
7321 fi
7322
7323
7324           eval "$wx_cv_use_fontmap"
7325
7326           if test x"$enablestring" = xdisable; then
7327             if test $wxUSE_FONTMAP = no; then
7328               result=yes
7329             else
7330               result=no
7331             fi
7332           else
7333             result=$wxUSE_FONTMAP
7334           fi
7335
7336           { echo "$as_me:$LINENO: result: $result" >&5
7337 echo "${ECHO_T}$result" >&6; }
7338
7339
7340           enablestring=
7341           defaultval=$wxUSE_ALL_FEATURES
7342           if test -z "$defaultval"; then
7343               if test x"$enablestring" = xdisable; then
7344                   defaultval=yes
7345               else
7346                   defaultval=no
7347               fi
7348           fi
7349
7350           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7351 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7352           # Check whether --enable-fs_archive was given.
7353 if test "${enable_fs_archive+set}" = set; then
7354   enableval=$enable_fs_archive;
7355                           if test "$enableval" = yes; then
7356                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7357                           else
7358                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7359                           fi
7360
7361 else
7362
7363                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7364
7365 fi
7366
7367
7368           eval "$wx_cv_use_fs_archive"
7369
7370           if test x"$enablestring" = xdisable; then
7371             if test $wxUSE_FS_ARCHIVE = no; then
7372               result=yes
7373             else
7374               result=no
7375             fi
7376           else
7377             result=$wxUSE_FS_ARCHIVE
7378           fi
7379
7380           { echo "$as_me:$LINENO: result: $result" >&5
7381 echo "${ECHO_T}$result" >&6; }
7382
7383
7384           enablestring=
7385           defaultval=$wxUSE_ALL_FEATURES
7386           if test -z "$defaultval"; then
7387               if test x"$enablestring" = xdisable; then
7388                   defaultval=yes
7389               else
7390                   defaultval=no
7391               fi
7392           fi
7393
7394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7395 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7396           # Check whether --enable-fs_inet was given.
7397 if test "${enable_fs_inet+set}" = set; then
7398   enableval=$enable_fs_inet;
7399                           if test "$enableval" = yes; then
7400                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7401                           else
7402                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7403                           fi
7404
7405 else
7406
7407                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7408
7409 fi
7410
7411
7412           eval "$wx_cv_use_fs_inet"
7413
7414           if test x"$enablestring" = xdisable; then
7415             if test $wxUSE_FS_INET = no; then
7416               result=yes
7417             else
7418               result=no
7419             fi
7420           else
7421             result=$wxUSE_FS_INET
7422           fi
7423
7424           { echo "$as_me:$LINENO: result: $result" >&5
7425 echo "${ECHO_T}$result" >&6; }
7426
7427
7428           enablestring=
7429           defaultval=$wxUSE_ALL_FEATURES
7430           if test -z "$defaultval"; then
7431               if test x"$enablestring" = xdisable; then
7432                   defaultval=yes
7433               else
7434                   defaultval=no
7435               fi
7436           fi
7437
7438           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7439 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7440           # Check whether --enable-fs_zip was given.
7441 if test "${enable_fs_zip+set}" = set; then
7442   enableval=$enable_fs_zip;
7443                           if test "$enableval" = yes; then
7444                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7445                           else
7446                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7447                           fi
7448
7449 else
7450
7451                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7452
7453 fi
7454
7455
7456           eval "$wx_cv_use_fs_zip"
7457
7458           if test x"$enablestring" = xdisable; then
7459             if test $wxUSE_FS_ZIP = no; then
7460               result=yes
7461             else
7462               result=no
7463             fi
7464           else
7465             result=$wxUSE_FS_ZIP
7466           fi
7467
7468           { echo "$as_me:$LINENO: result: $result" >&5
7469 echo "${ECHO_T}$result" >&6; }
7470
7471
7472           enablestring=
7473           defaultval=$wxUSE_ALL_FEATURES
7474           if test -z "$defaultval"; then
7475               if test x"$enablestring" = xdisable; then
7476                   defaultval=yes
7477               else
7478                   defaultval=no
7479               fi
7480           fi
7481
7482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7483 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7484           # Check whether --enable-fswatcher was given.
7485 if test "${enable_fswatcher+set}" = set; then
7486   enableval=$enable_fswatcher;
7487                           if test "$enableval" = yes; then
7488                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7489                           else
7490                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7491                           fi
7492
7493 else
7494
7495                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7496
7497 fi
7498
7499
7500           eval "$wx_cv_use_fswatcher"
7501
7502           if test x"$enablestring" = xdisable; then
7503             if test $wxUSE_FSWATCHER = no; then
7504               result=yes
7505             else
7506               result=no
7507             fi
7508           else
7509             result=$wxUSE_FSWATCHER
7510           fi
7511
7512           { echo "$as_me:$LINENO: result: $result" >&5
7513 echo "${ECHO_T}$result" >&6; }
7514
7515
7516           enablestring=
7517           defaultval=$wxUSE_ALL_FEATURES
7518           if test -z "$defaultval"; then
7519               if test x"$enablestring" = xdisable; then
7520                   defaultval=yes
7521               else
7522                   defaultval=no
7523               fi
7524           fi
7525
7526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7527 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7528           # Check whether --enable-geometry was given.
7529 if test "${enable_geometry+set}" = set; then
7530   enableval=$enable_geometry;
7531                           if test "$enableval" = yes; then
7532                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7533                           else
7534                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7535                           fi
7536
7537 else
7538
7539                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7540
7541 fi
7542
7543
7544           eval "$wx_cv_use_geometry"
7545
7546           if test x"$enablestring" = xdisable; then
7547             if test $wxUSE_GEOMETRY = no; then
7548               result=yes
7549             else
7550               result=no
7551             fi
7552           else
7553             result=$wxUSE_GEOMETRY
7554           fi
7555
7556           { echo "$as_me:$LINENO: result: $result" >&5
7557 echo "${ECHO_T}$result" >&6; }
7558
7559
7560           enablestring=
7561           defaultval=$wxUSE_ALL_FEATURES
7562           if test -z "$defaultval"; then
7563               if test x"$enablestring" = xdisable; then
7564                   defaultval=yes
7565               else
7566                   defaultval=no
7567               fi
7568           fi
7569
7570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7571 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7572           # Check whether --enable-log was given.
7573 if test "${enable_log+set}" = set; then
7574   enableval=$enable_log;
7575                           if test "$enableval" = yes; then
7576                             wx_cv_use_log='wxUSE_LOG=yes'
7577                           else
7578                             wx_cv_use_log='wxUSE_LOG=no'
7579                           fi
7580
7581 else
7582
7583                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7584
7585 fi
7586
7587
7588           eval "$wx_cv_use_log"
7589
7590           if test x"$enablestring" = xdisable; then
7591             if test $wxUSE_LOG = no; then
7592               result=yes
7593             else
7594               result=no
7595             fi
7596           else
7597             result=$wxUSE_LOG
7598           fi
7599
7600           { echo "$as_me:$LINENO: result: $result" >&5
7601 echo "${ECHO_T}$result" >&6; }
7602
7603
7604           enablestring=
7605           defaultval=$wxUSE_ALL_FEATURES
7606           if test -z "$defaultval"; then
7607               if test x"$enablestring" = xdisable; then
7608                   defaultval=yes
7609               else
7610                   defaultval=no
7611               fi
7612           fi
7613
7614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7615 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7616           # Check whether --enable-longlong was given.
7617 if test "${enable_longlong+set}" = set; then
7618   enableval=$enable_longlong;
7619                           if test "$enableval" = yes; then
7620                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7621                           else
7622                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7623                           fi
7624
7625 else
7626
7627                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7628
7629 fi
7630
7631
7632           eval "$wx_cv_use_longlong"
7633
7634           if test x"$enablestring" = xdisable; then
7635             if test $wxUSE_LONGLONG = no; then
7636               result=yes
7637             else
7638               result=no
7639             fi
7640           else
7641             result=$wxUSE_LONGLONG
7642           fi
7643
7644           { echo "$as_me:$LINENO: result: $result" >&5
7645 echo "${ECHO_T}$result" >&6; }
7646
7647
7648           enablestring=
7649           defaultval=$wxUSE_ALL_FEATURES
7650           if test -z "$defaultval"; then
7651               if test x"$enablestring" = xdisable; then
7652                   defaultval=yes
7653               else
7654                   defaultval=no
7655               fi
7656           fi
7657
7658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7659 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7660           # Check whether --enable-mimetype was given.
7661 if test "${enable_mimetype+set}" = set; then
7662   enableval=$enable_mimetype;
7663                           if test "$enableval" = yes; then
7664                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7665                           else
7666                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7667                           fi
7668
7669 else
7670
7671                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7672
7673 fi
7674
7675
7676           eval "$wx_cv_use_mimetype"
7677
7678           if test x"$enablestring" = xdisable; then
7679             if test $wxUSE_MIMETYPE = no; then
7680               result=yes
7681             else
7682               result=no
7683             fi
7684           else
7685             result=$wxUSE_MIMETYPE
7686           fi
7687
7688           { echo "$as_me:$LINENO: result: $result" >&5
7689 echo "${ECHO_T}$result" >&6; }
7690
7691
7692           enablestring=
7693           defaultval=$wxUSE_ALL_FEATURES
7694           if test -z "$defaultval"; then
7695               if test x"$enablestring" = xdisable; then
7696                   defaultval=yes
7697               else
7698                   defaultval=no
7699               fi
7700           fi
7701
7702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7703 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7704           # Check whether --enable-printfposparam was given.
7705 if test "${enable_printfposparam+set}" = set; then
7706   enableval=$enable_printfposparam;
7707                           if test "$enableval" = yes; then
7708                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7709                           else
7710                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7711                           fi
7712
7713 else
7714
7715                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7716
7717 fi
7718
7719
7720           eval "$wx_cv_use_printfposparam"
7721
7722           if test x"$enablestring" = xdisable; then
7723             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7724               result=yes
7725             else
7726               result=no
7727             fi
7728           else
7729             result=$wxUSE_PRINTF_POS_PARAMS
7730           fi
7731
7732           { echo "$as_me:$LINENO: result: $result" >&5
7733 echo "${ECHO_T}$result" >&6; }
7734
7735
7736           enablestring=
7737           defaultval=$wxUSE_ALL_FEATURES
7738           if test -z "$defaultval"; then
7739               if test x"$enablestring" = xdisable; then
7740                   defaultval=yes
7741               else
7742                   defaultval=no
7743               fi
7744           fi
7745
7746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7747 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7748           # Check whether --enable-snglinst was given.
7749 if test "${enable_snglinst+set}" = set; then
7750   enableval=$enable_snglinst;
7751                           if test "$enableval" = yes; then
7752                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7753                           else
7754                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7755                           fi
7756
7757 else
7758
7759                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7760
7761 fi
7762
7763
7764           eval "$wx_cv_use_snglinst"
7765
7766           if test x"$enablestring" = xdisable; then
7767             if test $wxUSE_SNGLINST_CHECKER = no; then
7768               result=yes
7769             else
7770               result=no
7771             fi
7772           else
7773             result=$wxUSE_SNGLINST_CHECKER
7774           fi
7775
7776           { echo "$as_me:$LINENO: result: $result" >&5
7777 echo "${ECHO_T}$result" >&6; }
7778
7779
7780           enablestring=
7781           defaultval=$wxUSE_ALL_FEATURES
7782           if test -z "$defaultval"; then
7783               if test x"$enablestring" = xdisable; then
7784                   defaultval=yes
7785               else
7786                   defaultval=no
7787               fi
7788           fi
7789
7790           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7791 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7792           # Check whether --enable-sound was given.
7793 if test "${enable_sound+set}" = set; then
7794   enableval=$enable_sound;
7795                           if test "$enableval" = yes; then
7796                             wx_cv_use_sound='wxUSE_SOUND=yes'
7797                           else
7798                             wx_cv_use_sound='wxUSE_SOUND=no'
7799                           fi
7800
7801 else
7802
7803                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7804
7805 fi
7806
7807
7808           eval "$wx_cv_use_sound"
7809
7810           if test x"$enablestring" = xdisable; then
7811             if test $wxUSE_SOUND = no; then
7812               result=yes
7813             else
7814               result=no
7815             fi
7816           else
7817             result=$wxUSE_SOUND
7818           fi
7819
7820           { echo "$as_me:$LINENO: result: $result" >&5
7821 echo "${ECHO_T}$result" >&6; }
7822
7823
7824           enablestring=
7825           defaultval=$wxUSE_ALL_FEATURES
7826           if test -z "$defaultval"; then
7827               if test x"$enablestring" = xdisable; then
7828                   defaultval=yes
7829               else
7830                   defaultval=no
7831               fi
7832           fi
7833
7834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7835 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7836           # Check whether --enable-stdpaths was given.
7837 if test "${enable_stdpaths+set}" = set; then
7838   enableval=$enable_stdpaths;
7839                           if test "$enableval" = yes; then
7840                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7841                           else
7842                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7843                           fi
7844
7845 else
7846
7847                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7848
7849 fi
7850
7851
7852           eval "$wx_cv_use_stdpaths"
7853
7854           if test x"$enablestring" = xdisable; then
7855             if test $wxUSE_STDPATHS = no; then
7856               result=yes
7857             else
7858               result=no
7859             fi
7860           else
7861             result=$wxUSE_STDPATHS
7862           fi
7863
7864           { echo "$as_me:$LINENO: result: $result" >&5
7865 echo "${ECHO_T}$result" >&6; }
7866
7867
7868           enablestring=
7869           defaultval=$wxUSE_ALL_FEATURES
7870           if test -z "$defaultval"; then
7871               if test x"$enablestring" = xdisable; then
7872                   defaultval=yes
7873               else
7874                   defaultval=no
7875               fi
7876           fi
7877
7878           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7879 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7880           # Check whether --enable-stopwatch was given.
7881 if test "${enable_stopwatch+set}" = set; then
7882   enableval=$enable_stopwatch;
7883                           if test "$enableval" = yes; then
7884                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7885                           else
7886                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7887                           fi
7888
7889 else
7890
7891                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7892
7893 fi
7894
7895
7896           eval "$wx_cv_use_stopwatch"
7897
7898           if test x"$enablestring" = xdisable; then
7899             if test $wxUSE_STOPWATCH = no; then
7900               result=yes
7901             else
7902               result=no
7903             fi
7904           else
7905             result=$wxUSE_STOPWATCH
7906           fi
7907
7908           { echo "$as_me:$LINENO: result: $result" >&5
7909 echo "${ECHO_T}$result" >&6; }
7910
7911
7912           enablestring=
7913           defaultval=$wxUSE_ALL_FEATURES
7914           if test -z "$defaultval"; then
7915               if test x"$enablestring" = xdisable; then
7916                   defaultval=yes
7917               else
7918                   defaultval=no
7919               fi
7920           fi
7921
7922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7923 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7924           # Check whether --enable-streams was given.
7925 if test "${enable_streams+set}" = set; then
7926   enableval=$enable_streams;
7927                           if test "$enableval" = yes; then
7928                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7929                           else
7930                             wx_cv_use_streams='wxUSE_STREAMS=no'
7931                           fi
7932
7933 else
7934
7935                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7936
7937 fi
7938
7939
7940           eval "$wx_cv_use_streams"
7941
7942           if test x"$enablestring" = xdisable; then
7943             if test $wxUSE_STREAMS = no; then
7944               result=yes
7945             else
7946               result=no
7947             fi
7948           else
7949             result=$wxUSE_STREAMS
7950           fi
7951
7952           { echo "$as_me:$LINENO: result: $result" >&5
7953 echo "${ECHO_T}$result" >&6; }
7954
7955
7956           enablestring=
7957           defaultval=$wxUSE_ALL_FEATURES
7958           if test -z "$defaultval"; then
7959               if test x"$enablestring" = xdisable; then
7960                   defaultval=yes
7961               else
7962                   defaultval=no
7963               fi
7964           fi
7965
7966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7967 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7968           # Check whether --enable-sysoptions was given.
7969 if test "${enable_sysoptions+set}" = set; then
7970   enableval=$enable_sysoptions;
7971                           if test "$enableval" = yes; then
7972                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7973                           else
7974                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7975                           fi
7976
7977 else
7978
7979                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7980
7981 fi
7982
7983
7984           eval "$wx_cv_use_sysoptions"
7985
7986           if test x"$enablestring" = xdisable; then
7987             if test $wxUSE_SYSTEM_OPTIONS = no; then
7988               result=yes
7989             else
7990               result=no
7991             fi
7992           else
7993             result=$wxUSE_SYSTEM_OPTIONS
7994           fi
7995
7996           { echo "$as_me:$LINENO: result: $result" >&5
7997 echo "${ECHO_T}$result" >&6; }
7998
7999
8000           enablestring=
8001           defaultval=$wxUSE_ALL_FEATURES
8002           if test -z "$defaultval"; then
8003               if test x"$enablestring" = xdisable; then
8004                   defaultval=yes
8005               else
8006                   defaultval=no
8007               fi
8008           fi
8009
8010           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8011 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8012           # Check whether --enable-tarstream was given.
8013 if test "${enable_tarstream+set}" = set; then
8014   enableval=$enable_tarstream;
8015                           if test "$enableval" = yes; then
8016                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8017                           else
8018                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8019                           fi
8020
8021 else
8022
8023                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8024
8025 fi
8026
8027
8028           eval "$wx_cv_use_tarstream"
8029
8030           if test x"$enablestring" = xdisable; then
8031             if test $wxUSE_TARSTREAM = no; then
8032               result=yes
8033             else
8034               result=no
8035             fi
8036           else
8037             result=$wxUSE_TARSTREAM
8038           fi
8039
8040           { echo "$as_me:$LINENO: result: $result" >&5
8041 echo "${ECHO_T}$result" >&6; }
8042
8043
8044           enablestring=
8045           defaultval=$wxUSE_ALL_FEATURES
8046           if test -z "$defaultval"; then
8047               if test x"$enablestring" = xdisable; then
8048                   defaultval=yes
8049               else
8050                   defaultval=no
8051               fi
8052           fi
8053
8054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8055 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8056           # Check whether --enable-textbuf was given.
8057 if test "${enable_textbuf+set}" = set; then
8058   enableval=$enable_textbuf;
8059                           if test "$enableval" = yes; then
8060                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8061                           else
8062                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8063                           fi
8064
8065 else
8066
8067                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8068
8069 fi
8070
8071
8072           eval "$wx_cv_use_textbuf"
8073
8074           if test x"$enablestring" = xdisable; then
8075             if test $wxUSE_TEXTBUFFER = no; then
8076               result=yes
8077             else
8078               result=no
8079             fi
8080           else
8081             result=$wxUSE_TEXTBUFFER
8082           fi
8083
8084           { echo "$as_me:$LINENO: result: $result" >&5
8085 echo "${ECHO_T}$result" >&6; }
8086
8087
8088           enablestring=
8089           defaultval=$wxUSE_ALL_FEATURES
8090           if test -z "$defaultval"; then
8091               if test x"$enablestring" = xdisable; then
8092                   defaultval=yes
8093               else
8094                   defaultval=no
8095               fi
8096           fi
8097
8098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8099 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8100           # Check whether --enable-textfile was given.
8101 if test "${enable_textfile+set}" = set; then
8102   enableval=$enable_textfile;
8103                           if test "$enableval" = yes; then
8104                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8105                           else
8106                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8107                           fi
8108
8109 else
8110
8111                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8112
8113 fi
8114
8115
8116           eval "$wx_cv_use_textfile"
8117
8118           if test x"$enablestring" = xdisable; then
8119             if test $wxUSE_TEXTFILE = no; then
8120               result=yes
8121             else
8122               result=no
8123             fi
8124           else
8125             result=$wxUSE_TEXTFILE
8126           fi
8127
8128           { echo "$as_me:$LINENO: result: $result" >&5
8129 echo "${ECHO_T}$result" >&6; }
8130
8131
8132           enablestring=
8133           defaultval=$wxUSE_ALL_FEATURES
8134           if test -z "$defaultval"; then
8135               if test x"$enablestring" = xdisable; then
8136                   defaultval=yes
8137               else
8138                   defaultval=no
8139               fi
8140           fi
8141
8142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8143 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8144           # Check whether --enable-timer was given.
8145 if test "${enable_timer+set}" = set; then
8146   enableval=$enable_timer;
8147                           if test "$enableval" = yes; then
8148                             wx_cv_use_timer='wxUSE_TIMER=yes'
8149                           else
8150                             wx_cv_use_timer='wxUSE_TIMER=no'
8151                           fi
8152
8153 else
8154
8155                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8156
8157 fi
8158
8159
8160           eval "$wx_cv_use_timer"
8161
8162           if test x"$enablestring" = xdisable; then
8163             if test $wxUSE_TIMER = no; then
8164               result=yes
8165             else
8166               result=no
8167             fi
8168           else
8169             result=$wxUSE_TIMER
8170           fi
8171
8172           { echo "$as_me:$LINENO: result: $result" >&5
8173 echo "${ECHO_T}$result" >&6; }
8174
8175
8176           enablestring=
8177           defaultval=$wxUSE_ALL_FEATURES
8178           if test -z "$defaultval"; then
8179               if test x"$enablestring" = xdisable; then
8180                   defaultval=yes
8181               else
8182                   defaultval=no
8183               fi
8184           fi
8185
8186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8187 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8188           # Check whether --enable-variant was given.
8189 if test "${enable_variant+set}" = set; then
8190   enableval=$enable_variant;
8191                           if test "$enableval" = yes; then
8192                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8193                           else
8194                             wx_cv_use_variant='wxUSE_VARIANT=no'
8195                           fi
8196
8197 else
8198
8199                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8200
8201 fi
8202
8203
8204           eval "$wx_cv_use_variant"
8205
8206           if test x"$enablestring" = xdisable; then
8207             if test $wxUSE_VARIANT = no; then
8208               result=yes
8209             else
8210               result=no
8211             fi
8212           else
8213             result=$wxUSE_VARIANT
8214           fi
8215
8216           { echo "$as_me:$LINENO: result: $result" >&5
8217 echo "${ECHO_T}$result" >&6; }
8218
8219
8220           enablestring=
8221           defaultval=$wxUSE_ALL_FEATURES
8222           if test -z "$defaultval"; then
8223               if test x"$enablestring" = xdisable; then
8224                   defaultval=yes
8225               else
8226                   defaultval=no
8227               fi
8228           fi
8229
8230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8231 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8232           # Check whether --enable-zipstream was given.
8233 if test "${enable_zipstream+set}" = set; then
8234   enableval=$enable_zipstream;
8235                           if test "$enableval" = yes; then
8236                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8237                           else
8238                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8239                           fi
8240
8241 else
8242
8243                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8244
8245 fi
8246
8247
8248           eval "$wx_cv_use_zipstream"
8249
8250           if test x"$enablestring" = xdisable; then
8251             if test $wxUSE_ZIPSTREAM = no; then
8252               result=yes
8253             else
8254               result=no
8255             fi
8256           else
8257             result=$wxUSE_ZIPSTREAM
8258           fi
8259
8260           { echo "$as_me:$LINENO: result: $result" >&5
8261 echo "${ECHO_T}$result" >&6; }
8262
8263
8264
8265           enablestring=
8266           defaultval=$wxUSE_ALL_FEATURES
8267           if test -z "$defaultval"; then
8268               if test x"$enablestring" = xdisable; then
8269                   defaultval=yes
8270               else
8271                   defaultval=no
8272               fi
8273           fi
8274
8275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8276 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8277           # Check whether --enable-url was given.
8278 if test "${enable_url+set}" = set; then
8279   enableval=$enable_url;
8280                           if test "$enableval" = yes; then
8281                             wx_cv_use_url='wxUSE_URL=yes'
8282                           else
8283                             wx_cv_use_url='wxUSE_URL=no'
8284                           fi
8285
8286 else
8287
8288                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8289
8290 fi
8291
8292
8293           eval "$wx_cv_use_url"
8294
8295           if test x"$enablestring" = xdisable; then
8296             if test $wxUSE_URL = no; then
8297               result=yes
8298             else
8299               result=no
8300             fi
8301           else
8302             result=$wxUSE_URL
8303           fi
8304
8305           { echo "$as_me:$LINENO: result: $result" >&5
8306 echo "${ECHO_T}$result" >&6; }
8307
8308
8309           enablestring=
8310           defaultval=$wxUSE_ALL_FEATURES
8311           if test -z "$defaultval"; then
8312               if test x"$enablestring" = xdisable; then
8313                   defaultval=yes
8314               else
8315                   defaultval=no
8316               fi
8317           fi
8318
8319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8320 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8321           # Check whether --enable-protocol was given.
8322 if test "${enable_protocol+set}" = set; then
8323   enableval=$enable_protocol;
8324                           if test "$enableval" = yes; then
8325                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8326                           else
8327                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8328                           fi
8329
8330 else
8331
8332                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8333
8334 fi
8335
8336
8337           eval "$wx_cv_use_protocol"
8338
8339           if test x"$enablestring" = xdisable; then
8340             if test $wxUSE_PROTOCOL = no; then
8341               result=yes
8342             else
8343               result=no
8344             fi
8345           else
8346             result=$wxUSE_PROTOCOL
8347           fi
8348
8349           { echo "$as_me:$LINENO: result: $result" >&5
8350 echo "${ECHO_T}$result" >&6; }
8351
8352
8353           enablestring=
8354           defaultval=$wxUSE_ALL_FEATURES
8355           if test -z "$defaultval"; then
8356               if test x"$enablestring" = xdisable; then
8357                   defaultval=yes
8358               else
8359                   defaultval=no
8360               fi
8361           fi
8362
8363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8364 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8365           # Check whether --enable-protocol_http was given.
8366 if test "${enable_protocol_http+set}" = set; then
8367   enableval=$enable_protocol_http;
8368                           if test "$enableval" = yes; then
8369                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8370                           else
8371                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8372                           fi
8373
8374 else
8375
8376                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8377
8378 fi
8379
8380
8381           eval "$wx_cv_use_protocol_http"
8382
8383           if test x"$enablestring" = xdisable; then
8384             if test $wxUSE_PROTOCOL_HTTP = no; then
8385               result=yes
8386             else
8387               result=no
8388             fi
8389           else
8390             result=$wxUSE_PROTOCOL_HTTP
8391           fi
8392
8393           { echo "$as_me:$LINENO: result: $result" >&5
8394 echo "${ECHO_T}$result" >&6; }
8395
8396
8397           enablestring=
8398           defaultval=$wxUSE_ALL_FEATURES
8399           if test -z "$defaultval"; then
8400               if test x"$enablestring" = xdisable; then
8401                   defaultval=yes
8402               else
8403                   defaultval=no
8404               fi
8405           fi
8406
8407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8408 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8409           # Check whether --enable-protocol_ftp was given.
8410 if test "${enable_protocol_ftp+set}" = set; then
8411   enableval=$enable_protocol_ftp;
8412                           if test "$enableval" = yes; then
8413                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8414                           else
8415                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8416                           fi
8417
8418 else
8419
8420                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8421
8422 fi
8423
8424
8425           eval "$wx_cv_use_protocol_ftp"
8426
8427           if test x"$enablestring" = xdisable; then
8428             if test $wxUSE_PROTOCOL_FTP = no; then
8429               result=yes
8430             else
8431               result=no
8432             fi
8433           else
8434             result=$wxUSE_PROTOCOL_FTP
8435           fi
8436
8437           { echo "$as_me:$LINENO: result: $result" >&5
8438 echo "${ECHO_T}$result" >&6; }
8439
8440
8441           enablestring=
8442           defaultval=$wxUSE_ALL_FEATURES
8443           if test -z "$defaultval"; then
8444               if test x"$enablestring" = xdisable; then
8445                   defaultval=yes
8446               else
8447                   defaultval=no
8448               fi
8449           fi
8450
8451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8452 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8453           # Check whether --enable-protocol_file was given.
8454 if test "${enable_protocol_file+set}" = set; then
8455   enableval=$enable_protocol_file;
8456                           if test "$enableval" = yes; then
8457                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8458                           else
8459                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8460                           fi
8461
8462 else
8463
8464                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8465
8466 fi
8467
8468
8469           eval "$wx_cv_use_protocol_file"
8470
8471           if test x"$enablestring" = xdisable; then
8472             if test $wxUSE_PROTOCOL_FILE = no; then
8473               result=yes
8474             else
8475               result=no
8476             fi
8477           else
8478             result=$wxUSE_PROTOCOL_FILE
8479           fi
8480
8481           { echo "$as_me:$LINENO: result: $result" >&5
8482 echo "${ECHO_T}$result" >&6; }
8483
8484
8485
8486           enablestring=
8487           defaultval=$wxUSE_ALL_FEATURES
8488           if test -z "$defaultval"; then
8489               if test x"$enablestring" = xdisable; then
8490                   defaultval=yes
8491               else
8492                   defaultval=no
8493               fi
8494           fi
8495
8496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8497 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8498           # Check whether --enable-threads was given.
8499 if test "${enable_threads+set}" = set; then
8500   enableval=$enable_threads;
8501                           if test "$enableval" = yes; then
8502                             wx_cv_use_threads='wxUSE_THREADS=yes'
8503                           else
8504                             wx_cv_use_threads='wxUSE_THREADS=no'
8505                           fi
8506
8507 else
8508
8509                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8510
8511 fi
8512
8513
8514           eval "$wx_cv_use_threads"
8515
8516           if test x"$enablestring" = xdisable; then
8517             if test $wxUSE_THREADS = no; then
8518               result=yes
8519             else
8520               result=no
8521             fi
8522           else
8523             result=$wxUSE_THREADS
8524           fi
8525
8526           { echo "$as_me:$LINENO: result: $result" >&5
8527 echo "${ECHO_T}$result" >&6; }
8528
8529
8530
8531           enablestring=
8532           defaultval=
8533           if test -z "$defaultval"; then
8534               if test x"$enablestring" = xdisable; then
8535                   defaultval=yes
8536               else
8537                   defaultval=no
8538               fi
8539           fi
8540
8541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8542 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8543           # Check whether --enable-iniconf was given.
8544 if test "${enable_iniconf+set}" = set; then
8545   enableval=$enable_iniconf;
8546                           if test "$enableval" = yes; then
8547                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8548                           else
8549                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8550                           fi
8551
8552 else
8553
8554                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8555
8556 fi
8557
8558
8559           eval "$wx_cv_use_iniconf"
8560
8561           if test x"$enablestring" = xdisable; then
8562             if test $wxUSE_INICONF = no; then
8563               result=yes
8564             else
8565               result=no
8566             fi
8567           else
8568             result=$wxUSE_INICONF
8569           fi
8570
8571           { echo "$as_me:$LINENO: result: $result" >&5
8572 echo "${ECHO_T}$result" >&6; }
8573
8574
8575           enablestring=
8576           defaultval=$wxUSE_ALL_FEATURES
8577           if test -z "$defaultval"; then
8578               if test x"$enablestring" = xdisable; then
8579                   defaultval=yes
8580               else
8581                   defaultval=no
8582               fi
8583           fi
8584
8585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8586 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8587           # Check whether --enable-regkey was given.
8588 if test "${enable_regkey+set}" = set; then
8589   enableval=$enable_regkey;
8590                           if test "$enableval" = yes; then
8591                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8592                           else
8593                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8594                           fi
8595
8596 else
8597
8598                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8599
8600 fi
8601
8602
8603           eval "$wx_cv_use_regkey"
8604
8605           if test x"$enablestring" = xdisable; then
8606             if test $wxUSE_REGKEY = no; then
8607               result=yes
8608             else
8609               result=no
8610             fi
8611           else
8612             result=$wxUSE_REGKEY
8613           fi
8614
8615           { echo "$as_me:$LINENO: result: $result" >&5
8616 echo "${ECHO_T}$result" >&6; }
8617
8618
8619 if test "$wxUSE_GUI" = "yes"; then
8620
8621
8622
8623           enablestring=
8624           defaultval=$wxUSE_ALL_FEATURES
8625           if test -z "$defaultval"; then
8626               if test x"$enablestring" = xdisable; then
8627                   defaultval=yes
8628               else
8629                   defaultval=no
8630               fi
8631           fi
8632
8633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8634 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8635           # Check whether --enable-docview was given.
8636 if test "${enable_docview+set}" = set; then
8637   enableval=$enable_docview;
8638                           if test "$enableval" = yes; then
8639                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8640                           else
8641                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8642                           fi
8643
8644 else
8645
8646                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8647
8648 fi
8649
8650
8651           eval "$wx_cv_use_docview"
8652
8653           if test x"$enablestring" = xdisable; then
8654             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8655               result=yes
8656             else
8657               result=no
8658             fi
8659           else
8660             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8661           fi
8662
8663           { echo "$as_me:$LINENO: result: $result" >&5
8664 echo "${ECHO_T}$result" >&6; }
8665
8666
8667           enablestring=
8668           defaultval=$wxUSE_ALL_FEATURES
8669           if test -z "$defaultval"; then
8670               if test x"$enablestring" = xdisable; then
8671                   defaultval=yes
8672               else
8673                   defaultval=no
8674               fi
8675           fi
8676
8677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8678 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8679           # Check whether --enable-help was given.
8680 if test "${enable_help+set}" = set; then
8681   enableval=$enable_help;
8682                           if test "$enableval" = yes; then
8683                             wx_cv_use_help='wxUSE_HELP=yes'
8684                           else
8685                             wx_cv_use_help='wxUSE_HELP=no'
8686                           fi
8687
8688 else
8689
8690                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8691
8692 fi
8693
8694
8695           eval "$wx_cv_use_help"
8696
8697           if test x"$enablestring" = xdisable; then
8698             if test $wxUSE_HELP = no; then
8699               result=yes
8700             else
8701               result=no
8702             fi
8703           else
8704             result=$wxUSE_HELP
8705           fi
8706
8707           { echo "$as_me:$LINENO: result: $result" >&5
8708 echo "${ECHO_T}$result" >&6; }
8709
8710
8711           enablestring=
8712           defaultval=$wxUSE_ALL_FEATURES
8713           if test -z "$defaultval"; then
8714               if test x"$enablestring" = xdisable; then
8715                   defaultval=yes
8716               else
8717                   defaultval=no
8718               fi
8719           fi
8720
8721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8722 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8723           # Check whether --enable-mshtmlhelp was given.
8724 if test "${enable_mshtmlhelp+set}" = set; then
8725   enableval=$enable_mshtmlhelp;
8726                           if test "$enableval" = yes; then
8727                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8728                           else
8729                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8730                           fi
8731
8732 else
8733
8734                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8735
8736 fi
8737
8738
8739           eval "$wx_cv_use_mshtmlhelp"
8740
8741           if test x"$enablestring" = xdisable; then
8742             if test $wxUSE_MS_HTML_HELP = no; then
8743               result=yes
8744             else
8745               result=no
8746             fi
8747           else
8748             result=$wxUSE_MS_HTML_HELP
8749           fi
8750
8751           { echo "$as_me:$LINENO: result: $result" >&5
8752 echo "${ECHO_T}$result" >&6; }
8753
8754
8755           enablestring=
8756           defaultval=$wxUSE_ALL_FEATURES
8757           if test -z "$defaultval"; then
8758               if test x"$enablestring" = xdisable; then
8759                   defaultval=yes
8760               else
8761                   defaultval=no
8762               fi
8763           fi
8764
8765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8766 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8767           # Check whether --enable-html was given.
8768 if test "${enable_html+set}" = set; then
8769   enableval=$enable_html;
8770                           if test "$enableval" = yes; then
8771                             wx_cv_use_html='wxUSE_HTML=yes'
8772                           else
8773                             wx_cv_use_html='wxUSE_HTML=no'
8774                           fi
8775
8776 else
8777
8778                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8779
8780 fi
8781
8782
8783           eval "$wx_cv_use_html"
8784
8785           if test x"$enablestring" = xdisable; then
8786             if test $wxUSE_HTML = no; then
8787               result=yes
8788             else
8789               result=no
8790             fi
8791           else
8792             result=$wxUSE_HTML
8793           fi
8794
8795           { echo "$as_me:$LINENO: result: $result" >&5
8796 echo "${ECHO_T}$result" >&6; }
8797
8798
8799           enablestring=
8800           defaultval=$wxUSE_ALL_FEATURES
8801           if test -z "$defaultval"; then
8802               if test x"$enablestring" = xdisable; then
8803                   defaultval=yes
8804               else
8805                   defaultval=no
8806               fi
8807           fi
8808
8809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8810 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8811           # Check whether --enable-htmlhelp was given.
8812 if test "${enable_htmlhelp+set}" = set; then
8813   enableval=$enable_htmlhelp;
8814                           if test "$enableval" = yes; then
8815                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8816                           else
8817                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8818                           fi
8819
8820 else
8821
8822                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8823
8824 fi
8825
8826
8827           eval "$wx_cv_use_htmlhelp"
8828
8829           if test x"$enablestring" = xdisable; then
8830             if test $wxUSE_WXHTML_HELP = no; then
8831               result=yes
8832             else
8833               result=no
8834             fi
8835           else
8836             result=$wxUSE_WXHTML_HELP
8837           fi
8838
8839           { echo "$as_me:$LINENO: result: $result" >&5
8840 echo "${ECHO_T}$result" >&6; }
8841
8842
8843           enablestring=
8844           defaultval=$wxUSE_ALL_FEATURES
8845           if test -z "$defaultval"; then
8846               if test x"$enablestring" = xdisable; then
8847                   defaultval=yes
8848               else
8849                   defaultval=no
8850               fi
8851           fi
8852
8853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8855           # Check whether --enable-xrc was given.
8856 if test "${enable_xrc+set}" = set; then
8857   enableval=$enable_xrc;
8858                           if test "$enableval" = yes; then
8859                             wx_cv_use_xrc='wxUSE_XRC=yes'
8860                           else
8861                             wx_cv_use_xrc='wxUSE_XRC=no'
8862                           fi
8863
8864 else
8865
8866                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8867
8868 fi
8869
8870
8871           eval "$wx_cv_use_xrc"
8872
8873           if test x"$enablestring" = xdisable; then
8874             if test $wxUSE_XRC = no; then
8875               result=yes
8876             else
8877               result=no
8878             fi
8879           else
8880             result=$wxUSE_XRC
8881           fi
8882
8883           { echo "$as_me:$LINENO: result: $result" >&5
8884 echo "${ECHO_T}$result" >&6; }
8885
8886
8887           enablestring=
8888           defaultval=$wxUSE_ALL_FEATURES
8889           if test -z "$defaultval"; then
8890               if test x"$enablestring" = xdisable; then
8891                   defaultval=yes
8892               else
8893                   defaultval=no
8894               fi
8895           fi
8896
8897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8898 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8899           # Check whether --enable-aui was given.
8900 if test "${enable_aui+set}" = set; then
8901   enableval=$enable_aui;
8902                           if test "$enableval" = yes; then
8903                             wx_cv_use_aui='wxUSE_AUI=yes'
8904                           else
8905                             wx_cv_use_aui='wxUSE_AUI=no'
8906                           fi
8907
8908 else
8909
8910                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8911
8912 fi
8913
8914
8915           eval "$wx_cv_use_aui"
8916
8917           if test x"$enablestring" = xdisable; then
8918             if test $wxUSE_AUI = no; then
8919               result=yes
8920             else
8921               result=no
8922             fi
8923           else
8924             result=$wxUSE_AUI
8925           fi
8926
8927           { echo "$as_me:$LINENO: result: $result" >&5
8928 echo "${ECHO_T}$result" >&6; }
8929
8930
8931           enablestring=
8932           defaultval=$wxUSE_ALL_FEATURES
8933           if test -z "$defaultval"; then
8934               if test x"$enablestring" = xdisable; then
8935                   defaultval=yes
8936               else
8937                   defaultval=no
8938               fi
8939           fi
8940
8941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8942 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8943           # Check whether --enable-propgrid was given.
8944 if test "${enable_propgrid+set}" = set; then
8945   enableval=$enable_propgrid;
8946                           if test "$enableval" = yes; then
8947                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8948                           else
8949                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8950                           fi
8951
8952 else
8953
8954                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8955
8956 fi
8957
8958
8959           eval "$wx_cv_use_propgrid"
8960
8961           if test x"$enablestring" = xdisable; then
8962             if test $wxUSE_PROPGRID = no; then
8963               result=yes
8964             else
8965               result=no
8966             fi
8967           else
8968             result=$wxUSE_PROPGRID
8969           fi
8970
8971           { echo "$as_me:$LINENO: result: $result" >&5
8972 echo "${ECHO_T}$result" >&6; }
8973
8974
8975           enablestring=
8976           defaultval=$wxUSE_ALL_FEATURES
8977           if test -z "$defaultval"; then
8978               if test x"$enablestring" = xdisable; then
8979                   defaultval=yes
8980               else
8981                   defaultval=no
8982               fi
8983           fi
8984
8985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8986 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8987           # Check whether --enable-ribbon was given.
8988 if test "${enable_ribbon+set}" = set; then
8989   enableval=$enable_ribbon;
8990                           if test "$enableval" = yes; then
8991                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8992                           else
8993                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8994                           fi
8995
8996 else
8997
8998                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8999
9000 fi
9001
9002
9003           eval "$wx_cv_use_ribbon"
9004
9005           if test x"$enablestring" = xdisable; then
9006             if test $wxUSE_RIBBON = no; then
9007               result=yes
9008             else
9009               result=no
9010             fi
9011           else
9012             result=$wxUSE_RIBBON
9013           fi
9014
9015           { echo "$as_me:$LINENO: result: $result" >&5
9016 echo "${ECHO_T}$result" >&6; }
9017
9018
9019           enablestring=
9020           defaultval=$wxUSE_ALL_FEATURES
9021           if test -z "$defaultval"; then
9022               if test x"$enablestring" = xdisable; then
9023                   defaultval=yes
9024               else
9025                   defaultval=no
9026               fi
9027           fi
9028
9029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9030 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9031           # Check whether --enable-stc was given.
9032 if test "${enable_stc+set}" = set; then
9033   enableval=$enable_stc;
9034                           if test "$enableval" = yes; then
9035                             wx_cv_use_stc='wxUSE_STC=yes'
9036                           else
9037                             wx_cv_use_stc='wxUSE_STC=no'
9038                           fi
9039
9040 else
9041
9042                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9043
9044 fi
9045
9046
9047           eval "$wx_cv_use_stc"
9048
9049           if test x"$enablestring" = xdisable; then
9050             if test $wxUSE_STC = no; then
9051               result=yes
9052             else
9053               result=no
9054             fi
9055           else
9056             result=$wxUSE_STC
9057           fi
9058
9059           { echo "$as_me:$LINENO: result: $result" >&5
9060 echo "${ECHO_T}$result" >&6; }
9061
9062
9063           enablestring=
9064           defaultval=$wxUSE_ALL_FEATURES
9065           if test -z "$defaultval"; then
9066               if test x"$enablestring" = xdisable; then
9067                   defaultval=yes
9068               else
9069                   defaultval=no
9070               fi
9071           fi
9072
9073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9074 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9075           # Check whether --enable-constraints was given.
9076 if test "${enable_constraints+set}" = set; then
9077   enableval=$enable_constraints;
9078                           if test "$enableval" = yes; then
9079                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9080                           else
9081                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9082                           fi
9083
9084 else
9085
9086                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9087
9088 fi
9089
9090
9091           eval "$wx_cv_use_constraints"
9092
9093           if test x"$enablestring" = xdisable; then
9094             if test $wxUSE_CONSTRAINTS = no; then
9095               result=yes
9096             else
9097               result=no
9098             fi
9099           else
9100             result=$wxUSE_CONSTRAINTS
9101           fi
9102
9103           { echo "$as_me:$LINENO: result: $result" >&5
9104 echo "${ECHO_T}$result" >&6; }
9105
9106
9107           enablestring=
9108           defaultval=$wxUSE_ALL_FEATURES
9109           if test -z "$defaultval"; then
9110               if test x"$enablestring" = xdisable; then
9111                   defaultval=yes
9112               else
9113                   defaultval=no
9114               fi
9115           fi
9116
9117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9118 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9119           # Check whether --enable-loggui was given.
9120 if test "${enable_loggui+set}" = set; then
9121   enableval=$enable_loggui;
9122                           if test "$enableval" = yes; then
9123                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9124                           else
9125                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9126                           fi
9127
9128 else
9129
9130                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9131
9132 fi
9133
9134
9135           eval "$wx_cv_use_loggui"
9136
9137           if test x"$enablestring" = xdisable; then
9138             if test $wxUSE_LOGGUI = no; then
9139               result=yes
9140             else
9141               result=no
9142             fi
9143           else
9144             result=$wxUSE_LOGGUI
9145           fi
9146
9147           { echo "$as_me:$LINENO: result: $result" >&5
9148 echo "${ECHO_T}$result" >&6; }
9149
9150
9151           enablestring=
9152           defaultval=$wxUSE_ALL_FEATURES
9153           if test -z "$defaultval"; then
9154               if test x"$enablestring" = xdisable; then
9155                   defaultval=yes
9156               else
9157                   defaultval=no
9158               fi
9159           fi
9160
9161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9162 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9163           # Check whether --enable-logwin was given.
9164 if test "${enable_logwin+set}" = set; then
9165   enableval=$enable_logwin;
9166                           if test "$enableval" = yes; then
9167                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9168                           else
9169                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9170                           fi
9171
9172 else
9173
9174                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9175
9176 fi
9177
9178
9179           eval "$wx_cv_use_logwin"
9180
9181           if test x"$enablestring" = xdisable; then
9182             if test $wxUSE_LOGWINDOW = no; then
9183               result=yes
9184             else
9185               result=no
9186             fi
9187           else
9188             result=$wxUSE_LOGWINDOW
9189           fi
9190
9191           { echo "$as_me:$LINENO: result: $result" >&5
9192 echo "${ECHO_T}$result" >&6; }
9193
9194
9195           enablestring=
9196           defaultval=$wxUSE_ALL_FEATURES
9197           if test -z "$defaultval"; then
9198               if test x"$enablestring" = xdisable; then
9199                   defaultval=yes
9200               else
9201                   defaultval=no
9202               fi
9203           fi
9204
9205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9206 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9207           # Check whether --enable-logdialog was given.
9208 if test "${enable_logdialog+set}" = set; then
9209   enableval=$enable_logdialog;
9210                           if test "$enableval" = yes; then
9211                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9212                           else
9213                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9214                           fi
9215
9216 else
9217
9218                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9219
9220 fi
9221
9222
9223           eval "$wx_cv_use_logdialog"
9224
9225           if test x"$enablestring" = xdisable; then
9226             if test $wxUSE_LOGDIALOG = no; then
9227               result=yes
9228             else
9229               result=no
9230             fi
9231           else
9232             result=$wxUSE_LOGDIALOG
9233           fi
9234
9235           { echo "$as_me:$LINENO: result: $result" >&5
9236 echo "${ECHO_T}$result" >&6; }
9237
9238
9239           enablestring=
9240           defaultval=$wxUSE_ALL_FEATURES
9241           if test -z "$defaultval"; then
9242               if test x"$enablestring" = xdisable; then
9243                   defaultval=yes
9244               else
9245                   defaultval=no
9246               fi
9247           fi
9248
9249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9250 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9251           # Check whether --enable-mdi was given.
9252 if test "${enable_mdi+set}" = set; then
9253   enableval=$enable_mdi;
9254                           if test "$enableval" = yes; then
9255                             wx_cv_use_mdi='wxUSE_MDI=yes'
9256                           else
9257                             wx_cv_use_mdi='wxUSE_MDI=no'
9258                           fi
9259
9260 else
9261
9262                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9263
9264 fi
9265
9266
9267           eval "$wx_cv_use_mdi"
9268
9269           if test x"$enablestring" = xdisable; then
9270             if test $wxUSE_MDI = no; then
9271               result=yes
9272             else
9273               result=no
9274             fi
9275           else
9276             result=$wxUSE_MDI
9277           fi
9278
9279           { echo "$as_me:$LINENO: result: $result" >&5
9280 echo "${ECHO_T}$result" >&6; }
9281
9282
9283           enablestring=
9284           defaultval=$wxUSE_ALL_FEATURES
9285           if test -z "$defaultval"; then
9286               if test x"$enablestring" = xdisable; then
9287                   defaultval=yes
9288               else
9289                   defaultval=no
9290               fi
9291           fi
9292
9293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9294 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9295           # Check whether --enable-mdidoc was given.
9296 if test "${enable_mdidoc+set}" = set; then
9297   enableval=$enable_mdidoc;
9298                           if test "$enableval" = yes; then
9299                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9300                           else
9301                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9302                           fi
9303
9304 else
9305
9306                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9307
9308 fi
9309
9310
9311           eval "$wx_cv_use_mdidoc"
9312
9313           if test x"$enablestring" = xdisable; then
9314             if test $wxUSE_MDI_ARCHITECTURE = no; then
9315               result=yes
9316             else
9317               result=no
9318             fi
9319           else
9320             result=$wxUSE_MDI_ARCHITECTURE
9321           fi
9322
9323           { echo "$as_me:$LINENO: result: $result" >&5
9324 echo "${ECHO_T}$result" >&6; }
9325
9326
9327           enablestring=
9328           defaultval=$wxUSE_ALL_FEATURES
9329           if test -z "$defaultval"; then
9330               if test x"$enablestring" = xdisable; then
9331                   defaultval=yes
9332               else
9333                   defaultval=no
9334               fi
9335           fi
9336
9337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9338 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9339           # Check whether --enable-mediactrl was given.
9340 if test "${enable_mediactrl+set}" = set; then
9341   enableval=$enable_mediactrl;
9342                           if test "$enableval" = yes; then
9343                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9344                           else
9345                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9346                           fi
9347
9348 else
9349
9350                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9351
9352 fi
9353
9354
9355           eval "$wx_cv_use_mediactrl"
9356
9357           if test x"$enablestring" = xdisable; then
9358             if test $wxUSE_MEDIACTRL = no; then
9359               result=yes
9360             else
9361               result=no
9362             fi
9363           else
9364             result=$wxUSE_MEDIACTRL
9365           fi
9366
9367           { echo "$as_me:$LINENO: result: $result" >&5
9368 echo "${ECHO_T}$result" >&6; }
9369
9370
9371           enablestring=
9372           defaultval=$wxUSE_ALL_FEATURES
9373           if test -z "$defaultval"; then
9374               if test x"$enablestring" = xdisable; then
9375                   defaultval=yes
9376               else
9377                   defaultval=no
9378               fi
9379           fi
9380
9381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9382 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9383           # Check whether --enable-gstreamer8 was given.
9384 if test "${enable_gstreamer8+set}" = set; then
9385   enableval=$enable_gstreamer8;
9386                           if test "$enableval" = yes; then
9387                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9388                           else
9389                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9390                           fi
9391
9392 else
9393
9394                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9395
9396 fi
9397
9398
9399           eval "$wx_cv_use_gstreamer8"
9400
9401           if test x"$enablestring" = xdisable; then
9402             if test $wxUSE_GSTREAMER8 = no; then
9403               result=yes
9404             else
9405               result=no
9406             fi
9407           else
9408             result=$wxUSE_GSTREAMER8
9409           fi
9410
9411           { echo "$as_me:$LINENO: result: $result" >&5
9412 echo "${ECHO_T}$result" >&6; }
9413
9414
9415           enablestring=
9416           defaultval=$wxUSE_ALL_FEATURES
9417           if test -z "$defaultval"; then
9418               if test x"$enablestring" = xdisable; then
9419                   defaultval=yes
9420               else
9421                   defaultval=no
9422               fi
9423           fi
9424
9425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9426 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9427           # Check whether --enable-webkit was given.
9428 if test "${enable_webkit+set}" = set; then
9429   enableval=$enable_webkit;
9430                           if test "$enableval" = yes; then
9431                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9432                           else
9433                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9434                           fi
9435
9436 else
9437
9438                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9439
9440 fi
9441
9442
9443           eval "$wx_cv_use_webkit"
9444
9445           if test x"$enablestring" = xdisable; then
9446             if test $wxUSE_WEBKIT = no; then
9447               result=yes
9448             else
9449               result=no
9450             fi
9451           else
9452             result=$wxUSE_WEBKIT
9453           fi
9454
9455           { echo "$as_me:$LINENO: result: $result" >&5
9456 echo "${ECHO_T}$result" >&6; }
9457
9458
9459           enablestring=
9460           defaultval=$wxUSE_ALL_FEATURES
9461           if test -z "$defaultval"; then
9462               if test x"$enablestring" = xdisable; then
9463                   defaultval=yes
9464               else
9465                   defaultval=no
9466               fi
9467           fi
9468
9469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9470 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9471           # Check whether --enable-richtext was given.
9472 if test "${enable_richtext+set}" = set; then
9473   enableval=$enable_richtext;
9474                           if test "$enableval" = yes; then
9475                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9476                           else
9477                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9478                           fi
9479
9480 else
9481
9482                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9483
9484 fi
9485
9486
9487           eval "$wx_cv_use_richtext"
9488
9489           if test x"$enablestring" = xdisable; then
9490             if test $wxUSE_RICHTEXT = no; then
9491               result=yes
9492             else
9493               result=no
9494             fi
9495           else
9496             result=$wxUSE_RICHTEXT
9497           fi
9498
9499           { echo "$as_me:$LINENO: result: $result" >&5
9500 echo "${ECHO_T}$result" >&6; }
9501
9502
9503           enablestring=
9504           defaultval=$wxUSE_ALL_FEATURES
9505           if test -z "$defaultval"; then
9506               if test x"$enablestring" = xdisable; then
9507                   defaultval=yes
9508               else
9509                   defaultval=no
9510               fi
9511           fi
9512
9513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9514 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9515           # Check whether --enable-postscript was given.
9516 if test "${enable_postscript+set}" = set; then
9517   enableval=$enable_postscript;
9518                           if test "$enableval" = yes; then
9519                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9520                           else
9521                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9522                           fi
9523
9524 else
9525
9526                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9527
9528 fi
9529
9530
9531           eval "$wx_cv_use_postscript"
9532
9533           if test x"$enablestring" = xdisable; then
9534             if test $wxUSE_POSTSCRIPT = no; then
9535               result=yes
9536             else
9537               result=no
9538             fi
9539           else
9540             result=$wxUSE_POSTSCRIPT
9541           fi
9542
9543           { echo "$as_me:$LINENO: result: $result" >&5
9544 echo "${ECHO_T}$result" >&6; }
9545
9546
9547           enablestring=
9548           defaultval=$wxUSE_ALL_FEATURES
9549           if test -z "$defaultval"; then
9550               if test x"$enablestring" = xdisable; then
9551                   defaultval=yes
9552               else
9553                   defaultval=no
9554               fi
9555           fi
9556
9557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9558 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9559           # Check whether --enable-printarch was given.
9560 if test "${enable_printarch+set}" = set; then
9561   enableval=$enable_printarch;
9562                           if test "$enableval" = yes; then
9563                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9564                           else
9565                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9566                           fi
9567
9568 else
9569
9570                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9571
9572 fi
9573
9574
9575           eval "$wx_cv_use_printarch"
9576
9577           if test x"$enablestring" = xdisable; then
9578             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9579               result=yes
9580             else
9581               result=no
9582             fi
9583           else
9584             result=$wxUSE_PRINTING_ARCHITECTURE
9585           fi
9586
9587           { echo "$as_me:$LINENO: result: $result" >&5
9588 echo "${ECHO_T}$result" >&6; }
9589
9590
9591           enablestring=
9592           defaultval=$wxUSE_ALL_FEATURES
9593           if test -z "$defaultval"; then
9594               if test x"$enablestring" = xdisable; then
9595                   defaultval=yes
9596               else
9597                   defaultval=no
9598               fi
9599           fi
9600
9601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9602 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9603           # Check whether --enable-svg was given.
9604 if test "${enable_svg+set}" = set; then
9605   enableval=$enable_svg;
9606                           if test "$enableval" = yes; then
9607                             wx_cv_use_svg='wxUSE_SVG=yes'
9608                           else
9609                             wx_cv_use_svg='wxUSE_SVG=no'
9610                           fi
9611
9612 else
9613
9614                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9615
9616 fi
9617
9618
9619           eval "$wx_cv_use_svg"
9620
9621           if test x"$enablestring" = xdisable; then
9622             if test $wxUSE_SVG = no; then
9623               result=yes
9624             else
9625               result=no
9626             fi
9627           else
9628             result=$wxUSE_SVG
9629           fi
9630
9631           { echo "$as_me:$LINENO: result: $result" >&5
9632 echo "${ECHO_T}$result" >&6; }
9633
9634
9635           enablestring=
9636           defaultval=$wxUSE_ALL_FEATURES
9637           if test -z "$defaultval"; then
9638               if test x"$enablestring" = xdisable; then
9639                   defaultval=yes
9640               else
9641                   defaultval=no
9642               fi
9643           fi
9644
9645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-web" >&5
9646 echo $ECHO_N "checking for --${enablestring:-enable}-web... $ECHO_C" >&6; }
9647           # Check whether --enable-web was given.
9648 if test "${enable_web+set}" = set; then
9649   enableval=$enable_web;
9650                           if test "$enableval" = yes; then
9651                             wx_cv_use_web='wxUSE_WEB=yes'
9652                           else
9653                             wx_cv_use_web='wxUSE_WEB=no'
9654                           fi
9655
9656 else
9657
9658                           wx_cv_use_web='wxUSE_WEB=${'DEFAULT_wxUSE_WEB":-$defaultval}"
9659
9660 fi
9661
9662
9663           eval "$wx_cv_use_web"
9664
9665           if test x"$enablestring" = xdisable; then
9666             if test $wxUSE_WEB = no; then
9667               result=yes
9668             else
9669               result=no
9670             fi
9671           else
9672             result=$wxUSE_WEB
9673           fi
9674
9675           { echo "$as_me:$LINENO: result: $result" >&5
9676 echo "${ECHO_T}$result" >&6; }
9677
9678
9679 if test "$wxUSE_MAC" != 1; then
9680
9681           enablestring=
9682           defaultval=$wxUSE_ALL_FEATURES
9683           if test -z "$defaultval"; then
9684               if test x"$enablestring" = xdisable; then
9685                   defaultval=yes
9686               else
9687                   defaultval=no
9688               fi
9689           fi
9690
9691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9692 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9693           # Check whether --enable-graphics_ctx was given.
9694 if test "${enable_graphics_ctx+set}" = set; then
9695   enableval=$enable_graphics_ctx;
9696                           if test "$enableval" = yes; then
9697                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9698                           else
9699                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9700                           fi
9701
9702 else
9703
9704                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9705
9706 fi
9707
9708
9709           eval "$wx_cv_use_graphics_ctx"
9710
9711           if test x"$enablestring" = xdisable; then
9712             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9713               result=yes
9714             else
9715               result=no
9716             fi
9717           else
9718             result=$wxUSE_GRAPHICS_CONTEXT
9719           fi
9720
9721           { echo "$as_me:$LINENO: result: $result" >&5
9722 echo "${ECHO_T}$result" >&6; }
9723
9724 fi
9725
9726
9727
9728           enablestring=
9729           defaultval=$wxUSE_ALL_FEATURES
9730           if test -z "$defaultval"; then
9731               if test x"$enablestring" = xdisable; then
9732                   defaultval=yes
9733               else
9734                   defaultval=no
9735               fi
9736           fi
9737
9738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9739 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9740           # Check whether --enable-clipboard was given.
9741 if test "${enable_clipboard+set}" = set; then
9742   enableval=$enable_clipboard;
9743                           if test "$enableval" = yes; then
9744                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9745                           else
9746                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9747                           fi
9748
9749 else
9750
9751                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9752
9753 fi
9754
9755
9756           eval "$wx_cv_use_clipboard"
9757
9758           if test x"$enablestring" = xdisable; then
9759             if test $wxUSE_CLIPBOARD = no; then
9760               result=yes
9761             else
9762               result=no
9763             fi
9764           else
9765             result=$wxUSE_CLIPBOARD
9766           fi
9767
9768           { echo "$as_me:$LINENO: result: $result" >&5
9769 echo "${ECHO_T}$result" >&6; }
9770
9771
9772           enablestring=
9773           defaultval=$wxUSE_ALL_FEATURES
9774           if test -z "$defaultval"; then
9775               if test x"$enablestring" = xdisable; then
9776                   defaultval=yes
9777               else
9778                   defaultval=no
9779               fi
9780           fi
9781
9782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9783 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9784           # Check whether --enable-dnd was given.
9785 if test "${enable_dnd+set}" = set; then
9786   enableval=$enable_dnd;
9787                           if test "$enableval" = yes; then
9788                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9789                           else
9790                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9791                           fi
9792
9793 else
9794
9795                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9796
9797 fi
9798
9799
9800           eval "$wx_cv_use_dnd"
9801
9802           if test x"$enablestring" = xdisable; then
9803             if test $wxUSE_DRAG_AND_DROP = no; then
9804               result=yes
9805             else
9806               result=no
9807             fi
9808           else
9809             result=$wxUSE_DRAG_AND_DROP
9810           fi
9811
9812           { echo "$as_me:$LINENO: result: $result" >&5
9813 echo "${ECHO_T}$result" >&6; }
9814
9815
9816
9817 DEFAULT_wxUSE_CONTROLS=none
9818
9819           enablestring=disable
9820           defaultval=
9821           if test -z "$defaultval"; then
9822               if test x"$enablestring" = xdisable; then
9823                   defaultval=yes
9824               else
9825                   defaultval=no
9826               fi
9827           fi
9828
9829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9830 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9831           # Check whether --enable-controls was given.
9832 if test "${enable_controls+set}" = set; then
9833   enableval=$enable_controls;
9834                           if test "$enableval" = yes; then
9835                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9836                           else
9837                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9838                           fi
9839
9840 else
9841
9842                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9843
9844 fi
9845
9846
9847           eval "$wx_cv_use_controls"
9848
9849           if test x"$enablestring" = xdisable; then
9850             if test $wxUSE_CONTROLS = no; then
9851               result=yes
9852             else
9853               result=no
9854             fi
9855           else
9856             result=$wxUSE_CONTROLS
9857           fi
9858
9859           { echo "$as_me:$LINENO: result: $result" >&5
9860 echo "${ECHO_T}$result" >&6; }
9861
9862
9863 if test "$wxUSE_CONTROLS" = "no"; then
9864     DEFAULT_wxUSE_ACCEL=no
9865     DEFAULT_wxUSE_ANIMATIONCTRL=no
9866     DEFAULT_wxUSE_BANNERWINDOW=no
9867     DEFAULT_wxUSE_BMPBUTTON=no
9868     DEFAULT_wxUSE_BUTTON=no
9869     DEFAULT_wxUSE_CALCTRL=no
9870     DEFAULT_wxUSE_CARET=no
9871     DEFAULT_wxUSE_CHECKBOX=no
9872     DEFAULT_wxUSE_CHECKLISTBOX=no
9873     DEFAULT_wxUSE_CHOICE=no
9874     DEFAULT_wxUSE_CHOICEBOOK=no
9875     DEFAULT_wxUSE_COLLPANE=no
9876     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9877     DEFAULT_wxUSE_COMBOBOX=no
9878     DEFAULT_wxUSE_COMBOBOX=no
9879     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9880     DEFAULT_wxUSE_DATAVIEWCTRL=no
9881     DEFAULT_wxUSE_DATEPICKCTRL=no
9882     DEFAULT_wxUSE_DETECT_SM=no
9883     DEFAULT_wxUSE_DIRPICKERCTRL=no
9884     DEFAULT_wxUSE_DISPLAY=no
9885     DEFAULT_wxUSE_FILECTRL=no
9886     DEFAULT_wxUSE_FILEPICKERCTRL=no
9887     DEFAULT_wxUSE_FONTPICKERCTRL=no
9888     DEFAULT_wxUSE_GAUGE=no
9889     DEFAULT_wxUSE_GRID=no
9890     DEFAULT_wxUSE_HEADERCTRL=no
9891     DEFAULT_wxUSE_HYPERLINKCTRL=no
9892     DEFAULT_wxUSE_IMAGLIST=no
9893     DEFAULT_wxUSE_LISTBOOK=no
9894     DEFAULT_wxUSE_LISTBOX=no
9895     DEFAULT_wxUSE_LISTCTRL=no
9896     DEFAULT_wxUSE_MARKUP=no
9897     DEFAULT_wxUSE_NOTEBOOK=no
9898     DEFAULT_wxUSE_POPUPWIN=no
9899     DEFAULT_wxUSE_RADIOBOX=no
9900     DEFAULT_wxUSE_RADIOBTN=no
9901     DEFAULT_wxUSE_RICHMSGDLG=no
9902     DEFAULT_wxUSE_REARRANGECTRL=no
9903     DEFAULT_wxUSE_SASH=no
9904     DEFAULT_wxUSE_SCROLLBAR=no
9905     DEFAULT_wxUSE_SEARCHCTRL=no
9906     DEFAULT_wxUSE_SLIDER=no
9907     DEFAULT_wxUSE_SPINBTN=no
9908     DEFAULT_wxUSE_SPINCTRL=no
9909     DEFAULT_wxUSE_SPLITTER=no
9910     DEFAULT_wxUSE_STATBMP=no
9911     DEFAULT_wxUSE_STATBOX=no
9912     DEFAULT_wxUSE_STATLINE=no
9913     DEFAULT_wxUSE_STATUSBAR=no
9914     DEFAULT_wxUSE_TIPWINDOW=no
9915     DEFAULT_wxUSE_TOGGLEBTN=no
9916     DEFAULT_wxUSE_TOOLBAR=no
9917     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9918     DEFAULT_wxUSE_TOOLBOOK=no
9919     DEFAULT_wxUSE_TOOLTIPS=no
9920     DEFAULT_wxUSE_TREEBOOK=no
9921     DEFAULT_wxUSE_TREECTRL=no
9922     DEFAULT_wxUSE_TREELISTCTRL=no
9923 fi
9924
9925
9926           enablestring=
9927           defaultval=$wxUSE_ALL_FEATURES
9928           if test -z "$defaultval"; then
9929               if test x"$enablestring" = xdisable; then
9930                   defaultval=yes
9931               else
9932                   defaultval=no
9933               fi
9934           fi
9935
9936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9937 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9938           # Check whether --enable-markup was given.
9939 if test "${enable_markup+set}" = set; then
9940   enableval=$enable_markup;
9941                           if test "$enableval" = yes; then
9942                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9943                           else
9944                             wx_cv_use_markup='wxUSE_MARKUP=no'
9945                           fi
9946
9947 else
9948
9949                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9950
9951 fi
9952
9953
9954           eval "$wx_cv_use_markup"
9955
9956           if test x"$enablestring" = xdisable; then
9957             if test $wxUSE_MARKUP = no; then
9958               result=yes
9959             else
9960               result=no
9961             fi
9962           else
9963             result=$wxUSE_MARKUP
9964           fi
9965
9966           { echo "$as_me:$LINENO: result: $result" >&5
9967 echo "${ECHO_T}$result" >&6; }
9968
9969
9970
9971           enablestring=
9972           defaultval=$wxUSE_ALL_FEATURES
9973           if test -z "$defaultval"; then
9974               if test x"$enablestring" = xdisable; then
9975                   defaultval=yes
9976               else
9977                   defaultval=no
9978               fi
9979           fi
9980
9981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9982 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9983           # Check whether --enable-accel was given.
9984 if test "${enable_accel+set}" = set; then
9985   enableval=$enable_accel;
9986                           if test "$enableval" = yes; then
9987                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9988                           else
9989                             wx_cv_use_accel='wxUSE_ACCEL=no'
9990                           fi
9991
9992 else
9993
9994                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9995
9996 fi
9997
9998
9999           eval "$wx_cv_use_accel"
10000
10001           if test x"$enablestring" = xdisable; then
10002             if test $wxUSE_ACCEL = no; then
10003               result=yes
10004             else
10005               result=no
10006             fi
10007           else
10008             result=$wxUSE_ACCEL
10009           fi
10010
10011           { echo "$as_me:$LINENO: result: $result" >&5
10012 echo "${ECHO_T}$result" >&6; }
10013
10014
10015           enablestring=
10016           defaultval=$wxUSE_ALL_FEATURES
10017           if test -z "$defaultval"; then
10018               if test x"$enablestring" = xdisable; then
10019                   defaultval=yes
10020               else
10021                   defaultval=no
10022               fi
10023           fi
10024
10025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10026 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10027           # Check whether --enable-animatectrl was given.
10028 if test "${enable_animatectrl+set}" = set; then
10029   enableval=$enable_animatectrl;
10030                           if test "$enableval" = yes; then
10031                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10032                           else
10033                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10034                           fi
10035
10036 else
10037
10038                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10039
10040 fi
10041
10042
10043           eval "$wx_cv_use_animatectrl"
10044
10045           if test x"$enablestring" = xdisable; then
10046             if test $wxUSE_ANIMATIONCTRL = no; then
10047               result=yes
10048             else
10049               result=no
10050             fi
10051           else
10052             result=$wxUSE_ANIMATIONCTRL
10053           fi
10054
10055           { echo "$as_me:$LINENO: result: $result" >&5
10056 echo "${ECHO_T}$result" >&6; }
10057
10058
10059           enablestring=
10060           defaultval=$wxUSE_ALL_FEATURES
10061           if test -z "$defaultval"; then
10062               if test x"$enablestring" = xdisable; then
10063                   defaultval=yes
10064               else
10065                   defaultval=no
10066               fi
10067           fi
10068
10069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10070 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10071           # Check whether --enable-bannerwindow was given.
10072 if test "${enable_bannerwindow+set}" = set; then
10073   enableval=$enable_bannerwindow;
10074                           if test "$enableval" = yes; then
10075                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10076                           else
10077                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10078                           fi
10079
10080 else
10081
10082                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10083
10084 fi
10085
10086
10087           eval "$wx_cv_use_bannerwindow"
10088
10089           if test x"$enablestring" = xdisable; then
10090             if test $wxUSE_BANNERWINDOW = no; then
10091               result=yes
10092             else
10093               result=no
10094             fi
10095           else
10096             result=$wxUSE_BANNERWINDOW
10097           fi
10098
10099           { echo "$as_me:$LINENO: result: $result" >&5
10100 echo "${ECHO_T}$result" >&6; }
10101
10102
10103           enablestring=
10104           defaultval=$wxUSE_ALL_FEATURES
10105           if test -z "$defaultval"; then
10106               if test x"$enablestring" = xdisable; then
10107                   defaultval=yes
10108               else
10109                   defaultval=no
10110               fi
10111           fi
10112
10113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10114 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10115           # Check whether --enable-artstd was given.
10116 if test "${enable_artstd+set}" = set; then
10117   enableval=$enable_artstd;
10118                           if test "$enableval" = yes; then
10119                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10120                           else
10121                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10122                           fi
10123
10124 else
10125
10126                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10127
10128 fi
10129
10130
10131           eval "$wx_cv_use_artstd"
10132
10133           if test x"$enablestring" = xdisable; then
10134             if test $wxUSE_ARTPROVIDER_STD = no; then
10135               result=yes
10136             else
10137               result=no
10138             fi
10139           else
10140             result=$wxUSE_ARTPROVIDER_STD
10141           fi
10142
10143           { echo "$as_me:$LINENO: result: $result" >&5
10144 echo "${ECHO_T}$result" >&6; }
10145
10146
10147           enablestring=
10148           defaultval=$wxUSE_ALL_FEATURES
10149           if test -z "$defaultval"; then
10150               if test x"$enablestring" = xdisable; then
10151                   defaultval=yes
10152               else
10153                   defaultval=no
10154               fi
10155           fi
10156
10157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10158 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10159           # Check whether --enable-arttango was given.
10160 if test "${enable_arttango+set}" = set; then
10161   enableval=$enable_arttango;
10162                           if test "$enableval" = yes; then
10163                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10164                           else
10165                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10166                           fi
10167
10168 else
10169
10170                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10171
10172 fi
10173
10174
10175           eval "$wx_cv_use_arttango"
10176
10177           if test x"$enablestring" = xdisable; then
10178             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10179               result=yes
10180             else
10181               result=no
10182             fi
10183           else
10184             result=$wxUSE_ARTPROVIDER_TANGO
10185           fi
10186
10187           { echo "$as_me:$LINENO: result: $result" >&5
10188 echo "${ECHO_T}$result" >&6; }
10189
10190
10191           enablestring=
10192           defaultval=$wxUSE_ALL_FEATURES
10193           if test -z "$defaultval"; then
10194               if test x"$enablestring" = xdisable; then
10195                   defaultval=yes
10196               else
10197                   defaultval=no
10198               fi
10199           fi
10200
10201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10202 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10203           # Check whether --enable-bmpbutton was given.
10204 if test "${enable_bmpbutton+set}" = set; then
10205   enableval=$enable_bmpbutton;
10206                           if test "$enableval" = yes; then
10207                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10208                           else
10209                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10210                           fi
10211
10212 else
10213
10214                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10215
10216 fi
10217
10218
10219           eval "$wx_cv_use_bmpbutton"
10220
10221           if test x"$enablestring" = xdisable; then
10222             if test $wxUSE_BMPBUTTON = no; then
10223               result=yes
10224             else
10225               result=no
10226             fi
10227           else
10228             result=$wxUSE_BMPBUTTON
10229           fi
10230
10231           { echo "$as_me:$LINENO: result: $result" >&5
10232 echo "${ECHO_T}$result" >&6; }
10233
10234
10235           enablestring=
10236           defaultval=$wxUSE_ALL_FEATURES
10237           if test -z "$defaultval"; then
10238               if test x"$enablestring" = xdisable; then
10239                   defaultval=yes
10240               else
10241                   defaultval=no
10242               fi
10243           fi
10244
10245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10246 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10247           # Check whether --enable-bmpcombobox was given.
10248 if test "${enable_bmpcombobox+set}" = set; then
10249   enableval=$enable_bmpcombobox;
10250                           if test "$enableval" = yes; then
10251                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10252                           else
10253                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10254                           fi
10255
10256 else
10257
10258                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10259
10260 fi
10261
10262
10263           eval "$wx_cv_use_bmpcombobox"
10264
10265           if test x"$enablestring" = xdisable; then
10266             if test $wxUSE_BITMAPCOMBOBOX = no; then
10267               result=yes
10268             else
10269               result=no
10270             fi
10271           else
10272             result=$wxUSE_BITMAPCOMBOBOX
10273           fi
10274
10275           { echo "$as_me:$LINENO: result: $result" >&5
10276 echo "${ECHO_T}$result" >&6; }
10277
10278
10279           enablestring=
10280           defaultval=$wxUSE_ALL_FEATURES
10281           if test -z "$defaultval"; then
10282               if test x"$enablestring" = xdisable; then
10283                   defaultval=yes
10284               else
10285                   defaultval=no
10286               fi
10287           fi
10288
10289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10290 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10291           # Check whether --enable-button was given.
10292 if test "${enable_button+set}" = set; then
10293   enableval=$enable_button;
10294                           if test "$enableval" = yes; then
10295                             wx_cv_use_button='wxUSE_BUTTON=yes'
10296                           else
10297                             wx_cv_use_button='wxUSE_BUTTON=no'
10298                           fi
10299
10300 else
10301
10302                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10303
10304 fi
10305
10306
10307           eval "$wx_cv_use_button"
10308
10309           if test x"$enablestring" = xdisable; then
10310             if test $wxUSE_BUTTON = no; then
10311               result=yes
10312             else
10313               result=no
10314             fi
10315           else
10316             result=$wxUSE_BUTTON
10317           fi
10318
10319           { echo "$as_me:$LINENO: result: $result" >&5
10320 echo "${ECHO_T}$result" >&6; }
10321
10322
10323           enablestring=
10324           defaultval=$wxUSE_ALL_FEATURES
10325           if test -z "$defaultval"; then
10326               if test x"$enablestring" = xdisable; then
10327                   defaultval=yes
10328               else
10329                   defaultval=no
10330               fi
10331           fi
10332
10333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10334 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10335           # Check whether --enable-calendar was given.
10336 if test "${enable_calendar+set}" = set; then
10337   enableval=$enable_calendar;
10338                           if test "$enableval" = yes; then
10339                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10340                           else
10341                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10342                           fi
10343
10344 else
10345
10346                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10347
10348 fi
10349
10350
10351           eval "$wx_cv_use_calendar"
10352
10353           if test x"$enablestring" = xdisable; then
10354             if test $wxUSE_CALCTRL = no; then
10355               result=yes
10356             else
10357               result=no
10358             fi
10359           else
10360             result=$wxUSE_CALCTRL
10361           fi
10362
10363           { echo "$as_me:$LINENO: result: $result" >&5
10364 echo "${ECHO_T}$result" >&6; }
10365
10366
10367           enablestring=
10368           defaultval=$wxUSE_ALL_FEATURES
10369           if test -z "$defaultval"; then
10370               if test x"$enablestring" = xdisable; then
10371                   defaultval=yes
10372               else
10373                   defaultval=no
10374               fi
10375           fi
10376
10377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10378 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10379           # Check whether --enable-caret was given.
10380 if test "${enable_caret+set}" = set; then
10381   enableval=$enable_caret;
10382                           if test "$enableval" = yes; then
10383                             wx_cv_use_caret='wxUSE_CARET=yes'
10384                           else
10385                             wx_cv_use_caret='wxUSE_CARET=no'
10386                           fi
10387
10388 else
10389
10390                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10391
10392 fi
10393
10394
10395           eval "$wx_cv_use_caret"
10396
10397           if test x"$enablestring" = xdisable; then
10398             if test $wxUSE_CARET = no; then
10399               result=yes
10400             else
10401               result=no
10402             fi
10403           else
10404             result=$wxUSE_CARET
10405           fi
10406
10407           { echo "$as_me:$LINENO: result: $result" >&5
10408 echo "${ECHO_T}$result" >&6; }
10409
10410
10411           enablestring=
10412           defaultval=$wxUSE_ALL_FEATURES
10413           if test -z "$defaultval"; then
10414               if test x"$enablestring" = xdisable; then
10415                   defaultval=yes
10416               else
10417                   defaultval=no
10418               fi
10419           fi
10420
10421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10422 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10423           # Check whether --enable-checkbox was given.
10424 if test "${enable_checkbox+set}" = set; then
10425   enableval=$enable_checkbox;
10426                           if test "$enableval" = yes; then
10427                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10428                           else
10429                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10430                           fi
10431
10432 else
10433
10434                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10435
10436 fi
10437
10438
10439           eval "$wx_cv_use_checkbox"
10440
10441           if test x"$enablestring" = xdisable; then
10442             if test $wxUSE_CHECKBOX = no; then
10443               result=yes
10444             else
10445               result=no
10446             fi
10447           else
10448             result=$wxUSE_CHECKBOX
10449           fi
10450
10451           { echo "$as_me:$LINENO: result: $result" >&5
10452 echo "${ECHO_T}$result" >&6; }
10453
10454
10455           enablestring=
10456           defaultval=$wxUSE_ALL_FEATURES
10457           if test -z "$defaultval"; then
10458               if test x"$enablestring" = xdisable; then
10459                   defaultval=yes
10460               else
10461                   defaultval=no
10462               fi
10463           fi
10464
10465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10466 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10467           # Check whether --enable-checklst was given.
10468 if test "${enable_checklst+set}" = set; then
10469   enableval=$enable_checklst;
10470                           if test "$enableval" = yes; then
10471                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10472                           else
10473                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10474                           fi
10475
10476 else
10477
10478                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10479
10480 fi
10481
10482
10483           eval "$wx_cv_use_checklst"
10484
10485           if test x"$enablestring" = xdisable; then
10486             if test $wxUSE_CHECKLST = no; then
10487               result=yes
10488             else
10489               result=no
10490             fi
10491           else
10492             result=$wxUSE_CHECKLST
10493           fi
10494
10495           { echo "$as_me:$LINENO: result: $result" >&5
10496 echo "${ECHO_T}$result" >&6; }
10497
10498
10499           enablestring=
10500           defaultval=$wxUSE_ALL_FEATURES
10501           if test -z "$defaultval"; then
10502               if test x"$enablestring" = xdisable; then
10503                   defaultval=yes
10504               else
10505                   defaultval=no
10506               fi
10507           fi
10508
10509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10510 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10511           # Check whether --enable-choice was given.
10512 if test "${enable_choice+set}" = set; then
10513   enableval=$enable_choice;
10514                           if test "$enableval" = yes; then
10515                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10516                           else
10517                             wx_cv_use_choice='wxUSE_CHOICE=no'
10518                           fi
10519
10520 else
10521
10522                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10523
10524 fi
10525
10526
10527           eval "$wx_cv_use_choice"
10528
10529           if test x"$enablestring" = xdisable; then
10530             if test $wxUSE_CHOICE = no; then
10531               result=yes
10532             else
10533               result=no
10534             fi
10535           else
10536             result=$wxUSE_CHOICE
10537           fi
10538
10539           { echo "$as_me:$LINENO: result: $result" >&5
10540 echo "${ECHO_T}$result" >&6; }
10541
10542
10543           enablestring=
10544           defaultval=$wxUSE_ALL_FEATURES
10545           if test -z "$defaultval"; then
10546               if test x"$enablestring" = xdisable; then
10547                   defaultval=yes
10548               else
10549                   defaultval=no
10550               fi
10551           fi
10552
10553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10554 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10555           # Check whether --enable-choicebook was given.
10556 if test "${enable_choicebook+set}" = set; then
10557   enableval=$enable_choicebook;
10558                           if test "$enableval" = yes; then
10559                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10560                           else
10561                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10562                           fi
10563
10564 else
10565
10566                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10567
10568 fi
10569
10570
10571           eval "$wx_cv_use_choicebook"
10572
10573           if test x"$enablestring" = xdisable; then
10574             if test $wxUSE_CHOICEBOOK = no; then
10575               result=yes
10576             else
10577               result=no
10578             fi
10579           else
10580             result=$wxUSE_CHOICEBOOK
10581           fi
10582
10583           { echo "$as_me:$LINENO: result: $result" >&5
10584 echo "${ECHO_T}$result" >&6; }
10585
10586
10587           enablestring=
10588           defaultval=$wxUSE_ALL_FEATURES
10589           if test -z "$defaultval"; then
10590               if test x"$enablestring" = xdisable; then
10591                   defaultval=yes
10592               else
10593                   defaultval=no
10594               fi
10595           fi
10596
10597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10598 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10599           # Check whether --enable-collpane was given.
10600 if test "${enable_collpane+set}" = set; then
10601   enableval=$enable_collpane;
10602                           if test "$enableval" = yes; then
10603                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10604                           else
10605                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10606                           fi
10607
10608 else
10609
10610                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10611
10612 fi
10613
10614
10615           eval "$wx_cv_use_collpane"
10616
10617           if test x"$enablestring" = xdisable; then
10618             if test $wxUSE_COLLPANE = no; then
10619               result=yes
10620             else
10621               result=no
10622             fi
10623           else
10624             result=$wxUSE_COLLPANE
10625           fi
10626
10627           { echo "$as_me:$LINENO: result: $result" >&5
10628 echo "${ECHO_T}$result" >&6; }
10629
10630
10631           enablestring=
10632           defaultval=$wxUSE_ALL_FEATURES
10633           if test -z "$defaultval"; then
10634               if test x"$enablestring" = xdisable; then
10635                   defaultval=yes
10636               else
10637                   defaultval=no
10638               fi
10639           fi
10640
10641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10642 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10643           # Check whether --enable-colourpicker was given.
10644 if test "${enable_colourpicker+set}" = set; then
10645   enableval=$enable_colourpicker;
10646                           if test "$enableval" = yes; then
10647                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10648                           else
10649                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10650                           fi
10651
10652 else
10653
10654                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10655
10656 fi
10657
10658
10659           eval "$wx_cv_use_colourpicker"
10660
10661           if test x"$enablestring" = xdisable; then
10662             if test $wxUSE_COLOURPICKERCTRL = no; then
10663               result=yes
10664             else
10665               result=no
10666             fi
10667           else
10668             result=$wxUSE_COLOURPICKERCTRL
10669           fi
10670
10671           { echo "$as_me:$LINENO: result: $result" >&5
10672 echo "${ECHO_T}$result" >&6; }
10673
10674
10675           enablestring=
10676           defaultval=$wxUSE_ALL_FEATURES
10677           if test -z "$defaultval"; then
10678               if test x"$enablestring" = xdisable; then
10679                   defaultval=yes
10680               else
10681                   defaultval=no
10682               fi
10683           fi
10684
10685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10686 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10687           # Check whether --enable-combobox was given.
10688 if test "${enable_combobox+set}" = set; then
10689   enableval=$enable_combobox;
10690                           if test "$enableval" = yes; then
10691                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10692                           else
10693                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10694                           fi
10695
10696 else
10697
10698                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10699
10700 fi
10701
10702
10703           eval "$wx_cv_use_combobox"
10704
10705           if test x"$enablestring" = xdisable; then
10706             if test $wxUSE_COMBOBOX = no; then
10707               result=yes
10708             else
10709               result=no
10710             fi
10711           else
10712             result=$wxUSE_COMBOBOX
10713           fi
10714
10715           { echo "$as_me:$LINENO: result: $result" >&5
10716 echo "${ECHO_T}$result" >&6; }
10717
10718
10719           enablestring=
10720           defaultval=$wxUSE_ALL_FEATURES
10721           if test -z "$defaultval"; then
10722               if test x"$enablestring" = xdisable; then
10723                   defaultval=yes
10724               else
10725                   defaultval=no
10726               fi
10727           fi
10728
10729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10730 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10731           # Check whether --enable-comboctrl was given.
10732 if test "${enable_comboctrl+set}" = set; then
10733   enableval=$enable_comboctrl;
10734                           if test "$enableval" = yes; then
10735                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10736                           else
10737                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10738                           fi
10739
10740 else
10741
10742                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10743
10744 fi
10745
10746
10747           eval "$wx_cv_use_comboctrl"
10748
10749           if test x"$enablestring" = xdisable; then
10750             if test $wxUSE_COMBOCTRL = no; then
10751               result=yes
10752             else
10753               result=no
10754             fi
10755           else
10756             result=$wxUSE_COMBOCTRL
10757           fi
10758
10759           { echo "$as_me:$LINENO: result: $result" >&5
10760 echo "${ECHO_T}$result" >&6; }
10761
10762
10763           enablestring=
10764           defaultval=$wxUSE_ALL_FEATURES
10765           if test -z "$defaultval"; then
10766               if test x"$enablestring" = xdisable; then
10767                   defaultval=yes
10768               else
10769                   defaultval=no
10770               fi
10771           fi
10772
10773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10774 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10775           # Check whether --enable-commandlinkbutton was given.
10776 if test "${enable_commandlinkbutton+set}" = set; then
10777   enableval=$enable_commandlinkbutton;
10778                           if test "$enableval" = yes; then
10779                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10780                           else
10781                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10782                           fi
10783
10784 else
10785
10786                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10787
10788 fi
10789
10790
10791           eval "$wx_cv_use_commandlinkbutton"
10792
10793           if test x"$enablestring" = xdisable; then
10794             if test $wxUSE_COMMANDLINKBUTTON = no; then
10795               result=yes
10796             else
10797               result=no
10798             fi
10799           else
10800             result=$wxUSE_COMMANDLINKBUTTON
10801           fi
10802
10803           { echo "$as_me:$LINENO: result: $result" >&5
10804 echo "${ECHO_T}$result" >&6; }
10805
10806
10807           enablestring=
10808           defaultval=$wxUSE_ALL_FEATURES
10809           if test -z "$defaultval"; then
10810               if test x"$enablestring" = xdisable; then
10811                   defaultval=yes
10812               else
10813                   defaultval=no
10814               fi
10815           fi
10816
10817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10818 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10819           # Check whether --enable-dataviewctrl was given.
10820 if test "${enable_dataviewctrl+set}" = set; then
10821   enableval=$enable_dataviewctrl;
10822                           if test "$enableval" = yes; then
10823                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10824                           else
10825                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10826                           fi
10827
10828 else
10829
10830                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10831
10832 fi
10833
10834
10835           eval "$wx_cv_use_dataviewctrl"
10836
10837           if test x"$enablestring" = xdisable; then
10838             if test $wxUSE_DATAVIEWCTRL = no; then
10839               result=yes
10840             else
10841               result=no
10842             fi
10843           else
10844             result=$wxUSE_DATAVIEWCTRL
10845           fi
10846
10847           { echo "$as_me:$LINENO: result: $result" >&5
10848 echo "${ECHO_T}$result" >&6; }
10849
10850
10851           enablestring=
10852           defaultval=$wxUSE_ALL_FEATURES
10853           if test -z "$defaultval"; then
10854               if test x"$enablestring" = xdisable; then
10855                   defaultval=yes
10856               else
10857                   defaultval=no
10858               fi
10859           fi
10860
10861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10862 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10863           # Check whether --enable-datepick was given.
10864 if test "${enable_datepick+set}" = set; then
10865   enableval=$enable_datepick;
10866                           if test "$enableval" = yes; then
10867                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10868                           else
10869                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10870                           fi
10871
10872 else
10873
10874                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10875
10876 fi
10877
10878
10879           eval "$wx_cv_use_datepick"
10880
10881           if test x"$enablestring" = xdisable; then
10882             if test $wxUSE_DATEPICKCTRL = no; then
10883               result=yes
10884             else
10885               result=no
10886             fi
10887           else
10888             result=$wxUSE_DATEPICKCTRL
10889           fi
10890
10891           { echo "$as_me:$LINENO: result: $result" >&5
10892 echo "${ECHO_T}$result" >&6; }
10893
10894
10895           enablestring=
10896           defaultval=$wxUSE_ALL_FEATURES
10897           if test -z "$defaultval"; then
10898               if test x"$enablestring" = xdisable; then
10899                   defaultval=yes
10900               else
10901                   defaultval=no
10902               fi
10903           fi
10904
10905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10906 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10907           # Check whether --enable-detect_sm was given.
10908 if test "${enable_detect_sm+set}" = set; then
10909   enableval=$enable_detect_sm;
10910                           if test "$enableval" = yes; then
10911                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10912                           else
10913                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10914                           fi
10915
10916 else
10917
10918                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10919
10920 fi
10921
10922
10923           eval "$wx_cv_use_detect_sm"
10924
10925           if test x"$enablestring" = xdisable; then
10926             if test $wxUSE_DETECT_SM = no; then
10927               result=yes
10928             else
10929               result=no
10930             fi
10931           else
10932             result=$wxUSE_DETECT_SM
10933           fi
10934
10935           { echo "$as_me:$LINENO: result: $result" >&5
10936 echo "${ECHO_T}$result" >&6; }
10937
10938
10939           enablestring=
10940           defaultval=$wxUSE_ALL_FEATURES
10941           if test -z "$defaultval"; then
10942               if test x"$enablestring" = xdisable; then
10943                   defaultval=yes
10944               else
10945                   defaultval=no
10946               fi
10947           fi
10948
10949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10950 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10951           # Check whether --enable-dirpicker was given.
10952 if test "${enable_dirpicker+set}" = set; then
10953   enableval=$enable_dirpicker;
10954                           if test "$enableval" = yes; then
10955                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10956                           else
10957                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10958                           fi
10959
10960 else
10961
10962                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10963
10964 fi
10965
10966
10967           eval "$wx_cv_use_dirpicker"
10968
10969           if test x"$enablestring" = xdisable; then
10970             if test $wxUSE_DIRPICKERCTRL = no; then
10971               result=yes
10972             else
10973               result=no
10974             fi
10975           else
10976             result=$wxUSE_DIRPICKERCTRL
10977           fi
10978
10979           { echo "$as_me:$LINENO: result: $result" >&5
10980 echo "${ECHO_T}$result" >&6; }
10981
10982
10983           enablestring=
10984           defaultval=$wxUSE_ALL_FEATURES
10985           if test -z "$defaultval"; then
10986               if test x"$enablestring" = xdisable; then
10987                   defaultval=yes
10988               else
10989                   defaultval=no
10990               fi
10991           fi
10992
10993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10994 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10995           # Check whether --enable-display was given.
10996 if test "${enable_display+set}" = set; then
10997   enableval=$enable_display;
10998                           if test "$enableval" = yes; then
10999                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11000                           else
11001                             wx_cv_use_display='wxUSE_DISPLAY=no'
11002                           fi
11003
11004 else
11005
11006                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11007
11008 fi
11009
11010
11011           eval "$wx_cv_use_display"
11012
11013           if test x"$enablestring" = xdisable; then
11014             if test $wxUSE_DISPLAY = no; then
11015               result=yes
11016             else
11017               result=no
11018             fi
11019           else
11020             result=$wxUSE_DISPLAY
11021           fi
11022
11023           { echo "$as_me:$LINENO: result: $result" >&5
11024 echo "${ECHO_T}$result" >&6; }
11025
11026
11027           enablestring=
11028           defaultval=$wxUSE_ALL_FEATURES
11029           if test -z "$defaultval"; then
11030               if test x"$enablestring" = xdisable; then
11031                   defaultval=yes
11032               else
11033                   defaultval=no
11034               fi
11035           fi
11036
11037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11038 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11039           # Check whether --enable-editablebox was given.
11040 if test "${enable_editablebox+set}" = set; then
11041   enableval=$enable_editablebox;
11042                           if test "$enableval" = yes; then
11043                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11044                           else
11045                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11046                           fi
11047
11048 else
11049
11050                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11051
11052 fi
11053
11054
11055           eval "$wx_cv_use_editablebox"
11056
11057           if test x"$enablestring" = xdisable; then
11058             if test $wxUSE_EDITABLELISTBOX = no; then
11059               result=yes
11060             else
11061               result=no
11062             fi
11063           else
11064             result=$wxUSE_EDITABLELISTBOX
11065           fi
11066
11067           { echo "$as_me:$LINENO: result: $result" >&5
11068 echo "${ECHO_T}$result" >&6; }
11069
11070
11071           enablestring=
11072           defaultval=$wxUSE_ALL_FEATURES
11073           if test -z "$defaultval"; then
11074               if test x"$enablestring" = xdisable; then
11075                   defaultval=yes
11076               else
11077                   defaultval=no
11078               fi
11079           fi
11080
11081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11082 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11083           # Check whether --enable-filectrl was given.
11084 if test "${enable_filectrl+set}" = set; then
11085   enableval=$enable_filectrl;
11086                           if test "$enableval" = yes; then
11087                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11088                           else
11089                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11090                           fi
11091
11092 else
11093
11094                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11095
11096 fi
11097
11098
11099           eval "$wx_cv_use_filectrl"
11100
11101           if test x"$enablestring" = xdisable; then
11102             if test $wxUSE_FILECTRL = no; then
11103               result=yes
11104             else
11105               result=no
11106             fi
11107           else
11108             result=$wxUSE_FILECTRL
11109           fi
11110
11111           { echo "$as_me:$LINENO: result: $result" >&5
11112 echo "${ECHO_T}$result" >&6; }
11113
11114
11115           enablestring=
11116           defaultval=$wxUSE_ALL_FEATURES
11117           if test -z "$defaultval"; then
11118               if test x"$enablestring" = xdisable; then
11119                   defaultval=yes
11120               else
11121                   defaultval=no
11122               fi
11123           fi
11124
11125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11126 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11127           # Check whether --enable-filepicker was given.
11128 if test "${enable_filepicker+set}" = set; then
11129   enableval=$enable_filepicker;
11130                           if test "$enableval" = yes; then
11131                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11132                           else
11133                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11134                           fi
11135
11136 else
11137
11138                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11139
11140 fi
11141
11142
11143           eval "$wx_cv_use_filepicker"
11144
11145           if test x"$enablestring" = xdisable; then
11146             if test $wxUSE_FILEPICKERCTRL = no; then
11147               result=yes
11148             else
11149               result=no
11150             fi
11151           else
11152             result=$wxUSE_FILEPICKERCTRL
11153           fi
11154
11155           { echo "$as_me:$LINENO: result: $result" >&5
11156 echo "${ECHO_T}$result" >&6; }
11157
11158
11159           enablestring=
11160           defaultval=$wxUSE_ALL_FEATURES
11161           if test -z "$defaultval"; then
11162               if test x"$enablestring" = xdisable; then
11163                   defaultval=yes
11164               else
11165                   defaultval=no
11166               fi
11167           fi
11168
11169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11170 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11171           # Check whether --enable-fontpicker was given.
11172 if test "${enable_fontpicker+set}" = set; then
11173   enableval=$enable_fontpicker;
11174                           if test "$enableval" = yes; then
11175                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11176                           else
11177                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11178                           fi
11179
11180 else
11181
11182                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11183
11184 fi
11185
11186
11187           eval "$wx_cv_use_fontpicker"
11188
11189           if test x"$enablestring" = xdisable; then
11190             if test $wxUSE_FONTPICKERCTRL = no; then
11191               result=yes
11192             else
11193               result=no
11194             fi
11195           else
11196             result=$wxUSE_FONTPICKERCTRL
11197           fi
11198
11199           { echo "$as_me:$LINENO: result: $result" >&5
11200 echo "${ECHO_T}$result" >&6; }
11201
11202
11203           enablestring=
11204           defaultval=$wxUSE_ALL_FEATURES
11205           if test -z "$defaultval"; then
11206               if test x"$enablestring" = xdisable; then
11207                   defaultval=yes
11208               else
11209                   defaultval=no
11210               fi
11211           fi
11212
11213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11214 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11215           # Check whether --enable-gauge was given.
11216 if test "${enable_gauge+set}" = set; then
11217   enableval=$enable_gauge;
11218                           if test "$enableval" = yes; then
11219                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11220                           else
11221                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11222                           fi
11223
11224 else
11225
11226                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11227
11228 fi
11229
11230
11231           eval "$wx_cv_use_gauge"
11232
11233           if test x"$enablestring" = xdisable; then
11234             if test $wxUSE_GAUGE = no; then
11235               result=yes
11236             else
11237               result=no
11238             fi
11239           else
11240             result=$wxUSE_GAUGE
11241           fi
11242
11243           { echo "$as_me:$LINENO: result: $result" >&5
11244 echo "${ECHO_T}$result" >&6; }
11245
11246
11247           enablestring=
11248           defaultval=$wxUSE_ALL_FEATURES
11249           if test -z "$defaultval"; then
11250               if test x"$enablestring" = xdisable; then
11251                   defaultval=yes
11252               else
11253                   defaultval=no
11254               fi
11255           fi
11256
11257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11258 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11259           # Check whether --enable-grid was given.
11260 if test "${enable_grid+set}" = set; then
11261   enableval=$enable_grid;
11262                           if test "$enableval" = yes; then
11263                             wx_cv_use_grid='wxUSE_GRID=yes'
11264                           else
11265                             wx_cv_use_grid='wxUSE_GRID=no'
11266                           fi
11267
11268 else
11269
11270                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11271
11272 fi
11273
11274
11275           eval "$wx_cv_use_grid"
11276
11277           if test x"$enablestring" = xdisable; then
11278             if test $wxUSE_GRID = no; then
11279               result=yes
11280             else
11281               result=no
11282             fi
11283           else
11284             result=$wxUSE_GRID
11285           fi
11286
11287           { echo "$as_me:$LINENO: result: $result" >&5
11288 echo "${ECHO_T}$result" >&6; }
11289
11290
11291           enablestring=
11292           defaultval=$wxUSE_ALL_FEATURES
11293           if test -z "$defaultval"; then
11294               if test x"$enablestring" = xdisable; then
11295                   defaultval=yes
11296               else
11297                   defaultval=no
11298               fi
11299           fi
11300
11301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11302 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11303           # Check whether --enable-headerctrl was given.
11304 if test "${enable_headerctrl+set}" = set; then
11305   enableval=$enable_headerctrl;
11306                           if test "$enableval" = yes; then
11307                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11308                           else
11309                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11310                           fi
11311
11312 else
11313
11314                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11315
11316 fi
11317
11318
11319           eval "$wx_cv_use_headerctrl"
11320
11321           if test x"$enablestring" = xdisable; then
11322             if test $wxUSE_HEADERCTRL = no; then
11323               result=yes
11324             else
11325               result=no
11326             fi
11327           else
11328             result=$wxUSE_HEADERCTRL
11329           fi
11330
11331           { echo "$as_me:$LINENO: result: $result" >&5
11332 echo "${ECHO_T}$result" >&6; }
11333
11334
11335           enablestring=
11336           defaultval=$wxUSE_ALL_FEATURES
11337           if test -z "$defaultval"; then
11338               if test x"$enablestring" = xdisable; then
11339                   defaultval=yes
11340               else
11341                   defaultval=no
11342               fi
11343           fi
11344
11345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11346 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11347           # Check whether --enable-hyperlink was given.
11348 if test "${enable_hyperlink+set}" = set; then
11349   enableval=$enable_hyperlink;
11350                           if test "$enableval" = yes; then
11351                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11352                           else
11353                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11354                           fi
11355
11356 else
11357
11358                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11359
11360 fi
11361
11362
11363           eval "$wx_cv_use_hyperlink"
11364
11365           if test x"$enablestring" = xdisable; then
11366             if test $wxUSE_HYPERLINKCTRL = no; then
11367               result=yes
11368             else
11369               result=no
11370             fi
11371           else
11372             result=$wxUSE_HYPERLINKCTRL
11373           fi
11374
11375           { echo "$as_me:$LINENO: result: $result" >&5
11376 echo "${ECHO_T}$result" >&6; }
11377
11378
11379           enablestring=
11380           defaultval=$wxUSE_ALL_FEATURES
11381           if test -z "$defaultval"; then
11382               if test x"$enablestring" = xdisable; then
11383                   defaultval=yes
11384               else
11385                   defaultval=no
11386               fi
11387           fi
11388
11389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11390 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11391           # Check whether --enable-imaglist was given.
11392 if test "${enable_imaglist+set}" = set; then
11393   enableval=$enable_imaglist;
11394                           if test "$enableval" = yes; then
11395                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11396                           else
11397                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11398                           fi
11399
11400 else
11401
11402                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11403
11404 fi
11405
11406
11407           eval "$wx_cv_use_imaglist"
11408
11409           if test x"$enablestring" = xdisable; then
11410             if test $wxUSE_IMAGLIST = no; then
11411               result=yes
11412             else
11413               result=no
11414             fi
11415           else
11416             result=$wxUSE_IMAGLIST
11417           fi
11418
11419           { echo "$as_me:$LINENO: result: $result" >&5
11420 echo "${ECHO_T}$result" >&6; }
11421
11422
11423           enablestring=
11424           defaultval=$wxUSE_ALL_FEATURES
11425           if test -z "$defaultval"; then
11426               if test x"$enablestring" = xdisable; then
11427                   defaultval=yes
11428               else
11429                   defaultval=no
11430               fi
11431           fi
11432
11433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11434 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11435           # Check whether --enable-infobar was given.
11436 if test "${enable_infobar+set}" = set; then
11437   enableval=$enable_infobar;
11438                           if test "$enableval" = yes; then
11439                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11440                           else
11441                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11442                           fi
11443
11444 else
11445
11446                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11447
11448 fi
11449
11450
11451           eval "$wx_cv_use_infobar"
11452
11453           if test x"$enablestring" = xdisable; then
11454             if test $wxUSE_INFOBAR = no; then
11455               result=yes
11456             else
11457               result=no
11458             fi
11459           else
11460             result=$wxUSE_INFOBAR
11461           fi
11462
11463           { echo "$as_me:$LINENO: result: $result" >&5
11464 echo "${ECHO_T}$result" >&6; }
11465
11466
11467           enablestring=
11468           defaultval=$wxUSE_ALL_FEATURES
11469           if test -z "$defaultval"; then
11470               if test x"$enablestring" = xdisable; then
11471                   defaultval=yes
11472               else
11473                   defaultval=no
11474               fi
11475           fi
11476
11477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11478 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11479           # Check whether --enable-listbook was given.
11480 if test "${enable_listbook+set}" = set; then
11481   enableval=$enable_listbook;
11482                           if test "$enableval" = yes; then
11483                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11484                           else
11485                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11486                           fi
11487
11488 else
11489
11490                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11491
11492 fi
11493
11494
11495           eval "$wx_cv_use_listbook"
11496
11497           if test x"$enablestring" = xdisable; then
11498             if test $wxUSE_LISTBOOK = no; then
11499               result=yes
11500             else
11501               result=no
11502             fi
11503           else
11504             result=$wxUSE_LISTBOOK
11505           fi
11506
11507           { echo "$as_me:$LINENO: result: $result" >&5
11508 echo "${ECHO_T}$result" >&6; }
11509
11510
11511           enablestring=
11512           defaultval=$wxUSE_ALL_FEATURES
11513           if test -z "$defaultval"; then
11514               if test x"$enablestring" = xdisable; then
11515                   defaultval=yes
11516               else
11517                   defaultval=no
11518               fi
11519           fi
11520
11521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11522 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11523           # Check whether --enable-listbox was given.
11524 if test "${enable_listbox+set}" = set; then
11525   enableval=$enable_listbox;
11526                           if test "$enableval" = yes; then
11527                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11528                           else
11529                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11530                           fi
11531
11532 else
11533
11534                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11535
11536 fi
11537
11538
11539           eval "$wx_cv_use_listbox"
11540
11541           if test x"$enablestring" = xdisable; then
11542             if test $wxUSE_LISTBOX = no; then
11543               result=yes
11544             else
11545               result=no
11546             fi
11547           else
11548             result=$wxUSE_LISTBOX
11549           fi
11550
11551           { echo "$as_me:$LINENO: result: $result" >&5
11552 echo "${ECHO_T}$result" >&6; }
11553
11554
11555           enablestring=
11556           defaultval=$wxUSE_ALL_FEATURES
11557           if test -z "$defaultval"; then
11558               if test x"$enablestring" = xdisable; then
11559                   defaultval=yes
11560               else
11561                   defaultval=no
11562               fi
11563           fi
11564
11565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11566 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11567           # Check whether --enable-listctrl was given.
11568 if test "${enable_listctrl+set}" = set; then
11569   enableval=$enable_listctrl;
11570                           if test "$enableval" = yes; then
11571                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11572                           else
11573                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11574                           fi
11575
11576 else
11577
11578                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11579
11580 fi
11581
11582
11583           eval "$wx_cv_use_listctrl"
11584
11585           if test x"$enablestring" = xdisable; then
11586             if test $wxUSE_LISTCTRL = no; then
11587               result=yes
11588             else
11589               result=no
11590             fi
11591           else
11592             result=$wxUSE_LISTCTRL
11593           fi
11594
11595           { echo "$as_me:$LINENO: result: $result" >&5
11596 echo "${ECHO_T}$result" >&6; }
11597
11598
11599           enablestring=
11600           defaultval=$wxUSE_ALL_FEATURES
11601           if test -z "$defaultval"; then
11602               if test x"$enablestring" = xdisable; then
11603                   defaultval=yes
11604               else
11605                   defaultval=no
11606               fi
11607           fi
11608
11609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11610 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11611           # Check whether --enable-notebook was given.
11612 if test "${enable_notebook+set}" = set; then
11613   enableval=$enable_notebook;
11614                           if test "$enableval" = yes; then
11615                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11616                           else
11617                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11618                           fi
11619
11620 else
11621
11622                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11623
11624 fi
11625
11626
11627           eval "$wx_cv_use_notebook"
11628
11629           if test x"$enablestring" = xdisable; then
11630             if test $wxUSE_NOTEBOOK = no; then
11631               result=yes
11632             else
11633               result=no
11634             fi
11635           else
11636             result=$wxUSE_NOTEBOOK
11637           fi
11638
11639           { echo "$as_me:$LINENO: result: $result" >&5
11640 echo "${ECHO_T}$result" >&6; }
11641
11642
11643           enablestring=
11644           defaultval=$wxUSE_ALL_FEATURES
11645           if test -z "$defaultval"; then
11646               if test x"$enablestring" = xdisable; then
11647                   defaultval=yes
11648               else
11649                   defaultval=no
11650               fi
11651           fi
11652
11653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11654 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11655           # Check whether --enable-notifmsg was given.
11656 if test "${enable_notifmsg+set}" = set; then
11657   enableval=$enable_notifmsg;
11658                           if test "$enableval" = yes; then
11659                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11660                           else
11661                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11662                           fi
11663
11664 else
11665
11666                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11667
11668 fi
11669
11670
11671           eval "$wx_cv_use_notifmsg"
11672
11673           if test x"$enablestring" = xdisable; then
11674             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11675               result=yes
11676             else
11677               result=no
11678             fi
11679           else
11680             result=$wxUSE_NOTIFICATION_MESSAGE
11681           fi
11682
11683           { echo "$as_me:$LINENO: result: $result" >&5
11684 echo "${ECHO_T}$result" >&6; }
11685
11686
11687           enablestring=
11688           defaultval=$wxUSE_ALL_FEATURES
11689           if test -z "$defaultval"; then
11690               if test x"$enablestring" = xdisable; then
11691                   defaultval=yes
11692               else
11693                   defaultval=no
11694               fi
11695           fi
11696
11697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11698 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11699           # Check whether --enable-odcombobox was given.
11700 if test "${enable_odcombobox+set}" = set; then
11701   enableval=$enable_odcombobox;
11702                           if test "$enableval" = yes; then
11703                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11704                           else
11705                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11706                           fi
11707
11708 else
11709
11710                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11711
11712 fi
11713
11714
11715           eval "$wx_cv_use_odcombobox"
11716
11717           if test x"$enablestring" = xdisable; then
11718             if test $wxUSE_ODCOMBOBOX = no; then
11719               result=yes
11720             else
11721               result=no
11722             fi
11723           else
11724             result=$wxUSE_ODCOMBOBOX
11725           fi
11726
11727           { echo "$as_me:$LINENO: result: $result" >&5
11728 echo "${ECHO_T}$result" >&6; }
11729
11730
11731           enablestring=
11732           defaultval=$wxUSE_ALL_FEATURES
11733           if test -z "$defaultval"; then
11734               if test x"$enablestring" = xdisable; then
11735                   defaultval=yes
11736               else
11737                   defaultval=no
11738               fi
11739           fi
11740
11741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11742 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11743           # Check whether --enable-popupwin was given.
11744 if test "${enable_popupwin+set}" = set; then
11745   enableval=$enable_popupwin;
11746                           if test "$enableval" = yes; then
11747                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11748                           else
11749                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11750                           fi
11751
11752 else
11753
11754                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11755
11756 fi
11757
11758
11759           eval "$wx_cv_use_popupwin"
11760
11761           if test x"$enablestring" = xdisable; then
11762             if test $wxUSE_POPUPWIN = no; then
11763               result=yes
11764             else
11765               result=no
11766             fi
11767           else
11768             result=$wxUSE_POPUPWIN
11769           fi
11770
11771           { echo "$as_me:$LINENO: result: $result" >&5
11772 echo "${ECHO_T}$result" >&6; }
11773
11774
11775           enablestring=
11776           defaultval=$wxUSE_ALL_FEATURES
11777           if test -z "$defaultval"; then
11778               if test x"$enablestring" = xdisable; then
11779                   defaultval=yes
11780               else
11781                   defaultval=no
11782               fi
11783           fi
11784
11785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11786 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11787           # Check whether --enable-radiobox was given.
11788 if test "${enable_radiobox+set}" = set; then
11789   enableval=$enable_radiobox;
11790                           if test "$enableval" = yes; then
11791                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11792                           else
11793                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11794                           fi
11795
11796 else
11797
11798                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11799
11800 fi
11801
11802
11803           eval "$wx_cv_use_radiobox"
11804
11805           if test x"$enablestring" = xdisable; then
11806             if test $wxUSE_RADIOBOX = no; then
11807               result=yes
11808             else
11809               result=no
11810             fi
11811           else
11812             result=$wxUSE_RADIOBOX
11813           fi
11814
11815           { echo "$as_me:$LINENO: result: $result" >&5
11816 echo "${ECHO_T}$result" >&6; }
11817
11818
11819           enablestring=
11820           defaultval=$wxUSE_ALL_FEATURES
11821           if test -z "$defaultval"; then
11822               if test x"$enablestring" = xdisable; then
11823                   defaultval=yes
11824               else
11825                   defaultval=no
11826               fi
11827           fi
11828
11829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11830 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11831           # Check whether --enable-radiobtn was given.
11832 if test "${enable_radiobtn+set}" = set; then
11833   enableval=$enable_radiobtn;
11834                           if test "$enableval" = yes; then
11835                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11836                           else
11837                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11838                           fi
11839
11840 else
11841
11842                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11843
11844 fi
11845
11846
11847           eval "$wx_cv_use_radiobtn"
11848
11849           if test x"$enablestring" = xdisable; then
11850             if test $wxUSE_RADIOBTN = no; then
11851               result=yes
11852             else
11853               result=no
11854             fi
11855           else
11856             result=$wxUSE_RADIOBTN
11857           fi
11858
11859           { echo "$as_me:$LINENO: result: $result" >&5
11860 echo "${ECHO_T}$result" >&6; }
11861
11862
11863           enablestring=
11864           defaultval=$wxUSE_ALL_FEATURES
11865           if test -z "$defaultval"; then
11866               if test x"$enablestring" = xdisable; then
11867                   defaultval=yes
11868               else
11869                   defaultval=no
11870               fi
11871           fi
11872
11873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11874 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11875           # Check whether --enable-richmsgdlg was given.
11876 if test "${enable_richmsgdlg+set}" = set; then
11877   enableval=$enable_richmsgdlg;
11878                           if test "$enableval" = yes; then
11879                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11880                           else
11881                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11882                           fi
11883
11884 else
11885
11886                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11887
11888 fi
11889
11890
11891           eval "$wx_cv_use_richmsgdlg"
11892
11893           if test x"$enablestring" = xdisable; then
11894             if test $wxUSE_RICHMSGDLG = no; then
11895               result=yes
11896             else
11897               result=no
11898             fi
11899           else
11900             result=$wxUSE_RICHMSGDLG
11901           fi
11902
11903           { echo "$as_me:$LINENO: result: $result" >&5
11904 echo "${ECHO_T}$result" >&6; }
11905
11906
11907           enablestring=
11908           defaultval=$wxUSE_ALL_FEATURES
11909           if test -z "$defaultval"; then
11910               if test x"$enablestring" = xdisable; then
11911                   defaultval=yes
11912               else
11913                   defaultval=no
11914               fi
11915           fi
11916
11917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11918 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11919           # Check whether --enable-rearrangectrl was given.
11920 if test "${enable_rearrangectrl+set}" = set; then
11921   enableval=$enable_rearrangectrl;
11922                           if test "$enableval" = yes; then
11923                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11924                           else
11925                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11926                           fi
11927
11928 else
11929
11930                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11931
11932 fi
11933
11934
11935           eval "$wx_cv_use_rearrangectrl"
11936
11937           if test x"$enablestring" = xdisable; then
11938             if test $wxUSE_REARRANGECTRL = no; then
11939               result=yes
11940             else
11941               result=no
11942             fi
11943           else
11944             result=$wxUSE_REARRANGECTRL
11945           fi
11946
11947           { echo "$as_me:$LINENO: result: $result" >&5
11948 echo "${ECHO_T}$result" >&6; }
11949
11950
11951           enablestring=
11952           defaultval=$wxUSE_ALL_FEATURES
11953           if test -z "$defaultval"; then
11954               if test x"$enablestring" = xdisable; then
11955                   defaultval=yes
11956               else
11957                   defaultval=no
11958               fi
11959           fi
11960
11961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11962 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11963           # Check whether --enable-sash was given.
11964 if test "${enable_sash+set}" = set; then
11965   enableval=$enable_sash;
11966                           if test "$enableval" = yes; then
11967                             wx_cv_use_sash='wxUSE_SASH=yes'
11968                           else
11969                             wx_cv_use_sash='wxUSE_SASH=no'
11970                           fi
11971
11972 else
11973
11974                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11975
11976 fi
11977
11978
11979           eval "$wx_cv_use_sash"
11980
11981           if test x"$enablestring" = xdisable; then
11982             if test $wxUSE_SASH = no; then
11983               result=yes
11984             else
11985               result=no
11986             fi
11987           else
11988             result=$wxUSE_SASH
11989           fi
11990
11991           { echo "$as_me:$LINENO: result: $result" >&5
11992 echo "${ECHO_T}$result" >&6; }
11993
11994
11995           enablestring=
11996           defaultval=$wxUSE_ALL_FEATURES
11997           if test -z "$defaultval"; then
11998               if test x"$enablestring" = xdisable; then
11999                   defaultval=yes
12000               else
12001                   defaultval=no
12002               fi
12003           fi
12004
12005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12006 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12007           # Check whether --enable-scrollbar was given.
12008 if test "${enable_scrollbar+set}" = set; then
12009   enableval=$enable_scrollbar;
12010                           if test "$enableval" = yes; then
12011                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12012                           else
12013                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12014                           fi
12015
12016 else
12017
12018                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12019
12020 fi
12021
12022
12023           eval "$wx_cv_use_scrollbar"
12024
12025           if test x"$enablestring" = xdisable; then
12026             if test $wxUSE_SCROLLBAR = no; then
12027               result=yes
12028             else
12029               result=no
12030             fi
12031           else
12032             result=$wxUSE_SCROLLBAR
12033           fi
12034
12035           { echo "$as_me:$LINENO: result: $result" >&5
12036 echo "${ECHO_T}$result" >&6; }
12037
12038
12039           enablestring=
12040           defaultval=$wxUSE_ALL_FEATURES
12041           if test -z "$defaultval"; then
12042               if test x"$enablestring" = xdisable; then
12043                   defaultval=yes
12044               else
12045                   defaultval=no
12046               fi
12047           fi
12048
12049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12050 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12051           # Check whether --enable-searchctrl was given.
12052 if test "${enable_searchctrl+set}" = set; then
12053   enableval=$enable_searchctrl;
12054                           if test "$enableval" = yes; then
12055                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12056                           else
12057                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12058                           fi
12059
12060 else
12061
12062                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12063
12064 fi
12065
12066
12067           eval "$wx_cv_use_searchctrl"
12068
12069           if test x"$enablestring" = xdisable; then
12070             if test $wxUSE_SEARCHCTRL = no; then
12071               result=yes
12072             else
12073               result=no
12074             fi
12075           else
12076             result=$wxUSE_SEARCHCTRL
12077           fi
12078
12079           { echo "$as_me:$LINENO: result: $result" >&5
12080 echo "${ECHO_T}$result" >&6; }
12081
12082
12083           enablestring=
12084           defaultval=$wxUSE_ALL_FEATURES
12085           if test -z "$defaultval"; then
12086               if test x"$enablestring" = xdisable; then
12087                   defaultval=yes
12088               else
12089                   defaultval=no
12090               fi
12091           fi
12092
12093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12094 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12095           # Check whether --enable-slider was given.
12096 if test "${enable_slider+set}" = set; then
12097   enableval=$enable_slider;
12098                           if test "$enableval" = yes; then
12099                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12100                           else
12101                             wx_cv_use_slider='wxUSE_SLIDER=no'
12102                           fi
12103
12104 else
12105
12106                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12107
12108 fi
12109
12110
12111           eval "$wx_cv_use_slider"
12112
12113           if test x"$enablestring" = xdisable; then
12114             if test $wxUSE_SLIDER = no; then
12115               result=yes
12116             else
12117               result=no
12118             fi
12119           else
12120             result=$wxUSE_SLIDER
12121           fi
12122
12123           { echo "$as_me:$LINENO: result: $result" >&5
12124 echo "${ECHO_T}$result" >&6; }
12125
12126
12127           enablestring=
12128           defaultval=$wxUSE_ALL_FEATURES
12129           if test -z "$defaultval"; then
12130               if test x"$enablestring" = xdisable; then
12131                   defaultval=yes
12132               else
12133                   defaultval=no
12134               fi
12135           fi
12136
12137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12138 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12139           # Check whether --enable-spinbtn was given.
12140 if test "${enable_spinbtn+set}" = set; then
12141   enableval=$enable_spinbtn;
12142                           if test "$enableval" = yes; then
12143                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12144                           else
12145                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12146                           fi
12147
12148 else
12149
12150                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12151
12152 fi
12153
12154
12155           eval "$wx_cv_use_spinbtn"
12156
12157           if test x"$enablestring" = xdisable; then
12158             if test $wxUSE_SPINBTN = no; then
12159               result=yes
12160             else
12161               result=no
12162             fi
12163           else
12164             result=$wxUSE_SPINBTN
12165           fi
12166
12167           { echo "$as_me:$LINENO: result: $result" >&5
12168 echo "${ECHO_T}$result" >&6; }
12169
12170
12171           enablestring=
12172           defaultval=$wxUSE_ALL_FEATURES
12173           if test -z "$defaultval"; then
12174               if test x"$enablestring" = xdisable; then
12175                   defaultval=yes
12176               else
12177                   defaultval=no
12178               fi
12179           fi
12180
12181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12182 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12183           # Check whether --enable-spinctrl was given.
12184 if test "${enable_spinctrl+set}" = set; then
12185   enableval=$enable_spinctrl;
12186                           if test "$enableval" = yes; then
12187                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12188                           else
12189                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12190                           fi
12191
12192 else
12193
12194                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12195
12196 fi
12197
12198
12199           eval "$wx_cv_use_spinctrl"
12200
12201           if test x"$enablestring" = xdisable; then
12202             if test $wxUSE_SPINCTRL = no; then
12203               result=yes
12204             else
12205               result=no
12206             fi
12207           else
12208             result=$wxUSE_SPINCTRL
12209           fi
12210
12211           { echo "$as_me:$LINENO: result: $result" >&5
12212 echo "${ECHO_T}$result" >&6; }
12213
12214
12215           enablestring=
12216           defaultval=$wxUSE_ALL_FEATURES
12217           if test -z "$defaultval"; then
12218               if test x"$enablestring" = xdisable; then
12219                   defaultval=yes
12220               else
12221                   defaultval=no
12222               fi
12223           fi
12224
12225           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12226 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12227           # Check whether --enable-splitter was given.
12228 if test "${enable_splitter+set}" = set; then
12229   enableval=$enable_splitter;
12230                           if test "$enableval" = yes; then
12231                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12232                           else
12233                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12234                           fi
12235
12236 else
12237
12238                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12239
12240 fi
12241
12242
12243           eval "$wx_cv_use_splitter"
12244
12245           if test x"$enablestring" = xdisable; then
12246             if test $wxUSE_SPLITTER = no; then
12247               result=yes
12248             else
12249               result=no
12250             fi
12251           else
12252             result=$wxUSE_SPLITTER
12253           fi
12254
12255           { echo "$as_me:$LINENO: result: $result" >&5
12256 echo "${ECHO_T}$result" >&6; }
12257
12258
12259           enablestring=
12260           defaultval=$wxUSE_ALL_FEATURES
12261           if test -z "$defaultval"; then
12262               if test x"$enablestring" = xdisable; then
12263                   defaultval=yes
12264               else
12265                   defaultval=no
12266               fi
12267           fi
12268
12269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12270 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12271           # Check whether --enable-statbmp was given.
12272 if test "${enable_statbmp+set}" = set; then
12273   enableval=$enable_statbmp;
12274                           if test "$enableval" = yes; then
12275                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12276                           else
12277                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12278                           fi
12279
12280 else
12281
12282                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12283
12284 fi
12285
12286
12287           eval "$wx_cv_use_statbmp"
12288
12289           if test x"$enablestring" = xdisable; then
12290             if test $wxUSE_STATBMP = no; then
12291               result=yes
12292             else
12293               result=no
12294             fi
12295           else
12296             result=$wxUSE_STATBMP
12297           fi
12298
12299           { echo "$as_me:$LINENO: result: $result" >&5
12300 echo "${ECHO_T}$result" >&6; }
12301
12302
12303           enablestring=
12304           defaultval=$wxUSE_ALL_FEATURES
12305           if test -z "$defaultval"; then
12306               if test x"$enablestring" = xdisable; then
12307                   defaultval=yes
12308               else
12309                   defaultval=no
12310               fi
12311           fi
12312
12313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12314 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12315           # Check whether --enable-statbox was given.
12316 if test "${enable_statbox+set}" = set; then
12317   enableval=$enable_statbox;
12318                           if test "$enableval" = yes; then
12319                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12320                           else
12321                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12322                           fi
12323
12324 else
12325
12326                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12327
12328 fi
12329
12330
12331           eval "$wx_cv_use_statbox"
12332
12333           if test x"$enablestring" = xdisable; then
12334             if test $wxUSE_STATBOX = no; then
12335               result=yes
12336             else
12337               result=no
12338             fi
12339           else
12340             result=$wxUSE_STATBOX
12341           fi
12342
12343           { echo "$as_me:$LINENO: result: $result" >&5
12344 echo "${ECHO_T}$result" >&6; }
12345
12346
12347           enablestring=
12348           defaultval=$wxUSE_ALL_FEATURES
12349           if test -z "$defaultval"; then
12350               if test x"$enablestring" = xdisable; then
12351                   defaultval=yes
12352               else
12353                   defaultval=no
12354               fi
12355           fi
12356
12357           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12358 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12359           # Check whether --enable-statline was given.
12360 if test "${enable_statline+set}" = set; then
12361   enableval=$enable_statline;
12362                           if test "$enableval" = yes; then
12363                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12364                           else
12365                             wx_cv_use_statline='wxUSE_STATLINE=no'
12366                           fi
12367
12368 else
12369
12370                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12371
12372 fi
12373
12374
12375           eval "$wx_cv_use_statline"
12376
12377           if test x"$enablestring" = xdisable; then
12378             if test $wxUSE_STATLINE = no; then
12379               result=yes
12380             else
12381               result=no
12382             fi
12383           else
12384             result=$wxUSE_STATLINE
12385           fi
12386
12387           { echo "$as_me:$LINENO: result: $result" >&5
12388 echo "${ECHO_T}$result" >&6; }
12389
12390
12391           enablestring=
12392           defaultval=$wxUSE_ALL_FEATURES
12393           if test -z "$defaultval"; then
12394               if test x"$enablestring" = xdisable; then
12395                   defaultval=yes
12396               else
12397                   defaultval=no
12398               fi
12399           fi
12400
12401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12402 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12403           # Check whether --enable-stattext was given.
12404 if test "${enable_stattext+set}" = set; then
12405   enableval=$enable_stattext;
12406                           if test "$enableval" = yes; then
12407                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12408                           else
12409                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12410                           fi
12411
12412 else
12413
12414                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12415
12416 fi
12417
12418
12419           eval "$wx_cv_use_stattext"
12420
12421           if test x"$enablestring" = xdisable; then
12422             if test $wxUSE_STATTEXT = no; then
12423               result=yes
12424             else
12425               result=no
12426             fi
12427           else
12428             result=$wxUSE_STATTEXT
12429           fi
12430
12431           { echo "$as_me:$LINENO: result: $result" >&5
12432 echo "${ECHO_T}$result" >&6; }
12433
12434
12435           enablestring=
12436           defaultval=$wxUSE_ALL_FEATURES
12437           if test -z "$defaultval"; then
12438               if test x"$enablestring" = xdisable; then
12439                   defaultval=yes
12440               else
12441                   defaultval=no
12442               fi
12443           fi
12444
12445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12446 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12447           # Check whether --enable-statusbar was given.
12448 if test "${enable_statusbar+set}" = set; then
12449   enableval=$enable_statusbar;
12450                           if test "$enableval" = yes; then
12451                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12452                           else
12453                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12454                           fi
12455
12456 else
12457
12458                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12459
12460 fi
12461
12462
12463           eval "$wx_cv_use_statusbar"
12464
12465           if test x"$enablestring" = xdisable; then
12466             if test $wxUSE_STATUSBAR = no; then
12467               result=yes
12468             else
12469               result=no
12470             fi
12471           else
12472             result=$wxUSE_STATUSBAR
12473           fi
12474
12475           { echo "$as_me:$LINENO: result: $result" >&5
12476 echo "${ECHO_T}$result" >&6; }
12477
12478
12479           enablestring=
12480           defaultval=$wxUSE_ALL_FEATURES
12481           if test -z "$defaultval"; then
12482               if test x"$enablestring" = xdisable; then
12483                   defaultval=yes
12484               else
12485                   defaultval=no
12486               fi
12487           fi
12488
12489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12490 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12491           # Check whether --enable-taskbaricon was given.
12492 if test "${enable_taskbaricon+set}" = set; then
12493   enableval=$enable_taskbaricon;
12494                           if test "$enableval" = yes; then
12495                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12496                           else
12497                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12498                           fi
12499
12500 else
12501
12502                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12503
12504 fi
12505
12506
12507           eval "$wx_cv_use_taskbaricon"
12508
12509           if test x"$enablestring" = xdisable; then
12510             if test $wxUSE_TASKBARICON = no; then
12511               result=yes
12512             else
12513               result=no
12514             fi
12515           else
12516             result=$wxUSE_TASKBARICON
12517           fi
12518
12519           { echo "$as_me:$LINENO: result: $result" >&5
12520 echo "${ECHO_T}$result" >&6; }
12521
12522
12523           enablestring=
12524           defaultval=$wxUSE_ALL_FEATURES
12525           if test -z "$defaultval"; then
12526               if test x"$enablestring" = xdisable; then
12527                   defaultval=yes
12528               else
12529                   defaultval=no
12530               fi
12531           fi
12532
12533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12534 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12535           # Check whether --enable-tbarnative was given.
12536 if test "${enable_tbarnative+set}" = set; then
12537   enableval=$enable_tbarnative;
12538                           if test "$enableval" = yes; then
12539                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12540                           else
12541                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12542                           fi
12543
12544 else
12545
12546                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12547
12548 fi
12549
12550
12551           eval "$wx_cv_use_tbarnative"
12552
12553           if test x"$enablestring" = xdisable; then
12554             if test $wxUSE_TOOLBAR_NATIVE = no; then
12555               result=yes
12556             else
12557               result=no
12558             fi
12559           else
12560             result=$wxUSE_TOOLBAR_NATIVE
12561           fi
12562
12563           { echo "$as_me:$LINENO: result: $result" >&5
12564 echo "${ECHO_T}$result" >&6; }
12565
12566
12567           enablestring=
12568           defaultval=$wxUSE_ALL_FEATURES
12569           if test -z "$defaultval"; then
12570               if test x"$enablestring" = xdisable; then
12571                   defaultval=yes
12572               else
12573                   defaultval=no
12574               fi
12575           fi
12576
12577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12578 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12579           # Check whether --enable-textctrl was given.
12580 if test "${enable_textctrl+set}" = set; then
12581   enableval=$enable_textctrl;
12582                           if test "$enableval" = yes; then
12583                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12584                           else
12585                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12586                           fi
12587
12588 else
12589
12590                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12591
12592 fi
12593
12594
12595           eval "$wx_cv_use_textctrl"
12596
12597           if test x"$enablestring" = xdisable; then
12598             if test $wxUSE_TEXTCTRL = no; then
12599               result=yes
12600             else
12601               result=no
12602             fi
12603           else
12604             result=$wxUSE_TEXTCTRL
12605           fi
12606
12607           { echo "$as_me:$LINENO: result: $result" >&5
12608 echo "${ECHO_T}$result" >&6; }
12609
12610
12611           enablestring=
12612           defaultval=$wxUSE_ALL_FEATURES
12613           if test -z "$defaultval"; then
12614               if test x"$enablestring" = xdisable; then
12615                   defaultval=yes
12616               else
12617                   defaultval=no
12618               fi
12619           fi
12620
12621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12622 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12623           # Check whether --enable-tipwindow was given.
12624 if test "${enable_tipwindow+set}" = set; then
12625   enableval=$enable_tipwindow;
12626                           if test "$enableval" = yes; then
12627                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12628                           else
12629                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12630                           fi
12631
12632 else
12633
12634                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12635
12636 fi
12637
12638
12639           eval "$wx_cv_use_tipwindow"
12640
12641           if test x"$enablestring" = xdisable; then
12642             if test $wxUSE_TIPWINDOW = no; then
12643               result=yes
12644             else
12645               result=no
12646             fi
12647           else
12648             result=$wxUSE_TIPWINDOW
12649           fi
12650
12651           { echo "$as_me:$LINENO: result: $result" >&5
12652 echo "${ECHO_T}$result" >&6; }
12653
12654
12655           enablestring=
12656           defaultval=$wxUSE_ALL_FEATURES
12657           if test -z "$defaultval"; then
12658               if test x"$enablestring" = xdisable; then
12659                   defaultval=yes
12660               else
12661                   defaultval=no
12662               fi
12663           fi
12664
12665           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12666 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12667           # Check whether --enable-togglebtn was given.
12668 if test "${enable_togglebtn+set}" = set; then
12669   enableval=$enable_togglebtn;
12670                           if test "$enableval" = yes; then
12671                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12672                           else
12673                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12674                           fi
12675
12676 else
12677
12678                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12679
12680 fi
12681
12682
12683           eval "$wx_cv_use_togglebtn"
12684
12685           if test x"$enablestring" = xdisable; then
12686             if test $wxUSE_TOGGLEBTN = no; then
12687               result=yes
12688             else
12689               result=no
12690             fi
12691           else
12692             result=$wxUSE_TOGGLEBTN
12693           fi
12694
12695           { echo "$as_me:$LINENO: result: $result" >&5
12696 echo "${ECHO_T}$result" >&6; }
12697
12698
12699           enablestring=
12700           defaultval=$wxUSE_ALL_FEATURES
12701           if test -z "$defaultval"; then
12702               if test x"$enablestring" = xdisable; then
12703                   defaultval=yes
12704               else
12705                   defaultval=no
12706               fi
12707           fi
12708
12709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12710 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12711           # Check whether --enable-toolbar was given.
12712 if test "${enable_toolbar+set}" = set; then
12713   enableval=$enable_toolbar;
12714                           if test "$enableval" = yes; then
12715                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12716                           else
12717                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12718                           fi
12719
12720 else
12721
12722                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12723
12724 fi
12725
12726
12727           eval "$wx_cv_use_toolbar"
12728
12729           if test x"$enablestring" = xdisable; then
12730             if test $wxUSE_TOOLBAR = no; then
12731               result=yes
12732             else
12733               result=no
12734             fi
12735           else
12736             result=$wxUSE_TOOLBAR
12737           fi
12738
12739           { echo "$as_me:$LINENO: result: $result" >&5
12740 echo "${ECHO_T}$result" >&6; }
12741
12742
12743           enablestring=
12744           defaultval=$wxUSE_ALL_FEATURES
12745           if test -z "$defaultval"; then
12746               if test x"$enablestring" = xdisable; then
12747                   defaultval=yes
12748               else
12749                   defaultval=no
12750               fi
12751           fi
12752
12753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12754 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12755           # Check whether --enable-toolbook was given.
12756 if test "${enable_toolbook+set}" = set; then
12757   enableval=$enable_toolbook;
12758                           if test "$enableval" = yes; then
12759                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12760                           else
12761                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12762                           fi
12763
12764 else
12765
12766                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12767
12768 fi
12769
12770
12771           eval "$wx_cv_use_toolbook"
12772
12773           if test x"$enablestring" = xdisable; then
12774             if test $wxUSE_TOOLBOOK = no; then
12775               result=yes
12776             else
12777               result=no
12778             fi
12779           else
12780             result=$wxUSE_TOOLBOOK
12781           fi
12782
12783           { echo "$as_me:$LINENO: result: $result" >&5
12784 echo "${ECHO_T}$result" >&6; }
12785
12786
12787           enablestring=
12788           defaultval=$wxUSE_ALL_FEATURES
12789           if test -z "$defaultval"; then
12790               if test x"$enablestring" = xdisable; then
12791                   defaultval=yes
12792               else
12793                   defaultval=no
12794               fi
12795           fi
12796
12797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12798 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12799           # Check whether --enable-treebook was given.
12800 if test "${enable_treebook+set}" = set; then
12801   enableval=$enable_treebook;
12802                           if test "$enableval" = yes; then
12803                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12804                           else
12805                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12806                           fi
12807
12808 else
12809
12810                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12811
12812 fi
12813
12814
12815           eval "$wx_cv_use_treebook"
12816
12817           if test x"$enablestring" = xdisable; then
12818             if test $wxUSE_TREEBOOK = no; then
12819               result=yes
12820             else
12821               result=no
12822             fi
12823           else
12824             result=$wxUSE_TREEBOOK
12825           fi
12826
12827           { echo "$as_me:$LINENO: result: $result" >&5
12828 echo "${ECHO_T}$result" >&6; }
12829
12830
12831           enablestring=
12832           defaultval=$wxUSE_ALL_FEATURES
12833           if test -z "$defaultval"; then
12834               if test x"$enablestring" = xdisable; then
12835                   defaultval=yes
12836               else
12837                   defaultval=no
12838               fi
12839           fi
12840
12841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12842 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12843           # Check whether --enable-treectrl was given.
12844 if test "${enable_treectrl+set}" = set; then
12845   enableval=$enable_treectrl;
12846                           if test "$enableval" = yes; then
12847                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12848                           else
12849                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12850                           fi
12851
12852 else
12853
12854                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12855
12856 fi
12857
12858
12859           eval "$wx_cv_use_treectrl"
12860
12861           if test x"$enablestring" = xdisable; then
12862             if test $wxUSE_TREECTRL = no; then
12863               result=yes
12864             else
12865               result=no
12866             fi
12867           else
12868             result=$wxUSE_TREECTRL
12869           fi
12870
12871           { echo "$as_me:$LINENO: result: $result" >&5
12872 echo "${ECHO_T}$result" >&6; }
12873
12874
12875           enablestring=
12876           defaultval=$wxUSE_ALL_FEATURES
12877           if test -z "$defaultval"; then
12878               if test x"$enablestring" = xdisable; then
12879                   defaultval=yes
12880               else
12881                   defaultval=no
12882               fi
12883           fi
12884
12885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
12886 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
12887           # Check whether --enable-treelist was given.
12888 if test "${enable_treelist+set}" = set; then
12889   enableval=$enable_treelist;
12890                           if test "$enableval" = yes; then
12891                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
12892                           else
12893                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
12894                           fi
12895
12896 else
12897
12898                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
12899
12900 fi
12901
12902
12903           eval "$wx_cv_use_treelist"
12904
12905           if test x"$enablestring" = xdisable; then
12906             if test $wxUSE_TREELISTCTRL = no; then
12907               result=yes
12908             else
12909               result=no
12910             fi
12911           else
12912             result=$wxUSE_TREELISTCTRL
12913           fi
12914
12915           { echo "$as_me:$LINENO: result: $result" >&5
12916 echo "${ECHO_T}$result" >&6; }
12917
12918
12919
12920
12921           enablestring=
12922           defaultval=$wxUSE_ALL_FEATURES
12923           if test -z "$defaultval"; then
12924               if test x"$enablestring" = xdisable; then
12925                   defaultval=yes
12926               else
12927                   defaultval=no
12928               fi
12929           fi
12930
12931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12932 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12933           # Check whether --enable-commondlg was given.
12934 if test "${enable_commondlg+set}" = set; then
12935   enableval=$enable_commondlg;
12936                           if test "$enableval" = yes; then
12937                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12938                           else
12939                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12940                           fi
12941
12942 else
12943
12944                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12945
12946 fi
12947
12948
12949           eval "$wx_cv_use_commondlg"
12950
12951           if test x"$enablestring" = xdisable; then
12952             if test $wxUSE_COMMONDLGS = no; then
12953               result=yes
12954             else
12955               result=no
12956             fi
12957           else
12958             result=$wxUSE_COMMONDLGS
12959           fi
12960
12961           { echo "$as_me:$LINENO: result: $result" >&5
12962 echo "${ECHO_T}$result" >&6; }
12963
12964
12965           enablestring=
12966           defaultval=$wxUSE_ALL_FEATURES
12967           if test -z "$defaultval"; then
12968               if test x"$enablestring" = xdisable; then
12969                   defaultval=yes
12970               else
12971                   defaultval=no
12972               fi
12973           fi
12974
12975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12976 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12977           # Check whether --enable-aboutdlg was given.
12978 if test "${enable_aboutdlg+set}" = set; then
12979   enableval=$enable_aboutdlg;
12980                           if test "$enableval" = yes; then
12981                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12982                           else
12983                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12984                           fi
12985
12986 else
12987
12988                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12989
12990 fi
12991
12992
12993           eval "$wx_cv_use_aboutdlg"
12994
12995           if test x"$enablestring" = xdisable; then
12996             if test $wxUSE_ABOUTDLG = no; then
12997               result=yes
12998             else
12999               result=no
13000             fi
13001           else
13002             result=$wxUSE_ABOUTDLG
13003           fi
13004
13005           { echo "$as_me:$LINENO: result: $result" >&5
13006 echo "${ECHO_T}$result" >&6; }
13007
13008
13009           enablestring=
13010           defaultval=$wxUSE_ALL_FEATURES
13011           if test -z "$defaultval"; then
13012               if test x"$enablestring" = xdisable; then
13013                   defaultval=yes
13014               else
13015                   defaultval=no
13016               fi
13017           fi
13018
13019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13020 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13021           # Check whether --enable-choicedlg was given.
13022 if test "${enable_choicedlg+set}" = set; then
13023   enableval=$enable_choicedlg;
13024                           if test "$enableval" = yes; then
13025                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13026                           else
13027                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13028                           fi
13029
13030 else
13031
13032                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13033
13034 fi
13035
13036
13037           eval "$wx_cv_use_choicedlg"
13038
13039           if test x"$enablestring" = xdisable; then
13040             if test $wxUSE_CHOICEDLG = no; then
13041               result=yes
13042             else
13043               result=no
13044             fi
13045           else
13046             result=$wxUSE_CHOICEDLG
13047           fi
13048
13049           { echo "$as_me:$LINENO: result: $result" >&5
13050 echo "${ECHO_T}$result" >&6; }
13051
13052
13053           enablestring=
13054           defaultval=$wxUSE_ALL_FEATURES
13055           if test -z "$defaultval"; then
13056               if test x"$enablestring" = xdisable; then
13057                   defaultval=yes
13058               else
13059                   defaultval=no
13060               fi
13061           fi
13062
13063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13064 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13065           # Check whether --enable-coldlg was given.
13066 if test "${enable_coldlg+set}" = set; then
13067   enableval=$enable_coldlg;
13068                           if test "$enableval" = yes; then
13069                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13070                           else
13071                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13072                           fi
13073
13074 else
13075
13076                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13077
13078 fi
13079
13080
13081           eval "$wx_cv_use_coldlg"
13082
13083           if test x"$enablestring" = xdisable; then
13084             if test $wxUSE_COLOURDLG = no; then
13085               result=yes
13086             else
13087               result=no
13088             fi
13089           else
13090             result=$wxUSE_COLOURDLG
13091           fi
13092
13093           { echo "$as_me:$LINENO: result: $result" >&5
13094 echo "${ECHO_T}$result" >&6; }
13095
13096
13097           enablestring=
13098           defaultval=$wxUSE_ALL_FEATURES
13099           if test -z "$defaultval"; then
13100               if test x"$enablestring" = xdisable; then
13101                   defaultval=yes
13102               else
13103                   defaultval=no
13104               fi
13105           fi
13106
13107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13108 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13109           # Check whether --enable-filedlg was given.
13110 if test "${enable_filedlg+set}" = set; then
13111   enableval=$enable_filedlg;
13112                           if test "$enableval" = yes; then
13113                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13114                           else
13115                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13116                           fi
13117
13118 else
13119
13120                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13121
13122 fi
13123
13124
13125           eval "$wx_cv_use_filedlg"
13126
13127           if test x"$enablestring" = xdisable; then
13128             if test $wxUSE_FILEDLG = no; then
13129               result=yes
13130             else
13131               result=no
13132             fi
13133           else
13134             result=$wxUSE_FILEDLG
13135           fi
13136
13137           { echo "$as_me:$LINENO: result: $result" >&5
13138 echo "${ECHO_T}$result" >&6; }
13139
13140
13141           enablestring=
13142           defaultval=$wxUSE_ALL_FEATURES
13143           if test -z "$defaultval"; then
13144               if test x"$enablestring" = xdisable; then
13145                   defaultval=yes
13146               else
13147                   defaultval=no
13148               fi
13149           fi
13150
13151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13152 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13153           # Check whether --enable-finddlg was given.
13154 if test "${enable_finddlg+set}" = set; then
13155   enableval=$enable_finddlg;
13156                           if test "$enableval" = yes; then
13157                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13158                           else
13159                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13160                           fi
13161
13162 else
13163
13164                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13165
13166 fi
13167
13168
13169           eval "$wx_cv_use_finddlg"
13170
13171           if test x"$enablestring" = xdisable; then
13172             if test $wxUSE_FINDREPLDLG = no; then
13173               result=yes
13174             else
13175               result=no
13176             fi
13177           else
13178             result=$wxUSE_FINDREPLDLG
13179           fi
13180
13181           { echo "$as_me:$LINENO: result: $result" >&5
13182 echo "${ECHO_T}$result" >&6; }
13183
13184
13185           enablestring=
13186           defaultval=$wxUSE_ALL_FEATURES
13187           if test -z "$defaultval"; then
13188               if test x"$enablestring" = xdisable; then
13189                   defaultval=yes
13190               else
13191                   defaultval=no
13192               fi
13193           fi
13194
13195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13196 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13197           # Check whether --enable-fontdlg was given.
13198 if test "${enable_fontdlg+set}" = set; then
13199   enableval=$enable_fontdlg;
13200                           if test "$enableval" = yes; then
13201                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13202                           else
13203                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13204                           fi
13205
13206 else
13207
13208                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13209
13210 fi
13211
13212
13213           eval "$wx_cv_use_fontdlg"
13214
13215           if test x"$enablestring" = xdisable; then
13216             if test $wxUSE_FONTDLG = no; then
13217               result=yes
13218             else
13219               result=no
13220             fi
13221           else
13222             result=$wxUSE_FONTDLG
13223           fi
13224
13225           { echo "$as_me:$LINENO: result: $result" >&5
13226 echo "${ECHO_T}$result" >&6; }
13227
13228
13229           enablestring=
13230           defaultval=$wxUSE_ALL_FEATURES
13231           if test -z "$defaultval"; then
13232               if test x"$enablestring" = xdisable; then
13233                   defaultval=yes
13234               else
13235                   defaultval=no
13236               fi
13237           fi
13238
13239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13240 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13241           # Check whether --enable-dirdlg was given.
13242 if test "${enable_dirdlg+set}" = set; then
13243   enableval=$enable_dirdlg;
13244                           if test "$enableval" = yes; then
13245                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13246                           else
13247                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13248                           fi
13249
13250 else
13251
13252                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13253
13254 fi
13255
13256
13257           eval "$wx_cv_use_dirdlg"
13258
13259           if test x"$enablestring" = xdisable; then
13260             if test $wxUSE_DIRDLG = no; then
13261               result=yes
13262             else
13263               result=no
13264             fi
13265           else
13266             result=$wxUSE_DIRDLG
13267           fi
13268
13269           { echo "$as_me:$LINENO: result: $result" >&5
13270 echo "${ECHO_T}$result" >&6; }
13271
13272
13273           enablestring=
13274           defaultval=$wxUSE_ALL_FEATURES
13275           if test -z "$defaultval"; then
13276               if test x"$enablestring" = xdisable; then
13277                   defaultval=yes
13278               else
13279                   defaultval=no
13280               fi
13281           fi
13282
13283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13284 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13285           # Check whether --enable-msgdlg was given.
13286 if test "${enable_msgdlg+set}" = set; then
13287   enableval=$enable_msgdlg;
13288                           if test "$enableval" = yes; then
13289                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13290                           else
13291                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13292                           fi
13293
13294 else
13295
13296                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13297
13298 fi
13299
13300
13301           eval "$wx_cv_use_msgdlg"
13302
13303           if test x"$enablestring" = xdisable; then
13304             if test $wxUSE_MSGDLG = no; then
13305               result=yes
13306             else
13307               result=no
13308             fi
13309           else
13310             result=$wxUSE_MSGDLG
13311           fi
13312
13313           { echo "$as_me:$LINENO: result: $result" >&5
13314 echo "${ECHO_T}$result" >&6; }
13315
13316
13317           enablestring=
13318           defaultval=$wxUSE_ALL_FEATURES
13319           if test -z "$defaultval"; then
13320               if test x"$enablestring" = xdisable; then
13321                   defaultval=yes
13322               else
13323                   defaultval=no
13324               fi
13325           fi
13326
13327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13328 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13329           # Check whether --enable-numberdlg was given.
13330 if test "${enable_numberdlg+set}" = set; then
13331   enableval=$enable_numberdlg;
13332                           if test "$enableval" = yes; then
13333                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13334                           else
13335                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13336                           fi
13337
13338 else
13339
13340                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13341
13342 fi
13343
13344
13345           eval "$wx_cv_use_numberdlg"
13346
13347           if test x"$enablestring" = xdisable; then
13348             if test $wxUSE_NUMBERDLG = no; then
13349               result=yes
13350             else
13351               result=no
13352             fi
13353           else
13354             result=$wxUSE_NUMBERDLG
13355           fi
13356
13357           { echo "$as_me:$LINENO: result: $result" >&5
13358 echo "${ECHO_T}$result" >&6; }
13359
13360
13361           enablestring=
13362           defaultval=$wxUSE_ALL_FEATURES
13363           if test -z "$defaultval"; then
13364               if test x"$enablestring" = xdisable; then
13365                   defaultval=yes
13366               else
13367                   defaultval=no
13368               fi
13369           fi
13370
13371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13372 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13373           # Check whether --enable-splash was given.
13374 if test "${enable_splash+set}" = set; then
13375   enableval=$enable_splash;
13376                           if test "$enableval" = yes; then
13377                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13378                           else
13379                             wx_cv_use_splash='wxUSE_SPLASH=no'
13380                           fi
13381
13382 else
13383
13384                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13385
13386 fi
13387
13388
13389           eval "$wx_cv_use_splash"
13390
13391           if test x"$enablestring" = xdisable; then
13392             if test $wxUSE_SPLASH = no; then
13393               result=yes
13394             else
13395               result=no
13396             fi
13397           else
13398             result=$wxUSE_SPLASH
13399           fi
13400
13401           { echo "$as_me:$LINENO: result: $result" >&5
13402 echo "${ECHO_T}$result" >&6; }
13403
13404
13405           enablestring=
13406           defaultval=$wxUSE_ALL_FEATURES
13407           if test -z "$defaultval"; then
13408               if test x"$enablestring" = xdisable; then
13409                   defaultval=yes
13410               else
13411                   defaultval=no
13412               fi
13413           fi
13414
13415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13416 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13417           # Check whether --enable-textdlg was given.
13418 if test "${enable_textdlg+set}" = set; then
13419   enableval=$enable_textdlg;
13420                           if test "$enableval" = yes; then
13421                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13422                           else
13423                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13424                           fi
13425
13426 else
13427
13428                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13429
13430 fi
13431
13432
13433           eval "$wx_cv_use_textdlg"
13434
13435           if test x"$enablestring" = xdisable; then
13436             if test $wxUSE_TEXTDLG = no; then
13437               result=yes
13438             else
13439               result=no
13440             fi
13441           else
13442             result=$wxUSE_TEXTDLG
13443           fi
13444
13445           { echo "$as_me:$LINENO: result: $result" >&5
13446 echo "${ECHO_T}$result" >&6; }
13447
13448
13449           enablestring=
13450           defaultval=$wxUSE_ALL_FEATURES
13451           if test -z "$defaultval"; then
13452               if test x"$enablestring" = xdisable; then
13453                   defaultval=yes
13454               else
13455                   defaultval=no
13456               fi
13457           fi
13458
13459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13460 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13461           # Check whether --enable-tipdlg was given.
13462 if test "${enable_tipdlg+set}" = set; then
13463   enableval=$enable_tipdlg;
13464                           if test "$enableval" = yes; then
13465                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13466                           else
13467                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13468                           fi
13469
13470 else
13471
13472                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13473
13474 fi
13475
13476
13477           eval "$wx_cv_use_tipdlg"
13478
13479           if test x"$enablestring" = xdisable; then
13480             if test $wxUSE_STARTUP_TIPS = no; then
13481               result=yes
13482             else
13483               result=no
13484             fi
13485           else
13486             result=$wxUSE_STARTUP_TIPS
13487           fi
13488
13489           { echo "$as_me:$LINENO: result: $result" >&5
13490 echo "${ECHO_T}$result" >&6; }
13491
13492
13493           enablestring=
13494           defaultval=$wxUSE_ALL_FEATURES
13495           if test -z "$defaultval"; then
13496               if test x"$enablestring" = xdisable; then
13497                   defaultval=yes
13498               else
13499                   defaultval=no
13500               fi
13501           fi
13502
13503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13504 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13505           # Check whether --enable-progressdlg was given.
13506 if test "${enable_progressdlg+set}" = set; then
13507   enableval=$enable_progressdlg;
13508                           if test "$enableval" = yes; then
13509                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13510                           else
13511                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13512                           fi
13513
13514 else
13515
13516                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13517
13518 fi
13519
13520
13521           eval "$wx_cv_use_progressdlg"
13522
13523           if test x"$enablestring" = xdisable; then
13524             if test $wxUSE_PROGRESSDLG = no; then
13525               result=yes
13526             else
13527               result=no
13528             fi
13529           else
13530             result=$wxUSE_PROGRESSDLG
13531           fi
13532
13533           { echo "$as_me:$LINENO: result: $result" >&5
13534 echo "${ECHO_T}$result" >&6; }
13535
13536
13537           enablestring=
13538           defaultval=$wxUSE_ALL_FEATURES
13539           if test -z "$defaultval"; then
13540               if test x"$enablestring" = xdisable; then
13541                   defaultval=yes
13542               else
13543                   defaultval=no
13544               fi
13545           fi
13546
13547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13548 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13549           # Check whether --enable-wizarddlg was given.
13550 if test "${enable_wizarddlg+set}" = set; then
13551   enableval=$enable_wizarddlg;
13552                           if test "$enableval" = yes; then
13553                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13554                           else
13555                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13556                           fi
13557
13558 else
13559
13560                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13561
13562 fi
13563
13564
13565           eval "$wx_cv_use_wizarddlg"
13566
13567           if test x"$enablestring" = xdisable; then
13568             if test $wxUSE_WIZARDDLG = no; then
13569               result=yes
13570             else
13571               result=no
13572             fi
13573           else
13574             result=$wxUSE_WIZARDDLG
13575           fi
13576
13577           { echo "$as_me:$LINENO: result: $result" >&5
13578 echo "${ECHO_T}$result" >&6; }
13579
13580
13581
13582
13583           enablestring=
13584           defaultval=$wxUSE_ALL_FEATURES
13585           if test -z "$defaultval"; then
13586               if test x"$enablestring" = xdisable; then
13587                   defaultval=yes
13588               else
13589                   defaultval=no
13590               fi
13591           fi
13592
13593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13594 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13595           # Check whether --enable-menus was given.
13596 if test "${enable_menus+set}" = set; then
13597   enableval=$enable_menus;
13598                           if test "$enableval" = yes; then
13599                             wx_cv_use_menus='wxUSE_MENUS=yes'
13600                           else
13601                             wx_cv_use_menus='wxUSE_MENUS=no'
13602                           fi
13603
13604 else
13605
13606                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13607
13608 fi
13609
13610
13611           eval "$wx_cv_use_menus"
13612
13613           if test x"$enablestring" = xdisable; then
13614             if test $wxUSE_MENUS = no; then
13615               result=yes
13616             else
13617               result=no
13618             fi
13619           else
13620             result=$wxUSE_MENUS
13621           fi
13622
13623           { echo "$as_me:$LINENO: result: $result" >&5
13624 echo "${ECHO_T}$result" >&6; }
13625
13626
13627           enablestring=
13628           defaultval=$wxUSE_ALL_FEATURES
13629           if test -z "$defaultval"; then
13630               if test x"$enablestring" = xdisable; then
13631                   defaultval=yes
13632               else
13633                   defaultval=no
13634               fi
13635           fi
13636
13637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13638 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13639           # Check whether --enable-miniframe was given.
13640 if test "${enable_miniframe+set}" = set; then
13641   enableval=$enable_miniframe;
13642                           if test "$enableval" = yes; then
13643                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13644                           else
13645                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13646                           fi
13647
13648 else
13649
13650                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13651
13652 fi
13653
13654
13655           eval "$wx_cv_use_miniframe"
13656
13657           if test x"$enablestring" = xdisable; then
13658             if test $wxUSE_MINIFRAME = no; then
13659               result=yes
13660             else
13661               result=no
13662             fi
13663           else
13664             result=$wxUSE_MINIFRAME
13665           fi
13666
13667           { echo "$as_me:$LINENO: result: $result" >&5
13668 echo "${ECHO_T}$result" >&6; }
13669
13670
13671           enablestring=
13672           defaultval=$wxUSE_ALL_FEATURES
13673           if test -z "$defaultval"; then
13674               if test x"$enablestring" = xdisable; then
13675                   defaultval=yes
13676               else
13677                   defaultval=no
13678               fi
13679           fi
13680
13681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13682 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13683           # Check whether --enable-tooltips was given.
13684 if test "${enable_tooltips+set}" = set; then
13685   enableval=$enable_tooltips;
13686                           if test "$enableval" = yes; then
13687                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13688                           else
13689                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13690                           fi
13691
13692 else
13693
13694                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13695
13696 fi
13697
13698
13699           eval "$wx_cv_use_tooltips"
13700
13701           if test x"$enablestring" = xdisable; then
13702             if test $wxUSE_TOOLTIPS = no; then
13703               result=yes
13704             else
13705               result=no
13706             fi
13707           else
13708             result=$wxUSE_TOOLTIPS
13709           fi
13710
13711           { echo "$as_me:$LINENO: result: $result" >&5
13712 echo "${ECHO_T}$result" >&6; }
13713
13714
13715           enablestring=
13716           defaultval=$wxUSE_ALL_FEATURES
13717           if test -z "$defaultval"; then
13718               if test x"$enablestring" = xdisable; then
13719                   defaultval=yes
13720               else
13721                   defaultval=no
13722               fi
13723           fi
13724
13725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13726 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13727           # Check whether --enable-splines was given.
13728 if test "${enable_splines+set}" = set; then
13729   enableval=$enable_splines;
13730                           if test "$enableval" = yes; then
13731                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13732                           else
13733                             wx_cv_use_splines='wxUSE_SPLINES=no'
13734                           fi
13735
13736 else
13737
13738                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13739
13740 fi
13741
13742
13743           eval "$wx_cv_use_splines"
13744
13745           if test x"$enablestring" = xdisable; then
13746             if test $wxUSE_SPLINES = no; then
13747               result=yes
13748             else
13749               result=no
13750             fi
13751           else
13752             result=$wxUSE_SPLINES
13753           fi
13754
13755           { echo "$as_me:$LINENO: result: $result" >&5
13756 echo "${ECHO_T}$result" >&6; }
13757
13758
13759           enablestring=
13760           defaultval=$wxUSE_ALL_FEATURES
13761           if test -z "$defaultval"; then
13762               if test x"$enablestring" = xdisable; then
13763                   defaultval=yes
13764               else
13765                   defaultval=no
13766               fi
13767           fi
13768
13769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13770 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13771           # Check whether --enable-mousewheel was given.
13772 if test "${enable_mousewheel+set}" = set; then
13773   enableval=$enable_mousewheel;
13774                           if test "$enableval" = yes; then
13775                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13776                           else
13777                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13778                           fi
13779
13780 else
13781
13782                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13783
13784 fi
13785
13786
13787           eval "$wx_cv_use_mousewheel"
13788
13789           if test x"$enablestring" = xdisable; then
13790             if test $wxUSE_MOUSEWHEEL = no; then
13791               result=yes
13792             else
13793               result=no
13794             fi
13795           else
13796             result=$wxUSE_MOUSEWHEEL
13797           fi
13798
13799           { echo "$as_me:$LINENO: result: $result" >&5
13800 echo "${ECHO_T}$result" >&6; }
13801
13802
13803           enablestring=
13804           defaultval=$wxUSE_ALL_FEATURES
13805           if test -z "$defaultval"; then
13806               if test x"$enablestring" = xdisable; then
13807                   defaultval=yes
13808               else
13809                   defaultval=no
13810               fi
13811           fi
13812
13813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13814 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13815           # Check whether --enable-validators was given.
13816 if test "${enable_validators+set}" = set; then
13817   enableval=$enable_validators;
13818                           if test "$enableval" = yes; then
13819                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13820                           else
13821                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13822                           fi
13823
13824 else
13825
13826                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13827
13828 fi
13829
13830
13831           eval "$wx_cv_use_validators"
13832
13833           if test x"$enablestring" = xdisable; then
13834             if test $wxUSE_VALIDATORS = no; then
13835               result=yes
13836             else
13837               result=no
13838             fi
13839           else
13840             result=$wxUSE_VALIDATORS
13841           fi
13842
13843           { echo "$as_me:$LINENO: result: $result" >&5
13844 echo "${ECHO_T}$result" >&6; }
13845
13846
13847           enablestring=
13848           defaultval=$wxUSE_ALL_FEATURES
13849           if test -z "$defaultval"; then
13850               if test x"$enablestring" = xdisable; then
13851                   defaultval=yes
13852               else
13853                   defaultval=no
13854               fi
13855           fi
13856
13857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13858 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13859           # Check whether --enable-busyinfo was given.
13860 if test "${enable_busyinfo+set}" = set; then
13861   enableval=$enable_busyinfo;
13862                           if test "$enableval" = yes; then
13863                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13864                           else
13865                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13866                           fi
13867
13868 else
13869
13870                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13871
13872 fi
13873
13874
13875           eval "$wx_cv_use_busyinfo"
13876
13877           if test x"$enablestring" = xdisable; then
13878             if test $wxUSE_BUSYINFO = no; then
13879               result=yes
13880             else
13881               result=no
13882             fi
13883           else
13884             result=$wxUSE_BUSYINFO
13885           fi
13886
13887           { echo "$as_me:$LINENO: result: $result" >&5
13888 echo "${ECHO_T}$result" >&6; }
13889
13890
13891           enablestring=
13892           defaultval=$wxUSE_ALL_FEATURES
13893           if test -z "$defaultval"; then
13894               if test x"$enablestring" = xdisable; then
13895                   defaultval=yes
13896               else
13897                   defaultval=no
13898               fi
13899           fi
13900
13901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
13902 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
13903           # Check whether --enable-hotkey was given.
13904 if test "${enable_hotkey+set}" = set; then
13905   enableval=$enable_hotkey;
13906                           if test "$enableval" = yes; then
13907                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
13908                           else
13909                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
13910                           fi
13911
13912 else
13913
13914                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
13915
13916 fi
13917
13918
13919           eval "$wx_cv_use_hotkey"
13920
13921           if test x"$enablestring" = xdisable; then
13922             if test $wxUSE_HOTKEY = no; then
13923               result=yes
13924             else
13925               result=no
13926             fi
13927           else
13928             result=$wxUSE_HOTKEY
13929           fi
13930
13931           { echo "$as_me:$LINENO: result: $result" >&5
13932 echo "${ECHO_T}$result" >&6; }
13933
13934
13935           enablestring=
13936           defaultval=$wxUSE_ALL_FEATURES
13937           if test -z "$defaultval"; then
13938               if test x"$enablestring" = xdisable; then
13939                   defaultval=yes
13940               else
13941                   defaultval=no
13942               fi
13943           fi
13944
13945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13946 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13947           # Check whether --enable-joystick was given.
13948 if test "${enable_joystick+set}" = set; then
13949   enableval=$enable_joystick;
13950                           if test "$enableval" = yes; then
13951                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13952                           else
13953                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13954                           fi
13955
13956 else
13957
13958                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13959
13960 fi
13961
13962
13963           eval "$wx_cv_use_joystick"
13964
13965           if test x"$enablestring" = xdisable; then
13966             if test $wxUSE_JOYSTICK = no; then
13967               result=yes
13968             else
13969               result=no
13970             fi
13971           else
13972             result=$wxUSE_JOYSTICK
13973           fi
13974
13975           { echo "$as_me:$LINENO: result: $result" >&5
13976 echo "${ECHO_T}$result" >&6; }
13977
13978
13979           enablestring=
13980           defaultval=$wxUSE_ALL_FEATURES
13981           if test -z "$defaultval"; then
13982               if test x"$enablestring" = xdisable; then
13983                   defaultval=yes
13984               else
13985                   defaultval=no
13986               fi
13987           fi
13988
13989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13990 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13991           # Check whether --enable-metafile was given.
13992 if test "${enable_metafile+set}" = set; then
13993   enableval=$enable_metafile;
13994                           if test "$enableval" = yes; then
13995                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13996                           else
13997                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13998                           fi
13999
14000 else
14001
14002                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14003
14004 fi
14005
14006
14007           eval "$wx_cv_use_metafile"
14008
14009           if test x"$enablestring" = xdisable; then
14010             if test $wxUSE_METAFILE = no; then
14011               result=yes
14012             else
14013               result=no
14014             fi
14015           else
14016             result=$wxUSE_METAFILE
14017           fi
14018
14019           { echo "$as_me:$LINENO: result: $result" >&5
14020 echo "${ECHO_T}$result" >&6; }
14021
14022
14023           enablestring=
14024           defaultval=$wxUSE_ALL_FEATURES
14025           if test -z "$defaultval"; then
14026               if test x"$enablestring" = xdisable; then
14027                   defaultval=yes
14028               else
14029                   defaultval=no
14030               fi
14031           fi
14032
14033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14034 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14035           # Check whether --enable-dragimage was given.
14036 if test "${enable_dragimage+set}" = set; then
14037   enableval=$enable_dragimage;
14038                           if test "$enableval" = yes; then
14039                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14040                           else
14041                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14042                           fi
14043
14044 else
14045
14046                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14047
14048 fi
14049
14050
14051           eval "$wx_cv_use_dragimage"
14052
14053           if test x"$enablestring" = xdisable; then
14054             if test $wxUSE_DRAGIMAGE = no; then
14055               result=yes
14056             else
14057               result=no
14058             fi
14059           else
14060             result=$wxUSE_DRAGIMAGE
14061           fi
14062
14063           { echo "$as_me:$LINENO: result: $result" >&5
14064 echo "${ECHO_T}$result" >&6; }
14065
14066
14067           enablestring=
14068           defaultval=$wxUSE_ALL_FEATURES
14069           if test -z "$defaultval"; then
14070               if test x"$enablestring" = xdisable; then
14071                   defaultval=yes
14072               else
14073                   defaultval=no
14074               fi
14075           fi
14076
14077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14078 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14079           # Check whether --enable-accessibility was given.
14080 if test "${enable_accessibility+set}" = set; then
14081   enableval=$enable_accessibility;
14082                           if test "$enableval" = yes; then
14083                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14084                           else
14085                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14086                           fi
14087
14088 else
14089
14090                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14091
14092 fi
14093
14094
14095           eval "$wx_cv_use_accessibility"
14096
14097           if test x"$enablestring" = xdisable; then
14098             if test $wxUSE_ACCESSIBILITY = no; then
14099               result=yes
14100             else
14101               result=no
14102             fi
14103           else
14104             result=$wxUSE_ACCESSIBILITY
14105           fi
14106
14107           { echo "$as_me:$LINENO: result: $result" >&5
14108 echo "${ECHO_T}$result" >&6; }
14109
14110
14111           enablestring=
14112           defaultval=$wxUSE_ALL_FEATURES
14113           if test -z "$defaultval"; then
14114               if test x"$enablestring" = xdisable; then
14115                   defaultval=yes
14116               else
14117                   defaultval=no
14118               fi
14119           fi
14120
14121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14122 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14123           # Check whether --enable-uiactionsim was given.
14124 if test "${enable_uiactionsim+set}" = set; then
14125   enableval=$enable_uiactionsim;
14126                           if test "$enableval" = yes; then
14127                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14128                           else
14129                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14130                           fi
14131
14132 else
14133
14134                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14135
14136 fi
14137
14138
14139           eval "$wx_cv_use_uiactionsim"
14140
14141           if test x"$enablestring" = xdisable; then
14142             if test $wxUSE_UIACTIONSIMULATOR = no; then
14143               result=yes
14144             else
14145               result=no
14146             fi
14147           else
14148             result=$wxUSE_UIACTIONSIMULATOR
14149           fi
14150
14151           { echo "$as_me:$LINENO: result: $result" >&5
14152 echo "${ECHO_T}$result" >&6; }
14153
14154
14155           enablestring=
14156           defaultval=$wxUSE_ALL_FEATURES
14157           if test -z "$defaultval"; then
14158               if test x"$enablestring" = xdisable; then
14159                   defaultval=yes
14160               else
14161                   defaultval=no
14162               fi
14163           fi
14164
14165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14166 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14167           # Check whether --enable-dctransform was given.
14168 if test "${enable_dctransform+set}" = set; then
14169   enableval=$enable_dctransform;
14170                           if test "$enableval" = yes; then
14171                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14172                           else
14173                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14174                           fi
14175
14176 else
14177
14178                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14179
14180 fi
14181
14182
14183           eval "$wx_cv_use_dctransform"
14184
14185           if test x"$enablestring" = xdisable; then
14186             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14187               result=yes
14188             else
14189               result=no
14190             fi
14191           else
14192             result=$wxUSE_DC_TRANSFORM_MATRIX
14193           fi
14194
14195           { echo "$as_me:$LINENO: result: $result" >&5
14196 echo "${ECHO_T}$result" >&6; }
14197
14198
14199           enablestring=
14200           defaultval=$wxUSE_ALL_FEATURES
14201           if test -z "$defaultval"; then
14202               if test x"$enablestring" = xdisable; then
14203                   defaultval=yes
14204               else
14205                   defaultval=no
14206               fi
14207           fi
14208
14209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14210 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14211           # Check whether --enable-webviewwebkit was given.
14212 if test "${enable_webviewwebkit+set}" = set; then
14213   enableval=$enable_webviewwebkit;
14214                           if test "$enableval" = yes; then
14215                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14216                           else
14217                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14218                           fi
14219
14220 else
14221
14222                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14223
14224 fi
14225
14226
14227           eval "$wx_cv_use_webviewwebkit"
14228
14229           if test x"$enablestring" = xdisable; then
14230             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14231               result=yes
14232             else
14233               result=no
14234             fi
14235           else
14236             result=$wxUSE_WEBVIEW_WEBKIT
14237           fi
14238
14239           { echo "$as_me:$LINENO: result: $result" >&5
14240 echo "${ECHO_T}$result" >&6; }
14241
14242
14243
14244
14245           enablestring=
14246           defaultval=$wxUSE_ALL_FEATURES
14247           if test -z "$defaultval"; then
14248               if test x"$enablestring" = xdisable; then
14249                   defaultval=yes
14250               else
14251                   defaultval=no
14252               fi
14253           fi
14254
14255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14256 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14257           # Check whether --enable-palette was given.
14258 if test "${enable_palette+set}" = set; then
14259   enableval=$enable_palette;
14260                           if test "$enableval" = yes; then
14261                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14262                           else
14263                             wx_cv_use_palette='wxUSE_PALETTE=no'
14264                           fi
14265
14266 else
14267
14268                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14269
14270 fi
14271
14272
14273           eval "$wx_cv_use_palette"
14274
14275           if test x"$enablestring" = xdisable; then
14276             if test $wxUSE_PALETTE = no; then
14277               result=yes
14278             else
14279               result=no
14280             fi
14281           else
14282             result=$wxUSE_PALETTE
14283           fi
14284
14285           { echo "$as_me:$LINENO: result: $result" >&5
14286 echo "${ECHO_T}$result" >&6; }
14287
14288
14289           enablestring=
14290           defaultval=$wxUSE_ALL_FEATURES
14291           if test -z "$defaultval"; then
14292               if test x"$enablestring" = xdisable; then
14293                   defaultval=yes
14294               else
14295                   defaultval=no
14296               fi
14297           fi
14298
14299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14300 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14301           # Check whether --enable-image was given.
14302 if test "${enable_image+set}" = set; then
14303   enableval=$enable_image;
14304                           if test "$enableval" = yes; then
14305                             wx_cv_use_image='wxUSE_IMAGE=yes'
14306                           else
14307                             wx_cv_use_image='wxUSE_IMAGE=no'
14308                           fi
14309
14310 else
14311
14312                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14313
14314 fi
14315
14316
14317           eval "$wx_cv_use_image"
14318
14319           if test x"$enablestring" = xdisable; then
14320             if test $wxUSE_IMAGE = no; then
14321               result=yes
14322             else
14323               result=no
14324             fi
14325           else
14326             result=$wxUSE_IMAGE
14327           fi
14328
14329           { echo "$as_me:$LINENO: result: $result" >&5
14330 echo "${ECHO_T}$result" >&6; }
14331
14332
14333           enablestring=
14334           defaultval=$wxUSE_ALL_FEATURES
14335           if test -z "$defaultval"; then
14336               if test x"$enablestring" = xdisable; then
14337                   defaultval=yes
14338               else
14339                   defaultval=no
14340               fi
14341           fi
14342
14343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14344 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14345           # Check whether --enable-gif was given.
14346 if test "${enable_gif+set}" = set; then
14347   enableval=$enable_gif;
14348                           if test "$enableval" = yes; then
14349                             wx_cv_use_gif='wxUSE_GIF=yes'
14350                           else
14351                             wx_cv_use_gif='wxUSE_GIF=no'
14352                           fi
14353
14354 else
14355
14356                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14357
14358 fi
14359
14360
14361           eval "$wx_cv_use_gif"
14362
14363           if test x"$enablestring" = xdisable; then
14364             if test $wxUSE_GIF = no; then
14365               result=yes
14366             else
14367               result=no
14368             fi
14369           else
14370             result=$wxUSE_GIF
14371           fi
14372
14373           { echo "$as_me:$LINENO: result: $result" >&5
14374 echo "${ECHO_T}$result" >&6; }
14375
14376
14377           enablestring=
14378           defaultval=$wxUSE_ALL_FEATURES
14379           if test -z "$defaultval"; then
14380               if test x"$enablestring" = xdisable; then
14381                   defaultval=yes
14382               else
14383                   defaultval=no
14384               fi
14385           fi
14386
14387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14388 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14389           # Check whether --enable-pcx was given.
14390 if test "${enable_pcx+set}" = set; then
14391   enableval=$enable_pcx;
14392                           if test "$enableval" = yes; then
14393                             wx_cv_use_pcx='wxUSE_PCX=yes'
14394                           else
14395                             wx_cv_use_pcx='wxUSE_PCX=no'
14396                           fi
14397
14398 else
14399
14400                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14401
14402 fi
14403
14404
14405           eval "$wx_cv_use_pcx"
14406
14407           if test x"$enablestring" = xdisable; then
14408             if test $wxUSE_PCX = no; then
14409               result=yes
14410             else
14411               result=no
14412             fi
14413           else
14414             result=$wxUSE_PCX
14415           fi
14416
14417           { echo "$as_me:$LINENO: result: $result" >&5
14418 echo "${ECHO_T}$result" >&6; }
14419
14420
14421           enablestring=
14422           defaultval=$wxUSE_ALL_FEATURES
14423           if test -z "$defaultval"; then
14424               if test x"$enablestring" = xdisable; then
14425                   defaultval=yes
14426               else
14427                   defaultval=no
14428               fi
14429           fi
14430
14431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14432 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14433           # Check whether --enable-tga was given.
14434 if test "${enable_tga+set}" = set; then
14435   enableval=$enable_tga;
14436                           if test "$enableval" = yes; then
14437                             wx_cv_use_tga='wxUSE_TGA=yes'
14438                           else
14439                             wx_cv_use_tga='wxUSE_TGA=no'
14440                           fi
14441
14442 else
14443
14444                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14445
14446 fi
14447
14448
14449           eval "$wx_cv_use_tga"
14450
14451           if test x"$enablestring" = xdisable; then
14452             if test $wxUSE_TGA = no; then
14453               result=yes
14454             else
14455               result=no
14456             fi
14457           else
14458             result=$wxUSE_TGA
14459           fi
14460
14461           { echo "$as_me:$LINENO: result: $result" >&5
14462 echo "${ECHO_T}$result" >&6; }
14463
14464
14465           enablestring=
14466           defaultval=$wxUSE_ALL_FEATURES
14467           if test -z "$defaultval"; then
14468               if test x"$enablestring" = xdisable; then
14469                   defaultval=yes
14470               else
14471                   defaultval=no
14472               fi
14473           fi
14474
14475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14476 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14477           # Check whether --enable-iff was given.
14478 if test "${enable_iff+set}" = set; then
14479   enableval=$enable_iff;
14480                           if test "$enableval" = yes; then
14481                             wx_cv_use_iff='wxUSE_IFF=yes'
14482                           else
14483                             wx_cv_use_iff='wxUSE_IFF=no'
14484                           fi
14485
14486 else
14487
14488                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14489
14490 fi
14491
14492
14493           eval "$wx_cv_use_iff"
14494
14495           if test x"$enablestring" = xdisable; then
14496             if test $wxUSE_IFF = no; then
14497               result=yes
14498             else
14499               result=no
14500             fi
14501           else
14502             result=$wxUSE_IFF
14503           fi
14504
14505           { echo "$as_me:$LINENO: result: $result" >&5
14506 echo "${ECHO_T}$result" >&6; }
14507
14508
14509           enablestring=
14510           defaultval=$wxUSE_ALL_FEATURES
14511           if test -z "$defaultval"; then
14512               if test x"$enablestring" = xdisable; then
14513                   defaultval=yes
14514               else
14515                   defaultval=no
14516               fi
14517           fi
14518
14519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14520 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14521           # Check whether --enable-pnm was given.
14522 if test "${enable_pnm+set}" = set; then
14523   enableval=$enable_pnm;
14524                           if test "$enableval" = yes; then
14525                             wx_cv_use_pnm='wxUSE_PNM=yes'
14526                           else
14527                             wx_cv_use_pnm='wxUSE_PNM=no'
14528                           fi
14529
14530 else
14531
14532                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14533
14534 fi
14535
14536
14537           eval "$wx_cv_use_pnm"
14538
14539           if test x"$enablestring" = xdisable; then
14540             if test $wxUSE_PNM = no; then
14541               result=yes
14542             else
14543               result=no
14544             fi
14545           else
14546             result=$wxUSE_PNM
14547           fi
14548
14549           { echo "$as_me:$LINENO: result: $result" >&5
14550 echo "${ECHO_T}$result" >&6; }
14551
14552
14553           enablestring=
14554           defaultval=$wxUSE_ALL_FEATURES
14555           if test -z "$defaultval"; then
14556               if test x"$enablestring" = xdisable; then
14557                   defaultval=yes
14558               else
14559                   defaultval=no
14560               fi
14561           fi
14562
14563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14564 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14565           # Check whether --enable-xpm was given.
14566 if test "${enable_xpm+set}" = set; then
14567   enableval=$enable_xpm;
14568                           if test "$enableval" = yes; then
14569                             wx_cv_use_xpm='wxUSE_XPM=yes'
14570                           else
14571                             wx_cv_use_xpm='wxUSE_XPM=no'
14572                           fi
14573
14574 else
14575
14576                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14577
14578 fi
14579
14580
14581           eval "$wx_cv_use_xpm"
14582
14583           if test x"$enablestring" = xdisable; then
14584             if test $wxUSE_XPM = no; then
14585               result=yes
14586             else
14587               result=no
14588             fi
14589           else
14590             result=$wxUSE_XPM
14591           fi
14592
14593           { echo "$as_me:$LINENO: result: $result" >&5
14594 echo "${ECHO_T}$result" >&6; }
14595
14596
14597           enablestring=
14598           defaultval=$wxUSE_ALL_FEATURES
14599           if test -z "$defaultval"; then
14600               if test x"$enablestring" = xdisable; then
14601                   defaultval=yes
14602               else
14603                   defaultval=no
14604               fi
14605           fi
14606
14607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14608 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14609           # Check whether --enable-ico_cur was given.
14610 if test "${enable_ico_cur+set}" = set; then
14611   enableval=$enable_ico_cur;
14612                           if test "$enableval" = yes; then
14613                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14614                           else
14615                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14616                           fi
14617
14618 else
14619
14620                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14621
14622 fi
14623
14624
14625           eval "$wx_cv_use_ico_cur"
14626
14627           if test x"$enablestring" = xdisable; then
14628             if test $wxUSE_ICO_CUR = no; then
14629               result=yes
14630             else
14631               result=no
14632             fi
14633           else
14634             result=$wxUSE_ICO_CUR
14635           fi
14636
14637           { echo "$as_me:$LINENO: result: $result" >&5
14638 echo "${ECHO_T}$result" >&6; }
14639
14640
14641
14642
14643           enablestring=
14644           defaultval=$wxUSE_ALL_FEATURES
14645           if test -z "$defaultval"; then
14646               if test x"$enablestring" = xdisable; then
14647                   defaultval=yes
14648               else
14649                   defaultval=no
14650               fi
14651           fi
14652
14653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14654 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14655           # Check whether --enable-dccache was given.
14656 if test "${enable_dccache+set}" = set; then
14657   enableval=$enable_dccache;
14658                           if test "$enableval" = yes; then
14659                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14660                           else
14661                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14662                           fi
14663
14664 else
14665
14666                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14667
14668 fi
14669
14670
14671           eval "$wx_cv_use_dccache"
14672
14673           if test x"$enablestring" = xdisable; then
14674             if test $wxUSE_DC_CACHEING = no; then
14675               result=yes
14676             else
14677               result=no
14678             fi
14679           else
14680             result=$wxUSE_DC_CACHEING
14681           fi
14682
14683           { echo "$as_me:$LINENO: result: $result" >&5
14684 echo "${ECHO_T}$result" >&6; }
14685
14686
14687           enablestring=
14688           defaultval=$wxUSE_ALL_FEATURES
14689           if test -z "$defaultval"; then
14690               if test x"$enablestring" = xdisable; then
14691                   defaultval=yes
14692               else
14693                   defaultval=no
14694               fi
14695           fi
14696
14697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14698 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14699           # Check whether --enable-ps-in-msw was given.
14700 if test "${enable_ps_in_msw+set}" = set; then
14701   enableval=$enable_ps_in_msw;
14702                           if test "$enableval" = yes; then
14703                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14704                           else
14705                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14706                           fi
14707
14708 else
14709
14710                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14711
14712 fi
14713
14714
14715           eval "$wx_cv_use_ps_in_msw"
14716
14717           if test x"$enablestring" = xdisable; then
14718             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14719               result=yes
14720             else
14721               result=no
14722             fi
14723           else
14724             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14725           fi
14726
14727           { echo "$as_me:$LINENO: result: $result" >&5
14728 echo "${ECHO_T}$result" >&6; }
14729
14730
14731           enablestring=
14732           defaultval=$wxUSE_ALL_FEATURES
14733           if test -z "$defaultval"; then
14734               if test x"$enablestring" = xdisable; then
14735                   defaultval=yes
14736               else
14737                   defaultval=no
14738               fi
14739           fi
14740
14741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14742 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14743           # Check whether --enable-ownerdrawn was given.
14744 if test "${enable_ownerdrawn+set}" = set; then
14745   enableval=$enable_ownerdrawn;
14746                           if test "$enableval" = yes; then
14747                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14748                           else
14749                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14750                           fi
14751
14752 else
14753
14754                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14755
14756 fi
14757
14758
14759           eval "$wx_cv_use_ownerdrawn"
14760
14761           if test x"$enablestring" = xdisable; then
14762             if test $wxUSE_OWNER_DRAWN = no; then
14763               result=yes
14764             else
14765               result=no
14766             fi
14767           else
14768             result=$wxUSE_OWNER_DRAWN
14769           fi
14770
14771           { echo "$as_me:$LINENO: result: $result" >&5
14772 echo "${ECHO_T}$result" >&6; }
14773
14774
14775           enablestring=
14776           defaultval=$wxUSE_ALL_FEATURES
14777           if test -z "$defaultval"; then
14778               if test x"$enablestring" = xdisable; then
14779                   defaultval=yes
14780               else
14781                   defaultval=no
14782               fi
14783           fi
14784
14785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14786 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14787           # Check whether --enable-uxtheme was given.
14788 if test "${enable_uxtheme+set}" = set; then
14789   enableval=$enable_uxtheme;
14790                           if test "$enableval" = yes; then
14791                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14792                           else
14793                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14794                           fi
14795
14796 else
14797
14798                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14799
14800 fi
14801
14802
14803           eval "$wx_cv_use_uxtheme"
14804
14805           if test x"$enablestring" = xdisable; then
14806             if test $wxUSE_UXTHEME = no; then
14807               result=yes
14808             else
14809               result=no
14810             fi
14811           else
14812             result=$wxUSE_UXTHEME
14813           fi
14814
14815           { echo "$as_me:$LINENO: result: $result" >&5
14816 echo "${ECHO_T}$result" >&6; }
14817
14818
14819           enablestring=
14820           defaultval=$wxUSE_ALL_FEATURES
14821           if test -z "$defaultval"; then
14822               if test x"$enablestring" = xdisable; then
14823                   defaultval=yes
14824               else
14825                   defaultval=no
14826               fi
14827           fi
14828
14829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14830 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14831           # Check whether --enable-wxdib was given.
14832 if test "${enable_wxdib+set}" = set; then
14833   enableval=$enable_wxdib;
14834                           if test "$enableval" = yes; then
14835                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14836                           else
14837                             wx_cv_use_wxdib='wxUSE_DIB=no'
14838                           fi
14839
14840 else
14841
14842                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14843
14844 fi
14845
14846
14847           eval "$wx_cv_use_wxdib"
14848
14849           if test x"$enablestring" = xdisable; then
14850             if test $wxUSE_DIB = no; then
14851               result=yes
14852             else
14853               result=no
14854             fi
14855           else
14856             result=$wxUSE_DIB
14857           fi
14858
14859           { echo "$as_me:$LINENO: result: $result" >&5
14860 echo "${ECHO_T}$result" >&6; }
14861
14862
14863           enablestring=
14864           defaultval=$wxUSE_ALL_FEATURES
14865           if test -z "$defaultval"; then
14866               if test x"$enablestring" = xdisable; then
14867                   defaultval=yes
14868               else
14869                   defaultval=no
14870               fi
14871           fi
14872
14873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
14874 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
14875           # Check whether --enable-webviewie was given.
14876 if test "${enable_webviewie+set}" = set; then
14877   enableval=$enable_webviewie;
14878                           if test "$enableval" = yes; then
14879                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
14880                           else
14881                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
14882                           fi
14883
14884 else
14885
14886                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
14887
14888 fi
14889
14890
14891           eval "$wx_cv_use_webviewie"
14892
14893           if test x"$enablestring" = xdisable; then
14894             if test $wxUSE_WEBVIEW_IE = no; then
14895               result=yes
14896             else
14897               result=no
14898             fi
14899           else
14900             result=$wxUSE_WEBVIEW_IE
14901           fi
14902
14903           { echo "$as_me:$LINENO: result: $result" >&5
14904 echo "${ECHO_T}$result" >&6; }
14905
14906
14907 if test "$wxUSE_MSW" != 1; then
14908     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14909 fi
14910
14911
14912           enablestring=
14913           defaultval=$wxUSE_ALL_FEATURES
14914           if test -z "$defaultval"; then
14915               if test x"$enablestring" = xdisable; then
14916                   defaultval=yes
14917               else
14918                   defaultval=no
14919               fi
14920           fi
14921
14922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14923 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14924           # Check whether --enable-autoidman was given.
14925 if test "${enable_autoidman+set}" = set; then
14926   enableval=$enable_autoidman;
14927                           if test "$enableval" = yes; then
14928                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14929                           else
14930                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14931                           fi
14932
14933 else
14934
14935                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14936
14937 fi
14938
14939
14940           eval "$wx_cv_use_autoidman"
14941
14942           if test x"$enablestring" = xdisable; then
14943             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14944               result=yes
14945             else
14946               result=no
14947             fi
14948           else
14949             result=$wxUSE_AUTOID_MANAGEMENT
14950           fi
14951
14952           { echo "$as_me:$LINENO: result: $result" >&5
14953 echo "${ECHO_T}$result" >&6; }
14954
14955
14956 fi
14957
14958
14959 cat >confcache <<\_ACEOF
14960 # This file is a shell script that caches the results of configure
14961 # tests run on this system so they can be shared between configure
14962 # scripts and configure runs, see configure's option --config-cache.
14963 # It is not useful on other systems.  If it contains results you don't
14964 # want to keep, you may remove or edit it.
14965 #
14966 # config.status only pays attention to the cache file if you give it
14967 # the --recheck option to rerun configure.
14968 #
14969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14971 # following values.
14972
14973 _ACEOF
14974
14975 # The following way of writing the cache mishandles newlines in values,
14976 # but we know of no workaround that is simple, portable, and efficient.
14977 # So, we kill variables containing newlines.
14978 # Ultrix sh set writes to stderr and can't be redirected directly,
14979 # and sets the high bit in the cache file unless we assign to the vars.
14980 (
14981   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14982     eval ac_val=\$$ac_var
14983     case $ac_val in #(
14984     *${as_nl}*)
14985       case $ac_var in #(
14986       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14987 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14988       esac
14989       case $ac_var in #(
14990       _ | IFS | as_nl) ;; #(
14991       *) $as_unset $ac_var ;;
14992       esac ;;
14993     esac
14994   done
14995
14996   (set) 2>&1 |
14997     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14998     *${as_nl}ac_space=\ *)
14999       # `set' does not quote correctly, so add quotes (double-quote
15000       # substitution turns \\\\ into \\, and sed turns \\ into \).
15001       sed -n \
15002         "s/'/'\\\\''/g;
15003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15004       ;; #(
15005     *)
15006       # `set' quotes correctly as required by POSIX, so do not add quotes.
15007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15008       ;;
15009     esac |
15010     sort
15011 ) |
15012   sed '
15013      /^ac_cv_env_/b end
15014      t clear
15015      :clear
15016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15017      t end
15018      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15019      :end' >>confcache
15020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15021   if test -w "$cache_file"; then
15022     test "x$cache_file" != "x/dev/null" &&
15023       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15024 echo "$as_me: updating cache $cache_file" >&6;}
15025     cat confcache >$cache_file
15026   else
15027     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15028 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15029   fi
15030 fi
15031 rm -f confcache
15032
15033 CFLAGS=${CFLAGS:=}
15034 ac_ext=c
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15039 if test -n "$ac_tool_prefix"; then
15040   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15044 if test "${ac_cv_prog_CC+set}" = set; then
15045   echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047   if test -n "$CC"; then
15048   ac_cv_prog_CC="$CC" # Let the user override the test.
15049 else
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15052 do
15053   IFS=$as_save_IFS
15054   test -z "$as_dir" && as_dir=.
15055   for ac_exec_ext in '' $ac_executable_extensions; do
15056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15057     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15059     break 2
15060   fi
15061 done
15062 done
15063 IFS=$as_save_IFS
15064
15065 fi
15066 fi
15067 CC=$ac_cv_prog_CC
15068 if test -n "$CC"; then
15069   { echo "$as_me:$LINENO: result: $CC" >&5
15070 echo "${ECHO_T}$CC" >&6; }
15071 else
15072   { echo "$as_me:$LINENO: result: no" >&5
15073 echo "${ECHO_T}no" >&6; }
15074 fi
15075
15076
15077 fi
15078 if test -z "$ac_cv_prog_CC"; then
15079   ac_ct_CC=$CC
15080   # Extract the first word of "gcc", so it can be a program name with args.
15081 set dummy gcc; ac_word=$2
15082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   if test -n "$ac_ct_CC"; then
15088   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15089 else
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15092 do
15093   IFS=$as_save_IFS
15094   test -z "$as_dir" && as_dir=.
15095   for ac_exec_ext in '' $ac_executable_extensions; do
15096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15097     ac_cv_prog_ac_ct_CC="gcc"
15098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15099     break 2
15100   fi
15101 done
15102 done
15103 IFS=$as_save_IFS
15104
15105 fi
15106 fi
15107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15108 if test -n "$ac_ct_CC"; then
15109   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15110 echo "${ECHO_T}$ac_ct_CC" >&6; }
15111 else
15112   { echo "$as_me:$LINENO: result: no" >&5
15113 echo "${ECHO_T}no" >&6; }
15114 fi
15115
15116   if test "x$ac_ct_CC" = x; then
15117     CC=""
15118   else
15119     case $cross_compiling:$ac_tool_warned in
15120 yes:)
15121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15122 whose name does not start with the host triplet.  If you think this
15123 configuration is useful to you, please write to autoconf@gnu.org." >&5
15124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15125 whose name does not start with the host triplet.  If you think this
15126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15127 ac_tool_warned=yes ;;
15128 esac
15129     CC=$ac_ct_CC
15130   fi
15131 else
15132   CC="$ac_cv_prog_CC"
15133 fi
15134
15135 if test -z "$CC"; then
15136           if test -n "$ac_tool_prefix"; then
15137     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15138 set dummy ${ac_tool_prefix}cc; ac_word=$2
15139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15141 if test "${ac_cv_prog_CC+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   if test -n "$CC"; then
15145   ac_cv_prog_CC="$CC" # Let the user override the test.
15146 else
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15149 do
15150   IFS=$as_save_IFS
15151   test -z "$as_dir" && as_dir=.
15152   for ac_exec_ext in '' $ac_executable_extensions; do
15153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15154     ac_cv_prog_CC="${ac_tool_prefix}cc"
15155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15156     break 2
15157   fi
15158 done
15159 done
15160 IFS=$as_save_IFS
15161
15162 fi
15163 fi
15164 CC=$ac_cv_prog_CC
15165 if test -n "$CC"; then
15166   { echo "$as_me:$LINENO: result: $CC" >&5
15167 echo "${ECHO_T}$CC" >&6; }
15168 else
15169   { echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6; }
15171 fi
15172
15173
15174   fi
15175 fi
15176 if test -z "$CC"; then
15177   # Extract the first word of "cc", so it can be a program name with args.
15178 set dummy cc; ac_word=$2
15179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15181 if test "${ac_cv_prog_CC+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   if test -n "$CC"; then
15185   ac_cv_prog_CC="$CC" # Let the user override the test.
15186 else
15187   ac_prog_rejected=no
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15190 do
15191   IFS=$as_save_IFS
15192   test -z "$as_dir" && as_dir=.
15193   for ac_exec_ext in '' $ac_executable_extensions; do
15194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15195     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15196        ac_prog_rejected=yes
15197        continue
15198      fi
15199     ac_cv_prog_CC="cc"
15200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15201     break 2
15202   fi
15203 done
15204 done
15205 IFS=$as_save_IFS
15206
15207 if test $ac_prog_rejected = yes; then
15208   # We found a bogon in the path, so make sure we never use it.
15209   set dummy $ac_cv_prog_CC
15210   shift
15211   if test $# != 0; then
15212     # We chose a different compiler from the bogus one.
15213     # However, it has the same basename, so the bogon will be chosen
15214     # first if we set CC to just the basename; use the full file name.
15215     shift
15216     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15217   fi
15218 fi
15219 fi
15220 fi
15221 CC=$ac_cv_prog_CC
15222 if test -n "$CC"; then
15223   { echo "$as_me:$LINENO: result: $CC" >&5
15224 echo "${ECHO_T}$CC" >&6; }
15225 else
15226   { echo "$as_me:$LINENO: result: no" >&5
15227 echo "${ECHO_T}no" >&6; }
15228 fi
15229
15230
15231 fi
15232 if test -z "$CC"; then
15233   if test -n "$ac_tool_prefix"; then
15234   for ac_prog in cl.exe
15235   do
15236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15240 if test "${ac_cv_prog_CC+set}" = set; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243   if test -n "$CC"; then
15244   ac_cv_prog_CC="$CC" # Let the user override the test.
15245 else
15246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15247 for as_dir in $PATH
15248 do
15249   IFS=$as_save_IFS
15250   test -z "$as_dir" && as_dir=.
15251   for ac_exec_ext in '' $ac_executable_extensions; do
15252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15255     break 2
15256   fi
15257 done
15258 done
15259 IFS=$as_save_IFS
15260
15261 fi
15262 fi
15263 CC=$ac_cv_prog_CC
15264 if test -n "$CC"; then
15265   { echo "$as_me:$LINENO: result: $CC" >&5
15266 echo "${ECHO_T}$CC" >&6; }
15267 else
15268   { echo "$as_me:$LINENO: result: no" >&5
15269 echo "${ECHO_T}no" >&6; }
15270 fi
15271
15272
15273     test -n "$CC" && break
15274   done
15275 fi
15276 if test -z "$CC"; then
15277   ac_ct_CC=$CC
15278   for ac_prog in cl.exe
15279 do
15280   # Extract the first word of "$ac_prog", so it can be a program name with args.
15281 set dummy $ac_prog; ac_word=$2
15282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   if test -n "$ac_ct_CC"; then
15288   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15289 else
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293   IFS=$as_save_IFS
15294   test -z "$as_dir" && as_dir=.
15295   for ac_exec_ext in '' $ac_executable_extensions; do
15296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15297     ac_cv_prog_ac_ct_CC="$ac_prog"
15298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15299     break 2
15300   fi
15301 done
15302 done
15303 IFS=$as_save_IFS
15304
15305 fi
15306 fi
15307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15308 if test -n "$ac_ct_CC"; then
15309   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15310 echo "${ECHO_T}$ac_ct_CC" >&6; }
15311 else
15312   { echo "$as_me:$LINENO: result: no" >&5
15313 echo "${ECHO_T}no" >&6; }
15314 fi
15315
15316
15317   test -n "$ac_ct_CC" && break
15318 done
15319
15320   if test "x$ac_ct_CC" = x; then
15321     CC=""
15322   else
15323     case $cross_compiling:$ac_tool_warned in
15324 yes:)
15325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15326 whose name does not start with the host triplet.  If you think this
15327 configuration is useful to you, please write to autoconf@gnu.org." >&5
15328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15329 whose name does not start with the host triplet.  If you think this
15330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15331 ac_tool_warned=yes ;;
15332 esac
15333     CC=$ac_ct_CC
15334   fi
15335 fi
15336
15337 fi
15338
15339
15340 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15341 See \`config.log' for more details." >&5
15342 echo "$as_me: error: no acceptable C compiler found in \$PATH
15343 See \`config.log' for more details." >&2;}
15344    { (exit 1); exit 1; }; }
15345
15346 # Provide some information about the compiler.
15347 echo "$as_me:$LINENO: checking for C compiler version" >&5
15348 ac_compiler=`set X $ac_compile; echo $2`
15349 { (ac_try="$ac_compiler --version >&5"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_compiler --version >&5") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }
15359 { (ac_try="$ac_compiler -v >&5"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_compiler -v >&5") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }
15369 { (ac_try="$ac_compiler -V >&5"
15370 case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375   (eval "$ac_compiler -V >&5") 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }
15379
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386
15387 int
15388 main ()
15389 {
15390
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 ac_clean_files_save=$ac_clean_files
15396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15397 # Try to create an executable without -o first, disregard a.out.
15398 # It will help us diagnose broken compilers, and finding out an intuition
15399 # of exeext.
15400 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15403 #
15404 # List of possible output files, starting from the most likely.
15405 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15406 # only as a last resort.  b.out is created by i960 compilers.
15407 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15408 #
15409 # The IRIX 6 linker writes into existing files which may not be
15410 # executable, retaining their permissions.  Remove them first so a
15411 # subsequent execution test works.
15412 ac_rmfiles=
15413 for ac_file in $ac_files
15414 do
15415   case $ac_file in
15416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15417     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15418   esac
15419 done
15420 rm -f $ac_rmfiles
15421
15422 if { (ac_try="$ac_link_default"
15423 case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_link_default") 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; then
15432   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15434 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15435 # so that the user can short-circuit this test for compilers unknown to
15436 # Autoconf.
15437 for ac_file in $ac_files ''
15438 do
15439   test -f "$ac_file" || continue
15440   case $ac_file in
15441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15442         ;;
15443     [ab].out )
15444         # We found the default executable, but exeext='' is most
15445         # certainly right.
15446         break;;
15447     *.* )
15448         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15449         then :; else
15450            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15451         fi
15452         # We set ac_cv_exeext here because the later test for it is not
15453         # safe: cross compilers may not add the suffix if given an `-o'
15454         # argument, so we may need to know it at that point already.
15455         # Even if this section looks crufty: it has the advantage of
15456         # actually working.
15457         break;;
15458     * )
15459         break;;
15460   esac
15461 done
15462 test "$ac_cv_exeext" = no && ac_cv_exeext=
15463
15464 else
15465   ac_file=''
15466 fi
15467
15468 { echo "$as_me:$LINENO: result: $ac_file" >&5
15469 echo "${ECHO_T}$ac_file" >&6; }
15470 if test -z "$ac_file"; then
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15475 See \`config.log' for more details." >&5
15476 echo "$as_me: error: C compiler cannot create executables
15477 See \`config.log' for more details." >&2;}
15478    { (exit 77); exit 77; }; }
15479 fi
15480
15481 ac_exeext=$ac_cv_exeext
15482
15483 # Check that the compiler produces executables we can run.  If not, either
15484 # the compiler is broken, or we cross compile.
15485 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15486 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15488 # If not cross compiling, check that we can run a simple program.
15489 if test "$cross_compiling" != yes; then
15490   if { ac_try='./$ac_file'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500     cross_compiling=no
15501   else
15502     if test "$cross_compiling" = maybe; then
15503         cross_compiling=yes
15504     else
15505         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15506 If you meant to cross compile, use \`--host'.
15507 See \`config.log' for more details." >&5
15508 echo "$as_me: error: cannot run C compiled programs.
15509 If you meant to cross compile, use \`--host'.
15510 See \`config.log' for more details." >&2;}
15511    { (exit 1); exit 1; }; }
15512     fi
15513   fi
15514 fi
15515 { echo "$as_me:$LINENO: result: yes" >&5
15516 echo "${ECHO_T}yes" >&6; }
15517
15518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15519 ac_clean_files=$ac_clean_files_save
15520 # Check that the compiler produces executables we can run.  If not, either
15521 # the compiler is broken, or we cross compile.
15522 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15524 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15525 echo "${ECHO_T}$cross_compiling" >&6; }
15526
15527 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15529 if { (ac_try="$ac_link"
15530 case "(($ac_try" in
15531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532   *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535   (eval "$ac_link") 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; then
15539   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15540 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15541 # work properly (i.e., refer to `conftest.exe'), while it won't with
15542 # `rm'.
15543 for ac_file in conftest.exe conftest conftest.*; do
15544   test -f "$ac_file" || continue
15545   case $ac_file in
15546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15547     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15548           break;;
15549     * ) break;;
15550   esac
15551 done
15552 else
15553   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15554 See \`config.log' for more details." >&5
15555 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15556 See \`config.log' for more details." >&2;}
15557    { (exit 1); exit 1; }; }
15558 fi
15559
15560 rm -f conftest$ac_cv_exeext
15561 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15562 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15563
15564 rm -f conftest.$ac_ext
15565 EXEEXT=$ac_cv_exeext
15566 ac_exeext=$EXEEXT
15567 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15568 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15569 if test "${ac_cv_objext+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578
15579 int
15580 main ()
15581 {
15582
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.o conftest.obj
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_compile") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; then
15598   for ac_file in conftest.o conftest.obj conftest.*; do
15599   test -f "$ac_file" || continue;
15600   case $ac_file in
15601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15602     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15603        break;;
15604   esac
15605 done
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15611 See \`config.log' for more details." >&5
15612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15613 See \`config.log' for more details." >&2;}
15614    { (exit 1); exit 1; }; }
15615 fi
15616
15617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15618 fi
15619 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15620 echo "${ECHO_T}$ac_cv_objext" >&6; }
15621 OBJEXT=$ac_cv_objext
15622 ac_objext=$OBJEXT
15623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628   cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h.  */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h.  */
15634
15635 int
15636 main ()
15637 {
15638 #ifndef __GNUC__
15639        choke me
15640 #endif
15641
15642   ;
15643   return 0;
15644 }
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (ac_try="$ac_compile"
15648 case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_compile") 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } && {
15660          test -z "$ac_c_werror_flag" ||
15661          test ! -s conftest.err
15662        } && test -s conftest.$ac_objext; then
15663   ac_compiler_gnu=yes
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668         ac_compiler_gnu=no
15669 fi
15670
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15673
15674 fi
15675 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15677 GCC=`test $ac_compiler_gnu = yes && echo yes`
15678 ac_test_CFLAGS=${CFLAGS+set}
15679 ac_save_CFLAGS=$CFLAGS
15680 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15682 if test "${ac_cv_prog_cc_g+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   ac_save_c_werror_flag=$ac_c_werror_flag
15686    ac_c_werror_flag=yes
15687    ac_cv_prog_cc_g=no
15688    CFLAGS="-g"
15689    cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695
15696 int
15697 main ()
15698 {
15699
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext
15705 if { (ac_try="$ac_compile"
15706 case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_compile") 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } && {
15718          test -z "$ac_c_werror_flag" ||
15719          test ! -s conftest.err
15720        } && test -s conftest.$ac_objext; then
15721   ac_cv_prog_cc_g=yes
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726         CFLAGS=""
15727       cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h.  */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h.  */
15733
15734 int
15735 main ()
15736 {
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_compile") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } && {
15756          test -z "$ac_c_werror_flag" ||
15757          test ! -s conftest.err
15758        } && test -s conftest.$ac_objext; then
15759   :
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764         ac_c_werror_flag=$ac_save_c_werror_flag
15765          CFLAGS="-g"
15766          cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772
15773 int
15774 main ()
15775 {
15776
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_compile") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } && {
15795          test -z "$ac_c_werror_flag" ||
15796          test ! -s conftest.err
15797        } && test -s conftest.$ac_objext; then
15798   ac_cv_prog_cc_g=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 fi
15808
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 fi
15811
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813    ac_c_werror_flag=$ac_save_c_werror_flag
15814 fi
15815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15816 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15817 if test "$ac_test_CFLAGS" = set; then
15818   CFLAGS=$ac_save_CFLAGS
15819 elif test $ac_cv_prog_cc_g = yes; then
15820   if test "$GCC" = yes; then
15821     CFLAGS="-g -O2"
15822   else
15823     CFLAGS="-g"
15824   fi
15825 else
15826   if test "$GCC" = yes; then
15827     CFLAGS="-O2"
15828   else
15829     CFLAGS=
15830   fi
15831 fi
15832 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15833 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15834 if test "${ac_cv_prog_cc_c89+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   ac_cv_prog_cc_c89=no
15838 ac_save_CC=$CC
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845 #include <stdarg.h>
15846 #include <stdio.h>
15847 #include <sys/types.h>
15848 #include <sys/stat.h>
15849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15850 struct buf { int x; };
15851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15852 static char *e (p, i)
15853      char **p;
15854      int i;
15855 {
15856   return p[i];
15857 }
15858 static char *f (char * (*g) (char **, int), char **p, ...)
15859 {
15860   char *s;
15861   va_list v;
15862   va_start (v,p);
15863   s = g (p, va_arg (v,int));
15864   va_end (v);
15865   return s;
15866 }
15867
15868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15869    function prototypes and stuff, but not '\xHH' hex character constants.
15870    These don't provoke an error unfortunately, instead are silently treated
15871    as 'x'.  The following induces an error, until -std is added to get
15872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15873    array size at least.  It's necessary to write '\x00'==0 to get something
15874    that's true only with -std.  */
15875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15876
15877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15878    inside strings and character constants.  */
15879 #define FOO(x) 'x'
15880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15881
15882 int test (int i, double x);
15883 struct s1 {int (*f) (int a);};
15884 struct s2 {int (*f) (double a);};
15885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15886 int argc;
15887 char **argv;
15888 int
15889 main ()
15890 {
15891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15898 do
15899   CC="$ac_save_CC $ac_arg"
15900   rm -f conftest.$ac_objext
15901 if { (ac_try="$ac_compile"
15902 case "(($ac_try" in
15903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904   *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907   (eval "$ac_compile") 2>conftest.er1
15908   ac_status=$?
15909   grep -v '^ *+' conftest.er1 >conftest.err
15910   rm -f conftest.er1
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } && {
15914          test -z "$ac_c_werror_flag" ||
15915          test ! -s conftest.err
15916        } && test -s conftest.$ac_objext; then
15917   ac_cv_prog_cc_c89=$ac_arg
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922
15923 fi
15924
15925 rm -f core conftest.err conftest.$ac_objext
15926   test "x$ac_cv_prog_cc_c89" != "xno" && break
15927 done
15928 rm -f conftest.$ac_ext
15929 CC=$ac_save_CC
15930
15931 fi
15932 # AC_CACHE_VAL
15933 case "x$ac_cv_prog_cc_c89" in
15934   x)
15935     { echo "$as_me:$LINENO: result: none needed" >&5
15936 echo "${ECHO_T}none needed" >&6; } ;;
15937   xno)
15938     { echo "$as_me:$LINENO: result: unsupported" >&5
15939 echo "${ECHO_T}unsupported" >&6; } ;;
15940   *)
15941     CC="$CC $ac_cv_prog_cc_c89"
15942     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15943 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15944 esac
15945
15946
15947 ac_ext=c
15948 ac_cpp='$CPP $CPPFLAGS'
15949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15952
15953
15954
15955
15956
15957
15958
15959
15960     ac_ext=c
15961 ac_cpp='$CPP $CPPFLAGS'
15962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15965
15966     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15967 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15968 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15969   echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971   cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977
15978 int
15979 main ()
15980 {
15981
15982              #ifndef __INTEL_COMPILER
15983                 choke me
15984              #endif
15985
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_compile") 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } && {
16004          test -z "$ac_c_werror_flag" ||
16005          test ! -s conftest.err
16006        } && test -s conftest.$ac_objext; then
16007   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012         bakefile_cv_c_compiler___INTEL_COMPILER=no
16013
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017
16018
16019 fi
16020 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16021 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16022     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16023         :; INTELCC=yes
16024     else
16025         :;
16026     fi
16027     ac_ext=c
16028 ac_cpp='$CPP $CPPFLAGS'
16029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16032
16033
16034
16035
16036         if test "$INTELCC" = "yes"; then
16037
16038
16039     ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16046 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16047 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057 int
16058 main ()
16059 {
16060
16061              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16062                 choke me
16063              #endif
16064
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (ac_try="$ac_compile"
16071 case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_compile") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } && {
16083          test -z "$ac_c_werror_flag" ||
16084          test ! -s conftest.err
16085        } && test -s conftest.$ac_objext; then
16086   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16087 else
16088   echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16092
16093 fi
16094
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096
16097
16098 fi
16099 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16100 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16101     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16102         :; INTELCC8=yes
16103     else
16104         :;
16105     fi
16106     ac_ext=c
16107 ac_cpp='$CPP $CPPFLAGS'
16108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16111
16112
16113
16114
16115
16116     ac_ext=c
16117 ac_cpp='$CPP $CPPFLAGS'
16118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16121
16122     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16123 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16124 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133
16134 int
16135 main ()
16136 {
16137
16138              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16139                 choke me
16140              #endif
16141
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_compile") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } && {
16160          test -z "$ac_c_werror_flag" ||
16161          test ! -s conftest.err
16162        } && test -s conftest.$ac_objext; then
16163   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16169
16170 fi
16171
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173
16174
16175 fi
16176 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16177 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16178     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16179         :; INTELCC10=yes
16180     else
16181         :;
16182     fi
16183     ac_ext=c
16184 ac_cpp='$CPP $CPPFLAGS'
16185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16188
16189
16190
16191     fi
16192
16193         if test "x$GCC" != "xyes"; then
16194         if test "xCC" = "xC"; then
16195             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16196 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16197 if test "${bakefile_cv_c_exto+set}" = set; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200   cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206
16207 int
16208 main ()
16209 {
16210
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext conftest.$ac_ext.o
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217   (eval $ac_compile) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; then
16221   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16222     case $ac_file in
16223         conftest.$ac_ext.o)
16224             bakefile_cv_c_exto="-ext o"
16225             ;;
16226         *)
16227             ;;
16228     esac
16229 done
16230 else
16231   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16232 See \`config.log' for more details." >&5
16233 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16234 See \`config.log' for more details." >&2;}
16235    { (exit 1); exit 1; }; }
16236
16237 fi
16238
16239 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16240
16241 fi
16242 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16243 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16244 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16245     if test "c" = "c"; then
16246         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16247     fi
16248     if test "c" = "cxx"; then
16249         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16250     fi
16251 fi
16252
16253             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16254                 unset ac_cv_prog_cc_g
16255                 ac_test_CFLAGS=${CFLAGS+set}
16256 ac_save_CFLAGS=$CFLAGS
16257 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16258 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16259 if test "${ac_cv_prog_cc_g+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   ac_save_c_werror_flag=$ac_c_werror_flag
16263    ac_c_werror_flag=yes
16264    ac_cv_prog_cc_g=no
16265    CFLAGS="-g"
16266    cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272
16273 int
16274 main ()
16275 {
16276
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext
16282 if { (ac_try="$ac_compile"
16283 case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_compile") 2>conftest.er1
16289   ac_status=$?
16290   grep -v '^ *+' conftest.er1 >conftest.err
16291   rm -f conftest.er1
16292   cat conftest.err >&5
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } && {
16295          test -z "$ac_c_werror_flag" ||
16296          test ! -s conftest.err
16297        } && test -s conftest.$ac_objext; then
16298   ac_cv_prog_cc_g=yes
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303         CFLAGS=""
16304       cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310
16311 int
16312 main ()
16313 {
16314
16315   ;
16316   return 0;
16317 }
16318 _ACEOF
16319 rm -f conftest.$ac_objext
16320 if { (ac_try="$ac_compile"
16321 case "(($ac_try" in
16322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323   *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326   (eval "$ac_compile") 2>conftest.er1
16327   ac_status=$?
16328   grep -v '^ *+' conftest.er1 >conftest.err
16329   rm -f conftest.er1
16330   cat conftest.err >&5
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } && {
16333          test -z "$ac_c_werror_flag" ||
16334          test ! -s conftest.err
16335        } && test -s conftest.$ac_objext; then
16336   :
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341         ac_c_werror_flag=$ac_save_c_werror_flag
16342          CFLAGS="-g"
16343          cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349
16350 int
16351 main ()
16352 {
16353
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (ac_try="$ac_compile"
16360 case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_compile") 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } && {
16372          test -z "$ac_c_werror_flag" ||
16373          test ! -s conftest.err
16374        } && test -s conftest.$ac_objext; then
16375   ac_cv_prog_cc_g=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 fi
16388
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390    ac_c_werror_flag=$ac_save_c_werror_flag
16391 fi
16392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16394 if test "$ac_test_CFLAGS" = set; then
16395   CFLAGS=$ac_save_CFLAGS
16396 elif test $ac_cv_prog_cc_g = yes; then
16397   if test "$GCC" = yes; then
16398     CFLAGS="-g -O2"
16399   else
16400     CFLAGS="-g"
16401   fi
16402 else
16403   if test "$GCC" = yes; then
16404     CFLAGS="-O2"
16405   else
16406     CFLAGS=
16407   fi
16408 fi
16409             fi
16410         fi
16411
16412                         case `uname -s` in
16413             AIX*)
16414
16415
16416     ac_ext=c
16417 ac_cpp='$CPP $CPPFLAGS'
16418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16421
16422     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16423 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16424 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433
16434 int
16435 main ()
16436 {
16437
16438              #ifndef __xlC__
16439                 choke me
16440              #endif
16441
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext
16447 if { (ac_try="$ac_compile"
16448 case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_compile") 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } && {
16460          test -z "$ac_c_werror_flag" ||
16461          test ! -s conftest.err
16462        } && test -s conftest.$ac_objext; then
16463   bakefile_cv_c_compiler___xlC__=yes
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468         bakefile_cv_c_compiler___xlC__=no
16469
16470 fi
16471
16472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16473
16474
16475 fi
16476 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16477 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16478     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16479         :; XLCC=yes
16480     else
16481         :;
16482     fi
16483     ac_ext=c
16484 ac_cpp='$CPP $CPPFLAGS'
16485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16488
16489
16490
16491                 ;;
16492
16493             Darwin)
16494
16495
16496     ac_ext=c
16497 ac_cpp='$CPP $CPPFLAGS'
16498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16501
16502     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16503 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16504 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507   cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h.  */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h.  */
16513
16514 int
16515 main ()
16516 {
16517
16518              #ifndef __MWERKS__
16519                 choke me
16520              #endif
16521
16522   ;
16523   return 0;
16524 }
16525 _ACEOF
16526 rm -f conftest.$ac_objext
16527 if { (ac_try="$ac_compile"
16528 case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_compile") 2>conftest.er1
16534   ac_status=$?
16535   grep -v '^ *+' conftest.er1 >conftest.err
16536   rm -f conftest.er1
16537   cat conftest.err >&5
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } && {
16540          test -z "$ac_c_werror_flag" ||
16541          test ! -s conftest.err
16542        } && test -s conftest.$ac_objext; then
16543   bakefile_cv_c_compiler___MWERKS__=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         bakefile_cv_c_compiler___MWERKS__=no
16549
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553
16554
16555 fi
16556 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16557 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16558     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16559         :; MWCC=yes
16560     else
16561         :;
16562     fi
16563     ac_ext=c
16564 ac_cpp='$CPP $CPPFLAGS'
16565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16568
16569
16570
16571                 if test "$MWCC" != "yes"; then
16572
16573
16574     ac_ext=c
16575 ac_cpp='$CPP $CPPFLAGS'
16576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16579
16580     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16581 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16582 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h.  */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h.  */
16591
16592 int
16593 main ()
16594 {
16595
16596              #ifndef __xlC__
16597                 choke me
16598              #endif
16599
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (ac_try="$ac_compile"
16606 case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611   (eval "$ac_compile") 2>conftest.er1
16612   ac_status=$?
16613   grep -v '^ *+' conftest.er1 >conftest.err
16614   rm -f conftest.er1
16615   cat conftest.err >&5
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); } && {
16618          test -z "$ac_c_werror_flag" ||
16619          test ! -s conftest.err
16620        } && test -s conftest.$ac_objext; then
16621   bakefile_cv_c_compiler___xlC__=yes
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626         bakefile_cv_c_compiler___xlC__=no
16627
16628 fi
16629
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631
16632
16633 fi
16634 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16635 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16636     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16637         :; XLCC=yes
16638     else
16639         :;
16640     fi
16641     ac_ext=c
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16646
16647
16648
16649                 fi
16650                 ;;
16651
16652             IRIX*)
16653
16654
16655     ac_ext=c
16656 ac_cpp='$CPP $CPPFLAGS'
16657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16660
16661     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16662 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16663 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16664   echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666   cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672
16673 int
16674 main ()
16675 {
16676
16677              #ifndef _SGI_COMPILER_VERSION
16678                 choke me
16679              #endif
16680
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (ac_try="$ac_compile"
16687 case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_compile") 2>conftest.er1
16693   ac_status=$?
16694   grep -v '^ *+' conftest.er1 >conftest.err
16695   rm -f conftest.er1
16696   cat conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } && {
16699          test -z "$ac_c_werror_flag" ||
16700          test ! -s conftest.err
16701        } && test -s conftest.$ac_objext; then
16702   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16708
16709 fi
16710
16711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712
16713
16714 fi
16715 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16716 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16717     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16718         :; SGICC=yes
16719     else
16720         :;
16721     fi
16722     ac_ext=c
16723 ac_cpp='$CPP $CPPFLAGS'
16724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16727
16728
16729
16730                 ;;
16731
16732             Linux*)
16733                                                 if test "$INTELCC" != "yes"; then
16734
16735
16736     ac_ext=c
16737 ac_cpp='$CPP $CPPFLAGS'
16738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16741
16742     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16743 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16744 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16745   echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747   cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753
16754 int
16755 main ()
16756 {
16757
16758              #ifndef __SUNPRO_C
16759                 choke me
16760              #endif
16761
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (ac_try="$ac_compile"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_compile") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } && {
16780          test -z "$ac_c_werror_flag" ||
16781          test ! -s conftest.err
16782        } && test -s conftest.$ac_objext; then
16783   bakefile_cv_c_compiler___SUNPRO_C=yes
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788         bakefile_cv_c_compiler___SUNPRO_C=no
16789
16790 fi
16791
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793
16794
16795 fi
16796 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16797 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16798     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16799         :; SUNCC=yes
16800     else
16801         :;
16802     fi
16803     ac_ext=c
16804 ac_cpp='$CPP $CPPFLAGS'
16805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16808
16809
16810
16811                 fi
16812                 ;;
16813
16814             HP-UX*)
16815
16816
16817     ac_ext=c
16818 ac_cpp='$CPP $CPPFLAGS'
16819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16822
16823     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16824 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16825 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834
16835 int
16836 main ()
16837 {
16838
16839              #ifndef __HP_cc
16840                 choke me
16841              #endif
16842
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest.$ac_objext
16848 if { (ac_try="$ac_compile"
16849 case "(($ac_try" in
16850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851   *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854   (eval "$ac_compile") 2>conftest.er1
16855   ac_status=$?
16856   grep -v '^ *+' conftest.er1 >conftest.err
16857   rm -f conftest.er1
16858   cat conftest.err >&5
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); } && {
16861          test -z "$ac_c_werror_flag" ||
16862          test ! -s conftest.err
16863        } && test -s conftest.$ac_objext; then
16864   bakefile_cv_c_compiler___HP_cc=yes
16865 else
16866   echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869         bakefile_cv_c_compiler___HP_cc=no
16870
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874
16875
16876 fi
16877 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16878 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16879     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16880         :; HPCC=yes
16881     else
16882         :;
16883     fi
16884     ac_ext=c
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889
16890
16891
16892                 ;;
16893
16894             OSF1)
16895
16896
16897     ac_ext=c
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16902
16903     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16904 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16905 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 int
16916 main ()
16917 {
16918
16919              #ifndef __DECC
16920                 choke me
16921              #endif
16922
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_compile") 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } && {
16941          test -z "$ac_c_werror_flag" ||
16942          test ! -s conftest.err
16943        } && test -s conftest.$ac_objext; then
16944   bakefile_cv_c_compiler___DECC=yes
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949         bakefile_cv_c_compiler___DECC=no
16950
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954
16955
16956 fi
16957 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16958 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16959     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16960         :; COMPAQCC=yes
16961     else
16962         :;
16963     fi
16964     ac_ext=c
16965 ac_cpp='$CPP $CPPFLAGS'
16966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16969
16970
16971
16972                 ;;
16973
16974             SunOS)
16975
16976
16977     ac_ext=c
16978 ac_cpp='$CPP $CPPFLAGS'
16979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16982
16983     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16984 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16985 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994
16995 int
16996 main ()
16997 {
16998
16999              #ifndef __SUNPRO_C
17000                 choke me
17001              #endif
17002
17003   ;
17004   return 0;
17005 }
17006 _ACEOF
17007 rm -f conftest.$ac_objext
17008 if { (ac_try="$ac_compile"
17009 case "(($ac_try" in
17010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011   *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014   (eval "$ac_compile") 2>conftest.er1
17015   ac_status=$?
17016   grep -v '^ *+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } && {
17021          test -z "$ac_c_werror_flag" ||
17022          test ! -s conftest.err
17023        } && test -s conftest.$ac_objext; then
17024   bakefile_cv_c_compiler___SUNPRO_C=yes
17025 else
17026   echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17028
17029         bakefile_cv_c_compiler___SUNPRO_C=no
17030
17031 fi
17032
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034
17035
17036 fi
17037 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17038 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17039     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17040         :; SUNCC=yes
17041     else
17042         :;
17043     fi
17044     ac_ext=c
17045 ac_cpp='$CPP $CPPFLAGS'
17046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17049
17050
17051
17052                 ;;
17053         esac
17054     fi
17055
17056
17057
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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17064 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17065 # On Suns, sometimes $CPP names a directory.
17066 if test -n "$CPP" && test -d "$CPP"; then
17067   CPP=
17068 fi
17069 if test -z "$CPP"; then
17070   if test "${ac_cv_prog_CPP+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073       # Double quotes because CPP needs to be expanded
17074     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17075     do
17076       ac_preproc_ok=false
17077 for ac_c_preproc_warn_flag in '' yes
17078 do
17079   # Use a header file that comes with gcc, so configuring glibc
17080   # with a fresh cross-compiler works.
17081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082   # <limits.h> exists even on freestanding compilers.
17083   # On the NeXT, cc -E runs the code through the compiler's parser,
17084   # not just through cpp. "Syntax error" is here to catch this case.
17085   cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 #ifdef __STDC__
17092 # include <limits.h>
17093 #else
17094 # include <assert.h>
17095 #endif
17096                      Syntax error
17097 _ACEOF
17098 if { (ac_try="$ac_cpp conftest.$ac_ext"
17099 case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } >/dev/null && {
17111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17112          test ! -s conftest.err
17113        }; then
17114   :
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119   # Broken: fails on valid input.
17120 continue
17121 fi
17122
17123 rm -f conftest.err conftest.$ac_ext
17124
17125   # OK, works on sane cases.  Now check whether nonexistent headers
17126   # can be detected and how.
17127   cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133 #include <ac_nonexistent.h>
17134 _ACEOF
17135 if { (ac_try="$ac_cpp conftest.$ac_ext"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } >/dev/null && {
17148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17149          test ! -s conftest.err
17150        }; then
17151   # Broken: success on invalid input.
17152 continue
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157   # Passes both tests.
17158 ac_preproc_ok=:
17159 break
17160 fi
17161
17162 rm -f conftest.err conftest.$ac_ext
17163
17164 done
17165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17166 rm -f conftest.err conftest.$ac_ext
17167 if $ac_preproc_ok; then
17168   break
17169 fi
17170
17171     done
17172     ac_cv_prog_CPP=$CPP
17173
17174 fi
17175   CPP=$ac_cv_prog_CPP
17176 else
17177   ac_cv_prog_CPP=$CPP
17178 fi
17179 { echo "$as_me:$LINENO: result: $CPP" >&5
17180 echo "${ECHO_T}$CPP" >&6; }
17181 ac_preproc_ok=false
17182 for ac_c_preproc_warn_flag in '' yes
17183 do
17184   # Use a header file that comes with gcc, so configuring glibc
17185   # with a fresh cross-compiler works.
17186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17187   # <limits.h> exists even on freestanding compilers.
17188   # On the NeXT, cc -E runs the code through the compiler's parser,
17189   # not just through cpp. "Syntax error" is here to catch this case.
17190   cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196 #ifdef __STDC__
17197 # include <limits.h>
17198 #else
17199 # include <assert.h>
17200 #endif
17201                      Syntax error
17202 _ACEOF
17203 if { (ac_try="$ac_cpp conftest.$ac_ext"
17204 case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } >/dev/null && {
17216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17217          test ! -s conftest.err
17218        }; then
17219   :
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224   # Broken: fails on valid input.
17225 continue
17226 fi
17227
17228 rm -f conftest.err conftest.$ac_ext
17229
17230   # OK, works on sane cases.  Now check whether nonexistent headers
17231   # can be detected and how.
17232   cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 #include <ac_nonexistent.h>
17239 _ACEOF
17240 if { (ac_try="$ac_cpp conftest.$ac_ext"
17241 case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17247   ac_status=$?
17248   grep -v '^ *+' conftest.er1 >conftest.err
17249   rm -f conftest.er1
17250   cat conftest.err >&5
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } >/dev/null && {
17253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17254          test ! -s conftest.err
17255        }; then
17256   # Broken: success on invalid input.
17257 continue
17258 else
17259   echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17261
17262   # Passes both tests.
17263 ac_preproc_ok=:
17264 break
17265 fi
17266
17267 rm -f conftest.err conftest.$ac_ext
17268
17269 done
17270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17271 rm -f conftest.err conftest.$ac_ext
17272 if $ac_preproc_ok; then
17273   :
17274 else
17275   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17276 See \`config.log' for more details." >&5
17277 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17278 See \`config.log' for more details." >&2;}
17279    { (exit 1); exit 1; }; }
17280 fi
17281
17282 ac_ext=c
17283 ac_cpp='$CPP $CPPFLAGS'
17284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17287
17288
17289 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17290 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17291 if test "${ac_cv_path_GREP+set}" = set; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   # Extract the first word of "grep ggrep" to use in msg output
17295 if test -z "$GREP"; then
17296 set dummy grep ggrep; ac_prog_name=$2
17297 if test "${ac_cv_path_GREP+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300   ac_path_GREP_found=false
17301 # Loop through the user's path and test for each of PROGNAME-LIST
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17304 do
17305   IFS=$as_save_IFS
17306   test -z "$as_dir" && as_dir=.
17307   for ac_prog in grep ggrep; do
17308   for ac_exec_ext in '' $ac_executable_extensions; do
17309     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17310     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17311     # Check for GNU ac_path_GREP and select it if it is found.
17312   # Check for GNU $ac_path_GREP
17313 case `"$ac_path_GREP" --version 2>&1` in
17314 *GNU*)
17315   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17316 *)
17317   ac_count=0
17318   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17319   while :
17320   do
17321     cat "conftest.in" "conftest.in" >"conftest.tmp"
17322     mv "conftest.tmp" "conftest.in"
17323     cp "conftest.in" "conftest.nl"
17324     echo 'GREP' >> "conftest.nl"
17325     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17326     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17327     ac_count=`expr $ac_count + 1`
17328     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17329       # Best one so far, save it but keep looking for a better one
17330       ac_cv_path_GREP="$ac_path_GREP"
17331       ac_path_GREP_max=$ac_count
17332     fi
17333     # 10*(2^10) chars as input seems more than enough
17334     test $ac_count -gt 10 && break
17335   done
17336   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17337 esac
17338
17339
17340     $ac_path_GREP_found && break 3
17341   done
17342 done
17343
17344 done
17345 IFS=$as_save_IFS
17346
17347
17348 fi
17349
17350 GREP="$ac_cv_path_GREP"
17351 if test -z "$GREP"; then
17352   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17353 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17354    { (exit 1); exit 1; }; }
17355 fi
17356
17357 else
17358   ac_cv_path_GREP=$GREP
17359 fi
17360
17361
17362 fi
17363 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17364 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17365  GREP="$ac_cv_path_GREP"
17366
17367
17368 { echo "$as_me:$LINENO: checking for egrep" >&5
17369 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17370 if test "${ac_cv_path_EGREP+set}" = set; then
17371   echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17374    then ac_cv_path_EGREP="$GREP -E"
17375    else
17376      # Extract the first word of "egrep" to use in msg output
17377 if test -z "$EGREP"; then
17378 set dummy egrep; ac_prog_name=$2
17379 if test "${ac_cv_path_EGREP+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   ac_path_EGREP_found=false
17383 # Loop through the user's path and test for each of PROGNAME-LIST
17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17386 do
17387   IFS=$as_save_IFS
17388   test -z "$as_dir" && as_dir=.
17389   for ac_prog in egrep; do
17390   for ac_exec_ext in '' $ac_executable_extensions; do
17391     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17392     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17393     # Check for GNU ac_path_EGREP and select it if it is found.
17394   # Check for GNU $ac_path_EGREP
17395 case `"$ac_path_EGREP" --version 2>&1` in
17396 *GNU*)
17397   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17398 *)
17399   ac_count=0
17400   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17401   while :
17402   do
17403     cat "conftest.in" "conftest.in" >"conftest.tmp"
17404     mv "conftest.tmp" "conftest.in"
17405     cp "conftest.in" "conftest.nl"
17406     echo 'EGREP' >> "conftest.nl"
17407     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17408     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17409     ac_count=`expr $ac_count + 1`
17410     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17411       # Best one so far, save it but keep looking for a better one
17412       ac_cv_path_EGREP="$ac_path_EGREP"
17413       ac_path_EGREP_max=$ac_count
17414     fi
17415     # 10*(2^10) chars as input seems more than enough
17416     test $ac_count -gt 10 && break
17417   done
17418   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17419 esac
17420
17421
17422     $ac_path_EGREP_found && break 3
17423   done
17424 done
17425
17426 done
17427 IFS=$as_save_IFS
17428
17429
17430 fi
17431
17432 EGREP="$ac_cv_path_EGREP"
17433 if test -z "$EGREP"; then
17434   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17435 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17436    { (exit 1); exit 1; }; }
17437 fi
17438
17439 else
17440   ac_cv_path_EGREP=$EGREP
17441 fi
17442
17443
17444    fi
17445 fi
17446 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17447 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17448  EGREP="$ac_cv_path_EGREP"
17449
17450
17451 if test $ac_cv_c_compiler_gnu = yes; then
17452     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17453 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17454 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457     ac_pattern="Autoconf.*'x'"
17458   cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h.  */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h.  */
17464 #include <sgtty.h>
17465 Autoconf TIOCGETP
17466 _ACEOF
17467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17468   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17469   ac_cv_prog_gcc_traditional=yes
17470 else
17471   ac_cv_prog_gcc_traditional=no
17472 fi
17473 rm -f conftest*
17474
17475
17476   if test $ac_cv_prog_gcc_traditional = no; then
17477     cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 #include <termio.h>
17484 Autoconf TCGETA
17485 _ACEOF
17486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17487   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17488   ac_cv_prog_gcc_traditional=yes
17489 fi
17490 rm -f conftest*
17491
17492   fi
17493 fi
17494 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17495 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17496   if test $ac_cv_prog_gcc_traditional = yes; then
17497     CC="$CC -traditional"
17498   fi
17499 fi
17500
17501
17502 CXXFLAGS=${CXXFLAGS:=}
17503 ac_ext=cpp
17504 ac_cpp='$CXXCPP $CPPFLAGS'
17505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17508 if test -z "$CXX"; then
17509   if test -n "$CCC"; then
17510     CXX=$CCC
17511   else
17512     if test -n "$ac_tool_prefix"; then
17513   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17514   do
17515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17519 if test "${ac_cv_prog_CXX+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   if test -n "$CXX"; then
17523   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17524 else
17525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17526 for as_dir in $PATH
17527 do
17528   IFS=$as_save_IFS
17529   test -z "$as_dir" && as_dir=.
17530   for ac_exec_ext in '' $ac_executable_extensions; do
17531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17532     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17534     break 2
17535   fi
17536 done
17537 done
17538 IFS=$as_save_IFS
17539
17540 fi
17541 fi
17542 CXX=$ac_cv_prog_CXX
17543 if test -n "$CXX"; then
17544   { echo "$as_me:$LINENO: result: $CXX" >&5
17545 echo "${ECHO_T}$CXX" >&6; }
17546 else
17547   { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17549 fi
17550
17551
17552     test -n "$CXX" && break
17553   done
17554 fi
17555 if test -z "$CXX"; then
17556   ac_ct_CXX=$CXX
17557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17558 do
17559   # Extract the first word of "$ac_prog", so it can be a program name with args.
17560 set dummy $ac_prog; ac_word=$2
17561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17563 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   if test -n "$ac_ct_CXX"; then
17567   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17568 else
17569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17570 for as_dir in $PATH
17571 do
17572   IFS=$as_save_IFS
17573   test -z "$as_dir" && as_dir=.
17574   for ac_exec_ext in '' $ac_executable_extensions; do
17575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17576     ac_cv_prog_ac_ct_CXX="$ac_prog"
17577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17578     break 2
17579   fi
17580 done
17581 done
17582 IFS=$as_save_IFS
17583
17584 fi
17585 fi
17586 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17587 if test -n "$ac_ct_CXX"; then
17588   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17589 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17590 else
17591   { echo "$as_me:$LINENO: result: no" >&5
17592 echo "${ECHO_T}no" >&6; }
17593 fi
17594
17595
17596   test -n "$ac_ct_CXX" && break
17597 done
17598
17599   if test "x$ac_ct_CXX" = x; then
17600     CXX="g++"
17601   else
17602     case $cross_compiling:$ac_tool_warned in
17603 yes:)
17604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17605 whose name does not start with the host triplet.  If you think this
17606 configuration is useful to you, please write to autoconf@gnu.org." >&5
17607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17608 whose name does not start with the host triplet.  If you think this
17609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17610 ac_tool_warned=yes ;;
17611 esac
17612     CXX=$ac_ct_CXX
17613   fi
17614 fi
17615
17616   fi
17617 fi
17618 # Provide some information about the compiler.
17619 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17620 ac_compiler=`set X $ac_compile; echo $2`
17621 { (ac_try="$ac_compiler --version >&5"
17622 case "(($ac_try" in
17623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624   *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627   (eval "$ac_compiler --version >&5") 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }
17631 { (ac_try="$ac_compiler -v >&5"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_compiler -v >&5") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }
17641 { (ac_try="$ac_compiler -V >&5"
17642 case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_compiler -V >&5") 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }
17651
17652 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17653 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17654 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667 #ifndef __GNUC__
17668        choke me
17669 #endif
17670
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (ac_try="$ac_compile"
17677 case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_compile") 2>conftest.er1
17683   ac_status=$?
17684   grep -v '^ *+' conftest.er1 >conftest.err
17685   rm -f conftest.er1
17686   cat conftest.err >&5
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } && {
17689          test -z "$ac_cxx_werror_flag" ||
17690          test ! -s conftest.err
17691        } && test -s conftest.$ac_objext; then
17692   ac_compiler_gnu=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697         ac_compiler_gnu=no
17698 fi
17699
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17702
17703 fi
17704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17705 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17706 GXX=`test $ac_compiler_gnu = yes && echo yes`
17707 ac_test_CXXFLAGS=${CXXFLAGS+set}
17708 ac_save_CXXFLAGS=$CXXFLAGS
17709 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17710 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17711 if test "${ac_cv_prog_cxx_g+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17715    ac_cxx_werror_flag=yes
17716    ac_cv_prog_cxx_g=no
17717    CXXFLAGS="-g"
17718    cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h.  */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h.  */
17724
17725 int
17726 main ()
17727 {
17728
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740   (eval "$ac_compile") 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } && {
17747          test -z "$ac_cxx_werror_flag" ||
17748          test ! -s conftest.err
17749        } && test -s conftest.$ac_objext; then
17750   ac_cv_prog_cxx_g=yes
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755         CXXFLAGS=""
17756       cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h.  */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h.  */
17762
17763 int
17764 main ()
17765 {
17766
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext
17772 if { (ac_try="$ac_compile"
17773 case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_compile") 2>conftest.er1
17779   ac_status=$?
17780   grep -v '^ *+' conftest.er1 >conftest.err
17781   rm -f conftest.er1
17782   cat conftest.err >&5
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } && {
17785          test -z "$ac_cxx_werror_flag" ||
17786          test ! -s conftest.err
17787        } && test -s conftest.$ac_objext; then
17788   :
17789 else
17790   echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17794          CXXFLAGS="-g"
17795          cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801
17802 int
17803 main ()
17804 {
17805
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_compile") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } && {
17824          test -z "$ac_cxx_werror_flag" ||
17825          test ! -s conftest.err
17826        } && test -s conftest.$ac_objext; then
17827   ac_cv_prog_cxx_g=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832
17833 fi
17834
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 fi
17837
17838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839 fi
17840
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17843 fi
17844 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17845 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17846 if test "$ac_test_CXXFLAGS" = set; then
17847   CXXFLAGS=$ac_save_CXXFLAGS
17848 elif test $ac_cv_prog_cxx_g = yes; then
17849   if test "$GXX" = yes; then
17850     CXXFLAGS="-g -O2"
17851   else
17852     CXXFLAGS="-g"
17853   fi
17854 else
17855   if test "$GXX" = yes; then
17856     CXXFLAGS="-O2"
17857   else
17858     CXXFLAGS=
17859   fi
17860 fi
17861 ac_ext=c
17862 ac_cpp='$CPP $CPPFLAGS'
17863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17866
17867
17868
17869
17870
17871
17872
17873
17874     ac_ext=cpp
17875 ac_cpp='$CXXCPP $CPPFLAGS'
17876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17879
17880     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17881 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17882 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17883   echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885   cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891
17892 int
17893 main ()
17894 {
17895
17896              #ifndef __INTEL_COMPILER
17897                 choke me
17898              #endif
17899
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (ac_try="$ac_compile"
17906 case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_compile") 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } && {
17918          test -z "$ac_cxx_werror_flag" ||
17919          test ! -s conftest.err
17920        } && test -s conftest.$ac_objext; then
17921   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17927
17928 fi
17929
17930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931
17932
17933 fi
17934 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17935 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17936     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17937         :; INTELCXX=yes
17938     else
17939         :;
17940     fi
17941     ac_ext=c
17942 ac_cpp='$CPP $CPPFLAGS'
17943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946
17947
17948
17949
17950         if test "$INTELCXX" = "yes"; then
17951
17952
17953     ac_ext=cpp
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17960 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17961 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970
17971 int
17972 main ()
17973 {
17974
17975              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17976                 choke me
17977              #endif
17978
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_compile") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } && {
17997          test -z "$ac_cxx_werror_flag" ||
17998          test ! -s conftest.err
17999        } && test -s conftest.$ac_objext; then
18000   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18001 else
18002   echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18004
18005         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18006
18007 fi
18008
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010
18011
18012 fi
18013 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18014 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18015     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18016         :; INTELCXX8=yes
18017     else
18018         :;
18019     fi
18020     ac_ext=c
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18025
18026
18027
18028
18029
18030     ac_ext=cpp
18031 ac_cpp='$CXXCPP $CPPFLAGS'
18032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18035
18036     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18037 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18038 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047
18048 int
18049 main ()
18050 {
18051
18052              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18053                 choke me
18054              #endif
18055
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_compile") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } && {
18074          test -z "$ac_cxx_werror_flag" ||
18075          test ! -s conftest.err
18076        } && test -s conftest.$ac_objext; then
18077   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18078 else
18079   echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18083
18084 fi
18085
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087
18088
18089 fi
18090 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18091 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18092     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18093         :; INTELCXX10=yes
18094     else
18095         :;
18096     fi
18097     ac_ext=c
18098 ac_cpp='$CPP $CPPFLAGS'
18099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18102
18103
18104
18105     fi
18106
18107         if test "x$GCXX" != "xyes"; then
18108         if test "xCXX" = "xC"; then
18109             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18110 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18111 if test "${bakefile_cv_c_exto+set}" = set; then
18112   echo $ECHO_N "(cached) $ECHO_C" >&6
18113 else
18114   cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120
18121 int
18122 main ()
18123 {
18124
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest.$ac_ext.o
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131   (eval $ac_compile) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; then
18135   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18136     case $ac_file in
18137         conftest.$ac_ext.o)
18138             bakefile_cv_c_exto="-ext o"
18139             ;;
18140         *)
18141             ;;
18142     esac
18143 done
18144 else
18145   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18146 See \`config.log' for more details." >&5
18147 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18148 See \`config.log' for more details." >&2;}
18149    { (exit 1); exit 1; }; }
18150
18151 fi
18152
18153 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18154
18155 fi
18156 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18157 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18158 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18159     if test "c" = "c"; then
18160         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18161     fi
18162     if test "c" = "cxx"; then
18163         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18164     fi
18165 fi
18166
18167             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18168                 unset ac_cv_prog_cc_g
18169                 ac_test_CFLAGS=${CFLAGS+set}
18170 ac_save_CFLAGS=$CFLAGS
18171 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18172 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18173 if test "${ac_cv_prog_cc_g+set}" = set; then
18174   echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176   ac_save_c_werror_flag=$ac_c_werror_flag
18177    ac_c_werror_flag=yes
18178    ac_cv_prog_cc_g=no
18179    CFLAGS="-g"
18180    cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h.  */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h.  */
18186
18187 int
18188 main ()
18189 {
18190
18191   ;
18192   return 0;
18193 }
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (ac_try="$ac_compile"
18197 case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_compile") 2>conftest.er1
18203   ac_status=$?
18204   grep -v '^ *+' conftest.er1 >conftest.err
18205   rm -f conftest.er1
18206   cat conftest.err >&5
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } && {
18209          test -z "$ac_c_werror_flag" ||
18210          test ! -s conftest.err
18211        } && test -s conftest.$ac_objext; then
18212   ac_cv_prog_cc_g=yes
18213 else
18214   echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217         CFLAGS=""
18218       cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 int
18226 main ()
18227 {
18228
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext
18234 if { (ac_try="$ac_compile"
18235 case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_compile") 2>conftest.er1
18241   ac_status=$?
18242   grep -v '^ *+' conftest.er1 >conftest.err
18243   rm -f conftest.er1
18244   cat conftest.err >&5
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); } && {
18247          test -z "$ac_c_werror_flag" ||
18248          test ! -s conftest.err
18249        } && test -s conftest.$ac_objext; then
18250   :
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255         ac_c_werror_flag=$ac_save_c_werror_flag
18256          CFLAGS="-g"
18257          cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h.  */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h.  */
18263
18264 int
18265 main ()
18266 {
18267
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_compile") 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } && {
18286          test -z "$ac_c_werror_flag" ||
18287          test ! -s conftest.err
18288        } && test -s conftest.$ac_objext; then
18289   ac_cv_prog_cc_g=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294
18295 fi
18296
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 fi
18299
18300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 fi
18302
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304    ac_c_werror_flag=$ac_save_c_werror_flag
18305 fi
18306 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18307 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18308 if test "$ac_test_CFLAGS" = set; then
18309   CFLAGS=$ac_save_CFLAGS
18310 elif test $ac_cv_prog_cc_g = yes; then
18311   if test "$GCC" = yes; then
18312     CFLAGS="-g -O2"
18313   else
18314     CFLAGS="-g"
18315   fi
18316 else
18317   if test "$GCC" = yes; then
18318     CFLAGS="-O2"
18319   else
18320     CFLAGS=
18321   fi
18322 fi
18323             fi
18324         fi
18325
18326                         case `uname -s` in
18327             AIX*)
18328
18329
18330     ac_ext=cpp
18331 ac_cpp='$CXXCPP $CPPFLAGS'
18332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335
18336     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18337 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18338 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347
18348 int
18349 main ()
18350 {
18351
18352              #ifndef __xlC__
18353                 choke me
18354              #endif
18355
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (ac_try="$ac_compile"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_compile") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } && {
18374          test -z "$ac_cxx_werror_flag" ||
18375          test ! -s conftest.err
18376        } && test -s conftest.$ac_objext; then
18377   bakefile_cv_cxx_compiler___xlC__=yes
18378 else
18379   echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382         bakefile_cv_cxx_compiler___xlC__=no
18383
18384 fi
18385
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387
18388
18389 fi
18390 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18391 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18392     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18393         :; XLCXX=yes
18394     else
18395         :;
18396     fi
18397     ac_ext=c
18398 ac_cpp='$CPP $CPPFLAGS'
18399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18402
18403
18404
18405                 ;;
18406
18407             Darwin)
18408
18409
18410     ac_ext=cpp
18411 ac_cpp='$CXXCPP $CPPFLAGS'
18412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18415
18416     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18417 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18418 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18419   echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421   cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427
18428 int
18429 main ()
18430 {
18431
18432              #ifndef __MWERKS__
18433                 choke me
18434              #endif
18435
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext
18441 if { (ac_try="$ac_compile"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_compile") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } && {
18454          test -z "$ac_cxx_werror_flag" ||
18455          test ! -s conftest.err
18456        } && test -s conftest.$ac_objext; then
18457   bakefile_cv_cxx_compiler___MWERKS__=yes
18458 else
18459   echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462         bakefile_cv_cxx_compiler___MWERKS__=no
18463
18464 fi
18465
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467
18468
18469 fi
18470 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18471 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18472     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18473         :; MWCXX=yes
18474     else
18475         :;
18476     fi
18477     ac_ext=c
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18482
18483
18484
18485                 if test "$MWCXX" != "yes"; then
18486
18487
18488     ac_ext=cpp
18489 ac_cpp='$CXXCPP $CPPFLAGS'
18490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18493
18494     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18495 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18496 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h.  */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h.  */
18505
18506 int
18507 main ()
18508 {
18509
18510              #ifndef __xlC__
18511                 choke me
18512              #endif
18513
18514   ;
18515   return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_compile") 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } && {
18532          test -z "$ac_cxx_werror_flag" ||
18533          test ! -s conftest.err
18534        } && test -s conftest.$ac_objext; then
18535   bakefile_cv_cxx_compiler___xlC__=yes
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540         bakefile_cv_cxx_compiler___xlC__=no
18541
18542 fi
18543
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545
18546
18547 fi
18548 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18549 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18550     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18551         :; XLCXX=yes
18552     else
18553         :;
18554     fi
18555     ac_ext=c
18556 ac_cpp='$CPP $CPPFLAGS'
18557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18560
18561
18562
18563                 fi
18564                 ;;
18565
18566             IRIX*)
18567
18568
18569     ac_ext=cpp
18570 ac_cpp='$CXXCPP $CPPFLAGS'
18571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18574
18575     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18576 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18577 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18578   echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580   cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586
18587 int
18588 main ()
18589 {
18590
18591              #ifndef _SGI_COMPILER_VERSION
18592                 choke me
18593              #endif
18594
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext
18600 if { (ac_try="$ac_compile"
18601 case "(($ac_try" in
18602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603   *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606   (eval "$ac_compile") 2>conftest.er1
18607   ac_status=$?
18608   grep -v '^ *+' conftest.er1 >conftest.err
18609   rm -f conftest.er1
18610   cat conftest.err >&5
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); } && {
18613          test -z "$ac_cxx_werror_flag" ||
18614          test ! -s conftest.err
18615        } && test -s conftest.$ac_objext; then
18616   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18622
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626
18627
18628 fi
18629 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18630 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18631     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18632         :; SGICXX=yes
18633     else
18634         :;
18635     fi
18636     ac_ext=c
18637 ac_cpp='$CPP $CPPFLAGS'
18638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18641
18642
18643
18644                 ;;
18645
18646             Linux*)
18647                                                 if test "$INTELCXX" != "yes"; then
18648
18649
18650     ac_ext=cpp
18651 ac_cpp='$CXXCPP $CPPFLAGS'
18652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18655
18656     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18657 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18658 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661   cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 int
18669 main ()
18670 {
18671
18672              #ifndef __SUNPRO_CC
18673                 choke me
18674              #endif
18675
18676   ;
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (ac_try="$ac_compile"
18682 case "(($ac_try" in
18683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684   *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687   (eval "$ac_compile") 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } && {
18694          test -z "$ac_cxx_werror_flag" ||
18695          test ! -s conftest.err
18696        } && test -s conftest.$ac_objext; then
18697   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18703
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18707
18708
18709 fi
18710 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18711 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18712     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18713         :; SUNCXX=yes
18714     else
18715         :;
18716     fi
18717     ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723
18724
18725                 fi
18726                 ;;
18727
18728             HP-UX*)
18729
18730
18731     ac_ext=cpp
18732 ac_cpp='$CXXCPP $CPPFLAGS'
18733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18736
18737     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18738 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18739 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 int
18750 main ()
18751 {
18752
18753              #ifndef __HP_aCC
18754                 choke me
18755              #endif
18756
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_compile") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } && {
18775          test -z "$ac_cxx_werror_flag" ||
18776          test ! -s conftest.err
18777        } && test -s conftest.$ac_objext; then
18778   bakefile_cv_cxx_compiler___HP_aCC=yes
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783         bakefile_cv_cxx_compiler___HP_aCC=no
18784
18785 fi
18786
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789
18790 fi
18791 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18792 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18793     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18794         :; HPCXX=yes
18795     else
18796         :;
18797     fi
18798     ac_ext=c
18799 ac_cpp='$CPP $CPPFLAGS'
18800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803
18804
18805
18806                 ;;
18807
18808             OSF1)
18809
18810
18811     ac_ext=cpp
18812 ac_cpp='$CXXCPP $CPPFLAGS'
18813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18816
18817     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18818 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18819 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828
18829 int
18830 main ()
18831 {
18832
18833              #ifndef __DECCXX
18834                 choke me
18835              #endif
18836
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_compile") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && {
18855          test -z "$ac_cxx_werror_flag" ||
18856          test ! -s conftest.err
18857        } && test -s conftest.$ac_objext; then
18858   bakefile_cv_cxx_compiler___DECCXX=yes
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863         bakefile_cv_cxx_compiler___DECCXX=no
18864
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868
18869
18870 fi
18871 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18872 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18873     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18874         :; COMPAQCXX=yes
18875     else
18876         :;
18877     fi
18878     ac_ext=c
18879 ac_cpp='$CPP $CPPFLAGS'
18880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18883
18884
18885
18886                 ;;
18887
18888             SunOS)
18889
18890
18891     ac_ext=cpp
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18896
18897     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18898 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18899 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908
18909 int
18910 main ()
18911 {
18912
18913              #ifndef __SUNPRO_CC
18914                 choke me
18915              #endif
18916
18917   ;
18918   return 0;
18919 }
18920 _ACEOF
18921 rm -f conftest.$ac_objext
18922 if { (ac_try="$ac_compile"
18923 case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_compile") 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } && {
18935          test -z "$ac_cxx_werror_flag" ||
18936          test ! -s conftest.err
18937        } && test -s conftest.$ac_objext; then
18938   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18944
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948
18949
18950 fi
18951 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18952 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18953     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18954         :; SUNCXX=yes
18955     else
18956         :;
18957     fi
18958     ac_ext=c
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965
18966                 ;;
18967         esac
18968     fi
18969
18970
18971
18972 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18973     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18974 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18975    { (exit 1); exit 1; }; }
18976 fi
18977
18978 if test "x$SUNCXX" != xyes; then
18979     if test -n "$ac_tool_prefix"; then
18980   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18981 set dummy ${ac_tool_prefix}ar; ac_word=$2
18982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18984 if test "${ac_cv_prog_AR+set}" = set; then
18985   echo $ECHO_N "(cached) $ECHO_C" >&6
18986 else
18987   if test -n "$AR"; then
18988   ac_cv_prog_AR="$AR" # Let the user override the test.
18989 else
18990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991 for as_dir in $PATH
18992 do
18993   IFS=$as_save_IFS
18994   test -z "$as_dir" && as_dir=.
18995   for ac_exec_ext in '' $ac_executable_extensions; do
18996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18997     ac_cv_prog_AR="${ac_tool_prefix}ar"
18998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18999     break 2
19000   fi
19001 done
19002 done
19003 IFS=$as_save_IFS
19004
19005 fi
19006 fi
19007 AR=$ac_cv_prog_AR
19008 if test -n "$AR"; then
19009   { echo "$as_me:$LINENO: result: $AR" >&5
19010 echo "${ECHO_T}$AR" >&6; }
19011 else
19012   { echo "$as_me:$LINENO: result: no" >&5
19013 echo "${ECHO_T}no" >&6; }
19014 fi
19015
19016
19017 fi
19018 if test -z "$ac_cv_prog_AR"; then
19019   ac_ct_AR=$AR
19020   # Extract the first word of "ar", so it can be a program name with args.
19021 set dummy ar; ac_word=$2
19022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19024 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19025   echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19027   if test -n "$ac_ct_AR"; then
19028   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19029 else
19030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035   for ac_exec_ext in '' $ac_executable_extensions; do
19036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19037     ac_cv_prog_ac_ct_AR="ar"
19038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19039     break 2
19040   fi
19041 done
19042 done
19043 IFS=$as_save_IFS
19044
19045 fi
19046 fi
19047 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19048 if test -n "$ac_ct_AR"; then
19049   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19050 echo "${ECHO_T}$ac_ct_AR" >&6; }
19051 else
19052   { echo "$as_me:$LINENO: result: no" >&5
19053 echo "${ECHO_T}no" >&6; }
19054 fi
19055
19056   if test "x$ac_ct_AR" = x; then
19057     AR=""
19058   else
19059     case $cross_compiling:$ac_tool_warned in
19060 yes:)
19061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19062 whose name does not start with the host triplet.  If you think this
19063 configuration is useful to you, please write to autoconf@gnu.org." >&5
19064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19065 whose name does not start with the host triplet.  If you think this
19066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19067 ac_tool_warned=yes ;;
19068 esac
19069     AR=$ac_ct_AR
19070   fi
19071 else
19072   AR="$ac_cv_prog_AR"
19073 fi
19074
19075     if test "x$AR" = "x" ; then
19076         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19077 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19078    { (exit 1); exit 1; }; }
19079     fi
19080 fi
19081
19082
19083 if test "$wxUSE_MAC" = 1; then
19084
19085 retest_macosx_linking=no
19086
19087 OSX_ARCH_OPTS=""
19088 if test "x$wxUSE_MAC_ARCH" != xno; then
19089     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19090 fi
19091
19092     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19093                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19094             # Implicitly turn on the new --with-macosx-sdk using the default
19095             # SDK which provides the behaviour this option has always had.
19096             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19097                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19098 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19099                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19100 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19101                 wxUSE_MACOSX_SDK=yes
19102             fi
19103         else
19104             # Complain to user if he specified an argument to --enable-universal_binary
19105             # and also 1) specified --with-macosx-sdk using the default (yes) or
19106             # 2) specified --with-macosx-sdk using a path or 3) specified
19107             # --without-macosx-sdk (no).
19108             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19109                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19110 See \`config.log' for more details." >&5
19111 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19112 See \`config.log' for more details." >&2;}
19113    { (exit 1); exit 1; }; }
19114             else
19115                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19116                 # special-case the empty string because the below test simply
19117                 # converts "no" to the empty string anyway.
19118                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19119                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19120 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19121             fi
19122         fi
19123                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19124         if test "$wxUSE_OSX_COCOA" = 1; then
19125             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19126         fi
19127         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19128 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19129         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19130 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19131
19132                                                                                                                 retest_macosx_linking=yes
19133
19134                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19135 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19136         bk_use_pch=no
19137     fi
19138
19139 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19140 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19141 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19142 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19143 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19144
19145 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19146     wxUSE_MACOSX_SDK=
19147 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19148     # TODO: Search for most recent SDK and use it.
19149     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19150 fi
19151
19152
19153 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19154     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19155 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19156     if ! test -d "$wxUSE_MACOSX_SDK"; then
19157         { { echo "$as_me:$LINENO: error: not found
19158 See \`config.log' for more details." >&5
19159 echo "$as_me: error: not found
19160 See \`config.log' for more details." >&2;}
19161    { (exit 1); exit 1; }; }
19162     else
19163         { echo "$as_me:$LINENO: result: exists" >&5
19164 echo "${ECHO_T}exists" >&6; }
19165     fi
19166         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19167     retest_macosx_linking=yes
19168             fi
19169
19170 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19171     wxUSE_MACOSX_VERSION_MIN=
19172 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19173     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19174         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19175 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19176
19177         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/'`
19178
19179         # If that failed, try again with the new key
19180         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19181
19182             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/'`
19183
19184         fi
19185
19186         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19187             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19188             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19189 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19190         else
19191             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19192 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19193             wxUSE_MACOSX_VERSION_MIN=
19194         fi
19195     else
19196         wxUSE_MACOSX_VERSION_MIN=
19197     fi
19198 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19199     for ac_prog in sw_vers
19200 do
19201   # Extract the first word of "$ac_prog", so it can be a program name with args.
19202 set dummy $ac_prog; ac_word=$2
19203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19205 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19206   echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208   if test -n "$OSX_SW_VERS"; then
19209   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19210 else
19211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19212 for as_dir in $PATH
19213 do
19214   IFS=$as_save_IFS
19215   test -z "$as_dir" && as_dir=.
19216   for ac_exec_ext in '' $ac_executable_extensions; do
19217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19218     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19220     break 2
19221   fi
19222 done
19223 done
19224 IFS=$as_save_IFS
19225
19226 fi
19227 fi
19228 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19229 if test -n "$OSX_SW_VERS"; then
19230   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19231 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19232 else
19233   { echo "$as_me:$LINENO: result: no" >&5
19234 echo "${ECHO_T}no" >&6; }
19235 fi
19236
19237
19238   test -n "$OSX_SW_VERS" && break
19239 done
19240
19241     if test "$OSX_SW_VERS" != ""; then
19242         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19243     else
19244                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19245 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19246         OSX_VERSION="10.4"
19247     fi
19248
19249     case "$OSX_VERSION" in
19250         10.4* )
19251             wxUSE_MACOSX_VERSION_MIN=10.4
19252             ;;
19253
19254         * )
19255             if test "$wxUSE_OSX_CARBON" = 1; then
19256                 # otherwise configure stops on leopard for universal_binary
19257                 wxUSE_MACOSX_VERSION_MIN=10.4
19258             else
19259                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19260                 wxUSE_MACOSX_VERSION_MIN=10.5
19261             fi
19262             ;;
19263     esac
19264 fi
19265
19266 NEEDS_GCC40="no"
19267 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19268     NEEDS_GCC40="yes"
19269 fi
19270
19271 if test "$wxUSE_OSX_CARBON" = 1; then
19272     NEEDS_GCC40="yes"
19273 fi
19274
19275 if test "x$NEEDS_GCC40" == "xyes"; then
19276     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19277     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19278     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19279     if test "x$CC" = "xgcc"; then
19280         CCVERSION=`$CC --version | grep 4.[2-9].`
19281         if test "x$CCVERSION" != "x"; then
19282             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19283             CC="gcc-4.0"
19284         fi
19285     fi
19286
19287     if test "x$CXX" = "xg++"; then
19288         CCVERSION=`$CXX --version | grep 4.[2-9].`
19289         if test "x$CCVERSION" != "x"; then
19290             CXX="g++-4.0"
19291         fi
19292     fi
19293 fi
19294
19295 if test "x$MACOSX_SDK_OPTS" != "x"; then
19296     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19297     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19298     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19299 fi
19300
19301 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19302     if test "$wxUSE_OSX_IPHONE" = 1; then
19303         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19304     else
19305         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19306     fi
19307     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19308     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19309     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19310     retest_macosx_linking=yes
19311 fi
19312
19313 if test "x$retest_macosx_linking" = "xyes"; then
19314     ac_ext=c
19315 ac_cpp='$CPP $CPPFLAGS'
19316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19319
19320     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19321 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19322     cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328
19329 int
19330 main ()
19331 {
19332
19333   ;
19334   return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_link") 2>conftest.er1
19345   ac_status=$?
19346   grep -v '^ *+' conftest.er1 >conftest.err
19347   rm -f conftest.er1
19348   cat conftest.err >&5
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); } && {
19351          test -z "$ac_c_werror_flag" ||
19352          test ! -s conftest.err
19353        } && test -s conftest$ac_exeext &&
19354        $as_test_x conftest$ac_exeext; then
19355   { echo "$as_me:$LINENO: result: yes" >&5
19356 echo "${ECHO_T}yes" >&6; }
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19362 See \`config.log' for more details." >&5
19363 echo "$as_me: error: no.  Try a different SDK
19364 See \`config.log' for more details." >&2;}
19365    { (exit 1); exit 1; }; }; exit 1
19366 fi
19367
19368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19369       conftest$ac_exeext conftest.$ac_ext
19370     ac_ext=c
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19375
19376
19377     ac_ext=cpp
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19384 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19385     cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391
19392 int
19393 main ()
19394 {
19395
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404   *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407   (eval "$ac_link") 2>conftest.er1
19408   ac_status=$?
19409   grep -v '^ *+' conftest.er1 >conftest.err
19410   rm -f conftest.er1
19411   cat conftest.err >&5
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); } && {
19414          test -z "$ac_cxx_werror_flag" ||
19415          test ! -s conftest.err
19416        } && test -s conftest$ac_exeext &&
19417        $as_test_x conftest$ac_exeext; then
19418   { echo "$as_me:$LINENO: result: yes" >&5
19419 echo "${ECHO_T}yes" >&6; }
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19425 See \`config.log' for more details." >&5
19426 echo "$as_me: error: no.  Try a different SDK
19427 See \`config.log' for more details." >&2;}
19428    { (exit 1); exit 1; }; }; exit 1
19429 fi
19430
19431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19432       conftest$ac_exeext conftest.$ac_ext
19433     ac_ext=c
19434 ac_cpp='$CPP $CPPFLAGS'
19435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
19439 fi
19440
19441 fi
19442 case "${host}" in
19443
19444                 *-*-darwin* )
19445         INSTALL_PROGRAM="cp -fp"
19446         INSTALL_DATA="cp -fp"
19447         ;;
19448     *)
19449         ;;
19450 esac
19451
19452
19453 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19454     CXXFLAGS="-qunique $CXXFLAGS"
19455 fi
19456
19457 case "${host}" in
19458   powerpc-*-darwin* )
19459     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19460 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19461     cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467
19468 int
19469 main ()
19470 {
19471 #ifndef __POWERPC__
19472         choke me for lack of PowerPC
19473 #endif
19474
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (ac_try="$ac_compile"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_compile") 2>conftest.er1
19487   ac_status=$?
19488   grep -v '^ *+' conftest.er1 >conftest.err
19489   rm -f conftest.er1
19490   cat conftest.err >&5
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } && {
19493          test -z "$ac_c_werror_flag" ||
19494          test ! -s conftest.err
19495        } && test -s conftest.$ac_objext; then
19496   { echo "$as_me:$LINENO: result: yes" >&5
19497 echo "${ECHO_T}yes" >&6; }
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502         { echo "$as_me:$LINENO: result: no" >&5
19503 echo "${ECHO_T}no" >&6; }
19504         cat >>confdefs.h <<\_ACEOF
19505 #define __POWERPC__ 1
19506 _ACEOF
19507
19508
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512   ;;
19513 esac
19514
19515 case "${host}" in
19516   *-*-darwin* )
19517     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19518 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19519     cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525 #include <CoreFoundation/CFBase.h>
19526
19527 int
19528 main ()
19529 {
19530
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (ac_try="$ac_compile"
19537 case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_compile") 2>conftest.er1
19543   ac_status=$?
19544   grep -v '^ *+' conftest.er1 >conftest.err
19545   rm -f conftest.er1
19546   cat conftest.err >&5
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } && {
19549          test -z "$ac_c_werror_flag" ||
19550          test ! -s conftest.err
19551        } && test -s conftest.$ac_objext; then
19552   { echo "$as_me:$LINENO: result: yes" >&5
19553 echo "${ECHO_T}yes" >&6; }
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558         { echo "$as_me:$LINENO: result: no" >&5
19559 echo "${ECHO_T}no" >&6; }
19560         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19561 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19562         cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 #define __CF_USE_FRAMEWORK_INCLUDES__
19569 #include <CoreFoundation/CFBase.h>
19570
19571 int
19572 main ()
19573 {
19574
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_compile") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } && {
19593          test -z "$ac_c_werror_flag" ||
19594          test ! -s conftest.err
19595        } && test -s conftest.$ac_objext; then
19596   { echo "$as_me:$LINENO: result: yes" >&5
19597 echo "${ECHO_T}yes" >&6; }
19598                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19604 See \`config.log' for more details." >&5
19605 echo "$as_me: error: no.  CoreFoundation not available.
19606 See \`config.log' for more details." >&2;}
19607    { (exit 1); exit 1; }; }
19608
19609 fi
19610
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612
19613
19614 fi
19615
19616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617   ;;
19618 esac
19619
19620 wants_win32=0
19621 doesnt_want_win32=0
19622 case "${host}" in
19623   *-*-cygwin*)
19624       if test "$wxUSE_MSW" = 1 ; then
19625         wants_win32=1
19626       else
19627                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19628 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19629 if test "${wx_cv_nocygwin+set}" = set; then
19630   echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632
19633                 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639
19640 int
19641 main ()
19642 {
19643
19644                         #ifdef __MINGW32__
19645                             choke me
19646                         #endif
19647
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656   *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659   (eval "$ac_compile") 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } && {
19666          test -z "$ac_c_werror_flag" ||
19667          test ! -s conftest.err
19668        } && test -s conftest.$ac_objext; then
19669   wx_cv_nocygwin=no
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674         wx_cv_nocygwin=yes
19675
19676 fi
19677
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19679
19680
19681 fi
19682 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19683 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19684
19685         if test "$wx_cv_nocygwin" = "yes"; then
19686             wants_win32=1
19687         else
19688             doesnt_want_win32=1
19689         fi
19690       fi
19691       if test "$wants_win32" = 1 ; then
19692         BAKEFILE_FORCE_PLATFORM=win32
19693       fi
19694   ;;
19695   *-*-mingw*)
19696       wants_win32=1
19697   ;;
19698 esac
19699
19700 if test "$wxUSE_WINE" = "yes"; then
19701     wants_win32=1
19702     LDFLAGS_GUI="-mwindows"
19703 fi
19704
19705 if test "$wants_win32" = 1 ; then
19706     USE_UNIX=0
19707     USE_WIN32=1
19708     cat >>confdefs.h <<\_ACEOF
19709 #define __WIN32__ 1
19710 _ACEOF
19711
19712     cat >>confdefs.h <<\_ACEOF
19713 #define __WIN95__ 1
19714 _ACEOF
19715
19716     cat >>confdefs.h <<\_ACEOF
19717 #define __WINDOWS__ 1
19718 _ACEOF
19719
19720     cat >>confdefs.h <<\_ACEOF
19721 #define __GNUWIN32__ 1
19722 _ACEOF
19723
19724     cat >>confdefs.h <<\_ACEOF
19725 #define STRICT 1
19726 _ACEOF
19727
19728 fi
19729 if test "$doesnt_want_win32" = 1 ; then
19730     USE_UNIX=1
19731     USE_WIN32=0
19732 fi
19733
19734 if test "$USE_UNIX" = 1 ; then
19735     wxUSE_UNIX=yes
19736     cat >>confdefs.h <<\_ACEOF
19737 #define __UNIX__ 1
19738 _ACEOF
19739
19740 fi
19741
19742 case "${host}" in
19743   *-pc-os2_emx | *-pc-os2-emx )
19744                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19745                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19746 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19747 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750   ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-lcExt  $LIBS"
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758
19759 /* Override any GCC internal prototype to avoid an error.
19760    Use char because int might match the return type of a GCC
19761    builtin and then its argument prototype would still apply.  */
19762 #ifdef __cplusplus
19763 extern "C"
19764 #endif
19765 char drand48 ();
19766 int
19767 main ()
19768 {
19769 return drand48 ();
19770   ;
19771   return 0;
19772 }
19773 _ACEOF
19774 rm -f conftest.$ac_objext conftest$ac_exeext
19775 if { (ac_try="$ac_link"
19776 case "(($ac_try" in
19777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778   *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781   (eval "$ac_link") 2>conftest.er1
19782   ac_status=$?
19783   grep -v '^ *+' conftest.er1 >conftest.err
19784   rm -f conftest.er1
19785   cat conftest.err >&5
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); } && {
19788          test -z "$ac_c_werror_flag" ||
19789          test ! -s conftest.err
19790        } && test -s conftest$ac_exeext &&
19791        $as_test_x conftest$ac_exeext; then
19792   ac_cv_lib_cExt_drand48=yes
19793 else
19794   echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797         ac_cv_lib_cExt_drand48=no
19798 fi
19799
19800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19801       conftest$ac_exeext conftest.$ac_ext
19802 LIBS=$ac_check_lib_save_LIBS
19803 fi
19804 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19805 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19806 if test $ac_cv_lib_cExt_drand48 = yes; then
19807   LIBS="$LIBS -lcExt"
19808 fi
19809
19810       else
19811                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19812       fi
19813                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19814 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19815 if test "${wx_cv_gccversion+set}" = set; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818
19819           if test "$cross_compiling" = yes; then
19820                 wx_cv_gccversion="EMX2"
19821
19822 else
19823   cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829
19830                   #include <stdio.h>
19831
19832                   int main()
19833                   {
19834                       FILE *f=fopen("conftestval", "w");
19835                       if (!f) exit(1);
19836                       fprintf(f,
19837                   #if (__GNUC__ < 3)
19838                               "EMX2"
19839                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19840                               "EMX3"
19841                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19842                               "Innotek5"
19843                   #else
19844                               "Innotek6"
19845                   #endif
19846                       );
19847                       exit(0);
19848                   }
19849
19850 _ACEOF
19851 rm -f conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_link") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19862   { (case "(($ac_try" in
19863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864   *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867   (eval "$ac_try") 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); }; }; then
19871   wx_cv_gccversion=`cat conftestval`
19872 else
19873   echo "$as_me: program exited with status $ac_status" >&5
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ( exit $ac_status )
19878 wx_cv_gccversion="EMX2"
19879 fi
19880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19881 fi
19882
19883
19884
19885 fi
19886 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19887 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19888       if test "$wx_cv_gccversion" = "EMX2"; then
19889           LIBS="$LIBS -lstdcpp"
19890           LDFLAGS="$LDFLAGS -Zsysv-signals"
19891       else
19892           if test "$wx_cv_gccversion" = "EMX3"; then
19893               LIBS="$LIBS -lstdcxx -lgcc"
19894               LDFLAGS="$LDFLAGS -Zsysv-signals"
19895           else
19896               LIBS="$LIBS -lstdc++"
19897           fi
19898       fi
19899       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19900         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19901 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19902         wxUSE_OMF=yes
19903         enable_omf=yes
19904       fi
19905         ;;
19906   *)
19907
19908       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19909 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19910 if test "${ac_cv_string_strcasecmp+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913
19914           cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h.  */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h.  */
19920
19921               #include <string.h>
19922
19923 int
19924 main ()
19925 {
19926
19927                   strcasecmp("foo", "bar");
19928
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_link") 2>conftest.er1
19941   ac_status=$?
19942   grep -v '^ *+' conftest.er1 >conftest.err
19943   rm -f conftest.er1
19944   cat conftest.err >&5
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } && {
19947          test -z "$ac_c_werror_flag" ||
19948          test ! -s conftest.err
19949        } && test -s conftest$ac_exeext &&
19950        $as_test_x conftest$ac_exeext; then
19951   ac_cv_string_strcasecmp=yes
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956         ac_cv_string_strcasecmp=no
19957
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961       conftest$ac_exeext conftest.$ac_ext
19962
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19965 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19966
19967       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19968           cat >>confdefs.h <<\_ACEOF
19969 #define HAVE_STRCASECMP_IN_STRING_H 1
19970 _ACEOF
19971
19972       else
19973           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19974 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19975 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978
19979               cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h.  */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h.  */
19985
19986                   #include <strings.h>
19987
19988 int
19989 main ()
19990 {
19991
19992                       strcasecmp("foo", "bar");
19993
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005   (eval "$ac_link") 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } && {
20012          test -z "$ac_c_werror_flag" ||
20013          test ! -s conftest.err
20014        } && test -s conftest$ac_exeext &&
20015        $as_test_x conftest$ac_exeext; then
20016   ac_cv_strings_strcasecmp=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         ac_cv_strings_strcasecmp=no
20022
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026       conftest$ac_exeext conftest.$ac_ext
20027
20028 fi
20029 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20030 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20031
20032           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20033               cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20035 _ACEOF
20036
20037           else
20038               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20039 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20040    { (exit 1); exit 1; }; }
20041           fi
20042       fi
20043
20044         ;;
20045 esac
20046
20047
20048 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20050 if test "${ac_cv_header_stdc+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 #include <stdlib.h>
20060 #include <stdarg.h>
20061 #include <string.h>
20062 #include <float.h>
20063
20064 int
20065 main ()
20066 {
20067
20068   ;
20069   return 0;
20070 }
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076   *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079   (eval "$ac_compile") 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } && {
20086          test -z "$ac_c_werror_flag" ||
20087          test ! -s conftest.err
20088        } && test -s conftest.$ac_objext; then
20089   ac_cv_header_stdc=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094         ac_cv_header_stdc=no
20095 fi
20096
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098
20099 if test $ac_cv_header_stdc = yes; then
20100   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20101   cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 #include <string.h>
20108
20109 _ACEOF
20110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20111   $EGREP "memchr" >/dev/null 2>&1; then
20112   :
20113 else
20114   ac_cv_header_stdc=no
20115 fi
20116 rm -f conftest*
20117
20118 fi
20119
20120 if test $ac_cv_header_stdc = yes; then
20121   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20122   cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <stdlib.h>
20129
20130 _ACEOF
20131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132   $EGREP "free" >/dev/null 2>&1; then
20133   :
20134 else
20135   ac_cv_header_stdc=no
20136 fi
20137 rm -f conftest*
20138
20139 fi
20140
20141 if test $ac_cv_header_stdc = yes; then
20142   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20143   if test "$cross_compiling" = yes; then
20144   :
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 #include <ctype.h>
20153 #include <stdlib.h>
20154 #if ((' ' & 0x0FF) == 0x020)
20155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20157 #else
20158 # define ISLOWER(c) \
20159                    (('a' <= (c) && (c) <= 'i') \
20160                      || ('j' <= (c) && (c) <= 'r') \
20161                      || ('s' <= (c) && (c) <= 'z'))
20162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20163 #endif
20164
20165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20166 int
20167 main ()
20168 {
20169   int i;
20170   for (i = 0; i < 256; i++)
20171     if (XOR (islower (i), ISLOWER (i))
20172         || toupper (i) != TOUPPER (i))
20173       return 2;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181   *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184   (eval "$ac_link") 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20188   { (case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_try") 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   :
20198 else
20199   echo "$as_me: program exited with status $ac_status" >&5
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 ( exit $ac_status )
20204 ac_cv_header_stdc=no
20205 fi
20206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20207 fi
20208
20209
20210 fi
20211 fi
20212 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20213 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20214 if test $ac_cv_header_stdc = yes; then
20215
20216 cat >>confdefs.h <<\_ACEOF
20217 #define STDC_HEADERS 1
20218 _ACEOF
20219
20220 fi
20221
20222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20233                   inttypes.h stdint.h unistd.h
20234 do
20235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239   echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241   cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247 $ac_includes_default
20248
20249 #include <$ac_header>
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255   *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258   (eval "$ac_compile") 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } && {
20265          test -z "$ac_c_werror_flag" ||
20266          test ! -s conftest.err
20267        } && test -s conftest.$ac_objext; then
20268   eval "$as_ac_Header=yes"
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273         eval "$as_ac_Header=no"
20274 fi
20275
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 fi
20278 ac_res=`eval echo '${'$as_ac_Header'}'`
20279                { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20282   cat >>confdefs.h <<_ACEOF
20283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20284 _ACEOF
20285
20286 fi
20287
20288 done
20289
20290
20291
20292
20293 for ac_header in langinfo.h wchar.h
20294 do
20295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307 $ac_includes_default
20308
20309 #include <$ac_header>
20310 _ACEOF
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_compile") 2>conftest.er1
20319   ac_status=$?
20320   grep -v '^ *+' conftest.er1 >conftest.err
20321   rm -f conftest.er1
20322   cat conftest.err >&5
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); } && {
20325          test -z "$ac_c_werror_flag" ||
20326          test ! -s conftest.err
20327        } && test -s conftest.$ac_objext; then
20328   eval "$as_ac_Header=yes"
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         eval "$as_ac_Header=no"
20334 fi
20335
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 fi
20338 ac_res=`eval echo '${'$as_ac_Header'}'`
20339                { echo "$as_me:$LINENO: result: $ac_res" >&5
20340 echo "${ECHO_T}$ac_res" >&6; }
20341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20342   cat >>confdefs.h <<_ACEOF
20343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20344 _ACEOF
20345
20346 fi
20347
20348 done
20349
20350
20351 if test "$ac_cv_header_wchar_h" != "yes"; then
20352
20353 for ac_header in wcstr.h
20354 do
20355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h.  */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h.  */
20367 $ac_includes_default
20368
20369 #include <$ac_header>
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_compile") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && {
20385          test -z "$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        } && test -s conftest.$ac_objext; then
20388   eval "$as_ac_Header=yes"
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393         eval "$as_ac_Header=no"
20394 fi
20395
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 fi
20398 ac_res=`eval echo '${'$as_ac_Header'}'`
20399                { echo "$as_me:$LINENO: result: $ac_res" >&5
20400 echo "${ECHO_T}$ac_res" >&6; }
20401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20402   cat >>confdefs.h <<_ACEOF
20403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20404 _ACEOF
20405
20406 fi
20407
20408 done
20409
20410 fi
20411
20412 case "${host}" in
20413   *-pc-os2_emx | *-pc-os2-emx )
20414                   if test $ac_cv_header_langinfo_h = "yes" \
20415                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20416                      -o "$wx_cv_gccversion" = "EMX3" \
20417                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20418           LIBS="$LIBS -lintl"
20419       fi
20420   ;;
20421 esac
20422
20423 if test "$USE_UNIX" = 1 ; then
20424
20425 for ac_header in sys/select.h
20426 do
20427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20431   echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433   cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439 $ac_includes_default
20440
20441 #include <$ac_header>
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (ac_try="$ac_compile"
20445 case "(($ac_try" in
20446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447   *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450   (eval "$ac_compile") 2>conftest.er1
20451   ac_status=$?
20452   grep -v '^ *+' conftest.er1 >conftest.err
20453   rm -f conftest.er1
20454   cat conftest.err >&5
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } && {
20457          test -z "$ac_c_werror_flag" ||
20458          test ! -s conftest.err
20459        } && test -s conftest.$ac_objext; then
20460   eval "$as_ac_Header=yes"
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465         eval "$as_ac_Header=no"
20466 fi
20467
20468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469 fi
20470 ac_res=`eval echo '${'$as_ac_Header'}'`
20471                { echo "$as_me:$LINENO: result: $ac_res" >&5
20472 echo "${ECHO_T}$ac_res" >&6; }
20473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20474   cat >>confdefs.h <<_ACEOF
20475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20476 _ACEOF
20477
20478 fi
20479
20480 done
20481
20482 fi
20483
20484
20485 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20486 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20487 if test "${ac_cv_c_const+set}" = set; then
20488   echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490   cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496
20497 int
20498 main ()
20499 {
20500 /* FIXME: Include the comments suggested by Paul. */
20501 #ifndef __cplusplus
20502   /* Ultrix mips cc rejects this.  */
20503   typedef int charset[2];
20504   const charset cs;
20505   /* SunOS 4.1.1 cc rejects this.  */
20506   char const *const *pcpcc;
20507   char **ppc;
20508   /* NEC SVR4.0.2 mips cc rejects this.  */
20509   struct point {int x, y;};
20510   static struct point const zero = {0,0};
20511   /* AIX XL C 1.02.0.0 rejects this.
20512      It does not let you subtract one const X* pointer from another in
20513      an arm of an if-expression whose if-part is not a constant
20514      expression */
20515   const char *g = "string";
20516   pcpcc = &g + (g ? g-g : 0);
20517   /* HPUX 7.0 cc rejects these. */
20518   ++pcpcc;
20519   ppc = (char**) pcpcc;
20520   pcpcc = (char const *const *) ppc;
20521   { /* SCO 3.2v4 cc rejects this.  */
20522     char *t;
20523     char const *s = 0 ? (char *) 0 : (char const *) 0;
20524
20525     *t++ = 0;
20526     if (s) return 0;
20527   }
20528   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20529     int x[] = {25, 17};
20530     const int *foo = &x[0];
20531     ++foo;
20532   }
20533   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20534     typedef const int *iptr;
20535     iptr p = 0;
20536     ++p;
20537   }
20538   { /* AIX XL C 1.02.0.0 rejects this saying
20539        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20540     struct s { int j; const int *ap[3]; };
20541     struct s *b; b->j = 5;
20542   }
20543   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20544     const int foo = 10;
20545     if (!foo) return 0;
20546   }
20547   return !cs[0] && !zero.x;
20548 #endif
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_compile") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } && {
20568          test -z "$ac_c_werror_flag" ||
20569          test ! -s conftest.err
20570        } && test -s conftest.$ac_objext; then
20571   ac_cv_c_const=yes
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576         ac_cv_c_const=no
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 fi
20581 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20582 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20583 if test $ac_cv_c_const = no; then
20584
20585 cat >>confdefs.h <<\_ACEOF
20586 #define const
20587 _ACEOF
20588
20589 fi
20590
20591 { echo "$as_me:$LINENO: checking for inline" >&5
20592 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20593 if test "${ac_cv_c_inline+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596   ac_cv_c_inline=no
20597 for ac_kw in inline __inline__ __inline; do
20598   cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604 #ifndef __cplusplus
20605 typedef int foo_t;
20606 static $ac_kw foo_t static_foo () {return 0; }
20607 $ac_kw foo_t foo () {return 0; }
20608 #endif
20609
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (ac_try="$ac_compile"
20613 case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618   (eval "$ac_compile") 2>conftest.er1
20619   ac_status=$?
20620   grep -v '^ *+' conftest.er1 >conftest.err
20621   rm -f conftest.er1
20622   cat conftest.err >&5
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } && {
20625          test -z "$ac_c_werror_flag" ||
20626          test ! -s conftest.err
20627        } && test -s conftest.$ac_objext; then
20628   ac_cv_c_inline=$ac_kw
20629 else
20630   echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633
20634 fi
20635
20636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637   test "$ac_cv_c_inline" != no && break
20638 done
20639
20640 fi
20641 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20642 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20643
20644
20645 case $ac_cv_c_inline in
20646   inline | yes) ;;
20647   *)
20648     case $ac_cv_c_inline in
20649       no) ac_val=;;
20650       *) ac_val=$ac_cv_c_inline;;
20651     esac
20652     cat >>confdefs.h <<_ACEOF
20653 #ifndef __cplusplus
20654 #define inline $ac_val
20655 #endif
20656 _ACEOF
20657     ;;
20658 esac
20659
20660
20661 { echo "$as_me:$LINENO: checking for short" >&5
20662 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20663 if test "${ac_cv_type_short+set}" = set; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666   cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 $ac_includes_default
20673 typedef short ac__type_new_;
20674 int
20675 main ()
20676 {
20677 if ((ac__type_new_ *) 0)
20678   return 0;
20679 if (sizeof (ac__type_new_))
20680   return 0;
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692   (eval "$ac_compile") 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } && {
20699          test -z "$ac_c_werror_flag" ||
20700          test ! -s conftest.err
20701        } && test -s conftest.$ac_objext; then
20702   ac_cv_type_short=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707         ac_cv_type_short=no
20708 fi
20709
20710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 fi
20712 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20713 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20714
20715 # The cast to long int works around a bug in the HP C Compiler
20716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20718 # This bug is HP SR number 8606223364.
20719 { echo "$as_me:$LINENO: checking size of short" >&5
20720 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20721 if test "${ac_cv_sizeof_short+set}" = set; then
20722   echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724   if test "$cross_compiling" = yes; then
20725   # Depending upon the size, compute the lo and hi bounds.
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h.  */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h.  */
20732 $ac_includes_default
20733    typedef short ac__type_sizeof_;
20734 int
20735 main ()
20736 {
20737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20738 test_array [0] = 0
20739
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_compile") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } && {
20758          test -z "$ac_c_werror_flag" ||
20759          test ! -s conftest.err
20760        } && test -s conftest.$ac_objext; then
20761   ac_lo=0 ac_mid=0
20762   while :; do
20763     cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770    typedef short ac__type_sizeof_;
20771 int
20772 main ()
20773 {
20774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20775 test_array [0] = 0
20776
20777   ;
20778   return 0;
20779 }
20780 _ACEOF
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_compile") 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } && {
20795          test -z "$ac_c_werror_flag" ||
20796          test ! -s conftest.err
20797        } && test -s conftest.$ac_objext; then
20798   ac_hi=$ac_mid; break
20799 else
20800   echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20802
20803         ac_lo=`expr $ac_mid + 1`
20804                         if test $ac_lo -le $ac_mid; then
20805                           ac_lo= ac_hi=
20806                           break
20807                         fi
20808                         ac_mid=`expr 2 '*' $ac_mid + 1`
20809 fi
20810
20811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812   done
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817         cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h.  */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h.  */
20823 $ac_includes_default
20824    typedef short ac__type_sizeof_;
20825 int
20826 main ()
20827 {
20828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20829 test_array [0] = 0
20830
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_compile") 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } && {
20849          test -z "$ac_c_werror_flag" ||
20850          test ! -s conftest.err
20851        } && test -s conftest.$ac_objext; then
20852   ac_hi=-1 ac_mid=-1
20853   while :; do
20854     cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 $ac_includes_default
20861    typedef short ac__type_sizeof_;
20862 int
20863 main ()
20864 {
20865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20866 test_array [0] = 0
20867
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && {
20886          test -z "$ac_c_werror_flag" ||
20887          test ! -s conftest.err
20888        } && test -s conftest.$ac_objext; then
20889   ac_lo=$ac_mid; break
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894         ac_hi=`expr '(' $ac_mid ')' - 1`
20895                         if test $ac_mid -le $ac_hi; then
20896                           ac_lo= ac_hi=
20897                           break
20898                         fi
20899                         ac_mid=`expr 2 '*' $ac_mid`
20900 fi
20901
20902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20903   done
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_lo= ac_hi=
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 # Binary search between lo and hi bounds.
20916 while test "x$ac_lo" != "x$ac_hi"; do
20917   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20918   cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h.  */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h.  */
20924 $ac_includes_default
20925    typedef short ac__type_sizeof_;
20926 int
20927 main ()
20928 {
20929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20930 test_array [0] = 0
20931
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } && {
20950          test -z "$ac_c_werror_flag" ||
20951          test ! -s conftest.err
20952        } && test -s conftest.$ac_objext; then
20953   ac_hi=$ac_mid
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958         ac_lo=`expr '(' $ac_mid ')' + 1`
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 done
20963 case $ac_lo in
20964 ?*) ac_cv_sizeof_short=$ac_lo;;
20965 '') if test "$ac_cv_type_short" = yes; then
20966      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20967 See \`config.log' for more details." >&5
20968 echo "$as_me: error: cannot compute sizeof (short)
20969 See \`config.log' for more details." >&2;}
20970    { (exit 77); exit 77; }; }
20971    else
20972      ac_cv_sizeof_short=0
20973    fi ;;
20974 esac
20975 else
20976   cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 $ac_includes_default
20983    typedef short ac__type_sizeof_;
20984 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20985 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20986 #include <stdio.h>
20987 #include <stdlib.h>
20988 int
20989 main ()
20990 {
20991
20992   FILE *f = fopen ("conftest.val", "w");
20993   if (! f)
20994     return 1;
20995   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20996     {
20997       long int i = longval ();
20998       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20999         return 1;
21000       fprintf (f, "%ld\n", i);
21001     }
21002   else
21003     {
21004       unsigned long int i = ulongval ();
21005       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21006         return 1;
21007       fprintf (f, "%lu\n", i);
21008     }
21009   return ferror (f) || fclose (f) != 0;
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022   (eval "$ac_link") 2>&5
21023   ac_status=$?
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21026   { (case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031   (eval "$ac_try") 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_sizeof_short=`cat conftest.val`
21036 else
21037   echo "$as_me: program exited with status $ac_status" >&5
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ( exit $ac_status )
21042 if test "$ac_cv_type_short" = yes; then
21043      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21044 See \`config.log' for more details." >&5
21045 echo "$as_me: error: cannot compute sizeof (short)
21046 See \`config.log' for more details." >&2;}
21047    { (exit 77); exit 77; }; }
21048    else
21049      ac_cv_sizeof_short=0
21050    fi
21051 fi
21052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21053 fi
21054 rm -f conftest.val
21055 fi
21056 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21057 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21058
21059
21060
21061 cat >>confdefs.h <<_ACEOF
21062 #define SIZEOF_SHORT $ac_cv_sizeof_short
21063 _ACEOF
21064
21065
21066 { echo "$as_me:$LINENO: checking for void *" >&5
21067 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21068 if test "${ac_cv_type_void_p+set}" = set; then
21069   echo $ECHO_N "(cached) $ECHO_C" >&6
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 $ac_includes_default
21078 typedef void * ac__type_new_;
21079 int
21080 main ()
21081 {
21082 if ((ac__type_new_ *) 0)
21083   return 0;
21084 if (sizeof (ac__type_new_))
21085   return 0;
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (ac_try="$ac_compile"
21092 case "(($ac_try" in
21093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094   *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097   (eval "$ac_compile") 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && {
21104          test -z "$ac_c_werror_flag" ||
21105          test ! -s conftest.err
21106        } && test -s conftest.$ac_objext; then
21107   ac_cv_type_void_p=yes
21108 else
21109   echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112         ac_cv_type_void_p=no
21113 fi
21114
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 fi
21117 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21118 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21119
21120 # The cast to long int works around a bug in the HP C Compiler
21121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21123 # This bug is HP SR number 8606223364.
21124 { echo "$as_me:$LINENO: checking size of void *" >&5
21125 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21126 if test "${ac_cv_sizeof_void_p+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129   if test "$cross_compiling" = yes; then
21130   # Depending upon the size, compute the lo and hi bounds.
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 $ac_includes_default
21138    typedef void * ac__type_sizeof_;
21139 int
21140 main ()
21141 {
21142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21143 test_array [0] = 0
21144
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_compile") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } && {
21163          test -z "$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        } && test -s conftest.$ac_objext; then
21166   ac_lo=0 ac_mid=0
21167   while :; do
21168     cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 $ac_includes_default
21175    typedef void * ac__type_sizeof_;
21176 int
21177 main ()
21178 {
21179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21180 test_array [0] = 0
21181
21182   ;
21183   return 0;
21184 }
21185 _ACEOF
21186 rm -f conftest.$ac_objext
21187 if { (ac_try="$ac_compile"
21188 case "(($ac_try" in
21189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190   *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193   (eval "$ac_compile") 2>conftest.er1
21194   ac_status=$?
21195   grep -v '^ *+' conftest.er1 >conftest.err
21196   rm -f conftest.er1
21197   cat conftest.err >&5
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } && {
21200          test -z "$ac_c_werror_flag" ||
21201          test ! -s conftest.err
21202        } && test -s conftest.$ac_objext; then
21203   ac_hi=$ac_mid; break
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208         ac_lo=`expr $ac_mid + 1`
21209                         if test $ac_lo -le $ac_mid; then
21210                           ac_lo= ac_hi=
21211                           break
21212                         fi
21213                         ac_mid=`expr 2 '*' $ac_mid + 1`
21214 fi
21215
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217   done
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222         cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h.  */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h.  */
21228 $ac_includes_default
21229    typedef void * ac__type_sizeof_;
21230 int
21231 main ()
21232 {
21233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21234 test_array [0] = 0
21235
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_compile") 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && {
21254          test -z "$ac_c_werror_flag" ||
21255          test ! -s conftest.err
21256        } && test -s conftest.$ac_objext; then
21257   ac_hi=-1 ac_mid=-1
21258   while :; do
21259     cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 $ac_includes_default
21266    typedef void * ac__type_sizeof_;
21267 int
21268 main ()
21269 {
21270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21271 test_array [0] = 0
21272
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_compile") 2>conftest.er1
21285   ac_status=$?
21286   grep -v '^ *+' conftest.er1 >conftest.err
21287   rm -f conftest.er1
21288   cat conftest.err >&5
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } && {
21291          test -z "$ac_c_werror_flag" ||
21292          test ! -s conftest.err
21293        } && test -s conftest.$ac_objext; then
21294   ac_lo=$ac_mid; break
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299         ac_hi=`expr '(' $ac_mid ')' - 1`
21300                         if test $ac_mid -le $ac_hi; then
21301                           ac_lo= ac_hi=
21302                           break
21303                         fi
21304                         ac_mid=`expr 2 '*' $ac_mid`
21305 fi
21306
21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308   done
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313         ac_lo= ac_hi=
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 # Binary search between lo and hi bounds.
21321 while test "x$ac_lo" != "x$ac_hi"; do
21322   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21323   cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 $ac_includes_default
21330    typedef void * ac__type_sizeof_;
21331 int
21332 main ()
21333 {
21334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21335 test_array [0] = 0
21336
21337   ;
21338   return 0;
21339 }
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_compile") 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } && {
21355          test -z "$ac_c_werror_flag" ||
21356          test ! -s conftest.err
21357        } && test -s conftest.$ac_objext; then
21358   ac_hi=$ac_mid
21359 else
21360   echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363         ac_lo=`expr '(' $ac_mid ')' + 1`
21364 fi
21365
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 done
21368 case $ac_lo in
21369 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21370 '') if test "$ac_cv_type_void_p" = yes; then
21371      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21372 See \`config.log' for more details." >&5
21373 echo "$as_me: error: cannot compute sizeof (void *)
21374 See \`config.log' for more details." >&2;}
21375    { (exit 77); exit 77; }; }
21376    else
21377      ac_cv_sizeof_void_p=0
21378    fi ;;
21379 esac
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 $ac_includes_default
21388    typedef void * ac__type_sizeof_;
21389 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21390 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21391 #include <stdio.h>
21392 #include <stdlib.h>
21393 int
21394 main ()
21395 {
21396
21397   FILE *f = fopen ("conftest.val", "w");
21398   if (! f)
21399     return 1;
21400   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21401     {
21402       long int i = longval ();
21403       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21404         return 1;
21405       fprintf (f, "%ld\n", i);
21406     }
21407   else
21408     {
21409       unsigned long int i = ulongval ();
21410       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21411         return 1;
21412       fprintf (f, "%lu\n", i);
21413     }
21414   return ferror (f) || fclose (f) != 0;
21415
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest$ac_exeext
21421 if { (ac_try="$ac_link"
21422 case "(($ac_try" in
21423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424   *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427   (eval "$ac_link") 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21431   { (case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_try") 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; }; then
21440   ac_cv_sizeof_void_p=`cat conftest.val`
21441 else
21442   echo "$as_me: program exited with status $ac_status" >&5
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446 ( exit $ac_status )
21447 if test "$ac_cv_type_void_p" = yes; then
21448      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21449 See \`config.log' for more details." >&5
21450 echo "$as_me: error: cannot compute sizeof (void *)
21451 See \`config.log' for more details." >&2;}
21452    { (exit 77); exit 77; }; }
21453    else
21454      ac_cv_sizeof_void_p=0
21455    fi
21456 fi
21457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21458 fi
21459 rm -f conftest.val
21460 fi
21461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21462 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21463
21464
21465
21466 cat >>confdefs.h <<_ACEOF
21467 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21468 _ACEOF
21469
21470
21471 { echo "$as_me:$LINENO: checking for int" >&5
21472 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21473 if test "${ac_cv_type_int+set}" = set; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482 $ac_includes_default
21483 typedef int ac__type_new_;
21484 int
21485 main ()
21486 {
21487 if ((ac__type_new_ *) 0)
21488   return 0;
21489 if (sizeof (ac__type_new_))
21490   return 0;
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext
21496 if { (ac_try="$ac_compile"
21497 case "(($ac_try" in
21498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499   *) ac_try_echo=$ac_try;;
21500 esac
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502   (eval "$ac_compile") 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && {
21509          test -z "$ac_c_werror_flag" ||
21510          test ! -s conftest.err
21511        } && test -s conftest.$ac_objext; then
21512   ac_cv_type_int=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         ac_cv_type_int=no
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 fi
21522 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21523 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21524
21525 # The cast to long int works around a bug in the HP C Compiler
21526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21528 # This bug is HP SR number 8606223364.
21529 { echo "$as_me:$LINENO: checking size of int" >&5
21530 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21531 if test "${ac_cv_sizeof_int+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   if test "$cross_compiling" = yes; then
21535   # Depending upon the size, compute the lo and hi bounds.
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 $ac_includes_default
21543    typedef int ac__type_sizeof_;
21544 int
21545 main ()
21546 {
21547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21548 test_array [0] = 0
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561   (eval "$ac_compile") 2>conftest.er1
21562   ac_status=$?
21563   grep -v '^ *+' conftest.er1 >conftest.err
21564   rm -f conftest.er1
21565   cat conftest.err >&5
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); } && {
21568          test -z "$ac_c_werror_flag" ||
21569          test ! -s conftest.err
21570        } && test -s conftest.$ac_objext; then
21571   ac_lo=0 ac_mid=0
21572   while :; do
21573     cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h.  */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h.  */
21579 $ac_includes_default
21580    typedef int ac__type_sizeof_;
21581 int
21582 main ()
21583 {
21584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21585 test_array [0] = 0
21586
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595   *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598   (eval "$ac_compile") 2>conftest.er1
21599   ac_status=$?
21600   grep -v '^ *+' conftest.er1 >conftest.err
21601   rm -f conftest.er1
21602   cat conftest.err >&5
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } && {
21605          test -z "$ac_c_werror_flag" ||
21606          test ! -s conftest.err
21607        } && test -s conftest.$ac_objext; then
21608   ac_hi=$ac_mid; break
21609 else
21610   echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613         ac_lo=`expr $ac_mid + 1`
21614                         if test $ac_lo -le $ac_mid; then
21615                           ac_lo= ac_hi=
21616                           break
21617                         fi
21618                         ac_mid=`expr 2 '*' $ac_mid + 1`
21619 fi
21620
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622   done
21623 else
21624   echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627         cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633 $ac_includes_default
21634    typedef int ac__type_sizeof_;
21635 int
21636 main ()
21637 {
21638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21639 test_array [0] = 0
21640
21641   ;
21642   return 0;
21643 }
21644 _ACEOF
21645 rm -f conftest.$ac_objext
21646 if { (ac_try="$ac_compile"
21647 case "(($ac_try" in
21648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649   *) ac_try_echo=$ac_try;;
21650 esac
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652   (eval "$ac_compile") 2>conftest.er1
21653   ac_status=$?
21654   grep -v '^ *+' conftest.er1 >conftest.err
21655   rm -f conftest.er1
21656   cat conftest.err >&5
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); } && {
21659          test -z "$ac_c_werror_flag" ||
21660          test ! -s conftest.err
21661        } && test -s conftest.$ac_objext; then
21662   ac_hi=-1 ac_mid=-1
21663   while :; do
21664     cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 $ac_includes_default
21671    typedef int ac__type_sizeof_;
21672 int
21673 main ()
21674 {
21675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21676 test_array [0] = 0
21677
21678   ;
21679   return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686   *) ac_try_echo=$ac_try;;
21687 esac
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689   (eval "$ac_compile") 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } && {
21696          test -z "$ac_c_werror_flag" ||
21697          test ! -s conftest.err
21698        } && test -s conftest.$ac_objext; then
21699   ac_lo=$ac_mid; break
21700 else
21701   echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21703
21704         ac_hi=`expr '(' $ac_mid ')' - 1`
21705                         if test $ac_mid -le $ac_hi; then
21706                           ac_lo= ac_hi=
21707                           break
21708                         fi
21709                         ac_mid=`expr 2 '*' $ac_mid`
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713   done
21714 else
21715   echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718         ac_lo= ac_hi=
21719 fi
21720
21721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 # Binary search between lo and hi bounds.
21726 while test "x$ac_lo" != "x$ac_hi"; do
21727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 $ac_includes_default
21735    typedef int ac__type_sizeof_;
21736 int
21737 main ()
21738 {
21739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21740 test_array [0] = 0
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753   (eval "$ac_compile") 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } && {
21760          test -z "$ac_c_werror_flag" ||
21761          test ! -s conftest.err
21762        } && test -s conftest.$ac_objext; then
21763   ac_hi=$ac_mid
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768         ac_lo=`expr '(' $ac_mid ')' + 1`
21769 fi
21770
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 done
21773 case $ac_lo in
21774 ?*) ac_cv_sizeof_int=$ac_lo;;
21775 '') if test "$ac_cv_type_int" = yes; then
21776      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21777 See \`config.log' for more details." >&5
21778 echo "$as_me: error: cannot compute sizeof (int)
21779 See \`config.log' for more details." >&2;}
21780    { (exit 77); exit 77; }; }
21781    else
21782      ac_cv_sizeof_int=0
21783    fi ;;
21784 esac
21785 else
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 $ac_includes_default
21793    typedef int ac__type_sizeof_;
21794 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21795 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21796 #include <stdio.h>
21797 #include <stdlib.h>
21798 int
21799 main ()
21800 {
21801
21802   FILE *f = fopen ("conftest.val", "w");
21803   if (! f)
21804     return 1;
21805   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21806     {
21807       long int i = longval ();
21808       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21809         return 1;
21810       fprintf (f, "%ld\n", i);
21811     }
21812   else
21813     {
21814       unsigned long int i = ulongval ();
21815       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21816         return 1;
21817       fprintf (f, "%lu\n", i);
21818     }
21819   return ferror (f) || fclose (f) != 0;
21820
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_link") 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21836   { (case "(($ac_try" in
21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838   *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841   (eval "$ac_try") 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   ac_cv_sizeof_int=`cat conftest.val`
21846 else
21847   echo "$as_me: program exited with status $ac_status" >&5
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851 ( exit $ac_status )
21852 if test "$ac_cv_type_int" = yes; then
21853      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21854 See \`config.log' for more details." >&5
21855 echo "$as_me: error: cannot compute sizeof (int)
21856 See \`config.log' for more details." >&2;}
21857    { (exit 77); exit 77; }; }
21858    else
21859      ac_cv_sizeof_int=0
21860    fi
21861 fi
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863 fi
21864 rm -f conftest.val
21865 fi
21866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21867 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21868
21869
21870
21871 cat >>confdefs.h <<_ACEOF
21872 #define SIZEOF_INT $ac_cv_sizeof_int
21873 _ACEOF
21874
21875
21876 { echo "$as_me:$LINENO: checking for long" >&5
21877 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21878 if test "${ac_cv_type_long+set}" = set; then
21879   echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881   cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887 $ac_includes_default
21888 typedef long ac__type_new_;
21889 int
21890 main ()
21891 {
21892 if ((ac__type_new_ *) 0)
21893   return 0;
21894 if (sizeof (ac__type_new_))
21895   return 0;
21896   ;
21897   return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_compile") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest.$ac_objext; then
21917   ac_cv_type_long=yes
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922         ac_cv_type_long=no
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 fi
21927 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21928 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21929
21930 # The cast to long int works around a bug in the HP C Compiler
21931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21933 # This bug is HP SR number 8606223364.
21934 { echo "$as_me:$LINENO: checking size of long" >&5
21935 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21936 if test "${ac_cv_sizeof_long+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   if test "$cross_compiling" = yes; then
21940   # Depending upon the size, compute the lo and hi bounds.
21941 cat >conftest.$ac_ext <<_ACEOF
21942 /* confdefs.h.  */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h.  */
21947 $ac_includes_default
21948    typedef long ac__type_sizeof_;
21949 int
21950 main ()
21951 {
21952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21953 test_array [0] = 0
21954
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963   *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966   (eval "$ac_compile") 2>conftest.er1
21967   ac_status=$?
21968   grep -v '^ *+' conftest.er1 >conftest.err
21969   rm -f conftest.er1
21970   cat conftest.err >&5
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } && {
21973          test -z "$ac_c_werror_flag" ||
21974          test ! -s conftest.err
21975        } && test -s conftest.$ac_objext; then
21976   ac_lo=0 ac_mid=0
21977   while :; do
21978     cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 $ac_includes_default
21985    typedef long ac__type_sizeof_;
21986 int
21987 main ()
21988 {
21989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21990 test_array [0] = 0
21991
21992   ;
21993   return 0;
21994 }
21995 _ACEOF
21996 rm -f conftest.$ac_objext
21997 if { (ac_try="$ac_compile"
21998 case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_compile") 2>conftest.er1
22004   ac_status=$?
22005   grep -v '^ *+' conftest.er1 >conftest.err
22006   rm -f conftest.er1
22007   cat conftest.err >&5
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); } && {
22010          test -z "$ac_c_werror_flag" ||
22011          test ! -s conftest.err
22012        } && test -s conftest.$ac_objext; then
22013   ac_hi=$ac_mid; break
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018         ac_lo=`expr $ac_mid + 1`
22019                         if test $ac_lo -le $ac_mid; then
22020                           ac_lo= ac_hi=
22021                           break
22022                         fi
22023                         ac_mid=`expr 2 '*' $ac_mid + 1`
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027   done
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032         cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 $ac_includes_default
22039    typedef long ac__type_sizeof_;
22040 int
22041 main ()
22042 {
22043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22044 test_array [0] = 0
22045
22046   ;
22047   return 0;
22048 }
22049 _ACEOF
22050 rm -f conftest.$ac_objext
22051 if { (ac_try="$ac_compile"
22052 case "(($ac_try" in
22053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054   *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057   (eval "$ac_compile") 2>conftest.er1
22058   ac_status=$?
22059   grep -v '^ *+' conftest.er1 >conftest.err
22060   rm -f conftest.er1
22061   cat conftest.err >&5
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); } && {
22064          test -z "$ac_c_werror_flag" ||
22065          test ! -s conftest.err
22066        } && test -s conftest.$ac_objext; then
22067   ac_hi=-1 ac_mid=-1
22068   while :; do
22069     cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075 $ac_includes_default
22076    typedef long ac__type_sizeof_;
22077 int
22078 main ()
22079 {
22080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22081 test_array [0] = 0
22082
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext
22088 if { (ac_try="$ac_compile"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_compile") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } && {
22101          test -z "$ac_c_werror_flag" ||
22102          test ! -s conftest.err
22103        } && test -s conftest.$ac_objext; then
22104   ac_lo=$ac_mid; break
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109         ac_hi=`expr '(' $ac_mid ')' - 1`
22110                         if test $ac_mid -le $ac_hi; then
22111                           ac_lo= ac_hi=
22112                           break
22113                         fi
22114                         ac_mid=`expr 2 '*' $ac_mid`
22115 fi
22116
22117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118   done
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         ac_lo= ac_hi=
22124 fi
22125
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 # Binary search between lo and hi bounds.
22131 while test "x$ac_lo" != "x$ac_hi"; do
22132   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22133   cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h.  */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h.  */
22139 $ac_includes_default
22140    typedef long ac__type_sizeof_;
22141 int
22142 main ()
22143 {
22144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22145 test_array [0] = 0
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (ac_try="$ac_compile"
22153 case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158   (eval "$ac_compile") 2>conftest.er1
22159   ac_status=$?
22160   grep -v '^ *+' conftest.er1 >conftest.err
22161   rm -f conftest.er1
22162   cat conftest.err >&5
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); } && {
22165          test -z "$ac_c_werror_flag" ||
22166          test ! -s conftest.err
22167        } && test -s conftest.$ac_objext; then
22168   ac_hi=$ac_mid
22169 else
22170   echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173         ac_lo=`expr '(' $ac_mid ')' + 1`
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177 done
22178 case $ac_lo in
22179 ?*) ac_cv_sizeof_long=$ac_lo;;
22180 '') if test "$ac_cv_type_long" = yes; then
22181      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22182 See \`config.log' for more details." >&5
22183 echo "$as_me: error: cannot compute sizeof (long)
22184 See \`config.log' for more details." >&2;}
22185    { (exit 77); exit 77; }; }
22186    else
22187      ac_cv_sizeof_long=0
22188    fi ;;
22189 esac
22190 else
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 $ac_includes_default
22198    typedef long ac__type_sizeof_;
22199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22201 #include <stdio.h>
22202 #include <stdlib.h>
22203 int
22204 main ()
22205 {
22206
22207   FILE *f = fopen ("conftest.val", "w");
22208   if (! f)
22209     return 1;
22210   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22211     {
22212       long int i = longval ();
22213       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22214         return 1;
22215       fprintf (f, "%ld\n", i);
22216     }
22217   else
22218     {
22219       unsigned long int i = ulongval ();
22220       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22221         return 1;
22222       fprintf (f, "%lu\n", i);
22223     }
22224   return ferror (f) || fclose (f) != 0;
22225
22226   ;
22227   return 0;
22228 }
22229 _ACEOF
22230 rm -f conftest$ac_exeext
22231 if { (ac_try="$ac_link"
22232 case "(($ac_try" in
22233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234   *) ac_try_echo=$ac_try;;
22235 esac
22236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22237   (eval "$ac_link") 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22241   { (case "(($ac_try" in
22242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243   *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246   (eval "$ac_try") 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; }; then
22250   ac_cv_sizeof_long=`cat conftest.val`
22251 else
22252   echo "$as_me: program exited with status $ac_status" >&5
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256 ( exit $ac_status )
22257 if test "$ac_cv_type_long" = yes; then
22258      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22259 See \`config.log' for more details." >&5
22260 echo "$as_me: error: cannot compute sizeof (long)
22261 See \`config.log' for more details." >&2;}
22262    { (exit 77); exit 77; }; }
22263    else
22264      ac_cv_sizeof_long=0
22265    fi
22266 fi
22267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22268 fi
22269 rm -f conftest.val
22270 fi
22271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22272 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22273
22274
22275
22276 cat >>confdefs.h <<_ACEOF
22277 #define SIZEOF_LONG $ac_cv_sizeof_long
22278 _ACEOF
22279
22280
22281 { echo "$as_me:$LINENO: checking for size_t" >&5
22282 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22283 if test "${ac_cv_type_size_t+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292 $ac_includes_default
22293 typedef size_t ac__type_new_;
22294 int
22295 main ()
22296 {
22297 if ((ac__type_new_ *) 0)
22298   return 0;
22299 if (sizeof (ac__type_new_))
22300   return 0;
22301   ;
22302   return 0;
22303 }
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309   *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312   (eval "$ac_compile") 2>conftest.er1
22313   ac_status=$?
22314   grep -v '^ *+' conftest.er1 >conftest.err
22315   rm -f conftest.er1
22316   cat conftest.err >&5
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } && {
22319          test -z "$ac_c_werror_flag" ||
22320          test ! -s conftest.err
22321        } && test -s conftest.$ac_objext; then
22322   ac_cv_type_size_t=yes
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327         ac_cv_type_size_t=no
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 fi
22332 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22333 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22334
22335 # The cast to long int works around a bug in the HP C Compiler
22336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22338 # This bug is HP SR number 8606223364.
22339 { echo "$as_me:$LINENO: checking size of size_t" >&5
22340 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22341 if test "${ac_cv_sizeof_size_t+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   if test "$cross_compiling" = yes; then
22345   # Depending upon the size, compute the lo and hi bounds.
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 $ac_includes_default
22353    typedef size_t ac__type_sizeof_;
22354 int
22355 main ()
22356 {
22357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22358 test_array [0] = 0
22359
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext
22365 if { (ac_try="$ac_compile"
22366 case "(($ac_try" in
22367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368   *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371   (eval "$ac_compile") 2>conftest.er1
22372   ac_status=$?
22373   grep -v '^ *+' conftest.er1 >conftest.err
22374   rm -f conftest.er1
22375   cat conftest.err >&5
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); } && {
22378          test -z "$ac_c_werror_flag" ||
22379          test ! -s conftest.err
22380        } && test -s conftest.$ac_objext; then
22381   ac_lo=0 ac_mid=0
22382   while :; do
22383     cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389 $ac_includes_default
22390    typedef size_t ac__type_sizeof_;
22391 int
22392 main ()
22393 {
22394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22395 test_array [0] = 0
22396
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405   *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408   (eval "$ac_compile") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } && {
22415          test -z "$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        } && test -s conftest.$ac_objext; then
22418   ac_hi=$ac_mid; break
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423         ac_lo=`expr $ac_mid + 1`
22424                         if test $ac_lo -le $ac_mid; then
22425                           ac_lo= ac_hi=
22426                           break
22427                         fi
22428                         ac_mid=`expr 2 '*' $ac_mid + 1`
22429 fi
22430
22431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22432   done
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443 $ac_includes_default
22444    typedef size_t ac__type_sizeof_;
22445 int
22446 main ()
22447 {
22448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22449 test_array [0] = 0
22450
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_compile") 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } && {
22469          test -z "$ac_c_werror_flag" ||
22470          test ! -s conftest.err
22471        } && test -s conftest.$ac_objext; then
22472   ac_hi=-1 ac_mid=-1
22473   while :; do
22474     cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h.  */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h.  */
22480 $ac_includes_default
22481    typedef size_t ac__type_sizeof_;
22482 int
22483 main ()
22484 {
22485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22486 test_array [0] = 0
22487
22488   ;
22489   return 0;
22490 }
22491 _ACEOF
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496   *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499   (eval "$ac_compile") 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } && {
22506          test -z "$ac_c_werror_flag" ||
22507          test ! -s conftest.err
22508        } && test -s conftest.$ac_objext; then
22509   ac_lo=$ac_mid; break
22510 else
22511   echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22513
22514         ac_hi=`expr '(' $ac_mid ')' - 1`
22515                         if test $ac_mid -le $ac_hi; then
22516                           ac_lo= ac_hi=
22517                           break
22518                         fi
22519                         ac_mid=`expr 2 '*' $ac_mid`
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523   done
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528         ac_lo= ac_hi=
22529 fi
22530
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 fi
22533
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 # Binary search between lo and hi bounds.
22536 while test "x$ac_lo" != "x$ac_hi"; do
22537   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22538   cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 $ac_includes_default
22545    typedef size_t ac__type_sizeof_;
22546 int
22547 main ()
22548 {
22549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22550 test_array [0] = 0
22551
22552   ;
22553   return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563   (eval "$ac_compile") 2>conftest.er1
22564   ac_status=$?
22565   grep -v '^ *+' conftest.er1 >conftest.err
22566   rm -f conftest.er1
22567   cat conftest.err >&5
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } && {
22570          test -z "$ac_c_werror_flag" ||
22571          test ! -s conftest.err
22572        } && test -s conftest.$ac_objext; then
22573   ac_hi=$ac_mid
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578         ac_lo=`expr '(' $ac_mid ')' + 1`
22579 fi
22580
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 done
22583 case $ac_lo in
22584 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22585 '') if test "$ac_cv_type_size_t" = yes; then
22586      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22587 See \`config.log' for more details." >&5
22588 echo "$as_me: error: cannot compute sizeof (size_t)
22589 See \`config.log' for more details." >&2;}
22590    { (exit 77); exit 77; }; }
22591    else
22592      ac_cv_sizeof_size_t=0
22593    fi ;;
22594 esac
22595 else
22596   cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h.  */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h.  */
22602 $ac_includes_default
22603    typedef size_t ac__type_sizeof_;
22604 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22605 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22606 #include <stdio.h>
22607 #include <stdlib.h>
22608 int
22609 main ()
22610 {
22611
22612   FILE *f = fopen ("conftest.val", "w");
22613   if (! f)
22614     return 1;
22615   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22616     {
22617       long int i = longval ();
22618       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22619         return 1;
22620       fprintf (f, "%ld\n", i);
22621     }
22622   else
22623     {
22624       unsigned long int i = ulongval ();
22625       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22626         return 1;
22627       fprintf (f, "%lu\n", i);
22628     }
22629   return ferror (f) || fclose (f) != 0;
22630
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 rm -f conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639   *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642   (eval "$ac_link") 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646   { (case "(($ac_try" in
22647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648   *) ac_try_echo=$ac_try;;
22649 esac
22650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651   (eval "$ac_try") 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_sizeof_size_t=`cat conftest.val`
22656 else
22657   echo "$as_me: program exited with status $ac_status" >&5
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 ( exit $ac_status )
22662 if test "$ac_cv_type_size_t" = yes; then
22663      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22664 See \`config.log' for more details." >&5
22665 echo "$as_me: error: cannot compute sizeof (size_t)
22666 See \`config.log' for more details." >&2;}
22667    { (exit 77); exit 77; }; }
22668    else
22669      ac_cv_sizeof_size_t=0
22670    fi
22671 fi
22672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22673 fi
22674 rm -f conftest.val
22675 fi
22676 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22677 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22678
22679
22680
22681 cat >>confdefs.h <<_ACEOF
22682 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22683 _ACEOF
22684
22685
22686
22687 case "${host}" in
22688     arm-*-linux* )
22689         { echo "$as_me:$LINENO: checking for long long" >&5
22690 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22691 if test "${ac_cv_type_long_long+set}" = set; then
22692   echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694   cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700 $ac_includes_default
22701 typedef long long ac__type_new_;
22702 int
22703 main ()
22704 {
22705 if ((ac__type_new_ *) 0)
22706   return 0;
22707 if (sizeof (ac__type_new_))
22708   return 0;
22709   ;
22710   return 0;
22711 }
22712 _ACEOF
22713 rm -f conftest.$ac_objext
22714 if { (ac_try="$ac_compile"
22715 case "(($ac_try" in
22716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717   *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720   (eval "$ac_compile") 2>conftest.er1
22721   ac_status=$?
22722   grep -v '^ *+' conftest.er1 >conftest.err
22723   rm -f conftest.er1
22724   cat conftest.err >&5
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); } && {
22727          test -z "$ac_c_werror_flag" ||
22728          test ! -s conftest.err
22729        } && test -s conftest.$ac_objext; then
22730   ac_cv_type_long_long=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735         ac_cv_type_long_long=no
22736 fi
22737
22738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 fi
22740 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22741 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22742
22743 # The cast to long int works around a bug in the HP C Compiler
22744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22746 # This bug is HP SR number 8606223364.
22747 { echo "$as_me:$LINENO: checking size of long long" >&5
22748 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22749 if test "${ac_cv_sizeof_long_long+set}" = set; then
22750   echo $ECHO_N "(cached) $ECHO_C" >&6
22751 else
22752   if test "$cross_compiling" = yes; then
22753   # Depending upon the size, compute the lo and hi bounds.
22754 cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 $ac_includes_default
22761    typedef long long ac__type_sizeof_;
22762 int
22763 main ()
22764 {
22765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22766 test_array [0] = 0
22767
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776   *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779   (eval "$ac_compile") 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && {
22786          test -z "$ac_c_werror_flag" ||
22787          test ! -s conftest.err
22788        } && test -s conftest.$ac_objext; then
22789   ac_lo=0 ac_mid=0
22790   while :; do
22791     cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797 $ac_includes_default
22798    typedef long long ac__type_sizeof_;
22799 int
22800 main ()
22801 {
22802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22803 test_array [0] = 0
22804
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_compile") 2>conftest.er1
22817   ac_status=$?
22818   grep -v '^ *+' conftest.er1 >conftest.err
22819   rm -f conftest.er1
22820   cat conftest.err >&5
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } && {
22823          test -z "$ac_c_werror_flag" ||
22824          test ! -s conftest.err
22825        } && test -s conftest.$ac_objext; then
22826   ac_hi=$ac_mid; break
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831         ac_lo=`expr $ac_mid + 1`
22832                         if test $ac_lo -le $ac_mid; then
22833                           ac_lo= ac_hi=
22834                           break
22835                         fi
22836                         ac_mid=`expr 2 '*' $ac_mid + 1`
22837 fi
22838
22839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840   done
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845         cat >conftest.$ac_ext <<_ACEOF
22846 /* confdefs.h.  */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h.  */
22851 $ac_includes_default
22852    typedef long long ac__type_sizeof_;
22853 int
22854 main ()
22855 {
22856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22857 test_array [0] = 0
22858
22859   ;
22860   return 0;
22861 }
22862 _ACEOF
22863 rm -f conftest.$ac_objext
22864 if { (ac_try="$ac_compile"
22865 case "(($ac_try" in
22866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867   *) ac_try_echo=$ac_try;;
22868 esac
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870   (eval "$ac_compile") 2>conftest.er1
22871   ac_status=$?
22872   grep -v '^ *+' conftest.er1 >conftest.err
22873   rm -f conftest.er1
22874   cat conftest.err >&5
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); } && {
22877          test -z "$ac_c_werror_flag" ||
22878          test ! -s conftest.err
22879        } && test -s conftest.$ac_objext; then
22880   ac_hi=-1 ac_mid=-1
22881   while :; do
22882     cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888 $ac_includes_default
22889    typedef long long ac__type_sizeof_;
22890 int
22891 main ()
22892 {
22893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22894 test_array [0] = 0
22895
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904   *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907   (eval "$ac_compile") 2>conftest.er1
22908   ac_status=$?
22909   grep -v '^ *+' conftest.er1 >conftest.err
22910   rm -f conftest.er1
22911   cat conftest.err >&5
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } && {
22914          test -z "$ac_c_werror_flag" ||
22915          test ! -s conftest.err
22916        } && test -s conftest.$ac_objext; then
22917   ac_lo=$ac_mid; break
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922         ac_hi=`expr '(' $ac_mid ')' - 1`
22923                         if test $ac_mid -le $ac_hi; then
22924                           ac_lo= ac_hi=
22925                           break
22926                         fi
22927                         ac_mid=`expr 2 '*' $ac_mid`
22928 fi
22929
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931   done
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         ac_lo= ac_hi=
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 # Binary search between lo and hi bounds.
22944 while test "x$ac_lo" != "x$ac_hi"; do
22945   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22946   cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h.  */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h.  */
22952 $ac_includes_default
22953    typedef long long ac__type_sizeof_;
22954 int
22955 main ()
22956 {
22957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22958 test_array [0] = 0
22959
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_compile") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } && {
22978          test -z "$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        } && test -s conftest.$ac_objext; then
22981   ac_hi=$ac_mid
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986         ac_lo=`expr '(' $ac_mid ')' + 1`
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 done
22991 case $ac_lo in
22992 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22993 '') if test "$ac_cv_type_long_long" = yes; then
22994      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22995 See \`config.log' for more details." >&5
22996 echo "$as_me: error: cannot compute sizeof (long long)
22997 See \`config.log' for more details." >&2;}
22998    { (exit 77); exit 77; }; }
22999    else
23000      ac_cv_sizeof_long_long=0
23001    fi ;;
23002 esac
23003 else
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 $ac_includes_default
23011    typedef long long ac__type_sizeof_;
23012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23014 #include <stdio.h>
23015 #include <stdlib.h>
23016 int
23017 main ()
23018 {
23019
23020   FILE *f = fopen ("conftest.val", "w");
23021   if (! f)
23022     return 1;
23023   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23024     {
23025       long int i = longval ();
23026       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23027         return 1;
23028       fprintf (f, "%ld\n", i);
23029     }
23030   else
23031     {
23032       unsigned long int i = ulongval ();
23033       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23034         return 1;
23035       fprintf (f, "%lu\n", i);
23036     }
23037   return ferror (f) || fclose (f) != 0;
23038
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 rm -f conftest$ac_exeext
23044 if { (ac_try="$ac_link"
23045 case "(($ac_try" in
23046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047   *) ac_try_echo=$ac_try;;
23048 esac
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050   (eval "$ac_link") 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23054   { (case "(($ac_try" in
23055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056   *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059   (eval "$ac_try") 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; }; then
23063   ac_cv_sizeof_long_long=`cat conftest.val`
23064 else
23065   echo "$as_me: program exited with status $ac_status" >&5
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ( exit $ac_status )
23070 if test "$ac_cv_type_long_long" = yes; then
23071      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23072 See \`config.log' for more details." >&5
23073 echo "$as_me: error: cannot compute sizeof (long long)
23074 See \`config.log' for more details." >&2;}
23075    { (exit 77); exit 77; }; }
23076    else
23077      ac_cv_sizeof_long_long=0
23078    fi
23079 fi
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23081 fi
23082 rm -f conftest.val
23083 fi
23084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23085 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23086
23087
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23091 _ACEOF
23092
23093
23094     ;;
23095     *-hp-hpux* )
23096         { echo "$as_me:$LINENO: checking for long long" >&5
23097 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23098 if test "${ac_cv_type_long_long+set}" = set; then
23099   echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101   cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h.  */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h.  */
23107 $ac_includes_default
23108 typedef long long ac__type_new_;
23109 int
23110 main ()
23111 {
23112 if ((ac__type_new_ *) 0)
23113   return 0;
23114 if (sizeof (ac__type_new_))
23115   return 0;
23116   ;
23117   return 0;
23118 }
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124   *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127   (eval "$ac_compile") 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } && {
23134          test -z "$ac_c_werror_flag" ||
23135          test ! -s conftest.err
23136        } && test -s conftest.$ac_objext; then
23137   ac_cv_type_long_long=yes
23138 else
23139   echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142         ac_cv_type_long_long=no
23143 fi
23144
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 fi
23147 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23148 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23149
23150 # The cast to long int works around a bug in the HP C Compiler
23151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23153 # This bug is HP SR number 8606223364.
23154 { echo "$as_me:$LINENO: checking size of long long" >&5
23155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23156 if test "${ac_cv_sizeof_long_long+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   if test "$cross_compiling" = yes; then
23160   # Depending upon the size, compute the lo and hi bounds.
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 $ac_includes_default
23168    typedef long long ac__type_sizeof_;
23169 int
23170 main ()
23171 {
23172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23173 test_array [0] = 0
23174
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183   *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186   (eval "$ac_compile") 2>conftest.er1
23187   ac_status=$?
23188   grep -v '^ *+' conftest.er1 >conftest.err
23189   rm -f conftest.er1
23190   cat conftest.err >&5
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); } && {
23193          test -z "$ac_c_werror_flag" ||
23194          test ! -s conftest.err
23195        } && test -s conftest.$ac_objext; then
23196   ac_lo=0 ac_mid=0
23197   while :; do
23198     cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 $ac_includes_default
23205    typedef long long ac__type_sizeof_;
23206 int
23207 main ()
23208 {
23209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23210 test_array [0] = 0
23211
23212   ;
23213   return 0;
23214 }
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_compile") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest.$ac_objext; then
23233   ac_hi=$ac_mid; break
23234 else
23235   echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238         ac_lo=`expr $ac_mid + 1`
23239                         if test $ac_lo -le $ac_mid; then
23240                           ac_lo= ac_hi=
23241                           break
23242                         fi
23243                         ac_mid=`expr 2 '*' $ac_mid + 1`
23244 fi
23245
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247   done
23248 else
23249   echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23251
23252         cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258 $ac_includes_default
23259    typedef long long ac__type_sizeof_;
23260 int
23261 main ()
23262 {
23263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23264 test_array [0] = 0
23265
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274   *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277   (eval "$ac_compile") 2>conftest.er1
23278   ac_status=$?
23279   grep -v '^ *+' conftest.er1 >conftest.err
23280   rm -f conftest.er1
23281   cat conftest.err >&5
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); } && {
23284          test -z "$ac_c_werror_flag" ||
23285          test ! -s conftest.err
23286        } && test -s conftest.$ac_objext; then
23287   ac_hi=-1 ac_mid=-1
23288   while :; do
23289     cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 $ac_includes_default
23296    typedef long long ac__type_sizeof_;
23297 int
23298 main ()
23299 {
23300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23301 test_array [0] = 0
23302
23303   ;
23304   return 0;
23305 }
23306 _ACEOF
23307 rm -f conftest.$ac_objext
23308 if { (ac_try="$ac_compile"
23309 case "(($ac_try" in
23310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311   *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314   (eval "$ac_compile") 2>conftest.er1
23315   ac_status=$?
23316   grep -v '^ *+' conftest.er1 >conftest.err
23317   rm -f conftest.er1
23318   cat conftest.err >&5
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); } && {
23321          test -z "$ac_c_werror_flag" ||
23322          test ! -s conftest.err
23323        } && test -s conftest.$ac_objext; then
23324   ac_lo=$ac_mid; break
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329         ac_hi=`expr '(' $ac_mid ')' - 1`
23330                         if test $ac_mid -le $ac_hi; then
23331                           ac_lo= ac_hi=
23332                           break
23333                         fi
23334                         ac_mid=`expr 2 '*' $ac_mid`
23335 fi
23336
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338   done
23339 else
23340   echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343         ac_lo= ac_hi=
23344 fi
23345
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 fi
23348
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 # Binary search between lo and hi bounds.
23351 while test "x$ac_lo" != "x$ac_hi"; do
23352   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23353   cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359 $ac_includes_default
23360    typedef long long ac__type_sizeof_;
23361 int
23362 main ()
23363 {
23364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23365 test_array [0] = 0
23366
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext
23372 if { (ac_try="$ac_compile"
23373 case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_compile") 2>conftest.er1
23379   ac_status=$?
23380   grep -v '^ *+' conftest.er1 >conftest.err
23381   rm -f conftest.er1
23382   cat conftest.err >&5
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); } && {
23385          test -z "$ac_c_werror_flag" ||
23386          test ! -s conftest.err
23387        } && test -s conftest.$ac_objext; then
23388   ac_hi=$ac_mid
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393         ac_lo=`expr '(' $ac_mid ')' + 1`
23394 fi
23395
23396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 done
23398 case $ac_lo in
23399 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23400 '') if test "$ac_cv_type_long_long" = yes; then
23401      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23402 See \`config.log' for more details." >&5
23403 echo "$as_me: error: cannot compute sizeof (long long)
23404 See \`config.log' for more details." >&2;}
23405    { (exit 77); exit 77; }; }
23406    else
23407      ac_cv_sizeof_long_long=0
23408    fi ;;
23409 esac
23410 else
23411   cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 $ac_includes_default
23418    typedef long long ac__type_sizeof_;
23419 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23420 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23421 #include <stdio.h>
23422 #include <stdlib.h>
23423 int
23424 main ()
23425 {
23426
23427   FILE *f = fopen ("conftest.val", "w");
23428   if (! f)
23429     return 1;
23430   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23431     {
23432       long int i = longval ();
23433       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23434         return 1;
23435       fprintf (f, "%ld\n", i);
23436     }
23437   else
23438     {
23439       unsigned long int i = ulongval ();
23440       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23441         return 1;
23442       fprintf (f, "%lu\n", i);
23443     }
23444   return ferror (f) || fclose (f) != 0;
23445
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest$ac_exeext
23451 if { (ac_try="$ac_link"
23452 case "(($ac_try" in
23453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454   *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457   (eval "$ac_link") 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23461   { (case "(($ac_try" in
23462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463   *) ac_try_echo=$ac_try;;
23464 esac
23465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466   (eval "$ac_try") 2>&5
23467   ac_status=$?
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); }; }; then
23470   ac_cv_sizeof_long_long=`cat conftest.val`
23471 else
23472   echo "$as_me: program exited with status $ac_status" >&5
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 ( exit $ac_status )
23477 if test "$ac_cv_type_long_long" = yes; then
23478      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23479 See \`config.log' for more details." >&5
23480 echo "$as_me: error: cannot compute sizeof (long long)
23481 See \`config.log' for more details." >&2;}
23482    { (exit 77); exit 77; }; }
23483    else
23484      ac_cv_sizeof_long_long=0
23485    fi
23486 fi
23487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23488 fi
23489 rm -f conftest.val
23490 fi
23491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23492 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23493
23494
23495
23496 cat >>confdefs.h <<_ACEOF
23497 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23498 _ACEOF
23499
23500
23501         if test "$ac_cv_sizeof_long_long" != 0; then
23502                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23503         fi
23504     ;;
23505     * )
23506         { echo "$as_me:$LINENO: checking for long long" >&5
23507 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23508 if test "${ac_cv_type_long_long+set}" = set; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h.  */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h.  */
23517 $ac_includes_default
23518 typedef long long ac__type_new_;
23519 int
23520 main ()
23521 {
23522 if ((ac__type_new_ *) 0)
23523   return 0;
23524 if (sizeof (ac__type_new_))
23525   return 0;
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534   *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537   (eval "$ac_compile") 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } && {
23544          test -z "$ac_c_werror_flag" ||
23545          test ! -s conftest.err
23546        } && test -s conftest.$ac_objext; then
23547   ac_cv_type_long_long=yes
23548 else
23549   echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23551
23552         ac_cv_type_long_long=no
23553 fi
23554
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 fi
23557 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23558 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23559
23560 # The cast to long int works around a bug in the HP C Compiler
23561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23563 # This bug is HP SR number 8606223364.
23564 { echo "$as_me:$LINENO: checking size of long long" >&5
23565 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23566 if test "${ac_cv_sizeof_long_long+set}" = set; then
23567   echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569   if test "$cross_compiling" = yes; then
23570   # Depending upon the size, compute the lo and hi bounds.
23571 cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h.  */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h.  */
23577 $ac_includes_default
23578    typedef long long ac__type_sizeof_;
23579 int
23580 main ()
23581 {
23582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23583 test_array [0] = 0
23584
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_compile") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } && {
23603          test -z "$ac_c_werror_flag" ||
23604          test ! -s conftest.err
23605        } && test -s conftest.$ac_objext; then
23606   ac_lo=0 ac_mid=0
23607   while :; do
23608     cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h.  */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h.  */
23614 $ac_includes_default
23615    typedef long long ac__type_sizeof_;
23616 int
23617 main ()
23618 {
23619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23620 test_array [0] = 0
23621
23622   ;
23623   return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext
23627 if { (ac_try="$ac_compile"
23628 case "(($ac_try" in
23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630   *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633   (eval "$ac_compile") 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } && {
23640          test -z "$ac_c_werror_flag" ||
23641          test ! -s conftest.err
23642        } && test -s conftest.$ac_objext; then
23643   ac_hi=$ac_mid; break
23644 else
23645   echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648         ac_lo=`expr $ac_mid + 1`
23649                         if test $ac_lo -le $ac_mid; then
23650                           ac_lo= ac_hi=
23651                           break
23652                         fi
23653                         ac_mid=`expr 2 '*' $ac_mid + 1`
23654 fi
23655
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657   done
23658 else
23659   echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23661
23662         cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 $ac_includes_default
23669    typedef long long ac__type_sizeof_;
23670 int
23671 main ()
23672 {
23673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23674 test_array [0] = 0
23675
23676   ;
23677   return 0;
23678 }
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684   *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687   (eval "$ac_compile") 2>conftest.er1
23688   ac_status=$?
23689   grep -v '^ *+' conftest.er1 >conftest.err
23690   rm -f conftest.er1
23691   cat conftest.err >&5
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); } && {
23694          test -z "$ac_c_werror_flag" ||
23695          test ! -s conftest.err
23696        } && test -s conftest.$ac_objext; then
23697   ac_hi=-1 ac_mid=-1
23698   while :; do
23699     cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705 $ac_includes_default
23706    typedef long long ac__type_sizeof_;
23707 int
23708 main ()
23709 {
23710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23711 test_array [0] = 0
23712
23713   ;
23714   return 0;
23715 }
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721   *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724   (eval "$ac_compile") 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } && {
23731          test -z "$ac_c_werror_flag" ||
23732          test ! -s conftest.err
23733        } && test -s conftest.$ac_objext; then
23734   ac_lo=$ac_mid; break
23735 else
23736   echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739         ac_hi=`expr '(' $ac_mid ')' - 1`
23740                         if test $ac_mid -le $ac_hi; then
23741                           ac_lo= ac_hi=
23742                           break
23743                         fi
23744                         ac_mid=`expr 2 '*' $ac_mid`
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748   done
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753         ac_lo= ac_hi=
23754 fi
23755
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 fi
23758
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 # Binary search between lo and hi bounds.
23761 while test "x$ac_lo" != "x$ac_hi"; do
23762   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23763   cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 $ac_includes_default
23770    typedef long long ac__type_sizeof_;
23771 int
23772 main ()
23773 {
23774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23775 test_array [0] = 0
23776
23777   ;
23778   return 0;
23779 }
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785   *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788   (eval "$ac_compile") 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && {
23795          test -z "$ac_c_werror_flag" ||
23796          test ! -s conftest.err
23797        } && test -s conftest.$ac_objext; then
23798   ac_hi=$ac_mid
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803         ac_lo=`expr '(' $ac_mid ')' + 1`
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 done
23808 case $ac_lo in
23809 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23810 '') if test "$ac_cv_type_long_long" = yes; then
23811      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23812 See \`config.log' for more details." >&5
23813 echo "$as_me: error: cannot compute sizeof (long long)
23814 See \`config.log' for more details." >&2;}
23815    { (exit 77); exit 77; }; }
23816    else
23817      ac_cv_sizeof_long_long=0
23818    fi ;;
23819 esac
23820 else
23821   cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h.  */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h.  */
23827 $ac_includes_default
23828    typedef long long ac__type_sizeof_;
23829 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23830 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23831 #include <stdio.h>
23832 #include <stdlib.h>
23833 int
23834 main ()
23835 {
23836
23837   FILE *f = fopen ("conftest.val", "w");
23838   if (! f)
23839     return 1;
23840   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23841     {
23842       long int i = longval ();
23843       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23844         return 1;
23845       fprintf (f, "%ld\n", i);
23846     }
23847   else
23848     {
23849       unsigned long int i = ulongval ();
23850       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23851         return 1;
23852       fprintf (f, "%lu\n", i);
23853     }
23854   return ferror (f) || fclose (f) != 0;
23855
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest$ac_exeext
23861 if { (ac_try="$ac_link"
23862 case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_link") 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23871   { (case "(($ac_try" in
23872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873   *) ac_try_echo=$ac_try;;
23874 esac
23875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23876   (eval "$ac_try") 2>&5
23877   ac_status=$?
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); }; }; then
23880   ac_cv_sizeof_long_long=`cat conftest.val`
23881 else
23882   echo "$as_me: program exited with status $ac_status" >&5
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ( exit $ac_status )
23887 if test "$ac_cv_type_long_long" = yes; then
23888      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23889 See \`config.log' for more details." >&5
23890 echo "$as_me: error: cannot compute sizeof (long long)
23891 See \`config.log' for more details." >&2;}
23892    { (exit 77); exit 77; }; }
23893    else
23894      ac_cv_sizeof_long_long=0
23895    fi
23896 fi
23897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23898 fi
23899 rm -f conftest.val
23900 fi
23901 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23902 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23903
23904
23905
23906 cat >>confdefs.h <<_ACEOF
23907 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23908 _ACEOF
23909
23910
23911 esac
23912
23913 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23914 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23915 if test "${ac_cv_type_wchar_t+set}" = set; then
23916   echo $ECHO_N "(cached) $ECHO_C" >&6
23917 else
23918   cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h.  */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h.  */
23924
23925         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23926         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23927         #  error "fake wchar_t"
23928         #endif
23929         #ifdef HAVE_WCHAR_H
23930         #  ifdef __CYGWIN__
23931         #    include <stddef.h>
23932         #  endif
23933         #  include <wchar.h>
23934         #endif
23935         #ifdef HAVE_STDLIB_H
23936         #  include <stdlib.h>
23937         #endif
23938         #include <stdio.h>
23939
23940
23941
23942 typedef wchar_t ac__type_new_;
23943 int
23944 main ()
23945 {
23946 if ((ac__type_new_ *) 0)
23947   return 0;
23948 if (sizeof (ac__type_new_))
23949   return 0;
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext
23955 if { (ac_try="$ac_compile"
23956 case "(($ac_try" in
23957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958   *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961   (eval "$ac_compile") 2>conftest.er1
23962   ac_status=$?
23963   grep -v '^ *+' conftest.er1 >conftest.err
23964   rm -f conftest.er1
23965   cat conftest.err >&5
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); } && {
23968          test -z "$ac_c_werror_flag" ||
23969          test ! -s conftest.err
23970        } && test -s conftest.$ac_objext; then
23971   ac_cv_type_wchar_t=yes
23972 else
23973   echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23975
23976         ac_cv_type_wchar_t=no
23977 fi
23978
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 fi
23981 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23982 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23983
23984 # The cast to long int works around a bug in the HP C Compiler
23985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23987 # This bug is HP SR number 8606223364.
23988 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23989 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23990 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993   if test "$cross_compiling" = yes; then
23994   # Depending upon the size, compute the lo and hi bounds.
23995 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24003         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24004         #  error "fake wchar_t"
24005         #endif
24006         #ifdef HAVE_WCHAR_H
24007         #  ifdef __CYGWIN__
24008         #    include <stddef.h>
24009         #  endif
24010         #  include <wchar.h>
24011         #endif
24012         #ifdef HAVE_STDLIB_H
24013         #  include <stdlib.h>
24014         #endif
24015         #include <stdio.h>
24016
24017
24018
24019    typedef wchar_t ac__type_sizeof_;
24020 int
24021 main ()
24022 {
24023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24024 test_array [0] = 0
24025
24026   ;
24027   return 0;
24028 }
24029 _ACEOF
24030 rm -f conftest.$ac_objext
24031 if { (ac_try="$ac_compile"
24032 case "(($ac_try" in
24033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034   *) ac_try_echo=$ac_try;;
24035 esac
24036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24037   (eval "$ac_compile") 2>conftest.er1
24038   ac_status=$?
24039   grep -v '^ *+' conftest.er1 >conftest.err
24040   rm -f conftest.er1
24041   cat conftest.err >&5
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); } && {
24044          test -z "$ac_c_werror_flag" ||
24045          test ! -s conftest.err
24046        } && test -s conftest.$ac_objext; then
24047   ac_lo=0 ac_mid=0
24048   while :; do
24049     cat >conftest.$ac_ext <<_ACEOF
24050 /* confdefs.h.  */
24051 _ACEOF
24052 cat confdefs.h >>conftest.$ac_ext
24053 cat >>conftest.$ac_ext <<_ACEOF
24054 /* end confdefs.h.  */
24055
24056         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24057         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24058         #  error "fake wchar_t"
24059         #endif
24060         #ifdef HAVE_WCHAR_H
24061         #  ifdef __CYGWIN__
24062         #    include <stddef.h>
24063         #  endif
24064         #  include <wchar.h>
24065         #endif
24066         #ifdef HAVE_STDLIB_H
24067         #  include <stdlib.h>
24068         #endif
24069         #include <stdio.h>
24070
24071
24072
24073    typedef wchar_t ac__type_sizeof_;
24074 int
24075 main ()
24076 {
24077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24078 test_array [0] = 0
24079
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088   *) ac_try_echo=$ac_try;;
24089 esac
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091   (eval "$ac_compile") 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } && {
24098          test -z "$ac_c_werror_flag" ||
24099          test ! -s conftest.err
24100        } && test -s conftest.$ac_objext; then
24101   ac_hi=$ac_mid; break
24102 else
24103   echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106         ac_lo=`expr $ac_mid + 1`
24107                         if test $ac_lo -le $ac_mid; then
24108                           ac_lo= ac_hi=
24109                           break
24110                         fi
24111                         ac_mid=`expr 2 '*' $ac_mid + 1`
24112 fi
24113
24114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115   done
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h.  */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h.  */
24126
24127         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24128         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24129         #  error "fake wchar_t"
24130         #endif
24131         #ifdef HAVE_WCHAR_H
24132         #  ifdef __CYGWIN__
24133         #    include <stddef.h>
24134         #  endif
24135         #  include <wchar.h>
24136         #endif
24137         #ifdef HAVE_STDLIB_H
24138         #  include <stdlib.h>
24139         #endif
24140         #include <stdio.h>
24141
24142
24143
24144    typedef wchar_t ac__type_sizeof_;
24145 int
24146 main ()
24147 {
24148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24149 test_array [0] = 0
24150
24151   ;
24152   return 0;
24153 }
24154 _ACEOF
24155 rm -f conftest.$ac_objext
24156 if { (ac_try="$ac_compile"
24157 case "(($ac_try" in
24158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159   *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162   (eval "$ac_compile") 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
24166   cat conftest.err >&5
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } && {
24169          test -z "$ac_c_werror_flag" ||
24170          test ! -s conftest.err
24171        } && test -s conftest.$ac_objext; then
24172   ac_hi=-1 ac_mid=-1
24173   while :; do
24174     cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180
24181         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24182         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24183         #  error "fake wchar_t"
24184         #endif
24185         #ifdef HAVE_WCHAR_H
24186         #  ifdef __CYGWIN__
24187         #    include <stddef.h>
24188         #  endif
24189         #  include <wchar.h>
24190         #endif
24191         #ifdef HAVE_STDLIB_H
24192         #  include <stdlib.h>
24193         #endif
24194         #include <stdio.h>
24195
24196
24197
24198    typedef wchar_t ac__type_sizeof_;
24199 int
24200 main ()
24201 {
24202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24203 test_array [0] = 0
24204
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext
24210 if { (ac_try="$ac_compile"
24211 case "(($ac_try" in
24212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213   *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216   (eval "$ac_compile") 2>conftest.er1
24217   ac_status=$?
24218   grep -v '^ *+' conftest.er1 >conftest.err
24219   rm -f conftest.er1
24220   cat conftest.err >&5
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } && {
24223          test -z "$ac_c_werror_flag" ||
24224          test ! -s conftest.err
24225        } && test -s conftest.$ac_objext; then
24226   ac_lo=$ac_mid; break
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231         ac_hi=`expr '(' $ac_mid ')' - 1`
24232                         if test $ac_mid -le $ac_hi; then
24233                           ac_lo= ac_hi=
24234                           break
24235                         fi
24236                         ac_mid=`expr 2 '*' $ac_mid`
24237 fi
24238
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240   done
24241 else
24242   echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245         ac_lo= ac_hi=
24246 fi
24247
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 fi
24250
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 # Binary search between lo and hi bounds.
24253 while test "x$ac_lo" != "x$ac_hi"; do
24254   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24255   cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h.  */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h.  */
24261
24262         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24263         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24264         #  error "fake wchar_t"
24265         #endif
24266         #ifdef HAVE_WCHAR_H
24267         #  ifdef __CYGWIN__
24268         #    include <stddef.h>
24269         #  endif
24270         #  include <wchar.h>
24271         #endif
24272         #ifdef HAVE_STDLIB_H
24273         #  include <stdlib.h>
24274         #endif
24275         #include <stdio.h>
24276
24277
24278
24279    typedef wchar_t ac__type_sizeof_;
24280 int
24281 main ()
24282 {
24283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24284 test_array [0] = 0
24285
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_compile") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } && {
24304          test -z "$ac_c_werror_flag" ||
24305          test ! -s conftest.err
24306        } && test -s conftest.$ac_objext; then
24307   ac_hi=$ac_mid
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312         ac_lo=`expr '(' $ac_mid ')' + 1`
24313 fi
24314
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 done
24317 case $ac_lo in
24318 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24319 '') if test "$ac_cv_type_wchar_t" = yes; then
24320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24321 See \`config.log' for more details." >&5
24322 echo "$as_me: error: cannot compute sizeof (wchar_t)
24323 See \`config.log' for more details." >&2;}
24324    { (exit 77); exit 77; }; }
24325    else
24326      ac_cv_sizeof_wchar_t=0
24327    fi ;;
24328 esac
24329 else
24330   cat >conftest.$ac_ext <<_ACEOF
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336
24337         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24338         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24339         #  error "fake wchar_t"
24340         #endif
24341         #ifdef HAVE_WCHAR_H
24342         #  ifdef __CYGWIN__
24343         #    include <stddef.h>
24344         #  endif
24345         #  include <wchar.h>
24346         #endif
24347         #ifdef HAVE_STDLIB_H
24348         #  include <stdlib.h>
24349         #endif
24350         #include <stdio.h>
24351
24352
24353
24354    typedef wchar_t ac__type_sizeof_;
24355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24357 #include <stdio.h>
24358 #include <stdlib.h>
24359 int
24360 main ()
24361 {
24362
24363   FILE *f = fopen ("conftest.val", "w");
24364   if (! f)
24365     return 1;
24366   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24367     {
24368       long int i = longval ();
24369       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24370         return 1;
24371       fprintf (f, "%ld\n", i);
24372     }
24373   else
24374     {
24375       unsigned long int i = ulongval ();
24376       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24377         return 1;
24378       fprintf (f, "%lu\n", i);
24379     }
24380   return ferror (f) || fclose (f) != 0;
24381
24382   ;
24383   return 0;
24384 }
24385 _ACEOF
24386 rm -f conftest$ac_exeext
24387 if { (ac_try="$ac_link"
24388 case "(($ac_try" in
24389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390   *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393   (eval "$ac_link") 2>&5
24394   ac_status=$?
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; }; then
24406   ac_cv_sizeof_wchar_t=`cat conftest.val`
24407 else
24408   echo "$as_me: program exited with status $ac_status" >&5
24409 echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24411
24412 ( exit $ac_status )
24413 if test "$ac_cv_type_wchar_t" = yes; then
24414      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24415 See \`config.log' for more details." >&5
24416 echo "$as_me: error: cannot compute sizeof (wchar_t)
24417 See \`config.log' for more details." >&2;}
24418    { (exit 77); exit 77; }; }
24419    else
24420      ac_cv_sizeof_wchar_t=0
24421    fi
24422 fi
24423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24424 fi
24425 rm -f conftest.val
24426 fi
24427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24428 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24429
24430
24431
24432 cat >>confdefs.h <<_ACEOF
24433 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24434 _ACEOF
24435
24436
24437 if test "$ac_cv_sizeof_wchar_t" = 0; then
24438     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24439 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24440    { (exit 1); exit 1; }; }
24441 fi
24442 cat >>confdefs.h <<\_ACEOF
24443 #define wxUSE_WCHAR_T 1
24444 _ACEOF
24445
24446
24447 { echo "$as_me:$LINENO: checking for va_copy" >&5
24448 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24449 if test "${wx_cv_func_va_copy+set}" = set; then
24450   echo $ECHO_N "(cached) $ECHO_C" >&6
24451 else
24452
24453         ac_ext=cpp
24454 ac_cpp='$CXXCPP $CPPFLAGS'
24455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24458
24459         cat >conftest.$ac_ext <<_ACEOF
24460
24461             #include <stdarg.h>
24462             void foo(char *f, ...)
24463             {
24464                 va_list ap1, ap2;
24465                 va_start(ap1, f);
24466                 va_copy(ap2, ap1);
24467                 va_end(ap2);
24468                 va_end(ap1);
24469             }
24470             int main()
24471             {
24472                 foo("hi", 17);
24473                 return 0;
24474             }
24475 _ACEOF
24476 rm -f conftest.$ac_objext conftest$ac_exeext
24477 if { (ac_try="$ac_link"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_link") 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } && {
24490          test -z "$ac_cxx_werror_flag" ||
24491          test ! -s conftest.err
24492        } && test -s conftest$ac_exeext &&
24493        $as_test_x conftest$ac_exeext; then
24494   wx_cv_func_va_copy=yes
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499         wx_cv_func_va_copy=no
24500
24501 fi
24502
24503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24504       conftest$ac_exeext conftest.$ac_ext
24505         ac_ext=c
24506 ac_cpp='$CPP $CPPFLAGS'
24507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24510
24511
24512
24513 fi
24514 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24515 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24516
24517 if test $wx_cv_func_va_copy = "yes"; then
24518     cat >>confdefs.h <<\_ACEOF
24519 #define HAVE_VA_COPY 1
24520 _ACEOF
24521
24522 else
24523         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24524 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24525 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528
24529             if test "$cross_compiling" = yes; then
24530                   wx_cv_type_va_list_lvalue=yes
24531
24532 else
24533   cat >conftest.$ac_ext <<_ACEOF
24534
24535                 #include <stdarg.h>
24536                 int foo(char *f, ...)
24537                 {
24538                     va_list ap1, ap2;
24539                     va_start(ap1, f);
24540                     ap2 = ap1;
24541                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24542                         return 1;
24543                     va_end(ap2);
24544                     va_end(ap1);
24545                     return 0;
24546                 }
24547                 int main()
24548                 {
24549                     return foo("hi", 17);
24550                 }
24551 _ACEOF
24552 rm -f conftest$ac_exeext
24553 if { (ac_try="$ac_link"
24554 case "(($ac_try" in
24555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556   *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559   (eval "$ac_link") 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24563   { (case "(($ac_try" in
24564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565   *) ac_try_echo=$ac_try;;
24566 esac
24567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568   (eval "$ac_try") 2>&5
24569   ac_status=$?
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); }; }; then
24572   wx_cv_type_va_list_lvalue=yes
24573 else
24574   echo "$as_me: program exited with status $ac_status" >&5
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 ( exit $ac_status )
24579 wx_cv_type_va_list_lvalue=no
24580 fi
24581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24582 fi
24583
24584
24585
24586
24587 fi
24588 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24589 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24590
24591     if test $wx_cv_type_va_list_lvalue != "yes"; then
24592                         cat >>confdefs.h <<\_ACEOF
24593 #define VA_LIST_IS_ARRAY 1
24594 _ACEOF
24595
24596     fi
24597 fi
24598
24599 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24600
24601 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24602 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24603 if test "${wx_cv_have_variadic_macros+set}" = set; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606
24607                         ac_ext=cpp
24608 ac_cpp='$CXXCPP $CPPFLAGS'
24609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24612
24613         cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619
24620                     #include <stdio.h>
24621                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24622
24623 int
24624 main ()
24625 {
24626
24627                     test("%s %d %p", "test", 1, 0);
24628
24629
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_compile") 2>conftest.er1
24642   ac_status=$?
24643   grep -v '^ *+' conftest.er1 >conftest.err
24644   rm -f conftest.er1
24645   cat conftest.err >&5
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); } && {
24648          test -z "$ac_cxx_werror_flag" ||
24649          test ! -s conftest.err
24650        } && test -s conftest.$ac_objext; then
24651   wx_cv_have_variadic_macros=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656         wx_cv_have_variadic_macros=no
24657
24658 fi
24659
24660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24661         ac_ext=c
24662 ac_cpp='$CPP $CPPFLAGS'
24663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24666
24667
24668
24669 fi
24670 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24671 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24672
24673 if test $wx_cv_have_variadic_macros = "yes"; then
24674     cat >>confdefs.h <<\_ACEOF
24675 #define HAVE_VARIADIC_MACROS 1
24676 _ACEOF
24677
24678 fi
24679
24680 fi
24681
24682 LARGEFILE_CPPFLAGS=
24683 # Check whether --enable-largefile was given.
24684 if test "${enable_largefile+set}" = set; then
24685   enableval=$enable_largefile;
24686 fi
24687
24688 if test "$enable_largefile" != no; then
24689             wx_largefile=no
24690
24691     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24692 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24694   echo $ECHO_N "(cached) $ECHO_C" >&6
24695 else
24696
24697           cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h.  */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h.  */
24703 #define _FILE_OFFSET_BITS 64
24704                           #include <sys/types.h>
24705 int
24706 main ()
24707 {
24708 typedef struct {
24709     unsigned int field: sizeof(off_t) == 8;
24710 } wxlf;
24711
24712   ;
24713   return 0;
24714 }
24715 _ACEOF
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_compile") 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } && {
24730          test -z "$ac_c_werror_flag" ||
24731          test ! -s conftest.err
24732        } && test -s conftest.$ac_objext; then
24733   ac_cv_sys_file_offset_bits=64
24734 else
24735   echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738         ac_cv_sys_file_offset_bits=no
24739 fi
24740
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742
24743
24744 fi
24745 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24746 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24747
24748     if test "$ac_cv_sys_file_offset_bits" != no; then
24749         wx_largefile=yes
24750         cat >>confdefs.h <<_ACEOF
24751 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24752 _ACEOF
24753
24754     fi
24755
24756     if test "x$wx_largefile" != "xyes"; then
24757
24758     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24759 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24760 if test "${ac_cv_sys_large_files+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763
24764           cat >conftest.$ac_ext <<_ACEOF
24765 /* confdefs.h.  */
24766 _ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h.  */
24770 #define _LARGE_FILES 1
24771                           #include <sys/types.h>
24772 int
24773 main ()
24774 {
24775 typedef struct {
24776     unsigned int field: sizeof(off_t) == 8;
24777 } wxlf;
24778
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 rm -f conftest.$ac_objext
24784 if { (ac_try="$ac_compile"
24785 case "(($ac_try" in
24786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787   *) ac_try_echo=$ac_try;;
24788 esac
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790   (eval "$ac_compile") 2>conftest.er1
24791   ac_status=$?
24792   grep -v '^ *+' conftest.er1 >conftest.err
24793   rm -f conftest.er1
24794   cat conftest.err >&5
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } && {
24797          test -z "$ac_c_werror_flag" ||
24798          test ! -s conftest.err
24799        } && test -s conftest.$ac_objext; then
24800   ac_cv_sys_large_files=1
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805         ac_cv_sys_large_files=no
24806 fi
24807
24808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24809
24810
24811 fi
24812 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24813 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24814
24815     if test "$ac_cv_sys_large_files" != no; then
24816         wx_largefile=yes
24817         cat >>confdefs.h <<_ACEOF
24818 #define _LARGE_FILES $ac_cv_sys_large_files
24819 _ACEOF
24820
24821     fi
24822
24823     fi
24824
24825     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24826 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24827     if test "x$wx_largefile" = "xyes"; then
24828         cat >>confdefs.h <<\_ACEOF
24829 #define HAVE_LARGEFILE_SUPPORT 1
24830 _ACEOF
24831
24832     fi
24833     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24834 echo "${ECHO_T}$wx_largefile" >&6; }
24835 fi
24836
24837 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24838     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24839 elif test "$ac_cv_sys_large_files" = 1; then
24840     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24841 fi
24842
24843 if test -n "$LARGEFILE_CPPFLAGS"; then
24844     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24845
24846                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24847         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24848 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24849 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24850   echo $ECHO_N "(cached) $ECHO_C" >&6
24851 else
24852
24853                 ac_ext=cpp
24854 ac_cpp='$CXXCPP $CPPFLAGS'
24855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24858
24859                 cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865
24866 int
24867 main ()
24868 {
24869
24870                         #ifndef __STDC_EXT__
24871                             choke me
24872                         #endif
24873
24874   ;
24875   return 0;
24876 }
24877 _ACEOF
24878 rm -f conftest.$ac_objext
24879 if { (ac_try="$ac_compile"
24880 case "(($ac_try" in
24881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882   *) ac_try_echo=$ac_try;;
24883 esac
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885   (eval "$ac_compile") 2>conftest.er1
24886   ac_status=$?
24887   grep -v '^ *+' conftest.er1 >conftest.err
24888   rm -f conftest.er1
24889   cat conftest.err >&5
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); } && {
24892          test -z "$ac_cxx_werror_flag" ||
24893          test ! -s conftest.err
24894        } && test -s conftest.$ac_objext; then
24895   wx_cv_STDC_EXT_required=no
24896 else
24897   echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900         wx_cv_STDC_EXT_required=yes
24901
24902 fi
24903
24904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24905                 ac_ext=c
24906 ac_cpp='$CPP $CPPFLAGS'
24907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24910
24911
24912
24913 fi
24914 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24915 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24916         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24917             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24918         fi
24919     fi
24920 fi
24921
24922 ac_ext=cpp
24923 ac_cpp='$CXXCPP $CPPFLAGS'
24924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24927
24928 old_CPPFLAGS="$CPPFLAGS"
24929 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24930 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24931 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24932 if test "${ac_cv_sys_largefile_source+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   while :; do
24936   cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h.  */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h.  */
24942 #include <stdio.h>
24943 int
24944 main ()
24945 {
24946 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
24947   ;
24948   return 0;
24949 }
24950 _ACEOF
24951 rm -f conftest.$ac_objext conftest$ac_exeext
24952 if { (ac_try="$ac_link"
24953 case "(($ac_try" in
24954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955   *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958   (eval "$ac_link") 2>conftest.er1
24959   ac_status=$?
24960   grep -v '^ *+' conftest.er1 >conftest.err
24961   rm -f conftest.er1
24962   cat conftest.err >&5
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); } && {
24965          test -z "$ac_cxx_werror_flag" ||
24966          test ! -s conftest.err
24967        } && test -s conftest$ac_exeext &&
24968        $as_test_x conftest$ac_exeext; then
24969   ac_cv_sys_largefile_source=no; break
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974
24975 fi
24976
24977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24978       conftest$ac_exeext conftest.$ac_ext
24979   cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 #define _LARGEFILE_SOURCE 1
24986 #include <stdio.h>
24987 int
24988 main ()
24989 {
24990 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
24991   ;
24992   return 0;
24993 }
24994 _ACEOF
24995 rm -f conftest.$ac_objext conftest$ac_exeext
24996 if { (ac_try="$ac_link"
24997 case "(($ac_try" in
24998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999   *) ac_try_echo=$ac_try;;
25000 esac
25001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25002   (eval "$ac_link") 2>conftest.er1
25003   ac_status=$?
25004   grep -v '^ *+' conftest.er1 >conftest.err
25005   rm -f conftest.er1
25006   cat conftest.err >&5
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } && {
25009          test -z "$ac_cxx_werror_flag" ||
25010          test ! -s conftest.err
25011        } && test -s conftest$ac_exeext &&
25012        $as_test_x conftest$ac_exeext; then
25013   ac_cv_sys_largefile_source=1; break
25014 else
25015   echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018
25019 fi
25020
25021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25022       conftest$ac_exeext conftest.$ac_ext
25023   ac_cv_sys_largefile_source=unknown
25024   break
25025 done
25026 fi
25027 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25028 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25029 case $ac_cv_sys_largefile_source in #(
25030   no | unknown) ;;
25031   *)
25032 cat >>confdefs.h <<_ACEOF
25033 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25034 _ACEOF
25035 ;;
25036 esac
25037 rm -f conftest*
25038
25039 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25040 # in glibc 2.1.3, but that breaks too many other things.
25041 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25042 if test $ac_cv_sys_largefile_source != unknown; then
25043
25044 cat >>confdefs.h <<\_ACEOF
25045 #define HAVE_FSEEKO 1
25046 _ACEOF
25047
25048 fi
25049
25050 CPPFLAGS="$old_CPPFLAGS"
25051 ac_ext=c
25052 ac_cpp='$CPP $CPPFLAGS'
25053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25056
25057 if test "$ac_cv_sys_largefile_source" != no; then
25058     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25059 fi
25060
25061 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25063 if test "${ac_cv_c_bigendian+set}" = set; then
25064   echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066   ac_cv_c_bigendian=unknown
25067 # See if sys/param.h defines the BYTE_ORDER macro.
25068 cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h.  */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h.  */
25074 #include <sys/types.h>
25075 #include <sys/param.h>
25076 int
25077 main ()
25078 {
25079
25080 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25081  bogus endian macros
25082 #endif
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext
25088 if { (ac_try="$ac_compile"
25089 case "(($ac_try" in
25090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091   *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094   (eval "$ac_compile") 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } && {
25101          test -z "$ac_c_werror_flag" ||
25102          test ! -s conftest.err
25103        } && test -s conftest.$ac_objext; then
25104   # It does; now see whether it defined to BIG_ENDIAN or not.
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h.  */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h.  */
25111 #include <sys/types.h>
25112 #include <sys/param.h>
25113 int
25114 main ()
25115 {
25116
25117 #if BYTE_ORDER != BIG_ENDIAN
25118  not big endian
25119 #endif
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext
25125 if { (ac_try="$ac_compile"
25126 case "(($ac_try" in
25127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128   *) ac_try_echo=$ac_try;;
25129 esac
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131   (eval "$ac_compile") 2>conftest.er1
25132   ac_status=$?
25133   grep -v '^ *+' conftest.er1 >conftest.err
25134   rm -f conftest.er1
25135   cat conftest.err >&5
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); } && {
25138          test -z "$ac_c_werror_flag" ||
25139          test ! -s conftest.err
25140        } && test -s conftest.$ac_objext; then
25141   ac_cv_c_bigendian=yes
25142 else
25143   echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25145
25146         ac_cv_c_bigendian=no
25147 fi
25148
25149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154
25155 fi
25156
25157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 if test $ac_cv_c_bigendian = unknown; then
25159 if test "$cross_compiling" = yes; then
25160   ac_cv_c_bigendian=unknown
25161 else
25162   cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h.  */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h.  */
25168 main () {
25169   /* Are we little or big endian?  From Harbison&Steele.  */
25170   union
25171   {
25172     long l;
25173     char c[sizeof (long)];
25174   } u;
25175   u.l = 1;
25176   exit (u.c[sizeof (long) - 1] == 1);
25177 }
25178 _ACEOF
25179 rm -f conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183   *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186   (eval "$ac_link") 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25190   { (case "(($ac_try" in
25191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25192   *) ac_try_echo=$ac_try;;
25193 esac
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195   (eval "$ac_try") 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; }; then
25199   ac_cv_c_bigendian=no
25200 else
25201   echo "$as_me: program exited with status $ac_status" >&5
25202 echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25204
25205 ( exit $ac_status )
25206 ac_cv_c_bigendian=yes
25207 fi
25208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25209 fi
25210
25211
25212 fi
25213 fi
25214 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25215 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25216 if test $ac_cv_c_bigendian = unknown; then
25217   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
25218 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
25219 fi
25220 if test $ac_cv_c_bigendian = yes; then
25221   cat >>confdefs.h <<\_ACEOF
25222 #define WORDS_BIGENDIAN 1
25223 _ACEOF
25224
25225 fi
25226
25227
25228
25229
25230     ac_ext=cpp
25231 ac_cpp='$CXXCPP $CPPFLAGS'
25232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25235
25236
25237
25238 for ac_header in iostream
25239 do
25240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252
25253
25254 #include <$ac_header>
25255 _ACEOF
25256 rm -f conftest.$ac_objext
25257 if { (ac_try="$ac_compile"
25258 case "(($ac_try" in
25259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260   *) ac_try_echo=$ac_try;;
25261 esac
25262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263   (eval "$ac_compile") 2>conftest.er1
25264   ac_status=$?
25265   grep -v '^ *+' conftest.er1 >conftest.err
25266   rm -f conftest.er1
25267   cat conftest.err >&5
25268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); } && {
25270          test -z "$ac_cxx_werror_flag" ||
25271          test ! -s conftest.err
25272        } && test -s conftest.$ac_objext; then
25273   eval "$as_ac_Header=yes"
25274 else
25275   echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278         eval "$as_ac_Header=no"
25279 fi
25280
25281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282 fi
25283 ac_res=`eval echo '${'$as_ac_Header'}'`
25284                { echo "$as_me:$LINENO: result: $ac_res" >&5
25285 echo "${ECHO_T}$ac_res" >&6; }
25286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25287   cat >>confdefs.h <<_ACEOF
25288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25289 _ACEOF
25290
25291 fi
25292
25293 done
25294
25295
25296     if test "$ac_cv_header_iostream" = "yes" ; then
25297       :
25298     else
25299       cat >>confdefs.h <<\_ACEOF
25300 #define wxUSE_IOSTREAMH 1
25301 _ACEOF
25302
25303     fi
25304
25305     ac_ext=c
25306 ac_cpp='$CPP $CPPFLAGS'
25307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25310
25311
25312
25313
25314   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25315 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25316 if test "${wx_cv_explicit+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319
25320
25321     ac_ext=cpp
25322 ac_cpp='$CXXCPP $CPPFLAGS'
25323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25326
25327
25328             cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334
25335         class Foo { public: explicit Foo(int) {} };
25336
25337 int
25338 main ()
25339 {
25340
25341         return 0;
25342
25343   ;
25344   return 0;
25345 }
25346 _ACEOF
25347 rm -f conftest.$ac_objext
25348 if { (ac_try="$ac_compile"
25349 case "(($ac_try" in
25350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351   *) ac_try_echo=$ac_try;;
25352 esac
25353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25354   (eval "$ac_compile") 2>conftest.er1
25355   ac_status=$?
25356   grep -v '^ *+' conftest.er1 >conftest.err
25357   rm -f conftest.er1
25358   cat conftest.err >&5
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); } && {
25361          test -z "$ac_cxx_werror_flag" ||
25362          test ! -s conftest.err
25363        } && test -s conftest.$ac_objext; then
25364
25365         cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371
25372                 class Foo { public: explicit Foo(int) {} };
25373                 static void TakeFoo(const Foo& foo) { }
25374
25375 int
25376 main ()
25377 {
25378
25379                 TakeFoo(17);
25380                 return 0;
25381
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 rm -f conftest.$ac_objext
25387 if { (ac_try="$ac_compile"
25388 case "(($ac_try" in
25389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390   *) ac_try_echo=$ac_try;;
25391 esac
25392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25393   (eval "$ac_compile") 2>conftest.er1
25394   ac_status=$?
25395   grep -v '^ *+' conftest.er1 >conftest.err
25396   rm -f conftest.er1
25397   cat conftest.err >&5
25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399   (exit $ac_status); } && {
25400          test -z "$ac_cxx_werror_flag" ||
25401          test ! -s conftest.err
25402        } && test -s conftest.$ac_objext; then
25403   wx_cv_explicit=no
25404 else
25405   echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25407
25408         wx_cv_explicit=yes
25409
25410 fi
25411
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413
25414 else
25415   echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25417
25418         wx_cv_explicit=no
25419
25420 fi
25421
25422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25423
25424     ac_ext=c
25425 ac_cpp='$CPP $CPPFLAGS'
25426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25429
25430
25431 fi
25432 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25433 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25434
25435   if test "$wx_cv_explicit" = "yes"; then
25436     cat >>confdefs.h <<\_ACEOF
25437 #define HAVE_EXPLICIT 1
25438 _ACEOF
25439
25440   fi
25441
25442
25443 if test "x$SUNCXX" = xyes; then
25444     CXXFLAGS="-features=tmplife $CXXFLAGS"
25445 fi
25446
25447 if test "x$SUNCC" = xyes; then
25448     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25449 fi
25450
25451 if test "x$SGICC" = "xyes"; then
25452     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25453 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25454 if test "${wx_cv_prog_sgicc744+set}" = set; then
25455   echo $ECHO_N "(cached) $ECHO_C" >&6
25456 else
25457
25458             cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h.  */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h.  */
25464
25465 int
25466 main ()
25467 {
25468
25469                     #if _SGI_COMPILER_VERSION >= 744
25470                     chock me: mipsPro is 7.4.4 or later
25471                     #endif
25472
25473   ;
25474   return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext
25478 if { (ac_try="$ac_compile"
25479 case "(($ac_try" in
25480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481   *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484   (eval "$ac_compile") 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && {
25491          test -z "$ac_c_werror_flag" ||
25492          test ! -s conftest.err
25493        } && test -s conftest.$ac_objext; then
25494   wx_cv_prog_sgicc744=no
25495 else
25496   echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25498
25499         wx_cv_prog_sgicc744=yes
25500
25501 fi
25502
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504
25505
25506 fi
25507 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25508 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25509
25510     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25511         CFLAGS="-woff 3970 $CFLAGS"
25512     fi
25513 fi
25514 if test "x$SGICXX" = "xyes"; then
25515     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25516 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25517 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25518   echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520
25521             ac_ext=cpp
25522 ac_cpp='$CXXCPP $CPPFLAGS'
25523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25526
25527             cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533
25534 int
25535 main ()
25536 {
25537
25538                     #if _SGI_COMPILER_VERSION >= 744
25539                     chock me: mipsPro is 7.4.4 or later
25540                     #endif
25541
25542   ;
25543   return 0;
25544 }
25545 _ACEOF
25546 rm -f conftest.$ac_objext
25547 if { (ac_try="$ac_compile"
25548 case "(($ac_try" in
25549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550   *) ac_try_echo=$ac_try;;
25551 esac
25552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25553   (eval "$ac_compile") 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } && {
25560          test -z "$ac_cxx_werror_flag" ||
25561          test ! -s conftest.err
25562        } && test -s conftest.$ac_objext; then
25563   wx_cv_prog_sgicxx744=no
25564 else
25565   echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25567
25568         wx_cv_prog_sgicxx744=yes
25569
25570 fi
25571
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573             ac_ext=c
25574 ac_cpp='$CPP $CPPFLAGS'
25575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25578
25579
25580
25581 fi
25582 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25583 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25584
25585     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25586         CXXFLAGS="-woff 3970 $CXXFLAGS"
25587     fi
25588 fi
25589
25590 if test "x$HPCC" = "xyes"; then
25591                     CFLAGS="+W 2011,2450 $CFLAGS"
25592 fi
25593 if test "x$HPCXX" = "xyes"; then
25594                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25595 fi
25596
25597 if test "x$COMPAQCXX" = "xyes"; then
25598                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25599 fi
25600
25601 ac_ext=cpp
25602 ac_cpp='$CXXCPP $CPPFLAGS'
25603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25606
25607
25608 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25609     if test "$wxUSE_UNICODE" = "yes"; then
25610         std_string="std::wstring"
25611         char_type="wchar_t"
25612     else
25613         std_string="std::string"
25614         char_type="char"
25615     fi
25616
25617         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25618 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25619 if test "${wx_cv_class_stdstring+set}" = set; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622
25623             cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h.  */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h.  */
25629 #include <string>
25630 int
25631 main ()
25632 {
25633 $std_string foo;
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext
25639 if { (ac_try="$ac_compile"
25640 case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_compile") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_cxx_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest.$ac_objext; then
25655   wx_cv_class_stdstring=yes
25656 else
25657   echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660         wx_cv_class_stdstring=no
25661
25662 fi
25663
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665
25666
25667 fi
25668 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25669 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25670
25671     if test "$wx_cv_class_stdstring" = yes; then
25672         if test "$wxUSE_UNICODE" = "yes"; then
25673             cat >>confdefs.h <<\_ACEOF
25674 #define HAVE_STD_WSTRING 1
25675 _ACEOF
25676
25677         fi
25678                     else
25679         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25680 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25681 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25682   echo $ECHO_N "(cached) $ECHO_C" >&6
25683 else
25684
25685                 cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691
25692                     #ifdef HAVE_WCHAR_H
25693                     #  ifdef __CYGWIN__
25694                     #    include <stddef.h>
25695                     #  endif
25696                     #  include <wchar.h>
25697                     #endif
25698                     #ifdef HAVE_STDLIB_H
25699                     #  include <stdlib.h>
25700                     #endif
25701                     #include <stdio.h>
25702                     #include <string>
25703
25704 int
25705 main ()
25706 {
25707 std::basic_string<$char_type> foo;
25708                      const $char_type* dummy = foo.c_str();
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext
25714 if { (ac_try="$ac_compile"
25715 case "(($ac_try" in
25716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717   *) ac_try_echo=$ac_try;;
25718 esac
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720   (eval "$ac_compile") 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } && {
25727          test -z "$ac_cxx_werror_flag" ||
25728          test ! -s conftest.err
25729        } && test -s conftest.$ac_objext; then
25730   wx_cv_class_stdbasicstring=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735         wx_cv_class_stdbasicstring=no
25736
25737 fi
25738
25739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740
25741
25742 fi
25743 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25744 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25745
25746         if test "$wx_cv_class_stdbasicstring" != yes; then
25747             if test "$wxUSE_STL" = "yes"; then
25748                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25749 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25750    { (exit 1); exit 1; }; }
25751             elif test "$wxUSE_STD_STRING" = "yes"; then
25752                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25753 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25754    { (exit 1); exit 1; }; }
25755             else
25756                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25757 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25758                 wxUSE_STD_STRING=no
25759             fi
25760         fi
25761     fi
25762 fi
25763
25764 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25765     { echo "$as_me:$LINENO: checking for std::istream" >&5
25766 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25767 if test "${ac_cv_type_std__istream+set}" = set; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 #include <iostream>
25777
25778 typedef std::istream ac__type_new_;
25779 int
25780 main ()
25781 {
25782 if ((ac__type_new_ *) 0)
25783   return 0;
25784 if (sizeof (ac__type_new_))
25785   return 0;
25786   ;
25787   return 0;
25788 }
25789 _ACEOF
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794   *) ac_try_echo=$ac_try;;
25795 esac
25796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25797   (eval "$ac_compile") 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } && {
25804          test -z "$ac_cxx_werror_flag" ||
25805          test ! -s conftest.err
25806        } && test -s conftest.$ac_objext; then
25807   ac_cv_type_std__istream=yes
25808 else
25809   echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812         ac_cv_type_std__istream=no
25813 fi
25814
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25816 fi
25817 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25818 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25819 if test $ac_cv_type_std__istream = yes; then
25820
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_STD__ISTREAM 1
25823 _ACEOF
25824
25825
25826 else
25827   wxUSE_STD_IOSTREAM=no
25828 fi
25829 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25830 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25831 if test "${ac_cv_type_std__ostream+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h.  */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h.  */
25840 #include <iostream>
25841
25842 typedef std::ostream ac__type_new_;
25843 int
25844 main ()
25845 {
25846 if ((ac__type_new_ *) 0)
25847   return 0;
25848 if (sizeof (ac__type_new_))
25849   return 0;
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext
25855 if { (ac_try="$ac_compile"
25856 case "(($ac_try" in
25857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858   *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861   (eval "$ac_compile") 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } && {
25868          test -z "$ac_cxx_werror_flag" ||
25869          test ! -s conftest.err
25870        } && test -s conftest.$ac_objext; then
25871   ac_cv_type_std__ostream=yes
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876         ac_cv_type_std__ostream=no
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25880 fi
25881 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25882 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25883 if test $ac_cv_type_std__ostream = yes; then
25884
25885 cat >>confdefs.h <<_ACEOF
25886 #define HAVE_STD__OSTREAM 1
25887 _ACEOF
25888
25889
25890 else
25891   wxUSE_STD_IOSTREAM=no
25892 fi
25893
25894
25895     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25896         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25897             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25898 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25899    { (exit 1); exit 1; }; }
25900         else
25901             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25902 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25903         fi
25904     fi
25905 fi
25906
25907 if test "$wxUSE_STL" = "yes"; then
25908         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25909 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25910 if test "${wx_cv_lib_stl+set}" = set; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 #include <string>
25920             #include <functional>
25921             #include <algorithm>
25922             #include <vector>
25923             #include <list>
25924 int
25925 main ()
25926 {
25927 std::vector<int> moo;
25928              std::list<int> foo;
25929              std::vector<int>::iterator it =
25930                  std::find_if(moo.begin(), moo.end(),
25931                               std::bind2nd(std::less<int>(), 3));
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 rm -f conftest.$ac_objext
25937 if { (ac_try="$ac_compile"
25938 case "(($ac_try" in
25939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940   *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943   (eval "$ac_compile") 2>conftest.er1
25944   ac_status=$?
25945   grep -v '^ *+' conftest.er1 >conftest.err
25946   rm -f conftest.er1
25947   cat conftest.err >&5
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); } && {
25950          test -z "$ac_cxx_werror_flag" ||
25951          test ! -s conftest.err
25952        } && test -s conftest.$ac_objext; then
25953   wx_cv_lib_stl=yes
25954 else
25955   echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958         wx_cv_lib_stl=no
25959
25960 fi
25961
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963
25964 fi
25965 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25966 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25967
25968     if test "$wx_cv_lib_stl" != yes; then
25969          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25970 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25971    { (exit 1); exit 1; }; }
25972     fi
25973
25974         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25975 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25976 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25977   echo $ECHO_N "(cached) $ECHO_C" >&6
25978 else
25979   cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h.  */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h.  */
25985 #include <string>
25986 int
25987 main ()
25988 {
25989 std::string foo, bar;
25990             foo.compare(bar);
25991             foo.compare(1, 1, bar);
25992             foo.compare(1, 1, bar, 1, 1);
25993             foo.compare("");
25994             foo.compare(1, 1, "");
25995             foo.compare(1, 1, "", 2);
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 rm -f conftest.$ac_objext
26001 if { (ac_try="$ac_compile"
26002 case "(($ac_try" in
26003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004   *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007   (eval "$ac_compile") 2>conftest.er1
26008   ac_status=$?
26009   grep -v '^ *+' conftest.er1 >conftest.err
26010   rm -f conftest.er1
26011   cat conftest.err >&5
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); } && {
26014          test -z "$ac_cxx_werror_flag" ||
26015          test ! -s conftest.err
26016        } && test -s conftest.$ac_objext; then
26017   wx_cv_func_stdstring_compare=yes
26018 else
26019   echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26021
26022         wx_cv_func_stdstring_compare=no
26023
26024 fi
26025
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027
26028 fi
26029 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26030 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26031
26032     if test "$wx_cv_func_stdstring_compare" = yes; then
26033         cat >>confdefs.h <<\_ACEOF
26034 #define HAVE_STD_STRING_COMPARE 1
26035 _ACEOF
26036
26037     fi
26038
26039     if test "$wx_cv_class_gnuhashmapset" = yes; then
26040          cat >>confdefs.h <<\_ACEOF
26041 #define HAVE_EXT_HASH_MAP 1
26042 _ACEOF
26043
26044          cat >>confdefs.h <<\_ACEOF
26045 #define HAVE_GNU_CXX_HASH_MAP 1
26046 _ACEOF
26047
26048     fi
26049
26050     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26051 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26052 if test "${ac_cv_header_unordered_map+set}" = set; then
26053   echo $ECHO_N "(cached) $ECHO_C" >&6
26054 else
26055   cat >conftest.$ac_ext <<_ACEOF
26056 /* confdefs.h.  */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h.  */
26061
26062
26063
26064 #include <unordered_map>
26065 _ACEOF
26066 rm -f conftest.$ac_objext
26067 if { (ac_try="$ac_compile"
26068 case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073   (eval "$ac_compile") 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } && {
26080          test -z "$ac_cxx_werror_flag" ||
26081          test ! -s conftest.err
26082        } && test -s conftest.$ac_objext; then
26083   ac_cv_header_unordered_map=yes
26084 else
26085   echo "$as_me: failed program was:" >&5
26086 sed 's/^/| /' conftest.$ac_ext >&5
26087
26088         ac_cv_header_unordered_map=no
26089 fi
26090
26091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092 fi
26093 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26094 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26095 if test $ac_cv_header_unordered_map = yes; then
26096   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26097 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26098 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26099   echo $ECHO_N "(cached) $ECHO_C" >&6
26100 else
26101   cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107 #include <unordered_map>
26108                 #include <unordered_set>
26109 int
26110 main ()
26111 {
26112 std::unordered_map<double*, char*> test1;
26113                  std::unordered_set<char*> test2;
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125   (eval "$ac_compile") 2>conftest.er1
26126   ac_status=$?
26127   grep -v '^ *+' conftest.er1 >conftest.err
26128   rm -f conftest.er1
26129   cat conftest.err >&5
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); } && {
26132          test -z "$ac_cxx_werror_flag" ||
26133          test ! -s conftest.err
26134        } && test -s conftest.$ac_objext; then
26135   wx_cv_class_stdunorderedmapset=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140         wx_cv_class_stdunorderedmapset=no
26141 fi
26142
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144
26145
26146 fi
26147 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26148 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26149 fi
26150
26151
26152
26153     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26154          cat >>confdefs.h <<\_ACEOF
26155 #define HAVE_STD_UNORDERED_MAP 1
26156 _ACEOF
26157
26158          cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_STD_UNORDERED_SET 1
26160 _ACEOF
26161
26162     else
26163         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26164 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26165 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26166   echo $ECHO_N "(cached) $ECHO_C" >&6
26167 else
26168   cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h.  */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h.  */
26174
26175
26176
26177 #include <tr1/unordered_map>
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } && {
26193          test -z "$ac_cxx_werror_flag" ||
26194          test ! -s conftest.err
26195        } && test -s conftest.$ac_objext; then
26196   ac_cv_header_tr1_unordered_map=yes
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201         ac_cv_header_tr1_unordered_map=no
26202 fi
26203
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205 fi
26206 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26207 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26208 if test $ac_cv_header_tr1_unordered_map = yes; then
26209   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26210 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26211 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26212   echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214   cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h.  */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h.  */
26220 #include <tr1/unordered_map>
26221                     #include <tr1/unordered_set>
26222 int
26223 main ()
26224 {
26225 std::tr1::unordered_map<double*, char*> test1;
26226                      std::tr1::unordered_set<char*> test2;
26227             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26228             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26229             #endif
26230   ;
26231   return 0;
26232 }
26233 _ACEOF
26234 rm -f conftest.$ac_objext
26235 if { (ac_try="$ac_compile"
26236 case "(($ac_try" in
26237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238   *) ac_try_echo=$ac_try;;
26239 esac
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241   (eval "$ac_compile") 2>conftest.er1
26242   ac_status=$?
26243   grep -v '^ *+' conftest.er1 >conftest.err
26244   rm -f conftest.er1
26245   cat conftest.err >&5
26246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247   (exit $ac_status); } && {
26248          test -z "$ac_cxx_werror_flag" ||
26249          test ! -s conftest.err
26250        } && test -s conftest.$ac_objext; then
26251   wx_cv_class_tr1unorderedmapset=yes
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256         wx_cv_class_tr1unorderedmapset=no
26257 fi
26258
26259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26260
26261
26262 fi
26263 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26264 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26265 fi
26266
26267
26268
26269         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26270             cat >>confdefs.h <<\_ACEOF
26271 #define HAVE_TR1_UNORDERED_MAP 1
26272 _ACEOF
26273
26274             cat >>confdefs.h <<\_ACEOF
26275 #define HAVE_TR1_UNORDERED_SET 1
26276 _ACEOF
26277
26278         else
26279                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26280 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26281 if test "${ac_cv_header_hash_map+set}" = set; then
26282   echo $ECHO_N "(cached) $ECHO_C" >&6
26283 else
26284   cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290
26291
26292
26293 #include <hash_map>
26294 _ACEOF
26295 rm -f conftest.$ac_objext
26296 if { (ac_try="$ac_compile"
26297 case "(($ac_try" in
26298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299   *) ac_try_echo=$ac_try;;
26300 esac
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302   (eval "$ac_compile") 2>conftest.er1
26303   ac_status=$?
26304   grep -v '^ *+' conftest.er1 >conftest.err
26305   rm -f conftest.er1
26306   cat conftest.err >&5
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); } && {
26309          test -z "$ac_cxx_werror_flag" ||
26310          test ! -s conftest.err
26311        } && test -s conftest.$ac_objext; then
26312   ac_cv_header_hash_map=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317         ac_cv_header_hash_map=no
26318 fi
26319
26320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26321 fi
26322 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26323 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26324 if test $ac_cv_header_hash_map = yes; then
26325   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26326 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26327 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336 #include <hash_map>
26337                         #include <hash_set>
26338 int
26339 main ()
26340 {
26341 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26342                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext
26348 if { (ac_try="$ac_compile"
26349 case "(($ac_try" in
26350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351   *) ac_try_echo=$ac_try;;
26352 esac
26353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26354   (eval "$ac_compile") 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && {
26361          test -z "$ac_cxx_werror_flag" ||
26362          test ! -s conftest.err
26363        } && test -s conftest.$ac_objext; then
26364   wx_cv_class_stdhashmapset=yes
26365 else
26366   echo "$as_me: failed program was:" >&5
26367 sed 's/^/| /' conftest.$ac_ext >&5
26368
26369         wx_cv_class_stdhashmapset=no
26370 fi
26371
26372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26373
26374
26375 fi
26376 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26377 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26378 fi
26379
26380
26381
26382             if test "$wx_cv_class_stdhashmapset" = yes; then
26383                 cat >>confdefs.h <<\_ACEOF
26384 #define HAVE_HASH_MAP 1
26385 _ACEOF
26386
26387                 cat >>confdefs.h <<\_ACEOF
26388 #define HAVE_STD_HASH_MAP 1
26389 _ACEOF
26390
26391             fi
26392
26393             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26394 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26395 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26396   echo $ECHO_N "(cached) $ECHO_C" >&6
26397 else
26398   cat >conftest.$ac_ext <<_ACEOF
26399 /* confdefs.h.  */
26400 _ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h.  */
26404
26405
26406
26407 #include <ext/hash_map>
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (ac_try="$ac_compile"
26411 case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_compile") 2>conftest.er1
26417   ac_status=$?
26418   grep -v '^ *+' conftest.er1 >conftest.err
26419   rm -f conftest.er1
26420   cat conftest.err >&5
26421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); } && {
26423          test -z "$ac_cxx_werror_flag" ||
26424          test ! -s conftest.err
26425        } && test -s conftest.$ac_objext; then
26426   ac_cv_header_ext_hash_map=yes
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         ac_cv_header_ext_hash_map=no
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26437 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26438 if test $ac_cv_header_ext_hash_map = yes; then
26439   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26440 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26441 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26442   echo $ECHO_N "(cached) $ECHO_C" >&6
26443 else
26444   cat >conftest.$ac_ext <<_ACEOF
26445 /* confdefs.h.  */
26446 _ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h.  */
26450 #include <ext/hash_map>
26451                         #include <ext/hash_set>
26452 int
26453 main ()
26454 {
26455 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26456                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26457   ;
26458   return 0;
26459 }
26460 _ACEOF
26461 rm -f conftest.$ac_objext
26462 if { (ac_try="$ac_compile"
26463 case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_compile") 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } && {
26475          test -z "$ac_cxx_werror_flag" ||
26476          test ! -s conftest.err
26477        } && test -s conftest.$ac_objext; then
26478   wx_cv_class_gnuhashmapset=yes
26479 else
26480   echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26482
26483         wx_cv_class_gnuhashmapset=no
26484 fi
26485
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487
26488
26489 fi
26490 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26491 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26492 fi
26493
26494
26495
26496         fi
26497     fi
26498 fi
26499
26500 ac_ext=cpp
26501 ac_cpp='$CXXCPP $CPPFLAGS'
26502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26505 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26506 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26507 if test -z "$CXXCPP"; then
26508   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26509   echo $ECHO_N "(cached) $ECHO_C" >&6
26510 else
26511       # Double quotes because CXXCPP needs to be expanded
26512     for CXXCPP in "$CXX -E" "/lib/cpp"
26513     do
26514       ac_preproc_ok=false
26515 for ac_cxx_preproc_warn_flag in '' yes
26516 do
26517   # Use a header file that comes with gcc, so configuring glibc
26518   # with a fresh cross-compiler works.
26519   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26520   # <limits.h> exists even on freestanding compilers.
26521   # On the NeXT, cc -E runs the code through the compiler's parser,
26522   # not just through cpp. "Syntax error" is here to catch this case.
26523   cat >conftest.$ac_ext <<_ACEOF
26524 /* confdefs.h.  */
26525 _ACEOF
26526 cat confdefs.h >>conftest.$ac_ext
26527 cat >>conftest.$ac_ext <<_ACEOF
26528 /* end confdefs.h.  */
26529 #ifdef __STDC__
26530 # include <limits.h>
26531 #else
26532 # include <assert.h>
26533 #endif
26534                      Syntax error
26535 _ACEOF
26536 if { (ac_try="$ac_cpp conftest.$ac_ext"
26537 case "(($ac_try" in
26538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539   *) ac_try_echo=$ac_try;;
26540 esac
26541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26543   ac_status=$?
26544   grep -v '^ *+' conftest.er1 >conftest.err
26545   rm -f conftest.er1
26546   cat conftest.err >&5
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); } >/dev/null && {
26549          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26550          test ! -s conftest.err
26551        }; then
26552   :
26553 else
26554   echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557   # Broken: fails on valid input.
26558 continue
26559 fi
26560
26561 rm -f conftest.err conftest.$ac_ext
26562
26563   # OK, works on sane cases.  Now check whether nonexistent headers
26564   # can be detected and how.
26565   cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 #include <ac_nonexistent.h>
26572 _ACEOF
26573 if { (ac_try="$ac_cpp conftest.$ac_ext"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } >/dev/null && {
26586          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26587          test ! -s conftest.err
26588        }; then
26589   # Broken: success on invalid input.
26590 continue
26591 else
26592   echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595   # Passes both tests.
26596 ac_preproc_ok=:
26597 break
26598 fi
26599
26600 rm -f conftest.err conftest.$ac_ext
26601
26602 done
26603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26604 rm -f conftest.err conftest.$ac_ext
26605 if $ac_preproc_ok; then
26606   break
26607 fi
26608
26609     done
26610     ac_cv_prog_CXXCPP=$CXXCPP
26611
26612 fi
26613   CXXCPP=$ac_cv_prog_CXXCPP
26614 else
26615   ac_cv_prog_CXXCPP=$CXXCPP
26616 fi
26617 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26618 echo "${ECHO_T}$CXXCPP" >&6; }
26619 ac_preproc_ok=false
26620 for ac_cxx_preproc_warn_flag in '' yes
26621 do
26622   # Use a header file that comes with gcc, so configuring glibc
26623   # with a fresh cross-compiler works.
26624   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26625   # <limits.h> exists even on freestanding compilers.
26626   # On the NeXT, cc -E runs the code through the compiler's parser,
26627   # not just through cpp. "Syntax error" is here to catch this case.
26628   cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h.  */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h.  */
26634 #ifdef __STDC__
26635 # include <limits.h>
26636 #else
26637 # include <assert.h>
26638 #endif
26639                      Syntax error
26640 _ACEOF
26641 if { (ac_try="$ac_cpp conftest.$ac_ext"
26642 case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } >/dev/null && {
26654          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26655          test ! -s conftest.err
26656        }; then
26657   :
26658 else
26659   echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662   # Broken: fails on valid input.
26663 continue
26664 fi
26665
26666 rm -f conftest.err conftest.$ac_ext
26667
26668   # OK, works on sane cases.  Now check whether nonexistent headers
26669   # can be detected and how.
26670   cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 #include <ac_nonexistent.h>
26677 _ACEOF
26678 if { (ac_try="$ac_cpp conftest.$ac_ext"
26679 case "(($ac_try" in
26680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681   *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } >/dev/null && {
26691          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26692          test ! -s conftest.err
26693        }; then
26694   # Broken: success on invalid input.
26695 continue
26696 else
26697   echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26699
26700   # Passes both tests.
26701 ac_preproc_ok=:
26702 break
26703 fi
26704
26705 rm -f conftest.err conftest.$ac_ext
26706
26707 done
26708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26709 rm -f conftest.err conftest.$ac_ext
26710 if $ac_preproc_ok; then
26711   :
26712 else
26713   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26714 See \`config.log' for more details." >&5
26715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26716 See \`config.log' for more details." >&2;}
26717    { (exit 1); exit 1; }; }
26718 fi
26719
26720 ac_ext=cpp
26721 ac_cpp='$CXXCPP $CPPFLAGS'
26722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26725
26726
26727
26728
26729 for ac_header in type_traits tr1/type_traits
26730 do
26731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26736   echo $ECHO_N "(cached) $ECHO_C" >&6
26737 fi
26738 ac_res=`eval echo '${'$as_ac_Header'}'`
26739                { echo "$as_me:$LINENO: result: $ac_res" >&5
26740 echo "${ECHO_T}$ac_res" >&6; }
26741 else
26742   # Is the header compilable?
26743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26745 cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 $ac_includes_default
26752 #include <$ac_header>
26753 _ACEOF
26754 rm -f conftest.$ac_objext
26755 if { (ac_try="$ac_compile"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_compile") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_cxx_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest.$ac_objext; then
26771   ac_header_compiler=yes
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         ac_header_compiler=no
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26781 echo "${ECHO_T}$ac_header_compiler" >&6; }
26782
26783 # Is the header present?
26784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26786 cat >conftest.$ac_ext <<_ACEOF
26787 /* confdefs.h.  */
26788 _ACEOF
26789 cat confdefs.h >>conftest.$ac_ext
26790 cat >>conftest.$ac_ext <<_ACEOF
26791 /* end confdefs.h.  */
26792 #include <$ac_header>
26793 _ACEOF
26794 if { (ac_try="$ac_cpp conftest.$ac_ext"
26795 case "(($ac_try" in
26796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797   *) ac_try_echo=$ac_try;;
26798 esac
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26801   ac_status=$?
26802   grep -v '^ *+' conftest.er1 >conftest.err
26803   rm -f conftest.er1
26804   cat conftest.err >&5
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); } >/dev/null && {
26807          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26808          test ! -s conftest.err
26809        }; then
26810   ac_header_preproc=yes
26811 else
26812   echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26814
26815   ac_header_preproc=no
26816 fi
26817
26818 rm -f conftest.err conftest.$ac_ext
26819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26820 echo "${ECHO_T}$ac_header_preproc" >&6; }
26821
26822 # So?  What about this header?
26823 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26824   yes:no: )
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26829     ac_header_preproc=yes
26830     ;;
26831   no:yes:* )
26832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26844     ( cat <<\_ASBOX
26845 ## ----------------------------------------- ##
26846 ## Report this to wx-dev@lists.wxwidgets.org ##
26847 ## ----------------------------------------- ##
26848 _ASBOX
26849      ) | sed "s/^/$as_me: WARNING:     /" >&2
26850     ;;
26851 esac
26852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26855   echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857   eval "$as_ac_Header=\$ac_header_preproc"
26858 fi
26859 ac_res=`eval echo '${'$as_ac_Header'}'`
26860                { echo "$as_me:$LINENO: result: $ac_res" >&5
26861 echo "${ECHO_T}$ac_res" >&6; }
26862
26863 fi
26864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26865   cat >>confdefs.h <<_ACEOF
26866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26867 _ACEOF
26868
26869 fi
26870
26871 done
26872
26873
26874
26875
26876   if test -n "$GCC"; then
26877     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26878 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26879     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26880   echo $ECHO_N "(cached) $ECHO_C" >&6
26881 else
26882
26883       cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h.  */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h.  */
26889
26890 int
26891 main ()
26892 {
26893
26894           unsigned int value=0;
26895           /* wxAtomicInc doesn't use return value here */
26896           __sync_fetch_and_add(&value, 2);
26897           __sync_sub_and_fetch(&value, 1);
26898           /* but wxAtomicDec does, so mimic that: */
26899           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26900
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext conftest$ac_exeext
26906 if { (ac_try="$ac_link"
26907 case "(($ac_try" in
26908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909   *) ac_try_echo=$ac_try;;
26910 esac
26911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912   (eval "$ac_link") 2>conftest.er1
26913   ac_status=$?
26914   grep -v '^ *+' conftest.er1 >conftest.err
26915   rm -f conftest.er1
26916   cat conftest.err >&5
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); } && {
26919          test -z "$ac_cxx_werror_flag" ||
26920          test ! -s conftest.err
26921        } && test -s conftest$ac_exeext &&
26922        $as_test_x conftest$ac_exeext; then
26923   wx_cv_cc_gcc_atomic_builtins=yes
26924 else
26925   echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928         wx_cv_cc_gcc_atomic_builtins=no
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26932       conftest$ac_exeext conftest.$ac_ext
26933
26934 fi
26935
26936     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26937 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26938     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26939       cat >>confdefs.h <<\_ACEOF
26940 #define HAVE_GCC_ATOMIC_BUILTINS 1
26941 _ACEOF
26942
26943     fi
26944   fi
26945
26946
26947 ac_ext=c
26948 ac_cpp='$CPP $CPPFLAGS'
26949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26952
26953
26954
26955 SEARCH_INCLUDE="\
26956     /usr/local/include        \
26957     /usr/local/X11/include    \
26958     /usr/local/include/X11    \
26959     /usr/local/X11R7/include  \
26960     /usr/local/X11R6/include  \
26961     /usr/local/include/X11R7  \
26962     /usr/local/include/X11R6  \
26963                               \
26964     /usr/Motif-2.1/include    \
26965     /usr/Motif-1.2/include    \
26966     /usr/include/Motif1.2     \
26967                               \
26968     /usr/dt/include           \
26969     /usr/openwin/include      \
26970                               \
26971     /usr/include/Xm           \
26972                               \
26973     /usr/X11R7/include        \
26974     /usr/X11R6/include        \
26975     /usr/X11R6.4/include      \
26976                               \
26977     /usr/include/X11R7        \
26978     /usr/include/X11R6        \
26979                               \
26980     /usr/X11/include          \
26981     /usr/include/X11          \
26982                               \
26983     /usr/XFree86/include/X11  \
26984     /usr/pkg/include          \
26985                               \
26986     /usr/local/X1R5/include  \
26987     /usr/local/include/X11R5  \
26988     /usr/X11R5/include        \
26989     /usr/include/X11R5        \
26990                               \
26991     /usr/local/X11R4/include  \
26992     /usr/local/include/X11R4  \
26993     /usr/X11R4/include        \
26994     /usr/include/X11R4        \
26995                               \
26996     /usr/openwin/share/include"
26997
26998 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26999 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27000
27001 case "${host}" in
27002     *-*-irix6* )
27003         if test "${wx_cv_std_libpath+set}" = set; then
27004   echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006
27007                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27008                     for e in a so sl dylib dll.a; do
27009                         libc="$d/libc.$e"
27010                         if test -f $libc; then
27011                             save_LIBS="$LIBS"
27012                             LIBS="$libc"
27013                             cat >conftest.$ac_ext <<_ACEOF
27014 int main() { return 0; }
27015 _ACEOF
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020   *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023   (eval "$ac_link") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } && {
27030          test -z "$ac_c_werror_flag" ||
27031          test ! -s conftest.err
27032        } && test -s conftest$ac_exeext &&
27033        $as_test_x conftest$ac_exeext; then
27034   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27035 else
27036   echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039
27040 fi
27041
27042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27043       conftest$ac_exeext conftest.$ac_ext
27044                             LIBS="$save_LIBS"
27045                             if test "x$wx_cv_std_libpath" != "x"; then
27046                                 break 2
27047                             fi
27048                         fi
27049                     done
27050                 done
27051                 if test "x$wx_cv_std_libpath" = "x"; then
27052                     wx_cv_std_libpath="lib"
27053                 fi
27054
27055
27056 fi
27057
27058         ;;
27059
27060     *-*-solaris2* )
27061                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27062             wx_cv_std_libpath="lib/64"
27063         else
27064             wx_cv_std_libpath="lib"
27065         fi
27066         ;;
27067
27068     *-*-linux* )
27069                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27070                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27071             wx_cv_std_libpath="lib64"
27072         else
27073             wx_cv_std_libpath="lib"
27074         fi
27075         ;;
27076
27077     *)
27078         wx_cv_std_libpath="lib";
27079         ;;
27080 esac
27081
27082 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27083 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27084
27085 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27086
27087 if test "$build" != "$host" -a "$GCC" = yes; then
27088                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27089         cross_root=`dirname $cross_root`
27090         cross_root=`dirname $cross_root`
27091
27092                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27093         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27094         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27095
27096                 if test -z "$PKG_CONFIG_PATH"; then
27097             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27098             export PKG_CONFIG_PATH
27099         fi
27100
27101                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27102
27103 ac_find_includes=
27104 for ac_dir in $SEARCH_INCLUDE /usr/include
27105   do
27106     if test -f "$ac_dir/X11/Intrinsic.h"; then
27107       ac_find_includes=$ac_dir
27108       break
27109     fi
27110   done
27111
27112             x_includes=$ac_find_includes
27113         fi
27114         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27115
27116   ac_find_libraries=
27117   for ac_dir in $SEARCH_LIB
27118   do
27119     for ac_extension in a so sl dylib dll.a; do
27120       if test -f "$ac_dir/libXt.$ac_extension"; then
27121         ac_find_libraries=$ac_dir
27122         break 2
27123       fi
27124     done
27125   done
27126
27127             x_libraries=$ac_find_libraries
27128         fi
27129     fi
27130 fi
27131
27132
27133 cat >confcache <<\_ACEOF
27134 # This file is a shell script that caches the results of configure
27135 # tests run on this system so they can be shared between configure
27136 # scripts and configure runs, see configure's option --config-cache.
27137 # It is not useful on other systems.  If it contains results you don't
27138 # want to keep, you may remove or edit it.
27139 #
27140 # config.status only pays attention to the cache file if you give it
27141 # the --recheck option to rerun configure.
27142 #
27143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27145 # following values.
27146
27147 _ACEOF
27148
27149 # The following way of writing the cache mishandles newlines in values,
27150 # but we know of no workaround that is simple, portable, and efficient.
27151 # So, we kill variables containing newlines.
27152 # Ultrix sh set writes to stderr and can't be redirected directly,
27153 # and sets the high bit in the cache file unless we assign to the vars.
27154 (
27155   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27156     eval ac_val=\$$ac_var
27157     case $ac_val in #(
27158     *${as_nl}*)
27159       case $ac_var in #(
27160       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27161 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27162       esac
27163       case $ac_var in #(
27164       _ | IFS | as_nl) ;; #(
27165       *) $as_unset $ac_var ;;
27166       esac ;;
27167     esac
27168   done
27169
27170   (set) 2>&1 |
27171     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27172     *${as_nl}ac_space=\ *)
27173       # `set' does not quote correctly, so add quotes (double-quote
27174       # substitution turns \\\\ into \\, and sed turns \\ into \).
27175       sed -n \
27176         "s/'/'\\\\''/g;
27177           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27178       ;; #(
27179     *)
27180       # `set' quotes correctly as required by POSIX, so do not add quotes.
27181       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27182       ;;
27183     esac |
27184     sort
27185 ) |
27186   sed '
27187      /^ac_cv_env_/b end
27188      t clear
27189      :clear
27190      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27191      t end
27192      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27193      :end' >>confcache
27194 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27195   if test -w "$cache_file"; then
27196     test "x$cache_file" != "x/dev/null" &&
27197       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27198 echo "$as_me: updating cache $cache_file" >&6;}
27199     cat confcache >$cache_file
27200   else
27201     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27202 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27203   fi
27204 fi
27205 rm -f confcache
27206
27207 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27208     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27209 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27210 if test "${wx_cv_lib_glibc21+set}" = set; then
27211   echo $ECHO_N "(cached) $ECHO_C" >&6
27212 else
27213
27214         cat >conftest.$ac_ext <<_ACEOF
27215 /* confdefs.h.  */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h.  */
27220 #include <features.h>
27221 int
27222 main ()
27223 {
27224
27225                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27226                 not glibc 2.1
27227                 #endif
27228
27229   ;
27230   return 0;
27231 }
27232 _ACEOF
27233 rm -f conftest.$ac_objext
27234 if { (ac_try="$ac_compile"
27235 case "(($ac_try" in
27236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237   *) ac_try_echo=$ac_try;;
27238 esac
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240   (eval "$ac_compile") 2>conftest.er1
27241   ac_status=$?
27242   grep -v '^ *+' conftest.er1 >conftest.err
27243   rm -f conftest.er1
27244   cat conftest.err >&5
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); } && {
27247          test -z "$ac_c_werror_flag" ||
27248          test ! -s conftest.err
27249        } && test -s conftest.$ac_objext; then
27250
27251                 wx_cv_lib_glibc21=yes
27252
27253 else
27254   echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257
27258                 wx_cv_lib_glibc21=no
27259
27260
27261 fi
27262
27263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264
27265 fi
27266 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27267 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27268     if test "$wx_cv_lib_glibc21" = "yes"; then
27269         cat >>confdefs.h <<\_ACEOF
27270 #define wxHAVE_GLIBC2 1
27271 _ACEOF
27272
27273     fi
27274 fi
27275
27276 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27277     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27278         cat >>confdefs.h <<\_ACEOF
27279 #define _GNU_SOURCE 1
27280 _ACEOF
27281
27282     fi
27283 fi
27284
27285 have_cos=0
27286 have_floor=0
27287
27288 for ac_func in cos
27289 do
27290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27294   echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296   cat >conftest.$ac_ext <<_ACEOF
27297 /* confdefs.h.  */
27298 _ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h.  */
27302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27304 #define $ac_func innocuous_$ac_func
27305
27306 /* System header to define __stub macros and hopefully few prototypes,
27307     which can conflict with char $ac_func (); below.
27308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27309     <limits.h> exists even on freestanding compilers.  */
27310
27311 #ifdef __STDC__
27312 # include <limits.h>
27313 #else
27314 # include <assert.h>
27315 #endif
27316
27317 #undef $ac_func
27318
27319 /* Override any GCC internal prototype to avoid an error.
27320    Use char because int might match the return type of a GCC
27321    builtin and then its argument prototype would still apply.  */
27322 #ifdef __cplusplus
27323 extern "C"
27324 #endif
27325 char $ac_func ();
27326 /* The GNU C library defines this for functions which it implements
27327     to always fail with ENOSYS.  Some functions are actually named
27328     something starting with __ and the normal name is an alias.  */
27329 #if defined __stub_$ac_func || defined __stub___$ac_func
27330 choke me
27331 #endif
27332
27333 int
27334 main ()
27335 {
27336 return $ac_func ();
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest.$ac_objext conftest$ac_exeext
27342 if { (ac_try="$ac_link"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_link") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } && {
27355          test -z "$ac_c_werror_flag" ||
27356          test ! -s conftest.err
27357        } && test -s conftest$ac_exeext &&
27358        $as_test_x conftest$ac_exeext; then
27359   eval "$as_ac_var=yes"
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364         eval "$as_ac_var=no"
27365 fi
27366
27367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27368       conftest$ac_exeext conftest.$ac_ext
27369 fi
27370 ac_res=`eval echo '${'$as_ac_var'}'`
27371                { echo "$as_me:$LINENO: result: $ac_res" >&5
27372 echo "${ECHO_T}$ac_res" >&6; }
27373 if test `eval echo '${'$as_ac_var'}'` = yes; then
27374   cat >>confdefs.h <<_ACEOF
27375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27376 _ACEOF
27377  have_cos=1
27378 fi
27379 done
27380
27381
27382 for ac_func in floor
27383 do
27384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390   cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h.  */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h.  */
27396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27398 #define $ac_func innocuous_$ac_func
27399
27400 /* System header to define __stub macros and hopefully few prototypes,
27401     which can conflict with char $ac_func (); below.
27402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27403     <limits.h> exists even on freestanding compilers.  */
27404
27405 #ifdef __STDC__
27406 # include <limits.h>
27407 #else
27408 # include <assert.h>
27409 #endif
27410
27411 #undef $ac_func
27412
27413 /* Override any GCC internal prototype to avoid an error.
27414    Use char because int might match the return type of a GCC
27415    builtin and then its argument prototype would still apply.  */
27416 #ifdef __cplusplus
27417 extern "C"
27418 #endif
27419 char $ac_func ();
27420 /* The GNU C library defines this for functions which it implements
27421     to always fail with ENOSYS.  Some functions are actually named
27422     something starting with __ and the normal name is an alias.  */
27423 #if defined __stub_$ac_func || defined __stub___$ac_func
27424 choke me
27425 #endif
27426
27427 int
27428 main ()
27429 {
27430 return $ac_func ();
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 rm -f conftest.$ac_objext conftest$ac_exeext
27436 if { (ac_try="$ac_link"
27437 case "(($ac_try" in
27438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439   *) ac_try_echo=$ac_try;;
27440 esac
27441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442   (eval "$ac_link") 2>conftest.er1
27443   ac_status=$?
27444   grep -v '^ *+' conftest.er1 >conftest.err
27445   rm -f conftest.er1
27446   cat conftest.err >&5
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); } && {
27449          test -z "$ac_c_werror_flag" ||
27450          test ! -s conftest.err
27451        } && test -s conftest$ac_exeext &&
27452        $as_test_x conftest$ac_exeext; then
27453   eval "$as_ac_var=yes"
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458         eval "$as_ac_var=no"
27459 fi
27460
27461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27462       conftest$ac_exeext conftest.$ac_ext
27463 fi
27464 ac_res=`eval echo '${'$as_ac_var'}'`
27465                { echo "$as_me:$LINENO: result: $ac_res" >&5
27466 echo "${ECHO_T}$ac_res" >&6; }
27467 if test `eval echo '${'$as_ac_var'}'` = yes; then
27468   cat >>confdefs.h <<_ACEOF
27469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27470 _ACEOF
27471  have_floor=1
27472 fi
27473 done
27474
27475 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27476 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27477 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27478     { echo "$as_me:$LINENO: result: yes" >&5
27479 echo "${ECHO_T}yes" >&6; }
27480 else
27481     { echo "$as_me:$LINENO: result: no" >&5
27482 echo "${ECHO_T}no" >&6; }
27483     LIBS="$LIBS -lm"
27484     # use different functions to avoid configure caching
27485     have_sin=0
27486     have_ceil=0
27487
27488 for ac_func in sin
27489 do
27490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27494   echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27496   cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27504 #define $ac_func innocuous_$ac_func
27505
27506 /* System header to define __stub macros and hopefully few prototypes,
27507     which can conflict with char $ac_func (); below.
27508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27509     <limits.h> exists even on freestanding compilers.  */
27510
27511 #ifdef __STDC__
27512 # include <limits.h>
27513 #else
27514 # include <assert.h>
27515 #endif
27516
27517 #undef $ac_func
27518
27519 /* Override any GCC internal prototype to avoid an error.
27520    Use char because int might match the return type of a GCC
27521    builtin and then its argument prototype would still apply.  */
27522 #ifdef __cplusplus
27523 extern "C"
27524 #endif
27525 char $ac_func ();
27526 /* The GNU C library defines this for functions which it implements
27527     to always fail with ENOSYS.  Some functions are actually named
27528     something starting with __ and the normal name is an alias.  */
27529 #if defined __stub_$ac_func || defined __stub___$ac_func
27530 choke me
27531 #endif
27532
27533 int
27534 main ()
27535 {
27536 return $ac_func ();
27537   ;
27538   return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (ac_try="$ac_link"
27543 case "(($ac_try" in
27544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545   *) ac_try_echo=$ac_try;;
27546 esac
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548   (eval "$ac_link") 2>conftest.er1
27549   ac_status=$?
27550   grep -v '^ *+' conftest.er1 >conftest.err
27551   rm -f conftest.er1
27552   cat conftest.err >&5
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); } && {
27555          test -z "$ac_c_werror_flag" ||
27556          test ! -s conftest.err
27557        } && test -s conftest$ac_exeext &&
27558        $as_test_x conftest$ac_exeext; then
27559   eval "$as_ac_var=yes"
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564         eval "$as_ac_var=no"
27565 fi
27566
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568       conftest$ac_exeext conftest.$ac_ext
27569 fi
27570 ac_res=`eval echo '${'$as_ac_var'}'`
27571                { echo "$as_me:$LINENO: result: $ac_res" >&5
27572 echo "${ECHO_T}$ac_res" >&6; }
27573 if test `eval echo '${'$as_ac_var'}'` = yes; then
27574   cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27576 _ACEOF
27577  have_sin=1
27578 fi
27579 done
27580
27581
27582 for ac_func in ceil
27583 do
27584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27588   echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590   cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27598 #define $ac_func innocuous_$ac_func
27599
27600 /* System header to define __stub macros and hopefully few prototypes,
27601     which can conflict with char $ac_func (); below.
27602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27603     <limits.h> exists even on freestanding compilers.  */
27604
27605 #ifdef __STDC__
27606 # include <limits.h>
27607 #else
27608 # include <assert.h>
27609 #endif
27610
27611 #undef $ac_func
27612
27613 /* Override any GCC internal prototype to avoid an error.
27614    Use char because int might match the return type of a GCC
27615    builtin and then its argument prototype would still apply.  */
27616 #ifdef __cplusplus
27617 extern "C"
27618 #endif
27619 char $ac_func ();
27620 /* The GNU C library defines this for functions which it implements
27621     to always fail with ENOSYS.  Some functions are actually named
27622     something starting with __ and the normal name is an alias.  */
27623 #if defined __stub_$ac_func || defined __stub___$ac_func
27624 choke me
27625 #endif
27626
27627 int
27628 main ()
27629 {
27630 return $ac_func ();
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (ac_try="$ac_link"
27637 case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_link") 2>conftest.er1
27643   ac_status=$?
27644   grep -v '^ *+' conftest.er1 >conftest.err
27645   rm -f conftest.er1
27646   cat conftest.err >&5
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); } && {
27649          test -z "$ac_c_werror_flag" ||
27650          test ! -s conftest.err
27651        } && test -s conftest$ac_exeext &&
27652        $as_test_x conftest$ac_exeext; then
27653   eval "$as_ac_var=yes"
27654 else
27655   echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27657
27658         eval "$as_ac_var=no"
27659 fi
27660
27661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27662       conftest$ac_exeext conftest.$ac_ext
27663 fi
27664 ac_res=`eval echo '${'$as_ac_var'}'`
27665                { echo "$as_me:$LINENO: result: $ac_res" >&5
27666 echo "${ECHO_T}$ac_res" >&6; }
27667 if test `eval echo '${'$as_ac_var'}'` = yes; then
27668   cat >>confdefs.h <<_ACEOF
27669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27670 _ACEOF
27671  have_ceil=1
27672 fi
27673 done
27674
27675     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27676 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27677     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27678         { echo "$as_me:$LINENO: result: yes" >&5
27679 echo "${ECHO_T}yes" >&6; }
27680     else
27681         { echo "$as_me:$LINENO: result: no" >&5
27682 echo "${ECHO_T}no" >&6; }
27683         # not sure we should warn the user, crash, etc.
27684     fi
27685 fi
27686
27687 ac_ext=cpp
27688 ac_cpp='$CXXCPP $CPPFLAGS'
27689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27692
27693 if test "wxUSE_UNICODE" = "yes"; then
27694
27695   for wx_func in wcstoull
27696   do
27697     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27698 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27699 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27700   echo $ECHO_N "(cached) $ECHO_C" >&6
27701 else
27702
27703         cat >conftest.$ac_ext <<_ACEOF
27704
27705             /* confdefs.h.  */
27706 _ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h.  */
27710
27711
27712                 $ac_includes_default
27713
27714 int
27715 main ()
27716 {
27717
27718                 #ifndef $wx_func
27719                   &$wx_func;
27720                 #endif
27721
27722
27723   ;
27724   return 0;
27725 }
27726
27727 _ACEOF
27728 rm -f conftest.$ac_objext conftest$ac_exeext
27729 if { (ac_try="$ac_link"
27730 case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735   (eval "$ac_link") 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } && {
27742          test -z "$ac_cxx_werror_flag" ||
27743          test ! -s conftest.err
27744        } && test -s conftest$ac_exeext &&
27745        $as_test_x conftest$ac_exeext; then
27746   eval wx_cv_func_$wx_func=yes
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751         eval wx_cv_func_$wx_func=no
27752 fi
27753
27754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27755       conftest$ac_exeext conftest.$ac_ext
27756
27757 fi
27758 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27759                { echo "$as_me:$LINENO: result: $ac_res" >&5
27760 echo "${ECHO_T}$ac_res" >&6; }
27761
27762     if eval test \$wx_cv_func_$wx_func = yes
27763     then
27764       cat >>confdefs.h <<_ACEOF
27765 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27766 _ACEOF
27767
27768
27769     else
27770       :
27771
27772     fi
27773   done
27774
27775 else
27776
27777   for wx_func in strtoull
27778   do
27779     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27780 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27781 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27782   echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784
27785         cat >conftest.$ac_ext <<_ACEOF
27786
27787             /* confdefs.h.  */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h.  */
27792
27793
27794                 $ac_includes_default
27795
27796 int
27797 main ()
27798 {
27799
27800                 #ifndef $wx_func
27801                   &$wx_func;
27802                 #endif
27803
27804
27805   ;
27806   return 0;
27807 }
27808
27809 _ACEOF
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_link") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } && {
27824          test -z "$ac_cxx_werror_flag" ||
27825          test ! -s conftest.err
27826        } && test -s conftest$ac_exeext &&
27827        $as_test_x conftest$ac_exeext; then
27828   eval wx_cv_func_$wx_func=yes
27829 else
27830   echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27832
27833         eval wx_cv_func_$wx_func=no
27834 fi
27835
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837       conftest$ac_exeext conftest.$ac_ext
27838
27839 fi
27840 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27841                { echo "$as_me:$LINENO: result: $ac_res" >&5
27842 echo "${ECHO_T}$ac_res" >&6; }
27843
27844     if eval test \$wx_cv_func_$wx_func = yes
27845     then
27846       cat >>confdefs.h <<_ACEOF
27847 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27848 _ACEOF
27849
27850
27851     else
27852       :
27853
27854     fi
27855   done
27856
27857 fi
27858 ac_ext=c
27859 ac_cpp='$CPP $CPPFLAGS'
27860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27863
27864
27865
27866
27867 if test "$wxUSE_REGEX" != "no"; then
27868     cat >>confdefs.h <<\_ACEOF
27869 #define wxUSE_REGEX 1
27870 _ACEOF
27871
27872
27873     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27874         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27875 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27876         wxUSE_REGEX=builtin
27877     fi
27878
27879     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27880                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27881 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27882 if test "${ac_cv_header_regex_h+set}" = set; then
27883   echo $ECHO_N "(cached) $ECHO_C" >&6
27884 else
27885   cat >conftest.$ac_ext <<_ACEOF
27886 /* confdefs.h.  */
27887 _ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h.  */
27891
27892
27893 #include <regex.h>
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_compile") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } && {
27909          test -z "$ac_c_werror_flag" ||
27910          test ! -s conftest.err
27911        } && test -s conftest.$ac_objext; then
27912   ac_cv_header_regex_h=yes
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917         ac_cv_header_regex_h=no
27918 fi
27919
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 fi
27922 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27923 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27924 if test $ac_cv_header_regex_h = yes; then
27925
27926
27927 for ac_func in regcomp re_search
27928 do
27929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935   cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27943 #define $ac_func innocuous_$ac_func
27944
27945 /* System header to define __stub macros and hopefully few prototypes,
27946     which can conflict with char $ac_func (); below.
27947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27948     <limits.h> exists even on freestanding compilers.  */
27949
27950 #ifdef __STDC__
27951 # include <limits.h>
27952 #else
27953 # include <assert.h>
27954 #endif
27955
27956 #undef $ac_func
27957
27958 /* Override any GCC internal prototype to avoid an error.
27959    Use char because int might match the return type of a GCC
27960    builtin and then its argument prototype would still apply.  */
27961 #ifdef __cplusplus
27962 extern "C"
27963 #endif
27964 char $ac_func ();
27965 /* The GNU C library defines this for functions which it implements
27966     to always fail with ENOSYS.  Some functions are actually named
27967     something starting with __ and the normal name is an alias.  */
27968 #if defined __stub_$ac_func || defined __stub___$ac_func
27969 choke me
27970 #endif
27971
27972 int
27973 main ()
27974 {
27975 return $ac_func ();
27976   ;
27977   return 0;
27978 }
27979 _ACEOF
27980 rm -f conftest.$ac_objext conftest$ac_exeext
27981 if { (ac_try="$ac_link"
27982 case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_link") 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } && {
27994          test -z "$ac_c_werror_flag" ||
27995          test ! -s conftest.err
27996        } && test -s conftest$ac_exeext &&
27997        $as_test_x conftest$ac_exeext; then
27998   eval "$as_ac_var=yes"
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003         eval "$as_ac_var=no"
28004 fi
28005
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007       conftest$ac_exeext conftest.$ac_ext
28008 fi
28009 ac_res=`eval echo '${'$as_ac_var'}'`
28010                { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013   cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28015 _ACEOF
28016
28017 fi
28018 done
28019
28020 fi
28021
28022
28023
28024         if test "x$ac_cv_func_regcomp" != "xyes"; then
28025             if test "$wxUSE_REGEX" = "sys" ; then
28026                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28027 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28028    { (exit 1); exit 1; }; }
28029             else
28030                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28031 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28032                 wxUSE_REGEX=builtin
28033             fi
28034         else
28035                         wxUSE_REGEX=sys
28036                         cat >>confdefs.h <<\_ACEOF
28037 #define WX_NO_REGEX_ADVANCED 1
28038 _ACEOF
28039
28040         fi
28041     fi
28042 fi
28043
28044
28045 ZLIB_LINK=
28046 if test "$wxUSE_ZLIB" != "no" ; then
28047     cat >>confdefs.h <<\_ACEOF
28048 #define wxUSE_ZLIB 1
28049 _ACEOF
28050
28051
28052     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28053                                                 if test "$USE_DARWIN" = 1; then
28054             system_zlib_h_ok="yes"
28055         else
28056                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28057 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28058 if test "${ac_cv_header_zlib_h+set}" = set; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061   if test "$cross_compiling" = yes; then
28062                       unset ac_cv_header_zlib_h
28063
28064 else
28065   cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071
28072                         #include <zlib.h>
28073                         #include <stdio.h>
28074
28075                         int main()
28076                         {
28077                             FILE *f=fopen("conftestval", "w");
28078                             if (!f) exit(1);
28079                             fprintf(f, "%s",
28080                                     ZLIB_VERSION[0] == '1' &&
28081                                     (ZLIB_VERSION[2] > '1' ||
28082                                     (ZLIB_VERSION[2] == '1' &&
28083                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28084                             exit(0);
28085                         }
28086
28087 _ACEOF
28088 rm -f conftest$ac_exeext
28089 if { (ac_try="$ac_link"
28090 case "(($ac_try" in
28091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092   *) ac_try_echo=$ac_try;;
28093 esac
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095   (eval "$ac_link") 2>&5
28096   ac_status=$?
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28099   { (case "(($ac_try" in
28100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101   *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104   (eval "$ac_try") 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; }; then
28108   ac_cv_header_zlib_h=`cat conftestval`
28109 else
28110   echo "$as_me: program exited with status $ac_status" >&5
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114 ( exit $ac_status )
28115 ac_cv_header_zlib_h=no
28116 fi
28117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28118 fi
28119
28120
28121
28122 fi
28123 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28124 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28125                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28126 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28127 if test "${ac_cv_header_zlib_h+set}" = set; then
28128   echo $ECHO_N "(cached) $ECHO_C" >&6
28129 else
28130   cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h.  */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h.  */
28136
28137
28138 #include <zlib.h>
28139 _ACEOF
28140 rm -f conftest.$ac_objext
28141 if { (ac_try="$ac_compile"
28142 case "(($ac_try" in
28143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144   *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147   (eval "$ac_compile") 2>conftest.er1
28148   ac_status=$?
28149   grep -v '^ *+' conftest.er1 >conftest.err
28150   rm -f conftest.er1
28151   cat conftest.err >&5
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); } && {
28154          test -z "$ac_c_werror_flag" ||
28155          test ! -s conftest.err
28156        } && test -s conftest.$ac_objext; then
28157   ac_cv_header_zlib_h=yes
28158 else
28159   echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28161
28162         ac_cv_header_zlib_h=no
28163 fi
28164
28165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28166 fi
28167 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28168 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28169
28170
28171
28172             system_zlib_h_ok=$ac_cv_header_zlib_h
28173         fi
28174
28175         if test "$system_zlib_h_ok" = "yes"; then
28176             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28177 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28178 if test "${ac_cv_lib_z_deflate+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   ac_check_lib_save_LIBS=$LIBS
28182 LIBS="-lz  $LIBS"
28183 cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189
28190 /* Override any GCC internal prototype to avoid an error.
28191    Use char because int might match the return type of a GCC
28192    builtin and then its argument prototype would still apply.  */
28193 #ifdef __cplusplus
28194 extern "C"
28195 #endif
28196 char deflate ();
28197 int
28198 main ()
28199 {
28200 return deflate ();
28201   ;
28202   return 0;
28203 }
28204 _ACEOF
28205 rm -f conftest.$ac_objext conftest$ac_exeext
28206 if { (ac_try="$ac_link"
28207 case "(($ac_try" in
28208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209   *) ac_try_echo=$ac_try;;
28210 esac
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212   (eval "$ac_link") 2>conftest.er1
28213   ac_status=$?
28214   grep -v '^ *+' conftest.er1 >conftest.err
28215   rm -f conftest.er1
28216   cat conftest.err >&5
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); } && {
28219          test -z "$ac_c_werror_flag" ||
28220          test ! -s conftest.err
28221        } && test -s conftest$ac_exeext &&
28222        $as_test_x conftest$ac_exeext; then
28223   ac_cv_lib_z_deflate=yes
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228         ac_cv_lib_z_deflate=no
28229 fi
28230
28231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28232       conftest$ac_exeext conftest.$ac_ext
28233 LIBS=$ac_check_lib_save_LIBS
28234 fi
28235 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28236 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28237 if test $ac_cv_lib_z_deflate = yes; then
28238   ZLIB_LINK=" -lz"
28239 fi
28240
28241         fi
28242
28243         if test "x$ZLIB_LINK" = "x" ; then
28244             if test "$wxUSE_ZLIB" = "sys" ; then
28245                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28246 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28247    { (exit 1); exit 1; }; }
28248             else
28249                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28250 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28251                 wxUSE_ZLIB=builtin
28252             fi
28253         else
28254                         wxUSE_ZLIB=sys
28255         fi
28256     fi
28257 fi
28258
28259
28260 PNG_LINK=
28261 if test "$wxUSE_LIBPNG" != "no" ; then
28262     cat >>confdefs.h <<\_ACEOF
28263 #define wxUSE_LIBPNG 1
28264 _ACEOF
28265
28266
28267     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28268         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28269 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28270         wxUSE_LIBPNG=sys
28271     fi
28272
28273                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28274         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28275 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28276         wxUSE_LIBPNG=builtin
28277     fi
28278
28279     if test "$wxUSE_MGL" != 1 ; then
28280                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28281                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28282 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28283 if test "${ac_cv_header_png_h+set}" = set; then
28284   echo $ECHO_N "(cached) $ECHO_C" >&6
28285 else
28286   if test "$cross_compiling" = yes; then
28287                       unset ac_cv_header_png_h
28288
28289 else
28290   cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296
28297                         #include <png.h>
28298                         #include <stdio.h>
28299
28300                         int main()
28301                         {
28302                             FILE *f=fopen("conftestval", "w");
28303                             if (!f) exit(1);
28304                             fprintf(f, "%s",
28305                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28306                             exit(0);
28307                         }
28308
28309 _ACEOF
28310 rm -f conftest$ac_exeext
28311 if { (ac_try="$ac_link"
28312 case "(($ac_try" in
28313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314   *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317   (eval "$ac_link") 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28321   { (case "(($ac_try" in
28322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323   *) ac_try_echo=$ac_try;;
28324 esac
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326   (eval "$ac_try") 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; }; then
28330   ac_cv_header_png_h=`cat conftestval`
28331 else
28332   echo "$as_me: program exited with status $ac_status" >&5
28333 echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28335
28336 ( exit $ac_status )
28337 ac_cv_header_png_h=no
28338 fi
28339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28340 fi
28341
28342
28343
28344 fi
28345 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28346 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28347             { echo "$as_me:$LINENO: checking for png.h" >&5
28348 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28349 if test "${ac_cv_header_png_h+set}" = set; then
28350   echo $ECHO_N "(cached) $ECHO_C" >&6
28351 else
28352   cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h.  */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h.  */
28358
28359
28360 #include <png.h>
28361 _ACEOF
28362 rm -f conftest.$ac_objext
28363 if { (ac_try="$ac_compile"
28364 case "(($ac_try" in
28365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366   *) ac_try_echo=$ac_try;;
28367 esac
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369   (eval "$ac_compile") 2>conftest.er1
28370   ac_status=$?
28371   grep -v '^ *+' conftest.er1 >conftest.err
28372   rm -f conftest.er1
28373   cat conftest.err >&5
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); } && {
28376          test -z "$ac_c_werror_flag" ||
28377          test ! -s conftest.err
28378        } && test -s conftest.$ac_objext; then
28379   ac_cv_header_png_h=yes
28380 else
28381   echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28383
28384         ac_cv_header_png_h=no
28385 fi
28386
28387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 fi
28389 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28390 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28391
28392
28393
28394             if test "$ac_cv_header_png_h" = "yes"; then
28395                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28396 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28397 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   ac_check_lib_save_LIBS=$LIBS
28401 LIBS="-lpng -lz -lm $LIBS"
28402 cat >conftest.$ac_ext <<_ACEOF
28403 /* confdefs.h.  */
28404 _ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h.  */
28408
28409 /* Override any GCC internal prototype to avoid an error.
28410    Use char because int might match the return type of a GCC
28411    builtin and then its argument prototype would still apply.  */
28412 #ifdef __cplusplus
28413 extern "C"
28414 #endif
28415 char png_sig_cmp ();
28416 int
28417 main ()
28418 {
28419 return png_sig_cmp ();
28420   ;
28421   return 0;
28422 }
28423 _ACEOF
28424 rm -f conftest.$ac_objext conftest$ac_exeext
28425 if { (ac_try="$ac_link"
28426 case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_link") 2>conftest.er1
28432   ac_status=$?
28433   grep -v '^ *+' conftest.er1 >conftest.err
28434   rm -f conftest.er1
28435   cat conftest.err >&5
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); } && {
28438          test -z "$ac_c_werror_flag" ||
28439          test ! -s conftest.err
28440        } && test -s conftest$ac_exeext &&
28441        $as_test_x conftest$ac_exeext; then
28442   ac_cv_lib_png_png_sig_cmp=yes
28443 else
28444   echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28446
28447         ac_cv_lib_png_png_sig_cmp=no
28448 fi
28449
28450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28451       conftest$ac_exeext conftest.$ac_ext
28452 LIBS=$ac_check_lib_save_LIBS
28453 fi
28454 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28455 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28456 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28457   PNG_LINK=" -lpng -lz"
28458 fi
28459
28460             fi
28461
28462             if test "x$PNG_LINK" = "x" ; then
28463                 if test "$wxUSE_LIBPNG" = "sys" ; then
28464                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28465 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28466    { (exit 1); exit 1; }; }
28467                 else
28468                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28469 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28470                     wxUSE_LIBPNG=builtin
28471                 fi
28472             else
28473                                 wxUSE_LIBPNG=sys
28474             fi
28475         fi
28476     fi
28477 fi
28478
28479
28480 JPEG_LINK=
28481 if test "$wxUSE_LIBJPEG" != "no" ; then
28482     cat >>confdefs.h <<\_ACEOF
28483 #define wxUSE_LIBJPEG 1
28484 _ACEOF
28485
28486
28487     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28488         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28489 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28490         wxUSE_LIBJPEG=sys
28491     fi
28492
28493     if test "$wxUSE_MGL" != 1 ; then
28494                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28495                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28496 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28497             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28498   echo $ECHO_N "(cached) $ECHO_C" >&6
28499 else
28500   cat >conftest.$ac_ext <<_ACEOF
28501 /* confdefs.h.  */
28502 _ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h.  */
28506
28507                         #undef HAVE_STDLIB_H
28508                         #include <stdio.h>
28509                         #include <jpeglib.h>
28510
28511 int
28512 main ()
28513 {
28514
28515
28516   ;
28517   return 0;
28518 }
28519 _ACEOF
28520 rm -f conftest.$ac_objext
28521 if { (ac_try="$ac_compile"
28522 case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527   (eval "$ac_compile") 2>conftest.er1
28528   ac_status=$?
28529   grep -v '^ *+' conftest.er1 >conftest.err
28530   rm -f conftest.er1
28531   cat conftest.err >&5
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } && {
28534          test -z "$ac_c_werror_flag" ||
28535          test ! -s conftest.err
28536        } && test -s conftest.$ac_objext; then
28537   ac_cv_header_jpeglib_h=yes
28538 else
28539   echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28541
28542         ac_cv_header_jpeglib_h=no
28543
28544 fi
28545
28546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28547
28548 fi
28549
28550             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28551 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28552
28553             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28554                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28555 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28556 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28557   echo $ECHO_N "(cached) $ECHO_C" >&6
28558 else
28559   ac_check_lib_save_LIBS=$LIBS
28560 LIBS="-ljpeg  $LIBS"
28561 cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h.  */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h.  */
28567
28568 /* Override any GCC internal prototype to avoid an error.
28569    Use char because int might match the return type of a GCC
28570    builtin and then its argument prototype would still apply.  */
28571 #ifdef __cplusplus
28572 extern "C"
28573 #endif
28574 char jpeg_read_header ();
28575 int
28576 main ()
28577 {
28578 return jpeg_read_header ();
28579   ;
28580   return 0;
28581 }
28582 _ACEOF
28583 rm -f conftest.$ac_objext conftest$ac_exeext
28584 if { (ac_try="$ac_link"
28585 case "(($ac_try" in
28586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587   *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590   (eval "$ac_link") 2>conftest.er1
28591   ac_status=$?
28592   grep -v '^ *+' conftest.er1 >conftest.err
28593   rm -f conftest.er1
28594   cat conftest.err >&5
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); } && {
28597          test -z "$ac_c_werror_flag" ||
28598          test ! -s conftest.err
28599        } && test -s conftest$ac_exeext &&
28600        $as_test_x conftest$ac_exeext; then
28601   ac_cv_lib_jpeg_jpeg_read_header=yes
28602 else
28603   echo "$as_me: failed program was:" >&5
28604 sed 's/^/| /' conftest.$ac_ext >&5
28605
28606         ac_cv_lib_jpeg_jpeg_read_header=no
28607 fi
28608
28609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28610       conftest$ac_exeext conftest.$ac_ext
28611 LIBS=$ac_check_lib_save_LIBS
28612 fi
28613 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28614 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28615 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28616   JPEG_LINK=" -ljpeg"
28617 fi
28618
28619             fi
28620
28621             if test "x$JPEG_LINK" = "x" ; then
28622                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28623                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28624 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28625    { (exit 1); exit 1; }; }
28626                 else
28627                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28628 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28629                     wxUSE_LIBJPEG=builtin
28630                 fi
28631             else
28632                                 wxUSE_LIBJPEG=sys
28633
28634                 if test "$wxUSE_MSW" = 1; then
28635                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28636 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28637 if test "${ac_cv_type_boolean+set}" = set; then
28638   echo $ECHO_N "(cached) $ECHO_C" >&6
28639 else
28640   cat >conftest.$ac_ext <<_ACEOF
28641 /* confdefs.h.  */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h.  */
28646 #include <windows.h>
28647
28648 typedef boolean ac__type_new_;
28649 int
28650 main ()
28651 {
28652 if ((ac__type_new_ *) 0)
28653   return 0;
28654 if (sizeof (ac__type_new_))
28655   return 0;
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest.$ac_objext
28661 if { (ac_try="$ac_compile"
28662 case "(($ac_try" in
28663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664   *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667   (eval "$ac_compile") 2>conftest.er1
28668   ac_status=$?
28669   grep -v '^ *+' conftest.er1 >conftest.err
28670   rm -f conftest.er1
28671   cat conftest.err >&5
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); } && {
28674          test -z "$ac_c_werror_flag" ||
28675          test ! -s conftest.err
28676        } && test -s conftest.$ac_objext; then
28677   ac_cv_type_boolean=yes
28678 else
28679   echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28681
28682         ac_cv_type_boolean=no
28683 fi
28684
28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28686 fi
28687 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28688 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28689 if test $ac_cv_type_boolean = yes; then
28690
28691 cat >>confdefs.h <<_ACEOF
28692 #define HAVE_BOOLEAN 1
28693 _ACEOF
28694
28695
28696                             { echo "$as_me:$LINENO: checking for boolean" >&5
28697 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28698 if test "${ac_cv_type_boolean+set}" = set; then
28699   echo $ECHO_N "(cached) $ECHO_C" >&6
28700 else
28701   cat >conftest.$ac_ext <<_ACEOF
28702 /* confdefs.h.  */
28703 _ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h.  */
28707
28708                                     #undef HAVE_BOOLEAN
28709                                     #include <stdio.h>
28710                                     #include <jpeglib.h>
28711
28712
28713 typedef boolean ac__type_new_;
28714 int
28715 main ()
28716 {
28717 if ((ac__type_new_ *) 0)
28718   return 0;
28719 if (sizeof (ac__type_new_))
28720   return 0;
28721   ;
28722   return 0;
28723 }
28724 _ACEOF
28725 rm -f conftest.$ac_objext
28726 if { (ac_try="$ac_compile"
28727 case "(($ac_try" in
28728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729   *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732   (eval "$ac_compile") 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } && {
28739          test -z "$ac_c_werror_flag" ||
28740          test ! -s conftest.err
28741        } && test -s conftest.$ac_objext; then
28742   ac_cv_type_boolean=yes
28743 else
28744   echo "$as_me: failed program was:" >&5
28745 sed 's/^/| /' conftest.$ac_ext >&5
28746
28747         ac_cv_type_boolean=no
28748 fi
28749
28750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28751 fi
28752 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28753 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28754
28755 # The cast to long int works around a bug in the HP C Compiler
28756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28758 # This bug is HP SR number 8606223364.
28759 { echo "$as_me:$LINENO: checking size of boolean" >&5
28760 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28761 if test "${ac_cv_sizeof_boolean+set}" = set; then
28762   echo $ECHO_N "(cached) $ECHO_C" >&6
28763 else
28764   if test "$cross_compiling" = yes; then
28765   # Depending upon the size, compute the lo and hi bounds.
28766 cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772
28773                                     #undef HAVE_BOOLEAN
28774                                     #include <stdio.h>
28775                                     #include <jpeglib.h>
28776
28777
28778    typedef boolean ac__type_sizeof_;
28779 int
28780 main ()
28781 {
28782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28783 test_array [0] = 0
28784
28785   ;
28786   return 0;
28787 }
28788 _ACEOF
28789 rm -f conftest.$ac_objext
28790 if { (ac_try="$ac_compile"
28791 case "(($ac_try" in
28792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793   *) ac_try_echo=$ac_try;;
28794 esac
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796   (eval "$ac_compile") 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } && {
28803          test -z "$ac_c_werror_flag" ||
28804          test ! -s conftest.err
28805        } && test -s conftest.$ac_objext; then
28806   ac_lo=0 ac_mid=0
28807   while :; do
28808     cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814
28815                                     #undef HAVE_BOOLEAN
28816                                     #include <stdio.h>
28817                                     #include <jpeglib.h>
28818
28819
28820    typedef boolean ac__type_sizeof_;
28821 int
28822 main ()
28823 {
28824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28825 test_array [0] = 0
28826
28827   ;
28828   return 0;
28829 }
28830 _ACEOF
28831 rm -f conftest.$ac_objext
28832 if { (ac_try="$ac_compile"
28833 case "(($ac_try" in
28834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28835   *) ac_try_echo=$ac_try;;
28836 esac
28837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28838   (eval "$ac_compile") 2>conftest.er1
28839   ac_status=$?
28840   grep -v '^ *+' conftest.er1 >conftest.err
28841   rm -f conftest.er1
28842   cat conftest.err >&5
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } && {
28845          test -z "$ac_c_werror_flag" ||
28846          test ! -s conftest.err
28847        } && test -s conftest.$ac_objext; then
28848   ac_hi=$ac_mid; break
28849 else
28850   echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853         ac_lo=`expr $ac_mid + 1`
28854                         if test $ac_lo -le $ac_mid; then
28855                           ac_lo= ac_hi=
28856                           break
28857                         fi
28858                         ac_mid=`expr 2 '*' $ac_mid + 1`
28859 fi
28860
28861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28862   done
28863 else
28864   echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867         cat >conftest.$ac_ext <<_ACEOF
28868 /* confdefs.h.  */
28869 _ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h.  */
28873
28874                                     #undef HAVE_BOOLEAN
28875                                     #include <stdio.h>
28876                                     #include <jpeglib.h>
28877
28878
28879    typedef boolean ac__type_sizeof_;
28880 int
28881 main ()
28882 {
28883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28884 test_array [0] = 0
28885
28886   ;
28887   return 0;
28888 }
28889 _ACEOF
28890 rm -f conftest.$ac_objext
28891 if { (ac_try="$ac_compile"
28892 case "(($ac_try" in
28893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894   *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897   (eval "$ac_compile") 2>conftest.er1
28898   ac_status=$?
28899   grep -v '^ *+' conftest.er1 >conftest.err
28900   rm -f conftest.er1
28901   cat conftest.err >&5
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); } && {
28904          test -z "$ac_c_werror_flag" ||
28905          test ! -s conftest.err
28906        } && test -s conftest.$ac_objext; then
28907   ac_hi=-1 ac_mid=-1
28908   while :; do
28909     cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915
28916                                     #undef HAVE_BOOLEAN
28917                                     #include <stdio.h>
28918                                     #include <jpeglib.h>
28919
28920
28921    typedef boolean ac__type_sizeof_;
28922 int
28923 main ()
28924 {
28925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28926 test_array [0] = 0
28927
28928   ;
28929   return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest.$ac_objext
28933 if { (ac_try="$ac_compile"
28934 case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_compile") 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } && {
28946          test -z "$ac_c_werror_flag" ||
28947          test ! -s conftest.err
28948        } && test -s conftest.$ac_objext; then
28949   ac_lo=$ac_mid; break
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954         ac_hi=`expr '(' $ac_mid ')' - 1`
28955                         if test $ac_mid -le $ac_hi; then
28956                           ac_lo= ac_hi=
28957                           break
28958                         fi
28959                         ac_mid=`expr 2 '*' $ac_mid`
28960 fi
28961
28962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963   done
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968         ac_lo= ac_hi=
28969 fi
28970
28971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28972 fi
28973
28974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28975 # Binary search between lo and hi bounds.
28976 while test "x$ac_lo" != "x$ac_hi"; do
28977   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28978   cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984
28985                                     #undef HAVE_BOOLEAN
28986                                     #include <stdio.h>
28987                                     #include <jpeglib.h>
28988
28989
28990    typedef boolean ac__type_sizeof_;
28991 int
28992 main ()
28993 {
28994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28995 test_array [0] = 0
28996
28997   ;
28998   return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008   (eval "$ac_compile") 2>conftest.er1
29009   ac_status=$?
29010   grep -v '^ *+' conftest.er1 >conftest.err
29011   rm -f conftest.er1
29012   cat conftest.err >&5
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); } && {
29015          test -z "$ac_c_werror_flag" ||
29016          test ! -s conftest.err
29017        } && test -s conftest.$ac_objext; then
29018   ac_hi=$ac_mid
29019 else
29020   echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023         ac_lo=`expr '(' $ac_mid ')' + 1`
29024 fi
29025
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29027 done
29028 case $ac_lo in
29029 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29030 '') if test "$ac_cv_type_boolean" = yes; then
29031      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29032 See \`config.log' for more details." >&5
29033 echo "$as_me: error: cannot compute sizeof (boolean)
29034 See \`config.log' for more details." >&2;}
29035    { (exit 77); exit 77; }; }
29036    else
29037      ac_cv_sizeof_boolean=0
29038    fi ;;
29039 esac
29040 else
29041   cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047
29048                                     #undef HAVE_BOOLEAN
29049                                     #include <stdio.h>
29050                                     #include <jpeglib.h>
29051
29052
29053    typedef boolean ac__type_sizeof_;
29054 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29055 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29056 #include <stdio.h>
29057 #include <stdlib.h>
29058 int
29059 main ()
29060 {
29061
29062   FILE *f = fopen ("conftest.val", "w");
29063   if (! f)
29064     return 1;
29065   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29066     {
29067       long int i = longval ();
29068       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29069         return 1;
29070       fprintf (f, "%ld\n", i);
29071     }
29072   else
29073     {
29074       unsigned long int i = ulongval ();
29075       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29076         return 1;
29077       fprintf (f, "%lu\n", i);
29078     }
29079   return ferror (f) || fclose (f) != 0;
29080
29081   ;
29082   return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_link") 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096   { (case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101   (eval "$ac_try") 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); }; }; then
29105   ac_cv_sizeof_boolean=`cat conftest.val`
29106 else
29107   echo "$as_me: program exited with status $ac_status" >&5
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29110
29111 ( exit $ac_status )
29112 if test "$ac_cv_type_boolean" = yes; then
29113      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29114 See \`config.log' for more details." >&5
29115 echo "$as_me: error: cannot compute sizeof (boolean)
29116 See \`config.log' for more details." >&2;}
29117    { (exit 77); exit 77; }; }
29118    else
29119      ac_cv_sizeof_boolean=0
29120    fi
29121 fi
29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29123 fi
29124 rm -f conftest.val
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29127 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29128
29129
29130
29131 cat >>confdefs.h <<_ACEOF
29132 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29133 _ACEOF
29134
29135
29136                             cat >>confdefs.h <<_ACEOF
29137 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29138 _ACEOF
29139
29140
29141 fi
29142
29143                 fi
29144             fi
29145         fi
29146     fi
29147 fi
29148
29149
29150 TIFF_LINK=
29151 TIFF_PREREQ_LINKS=-lm
29152 if test "$wxUSE_LIBTIFF" != "no" ; then
29153     cat >>confdefs.h <<\_ACEOF
29154 #define wxUSE_LIBTIFF 1
29155 _ACEOF
29156
29157
29158     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29159                         if test "$wxUSE_LIBJPEG" = "sys"; then
29160             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29161         fi
29162         if test "$wxUSE_ZLIB" = "sys"; then
29163             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29164         fi
29165         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29166 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29167 if test "${ac_cv_header_tiffio_h+set}" = set; then
29168   echo $ECHO_N "(cached) $ECHO_C" >&6
29169 else
29170   cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h.  */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h.  */
29176
29177
29178
29179 #include <tiffio.h>
29180 _ACEOF
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185   *) ac_try_echo=$ac_try;;
29186 esac
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188   (eval "$ac_compile") 2>conftest.er1
29189   ac_status=$?
29190   grep -v '^ *+' conftest.er1 >conftest.err
29191   rm -f conftest.er1
29192   cat conftest.err >&5
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); } && {
29195          test -z "$ac_c_werror_flag" ||
29196          test ! -s conftest.err
29197        } && test -s conftest.$ac_objext; then
29198   ac_cv_header_tiffio_h=yes
29199 else
29200   echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29202
29203         ac_cv_header_tiffio_h=no
29204 fi
29205
29206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207 fi
29208 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29209 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29210 if test $ac_cv_header_tiffio_h = yes; then
29211
29212                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29213 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29214 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29215   echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217   ac_check_lib_save_LIBS=$LIBS
29218 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h.  */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h.  */
29225
29226 /* Override any GCC internal prototype to avoid an error.
29227    Use char because int might match the return type of a GCC
29228    builtin and then its argument prototype would still apply.  */
29229 #ifdef __cplusplus
29230 extern "C"
29231 #endif
29232 char TIFFError ();
29233 int
29234 main ()
29235 {
29236 return TIFFError ();
29237   ;
29238   return 0;
29239 }
29240 _ACEOF
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (ac_try="$ac_link"
29243 case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_link") 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } && {
29255          test -z "$ac_c_werror_flag" ||
29256          test ! -s conftest.err
29257        } && test -s conftest$ac_exeext &&
29258        $as_test_x conftest$ac_exeext; then
29259   ac_cv_lib_tiff_TIFFError=yes
29260 else
29261   echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29263
29264         ac_cv_lib_tiff_TIFFError=no
29265 fi
29266
29267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29268       conftest$ac_exeext conftest.$ac_ext
29269 LIBS=$ac_check_lib_save_LIBS
29270 fi
29271 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29272 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29273 if test $ac_cv_lib_tiff_TIFFError = yes; then
29274   TIFF_LINK=" -ltiff"
29275 fi
29276
29277
29278 fi
29279
29280
29281
29282         if test "x$TIFF_LINK" = "x" ; then
29283             if test "$wxUSE_LIBTIFF" = "sys" ; then
29284                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29285 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29286    { (exit 1); exit 1; }; }
29287             else
29288                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29289 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29290                 wxUSE_LIBTIFF=builtin
29291             fi
29292         else
29293                         wxUSE_LIBTIFF=sys
29294         fi
29295     fi
29296     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29297         if test "$wxUSE_LIBJPEG" = "no"; then
29298                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29299         fi
29300         subdirs="$subdirs src/tiff"
29301
29302     fi
29303 fi
29304
29305
29306 if test "$wxUSE_EXPAT" != "no"; then
29307     wxUSE_XML=yes
29308     cat >>confdefs.h <<\_ACEOF
29309 #define wxUSE_EXPAT 1
29310 _ACEOF
29311
29312     cat >>confdefs.h <<\_ACEOF
29313 #define wxUSE_XML 1
29314 _ACEOF
29315
29316
29317     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29318         { echo "$as_me:$LINENO: checking for expat.h" >&5
29319 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29320 if test "${ac_cv_header_expat_h+set}" = set; then
29321   echo $ECHO_N "(cached) $ECHO_C" >&6
29322 else
29323   cat >conftest.$ac_ext <<_ACEOF
29324 /* confdefs.h.  */
29325 _ACEOF
29326 cat confdefs.h >>conftest.$ac_ext
29327 cat >>conftest.$ac_ext <<_ACEOF
29328 /* end confdefs.h.  */
29329
29330
29331 #include <expat.h>
29332 _ACEOF
29333 rm -f conftest.$ac_objext
29334 if { (ac_try="$ac_compile"
29335 case "(($ac_try" in
29336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337   *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340   (eval "$ac_compile") 2>conftest.er1
29341   ac_status=$?
29342   grep -v '^ *+' conftest.er1 >conftest.err
29343   rm -f conftest.er1
29344   cat conftest.err >&5
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); } && {
29347          test -z "$ac_c_werror_flag" ||
29348          test ! -s conftest.err
29349        } && test -s conftest.$ac_objext; then
29350   ac_cv_header_expat_h=yes
29351 else
29352   echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29354
29355         ac_cv_header_expat_h=no
29356 fi
29357
29358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29359 fi
29360 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29361 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29362 if test $ac_cv_header_expat_h = yes; then
29363   found_expat_h=1
29364 fi
29365
29366
29367         if test "x$found_expat_h" = "x1"; then
29368                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29369 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29370 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29371   echo $ECHO_N "(cached) $ECHO_C" >&6
29372 else
29373
29374                 ac_ext=cpp
29375 ac_cpp='$CXXCPP $CPPFLAGS'
29376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29379
29380                 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386 #include <expat.h>
29387 int
29388 main ()
29389 {
29390
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext
29396 if { (ac_try="$ac_compile"
29397 case "(($ac_try" in
29398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399   *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402   (eval "$ac_compile") 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } && {
29409          test -z "$ac_cxx_werror_flag" ||
29410          test ! -s conftest.err
29411        } && test -s conftest.$ac_objext; then
29412   wx_cv_expat_is_not_broken=yes
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417         wx_cv_expat_is_not_broken=no
29418
29419 fi
29420
29421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29422                 ac_ext=c
29423 ac_cpp='$CPP $CPPFLAGS'
29424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29427
29428
29429
29430 fi
29431 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29432 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29433             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29434                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29435 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29436 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29437   echo $ECHO_N "(cached) $ECHO_C" >&6
29438 else
29439   ac_check_lib_save_LIBS=$LIBS
29440 LIBS="-lexpat  $LIBS"
29441 cat >conftest.$ac_ext <<_ACEOF
29442 /* confdefs.h.  */
29443 _ACEOF
29444 cat confdefs.h >>conftest.$ac_ext
29445 cat >>conftest.$ac_ext <<_ACEOF
29446 /* end confdefs.h.  */
29447
29448 /* Override any GCC internal prototype to avoid an error.
29449    Use char because int might match the return type of a GCC
29450    builtin and then its argument prototype would still apply.  */
29451 #ifdef __cplusplus
29452 extern "C"
29453 #endif
29454 char XML_ParserCreate ();
29455 int
29456 main ()
29457 {
29458 return XML_ParserCreate ();
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 rm -f conftest.$ac_objext conftest$ac_exeext
29464 if { (ac_try="$ac_link"
29465 case "(($ac_try" in
29466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467   *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470   (eval "$ac_link") 2>conftest.er1
29471   ac_status=$?
29472   grep -v '^ *+' conftest.er1 >conftest.err
29473   rm -f conftest.er1
29474   cat conftest.err >&5
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); } && {
29477          test -z "$ac_c_werror_flag" ||
29478          test ! -s conftest.err
29479        } && test -s conftest$ac_exeext &&
29480        $as_test_x conftest$ac_exeext; then
29481   ac_cv_lib_expat_XML_ParserCreate=yes
29482 else
29483   echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29485
29486         ac_cv_lib_expat_XML_ParserCreate=no
29487 fi
29488
29489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29490       conftest$ac_exeext conftest.$ac_ext
29491 LIBS=$ac_check_lib_save_LIBS
29492 fi
29493 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29494 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29495 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29496   EXPAT_LINK=" -lexpat"
29497 fi
29498
29499             fi
29500         fi
29501         if test "x$EXPAT_LINK" = "x" ; then
29502             if test "$wxUSE_EXPAT" = "sys" ; then
29503                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29504 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29505    { (exit 1); exit 1; }; }
29506             else
29507                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29508 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29509                 wxUSE_EXPAT=builtin
29510             fi
29511         else
29512                         wxUSE_EXPAT=sys
29513         fi
29514     fi
29515     if test "$wxUSE_EXPAT" = "builtin" ; then
29516                 subdirs="$subdirs src/expat"
29517
29518     fi
29519 fi
29520
29521
29522
29523 if test "$wxUSE_LIBMSPACK" != "no"; then
29524     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29525 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29526 if test "${ac_cv_header_mspack_h+set}" = set; then
29527   echo $ECHO_N "(cached) $ECHO_C" >&6
29528 else
29529   cat >conftest.$ac_ext <<_ACEOF
29530 /* confdefs.h.  */
29531 _ACEOF
29532 cat confdefs.h >>conftest.$ac_ext
29533 cat >>conftest.$ac_ext <<_ACEOF
29534 /* end confdefs.h.  */
29535
29536
29537 #include <mspack.h>
29538 _ACEOF
29539 rm -f conftest.$ac_objext
29540 if { (ac_try="$ac_compile"
29541 case "(($ac_try" in
29542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543   *) ac_try_echo=$ac_try;;
29544 esac
29545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29546   (eval "$ac_compile") 2>conftest.er1
29547   ac_status=$?
29548   grep -v '^ *+' conftest.er1 >conftest.err
29549   rm -f conftest.er1
29550   cat conftest.err >&5
29551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); } && {
29553          test -z "$ac_c_werror_flag" ||
29554          test ! -s conftest.err
29555        } && test -s conftest.$ac_objext; then
29556   ac_cv_header_mspack_h=yes
29557 else
29558   echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561         ac_cv_header_mspack_h=no
29562 fi
29563
29564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29565 fi
29566 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29567 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29568 if test $ac_cv_header_mspack_h = yes; then
29569   found_mspack_h=1
29570 fi
29571
29572
29573     if test "x$found_mspack_h" = "x1"; then
29574         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29575 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29576 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29577   echo $ECHO_N "(cached) $ECHO_C" >&6
29578 else
29579   ac_check_lib_save_LIBS=$LIBS
29580 LIBS="-lmspack  $LIBS"
29581 cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587
29588 /* Override any GCC internal prototype to avoid an error.
29589    Use char because int might match the return type of a GCC
29590    builtin and then its argument prototype would still apply.  */
29591 #ifdef __cplusplus
29592 extern "C"
29593 #endif
29594 char mspack_create_chm_decompressor ();
29595 int
29596 main ()
29597 {
29598 return mspack_create_chm_decompressor ();
29599   ;
29600   return 0;
29601 }
29602 _ACEOF
29603 rm -f conftest.$ac_objext conftest$ac_exeext
29604 if { (ac_try="$ac_link"
29605 case "(($ac_try" in
29606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29607   *) ac_try_echo=$ac_try;;
29608 esac
29609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29610   (eval "$ac_link") 2>conftest.er1
29611   ac_status=$?
29612   grep -v '^ *+' conftest.er1 >conftest.err
29613   rm -f conftest.er1
29614   cat conftest.err >&5
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } && {
29617          test -z "$ac_c_werror_flag" ||
29618          test ! -s conftest.err
29619        } && test -s conftest$ac_exeext &&
29620        $as_test_x conftest$ac_exeext; then
29621   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29622 else
29623   echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29627 fi
29628
29629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29630       conftest$ac_exeext conftest.$ac_ext
29631 LIBS=$ac_check_lib_save_LIBS
29632 fi
29633 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29634 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29635 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29636   MSPACK_LINK=" -lmspack"
29637 fi
29638
29639     fi
29640     if test "x$MSPACK_LINK" = "x" ; then
29641         wxUSE_LIBMSPACK=no
29642     fi
29643 fi
29644
29645 if test "$wxUSE_LIBMSPACK" != "no"; then
29646     cat >>confdefs.h <<\_ACEOF
29647 #define wxUSE_LIBMSPACK 1
29648 _ACEOF
29649
29650 fi
29651
29652
29653
29654 AFMINSTALL=
29655 WIN32INSTALL=
29656
29657 TOOLKIT=
29658 TOOLKIT_INCLUDE=
29659 WIDGET_SET=
29660
29661 if test "$USE_WIN32" = 1 ; then
29662
29663 for ac_header in w32api.h
29664 do
29665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29669   echo $ECHO_N "(cached) $ECHO_C" >&6
29670 else
29671   cat >conftest.$ac_ext <<_ACEOF
29672 /* confdefs.h.  */
29673 _ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h.  */
29677
29678
29679 #include <$ac_header>
29680 _ACEOF
29681 rm -f conftest.$ac_objext
29682 if { (ac_try="$ac_compile"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_compile") 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } && {
29695          test -z "$ac_c_werror_flag" ||
29696          test ! -s conftest.err
29697        } && test -s conftest.$ac_objext; then
29698   eval "$as_ac_Header=yes"
29699 else
29700   echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29702
29703         eval "$as_ac_Header=no"
29704 fi
29705
29706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 fi
29708 ac_res=`eval echo '${'$as_ac_Header'}'`
29709                { echo "$as_me:$LINENO: result: $ac_res" >&5
29710 echo "${ECHO_T}$ac_res" >&6; }
29711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29712   cat >>confdefs.h <<_ACEOF
29713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29714 _ACEOF
29715
29716 fi
29717
29718 done
29719
29720     { echo "$as_me:$LINENO: checking for windows.h" >&5
29721 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29722 if test "${ac_cv_header_windows_h+set}" = set; then
29723   echo $ECHO_N "(cached) $ECHO_C" >&6
29724 else
29725   cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h.  */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h.  */
29731
29732
29733 #include <windows.h>
29734 _ACEOF
29735 rm -f conftest.$ac_objext
29736 if { (ac_try="$ac_compile"
29737 case "(($ac_try" in
29738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739   *) ac_try_echo=$ac_try;;
29740 esac
29741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29742   (eval "$ac_compile") 2>conftest.er1
29743   ac_status=$?
29744   grep -v '^ *+' conftest.er1 >conftest.err
29745   rm -f conftest.er1
29746   cat conftest.err >&5
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); } && {
29749          test -z "$ac_c_werror_flag" ||
29750          test ! -s conftest.err
29751        } && test -s conftest.$ac_objext; then
29752   ac_cv_header_windows_h=yes
29753 else
29754   echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29756
29757         ac_cv_header_windows_h=no
29758 fi
29759
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29761 fi
29762 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29763 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29764 if test $ac_cv_header_windows_h = yes; then
29765   :
29766 else
29767
29768         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29769 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29770    { (exit 1); exit 1; }; }
29771
29772 fi
29773
29774
29775
29776     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29777     case "${host}" in
29778         x86_64-*-mingw32* )
29779                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29780         ;;
29781     esac
29782     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29783         LIBS="$LIBS -loleacc"
29784     fi
29785
29786     case "${host}" in
29787         *-*-cygwin* )
29788                         LIBS="$LIBS -lkernel32 -luser32"
29789     esac
29790
29791         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29792     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29793
29794                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29795
29796         WIN32INSTALL=win32install
29797
29798         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29799 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29800 if test "${ac_cv_header_pbt_h+set}" = set; then
29801   echo $ECHO_N "(cached) $ECHO_C" >&6
29802 else
29803   cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h.  */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h.  */
29809
29810
29811 #include <pbt.h>
29812 _ACEOF
29813 rm -f conftest.$ac_objext
29814 if { (ac_try="$ac_compile"
29815 case "(($ac_try" in
29816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29817   *) ac_try_echo=$ac_try;;
29818 esac
29819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29820   (eval "$ac_compile") 2>conftest.er1
29821   ac_status=$?
29822   grep -v '^ *+' conftest.er1 >conftest.err
29823   rm -f conftest.er1
29824   cat conftest.err >&5
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); } && {
29827          test -z "$ac_c_werror_flag" ||
29828          test ! -s conftest.err
29829        } && test -s conftest.$ac_objext; then
29830   ac_cv_header_pbt_h=yes
29831 else
29832   echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29834
29835         ac_cv_header_pbt_h=no
29836 fi
29837
29838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839 fi
29840 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29841 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29842 if test $ac_cv_header_pbt_h = yes; then
29843   :
29844 else
29845   cat >>confdefs.h <<\_ACEOF
29846 #define NEED_PBT_H 1
29847 _ACEOF
29848
29849 fi
29850
29851
29852 fi
29853
29854 if test "$wxUSE_GUI" = "yes"; then
29855     USE_GUI=1
29856
29857     GUI_TK_LIBRARY=
29858
29859     WXGTK127=
29860     WXGTK2=
29861     WXGPE=
29862
29863     if test "$wxUSE_OLD_COCOA" = 1 ; then
29864         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29865             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29866 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29867             wxUSE_PRINTING_ARCHITECTURE=no
29868         fi
29869         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29870             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29871 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29872             wxUSE_DRAG_AND_DROP=no
29873         fi
29874         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29875             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29876 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29877             wxUSE_DRAGIMAGE=no
29878         fi
29879     fi
29880
29881     if test "$wxUSE_MSW" = 1 ; then
29882         TOOLKIT=MSW
29883         GUIDIST=MSW_DIST
29884
29885                 case "${host}" in
29886             *-*-mingw32* )
29887                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29888         esac
29889     fi
29890
29891     if test "$wxUSE_GTK" = 1; then
29892                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29893 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29894
29895         gtk_version_cached=1
29896         if test "${wx_cv_lib_gtk+set}" = set; then
29897   echo $ECHO_N "(cached) $ECHO_C" >&6
29898 else
29899
29900                                                 gtk_version_cached=0
29901                 { echo "$as_me:$LINENO: result: " >&5
29902 echo "${ECHO_T}" >&6; }
29903
29904                                                 GTK_MODULES=
29905                 if test "$wxUSE_THREADS" = "yes"; then
29906                     GTK_MODULES=gthread
29907                 fi
29908
29909                                 wx_cv_lib_gtk=
29910                 if test "x$wxGTK_VERSION" != "x1"
29911                 then
29912                                                                                 case "${host}" in
29913                         *-*-solaris2* )
29914                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29915                                 enable_gtktest=no
29916                             fi
29917                     esac
29918
29919                     # Check whether --enable-gtktest was given.
29920 if test "${enable_gtktest+set}" = set; then
29921   enableval=$enable_gtktest;
29922 else
29923   enable_gtktest=yes
29924 fi
29925
29926
29927   pkg_config_args=gtk+-2.0
29928   for module in . $GTK_MODULES
29929   do
29930       case "$module" in
29931          gthread)
29932              pkg_config_args="$pkg_config_args gthread-2.0"
29933          ;;
29934       esac
29935   done
29936
29937   no_gtk=""
29938
29939   # Extract the first word of "pkg-config", so it can be a program name with args.
29940 set dummy pkg-config; ac_word=$2
29941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29943 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29944   echo $ECHO_N "(cached) $ECHO_C" >&6
29945 else
29946   case $PKG_CONFIG in
29947   [\\/]* | ?:[\\/]*)
29948   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29949   ;;
29950   *)
29951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29952 for as_dir in $PATH
29953 do
29954   IFS=$as_save_IFS
29955   test -z "$as_dir" && as_dir=.
29956   for ac_exec_ext in '' $ac_executable_extensions; do
29957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29958     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29960     break 2
29961   fi
29962 done
29963 done
29964 IFS=$as_save_IFS
29965
29966   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29967   ;;
29968 esac
29969 fi
29970 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29971 if test -n "$PKG_CONFIG"; then
29972   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29973 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29974 else
29975   { echo "$as_me:$LINENO: result: no" >&5
29976 echo "${ECHO_T}no" >&6; }
29977 fi
29978
29979
29980
29981   if test x$PKG_CONFIG != xno ; then
29982     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29983       :
29984     else
29985       echo "*** pkg-config too old; version 0.7 or better required."
29986       no_gtk=yes
29987       PKG_CONFIG=no
29988     fi
29989   else
29990     no_gtk=yes
29991   fi
29992
29993   min_gtk_version=2.4.0
29994   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29995 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29996
29997   if test x$PKG_CONFIG != xno ; then
29998     ## don't try to run the test against uninstalled libtool libs
29999     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30000           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30001           enable_gtktest=no
30002     fi
30003
30004     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30005           :
30006     else
30007           no_gtk=yes
30008     fi
30009   fi
30010
30011   if test x"$no_gtk" = x ; then
30012     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30013     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30014     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30015            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30016     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30017            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30018     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30019            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30020     if test "x$enable_gtktest" = "xyes" ; then
30021       ac_save_CFLAGS="$CFLAGS"
30022       ac_save_LIBS="$LIBS"
30023       CFLAGS="$CFLAGS $GTK_CFLAGS"
30024       LIBS="$GTK_LIBS $LIBS"
30025       rm -f conf.gtktest
30026       if test "$cross_compiling" = yes; then
30027   echo $ac_n "cross compiling; assumed OK... $ac_c"
30028 else
30029   cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035
30036 #include <gtk/gtk.h>
30037 #include <stdio.h>
30038 #include <stdlib.h>
30039
30040 int
30041 main ()
30042 {
30043   int major, minor, micro;
30044   char *tmp_version;
30045
30046   system ("touch conf.gtktest");
30047
30048   /* HP/UX 9 (%@#!) writes to sscanf strings */
30049   tmp_version = g_strdup("$min_gtk_version");
30050   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30051      printf("%s, bad version string\n", "$min_gtk_version");
30052      exit(1);
30053    }
30054
30055   if ((gtk_major_version != $gtk_config_major_version) ||
30056       (gtk_minor_version != $gtk_config_minor_version) ||
30057       (gtk_micro_version != $gtk_config_micro_version))
30058     {
30059       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30060              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30061              gtk_major_version, gtk_minor_version, gtk_micro_version);
30062       printf ("*** was found! If pkg-config was correct, then it is best\n");
30063       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30064       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30065       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30066       printf("*** required on your system.\n");
30067       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30068       printf("*** to point to the correct configuration files\n");
30069     }
30070   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30071            (gtk_minor_version != GTK_MINOR_VERSION) ||
30072            (gtk_micro_version != GTK_MICRO_VERSION))
30073     {
30074       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30075              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30076       printf("*** library (version %d.%d.%d)\n",
30077              gtk_major_version, gtk_minor_version, gtk_micro_version);
30078     }
30079   else
30080     {
30081       if ((gtk_major_version > major) ||
30082         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30083         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30084       {
30085         return 0;
30086        }
30087      else
30088       {
30089         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30090                gtk_major_version, gtk_minor_version, gtk_micro_version);
30091         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30092                major, minor, micro);
30093         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30094         printf("***\n");
30095         printf("*** If you have already installed a sufficiently new version, this error\n");
30096         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30097         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30098         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30099         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30100         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30101         printf("*** so that the correct libraries are found at run-time))\n");
30102       }
30103     }
30104   return 1;
30105 }
30106
30107 _ACEOF
30108 rm -f conftest$ac_exeext
30109 if { (ac_try="$ac_link"
30110 case "(($ac_try" in
30111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112   *) ac_try_echo=$ac_try;;
30113 esac
30114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30115   (eval "$ac_link") 2>&5
30116   ac_status=$?
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30119   { (case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_try") 2>&5
30125   ac_status=$?
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); }; }; then
30128   :
30129 else
30130   echo "$as_me: program exited with status $ac_status" >&5
30131 echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30133
30134 ( exit $ac_status )
30135 no_gtk=yes
30136 fi
30137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30138 fi
30139
30140
30141        CFLAGS="$ac_save_CFLAGS"
30142        LIBS="$ac_save_LIBS"
30143      fi
30144   fi
30145   if test "x$no_gtk" = x ; then
30146      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30147 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30148      wx_cv_lib_gtk=2.0
30149   else
30150      { echo "$as_me:$LINENO: result: no" >&5
30151 echo "${ECHO_T}no" >&6; }
30152      if test "$PKG_CONFIG" = "no" ; then
30153        echo "*** A new enough version of pkg-config was not found."
30154        echo "*** See http://pkgconfig.sourceforge.net"
30155      else
30156        if test -f conf.gtktest ; then
30157         :
30158        else
30159           echo "*** Could not run GTK+ test program, checking why..."
30160           ac_save_CFLAGS="$CFLAGS"
30161           ac_save_LIBS="$LIBS"
30162           CFLAGS="$CFLAGS $GTK_CFLAGS"
30163           LIBS="$LIBS $GTK_LIBS"
30164           cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170
30171 #include <gtk/gtk.h>
30172 #include <stdio.h>
30173
30174 int
30175 main ()
30176 {
30177  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30178   ;
30179   return 0;
30180 }
30181 _ACEOF
30182 rm -f conftest.$ac_objext conftest$ac_exeext
30183 if { (ac_try="$ac_link"
30184 case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189   (eval "$ac_link") 2>conftest.er1
30190   ac_status=$?
30191   grep -v '^ *+' conftest.er1 >conftest.err
30192   rm -f conftest.er1
30193   cat conftest.err >&5
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); } && {
30196          test -z "$ac_c_werror_flag" ||
30197          test ! -s conftest.err
30198        } && test -s conftest$ac_exeext &&
30199        $as_test_x conftest$ac_exeext; then
30200    echo "*** The test program compiled, but did not run. This usually means"
30201           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30202           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30203           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30204           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30205           echo "*** is required on your system"
30206           echo "***"
30207           echo "*** If you have an old version installed, it is best to remove it, although"
30208           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30209 else
30210   echo "$as_me: failed program was:" >&5
30211 sed 's/^/| /' conftest.$ac_ext >&5
30212
30213          echo "*** The test program failed to compile or link. See the file config.log for the"
30214           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30215 fi
30216
30217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30218       conftest$ac_exeext conftest.$ac_ext
30219           CFLAGS="$ac_save_CFLAGS"
30220           LIBS="$ac_save_LIBS"
30221        fi
30222      fi
30223      GTK_CFLAGS=""
30224      GTK_LIBS=""
30225      :
30226   fi
30227
30228
30229   rm -f conf.gtktest
30230
30231                 fi
30232
30233                                 if test -z "$wx_cv_lib_gtk"; then
30234                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30235
30236 # Check whether --with-gtk-prefix was given.
30237 if test "${with_gtk_prefix+set}" = set; then
30238   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30239 else
30240   gtk_config_prefix=""
30241 fi
30242
30243
30244 # Check whether --with-gtk-exec-prefix was given.
30245 if test "${with_gtk_exec_prefix+set}" = set; then
30246   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30247 else
30248   gtk_config_exec_prefix=""
30249 fi
30250
30251 # Check whether --enable-gtktest was given.
30252 if test "${enable_gtktest+set}" = set; then
30253   enableval=$enable_gtktest;
30254 else
30255   enable_gtktest=yes
30256 fi
30257
30258
30259   for module in . $GTK_MODULES
30260   do
30261       case "$module" in
30262          gthread)
30263              gtk_config_args="$gtk_config_args gthread"
30264          ;;
30265       esac
30266   done
30267
30268   if test x$gtk_config_exec_prefix != x ; then
30269      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30270      if test x${GTK_CONFIG+set} != xset ; then
30271         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30272      fi
30273   fi
30274   if test x$gtk_config_prefix != x ; then
30275      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30276      if test x${GTK_CONFIG+set} != xset ; then
30277         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30278      fi
30279   fi
30280
30281   # Extract the first word of "gtk-config", so it can be a program name with args.
30282 set dummy gtk-config; ac_word=$2
30283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30285 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30286   echo $ECHO_N "(cached) $ECHO_C" >&6
30287 else
30288   case $GTK_CONFIG in
30289   [\\/]* | ?:[\\/]*)
30290   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30291   ;;
30292   *)
30293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30294 for as_dir in $PATH
30295 do
30296   IFS=$as_save_IFS
30297   test -z "$as_dir" && as_dir=.
30298   for ac_exec_ext in '' $ac_executable_extensions; do
30299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30300     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30302     break 2
30303   fi
30304 done
30305 done
30306 IFS=$as_save_IFS
30307
30308   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30309   ;;
30310 esac
30311 fi
30312 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30313 if test -n "$GTK_CONFIG"; then
30314   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30315 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30316 else
30317   { echo "$as_me:$LINENO: result: no" >&5
30318 echo "${ECHO_T}no" >&6; }
30319 fi
30320
30321
30322   min_gtk_version=1.2.7
30323   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30324 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30325   no_gtk=""
30326   if test "$GTK_CONFIG" = "no" ; then
30327     no_gtk=yes
30328   else
30329     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30330     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30331     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30332            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30333     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30334            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30335     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30336            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30337     if test "x$enable_gtktest" = "xyes" ; then
30338       ac_save_CFLAGS="$CFLAGS"
30339       ac_save_LIBS="$LIBS"
30340       CFLAGS="$CFLAGS $GTK_CFLAGS"
30341       LIBS="$GTK_LIBS $LIBS"
30342       rm -f conf.gtktest
30343       if test "$cross_compiling" = yes; then
30344   echo $ac_n "cross compiling; assumed OK... $ac_c"
30345 else
30346   cat >conftest.$ac_ext <<_ACEOF
30347 /* confdefs.h.  */
30348 _ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h.  */
30352
30353 #include <gtk/gtk.h>
30354 #include <stdio.h>
30355 #include <stdlib.h>
30356
30357 int
30358 main ()
30359 {
30360   int major, minor, micro;
30361   char *tmp_version;
30362
30363   system ("touch conf.gtktest");
30364
30365   /* HP/UX 9 (%@#!) writes to sscanf strings */
30366   tmp_version = g_strdup("$min_gtk_version");
30367   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30368      printf("%s, bad version string\n", "$min_gtk_version");
30369      exit(1);
30370    }
30371
30372   if ((gtk_major_version != $gtk_config_major_version) ||
30373       (gtk_minor_version != $gtk_config_minor_version) ||
30374       (gtk_micro_version != $gtk_config_micro_version))
30375     {
30376       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30377              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30378              gtk_major_version, gtk_minor_version, gtk_micro_version);
30379       printf ("*** was found! If gtk-config was correct, then it is best\n");
30380       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30381       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30382       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30383       printf("*** required on your system.\n");
30384       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30385       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30386       printf("*** before re-running configure\n");
30387     }
30388 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30389   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30390            (gtk_minor_version != GTK_MINOR_VERSION) ||
30391            (gtk_micro_version != GTK_MICRO_VERSION))
30392     {
30393       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30394              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30395       printf("*** library (version %d.%d.%d)\n",
30396              gtk_major_version, gtk_minor_version, gtk_micro_version);
30397     }
30398 #endif /* defined (GTK_MAJOR_VERSION) ... */
30399   else
30400     {
30401       if ((gtk_major_version > major) ||
30402         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30403         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30404       {
30405         return 0;
30406        }
30407      else
30408       {
30409         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30410                gtk_major_version, gtk_minor_version, gtk_micro_version);
30411         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30412                major, minor, micro);
30413         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30414         printf("***\n");
30415         printf("*** If you have already installed a sufficiently new version, this error\n");
30416         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30417         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30418         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30419         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30420         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30421         printf("*** so that the correct libraries are found at run-time))\n");
30422       }
30423     }
30424   return 1;
30425 }
30426
30427 _ACEOF
30428 rm -f conftest$ac_exeext
30429 if { (ac_try="$ac_link"
30430 case "(($ac_try" in
30431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432   *) ac_try_echo=$ac_try;;
30433 esac
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435   (eval "$ac_link") 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30439   { (case "(($ac_try" in
30440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441   *) ac_try_echo=$ac_try;;
30442 esac
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444   (eval "$ac_try") 2>&5
30445   ac_status=$?
30446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447   (exit $ac_status); }; }; then
30448   :
30449 else
30450   echo "$as_me: program exited with status $ac_status" >&5
30451 echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30453
30454 ( exit $ac_status )
30455 no_gtk=yes
30456 fi
30457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30458 fi
30459
30460
30461        CFLAGS="$ac_save_CFLAGS"
30462        LIBS="$ac_save_LIBS"
30463      fi
30464   fi
30465   if test "x$no_gtk" = x ; then
30466      { echo "$as_me:$LINENO: result: yes" >&5
30467 echo "${ECHO_T}yes" >&6; }
30468      wx_cv_lib_gtk=1.2.7
30469   else
30470      { echo "$as_me:$LINENO: result: no" >&5
30471 echo "${ECHO_T}no" >&6; }
30472      if test "$GTK_CONFIG" = "no" ; then
30473        echo "*** The gtk-config script installed by GTK could not be found"
30474        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30475        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30476        echo "*** full path to gtk-config."
30477      else
30478        if test -f conf.gtktest ; then
30479         :
30480        else
30481           echo "*** Could not run GTK test program, checking why..."
30482           CFLAGS="$CFLAGS $GTK_CFLAGS"
30483           LIBS="$LIBS $GTK_LIBS"
30484           cat >conftest.$ac_ext <<_ACEOF
30485 /* confdefs.h.  */
30486 _ACEOF
30487 cat confdefs.h >>conftest.$ac_ext
30488 cat >>conftest.$ac_ext <<_ACEOF
30489 /* end confdefs.h.  */
30490
30491 #include <gtk/gtk.h>
30492 #include <stdio.h>
30493
30494 int
30495 main ()
30496 {
30497  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30498   ;
30499   return 0;
30500 }
30501 _ACEOF
30502 rm -f conftest.$ac_objext conftest$ac_exeext
30503 if { (ac_try="$ac_link"
30504 case "(($ac_try" in
30505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506   *) ac_try_echo=$ac_try;;
30507 esac
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509   (eval "$ac_link") 2>conftest.er1
30510   ac_status=$?
30511   grep -v '^ *+' conftest.er1 >conftest.err
30512   rm -f conftest.er1
30513   cat conftest.err >&5
30514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515   (exit $ac_status); } && {
30516          test -z "$ac_c_werror_flag" ||
30517          test ! -s conftest.err
30518        } && test -s conftest$ac_exeext &&
30519        $as_test_x conftest$ac_exeext; then
30520    echo "*** The test program compiled, but did not run. This usually means"
30521           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30522           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30523           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30524           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30525           echo "*** is required on your system"
30526           echo "***"
30527           echo "*** If you have an old version installed, it is best to remove it, although"
30528           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30529           echo "***"
30530           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30531           echo "*** came with the system with the command"
30532           echo "***"
30533           echo "***    rpm --erase --nodeps gtk gtk-devel"
30534 else
30535   echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30537
30538          echo "*** The test program failed to compile or link. See the file config.log for the"
30539           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30540           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30541           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30545       conftest$ac_exeext conftest.$ac_ext
30546           CFLAGS="$ac_save_CFLAGS"
30547           LIBS="$ac_save_LIBS"
30548        fi
30549      fi
30550      GTK_CFLAGS=""
30551      GTK_LIBS=""
30552      :
30553   fi
30554
30555
30556   rm -f conf.gtktest
30557
30558
30559                         if test -z "$wx_cv_lib_gtk"; then
30560
30561 # Check whether --with-gtk-prefix was given.
30562 if test "${with_gtk_prefix+set}" = set; then
30563   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30564 else
30565   gtk_config_prefix=""
30566 fi
30567
30568
30569 # Check whether --with-gtk-exec-prefix was given.
30570 if test "${with_gtk_exec_prefix+set}" = set; then
30571   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30572 else
30573   gtk_config_exec_prefix=""
30574 fi
30575
30576 # Check whether --enable-gtktest was given.
30577 if test "${enable_gtktest+set}" = set; then
30578   enableval=$enable_gtktest;
30579 else
30580   enable_gtktest=yes
30581 fi
30582
30583
30584   for module in . $GTK_MODULES
30585   do
30586       case "$module" in
30587          gthread)
30588              gtk_config_args="$gtk_config_args gthread"
30589          ;;
30590       esac
30591   done
30592
30593   if test x$gtk_config_exec_prefix != x ; then
30594      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30595      if test x${GTK_CONFIG+set} != xset ; then
30596         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30597      fi
30598   fi
30599   if test x$gtk_config_prefix != x ; then
30600      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30601      if test x${GTK_CONFIG+set} != xset ; then
30602         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30603      fi
30604   fi
30605
30606   # Extract the first word of "gtk-config", so it can be a program name with args.
30607 set dummy gtk-config; ac_word=$2
30608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30610 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30611   echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613   case $GTK_CONFIG in
30614   [\\/]* | ?:[\\/]*)
30615   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30616   ;;
30617   *)
30618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30619 for as_dir in $PATH
30620 do
30621   IFS=$as_save_IFS
30622   test -z "$as_dir" && as_dir=.
30623   for ac_exec_ext in '' $ac_executable_extensions; do
30624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30625     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30627     break 2
30628   fi
30629 done
30630 done
30631 IFS=$as_save_IFS
30632
30633   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30634   ;;
30635 esac
30636 fi
30637 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30638 if test -n "$GTK_CONFIG"; then
30639   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30640 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30641 else
30642   { echo "$as_me:$LINENO: result: no" >&5
30643 echo "${ECHO_T}no" >&6; }
30644 fi
30645
30646
30647   min_gtk_version=1.2.3
30648   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30649 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30650   no_gtk=""
30651   if test "$GTK_CONFIG" = "no" ; then
30652     no_gtk=yes
30653   else
30654     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30655     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30656     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30657            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30658     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30659            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30660     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30661            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30662     if test "x$enable_gtktest" = "xyes" ; then
30663       ac_save_CFLAGS="$CFLAGS"
30664       ac_save_LIBS="$LIBS"
30665       CFLAGS="$CFLAGS $GTK_CFLAGS"
30666       LIBS="$GTK_LIBS $LIBS"
30667       rm -f conf.gtktest
30668       if test "$cross_compiling" = yes; then
30669   echo $ac_n "cross compiling; assumed OK... $ac_c"
30670 else
30671   cat >conftest.$ac_ext <<_ACEOF
30672 /* confdefs.h.  */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h.  */
30677
30678 #include <gtk/gtk.h>
30679 #include <stdio.h>
30680 #include <stdlib.h>
30681
30682 int
30683 main ()
30684 {
30685   int major, minor, micro;
30686   char *tmp_version;
30687
30688   system ("touch conf.gtktest");
30689
30690   /* HP/UX 9 (%@#!) writes to sscanf strings */
30691   tmp_version = g_strdup("$min_gtk_version");
30692   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30693      printf("%s, bad version string\n", "$min_gtk_version");
30694      exit(1);
30695    }
30696
30697   if ((gtk_major_version != $gtk_config_major_version) ||
30698       (gtk_minor_version != $gtk_config_minor_version) ||
30699       (gtk_micro_version != $gtk_config_micro_version))
30700     {
30701       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30702              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30703              gtk_major_version, gtk_minor_version, gtk_micro_version);
30704       printf ("*** was found! If gtk-config was correct, then it is best\n");
30705       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30706       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30707       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30708       printf("*** required on your system.\n");
30709       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30710       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30711       printf("*** before re-running configure\n");
30712     }
30713 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30714   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30715            (gtk_minor_version != GTK_MINOR_VERSION) ||
30716            (gtk_micro_version != GTK_MICRO_VERSION))
30717     {
30718       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30719              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30720       printf("*** library (version %d.%d.%d)\n",
30721              gtk_major_version, gtk_minor_version, gtk_micro_version);
30722     }
30723 #endif /* defined (GTK_MAJOR_VERSION) ... */
30724   else
30725     {
30726       if ((gtk_major_version > major) ||
30727         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30728         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30729       {
30730         return 0;
30731        }
30732      else
30733       {
30734         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30735                gtk_major_version, gtk_minor_version, gtk_micro_version);
30736         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30737                major, minor, micro);
30738         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30739         printf("***\n");
30740         printf("*** If you have already installed a sufficiently new version, this error\n");
30741         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30742         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30743         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30744         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30745         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30746         printf("*** so that the correct libraries are found at run-time))\n");
30747       }
30748     }
30749   return 1;
30750 }
30751
30752 _ACEOF
30753 rm -f conftest$ac_exeext
30754 if { (ac_try="$ac_link"
30755 case "(($ac_try" in
30756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757   *) ac_try_echo=$ac_try;;
30758 esac
30759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760   (eval "$ac_link") 2>&5
30761   ac_status=$?
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30764   { (case "(($ac_try" in
30765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30766   *) ac_try_echo=$ac_try;;
30767 esac
30768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30769   (eval "$ac_try") 2>&5
30770   ac_status=$?
30771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772   (exit $ac_status); }; }; then
30773   :
30774 else
30775   echo "$as_me: program exited with status $ac_status" >&5
30776 echo "$as_me: failed program was:" >&5
30777 sed 's/^/| /' conftest.$ac_ext >&5
30778
30779 ( exit $ac_status )
30780 no_gtk=yes
30781 fi
30782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30783 fi
30784
30785
30786        CFLAGS="$ac_save_CFLAGS"
30787        LIBS="$ac_save_LIBS"
30788      fi
30789   fi
30790   if test "x$no_gtk" = x ; then
30791      { echo "$as_me:$LINENO: result: yes" >&5
30792 echo "${ECHO_T}yes" >&6; }
30793      wx_cv_lib_gtk=1.2.3
30794   else
30795      { echo "$as_me:$LINENO: result: no" >&5
30796 echo "${ECHO_T}no" >&6; }
30797      if test "$GTK_CONFIG" = "no" ; then
30798        echo "*** The gtk-config script installed by GTK could not be found"
30799        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30800        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30801        echo "*** full path to gtk-config."
30802      else
30803        if test -f conf.gtktest ; then
30804         :
30805        else
30806           echo "*** Could not run GTK test program, checking why..."
30807           CFLAGS="$CFLAGS $GTK_CFLAGS"
30808           LIBS="$LIBS $GTK_LIBS"
30809           cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815
30816 #include <gtk/gtk.h>
30817 #include <stdio.h>
30818
30819 int
30820 main ()
30821 {
30822  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30823   ;
30824   return 0;
30825 }
30826 _ACEOF
30827 rm -f conftest.$ac_objext conftest$ac_exeext
30828 if { (ac_try="$ac_link"
30829 case "(($ac_try" in
30830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831   *) ac_try_echo=$ac_try;;
30832 esac
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834   (eval "$ac_link") 2>conftest.er1
30835   ac_status=$?
30836   grep -v '^ *+' conftest.er1 >conftest.err
30837   rm -f conftest.er1
30838   cat conftest.err >&5
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); } && {
30841          test -z "$ac_c_werror_flag" ||
30842          test ! -s conftest.err
30843        } && test -s conftest$ac_exeext &&
30844        $as_test_x conftest$ac_exeext; then
30845    echo "*** The test program compiled, but did not run. This usually means"
30846           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30847           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30848           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30849           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30850           echo "*** is required on your system"
30851           echo "***"
30852           echo "*** If you have an old version installed, it is best to remove it, although"
30853           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30854           echo "***"
30855           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30856           echo "*** came with the system with the command"
30857           echo "***"
30858           echo "***    rpm --erase --nodeps gtk gtk-devel"
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863          echo "*** The test program failed to compile or link. See the file config.log for the"
30864           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30865           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30866           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30867 fi
30868
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870       conftest$ac_exeext conftest.$ac_ext
30871           CFLAGS="$ac_save_CFLAGS"
30872           LIBS="$ac_save_LIBS"
30873        fi
30874      fi
30875      GTK_CFLAGS=""
30876      GTK_LIBS=""
30877      :
30878   fi
30879
30880
30881   rm -f conf.gtktest
30882
30883                         fi
30884                     fi
30885                 fi
30886
30887                 if test -z "$wx_cv_lib_gtk"; then
30888                                         wx_cv_lib_gtk=none
30889                 else
30890                                         GTK_LIBS="$GTK_LIBS -lX11"
30891
30892                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30893                     wx_cv_libs_gtk=$GTK_LIBS
30894                 fi
30895
30896
30897 fi
30898
30899
30900                         if test "$gtk_version_cached" = 1; then
30901             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30902 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30903         fi
30904
30905         case "$wx_cv_lib_gtk" in
30906             2.0)    WXGTK2=1
30907                     TOOLKIT_VERSION=2
30908                     ;;
30909             1.2.7)  WXGTK127=1
30910                     ;;
30911             1.2*) ;;
30912             *)      { { echo "$as_me:$LINENO: error:
30913 The development files for GTK+ were not found. For GTK+ 2, please
30914 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30915 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30916 and that the version is 1.2.3 or above. Also check that the
30917 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30918 --libs' are in the LD_LIBRARY_PATH or equivalent.
30919                             " >&5
30920 echo "$as_me: error:
30921 The development files for GTK+ were not found. For GTK+ 2, please
30922 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30923 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30924 and that the version is 1.2.3 or above. Also check that the
30925 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30926 --libs' are in the LD_LIBRARY_PATH or equivalent.
30927                             " >&2;}
30928    { (exit 1); exit 1; }; }
30929                     ;;
30930         esac
30931
30932         if test "$WXGTK2" = 1; then
30933             save_CFLAGS="$CFLAGS"
30934             save_LIBS="$LIBS"
30935             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30936             LIBS="$LIBS $wx_cv_libs_gtk"
30937
30938                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30939 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30940             cat >conftest.$ac_ext <<_ACEOF
30941 /* confdefs.h.  */
30942 _ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h.  */
30946
30947                             #include <gtk/gtk.h>
30948
30949 int
30950 main ()
30951 {
30952
30953                             #if !GTK_CHECK_VERSION(2,18,0)
30954                             Not GTK+ 2.18
30955                             #endif
30956
30957   ;
30958   return 0;
30959 }
30960 _ACEOF
30961 rm -f conftest.$ac_objext
30962 if { (ac_try="$ac_compile"
30963 case "(($ac_try" in
30964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965   *) ac_try_echo=$ac_try;;
30966 esac
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968   (eval "$ac_compile") 2>conftest.er1
30969   ac_status=$?
30970   grep -v '^ *+' conftest.er1 >conftest.err
30971   rm -f conftest.er1
30972   cat conftest.err >&5
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); } && {
30975          test -z "$ac_c_werror_flag" ||
30976          test ! -s conftest.err
30977        } && test -s conftest.$ac_objext; then
30978
30979                             cat >>confdefs.h <<\_ACEOF
30980 #define __WXGTK218__ 1
30981 _ACEOF
30982
30983                             cat >>confdefs.h <<\_ACEOF
30984 #define __WXGTK210__ 1
30985 _ACEOF
30986
30987                             cat >>confdefs.h <<\_ACEOF
30988 #define __WXGTK26__ 1
30989 _ACEOF
30990
30991                             { echo "$as_me:$LINENO: result: yes" >&5
30992 echo "${ECHO_T}yes" >&6; }
30993                             ac_wxgtk218=1
30994
30995 else
30996   echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30998
30999
31000                             { echo "$as_me:$LINENO: result: no" >&5
31001 echo "${ECHO_T}no" >&6; }
31002                             ac_wxgtk218=0
31003
31004 fi
31005
31006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31007
31008             if test "$ac_wxgtk218" = 0; then
31009                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31010 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31011                 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h.  */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h.  */
31017
31018                                 #include <gtk/gtk.h>
31019
31020 int
31021 main ()
31022 {
31023
31024                                 #if !GTK_CHECK_VERSION(2,10,0)
31025                                 Not GTK+ 2.10
31026                                 #endif
31027
31028   ;
31029   return 0;
31030 }
31031 _ACEOF
31032 rm -f conftest.$ac_objext
31033 if { (ac_try="$ac_compile"
31034 case "(($ac_try" in
31035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036   *) ac_try_echo=$ac_try;;
31037 esac
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039   (eval "$ac_compile") 2>conftest.er1
31040   ac_status=$?
31041   grep -v '^ *+' conftest.er1 >conftest.err
31042   rm -f conftest.er1
31043   cat conftest.err >&5
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); } && {
31046          test -z "$ac_c_werror_flag" ||
31047          test ! -s conftest.err
31048        } && test -s conftest.$ac_objext; then
31049
31050                                 cat >>confdefs.h <<\_ACEOF
31051 #define __WXGTK210__ 1
31052 _ACEOF
31053
31054                                 cat >>confdefs.h <<\_ACEOF
31055 #define __WXGTK26__ 1
31056 _ACEOF
31057
31058                                 { echo "$as_me:$LINENO: result: yes" >&5
31059 echo "${ECHO_T}yes" >&6; }
31060                                 ac_wxgtk210=1
31061
31062 else
31063   echo "$as_me: failed program was:" >&5
31064 sed 's/^/| /' conftest.$ac_ext >&5
31065
31066
31067                                 { echo "$as_me:$LINENO: result: no" >&5
31068 echo "${ECHO_T}no" >&6; }
31069                                 ac_wxgtk210=0
31070
31071 fi
31072
31073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31074
31075                 if test "$ac_wxgtk210" = 0; then
31076                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31077 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31078                     cat >conftest.$ac_ext <<_ACEOF
31079 /* confdefs.h.  */
31080 _ACEOF
31081 cat confdefs.h >>conftest.$ac_ext
31082 cat >>conftest.$ac_ext <<_ACEOF
31083 /* end confdefs.h.  */
31084
31085                                     #include <gtk/gtk.h>
31086
31087 int
31088 main ()
31089 {
31090
31091                                     #if !GTK_CHECK_VERSION(2,6,0)
31092                                     Not GTK+ 2.6
31093                                     #endif
31094
31095   ;
31096   return 0;
31097 }
31098 _ACEOF
31099 rm -f conftest.$ac_objext
31100 if { (ac_try="$ac_compile"
31101 case "(($ac_try" in
31102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103   *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106   (eval "$ac_compile") 2>conftest.er1
31107   ac_status=$?
31108   grep -v '^ *+' conftest.er1 >conftest.err
31109   rm -f conftest.er1
31110   cat conftest.err >&5
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); } && {
31113          test -z "$ac_c_werror_flag" ||
31114          test ! -s conftest.err
31115        } && test -s conftest.$ac_objext; then
31116
31117                                     cat >>confdefs.h <<\_ACEOF
31118 #define __WXGTK26__ 1
31119 _ACEOF
31120
31121                                     { echo "$as_me:$LINENO: result: yes" >&5
31122 echo "${ECHO_T}yes" >&6; }
31123                                     ac_wxgtk26=1
31124
31125 else
31126   echo "$as_me: failed program was:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31128
31129
31130                                     { echo "$as_me:$LINENO: result: no" >&5
31131 echo "${ECHO_T}no" >&6; }
31132                                     ac_wxgtk26=0
31133
31134 fi
31135
31136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31137                 fi
31138             fi
31139
31140             CFLAGS="$save_CFLAGS"
31141             LIBS="$save_LIBS"
31142         else
31143             if test "$wxUSE_UNICODE" = "yes"; then
31144                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31145 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31146                 wxUSE_UNICODE=no
31147             fi
31148
31149                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31150 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31151 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154   ac_check_lib_save_LIBS=$LIBS
31155 LIBS="-lgdk  $LIBS"
31156 cat >conftest.$ac_ext <<_ACEOF
31157 /* confdefs.h.  */
31158 _ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h.  */
31162
31163 /* Override any GCC internal prototype to avoid an error.
31164    Use char because int might match the return type of a GCC
31165    builtin and then its argument prototype would still apply.  */
31166 #ifdef __cplusplus
31167 extern "C"
31168 #endif
31169 char gdk_im_open ();
31170 int
31171 main ()
31172 {
31173 return gdk_im_open ();
31174   ;
31175   return 0;
31176 }
31177 _ACEOF
31178 rm -f conftest.$ac_objext conftest$ac_exeext
31179 if { (ac_try="$ac_link"
31180 case "(($ac_try" in
31181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182   *) ac_try_echo=$ac_try;;
31183 esac
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185   (eval "$ac_link") 2>conftest.er1
31186   ac_status=$?
31187   grep -v '^ *+' conftest.er1 >conftest.err
31188   rm -f conftest.er1
31189   cat conftest.err >&5
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); } && {
31192          test -z "$ac_c_werror_flag" ||
31193          test ! -s conftest.err
31194        } && test -s conftest$ac_exeext &&
31195        $as_test_x conftest$ac_exeext; then
31196   ac_cv_lib_gdk_gdk_im_open=yes
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201         ac_cv_lib_gdk_gdk_im_open=no
31202 fi
31203
31204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31205       conftest$ac_exeext conftest.$ac_ext
31206 LIBS=$ac_check_lib_save_LIBS
31207 fi
31208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31209 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31210 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31211   cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_XIM 1
31213 _ACEOF
31214
31215 fi
31216
31217
31218                                     if test "$USE_DARWIN" != 1; then
31219
31220 for ac_func in poll
31221 do
31222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31226   echo $ECHO_N "(cached) $ECHO_C" >&6
31227 else
31228   cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31236 #define $ac_func innocuous_$ac_func
31237
31238 /* System header to define __stub macros and hopefully few prototypes,
31239     which can conflict with char $ac_func (); below.
31240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31241     <limits.h> exists even on freestanding compilers.  */
31242
31243 #ifdef __STDC__
31244 # include <limits.h>
31245 #else
31246 # include <assert.h>
31247 #endif
31248
31249 #undef $ac_func
31250
31251 /* Override any GCC internal prototype to avoid an error.
31252    Use char because int might match the return type of a GCC
31253    builtin and then its argument prototype would still apply.  */
31254 #ifdef __cplusplus
31255 extern "C"
31256 #endif
31257 char $ac_func ();
31258 /* The GNU C library defines this for functions which it implements
31259     to always fail with ENOSYS.  Some functions are actually named
31260     something starting with __ and the normal name is an alias.  */
31261 #if defined __stub_$ac_func || defined __stub___$ac_func
31262 choke me
31263 #endif
31264
31265 int
31266 main ()
31267 {
31268 return $ac_func ();
31269   ;
31270   return 0;
31271 }
31272 _ACEOF
31273 rm -f conftest.$ac_objext conftest$ac_exeext
31274 if { (ac_try="$ac_link"
31275 case "(($ac_try" in
31276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277   *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280   (eval "$ac_link") 2>conftest.er1
31281   ac_status=$?
31282   grep -v '^ *+' conftest.er1 >conftest.err
31283   rm -f conftest.er1
31284   cat conftest.err >&5
31285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286   (exit $ac_status); } && {
31287          test -z "$ac_c_werror_flag" ||
31288          test ! -s conftest.err
31289        } && test -s conftest$ac_exeext &&
31290        $as_test_x conftest$ac_exeext; then
31291   eval "$as_ac_var=yes"
31292 else
31293   echo "$as_me: failed program was:" >&5
31294 sed 's/^/| /' conftest.$ac_ext >&5
31295
31296         eval "$as_ac_var=no"
31297 fi
31298
31299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31300       conftest$ac_exeext conftest.$ac_ext
31301 fi
31302 ac_res=`eval echo '${'$as_ac_var'}'`
31303                { echo "$as_me:$LINENO: result: $ac_res" >&5
31304 echo "${ECHO_T}$ac_res" >&6; }
31305 if test `eval echo '${'$as_ac_var'}'` = yes; then
31306   cat >>confdefs.h <<_ACEOF
31307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31308 _ACEOF
31309
31310 fi
31311 done
31312
31313             fi
31314         fi
31315
31316         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31317         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31318         AFMINSTALL=afminstall
31319         TOOLKIT=GTK
31320         GUIDIST=GTK_DIST
31321
31322                 if test "$wxUSE_GPE" = "yes"; then
31323             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31324 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31325
31326   ac_find_libraries=
31327   for ac_dir in $SEARCH_LIB
31328   do
31329     for ac_extension in a so sl dylib dll.a; do
31330       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31331         ac_find_libraries=$ac_dir
31332         break 2
31333       fi
31334     done
31335   done
31336
31337             if test "$ac_find_libraries" != "" ; then
31338
31339     if test "$ac_find_libraries" = "default location"; then
31340     ac_path_to_link=""
31341   else
31342     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31343     result=$?
31344     if test $result = 0; then
31345       ac_path_to_link=""
31346     else
31347       ac_path_to_link=" -L$ac_find_libraries"
31348     fi
31349   fi
31350
31351                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31352                 WXGPE=1
31353                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31354 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31355             else
31356                 { echo "$as_me:$LINENO: result: not found" >&5
31357 echo "${ECHO_T}not found" >&6; }
31358             fi
31359
31360                                                                                                                     fi
31361     fi
31362
31363     if test "$wxUSE_MGL" = 1; then
31364        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31365 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31366         if test "x$MGL_ROOT" = x ; then
31367             { echo "$as_me:$LINENO: result: not found" >&5
31368 echo "${ECHO_T}not found" >&6; }
31369             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31370 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31371    { (exit 1); exit 1; }; }
31372         else
31373             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31374 echo "${ECHO_T}$MGL_ROOT" >&6; }
31375         fi
31376
31377         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31378 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31379                                 case "${host}" in
31380             *-*-linux* )
31381                                           if test "x$wxUSE_SHARED" = xyes ; then
31382                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31383               else
31384                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31385               fi
31386               ;;
31387             *-pc-msdosdjgpp )
31388               mgl_os_candidates="dos32/dj2"
31389               ;;
31390             *)
31391               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31392 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31393    { (exit 1); exit 1; }; }
31394         esac
31395
31396         mgl_lib_type=""
31397         mgl_os=""
31398
31399         for mgl_os_i in $mgl_os_candidates ; do
31400             if test "x$mgl_os" = x ; then
31401                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31402                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31403                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31404                         mgl_lib_type=debug
31405                         mgl_os=$mgl_os_i
31406                     fi
31407                 fi
31408                 if test "x$mgl_lib_type" = x ; then
31409                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31410                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31411                         mgl_lib_type=release
31412                         mgl_os=$mgl_os_i
31413                     fi
31414                 fi
31415             fi
31416         done
31417
31418         if test "x$mgl_os" = x ; then
31419             { echo "$as_me:$LINENO: result: not found" >&5
31420 echo "${ECHO_T}not found" >&6; }
31421             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31422 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31423    { (exit 1); exit 1; }; }
31424         fi
31425         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31426 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31427
31428         wxUSE_UNIVERSAL="yes"
31429
31430         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31431         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31432
31433         AFMINSTALL=afminstall
31434         TOOLKIT=MGL
31435         GUIDIST=MGL_DIST
31436     fi
31437
31438     if test "$wxUSE_DFB" = 1; then
31439
31440
31441 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31442         if test -n "$ac_tool_prefix"; then
31443   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31444 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31447 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31448   echo $ECHO_N "(cached) $ECHO_C" >&6
31449 else
31450   case $PKG_CONFIG in
31451   [\\/]* | ?:[\\/]*)
31452   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31453   ;;
31454   *)
31455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31456 for as_dir in $PATH
31457 do
31458   IFS=$as_save_IFS
31459   test -z "$as_dir" && as_dir=.
31460   for ac_exec_ext in '' $ac_executable_extensions; do
31461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31462     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31464     break 2
31465   fi
31466 done
31467 done
31468 IFS=$as_save_IFS
31469
31470   ;;
31471 esac
31472 fi
31473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31474 if test -n "$PKG_CONFIG"; then
31475   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31476 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31477 else
31478   { echo "$as_me:$LINENO: result: no" >&5
31479 echo "${ECHO_T}no" >&6; }
31480 fi
31481
31482
31483 fi
31484 if test -z "$ac_cv_path_PKG_CONFIG"; then
31485   ac_pt_PKG_CONFIG=$PKG_CONFIG
31486   # Extract the first word of "pkg-config", so it can be a program name with args.
31487 set dummy pkg-config; ac_word=$2
31488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31490 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31491   echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493   case $ac_pt_PKG_CONFIG in
31494   [\\/]* | ?:[\\/]*)
31495   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31496   ;;
31497   *)
31498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31499 for as_dir in $PATH
31500 do
31501   IFS=$as_save_IFS
31502   test -z "$as_dir" && as_dir=.
31503   for ac_exec_ext in '' $ac_executable_extensions; do
31504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31505     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31507     break 2
31508   fi
31509 done
31510 done
31511 IFS=$as_save_IFS
31512
31513   ;;
31514 esac
31515 fi
31516 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31517 if test -n "$ac_pt_PKG_CONFIG"; then
31518   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31519 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31520 else
31521   { echo "$as_me:$LINENO: result: no" >&5
31522 echo "${ECHO_T}no" >&6; }
31523 fi
31524
31525   if test "x$ac_pt_PKG_CONFIG" = x; then
31526     PKG_CONFIG=""
31527   else
31528     case $cross_compiling:$ac_tool_warned in
31529 yes:)
31530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31531 whose name does not start with the host triplet.  If you think this
31532 configuration is useful to you, please write to autoconf@gnu.org." >&5
31533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31534 whose name does not start with the host triplet.  If you think this
31535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31536 ac_tool_warned=yes ;;
31537 esac
31538     PKG_CONFIG=$ac_pt_PKG_CONFIG
31539   fi
31540 else
31541   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31542 fi
31543
31544 fi
31545 if test -n "$PKG_CONFIG"; then
31546         _pkg_min_version=0.9.0
31547         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31548 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31549         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31550                 { echo "$as_me:$LINENO: result: yes" >&5
31551 echo "${ECHO_T}yes" >&6; }
31552         else
31553                 { echo "$as_me:$LINENO: result: no" >&5
31554 echo "${ECHO_T}no" >&6; }
31555                 PKG_CONFIG=""
31556         fi
31557
31558 fi
31559
31560
31561 pkg_failed=no
31562 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31563 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31564
31565 if test -n "$PKG_CONFIG"; then
31566     if test -n "$DIRECTFB_CFLAGS"; then
31567         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31568     else
31569         if test -n "$PKG_CONFIG" && \
31570     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31571   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31572   ac_status=$?
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); }; then
31575   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31576 else
31577   pkg_failed=yes
31578 fi
31579     fi
31580 else
31581         pkg_failed=untried
31582 fi
31583 if test -n "$PKG_CONFIG"; then
31584     if test -n "$DIRECTFB_LIBS"; then
31585         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31586     else
31587         if test -n "$PKG_CONFIG" && \
31588     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31589   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31590   ac_status=$?
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); }; then
31593   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31594 else
31595   pkg_failed=yes
31596 fi
31597     fi
31598 else
31599         pkg_failed=untried
31600 fi
31601
31602
31603
31604 if test $pkg_failed = yes; then
31605
31606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31607         _pkg_short_errors_supported=yes
31608 else
31609         _pkg_short_errors_supported=no
31610 fi
31611         if test $_pkg_short_errors_supported = yes; then
31612                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31613         else
31614                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31615         fi
31616         # Put the nasty error message in config.log where it belongs
31617         echo "$DIRECTFB_PKG_ERRORS" >&5
31618
31619
31620                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31621 echo "$as_me: error: DirectFB not found." >&2;}
31622    { (exit 1); exit 1; }; }
31623
31624
31625 elif test $pkg_failed = untried; then
31626
31627                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31628 echo "$as_me: error: DirectFB not found." >&2;}
31629    { (exit 1); exit 1; }; }
31630
31631
31632 else
31633         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31634         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31635         { echo "$as_me:$LINENO: result: yes" >&5
31636 echo "${ECHO_T}yes" >&6; }
31637
31638                            wxUSE_UNIVERSAL="yes"
31639                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31640                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31641                            TOOLKIT=DFB
31642                            GUIDIST=DFB_DIST
31643
31644 fi
31645     fi
31646
31647     if test "$wxUSE_MICROWIN" = 1; then
31648         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31649 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31650         if test "x$MICROWINDOWS" = x ; then
31651             { echo "$as_me:$LINENO: result: not found" >&5
31652 echo "${ECHO_T}not found" >&6; }
31653             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31654 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31655    { (exit 1); exit 1; }; }
31656         else
31657             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31658 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31659         fi
31660
31661         if test -f $MICROWINDOWS/lib/libmwin.a; then
31662             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31663 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31664         else
31665             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31666 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31667    { (exit 1); exit 1; }; }
31668         fi
31669
31670         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31671         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31672
31673         wxUSE_UNIVERSAL="yes"
31674
31675         AFMINSTALL=afminstall
31676         TOOLKIT=MICROWIN
31677         GUIDIST=MICROWIN_DIST
31678
31679         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31680     fi
31681
31682         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31683                                 { echo "$as_me:$LINENO: checking for X" >&5
31684 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31685
31686
31687 # Check whether --with-x was given.
31688 if test "${with_x+set}" = set; then
31689   withval=$with_x;
31690 fi
31691
31692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31693 if test "x$with_x" = xno; then
31694   # The user explicitly disabled X.
31695   have_x=disabled
31696 else
31697   case $x_includes,$x_libraries in #(
31698     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31699 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31700    { (exit 1); exit 1; }; };; #(
31701     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31702   echo $ECHO_N "(cached) $ECHO_C" >&6
31703 else
31704   # One or both of the vars are not set, and there is no cached value.
31705 ac_x_includes=no ac_x_libraries=no
31706 rm -f -r conftest.dir
31707 if mkdir conftest.dir; then
31708   cd conftest.dir
31709   cat >Imakefile <<'_ACEOF'
31710 incroot:
31711         @echo incroot='${INCROOT}'
31712 usrlibdir:
31713         @echo usrlibdir='${USRLIBDIR}'
31714 libdir:
31715         @echo libdir='${LIBDIR}'
31716 _ACEOF
31717   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31718     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31719     for ac_var in incroot usrlibdir libdir; do
31720       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31721     done
31722     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31723     for ac_extension in a so sl; do
31724       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31725          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31726         ac_im_usrlibdir=$ac_im_libdir; break
31727       fi
31728     done
31729     # Screen out bogus values from the imake configuration.  They are
31730     # bogus both because they are the default anyway, and because
31731     # using them would break gcc on systems where it needs fixed includes.
31732     case $ac_im_incroot in
31733         /usr/include) ac_x_includes= ;;
31734         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31735     esac
31736     case $ac_im_usrlibdir in
31737         /usr/lib | /lib) ;;
31738         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31739     esac
31740   fi
31741   cd ..
31742   rm -f -r conftest.dir
31743 fi
31744
31745 # Standard set of common directories for X headers.
31746 # Check X11 before X11Rn because it is often a symlink to the current release.
31747 ac_x_header_dirs='
31748 /usr/X11/include
31749 /usr/X11R6/include
31750 /usr/X11R5/include
31751 /usr/X11R4/include
31752
31753 /usr/include/X11
31754 /usr/include/X11R6
31755 /usr/include/X11R5
31756 /usr/include/X11R4
31757
31758 /usr/local/X11/include
31759 /usr/local/X11R6/include
31760 /usr/local/X11R5/include
31761 /usr/local/X11R4/include
31762
31763 /usr/local/include/X11
31764 /usr/local/include/X11R6
31765 /usr/local/include/X11R5
31766 /usr/local/include/X11R4
31767
31768 /usr/X386/include
31769 /usr/x386/include
31770 /usr/XFree86/include/X11
31771
31772 /usr/include
31773 /usr/local/include
31774 /usr/unsupported/include
31775 /usr/athena/include
31776 /usr/local/x11r5/include
31777 /usr/lpp/Xamples/include
31778
31779 /usr/openwin/include
31780 /usr/openwin/share/include'
31781
31782 if test "$ac_x_includes" = no; then
31783   # Guess where to find include files, by looking for Xlib.h.
31784   # First, try using that file with no special directory specified.
31785   cat >conftest.$ac_ext <<_ACEOF
31786 /* confdefs.h.  */
31787 _ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h.  */
31791 #include <X11/Xlib.h>
31792 _ACEOF
31793 if { (ac_try="$ac_cpp conftest.$ac_ext"
31794 case "(($ac_try" in
31795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31796   *) ac_try_echo=$ac_try;;
31797 esac
31798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31800   ac_status=$?
31801   grep -v '^ *+' conftest.er1 >conftest.err
31802   rm -f conftest.er1
31803   cat conftest.err >&5
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); } >/dev/null && {
31806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31807          test ! -s conftest.err
31808        }; then
31809   # We can compile using X headers with no special include directory.
31810 ac_x_includes=
31811 else
31812   echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815   for ac_dir in $ac_x_header_dirs; do
31816   if test -r "$ac_dir/X11/Xlib.h"; then
31817     ac_x_includes=$ac_dir
31818     break
31819   fi
31820 done
31821 fi
31822
31823 rm -f conftest.err conftest.$ac_ext
31824 fi # $ac_x_includes = no
31825
31826 if test "$ac_x_libraries" = no; then
31827   # Check for the libraries.
31828   # See if we find them without any special options.
31829   # Don't add to $LIBS permanently.
31830   ac_save_LIBS=$LIBS
31831   LIBS="-lX11 $LIBS"
31832   cat >conftest.$ac_ext <<_ACEOF
31833 /* confdefs.h.  */
31834 _ACEOF
31835 cat confdefs.h >>conftest.$ac_ext
31836 cat >>conftest.$ac_ext <<_ACEOF
31837 /* end confdefs.h.  */
31838 #include <X11/Xlib.h>
31839 int
31840 main ()
31841 {
31842 XrmInitialize ()
31843   ;
31844   return 0;
31845 }
31846 _ACEOF
31847 rm -f conftest.$ac_objext conftest$ac_exeext
31848 if { (ac_try="$ac_link"
31849 case "(($ac_try" in
31850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851   *) ac_try_echo=$ac_try;;
31852 esac
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854   (eval "$ac_link") 2>conftest.er1
31855   ac_status=$?
31856   grep -v '^ *+' conftest.er1 >conftest.err
31857   rm -f conftest.er1
31858   cat conftest.err >&5
31859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); } && {
31861          test -z "$ac_c_werror_flag" ||
31862          test ! -s conftest.err
31863        } && test -s conftest$ac_exeext &&
31864        $as_test_x conftest$ac_exeext; then
31865   LIBS=$ac_save_LIBS
31866 # We can link X programs with no special library path.
31867 ac_x_libraries=
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872         LIBS=$ac_save_LIBS
31873 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31874 do
31875   # Don't even attempt the hair of trying to link an X program!
31876   for ac_extension in a so sl; do
31877     if test -r "$ac_dir/libX11.$ac_extension"; then
31878       ac_x_libraries=$ac_dir
31879       break 2
31880     fi
31881   done
31882 done
31883 fi
31884
31885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31886       conftest$ac_exeext conftest.$ac_ext
31887 fi # $ac_x_libraries = no
31888
31889 case $ac_x_includes,$ac_x_libraries in #(
31890   no,* | *,no | *\'*)
31891     # Didn't find X, or a directory has "'" in its name.
31892     ac_cv_have_x="have_x=no";; #(
31893   *)
31894     # Record where we found X for the cache.
31895     ac_cv_have_x="have_x=yes\
31896         ac_x_includes='$ac_x_includes'\
31897         ac_x_libraries='$ac_x_libraries'"
31898 esac
31899 fi
31900 ;; #(
31901     *) have_x=yes;;
31902   esac
31903   eval "$ac_cv_have_x"
31904 fi # $with_x != no
31905
31906 if test "$have_x" != yes; then
31907   { echo "$as_me:$LINENO: result: $have_x" >&5
31908 echo "${ECHO_T}$have_x" >&6; }
31909   no_x=yes
31910 else
31911   # If each of the values was on the command line, it overrides each guess.
31912   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31913   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31914   # Update the cache value to reflect the command line values.
31915   ac_cv_have_x="have_x=yes\
31916         ac_x_includes='$x_includes'\
31917         ac_x_libraries='$x_libraries'"
31918   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31919 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31920 fi
31921
31922 if test "$no_x" = yes; then
31923   # Not all programs may use this symbol, but it does not hurt to define it.
31924
31925 cat >>confdefs.h <<\_ACEOF
31926 #define X_DISPLAY_MISSING 1
31927 _ACEOF
31928
31929   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31930 else
31931   if test -n "$x_includes"; then
31932     X_CFLAGS="$X_CFLAGS -I$x_includes"
31933   fi
31934
31935   # It would also be nice to do this for all -L options, not just this one.
31936   if test -n "$x_libraries"; then
31937     X_LIBS="$X_LIBS -L$x_libraries"
31938     # For Solaris; some versions of Sun CC require a space after -R and
31939     # others require no space.  Words are not sufficient . . . .
31940     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31941 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31942     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31943     ac_xsave_c_werror_flag=$ac_c_werror_flag
31944     ac_c_werror_flag=yes
31945     cat >conftest.$ac_ext <<_ACEOF
31946 /* confdefs.h.  */
31947 _ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h.  */
31951
31952 int
31953 main ()
31954 {
31955
31956   ;
31957   return 0;
31958 }
31959 _ACEOF
31960 rm -f conftest.$ac_objext conftest$ac_exeext
31961 if { (ac_try="$ac_link"
31962 case "(($ac_try" in
31963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964   *) ac_try_echo=$ac_try;;
31965 esac
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967   (eval "$ac_link") 2>conftest.er1
31968   ac_status=$?
31969   grep -v '^ *+' conftest.er1 >conftest.err
31970   rm -f conftest.er1
31971   cat conftest.err >&5
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); } && {
31974          test -z "$ac_c_werror_flag" ||
31975          test ! -s conftest.err
31976        } && test -s conftest$ac_exeext &&
31977        $as_test_x conftest$ac_exeext; then
31978   { echo "$as_me:$LINENO: result: no" >&5
31979 echo "${ECHO_T}no" >&6; }
31980        X_LIBS="$X_LIBS -R$x_libraries"
31981 else
31982   echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31984
31985         LIBS="$ac_xsave_LIBS -R $x_libraries"
31986        cat >conftest.$ac_ext <<_ACEOF
31987 /* confdefs.h.  */
31988 _ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h.  */
31992
31993 int
31994 main ()
31995 {
31996
31997   ;
31998   return 0;
31999 }
32000 _ACEOF
32001 rm -f conftest.$ac_objext conftest$ac_exeext
32002 if { (ac_try="$ac_link"
32003 case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_link") 2>conftest.er1
32009   ac_status=$?
32010   grep -v '^ *+' conftest.er1 >conftest.err
32011   rm -f conftest.er1
32012   cat conftest.err >&5
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); } && {
32015          test -z "$ac_c_werror_flag" ||
32016          test ! -s conftest.err
32017        } && test -s conftest$ac_exeext &&
32018        $as_test_x conftest$ac_exeext; then
32019   { echo "$as_me:$LINENO: result: yes" >&5
32020 echo "${ECHO_T}yes" >&6; }
32021           X_LIBS="$X_LIBS -R $x_libraries"
32022 else
32023   echo "$as_me: failed program was:" >&5
32024 sed 's/^/| /' conftest.$ac_ext >&5
32025
32026         { echo "$as_me:$LINENO: result: neither works" >&5
32027 echo "${ECHO_T}neither works" >&6; }
32028 fi
32029
32030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32031       conftest$ac_exeext conftest.$ac_ext
32032 fi
32033
32034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32035       conftest$ac_exeext conftest.$ac_ext
32036     ac_c_werror_flag=$ac_xsave_c_werror_flag
32037     LIBS=$ac_xsave_LIBS
32038   fi
32039
32040   # Check for system-dependent libraries X programs must link with.
32041   # Do this before checking for the system-independent R6 libraries
32042   # (-lICE), since we may need -lsocket or whatever for X linking.
32043
32044   if test "$ISC" = yes; then
32045     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32046   else
32047     # Martyn Johnson says this is needed for Ultrix, if the X
32048     # libraries were built with DECnet support.  And Karl Berry says
32049     # the Alpha needs dnet_stub (dnet does not exist).
32050     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32051     cat >conftest.$ac_ext <<_ACEOF
32052 /* confdefs.h.  */
32053 _ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h.  */
32057
32058 /* Override any GCC internal prototype to avoid an error.
32059    Use char because int might match the return type of a GCC
32060    builtin and then its argument prototype would still apply.  */
32061 #ifdef __cplusplus
32062 extern "C"
32063 #endif
32064 char XOpenDisplay ();
32065 int
32066 main ()
32067 {
32068 return XOpenDisplay ();
32069   ;
32070   return 0;
32071 }
32072 _ACEOF
32073 rm -f conftest.$ac_objext conftest$ac_exeext
32074 if { (ac_try="$ac_link"
32075 case "(($ac_try" in
32076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077   *) ac_try_echo=$ac_try;;
32078 esac
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080   (eval "$ac_link") 2>conftest.er1
32081   ac_status=$?
32082   grep -v '^ *+' conftest.er1 >conftest.err
32083   rm -f conftest.er1
32084   cat conftest.err >&5
32085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086   (exit $ac_status); } && {
32087          test -z "$ac_c_werror_flag" ||
32088          test ! -s conftest.err
32089        } && test -s conftest$ac_exeext &&
32090        $as_test_x conftest$ac_exeext; then
32091   :
32092 else
32093   echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32095
32096         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32097 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32098 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32099   echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32101   ac_check_lib_save_LIBS=$LIBS
32102 LIBS="-ldnet  $LIBS"
32103 cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109
32110 /* Override any GCC internal prototype to avoid an error.
32111    Use char because int might match the return type of a GCC
32112    builtin and then its argument prototype would still apply.  */
32113 #ifdef __cplusplus
32114 extern "C"
32115 #endif
32116 char dnet_ntoa ();
32117 int
32118 main ()
32119 {
32120 return dnet_ntoa ();
32121   ;
32122   return 0;
32123 }
32124 _ACEOF
32125 rm -f conftest.$ac_objext conftest$ac_exeext
32126 if { (ac_try="$ac_link"
32127 case "(($ac_try" in
32128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129   *) ac_try_echo=$ac_try;;
32130 esac
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132   (eval "$ac_link") 2>conftest.er1
32133   ac_status=$?
32134   grep -v '^ *+' conftest.er1 >conftest.err
32135   rm -f conftest.er1
32136   cat conftest.err >&5
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); } && {
32139          test -z "$ac_c_werror_flag" ||
32140          test ! -s conftest.err
32141        } && test -s conftest$ac_exeext &&
32142        $as_test_x conftest$ac_exeext; then
32143   ac_cv_lib_dnet_dnet_ntoa=yes
32144 else
32145   echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32147
32148         ac_cv_lib_dnet_dnet_ntoa=no
32149 fi
32150
32151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32152       conftest$ac_exeext conftest.$ac_ext
32153 LIBS=$ac_check_lib_save_LIBS
32154 fi
32155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32156 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32157 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32158   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32159 fi
32160
32161     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32162       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32163 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32164 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32165   echo $ECHO_N "(cached) $ECHO_C" >&6
32166 else
32167   ac_check_lib_save_LIBS=$LIBS
32168 LIBS="-ldnet_stub  $LIBS"
32169 cat >conftest.$ac_ext <<_ACEOF
32170 /* confdefs.h.  */
32171 _ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h.  */
32175
32176 /* Override any GCC internal prototype to avoid an error.
32177    Use char because int might match the return type of a GCC
32178    builtin and then its argument prototype would still apply.  */
32179 #ifdef __cplusplus
32180 extern "C"
32181 #endif
32182 char dnet_ntoa ();
32183 int
32184 main ()
32185 {
32186 return dnet_ntoa ();
32187   ;
32188   return 0;
32189 }
32190 _ACEOF
32191 rm -f conftest.$ac_objext conftest$ac_exeext
32192 if { (ac_try="$ac_link"
32193 case "(($ac_try" in
32194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195   *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198   (eval "$ac_link") 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } && {
32205          test -z "$ac_c_werror_flag" ||
32206          test ! -s conftest.err
32207        } && test -s conftest$ac_exeext &&
32208        $as_test_x conftest$ac_exeext; then
32209   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32210 else
32211   echo "$as_me: failed program was:" >&5
32212 sed 's/^/| /' conftest.$ac_ext >&5
32213
32214         ac_cv_lib_dnet_stub_dnet_ntoa=no
32215 fi
32216
32217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32218       conftest$ac_exeext conftest.$ac_ext
32219 LIBS=$ac_check_lib_save_LIBS
32220 fi
32221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32222 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32223 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32224   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32225 fi
32226
32227     fi
32228 fi
32229
32230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32231       conftest$ac_exeext conftest.$ac_ext
32232     LIBS="$ac_xsave_LIBS"
32233
32234     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32235     # to get the SysV transport functions.
32236     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32237     # needs -lnsl.
32238     # The nsl library prevents programs from opening the X display
32239     # on Irix 5.2, according to T.E. Dickey.
32240     # The functions gethostbyname, getservbyname, and inet_addr are
32241     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32242     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32243 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32244 if test "${ac_cv_func_gethostbyname+set}" = set; then
32245   echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247   cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h.  */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h.  */
32253 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32255 #define gethostbyname innocuous_gethostbyname
32256
32257 /* System header to define __stub macros and hopefully few prototypes,
32258     which can conflict with char gethostbyname (); below.
32259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260     <limits.h> exists even on freestanding compilers.  */
32261
32262 #ifdef __STDC__
32263 # include <limits.h>
32264 #else
32265 # include <assert.h>
32266 #endif
32267
32268 #undef gethostbyname
32269
32270 /* Override any GCC internal prototype to avoid an error.
32271    Use char because int might match the return type of a GCC
32272    builtin and then its argument prototype would still apply.  */
32273 #ifdef __cplusplus
32274 extern "C"
32275 #endif
32276 char gethostbyname ();
32277 /* The GNU C library defines this for functions which it implements
32278     to always fail with ENOSYS.  Some functions are actually named
32279     something starting with __ and the normal name is an alias.  */
32280 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32281 choke me
32282 #endif
32283
32284 int
32285 main ()
32286 {
32287 return gethostbyname ();
32288   ;
32289   return 0;
32290 }
32291 _ACEOF
32292 rm -f conftest.$ac_objext conftest$ac_exeext
32293 if { (ac_try="$ac_link"
32294 case "(($ac_try" in
32295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296   *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299   (eval "$ac_link") 2>conftest.er1
32300   ac_status=$?
32301   grep -v '^ *+' conftest.er1 >conftest.err
32302   rm -f conftest.er1
32303   cat conftest.err >&5
32304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); } && {
32306          test -z "$ac_c_werror_flag" ||
32307          test ! -s conftest.err
32308        } && test -s conftest$ac_exeext &&
32309        $as_test_x conftest$ac_exeext; then
32310   ac_cv_func_gethostbyname=yes
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315         ac_cv_func_gethostbyname=no
32316 fi
32317
32318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32319       conftest$ac_exeext conftest.$ac_ext
32320 fi
32321 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32322 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32323
32324     if test $ac_cv_func_gethostbyname = no; then
32325       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32326 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32327 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32328   echo $ECHO_N "(cached) $ECHO_C" >&6
32329 else
32330   ac_check_lib_save_LIBS=$LIBS
32331 LIBS="-lnsl  $LIBS"
32332 cat >conftest.$ac_ext <<_ACEOF
32333 /* confdefs.h.  */
32334 _ACEOF
32335 cat confdefs.h >>conftest.$ac_ext
32336 cat >>conftest.$ac_ext <<_ACEOF
32337 /* end confdefs.h.  */
32338
32339 /* Override any GCC internal prototype to avoid an error.
32340    Use char because int might match the return type of a GCC
32341    builtin and then its argument prototype would still apply.  */
32342 #ifdef __cplusplus
32343 extern "C"
32344 #endif
32345 char gethostbyname ();
32346 int
32347 main ()
32348 {
32349 return gethostbyname ();
32350   ;
32351   return 0;
32352 }
32353 _ACEOF
32354 rm -f conftest.$ac_objext conftest$ac_exeext
32355 if { (ac_try="$ac_link"
32356 case "(($ac_try" in
32357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358   *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361   (eval "$ac_link") 2>conftest.er1
32362   ac_status=$?
32363   grep -v '^ *+' conftest.er1 >conftest.err
32364   rm -f conftest.er1
32365   cat conftest.err >&5
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); } && {
32368          test -z "$ac_c_werror_flag" ||
32369          test ! -s conftest.err
32370        } && test -s conftest$ac_exeext &&
32371        $as_test_x conftest$ac_exeext; then
32372   ac_cv_lib_nsl_gethostbyname=yes
32373 else
32374   echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32376
32377         ac_cv_lib_nsl_gethostbyname=no
32378 fi
32379
32380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32381       conftest$ac_exeext conftest.$ac_ext
32382 LIBS=$ac_check_lib_save_LIBS
32383 fi
32384 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32385 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32386 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32387   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32388 fi
32389
32390       if test $ac_cv_lib_nsl_gethostbyname = no; then
32391         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32392 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32393 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32394   echo $ECHO_N "(cached) $ECHO_C" >&6
32395 else
32396   ac_check_lib_save_LIBS=$LIBS
32397 LIBS="-lbsd  $LIBS"
32398 cat >conftest.$ac_ext <<_ACEOF
32399 /* confdefs.h.  */
32400 _ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h.  */
32404
32405 /* Override any GCC internal prototype to avoid an error.
32406    Use char because int might match the return type of a GCC
32407    builtin and then its argument prototype would still apply.  */
32408 #ifdef __cplusplus
32409 extern "C"
32410 #endif
32411 char gethostbyname ();
32412 int
32413 main ()
32414 {
32415 return gethostbyname ();
32416   ;
32417   return 0;
32418 }
32419 _ACEOF
32420 rm -f conftest.$ac_objext conftest$ac_exeext
32421 if { (ac_try="$ac_link"
32422 case "(($ac_try" in
32423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424   *) ac_try_echo=$ac_try;;
32425 esac
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427   (eval "$ac_link") 2>conftest.er1
32428   ac_status=$?
32429   grep -v '^ *+' conftest.er1 >conftest.err
32430   rm -f conftest.er1
32431   cat conftest.err >&5
32432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433   (exit $ac_status); } && {
32434          test -z "$ac_c_werror_flag" ||
32435          test ! -s conftest.err
32436        } && test -s conftest$ac_exeext &&
32437        $as_test_x conftest$ac_exeext; then
32438   ac_cv_lib_bsd_gethostbyname=yes
32439 else
32440   echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32442
32443         ac_cv_lib_bsd_gethostbyname=no
32444 fi
32445
32446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32447       conftest$ac_exeext conftest.$ac_ext
32448 LIBS=$ac_check_lib_save_LIBS
32449 fi
32450 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32451 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32452 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32453   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32454 fi
32455
32456       fi
32457     fi
32458
32459     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32460     # socket/setsockopt and other routines are undefined under SCO ODT
32461     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32462     # on later versions), says Simon Leinen: it contains gethostby*
32463     # variants that don't use the name server (or something).  -lsocket
32464     # must be given before -lnsl if both are needed.  We assume that
32465     # if connect needs -lnsl, so does gethostbyname.
32466     { echo "$as_me:$LINENO: checking for connect" >&5
32467 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32468 if test "${ac_cv_func_connect+set}" = set; then
32469   echo $ECHO_N "(cached) $ECHO_C" >&6
32470 else
32471   cat >conftest.$ac_ext <<_ACEOF
32472 /* confdefs.h.  */
32473 _ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h.  */
32477 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32479 #define connect innocuous_connect
32480
32481 /* System header to define __stub macros and hopefully few prototypes,
32482     which can conflict with char connect (); below.
32483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32484     <limits.h> exists even on freestanding compilers.  */
32485
32486 #ifdef __STDC__
32487 # include <limits.h>
32488 #else
32489 # include <assert.h>
32490 #endif
32491
32492 #undef connect
32493
32494 /* Override any GCC internal prototype to avoid an error.
32495    Use char because int might match the return type of a GCC
32496    builtin and then its argument prototype would still apply.  */
32497 #ifdef __cplusplus
32498 extern "C"
32499 #endif
32500 char connect ();
32501 /* The GNU C library defines this for functions which it implements
32502     to always fail with ENOSYS.  Some functions are actually named
32503     something starting with __ and the normal name is an alias.  */
32504 #if defined __stub_connect || defined __stub___connect
32505 choke me
32506 #endif
32507
32508 int
32509 main ()
32510 {
32511 return connect ();
32512   ;
32513   return 0;
32514 }
32515 _ACEOF
32516 rm -f conftest.$ac_objext conftest$ac_exeext
32517 if { (ac_try="$ac_link"
32518 case "(($ac_try" in
32519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520   *) ac_try_echo=$ac_try;;
32521 esac
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523   (eval "$ac_link") 2>conftest.er1
32524   ac_status=$?
32525   grep -v '^ *+' conftest.er1 >conftest.err
32526   rm -f conftest.er1
32527   cat conftest.err >&5
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); } && {
32530          test -z "$ac_c_werror_flag" ||
32531          test ! -s conftest.err
32532        } && test -s conftest$ac_exeext &&
32533        $as_test_x conftest$ac_exeext; then
32534   ac_cv_func_connect=yes
32535 else
32536   echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32538
32539         ac_cv_func_connect=no
32540 fi
32541
32542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32543       conftest$ac_exeext conftest.$ac_ext
32544 fi
32545 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32546 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32547
32548     if test $ac_cv_func_connect = no; then
32549       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32550 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32551 if test "${ac_cv_lib_socket_connect+set}" = set; then
32552   echo $ECHO_N "(cached) $ECHO_C" >&6
32553 else
32554   ac_check_lib_save_LIBS=$LIBS
32555 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32556 cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562
32563 /* Override any GCC internal prototype to avoid an error.
32564    Use char because int might match the return type of a GCC
32565    builtin and then its argument prototype would still apply.  */
32566 #ifdef __cplusplus
32567 extern "C"
32568 #endif
32569 char connect ();
32570 int
32571 main ()
32572 {
32573 return connect ();
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest.$ac_objext conftest$ac_exeext
32579 if { (ac_try="$ac_link"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_link") 2>conftest.er1
32586   ac_status=$?
32587   grep -v '^ *+' conftest.er1 >conftest.err
32588   rm -f conftest.er1
32589   cat conftest.err >&5
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); } && {
32592          test -z "$ac_c_werror_flag" ||
32593          test ! -s conftest.err
32594        } && test -s conftest$ac_exeext &&
32595        $as_test_x conftest$ac_exeext; then
32596   ac_cv_lib_socket_connect=yes
32597 else
32598   echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601         ac_cv_lib_socket_connect=no
32602 fi
32603
32604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32605       conftest$ac_exeext conftest.$ac_ext
32606 LIBS=$ac_check_lib_save_LIBS
32607 fi
32608 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32609 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32610 if test $ac_cv_lib_socket_connect = yes; then
32611   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32612 fi
32613
32614     fi
32615
32616     # Guillermo Gomez says -lposix is necessary on A/UX.
32617     { echo "$as_me:$LINENO: checking for remove" >&5
32618 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32619 if test "${ac_cv_func_remove+set}" = set; then
32620   echo $ECHO_N "(cached) $ECHO_C" >&6
32621 else
32622   cat >conftest.$ac_ext <<_ACEOF
32623 /* confdefs.h.  */
32624 _ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h.  */
32628 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32630 #define remove innocuous_remove
32631
32632 /* System header to define __stub macros and hopefully few prototypes,
32633     which can conflict with char remove (); below.
32634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32635     <limits.h> exists even on freestanding compilers.  */
32636
32637 #ifdef __STDC__
32638 # include <limits.h>
32639 #else
32640 # include <assert.h>
32641 #endif
32642
32643 #undef remove
32644
32645 /* Override any GCC internal prototype to avoid an error.
32646    Use char because int might match the return type of a GCC
32647    builtin and then its argument prototype would still apply.  */
32648 #ifdef __cplusplus
32649 extern "C"
32650 #endif
32651 char remove ();
32652 /* The GNU C library defines this for functions which it implements
32653     to always fail with ENOSYS.  Some functions are actually named
32654     something starting with __ and the normal name is an alias.  */
32655 #if defined __stub_remove || defined __stub___remove
32656 choke me
32657 #endif
32658
32659 int
32660 main ()
32661 {
32662 return remove ();
32663   ;
32664   return 0;
32665 }
32666 _ACEOF
32667 rm -f conftest.$ac_objext conftest$ac_exeext
32668 if { (ac_try="$ac_link"
32669 case "(($ac_try" in
32670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671   *) ac_try_echo=$ac_try;;
32672 esac
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674   (eval "$ac_link") 2>conftest.er1
32675   ac_status=$?
32676   grep -v '^ *+' conftest.er1 >conftest.err
32677   rm -f conftest.er1
32678   cat conftest.err >&5
32679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); } && {
32681          test -z "$ac_c_werror_flag" ||
32682          test ! -s conftest.err
32683        } && test -s conftest$ac_exeext &&
32684        $as_test_x conftest$ac_exeext; then
32685   ac_cv_func_remove=yes
32686 else
32687   echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32689
32690         ac_cv_func_remove=no
32691 fi
32692
32693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32694       conftest$ac_exeext conftest.$ac_ext
32695 fi
32696 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32697 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32698
32699     if test $ac_cv_func_remove = no; then
32700       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32701 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32702 if test "${ac_cv_lib_posix_remove+set}" = set; then
32703   echo $ECHO_N "(cached) $ECHO_C" >&6
32704 else
32705   ac_check_lib_save_LIBS=$LIBS
32706 LIBS="-lposix  $LIBS"
32707 cat >conftest.$ac_ext <<_ACEOF
32708 /* confdefs.h.  */
32709 _ACEOF
32710 cat confdefs.h >>conftest.$ac_ext
32711 cat >>conftest.$ac_ext <<_ACEOF
32712 /* end confdefs.h.  */
32713
32714 /* Override any GCC internal prototype to avoid an error.
32715    Use char because int might match the return type of a GCC
32716    builtin and then its argument prototype would still apply.  */
32717 #ifdef __cplusplus
32718 extern "C"
32719 #endif
32720 char remove ();
32721 int
32722 main ()
32723 {
32724 return remove ();
32725   ;
32726   return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext conftest$ac_exeext
32730 if { (ac_try="$ac_link"
32731 case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_link") 2>conftest.er1
32737   ac_status=$?
32738   grep -v '^ *+' conftest.er1 >conftest.err
32739   rm -f conftest.er1
32740   cat conftest.err >&5
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); } && {
32743          test -z "$ac_c_werror_flag" ||
32744          test ! -s conftest.err
32745        } && test -s conftest$ac_exeext &&
32746        $as_test_x conftest$ac_exeext; then
32747   ac_cv_lib_posix_remove=yes
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752         ac_cv_lib_posix_remove=no
32753 fi
32754
32755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32756       conftest$ac_exeext conftest.$ac_ext
32757 LIBS=$ac_check_lib_save_LIBS
32758 fi
32759 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32760 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32761 if test $ac_cv_lib_posix_remove = yes; then
32762   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32763 fi
32764
32765     fi
32766
32767     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32768     { echo "$as_me:$LINENO: checking for shmat" >&5
32769 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32770 if test "${ac_cv_func_shmat+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   cat >conftest.$ac_ext <<_ACEOF
32774 /* confdefs.h.  */
32775 _ACEOF
32776 cat confdefs.h >>conftest.$ac_ext
32777 cat >>conftest.$ac_ext <<_ACEOF
32778 /* end confdefs.h.  */
32779 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32781 #define shmat innocuous_shmat
32782
32783 /* System header to define __stub macros and hopefully few prototypes,
32784     which can conflict with char shmat (); below.
32785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32786     <limits.h> exists even on freestanding compilers.  */
32787
32788 #ifdef __STDC__
32789 # include <limits.h>
32790 #else
32791 # include <assert.h>
32792 #endif
32793
32794 #undef shmat
32795
32796 /* Override any GCC internal prototype to avoid an error.
32797    Use char because int might match the return type of a GCC
32798    builtin and then its argument prototype would still apply.  */
32799 #ifdef __cplusplus
32800 extern "C"
32801 #endif
32802 char shmat ();
32803 /* The GNU C library defines this for functions which it implements
32804     to always fail with ENOSYS.  Some functions are actually named
32805     something starting with __ and the normal name is an alias.  */
32806 #if defined __stub_shmat || defined __stub___shmat
32807 choke me
32808 #endif
32809
32810 int
32811 main ()
32812 {
32813 return shmat ();
32814   ;
32815   return 0;
32816 }
32817 _ACEOF
32818 rm -f conftest.$ac_objext conftest$ac_exeext
32819 if { (ac_try="$ac_link"
32820 case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_link") 2>conftest.er1
32826   ac_status=$?
32827   grep -v '^ *+' conftest.er1 >conftest.err
32828   rm -f conftest.er1
32829   cat conftest.err >&5
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); } && {
32832          test -z "$ac_c_werror_flag" ||
32833          test ! -s conftest.err
32834        } && test -s conftest$ac_exeext &&
32835        $as_test_x conftest$ac_exeext; then
32836   ac_cv_func_shmat=yes
32837 else
32838   echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32840
32841         ac_cv_func_shmat=no
32842 fi
32843
32844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32845       conftest$ac_exeext conftest.$ac_ext
32846 fi
32847 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32848 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32849
32850     if test $ac_cv_func_shmat = no; then
32851       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32852 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32853 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32854   echo $ECHO_N "(cached) $ECHO_C" >&6
32855 else
32856   ac_check_lib_save_LIBS=$LIBS
32857 LIBS="-lipc  $LIBS"
32858 cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h.  */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h.  */
32864
32865 /* Override any GCC internal prototype to avoid an error.
32866    Use char because int might match the return type of a GCC
32867    builtin and then its argument prototype would still apply.  */
32868 #ifdef __cplusplus
32869 extern "C"
32870 #endif
32871 char shmat ();
32872 int
32873 main ()
32874 {
32875 return shmat ();
32876   ;
32877   return 0;
32878 }
32879 _ACEOF
32880 rm -f conftest.$ac_objext conftest$ac_exeext
32881 if { (ac_try="$ac_link"
32882 case "(($ac_try" in
32883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884   *) ac_try_echo=$ac_try;;
32885 esac
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887   (eval "$ac_link") 2>conftest.er1
32888   ac_status=$?
32889   grep -v '^ *+' conftest.er1 >conftest.err
32890   rm -f conftest.er1
32891   cat conftest.err >&5
32892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893   (exit $ac_status); } && {
32894          test -z "$ac_c_werror_flag" ||
32895          test ! -s conftest.err
32896        } && test -s conftest$ac_exeext &&
32897        $as_test_x conftest$ac_exeext; then
32898   ac_cv_lib_ipc_shmat=yes
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903         ac_cv_lib_ipc_shmat=no
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32907       conftest$ac_exeext conftest.$ac_ext
32908 LIBS=$ac_check_lib_save_LIBS
32909 fi
32910 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32911 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32912 if test $ac_cv_lib_ipc_shmat = yes; then
32913   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32914 fi
32915
32916     fi
32917   fi
32918
32919   # Check for libraries that X11R6 Xt/Xaw programs need.
32920   ac_save_LDFLAGS=$LDFLAGS
32921   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32922   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32923   # check for ICE first), but we must link in the order -lSM -lICE or
32924   # we get undefined symbols.  So assume we have SM if we have ICE.
32925   # These have to be linked with before -lX11, unlike the other
32926   # libraries we check for below, so use a different variable.
32927   # John Interrante, Karl Berry
32928   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32929 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32930 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32931   echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933   ac_check_lib_save_LIBS=$LIBS
32934 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32935 cat >conftest.$ac_ext <<_ACEOF
32936 /* confdefs.h.  */
32937 _ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h.  */
32941
32942 /* Override any GCC internal prototype to avoid an error.
32943    Use char because int might match the return type of a GCC
32944    builtin and then its argument prototype would still apply.  */
32945 #ifdef __cplusplus
32946 extern "C"
32947 #endif
32948 char IceConnectionNumber ();
32949 int
32950 main ()
32951 {
32952 return IceConnectionNumber ();
32953   ;
32954   return 0;
32955 }
32956 _ACEOF
32957 rm -f conftest.$ac_objext conftest$ac_exeext
32958 if { (ac_try="$ac_link"
32959 case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_link") 2>conftest.er1
32965   ac_status=$?
32966   grep -v '^ *+' conftest.er1 >conftest.err
32967   rm -f conftest.er1
32968   cat conftest.err >&5
32969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970   (exit $ac_status); } && {
32971          test -z "$ac_c_werror_flag" ||
32972          test ! -s conftest.err
32973        } && test -s conftest$ac_exeext &&
32974        $as_test_x conftest$ac_exeext; then
32975   ac_cv_lib_ICE_IceConnectionNumber=yes
32976 else
32977   echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32979
32980         ac_cv_lib_ICE_IceConnectionNumber=no
32981 fi
32982
32983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32984       conftest$ac_exeext conftest.$ac_ext
32985 LIBS=$ac_check_lib_save_LIBS
32986 fi
32987 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32988 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32989 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32990   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32991 fi
32992
32993   LDFLAGS=$ac_save_LDFLAGS
32994
32995 fi
32996
32997
32998         if test "$no_x" = "yes"; then
32999           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33000 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33001    { (exit 1); exit 1; }; }
33002         fi
33003
33004                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33005         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33006         AFMINSTALL=afminstall
33007         COMPILED_X_PROGRAM=0
33008
33009     fi
33010
33011     if test "$wxUSE_X11" = 1; then
33012         if test "$wxUSE_NANOX" = "yes"; then
33013             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33014 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33015             if test "x$MICROWIN" = x ; then
33016                 { echo "$as_me:$LINENO: result: not found" >&5
33017 echo "${ECHO_T}not found" >&6; }
33018                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33019 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33020    { (exit 1); exit 1; }; }
33021             else
33022                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33023 echo "${ECHO_T}$MICROWIN" >&6; }
33024                 cat >>confdefs.h <<\_ACEOF
33025 #define wxUSE_NANOX 1
33026 _ACEOF
33027
33028             fi
33029         fi
33030
33031         if test "$wxUSE_UNICODE" = "yes"; then
33032
33033
33034 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33035         if test -n "$ac_tool_prefix"; then
33036   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33037 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33040 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33041   echo $ECHO_N "(cached) $ECHO_C" >&6
33042 else
33043   case $PKG_CONFIG in
33044   [\\/]* | ?:[\\/]*)
33045   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33046   ;;
33047   *)
33048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33049 for as_dir in $PATH
33050 do
33051   IFS=$as_save_IFS
33052   test -z "$as_dir" && as_dir=.
33053   for ac_exec_ext in '' $ac_executable_extensions; do
33054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33055     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33057     break 2
33058   fi
33059 done
33060 done
33061 IFS=$as_save_IFS
33062
33063   ;;
33064 esac
33065 fi
33066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33067 if test -n "$PKG_CONFIG"; then
33068   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33069 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33070 else
33071   { echo "$as_me:$LINENO: result: no" >&5
33072 echo "${ECHO_T}no" >&6; }
33073 fi
33074
33075
33076 fi
33077 if test -z "$ac_cv_path_PKG_CONFIG"; then
33078   ac_pt_PKG_CONFIG=$PKG_CONFIG
33079   # Extract the first word of "pkg-config", so it can be a program name with args.
33080 set dummy pkg-config; ac_word=$2
33081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33083 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086   case $ac_pt_PKG_CONFIG in
33087   [\\/]* | ?:[\\/]*)
33088   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33089   ;;
33090   *)
33091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33092 for as_dir in $PATH
33093 do
33094   IFS=$as_save_IFS
33095   test -z "$as_dir" && as_dir=.
33096   for ac_exec_ext in '' $ac_executable_extensions; do
33097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33098     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33100     break 2
33101   fi
33102 done
33103 done
33104 IFS=$as_save_IFS
33105
33106   ;;
33107 esac
33108 fi
33109 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33110 if test -n "$ac_pt_PKG_CONFIG"; then
33111   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33112 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33113 else
33114   { echo "$as_me:$LINENO: result: no" >&5
33115 echo "${ECHO_T}no" >&6; }
33116 fi
33117
33118   if test "x$ac_pt_PKG_CONFIG" = x; then
33119     PKG_CONFIG=""
33120   else
33121     case $cross_compiling:$ac_tool_warned in
33122 yes:)
33123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33124 whose name does not start with the host triplet.  If you think this
33125 configuration is useful to you, please write to autoconf@gnu.org." >&5
33126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33127 whose name does not start with the host triplet.  If you think this
33128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33129 ac_tool_warned=yes ;;
33130 esac
33131     PKG_CONFIG=$ac_pt_PKG_CONFIG
33132   fi
33133 else
33134   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33135 fi
33136
33137 fi
33138 if test -n "$PKG_CONFIG"; then
33139         _pkg_min_version=0.9.0
33140         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33141 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33142         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33143                 { echo "$as_me:$LINENO: result: yes" >&5
33144 echo "${ECHO_T}yes" >&6; }
33145         else
33146                 { echo "$as_me:$LINENO: result: no" >&5
33147 echo "${ECHO_T}no" >&6; }
33148                 PKG_CONFIG=""
33149         fi
33150
33151 fi
33152
33153
33154 pkg_failed=no
33155 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33156 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33157
33158 if test -n "$PKG_CONFIG"; then
33159     if test -n "$PANGOX_CFLAGS"; then
33160         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33161     else
33162         if test -n "$PKG_CONFIG" && \
33163     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33164   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33165   ac_status=$?
33166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167   (exit $ac_status); }; then
33168   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33169 else
33170   pkg_failed=yes
33171 fi
33172     fi
33173 else
33174         pkg_failed=untried
33175 fi
33176 if test -n "$PKG_CONFIG"; then
33177     if test -n "$PANGOX_LIBS"; then
33178         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33179     else
33180         if test -n "$PKG_CONFIG" && \
33181     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33182   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; then
33186   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33187 else
33188   pkg_failed=yes
33189 fi
33190     fi
33191 else
33192         pkg_failed=untried
33193 fi
33194
33195
33196
33197 if test $pkg_failed = yes; then
33198
33199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33200         _pkg_short_errors_supported=yes
33201 else
33202         _pkg_short_errors_supported=no
33203 fi
33204         if test $_pkg_short_errors_supported = yes; then
33205                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33206         else
33207                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33208         fi
33209         # Put the nasty error message in config.log where it belongs
33210         echo "$PANGOX_PKG_ERRORS" >&5
33211
33212
33213                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33214 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33215    { (exit 1); exit 1; }; }
33216
33217
33218 elif test $pkg_failed = untried; then
33219
33220                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33221 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33222    { (exit 1); exit 1; }; }
33223
33224
33225 else
33226         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33227         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33228         { echo "$as_me:$LINENO: result: yes" >&5
33229 echo "${ECHO_T}yes" >&6; }
33230
33231                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33232                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33233                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33234
33235 fi
33236
33237 pkg_failed=no
33238 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33239 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33240
33241 if test -n "$PKG_CONFIG"; then
33242     if test -n "$PANGOFT2_CFLAGS"; then
33243         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33244     else
33245         if test -n "$PKG_CONFIG" && \
33246     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33247   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; then
33251   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33252 else
33253   pkg_failed=yes
33254 fi
33255     fi
33256 else
33257         pkg_failed=untried
33258 fi
33259 if test -n "$PKG_CONFIG"; then
33260     if test -n "$PANGOFT2_LIBS"; then
33261         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33262     else
33263         if test -n "$PKG_CONFIG" && \
33264     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33265   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33266   ac_status=$?
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); }; then
33269   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33270 else
33271   pkg_failed=yes
33272 fi
33273     fi
33274 else
33275         pkg_failed=untried
33276 fi
33277
33278
33279
33280 if test $pkg_failed = yes; then
33281
33282 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33283         _pkg_short_errors_supported=yes
33284 else
33285         _pkg_short_errors_supported=no
33286 fi
33287         if test $_pkg_short_errors_supported = yes; then
33288                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33289         else
33290                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33291         fi
33292         # Put the nasty error message in config.log where it belongs
33293         echo "$PANGOFT2_PKG_ERRORS" >&5
33294
33295
33296                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33297 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33298                     wxUSE_PRINTING_ARCHITECTURE="no"
33299
33300
33301 elif test $pkg_failed = untried; then
33302
33303                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33304 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33305                     wxUSE_PRINTING_ARCHITECTURE="no"
33306
33307
33308 else
33309         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33310         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33311         { echo "$as_me:$LINENO: result: yes" >&5
33312 echo "${ECHO_T}yes" >&6; }
33313
33314                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33315                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33316                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33317
33318 fi
33319
33320 pkg_failed=no
33321 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33322 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33323
33324 if test -n "$PKG_CONFIG"; then
33325     if test -n "$PANGOXFT_CFLAGS"; then
33326         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33327     else
33328         if test -n "$PKG_CONFIG" && \
33329     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33330   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33331   ac_status=$?
33332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333   (exit $ac_status); }; then
33334   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33335 else
33336   pkg_failed=yes
33337 fi
33338     fi
33339 else
33340         pkg_failed=untried
33341 fi
33342 if test -n "$PKG_CONFIG"; then
33343     if test -n "$PANGOXFT_LIBS"; then
33344         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33345     else
33346         if test -n "$PKG_CONFIG" && \
33347     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33348   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33349   ac_status=$?
33350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351   (exit $ac_status); }; then
33352   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33353 else
33354   pkg_failed=yes
33355 fi
33356     fi
33357 else
33358         pkg_failed=untried
33359 fi
33360
33361
33362
33363 if test $pkg_failed = yes; then
33364
33365 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33366         _pkg_short_errors_supported=yes
33367 else
33368         _pkg_short_errors_supported=no
33369 fi
33370         if test $_pkg_short_errors_supported = yes; then
33371                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33372         else
33373                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33374         fi
33375         # Put the nasty error message in config.log where it belongs
33376         echo "$PANGOXFT_PKG_ERRORS" >&5
33377
33378
33379                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33380 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33381
33382
33383 elif test $pkg_failed = untried; then
33384
33385                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33386 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33387
33388
33389 else
33390         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33391         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33392         { echo "$as_me:$LINENO: result: yes" >&5
33393 echo "${ECHO_T}yes" >&6; }
33394
33395                     cat >>confdefs.h <<\_ACEOF
33396 #define HAVE_PANGO_XFT 1
33397 _ACEOF
33398
33399                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33400                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33401                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33402
33403 fi
33404             save_LIBS="$LIBS"
33405             LIBS="$LIBS $PANGOX_LIBS"
33406
33407 for ac_func in pango_font_family_is_monospace
33408 do
33409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33413   echo $ECHO_N "(cached) $ECHO_C" >&6
33414 else
33415   cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33423 #define $ac_func innocuous_$ac_func
33424
33425 /* System header to define __stub macros and hopefully few prototypes,
33426     which can conflict with char $ac_func (); below.
33427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33428     <limits.h> exists even on freestanding compilers.  */
33429
33430 #ifdef __STDC__
33431 # include <limits.h>
33432 #else
33433 # include <assert.h>
33434 #endif
33435
33436 #undef $ac_func
33437
33438 /* Override any GCC internal prototype to avoid an error.
33439    Use char because int might match the return type of a GCC
33440    builtin and then its argument prototype would still apply.  */
33441 #ifdef __cplusplus
33442 extern "C"
33443 #endif
33444 char $ac_func ();
33445 /* The GNU C library defines this for functions which it implements
33446     to always fail with ENOSYS.  Some functions are actually named
33447     something starting with __ and the normal name is an alias.  */
33448 #if defined __stub_$ac_func || defined __stub___$ac_func
33449 choke me
33450 #endif
33451
33452 int
33453 main ()
33454 {
33455 return $ac_func ();
33456   ;
33457   return 0;
33458 }
33459 _ACEOF
33460 rm -f conftest.$ac_objext conftest$ac_exeext
33461 if { (ac_try="$ac_link"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_link") 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } && {
33474          test -z "$ac_c_werror_flag" ||
33475          test ! -s conftest.err
33476        } && test -s conftest$ac_exeext &&
33477        $as_test_x conftest$ac_exeext; then
33478   eval "$as_ac_var=yes"
33479 else
33480   echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         eval "$as_ac_var=no"
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33487       conftest$ac_exeext conftest.$ac_ext
33488 fi
33489 ac_res=`eval echo '${'$as_ac_var'}'`
33490                { echo "$as_me:$LINENO: result: $ac_res" >&5
33491 echo "${ECHO_T}$ac_res" >&6; }
33492 if test `eval echo '${'$as_ac_var'}'` = yes; then
33493   cat >>confdefs.h <<_ACEOF
33494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33495 _ACEOF
33496
33497 fi
33498 done
33499
33500             LIBS="$save_LIBS"
33501         fi
33502
33503         wxUSE_UNIVERSAL="yes"
33504
33505         if test "$wxUSE_NANOX" = "yes"; then
33506             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33507             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"
33508             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33509         else
33510             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33511         fi
33512
33513         TOOLKIT=X11
33514         GUIDIST=X11_DIST
33515     fi
33516
33517     if test "$wxUSE_MOTIF" = 1; then
33518         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33519 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33520
33521 ac_find_includes=
33522 for ac_dir in $SEARCH_INCLUDE /usr/include
33523   do
33524     if test -f "$ac_dir/Xm/Xm.h"; then
33525       ac_find_includes=$ac_dir
33526       break
33527     fi
33528   done
33529
33530         if test "$ac_find_includes" != "" ; then
33531             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33532 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33533
33534     if test "x$ac_find_includes" = "x/usr/include"; then
33535     ac_path_to_include=""
33536   else
33537     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33538     result=$?
33539     if test $result = 0; then
33540       ac_path_to_include=""
33541     else
33542       ac_path_to_include=" -I$ac_find_includes"
33543     fi
33544   fi
33545
33546             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33547         else
33548             save_CFLAGS=$CFLAGS
33549             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33550
33551             cat >conftest.$ac_ext <<_ACEOF
33552 /* confdefs.h.  */
33553 _ACEOF
33554 cat confdefs.h >>conftest.$ac_ext
33555 cat >>conftest.$ac_ext <<_ACEOF
33556 /* end confdefs.h.  */
33557
33558                     #include <Xm/Xm.h>
33559
33560 int
33561 main ()
33562 {
33563
33564                     int version;
33565                     version = xmUseVersion;
33566
33567   ;
33568   return 0;
33569 }
33570 _ACEOF
33571 rm -f conftest.$ac_objext
33572 if { (ac_try="$ac_compile"
33573 case "(($ac_try" in
33574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575   *) ac_try_echo=$ac_try;;
33576 esac
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578   (eval "$ac_compile") 2>conftest.er1
33579   ac_status=$?
33580   grep -v '^ *+' conftest.er1 >conftest.err
33581   rm -f conftest.er1
33582   cat conftest.err >&5
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); } && {
33585          test -z "$ac_c_werror_flag" ||
33586          test ! -s conftest.err
33587        } && test -s conftest.$ac_objext; then
33588
33589                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33590 echo "${ECHO_T}found in default search path" >&6; }
33591                     COMPILED_X_PROGRAM=1
33592
33593 else
33594   echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33596
33597
33598                     { echo "$as_me:$LINENO: result: no" >&5
33599 echo "${ECHO_T}no" >&6; }
33600                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33601 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33602    { (exit 1); exit 1; }; }
33603
33604
33605 fi
33606
33607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608
33609             CFLAGS=$save_CFLAGS
33610         fi
33611
33612
33613         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33614 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33615
33616   ac_find_libraries=
33617   for ac_dir in $SEARCH_LIB
33618   do
33619     for ac_extension in a so sl dylib dll.a; do
33620       if test -f "$ac_dir/libXm.$ac_extension"; then
33621         ac_find_libraries=$ac_dir
33622         break 2
33623       fi
33624     done
33625   done
33626
33627
33628         if test "x$ac_find_libraries" != "x" ; then
33629             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33630 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33631
33632
33633     if test "$ac_find_libraries" = "default location"; then
33634     ac_path_to_link=""
33635   else
33636     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33637     result=$?
33638     if test $result = 0; then
33639       ac_path_to_link=""
33640     else
33641       ac_path_to_link=" -L$ac_find_libraries"
33642     fi
33643   fi
33644
33645             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33646         else
33647                                                 save_CFLAGS=$CFLAGS
33648             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33649             save_LIBS="$LIBS"
33650             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33651
33652             cat >conftest.$ac_ext <<_ACEOF
33653 /* confdefs.h.  */
33654 _ACEOF
33655 cat confdefs.h >>conftest.$ac_ext
33656 cat >>conftest.$ac_ext <<_ACEOF
33657 /* end confdefs.h.  */
33658
33659                     #include <Xm/Xm.h>
33660
33661 int
33662 main ()
33663 {
33664
33665                     int version;
33666                     version = xmUseVersion;
33667
33668   ;
33669   return 0;
33670 }
33671 _ACEOF
33672 rm -f conftest.$ac_objext conftest$ac_exeext
33673 if { (ac_try="$ac_link"
33674 case "(($ac_try" in
33675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33676   *) ac_try_echo=$ac_try;;
33677 esac
33678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33679   (eval "$ac_link") 2>conftest.er1
33680   ac_status=$?
33681   grep -v '^ *+' conftest.er1 >conftest.err
33682   rm -f conftest.er1
33683   cat conftest.err >&5
33684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685   (exit $ac_status); } && {
33686          test -z "$ac_c_werror_flag" ||
33687          test ! -s conftest.err
33688        } && test -s conftest$ac_exeext &&
33689        $as_test_x conftest$ac_exeext; then
33690
33691                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33692 echo "${ECHO_T}found in default search path" >&6; }
33693                     COMPILED_X_PROGRAM=1
33694
33695 else
33696   echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699
33700                     { echo "$as_me:$LINENO: result: no" >&5
33701 echo "${ECHO_T}no" >&6; }
33702                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33703 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33704    { (exit 1); exit 1; }; }
33705
33706
33707 fi
33708
33709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33710       conftest$ac_exeext conftest.$ac_ext
33711
33712             CFLAGS=$save_CFLAGS
33713             LIBS="$save_LIBS"
33714         fi
33715
33716         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33717 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33718         libp_link=""
33719         libsm_ice_link=""
33720         libs_found=0
33721         for libp in "" " -lXp"; do
33722             if test "$libs_found" = 0; then
33723                 for libsm_ice in "" " -lSM -lICE"; do
33724                     if test "$libs_found" = 0; then
33725                         save_LIBS="$LIBS"
33726                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33727                         save_CFLAGS=$CFLAGS
33728                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33729
33730                         cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736
33737                                 #include <Xm/Xm.h>
33738                                 #include <Xm/List.h>
33739
33740 int
33741 main ()
33742 {
33743
33744                                 XmString string = NULL;
33745                                 Widget w = NULL;
33746                                 int position = 0;
33747                                 XmListAddItem(w, string, position);
33748
33749   ;
33750   return 0;
33751 }
33752 _ACEOF
33753 rm -f conftest.$ac_objext conftest$ac_exeext
33754 if { (ac_try="$ac_link"
33755 case "(($ac_try" in
33756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33757   *) ac_try_echo=$ac_try;;
33758 esac
33759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33760   (eval "$ac_link") 2>conftest.er1
33761   ac_status=$?
33762   grep -v '^ *+' conftest.er1 >conftest.err
33763   rm -f conftest.er1
33764   cat conftest.err >&5
33765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766   (exit $ac_status); } && {
33767          test -z "$ac_c_werror_flag" ||
33768          test ! -s conftest.err
33769        } && test -s conftest$ac_exeext &&
33770        $as_test_x conftest$ac_exeext; then
33771
33772                                 libp_link="$libp"
33773                                 libsm_ice_link="$libsm_ice"
33774                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33775 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33776                                 libs_found=1
33777
33778 else
33779   echo "$as_me: failed program was:" >&5
33780 sed 's/^/| /' conftest.$ac_ext >&5
33781
33782
33783
33784 fi
33785
33786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33787       conftest$ac_exeext conftest.$ac_ext
33788
33789                         LIBS="$save_LIBS"
33790                         CFLAGS=$save_CFLAGS
33791                     fi
33792                 done
33793             fi
33794         done
33795
33796         if test "$libs_found" = 0; then
33797             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33798 echo "${ECHO_T}can't find the right libraries" >&6; }
33799             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33800 echo "$as_me: error: can't link a simple motif program" >&2;}
33801    { (exit 1); exit 1; }; }
33802         fi
33803
33804                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33805 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33806 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33807   echo $ECHO_N "(cached) $ECHO_C" >&6
33808 else
33809   ac_check_lib_save_LIBS=$LIBS
33810 LIBS="-lSgm  $LIBS"
33811 cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h.  */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h.  */
33817
33818 /* Override any GCC internal prototype to avoid an error.
33819    Use char because int might match the return type of a GCC
33820    builtin and then its argument prototype would still apply.  */
33821 #ifdef __cplusplus
33822 extern "C"
33823 #endif
33824 char SgCreateList ();
33825 int
33826 main ()
33827 {
33828 return SgCreateList ();
33829   ;
33830   return 0;
33831 }
33832 _ACEOF
33833 rm -f conftest.$ac_objext conftest$ac_exeext
33834 if { (ac_try="$ac_link"
33835 case "(($ac_try" in
33836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837   *) ac_try_echo=$ac_try;;
33838 esac
33839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33840   (eval "$ac_link") 2>conftest.er1
33841   ac_status=$?
33842   grep -v '^ *+' conftest.er1 >conftest.err
33843   rm -f conftest.er1
33844   cat conftest.err >&5
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); } && {
33847          test -z "$ac_c_werror_flag" ||
33848          test ! -s conftest.err
33849        } && test -s conftest$ac_exeext &&
33850        $as_test_x conftest$ac_exeext; then
33851   ac_cv_lib_Sgm_SgCreateList=yes
33852 else
33853   echo "$as_me: failed program was:" >&5
33854 sed 's/^/| /' conftest.$ac_ext >&5
33855
33856         ac_cv_lib_Sgm_SgCreateList=no
33857 fi
33858
33859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33860       conftest$ac_exeext conftest.$ac_ext
33861 LIBS=$ac_check_lib_save_LIBS
33862 fi
33863 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33864 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33865 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33866   libsgm_link=" -lSgm"
33867 fi
33868
33869
33870         save_CFLAGS=$CFLAGS
33871         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33872
33873         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33874 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33875 if test "${wx_cv_lib_motif2+set}" = set; then
33876   echo $ECHO_N "(cached) $ECHO_C" >&6
33877 else
33878   cat >conftest.$ac_ext <<_ACEOF
33879 /* confdefs.h.  */
33880 _ACEOF
33881 cat confdefs.h >>conftest.$ac_ext
33882 cat >>conftest.$ac_ext <<_ACEOF
33883 /* end confdefs.h.  */
33884
33885                             #include <Xm/Xm.h>
33886
33887 int
33888 main ()
33889 {
33890
33891                             #if XmVersion < 2000
33892                             Not Motif 2
33893                             #endif
33894
33895   ;
33896   return 0;
33897 }
33898 _ACEOF
33899 rm -f conftest.$ac_objext
33900 if { (ac_try="$ac_compile"
33901 case "(($ac_try" in
33902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903   *) ac_try_echo=$ac_try;;
33904 esac
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906   (eval "$ac_compile") 2>conftest.er1
33907   ac_status=$?
33908   grep -v '^ *+' conftest.er1 >conftest.err
33909   rm -f conftest.er1
33910   cat conftest.err >&5
33911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912   (exit $ac_status); } && {
33913          test -z "$ac_c_werror_flag" ||
33914          test ! -s conftest.err
33915        } && test -s conftest.$ac_objext; then
33916   wx_cv_lib_motif2="yes"
33917 else
33918   echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33920
33921         wx_cv_lib_motif2="no"
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33925 fi
33926 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33927 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33928         if test "$wx_cv_lib_motif2" = "yes"; then
33929             cat >>confdefs.h <<\_ACEOF
33930 #define __WXMOTIF20__ 1
33931 _ACEOF
33932
33933         else
33934             cat >>confdefs.h <<\_ACEOF
33935 #define __WXMOTIF20__ 0
33936 _ACEOF
33937
33938         fi
33939
33940         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33941 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33942 if test "${wx_cv_lib_lesstif+set}" = set; then
33943   echo $ECHO_N "(cached) $ECHO_C" >&6
33944 else
33945   cat >conftest.$ac_ext <<_ACEOF
33946 /* confdefs.h.  */
33947 _ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h.  */
33951
33952                             #include <Xm/Xm.h>
33953
33954 int
33955 main ()
33956 {
33957
33958                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33959                             Not Lesstif
33960                             #endif
33961
33962   ;
33963   return 0;
33964 }
33965 _ACEOF
33966 rm -f conftest.$ac_objext
33967 if { (ac_try="$ac_compile"
33968 case "(($ac_try" in
33969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970   *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973   (eval "$ac_compile") 2>conftest.er1
33974   ac_status=$?
33975   grep -v '^ *+' conftest.er1 >conftest.err
33976   rm -f conftest.er1
33977   cat conftest.err >&5
33978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979   (exit $ac_status); } && {
33980          test -z "$ac_c_werror_flag" ||
33981          test ! -s conftest.err
33982        } && test -s conftest.$ac_objext; then
33983   wx_cv_lib_lesstif="yes"
33984 else
33985   echo "$as_me: failed program was:" >&5
33986 sed 's/^/| /' conftest.$ac_ext >&5
33987
33988         wx_cv_lib_lesstif="no"
33989 fi
33990
33991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33992
33993 fi
33994 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33995 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33996         if test "$wx_cv_lib_lesstif" = "yes"; then
33997             cat >>confdefs.h <<\_ACEOF
33998 #define __WXLESSTIF__ 1
33999 _ACEOF
34000
34001         else
34002             cat >>confdefs.h <<\_ACEOF
34003 #define __WXLESSTIF__ 0
34004 _ACEOF
34005
34006         fi
34007
34008         CFLAGS=$save_CFLAGS
34009
34010         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34011         TOOLKIT=MOTIF
34012         GUIDIST=MOTIF_DIST
34013     fi
34014
34015         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34016                 if test "$wxUSE_LIBXPM" = "sys"; then
34017             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34018 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34019
34020   ac_find_libraries=
34021   for ac_dir in $SEARCH_LIB
34022   do
34023     for ac_extension in a so sl dylib dll.a; do
34024       if test -f "$ac_dir/libXpm.$ac_extension"; then
34025         ac_find_libraries=$ac_dir
34026         break 2
34027       fi
34028     done
34029   done
34030
34031             if test "$ac_find_libraries" != "" ; then
34032
34033     if test "$ac_find_libraries" = "default location"; then
34034     ac_path_to_link=""
34035   else
34036     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34037     result=$?
34038     if test $result = 0; then
34039       ac_path_to_link=""
34040     else
34041       ac_path_to_link=" -L$ac_find_libraries"
34042     fi
34043   fi
34044
34045                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34046                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34047 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34048
34049                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34050 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34051 if test "${wx_cv_x11_xpm_h+set}" = set; then
34052   echo $ECHO_N "(cached) $ECHO_C" >&6
34053 else
34054
34055                         save_CFLAGS=$CFLAGS
34056                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34057
34058                         cat >conftest.$ac_ext <<_ACEOF
34059 /* confdefs.h.  */
34060 _ACEOF
34061 cat confdefs.h >>conftest.$ac_ext
34062 cat >>conftest.$ac_ext <<_ACEOF
34063 /* end confdefs.h.  */
34064
34065                                 #include <X11/xpm.h>
34066
34067 int
34068 main ()
34069 {
34070
34071                                 int version;
34072                                 version = XpmLibraryVersion();
34073
34074   ;
34075   return 0;
34076 }
34077 _ACEOF
34078 rm -f conftest.$ac_objext
34079 if { (ac_try="$ac_compile"
34080 case "(($ac_try" in
34081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34082   *) ac_try_echo=$ac_try;;
34083 esac
34084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34085   (eval "$ac_compile") 2>conftest.er1
34086   ac_status=$?
34087   grep -v '^ *+' conftest.er1 >conftest.err
34088   rm -f conftest.er1
34089   cat conftest.err >&5
34090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091   (exit $ac_status); } && {
34092          test -z "$ac_c_werror_flag" ||
34093          test ! -s conftest.err
34094        } && test -s conftest.$ac_objext; then
34095   wx_cv_x11_xpm_h=yes
34096 else
34097   echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34099
34100         wx_cv_x11_xpm_h=no
34101
34102 fi
34103
34104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34105
34106                         CFLAGS=$save_CFLAGS
34107
34108
34109 fi
34110 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34111 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34112
34113                 if test $wx_cv_x11_xpm_h = "yes"; then
34114                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34115                     cat >>confdefs.h <<\_ACEOF
34116 #define wxHAVE_LIB_XPM 1
34117 _ACEOF
34118
34119                 else
34120                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34121 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34122                 fi
34123             fi
34124
34125         fi
34126
34127                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34128 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34129 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34130   echo $ECHO_N "(cached) $ECHO_C" >&6
34131 else
34132   ac_check_lib_save_LIBS=$LIBS
34133 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34134 cat >conftest.$ac_ext <<_ACEOF
34135 /* confdefs.h.  */
34136 _ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h.  */
34140
34141 /* Override any GCC internal prototype to avoid an error.
34142    Use char because int might match the return type of a GCC
34143    builtin and then its argument prototype would still apply.  */
34144 #ifdef __cplusplus
34145 extern "C"
34146 #endif
34147 char XShapeQueryExtension ();
34148 int
34149 main ()
34150 {
34151 return XShapeQueryExtension ();
34152   ;
34153   return 0;
34154 }
34155 _ACEOF
34156 rm -f conftest.$ac_objext conftest$ac_exeext
34157 if { (ac_try="$ac_link"
34158 case "(($ac_try" in
34159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34160   *) ac_try_echo=$ac_try;;
34161 esac
34162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34163   (eval "$ac_link") 2>conftest.er1
34164   ac_status=$?
34165   grep -v '^ *+' conftest.er1 >conftest.err
34166   rm -f conftest.er1
34167   cat conftest.err >&5
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); } && {
34170          test -z "$ac_c_werror_flag" ||
34171          test ! -s conftest.err
34172        } && test -s conftest$ac_exeext &&
34173        $as_test_x conftest$ac_exeext; then
34174   ac_cv_lib_Xext_XShapeQueryExtension=yes
34175 else
34176   echo "$as_me: failed program was:" >&5
34177 sed 's/^/| /' conftest.$ac_ext >&5
34178
34179         ac_cv_lib_Xext_XShapeQueryExtension=no
34180 fi
34181
34182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34183       conftest$ac_exeext conftest.$ac_ext
34184 LIBS=$ac_check_lib_save_LIBS
34185 fi
34186 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34187 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34188 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34189
34190                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34191                       wxHAVE_XEXT_LIB=1
34192
34193 fi
34194
34195
34196         if test "$wxHAVE_XEXT_LIB" = 1; then
34197             save_CFLAGS="$CFLAGS"
34198             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34199
34200             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34201 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34202             cat >conftest.$ac_ext <<_ACEOF
34203 /* confdefs.h.  */
34204 _ACEOF
34205 cat confdefs.h >>conftest.$ac_ext
34206 cat >>conftest.$ac_ext <<_ACEOF
34207 /* end confdefs.h.  */
34208
34209                             #include <X11/Xlib.h>
34210                             #include <X11/extensions/shape.h>
34211
34212 int
34213 main ()
34214 {
34215
34216                             int dummy1, dummy2;
34217                             XShapeQueryExtension((Display*)NULL,
34218                                                  (int*)NULL, (int*)NULL);
34219
34220   ;
34221   return 0;
34222 }
34223 _ACEOF
34224 rm -f conftest.$ac_objext
34225 if { (ac_try="$ac_compile"
34226 case "(($ac_try" in
34227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34228   *) ac_try_echo=$ac_try;;
34229 esac
34230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34231   (eval "$ac_compile") 2>conftest.er1
34232   ac_status=$?
34233   grep -v '^ *+' conftest.er1 >conftest.err
34234   rm -f conftest.er1
34235   cat conftest.err >&5
34236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237   (exit $ac_status); } && {
34238          test -z "$ac_c_werror_flag" ||
34239          test ! -s conftest.err
34240        } && test -s conftest.$ac_objext; then
34241
34242                             cat >>confdefs.h <<\_ACEOF
34243 #define HAVE_XSHAPE 1
34244 _ACEOF
34245
34246                             { echo "$as_me:$LINENO: result: found" >&5
34247 echo "${ECHO_T}found" >&6; }
34248
34249 else
34250   echo "$as_me: failed program was:" >&5
34251 sed 's/^/| /' conftest.$ac_ext >&5
34252
34253
34254                             { echo "$as_me:$LINENO: result: not found" >&5
34255 echo "${ECHO_T}not found" >&6; }
34256
34257 fi
34258
34259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34260             CFLAGS="$save_CFLAGS"
34261
34262         fi
34263     fi
34264
34265     if test "$wxUSE_OSX_CARBON" = 1; then
34266         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34267 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34268         if test "$GCC" = yes; then
34269             { echo "$as_me:$LINENO: result: gcc" >&5
34270 echo "${ECHO_T}gcc" >&6; }
34271             CPPFLAGS_PASCAL="-fpascal-strings"
34272         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34273             { echo "$as_me:$LINENO: result: xlc" >&5
34274 echo "${ECHO_T}xlc" >&6; }
34275             CPPFLAGS_PASCAL="-qmacpstr"
34276         else
34277             { echo "$as_me:$LINENO: result: none" >&5
34278 echo "${ECHO_T}none" >&6; }
34279         fi
34280
34281         if test "x$wxUSE_UNIX" = "xyes"; then
34282             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34283         else
34284                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34285         fi
34286
34287         TOOLKIT=OSX_CARBON
34288                 GUIDIST=OSX_CARBON_DIST
34289                         WXBASEPORT="_carbon"
34290
34291                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34292     fi
34293
34294     if test "$wxUSE_OSX_COCOA" = 1; then
34295         TOOLKIT=OSX_COCOA
34296         GUIDIST=OSX_COCOA_DIST
34297
34298                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34299     fi
34300
34301     if test "$wxUSE_OSX_IPHONE" = 1; then
34302         TOOLKIT=OSX_IPHONE
34303     fi
34304
34305     if test "$wxUSE_OLD_COCOA" = 1; then
34306         TOOLKIT=COCOA
34307         GUIDIST=COCOA_DIST
34308     fi
34309
34310     if test "$wxUSE_PM" = 1; then
34311         TOOLKIT=PM
34312         GUIDIST=PM_DIST
34313         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34314 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34315 if test "${wx_cv_spbcdata+set}" = set; then
34316   echo $ECHO_N "(cached) $ECHO_C" >&6
34317 else
34318
34319                 cat >conftest.$ac_ext <<_ACEOF
34320 /* confdefs.h.  */
34321 _ACEOF
34322 cat confdefs.h >>conftest.$ac_ext
34323 cat >>conftest.$ac_ext <<_ACEOF
34324 /* end confdefs.h.  */
34325
34326                         #define INCL_PM
34327                         #include <os2.h>
34328
34329 int
34330 main ()
34331 {
34332
34333                         SPBCDATA test;
34334
34335   ;
34336   return 0;
34337 }
34338 _ACEOF
34339 rm -f conftest.$ac_objext
34340 if { (ac_try="$ac_compile"
34341 case "(($ac_try" in
34342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34343   *) ac_try_echo=$ac_try;;
34344 esac
34345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34346   (eval "$ac_compile") 2>conftest.er1
34347   ac_status=$?
34348   grep -v '^ *+' conftest.er1 >conftest.err
34349   rm -f conftest.er1
34350   cat conftest.err >&5
34351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352   (exit $ac_status); } && {
34353          test -z "$ac_c_werror_flag" ||
34354          test ! -s conftest.err
34355        } && test -s conftest.$ac_objext; then
34356   wx_cv_spbcdata=yes
34357 else
34358   echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34360
34361         wx_cv_spbcdata=no
34362
34363 fi
34364
34365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34366
34367
34368 fi
34369 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34370 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34371
34372         if test $wx_cv_spbcdata = "yes"; then
34373             cat >>confdefs.h <<\_ACEOF
34374 #define HAVE_SPBCDATA 1
34375 _ACEOF
34376
34377         fi
34378     fi
34379
34380         if test "$TOOLKIT" = "PM" ; then
34381         TOOLKIT_DIR="os2"
34382     else
34383         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34384     fi
34385
34386     if test "$wxUSE_UNIVERSAL" = "yes"; then
34387         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34388         WIDGET_SET=univ
34389     fi
34390
34391         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34392     DISTDIR="wx\$(TOOLKIT)"
34393 else
34394     USE_GUI=0
34395
34396             TOOLKIT_DIR="base"
34397
34398         if test "$USE_WIN32" = 1 ; then
34399                         TOOLKIT="MSW"
34400     fi
34401
34402         GUIDIST="BASE_DIST"
34403     DISTDIR="wxBase"
34404 fi
34405
34406
34407
34408 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34409     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34410         wxUSE_UNICODE_UTF8=yes
34411     elif test "$USE_OS2" = 1 ; then
34412                                 wxUSE_UNICODE_UTF8=yes
34413     else
34414         wxUSE_UNICODE_UTF8=no
34415     fi
34416 fi
34417
34418
34419 if test "$wxUSE_GUI" = "yes"; then
34420     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34421
34422 for ac_header in X11/Xlib.h
34423 do
34424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34428   echo $ECHO_N "(cached) $ECHO_C" >&6
34429 else
34430   cat >conftest.$ac_ext <<_ACEOF
34431 /* confdefs.h.  */
34432 _ACEOF
34433 cat confdefs.h >>conftest.$ac_ext
34434 cat >>conftest.$ac_ext <<_ACEOF
34435 /* end confdefs.h.  */
34436
34437
34438 #include <$ac_header>
34439 _ACEOF
34440 rm -f conftest.$ac_objext
34441 if { (ac_try="$ac_compile"
34442 case "(($ac_try" in
34443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444   *) ac_try_echo=$ac_try;;
34445 esac
34446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447   (eval "$ac_compile") 2>conftest.er1
34448   ac_status=$?
34449   grep -v '^ *+' conftest.er1 >conftest.err
34450   rm -f conftest.er1
34451   cat conftest.err >&5
34452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453   (exit $ac_status); } && {
34454          test -z "$ac_c_werror_flag" ||
34455          test ! -s conftest.err
34456        } && test -s conftest.$ac_objext; then
34457   eval "$as_ac_Header=yes"
34458 else
34459   echo "$as_me: failed program was:" >&5
34460 sed 's/^/| /' conftest.$ac_ext >&5
34461
34462         eval "$as_ac_Header=no"
34463 fi
34464
34465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34466 fi
34467 ac_res=`eval echo '${'$as_ac_Header'}'`
34468                { echo "$as_me:$LINENO: result: $ac_res" >&5
34469 echo "${ECHO_T}$ac_res" >&6; }
34470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34471   cat >>confdefs.h <<_ACEOF
34472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34473 _ACEOF
34474
34475 fi
34476
34477 done
34478
34479
34480 for ac_header in X11/XKBlib.h
34481 do
34482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34486   echo $ECHO_N "(cached) $ECHO_C" >&6
34487 else
34488   cat >conftest.$ac_ext <<_ACEOF
34489 /* confdefs.h.  */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h.  */
34494
34495                           #if HAVE_X11_XLIB_H
34496                             #include <X11/Xlib.h>
34497                           #endif
34498
34499
34500 #include <$ac_header>
34501 _ACEOF
34502 rm -f conftest.$ac_objext
34503 if { (ac_try="$ac_compile"
34504 case "(($ac_try" in
34505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34506   *) ac_try_echo=$ac_try;;
34507 esac
34508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34509   (eval "$ac_compile") 2>conftest.er1
34510   ac_status=$?
34511   grep -v '^ *+' conftest.er1 >conftest.err
34512   rm -f conftest.er1
34513   cat conftest.err >&5
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); } && {
34516          test -z "$ac_c_werror_flag" ||
34517          test ! -s conftest.err
34518        } && test -s conftest.$ac_objext; then
34519   eval "$as_ac_Header=yes"
34520 else
34521   echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34523
34524         eval "$as_ac_Header=no"
34525 fi
34526
34527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34528 fi
34529 ac_res=`eval echo '${'$as_ac_Header'}'`
34530                { echo "$as_me:$LINENO: result: $ac_res" >&5
34531 echo "${ECHO_T}$ac_res" >&6; }
34532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34533   cat >>confdefs.h <<_ACEOF
34534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34535 _ACEOF
34536
34537 fi
34538
34539 done
34540
34541     fi
34542 fi
34543
34544
34545
34546 USE_XINERAMA=0
34547 if test "$wxUSE_DISPLAY" = "yes"; then
34548         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34549         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34550 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34551
34552   ac_find_libraries=
34553   for ac_dir in $SEARCH_LIB
34554   do
34555     for ac_extension in a so sl dylib dll.a; do
34556       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34557         ac_find_libraries=$ac_dir
34558         break 2
34559       fi
34560     done
34561   done
34562
34563         if test "$ac_find_libraries" != "" ; then
34564
34565     if test "$ac_find_libraries" = "default location"; then
34566     ac_path_to_link=""
34567   else
34568     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34569     result=$?
34570     if test $result = 0; then
34571       ac_path_to_link=""
34572     else
34573       ac_path_to_link=" -L$ac_find_libraries"
34574     fi
34575   fi
34576
34577             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34578                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34579             fi
34580             USE_XINERAMA=1
34581             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34582             { echo "$as_me:$LINENO: result: yes" >&5
34583 echo "${ECHO_T}yes" >&6; }
34584         else
34585             { echo "$as_me:$LINENO: result: no" >&5
34586 echo "${ECHO_T}no" >&6; }
34587             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34588 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34589             wxUSE_DISPLAY="no"
34590         fi
34591     elif test "$wxUSE_MSW" = 1; then
34592                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34593 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34594 if test "${ac_cv_header_ddraw_h+set}" = set; then
34595   echo $ECHO_N "(cached) $ECHO_C" >&6
34596 else
34597   cat >conftest.$ac_ext <<_ACEOF
34598 /* confdefs.h.  */
34599 _ACEOF
34600 cat confdefs.h >>conftest.$ac_ext
34601 cat >>conftest.$ac_ext <<_ACEOF
34602 /* end confdefs.h.  */
34603 #include <windows.h>
34604
34605 #include <ddraw.h>
34606 _ACEOF
34607 rm -f conftest.$ac_objext
34608 if { (ac_try="$ac_compile"
34609 case "(($ac_try" in
34610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34611   *) ac_try_echo=$ac_try;;
34612 esac
34613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34614   (eval "$ac_compile") 2>conftest.er1
34615   ac_status=$?
34616   grep -v '^ *+' conftest.er1 >conftest.err
34617   rm -f conftest.er1
34618   cat conftest.err >&5
34619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620   (exit $ac_status); } && {
34621          test -z "$ac_c_werror_flag" ||
34622          test ! -s conftest.err
34623        } && test -s conftest.$ac_objext; then
34624   ac_cv_header_ddraw_h=yes
34625 else
34626   echo "$as_me: failed program was:" >&5
34627 sed 's/^/| /' conftest.$ac_ext >&5
34628
34629         ac_cv_header_ddraw_h=no
34630 fi
34631
34632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34633 fi
34634 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34635 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34636
34637
34638     fi
34639 fi
34640
34641 if test "$wxUSE_DISPLAY" = "yes"; then
34642         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34643         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34644 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34645
34646   ac_find_libraries=
34647   for ac_dir in $SEARCH_LIB
34648   do
34649     for ac_extension in a so sl dylib dll.a; do
34650       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34651         ac_find_libraries=$ac_dir
34652         break 2
34653       fi
34654     done
34655   done
34656
34657         if test "$ac_find_libraries" != "" ; then
34658             { echo "$as_me:$LINENO: result: yes" >&5
34659 echo "${ECHO_T}yes" >&6; }
34660
34661 for ac_header in X11/extensions/xf86vmode.h
34662 do
34663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34667   echo $ECHO_N "(cached) $ECHO_C" >&6
34668 else
34669   cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675
34676                                   #if HAVE_X11_XLIB_H
34677                                     #include <X11/Xlib.h>
34678                                   #endif
34679
34680
34681 #include <$ac_header>
34682 _ACEOF
34683 rm -f conftest.$ac_objext
34684 if { (ac_try="$ac_compile"
34685 case "(($ac_try" in
34686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34687   *) ac_try_echo=$ac_try;;
34688 esac
34689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34690   (eval "$ac_compile") 2>conftest.er1
34691   ac_status=$?
34692   grep -v '^ *+' conftest.er1 >conftest.err
34693   rm -f conftest.er1
34694   cat conftest.err >&5
34695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696   (exit $ac_status); } && {
34697          test -z "$ac_c_werror_flag" ||
34698          test ! -s conftest.err
34699        } && test -s conftest.$ac_objext; then
34700   eval "$as_ac_Header=yes"
34701 else
34702   echo "$as_me: failed program was:" >&5
34703 sed 's/^/| /' conftest.$ac_ext >&5
34704
34705         eval "$as_ac_Header=no"
34706 fi
34707
34708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34709 fi
34710 ac_res=`eval echo '${'$as_ac_Header'}'`
34711                { echo "$as_me:$LINENO: result: $ac_res" >&5
34712 echo "${ECHO_T}$ac_res" >&6; }
34713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34714   cat >>confdefs.h <<_ACEOF
34715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34716 _ACEOF
34717
34718                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34719
34720 fi
34721
34722 done
34723
34724         else
34725             { echo "$as_me:$LINENO: result: no" >&5
34726 echo "${ECHO_T}no" >&6; }
34727         fi
34728     fi
34729 fi
34730
34731 if test "$wxUSE_DETECT_SM" = "yes"; then
34732     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34733         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34734 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34735
34736   ac_find_libraries=
34737   for ac_dir in $SEARCH_LIB
34738   do
34739     for ac_extension in a so sl dylib dll.a; do
34740       if test -f "$ac_dir/libSM.$ac_extension"; then
34741         ac_find_libraries=$ac_dir
34742         break 2
34743       fi
34744     done
34745   done
34746
34747         if test "$ac_find_libraries" != "" ; then
34748
34749     if test "$ac_find_libraries" = "default location"; then
34750     ac_path_to_link=""
34751   else
34752     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34753     result=$?
34754     if test $result = 0; then
34755       ac_path_to_link=""
34756     else
34757       ac_path_to_link=" -L$ac_find_libraries"
34758     fi
34759   fi
34760
34761             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34762                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34763             fi
34764             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34765             { echo "$as_me:$LINENO: result: yes" >&5
34766 echo "${ECHO_T}yes" >&6; }
34767         else
34768             { echo "$as_me:$LINENO: result: no" >&5
34769 echo "${ECHO_T}no" >&6; }
34770             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34771 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34772             wxUSE_DETECT_SM="no"
34773         fi
34774     else
34775         wxUSE_DETECT_SM="no"
34776     fi
34777 fi
34778
34779
34780
34781 USE_OPENGL=0
34782 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34783
34784
34785     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34786         OPENGL_LIBS="-framework OpenGL -framework AGL"
34787     elif test "$wxUSE_MSW" = 1; then
34788         OPENGL_LIBS="-lopengl32 -lglu32"
34789     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34790
34791                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34792 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34793
34794 ac_find_includes=
34795 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34796   do
34797     if test -f "$ac_dir/GL/gl.h"; then
34798       ac_find_includes=$ac_dir
34799       break
34800     fi
34801   done
34802
34803         if test "$ac_find_includes" != "" ; then
34804             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34805 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34806
34807     if test "x$ac_find_includes" = "x/usr/include"; then
34808     ac_path_to_include=""
34809   else
34810     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34811     result=$?
34812     if test $result = 0; then
34813       ac_path_to_include=""
34814     else
34815       ac_path_to_include=" -I$ac_find_includes"
34816     fi
34817   fi
34818
34819             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34820         else
34821             { echo "$as_me:$LINENO: result: not found" >&5
34822 echo "${ECHO_T}not found" >&6; }
34823         fi
34824
34825         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34826 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34827 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34828   echo $ECHO_N "(cached) $ECHO_C" >&6
34829 else
34830   cat >conftest.$ac_ext <<_ACEOF
34831 /* confdefs.h.  */
34832 _ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h.  */
34836
34837
34838 #include <GL/gl.h>
34839 _ACEOF
34840 rm -f conftest.$ac_objext
34841 if { (ac_try="$ac_compile"
34842 case "(($ac_try" in
34843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34844   *) ac_try_echo=$ac_try;;
34845 esac
34846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34847   (eval "$ac_compile") 2>conftest.er1
34848   ac_status=$?
34849   grep -v '^ *+' conftest.er1 >conftest.err
34850   rm -f conftest.er1
34851   cat conftest.err >&5
34852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853   (exit $ac_status); } && {
34854          test -z "$ac_c_werror_flag" ||
34855          test ! -s conftest.err
34856        } && test -s conftest.$ac_objext; then
34857   ac_cv_header_GL_gl_h=yes
34858 else
34859   echo "$as_me: failed program was:" >&5
34860 sed 's/^/| /' conftest.$ac_ext >&5
34861
34862         ac_cv_header_GL_gl_h=no
34863 fi
34864
34865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34866 fi
34867 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34868 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34869 if test $ac_cv_header_GL_gl_h = yes; then
34870
34871             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34872 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34873 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34874   echo $ECHO_N "(cached) $ECHO_C" >&6
34875 else
34876   cat >conftest.$ac_ext <<_ACEOF
34877 /* confdefs.h.  */
34878 _ACEOF
34879 cat confdefs.h >>conftest.$ac_ext
34880 cat >>conftest.$ac_ext <<_ACEOF
34881 /* end confdefs.h.  */
34882
34883
34884 #include <GL/glu.h>
34885 _ACEOF
34886 rm -f conftest.$ac_objext
34887 if { (ac_try="$ac_compile"
34888 case "(($ac_try" in
34889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34890   *) ac_try_echo=$ac_try;;
34891 esac
34892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34893   (eval "$ac_compile") 2>conftest.er1
34894   ac_status=$?
34895   grep -v '^ *+' conftest.er1 >conftest.err
34896   rm -f conftest.er1
34897   cat conftest.err >&5
34898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899   (exit $ac_status); } && {
34900          test -z "$ac_c_werror_flag" ||
34901          test ! -s conftest.err
34902        } && test -s conftest.$ac_objext; then
34903   ac_cv_header_GL_glu_h=yes
34904 else
34905   echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.$ac_ext >&5
34907
34908         ac_cv_header_GL_glu_h=no
34909 fi
34910
34911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34912 fi
34913 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34914 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34915 if test $ac_cv_header_GL_glu_h = yes; then
34916
34917                 found_gl=0
34918
34919                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34920 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34921
34922   ac_find_libraries=
34923   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34924   do
34925     for ac_extension in a so sl dylib dll.a; do
34926       if test -f "$ac_dir/libGL.$ac_extension"; then
34927         ac_find_libraries=$ac_dir
34928         break 2
34929       fi
34930     done
34931   done
34932
34933                 if test "$ac_find_libraries" != "" ; then
34934                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34935 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34936
34937
34938     if test "$ac_find_libraries" = "default location"; then
34939     ac_path_to_link=""
34940   else
34941     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34942     result=$?
34943     if test $result = 0; then
34944       ac_path_to_link=""
34945     else
34946       ac_path_to_link=" -L$ac_find_libraries"
34947     fi
34948   fi
34949
34950                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34951                         LDFLAGS_GL="$ac_path_to_link"
34952                     fi
34953
34954                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34955 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34956
34957   ac_find_libraries=
34958   for ac_dir in $SEARCH_LIB
34959   do
34960     for ac_extension in a so sl dylib dll.a; do
34961       if test -f "$ac_dir/libGLU.$ac_extension"; then
34962         ac_find_libraries=$ac_dir
34963         break 2
34964       fi
34965     done
34966   done
34967
34968                     if test "$ac_find_libraries" != "" ; then
34969
34970     if test "$ac_find_libraries" = "default location"; then
34971     ac_path_to_link=""
34972   else
34973     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34974     result=$?
34975     if test $result = 0; then
34976       ac_path_to_link=""
34977     else
34978       ac_path_to_link=" -L$ac_find_libraries"
34979     fi
34980   fi
34981
34982                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34983                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34984                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34985                         fi
34986
34987                         found_gl=1
34988                         OPENGL_LIBS="-lGL -lGLU"
34989                         { echo "$as_me:$LINENO: result: yes" >&5
34990 echo "${ECHO_T}yes" >&6; }
34991                     else
34992                         { echo "$as_me:$LINENO: result: no" >&5
34993 echo "${ECHO_T}no" >&6; }
34994                     fi
34995                 else
34996                     { echo "$as_me:$LINENO: result: no" >&5
34997 echo "${ECHO_T}no" >&6; }
34998                 fi
34999
35000                 if test "$found_gl" != 1; then
35001                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35002 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35003
35004   ac_find_libraries=
35005   for ac_dir in $SEARCH_LIB
35006   do
35007     for ac_extension in a so sl dylib dll.a; do
35008       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35009         ac_find_libraries=$ac_dir
35010         break 2
35011       fi
35012     done
35013   done
35014
35015                     if test "$ac_find_libraries" != "" ; then
35016
35017     if test "$ac_find_libraries" = "default location"; then
35018     ac_path_to_link=""
35019   else
35020     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35021     result=$?
35022     if test $result = 0; then
35023       ac_path_to_link=""
35024     else
35025       ac_path_to_link=" -L$ac_find_libraries"
35026     fi
35027   fi
35028
35029                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35030                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35031                         { echo "$as_me:$LINENO: result: yes" >&5
35032 echo "${ECHO_T}yes" >&6; }
35033                     else
35034                         { echo "$as_me:$LINENO: result: no" >&5
35035 echo "${ECHO_T}no" >&6; }
35036                     fi
35037                 fi
35038
35039 fi
35040
35041
35042
35043 fi
35044
35045
35046
35047         if test "x$OPENGL_LIBS" = "x"; then
35048             if test "$wxUSE_OPENGL" = "yes"; then
35049                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35050 echo "$as_me: error: OpenGL libraries not available" >&2;}
35051    { (exit 1); exit 1; }; }
35052             else
35053                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
35054 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
35055                 wxUSE_OPENGL=no
35056                 USE_OPENGL=0
35057             fi
35058         fi
35059     else
35060         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35061 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35062         wxUSE_OPENGL="no"
35063     fi
35064
35065     if test "$wxUSE_OPENGL" = "auto"; then
35066                                 wxUSE_OPENGL=yes
35067     fi
35068
35069     if test "$wxUSE_OPENGL" = "yes"; then
35070         USE_OPENGL=1
35071         cat >>confdefs.h <<\_ACEOF
35072 #define wxUSE_OPENGL 1
35073 _ACEOF
35074
35075         cat >>confdefs.h <<\_ACEOF
35076 #define wxUSE_GLCANVAS 1
35077 _ACEOF
35078
35079         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35080     fi
35081 fi
35082
35083
35084 if test -n "$TOOLKIT" ; then
35085     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35086 fi
35087
35088
35089
35090 if test "$wxUSE_SHARED" = "yes"; then
35091     case "${host}" in
35092       *-pc-msdosdjgpp )
35093                 wxUSE_SHARED=no
35094         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35095 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35096       ;;
35097     esac
35098 fi
35099
35100 if test "$wxUSE_SHARED" = "yes"; then
35101
35102
35103     case "${host}" in
35104         *-*-cygwin* | *-*-mingw* )
35105                                                                                                 wx_cv_version_script=no
35106             ;;
35107
35108         *)
35109             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35110 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35111 if test "${wx_cv_version_script+set}" = set; then
35112   echo $ECHO_N "(cached) $ECHO_C" >&6
35113 else
35114
35115                 echo "VER_1 { *; };" >conftest.sym
35116                 echo "int main() { return 0; }" >conftest.cpp
35117
35118                 if { ac_try='
35119                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35120                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35122   (eval $ac_try) 2>&5
35123   ac_status=$?
35124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125   (exit $ac_status); }; } ; then
35126                   if test -s conftest.stderr ; then
35127                       wx_cv_version_script=no
35128                   else
35129                       wx_cv_version_script=yes
35130                   fi
35131                 else
35132                   wx_cv_version_script=no
35133                 fi
35134
35135                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35136                 then
35137                   echo "struct B { virtual ~B() { } }; \
35138                         struct D : public B { }; \
35139                         void F() { D d; }" > conftest.cpp
35140
35141                   if { ac_try='
35142                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35143                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145   (eval $ac_try) 2>&5
35146   ac_status=$?
35147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148   (exit $ac_status); }; } &&
35149                      { ac_try='
35150                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35151                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35153   (eval $ac_try) 2>&5
35154   ac_status=$?
35155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156   (exit $ac_status); }; }
35157                   then
35158                     if { ac_try='
35159                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35160                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162   (eval $ac_try) 2>&5
35163   ac_status=$?
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); }; }
35166                     then
35167                       wx_cv_version_script=yes
35168                     else
35169                       wx_cv_version_script=no
35170                     fi
35171                   fi
35172                 fi
35173
35174                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35175                 rm -f conftest1.output conftest2.output conftest3.output
35176
35177 fi
35178 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35179 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35180
35181             if test $wx_cv_version_script = yes ; then
35182                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35183             fi
35184             ;;
35185     esac
35186
35187
35188             if test "$wxUSE_VISIBILITY" != "no"; then
35189
35190
35191   if test -n "$GCC"; then
35192     CFLAGS_VISIBILITY="-fvisibility=hidden"
35193     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35194     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35195 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35196     if test "${wx_cv_cc_visibility+set}" = set; then
35197   echo $ECHO_N "(cached) $ECHO_C" >&6
35198 else
35199
35200       wx_save_CXXFLAGS="$CXXFLAGS"
35201       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35202       ac_ext=cpp
35203 ac_cpp='$CXXCPP $CPPFLAGS'
35204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35207
35208       cat >conftest.$ac_ext <<_ACEOF
35209 /* confdefs.h.  */
35210 _ACEOF
35211 cat confdefs.h >>conftest.$ac_ext
35212 cat >>conftest.$ac_ext <<_ACEOF
35213 /* end confdefs.h.  */
35214
35215          /* we need gcc >= 4.0, older versions with visibility support
35216             didn't have class visibility: */
35217          #if defined(__GNUC__) && __GNUC__ < 4
35218          error this gcc is too old;
35219          #endif
35220
35221          /* visibility only makes sense for ELF shared libs: */
35222          #if !defined(__ELF__) && !defined(__APPLE__)
35223          error this platform has no visibility;
35224          #endif
35225
35226          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35227          #if defined(__clang__)
35228          clang compiler is still broken w.r.t. visibility;
35229          #endif
35230
35231          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35232          extern __attribute__((__visibility__("default"))) int exportedvar;
35233          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35234          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35235          class __attribute__((__visibility__("default"))) Foo {
35236            Foo() {}
35237          };
35238
35239 int
35240 main ()
35241 {
35242
35243   ;
35244   return 0;
35245 }
35246 _ACEOF
35247 rm -f conftest.$ac_objext
35248 if { (ac_try="$ac_compile"
35249 case "(($ac_try" in
35250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35251   *) ac_try_echo=$ac_try;;
35252 esac
35253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35254   (eval "$ac_compile") 2>conftest.er1
35255   ac_status=$?
35256   grep -v '^ *+' conftest.er1 >conftest.err
35257   rm -f conftest.er1
35258   cat conftest.err >&5
35259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260   (exit $ac_status); } && {
35261          test -z "$ac_cxx_werror_flag" ||
35262          test ! -s conftest.err
35263        } && test -s conftest.$ac_objext; then
35264   wx_cv_cc_visibility=yes
35265 else
35266   echo "$as_me: failed program was:" >&5
35267 sed 's/^/| /' conftest.$ac_ext >&5
35268
35269         wx_cv_cc_visibility=no
35270 fi
35271
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273       ac_ext=c
35274 ac_cpp='$CPP $CPPFLAGS'
35275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35278
35279       CXXFLAGS="$wx_save_CXXFLAGS"
35280 fi
35281
35282     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35283 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35284     if test $wx_cv_cc_visibility = yes; then
35285                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35286 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35287       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35288   echo $ECHO_N "(cached) $ECHO_C" >&6
35289 else
35290
35291         wx_save_CXXFLAGS="$CXXFLAGS"
35292         wx_save_LDFLAGS="$LDFLAGS"
35293         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35294         LDFLAGS="$LDFLAGS -shared -fPIC"
35295         ac_ext=cpp
35296 ac_cpp='$CXXCPP $CPPFLAGS'
35297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35300
35301         cat >conftest.$ac_ext <<_ACEOF
35302 /* confdefs.h.  */
35303 _ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h.  */
35307
35308             #include <string>
35309
35310 int
35311 main ()
35312 {
35313
35314             std::string s("hello");
35315             return s.length();
35316
35317   ;
35318   return 0;
35319 }
35320 _ACEOF
35321 rm -f conftest.$ac_objext conftest$ac_exeext
35322 if { (ac_try="$ac_link"
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_link") 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_cxx_werror_flag" ||
35336          test ! -s conftest.err
35337        } && test -s conftest$ac_exeext &&
35338        $as_test_x conftest$ac_exeext; then
35339   wx_cv_cc_broken_libstdcxx_visibility=no
35340 else
35341   echo "$as_me: failed program was:" >&5
35342 sed 's/^/| /' conftest.$ac_ext >&5
35343
35344         wx_cv_cc_broken_libstdcxx_visibility=yes
35345 fi
35346
35347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35348       conftest$ac_exeext conftest.$ac_ext
35349         ac_ext=c
35350 ac_cpp='$CPP $CPPFLAGS'
35351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35354
35355         CXXFLAGS="$wx_save_CXXFLAGS"
35356         LDFLAGS="$wx_save_LDFLAGS"
35357 fi
35358
35359       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35360 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35361
35362       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35363         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35364 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35365         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35366   echo $ECHO_N "(cached) $ECHO_C" >&6
35367 else
35368
35369           ac_ext=cpp
35370 ac_cpp='$CXXCPP $CPPFLAGS'
35371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35374
35375           cat >conftest.$ac_ext <<_ACEOF
35376 /* confdefs.h.  */
35377 _ACEOF
35378 cat confdefs.h >>conftest.$ac_ext
35379 cat >>conftest.$ac_ext <<_ACEOF
35380 /* end confdefs.h.  */
35381
35382               #pragma GCC visibility push(default)
35383               #include <string>
35384               #pragma GCC visibility pop
35385
35386 int
35387 main ()
35388 {
35389
35390               std::string s("hello");
35391               return s.length();
35392
35393   ;
35394   return 0;
35395 }
35396 _ACEOF
35397 rm -f conftest.$ac_objext conftest$ac_exeext
35398 if { (ac_try="$ac_link"
35399 case "(($ac_try" in
35400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35401   *) ac_try_echo=$ac_try;;
35402 esac
35403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35404   (eval "$ac_link") 2>conftest.er1
35405   ac_status=$?
35406   grep -v '^ *+' conftest.er1 >conftest.err
35407   rm -f conftest.er1
35408   cat conftest.err >&5
35409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410   (exit $ac_status); } && {
35411          test -z "$ac_cxx_werror_flag" ||
35412          test ! -s conftest.err
35413        } && test -s conftest$ac_exeext &&
35414        $as_test_x conftest$ac_exeext; then
35415   wx_cv_cc_visibility_workaround=no
35416 else
35417   echo "$as_me: failed program was:" >&5
35418 sed 's/^/| /' conftest.$ac_ext >&5
35419
35420         wx_cv_cc_visibility_workaround=yes
35421 fi
35422
35423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35424       conftest$ac_exeext conftest.$ac_ext
35425           ac_ext=c
35426 ac_cpp='$CPP $CPPFLAGS'
35427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35430
35431
35432 fi
35433
35434         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35435 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35436
35437         if test $wx_cv_cc_visibility_workaround = no; then
35438                     wx_cv_cc_visibility=no
35439         fi
35440       fi
35441     fi
35442
35443     if test $wx_cv_cc_visibility = yes; then
35444       cat >>confdefs.h <<\_ACEOF
35445 #define HAVE_VISIBILITY 1
35446 _ACEOF
35447
35448       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35449         cat >>confdefs.h <<\_ACEOF
35450 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35451 _ACEOF
35452
35453       fi
35454     else
35455       CFLAGS_VISIBILITY=""
35456       CXXFLAGS_VISIBILITY=""
35457     fi
35458
35459
35460   fi
35461
35462     fi
35463
35464         if test "x$SUNCXX" = xyes; then
35465         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35466         WXCONFIG_RPATH="-R\$libdir"
35467     else
35468     case "${host}" in
35469       *-*-linux* | *-*-gnu* )
35470         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35471         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35472         ;;
35473
35474       *-*-solaris2* )
35475
35476                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35477
35478                         saveLdflags="$LDFLAGS"
35479         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35480         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35481 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35482         cat >conftest.$ac_ext <<_ACEOF
35483 /* confdefs.h.  */
35484 _ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h.  */
35488
35489 int
35490 main ()
35491 {
35492
35493   ;
35494   return 0;
35495 }
35496 _ACEOF
35497 rm -f conftest.$ac_objext conftest$ac_exeext
35498 if { (ac_try="$ac_link"
35499 case "(($ac_try" in
35500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501   *) ac_try_echo=$ac_try;;
35502 esac
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504   (eval "$ac_link") 2>conftest.er1
35505   ac_status=$?
35506   grep -v '^ *+' conftest.er1 >conftest.err
35507   rm -f conftest.er1
35508   cat conftest.err >&5
35509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510   (exit $ac_status); } && {
35511          test -z "$ac_c_werror_flag" ||
35512          test ! -s conftest.err
35513        } && test -s conftest$ac_exeext &&
35514        $as_test_x conftest$ac_exeext; then
35515
35516                 { echo "$as_me:$LINENO: result: yes" >&5
35517 echo "${ECHO_T}yes" >&6; }
35518                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35519                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35520
35521 else
35522   echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35524
35525
35526                 { echo "$as_me:$LINENO: result: no" >&5
35527 echo "${ECHO_T}no" >&6; }
35528                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35529 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35530                 LDFLAGS="$saveLdflags -Wl,-R,/"
35531                 cat >conftest.$ac_ext <<_ACEOF
35532 /* confdefs.h.  */
35533 _ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h.  */
35537
35538 int
35539 main ()
35540 {
35541
35542   ;
35543   return 0;
35544 }
35545 _ACEOF
35546 rm -f conftest.$ac_objext conftest$ac_exeext
35547 if { (ac_try="$ac_link"
35548 case "(($ac_try" in
35549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35550   *) ac_try_echo=$ac_try;;
35551 esac
35552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35553   (eval "$ac_link") 2>conftest.er1
35554   ac_status=$?
35555   grep -v '^ *+' conftest.er1 >conftest.err
35556   rm -f conftest.er1
35557   cat conftest.err >&5
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); } && {
35560          test -z "$ac_c_werror_flag" ||
35561          test ! -s conftest.err
35562        } && test -s conftest$ac_exeext &&
35563        $as_test_x conftest$ac_exeext; then
35564
35565                         { echo "$as_me:$LINENO: result: yes" >&5
35566 echo "${ECHO_T}yes" >&6; }
35567                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35568                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35569
35570 else
35571   echo "$as_me: failed program was:" >&5
35572 sed 's/^/| /' conftest.$ac_ext >&5
35573
35574
35575                         { echo "$as_me:$LINENO: result: no" >&5
35576 echo "${ECHO_T}no" >&6; }
35577
35578 fi
35579
35580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35581       conftest$ac_exeext conftest.$ac_ext
35582
35583 fi
35584
35585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35586       conftest$ac_exeext conftest.$ac_ext
35587         LDFLAGS="$saveLdflags"
35588       ;;
35589
35590       *-*-darwin* )
35591         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35592         if test "$install_name_tool" -a -x "$install_name_tool"; then
35593             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35594             cat <<EOF >change-install-names
35595 #!/bin/sh
35596 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35597 for i in \${libnames} ; do
35598     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35599     for dep in \${libnames} ; do
35600         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35601     done
35602 done
35603 EOF
35604             chmod +x change-install-names
35605             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35606         fi
35607
35608                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35609       ;;
35610
35611       *-*-cygwin* | *-*-mingw32* )
35612         ;;
35613
35614       *-*-hpux* )
35615         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35616         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35617         ;;
35618
35619     esac
35620     fi
35621
35622             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35623
35624     if test $wxUSE_RPATH = "no"; then
35625         SAMPLES_RPATH_FLAG=''
35626         DYLIB_PATH_POSTLINK=''
35627         WXCONFIG_RPATH=''
35628     fi
35629
35630     SHARED=1
35631
35632 else
35633
35634     config_linkage_component="-static"
35635     SHARED=0
35636
35637 fi
35638
35639
35640 UNICODE=0
35641 lib_unicode_suffix=
35642 WX_CHARTYPE="ansi"
35643 if test "$wxUSE_UNICODE" = "yes"; then
35644     lib_unicode_suffix=u
35645     WX_CHARTYPE="unicode"
35646     UNICODE=1
35647 fi
35648
35649 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35650 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35651
35652 DEBUG_INFO=0
35653 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35654     DEBUG_INFO=1
35655 fi
35656
35657 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35658
35659 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35660
35661 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35662
35663
35664 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35665     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35666 else
35667     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35668 fi
35669 if test "${TOOLKIT_DIR}" = "os2"; then
35670     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35671 else
35672     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35673 fi
35674
35675
35676
35677 if test "$wxUSE_OLD_COCOA" = 1; then
35678
35679     ac_ext=c
35680 ac_cpp='$CPP $CPPFLAGS'
35681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35684
35685 ac_ext=m
35686
35687     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35688 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35689     cat >conftest.$ac_ext <<_ACEOF
35690 /* confdefs.h.  */
35691 _ACEOF
35692 cat confdefs.h >>conftest.$ac_ext
35693 cat >>conftest.$ac_ext <<_ACEOF
35694 /* end confdefs.h.  */
35695 #include <AppKit/NSEvent.h>
35696 #include <CoreFoundation/CoreFoundation.h>
35697
35698 int
35699 main ()
35700 {
35701
35702   ;
35703   return 0;
35704 }
35705 _ACEOF
35706 rm -f conftest.$ac_objext
35707 if { (ac_try="$ac_compile"
35708 case "(($ac_try" in
35709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35710   *) ac_try_echo=$ac_try;;
35711 esac
35712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35713   (eval "$ac_compile") 2>conftest.er1
35714   ac_status=$?
35715   grep -v '^ *+' conftest.er1 >conftest.err
35716   rm -f conftest.er1
35717   cat conftest.err >&5
35718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719   (exit $ac_status); } && {
35720          test -z "$ac_c_werror_flag" ||
35721          test ! -s conftest.err
35722        } && test -s conftest.$ac_objext; then
35723   { echo "$as_me:$LINENO: result: no" >&5
35724 echo "${ECHO_T}no" >&6; }
35725 else
35726   echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35728
35729         { echo "$as_me:$LINENO: result: yes" >&5
35730 echo "${ECHO_T}yes" >&6; }
35731         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35732 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35733         cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h.  */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h.  */
35739 #define __Point__ 1
35740 #include <AppKit/NSEvent.h>
35741 #include <CoreFoundation/CoreFoundation.h>
35742
35743 int
35744 main ()
35745 {
35746
35747   ;
35748   return 0;
35749 }
35750 _ACEOF
35751 rm -f conftest.$ac_objext
35752 if { (ac_try="$ac_compile"
35753 case "(($ac_try" in
35754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35755   *) ac_try_echo=$ac_try;;
35756 esac
35757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35758   (eval "$ac_compile") 2>conftest.er1
35759   ac_status=$?
35760   grep -v '^ *+' conftest.er1 >conftest.err
35761   rm -f conftest.er1
35762   cat conftest.err >&5
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); } && {
35765          test -z "$ac_c_werror_flag" ||
35766          test ! -s conftest.err
35767        } && test -s conftest.$ac_objext; then
35768   { echo "$as_me:$LINENO: result: yes" >&5
35769 echo "${ECHO_T}yes" >&6; }
35770             cat >>confdefs.h <<\_ACEOF
35771 #define __Point__ 1
35772 _ACEOF
35773
35774
35775 else
35776   echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35778
35779         { { echo "$as_me:$LINENO: error: no
35780 See \`config.log' for more details." >&5
35781 echo "$as_me: error: no
35782 See \`config.log' for more details." >&2;}
35783    { (exit 1); exit 1; }; }
35784
35785 fi
35786
35787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35788
35789 fi
35790
35791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35792     ac_ext=c
35793 ac_cpp='$CPP $CPPFLAGS'
35794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35797
35798 fi
35799
35800
35801 { echo "$as_me:$LINENO: checking for mode_t" >&5
35802 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35803 if test "${ac_cv_type_mode_t+set}" = set; then
35804   echo $ECHO_N "(cached) $ECHO_C" >&6
35805 else
35806   cat >conftest.$ac_ext <<_ACEOF
35807 /* confdefs.h.  */
35808 _ACEOF
35809 cat confdefs.h >>conftest.$ac_ext
35810 cat >>conftest.$ac_ext <<_ACEOF
35811 /* end confdefs.h.  */
35812 $ac_includes_default
35813 typedef mode_t ac__type_new_;
35814 int
35815 main ()
35816 {
35817 if ((ac__type_new_ *) 0)
35818   return 0;
35819 if (sizeof (ac__type_new_))
35820   return 0;
35821   ;
35822   return 0;
35823 }
35824 _ACEOF
35825 rm -f conftest.$ac_objext
35826 if { (ac_try="$ac_compile"
35827 case "(($ac_try" in
35828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35829   *) ac_try_echo=$ac_try;;
35830 esac
35831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35832   (eval "$ac_compile") 2>conftest.er1
35833   ac_status=$?
35834   grep -v '^ *+' conftest.er1 >conftest.err
35835   rm -f conftest.er1
35836   cat conftest.err >&5
35837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838   (exit $ac_status); } && {
35839          test -z "$ac_c_werror_flag" ||
35840          test ! -s conftest.err
35841        } && test -s conftest.$ac_objext; then
35842   ac_cv_type_mode_t=yes
35843 else
35844   echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35846
35847         ac_cv_type_mode_t=no
35848 fi
35849
35850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35851 fi
35852 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35853 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35854 if test $ac_cv_type_mode_t = yes; then
35855   :
35856 else
35857
35858 cat >>confdefs.h <<_ACEOF
35859 #define mode_t int
35860 _ACEOF
35861
35862 fi
35863
35864 { echo "$as_me:$LINENO: checking for off_t" >&5
35865 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35866 if test "${ac_cv_type_off_t+set}" = set; then
35867   echo $ECHO_N "(cached) $ECHO_C" >&6
35868 else
35869   cat >conftest.$ac_ext <<_ACEOF
35870 /* confdefs.h.  */
35871 _ACEOF
35872 cat confdefs.h >>conftest.$ac_ext
35873 cat >>conftest.$ac_ext <<_ACEOF
35874 /* end confdefs.h.  */
35875 $ac_includes_default
35876 typedef off_t ac__type_new_;
35877 int
35878 main ()
35879 {
35880 if ((ac__type_new_ *) 0)
35881   return 0;
35882 if (sizeof (ac__type_new_))
35883   return 0;
35884   ;
35885   return 0;
35886 }
35887 _ACEOF
35888 rm -f conftest.$ac_objext
35889 if { (ac_try="$ac_compile"
35890 case "(($ac_try" in
35891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35892   *) ac_try_echo=$ac_try;;
35893 esac
35894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35895   (eval "$ac_compile") 2>conftest.er1
35896   ac_status=$?
35897   grep -v '^ *+' conftest.er1 >conftest.err
35898   rm -f conftest.er1
35899   cat conftest.err >&5
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); } && {
35902          test -z "$ac_c_werror_flag" ||
35903          test ! -s conftest.err
35904        } && test -s conftest.$ac_objext; then
35905   ac_cv_type_off_t=yes
35906 else
35907   echo "$as_me: failed program was:" >&5
35908 sed 's/^/| /' conftest.$ac_ext >&5
35909
35910         ac_cv_type_off_t=no
35911 fi
35912
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914 fi
35915 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35916 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35917 if test $ac_cv_type_off_t = yes; then
35918   :
35919 else
35920
35921 cat >>confdefs.h <<_ACEOF
35922 #define off_t long int
35923 _ACEOF
35924
35925 fi
35926
35927 { echo "$as_me:$LINENO: checking for pid_t" >&5
35928 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35929 if test "${ac_cv_type_pid_t+set}" = set; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 else
35932   cat >conftest.$ac_ext <<_ACEOF
35933 /* confdefs.h.  */
35934 _ACEOF
35935 cat confdefs.h >>conftest.$ac_ext
35936 cat >>conftest.$ac_ext <<_ACEOF
35937 /* end confdefs.h.  */
35938 $ac_includes_default
35939 typedef pid_t ac__type_new_;
35940 int
35941 main ()
35942 {
35943 if ((ac__type_new_ *) 0)
35944   return 0;
35945 if (sizeof (ac__type_new_))
35946   return 0;
35947   ;
35948   return 0;
35949 }
35950 _ACEOF
35951 rm -f conftest.$ac_objext
35952 if { (ac_try="$ac_compile"
35953 case "(($ac_try" in
35954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35955   *) ac_try_echo=$ac_try;;
35956 esac
35957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35958   (eval "$ac_compile") 2>conftest.er1
35959   ac_status=$?
35960   grep -v '^ *+' conftest.er1 >conftest.err
35961   rm -f conftest.er1
35962   cat conftest.err >&5
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); } && {
35965          test -z "$ac_c_werror_flag" ||
35966          test ! -s conftest.err
35967        } && test -s conftest.$ac_objext; then
35968   ac_cv_type_pid_t=yes
35969 else
35970   echo "$as_me: failed program was:" >&5
35971 sed 's/^/| /' conftest.$ac_ext >&5
35972
35973         ac_cv_type_pid_t=no
35974 fi
35975
35976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35977 fi
35978 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35979 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35980 if test $ac_cv_type_pid_t = yes; then
35981   :
35982 else
35983
35984 cat >>confdefs.h <<_ACEOF
35985 #define pid_t int
35986 _ACEOF
35987
35988 fi
35989
35990 { echo "$as_me:$LINENO: checking for size_t" >&5
35991 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35992 if test "${ac_cv_type_size_t+set}" = set; then
35993   echo $ECHO_N "(cached) $ECHO_C" >&6
35994 else
35995   cat >conftest.$ac_ext <<_ACEOF
35996 /* confdefs.h.  */
35997 _ACEOF
35998 cat confdefs.h >>conftest.$ac_ext
35999 cat >>conftest.$ac_ext <<_ACEOF
36000 /* end confdefs.h.  */
36001 $ac_includes_default
36002 typedef size_t ac__type_new_;
36003 int
36004 main ()
36005 {
36006 if ((ac__type_new_ *) 0)
36007   return 0;
36008 if (sizeof (ac__type_new_))
36009   return 0;
36010   ;
36011   return 0;
36012 }
36013 _ACEOF
36014 rm -f conftest.$ac_objext
36015 if { (ac_try="$ac_compile"
36016 case "(($ac_try" in
36017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36018   *) ac_try_echo=$ac_try;;
36019 esac
36020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36021   (eval "$ac_compile") 2>conftest.er1
36022   ac_status=$?
36023   grep -v '^ *+' conftest.er1 >conftest.err
36024   rm -f conftest.er1
36025   cat conftest.err >&5
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); } && {
36028          test -z "$ac_c_werror_flag" ||
36029          test ! -s conftest.err
36030        } && test -s conftest.$ac_objext; then
36031   ac_cv_type_size_t=yes
36032 else
36033   echo "$as_me: failed program was:" >&5
36034 sed 's/^/| /' conftest.$ac_ext >&5
36035
36036         ac_cv_type_size_t=no
36037 fi
36038
36039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36040 fi
36041 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36042 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36043 if test $ac_cv_type_size_t = yes; then
36044   :
36045 else
36046
36047 cat >>confdefs.h <<_ACEOF
36048 #define size_t unsigned int
36049 _ACEOF
36050
36051 fi
36052
36053
36054 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36055 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36056 if test "${ac_cv_type_ssize_t+set}" = set; then
36057   echo $ECHO_N "(cached) $ECHO_C" >&6
36058 else
36059   cat >conftest.$ac_ext <<_ACEOF
36060 /* confdefs.h.  */
36061 _ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h.  */
36065 $ac_includes_default
36066 typedef ssize_t ac__type_new_;
36067 int
36068 main ()
36069 {
36070 if ((ac__type_new_ *) 0)
36071   return 0;
36072 if (sizeof (ac__type_new_))
36073   return 0;
36074   ;
36075   return 0;
36076 }
36077 _ACEOF
36078 rm -f conftest.$ac_objext
36079 if { (ac_try="$ac_compile"
36080 case "(($ac_try" in
36081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082   *) ac_try_echo=$ac_try;;
36083 esac
36084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36085   (eval "$ac_compile") 2>conftest.er1
36086   ac_status=$?
36087   grep -v '^ *+' conftest.er1 >conftest.err
36088   rm -f conftest.er1
36089   cat conftest.err >&5
36090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091   (exit $ac_status); } && {
36092          test -z "$ac_c_werror_flag" ||
36093          test ! -s conftest.err
36094        } && test -s conftest.$ac_objext; then
36095   ac_cv_type_ssize_t=yes
36096 else
36097   echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36099
36100         ac_cv_type_ssize_t=no
36101 fi
36102
36103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36104 fi
36105 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36106 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36107 if test $ac_cv_type_ssize_t = yes; then
36108
36109 cat >>confdefs.h <<_ACEOF
36110 #define HAVE_SSIZE_T 1
36111 _ACEOF
36112
36113
36114 fi
36115
36116
36117 ac_ext=cpp
36118 ac_cpp='$CXXCPP $CPPFLAGS'
36119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36122  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36123 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36124 if test "${wx_cv_size_t_is_uint+set}" = set; then
36125   echo $ECHO_N "(cached) $ECHO_C" >&6
36126 else
36127
36128                             cat >conftest.$ac_ext <<_ACEOF
36129 /* confdefs.h.  */
36130 _ACEOF
36131 cat confdefs.h >>conftest.$ac_ext
36132 cat >>conftest.$ac_ext <<_ACEOF
36133 /* end confdefs.h.  */
36134 #include <stddef.h>
36135 int
36136 main ()
36137 {
36138
36139             return 0; }
36140
36141             struct Foo { void foo(size_t); void foo(unsigned int); };
36142
36143             int bar() {
36144
36145   ;
36146   return 0;
36147 }
36148 _ACEOF
36149 rm -f conftest.$ac_objext
36150 if { (ac_try="$ac_compile"
36151 case "(($ac_try" in
36152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153   *) ac_try_echo=$ac_try;;
36154 esac
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156   (eval "$ac_compile") 2>conftest.er1
36157   ac_status=$?
36158   grep -v '^ *+' conftest.er1 >conftest.err
36159   rm -f conftest.er1
36160   cat conftest.err >&5
36161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162   (exit $ac_status); } && {
36163          test -z "$ac_cxx_werror_flag" ||
36164          test ! -s conftest.err
36165        } && test -s conftest.$ac_objext; then
36166   wx_cv_size_t_is_uint=no
36167 else
36168   echo "$as_me: failed program was:" >&5
36169 sed 's/^/| /' conftest.$ac_ext >&5
36170
36171         wx_cv_size_t_is_uint=yes
36172
36173 fi
36174
36175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36176
36177
36178 fi
36179 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36180 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36181
36182 if test "$wx_cv_size_t_is_uint" = "yes"; then
36183     cat >>confdefs.h <<\_ACEOF
36184 #define wxSIZE_T_IS_UINT 1
36185 _ACEOF
36186
36187 else
36188     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36189 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36190 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36191   echo $ECHO_N "(cached) $ECHO_C" >&6
36192 else
36193   cat >conftest.$ac_ext <<_ACEOF
36194 /* confdefs.h.  */
36195 _ACEOF
36196 cat confdefs.h >>conftest.$ac_ext
36197 cat >>conftest.$ac_ext <<_ACEOF
36198 /* end confdefs.h.  */
36199 #include <stddef.h>
36200 int
36201 main ()
36202 {
36203
36204                 return 0; }
36205
36206                 struct Foo { void foo(size_t); void foo(unsigned long); };
36207
36208                 int bar() {
36209
36210   ;
36211   return 0;
36212 }
36213 _ACEOF
36214 rm -f conftest.$ac_objext
36215 if { (ac_try="$ac_compile"
36216 case "(($ac_try" in
36217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36218   *) ac_try_echo=$ac_try;;
36219 esac
36220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36221   (eval "$ac_compile") 2>conftest.er1
36222   ac_status=$?
36223   grep -v '^ *+' conftest.er1 >conftest.err
36224   rm -f conftest.er1
36225   cat conftest.err >&5
36226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227   (exit $ac_status); } && {
36228          test -z "$ac_cxx_werror_flag" ||
36229          test ! -s conftest.err
36230        } && test -s conftest.$ac_objext; then
36231   wx_cv_size_t_is_ulong=no
36232 else
36233   echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236         wx_cv_size_t_is_ulong=yes
36237
36238 fi
36239
36240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36241
36242 fi
36243 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36244 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36245
36246     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36247         cat >>confdefs.h <<\_ACEOF
36248 #define wxSIZE_T_IS_ULONG 1
36249 _ACEOF
36250
36251     fi
36252 fi
36253
36254 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36255 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36256 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36257   echo $ECHO_N "(cached) $ECHO_C" >&6
36258 else
36259   cat >conftest.$ac_ext <<_ACEOF
36260 /* confdefs.h.  */
36261 _ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h.  */
36265 #include <wchar.h>
36266 int
36267 main ()
36268 {
36269
36270             return 0; }
36271
36272             struct Foo { void foo(wchar_t);
36273                          void foo(unsigned short);
36274                          void foo(unsigned int);
36275                          void foo(unsigned long); };
36276
36277             int bar() {
36278
36279   ;
36280   return 0;
36281 }
36282 _ACEOF
36283 rm -f conftest.$ac_objext
36284 if { (ac_try="$ac_compile"
36285 case "(($ac_try" in
36286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287   *) ac_try_echo=$ac_try;;
36288 esac
36289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36290   (eval "$ac_compile") 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } && {
36297          test -z "$ac_cxx_werror_flag" ||
36298          test ! -s conftest.err
36299        } && test -s conftest.$ac_objext; then
36300   wx_cv_wchar_t_is_separate_type=yes
36301 else
36302   echo "$as_me: failed program was:" >&5
36303 sed 's/^/| /' conftest.$ac_ext >&5
36304
36305         wx_cv_wchar_t_is_separate_type=no
36306
36307 fi
36308
36309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36310
36311 fi
36312 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36313 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36314
36315 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36316     cat >>confdefs.h <<\_ACEOF
36317 #define wxWCHAR_T_IS_REAL_TYPE 1
36318 _ACEOF
36319
36320 else
36321     cat >>confdefs.h <<\_ACEOF
36322 #define wxWCHAR_T_IS_REAL_TYPE 0
36323 _ACEOF
36324
36325 fi
36326
36327 ac_ext=c
36328 ac_cpp='$CPP $CPPFLAGS'
36329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36332
36333
36334 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36335 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36336 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36337   echo $ECHO_N "(cached) $ECHO_C" >&6
36338 else
36339
36340         cat >conftest.$ac_ext <<_ACEOF
36341 /* confdefs.h.  */
36342 _ACEOF
36343 cat confdefs.h >>conftest.$ac_ext
36344 cat >>conftest.$ac_ext <<_ACEOF
36345 /* end confdefs.h.  */
36346 #include <pwd.h>
36347 int
36348 main ()
36349 {
36350
36351                 char *p;
36352                 struct passwd *pw;
36353                 p = pw->pw_gecos;
36354
36355   ;
36356   return 0;
36357 }
36358 _ACEOF
36359 rm -f conftest.$ac_objext
36360 if { (ac_try="$ac_compile"
36361 case "(($ac_try" in
36362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36363   *) ac_try_echo=$ac_try;;
36364 esac
36365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36366   (eval "$ac_compile") 2>conftest.er1
36367   ac_status=$?
36368   grep -v '^ *+' conftest.er1 >conftest.err
36369   rm -f conftest.er1
36370   cat conftest.err >&5
36371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372   (exit $ac_status); } && {
36373          test -z "$ac_c_werror_flag" ||
36374          test ! -s conftest.err
36375        } && test -s conftest.$ac_objext; then
36376
36377                 wx_cv_struct_pw_gecos=yes
36378
36379 else
36380   echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36382
36383
36384                 wx_cv_struct_pw_gecos=no
36385
36386
36387 fi
36388
36389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36390
36391
36392 fi
36393 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36394 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36395
36396 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36397     cat >>confdefs.h <<\_ACEOF
36398 #define HAVE_PW_GECOS 1
36399 _ACEOF
36400
36401 fi
36402
36403
36404 WCSLEN_FOUND=0
36405 WCHAR_LINK=
36406
36407 for ac_func in wcslen
36408 do
36409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36413   echo $ECHO_N "(cached) $ECHO_C" >&6
36414 else
36415   cat >conftest.$ac_ext <<_ACEOF
36416 /* confdefs.h.  */
36417 _ACEOF
36418 cat confdefs.h >>conftest.$ac_ext
36419 cat >>conftest.$ac_ext <<_ACEOF
36420 /* end confdefs.h.  */
36421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36423 #define $ac_func innocuous_$ac_func
36424
36425 /* System header to define __stub macros and hopefully few prototypes,
36426     which can conflict with char $ac_func (); below.
36427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36428     <limits.h> exists even on freestanding compilers.  */
36429
36430 #ifdef __STDC__
36431 # include <limits.h>
36432 #else
36433 # include <assert.h>
36434 #endif
36435
36436 #undef $ac_func
36437
36438 /* Override any GCC internal prototype to avoid an error.
36439    Use char because int might match the return type of a GCC
36440    builtin and then its argument prototype would still apply.  */
36441 #ifdef __cplusplus
36442 extern "C"
36443 #endif
36444 char $ac_func ();
36445 /* The GNU C library defines this for functions which it implements
36446     to always fail with ENOSYS.  Some functions are actually named
36447     something starting with __ and the normal name is an alias.  */
36448 #if defined __stub_$ac_func || defined __stub___$ac_func
36449 choke me
36450 #endif
36451
36452 int
36453 main ()
36454 {
36455 return $ac_func ();
36456   ;
36457   return 0;
36458 }
36459 _ACEOF
36460 rm -f conftest.$ac_objext conftest$ac_exeext
36461 if { (ac_try="$ac_link"
36462 case "(($ac_try" in
36463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36464   *) ac_try_echo=$ac_try;;
36465 esac
36466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36467   (eval "$ac_link") 2>conftest.er1
36468   ac_status=$?
36469   grep -v '^ *+' conftest.er1 >conftest.err
36470   rm -f conftest.er1
36471   cat conftest.err >&5
36472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473   (exit $ac_status); } && {
36474          test -z "$ac_c_werror_flag" ||
36475          test ! -s conftest.err
36476        } && test -s conftest$ac_exeext &&
36477        $as_test_x conftest$ac_exeext; then
36478   eval "$as_ac_var=yes"
36479 else
36480   echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36482
36483         eval "$as_ac_var=no"
36484 fi
36485
36486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36487       conftest$ac_exeext conftest.$ac_ext
36488 fi
36489 ac_res=`eval echo '${'$as_ac_var'}'`
36490                { echo "$as_me:$LINENO: result: $ac_res" >&5
36491 echo "${ECHO_T}$ac_res" >&6; }
36492 if test `eval echo '${'$as_ac_var'}'` = yes; then
36493   cat >>confdefs.h <<_ACEOF
36494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36495 _ACEOF
36496  WCSLEN_FOUND=1
36497 fi
36498 done
36499
36500
36501 if test "$WCSLEN_FOUND" = 0; then
36502     if test "$TOOLKIT" = "MSW"; then
36503         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36504 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36505 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36506   echo $ECHO_N "(cached) $ECHO_C" >&6
36507 else
36508   ac_check_lib_save_LIBS=$LIBS
36509 LIBS="-lmsvcrt  $LIBS"
36510 cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516
36517 /* Override any GCC internal prototype to avoid an error.
36518    Use char because int might match the return type of a GCC
36519    builtin and then its argument prototype would still apply.  */
36520 #ifdef __cplusplus
36521 extern "C"
36522 #endif
36523 char wcslen ();
36524 int
36525 main ()
36526 {
36527 return wcslen ();
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 rm -f conftest.$ac_objext conftest$ac_exeext
36533 if { (ac_try="$ac_link"
36534 case "(($ac_try" in
36535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536   *) ac_try_echo=$ac_try;;
36537 esac
36538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36539   (eval "$ac_link") 2>conftest.er1
36540   ac_status=$?
36541   grep -v '^ *+' conftest.er1 >conftest.err
36542   rm -f conftest.er1
36543   cat conftest.err >&5
36544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545   (exit $ac_status); } && {
36546          test -z "$ac_c_werror_flag" ||
36547          test ! -s conftest.err
36548        } && test -s conftest$ac_exeext &&
36549        $as_test_x conftest$ac_exeext; then
36550   ac_cv_lib_msvcrt_wcslen=yes
36551 else
36552   echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555         ac_cv_lib_msvcrt_wcslen=no
36556 fi
36557
36558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36559       conftest$ac_exeext conftest.$ac_ext
36560 LIBS=$ac_check_lib_save_LIBS
36561 fi
36562 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36563 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36564 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36565   WCHAR_OK=1
36566 fi
36567
36568     else
36569         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36570 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36571 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36572   echo $ECHO_N "(cached) $ECHO_C" >&6
36573 else
36574   ac_check_lib_save_LIBS=$LIBS
36575 LIBS="-lw  $LIBS"
36576 cat >conftest.$ac_ext <<_ACEOF
36577 /* confdefs.h.  */
36578 _ACEOF
36579 cat confdefs.h >>conftest.$ac_ext
36580 cat >>conftest.$ac_ext <<_ACEOF
36581 /* end confdefs.h.  */
36582
36583 /* Override any GCC internal prototype to avoid an error.
36584    Use char because int might match the return type of a GCC
36585    builtin and then its argument prototype would still apply.  */
36586 #ifdef __cplusplus
36587 extern "C"
36588 #endif
36589 char wcslen ();
36590 int
36591 main ()
36592 {
36593 return wcslen ();
36594   ;
36595   return 0;
36596 }
36597 _ACEOF
36598 rm -f conftest.$ac_objext conftest$ac_exeext
36599 if { (ac_try="$ac_link"
36600 case "(($ac_try" in
36601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36602   *) ac_try_echo=$ac_try;;
36603 esac
36604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36605   (eval "$ac_link") 2>conftest.er1
36606   ac_status=$?
36607   grep -v '^ *+' conftest.er1 >conftest.err
36608   rm -f conftest.er1
36609   cat conftest.err >&5
36610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); } && {
36612          test -z "$ac_c_werror_flag" ||
36613          test ! -s conftest.err
36614        } && test -s conftest$ac_exeext &&
36615        $as_test_x conftest$ac_exeext; then
36616   ac_cv_lib_w_wcslen=yes
36617 else
36618   echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36620
36621         ac_cv_lib_w_wcslen=no
36622 fi
36623
36624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36625       conftest$ac_exeext conftest.$ac_ext
36626 LIBS=$ac_check_lib_save_LIBS
36627 fi
36628 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36629 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36630 if test $ac_cv_lib_w_wcslen = yes; then
36631
36632                         WCHAR_LINK=" -lw"
36633                         WCSLEN_FOUND=1
36634
36635 fi
36636
36637     fi
36638 fi
36639
36640 if test "$WCSLEN_FOUND" = 1; then
36641     cat >>confdefs.h <<\_ACEOF
36642 #define HAVE_WCSLEN 1
36643 _ACEOF
36644
36645 fi
36646
36647
36648
36649
36650
36651
36652
36653 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36654 do
36655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36659   echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661   cat >conftest.$ac_ext <<_ACEOF
36662 /* confdefs.h.  */
36663 _ACEOF
36664 cat confdefs.h >>conftest.$ac_ext
36665 cat >>conftest.$ac_ext <<_ACEOF
36666 /* end confdefs.h.  */
36667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36669 #define $ac_func innocuous_$ac_func
36670
36671 /* System header to define __stub macros and hopefully few prototypes,
36672     which can conflict with char $ac_func (); below.
36673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36674     <limits.h> exists even on freestanding compilers.  */
36675
36676 #ifdef __STDC__
36677 # include <limits.h>
36678 #else
36679 # include <assert.h>
36680 #endif
36681
36682 #undef $ac_func
36683
36684 /* Override any GCC internal prototype to avoid an error.
36685    Use char because int might match the return type of a GCC
36686    builtin and then its argument prototype would still apply.  */
36687 #ifdef __cplusplus
36688 extern "C"
36689 #endif
36690 char $ac_func ();
36691 /* The GNU C library defines this for functions which it implements
36692     to always fail with ENOSYS.  Some functions are actually named
36693     something starting with __ and the normal name is an alias.  */
36694 #if defined __stub_$ac_func || defined __stub___$ac_func
36695 choke me
36696 #endif
36697
36698 int
36699 main ()
36700 {
36701 return $ac_func ();
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (ac_try="$ac_link"
36708 case "(($ac_try" in
36709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710   *) ac_try_echo=$ac_try;;
36711 esac
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713   (eval "$ac_link") 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } && {
36720          test -z "$ac_c_werror_flag" ||
36721          test ! -s conftest.err
36722        } && test -s conftest$ac_exeext &&
36723        $as_test_x conftest$ac_exeext; then
36724   eval "$as_ac_var=yes"
36725 else
36726   echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36728
36729         eval "$as_ac_var=no"
36730 fi
36731
36732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36733       conftest$ac_exeext conftest.$ac_ext
36734 fi
36735 ac_res=`eval echo '${'$as_ac_var'}'`
36736                { echo "$as_me:$LINENO: result: $ac_res" >&5
36737 echo "${ECHO_T}$ac_res" >&6; }
36738 if test `eval echo '${'$as_ac_var'}'` = yes; then
36739   cat >>confdefs.h <<_ACEOF
36740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36741 _ACEOF
36742
36743 fi
36744 done
36745
36746
36747 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36748     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36749 fi
36750
36751 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36752 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36753 if test "${ac_cv_type_mbstate_t+set}" = set; then
36754   echo $ECHO_N "(cached) $ECHO_C" >&6
36755 else
36756   cat >conftest.$ac_ext <<_ACEOF
36757 /* confdefs.h.  */
36758 _ACEOF
36759 cat confdefs.h >>conftest.$ac_ext
36760 cat >>conftest.$ac_ext <<_ACEOF
36761 /* end confdefs.h.  */
36762 #include <wchar.h>
36763
36764 typedef mbstate_t ac__type_new_;
36765 int
36766 main ()
36767 {
36768 if ((ac__type_new_ *) 0)
36769   return 0;
36770 if (sizeof (ac__type_new_))
36771   return 0;
36772   ;
36773   return 0;
36774 }
36775 _ACEOF
36776 rm -f conftest.$ac_objext
36777 if { (ac_try="$ac_compile"
36778 case "(($ac_try" in
36779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36780   *) ac_try_echo=$ac_try;;
36781 esac
36782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36783   (eval "$ac_compile") 2>conftest.er1
36784   ac_status=$?
36785   grep -v '^ *+' conftest.er1 >conftest.err
36786   rm -f conftest.er1
36787   cat conftest.err >&5
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); } && {
36790          test -z "$ac_c_werror_flag" ||
36791          test ! -s conftest.err
36792        } && test -s conftest.$ac_objext; then
36793   ac_cv_type_mbstate_t=yes
36794 else
36795   echo "$as_me: failed program was:" >&5
36796 sed 's/^/| /' conftest.$ac_ext >&5
36797
36798         ac_cv_type_mbstate_t=no
36799 fi
36800
36801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36802 fi
36803 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36804 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36805 if test $ac_cv_type_mbstate_t = yes; then
36806
36807 cat >>confdefs.h <<_ACEOF
36808 #define HAVE_MBSTATE_T 1
36809 _ACEOF
36810
36811
36812 for ac_func in wcsrtombs
36813 do
36814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36818   echo $ECHO_N "(cached) $ECHO_C" >&6
36819 else
36820   cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h.  */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h.  */
36826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36828 #define $ac_func innocuous_$ac_func
36829
36830 /* System header to define __stub macros and hopefully few prototypes,
36831     which can conflict with char $ac_func (); below.
36832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36833     <limits.h> exists even on freestanding compilers.  */
36834
36835 #ifdef __STDC__
36836 # include <limits.h>
36837 #else
36838 # include <assert.h>
36839 #endif
36840
36841 #undef $ac_func
36842
36843 /* Override any GCC internal prototype to avoid an error.
36844    Use char because int might match the return type of a GCC
36845    builtin and then its argument prototype would still apply.  */
36846 #ifdef __cplusplus
36847 extern "C"
36848 #endif
36849 char $ac_func ();
36850 /* The GNU C library defines this for functions which it implements
36851     to always fail with ENOSYS.  Some functions are actually named
36852     something starting with __ and the normal name is an alias.  */
36853 #if defined __stub_$ac_func || defined __stub___$ac_func
36854 choke me
36855 #endif
36856
36857 int
36858 main ()
36859 {
36860 return $ac_func ();
36861   ;
36862   return 0;
36863 }
36864 _ACEOF
36865 rm -f conftest.$ac_objext conftest$ac_exeext
36866 if { (ac_try="$ac_link"
36867 case "(($ac_try" in
36868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36869   *) ac_try_echo=$ac_try;;
36870 esac
36871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36872   (eval "$ac_link") 2>conftest.er1
36873   ac_status=$?
36874   grep -v '^ *+' conftest.er1 >conftest.err
36875   rm -f conftest.er1
36876   cat conftest.err >&5
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); } && {
36879          test -z "$ac_c_werror_flag" ||
36880          test ! -s conftest.err
36881        } && test -s conftest$ac_exeext &&
36882        $as_test_x conftest$ac_exeext; then
36883   eval "$as_ac_var=yes"
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888         eval "$as_ac_var=no"
36889 fi
36890
36891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36892       conftest$ac_exeext conftest.$ac_ext
36893 fi
36894 ac_res=`eval echo '${'$as_ac_var'}'`
36895                { echo "$as_me:$LINENO: result: $ac_res" >&5
36896 echo "${ECHO_T}$ac_res" >&6; }
36897 if test `eval echo '${'$as_ac_var'}'` = yes; then
36898   cat >>confdefs.h <<_ACEOF
36899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36900 _ACEOF
36901
36902 fi
36903 done
36904
36905 fi
36906
36907
36908
36909
36910
36911 for ac_func in snprintf vsnprintf vsscanf
36912 do
36913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36917   echo $ECHO_N "(cached) $ECHO_C" >&6
36918 else
36919   cat >conftest.$ac_ext <<_ACEOF
36920 /* confdefs.h.  */
36921 _ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h.  */
36925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36927 #define $ac_func innocuous_$ac_func
36928
36929 /* System header to define __stub macros and hopefully few prototypes,
36930     which can conflict with char $ac_func (); below.
36931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36932     <limits.h> exists even on freestanding compilers.  */
36933
36934 #ifdef __STDC__
36935 # include <limits.h>
36936 #else
36937 # include <assert.h>
36938 #endif
36939
36940 #undef $ac_func
36941
36942 /* Override any GCC internal prototype to avoid an error.
36943    Use char because int might match the return type of a GCC
36944    builtin and then its argument prototype would still apply.  */
36945 #ifdef __cplusplus
36946 extern "C"
36947 #endif
36948 char $ac_func ();
36949 /* The GNU C library defines this for functions which it implements
36950     to always fail with ENOSYS.  Some functions are actually named
36951     something starting with __ and the normal name is an alias.  */
36952 #if defined __stub_$ac_func || defined __stub___$ac_func
36953 choke me
36954 #endif
36955
36956 int
36957 main ()
36958 {
36959 return $ac_func ();
36960   ;
36961   return 0;
36962 }
36963 _ACEOF
36964 rm -f conftest.$ac_objext conftest$ac_exeext
36965 if { (ac_try="$ac_link"
36966 case "(($ac_try" in
36967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36968   *) ac_try_echo=$ac_try;;
36969 esac
36970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36971   (eval "$ac_link") 2>conftest.er1
36972   ac_status=$?
36973   grep -v '^ *+' conftest.er1 >conftest.err
36974   rm -f conftest.er1
36975   cat conftest.err >&5
36976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977   (exit $ac_status); } && {
36978          test -z "$ac_c_werror_flag" ||
36979          test ! -s conftest.err
36980        } && test -s conftest$ac_exeext &&
36981        $as_test_x conftest$ac_exeext; then
36982   eval "$as_ac_var=yes"
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987         eval "$as_ac_var=no"
36988 fi
36989
36990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36991       conftest$ac_exeext conftest.$ac_ext
36992 fi
36993 ac_res=`eval echo '${'$as_ac_var'}'`
36994                { echo "$as_me:$LINENO: result: $ac_res" >&5
36995 echo "${ECHO_T}$ac_res" >&6; }
36996 if test `eval echo '${'$as_ac_var'}'` = yes; then
36997   cat >>confdefs.h <<_ACEOF
36998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36999 _ACEOF
37000
37001 fi
37002 done
37003
37004
37005 ac_ext=cpp
37006 ac_cpp='$CXXCPP $CPPFLAGS'
37007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37010
37011 if test "$ac_cv_func_vsnprintf" = "yes"; then
37012         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37013 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37014 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37015   echo $ECHO_N "(cached) $ECHO_C" >&6
37016 else
37017
37018                                                             cat >conftest.$ac_ext <<_ACEOF
37019 /* confdefs.h.  */
37020 _ACEOF
37021 cat confdefs.h >>conftest.$ac_ext
37022 cat >>conftest.$ac_ext <<_ACEOF
37023 /* end confdefs.h.  */
37024
37025                     #include <stdio.h>
37026                     #include <stdarg.h>
37027                     #ifdef __MSL__
37028                     #if __MSL__ >= 0x6000
37029                     namespace std {}
37030                     using namespace std;
37031                     #endif
37032                     #endif
37033
37034 int
37035 main ()
37036 {
37037
37038                     char *buf;
37039                     va_list ap;
37040                     vsnprintf(buf, 10u, "%s", ap);
37041
37042   ;
37043   return 0;
37044 }
37045 _ACEOF
37046 rm -f conftest.$ac_objext
37047 if { (ac_try="$ac_compile"
37048 case "(($ac_try" in
37049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37050   *) ac_try_echo=$ac_try;;
37051 esac
37052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37053   (eval "$ac_compile") 2>conftest.er1
37054   ac_status=$?
37055   grep -v '^ *+' conftest.er1 >conftest.err
37056   rm -f conftest.er1
37057   cat conftest.err >&5
37058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37059   (exit $ac_status); } && {
37060          test -z "$ac_cxx_werror_flag" ||
37061          test ! -s conftest.err
37062        } && test -s conftest.$ac_objext; then
37063   wx_cv_func_vsnprintf_decl=yes
37064 else
37065   echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37067
37068         wx_cv_func_vsnprintf_decl=no
37069
37070 fi
37071
37072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37073
37074
37075 fi
37076 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37077 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37078
37079     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37080         cat >>confdefs.h <<\_ACEOF
37081 #define HAVE_VSNPRINTF_DECL 1
37082 _ACEOF
37083
37084
37085                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37086 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37087 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37088   echo $ECHO_N "(cached) $ECHO_C" >&6
37089 else
37090
37091                 cat >conftest.$ac_ext <<_ACEOF
37092 /* confdefs.h.  */
37093 _ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h.  */
37097
37098                         #include <stdio.h>
37099                         #include <stdarg.h>
37100                         #ifdef __MSL__
37101                         #if __MSL__ >= 0x6000
37102                         namespace std {}
37103                         using namespace std;
37104                         #endif
37105                         #endif
37106
37107 int
37108 main ()
37109 {
37110
37111                         char *buf;
37112                         va_list ap;
37113                         const char *fmt = "%s";
37114                         vsnprintf(buf, 10u, fmt, ap);
37115
37116   ;
37117   return 0;
37118 }
37119 _ACEOF
37120 rm -f conftest.$ac_objext
37121 if { (ac_try="$ac_compile"
37122 case "(($ac_try" in
37123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37124   *) ac_try_echo=$ac_try;;
37125 esac
37126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37127   (eval "$ac_compile") 2>conftest.er1
37128   ac_status=$?
37129   grep -v '^ *+' conftest.er1 >conftest.err
37130   rm -f conftest.er1
37131   cat conftest.err >&5
37132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133   (exit $ac_status); } && {
37134          test -z "$ac_cxx_werror_flag" ||
37135          test ! -s conftest.err
37136        } && test -s conftest.$ac_objext; then
37137   wx_cv_func_broken_vsnprintf_decl=no
37138 else
37139   echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37141
37142         wx_cv_func_broken_vsnprintf_decl=yes
37143
37144 fi
37145
37146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37147
37148
37149 fi
37150 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37151 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37152
37153         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37154             cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37156 _ACEOF
37157
37158         fi
37159     fi
37160 fi
37161
37162 if test "$ac_cv_func_snprintf" = "yes"; then
37163     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37164 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37165 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37166   echo $ECHO_N "(cached) $ECHO_C" >&6
37167 else
37168
37169             cat >conftest.$ac_ext <<_ACEOF
37170 /* confdefs.h.  */
37171 _ACEOF
37172 cat confdefs.h >>conftest.$ac_ext
37173 cat >>conftest.$ac_ext <<_ACEOF
37174 /* end confdefs.h.  */
37175
37176                     #include <stdio.h>
37177                     #include <stdarg.h>
37178                     #ifdef __MSL__
37179                     #if __MSL__ >= 0x6000
37180                     namespace std {}
37181                     using namespace std;
37182                     #endif
37183                     #endif
37184
37185 int
37186 main ()
37187 {
37188
37189                     char *buf;
37190                     snprintf(buf, 10u, "%s", "wx");
37191
37192   ;
37193   return 0;
37194 }
37195 _ACEOF
37196 rm -f conftest.$ac_objext
37197 if { (ac_try="$ac_compile"
37198 case "(($ac_try" in
37199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37200   *) ac_try_echo=$ac_try;;
37201 esac
37202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37203   (eval "$ac_compile") 2>conftest.er1
37204   ac_status=$?
37205   grep -v '^ *+' conftest.er1 >conftest.err
37206   rm -f conftest.er1
37207   cat conftest.err >&5
37208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209   (exit $ac_status); } && {
37210          test -z "$ac_cxx_werror_flag" ||
37211          test ! -s conftest.err
37212        } && test -s conftest.$ac_objext; then
37213   wx_cv_func_snprintf_decl=yes
37214 else
37215   echo "$as_me: failed program was:" >&5
37216 sed 's/^/| /' conftest.$ac_ext >&5
37217
37218         wx_cv_func_snprintf_decl=no
37219
37220 fi
37221
37222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37223
37224
37225 fi
37226 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37227 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37228
37229     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37230         cat >>confdefs.h <<\_ACEOF
37231 #define HAVE_SNPRINTF_DECL 1
37232 _ACEOF
37233
37234     fi
37235
37236     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37237
37238                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37239 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37240 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37241   echo $ECHO_N "(cached) $ECHO_C" >&6
37242 else
37243
37244                 if test "$cross_compiling" = yes; then
37245
37246                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37247 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37248 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37249 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37250                         wx_cv_func_snprintf_pos_params=no
37251
37252
37253 else
37254   cat >conftest.$ac_ext <<_ACEOF
37255 /* confdefs.h.  */
37256 _ACEOF
37257 cat confdefs.h >>conftest.$ac_ext
37258 cat >>conftest.$ac_ext <<_ACEOF
37259 /* end confdefs.h.  */
37260
37261                         #include <stdio.h>
37262
37263                         int main (void)
37264                         {
37265                             char buffer[128];
37266                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37267                             if (strcmp ("2 3 1", buffer) == 0)
37268                                 exit (0);
37269                             exit (1);
37270                         }
37271
37272 _ACEOF
37273 rm -f conftest$ac_exeext
37274 if { (ac_try="$ac_link"
37275 case "(($ac_try" in
37276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37277   *) ac_try_echo=$ac_try;;
37278 esac
37279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37280   (eval "$ac_link") 2>&5
37281   ac_status=$?
37282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37284   { (case "(($ac_try" in
37285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37286   *) ac_try_echo=$ac_try;;
37287 esac
37288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37289   (eval "$ac_try") 2>&5
37290   ac_status=$?
37291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292   (exit $ac_status); }; }; then
37293   wx_cv_func_snprintf_pos_params=no
37294 else
37295   echo "$as_me: program exited with status $ac_status" >&5
37296 echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37298
37299 ( exit $ac_status )
37300 wx_cv_func_snprintf_pos_params=yes
37301 fi
37302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37303 fi
37304
37305
37306
37307
37308 fi
37309 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37310 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37311
37312         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37313             cat >>confdefs.h <<\_ACEOF
37314 #define HAVE_UNIX98_PRINTF 1
37315 _ACEOF
37316
37317         fi
37318     fi
37319 fi
37320
37321 if test "$ac_cv_func_vsscanf" = "yes"; then
37322     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37323 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37324 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37325   echo $ECHO_N "(cached) $ECHO_C" >&6
37326 else
37327
37328             cat >conftest.$ac_ext <<_ACEOF
37329 /* confdefs.h.  */
37330 _ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h.  */
37334
37335                     #include <stdio.h>
37336                     #include <stdarg.h>
37337                     #ifdef __MSL__
37338                     #if __MSL__ >= 0x6000
37339                     namespace std {}
37340                     using namespace std;
37341                     #endif
37342                     #endif
37343
37344 int
37345 main ()
37346 {
37347
37348                     char *buf;
37349                     va_list args;
37350                     vsscanf(buf, "%s", args);
37351
37352   ;
37353   return 0;
37354 }
37355 _ACEOF
37356 rm -f conftest.$ac_objext
37357 if { (ac_try="$ac_compile"
37358 case "(($ac_try" in
37359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37360   *) ac_try_echo=$ac_try;;
37361 esac
37362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37363   (eval "$ac_compile") 2>conftest.er1
37364   ac_status=$?
37365   grep -v '^ *+' conftest.er1 >conftest.err
37366   rm -f conftest.er1
37367   cat conftest.err >&5
37368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369   (exit $ac_status); } && {
37370          test -z "$ac_cxx_werror_flag" ||
37371          test ! -s conftest.err
37372        } && test -s conftest.$ac_objext; then
37373   wx_cv_func_vsscanf_decl=yes
37374 else
37375   echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37377
37378         wx_cv_func_vsscanf_decl=no
37379
37380 fi
37381
37382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37383
37384
37385 fi
37386 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37387 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37388
37389     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37390         cat >>confdefs.h <<\_ACEOF
37391 #define HAVE_VSSCANF_DECL 1
37392 _ACEOF
37393
37394     fi
37395 fi
37396 ac_ext=c
37397 ac_cpp='$CPP $CPPFLAGS'
37398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37401
37402
37403 if test "$wxUSE_UNICODE" = yes; then
37404
37405             wchar_headers="#include <stdio.h>
37406 #include <wchar.h>"
37407     case "${host}" in
37408         *-*-solaris2* )
37409
37410 for ac_header in widec.h
37411 do
37412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37416   echo $ECHO_N "(cached) $ECHO_C" >&6
37417 else
37418   cat >conftest.$ac_ext <<_ACEOF
37419 /* confdefs.h.  */
37420 _ACEOF
37421 cat confdefs.h >>conftest.$ac_ext
37422 cat >>conftest.$ac_ext <<_ACEOF
37423 /* end confdefs.h.  */
37424 $ac_includes_default
37425
37426 #include <$ac_header>
37427 _ACEOF
37428 rm -f conftest.$ac_objext
37429 if { (ac_try="$ac_compile"
37430 case "(($ac_try" in
37431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37432   *) ac_try_echo=$ac_try;;
37433 esac
37434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37435   (eval "$ac_compile") 2>conftest.er1
37436   ac_status=$?
37437   grep -v '^ *+' conftest.er1 >conftest.err
37438   rm -f conftest.er1
37439   cat conftest.err >&5
37440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441   (exit $ac_status); } && {
37442          test -z "$ac_c_werror_flag" ||
37443          test ! -s conftest.err
37444        } && test -s conftest.$ac_objext; then
37445   eval "$as_ac_Header=yes"
37446 else
37447   echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37449
37450         eval "$as_ac_Header=no"
37451 fi
37452
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454 fi
37455 ac_res=`eval echo '${'$as_ac_Header'}'`
37456                { echo "$as_me:$LINENO: result: $ac_res" >&5
37457 echo "${ECHO_T}$ac_res" >&6; }
37458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37459   cat >>confdefs.h <<_ACEOF
37460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37461 _ACEOF
37462
37463 fi
37464
37465 done
37466
37467             if test "$ac_cv_header_widec_h" = "yes"; then
37468                 wchar_headers="$wchar_headers
37469 #include <widec.h>"
37470             fi
37471     esac
37472
37473
37474   for wx_func in putws fputws wprintf vswprintf vswscanf
37475   do
37476     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37477 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37478 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37479   echo $ECHO_N "(cached) $ECHO_C" >&6
37480 else
37481
37482         cat >conftest.$ac_ext <<_ACEOF
37483
37484             /* confdefs.h.  */
37485 _ACEOF
37486 cat confdefs.h >>conftest.$ac_ext
37487 cat >>conftest.$ac_ext <<_ACEOF
37488 /* end confdefs.h.  */
37489
37490                 $wchar_headers
37491                 $ac_includes_default
37492
37493 int
37494 main ()
37495 {
37496
37497                 #ifndef $wx_func
37498                   &$wx_func;
37499                 #endif
37500
37501
37502   ;
37503   return 0;
37504 }
37505
37506 _ACEOF
37507 rm -f conftest.$ac_objext conftest$ac_exeext
37508 if { (ac_try="$ac_link"
37509 case "(($ac_try" in
37510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37511   *) ac_try_echo=$ac_try;;
37512 esac
37513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37514   (eval "$ac_link") 2>conftest.er1
37515   ac_status=$?
37516   grep -v '^ *+' conftest.er1 >conftest.err
37517   rm -f conftest.er1
37518   cat conftest.err >&5
37519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520   (exit $ac_status); } && {
37521          test -z "$ac_c_werror_flag" ||
37522          test ! -s conftest.err
37523        } && test -s conftest$ac_exeext &&
37524        $as_test_x conftest$ac_exeext; then
37525   eval wx_cv_func_$wx_func=yes
37526 else
37527   echo "$as_me: failed program was:" >&5
37528 sed 's/^/| /' conftest.$ac_ext >&5
37529
37530         eval wx_cv_func_$wx_func=no
37531 fi
37532
37533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37534       conftest$ac_exeext conftest.$ac_ext
37535
37536 fi
37537 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37538                { echo "$as_me:$LINENO: result: $ac_res" >&5
37539 echo "${ECHO_T}$ac_res" >&6; }
37540
37541     if eval test \$wx_cv_func_$wx_func = yes
37542     then
37543       cat >>confdefs.h <<_ACEOF
37544 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37545 _ACEOF
37546
37547
37548     else
37549       :
37550
37551     fi
37552   done
37553
37554
37555                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37556 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37557     cat >conftest.$ac_ext <<_ACEOF
37558 /* confdefs.h.  */
37559 _ACEOF
37560 cat confdefs.h >>conftest.$ac_ext
37561 cat >>conftest.$ac_ext <<_ACEOF
37562 /* end confdefs.h.  */
37563 #include <wchar.h>
37564 int
37565 main ()
37566 {
37567 &_vsnwprintf;
37568   ;
37569   return 0;
37570 }
37571 _ACEOF
37572 rm -f conftest.$ac_objext
37573 if { (ac_try="$ac_compile"
37574 case "(($ac_try" in
37575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37576   *) ac_try_echo=$ac_try;;
37577 esac
37578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37579   (eval "$ac_compile") 2>conftest.er1
37580   ac_status=$?
37581   grep -v '^ *+' conftest.er1 >conftest.err
37582   rm -f conftest.er1
37583   cat conftest.err >&5
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); } && {
37586          test -z "$ac_c_werror_flag" ||
37587          test ! -s conftest.err
37588        } && test -s conftest.$ac_objext; then
37589   { echo "$as_me:$LINENO: result: yes" >&5
37590 echo "${ECHO_T}yes" >&6; }
37591                     cat >>confdefs.h <<\_ACEOF
37592 #define HAVE__VSNWPRINTF 1
37593 _ACEOF
37594
37595 else
37596   echo "$as_me: failed program was:" >&5
37597 sed 's/^/| /' conftest.$ac_ext >&5
37598
37599         { echo "$as_me:$LINENO: result: no" >&5
37600 echo "${ECHO_T}no" >&6; }
37601 fi
37602
37603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37604 fi
37605
37606 if test "$wxUSE_FILE" = "yes"; then
37607
37608   for wx_func in fsync
37609   do
37610     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37611 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37612 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37613   echo $ECHO_N "(cached) $ECHO_C" >&6
37614 else
37615
37616         cat >conftest.$ac_ext <<_ACEOF
37617
37618             /* confdefs.h.  */
37619 _ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h.  */
37623
37624
37625                 $ac_includes_default
37626
37627 int
37628 main ()
37629 {
37630
37631                 #ifndef $wx_func
37632                   &$wx_func;
37633                 #endif
37634
37635
37636   ;
37637   return 0;
37638 }
37639
37640 _ACEOF
37641 rm -f conftest.$ac_objext conftest$ac_exeext
37642 if { (ac_try="$ac_link"
37643 case "(($ac_try" in
37644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645   *) ac_try_echo=$ac_try;;
37646 esac
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648   (eval "$ac_link") 2>conftest.er1
37649   ac_status=$?
37650   grep -v '^ *+' conftest.er1 >conftest.err
37651   rm -f conftest.er1
37652   cat conftest.err >&5
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); } && {
37655          test -z "$ac_c_werror_flag" ||
37656          test ! -s conftest.err
37657        } && test -s conftest$ac_exeext &&
37658        $as_test_x conftest$ac_exeext; then
37659   eval wx_cv_func_$wx_func=yes
37660 else
37661   echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664         eval wx_cv_func_$wx_func=no
37665 fi
37666
37667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37668       conftest$ac_exeext conftest.$ac_ext
37669
37670 fi
37671 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37672                { echo "$as_me:$LINENO: result: $ac_res" >&5
37673 echo "${ECHO_T}$ac_res" >&6; }
37674
37675     if eval test \$wx_cv_func_$wx_func = yes
37676     then
37677       cat >>confdefs.h <<_ACEOF
37678 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37679 _ACEOF
37680
37681
37682     else
37683       :
37684
37685     fi
37686   done
37687
37688 fi
37689
37690 ac_ext=cpp
37691 ac_cpp='$CXXCPP $CPPFLAGS'
37692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37695
37696
37697   for wx_func in round
37698   do
37699     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37700 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37701 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37702   echo $ECHO_N "(cached) $ECHO_C" >&6
37703 else
37704
37705         cat >conftest.$ac_ext <<_ACEOF
37706
37707             /* confdefs.h.  */
37708 _ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h.  */
37712
37713                 #include <math.h>
37714                 $ac_includes_default
37715
37716 int
37717 main ()
37718 {
37719
37720                 #ifndef $wx_func
37721                   &$wx_func;
37722                 #endif
37723
37724
37725   ;
37726   return 0;
37727 }
37728
37729 _ACEOF
37730 rm -f conftest.$ac_objext conftest$ac_exeext
37731 if { (ac_try="$ac_link"
37732 case "(($ac_try" in
37733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37734   *) ac_try_echo=$ac_try;;
37735 esac
37736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37737   (eval "$ac_link") 2>conftest.er1
37738   ac_status=$?
37739   grep -v '^ *+' conftest.er1 >conftest.err
37740   rm -f conftest.er1
37741   cat conftest.err >&5
37742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743   (exit $ac_status); } && {
37744          test -z "$ac_cxx_werror_flag" ||
37745          test ! -s conftest.err
37746        } && test -s conftest$ac_exeext &&
37747        $as_test_x conftest$ac_exeext; then
37748   eval wx_cv_func_$wx_func=yes
37749 else
37750   echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37752
37753         eval wx_cv_func_$wx_func=no
37754 fi
37755
37756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37757       conftest$ac_exeext conftest.$ac_ext
37758
37759 fi
37760 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37761                { echo "$as_me:$LINENO: result: $ac_res" >&5
37762 echo "${ECHO_T}$ac_res" >&6; }
37763
37764     if eval test \$wx_cv_func_$wx_func = yes
37765     then
37766       cat >>confdefs.h <<_ACEOF
37767 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37768 _ACEOF
37769
37770
37771     else
37772       :
37773
37774     fi
37775   done
37776
37777 ac_ext=c
37778 ac_cpp='$CPP $CPPFLAGS'
37779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37782
37783
37784 if test "$TOOLKIT" != "MSW"; then
37785
37786 if test "$wxUSE_LIBICONV" != "no" ; then
37787
37788
37789
37790 # Check whether --with-libiconv-prefix was given.
37791 if test "${with_libiconv_prefix+set}" = set; then
37792   withval=$with_libiconv_prefix;
37793     for dir in `echo "$withval" | tr : ' '`; do
37794       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37795       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37796     done
37797
37798 fi
37799
37800
37801   { echo "$as_me:$LINENO: checking for iconv" >&5
37802 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37803 if test "${am_cv_func_iconv+set}" = set; then
37804   echo $ECHO_N "(cached) $ECHO_C" >&6
37805 else
37806
37807     am_cv_func_iconv="no, consider installing GNU libiconv"
37808     am_cv_lib_iconv=no
37809     cat >conftest.$ac_ext <<_ACEOF
37810 /* confdefs.h.  */
37811 _ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h.  */
37815 #include <stdlib.h>
37816 #include <iconv.h>
37817 int
37818 main ()
37819 {
37820 iconv_t cd = iconv_open("","");
37821        iconv(cd,NULL,NULL,NULL,NULL);
37822        iconv_close(cd);
37823   ;
37824   return 0;
37825 }
37826 _ACEOF
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (ac_try="$ac_link"
37829 case "(($ac_try" in
37830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37831   *) ac_try_echo=$ac_try;;
37832 esac
37833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37834   (eval "$ac_link") 2>conftest.er1
37835   ac_status=$?
37836   grep -v '^ *+' conftest.er1 >conftest.err
37837   rm -f conftest.er1
37838   cat conftest.err >&5
37839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840   (exit $ac_status); } && {
37841          test -z "$ac_c_werror_flag" ||
37842          test ! -s conftest.err
37843        } && test -s conftest$ac_exeext &&
37844        $as_test_x conftest$ac_exeext; then
37845   am_cv_func_iconv=yes
37846 else
37847   echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37849
37850
37851 fi
37852
37853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37854       conftest$ac_exeext conftest.$ac_ext
37855     if test "$am_cv_func_iconv" != yes; then
37856       am_save_LIBS="$LIBS"
37857       LIBS="$LIBS -liconv"
37858       cat >conftest.$ac_ext <<_ACEOF
37859 /* confdefs.h.  */
37860 _ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h.  */
37864 #include <stdlib.h>
37865 #include <iconv.h>
37866 int
37867 main ()
37868 {
37869 iconv_t cd = iconv_open("","");
37870          iconv(cd,NULL,NULL,NULL,NULL);
37871          iconv_close(cd);
37872   ;
37873   return 0;
37874 }
37875 _ACEOF
37876 rm -f conftest.$ac_objext conftest$ac_exeext
37877 if { (ac_try="$ac_link"
37878 case "(($ac_try" in
37879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37880   *) ac_try_echo=$ac_try;;
37881 esac
37882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37883   (eval "$ac_link") 2>conftest.er1
37884   ac_status=$?
37885   grep -v '^ *+' conftest.er1 >conftest.err
37886   rm -f conftest.er1
37887   cat conftest.err >&5
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); } && {
37890          test -z "$ac_c_werror_flag" ||
37891          test ! -s conftest.err
37892        } && test -s conftest$ac_exeext &&
37893        $as_test_x conftest$ac_exeext; then
37894   am_cv_lib_iconv=yes
37895         am_cv_func_iconv=yes
37896 else
37897   echo "$as_me: failed program was:" >&5
37898 sed 's/^/| /' conftest.$ac_ext >&5
37899
37900
37901 fi
37902
37903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37904       conftest$ac_exeext conftest.$ac_ext
37905       LIBS="$am_save_LIBS"
37906     fi
37907
37908 fi
37909 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37910 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37911   if test "$am_cv_func_iconv" = yes; then
37912
37913 cat >>confdefs.h <<\_ACEOF
37914 #define HAVE_ICONV 1
37915 _ACEOF
37916
37917     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37918 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37919 if test "${wx_cv_func_iconv_const+set}" = set; then
37920   echo $ECHO_N "(cached) $ECHO_C" >&6
37921 else
37922   cat >conftest.$ac_ext <<_ACEOF
37923 /* confdefs.h.  */
37924 _ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h.  */
37928
37929 #include <stdlib.h>
37930 #include <iconv.h>
37931 extern
37932 #ifdef __cplusplus
37933 "C"
37934 #endif
37935 #if defined(__STDC__) || defined(__cplusplus)
37936 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37937 #else
37938 size_t iconv();
37939 #endif
37940
37941 int
37942 main ()
37943 {
37944
37945   ;
37946   return 0;
37947 }
37948 _ACEOF
37949 rm -f conftest.$ac_objext
37950 if { (ac_try="$ac_compile"
37951 case "(($ac_try" in
37952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37953   *) ac_try_echo=$ac_try;;
37954 esac
37955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37956   (eval "$ac_compile") 2>conftest.er1
37957   ac_status=$?
37958   grep -v '^ *+' conftest.er1 >conftest.err
37959   rm -f conftest.er1
37960   cat conftest.err >&5
37961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962   (exit $ac_status); } && {
37963          test -z "$ac_c_werror_flag" ||
37964          test ! -s conftest.err
37965        } && test -s conftest.$ac_objext; then
37966   wx_cv_func_iconv_const="no"
37967 else
37968   echo "$as_me: failed program was:" >&5
37969 sed 's/^/| /' conftest.$ac_ext >&5
37970
37971         wx_cv_func_iconv_const="yes"
37972
37973 fi
37974
37975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37976
37977 fi
37978 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37979 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37980
37981     iconv_const=
37982     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37983         iconv_const="const"
37984     fi
37985
37986
37987 cat >>confdefs.h <<_ACEOF
37988 #define ICONV_CONST $iconv_const
37989 _ACEOF
37990
37991   fi
37992   LIBICONV=
37993   if test "$am_cv_lib_iconv" = yes; then
37994     LIBICONV="-liconv"
37995   fi
37996
37997
37998     LIBS="$LIBICONV $LIBS"
37999 fi
38000
38001 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38002
38003 for ac_func in sigaction
38004 do
38005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38009   echo $ECHO_N "(cached) $ECHO_C" >&6
38010 else
38011   cat >conftest.$ac_ext <<_ACEOF
38012 /* confdefs.h.  */
38013 _ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h.  */
38017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38019 #define $ac_func innocuous_$ac_func
38020
38021 /* System header to define __stub macros and hopefully few prototypes,
38022     which can conflict with char $ac_func (); below.
38023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38024     <limits.h> exists even on freestanding compilers.  */
38025
38026 #ifdef __STDC__
38027 # include <limits.h>
38028 #else
38029 # include <assert.h>
38030 #endif
38031
38032 #undef $ac_func
38033
38034 /* Override any GCC internal prototype to avoid an error.
38035    Use char because int might match the return type of a GCC
38036    builtin and then its argument prototype would still apply.  */
38037 #ifdef __cplusplus
38038 extern "C"
38039 #endif
38040 char $ac_func ();
38041 /* The GNU C library defines this for functions which it implements
38042     to always fail with ENOSYS.  Some functions are actually named
38043     something starting with __ and the normal name is an alias.  */
38044 #if defined __stub_$ac_func || defined __stub___$ac_func
38045 choke me
38046 #endif
38047
38048 int
38049 main ()
38050 {
38051 return $ac_func ();
38052   ;
38053   return 0;
38054 }
38055 _ACEOF
38056 rm -f conftest.$ac_objext conftest$ac_exeext
38057 if { (ac_try="$ac_link"
38058 case "(($ac_try" in
38059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38060   *) ac_try_echo=$ac_try;;
38061 esac
38062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38063   (eval "$ac_link") 2>conftest.er1
38064   ac_status=$?
38065   grep -v '^ *+' conftest.er1 >conftest.err
38066   rm -f conftest.er1
38067   cat conftest.err >&5
38068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069   (exit $ac_status); } && {
38070          test -z "$ac_c_werror_flag" ||
38071          test ! -s conftest.err
38072        } && test -s conftest$ac_exeext &&
38073        $as_test_x conftest$ac_exeext; then
38074   eval "$as_ac_var=yes"
38075 else
38076   echo "$as_me: failed program was:" >&5
38077 sed 's/^/| /' conftest.$ac_ext >&5
38078
38079         eval "$as_ac_var=no"
38080 fi
38081
38082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38083       conftest$ac_exeext conftest.$ac_ext
38084 fi
38085 ac_res=`eval echo '${'$as_ac_var'}'`
38086                { echo "$as_me:$LINENO: result: $ac_res" >&5
38087 echo "${ECHO_T}$ac_res" >&6; }
38088 if test `eval echo '${'$as_ac_var'}'` = yes; then
38089   cat >>confdefs.h <<_ACEOF
38090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38091 _ACEOF
38092
38093 fi
38094 done
38095
38096
38097     if test "$ac_cv_func_sigaction" = "no"; then
38098         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38099 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38100         wxUSE_ON_FATAL_EXCEPTION=no
38101     fi
38102
38103     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38104       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38105 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38106 if test "${wx_cv_type_sa_handler+set}" = set; then
38107   echo $ECHO_N "(cached) $ECHO_C" >&6
38108 else
38109
38110                 ac_ext=cpp
38111 ac_cpp='$CXXCPP $CPPFLAGS'
38112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38115
38116         cat >conftest.$ac_ext <<_ACEOF
38117 /* confdefs.h.  */
38118 _ACEOF
38119 cat confdefs.h >>conftest.$ac_ext
38120 cat >>conftest.$ac_ext <<_ACEOF
38121 /* end confdefs.h.  */
38122 #include <signal.h>
38123 int
38124 main ()
38125 {
38126
38127                         extern void testSigHandler(int);
38128
38129                         struct sigaction sa;
38130                         sa.sa_handler = testSigHandler;
38131
38132   ;
38133   return 0;
38134 }
38135 _ACEOF
38136 rm -f conftest.$ac_objext
38137 if { (ac_try="$ac_compile"
38138 case "(($ac_try" in
38139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38140   *) ac_try_echo=$ac_try;;
38141 esac
38142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38143   (eval "$ac_compile") 2>conftest.er1
38144   ac_status=$?
38145   grep -v '^ *+' conftest.er1 >conftest.err
38146   rm -f conftest.er1
38147   cat conftest.err >&5
38148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149   (exit $ac_status); } && {
38150          test -z "$ac_cxx_werror_flag" ||
38151          test ! -s conftest.err
38152        } && test -s conftest.$ac_objext; then
38153
38154                         wx_cv_type_sa_handler=int
38155
38156 else
38157   echo "$as_me: failed program was:" >&5
38158 sed 's/^/| /' conftest.$ac_ext >&5
38159
38160
38161                         wx_cv_type_sa_handler=void
38162
38163 fi
38164
38165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38166         ac_ext=c
38167 ac_cpp='$CPP $CPPFLAGS'
38168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38171
38172
38173 fi
38174 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38175 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38176
38177       cat >>confdefs.h <<_ACEOF
38178 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38179 _ACEOF
38180
38181     fi
38182 fi
38183
38184 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38185     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38186 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38187 if test "${wx_cv_func_backtrace+set}" = set; then
38188   echo $ECHO_N "(cached) $ECHO_C" >&6
38189 else
38190
38191             ac_ext=cpp
38192 ac_cpp='$CXXCPP $CPPFLAGS'
38193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38196
38197             cat >conftest.$ac_ext <<_ACEOF
38198 /* confdefs.h.  */
38199 _ACEOF
38200 cat confdefs.h >>conftest.$ac_ext
38201 cat >>conftest.$ac_ext <<_ACEOF
38202 /* end confdefs.h.  */
38203 #include <execinfo.h>
38204 int
38205 main ()
38206 {
38207
38208                     void *trace[1];
38209                     char **messages;
38210
38211                     backtrace(trace, 1);
38212                     messages = backtrace_symbols(trace, 1);
38213
38214   ;
38215   return 0;
38216 }
38217 _ACEOF
38218 rm -f conftest.$ac_objext
38219 if { (ac_try="$ac_compile"
38220 case "(($ac_try" in
38221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38222   *) ac_try_echo=$ac_try;;
38223 esac
38224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38225   (eval "$ac_compile") 2>conftest.er1
38226   ac_status=$?
38227   grep -v '^ *+' conftest.er1 >conftest.err
38228   rm -f conftest.er1
38229   cat conftest.err >&5
38230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231   (exit $ac_status); } && {
38232          test -z "$ac_cxx_werror_flag" ||
38233          test ! -s conftest.err
38234        } && test -s conftest.$ac_objext; then
38235   wx_cv_func_backtrace=yes
38236 else
38237   echo "$as_me: failed program was:" >&5
38238 sed 's/^/| /' conftest.$ac_ext >&5
38239
38240         wx_cv_func_backtrace=no
38241
38242 fi
38243
38244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38245             ac_ext=c
38246 ac_cpp='$CPP $CPPFLAGS'
38247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38250
38251
38252
38253 fi
38254 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38255 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38256
38257
38258     if test "$wx_cv_func_backtrace" = "no"; then
38259         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38260 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38261         wxUSE_STACKWALKER=no
38262     else
38263         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38264 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38265 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38266   echo $ECHO_N "(cached) $ECHO_C" >&6
38267 else
38268
38269                 ac_ext=cpp
38270 ac_cpp='$CXXCPP $CPPFLAGS'
38271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38274
38275                 cat >conftest.$ac_ext <<_ACEOF
38276 /* confdefs.h.  */
38277 _ACEOF
38278 cat confdefs.h >>conftest.$ac_ext
38279 cat >>conftest.$ac_ext <<_ACEOF
38280 /* end confdefs.h.  */
38281 #include <cxxabi.h>
38282 int
38283 main ()
38284 {
38285
38286                         int rc;
38287                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38288
38289   ;
38290   return 0;
38291 }
38292 _ACEOF
38293 rm -f conftest.$ac_objext conftest$ac_exeext
38294 if { (ac_try="$ac_link"
38295 case "(($ac_try" in
38296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38297   *) ac_try_echo=$ac_try;;
38298 esac
38299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38300   (eval "$ac_link") 2>conftest.er1
38301   ac_status=$?
38302   grep -v '^ *+' conftest.er1 >conftest.err
38303   rm -f conftest.er1
38304   cat conftest.err >&5
38305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306   (exit $ac_status); } && {
38307          test -z "$ac_cxx_werror_flag" ||
38308          test ! -s conftest.err
38309        } && test -s conftest$ac_exeext &&
38310        $as_test_x conftest$ac_exeext; then
38311   wx_cv_func_cxa_demangle=yes
38312 else
38313   echo "$as_me: failed program was:" >&5
38314 sed 's/^/| /' conftest.$ac_ext >&5
38315
38316         wx_cv_func_cxa_demangle=no
38317
38318 fi
38319
38320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38321       conftest$ac_exeext conftest.$ac_ext
38322                 ac_ext=c
38323 ac_cpp='$CPP $CPPFLAGS'
38324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38327
38328
38329
38330 fi
38331 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38332 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38333
38334         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38335             cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_CXA_DEMANGLE 1
38337 _ACEOF
38338
38339         fi
38340     fi
38341 fi
38342
38343 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38344     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38345 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38346     wxUSE_STACKWALKER=no
38347 fi
38348
38349
38350
38351
38352 for ac_func in mkstemp mktemp
38353 do
38354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38358   echo $ECHO_N "(cached) $ECHO_C" >&6
38359 else
38360   cat >conftest.$ac_ext <<_ACEOF
38361 /* confdefs.h.  */
38362 _ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h.  */
38366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38368 #define $ac_func innocuous_$ac_func
38369
38370 /* System header to define __stub macros and hopefully few prototypes,
38371     which can conflict with char $ac_func (); below.
38372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38373     <limits.h> exists even on freestanding compilers.  */
38374
38375 #ifdef __STDC__
38376 # include <limits.h>
38377 #else
38378 # include <assert.h>
38379 #endif
38380
38381 #undef $ac_func
38382
38383 /* Override any GCC internal prototype to avoid an error.
38384    Use char because int might match the return type of a GCC
38385    builtin and then its argument prototype would still apply.  */
38386 #ifdef __cplusplus
38387 extern "C"
38388 #endif
38389 char $ac_func ();
38390 /* The GNU C library defines this for functions which it implements
38391     to always fail with ENOSYS.  Some functions are actually named
38392     something starting with __ and the normal name is an alias.  */
38393 #if defined __stub_$ac_func || defined __stub___$ac_func
38394 choke me
38395 #endif
38396
38397 int
38398 main ()
38399 {
38400 return $ac_func ();
38401   ;
38402   return 0;
38403 }
38404 _ACEOF
38405 rm -f conftest.$ac_objext conftest$ac_exeext
38406 if { (ac_try="$ac_link"
38407 case "(($ac_try" in
38408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38409   *) ac_try_echo=$ac_try;;
38410 esac
38411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38412   (eval "$ac_link") 2>conftest.er1
38413   ac_status=$?
38414   grep -v '^ *+' conftest.er1 >conftest.err
38415   rm -f conftest.er1
38416   cat conftest.err >&5
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); } && {
38419          test -z "$ac_c_werror_flag" ||
38420          test ! -s conftest.err
38421        } && test -s conftest$ac_exeext &&
38422        $as_test_x conftest$ac_exeext; then
38423   eval "$as_ac_var=yes"
38424 else
38425   echo "$as_me: failed program was:" >&5
38426 sed 's/^/| /' conftest.$ac_ext >&5
38427
38428         eval "$as_ac_var=no"
38429 fi
38430
38431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38432       conftest$ac_exeext conftest.$ac_ext
38433 fi
38434 ac_res=`eval echo '${'$as_ac_var'}'`
38435                { echo "$as_me:$LINENO: result: $ac_res" >&5
38436 echo "${ECHO_T}$ac_res" >&6; }
38437 if test `eval echo '${'$as_ac_var'}'` = yes; then
38438   cat >>confdefs.h <<_ACEOF
38439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38440 _ACEOF
38441  break
38442 fi
38443 done
38444
38445
38446 { echo "$as_me:$LINENO: checking for statfs" >&5
38447 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38448 if test "${wx_cv_func_statfs+set}" = set; then
38449   echo $ECHO_N "(cached) $ECHO_C" >&6
38450 else
38451   cat >conftest.$ac_ext <<_ACEOF
38452 /* confdefs.h.  */
38453 _ACEOF
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h.  */
38457
38458              #if defined(__BSD__)
38459              #include <sys/param.h>
38460              #include <sys/mount.h>
38461              #else
38462              #include <sys/vfs.h>
38463              #endif
38464
38465 int
38466 main ()
38467 {
38468
38469              long l;
38470              struct statfs fs;
38471              statfs("/", &fs);
38472              l = fs.f_bsize;
38473              l += fs.f_blocks;
38474              l += fs.f_bavail;
38475
38476   ;
38477   return 0;
38478 }
38479 _ACEOF
38480 rm -f conftest.$ac_objext
38481 if { (ac_try="$ac_compile"
38482 case "(($ac_try" in
38483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38484   *) ac_try_echo=$ac_try;;
38485 esac
38486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38487   (eval "$ac_compile") 2>conftest.er1
38488   ac_status=$?
38489   grep -v '^ *+' conftest.er1 >conftest.err
38490   rm -f conftest.er1
38491   cat conftest.err >&5
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); } && {
38494          test -z "$ac_c_werror_flag" ||
38495          test ! -s conftest.err
38496        } && test -s conftest.$ac_objext; then
38497   wx_cv_func_statfs=yes
38498 else
38499   echo "$as_me: failed program was:" >&5
38500 sed 's/^/| /' conftest.$ac_ext >&5
38501
38502         wx_cv_func_statfs=no
38503
38504 fi
38505
38506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38507
38508 fi
38509 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38510 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38511
38512 if test "$wx_cv_func_statfs" = "yes"; then
38513         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38514 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38515 if test "${wx_cv_func_statfs_decl+set}" = set; then
38516   echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518   ac_ext=cpp
38519 ac_cpp='$CXXCPP $CPPFLAGS'
38520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38523
38524         cat >conftest.$ac_ext <<_ACEOF
38525 /* confdefs.h.  */
38526 _ACEOF
38527 cat confdefs.h >>conftest.$ac_ext
38528 cat >>conftest.$ac_ext <<_ACEOF
38529 /* end confdefs.h.  */
38530
38531                  #if defined(__BSD__)
38532                  #include <sys/param.h>
38533                  #include <sys/mount.h>
38534                  #else
38535                  #include <sys/vfs.h>
38536                  #endif
38537
38538 int
38539 main ()
38540 {
38541
38542                 struct statfs fs;
38543                 statfs("", &fs);
38544
38545   ;
38546   return 0;
38547 }
38548 _ACEOF
38549 rm -f conftest.$ac_objext
38550 if { (ac_try="$ac_compile"
38551 case "(($ac_try" in
38552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38553   *) ac_try_echo=$ac_try;;
38554 esac
38555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38556   (eval "$ac_compile") 2>conftest.er1
38557   ac_status=$?
38558   grep -v '^ *+' conftest.er1 >conftest.err
38559   rm -f conftest.er1
38560   cat conftest.err >&5
38561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562   (exit $ac_status); } && {
38563          test -z "$ac_cxx_werror_flag" ||
38564          test ! -s conftest.err
38565        } && test -s conftest.$ac_objext; then
38566   wx_cv_func_statfs_decl=yes
38567 else
38568   echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.$ac_ext >&5
38570
38571         wx_cv_func_statfs_decl=no
38572
38573 fi
38574
38575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38576         ac_ext=c
38577 ac_cpp='$CPP $CPPFLAGS'
38578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38581
38582
38583 fi
38584 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38585 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38586
38587     if test "$wx_cv_func_statfs_decl" = "yes"; then
38588         cat >>confdefs.h <<\_ACEOF
38589 #define HAVE_STATFS_DECL 1
38590 _ACEOF
38591
38592     fi
38593
38594     wx_cv_type_statvfs_t="struct statfs"
38595     cat >>confdefs.h <<\_ACEOF
38596 #define HAVE_STATFS 1
38597 _ACEOF
38598
38599 else
38600     { echo "$as_me:$LINENO: checking for statvfs" >&5
38601 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38602 if test "${wx_cv_func_statvfs+set}" = set; then
38603   echo $ECHO_N "(cached) $ECHO_C" >&6
38604 else
38605   cat >conftest.$ac_ext <<_ACEOF
38606 /* confdefs.h.  */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h.  */
38611
38612                 #include <stddef.h>
38613                 #include <sys/statvfs.h>
38614
38615 int
38616 main ()
38617 {
38618
38619                 statvfs("/", NULL);
38620
38621   ;
38622   return 0;
38623 }
38624 _ACEOF
38625 rm -f conftest.$ac_objext
38626 if { (ac_try="$ac_compile"
38627 case "(($ac_try" in
38628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38629   *) ac_try_echo=$ac_try;;
38630 esac
38631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38632   (eval "$ac_compile") 2>conftest.er1
38633   ac_status=$?
38634   grep -v '^ *+' conftest.er1 >conftest.err
38635   rm -f conftest.er1
38636   cat conftest.err >&5
38637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638   (exit $ac_status); } && {
38639          test -z "$ac_c_werror_flag" ||
38640          test ! -s conftest.err
38641        } && test -s conftest.$ac_objext; then
38642   wx_cv_func_statvfs=yes
38643 else
38644   echo "$as_me: failed program was:" >&5
38645 sed 's/^/| /' conftest.$ac_ext >&5
38646
38647         wx_cv_func_statvfs=no
38648
38649 fi
38650
38651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38652
38653 fi
38654 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38655 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38656
38657     if test "$wx_cv_func_statvfs" = "yes"; then
38658                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38659 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38660 if test "${wx_cv_type_statvfs_t+set}" = set; then
38661   echo $ECHO_N "(cached) $ECHO_C" >&6
38662 else
38663   ac_ext=cpp
38664 ac_cpp='$CXXCPP $CPPFLAGS'
38665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38668
38669             cat >conftest.$ac_ext <<_ACEOF
38670 /* confdefs.h.  */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h.  */
38675
38676                     #include <sys/statvfs.h>
38677
38678 int
38679 main ()
38680 {
38681
38682                     long l;
38683                     statvfs_t fs;
38684                     statvfs("/", &fs);
38685                     l = fs.f_bsize;
38686                     l += fs.f_blocks;
38687                     l += fs.f_bavail;
38688
38689   ;
38690   return 0;
38691 }
38692 _ACEOF
38693 rm -f conftest.$ac_objext
38694 if { (ac_try="$ac_compile"
38695 case "(($ac_try" in
38696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38697   *) ac_try_echo=$ac_try;;
38698 esac
38699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38700   (eval "$ac_compile") 2>conftest.er1
38701   ac_status=$?
38702   grep -v '^ *+' conftest.er1 >conftest.err
38703   rm -f conftest.er1
38704   cat conftest.err >&5
38705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706   (exit $ac_status); } && {
38707          test -z "$ac_cxx_werror_flag" ||
38708          test ! -s conftest.err
38709        } && test -s conftest.$ac_objext; then
38710   wx_cv_type_statvfs_t=statvfs_t
38711 else
38712   echo "$as_me: failed program was:" >&5
38713 sed 's/^/| /' conftest.$ac_ext >&5
38714
38715
38716                     cat >conftest.$ac_ext <<_ACEOF
38717 /* confdefs.h.  */
38718 _ACEOF
38719 cat confdefs.h >>conftest.$ac_ext
38720 cat >>conftest.$ac_ext <<_ACEOF
38721 /* end confdefs.h.  */
38722
38723                             #include <sys/statvfs.h>
38724
38725 int
38726 main ()
38727 {
38728
38729                             long l;
38730                             struct statvfs fs;
38731                             statvfs("/", &fs);
38732                             l = fs.f_bsize;
38733                             l += fs.f_blocks;
38734                             l += fs.f_bavail;
38735
38736   ;
38737   return 0;
38738 }
38739 _ACEOF
38740 rm -f conftest.$ac_objext
38741 if { (ac_try="$ac_compile"
38742 case "(($ac_try" in
38743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38744   *) ac_try_echo=$ac_try;;
38745 esac
38746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38747   (eval "$ac_compile") 2>conftest.er1
38748   ac_status=$?
38749   grep -v '^ *+' conftest.er1 >conftest.err
38750   rm -f conftest.er1
38751   cat conftest.err >&5
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); } && {
38754          test -z "$ac_cxx_werror_flag" ||
38755          test ! -s conftest.err
38756        } && test -s conftest.$ac_objext; then
38757   wx_cv_type_statvfs_t="struct statvfs"
38758 else
38759   echo "$as_me: failed program was:" >&5
38760 sed 's/^/| /' conftest.$ac_ext >&5
38761
38762         wx_cv_type_statvfs_t="unknown"
38763
38764 fi
38765
38766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38767
38768
38769 fi
38770
38771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38772             ac_ext=c
38773 ac_cpp='$CPP $CPPFLAGS'
38774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38777
38778
38779 fi
38780 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38781 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38782
38783         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38784             cat >>confdefs.h <<\_ACEOF
38785 #define HAVE_STATVFS 1
38786 _ACEOF
38787
38788         fi
38789     else
38790                 wx_cv_type_statvfs_t="unknown"
38791     fi
38792 fi
38793
38794 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38795     cat >>confdefs.h <<_ACEOF
38796 #define WX_STATFS_T $wx_cv_type_statvfs_t
38797 _ACEOF
38798
38799 else
38800     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38801 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38802 fi
38803
38804 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38805
38806
38807 for ac_func in fcntl flock
38808 do
38809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38813   echo $ECHO_N "(cached) $ECHO_C" >&6
38814 else
38815   cat >conftest.$ac_ext <<_ACEOF
38816 /* confdefs.h.  */
38817 _ACEOF
38818 cat confdefs.h >>conftest.$ac_ext
38819 cat >>conftest.$ac_ext <<_ACEOF
38820 /* end confdefs.h.  */
38821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38823 #define $ac_func innocuous_$ac_func
38824
38825 /* System header to define __stub macros and hopefully few prototypes,
38826     which can conflict with char $ac_func (); below.
38827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38828     <limits.h> exists even on freestanding compilers.  */
38829
38830 #ifdef __STDC__
38831 # include <limits.h>
38832 #else
38833 # include <assert.h>
38834 #endif
38835
38836 #undef $ac_func
38837
38838 /* Override any GCC internal prototype to avoid an error.
38839    Use char because int might match the return type of a GCC
38840    builtin and then its argument prototype would still apply.  */
38841 #ifdef __cplusplus
38842 extern "C"
38843 #endif
38844 char $ac_func ();
38845 /* The GNU C library defines this for functions which it implements
38846     to always fail with ENOSYS.  Some functions are actually named
38847     something starting with __ and the normal name is an alias.  */
38848 #if defined __stub_$ac_func || defined __stub___$ac_func
38849 choke me
38850 #endif
38851
38852 int
38853 main ()
38854 {
38855 return $ac_func ();
38856   ;
38857   return 0;
38858 }
38859 _ACEOF
38860 rm -f conftest.$ac_objext conftest$ac_exeext
38861 if { (ac_try="$ac_link"
38862 case "(($ac_try" in
38863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38864   *) ac_try_echo=$ac_try;;
38865 esac
38866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38867   (eval "$ac_link") 2>conftest.er1
38868   ac_status=$?
38869   grep -v '^ *+' conftest.er1 >conftest.err
38870   rm -f conftest.er1
38871   cat conftest.err >&5
38872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873   (exit $ac_status); } && {
38874          test -z "$ac_c_werror_flag" ||
38875          test ! -s conftest.err
38876        } && test -s conftest$ac_exeext &&
38877        $as_test_x conftest$ac_exeext; then
38878   eval "$as_ac_var=yes"
38879 else
38880   echo "$as_me: failed program was:" >&5
38881 sed 's/^/| /' conftest.$ac_ext >&5
38882
38883         eval "$as_ac_var=no"
38884 fi
38885
38886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38887       conftest$ac_exeext conftest.$ac_ext
38888 fi
38889 ac_res=`eval echo '${'$as_ac_var'}'`
38890                { echo "$as_me:$LINENO: result: $ac_res" >&5
38891 echo "${ECHO_T}$ac_res" >&6; }
38892 if test `eval echo '${'$as_ac_var'}'` = yes; then
38893   cat >>confdefs.h <<_ACEOF
38894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38895 _ACEOF
38896  break
38897 fi
38898 done
38899
38900
38901     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38902         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38903 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38904         wxUSE_SNGLINST_CHECKER=no
38905     fi
38906 fi
38907
38908
38909
38910 for ac_func in setenv putenv
38911 do
38912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38916   echo $ECHO_N "(cached) $ECHO_C" >&6
38917 else
38918   cat >conftest.$ac_ext <<_ACEOF
38919 /* confdefs.h.  */
38920 _ACEOF
38921 cat confdefs.h >>conftest.$ac_ext
38922 cat >>conftest.$ac_ext <<_ACEOF
38923 /* end confdefs.h.  */
38924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38926 #define $ac_func innocuous_$ac_func
38927
38928 /* System header to define __stub macros and hopefully few prototypes,
38929     which can conflict with char $ac_func (); below.
38930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38931     <limits.h> exists even on freestanding compilers.  */
38932
38933 #ifdef __STDC__
38934 # include <limits.h>
38935 #else
38936 # include <assert.h>
38937 #endif
38938
38939 #undef $ac_func
38940
38941 /* Override any GCC internal prototype to avoid an error.
38942    Use char because int might match the return type of a GCC
38943    builtin and then its argument prototype would still apply.  */
38944 #ifdef __cplusplus
38945 extern "C"
38946 #endif
38947 char $ac_func ();
38948 /* The GNU C library defines this for functions which it implements
38949     to always fail with ENOSYS.  Some functions are actually named
38950     something starting with __ and the normal name is an alias.  */
38951 #if defined __stub_$ac_func || defined __stub___$ac_func
38952 choke me
38953 #endif
38954
38955 int
38956 main ()
38957 {
38958 return $ac_func ();
38959   ;
38960   return 0;
38961 }
38962 _ACEOF
38963 rm -f conftest.$ac_objext conftest$ac_exeext
38964 if { (ac_try="$ac_link"
38965 case "(($ac_try" in
38966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38967   *) ac_try_echo=$ac_try;;
38968 esac
38969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38970   (eval "$ac_link") 2>conftest.er1
38971   ac_status=$?
38972   grep -v '^ *+' conftest.er1 >conftest.err
38973   rm -f conftest.er1
38974   cat conftest.err >&5
38975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976   (exit $ac_status); } && {
38977          test -z "$ac_c_werror_flag" ||
38978          test ! -s conftest.err
38979        } && test -s conftest$ac_exeext &&
38980        $as_test_x conftest$ac_exeext; then
38981   eval "$as_ac_var=yes"
38982 else
38983   echo "$as_me: failed program was:" >&5
38984 sed 's/^/| /' conftest.$ac_ext >&5
38985
38986         eval "$as_ac_var=no"
38987 fi
38988
38989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38990       conftest$ac_exeext conftest.$ac_ext
38991 fi
38992 ac_res=`eval echo '${'$as_ac_var'}'`
38993                { echo "$as_me:$LINENO: result: $ac_res" >&5
38994 echo "${ECHO_T}$ac_res" >&6; }
38995 if test `eval echo '${'$as_ac_var'}'` = yes; then
38996   cat >>confdefs.h <<_ACEOF
38997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38998 _ACEOF
38999  break
39000 fi
39001 done
39002
39003 if test "$ac_cv_func_setenv" = "yes"; then
39004
39005 for ac_func in unsetenv
39006 do
39007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39011   echo $ECHO_N "(cached) $ECHO_C" >&6
39012 else
39013   cat >conftest.$ac_ext <<_ACEOF
39014 /* confdefs.h.  */
39015 _ACEOF
39016 cat confdefs.h >>conftest.$ac_ext
39017 cat >>conftest.$ac_ext <<_ACEOF
39018 /* end confdefs.h.  */
39019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39021 #define $ac_func innocuous_$ac_func
39022
39023 /* System header to define __stub macros and hopefully few prototypes,
39024     which can conflict with char $ac_func (); below.
39025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39026     <limits.h> exists even on freestanding compilers.  */
39027
39028 #ifdef __STDC__
39029 # include <limits.h>
39030 #else
39031 # include <assert.h>
39032 #endif
39033
39034 #undef $ac_func
39035
39036 /* Override any GCC internal prototype to avoid an error.
39037    Use char because int might match the return type of a GCC
39038    builtin and then its argument prototype would still apply.  */
39039 #ifdef __cplusplus
39040 extern "C"
39041 #endif
39042 char $ac_func ();
39043 /* The GNU C library defines this for functions which it implements
39044     to always fail with ENOSYS.  Some functions are actually named
39045     something starting with __ and the normal name is an alias.  */
39046 #if defined __stub_$ac_func || defined __stub___$ac_func
39047 choke me
39048 #endif
39049
39050 int
39051 main ()
39052 {
39053 return $ac_func ();
39054   ;
39055   return 0;
39056 }
39057 _ACEOF
39058 rm -f conftest.$ac_objext conftest$ac_exeext
39059 if { (ac_try="$ac_link"
39060 case "(($ac_try" in
39061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39062   *) ac_try_echo=$ac_try;;
39063 esac
39064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39065   (eval "$ac_link") 2>conftest.er1
39066   ac_status=$?
39067   grep -v '^ *+' conftest.er1 >conftest.err
39068   rm -f conftest.er1
39069   cat conftest.err >&5
39070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071   (exit $ac_status); } && {
39072          test -z "$ac_c_werror_flag" ||
39073          test ! -s conftest.err
39074        } && test -s conftest$ac_exeext &&
39075        $as_test_x conftest$ac_exeext; then
39076   eval "$as_ac_var=yes"
39077 else
39078   echo "$as_me: failed program was:" >&5
39079 sed 's/^/| /' conftest.$ac_ext >&5
39080
39081         eval "$as_ac_var=no"
39082 fi
39083
39084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39085       conftest$ac_exeext conftest.$ac_ext
39086 fi
39087 ac_res=`eval echo '${'$as_ac_var'}'`
39088                { echo "$as_me:$LINENO: result: $ac_res" >&5
39089 echo "${ECHO_T}$ac_res" >&6; }
39090 if test `eval echo '${'$as_ac_var'}'` = yes; then
39091   cat >>confdefs.h <<_ACEOF
39092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39093 _ACEOF
39094
39095 fi
39096 done
39097
39098 fi
39099
39100 HAVE_SOME_SLEEP_FUNC=0
39101 if test "$USE_BEOS" = 1; then
39102             cat >>confdefs.h <<\_ACEOF
39103 #define HAVE_SLEEP 1
39104 _ACEOF
39105
39106     HAVE_SOME_SLEEP_FUNC=1
39107 fi
39108
39109 if test "$USE_DARWIN" = 1; then
39110             cat >>confdefs.h <<\_ACEOF
39111 #define HAVE_USLEEP 1
39112 _ACEOF
39113
39114     HAVE_SOME_SLEEP_FUNC=1
39115 fi
39116
39117 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39118         POSIX4_LINK=
39119
39120 for ac_func in nanosleep
39121 do
39122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39126   echo $ECHO_N "(cached) $ECHO_C" >&6
39127 else
39128   cat >conftest.$ac_ext <<_ACEOF
39129 /* confdefs.h.  */
39130 _ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h.  */
39134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39136 #define $ac_func innocuous_$ac_func
39137
39138 /* System header to define __stub macros and hopefully few prototypes,
39139     which can conflict with char $ac_func (); below.
39140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39141     <limits.h> exists even on freestanding compilers.  */
39142
39143 #ifdef __STDC__
39144 # include <limits.h>
39145 #else
39146 # include <assert.h>
39147 #endif
39148
39149 #undef $ac_func
39150
39151 /* Override any GCC internal prototype to avoid an error.
39152    Use char because int might match the return type of a GCC
39153    builtin and then its argument prototype would still apply.  */
39154 #ifdef __cplusplus
39155 extern "C"
39156 #endif
39157 char $ac_func ();
39158 /* The GNU C library defines this for functions which it implements
39159     to always fail with ENOSYS.  Some functions are actually named
39160     something starting with __ and the normal name is an alias.  */
39161 #if defined __stub_$ac_func || defined __stub___$ac_func
39162 choke me
39163 #endif
39164
39165 int
39166 main ()
39167 {
39168 return $ac_func ();
39169   ;
39170   return 0;
39171 }
39172 _ACEOF
39173 rm -f conftest.$ac_objext conftest$ac_exeext
39174 if { (ac_try="$ac_link"
39175 case "(($ac_try" in
39176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39177   *) ac_try_echo=$ac_try;;
39178 esac
39179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39180   (eval "$ac_link") 2>conftest.er1
39181   ac_status=$?
39182   grep -v '^ *+' conftest.er1 >conftest.err
39183   rm -f conftest.er1
39184   cat conftest.err >&5
39185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186   (exit $ac_status); } && {
39187          test -z "$ac_c_werror_flag" ||
39188          test ! -s conftest.err
39189        } && test -s conftest$ac_exeext &&
39190        $as_test_x conftest$ac_exeext; then
39191   eval "$as_ac_var=yes"
39192 else
39193   echo "$as_me: failed program was:" >&5
39194 sed 's/^/| /' conftest.$ac_ext >&5
39195
39196         eval "$as_ac_var=no"
39197 fi
39198
39199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39200       conftest$ac_exeext conftest.$ac_ext
39201 fi
39202 ac_res=`eval echo '${'$as_ac_var'}'`
39203                { echo "$as_me:$LINENO: result: $ac_res" >&5
39204 echo "${ECHO_T}$ac_res" >&6; }
39205 if test `eval echo '${'$as_ac_var'}'` = yes; then
39206   cat >>confdefs.h <<_ACEOF
39207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39208 _ACEOF
39209  cat >>confdefs.h <<\_ACEOF
39210 #define HAVE_NANOSLEEP 1
39211 _ACEOF
39212
39213 else
39214
39215             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39216 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39217 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39218   echo $ECHO_N "(cached) $ECHO_C" >&6
39219 else
39220   ac_check_lib_save_LIBS=$LIBS
39221 LIBS="-lposix4  $LIBS"
39222 cat >conftest.$ac_ext <<_ACEOF
39223 /* confdefs.h.  */
39224 _ACEOF
39225 cat confdefs.h >>conftest.$ac_ext
39226 cat >>conftest.$ac_ext <<_ACEOF
39227 /* end confdefs.h.  */
39228
39229 /* Override any GCC internal prototype to avoid an error.
39230    Use char because int might match the return type of a GCC
39231    builtin and then its argument prototype would still apply.  */
39232 #ifdef __cplusplus
39233 extern "C"
39234 #endif
39235 char nanosleep ();
39236 int
39237 main ()
39238 {
39239 return nanosleep ();
39240   ;
39241   return 0;
39242 }
39243 _ACEOF
39244 rm -f conftest.$ac_objext conftest$ac_exeext
39245 if { (ac_try="$ac_link"
39246 case "(($ac_try" in
39247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39248   *) ac_try_echo=$ac_try;;
39249 esac
39250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39251   (eval "$ac_link") 2>conftest.er1
39252   ac_status=$?
39253   grep -v '^ *+' conftest.er1 >conftest.err
39254   rm -f conftest.er1
39255   cat conftest.err >&5
39256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257   (exit $ac_status); } && {
39258          test -z "$ac_c_werror_flag" ||
39259          test ! -s conftest.err
39260        } && test -s conftest$ac_exeext &&
39261        $as_test_x conftest$ac_exeext; then
39262   ac_cv_lib_posix4_nanosleep=yes
39263 else
39264   echo "$as_me: failed program was:" >&5
39265 sed 's/^/| /' conftest.$ac_ext >&5
39266
39267         ac_cv_lib_posix4_nanosleep=no
39268 fi
39269
39270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39271       conftest$ac_exeext conftest.$ac_ext
39272 LIBS=$ac_check_lib_save_LIBS
39273 fi
39274 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39275 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39276 if test $ac_cv_lib_posix4_nanosleep = yes; then
39277
39278                     cat >>confdefs.h <<\_ACEOF
39279 #define HAVE_NANOSLEEP 1
39280 _ACEOF
39281
39282                     POSIX4_LINK=" -lposix4"
39283
39284 else
39285
39286
39287   for wx_func in usleep
39288   do
39289     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39290 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39291 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39292   echo $ECHO_N "(cached) $ECHO_C" >&6
39293 else
39294
39295         cat >conftest.$ac_ext <<_ACEOF
39296
39297             /* confdefs.h.  */
39298 _ACEOF
39299 cat confdefs.h >>conftest.$ac_ext
39300 cat >>conftest.$ac_ext <<_ACEOF
39301 /* end confdefs.h.  */
39302
39303
39304                 $ac_includes_default
39305
39306 int
39307 main ()
39308 {
39309
39310                 #ifndef $wx_func
39311                   &$wx_func;
39312                 #endif
39313
39314
39315   ;
39316   return 0;
39317 }
39318
39319 _ACEOF
39320 rm -f conftest.$ac_objext conftest$ac_exeext
39321 if { (ac_try="$ac_link"
39322 case "(($ac_try" in
39323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39324   *) ac_try_echo=$ac_try;;
39325 esac
39326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39327   (eval "$ac_link") 2>conftest.er1
39328   ac_status=$?
39329   grep -v '^ *+' conftest.er1 >conftest.err
39330   rm -f conftest.er1
39331   cat conftest.err >&5
39332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333   (exit $ac_status); } && {
39334          test -z "$ac_c_werror_flag" ||
39335          test ! -s conftest.err
39336        } && test -s conftest$ac_exeext &&
39337        $as_test_x conftest$ac_exeext; then
39338   eval wx_cv_func_$wx_func=yes
39339 else
39340   echo "$as_me: failed program was:" >&5
39341 sed 's/^/| /' conftest.$ac_ext >&5
39342
39343         eval wx_cv_func_$wx_func=no
39344 fi
39345
39346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39347       conftest$ac_exeext conftest.$ac_ext
39348
39349 fi
39350 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39351                { echo "$as_me:$LINENO: result: $ac_res" >&5
39352 echo "${ECHO_T}$ac_res" >&6; }
39353
39354     if eval test \$wx_cv_func_$wx_func = yes
39355     then
39356       cat >>confdefs.h <<_ACEOF
39357 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39358 _ACEOF
39359
39360
39361     else
39362       :
39363       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39364 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39365
39366     fi
39367   done
39368
39369
39370
39371 fi
39372
39373
39374
39375 fi
39376 done
39377
39378 fi
39379
39380
39381   for wx_func in uname
39382   do
39383     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39384 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39385 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39386   echo $ECHO_N "(cached) $ECHO_C" >&6
39387 else
39388
39389         cat >conftest.$ac_ext <<_ACEOF
39390
39391             /* confdefs.h.  */
39392 _ACEOF
39393 cat confdefs.h >>conftest.$ac_ext
39394 cat >>conftest.$ac_ext <<_ACEOF
39395 /* end confdefs.h.  */
39396
39397                 #include <sys/utsname.h>
39398                 $ac_includes_default
39399
39400 int
39401 main ()
39402 {
39403
39404                 #ifndef $wx_func
39405                   &$wx_func;
39406                 #endif
39407
39408
39409   ;
39410   return 0;
39411 }
39412
39413 _ACEOF
39414 rm -f conftest.$ac_objext conftest$ac_exeext
39415 if { (ac_try="$ac_link"
39416 case "(($ac_try" in
39417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39418   *) ac_try_echo=$ac_try;;
39419 esac
39420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39421   (eval "$ac_link") 2>conftest.er1
39422   ac_status=$?
39423   grep -v '^ *+' conftest.er1 >conftest.err
39424   rm -f conftest.er1
39425   cat conftest.err >&5
39426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427   (exit $ac_status); } && {
39428          test -z "$ac_c_werror_flag" ||
39429          test ! -s conftest.err
39430        } && test -s conftest$ac_exeext &&
39431        $as_test_x conftest$ac_exeext; then
39432   eval wx_cv_func_$wx_func=yes
39433 else
39434   echo "$as_me: failed program was:" >&5
39435 sed 's/^/| /' conftest.$ac_ext >&5
39436
39437         eval wx_cv_func_$wx_func=no
39438 fi
39439
39440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39441       conftest$ac_exeext conftest.$ac_ext
39442
39443 fi
39444 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39445                { echo "$as_me:$LINENO: result: $ac_res" >&5
39446 echo "${ECHO_T}$ac_res" >&6; }
39447
39448     if eval test \$wx_cv_func_$wx_func = yes
39449     then
39450       cat >>confdefs.h <<_ACEOF
39451 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39452 _ACEOF
39453
39454
39455     else
39456       :
39457
39458     fi
39459   done
39460
39461 if test "$wx_cv_func_uname" != yes; then
39462
39463   for wx_func in gethostname
39464   do
39465     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39466 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39467 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39468   echo $ECHO_N "(cached) $ECHO_C" >&6
39469 else
39470
39471         cat >conftest.$ac_ext <<_ACEOF
39472
39473             /* confdefs.h.  */
39474 _ACEOF
39475 cat confdefs.h >>conftest.$ac_ext
39476 cat >>conftest.$ac_ext <<_ACEOF
39477 /* end confdefs.h.  */
39478
39479
39480                 $ac_includes_default
39481
39482 int
39483 main ()
39484 {
39485
39486                 #ifndef $wx_func
39487                   &$wx_func;
39488                 #endif
39489
39490
39491   ;
39492   return 0;
39493 }
39494
39495 _ACEOF
39496 rm -f conftest.$ac_objext conftest$ac_exeext
39497 if { (ac_try="$ac_link"
39498 case "(($ac_try" in
39499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39500   *) ac_try_echo=$ac_try;;
39501 esac
39502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39503   (eval "$ac_link") 2>conftest.er1
39504   ac_status=$?
39505   grep -v '^ *+' conftest.er1 >conftest.err
39506   rm -f conftest.er1
39507   cat conftest.err >&5
39508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509   (exit $ac_status); } && {
39510          test -z "$ac_c_werror_flag" ||
39511          test ! -s conftest.err
39512        } && test -s conftest$ac_exeext &&
39513        $as_test_x conftest$ac_exeext; then
39514   eval wx_cv_func_$wx_func=yes
39515 else
39516   echo "$as_me: failed program was:" >&5
39517 sed 's/^/| /' conftest.$ac_ext >&5
39518
39519         eval wx_cv_func_$wx_func=no
39520 fi
39521
39522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39523       conftest$ac_exeext conftest.$ac_ext
39524
39525 fi
39526 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39527                { echo "$as_me:$LINENO: result: $ac_res" >&5
39528 echo "${ECHO_T}$ac_res" >&6; }
39529
39530     if eval test \$wx_cv_func_$wx_func = yes
39531     then
39532       cat >>confdefs.h <<_ACEOF
39533 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39534 _ACEOF
39535
39536
39537     else
39538       :
39539
39540     fi
39541   done
39542
39543 fi
39544
39545
39546   for wx_func in strtok_r
39547   do
39548     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39549 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39550 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39551   echo $ECHO_N "(cached) $ECHO_C" >&6
39552 else
39553
39554         cat >conftest.$ac_ext <<_ACEOF
39555
39556             /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561
39562                 #define _REENTRANT
39563                 $ac_includes_default
39564
39565 int
39566 main ()
39567 {
39568
39569                 #ifndef $wx_func
39570                   &$wx_func;
39571                 #endif
39572
39573
39574   ;
39575   return 0;
39576 }
39577
39578 _ACEOF
39579 rm -f conftest.$ac_objext conftest$ac_exeext
39580 if { (ac_try="$ac_link"
39581 case "(($ac_try" in
39582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39583   *) ac_try_echo=$ac_try;;
39584 esac
39585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39586   (eval "$ac_link") 2>conftest.er1
39587   ac_status=$?
39588   grep -v '^ *+' conftest.er1 >conftest.err
39589   rm -f conftest.er1
39590   cat conftest.err >&5
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); } && {
39593          test -z "$ac_c_werror_flag" ||
39594          test ! -s conftest.err
39595        } && test -s conftest$ac_exeext &&
39596        $as_test_x conftest$ac_exeext; then
39597   eval wx_cv_func_$wx_func=yes
39598 else
39599   echo "$as_me: failed program was:" >&5
39600 sed 's/^/| /' conftest.$ac_ext >&5
39601
39602         eval wx_cv_func_$wx_func=no
39603 fi
39604
39605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39606       conftest$ac_exeext conftest.$ac_ext
39607
39608 fi
39609 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39610                { echo "$as_me:$LINENO: result: $ac_res" >&5
39611 echo "${ECHO_T}$ac_res" >&6; }
39612
39613     if eval test \$wx_cv_func_$wx_func = yes
39614     then
39615       cat >>confdefs.h <<_ACEOF
39616 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39617 _ACEOF
39618
39619
39620     else
39621       :
39622
39623     fi
39624   done
39625
39626
39627 INET_LINK=
39628
39629 for ac_func in inet_addr
39630 do
39631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39635   echo $ECHO_N "(cached) $ECHO_C" >&6
39636 else
39637   cat >conftest.$ac_ext <<_ACEOF
39638 /* confdefs.h.  */
39639 _ACEOF
39640 cat confdefs.h >>conftest.$ac_ext
39641 cat >>conftest.$ac_ext <<_ACEOF
39642 /* end confdefs.h.  */
39643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39645 #define $ac_func innocuous_$ac_func
39646
39647 /* System header to define __stub macros and hopefully few prototypes,
39648     which can conflict with char $ac_func (); below.
39649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39650     <limits.h> exists even on freestanding compilers.  */
39651
39652 #ifdef __STDC__
39653 # include <limits.h>
39654 #else
39655 # include <assert.h>
39656 #endif
39657
39658 #undef $ac_func
39659
39660 /* Override any GCC internal prototype to avoid an error.
39661    Use char because int might match the return type of a GCC
39662    builtin and then its argument prototype would still apply.  */
39663 #ifdef __cplusplus
39664 extern "C"
39665 #endif
39666 char $ac_func ();
39667 /* The GNU C library defines this for functions which it implements
39668     to always fail with ENOSYS.  Some functions are actually named
39669     something starting with __ and the normal name is an alias.  */
39670 #if defined __stub_$ac_func || defined __stub___$ac_func
39671 choke me
39672 #endif
39673
39674 int
39675 main ()
39676 {
39677 return $ac_func ();
39678   ;
39679   return 0;
39680 }
39681 _ACEOF
39682 rm -f conftest.$ac_objext conftest$ac_exeext
39683 if { (ac_try="$ac_link"
39684 case "(($ac_try" in
39685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39686   *) ac_try_echo=$ac_try;;
39687 esac
39688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39689   (eval "$ac_link") 2>conftest.er1
39690   ac_status=$?
39691   grep -v '^ *+' conftest.er1 >conftest.err
39692   rm -f conftest.er1
39693   cat conftest.err >&5
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); } && {
39696          test -z "$ac_c_werror_flag" ||
39697          test ! -s conftest.err
39698        } && test -s conftest$ac_exeext &&
39699        $as_test_x conftest$ac_exeext; then
39700   eval "$as_ac_var=yes"
39701 else
39702   echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39704
39705         eval "$as_ac_var=no"
39706 fi
39707
39708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39709       conftest$ac_exeext conftest.$ac_ext
39710 fi
39711 ac_res=`eval echo '${'$as_ac_var'}'`
39712                { echo "$as_me:$LINENO: result: $ac_res" >&5
39713 echo "${ECHO_T}$ac_res" >&6; }
39714 if test `eval echo '${'$as_ac_var'}'` = yes; then
39715   cat >>confdefs.h <<_ACEOF
39716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39717 _ACEOF
39718  cat >>confdefs.h <<\_ACEOF
39719 #define HAVE_INET_ADDR 1
39720 _ACEOF
39721
39722 else
39723
39724         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39725 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39726 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39727   echo $ECHO_N "(cached) $ECHO_C" >&6
39728 else
39729   ac_check_lib_save_LIBS=$LIBS
39730 LIBS="-lnsl  $LIBS"
39731 cat >conftest.$ac_ext <<_ACEOF
39732 /* confdefs.h.  */
39733 _ACEOF
39734 cat confdefs.h >>conftest.$ac_ext
39735 cat >>conftest.$ac_ext <<_ACEOF
39736 /* end confdefs.h.  */
39737
39738 /* Override any GCC internal prototype to avoid an error.
39739    Use char because int might match the return type of a GCC
39740    builtin and then its argument prototype would still apply.  */
39741 #ifdef __cplusplus
39742 extern "C"
39743 #endif
39744 char inet_addr ();
39745 int
39746 main ()
39747 {
39748 return inet_addr ();
39749   ;
39750   return 0;
39751 }
39752 _ACEOF
39753 rm -f conftest.$ac_objext conftest$ac_exeext
39754 if { (ac_try="$ac_link"
39755 case "(($ac_try" in
39756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757   *) ac_try_echo=$ac_try;;
39758 esac
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760   (eval "$ac_link") 2>conftest.er1
39761   ac_status=$?
39762   grep -v '^ *+' conftest.er1 >conftest.err
39763   rm -f conftest.er1
39764   cat conftest.err >&5
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); } && {
39767          test -z "$ac_c_werror_flag" ||
39768          test ! -s conftest.err
39769        } && test -s conftest$ac_exeext &&
39770        $as_test_x conftest$ac_exeext; then
39771   ac_cv_lib_nsl_inet_addr=yes
39772 else
39773   echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776         ac_cv_lib_nsl_inet_addr=no
39777 fi
39778
39779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39780       conftest$ac_exeext conftest.$ac_ext
39781 LIBS=$ac_check_lib_save_LIBS
39782 fi
39783 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39784 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39785 if test $ac_cv_lib_nsl_inet_addr = yes; then
39786   INET_LINK="nsl"
39787 else
39788
39789                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39790 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39791 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39792   echo $ECHO_N "(cached) $ECHO_C" >&6
39793 else
39794   ac_check_lib_save_LIBS=$LIBS
39795 LIBS="-lresolv  $LIBS"
39796 cat >conftest.$ac_ext <<_ACEOF
39797 /* confdefs.h.  */
39798 _ACEOF
39799 cat confdefs.h >>conftest.$ac_ext
39800 cat >>conftest.$ac_ext <<_ACEOF
39801 /* end confdefs.h.  */
39802
39803 /* Override any GCC internal prototype to avoid an error.
39804    Use char because int might match the return type of a GCC
39805    builtin and then its argument prototype would still apply.  */
39806 #ifdef __cplusplus
39807 extern "C"
39808 #endif
39809 char inet_addr ();
39810 int
39811 main ()
39812 {
39813 return inet_addr ();
39814   ;
39815   return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest.$ac_objext conftest$ac_exeext
39819 if { (ac_try="$ac_link"
39820 case "(($ac_try" in
39821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39822   *) ac_try_echo=$ac_try;;
39823 esac
39824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39825   (eval "$ac_link") 2>conftest.er1
39826   ac_status=$?
39827   grep -v '^ *+' conftest.er1 >conftest.err
39828   rm -f conftest.er1
39829   cat conftest.err >&5
39830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831   (exit $ac_status); } && {
39832          test -z "$ac_c_werror_flag" ||
39833          test ! -s conftest.err
39834        } && test -s conftest$ac_exeext &&
39835        $as_test_x conftest$ac_exeext; then
39836   ac_cv_lib_resolv_inet_addr=yes
39837 else
39838   echo "$as_me: failed program was:" >&5
39839 sed 's/^/| /' conftest.$ac_ext >&5
39840
39841         ac_cv_lib_resolv_inet_addr=no
39842 fi
39843
39844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39845       conftest$ac_exeext conftest.$ac_ext
39846 LIBS=$ac_check_lib_save_LIBS
39847 fi
39848 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39849 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39850 if test $ac_cv_lib_resolv_inet_addr = yes; then
39851   INET_LINK="resolv"
39852 else
39853
39854                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39855 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39856 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39857   echo $ECHO_N "(cached) $ECHO_C" >&6
39858 else
39859   ac_check_lib_save_LIBS=$LIBS
39860 LIBS="-lsocket  $LIBS"
39861 cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867
39868 /* Override any GCC internal prototype to avoid an error.
39869    Use char because int might match the return type of a GCC
39870    builtin and then its argument prototype would still apply.  */
39871 #ifdef __cplusplus
39872 extern "C"
39873 #endif
39874 char inet_addr ();
39875 int
39876 main ()
39877 {
39878 return inet_addr ();
39879   ;
39880   return 0;
39881 }
39882 _ACEOF
39883 rm -f conftest.$ac_objext conftest$ac_exeext
39884 if { (ac_try="$ac_link"
39885 case "(($ac_try" in
39886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39887   *) ac_try_echo=$ac_try;;
39888 esac
39889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39890   (eval "$ac_link") 2>conftest.er1
39891   ac_status=$?
39892   grep -v '^ *+' conftest.er1 >conftest.err
39893   rm -f conftest.er1
39894   cat conftest.err >&5
39895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896   (exit $ac_status); } && {
39897          test -z "$ac_c_werror_flag" ||
39898          test ! -s conftest.err
39899        } && test -s conftest$ac_exeext &&
39900        $as_test_x conftest$ac_exeext; then
39901   ac_cv_lib_socket_inet_addr=yes
39902 else
39903   echo "$as_me: failed program was:" >&5
39904 sed 's/^/| /' conftest.$ac_ext >&5
39905
39906         ac_cv_lib_socket_inet_addr=no
39907 fi
39908
39909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39910       conftest$ac_exeext conftest.$ac_ext
39911 LIBS=$ac_check_lib_save_LIBS
39912 fi
39913 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39914 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39915 if test $ac_cv_lib_socket_inet_addr = yes; then
39916   INET_LINK="socket"
39917
39918 fi
39919
39920
39921
39922 fi
39923
39924
39925
39926 fi
39927
39928
39929
39930 fi
39931 done
39932
39933
39934
39935 for ac_func in inet_aton
39936 do
39937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39941   echo $ECHO_N "(cached) $ECHO_C" >&6
39942 else
39943   cat >conftest.$ac_ext <<_ACEOF
39944 /* confdefs.h.  */
39945 _ACEOF
39946 cat confdefs.h >>conftest.$ac_ext
39947 cat >>conftest.$ac_ext <<_ACEOF
39948 /* end confdefs.h.  */
39949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39951 #define $ac_func innocuous_$ac_func
39952
39953 /* System header to define __stub macros and hopefully few prototypes,
39954     which can conflict with char $ac_func (); below.
39955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39956     <limits.h> exists even on freestanding compilers.  */
39957
39958 #ifdef __STDC__
39959 # include <limits.h>
39960 #else
39961 # include <assert.h>
39962 #endif
39963
39964 #undef $ac_func
39965
39966 /* Override any GCC internal prototype to avoid an error.
39967    Use char because int might match the return type of a GCC
39968    builtin and then its argument prototype would still apply.  */
39969 #ifdef __cplusplus
39970 extern "C"
39971 #endif
39972 char $ac_func ();
39973 /* The GNU C library defines this for functions which it implements
39974     to always fail with ENOSYS.  Some functions are actually named
39975     something starting with __ and the normal name is an alias.  */
39976 #if defined __stub_$ac_func || defined __stub___$ac_func
39977 choke me
39978 #endif
39979
39980 int
39981 main ()
39982 {
39983 return $ac_func ();
39984   ;
39985   return 0;
39986 }
39987 _ACEOF
39988 rm -f conftest.$ac_objext conftest$ac_exeext
39989 if { (ac_try="$ac_link"
39990 case "(($ac_try" in
39991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39992   *) ac_try_echo=$ac_try;;
39993 esac
39994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39995   (eval "$ac_link") 2>conftest.er1
39996   ac_status=$?
39997   grep -v '^ *+' conftest.er1 >conftest.err
39998   rm -f conftest.er1
39999   cat conftest.err >&5
40000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40001   (exit $ac_status); } && {
40002          test -z "$ac_c_werror_flag" ||
40003          test ! -s conftest.err
40004        } && test -s conftest$ac_exeext &&
40005        $as_test_x conftest$ac_exeext; then
40006   eval "$as_ac_var=yes"
40007 else
40008   echo "$as_me: failed program was:" >&5
40009 sed 's/^/| /' conftest.$ac_ext >&5
40010
40011         eval "$as_ac_var=no"
40012 fi
40013
40014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40015       conftest$ac_exeext conftest.$ac_ext
40016 fi
40017 ac_res=`eval echo '${'$as_ac_var'}'`
40018                { echo "$as_me:$LINENO: result: $ac_res" >&5
40019 echo "${ECHO_T}$ac_res" >&6; }
40020 if test `eval echo '${'$as_ac_var'}'` = yes; then
40021   cat >>confdefs.h <<_ACEOF
40022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40023 _ACEOF
40024  cat >>confdefs.h <<\_ACEOF
40025 #define HAVE_INET_ATON 1
40026 _ACEOF
40027
40028 else
40029
40030                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40031 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40032 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40033 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40034   echo $ECHO_N "(cached) $ECHO_C" >&6
40035 else
40036   ac_check_lib_save_LIBS=$LIBS
40037 LIBS="-l$INET_LINK  $LIBS"
40038 cat >conftest.$ac_ext <<_ACEOF
40039 /* confdefs.h.  */
40040 _ACEOF
40041 cat confdefs.h >>conftest.$ac_ext
40042 cat >>conftest.$ac_ext <<_ACEOF
40043 /* end confdefs.h.  */
40044
40045 /* Override any GCC internal prototype to avoid an error.
40046    Use char because int might match the return type of a GCC
40047    builtin and then its argument prototype would still apply.  */
40048 #ifdef __cplusplus
40049 extern "C"
40050 #endif
40051 char inet_aton ();
40052 int
40053 main ()
40054 {
40055 return inet_aton ();
40056   ;
40057   return 0;
40058 }
40059 _ACEOF
40060 rm -f conftest.$ac_objext conftest$ac_exeext
40061 if { (ac_try="$ac_link"
40062 case "(($ac_try" in
40063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40064   *) ac_try_echo=$ac_try;;
40065 esac
40066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40067   (eval "$ac_link") 2>conftest.er1
40068   ac_status=$?
40069   grep -v '^ *+' conftest.er1 >conftest.err
40070   rm -f conftest.er1
40071   cat conftest.err >&5
40072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073   (exit $ac_status); } && {
40074          test -z "$ac_c_werror_flag" ||
40075          test ! -s conftest.err
40076        } && test -s conftest$ac_exeext &&
40077        $as_test_x conftest$ac_exeext; then
40078   eval "$as_ac_Lib=yes"
40079 else
40080   echo "$as_me: failed program was:" >&5
40081 sed 's/^/| /' conftest.$ac_ext >&5
40082
40083         eval "$as_ac_Lib=no"
40084 fi
40085
40086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40087       conftest$ac_exeext conftest.$ac_ext
40088 LIBS=$ac_check_lib_save_LIBS
40089 fi
40090 ac_res=`eval echo '${'$as_ac_Lib'}'`
40091                { echo "$as_me:$LINENO: result: $ac_res" >&5
40092 echo "${ECHO_T}$ac_res" >&6; }
40093 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40094   cat >>confdefs.h <<\_ACEOF
40095 #define HAVE_INET_ATON 1
40096 _ACEOF
40097
40098 fi
40099
40100
40101 fi
40102 done
40103
40104
40105 if test "x$INET_LINK" != "x"; then
40106     cat >>confdefs.h <<\_ACEOF
40107 #define HAVE_INET_ADDR 1
40108 _ACEOF
40109
40110     INET_LINK=" -l$INET_LINK"
40111 fi
40112
40113
40114   for wx_func in fdopen
40115   do
40116     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40117 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40118 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121
40122         cat >conftest.$ac_ext <<_ACEOF
40123
40124             /* confdefs.h.  */
40125 _ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h.  */
40129
40130
40131                 $ac_includes_default
40132
40133 int
40134 main ()
40135 {
40136
40137                 #ifndef $wx_func
40138                   &$wx_func;
40139                 #endif
40140
40141
40142   ;
40143   return 0;
40144 }
40145
40146 _ACEOF
40147 rm -f conftest.$ac_objext conftest$ac_exeext
40148 if { (ac_try="$ac_link"
40149 case "(($ac_try" in
40150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40151   *) ac_try_echo=$ac_try;;
40152 esac
40153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40154   (eval "$ac_link") 2>conftest.er1
40155   ac_status=$?
40156   grep -v '^ *+' conftest.er1 >conftest.err
40157   rm -f conftest.er1
40158   cat conftest.err >&5
40159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160   (exit $ac_status); } && {
40161          test -z "$ac_c_werror_flag" ||
40162          test ! -s conftest.err
40163        } && test -s conftest$ac_exeext &&
40164        $as_test_x conftest$ac_exeext; then
40165   eval wx_cv_func_$wx_func=yes
40166 else
40167   echo "$as_me: failed program was:" >&5
40168 sed 's/^/| /' conftest.$ac_ext >&5
40169
40170         eval wx_cv_func_$wx_func=no
40171 fi
40172
40173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40174       conftest$ac_exeext conftest.$ac_ext
40175
40176 fi
40177 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40178                { echo "$as_me:$LINENO: result: $ac_res" >&5
40179 echo "${ECHO_T}$ac_res" >&6; }
40180
40181     if eval test \$wx_cv_func_$wx_func = yes
40182     then
40183       cat >>confdefs.h <<_ACEOF
40184 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40185 _ACEOF
40186
40187
40188     else
40189       :
40190
40191     fi
40192   done
40193
40194
40195 if test "$wxUSE_TARSTREAM" = "yes"; then
40196
40197   for wx_func in sysconf
40198   do
40199     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40200 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40201 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40202   echo $ECHO_N "(cached) $ECHO_C" >&6
40203 else
40204
40205         cat >conftest.$ac_ext <<_ACEOF
40206
40207             /* confdefs.h.  */
40208 _ACEOF
40209 cat confdefs.h >>conftest.$ac_ext
40210 cat >>conftest.$ac_ext <<_ACEOF
40211 /* end confdefs.h.  */
40212
40213
40214                 $ac_includes_default
40215
40216 int
40217 main ()
40218 {
40219
40220                 #ifndef $wx_func
40221                   &$wx_func;
40222                 #endif
40223
40224
40225   ;
40226   return 0;
40227 }
40228
40229 _ACEOF
40230 rm -f conftest.$ac_objext conftest$ac_exeext
40231 if { (ac_try="$ac_link"
40232 case "(($ac_try" in
40233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40234   *) ac_try_echo=$ac_try;;
40235 esac
40236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40237   (eval "$ac_link") 2>conftest.er1
40238   ac_status=$?
40239   grep -v '^ *+' conftest.er1 >conftest.err
40240   rm -f conftest.er1
40241   cat conftest.err >&5
40242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243   (exit $ac_status); } && {
40244          test -z "$ac_c_werror_flag" ||
40245          test ! -s conftest.err
40246        } && test -s conftest$ac_exeext &&
40247        $as_test_x conftest$ac_exeext; then
40248   eval wx_cv_func_$wx_func=yes
40249 else
40250   echo "$as_me: failed program was:" >&5
40251 sed 's/^/| /' conftest.$ac_ext >&5
40252
40253         eval wx_cv_func_$wx_func=no
40254 fi
40255
40256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40257       conftest$ac_exeext conftest.$ac_ext
40258
40259 fi
40260 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40261                { echo "$as_me:$LINENO: result: $ac_res" >&5
40262 echo "${ECHO_T}$ac_res" >&6; }
40263
40264     if eval test \$wx_cv_func_$wx_func = yes
40265     then
40266       cat >>confdefs.h <<_ACEOF
40267 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40268 _ACEOF
40269
40270
40271     else
40272       :
40273
40274     fi
40275   done
40276
40277
40278
40279   for wx_func in getpwuid_r
40280   do
40281     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40282 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40283 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40284   echo $ECHO_N "(cached) $ECHO_C" >&6
40285 else
40286
40287         cat >conftest.$ac_ext <<_ACEOF
40288
40289             /* confdefs.h.  */
40290 _ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h.  */
40294
40295
40296                     #define _REENTRANT
40297                     #include <pwd.h>
40298
40299                 $ac_includes_default
40300
40301 int
40302 main ()
40303 {
40304
40305                 #ifndef $wx_func
40306                   &$wx_func;
40307                 #endif
40308
40309                     struct passwd pw, *ppw;
40310                     char buf[1024];
40311                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40312
40313
40314   ;
40315   return 0;
40316 }
40317
40318 _ACEOF
40319 rm -f conftest.$ac_objext conftest$ac_exeext
40320 if { (ac_try="$ac_link"
40321 case "(($ac_try" in
40322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40323   *) ac_try_echo=$ac_try;;
40324 esac
40325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40326   (eval "$ac_link") 2>conftest.er1
40327   ac_status=$?
40328   grep -v '^ *+' conftest.er1 >conftest.err
40329   rm -f conftest.er1
40330   cat conftest.err >&5
40331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332   (exit $ac_status); } && {
40333          test -z "$ac_c_werror_flag" ||
40334          test ! -s conftest.err
40335        } && test -s conftest$ac_exeext &&
40336        $as_test_x conftest$ac_exeext; then
40337   eval wx_cv_func_$wx_func=yes
40338 else
40339   echo "$as_me: failed program was:" >&5
40340 sed 's/^/| /' conftest.$ac_ext >&5
40341
40342         eval wx_cv_func_$wx_func=no
40343 fi
40344
40345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40346       conftest$ac_exeext conftest.$ac_ext
40347
40348 fi
40349 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40350                { echo "$as_me:$LINENO: result: $ac_res" >&5
40351 echo "${ECHO_T}$ac_res" >&6; }
40352
40353     if eval test \$wx_cv_func_$wx_func = yes
40354     then
40355       cat >>confdefs.h <<_ACEOF
40356 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40357 _ACEOF
40358
40359
40360     else
40361       :
40362
40363     fi
40364   done
40365
40366
40367
40368   for wx_func in getgrgid_r
40369   do
40370     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40371 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40372 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40373   echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40375
40376         cat >conftest.$ac_ext <<_ACEOF
40377
40378             /* confdefs.h.  */
40379 _ACEOF
40380 cat confdefs.h >>conftest.$ac_ext
40381 cat >>conftest.$ac_ext <<_ACEOF
40382 /* end confdefs.h.  */
40383
40384
40385                     #define _REENTRANT
40386                     #include <grp.h>
40387
40388                 $ac_includes_default
40389
40390 int
40391 main ()
40392 {
40393
40394                 #ifndef $wx_func
40395                   &$wx_func;
40396                 #endif
40397
40398                     struct group grp, *pgrp;
40399                     char buf[1024];
40400                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40401
40402
40403   ;
40404   return 0;
40405 }
40406
40407 _ACEOF
40408 rm -f conftest.$ac_objext conftest$ac_exeext
40409 if { (ac_try="$ac_link"
40410 case "(($ac_try" in
40411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40412   *) ac_try_echo=$ac_try;;
40413 esac
40414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40415   (eval "$ac_link") 2>conftest.er1
40416   ac_status=$?
40417   grep -v '^ *+' conftest.er1 >conftest.err
40418   rm -f conftest.er1
40419   cat conftest.err >&5
40420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421   (exit $ac_status); } && {
40422          test -z "$ac_c_werror_flag" ||
40423          test ! -s conftest.err
40424        } && test -s conftest$ac_exeext &&
40425        $as_test_x conftest$ac_exeext; then
40426   eval wx_cv_func_$wx_func=yes
40427 else
40428   echo "$as_me: failed program was:" >&5
40429 sed 's/^/| /' conftest.$ac_ext >&5
40430
40431         eval wx_cv_func_$wx_func=no
40432 fi
40433
40434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40435       conftest$ac_exeext conftest.$ac_ext
40436
40437 fi
40438 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40439                { echo "$as_me:$LINENO: result: $ac_res" >&5
40440 echo "${ECHO_T}$ac_res" >&6; }
40441
40442     if eval test \$wx_cv_func_$wx_func = yes
40443     then
40444       cat >>confdefs.h <<_ACEOF
40445 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40446 _ACEOF
40447
40448
40449     else
40450       :
40451
40452     fi
40453   done
40454
40455 fi
40456
40457 fi
40458
40459
40460
40461 cat >confcache <<\_ACEOF
40462 # This file is a shell script that caches the results of configure
40463 # tests run on this system so they can be shared between configure
40464 # scripts and configure runs, see configure's option --config-cache.
40465 # It is not useful on other systems.  If it contains results you don't
40466 # want to keep, you may remove or edit it.
40467 #
40468 # config.status only pays attention to the cache file if you give it
40469 # the --recheck option to rerun configure.
40470 #
40471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40473 # following values.
40474
40475 _ACEOF
40476
40477 # The following way of writing the cache mishandles newlines in values,
40478 # but we know of no workaround that is simple, portable, and efficient.
40479 # So, we kill variables containing newlines.
40480 # Ultrix sh set writes to stderr and can't be redirected directly,
40481 # and sets the high bit in the cache file unless we assign to the vars.
40482 (
40483   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40484     eval ac_val=\$$ac_var
40485     case $ac_val in #(
40486     *${as_nl}*)
40487       case $ac_var in #(
40488       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40489 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40490       esac
40491       case $ac_var in #(
40492       _ | IFS | as_nl) ;; #(
40493       *) $as_unset $ac_var ;;
40494       esac ;;
40495     esac
40496   done
40497
40498   (set) 2>&1 |
40499     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40500     *${as_nl}ac_space=\ *)
40501       # `set' does not quote correctly, so add quotes (double-quote
40502       # substitution turns \\\\ into \\, and sed turns \\ into \).
40503       sed -n \
40504         "s/'/'\\\\''/g;
40505           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40506       ;; #(
40507     *)
40508       # `set' quotes correctly as required by POSIX, so do not add quotes.
40509       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40510       ;;
40511     esac |
40512     sort
40513 ) |
40514   sed '
40515      /^ac_cv_env_/b end
40516      t clear
40517      :clear
40518      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40519      t end
40520      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40521      :end' >>confcache
40522 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40523   if test -w "$cache_file"; then
40524     test "x$cache_file" != "x/dev/null" &&
40525       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40526 echo "$as_me: updating cache $cache_file" >&6;}
40527     cat confcache >$cache_file
40528   else
40529     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40530 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40531   fi
40532 fi
40533 rm -f confcache
40534
40535
40536 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40537
40538
40539     THREADS_LINK=
40540     THREADS_CFLAGS=
40541
40542     if test "$wxUSE_THREADS" = "yes" ; then
40543         if test "$USE_BEOS" = 1; then
40544             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40545 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40546             wxUSE_THREADS="no"
40547         fi
40548     fi
40549
40550     if test "$wxUSE_THREADS" = "yes" ; then
40551
40552
40553                                 THREAD_OPTS="-pthread"
40554         if test "x$SUNCXX" = xyes; then
40555             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40556         fi
40557
40558         case "${host}" in
40559           *-*-solaris2* | *-*-sunos4* )
40560                 if test "x$GCC" = "xyes"; then
40561                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40562                 fi
40563                 ;;
40564           *-*-freebsd*)
40565                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40566                 ;;
40567           *-*-darwin* | *-*-cygwin* )
40568                                                 THREAD_OPTS=""
40569                 ;;
40570           *-*-aix*)
40571                                 THREAD_OPTS="pthreads"
40572                 ;;
40573           *-hp-hpux* )
40574                 if test "x$GCC" = "xyes"; then
40575                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40576                         THREAD_OPTS=""
40577                 else
40578                                                             THREAD_OPTS="-mt"
40579                 fi
40580                 ;;
40581
40582           *-*-irix* )
40583                                                                 if test "x$GCC" = "xyes"; then
40584                     THREAD_OPTS=""
40585                 fi
40586                 ;;
40587
40588           *-*-qnx*)
40589                                                 THREAD_OPTS=""
40590                 ;;
40591
40592           *-*-*UnixWare*)
40593                                 if test "x$GCC" != "xyes"; then
40594                     THREAD_OPTS="-Ethread"
40595                 fi
40596                 ;;
40597         esac
40598
40599         case "${host}" in
40600             *-*-qnx*)
40601                                                                 THREAD_OPTS="none pthread"
40602                 ;;
40603
40604             *)
40605                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40606                 ;;
40607         esac
40608
40609                 THREADS_OK=no
40610         for flag in $THREAD_OPTS; do
40611             case $flag in
40612                 none)
40613                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40614 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40615                     ;;
40616
40617                 -*)
40618                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40619 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40620                     THREADS_CFLAGS="$flag"
40621                     ;;
40622
40623                 *)
40624                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40625 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40626                     THREADS_LINK="-l$flag"
40627                     ;;
40628               esac
40629
40630               save_LIBS="$LIBS"
40631               save_CFLAGS="$CFLAGS"
40632               LIBS="$THREADS_LINK $LIBS"
40633               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40634
40635               cat >conftest.$ac_ext <<_ACEOF
40636 /* confdefs.h.  */
40637 _ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h.  */
40641 #include <pthread.h>
40642 int
40643 main ()
40644 {
40645 pthread_create(0,0,0,0);
40646   ;
40647   return 0;
40648 }
40649 _ACEOF
40650 rm -f conftest.$ac_objext conftest$ac_exeext
40651 if { (ac_try="$ac_link"
40652 case "(($ac_try" in
40653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40654   *) ac_try_echo=$ac_try;;
40655 esac
40656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40657   (eval "$ac_link") 2>conftest.er1
40658   ac_status=$?
40659   grep -v '^ *+' conftest.er1 >conftest.err
40660   rm -f conftest.er1
40661   cat conftest.err >&5
40662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663   (exit $ac_status); } && {
40664          test -z "$ac_c_werror_flag" ||
40665          test ! -s conftest.err
40666        } && test -s conftest$ac_exeext &&
40667        $as_test_x conftest$ac_exeext; then
40668   THREADS_OK=yes
40669 else
40670   echo "$as_me: failed program was:" >&5
40671 sed 's/^/| /' conftest.$ac_ext >&5
40672
40673
40674 fi
40675
40676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40677       conftest$ac_exeext conftest.$ac_ext
40678
40679               LIBS="$save_LIBS"
40680               CFLAGS="$save_CFLAGS"
40681
40682               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40683 echo "${ECHO_T}$THREADS_OK" >&6; }
40684               if test "x$THREADS_OK" = "xyes"; then
40685                       break;
40686               fi
40687
40688               THREADS_LINK=""
40689               THREADS_CFLAGS=""
40690       done
40691
40692       if test "x$THREADS_OK" != "xyes"; then
40693           wxUSE_THREADS=no
40694           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40695 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40696       else
40697                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40698           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40699           LIBS="$THREADS_LINK $LIBS"
40700
40701           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40702 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40703           flag=no
40704           case "${host}" in
40705             *-aix*)
40706                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40707                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40708                 flag="-D_THREAD_SAFE"
40709                 ;;
40710             *-freebsd*)
40711                 flag="-D_THREAD_SAFE"
40712                 ;;
40713             *-hp-hpux* )
40714                 flag="-D_REENTRANT"
40715                 if test "x$GCC" != "xyes"; then
40716                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40717                 fi
40718                 ;;
40719             *solaris* | alpha*-osf*)
40720                 flag="-D_REENTRANT"
40721                 ;;
40722           esac
40723           { echo "$as_me:$LINENO: result: ${flag}" >&5
40724 echo "${ECHO_T}${flag}" >&6; }
40725           if test "x$flag" != xno; then
40726               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40727           fi
40728
40729                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40730       fi
40731     fi
40732
40733         if test "$wxUSE_THREADS" = "yes" ; then
40734
40735 for ac_func in thr_setconcurrency
40736 do
40737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40741   echo $ECHO_N "(cached) $ECHO_C" >&6
40742 else
40743   cat >conftest.$ac_ext <<_ACEOF
40744 /* confdefs.h.  */
40745 _ACEOF
40746 cat confdefs.h >>conftest.$ac_ext
40747 cat >>conftest.$ac_ext <<_ACEOF
40748 /* end confdefs.h.  */
40749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40751 #define $ac_func innocuous_$ac_func
40752
40753 /* System header to define __stub macros and hopefully few prototypes,
40754     which can conflict with char $ac_func (); below.
40755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40756     <limits.h> exists even on freestanding compilers.  */
40757
40758 #ifdef __STDC__
40759 # include <limits.h>
40760 #else
40761 # include <assert.h>
40762 #endif
40763
40764 #undef $ac_func
40765
40766 /* Override any GCC internal prototype to avoid an error.
40767    Use char because int might match the return type of a GCC
40768    builtin and then its argument prototype would still apply.  */
40769 #ifdef __cplusplus
40770 extern "C"
40771 #endif
40772 char $ac_func ();
40773 /* The GNU C library defines this for functions which it implements
40774     to always fail with ENOSYS.  Some functions are actually named
40775     something starting with __ and the normal name is an alias.  */
40776 #if defined __stub_$ac_func || defined __stub___$ac_func
40777 choke me
40778 #endif
40779
40780 int
40781 main ()
40782 {
40783 return $ac_func ();
40784   ;
40785   return 0;
40786 }
40787 _ACEOF
40788 rm -f conftest.$ac_objext conftest$ac_exeext
40789 if { (ac_try="$ac_link"
40790 case "(($ac_try" in
40791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40792   *) ac_try_echo=$ac_try;;
40793 esac
40794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40795   (eval "$ac_link") 2>conftest.er1
40796   ac_status=$?
40797   grep -v '^ *+' conftest.er1 >conftest.err
40798   rm -f conftest.er1
40799   cat conftest.err >&5
40800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801   (exit $ac_status); } && {
40802          test -z "$ac_c_werror_flag" ||
40803          test ! -s conftest.err
40804        } && test -s conftest$ac_exeext &&
40805        $as_test_x conftest$ac_exeext; then
40806   eval "$as_ac_var=yes"
40807 else
40808   echo "$as_me: failed program was:" >&5
40809 sed 's/^/| /' conftest.$ac_ext >&5
40810
40811         eval "$as_ac_var=no"
40812 fi
40813
40814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40815       conftest$ac_exeext conftest.$ac_ext
40816 fi
40817 ac_res=`eval echo '${'$as_ac_var'}'`
40818                { echo "$as_me:$LINENO: result: $ac_res" >&5
40819 echo "${ECHO_T}$ac_res" >&6; }
40820 if test `eval echo '${'$as_ac_var'}'` = yes; then
40821   cat >>confdefs.h <<_ACEOF
40822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40823 _ACEOF
40824
40825 fi
40826 done
40827
40828
40829                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40830 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40831 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40832   echo $ECHO_N "(cached) $ECHO_C" >&6
40833 else
40834
40835                                 ac_ext=cpp
40836 ac_cpp='$CXXCPP $CPPFLAGS'
40837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40840
40841         cat >conftest.$ac_ext <<_ACEOF
40842 /* confdefs.h.  */
40843 _ACEOF
40844 cat confdefs.h >>conftest.$ac_ext
40845 cat >>conftest.$ac_ext <<_ACEOF
40846 /* end confdefs.h.  */
40847 #include <pthread.h>
40848                void ThreadCleanupFunc(void *p);
40849
40850 int
40851 main ()
40852 {
40853
40854                 void *p;
40855                 pthread_cleanup_push(ThreadCleanupFunc, p);
40856                 pthread_cleanup_pop(0);
40857
40858   ;
40859   return 0;
40860 }
40861 _ACEOF
40862 rm -f conftest.$ac_objext
40863 if { (ac_try="$ac_compile"
40864 case "(($ac_try" in
40865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40866   *) ac_try_echo=$ac_try;;
40867 esac
40868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40869   (eval "$ac_compile") 2>conftest.er1
40870   ac_status=$?
40871   grep -v '^ *+' conftest.er1 >conftest.err
40872   rm -f conftest.er1
40873   cat conftest.err >&5
40874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875   (exit $ac_status); } && {
40876          test -z "$ac_cxx_werror_flag" ||
40877          test ! -s conftest.err
40878        } && test -s conftest.$ac_objext; then
40879
40880                wx_cv_func_pthread_cleanup=yes
40881
40882 else
40883   echo "$as_me: failed program was:" >&5
40884 sed 's/^/| /' conftest.$ac_ext >&5
40885
40886
40887                wx_cv_func_pthread_cleanup=no
40888
40889
40890 fi
40891
40892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40893         ac_ext=c
40894 ac_cpp='$CPP $CPPFLAGS'
40895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40898
40899
40900 fi
40901 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40902 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40903       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40904         cat >>confdefs.h <<\_ACEOF
40905 #define wxHAVE_PTHREAD_CLEANUP 1
40906 _ACEOF
40907
40908       fi
40909
40910
40911 for ac_header in sched.h
40912 do
40913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40917   echo $ECHO_N "(cached) $ECHO_C" >&6
40918 else
40919   cat >conftest.$ac_ext <<_ACEOF
40920 /* confdefs.h.  */
40921 _ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h.  */
40925 $ac_includes_default
40926
40927 #include <$ac_header>
40928 _ACEOF
40929 rm -f conftest.$ac_objext
40930 if { (ac_try="$ac_compile"
40931 case "(($ac_try" in
40932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40933   *) ac_try_echo=$ac_try;;
40934 esac
40935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40936   (eval "$ac_compile") 2>conftest.er1
40937   ac_status=$?
40938   grep -v '^ *+' conftest.er1 >conftest.err
40939   rm -f conftest.er1
40940   cat conftest.err >&5
40941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942   (exit $ac_status); } && {
40943          test -z "$ac_c_werror_flag" ||
40944          test ! -s conftest.err
40945        } && test -s conftest.$ac_objext; then
40946   eval "$as_ac_Header=yes"
40947 else
40948   echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40950
40951         eval "$as_ac_Header=no"
40952 fi
40953
40954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40955 fi
40956 ac_res=`eval echo '${'$as_ac_Header'}'`
40957                { echo "$as_me:$LINENO: result: $ac_res" >&5
40958 echo "${ECHO_T}$ac_res" >&6; }
40959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40960   cat >>confdefs.h <<_ACEOF
40961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40962 _ACEOF
40963
40964 fi
40965
40966 done
40967
40968       if test "$ac_cv_header_sched_h" = "yes"; then
40969           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40970 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40971 if test "${ac_cv_func_sched_yield+set}" = set; then
40972   echo $ECHO_N "(cached) $ECHO_C" >&6
40973 else
40974   cat >conftest.$ac_ext <<_ACEOF
40975 /* confdefs.h.  */
40976 _ACEOF
40977 cat confdefs.h >>conftest.$ac_ext
40978 cat >>conftest.$ac_ext <<_ACEOF
40979 /* end confdefs.h.  */
40980 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40982 #define sched_yield innocuous_sched_yield
40983
40984 /* System header to define __stub macros and hopefully few prototypes,
40985     which can conflict with char sched_yield (); below.
40986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40987     <limits.h> exists even on freestanding compilers.  */
40988
40989 #ifdef __STDC__
40990 # include <limits.h>
40991 #else
40992 # include <assert.h>
40993 #endif
40994
40995 #undef sched_yield
40996
40997 /* Override any GCC internal prototype to avoid an error.
40998    Use char because int might match the return type of a GCC
40999    builtin and then its argument prototype would still apply.  */
41000 #ifdef __cplusplus
41001 extern "C"
41002 #endif
41003 char sched_yield ();
41004 /* The GNU C library defines this for functions which it implements
41005     to always fail with ENOSYS.  Some functions are actually named
41006     something starting with __ and the normal name is an alias.  */
41007 #if defined __stub_sched_yield || defined __stub___sched_yield
41008 choke me
41009 #endif
41010
41011 int
41012 main ()
41013 {
41014 return sched_yield ();
41015   ;
41016   return 0;
41017 }
41018 _ACEOF
41019 rm -f conftest.$ac_objext conftest$ac_exeext
41020 if { (ac_try="$ac_link"
41021 case "(($ac_try" in
41022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023   *) ac_try_echo=$ac_try;;
41024 esac
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026   (eval "$ac_link") 2>conftest.er1
41027   ac_status=$?
41028   grep -v '^ *+' conftest.er1 >conftest.err
41029   rm -f conftest.er1
41030   cat conftest.err >&5
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); } && {
41033          test -z "$ac_c_werror_flag" ||
41034          test ! -s conftest.err
41035        } && test -s conftest$ac_exeext &&
41036        $as_test_x conftest$ac_exeext; then
41037   ac_cv_func_sched_yield=yes
41038 else
41039   echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41041
41042         ac_cv_func_sched_yield=no
41043 fi
41044
41045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41046       conftest$ac_exeext conftest.$ac_ext
41047 fi
41048 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41049 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41050 if test $ac_cv_func_sched_yield = yes; then
41051   cat >>confdefs.h <<\_ACEOF
41052 #define HAVE_SCHED_YIELD 1
41053 _ACEOF
41054
41055 else
41056
41057                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41058 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41059 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41060   echo $ECHO_N "(cached) $ECHO_C" >&6
41061 else
41062   ac_check_lib_save_LIBS=$LIBS
41063 LIBS="-lposix4  $LIBS"
41064 cat >conftest.$ac_ext <<_ACEOF
41065 /* confdefs.h.  */
41066 _ACEOF
41067 cat confdefs.h >>conftest.$ac_ext
41068 cat >>conftest.$ac_ext <<_ACEOF
41069 /* end confdefs.h.  */
41070
41071 /* Override any GCC internal prototype to avoid an error.
41072    Use char because int might match the return type of a GCC
41073    builtin and then its argument prototype would still apply.  */
41074 #ifdef __cplusplus
41075 extern "C"
41076 #endif
41077 char sched_yield ();
41078 int
41079 main ()
41080 {
41081 return sched_yield ();
41082   ;
41083   return 0;
41084 }
41085 _ACEOF
41086 rm -f conftest.$ac_objext conftest$ac_exeext
41087 if { (ac_try="$ac_link"
41088 case "(($ac_try" in
41089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41090   *) ac_try_echo=$ac_try;;
41091 esac
41092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41093   (eval "$ac_link") 2>conftest.er1
41094   ac_status=$?
41095   grep -v '^ *+' conftest.er1 >conftest.err
41096   rm -f conftest.er1
41097   cat conftest.err >&5
41098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099   (exit $ac_status); } && {
41100          test -z "$ac_c_werror_flag" ||
41101          test ! -s conftest.err
41102        } && test -s conftest$ac_exeext &&
41103        $as_test_x conftest$ac_exeext; then
41104   ac_cv_lib_posix4_sched_yield=yes
41105 else
41106   echo "$as_me: failed program was:" >&5
41107 sed 's/^/| /' conftest.$ac_ext >&5
41108
41109         ac_cv_lib_posix4_sched_yield=no
41110 fi
41111
41112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41113       conftest$ac_exeext conftest.$ac_ext
41114 LIBS=$ac_check_lib_save_LIBS
41115 fi
41116 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41117 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41118 if test $ac_cv_lib_posix4_sched_yield = yes; then
41119   cat >>confdefs.h <<\_ACEOF
41120 #define HAVE_SCHED_YIELD 1
41121 _ACEOF
41122  POSIX4_LINK=" -lposix4"
41123 else
41124   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41125 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41126
41127 fi
41128
41129
41130
41131 fi
41132
41133       fi
41134
41135                                           HAVE_PRIOR_FUNCS=0
41136       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41137 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41138 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41139   echo $ECHO_N "(cached) $ECHO_C" >&6
41140 else
41141   cat >conftest.$ac_ext <<_ACEOF
41142 /* confdefs.h.  */
41143 _ACEOF
41144 cat confdefs.h >>conftest.$ac_ext
41145 cat >>conftest.$ac_ext <<_ACEOF
41146 /* end confdefs.h.  */
41147 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41149 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41150
41151 /* System header to define __stub macros and hopefully few prototypes,
41152     which can conflict with char pthread_attr_getschedpolicy (); below.
41153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41154     <limits.h> exists even on freestanding compilers.  */
41155
41156 #ifdef __STDC__
41157 # include <limits.h>
41158 #else
41159 # include <assert.h>
41160 #endif
41161
41162 #undef pthread_attr_getschedpolicy
41163
41164 /* Override any GCC internal prototype to avoid an error.
41165    Use char because int might match the return type of a GCC
41166    builtin and then its argument prototype would still apply.  */
41167 #ifdef __cplusplus
41168 extern "C"
41169 #endif
41170 char pthread_attr_getschedpolicy ();
41171 /* The GNU C library defines this for functions which it implements
41172     to always fail with ENOSYS.  Some functions are actually named
41173     something starting with __ and the normal name is an alias.  */
41174 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41175 choke me
41176 #endif
41177
41178 int
41179 main ()
41180 {
41181 return pthread_attr_getschedpolicy ();
41182   ;
41183   return 0;
41184 }
41185 _ACEOF
41186 rm -f conftest.$ac_objext conftest$ac_exeext
41187 if { (ac_try="$ac_link"
41188 case "(($ac_try" in
41189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41190   *) ac_try_echo=$ac_try;;
41191 esac
41192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41193   (eval "$ac_link") 2>conftest.er1
41194   ac_status=$?
41195   grep -v '^ *+' conftest.er1 >conftest.err
41196   rm -f conftest.er1
41197   cat conftest.err >&5
41198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199   (exit $ac_status); } && {
41200          test -z "$ac_c_werror_flag" ||
41201          test ! -s conftest.err
41202        } && test -s conftest$ac_exeext &&
41203        $as_test_x conftest$ac_exeext; then
41204   ac_cv_func_pthread_attr_getschedpolicy=yes
41205 else
41206   echo "$as_me: failed program was:" >&5
41207 sed 's/^/| /' conftest.$ac_ext >&5
41208
41209         ac_cv_func_pthread_attr_getschedpolicy=no
41210 fi
41211
41212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41213       conftest$ac_exeext conftest.$ac_ext
41214 fi
41215 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41216 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41217 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41218   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41219 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41220 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41221   echo $ECHO_N "(cached) $ECHO_C" >&6
41222 else
41223   cat >conftest.$ac_ext <<_ACEOF
41224 /* confdefs.h.  */
41225 _ACEOF
41226 cat confdefs.h >>conftest.$ac_ext
41227 cat >>conftest.$ac_ext <<_ACEOF
41228 /* end confdefs.h.  */
41229 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41231 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41232
41233 /* System header to define __stub macros and hopefully few prototypes,
41234     which can conflict with char pthread_attr_setschedparam (); below.
41235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41236     <limits.h> exists even on freestanding compilers.  */
41237
41238 #ifdef __STDC__
41239 # include <limits.h>
41240 #else
41241 # include <assert.h>
41242 #endif
41243
41244 #undef pthread_attr_setschedparam
41245
41246 /* Override any GCC internal prototype to avoid an error.
41247    Use char because int might match the return type of a GCC
41248    builtin and then its argument prototype would still apply.  */
41249 #ifdef __cplusplus
41250 extern "C"
41251 #endif
41252 char pthread_attr_setschedparam ();
41253 /* The GNU C library defines this for functions which it implements
41254     to always fail with ENOSYS.  Some functions are actually named
41255     something starting with __ and the normal name is an alias.  */
41256 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41257 choke me
41258 #endif
41259
41260 int
41261 main ()
41262 {
41263 return pthread_attr_setschedparam ();
41264   ;
41265   return 0;
41266 }
41267 _ACEOF
41268 rm -f conftest.$ac_objext conftest$ac_exeext
41269 if { (ac_try="$ac_link"
41270 case "(($ac_try" in
41271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41272   *) ac_try_echo=$ac_try;;
41273 esac
41274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41275   (eval "$ac_link") 2>conftest.er1
41276   ac_status=$?
41277   grep -v '^ *+' conftest.er1 >conftest.err
41278   rm -f conftest.er1
41279   cat conftest.err >&5
41280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281   (exit $ac_status); } && {
41282          test -z "$ac_c_werror_flag" ||
41283          test ! -s conftest.err
41284        } && test -s conftest$ac_exeext &&
41285        $as_test_x conftest$ac_exeext; then
41286   ac_cv_func_pthread_attr_setschedparam=yes
41287 else
41288   echo "$as_me: failed program was:" >&5
41289 sed 's/^/| /' conftest.$ac_ext >&5
41290
41291         ac_cv_func_pthread_attr_setschedparam=no
41292 fi
41293
41294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41295       conftest$ac_exeext conftest.$ac_ext
41296 fi
41297 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41298 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41299 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41300   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41301 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41302 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41303   echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305   cat >conftest.$ac_ext <<_ACEOF
41306 /* confdefs.h.  */
41307 _ACEOF
41308 cat confdefs.h >>conftest.$ac_ext
41309 cat >>conftest.$ac_ext <<_ACEOF
41310 /* end confdefs.h.  */
41311 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41313 #define sched_get_priority_max innocuous_sched_get_priority_max
41314
41315 /* System header to define __stub macros and hopefully few prototypes,
41316     which can conflict with char sched_get_priority_max (); below.
41317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41318     <limits.h> exists even on freestanding compilers.  */
41319
41320 #ifdef __STDC__
41321 # include <limits.h>
41322 #else
41323 # include <assert.h>
41324 #endif
41325
41326 #undef sched_get_priority_max
41327
41328 /* Override any GCC internal prototype to avoid an error.
41329    Use char because int might match the return type of a GCC
41330    builtin and then its argument prototype would still apply.  */
41331 #ifdef __cplusplus
41332 extern "C"
41333 #endif
41334 char sched_get_priority_max ();
41335 /* The GNU C library defines this for functions which it implements
41336     to always fail with ENOSYS.  Some functions are actually named
41337     something starting with __ and the normal name is an alias.  */
41338 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41339 choke me
41340 #endif
41341
41342 int
41343 main ()
41344 {
41345 return sched_get_priority_max ();
41346   ;
41347   return 0;
41348 }
41349 _ACEOF
41350 rm -f conftest.$ac_objext conftest$ac_exeext
41351 if { (ac_try="$ac_link"
41352 case "(($ac_try" in
41353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41354   *) ac_try_echo=$ac_try;;
41355 esac
41356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41357   (eval "$ac_link") 2>conftest.er1
41358   ac_status=$?
41359   grep -v '^ *+' conftest.er1 >conftest.err
41360   rm -f conftest.er1
41361   cat conftest.err >&5
41362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363   (exit $ac_status); } && {
41364          test -z "$ac_c_werror_flag" ||
41365          test ! -s conftest.err
41366        } && test -s conftest$ac_exeext &&
41367        $as_test_x conftest$ac_exeext; then
41368   ac_cv_func_sched_get_priority_max=yes
41369 else
41370   echo "$as_me: failed program was:" >&5
41371 sed 's/^/| /' conftest.$ac_ext >&5
41372
41373         ac_cv_func_sched_get_priority_max=no
41374 fi
41375
41376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41377       conftest$ac_exeext conftest.$ac_ext
41378 fi
41379 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41380 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41381 if test $ac_cv_func_sched_get_priority_max = yes; then
41382   HAVE_PRIOR_FUNCS=1
41383 else
41384   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41385 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41386 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41387   echo $ECHO_N "(cached) $ECHO_C" >&6
41388 else
41389   ac_check_lib_save_LIBS=$LIBS
41390 LIBS="-lposix4  $LIBS"
41391 cat >conftest.$ac_ext <<_ACEOF
41392 /* confdefs.h.  */
41393 _ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h.  */
41397
41398 /* Override any GCC internal prototype to avoid an error.
41399    Use char because int might match the return type of a GCC
41400    builtin and then its argument prototype would still apply.  */
41401 #ifdef __cplusplus
41402 extern "C"
41403 #endif
41404 char sched_get_priority_max ();
41405 int
41406 main ()
41407 {
41408 return sched_get_priority_max ();
41409   ;
41410   return 0;
41411 }
41412 _ACEOF
41413 rm -f conftest.$ac_objext conftest$ac_exeext
41414 if { (ac_try="$ac_link"
41415 case "(($ac_try" in
41416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41417   *) ac_try_echo=$ac_try;;
41418 esac
41419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41420   (eval "$ac_link") 2>conftest.er1
41421   ac_status=$?
41422   grep -v '^ *+' conftest.er1 >conftest.err
41423   rm -f conftest.er1
41424   cat conftest.err >&5
41425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41426   (exit $ac_status); } && {
41427          test -z "$ac_c_werror_flag" ||
41428          test ! -s conftest.err
41429        } && test -s conftest$ac_exeext &&
41430        $as_test_x conftest$ac_exeext; then
41431   ac_cv_lib_posix4_sched_get_priority_max=yes
41432 else
41433   echo "$as_me: failed program was:" >&5
41434 sed 's/^/| /' conftest.$ac_ext >&5
41435
41436         ac_cv_lib_posix4_sched_get_priority_max=no
41437 fi
41438
41439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41440       conftest$ac_exeext conftest.$ac_ext
41441 LIBS=$ac_check_lib_save_LIBS
41442 fi
41443 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41444 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41445 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41446
41447                                 HAVE_PRIOR_FUNCS=1
41448                                 POSIX4_LINK=" -lposix4"
41449
41450 fi
41451
41452
41453 fi
41454
41455
41456 fi
41457
41458
41459 fi
41460
41461
41462       if test "$HAVE_PRIOR_FUNCS" = 1; then
41463         cat >>confdefs.h <<\_ACEOF
41464 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41465 _ACEOF
41466
41467       else
41468         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41469 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41470       fi
41471
41472       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41473 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41474 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41475   echo $ECHO_N "(cached) $ECHO_C" >&6
41476 else
41477   cat >conftest.$ac_ext <<_ACEOF
41478 /* confdefs.h.  */
41479 _ACEOF
41480 cat confdefs.h >>conftest.$ac_ext
41481 cat >>conftest.$ac_ext <<_ACEOF
41482 /* end confdefs.h.  */
41483 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41485 #define pthread_cancel innocuous_pthread_cancel
41486
41487 /* System header to define __stub macros and hopefully few prototypes,
41488     which can conflict with char pthread_cancel (); below.
41489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41490     <limits.h> exists even on freestanding compilers.  */
41491
41492 #ifdef __STDC__
41493 # include <limits.h>
41494 #else
41495 # include <assert.h>
41496 #endif
41497
41498 #undef pthread_cancel
41499
41500 /* Override any GCC internal prototype to avoid an error.
41501    Use char because int might match the return type of a GCC
41502    builtin and then its argument prototype would still apply.  */
41503 #ifdef __cplusplus
41504 extern "C"
41505 #endif
41506 char pthread_cancel ();
41507 /* The GNU C library defines this for functions which it implements
41508     to always fail with ENOSYS.  Some functions are actually named
41509     something starting with __ and the normal name is an alias.  */
41510 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41511 choke me
41512 #endif
41513
41514 int
41515 main ()
41516 {
41517 return pthread_cancel ();
41518   ;
41519   return 0;
41520 }
41521 _ACEOF
41522 rm -f conftest.$ac_objext conftest$ac_exeext
41523 if { (ac_try="$ac_link"
41524 case "(($ac_try" in
41525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41526   *) ac_try_echo=$ac_try;;
41527 esac
41528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41529   (eval "$ac_link") 2>conftest.er1
41530   ac_status=$?
41531   grep -v '^ *+' conftest.er1 >conftest.err
41532   rm -f conftest.er1
41533   cat conftest.err >&5
41534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535   (exit $ac_status); } && {
41536          test -z "$ac_c_werror_flag" ||
41537          test ! -s conftest.err
41538        } && test -s conftest$ac_exeext &&
41539        $as_test_x conftest$ac_exeext; then
41540   ac_cv_func_pthread_cancel=yes
41541 else
41542   echo "$as_me: failed program was:" >&5
41543 sed 's/^/| /' conftest.$ac_ext >&5
41544
41545         ac_cv_func_pthread_cancel=no
41546 fi
41547
41548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41549       conftest$ac_exeext conftest.$ac_ext
41550 fi
41551 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41552 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41553 if test $ac_cv_func_pthread_cancel = yes; then
41554   cat >>confdefs.h <<\_ACEOF
41555 #define HAVE_PTHREAD_CANCEL 1
41556 _ACEOF
41557
41558 else
41559   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41560 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41561 fi
41562
41563
41564       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41565 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41566 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41567   echo $ECHO_N "(cached) $ECHO_C" >&6
41568 else
41569   cat >conftest.$ac_ext <<_ACEOF
41570 /* confdefs.h.  */
41571 _ACEOF
41572 cat confdefs.h >>conftest.$ac_ext
41573 cat >>conftest.$ac_ext <<_ACEOF
41574 /* end confdefs.h.  */
41575 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41577 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41578
41579 /* System header to define __stub macros and hopefully few prototypes,
41580     which can conflict with char pthread_mutex_timedlock (); below.
41581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41582     <limits.h> exists even on freestanding compilers.  */
41583
41584 #ifdef __STDC__
41585 # include <limits.h>
41586 #else
41587 # include <assert.h>
41588 #endif
41589
41590 #undef pthread_mutex_timedlock
41591
41592 /* Override any GCC internal prototype to avoid an error.
41593    Use char because int might match the return type of a GCC
41594    builtin and then its argument prototype would still apply.  */
41595 #ifdef __cplusplus
41596 extern "C"
41597 #endif
41598 char pthread_mutex_timedlock ();
41599 /* The GNU C library defines this for functions which it implements
41600     to always fail with ENOSYS.  Some functions are actually named
41601     something starting with __ and the normal name is an alias.  */
41602 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41603 choke me
41604 #endif
41605
41606 int
41607 main ()
41608 {
41609 return pthread_mutex_timedlock ();
41610   ;
41611   return 0;
41612 }
41613 _ACEOF
41614 rm -f conftest.$ac_objext conftest$ac_exeext
41615 if { (ac_try="$ac_link"
41616 case "(($ac_try" in
41617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618   *) ac_try_echo=$ac_try;;
41619 esac
41620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41621   (eval "$ac_link") 2>conftest.er1
41622   ac_status=$?
41623   grep -v '^ *+' conftest.er1 >conftest.err
41624   rm -f conftest.er1
41625   cat conftest.err >&5
41626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627   (exit $ac_status); } && {
41628          test -z "$ac_c_werror_flag" ||
41629          test ! -s conftest.err
41630        } && test -s conftest$ac_exeext &&
41631        $as_test_x conftest$ac_exeext; then
41632   ac_cv_func_pthread_mutex_timedlock=yes
41633 else
41634   echo "$as_me: failed program was:" >&5
41635 sed 's/^/| /' conftest.$ac_ext >&5
41636
41637         ac_cv_func_pthread_mutex_timedlock=no
41638 fi
41639
41640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41641       conftest$ac_exeext conftest.$ac_ext
41642 fi
41643 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41644 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41645 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41646   cat >>confdefs.h <<\_ACEOF
41647 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41648 _ACEOF
41649
41650 else
41651   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41652 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41653 fi
41654
41655
41656       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41657 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41658 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41659   echo $ECHO_N "(cached) $ECHO_C" >&6
41660 else
41661   cat >conftest.$ac_ext <<_ACEOF
41662 /* confdefs.h.  */
41663 _ACEOF
41664 cat confdefs.h >>conftest.$ac_ext
41665 cat >>conftest.$ac_ext <<_ACEOF
41666 /* end confdefs.h.  */
41667 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41669 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41670
41671 /* System header to define __stub macros and hopefully few prototypes,
41672     which can conflict with char pthread_attr_setstacksize (); below.
41673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41674     <limits.h> exists even on freestanding compilers.  */
41675
41676 #ifdef __STDC__
41677 # include <limits.h>
41678 #else
41679 # include <assert.h>
41680 #endif
41681
41682 #undef pthread_attr_setstacksize
41683
41684 /* Override any GCC internal prototype to avoid an error.
41685    Use char because int might match the return type of a GCC
41686    builtin and then its argument prototype would still apply.  */
41687 #ifdef __cplusplus
41688 extern "C"
41689 #endif
41690 char pthread_attr_setstacksize ();
41691 /* The GNU C library defines this for functions which it implements
41692     to always fail with ENOSYS.  Some functions are actually named
41693     something starting with __ and the normal name is an alias.  */
41694 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41695 choke me
41696 #endif
41697
41698 int
41699 main ()
41700 {
41701 return pthread_attr_setstacksize ();
41702   ;
41703   return 0;
41704 }
41705 _ACEOF
41706 rm -f conftest.$ac_objext conftest$ac_exeext
41707 if { (ac_try="$ac_link"
41708 case "(($ac_try" in
41709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41710   *) ac_try_echo=$ac_try;;
41711 esac
41712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41713   (eval "$ac_link") 2>conftest.er1
41714   ac_status=$?
41715   grep -v '^ *+' conftest.er1 >conftest.err
41716   rm -f conftest.er1
41717   cat conftest.err >&5
41718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719   (exit $ac_status); } && {
41720          test -z "$ac_c_werror_flag" ||
41721          test ! -s conftest.err
41722        } && test -s conftest$ac_exeext &&
41723        $as_test_x conftest$ac_exeext; then
41724   ac_cv_func_pthread_attr_setstacksize=yes
41725 else
41726   echo "$as_me: failed program was:" >&5
41727 sed 's/^/| /' conftest.$ac_ext >&5
41728
41729         ac_cv_func_pthread_attr_setstacksize=no
41730 fi
41731
41732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41733       conftest$ac_exeext conftest.$ac_ext
41734 fi
41735 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41736 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41737 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41738   cat >>confdefs.h <<\_ACEOF
41739 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41740 _ACEOF
41741
41742 fi
41743
41744
41745
41746       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41747 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41748 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41749   echo $ECHO_N "(cached) $ECHO_C" >&6
41750 else
41751
41752         cat >conftest.$ac_ext <<_ACEOF
41753 /* confdefs.h.  */
41754 _ACEOF
41755 cat confdefs.h >>conftest.$ac_ext
41756 cat >>conftest.$ac_ext <<_ACEOF
41757 /* end confdefs.h.  */
41758 #include <pthread.h>
41759 int
41760 main ()
41761 {
41762
41763                pthread_mutexattr_t attr;
41764                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41765
41766   ;
41767   return 0;
41768 }
41769 _ACEOF
41770 rm -f conftest.$ac_objext
41771 if { (ac_try="$ac_compile"
41772 case "(($ac_try" in
41773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774   *) ac_try_echo=$ac_try;;
41775 esac
41776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41777   (eval "$ac_compile") 2>conftest.er1
41778   ac_status=$?
41779   grep -v '^ *+' conftest.er1 >conftest.err
41780   rm -f conftest.er1
41781   cat conftest.err >&5
41782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41783   (exit $ac_status); } && {
41784          test -z "$ac_c_werror_flag" ||
41785          test ! -s conftest.err
41786        } && test -s conftest.$ac_objext; then
41787   wx_cv_type_pthread_mutexattr_t=yes
41788 else
41789   echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41791
41792         wx_cv_type_pthread_mutexattr_t=no
41793
41794 fi
41795
41796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41797
41798 fi
41799 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41800 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41801
41802       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41803         cat >>confdefs.h <<\_ACEOF
41804 #define HAVE_PTHREAD_MUTEXATTR_T 1
41805 _ACEOF
41806
41807
41808                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41809 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41810 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41811   echo $ECHO_N "(cached) $ECHO_C" >&6
41812 else
41813
41814                        cat >conftest.$ac_ext <<_ACEOF
41815 /* confdefs.h.  */
41816 _ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h.  */
41820 #include <pthread.h>
41821 int
41822 main ()
41823 {
41824
41825                                pthread_mutexattr_t attr;
41826                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41827
41828   ;
41829   return 0;
41830 }
41831 _ACEOF
41832 rm -f conftest.$ac_objext
41833 if { (ac_try="$ac_compile"
41834 case "(($ac_try" in
41835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41836   *) ac_try_echo=$ac_try;;
41837 esac
41838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41839   (eval "$ac_compile") 2>conftest.er1
41840   ac_status=$?
41841   grep -v '^ *+' conftest.er1 >conftest.err
41842   rm -f conftest.er1
41843   cat conftest.err >&5
41844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); } && {
41846          test -z "$ac_c_werror_flag" ||
41847          test ! -s conftest.err
41848        } && test -s conftest.$ac_objext; then
41849   wx_cv_func_pthread_mutexattr_settype_decl=yes
41850 else
41851   echo "$as_me: failed program was:" >&5
41852 sed 's/^/| /' conftest.$ac_ext >&5
41853
41854         wx_cv_func_pthread_mutexattr_settype_decl=no
41855
41856 fi
41857
41858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41859
41860 fi
41861 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41862 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41863         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41864             cat >>confdefs.h <<\_ACEOF
41865 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41866 _ACEOF
41867
41868         fi
41869       else
41870                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41871 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41872 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41873   echo $ECHO_N "(cached) $ECHO_C" >&6
41874 else
41875
41876             cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h.  */
41878 _ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h.  */
41882 #include <pthread.h>
41883 int
41884 main ()
41885 {
41886
41887                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41888
41889   ;
41890   return 0;
41891 }
41892 _ACEOF
41893 rm -f conftest.$ac_objext
41894 if { (ac_try="$ac_compile"
41895 case "(($ac_try" in
41896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41897   *) ac_try_echo=$ac_try;;
41898 esac
41899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41900   (eval "$ac_compile") 2>conftest.er1
41901   ac_status=$?
41902   grep -v '^ *+' conftest.er1 >conftest.err
41903   rm -f conftest.er1
41904   cat conftest.err >&5
41905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41906   (exit $ac_status); } && {
41907          test -z "$ac_c_werror_flag" ||
41908          test ! -s conftest.err
41909        } && test -s conftest.$ac_objext; then
41910
41911                     wx_cv_type_pthread_rec_mutex_init=yes
41912
41913 else
41914   echo "$as_me: failed program was:" >&5
41915 sed 's/^/| /' conftest.$ac_ext >&5
41916
41917
41918                     wx_cv_type_pthread_rec_mutex_init=no
41919
41920
41921 fi
41922
41923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41924
41925 fi
41926 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41927 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41928         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41929           cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41931 _ACEOF
41932
41933         else
41934                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41935 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41936         fi
41937       fi
41938
41939       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41940           if test "$USE_NETBSD" = 1; then
41941               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41942 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41943               wxUSE_COMPILER_TLS=no
41944           else
41945               wxUSE_COMPILER_TLS=yes
41946           fi
41947       fi
41948
41949       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41950                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41951 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41952 if test "${wx_cv_cc___thread+set}" = set; then
41953   echo $ECHO_N "(cached) $ECHO_C" >&6
41954 else
41955
41956                   cat >conftest.$ac_ext <<_ACEOF
41957 /* confdefs.h.  */
41958 _ACEOF
41959 cat confdefs.h >>conftest.$ac_ext
41960 cat >>conftest.$ac_ext <<_ACEOF
41961 /* end confdefs.h.  */
41962 #include <pthread.h>
41963 int
41964 main ()
41965 {
41966
41967                           static __thread int n = 0;
41968                           static __thread int *p = 0;
41969
41970   ;
41971   return 0;
41972 }
41973 _ACEOF
41974 rm -f conftest.$ac_objext
41975 if { (ac_try="$ac_compile"
41976 case "(($ac_try" in
41977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41978   *) ac_try_echo=$ac_try;;
41979 esac
41980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41981   (eval "$ac_compile") 2>conftest.er1
41982   ac_status=$?
41983   grep -v '^ *+' conftest.er1 >conftest.err
41984   rm -f conftest.er1
41985   cat conftest.err >&5
41986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41987   (exit $ac_status); } && {
41988          test -z "$ac_c_werror_flag" ||
41989          test ! -s conftest.err
41990        } && test -s conftest.$ac_objext; then
41991   wx_cv_cc___thread=yes
41992 else
41993   echo "$as_me: failed program was:" >&5
41994 sed 's/^/| /' conftest.$ac_ext >&5
41995
41996         wx_cv_cc___thread=no
41997
41998 fi
41999
42000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42001
42002
42003 fi
42004 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
42005 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
42006
42007           if test "$wx_cv_cc___thread" = "yes"; then
42008
42009   GXX_VERSION=""
42010
42011
42012
42013   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
42014 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
42015
42016   if  test "x$GCC" = "xyes" ; then
42017
42018     if  test -z "" ; then
42019
42020       ax_gcc_option_test="int main()
42021 {
42022         return 0;
42023 }"
42024
42025 else
42026
42027       ax_gcc_option_test=""
42028
42029 fi
42030
42031
42032     # Dump the test program to file
42033     cat <<EOF > conftest.c
42034 $ax_gcc_option_test
42035 EOF
42036
42037     # Dump back the file to the log, useful for debugging purposes
42038     { ac_try='cat conftest.c 1>&5'
42039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42040   (eval $ac_try) 2>&5
42041   ac_status=$?
42042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043   (exit $ac_status); }; }
42044
42045     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
42046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42047   (eval $ac_try) 2>&5
42048   ac_status=$?
42049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050   (exit $ac_status); }; } ; then
42051
42052                 { echo "$as_me:$LINENO: result: yes" >&5
42053 echo "${ECHO_T}yes" >&6; }
42054
42055     ax_gcc_version_option=yes
42056
42057
42058 else
42059
42060                 { echo "$as_me:$LINENO: result: no" >&5
42061 echo "${ECHO_T}no" >&6; }
42062
42063     ax_gcc_version_option=no
42064
42065
42066 fi
42067
42068
42069 else
42070
42071     { echo "$as_me:$LINENO: result: no gcc available" >&5
42072 echo "${ECHO_T}no gcc available" >&6; }
42073
42074 fi
42075
42076
42077   if test "x$GXX" = "xyes"; then
42078
42079     if test "x$ax_gxx_version_option" != "no"; then
42080
42081       { echo "$as_me:$LINENO: checking gxx version" >&5
42082 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
42083 if test "${ax_cv_gxx_version+set}" = set; then
42084   echo $ECHO_N "(cached) $ECHO_C" >&6
42085 else
42086
42087         ax_cv_gxx_version="`$CXX -dumpversion`"
42088         if test "x$ax_cv_gxx_version" = "x"; then
42089
42090           ax_cv_gxx_version=""
42091
42092 fi
42093
42094
42095 fi
42096 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
42097 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
42098       GXX_VERSION=$ax_cv_gxx_version
42099
42100 fi
42101
42102
42103 fi
42104
42105
42106
42107               if test -n "$ax_cv_gxx_version"; then
42108                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
42109 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
42110                   case "$ax_cv_gxx_version" in
42111                     1.* | 2.* | 3.* )
42112                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
42113 echo "${ECHO_T}no, it's broken" >&6; }
42114                         wx_cv_cc___thread=no
42115                         ;;
42116                     *)
42117                         { echo "$as_me:$LINENO: result: yes, it works" >&5
42118 echo "${ECHO_T}yes, it works" >&6; }
42119                         ;;
42120                   esac
42121               fi
42122           fi
42123
42124           if test "$wx_cv_cc___thread" = "yes"; then
42125             cat >>confdefs.h <<\_ACEOF
42126 #define HAVE___THREAD_KEYWORD 1
42127 _ACEOF
42128
42129           fi
42130         fi
42131     fi
42132
42133 else
42134     if test "$wxUSE_THREADS" = "yes" ; then
42135       case "${host}" in
42136         x86_64-*-mingw32* )
42137         ;;
42138         *-*-mingw32* )
42139                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42140 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42141 if test "${wx_cv_cflags_mthread+set}" = set; then
42142   echo $ECHO_N "(cached) $ECHO_C" >&6
42143 else
42144
42145                     CFLAGS_OLD="$CFLAGS"
42146                     CFLAGS="-mthreads $CFLAGS"
42147                     cat >conftest.$ac_ext <<_ACEOF
42148 /* confdefs.h.  */
42149 _ACEOF
42150 cat confdefs.h >>conftest.$ac_ext
42151 cat >>conftest.$ac_ext <<_ACEOF
42152 /* end confdefs.h.  */
42153
42154 int
42155 main ()
42156 {
42157
42158   ;
42159   return 0;
42160 }
42161 _ACEOF
42162 rm -f conftest.$ac_objext
42163 if { (ac_try="$ac_compile"
42164 case "(($ac_try" in
42165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42166   *) ac_try_echo=$ac_try;;
42167 esac
42168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42169   (eval "$ac_compile") 2>conftest.er1
42170   ac_status=$?
42171   grep -v '^ *+' conftest.er1 >conftest.err
42172   rm -f conftest.er1
42173   cat conftest.err >&5
42174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175   (exit $ac_status); } && {
42176          test -z "$ac_c_werror_flag" ||
42177          test ! -s conftest.err
42178        } && test -s conftest.$ac_objext; then
42179   wx_cv_cflags_mthread=yes
42180 else
42181   echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42183
42184         wx_cv_cflags_mthread=no
42185
42186 fi
42187
42188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42189
42190
42191 fi
42192 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42193 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42194
42195             if test "$wx_cv_cflags_mthread" = "yes"; then
42196                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42197                 LDFLAGS="$LDFLAGS -mthreads"
42198             else
42199                                 CFLAGS="$CFLAGS_OLD"
42200             fi
42201         ;;
42202         *-pc-os2*emx )
42203             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42204             LDFLAGS="$LDFLAGS -Zmt"
42205         ;;
42206       esac
42207     fi
42208 fi
42209
42210 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42211 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42212 if test "${ac_cv_func_localtime_r+set}" = set; then
42213   echo $ECHO_N "(cached) $ECHO_C" >&6
42214 else
42215   cat >conftest.$ac_ext <<_ACEOF
42216 /* confdefs.h.  */
42217 _ACEOF
42218 cat confdefs.h >>conftest.$ac_ext
42219 cat >>conftest.$ac_ext <<_ACEOF
42220 /* end confdefs.h.  */
42221 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42223 #define localtime_r innocuous_localtime_r
42224
42225 /* System header to define __stub macros and hopefully few prototypes,
42226     which can conflict with char localtime_r (); below.
42227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42228     <limits.h> exists even on freestanding compilers.  */
42229
42230 #ifdef __STDC__
42231 # include <limits.h>
42232 #else
42233 # include <assert.h>
42234 #endif
42235
42236 #undef localtime_r
42237
42238 /* Override any GCC internal prototype to avoid an error.
42239    Use char because int might match the return type of a GCC
42240    builtin and then its argument prototype would still apply.  */
42241 #ifdef __cplusplus
42242 extern "C"
42243 #endif
42244 char localtime_r ();
42245 /* The GNU C library defines this for functions which it implements
42246     to always fail with ENOSYS.  Some functions are actually named
42247     something starting with __ and the normal name is an alias.  */
42248 #if defined __stub_localtime_r || defined __stub___localtime_r
42249 choke me
42250 #endif
42251
42252 int
42253 main ()
42254 {
42255 return localtime_r ();
42256   ;
42257   return 0;
42258 }
42259 _ACEOF
42260 rm -f conftest.$ac_objext conftest$ac_exeext
42261 if { (ac_try="$ac_link"
42262 case "(($ac_try" in
42263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42264   *) ac_try_echo=$ac_try;;
42265 esac
42266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42267   (eval "$ac_link") 2>conftest.er1
42268   ac_status=$?
42269   grep -v '^ *+' conftest.er1 >conftest.err
42270   rm -f conftest.er1
42271   cat conftest.err >&5
42272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42273   (exit $ac_status); } && {
42274          test -z "$ac_c_werror_flag" ||
42275          test ! -s conftest.err
42276        } && test -s conftest$ac_exeext &&
42277        $as_test_x conftest$ac_exeext; then
42278   ac_cv_func_localtime_r=yes
42279 else
42280   echo "$as_me: failed program was:" >&5
42281 sed 's/^/| /' conftest.$ac_ext >&5
42282
42283         ac_cv_func_localtime_r=no
42284 fi
42285
42286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42287       conftest$ac_exeext conftest.$ac_ext
42288 fi
42289 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42290 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42291 if test $ac_cv_func_localtime_r = yes; then
42292    cat >>confdefs.h <<\_ACEOF
42293 #define HAVE_LOCALTIME_R 1
42294 _ACEOF
42295
42296 fi
42297
42298 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42299 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42300 if test "${ac_cv_func_gmtime_r+set}" = set; then
42301   echo $ECHO_N "(cached) $ECHO_C" >&6
42302 else
42303   cat >conftest.$ac_ext <<_ACEOF
42304 /* confdefs.h.  */
42305 _ACEOF
42306 cat confdefs.h >>conftest.$ac_ext
42307 cat >>conftest.$ac_ext <<_ACEOF
42308 /* end confdefs.h.  */
42309 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42311 #define gmtime_r innocuous_gmtime_r
42312
42313 /* System header to define __stub macros and hopefully few prototypes,
42314     which can conflict with char gmtime_r (); below.
42315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42316     <limits.h> exists even on freestanding compilers.  */
42317
42318 #ifdef __STDC__
42319 # include <limits.h>
42320 #else
42321 # include <assert.h>
42322 #endif
42323
42324 #undef gmtime_r
42325
42326 /* Override any GCC internal prototype to avoid an error.
42327    Use char because int might match the return type of a GCC
42328    builtin and then its argument prototype would still apply.  */
42329 #ifdef __cplusplus
42330 extern "C"
42331 #endif
42332 char gmtime_r ();
42333 /* The GNU C library defines this for functions which it implements
42334     to always fail with ENOSYS.  Some functions are actually named
42335     something starting with __ and the normal name is an alias.  */
42336 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42337 choke me
42338 #endif
42339
42340 int
42341 main ()
42342 {
42343 return gmtime_r ();
42344   ;
42345   return 0;
42346 }
42347 _ACEOF
42348 rm -f conftest.$ac_objext conftest$ac_exeext
42349 if { (ac_try="$ac_link"
42350 case "(($ac_try" in
42351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42352   *) ac_try_echo=$ac_try;;
42353 esac
42354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42355   (eval "$ac_link") 2>conftest.er1
42356   ac_status=$?
42357   grep -v '^ *+' conftest.er1 >conftest.err
42358   rm -f conftest.er1
42359   cat conftest.err >&5
42360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361   (exit $ac_status); } && {
42362          test -z "$ac_c_werror_flag" ||
42363          test ! -s conftest.err
42364        } && test -s conftest$ac_exeext &&
42365        $as_test_x conftest$ac_exeext; then
42366   ac_cv_func_gmtime_r=yes
42367 else
42368   echo "$as_me: failed program was:" >&5
42369 sed 's/^/| /' conftest.$ac_ext >&5
42370
42371         ac_cv_func_gmtime_r=no
42372 fi
42373
42374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42375       conftest$ac_exeext conftest.$ac_ext
42376 fi
42377 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42378 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42379 if test $ac_cv_func_gmtime_r = yes; then
42380    cat >>confdefs.h <<\_ACEOF
42381 #define HAVE_GMTIME_R 1
42382 _ACEOF
42383
42384 fi
42385
42386
42387
42388
42389     ac_ext=c
42390 ac_cpp='$CPP $CPPFLAGS'
42391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42394
42395     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42396 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42397
42398     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42399   echo $ECHO_N "(cached) $ECHO_C" >&6
42400 else
42401
42402
42403 ################################################################
42404
42405 ac_cv_func_which_gethostbyname_r=unknown
42406
42407 #
42408 # ONE ARGUMENT (sanity check)
42409 #
42410
42411 # This should fail, as there is no variant of gethostbyname_r() that takes
42412 # a single argument. If it actually compiles, then we can assume that
42413 # netdb.h is not declaring the function, and the compiler is thereby
42414 # assuming an implicit prototype. In which case, we're out of luck.
42415 #
42416 cat >conftest.$ac_ext <<_ACEOF
42417 /* confdefs.h.  */
42418 _ACEOF
42419 cat confdefs.h >>conftest.$ac_ext
42420 cat >>conftest.$ac_ext <<_ACEOF
42421 /* end confdefs.h.  */
42422 #include <netdb.h>
42423 int
42424 main ()
42425 {
42426
42427             char *name = "www.gnu.org";
42428             (void)gethostbyname_r(name) /* ; */
42429
42430   ;
42431   return 0;
42432 }
42433 _ACEOF
42434 rm -f conftest.$ac_objext
42435 if { (ac_try="$ac_compile"
42436 case "(($ac_try" in
42437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42438   *) ac_try_echo=$ac_try;;
42439 esac
42440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42441   (eval "$ac_compile") 2>conftest.er1
42442   ac_status=$?
42443   grep -v '^ *+' conftest.er1 >conftest.err
42444   rm -f conftest.er1
42445   cat conftest.err >&5
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); } && {
42448          test -z "$ac_c_werror_flag" ||
42449          test ! -s conftest.err
42450        } && test -s conftest.$ac_objext; then
42451   ac_cv_func_which_gethostbyname_r=no
42452 else
42453   echo "$as_me: failed program was:" >&5
42454 sed 's/^/| /' conftest.$ac_ext >&5
42455
42456
42457 fi
42458
42459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42460
42461 #
42462 # SIX ARGUMENTS
42463 # (e.g. Linux)
42464 #
42465
42466 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42467
42468 cat >conftest.$ac_ext <<_ACEOF
42469 /* confdefs.h.  */
42470 _ACEOF
42471 cat confdefs.h >>conftest.$ac_ext
42472 cat >>conftest.$ac_ext <<_ACEOF
42473 /* end confdefs.h.  */
42474 #include <netdb.h>
42475 int
42476 main ()
42477 {
42478
42479             char *name = "www.gnu.org";
42480             struct hostent ret, *retp;
42481             char buf[1024];
42482             int buflen = 1024;
42483             int my_h_errno;
42484             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42485
42486   ;
42487   return 0;
42488 }
42489 _ACEOF
42490 rm -f conftest.$ac_objext
42491 if { (ac_try="$ac_compile"
42492 case "(($ac_try" in
42493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42494   *) ac_try_echo=$ac_try;;
42495 esac
42496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42497   (eval "$ac_compile") 2>conftest.er1
42498   ac_status=$?
42499   grep -v '^ *+' conftest.er1 >conftest.err
42500   rm -f conftest.er1
42501   cat conftest.err >&5
42502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503   (exit $ac_status); } && {
42504          test -z "$ac_c_werror_flag" ||
42505          test ! -s conftest.err
42506        } && test -s conftest.$ac_objext; then
42507   ac_cv_func_which_gethostbyname_r=six
42508 else
42509   echo "$as_me: failed program was:" >&5
42510 sed 's/^/| /' conftest.$ac_ext >&5
42511
42512
42513 fi
42514
42515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42516
42517 fi
42518
42519 #
42520 # FIVE ARGUMENTS
42521 # (e.g. Solaris)
42522 #
42523
42524 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42525
42526 cat >conftest.$ac_ext <<_ACEOF
42527 /* confdefs.h.  */
42528 _ACEOF
42529 cat confdefs.h >>conftest.$ac_ext
42530 cat >>conftest.$ac_ext <<_ACEOF
42531 /* end confdefs.h.  */
42532 #include <netdb.h>
42533 int
42534 main ()
42535 {
42536
42537             char *name = "www.gnu.org";
42538             struct hostent ret;
42539             char buf[1024];
42540             int buflen = 1024;
42541             int my_h_errno;
42542             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42543
42544   ;
42545   return 0;
42546 }
42547 _ACEOF
42548 rm -f conftest.$ac_objext
42549 if { (ac_try="$ac_compile"
42550 case "(($ac_try" in
42551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42552   *) ac_try_echo=$ac_try;;
42553 esac
42554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42555   (eval "$ac_compile") 2>conftest.er1
42556   ac_status=$?
42557   grep -v '^ *+' conftest.er1 >conftest.err
42558   rm -f conftest.er1
42559   cat conftest.err >&5
42560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561   (exit $ac_status); } && {
42562          test -z "$ac_c_werror_flag" ||
42563          test ! -s conftest.err
42564        } && test -s conftest.$ac_objext; then
42565   ac_cv_func_which_gethostbyname_r=five
42566 else
42567   echo "$as_me: failed program was:" >&5
42568 sed 's/^/| /' conftest.$ac_ext >&5
42569
42570
42571 fi
42572
42573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42574
42575 fi
42576
42577 #
42578 # THREE ARGUMENTS
42579 # (e.g. AIX, HP-UX, Tru64)
42580 #
42581
42582 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42583
42584 cat >conftest.$ac_ext <<_ACEOF
42585 /* confdefs.h.  */
42586 _ACEOF
42587 cat confdefs.h >>conftest.$ac_ext
42588 cat >>conftest.$ac_ext <<_ACEOF
42589 /* end confdefs.h.  */
42590 #include <netdb.h>
42591 int
42592 main ()
42593 {
42594
42595             char *name = "www.gnu.org";
42596             struct hostent ret;
42597             struct hostent_data data;
42598             (void)gethostbyname_r(name, &ret, &data) /* ; */
42599
42600   ;
42601   return 0;
42602 }
42603 _ACEOF
42604 rm -f conftest.$ac_objext
42605 if { (ac_try="$ac_compile"
42606 case "(($ac_try" in
42607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42608   *) ac_try_echo=$ac_try;;
42609 esac
42610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42611   (eval "$ac_compile") 2>conftest.er1
42612   ac_status=$?
42613   grep -v '^ *+' conftest.er1 >conftest.err
42614   rm -f conftest.er1
42615   cat conftest.err >&5
42616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42617   (exit $ac_status); } && {
42618          test -z "$ac_c_werror_flag" ||
42619          test ! -s conftest.err
42620        } && test -s conftest.$ac_objext; then
42621   ac_cv_func_which_gethostbyname_r=three
42622 else
42623   echo "$as_me: failed program was:" >&5
42624 sed 's/^/| /' conftest.$ac_ext >&5
42625
42626
42627 fi
42628
42629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42630
42631 fi
42632
42633 ################################################################
42634
42635
42636 fi
42637
42638 case "$ac_cv_func_which_gethostbyname_r" in
42639     three)
42640     { echo "$as_me:$LINENO: result: three" >&5
42641 echo "${ECHO_T}three" >&6; }
42642     cat >>confdefs.h <<\_ACEOF
42643 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42644 _ACEOF
42645
42646     ;;
42647
42648     five)
42649     { echo "$as_me:$LINENO: result: five" >&5
42650 echo "${ECHO_T}five" >&6; }
42651     cat >>confdefs.h <<\_ACEOF
42652 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42653 _ACEOF
42654
42655     ;;
42656
42657     six)
42658     { echo "$as_me:$LINENO: result: six" >&5
42659 echo "${ECHO_T}six" >&6; }
42660     cat >>confdefs.h <<\_ACEOF
42661 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42662 _ACEOF
42663
42664     ;;
42665
42666     no)
42667     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42668 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42669     ;;
42670
42671     unknown)
42672     { echo "$as_me:$LINENO: result: can't tell" >&5
42673 echo "${ECHO_T}can't tell" >&6; }
42674     ;;
42675
42676     *)
42677     { { echo "$as_me:$LINENO: error: internal error" >&5
42678 echo "$as_me: error: internal error" >&2;}
42679    { (exit 1); exit 1; }; }
42680     ;;
42681 esac
42682
42683 ac_ext=c
42684 ac_cpp='$CPP $CPPFLAGS'
42685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42688
42689
42690
42691       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42692               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42693           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42694 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42695 if test "${ac_cv_func_gethostbyname+set}" = set; then
42696   echo $ECHO_N "(cached) $ECHO_C" >&6
42697 else
42698   cat >conftest.$ac_ext <<_ACEOF
42699 /* confdefs.h.  */
42700 _ACEOF
42701 cat confdefs.h >>conftest.$ac_ext
42702 cat >>conftest.$ac_ext <<_ACEOF
42703 /* end confdefs.h.  */
42704 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42706 #define gethostbyname innocuous_gethostbyname
42707
42708 /* System header to define __stub macros and hopefully few prototypes,
42709     which can conflict with char gethostbyname (); below.
42710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42711     <limits.h> exists even on freestanding compilers.  */
42712
42713 #ifdef __STDC__
42714 # include <limits.h>
42715 #else
42716 # include <assert.h>
42717 #endif
42718
42719 #undef gethostbyname
42720
42721 /* Override any GCC internal prototype to avoid an error.
42722    Use char because int might match the return type of a GCC
42723    builtin and then its argument prototype would still apply.  */
42724 #ifdef __cplusplus
42725 extern "C"
42726 #endif
42727 char gethostbyname ();
42728 /* The GNU C library defines this for functions which it implements
42729     to always fail with ENOSYS.  Some functions are actually named
42730     something starting with __ and the normal name is an alias.  */
42731 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42732 choke me
42733 #endif
42734
42735 int
42736 main ()
42737 {
42738 return gethostbyname ();
42739   ;
42740   return 0;
42741 }
42742 _ACEOF
42743 rm -f conftest.$ac_objext conftest$ac_exeext
42744 if { (ac_try="$ac_link"
42745 case "(($ac_try" in
42746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42747   *) ac_try_echo=$ac_try;;
42748 esac
42749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42750   (eval "$ac_link") 2>conftest.er1
42751   ac_status=$?
42752   grep -v '^ *+' conftest.er1 >conftest.err
42753   rm -f conftest.er1
42754   cat conftest.err >&5
42755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756   (exit $ac_status); } && {
42757          test -z "$ac_c_werror_flag" ||
42758          test ! -s conftest.err
42759        } && test -s conftest$ac_exeext &&
42760        $as_test_x conftest$ac_exeext; then
42761   ac_cv_func_gethostbyname=yes
42762 else
42763   echo "$as_me: failed program was:" >&5
42764 sed 's/^/| /' conftest.$ac_ext >&5
42765
42766         ac_cv_func_gethostbyname=no
42767 fi
42768
42769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42770       conftest$ac_exeext conftest.$ac_ext
42771 fi
42772 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42773 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42774 if test $ac_cv_func_gethostbyname = yes; then
42775    cat >>confdefs.h <<\_ACEOF
42776 #define HAVE_GETHOSTBYNAME 1
42777 _ACEOF
42778
42779 fi
42780
42781       fi
42782
42783 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42784 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42785 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42786   echo $ECHO_N "(cached) $ECHO_C" >&6
42787 else
42788
42789                 ac_ext=cpp
42790 ac_cpp='$CXXCPP $CPPFLAGS'
42791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42794
42795
42796         cat >conftest.$ac_ext <<_ACEOF
42797 /* confdefs.h.  */
42798 _ACEOF
42799 cat confdefs.h >>conftest.$ac_ext
42800 cat >>conftest.$ac_ext <<_ACEOF
42801 /* end confdefs.h.  */
42802 #include <netdb.h>
42803 int
42804 main ()
42805 {
42806
42807                 char *name;
42808                 char *proto;
42809                 struct servent *se, *res;
42810                 char buffer[2048];
42811                 int buflen = 2048;
42812                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42813
42814   ;
42815   return 0;
42816 }
42817 _ACEOF
42818 rm -f conftest.$ac_objext
42819 if { (ac_try="$ac_compile"
42820 case "(($ac_try" in
42821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42822   *) ac_try_echo=$ac_try;;
42823 esac
42824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42825   (eval "$ac_compile") 2>conftest.er1
42826   ac_status=$?
42827   grep -v '^ *+' conftest.er1 >conftest.err
42828   rm -f conftest.er1
42829   cat conftest.err >&5
42830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831   (exit $ac_status); } && {
42832          test -z "$ac_cxx_werror_flag" ||
42833          test ! -s conftest.err
42834        } && test -s conftest.$ac_objext; then
42835   ac_cv_func_which_getservbyname_r=six
42836 else
42837   echo "$as_me: failed program was:" >&5
42838 sed 's/^/| /' conftest.$ac_ext >&5
42839
42840
42841                 cat >conftest.$ac_ext <<_ACEOF
42842 /* confdefs.h.  */
42843 _ACEOF
42844 cat confdefs.h >>conftest.$ac_ext
42845 cat >>conftest.$ac_ext <<_ACEOF
42846 /* end confdefs.h.  */
42847 #include <netdb.h>
42848 int
42849 main ()
42850 {
42851
42852                         char *name;
42853                         char *proto;
42854                         struct servent *se;
42855                         char buffer[2048];
42856                         int buflen = 2048;
42857                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42858
42859   ;
42860   return 0;
42861 }
42862 _ACEOF
42863 rm -f conftest.$ac_objext
42864 if { (ac_try="$ac_compile"
42865 case "(($ac_try" in
42866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42867   *) ac_try_echo=$ac_try;;
42868 esac
42869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42870   (eval "$ac_compile") 2>conftest.er1
42871   ac_status=$?
42872   grep -v '^ *+' conftest.er1 >conftest.err
42873   rm -f conftest.er1
42874   cat conftest.err >&5
42875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876   (exit $ac_status); } && {
42877          test -z "$ac_cxx_werror_flag" ||
42878          test ! -s conftest.err
42879        } && test -s conftest.$ac_objext; then
42880   ac_cv_func_which_getservbyname_r=five
42881 else
42882   echo "$as_me: failed program was:" >&5
42883 sed 's/^/| /' conftest.$ac_ext >&5
42884
42885
42886                         cat >conftest.$ac_ext <<_ACEOF
42887 /* confdefs.h.  */
42888 _ACEOF
42889 cat confdefs.h >>conftest.$ac_ext
42890 cat >>conftest.$ac_ext <<_ACEOF
42891 /* end confdefs.h.  */
42892 #include <netdb.h>
42893 int
42894 main ()
42895 {
42896
42897                                 char *name;
42898                                 char *proto;
42899                                 struct servent *se;
42900                                 struct servent_data data;
42901                                 (void) getservbyname_r(name, proto, se, &data);
42902
42903   ;
42904   return 0;
42905 }
42906 _ACEOF
42907 rm -f conftest.$ac_objext
42908 if { (ac_try="$ac_compile"
42909 case "(($ac_try" in
42910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42911   *) ac_try_echo=$ac_try;;
42912 esac
42913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42914   (eval "$ac_compile") 2>conftest.er1
42915   ac_status=$?
42916   grep -v '^ *+' conftest.er1 >conftest.err
42917   rm -f conftest.er1
42918   cat conftest.err >&5
42919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920   (exit $ac_status); } && {
42921          test -z "$ac_cxx_werror_flag" ||
42922          test ! -s conftest.err
42923        } && test -s conftest.$ac_objext; then
42924   ac_cv_func_which_getservbyname_r=four
42925 else
42926   echo "$as_me: failed program was:" >&5
42927 sed 's/^/| /' conftest.$ac_ext >&5
42928
42929         ac_cv_func_which_getservbyname_r=no
42930
42931 fi
42932
42933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42934
42935
42936 fi
42937
42938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42939
42940
42941 fi
42942
42943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42944         ac_ext=c
42945 ac_cpp='$CPP $CPPFLAGS'
42946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42949
42950
42951
42952 fi
42953 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42954 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42955
42956 if test $ac_cv_func_which_getservbyname_r = six; then
42957   cat >>confdefs.h <<\_ACEOF
42958 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42959 _ACEOF
42960
42961 elif test $ac_cv_func_which_getservbyname_r = five; then
42962   cat >>confdefs.h <<\_ACEOF
42963 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42964 _ACEOF
42965
42966 elif test $ac_cv_func_which_getservbyname_r = four; then
42967   cat >>confdefs.h <<\_ACEOF
42968 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42969 _ACEOF
42970
42971 fi
42972
42973
42974       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42975               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42976
42977 for ac_func in getservbyname
42978 do
42979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42983   echo $ECHO_N "(cached) $ECHO_C" >&6
42984 else
42985   cat >conftest.$ac_ext <<_ACEOF
42986 /* confdefs.h.  */
42987 _ACEOF
42988 cat confdefs.h >>conftest.$ac_ext
42989 cat >>conftest.$ac_ext <<_ACEOF
42990 /* end confdefs.h.  */
42991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42993 #define $ac_func innocuous_$ac_func
42994
42995 /* System header to define __stub macros and hopefully few prototypes,
42996     which can conflict with char $ac_func (); below.
42997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42998     <limits.h> exists even on freestanding compilers.  */
42999
43000 #ifdef __STDC__
43001 # include <limits.h>
43002 #else
43003 # include <assert.h>
43004 #endif
43005
43006 #undef $ac_func
43007
43008 /* Override any GCC internal prototype to avoid an error.
43009    Use char because int might match the return type of a GCC
43010    builtin and then its argument prototype would still apply.  */
43011 #ifdef __cplusplus
43012 extern "C"
43013 #endif
43014 char $ac_func ();
43015 /* The GNU C library defines this for functions which it implements
43016     to always fail with ENOSYS.  Some functions are actually named
43017     something starting with __ and the normal name is an alias.  */
43018 #if defined __stub_$ac_func || defined __stub___$ac_func
43019 choke me
43020 #endif
43021
43022 int
43023 main ()
43024 {
43025 return $ac_func ();
43026   ;
43027   return 0;
43028 }
43029 _ACEOF
43030 rm -f conftest.$ac_objext conftest$ac_exeext
43031 if { (ac_try="$ac_link"
43032 case "(($ac_try" in
43033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43034   *) ac_try_echo=$ac_try;;
43035 esac
43036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43037   (eval "$ac_link") 2>conftest.er1
43038   ac_status=$?
43039   grep -v '^ *+' conftest.er1 >conftest.err
43040   rm -f conftest.er1
43041   cat conftest.err >&5
43042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43043   (exit $ac_status); } && {
43044          test -z "$ac_c_werror_flag" ||
43045          test ! -s conftest.err
43046        } && test -s conftest$ac_exeext &&
43047        $as_test_x conftest$ac_exeext; then
43048   eval "$as_ac_var=yes"
43049 else
43050   echo "$as_me: failed program was:" >&5
43051 sed 's/^/| /' conftest.$ac_ext >&5
43052
43053         eval "$as_ac_var=no"
43054 fi
43055
43056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43057       conftest$ac_exeext conftest.$ac_ext
43058 fi
43059 ac_res=`eval echo '${'$as_ac_var'}'`
43060                { echo "$as_me:$LINENO: result: $ac_res" >&5
43061 echo "${ECHO_T}$ac_res" >&6; }
43062 if test `eval echo '${'$as_ac_var'}'` = yes; then
43063   cat >>confdefs.h <<_ACEOF
43064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43065 _ACEOF
43066   cat >>confdefs.h <<\_ACEOF
43067 #define HAVE_GETSERVBYNAME 1
43068 _ACEOF
43069
43070 fi
43071 done
43072
43073       fi
43074
43075 if test "$wxUSE_THREADS" = "yes"; then
43076   cat >>confdefs.h <<\_ACEOF
43077 #define wxUSE_THREADS 1
43078 _ACEOF
43079
43080
43081   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43082 else
43083       if test "$wx_cv_func_strtok_r" = "yes"; then
43084     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43085 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43086     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43087         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43088         { echo "$as_me:$LINENO: result: yes" >&5
43089 echo "${ECHO_T}yes" >&6; }
43090     else
43091         { echo "$as_me:$LINENO: result: no" >&5
43092 echo "${ECHO_T}no" >&6; }
43093     fi
43094   fi
43095 fi
43096
43097 if test "$WXGTK2" = 1 ; then
43098   cat >>confdefs.h <<_ACEOF
43099 #define __WXGTK20__ $WXGTK2
43100 _ACEOF
43101
43102 fi
43103
43104 if test "$WXGTK127" = 1 ; then
43105   cat >>confdefs.h <<_ACEOF
43106 #define __WXGTK127__ $WXGTK127
43107 _ACEOF
43108
43109 fi
43110
43111 if test "$WXGPE" = 1 ; then
43112   cat >>confdefs.h <<_ACEOF
43113 #define __WXGPE__ $WXGPE
43114 _ACEOF
43115
43116 fi
43117
43118 DEBUG_CFLAGS=
43119 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
43120                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
43121 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43122 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43123     DEBUG_CFLAGS="-g"
43124 fi
43125
43126 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43127     wxUSE_DEBUG_INFO=yes
43128     if test "$GCC" = yes; then
43129         DEBUG_CFLAGS="-ggdb"
43130     fi
43131 fi
43132
43133 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43134     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43135
43136     if test "$wxUSE_GTK" = 1 ; then
43137         if test "x$wxGTK_VERSION" = "x1" ; then
43138             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43139         else
43140             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
43141         fi
43142     fi
43143 fi
43144
43145 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43146     cat >>confdefs.h <<\_ACEOF
43147 #define wxUSE_MEMORY_TRACING 1
43148 _ACEOF
43149
43150     cat >>confdefs.h <<\_ACEOF
43151 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43152 _ACEOF
43153
43154     cat >>confdefs.h <<\_ACEOF
43155 #define wxUSE_DEBUG_NEW_ALWAYS 1
43156 _ACEOF
43157
43158     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43159 fi
43160
43161 if test "$wxUSE_DMALLOC" = "yes" ; then
43162     DMALLOC_LIBS="-ldmallocthcxx"
43163 fi
43164
43165 PROFILE_FLAGS=
43166 if test "$wxUSE_PROFILE" = "yes" ; then
43167     PROFILE_FLAGS=" -pg"
43168 fi
43169
43170 if test "$GCC" = "yes" ; then
43171     if test "$wxUSE_NO_RTTI" = "yes" ; then
43172                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43173     fi
43174     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43175         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43176     fi
43177     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43178         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43179     fi
43180
43181                                                 case "${host}" in
43182       powerpc*-*-aix* )
43183         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43184         ;;
43185       *-hppa* )
43186         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43187         ;;
43188     esac
43189 fi
43190
43191 OPTIMISE_CFLAGS=
43192 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43193                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43194 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43195 else
43196     if test "$wxUSE_OPTIMISE" = "no" ; then
43197         if test "$GCC" = yes ; then
43198                                     OPTIMISE_CFLAGS="-O0"
43199         fi
43200     else
43201         if test "$GCC" = yes ; then
43202             case "${host}" in
43203                 *-pc-os2_emx | *-pc-os2-emx )
43204                                                             OPTIMISE_CFLAGS="-O2"
43205                 ;;
43206                 *)
43207                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43208                 ;;
43209             esac
43210         else
43211             OPTIMISE_CFLAGS="-O"
43212         fi
43213     fi
43214 fi
43215
43216
43217 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43218     cat >>confdefs.h <<\_ACEOF
43219 #define WXWIN_COMPATIBILITY_2_6 1
43220 _ACEOF
43221
43222
43223     WXWIN_COMPATIBILITY_2_8="yes"
43224 fi
43225
43226 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43227     cat >>confdefs.h <<\_ACEOF
43228 #define WXWIN_COMPATIBILITY_2_8 1
43229 _ACEOF
43230
43231 fi
43232
43233
43234 if test "$wxUSE_GUI" = "yes"; then
43235     cat >>confdefs.h <<\_ACEOF
43236 #define wxUSE_GUI 1
43237 _ACEOF
43238
43239
43240                                             fi
43241
43242
43243 if test "$wxUSE_UNIX" = "yes"; then
43244   cat >>confdefs.h <<\_ACEOF
43245 #define wxUSE_UNIX 1
43246 _ACEOF
43247
43248 fi
43249
43250
43251 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43252
43253     HAVE_DL_FUNCS=0
43254     HAVE_SHL_FUNCS=0
43255     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43256         if test "$USE_DOS" = 1; then
43257             HAVE_DL_FUNCS=0
43258         else
43259
43260 for ac_func in dlopen
43261 do
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268   cat >conftest.$ac_ext <<_ACEOF
43269 /* confdefs.h.  */
43270 _ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h.  */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43276 #define $ac_func innocuous_$ac_func
43277
43278 /* System header to define __stub macros and hopefully few prototypes,
43279     which can conflict with char $ac_func (); below.
43280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281     <limits.h> exists even on freestanding compilers.  */
43282
43283 #ifdef __STDC__
43284 # include <limits.h>
43285 #else
43286 # include <assert.h>
43287 #endif
43288
43289 #undef $ac_func
43290
43291 /* Override any GCC internal prototype to avoid an error.
43292    Use char because int might match the return type of a GCC
43293    builtin and then its argument prototype would still apply.  */
43294 #ifdef __cplusplus
43295 extern "C"
43296 #endif
43297 char $ac_func ();
43298 /* The GNU C library defines this for functions which it implements
43299     to always fail with ENOSYS.  Some functions are actually named
43300     something starting with __ and the normal name is an alias.  */
43301 #if defined __stub_$ac_func || defined __stub___$ac_func
43302 choke me
43303 #endif
43304
43305 int
43306 main ()
43307 {
43308 return $ac_func ();
43309   ;
43310   return 0;
43311 }
43312 _ACEOF
43313 rm -f conftest.$ac_objext conftest$ac_exeext
43314 if { (ac_try="$ac_link"
43315 case "(($ac_try" in
43316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43317   *) ac_try_echo=$ac_try;;
43318 esac
43319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43320   (eval "$ac_link") 2>conftest.er1
43321   ac_status=$?
43322   grep -v '^ *+' conftest.er1 >conftest.err
43323   rm -f conftest.er1
43324   cat conftest.err >&5
43325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43326   (exit $ac_status); } && {
43327          test -z "$ac_c_werror_flag" ||
43328          test ! -s conftest.err
43329        } && test -s conftest$ac_exeext &&
43330        $as_test_x conftest$ac_exeext; then
43331   eval "$as_ac_var=yes"
43332 else
43333   echo "$as_me: failed program was:" >&5
43334 sed 's/^/| /' conftest.$ac_ext >&5
43335
43336         eval "$as_ac_var=no"
43337 fi
43338
43339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43340       conftest$ac_exeext conftest.$ac_ext
43341 fi
43342 ac_res=`eval echo '${'$as_ac_var'}'`
43343                { echo "$as_me:$LINENO: result: $ac_res" >&5
43344 echo "${ECHO_T}$ac_res" >&6; }
43345 if test `eval echo '${'$as_ac_var'}'` = yes; then
43346   cat >>confdefs.h <<_ACEOF
43347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43348 _ACEOF
43349
43350                 cat >>confdefs.h <<\_ACEOF
43351 #define HAVE_DLOPEN 1
43352 _ACEOF
43353
43354                 HAVE_DL_FUNCS=1
43355
43356 else
43357
43358                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43359 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43360 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43361   echo $ECHO_N "(cached) $ECHO_C" >&6
43362 else
43363   ac_check_lib_save_LIBS=$LIBS
43364 LIBS="-ldl  $LIBS"
43365 cat >conftest.$ac_ext <<_ACEOF
43366 /* confdefs.h.  */
43367 _ACEOF
43368 cat confdefs.h >>conftest.$ac_ext
43369 cat >>conftest.$ac_ext <<_ACEOF
43370 /* end confdefs.h.  */
43371
43372 /* Override any GCC internal prototype to avoid an error.
43373    Use char because int might match the return type of a GCC
43374    builtin and then its argument prototype would still apply.  */
43375 #ifdef __cplusplus
43376 extern "C"
43377 #endif
43378 char dlopen ();
43379 int
43380 main ()
43381 {
43382 return dlopen ();
43383   ;
43384   return 0;
43385 }
43386 _ACEOF
43387 rm -f conftest.$ac_objext conftest$ac_exeext
43388 if { (ac_try="$ac_link"
43389 case "(($ac_try" in
43390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43391   *) ac_try_echo=$ac_try;;
43392 esac
43393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43394   (eval "$ac_link") 2>conftest.er1
43395   ac_status=$?
43396   grep -v '^ *+' conftest.er1 >conftest.err
43397   rm -f conftest.er1
43398   cat conftest.err >&5
43399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43400   (exit $ac_status); } && {
43401          test -z "$ac_c_werror_flag" ||
43402          test ! -s conftest.err
43403        } && test -s conftest$ac_exeext &&
43404        $as_test_x conftest$ac_exeext; then
43405   ac_cv_lib_dl_dlopen=yes
43406 else
43407   echo "$as_me: failed program was:" >&5
43408 sed 's/^/| /' conftest.$ac_ext >&5
43409
43410         ac_cv_lib_dl_dlopen=no
43411 fi
43412
43413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43414       conftest$ac_exeext conftest.$ac_ext
43415 LIBS=$ac_check_lib_save_LIBS
43416 fi
43417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43418 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43419 if test $ac_cv_lib_dl_dlopen = yes; then
43420
43421                                 cat >>confdefs.h <<\_ACEOF
43422 #define HAVE_DLOPEN 1
43423 _ACEOF
43424
43425                                 HAVE_DL_FUNCS=1
43426                                 DL_LINK=" -ldl$DL_LINK"
43427
43428 else
43429
43430
43431 for ac_func in shl_load
43432 do
43433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43437   echo $ECHO_N "(cached) $ECHO_C" >&6
43438 else
43439   cat >conftest.$ac_ext <<_ACEOF
43440 /* confdefs.h.  */
43441 _ACEOF
43442 cat confdefs.h >>conftest.$ac_ext
43443 cat >>conftest.$ac_ext <<_ACEOF
43444 /* end confdefs.h.  */
43445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43447 #define $ac_func innocuous_$ac_func
43448
43449 /* System header to define __stub macros and hopefully few prototypes,
43450     which can conflict with char $ac_func (); below.
43451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43452     <limits.h> exists even on freestanding compilers.  */
43453
43454 #ifdef __STDC__
43455 # include <limits.h>
43456 #else
43457 # include <assert.h>
43458 #endif
43459
43460 #undef $ac_func
43461
43462 /* Override any GCC internal prototype to avoid an error.
43463    Use char because int might match the return type of a GCC
43464    builtin and then its argument prototype would still apply.  */
43465 #ifdef __cplusplus
43466 extern "C"
43467 #endif
43468 char $ac_func ();
43469 /* The GNU C library defines this for functions which it implements
43470     to always fail with ENOSYS.  Some functions are actually named
43471     something starting with __ and the normal name is an alias.  */
43472 #if defined __stub_$ac_func || defined __stub___$ac_func
43473 choke me
43474 #endif
43475
43476 int
43477 main ()
43478 {
43479 return $ac_func ();
43480   ;
43481   return 0;
43482 }
43483 _ACEOF
43484 rm -f conftest.$ac_objext conftest$ac_exeext
43485 if { (ac_try="$ac_link"
43486 case "(($ac_try" in
43487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43488   *) ac_try_echo=$ac_try;;
43489 esac
43490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43491   (eval "$ac_link") 2>conftest.er1
43492   ac_status=$?
43493   grep -v '^ *+' conftest.er1 >conftest.err
43494   rm -f conftest.er1
43495   cat conftest.err >&5
43496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43497   (exit $ac_status); } && {
43498          test -z "$ac_c_werror_flag" ||
43499          test ! -s conftest.err
43500        } && test -s conftest$ac_exeext &&
43501        $as_test_x conftest$ac_exeext; then
43502   eval "$as_ac_var=yes"
43503 else
43504   echo "$as_me: failed program was:" >&5
43505 sed 's/^/| /' conftest.$ac_ext >&5
43506
43507         eval "$as_ac_var=no"
43508 fi
43509
43510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43511       conftest$ac_exeext conftest.$ac_ext
43512 fi
43513 ac_res=`eval echo '${'$as_ac_var'}'`
43514                { echo "$as_me:$LINENO: result: $ac_res" >&5
43515 echo "${ECHO_T}$ac_res" >&6; }
43516 if test `eval echo '${'$as_ac_var'}'` = yes; then
43517   cat >>confdefs.h <<_ACEOF
43518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43519 _ACEOF
43520
43521                                                 cat >>confdefs.h <<\_ACEOF
43522 #define HAVE_SHL_LOAD 1
43523 _ACEOF
43524
43525                                                 HAVE_SHL_FUNCS=1
43526
43527 else
43528
43529                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43530 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43531 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43532   echo $ECHO_N "(cached) $ECHO_C" >&6
43533 else
43534   ac_check_lib_save_LIBS=$LIBS
43535 LIBS="-lshl_load  $LIBS"
43536 cat >conftest.$ac_ext <<_ACEOF
43537 /* confdefs.h.  */
43538 _ACEOF
43539 cat confdefs.h >>conftest.$ac_ext
43540 cat >>conftest.$ac_ext <<_ACEOF
43541 /* end confdefs.h.  */
43542
43543 /* Override any GCC internal prototype to avoid an error.
43544    Use char because int might match the return type of a GCC
43545    builtin and then its argument prototype would still apply.  */
43546 #ifdef __cplusplus
43547 extern "C"
43548 #endif
43549 char dld ();
43550 int
43551 main ()
43552 {
43553 return dld ();
43554   ;
43555   return 0;
43556 }
43557 _ACEOF
43558 rm -f conftest.$ac_objext conftest$ac_exeext
43559 if { (ac_try="$ac_link"
43560 case "(($ac_try" in
43561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43562   *) ac_try_echo=$ac_try;;
43563 esac
43564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43565   (eval "$ac_link") 2>conftest.er1
43566   ac_status=$?
43567   grep -v '^ *+' conftest.er1 >conftest.err
43568   rm -f conftest.er1
43569   cat conftest.err >&5
43570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43571   (exit $ac_status); } && {
43572          test -z "$ac_c_werror_flag" ||
43573          test ! -s conftest.err
43574        } && test -s conftest$ac_exeext &&
43575        $as_test_x conftest$ac_exeext; then
43576   ac_cv_lib_shl_load_dld=yes
43577 else
43578   echo "$as_me: failed program was:" >&5
43579 sed 's/^/| /' conftest.$ac_ext >&5
43580
43581         ac_cv_lib_shl_load_dld=no
43582 fi
43583
43584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43585       conftest$ac_exeext conftest.$ac_ext
43586 LIBS=$ac_check_lib_save_LIBS
43587 fi
43588 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43589 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43590 if test $ac_cv_lib_shl_load_dld = yes; then
43591
43592                                                                 HAVE_SHL_FUNCS=1
43593                                                                 DL_LINK=" -ldld$DL_LINK"
43594
43595 fi
43596
43597
43598 fi
43599 done
43600
43601
43602 fi
43603
43604
43605 fi
43606 done
43607
43608
43609                         if test "$HAVE_DL_FUNCS" = 1; then
43610
43611 for ac_func in dlerror
43612 do
43613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43617   echo $ECHO_N "(cached) $ECHO_C" >&6
43618 else
43619   cat >conftest.$ac_ext <<_ACEOF
43620 /* confdefs.h.  */
43621 _ACEOF
43622 cat confdefs.h >>conftest.$ac_ext
43623 cat >>conftest.$ac_ext <<_ACEOF
43624 /* end confdefs.h.  */
43625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43627 #define $ac_func innocuous_$ac_func
43628
43629 /* System header to define __stub macros and hopefully few prototypes,
43630     which can conflict with char $ac_func (); below.
43631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43632     <limits.h> exists even on freestanding compilers.  */
43633
43634 #ifdef __STDC__
43635 # include <limits.h>
43636 #else
43637 # include <assert.h>
43638 #endif
43639
43640 #undef $ac_func
43641
43642 /* Override any GCC internal prototype to avoid an error.
43643    Use char because int might match the return type of a GCC
43644    builtin and then its argument prototype would still apply.  */
43645 #ifdef __cplusplus
43646 extern "C"
43647 #endif
43648 char $ac_func ();
43649 /* The GNU C library defines this for functions which it implements
43650     to always fail with ENOSYS.  Some functions are actually named
43651     something starting with __ and the normal name is an alias.  */
43652 #if defined __stub_$ac_func || defined __stub___$ac_func
43653 choke me
43654 #endif
43655
43656 int
43657 main ()
43658 {
43659 return $ac_func ();
43660   ;
43661   return 0;
43662 }
43663 _ACEOF
43664 rm -f conftest.$ac_objext conftest$ac_exeext
43665 if { (ac_try="$ac_link"
43666 case "(($ac_try" in
43667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43668   *) ac_try_echo=$ac_try;;
43669 esac
43670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43671   (eval "$ac_link") 2>conftest.er1
43672   ac_status=$?
43673   grep -v '^ *+' conftest.er1 >conftest.err
43674   rm -f conftest.er1
43675   cat conftest.err >&5
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); } && {
43678          test -z "$ac_c_werror_flag" ||
43679          test ! -s conftest.err
43680        } && test -s conftest$ac_exeext &&
43681        $as_test_x conftest$ac_exeext; then
43682   eval "$as_ac_var=yes"
43683 else
43684   echo "$as_me: failed program was:" >&5
43685 sed 's/^/| /' conftest.$ac_ext >&5
43686
43687         eval "$as_ac_var=no"
43688 fi
43689
43690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43691       conftest$ac_exeext conftest.$ac_ext
43692 fi
43693 ac_res=`eval echo '${'$as_ac_var'}'`
43694                { echo "$as_me:$LINENO: result: $ac_res" >&5
43695 echo "${ECHO_T}$ac_res" >&6; }
43696 if test `eval echo '${'$as_ac_var'}'` = yes; then
43697   cat >>confdefs.h <<_ACEOF
43698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43699 _ACEOF
43700  cat >>confdefs.h <<\_ACEOF
43701 #define HAVE_DLERROR 1
43702 _ACEOF
43703
43704 else
43705
43706                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43707 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43708 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43709   echo $ECHO_N "(cached) $ECHO_C" >&6
43710 else
43711   ac_check_lib_save_LIBS=$LIBS
43712 LIBS="-ldl  $LIBS"
43713 cat >conftest.$ac_ext <<_ACEOF
43714 /* confdefs.h.  */
43715 _ACEOF
43716 cat confdefs.h >>conftest.$ac_ext
43717 cat >>conftest.$ac_ext <<_ACEOF
43718 /* end confdefs.h.  */
43719
43720 /* Override any GCC internal prototype to avoid an error.
43721    Use char because int might match the return type of a GCC
43722    builtin and then its argument prototype would still apply.  */
43723 #ifdef __cplusplus
43724 extern "C"
43725 #endif
43726 char dlerror ();
43727 int
43728 main ()
43729 {
43730 return dlerror ();
43731   ;
43732   return 0;
43733 }
43734 _ACEOF
43735 rm -f conftest.$ac_objext conftest$ac_exeext
43736 if { (ac_try="$ac_link"
43737 case "(($ac_try" in
43738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43739   *) ac_try_echo=$ac_try;;
43740 esac
43741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43742   (eval "$ac_link") 2>conftest.er1
43743   ac_status=$?
43744   grep -v '^ *+' conftest.er1 >conftest.err
43745   rm -f conftest.er1
43746   cat conftest.err >&5
43747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748   (exit $ac_status); } && {
43749          test -z "$ac_c_werror_flag" ||
43750          test ! -s conftest.err
43751        } && test -s conftest$ac_exeext &&
43752        $as_test_x conftest$ac_exeext; then
43753   ac_cv_lib_dl_dlerror=yes
43754 else
43755   echo "$as_me: failed program was:" >&5
43756 sed 's/^/| /' conftest.$ac_ext >&5
43757
43758         ac_cv_lib_dl_dlerror=no
43759 fi
43760
43761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43762       conftest$ac_exeext conftest.$ac_ext
43763 LIBS=$ac_check_lib_save_LIBS
43764 fi
43765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43766 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43767 if test $ac_cv_lib_dl_dlerror = yes; then
43768   cat >>confdefs.h <<\_ACEOF
43769 #define HAVE_DLERROR 1
43770 _ACEOF
43771
43772 fi
43773
43774
43775
43776 fi
43777 done
43778
43779             fi
43780         fi
43781
43782                 if test "$USE_DARWIN" = 1; then
43783                         HAVE_DL_FUNCS=1
43784         fi
43785
43786         if test "$HAVE_DL_FUNCS" = 0; then
43787             if test "$HAVE_SHL_FUNCS" = 0; then
43788               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43789                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43790 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43791                   wxUSE_DYNAMIC_LOADER=no
43792                   wxUSE_DYNLIB_CLASS=no
43793               else
43794                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43795 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43796               fi
43797             fi
43798         fi
43799     fi
43800 fi
43801
43802 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43803     cat >>confdefs.h <<\_ACEOF
43804 #define wxUSE_DYNAMIC_LOADER 1
43805 _ACEOF
43806
43807 fi
43808 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43809     cat >>confdefs.h <<\_ACEOF
43810 #define wxUSE_DYNLIB_CLASS 1
43811 _ACEOF
43812
43813 fi
43814
43815
43816
43817 if test "$wxUSE_PLUGINS" = "yes" ; then
43818     if test "$wxUSE_SHARED" = "no" ; then
43819         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43820 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43821         wxUSE_PLUGINS=no
43822     fi
43823     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43824         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43825 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43826         wxUSE_PLUGINS=no
43827     fi
43828     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43829         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43830 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43831         wxUSE_PLUGINS=no
43832     fi
43833     if test "$wxUSE_PLUGINS" = "yes" ; then
43834         cat >>confdefs.h <<\_ACEOF
43835 #define wxUSE_PLUGINS 1
43836 _ACEOF
43837
43838     fi
43839 fi
43840
43841
43842 if test "$wxUSE_FSWATCHER" = "yes"; then
43843                 if test "$wxUSE_MSW" != "1"; then
43844         if test "$wxUSE_UNIX" = "yes"; then
43845
43846 for ac_header in sys/inotify.h
43847 do
43848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43852   echo $ECHO_N "(cached) $ECHO_C" >&6
43853 else
43854   cat >conftest.$ac_ext <<_ACEOF
43855 /* confdefs.h.  */
43856 _ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h.  */
43860 $ac_includes_default
43861
43862 #include <$ac_header>
43863 _ACEOF
43864 rm -f conftest.$ac_objext
43865 if { (ac_try="$ac_compile"
43866 case "(($ac_try" in
43867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43868   *) ac_try_echo=$ac_try;;
43869 esac
43870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43871   (eval "$ac_compile") 2>conftest.er1
43872   ac_status=$?
43873   grep -v '^ *+' conftest.er1 >conftest.err
43874   rm -f conftest.er1
43875   cat conftest.err >&5
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); } && {
43878          test -z "$ac_c_werror_flag" ||
43879          test ! -s conftest.err
43880        } && test -s conftest.$ac_objext; then
43881   eval "$as_ac_Header=yes"
43882 else
43883   echo "$as_me: failed program was:" >&5
43884 sed 's/^/| /' conftest.$ac_ext >&5
43885
43886         eval "$as_ac_Header=no"
43887 fi
43888
43889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43890 fi
43891 ac_res=`eval echo '${'$as_ac_Header'}'`
43892                { echo "$as_me:$LINENO: result: $ac_res" >&5
43893 echo "${ECHO_T}$ac_res" >&6; }
43894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43895   cat >>confdefs.h <<_ACEOF
43896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43897 _ACEOF
43898
43899 fi
43900
43901 done
43902
43903             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43904                 cat >>confdefs.h <<\_ACEOF
43905 #define wxHAS_INOTIFY 1
43906 _ACEOF
43907
43908             else
43909
43910 for ac_header in sys/event.h
43911 do
43912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43916   echo $ECHO_N "(cached) $ECHO_C" >&6
43917 else
43918   cat >conftest.$ac_ext <<_ACEOF
43919 /* confdefs.h.  */
43920 _ACEOF
43921 cat confdefs.h >>conftest.$ac_ext
43922 cat >>conftest.$ac_ext <<_ACEOF
43923 /* end confdefs.h.  */
43924 $ac_includes_default
43925
43926 #include <$ac_header>
43927 _ACEOF
43928 rm -f conftest.$ac_objext
43929 if { (ac_try="$ac_compile"
43930 case "(($ac_try" in
43931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43932   *) ac_try_echo=$ac_try;;
43933 esac
43934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43935   (eval "$ac_compile") 2>conftest.er1
43936   ac_status=$?
43937   grep -v '^ *+' conftest.er1 >conftest.err
43938   rm -f conftest.er1
43939   cat conftest.err >&5
43940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); } && {
43942          test -z "$ac_c_werror_flag" ||
43943          test ! -s conftest.err
43944        } && test -s conftest.$ac_objext; then
43945   eval "$as_ac_Header=yes"
43946 else
43947   echo "$as_me: failed program was:" >&5
43948 sed 's/^/| /' conftest.$ac_ext >&5
43949
43950         eval "$as_ac_Header=no"
43951 fi
43952
43953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43954 fi
43955 ac_res=`eval echo '${'$as_ac_Header'}'`
43956                { echo "$as_me:$LINENO: result: $ac_res" >&5
43957 echo "${ECHO_T}$ac_res" >&6; }
43958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43959   cat >>confdefs.h <<_ACEOF
43960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43961 _ACEOF
43962
43963 fi
43964
43965 done
43966
43967                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43968                     cat >>confdefs.h <<\_ACEOF
43969 #define wxHAS_KQUEUE 1
43970 _ACEOF
43971
43972                 else
43973                     wxUSE_FSWATCHER=no
43974                 fi
43975             fi
43976         else
43977             wxUSE_FSWATCHER=no
43978         fi
43979     else
43980         if test "$wxUSE_THREADS" != "yes"; then
43981             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
43982 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
43983             wxUSE_FSWATCHER=no
43984         fi
43985     fi
43986
43987     if test "$wxUSE_FSWATCHER" = "yes"; then
43988         cat >>confdefs.h <<\_ACEOF
43989 #define wxUSE_FSWATCHER 1
43990 _ACEOF
43991
43992         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43993     else
43994         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43995 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43996     fi
43997 fi
43998
43999
44000 if test "$wxUSE_STL" = "yes"; then
44001   cat >>confdefs.h <<\_ACEOF
44002 #define wxUSE_STL 1
44003 _ACEOF
44004
44005 fi
44006
44007 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44008   cat >>confdefs.h <<\_ACEOF
44009 #define wxUSE_EXTENDED_RTTI 1
44010 _ACEOF
44011
44012 fi
44013
44014 if test "$wxUSE_ANY" = "yes"; then
44015     cat >>confdefs.h <<\_ACEOF
44016 #define wxUSE_ANY 1
44017 _ACEOF
44018
44019 fi
44020
44021 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44022   cat >>confdefs.h <<\_ACEOF
44023 #define wxUSE_APPLE_IEEE 1
44024 _ACEOF
44025
44026 fi
44027
44028 if test "$wxUSE_TIMER" = "yes"; then
44029   cat >>confdefs.h <<\_ACEOF
44030 #define wxUSE_TIMER 1
44031 _ACEOF
44032
44033 fi
44034
44035 if test "$USE_UNIX" = 1 ; then
44036         if test "$wxUSE_MGL" != 1; then
44037                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44038 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44039 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44040   echo $ECHO_N "(cached) $ECHO_C" >&6
44041 else
44042
44043             cat >conftest.$ac_ext <<_ACEOF
44044 /* confdefs.h.  */
44045 _ACEOF
44046 cat confdefs.h >>conftest.$ac_ext
44047 cat >>conftest.$ac_ext <<_ACEOF
44048 /* end confdefs.h.  */
44049
44050                     #include <sys/ioctl.h>
44051                     #include <sys/soundcard.h>
44052
44053 int
44054 main ()
44055 {
44056
44057                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44058
44059   ;
44060   return 0;
44061 }
44062 _ACEOF
44063 rm -f conftest.$ac_objext conftest$ac_exeext
44064 if { (ac_try="$ac_link"
44065 case "(($ac_try" in
44066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44067   *) ac_try_echo=$ac_try;;
44068 esac
44069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44070   (eval "$ac_link") 2>conftest.er1
44071   ac_status=$?
44072   grep -v '^ *+' conftest.er1 >conftest.err
44073   rm -f conftest.er1
44074   cat conftest.err >&5
44075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44076   (exit $ac_status); } && {
44077          test -z "$ac_c_werror_flag" ||
44078          test ! -s conftest.err
44079        } && test -s conftest$ac_exeext &&
44080        $as_test_x conftest$ac_exeext; then
44081   ac_cv_header_sys_soundcard=yes
44082 else
44083   echo "$as_me: failed program was:" >&5
44084 sed 's/^/| /' conftest.$ac_ext >&5
44085
44086
44087                     saveLibs="$LIBS"
44088                     LIBS="$saveLibs -lossaudio"
44089                     cat >conftest.$ac_ext <<_ACEOF
44090 /* confdefs.h.  */
44091 _ACEOF
44092 cat confdefs.h >>conftest.$ac_ext
44093 cat >>conftest.$ac_ext <<_ACEOF
44094 /* end confdefs.h.  */
44095
44096                             #include <sys/ioctl.h>
44097                             #include <sys/soundcard.h>
44098
44099 int
44100 main ()
44101 {
44102
44103                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44104
44105   ;
44106   return 0;
44107 }
44108 _ACEOF
44109 rm -f conftest.$ac_objext conftest$ac_exeext
44110 if { (ac_try="$ac_link"
44111 case "(($ac_try" in
44112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44113   *) ac_try_echo=$ac_try;;
44114 esac
44115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44116   (eval "$ac_link") 2>conftest.er1
44117   ac_status=$?
44118   grep -v '^ *+' conftest.er1 >conftest.err
44119   rm -f conftest.er1
44120   cat conftest.err >&5
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); } && {
44123          test -z "$ac_c_werror_flag" ||
44124          test ! -s conftest.err
44125        } && test -s conftest$ac_exeext &&
44126        $as_test_x conftest$ac_exeext; then
44127   ac_cv_header_sys_soundcard=yes
44128 else
44129   echo "$as_me: failed program was:" >&5
44130 sed 's/^/| /' conftest.$ac_ext >&5
44131
44132
44133                             LIBS="$saveLibs"
44134                             ac_cv_header_sys_soundcard=no
44135
44136
44137 fi
44138
44139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44140       conftest$ac_exeext conftest.$ac_ext
44141
44142
44143 fi
44144
44145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44146       conftest$ac_exeext conftest.$ac_ext
44147
44148 fi
44149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44150 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44151     fi
44152
44153     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44154         cat >>confdefs.h <<\_ACEOF
44155 #define HAVE_SYS_SOUNDCARD_H 1
44156 _ACEOF
44157
44158     fi
44159 fi
44160
44161 WITH_PLUGIN_SDL=0
44162 if test "$wxUSE_SOUND" = "yes"; then
44163   if test "$USE_UNIX" = 1 ; then
44164     if test "$wxUSE_LIBSDL" != "no"; then
44165
44166 # Check whether --with-sdl-prefix was given.
44167 if test "${with_sdl_prefix+set}" = set; then
44168   withval=$with_sdl_prefix; sdl_prefix="$withval"
44169 else
44170   sdl_prefix=""
44171 fi
44172
44173
44174 # Check whether --with-sdl-exec-prefix was given.
44175 if test "${with_sdl_exec_prefix+set}" = set; then
44176   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44177 else
44178   sdl_exec_prefix=""
44179 fi
44180
44181 # Check whether --enable-sdltest was given.
44182 if test "${enable_sdltest+set}" = set; then
44183   enableval=$enable_sdltest;
44184 else
44185   enable_sdltest=yes
44186 fi
44187
44188
44189   if test x$sdl_exec_prefix != x ; then
44190     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44191     if test x${SDL_CONFIG+set} != xset ; then
44192       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44193     fi
44194   fi
44195   if test x$sdl_prefix != x ; then
44196     sdl_args="$sdl_args --prefix=$sdl_prefix"
44197     if test x${SDL_CONFIG+set} != xset ; then
44198       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44199     fi
44200   fi
44201
44202   if test "x$prefix" != xNONE; then
44203     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44204   fi
44205   # Extract the first word of "sdl-config", so it can be a program name with args.
44206 set dummy sdl-config; ac_word=$2
44207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44209 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44210   echo $ECHO_N "(cached) $ECHO_C" >&6
44211 else
44212   case $SDL_CONFIG in
44213   [\\/]* | ?:[\\/]*)
44214   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44215   ;;
44216   *)
44217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44218 for as_dir in $PATH
44219 do
44220   IFS=$as_save_IFS
44221   test -z "$as_dir" && as_dir=.
44222   for ac_exec_ext in '' $ac_executable_extensions; do
44223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44224     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44226     break 2
44227   fi
44228 done
44229 done
44230 IFS=$as_save_IFS
44231
44232   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44233   ;;
44234 esac
44235 fi
44236 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44237 if test -n "$SDL_CONFIG"; then
44238   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44239 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44240 else
44241   { echo "$as_me:$LINENO: result: no" >&5
44242 echo "${ECHO_T}no" >&6; }
44243 fi
44244
44245
44246   min_sdl_version=1.2.0
44247   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44248 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44249   no_sdl=""
44250   if test "$SDL_CONFIG" = "no" ; then
44251     no_sdl=yes
44252   else
44253     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44254     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44255
44256     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44257            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44258     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44259            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44260     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44261            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44262     if test "x$enable_sdltest" = "xyes" ; then
44263       ac_save_CFLAGS="$CFLAGS"
44264       ac_save_CXXFLAGS="$CXXFLAGS"
44265       ac_save_LIBS="$LIBS"
44266       CFLAGS="$CFLAGS $SDL_CFLAGS"
44267       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44268       LIBS="$LIBS $SDL_LIBS"
44269       rm -f conf.sdltest
44270       if test "$cross_compiling" = yes; then
44271   echo $ac_n "cross compiling; assumed OK... $ac_c"
44272 else
44273   cat >conftest.$ac_ext <<_ACEOF
44274 /* confdefs.h.  */
44275 _ACEOF
44276 cat confdefs.h >>conftest.$ac_ext
44277 cat >>conftest.$ac_ext <<_ACEOF
44278 /* end confdefs.h.  */
44279
44280 #include <stdio.h>
44281 #include <stdlib.h>
44282 #include <string.h>
44283 #include "SDL.h"
44284
44285 char*
44286 my_strdup (char *str)
44287 {
44288   char *new_str;
44289
44290   if (str)
44291     {
44292       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44293       strcpy (new_str, str);
44294     }
44295   else
44296     new_str = NULL;
44297
44298   return new_str;
44299 }
44300
44301 int main (int argc, char *argv[])
44302 {
44303   int major, minor, micro;
44304   char *tmp_version;
44305
44306   /* This hangs on some systems (?)
44307   system ("touch conf.sdltest");
44308   */
44309   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44310
44311   /* HP/UX 9 (%@#!) writes to sscanf strings */
44312   tmp_version = my_strdup("$min_sdl_version");
44313   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44314      printf("%s, bad version string\n", "$min_sdl_version");
44315      exit(1);
44316    }
44317
44318    if (($sdl_major_version > major) ||
44319       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44320       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44321     {
44322       return 0;
44323     }
44324   else
44325     {
44326       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44327       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44328       printf("*** best to upgrade to the required version.\n");
44329       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44330       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44331       printf("*** config.cache before re-running configure\n");
44332       return 1;
44333     }
44334 }
44335
44336
44337 _ACEOF
44338 rm -f conftest$ac_exeext
44339 if { (ac_try="$ac_link"
44340 case "(($ac_try" in
44341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44342   *) ac_try_echo=$ac_try;;
44343 esac
44344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44345   (eval "$ac_link") 2>&5
44346   ac_status=$?
44347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44349   { (case "(($ac_try" in
44350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44351   *) ac_try_echo=$ac_try;;
44352 esac
44353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44354   (eval "$ac_try") 2>&5
44355   ac_status=$?
44356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44357   (exit $ac_status); }; }; then
44358   :
44359 else
44360   echo "$as_me: program exited with status $ac_status" >&5
44361 echo "$as_me: failed program was:" >&5
44362 sed 's/^/| /' conftest.$ac_ext >&5
44363
44364 ( exit $ac_status )
44365 no_sdl=yes
44366 fi
44367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44368 fi
44369
44370
44371        CFLAGS="$ac_save_CFLAGS"
44372        CXXFLAGS="$ac_save_CXXFLAGS"
44373        LIBS="$ac_save_LIBS"
44374      fi
44375   fi
44376   if test "x$no_sdl" = x ; then
44377      { echo "$as_me:$LINENO: result: yes" >&5
44378 echo "${ECHO_T}yes" >&6; }
44379
44380                     EXTRALIBS_SDL="$SDL_LIBS"
44381                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44382                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44383                     cat >>confdefs.h <<\_ACEOF
44384 #define wxUSE_LIBSDL 1
44385 _ACEOF
44386
44387
44388   else
44389      { echo "$as_me:$LINENO: result: no" >&5
44390 echo "${ECHO_T}no" >&6; }
44391      if test "$SDL_CONFIG" = "no" ; then
44392        echo "*** The sdl-config script installed by SDL could not be found"
44393        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44394        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44395        echo "*** full path to sdl-config."
44396      else
44397        if test -f conf.sdltest ; then
44398         :
44399        else
44400           echo "*** Could not run SDL test program, checking why..."
44401           CFLAGS="$CFLAGS $SDL_CFLAGS"
44402           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44403           LIBS="$LIBS $SDL_LIBS"
44404           cat >conftest.$ac_ext <<_ACEOF
44405 /* confdefs.h.  */
44406 _ACEOF
44407 cat confdefs.h >>conftest.$ac_ext
44408 cat >>conftest.$ac_ext <<_ACEOF
44409 /* end confdefs.h.  */
44410
44411 #include <stdio.h>
44412 #include "SDL.h"
44413
44414 int main(int argc, char *argv[])
44415 { return 0; }
44416 #undef  main
44417 #define main K_and_R_C_main
44418
44419 int
44420 main ()
44421 {
44422  return 0;
44423   ;
44424   return 0;
44425 }
44426 _ACEOF
44427 rm -f conftest.$ac_objext conftest$ac_exeext
44428 if { (ac_try="$ac_link"
44429 case "(($ac_try" in
44430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44431   *) ac_try_echo=$ac_try;;
44432 esac
44433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44434   (eval "$ac_link") 2>conftest.er1
44435   ac_status=$?
44436   grep -v '^ *+' conftest.er1 >conftest.err
44437   rm -f conftest.er1
44438   cat conftest.err >&5
44439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44440   (exit $ac_status); } && {
44441          test -z "$ac_c_werror_flag" ||
44442          test ! -s conftest.err
44443        } && test -s conftest$ac_exeext &&
44444        $as_test_x conftest$ac_exeext; then
44445    echo "*** The test program compiled, but did not run. This usually means"
44446           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44447           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44448           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44449           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44450           echo "*** is required on your system"
44451           echo "***"
44452           echo "*** If you have an old version installed, it is best to remove it, although"
44453           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44454 else
44455   echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44457
44458          echo "*** The test program failed to compile or link. See the file config.log for the"
44459           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44460           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44461           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44462 fi
44463
44464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44465       conftest$ac_exeext conftest.$ac_ext
44466           CFLAGS="$ac_save_CFLAGS"
44467           CXXFLAGS="$ac_save_CXXFLAGS"
44468           LIBS="$ac_save_LIBS"
44469        fi
44470      fi
44471      SDL_CFLAGS=""
44472      SDL_LIBS=""
44473      wxUSE_LIBSDL="no"
44474   fi
44475
44476
44477   rm -f conf.sdltest
44478
44479       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44480         WITH_PLUGIN_SDL=1
44481       fi
44482     fi
44483   else
44484         if test "$wxUSE_MGL" = 1; then
44485         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44486 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44487         wxUSE_SOUND="no"
44488     fi
44489   fi
44490 fi
44491
44492 if test "$wxUSE_SOUND" = "yes"; then
44493   cat >>confdefs.h <<\_ACEOF
44494 #define wxUSE_SOUND 1
44495 _ACEOF
44496
44497   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44498 fi
44499
44500 if test "$WXGTK2" = 1; then
44501
44502
44503 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44504         if test -n "$ac_tool_prefix"; then
44505   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44506 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44510   echo $ECHO_N "(cached) $ECHO_C" >&6
44511 else
44512   case $PKG_CONFIG in
44513   [\\/]* | ?:[\\/]*)
44514   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44515   ;;
44516   *)
44517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44518 for as_dir in $PATH
44519 do
44520   IFS=$as_save_IFS
44521   test -z "$as_dir" && as_dir=.
44522   for ac_exec_ext in '' $ac_executable_extensions; do
44523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44524     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44526     break 2
44527   fi
44528 done
44529 done
44530 IFS=$as_save_IFS
44531
44532   ;;
44533 esac
44534 fi
44535 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44536 if test -n "$PKG_CONFIG"; then
44537   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44538 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44539 else
44540   { echo "$as_me:$LINENO: result: no" >&5
44541 echo "${ECHO_T}no" >&6; }
44542 fi
44543
44544
44545 fi
44546 if test -z "$ac_cv_path_PKG_CONFIG"; then
44547   ac_pt_PKG_CONFIG=$PKG_CONFIG
44548   # Extract the first word of "pkg-config", so it can be a program name with args.
44549 set dummy pkg-config; ac_word=$2
44550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44552 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44553   echo $ECHO_N "(cached) $ECHO_C" >&6
44554 else
44555   case $ac_pt_PKG_CONFIG in
44556   [\\/]* | ?:[\\/]*)
44557   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44558   ;;
44559   *)
44560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44561 for as_dir in $PATH
44562 do
44563   IFS=$as_save_IFS
44564   test -z "$as_dir" && as_dir=.
44565   for ac_exec_ext in '' $ac_executable_extensions; do
44566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44567     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44569     break 2
44570   fi
44571 done
44572 done
44573 IFS=$as_save_IFS
44574
44575   ;;
44576 esac
44577 fi
44578 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44579 if test -n "$ac_pt_PKG_CONFIG"; then
44580   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44581 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44582 else
44583   { echo "$as_me:$LINENO: result: no" >&5
44584 echo "${ECHO_T}no" >&6; }
44585 fi
44586
44587   if test "x$ac_pt_PKG_CONFIG" = x; then
44588     PKG_CONFIG=""
44589   else
44590     case $cross_compiling:$ac_tool_warned in
44591 yes:)
44592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44593 whose name does not start with the host triplet.  If you think this
44594 configuration is useful to you, please write to autoconf@gnu.org." >&5
44595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44596 whose name does not start with the host triplet.  If you think this
44597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44598 ac_tool_warned=yes ;;
44599 esac
44600     PKG_CONFIG=$ac_pt_PKG_CONFIG
44601   fi
44602 else
44603   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44604 fi
44605
44606 fi
44607 if test -n "$PKG_CONFIG"; then
44608         _pkg_min_version=0.9.0
44609         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44610 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44611         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44612                 { echo "$as_me:$LINENO: result: yes" >&5
44613 echo "${ECHO_T}yes" >&6; }
44614         else
44615                 { echo "$as_me:$LINENO: result: no" >&5
44616 echo "${ECHO_T}no" >&6; }
44617                 PKG_CONFIG=""
44618         fi
44619
44620 fi
44621
44622     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44623
44624         if test "$wxUSE_GTKPRINT" = "yes" ; then
44625
44626
44627 pkg_failed=no
44628 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44629 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44630
44631 if test -n "$PKG_CONFIG"; then
44632     if test -n "$GTKPRINT_CFLAGS"; then
44633         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44634     else
44635         if test -n "$PKG_CONFIG" && \
44636     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44637   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44638   ac_status=$?
44639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44640   (exit $ac_status); }; then
44641   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44642 else
44643   pkg_failed=yes
44644 fi
44645     fi
44646 else
44647         pkg_failed=untried
44648 fi
44649 if test -n "$PKG_CONFIG"; then
44650     if test -n "$GTKPRINT_LIBS"; then
44651         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44652     else
44653         if test -n "$PKG_CONFIG" && \
44654     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44655   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44656   ac_status=$?
44657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44658   (exit $ac_status); }; then
44659   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44660 else
44661   pkg_failed=yes
44662 fi
44663     fi
44664 else
44665         pkg_failed=untried
44666 fi
44667
44668
44669
44670 if test $pkg_failed = yes; then
44671
44672 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44673         _pkg_short_errors_supported=yes
44674 else
44675         _pkg_short_errors_supported=no
44676 fi
44677         if test $_pkg_short_errors_supported = yes; then
44678                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44679         else
44680                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44681         fi
44682         # Put the nasty error message in config.log where it belongs
44683         echo "$GTKPRINT_PKG_ERRORS" >&5
44684
44685
44686                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44687 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44688                         wxUSE_GTKPRINT="no"
44689
44690
44691 elif test $pkg_failed = untried; then
44692
44693                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44694 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44695                         wxUSE_GTKPRINT="no"
44696
44697
44698 else
44699         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44700         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44701         { echo "$as_me:$LINENO: result: yes" >&5
44702 echo "${ECHO_T}yes" >&6; }
44703
44704                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44705                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44706                         cat >>confdefs.h <<\_ACEOF
44707 #define wxUSE_GTKPRINT 1
44708 _ACEOF
44709
44710
44711 fi
44712         fi
44713
44714         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44715
44716
44717 pkg_failed=no
44718 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44719 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44720
44721 if test -n "$PKG_CONFIG"; then
44722     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44723         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44724     else
44725         if test -n "$PKG_CONFIG" && \
44726     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44727   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44728   ac_status=$?
44729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44730   (exit $ac_status); }; then
44731   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44732 else
44733   pkg_failed=yes
44734 fi
44735     fi
44736 else
44737         pkg_failed=untried
44738 fi
44739 if test -n "$PKG_CONFIG"; then
44740     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44741         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44742     else
44743         if test -n "$PKG_CONFIG" && \
44744     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44745   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44746   ac_status=$?
44747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748   (exit $ac_status); }; then
44749   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44750 else
44751   pkg_failed=yes
44752 fi
44753     fi
44754 else
44755         pkg_failed=untried
44756 fi
44757
44758
44759
44760 if test $pkg_failed = yes; then
44761
44762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44763         _pkg_short_errors_supported=yes
44764 else
44765         _pkg_short_errors_supported=no
44766 fi
44767         if test $_pkg_short_errors_supported = yes; then
44768                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44769         else
44770                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44771         fi
44772         # Put the nasty error message in config.log where it belongs
44773         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44774
44775
44776                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44777 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44778                         wxUSE_LIBGNOMEPRINT="no"
44779
44780
44781 elif test $pkg_failed = untried; then
44782
44783                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44784 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44785                         wxUSE_LIBGNOMEPRINT="no"
44786
44787
44788 else
44789         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44790         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44791         { echo "$as_me:$LINENO: result: yes" >&5
44792 echo "${ECHO_T}yes" >&6; }
44793
44794                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44795                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44796                         cat >>confdefs.h <<\_ACEOF
44797 #define wxUSE_LIBGNOMEPRINT 1
44798 _ACEOF
44799
44800
44801 fi
44802         fi
44803     fi
44804
44805     if test "$wxUSE_MIMETYPE" = "yes" ; then
44806         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44807
44808
44809 pkg_failed=no
44810 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44811 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44812
44813 if test -n "$PKG_CONFIG"; then
44814     if test -n "$GNOMEVFS_CFLAGS"; then
44815         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44816     else
44817         if test -n "$PKG_CONFIG" && \
44818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44819   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44820   ac_status=$?
44821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44822   (exit $ac_status); }; then
44823   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44824 else
44825   pkg_failed=yes
44826 fi
44827     fi
44828 else
44829         pkg_failed=untried
44830 fi
44831 if test -n "$PKG_CONFIG"; then
44832     if test -n "$GNOMEVFS_LIBS"; then
44833         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44834     else
44835         if test -n "$PKG_CONFIG" && \
44836     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44837   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44838   ac_status=$?
44839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44840   (exit $ac_status); }; then
44841   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44842 else
44843   pkg_failed=yes
44844 fi
44845     fi
44846 else
44847         pkg_failed=untried
44848 fi
44849
44850
44851
44852 if test $pkg_failed = yes; then
44853
44854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44855         _pkg_short_errors_supported=yes
44856 else
44857         _pkg_short_errors_supported=no
44858 fi
44859         if test $_pkg_short_errors_supported = yes; then
44860                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44861         else
44862                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44863         fi
44864         # Put the nasty error message in config.log where it belongs
44865         echo "$GNOMEVFS_PKG_ERRORS" >&5
44866
44867
44868                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44869 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44870                         wxUSE_LIBGNOMEVFS="no"
44871
44872
44873 elif test $pkg_failed = untried; then
44874
44875                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44876 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44877                         wxUSE_LIBGNOMEVFS="no"
44878
44879
44880 else
44881         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44882         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44883         { echo "$as_me:$LINENO: result: yes" >&5
44884 echo "${ECHO_T}yes" >&6; }
44885
44886                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44887                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44888                         cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_LIBGNOMEVFS 1
44890 _ACEOF
44891
44892
44893 fi
44894         fi
44895     fi
44896
44897     if test "$wxUSE_LIBHILDON" = "yes" ; then
44898
44899 pkg_failed=no
44900 { echo "$as_me:$LINENO: checking for HILDON" >&5
44901 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44902
44903 if test -n "$PKG_CONFIG"; then
44904     if test -n "$HILDON_CFLAGS"; then
44905         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44906     else
44907         if test -n "$PKG_CONFIG" && \
44908     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44909   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44910   ac_status=$?
44911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912   (exit $ac_status); }; then
44913   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44914 else
44915   pkg_failed=yes
44916 fi
44917     fi
44918 else
44919         pkg_failed=untried
44920 fi
44921 if test -n "$PKG_CONFIG"; then
44922     if test -n "$HILDON_LIBS"; then
44923         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44924     else
44925         if test -n "$PKG_CONFIG" && \
44926     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44927   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44928   ac_status=$?
44929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44930   (exit $ac_status); }; then
44931   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44932 else
44933   pkg_failed=yes
44934 fi
44935     fi
44936 else
44937         pkg_failed=untried
44938 fi
44939
44940
44941
44942 if test $pkg_failed = yes; then
44943
44944 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44945         _pkg_short_errors_supported=yes
44946 else
44947         _pkg_short_errors_supported=no
44948 fi
44949         if test $_pkg_short_errors_supported = yes; then
44950                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44951         else
44952                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44953         fi
44954         # Put the nasty error message in config.log where it belongs
44955         echo "$HILDON_PKG_ERRORS" >&5
44956
44957
44958                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44959 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44960                         wxUSE_LIBHILDON="no"
44961                         ac_hildon_lgpl=0
44962
44963
44964 elif test $pkg_failed = untried; then
44965
44966                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44967 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44968                         wxUSE_LIBHILDON="no"
44969                         ac_hildon_lgpl=0
44970
44971
44972 else
44973         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44974         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44975         { echo "$as_me:$LINENO: result: yes" >&5
44976 echo "${ECHO_T}yes" >&6; }
44977
44978                 EXTRALIBS_HILDON="$HILDON_LIBS"
44979                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44980                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44981                 cat >>confdefs.h <<\_ACEOF
44982 #define wxUSE_LIBHILDON 1
44983 _ACEOF
44984
44985                 ac_hildon_lgpl=1
44986
44987 fi
44988
44989         if test "$ac_hildon_lgpl" = 0 ; then
44990
44991 pkg_failed=no
44992 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44993 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44994
44995 if test -n "$PKG_CONFIG"; then
44996     if test -n "$HILDON2_CFLAGS"; then
44997         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44998     else
44999         if test -n "$PKG_CONFIG" && \
45000     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45001   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45002   ac_status=$?
45003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004   (exit $ac_status); }; then
45005   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
45006 else
45007   pkg_failed=yes
45008 fi
45009     fi
45010 else
45011         pkg_failed=untried
45012 fi
45013 if test -n "$PKG_CONFIG"; then
45014     if test -n "$HILDON2_LIBS"; then
45015         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
45016     else
45017         if test -n "$PKG_CONFIG" && \
45018     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45019   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45020   ac_status=$?
45021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45022   (exit $ac_status); }; then
45023   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
45024 else
45025   pkg_failed=yes
45026 fi
45027     fi
45028 else
45029         pkg_failed=untried
45030 fi
45031
45032
45033
45034 if test $pkg_failed = yes; then
45035
45036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45037         _pkg_short_errors_supported=yes
45038 else
45039         _pkg_short_errors_supported=no
45040 fi
45041         if test $_pkg_short_errors_supported = yes; then
45042                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45043         else
45044                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45045         fi
45046         # Put the nasty error message in config.log where it belongs
45047         echo "$HILDON2_PKG_ERRORS" >&5
45048
45049
45050                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45051 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45052                             wxUSE_LIBHILDON2="no"
45053
45054
45055 elif test $pkg_failed = untried; then
45056
45057                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45058 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45059                             wxUSE_LIBHILDON2="no"
45060
45061
45062 else
45063         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
45064         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
45065         { echo "$as_me:$LINENO: result: yes" >&5
45066 echo "${ECHO_T}yes" >&6; }
45067
45068                     EXTRALIBS_HILDON="$HILDON2_LIBS"
45069                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
45070                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
45071                     cat >>confdefs.h <<\_ACEOF
45072 #define wxUSE_LIBHILDON2 1
45073 _ACEOF
45074
45075
45076 fi
45077         fi
45078     fi
45079 fi
45080
45081 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45082   cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_CMDLINE_PARSER 1
45084 _ACEOF
45085
45086 fi
45087
45088 if test "$wxUSE_STOPWATCH" = "yes"; then
45089   cat >>confdefs.h <<\_ACEOF
45090 #define wxUSE_STOPWATCH 1
45091 _ACEOF
45092
45093 fi
45094
45095 if test "$wxUSE_DATETIME" = "yes"; then
45096   cat >>confdefs.h <<\_ACEOF
45097 #define wxUSE_DATETIME 1
45098 _ACEOF
45099
45100 fi
45101
45102 if test "$wxUSE_FILE" = "yes"; then
45103   cat >>confdefs.h <<\_ACEOF
45104 #define wxUSE_FILE 1
45105 _ACEOF
45106
45107 fi
45108
45109 if test "$wxUSE_FFILE" = "yes"; then
45110   cat >>confdefs.h <<\_ACEOF
45111 #define wxUSE_FFILE 1
45112 _ACEOF
45113
45114 fi
45115
45116 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45117   if test "$wxUSE_STREAMS" != yes; then
45118     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45119 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45120     wxUSE_ARCHIVE_STREAMS=no
45121   else
45122     cat >>confdefs.h <<\_ACEOF
45123 #define wxUSE_ARCHIVE_STREAMS 1
45124 _ACEOF
45125
45126   fi
45127 fi
45128
45129 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45130   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45131     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45132 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45133   elif test "$wxUSE_ZLIB" = "no"; then
45134     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45135 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45136   else
45137     cat >>confdefs.h <<\_ACEOF
45138 #define wxUSE_ZIPSTREAM 1
45139 _ACEOF
45140
45141   fi
45142 fi
45143
45144 if test "$wxUSE_TARSTREAM" = "yes"; then
45145   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45146     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45147 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45148   else
45149     cat >>confdefs.h <<\_ACEOF
45150 #define wxUSE_TARSTREAM 1
45151 _ACEOF
45152
45153   fi
45154 fi
45155
45156 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45157   cat >>confdefs.h <<\_ACEOF
45158 #define wxUSE_FILE_HISTORY 1
45159 _ACEOF
45160
45161 fi
45162
45163 if test "$wxUSE_FILESYSTEM" = "yes"; then
45164   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45165     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45166 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45167     wxUSE_FILESYSTEM=no
45168   else
45169     cat >>confdefs.h <<\_ACEOF
45170 #define wxUSE_FILESYSTEM 1
45171 _ACEOF
45172
45173   fi
45174 fi
45175
45176 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45177   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45178     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45179 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45180   else
45181     cat >>confdefs.h <<\_ACEOF
45182 #define wxUSE_FS_ARCHIVE 1
45183 _ACEOF
45184
45185   fi
45186 fi
45187
45188 if test "$wxUSE_FS_ZIP" = "yes"; then
45189   if test "$wxUSE_FS_ARCHIVE" != yes; then
45190     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45191 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45192   else
45193     cat >>confdefs.h <<\_ACEOF
45194 #define wxUSE_FS_ZIP 1
45195 _ACEOF
45196
45197   fi
45198 fi
45199
45200 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45201   if test "$USE_UNIX" != 1; then
45202     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45203 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45204     wxUSE_ON_FATAL_EXCEPTION=no
45205   else
45206     cat >>confdefs.h <<\_ACEOF
45207 #define wxUSE_ON_FATAL_EXCEPTION 1
45208 _ACEOF
45209
45210   fi
45211 fi
45212
45213 if test "$wxUSE_STACKWALKER" = "yes"; then
45214     cat >>confdefs.h <<\_ACEOF
45215 #define wxUSE_STACKWALKER 1
45216 _ACEOF
45217
45218 fi
45219
45220 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45221     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45222         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45223 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45224         wxUSE_DEBUGREPORT=no
45225     else
45226         cat >>confdefs.h <<\_ACEOF
45227 #define wxUSE_DEBUGREPORT 1
45228 _ACEOF
45229
45230         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45231             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45232         fi
45233     fi
45234 fi
45235
45236 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45237   cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_SNGLINST_CHECKER 1
45239 _ACEOF
45240
45241 fi
45242
45243 if test "$wxUSE_BUSYINFO" = "yes"; then
45244   cat >>confdefs.h <<\_ACEOF
45245 #define wxUSE_BUSYINFO 1
45246 _ACEOF
45247
45248 fi
45249
45250 if test "$wxUSE_HOTKEY" = "yes"; then
45251   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
45252     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
45253 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
45254     wxUSE_HOTKEY=no
45255   fi
45256 elif test "$wxUSE_HOTKEY" = "auto"; then
45257   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
45258     wxUSE_HOTKEY=yes
45259   fi
45260 fi
45261 if test "$wxUSE_HOTKEY" = "yes"; then
45262   cat >>confdefs.h <<\_ACEOF
45263 #define wxUSE_HOTKEY 1
45264 _ACEOF
45265
45266 fi
45267
45268 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45269   cat >>confdefs.h <<\_ACEOF
45270 #define wxUSE_STD_CONTAINERS 1
45271 _ACEOF
45272
45273 fi
45274
45275 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45276   cat >>confdefs.h <<\_ACEOF
45277 #define wxUSE_STD_IOSTREAM 1
45278 _ACEOF
45279
45280 fi
45281
45282 if test "$wxUSE_STD_STRING" = "yes"; then
45283   cat >>confdefs.h <<\_ACEOF
45284 #define wxUSE_STD_STRING 1
45285 _ACEOF
45286
45287 fi
45288
45289 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45290   cat >>confdefs.h <<\_ACEOF
45291 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45292 _ACEOF
45293
45294 fi
45295
45296 if test "$wxUSE_STDPATHS" = "yes"; then
45297   cat >>confdefs.h <<\_ACEOF
45298 #define wxUSE_STDPATHS 1
45299 _ACEOF
45300
45301 fi
45302
45303 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45304     cat >>confdefs.h <<\_ACEOF
45305 #define wxUSE_TEXTBUFFER 1
45306 _ACEOF
45307
45308 fi
45309
45310 if test "$wxUSE_TEXTFILE" = "yes"; then
45311   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45312     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45313 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45314   else
45315     cat >>confdefs.h <<\_ACEOF
45316 #define wxUSE_TEXTFILE 1
45317 _ACEOF
45318
45319   fi
45320 fi
45321
45322 if test "$wxUSE_CONFIG" = "yes" ; then
45323   if test "$wxUSE_TEXTFILE" != "yes"; then
45324     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45325 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45326   else
45327     cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_CONFIG 1
45329 _ACEOF
45330
45331     cat >>confdefs.h <<\_ACEOF
45332 #define wxUSE_CONFIG_NATIVE 1
45333 _ACEOF
45334
45335     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45336   fi
45337 fi
45338
45339 if test "$wxUSE_INTL" = "yes" ; then
45340   if test "$wxUSE_FILE" != "yes"; then
45341     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45342 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45343   else
45344     cat >>confdefs.h <<\_ACEOF
45345 #define wxUSE_INTL 1
45346 _ACEOF
45347
45348     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45349     GUIDIST="$GUIDIST INTL_DIST"
45350   fi
45351 fi
45352
45353 if test "$wxUSE_XLOCALE" = "yes" ; then
45354     cat >>confdefs.h <<\_ACEOF
45355 #define wxUSE_XLOCALE 1
45356 _ACEOF
45357
45358     { echo "$as_me:$LINENO: checking for locale_t" >&5
45359 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45360 if test "${ac_cv_type_locale_t+set}" = set; then
45361   echo $ECHO_N "(cached) $ECHO_C" >&6
45362 else
45363   cat >conftest.$ac_ext <<_ACEOF
45364 /* confdefs.h.  */
45365 _ACEOF
45366 cat confdefs.h >>conftest.$ac_ext
45367 cat >>conftest.$ac_ext <<_ACEOF
45368 /* end confdefs.h.  */
45369 #include <xlocale.h>
45370                     #include <locale.h>
45371
45372 typedef locale_t ac__type_new_;
45373 int
45374 main ()
45375 {
45376 if ((ac__type_new_ *) 0)
45377   return 0;
45378 if (sizeof (ac__type_new_))
45379   return 0;
45380   ;
45381   return 0;
45382 }
45383 _ACEOF
45384 rm -f conftest.$ac_objext
45385 if { (ac_try="$ac_compile"
45386 case "(($ac_try" in
45387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45388   *) ac_try_echo=$ac_try;;
45389 esac
45390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45391   (eval "$ac_compile") 2>conftest.er1
45392   ac_status=$?
45393   grep -v '^ *+' conftest.er1 >conftest.err
45394   rm -f conftest.er1
45395   cat conftest.err >&5
45396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45397   (exit $ac_status); } && {
45398          test -z "$ac_c_werror_flag" ||
45399          test ! -s conftest.err
45400        } && test -s conftest.$ac_objext; then
45401   ac_cv_type_locale_t=yes
45402 else
45403   echo "$as_me: failed program was:" >&5
45404 sed 's/^/| /' conftest.$ac_ext >&5
45405
45406         ac_cv_type_locale_t=no
45407 fi
45408
45409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45410 fi
45411 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45412 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45413 if test $ac_cv_type_locale_t = yes; then
45414
45415 cat >>confdefs.h <<_ACEOF
45416 #define HAVE_LOCALE_T 1
45417 _ACEOF
45418
45419
45420 fi
45421
45422 fi
45423
45424 if test "$wxUSE_LOG" = "yes"; then
45425   cat >>confdefs.h <<\_ACEOF
45426 #define wxUSE_LOG 1
45427 _ACEOF
45428
45429
45430     if test "$wxUSE_LOGGUI" = "yes"; then
45431       cat >>confdefs.h <<\_ACEOF
45432 #define wxUSE_LOGGUI 1
45433 _ACEOF
45434
45435     fi
45436
45437     if test "$wxUSE_LOGWINDOW" = "yes"; then
45438       cat >>confdefs.h <<\_ACEOF
45439 #define wxUSE_LOGWINDOW 1
45440 _ACEOF
45441
45442     fi
45443
45444     if test "$wxUSE_LOGDIALOG" = "yes"; then
45445       cat >>confdefs.h <<\_ACEOF
45446 #define wxUSE_LOG_DIALOG 1
45447 _ACEOF
45448
45449     fi
45450
45451         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45452 fi
45453
45454 if test "$wxUSE_LONGLONG" = "yes"; then
45455   cat >>confdefs.h <<\_ACEOF
45456 #define wxUSE_LONGLONG 1
45457 _ACEOF
45458
45459 fi
45460
45461 if test "$wxUSE_GEOMETRY" = "yes"; then
45462   cat >>confdefs.h <<\_ACEOF
45463 #define wxUSE_GEOMETRY 1
45464 _ACEOF
45465
45466 fi
45467
45468 if test "$wxUSE_BASE64" = "yes"; then
45469   cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_BASE64 1
45471 _ACEOF
45472
45473 fi
45474
45475 if test "$wxUSE_STREAMS" = "yes" ; then
45476   cat >>confdefs.h <<\_ACEOF
45477 #define wxUSE_STREAMS 1
45478 _ACEOF
45479
45480 fi
45481
45482 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45483   cat >>confdefs.h <<\_ACEOF
45484 #define wxUSE_PRINTF_POS_PARAMS 1
45485 _ACEOF
45486
45487 fi
45488
45489 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45490   cat >>confdefs.h <<\_ACEOF
45491 #define wxUSE_OBJC_UNIQUIFYING 1
45492 _ACEOF
45493
45494 fi
45495
45496
45497 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45498     cat >>confdefs.h <<\_ACEOF
45499 #define wxUSE_CONSOLE_EVENTLOOP 1
45500 _ACEOF
45501
45502
45503     if test "$wxUSE_UNIX" = "yes"; then
45504         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45505             cat >>confdefs.h <<\_ACEOF
45506 #define wxUSE_SELECT_DISPATCHER 1
45507 _ACEOF
45508
45509         fi
45510
45511         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45512
45513 for ac_header in sys/epoll.h
45514 do
45515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45519   echo $ECHO_N "(cached) $ECHO_C" >&6
45520 else
45521   cat >conftest.$ac_ext <<_ACEOF
45522 /* confdefs.h.  */
45523 _ACEOF
45524 cat confdefs.h >>conftest.$ac_ext
45525 cat >>conftest.$ac_ext <<_ACEOF
45526 /* end confdefs.h.  */
45527 $ac_includes_default
45528
45529 #include <$ac_header>
45530 _ACEOF
45531 rm -f conftest.$ac_objext
45532 if { (ac_try="$ac_compile"
45533 case "(($ac_try" in
45534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45535   *) ac_try_echo=$ac_try;;
45536 esac
45537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45538   (eval "$ac_compile") 2>conftest.er1
45539   ac_status=$?
45540   grep -v '^ *+' conftest.er1 >conftest.err
45541   rm -f conftest.er1
45542   cat conftest.err >&5
45543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544   (exit $ac_status); } && {
45545          test -z "$ac_c_werror_flag" ||
45546          test ! -s conftest.err
45547        } && test -s conftest.$ac_objext; then
45548   eval "$as_ac_Header=yes"
45549 else
45550   echo "$as_me: failed program was:" >&5
45551 sed 's/^/| /' conftest.$ac_ext >&5
45552
45553         eval "$as_ac_Header=no"
45554 fi
45555
45556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45557 fi
45558 ac_res=`eval echo '${'$as_ac_Header'}'`
45559                { echo "$as_me:$LINENO: result: $ac_res" >&5
45560 echo "${ECHO_T}$ac_res" >&6; }
45561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45562   cat >>confdefs.h <<_ACEOF
45563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45564 _ACEOF
45565
45566 fi
45567
45568 done
45569
45570             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45571                 cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_EPOLL_DISPATCHER 1
45573 _ACEOF
45574
45575             else
45576                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45577 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45578             fi
45579         fi
45580     fi
45581 fi
45582
45583
45584
45585
45586 for ac_func in gettimeofday ftime
45587 do
45588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45592   echo $ECHO_N "(cached) $ECHO_C" >&6
45593 else
45594   cat >conftest.$ac_ext <<_ACEOF
45595 /* confdefs.h.  */
45596 _ACEOF
45597 cat confdefs.h >>conftest.$ac_ext
45598 cat >>conftest.$ac_ext <<_ACEOF
45599 /* end confdefs.h.  */
45600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45602 #define $ac_func innocuous_$ac_func
45603
45604 /* System header to define __stub macros and hopefully few prototypes,
45605     which can conflict with char $ac_func (); below.
45606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45607     <limits.h> exists even on freestanding compilers.  */
45608
45609 #ifdef __STDC__
45610 # include <limits.h>
45611 #else
45612 # include <assert.h>
45613 #endif
45614
45615 #undef $ac_func
45616
45617 /* Override any GCC internal prototype to avoid an error.
45618    Use char because int might match the return type of a GCC
45619    builtin and then its argument prototype would still apply.  */
45620 #ifdef __cplusplus
45621 extern "C"
45622 #endif
45623 char $ac_func ();
45624 /* The GNU C library defines this for functions which it implements
45625     to always fail with ENOSYS.  Some functions are actually named
45626     something starting with __ and the normal name is an alias.  */
45627 #if defined __stub_$ac_func || defined __stub___$ac_func
45628 choke me
45629 #endif
45630
45631 int
45632 main ()
45633 {
45634 return $ac_func ();
45635   ;
45636   return 0;
45637 }
45638 _ACEOF
45639 rm -f conftest.$ac_objext conftest$ac_exeext
45640 if { (ac_try="$ac_link"
45641 case "(($ac_try" in
45642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45643   *) ac_try_echo=$ac_try;;
45644 esac
45645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45646   (eval "$ac_link") 2>conftest.er1
45647   ac_status=$?
45648   grep -v '^ *+' conftest.er1 >conftest.err
45649   rm -f conftest.er1
45650   cat conftest.err >&5
45651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45652   (exit $ac_status); } && {
45653          test -z "$ac_c_werror_flag" ||
45654          test ! -s conftest.err
45655        } && test -s conftest$ac_exeext &&
45656        $as_test_x conftest$ac_exeext; then
45657   eval "$as_ac_var=yes"
45658 else
45659   echo "$as_me: failed program was:" >&5
45660 sed 's/^/| /' conftest.$ac_ext >&5
45661
45662         eval "$as_ac_var=no"
45663 fi
45664
45665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45666       conftest$ac_exeext conftest.$ac_ext
45667 fi
45668 ac_res=`eval echo '${'$as_ac_var'}'`
45669                { echo "$as_me:$LINENO: result: $ac_res" >&5
45670 echo "${ECHO_T}$ac_res" >&6; }
45671 if test `eval echo '${'$as_ac_var'}'` = yes; then
45672   cat >>confdefs.h <<_ACEOF
45673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45674 _ACEOF
45675  break
45676 fi
45677 done
45678
45679
45680 if test "$ac_cv_func_gettimeofday" = "yes"; then
45681     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45682 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45683 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45684   echo $ECHO_N "(cached) $ECHO_C" >&6
45685 else
45686
45687                 cat >conftest.$ac_ext <<_ACEOF
45688 /* confdefs.h.  */
45689 _ACEOF
45690 cat confdefs.h >>conftest.$ac_ext
45691 cat >>conftest.$ac_ext <<_ACEOF
45692 /* end confdefs.h.  */
45693
45694                 #include <sys/time.h>
45695                 #include <unistd.h>
45696
45697 int
45698 main ()
45699 {
45700
45701                 struct timeval tv;
45702                 gettimeofday(&tv, NULL);
45703
45704   ;
45705   return 0;
45706 }
45707 _ACEOF
45708 rm -f conftest.$ac_objext
45709 if { (ac_try="$ac_compile"
45710 case "(($ac_try" in
45711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45712   *) ac_try_echo=$ac_try;;
45713 esac
45714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45715   (eval "$ac_compile") 2>conftest.er1
45716   ac_status=$?
45717   grep -v '^ *+' conftest.er1 >conftest.err
45718   rm -f conftest.er1
45719   cat conftest.err >&5
45720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45721   (exit $ac_status); } && {
45722          test -z "$ac_c_werror_flag" ||
45723          test ! -s conftest.err
45724        } && test -s conftest.$ac_objext; then
45725   wx_cv_func_gettimeofday_has_2_args=yes
45726 else
45727   echo "$as_me: failed program was:" >&5
45728 sed 's/^/| /' conftest.$ac_ext >&5
45729
45730         cat >conftest.$ac_ext <<_ACEOF
45731 /* confdefs.h.  */
45732 _ACEOF
45733 cat confdefs.h >>conftest.$ac_ext
45734 cat >>conftest.$ac_ext <<_ACEOF
45735 /* end confdefs.h.  */
45736
45737                     #include <sys/time.h>
45738                     #include <unistd.h>
45739
45740 int
45741 main ()
45742 {
45743
45744                     struct timeval tv;
45745                     gettimeofday(&tv);
45746
45747   ;
45748   return 0;
45749 }
45750 _ACEOF
45751 rm -f conftest.$ac_objext
45752 if { (ac_try="$ac_compile"
45753 case "(($ac_try" in
45754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45755   *) ac_try_echo=$ac_try;;
45756 esac
45757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45758   (eval "$ac_compile") 2>conftest.er1
45759   ac_status=$?
45760   grep -v '^ *+' conftest.er1 >conftest.err
45761   rm -f conftest.er1
45762   cat conftest.err >&5
45763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45764   (exit $ac_status); } && {
45765          test -z "$ac_c_werror_flag" ||
45766          test ! -s conftest.err
45767        } && test -s conftest.$ac_objext; then
45768   wx_cv_func_gettimeofday_has_2_args=no
45769 else
45770   echo "$as_me: failed program was:" >&5
45771 sed 's/^/| /' conftest.$ac_ext >&5
45772
45773
45774                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45775 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45776                     wx_cv_func_gettimeofday_has_2_args=unknown
45777
45778
45779 fi
45780
45781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45782
45783 fi
45784
45785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45786
45787 fi
45788 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45789 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45790
45791     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45792         cat >>confdefs.h <<\_ACEOF
45793 #define WX_GETTIMEOFDAY_NO_TZ 1
45794 _ACEOF
45795
45796     fi
45797 fi
45798
45799 if test "$wxUSE_DATETIME" = "yes"; then
45800             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45801 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45802 if test "${wx_cv_var_timezone+set}" = set; then
45803   echo $ECHO_N "(cached) $ECHO_C" >&6
45804 else
45805
45806                         ac_ext=cpp
45807 ac_cpp='$CXXCPP $CPPFLAGS'
45808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45811
45812                         cat >conftest.$ac_ext <<_ACEOF
45813 /* confdefs.h.  */
45814 _ACEOF
45815 cat confdefs.h >>conftest.$ac_ext
45816 cat >>conftest.$ac_ext <<_ACEOF
45817 /* end confdefs.h.  */
45818
45819                                 #include <time.h>
45820
45821 int
45822 main ()
45823 {
45824
45825                                 int tz;
45826                                 tz = timezone;
45827
45828   ;
45829   return 0;
45830 }
45831 _ACEOF
45832 rm -f conftest.$ac_objext
45833 if { (ac_try="$ac_compile"
45834 case "(($ac_try" in
45835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45836   *) ac_try_echo=$ac_try;;
45837 esac
45838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45839   (eval "$ac_compile") 2>conftest.er1
45840   ac_status=$?
45841   grep -v '^ *+' conftest.er1 >conftest.err
45842   rm -f conftest.er1
45843   cat conftest.err >&5
45844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45845   (exit $ac_status); } && {
45846          test -z "$ac_cxx_werror_flag" ||
45847          test ! -s conftest.err
45848        } && test -s conftest.$ac_objext; then
45849
45850                                 wx_cv_var_timezone=timezone
45851
45852 else
45853   echo "$as_me: failed program was:" >&5
45854 sed 's/^/| /' conftest.$ac_ext >&5
45855
45856
45857                                 cat >conftest.$ac_ext <<_ACEOF
45858 /* confdefs.h.  */
45859 _ACEOF
45860 cat confdefs.h >>conftest.$ac_ext
45861 cat >>conftest.$ac_ext <<_ACEOF
45862 /* end confdefs.h.  */
45863
45864                                         #include <time.h>
45865
45866 int
45867 main ()
45868 {
45869
45870                                         int tz;
45871                                         tz = _timezone;
45872
45873   ;
45874   return 0;
45875 }
45876 _ACEOF
45877 rm -f conftest.$ac_objext
45878 if { (ac_try="$ac_compile"
45879 case "(($ac_try" in
45880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45881   *) ac_try_echo=$ac_try;;
45882 esac
45883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45884   (eval "$ac_compile") 2>conftest.er1
45885   ac_status=$?
45886   grep -v '^ *+' conftest.er1 >conftest.err
45887   rm -f conftest.er1
45888   cat conftest.err >&5
45889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45890   (exit $ac_status); } && {
45891          test -z "$ac_cxx_werror_flag" ||
45892          test ! -s conftest.err
45893        } && test -s conftest.$ac_objext; then
45894
45895                                         wx_cv_var_timezone=_timezone
45896
45897 else
45898   echo "$as_me: failed program was:" >&5
45899 sed 's/^/| /' conftest.$ac_ext >&5
45900
45901
45902                                         cat >conftest.$ac_ext <<_ACEOF
45903 /* confdefs.h.  */
45904 _ACEOF
45905 cat confdefs.h >>conftest.$ac_ext
45906 cat >>conftest.$ac_ext <<_ACEOF
45907 /* end confdefs.h.  */
45908
45909                                                 #include <time.h>
45910
45911 int
45912 main ()
45913 {
45914
45915                                                 int tz;
45916                                                 tz = __timezone;
45917
45918   ;
45919   return 0;
45920 }
45921 _ACEOF
45922 rm -f conftest.$ac_objext
45923 if { (ac_try="$ac_compile"
45924 case "(($ac_try" in
45925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45926   *) ac_try_echo=$ac_try;;
45927 esac
45928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45929   (eval "$ac_compile") 2>conftest.er1
45930   ac_status=$?
45931   grep -v '^ *+' conftest.er1 >conftest.err
45932   rm -f conftest.er1
45933   cat conftest.err >&5
45934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45935   (exit $ac_status); } && {
45936          test -z "$ac_cxx_werror_flag" ||
45937          test ! -s conftest.err
45938        } && test -s conftest.$ac_objext; then
45939
45940                                                 wx_cv_var_timezone=__timezone
45941
45942 else
45943   echo "$as_me: failed program was:" >&5
45944 sed 's/^/| /' conftest.$ac_ext >&5
45945
45946
45947                                                 if test "$USE_DOS" = 0 ; then
45948                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45949 echo "$as_me: WARNING: no timezone variable" >&2;}
45950                                                 fi
45951
45952
45953 fi
45954
45955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45956
45957
45958 fi
45959
45960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45961
45962
45963 fi
45964
45965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45966                         ac_ext=c
45967 ac_cpp='$CPP $CPPFLAGS'
45968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45971
45972
45973
45974 fi
45975 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45976 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45977
45978         if test "x$wx_cv_var_timezone" != x ; then
45979         cat >>confdefs.h <<_ACEOF
45980 #define WX_TIMEZONE $wx_cv_var_timezone
45981 _ACEOF
45982
45983     fi
45984
45985
45986 for ac_func in localtime
45987 do
45988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45992   echo $ECHO_N "(cached) $ECHO_C" >&6
45993 else
45994   cat >conftest.$ac_ext <<_ACEOF
45995 /* confdefs.h.  */
45996 _ACEOF
45997 cat confdefs.h >>conftest.$ac_ext
45998 cat >>conftest.$ac_ext <<_ACEOF
45999 /* end confdefs.h.  */
46000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46002 #define $ac_func innocuous_$ac_func
46003
46004 /* System header to define __stub macros and hopefully few prototypes,
46005     which can conflict with char $ac_func (); below.
46006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46007     <limits.h> exists even on freestanding compilers.  */
46008
46009 #ifdef __STDC__
46010 # include <limits.h>
46011 #else
46012 # include <assert.h>
46013 #endif
46014
46015 #undef $ac_func
46016
46017 /* Override any GCC internal prototype to avoid an error.
46018    Use char because int might match the return type of a GCC
46019    builtin and then its argument prototype would still apply.  */
46020 #ifdef __cplusplus
46021 extern "C"
46022 #endif
46023 char $ac_func ();
46024 /* The GNU C library defines this for functions which it implements
46025     to always fail with ENOSYS.  Some functions are actually named
46026     something starting with __ and the normal name is an alias.  */
46027 #if defined __stub_$ac_func || defined __stub___$ac_func
46028 choke me
46029 #endif
46030
46031 int
46032 main ()
46033 {
46034 return $ac_func ();
46035   ;
46036   return 0;
46037 }
46038 _ACEOF
46039 rm -f conftest.$ac_objext conftest$ac_exeext
46040 if { (ac_try="$ac_link"
46041 case "(($ac_try" in
46042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46043   *) ac_try_echo=$ac_try;;
46044 esac
46045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46046   (eval "$ac_link") 2>conftest.er1
46047   ac_status=$?
46048   grep -v '^ *+' conftest.er1 >conftest.err
46049   rm -f conftest.er1
46050   cat conftest.err >&5
46051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052   (exit $ac_status); } && {
46053          test -z "$ac_c_werror_flag" ||
46054          test ! -s conftest.err
46055        } && test -s conftest$ac_exeext &&
46056        $as_test_x conftest$ac_exeext; then
46057   eval "$as_ac_var=yes"
46058 else
46059   echo "$as_me: failed program was:" >&5
46060 sed 's/^/| /' conftest.$ac_ext >&5
46061
46062         eval "$as_ac_var=no"
46063 fi
46064
46065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46066       conftest$ac_exeext conftest.$ac_ext
46067 fi
46068 ac_res=`eval echo '${'$as_ac_var'}'`
46069                { echo "$as_me:$LINENO: result: $ac_res" >&5
46070 echo "${ECHO_T}$ac_res" >&6; }
46071 if test `eval echo '${'$as_ac_var'}'` = yes; then
46072   cat >>confdefs.h <<_ACEOF
46073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46074 _ACEOF
46075
46076 fi
46077 done
46078
46079
46080     if test "$ac_cv_func_localtime" = "yes"; then
46081         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46082 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46083 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46084   echo $ECHO_N "(cached) $ECHO_C" >&6
46085 else
46086
46087             cat >conftest.$ac_ext <<_ACEOF
46088 /* confdefs.h.  */
46089 _ACEOF
46090 cat confdefs.h >>conftest.$ac_ext
46091 cat >>conftest.$ac_ext <<_ACEOF
46092 /* end confdefs.h.  */
46093
46094                     #include <time.h>
46095
46096 int
46097 main ()
46098 {
46099
46100                     struct tm tm;
46101                     tm.tm_gmtoff++;
46102
46103   ;
46104   return 0;
46105 }
46106 _ACEOF
46107 rm -f conftest.$ac_objext
46108 if { (ac_try="$ac_compile"
46109 case "(($ac_try" in
46110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46111   *) ac_try_echo=$ac_try;;
46112 esac
46113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46114   (eval "$ac_compile") 2>conftest.er1
46115   ac_status=$?
46116   grep -v '^ *+' conftest.er1 >conftest.err
46117   rm -f conftest.er1
46118   cat conftest.err >&5
46119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120   (exit $ac_status); } && {
46121          test -z "$ac_c_werror_flag" ||
46122          test ! -s conftest.err
46123        } && test -s conftest.$ac_objext; then
46124
46125                     wx_cv_struct_tm_has_gmtoff=yes
46126
46127 else
46128   echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46130
46131         wx_cv_struct_tm_has_gmtoff=no
46132
46133 fi
46134
46135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46136
46137 fi
46138 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46139 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46140     fi
46141
46142     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46143         cat >>confdefs.h <<\_ACEOF
46144 #define WX_GMTOFF_IN_TM 1
46145 _ACEOF
46146
46147     fi
46148
46149     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46150 fi
46151
46152
46153 if test "$wxUSE_SOCKETS" = "yes"; then
46154     if test "$wxUSE_MGL" = 1; then
46155         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46156 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46157         wxUSE_SOCKETS="no"
46158     fi
46159 fi
46160
46161 if test "$wxUSE_SOCKETS" = "yes"; then
46162         if test "$TOOLKIT" != "MSW"; then
46163                 { echo "$as_me:$LINENO: checking for socket" >&5
46164 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46165 if test "${ac_cv_func_socket+set}" = set; then
46166   echo $ECHO_N "(cached) $ECHO_C" >&6
46167 else
46168   cat >conftest.$ac_ext <<_ACEOF
46169 /* confdefs.h.  */
46170 _ACEOF
46171 cat confdefs.h >>conftest.$ac_ext
46172 cat >>conftest.$ac_ext <<_ACEOF
46173 /* end confdefs.h.  */
46174 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46176 #define socket innocuous_socket
46177
46178 /* System header to define __stub macros and hopefully few prototypes,
46179     which can conflict with char socket (); below.
46180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46181     <limits.h> exists even on freestanding compilers.  */
46182
46183 #ifdef __STDC__
46184 # include <limits.h>
46185 #else
46186 # include <assert.h>
46187 #endif
46188
46189 #undef socket
46190
46191 /* Override any GCC internal prototype to avoid an error.
46192    Use char because int might match the return type of a GCC
46193    builtin and then its argument prototype would still apply.  */
46194 #ifdef __cplusplus
46195 extern "C"
46196 #endif
46197 char socket ();
46198 /* The GNU C library defines this for functions which it implements
46199     to always fail with ENOSYS.  Some functions are actually named
46200     something starting with __ and the normal name is an alias.  */
46201 #if defined __stub_socket || defined __stub___socket
46202 choke me
46203 #endif
46204
46205 int
46206 main ()
46207 {
46208 return socket ();
46209   ;
46210   return 0;
46211 }
46212 _ACEOF
46213 rm -f conftest.$ac_objext conftest$ac_exeext
46214 if { (ac_try="$ac_link"
46215 case "(($ac_try" in
46216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46217   *) ac_try_echo=$ac_try;;
46218 esac
46219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46220   (eval "$ac_link") 2>conftest.er1
46221   ac_status=$?
46222   grep -v '^ *+' conftest.er1 >conftest.err
46223   rm -f conftest.er1
46224   cat conftest.err >&5
46225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226   (exit $ac_status); } && {
46227          test -z "$ac_c_werror_flag" ||
46228          test ! -s conftest.err
46229        } && test -s conftest$ac_exeext &&
46230        $as_test_x conftest$ac_exeext; then
46231   ac_cv_func_socket=yes
46232 else
46233   echo "$as_me: failed program was:" >&5
46234 sed 's/^/| /' conftest.$ac_ext >&5
46235
46236         ac_cv_func_socket=no
46237 fi
46238
46239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46240       conftest$ac_exeext conftest.$ac_ext
46241 fi
46242 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46243 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46244 if test $ac_cv_func_socket = yes; then
46245   :
46246 else
46247
46248                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46249 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46250 if test "${ac_cv_lib_socket_socket+set}" = set; then
46251   echo $ECHO_N "(cached) $ECHO_C" >&6
46252 else
46253   ac_check_lib_save_LIBS=$LIBS
46254 LIBS="-lsocket  $LIBS"
46255 cat >conftest.$ac_ext <<_ACEOF
46256 /* confdefs.h.  */
46257 _ACEOF
46258 cat confdefs.h >>conftest.$ac_ext
46259 cat >>conftest.$ac_ext <<_ACEOF
46260 /* end confdefs.h.  */
46261
46262 /* Override any GCC internal prototype to avoid an error.
46263    Use char because int might match the return type of a GCC
46264    builtin and then its argument prototype would still apply.  */
46265 #ifdef __cplusplus
46266 extern "C"
46267 #endif
46268 char socket ();
46269 int
46270 main ()
46271 {
46272 return socket ();
46273   ;
46274   return 0;
46275 }
46276 _ACEOF
46277 rm -f conftest.$ac_objext conftest$ac_exeext
46278 if { (ac_try="$ac_link"
46279 case "(($ac_try" in
46280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46281   *) ac_try_echo=$ac_try;;
46282 esac
46283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46284   (eval "$ac_link") 2>conftest.er1
46285   ac_status=$?
46286   grep -v '^ *+' conftest.er1 >conftest.err
46287   rm -f conftest.er1
46288   cat conftest.err >&5
46289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46290   (exit $ac_status); } && {
46291          test -z "$ac_c_werror_flag" ||
46292          test ! -s conftest.err
46293        } && test -s conftest$ac_exeext &&
46294        $as_test_x conftest$ac_exeext; then
46295   ac_cv_lib_socket_socket=yes
46296 else
46297   echo "$as_me: failed program was:" >&5
46298 sed 's/^/| /' conftest.$ac_ext >&5
46299
46300         ac_cv_lib_socket_socket=no
46301 fi
46302
46303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46304       conftest$ac_exeext conftest.$ac_ext
46305 LIBS=$ac_check_lib_save_LIBS
46306 fi
46307 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46308 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46309 if test $ac_cv_lib_socket_socket = yes; then
46310   if test "$INET_LINK" != " -lsocket"; then
46311                         INET_LINK="$INET_LINK -lsocket"
46312                     fi
46313 else
46314
46315                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46316 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46317                         wxUSE_SOCKETS=no
46318
46319
46320 fi
46321
46322
46323
46324 fi
46325
46326     fi
46327 fi
46328
46329 if test "$wxUSE_SOCKETS" = "yes" ; then
46330                 if test "$TOOLKIT" != "MSW"; then
46331                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46332 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46333 if test "${wx_cv_type_getsockname3+set}" = set; then
46334   echo $ECHO_N "(cached) $ECHO_C" >&6
46335 else
46336
46337                 ac_ext=cpp
46338 ac_cpp='$CXXCPP $CPPFLAGS'
46339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46342
46343                 cat >conftest.$ac_ext <<_ACEOF
46344 /* confdefs.h.  */
46345 _ACEOF
46346 cat confdefs.h >>conftest.$ac_ext
46347 cat >>conftest.$ac_ext <<_ACEOF
46348 /* end confdefs.h.  */
46349
46350                         #include <sys/types.h>
46351                         #include <sys/socket.h>
46352
46353 int
46354 main ()
46355 {
46356
46357                         socklen_t len;
46358                         getsockname(0, 0, &len);
46359
46360   ;
46361   return 0;
46362 }
46363 _ACEOF
46364 rm -f conftest.$ac_objext
46365 if { (ac_try="$ac_compile"
46366 case "(($ac_try" in
46367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46368   *) ac_try_echo=$ac_try;;
46369 esac
46370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46371   (eval "$ac_compile") 2>conftest.er1
46372   ac_status=$?
46373   grep -v '^ *+' conftest.er1 >conftest.err
46374   rm -f conftest.er1
46375   cat conftest.err >&5
46376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46377   (exit $ac_status); } && {
46378          test -z "$ac_cxx_werror_flag" ||
46379          test ! -s conftest.err
46380        } && test -s conftest.$ac_objext; then
46381   wx_cv_type_getsockname3=socklen_t
46382 else
46383   echo "$as_me: failed program was:" >&5
46384 sed 's/^/| /' conftest.$ac_ext >&5
46385
46386
46387                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46388                         if test "$GCC" = yes ; then
46389                             CFLAGS="-Werror $CFLAGS"
46390                         fi
46391
46392                         cat >conftest.$ac_ext <<_ACEOF
46393 /* confdefs.h.  */
46394 _ACEOF
46395 cat confdefs.h >>conftest.$ac_ext
46396 cat >>conftest.$ac_ext <<_ACEOF
46397 /* end confdefs.h.  */
46398
46399                                 #include <sys/types.h>
46400                                 #include <sys/socket.h>
46401
46402 int
46403 main ()
46404 {
46405
46406                                 size_t len;
46407                                 getsockname(0, 0, &len);
46408
46409   ;
46410   return 0;
46411 }
46412 _ACEOF
46413 rm -f conftest.$ac_objext
46414 if { (ac_try="$ac_compile"
46415 case "(($ac_try" in
46416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46417   *) ac_try_echo=$ac_try;;
46418 esac
46419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46420   (eval "$ac_compile") 2>conftest.er1
46421   ac_status=$?
46422   grep -v '^ *+' conftest.er1 >conftest.err
46423   rm -f conftest.er1
46424   cat conftest.err >&5
46425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46426   (exit $ac_status); } && {
46427          test -z "$ac_cxx_werror_flag" ||
46428          test ! -s conftest.err
46429        } && test -s conftest.$ac_objext; then
46430   wx_cv_type_getsockname3=size_t
46431 else
46432   echo "$as_me: failed program was:" >&5
46433 sed 's/^/| /' conftest.$ac_ext >&5
46434
46435         cat >conftest.$ac_ext <<_ACEOF
46436 /* confdefs.h.  */
46437 _ACEOF
46438 cat confdefs.h >>conftest.$ac_ext
46439 cat >>conftest.$ac_ext <<_ACEOF
46440 /* end confdefs.h.  */
46441
46442                                     #include <sys/types.h>
46443                                     #include <sys/socket.h>
46444
46445 int
46446 main ()
46447 {
46448
46449                                     int len;
46450                                     getsockname(0, 0, &len);
46451
46452   ;
46453   return 0;
46454 }
46455 _ACEOF
46456 rm -f conftest.$ac_objext
46457 if { (ac_try="$ac_compile"
46458 case "(($ac_try" in
46459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46460   *) ac_try_echo=$ac_try;;
46461 esac
46462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46463   (eval "$ac_compile") 2>conftest.er1
46464   ac_status=$?
46465   grep -v '^ *+' conftest.er1 >conftest.err
46466   rm -f conftest.er1
46467   cat conftest.err >&5
46468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46469   (exit $ac_status); } && {
46470          test -z "$ac_cxx_werror_flag" ||
46471          test ! -s conftest.err
46472        } && test -s conftest.$ac_objext; then
46473   wx_cv_type_getsockname3=int
46474 else
46475   echo "$as_me: failed program was:" >&5
46476 sed 's/^/| /' conftest.$ac_ext >&5
46477
46478         wx_cv_type_getsockname3=unknown
46479
46480 fi
46481
46482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46483
46484 fi
46485
46486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46487
46488                         CFLAGS="$CFLAGS_OLD"
46489
46490
46491 fi
46492
46493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46494                 ac_ext=c
46495 ac_cpp='$CPP $CPPFLAGS'
46496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46499
46500
46501 fi
46502 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46503 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46504
46505         if test "$wx_cv_type_getsockname3" = "unknown"; then
46506             wxUSE_SOCKETS=no
46507             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46508 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46509         else
46510             cat >>confdefs.h <<_ACEOF
46511 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46512 _ACEOF
46513
46514         fi
46515                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46516 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46517 if test "${wx_cv_type_getsockopt5+set}" = set; then
46518   echo $ECHO_N "(cached) $ECHO_C" >&6
46519 else
46520
46521                                                                                                 ac_ext=cpp
46522 ac_cpp='$CXXCPP $CPPFLAGS'
46523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46526
46527                 cat >conftest.$ac_ext <<_ACEOF
46528 /* confdefs.h.  */
46529 _ACEOF
46530 cat confdefs.h >>conftest.$ac_ext
46531 cat >>conftest.$ac_ext <<_ACEOF
46532 /* end confdefs.h.  */
46533
46534                         #include <sys/types.h>
46535                         #include <sys/socket.h>
46536
46537 int
46538 main ()
46539 {
46540
46541                         socklen_t len;
46542                         getsockopt(0, 0, 0, 0, &len);
46543
46544   ;
46545   return 0;
46546 }
46547 _ACEOF
46548 rm -f conftest.$ac_objext
46549 if { (ac_try="$ac_compile"
46550 case "(($ac_try" in
46551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46552   *) ac_try_echo=$ac_try;;
46553 esac
46554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46555   (eval "$ac_compile") 2>conftest.er1
46556   ac_status=$?
46557   grep -v '^ *+' conftest.er1 >conftest.err
46558   rm -f conftest.er1
46559   cat conftest.err >&5
46560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46561   (exit $ac_status); } && {
46562          test -z "$ac_cxx_werror_flag" ||
46563          test ! -s conftest.err
46564        } && test -s conftest.$ac_objext; then
46565   wx_cv_type_getsockopt5=socklen_t
46566 else
46567   echo "$as_me: failed program was:" >&5
46568 sed 's/^/| /' conftest.$ac_ext >&5
46569
46570
46571                         cat >conftest.$ac_ext <<_ACEOF
46572 /* confdefs.h.  */
46573 _ACEOF
46574 cat confdefs.h >>conftest.$ac_ext
46575 cat >>conftest.$ac_ext <<_ACEOF
46576 /* end confdefs.h.  */
46577
46578                                 #include <sys/types.h>
46579                                 #include <sys/socket.h>
46580
46581 int
46582 main ()
46583 {
46584
46585                                 size_t len;
46586                                 getsockopt(0, 0, 0, 0, &len);
46587
46588   ;
46589   return 0;
46590 }
46591 _ACEOF
46592 rm -f conftest.$ac_objext
46593 if { (ac_try="$ac_compile"
46594 case "(($ac_try" in
46595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46596   *) ac_try_echo=$ac_try;;
46597 esac
46598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46599   (eval "$ac_compile") 2>conftest.er1
46600   ac_status=$?
46601   grep -v '^ *+' conftest.er1 >conftest.err
46602   rm -f conftest.er1
46603   cat conftest.err >&5
46604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46605   (exit $ac_status); } && {
46606          test -z "$ac_cxx_werror_flag" ||
46607          test ! -s conftest.err
46608        } && test -s conftest.$ac_objext; then
46609   wx_cv_type_getsockopt5=size_t
46610 else
46611   echo "$as_me: failed program was:" >&5
46612 sed 's/^/| /' conftest.$ac_ext >&5
46613
46614         cat >conftest.$ac_ext <<_ACEOF
46615 /* confdefs.h.  */
46616 _ACEOF
46617 cat confdefs.h >>conftest.$ac_ext
46618 cat >>conftest.$ac_ext <<_ACEOF
46619 /* end confdefs.h.  */
46620
46621                                     #include <sys/types.h>
46622                                     #include <sys/socket.h>
46623
46624 int
46625 main ()
46626 {
46627
46628                                     int len;
46629                                     getsockopt(0, 0, 0, 0, &len);
46630
46631   ;
46632   return 0;
46633 }
46634 _ACEOF
46635 rm -f conftest.$ac_objext
46636 if { (ac_try="$ac_compile"
46637 case "(($ac_try" in
46638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46639   *) ac_try_echo=$ac_try;;
46640 esac
46641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46642   (eval "$ac_compile") 2>conftest.er1
46643   ac_status=$?
46644   grep -v '^ *+' conftest.er1 >conftest.err
46645   rm -f conftest.er1
46646   cat conftest.err >&5
46647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46648   (exit $ac_status); } && {
46649          test -z "$ac_cxx_werror_flag" ||
46650          test ! -s conftest.err
46651        } && test -s conftest.$ac_objext; then
46652   wx_cv_type_getsockopt5=int
46653 else
46654   echo "$as_me: failed program was:" >&5
46655 sed 's/^/| /' conftest.$ac_ext >&5
46656
46657         wx_cv_type_getsockopt5=unknown
46658
46659 fi
46660
46661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46662
46663 fi
46664
46665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46666
46667
46668 fi
46669
46670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46671                 ac_ext=c
46672 ac_cpp='$CPP $CPPFLAGS'
46673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46676
46677
46678 fi
46679 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46680 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46681
46682         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46683             wxUSE_SOCKETS=no
46684             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46685 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46686         else
46687             cat >>confdefs.h <<_ACEOF
46688 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46689 _ACEOF
46690
46691         fi
46692     fi
46693 fi
46694
46695 if test "$wxUSE_SOCKETS" = "yes" ; then
46696     if test "$wxUSE_IPV6" = "yes"; then
46697         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46698 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46699 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46700   echo $ECHO_N "(cached) $ECHO_C" >&6
46701 else
46702
46703                 cat >conftest.$ac_ext <<_ACEOF
46704 /* confdefs.h.  */
46705 _ACEOF
46706 cat confdefs.h >>conftest.$ac_ext
46707 cat >>conftest.$ac_ext <<_ACEOF
46708 /* end confdefs.h.  */
46709
46710                         #include <sys/types.h>
46711                         #include <sys/socket.h>
46712                         #include <netinet/in.h>
46713
46714 int
46715 main ()
46716 {
46717
46718                         struct sockaddr_in6 sa6;
46719
46720   ;
46721   return 0;
46722 }
46723 _ACEOF
46724 rm -f conftest.$ac_objext
46725 if { (ac_try="$ac_compile"
46726 case "(($ac_try" in
46727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46728   *) ac_try_echo=$ac_try;;
46729 esac
46730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46731   (eval "$ac_compile") 2>conftest.er1
46732   ac_status=$?
46733   grep -v '^ *+' conftest.er1 >conftest.err
46734   rm -f conftest.er1
46735   cat conftest.err >&5
46736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737   (exit $ac_status); } && {
46738          test -z "$ac_c_werror_flag" ||
46739          test ! -s conftest.err
46740        } && test -s conftest.$ac_objext; then
46741   wx_cv_type_sockaddr_in6=yes
46742 else
46743   echo "$as_me: failed program was:" >&5
46744 sed 's/^/| /' conftest.$ac_ext >&5
46745
46746         wx_cv_type_sockaddr_in6=no
46747
46748 fi
46749
46750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46751
46752
46753 fi
46754 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46755 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46756
46757         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46758             cat >>confdefs.h <<\_ACEOF
46759 #define wxUSE_IPV6 1
46760 _ACEOF
46761
46762         else
46763             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46764 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46765         fi
46766     fi
46767
46768     cat >>confdefs.h <<\_ACEOF
46769 #define wxUSE_SOCKETS 1
46770 _ACEOF
46771
46772     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46773 fi
46774
46775 if test "$wxUSE_PROTOCOL" = "yes"; then
46776     if test "$wxUSE_SOCKETS" != "yes"; then
46777         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46778 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46779         wxUSE_PROTOCOL=no
46780     fi
46781 fi
46782
46783 if test "$wxUSE_PROTOCOL" = "yes"; then
46784     cat >>confdefs.h <<\_ACEOF
46785 #define wxUSE_PROTOCOL 1
46786 _ACEOF
46787
46788
46789     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46790         cat >>confdefs.h <<\_ACEOF
46791 #define wxUSE_PROTOCOL_HTTP 1
46792 _ACEOF
46793
46794     fi
46795     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46796         cat >>confdefs.h <<\_ACEOF
46797 #define wxUSE_PROTOCOL_FTP 1
46798 _ACEOF
46799
46800     fi
46801     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46802         cat >>confdefs.h <<\_ACEOF
46803 #define wxUSE_PROTOCOL_FILE 1
46804 _ACEOF
46805
46806     fi
46807 else
46808     if test "$wxUSE_FS_INET" = "yes"; then
46809         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46810 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46811         wxUSE_FS_INET="no"
46812     fi
46813 fi
46814
46815 if test "$wxUSE_URL" = "yes"; then
46816     if test "$wxUSE_PROTOCOL" != "yes"; then
46817         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46818 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46819         wxUSE_URL=no
46820     fi
46821     if test "$wxUSE_URL" = "yes"; then
46822         cat >>confdefs.h <<\_ACEOF
46823 #define wxUSE_URL 1
46824 _ACEOF
46825
46826     fi
46827 fi
46828
46829 if test "$wxUSE_VARIANT" = "yes"; then
46830     cat >>confdefs.h <<\_ACEOF
46831 #define wxUSE_VARIANT 1
46832 _ACEOF
46833
46834 fi
46835
46836 if test "$wxUSE_FS_INET" = "yes"; then
46837   cat >>confdefs.h <<\_ACEOF
46838 #define wxUSE_FS_INET 1
46839 _ACEOF
46840
46841 fi
46842
46843
46844 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46845     wxUSE_JOYSTICK=no
46846
46847         if test "$TOOLKIT" = "MSW"; then
46848         wxUSE_JOYSTICK=yes
46849
46850         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46851         if test "$USE_DARWIN" = 1; then
46852                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46853 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46854             ac_ext=cpp
46855 ac_cpp='$CXXCPP $CPPFLAGS'
46856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46859
46860             cat >conftest.$ac_ext <<_ACEOF
46861 /* confdefs.h.  */
46862 _ACEOF
46863 cat confdefs.h >>conftest.$ac_ext
46864 cat >>conftest.$ac_ext <<_ACEOF
46865 /* end confdefs.h.  */
46866  #include <IOKit/hid/IOHIDLib.h>
46867 int
46868 main ()
46869 {
46870  IOHIDQueueInterface *qi = NULL;
46871                               IOHIDCallbackFunction cb = NULL;
46872                               qi->setEventCallout(NULL, cb, NULL, NULL);
46873   ;
46874   return 0;
46875 }
46876 _ACEOF
46877 rm -f conftest.$ac_objext
46878 if { (ac_try="$ac_compile"
46879 case "(($ac_try" in
46880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46881   *) ac_try_echo=$ac_try;;
46882 esac
46883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46884   (eval "$ac_compile") 2>conftest.er1
46885   ac_status=$?
46886   grep -v '^ *+' conftest.er1 >conftest.err
46887   rm -f conftest.er1
46888   cat conftest.err >&5
46889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46890   (exit $ac_status); } && {
46891          test -z "$ac_cxx_werror_flag" ||
46892          test ! -s conftest.err
46893        } && test -s conftest.$ac_objext; then
46894    wxUSE_JOYSTICK=yes
46895
46896 else
46897   echo "$as_me: failed program was:" >&5
46898 sed 's/^/| /' conftest.$ac_ext >&5
46899
46900
46901 fi
46902
46903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46904             ac_ext=c
46905 ac_cpp='$CPP $CPPFLAGS'
46906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46909
46910             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46911 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46912         fi
46913
46914         else
46915                 if test "$wxUSE_MGL" != 1; then
46916
46917 for ac_header in linux/joystick.h
46918 do
46919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46923   echo $ECHO_N "(cached) $ECHO_C" >&6
46924 else
46925   cat >conftest.$ac_ext <<_ACEOF
46926 /* confdefs.h.  */
46927 _ACEOF
46928 cat confdefs.h >>conftest.$ac_ext
46929 cat >>conftest.$ac_ext <<_ACEOF
46930 /* end confdefs.h.  */
46931 $ac_includes_default
46932
46933 #include <$ac_header>
46934 _ACEOF
46935 rm -f conftest.$ac_objext
46936 if { (ac_try="$ac_compile"
46937 case "(($ac_try" in
46938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46939   *) ac_try_echo=$ac_try;;
46940 esac
46941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46942   (eval "$ac_compile") 2>conftest.er1
46943   ac_status=$?
46944   grep -v '^ *+' conftest.er1 >conftest.err
46945   rm -f conftest.er1
46946   cat conftest.err >&5
46947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948   (exit $ac_status); } && {
46949          test -z "$ac_c_werror_flag" ||
46950          test ! -s conftest.err
46951        } && test -s conftest.$ac_objext; then
46952   eval "$as_ac_Header=yes"
46953 else
46954   echo "$as_me: failed program was:" >&5
46955 sed 's/^/| /' conftest.$ac_ext >&5
46956
46957         eval "$as_ac_Header=no"
46958 fi
46959
46960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46961 fi
46962 ac_res=`eval echo '${'$as_ac_Header'}'`
46963                { echo "$as_me:$LINENO: result: $ac_res" >&5
46964 echo "${ECHO_T}$ac_res" >&6; }
46965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46966   cat >>confdefs.h <<_ACEOF
46967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46968 _ACEOF
46969  wxUSE_JOYSTICK=yes
46970 fi
46971
46972 done
46973
46974         fi
46975     fi
46976
46977     if test "$wxUSE_JOYSTICK" = "yes"; then
46978         cat >>confdefs.h <<\_ACEOF
46979 #define wxUSE_JOYSTICK 1
46980 _ACEOF
46981
46982         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46983     else
46984         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46985 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46986     fi
46987 fi
46988
46989
46990
46991 if test "$wxUSE_FONTENUM" = "yes" ; then
46992   cat >>confdefs.h <<\_ACEOF
46993 #define wxUSE_FONTENUM 1
46994 _ACEOF
46995
46996 fi
46997
46998 if test "$wxUSE_FONTMAP" = "yes" ; then
46999   cat >>confdefs.h <<\_ACEOF
47000 #define wxUSE_FONTMAP 1
47001 _ACEOF
47002
47003 fi
47004
47005 if test "$wxUSE_UNICODE" = "yes" ; then
47006   cat >>confdefs.h <<\_ACEOF
47007 #define wxUSE_UNICODE 1
47008 _ACEOF
47009
47010
47011   if test "$USE_WIN32" != 1; then
47012       wxUSE_UNICODE_MSLU=no
47013   fi
47014
47015   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47016         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47017 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47018 if test "${ac_cv_lib_unicows_main+set}" = set; then
47019   echo $ECHO_N "(cached) $ECHO_C" >&6
47020 else
47021   ac_check_lib_save_LIBS=$LIBS
47022 LIBS="-lunicows  $LIBS"
47023 cat >conftest.$ac_ext <<_ACEOF
47024 /* confdefs.h.  */
47025 _ACEOF
47026 cat confdefs.h >>conftest.$ac_ext
47027 cat >>conftest.$ac_ext <<_ACEOF
47028 /* end confdefs.h.  */
47029
47030
47031 int
47032 main ()
47033 {
47034 return main ();
47035   ;
47036   return 0;
47037 }
47038 _ACEOF
47039 rm -f conftest.$ac_objext conftest$ac_exeext
47040 if { (ac_try="$ac_link"
47041 case "(($ac_try" in
47042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47043   *) ac_try_echo=$ac_try;;
47044 esac
47045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47046   (eval "$ac_link") 2>conftest.er1
47047   ac_status=$?
47048   grep -v '^ *+' conftest.er1 >conftest.err
47049   rm -f conftest.er1
47050   cat conftest.err >&5
47051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47052   (exit $ac_status); } && {
47053          test -z "$ac_c_werror_flag" ||
47054          test ! -s conftest.err
47055        } && test -s conftest$ac_exeext &&
47056        $as_test_x conftest$ac_exeext; then
47057   ac_cv_lib_unicows_main=yes
47058 else
47059   echo "$as_me: failed program was:" >&5
47060 sed 's/^/| /' conftest.$ac_ext >&5
47061
47062         ac_cv_lib_unicows_main=no
47063 fi
47064
47065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47066       conftest$ac_exeext conftest.$ac_ext
47067 LIBS=$ac_check_lib_save_LIBS
47068 fi
47069 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47070 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47071 if test $ac_cv_lib_unicows_main = yes; then
47072
47073                 cat >>confdefs.h <<\_ACEOF
47074 #define wxUSE_UNICODE_MSLU 1
47075 _ACEOF
47076
47077
47078 else
47079
47080                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47081                              Applications will only run on Windows NT/2000/XP!" >&5
47082 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47083                              Applications will only run on Windows NT/2000/XP!" >&2;}
47084                 wxUSE_UNICODE_MSLU=no
47085
47086 fi
47087
47088     fi
47089 fi
47090
47091 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47092     cat >>confdefs.h <<\_ACEOF
47093 #define wxUSE_UNICODE_UTF8 1
47094 _ACEOF
47095
47096
47097     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47098         cat >>confdefs.h <<\_ACEOF
47099 #define wxUSE_UTF8_LOCALE_ONLY 1
47100 _ACEOF
47101
47102     fi
47103 fi
47104
47105
47106 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47107     cat >>confdefs.h <<\_ACEOF
47108 #define wxUSE_CONSTRAINTS 1
47109 _ACEOF
47110
47111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47112 fi
47113
47114 if test "$wxUSE_MDI" = "yes"; then
47115     cat >>confdefs.h <<\_ACEOF
47116 #define wxUSE_MDI 1
47117 _ACEOF
47118
47119
47120     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47121         cat >>confdefs.h <<\_ACEOF
47122 #define wxUSE_MDI_ARCHITECTURE 1
47123 _ACEOF
47124
47125         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47126     fi
47127 fi
47128
47129 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47130     cat >>confdefs.h <<\_ACEOF
47131 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47132 _ACEOF
47133
47134     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47135 fi
47136
47137 if test "$wxUSE_HELP" = "yes"; then
47138     cat >>confdefs.h <<\_ACEOF
47139 #define wxUSE_HELP 1
47140 _ACEOF
47141
47142     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47143
47144     if test "$wxUSE_MSW" = 1; then
47145       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47146         cat >>confdefs.h <<\_ACEOF
47147 #define wxUSE_MS_HTML_HELP 1
47148 _ACEOF
47149
47150       fi
47151     fi
47152
47153     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47154       if test "$wxUSE_HTML" = "yes"; then
47155         cat >>confdefs.h <<\_ACEOF
47156 #define wxUSE_WXHTML_HELP 1
47157 _ACEOF
47158
47159       else
47160         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47161 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47162         wxUSE_WXHTML_HELP=no
47163       fi
47164     fi
47165 fi
47166
47167 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47168     cat >>confdefs.h <<\_ACEOF
47169 #define wxUSE_PRINTING_ARCHITECTURE 1
47170 _ACEOF
47171
47172     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47173 fi
47174
47175 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47176   cat >>confdefs.h <<\_ACEOF
47177 #define wxUSE_POSTSCRIPT 1
47178 _ACEOF
47179
47180 fi
47181
47182 cat >>confdefs.h <<\_ACEOF
47183 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47184 _ACEOF
47185
47186
47187 if test "$wxUSE_SVG" = "yes"; then
47188     cat >>confdefs.h <<\_ACEOF
47189 #define wxUSE_SVG 1
47190 _ACEOF
47191
47192 fi
47193
47194
47195 if test "$wxUSE_METAFILE" = "yes"; then
47196     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47197         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47198 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47199         wxUSE_METAFILE=no
47200     fi
47201 elif test "$wxUSE_METAFILE" = "auto"; then
47202     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
47203         wxUSE_METAFILE=yes
47204     fi
47205 fi
47206
47207 if test "$wxUSE_METAFILE" = "yes"; then
47208     cat >>confdefs.h <<\_ACEOF
47209 #define wxUSE_METAFILE 1
47210 _ACEOF
47211
47212     if test "$wxUSE_MSW" = 1; then
47213                 cat >>confdefs.h <<\_ACEOF
47214 #define wxUSE_ENH_METAFILE 1
47215 _ACEOF
47216
47217     fi
47218 fi
47219
47220
47221 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47222                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47223                           -o "$wxUSE_OLE"     = "yes" \
47224                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47225     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47226 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47227 if test "${ac_cv_header_ole2_h+set}" = set; then
47228   echo $ECHO_N "(cached) $ECHO_C" >&6
47229 else
47230   cat >conftest.$ac_ext <<_ACEOF
47231 /* confdefs.h.  */
47232 _ACEOF
47233 cat confdefs.h >>conftest.$ac_ext
47234 cat >>conftest.$ac_ext <<_ACEOF
47235 /* end confdefs.h.  */
47236
47237
47238 #include <ole2.h>
47239 _ACEOF
47240 rm -f conftest.$ac_objext
47241 if { (ac_try="$ac_compile"
47242 case "(($ac_try" in
47243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47244   *) ac_try_echo=$ac_try;;
47245 esac
47246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47247   (eval "$ac_compile") 2>conftest.er1
47248   ac_status=$?
47249   grep -v '^ *+' conftest.er1 >conftest.err
47250   rm -f conftest.er1
47251   cat conftest.err >&5
47252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47253   (exit $ac_status); } && {
47254          test -z "$ac_c_werror_flag" ||
47255          test ! -s conftest.err
47256        } && test -s conftest.$ac_objext; then
47257   ac_cv_header_ole2_h=yes
47258 else
47259   echo "$as_me: failed program was:" >&5
47260 sed 's/^/| /' conftest.$ac_ext >&5
47261
47262         ac_cv_header_ole2_h=no
47263 fi
47264
47265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47266 fi
47267 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47268 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47269
47270
47271
47272     if test "$ac_cv_header_ole2_h" = "yes" ; then
47273         if test "$GCC" = yes ; then
47274             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47275 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47276             cat >conftest.$ac_ext <<_ACEOF
47277 /* confdefs.h.  */
47278 _ACEOF
47279 cat confdefs.h >>conftest.$ac_ext
47280 cat >>conftest.$ac_ext <<_ACEOF
47281 /* end confdefs.h.  */
47282 #include <windows.h>
47283                             #include <ole2.h>
47284 int
47285 main ()
47286 {
47287
47288   ;
47289   return 0;
47290 }
47291 _ACEOF
47292 rm -f conftest.$ac_objext
47293 if { (ac_try="$ac_compile"
47294 case "(($ac_try" in
47295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47296   *) ac_try_echo=$ac_try;;
47297 esac
47298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47299   (eval "$ac_compile") 2>conftest.er1
47300   ac_status=$?
47301   grep -v '^ *+' conftest.er1 >conftest.err
47302   rm -f conftest.er1
47303   cat conftest.err >&5
47304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305   (exit $ac_status); } && {
47306          test -z "$ac_c_werror_flag" ||
47307          test ! -s conftest.err
47308        } && test -s conftest.$ac_objext; then
47309   { echo "$as_me:$LINENO: result: no" >&5
47310 echo "${ECHO_T}no" >&6; }
47311 else
47312   echo "$as_me: failed program was:" >&5
47313 sed 's/^/| /' conftest.$ac_ext >&5
47314
47315         { echo "$as_me:$LINENO: result: yes" >&5
47316 echo "${ECHO_T}yes" >&6; }
47317                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47318 fi
47319
47320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47321             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47322             if test "$wxUSE_OLE" = "yes" ; then
47323                 cat >>confdefs.h <<\_ACEOF
47324 #define wxUSE_OLE 1
47325 _ACEOF
47326
47327                 cat >>confdefs.h <<\_ACEOF
47328 #define wxUSE_OLE_AUTOMATION 1
47329 _ACEOF
47330
47331                 cat >>confdefs.h <<\_ACEOF
47332 #define wxUSE_ACTIVEX 1
47333 _ACEOF
47334
47335                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47336             fi
47337         fi
47338
47339                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47340             cat >>confdefs.h <<\_ACEOF
47341 #define wxUSE_DATAOBJ 1
47342 _ACEOF
47343
47344         fi
47345     else
47346         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47347 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47348
47349         wxUSE_CLIPBOARD=no
47350         wxUSE_DRAG_AND_DROP=no
47351         wxUSE_DATAOBJ=no
47352         wxUSE_OLE=no
47353     fi
47354 fi
47355
47356 if test "$wxUSE_IPC" = "yes"; then
47357     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47358         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47359 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47360         wxUSE_IPC=no
47361     fi
47362
47363     if test "$wxUSE_IPC" = "yes"; then
47364         cat >>confdefs.h <<\_ACEOF
47365 #define wxUSE_IPC 1
47366 _ACEOF
47367
47368         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47369     fi
47370 fi
47371
47372 if test "$wxUSE_DATAOBJ" = "yes"; then
47373     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47374         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47375 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47376         wxUSE_DATAOBJ=no
47377     else
47378         cat >>confdefs.h <<\_ACEOF
47379 #define wxUSE_DATAOBJ 1
47380 _ACEOF
47381
47382     fi
47383 else
47384     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47385 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47386     wxUSE_CLIPBOARD=no
47387     wxUSE_DRAG_AND_DROP=no
47388 fi
47389
47390 if test "$wxUSE_CLIPBOARD" = "yes"; then
47391     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47392         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47393 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47394         wxUSE_CLIPBOARD=no
47395     fi
47396
47397     if test "$wxUSE_CLIPBOARD" = "yes"; then
47398         cat >>confdefs.h <<\_ACEOF
47399 #define wxUSE_CLIPBOARD 1
47400 _ACEOF
47401
47402     fi
47403 fi
47404
47405 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47406     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47407             "$wxUSE_DFB" = 1; then
47408         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47409 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47410         wxUSE_DRAG_AND_DROP=no
47411     fi
47412
47413     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47414         cat >>confdefs.h <<\_ACEOF
47415 #define wxUSE_DRAG_AND_DROP 1
47416 _ACEOF
47417
47418     fi
47419
47420 fi
47421
47422 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47423     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47424 fi
47425
47426 if test "$wxUSE_CLIPBOARD" = "yes"; then
47427     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47428 fi
47429
47430 if test "$wxUSE_SPLINES" = "yes" ; then
47431   cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_SPLINES 1
47433 _ACEOF
47434
47435 fi
47436
47437 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47438   cat >>confdefs.h <<\_ACEOF
47439 #define wxUSE_MOUSEWHEEL 1
47440 _ACEOF
47441
47442 fi
47443
47444 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47445     cat >>confdefs.h <<\_ACEOF
47446 #define wxUSE_UIACTIONSIMULATOR 1
47447 _ACEOF
47448
47449     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47450 fi
47451
47452 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47453     cat >>confdefs.h <<\_ACEOF
47454 #define wxUSE_DC_TRANSFORM_MATRIX 1
47455 _ACEOF
47456
47457 fi
47458
47459
47460 USES_CONTROLS=0
47461 if test "$wxUSE_CONTROLS" = "yes"; then
47462   USES_CONTROLS=1
47463 fi
47464
47465 if test "$wxUSE_MARKUP" = "yes"; then
47466   cat >>confdefs.h <<\_ACEOF
47467 #define wxUSE_MARKUP 1
47468 _ACEOF
47469
47470 fi
47471
47472 if test "$wxUSE_ACCEL" = "yes"; then
47473   cat >>confdefs.h <<\_ACEOF
47474 #define wxUSE_ACCEL 1
47475 _ACEOF
47476
47477   USES_CONTROLS=1
47478 fi
47479
47480 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47481   cat >>confdefs.h <<\_ACEOF
47482 #define wxUSE_ANIMATIONCTRL 1
47483 _ACEOF
47484
47485   USES_CONTROLS=1
47486   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47487 fi
47488
47489 if test "$wxUSE_BANNERWINDOW" = "yes"; then
47490   cat >>confdefs.h <<\_ACEOF
47491 #define wxUSE_BANNERWINDOW 1
47492 _ACEOF
47493
47494 fi
47495
47496 if test "$wxUSE_BUTTON" = "yes"; then
47497   cat >>confdefs.h <<\_ACEOF
47498 #define wxUSE_BUTTON 1
47499 _ACEOF
47500
47501   USES_CONTROLS=1
47502 fi
47503
47504 if test "$wxUSE_BMPBUTTON" = "yes"; then
47505   cat >>confdefs.h <<\_ACEOF
47506 #define wxUSE_BMPBUTTON 1
47507 _ACEOF
47508
47509   USES_CONTROLS=1
47510 fi
47511
47512 if test "$wxUSE_CALCTRL" = "yes"; then
47513   cat >>confdefs.h <<\_ACEOF
47514 #define wxUSE_CALENDARCTRL 1
47515 _ACEOF
47516
47517   USES_CONTROLS=1
47518   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47519 fi
47520
47521 if test "$wxUSE_CARET" = "yes"; then
47522   cat >>confdefs.h <<\_ACEOF
47523 #define wxUSE_CARET 1
47524 _ACEOF
47525
47526   USES_CONTROLS=1
47527   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47528 fi
47529
47530 if test "$wxUSE_COLLPANE" = "yes"; then
47531     cat >>confdefs.h <<\_ACEOF
47532 #define wxUSE_COLLPANE 1
47533 _ACEOF
47534
47535     USES_CONTROLS=1
47536     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47537 fi
47538
47539 if test "$wxUSE_COMBOBOX" = "yes"; then
47540   cat >>confdefs.h <<\_ACEOF
47541 #define wxUSE_COMBOBOX 1
47542 _ACEOF
47543
47544   USES_CONTROLS=1
47545 fi
47546
47547 if test "$wxUSE_COMBOCTRL" = "yes"; then
47548   cat >>confdefs.h <<\_ACEOF
47549 #define wxUSE_COMBOCTRL 1
47550 _ACEOF
47551
47552   USES_CONTROLS=1
47553 fi
47554
47555 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47556   cat >>confdefs.h <<\_ACEOF
47557 #define wxUSE_COMMANDLINKBUTTON 1
47558 _ACEOF
47559
47560   USES_CONTROLS=1
47561 fi
47562
47563 if test "$wxUSE_CHOICE" = "yes"; then
47564   cat >>confdefs.h <<\_ACEOF
47565 #define wxUSE_CHOICE 1
47566 _ACEOF
47567
47568   USES_CONTROLS=1
47569 fi
47570
47571 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47572     cat >>confdefs.h <<\_ACEOF
47573 #define wxUSE_CHOICEBOOK 1
47574 _ACEOF
47575
47576     USES_CONTROLS=1
47577 fi
47578
47579 if test "$wxUSE_CHECKBOX" = "yes"; then
47580   cat >>confdefs.h <<\_ACEOF
47581 #define wxUSE_CHECKBOX 1
47582 _ACEOF
47583
47584   USES_CONTROLS=1
47585 fi
47586
47587 if test "$wxUSE_CHECKLST" = "yes"; then
47588   cat >>confdefs.h <<\_ACEOF
47589 #define wxUSE_CHECKLISTBOX 1
47590 _ACEOF
47591
47592   USES_CONTROLS=1
47593 fi
47594
47595 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47596   cat >>confdefs.h <<\_ACEOF
47597 #define wxUSE_COLOURPICKERCTRL 1
47598 _ACEOF
47599
47600   USES_CONTROLS=1
47601 fi
47602
47603 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47604   cat >>confdefs.h <<\_ACEOF
47605 #define wxUSE_DATEPICKCTRL 1
47606 _ACEOF
47607
47608   USES_CONTROLS=1
47609 fi
47610
47611 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47612   cat >>confdefs.h <<\_ACEOF
47613 #define wxUSE_DIRPICKERCTRL 1
47614 _ACEOF
47615
47616   USES_CONTROLS=1
47617 fi
47618
47619 if test "$wxUSE_FILECTRL" = "yes"; then
47620   cat >>confdefs.h <<\_ACEOF
47621 #define wxUSE_FILECTRL 1
47622 _ACEOF
47623
47624   USES_CONTROLS=1
47625 fi
47626
47627 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47628   cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_FILEPICKERCTRL 1
47630 _ACEOF
47631
47632   USES_CONTROLS=1
47633 fi
47634
47635 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47636   cat >>confdefs.h <<\_ACEOF
47637 #define wxUSE_FONTPICKERCTRL 1
47638 _ACEOF
47639
47640   USES_CONTROLS=1
47641 fi
47642
47643 if test "$wxUSE_DISPLAY" = "yes"; then
47644     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47645         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47646 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47647         wxUSE_DISPLAY=no
47648     else
47649         cat >>confdefs.h <<\_ACEOF
47650 #define wxUSE_DISPLAY 1
47651 _ACEOF
47652
47653         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47654     fi
47655 fi
47656
47657 if test "$wxUSE_DETECT_SM" = "yes"; then
47658     cat >>confdefs.h <<\_ACEOF
47659 #define wxUSE_DETECT_SM 1
47660 _ACEOF
47661
47662 fi
47663
47664 if test "$wxUSE_GAUGE" = "yes"; then
47665   cat >>confdefs.h <<\_ACEOF
47666 #define wxUSE_GAUGE 1
47667 _ACEOF
47668
47669   USES_CONTROLS=1
47670 fi
47671
47672 if test "$wxUSE_GRID" = "yes"; then
47673   cat >>confdefs.h <<\_ACEOF
47674 #define wxUSE_GRID 1
47675 _ACEOF
47676
47677   USES_CONTROLS=1
47678   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47679 fi
47680
47681 if test "$wxUSE_HEADERCTRL" = "yes"; then
47682   cat >>confdefs.h <<\_ACEOF
47683 #define wxUSE_HEADERCTRL 1
47684 _ACEOF
47685
47686   USES_CONTROLS=1
47687 fi
47688
47689 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47690   cat >>confdefs.h <<\_ACEOF
47691 #define wxUSE_HYPERLINKCTRL 1
47692 _ACEOF
47693
47694   USES_CONTROLS=1
47695 fi
47696
47697 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47698   cat >>confdefs.h <<\_ACEOF
47699 #define wxUSE_BITMAPCOMBOBOX 1
47700 _ACEOF
47701
47702   USES_CONTROLS=1
47703 fi
47704
47705 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47706   cat >>confdefs.h <<\_ACEOF
47707 #define wxUSE_DATAVIEWCTRL 1
47708 _ACEOF
47709
47710   USES_CONTROLS=1
47711   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47712 fi
47713
47714 if test "$wxUSE_IMAGLIST" = "yes"; then
47715     cat >>confdefs.h <<\_ACEOF
47716 #define wxUSE_IMAGLIST 1
47717 _ACEOF
47718
47719 fi
47720
47721 if test "$wxUSE_INFOBAR" = "yes"; then
47722     cat >>confdefs.h <<\_ACEOF
47723 #define wxUSE_INFOBAR 1
47724 _ACEOF
47725
47726 fi
47727
47728 if test "$wxUSE_LISTBOOK" = "yes"; then
47729     cat >>confdefs.h <<\_ACEOF
47730 #define wxUSE_LISTBOOK 1
47731 _ACEOF
47732
47733     USES_CONTROLS=1
47734 fi
47735
47736 if test "$wxUSE_LISTBOX" = "yes"; then
47737     cat >>confdefs.h <<\_ACEOF
47738 #define wxUSE_LISTBOX 1
47739 _ACEOF
47740
47741     USES_CONTROLS=1
47742 fi
47743
47744 if test "$wxUSE_LISTCTRL" = "yes"; then
47745     if test "$wxUSE_IMAGLIST" = "yes"; then
47746         cat >>confdefs.h <<\_ACEOF
47747 #define wxUSE_LISTCTRL 1
47748 _ACEOF
47749
47750         USES_CONTROLS=1
47751         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47752     else
47753         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47754 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47755     fi
47756 fi
47757
47758 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47759     cat >>confdefs.h <<\_ACEOF
47760 #define wxUSE_EDITABLELISTBOX 1
47761 _ACEOF
47762
47763     USES_CONTROLS=1
47764 fi
47765
47766 if test "$wxUSE_NOTEBOOK" = "yes"; then
47767     cat >>confdefs.h <<\_ACEOF
47768 #define wxUSE_NOTEBOOK 1
47769 _ACEOF
47770
47771     USES_CONTROLS=1
47772     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47773 fi
47774
47775 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47776     cat >>confdefs.h <<\_ACEOF
47777 #define wxUSE_NOTIFICATION_MESSAGE 1
47778 _ACEOF
47779
47780 fi
47781
47782 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47783   cat >>confdefs.h <<\_ACEOF
47784 #define wxUSE_ODCOMBOBOX 1
47785 _ACEOF
47786
47787   USES_CONTROLS=1
47788   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47789 fi
47790
47791 if test "$wxUSE_RADIOBOX" = "yes"; then
47792     cat >>confdefs.h <<\_ACEOF
47793 #define wxUSE_RADIOBOX 1
47794 _ACEOF
47795
47796     USES_CONTROLS=1
47797 fi
47798
47799 if test "$wxUSE_RADIOBTN" = "yes"; then
47800     cat >>confdefs.h <<\_ACEOF
47801 #define wxUSE_RADIOBTN 1
47802 _ACEOF
47803
47804     USES_CONTROLS=1
47805 fi
47806
47807 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47808     cat >>confdefs.h <<\_ACEOF
47809 #define wxUSE_REARRANGECTRL 1
47810 _ACEOF
47811
47812 fi
47813
47814 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47815     cat >>confdefs.h <<\_ACEOF
47816 #define wxUSE_RICHMSGDLG 1
47817 _ACEOF
47818
47819 fi
47820
47821 if test "$wxUSE_SASH" = "yes"; then
47822     cat >>confdefs.h <<\_ACEOF
47823 #define wxUSE_SASH 1
47824 _ACEOF
47825
47826     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47827 fi
47828
47829 if test "$wxUSE_SCROLLBAR" = "yes"; then
47830     cat >>confdefs.h <<\_ACEOF
47831 #define wxUSE_SCROLLBAR 1
47832 _ACEOF
47833
47834     USES_CONTROLS=1
47835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47836 fi
47837
47838 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47839     cat >>confdefs.h <<\_ACEOF
47840 #define wxUSE_SEARCHCTRL 1
47841 _ACEOF
47842
47843     USES_CONTROLS=1
47844 fi
47845
47846 if test "$wxUSE_SLIDER" = "yes"; then
47847     cat >>confdefs.h <<\_ACEOF
47848 #define wxUSE_SLIDER 1
47849 _ACEOF
47850
47851     USES_CONTROLS=1
47852 fi
47853
47854 if test "$wxUSE_SPINBTN" = "yes"; then
47855     cat >>confdefs.h <<\_ACEOF
47856 #define wxUSE_SPINBTN 1
47857 _ACEOF
47858
47859     USES_CONTROLS=1
47860 fi
47861
47862 if test "$wxUSE_SPINCTRL" = "yes"; then
47863     cat >>confdefs.h <<\_ACEOF
47864 #define wxUSE_SPINCTRL 1
47865 _ACEOF
47866
47867     USES_CONTROLS=1
47868 fi
47869
47870 if test "$wxUSE_SPLITTER" = "yes"; then
47871     cat >>confdefs.h <<\_ACEOF
47872 #define wxUSE_SPLITTER 1
47873 _ACEOF
47874
47875     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47876 fi
47877
47878 if test "$wxUSE_STATBMP" = "yes"; then
47879     cat >>confdefs.h <<\_ACEOF
47880 #define wxUSE_STATBMP 1
47881 _ACEOF
47882
47883     USES_CONTROLS=1
47884 fi
47885
47886 if test "$wxUSE_STATBOX" = "yes"; then
47887     cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_STATBOX 1
47889 _ACEOF
47890
47891     USES_CONTROLS=1
47892 fi
47893
47894 if test "$wxUSE_STATTEXT" = "yes"; then
47895     cat >>confdefs.h <<\_ACEOF
47896 #define wxUSE_STATTEXT 1
47897 _ACEOF
47898
47899     USES_CONTROLS=1
47900 fi
47901
47902 if test "$wxUSE_STATLINE" = "yes"; then
47903     cat >>confdefs.h <<\_ACEOF
47904 #define wxUSE_STATLINE 1
47905 _ACEOF
47906
47907     USES_CONTROLS=1
47908 fi
47909
47910 if test "$wxUSE_STATUSBAR" = "yes"; then
47911         cat >>confdefs.h <<\_ACEOF
47912 #define wxUSE_NATIVE_STATUSBAR 1
47913 _ACEOF
47914
47915     cat >>confdefs.h <<\_ACEOF
47916 #define wxUSE_STATUSBAR 1
47917 _ACEOF
47918
47919     USES_CONTROLS=1
47920
47921     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47922 fi
47923
47924 if test "$wxUSE_TEXTCTRL" = "yes"; then
47925     cat >>confdefs.h <<\_ACEOF
47926 #define wxUSE_TEXTCTRL 1
47927 _ACEOF
47928
47929     USES_CONTROLS=1
47930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47931
47932             cat >>confdefs.h <<\_ACEOF
47933 #define wxUSE_RICHEDIT 1
47934 _ACEOF
47935
47936     cat >>confdefs.h <<\_ACEOF
47937 #define wxUSE_RICHEDIT2 1
47938 _ACEOF
47939
47940 fi
47941
47942 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47943     if test "$wxUSE_OLD_COCOA" = 1 ; then
47944         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47945 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47946         wxUSE_TOGGLEBTN=no
47947     fi
47948
47949     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47950         cat >>confdefs.h <<\_ACEOF
47951 #define wxUSE_TOGGLEBTN 1
47952 _ACEOF
47953
47954         USES_CONTROLS=1
47955     fi
47956 fi
47957
47958 if test "$wxUSE_TOOLBAR" = "yes"; then
47959     cat >>confdefs.h <<\_ACEOF
47960 #define wxUSE_TOOLBAR 1
47961 _ACEOF
47962
47963     USES_CONTROLS=1
47964
47965     if test "$wxUSE_UNIVERSAL" = "yes"; then
47966         wxUSE_TOOLBAR_NATIVE="no"
47967     else
47968         wxUSE_TOOLBAR_NATIVE="yes"
47969         cat >>confdefs.h <<\_ACEOF
47970 #define wxUSE_TOOLBAR_NATIVE 1
47971 _ACEOF
47972
47973     fi
47974
47975     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47976 fi
47977
47978 if test "$wxUSE_TOOLTIPS" = "yes"; then
47979     if test "$wxUSE_MOTIF" = 1; then
47980         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47981 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47982     else
47983         if test "$wxUSE_UNIVERSAL" = "yes"; then
47984             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47985 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47986         else
47987             cat >>confdefs.h <<\_ACEOF
47988 #define wxUSE_TOOLTIPS 1
47989 _ACEOF
47990
47991         fi
47992     fi
47993 fi
47994
47995 if test "$wxUSE_TREEBOOK" = "yes"; then
47996     cat >>confdefs.h <<\_ACEOF
47997 #define wxUSE_TREEBOOK 1
47998 _ACEOF
47999
48000     USES_CONTROLS=1
48001 fi
48002
48003 if test "$wxUSE_TOOLBOOK" = "yes"; then
48004     cat >>confdefs.h <<\_ACEOF
48005 #define wxUSE_TOOLBOOK 1
48006 _ACEOF
48007
48008     USES_CONTROLS=1
48009 fi
48010
48011 if test "$wxUSE_TREECTRL" = "yes"; then
48012     if test "$wxUSE_IMAGLIST" = "yes"; then
48013         cat >>confdefs.h <<\_ACEOF
48014 #define wxUSE_TREECTRL 1
48015 _ACEOF
48016
48017         USES_CONTROLS=1
48018         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48019     else
48020         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48021 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48022     fi
48023 fi
48024
48025 if test "$wxUSE_TREECTRL" = "yes"; then
48026     cat >>confdefs.h <<\_ACEOF
48027 #define wxUSE_TREELISTCTRL 1
48028 _ACEOF
48029
48030     USES_CONTROLS=1
48031 fi
48032
48033 if test "$wxUSE_POPUPWIN" = "yes"; then
48034     if test "$wxUSE_OLD_COCOA" = 1 ; then
48035         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48036 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48037     else
48038         if test "$wxUSE_PM" = 1; then
48039             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48040 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48041         else
48042             cat >>confdefs.h <<\_ACEOF
48043 #define wxUSE_POPUPWIN 1
48044 _ACEOF
48045
48046             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48047
48048             USES_CONTROLS=1
48049         fi
48050     fi
48051 fi
48052
48053 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48054     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48055         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48056 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48057     else
48058         cat >>confdefs.h <<\_ACEOF
48059 #define wxUSE_DIALUP_MANAGER 1
48060 _ACEOF
48061
48062         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48063     fi
48064 fi
48065
48066 if test "$wxUSE_TIPWINDOW" = "yes"; then
48067     if test "$wxUSE_PM" = 1; then
48068         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48069 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48070     else
48071         cat >>confdefs.h <<\_ACEOF
48072 #define wxUSE_TIPWINDOW 1
48073 _ACEOF
48074
48075     fi
48076 fi
48077
48078 if test "$USES_CONTROLS" = 1; then
48079     cat >>confdefs.h <<\_ACEOF
48080 #define wxUSE_CONTROLS 1
48081 _ACEOF
48082
48083 fi
48084
48085
48086 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48087     cat >>confdefs.h <<\_ACEOF
48088 #define wxUSE_ACCESSIBILITY 1
48089 _ACEOF
48090
48091     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48092 fi
48093
48094 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
48095     cat >>confdefs.h <<\_ACEOF
48096 #define wxUSE_ARTPROVIDER_STD 1
48097 _ACEOF
48098
48099 fi
48100
48101 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
48102             if test "$wxUSE_GTK" != 1; then
48103                 if test "$wxUSE_LIBPNG" != no -a \
48104                 "$wxUSE_IMAGE" = yes -a \
48105                 "$wxUSE_STREAMS" = yes; then
48106             wxUSE_ARTPROVIDER_TANGO="yes"
48107         fi
48108     fi
48109 fi
48110
48111 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
48112     cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_ARTPROVIDER_TANGO 1
48114 _ACEOF
48115
48116 fi
48117
48118 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48119     cat >>confdefs.h <<\_ACEOF
48120 #define wxUSE_DRAGIMAGE 1
48121 _ACEOF
48122
48123     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48124 fi
48125
48126 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48127     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48128         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48129 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48130     else
48131         cat >>confdefs.h <<\_ACEOF
48132 #define wxUSE_EXCEPTIONS 1
48133 _ACEOF
48134
48135         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48136     fi
48137 fi
48138
48139 USE_HTML=0
48140 if test "$wxUSE_HTML" = "yes"; then
48141     cat >>confdefs.h <<\_ACEOF
48142 #define wxUSE_HTML 1
48143 _ACEOF
48144
48145     USE_HTML=1
48146     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48147 fi
48148 if test "$wxUSE_WEBKIT" = "yes"; then
48149     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48150         old_CPPFLAGS="$CPPFLAGS"
48151         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48152         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48153 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48154 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48155   echo $ECHO_N "(cached) $ECHO_C" >&6
48156 else
48157   cat >conftest.$ac_ext <<_ACEOF
48158 /* confdefs.h.  */
48159 _ACEOF
48160 cat confdefs.h >>conftest.$ac_ext
48161 cat >>conftest.$ac_ext <<_ACEOF
48162 /* end confdefs.h.  */
48163
48164                            #include <Carbon/Carbon.h>
48165                            #include <WebKit/WebKit.h>
48166
48167
48168 #include <WebKit/HIWebView.h>
48169 _ACEOF
48170 rm -f conftest.$ac_objext
48171 if { (ac_try="$ac_compile"
48172 case "(($ac_try" in
48173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48174   *) ac_try_echo=$ac_try;;
48175 esac
48176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48177   (eval "$ac_compile") 2>conftest.er1
48178   ac_status=$?
48179   grep -v '^ *+' conftest.er1 >conftest.err
48180   rm -f conftest.er1
48181   cat conftest.err >&5
48182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48183   (exit $ac_status); } && {
48184          test -z "$ac_c_werror_flag" ||
48185          test ! -s conftest.err
48186        } && test -s conftest.$ac_objext; then
48187   ac_cv_header_WebKit_HIWebView_h=yes
48188 else
48189   echo "$as_me: failed program was:" >&5
48190 sed 's/^/| /' conftest.$ac_ext >&5
48191
48192         ac_cv_header_WebKit_HIWebView_h=no
48193 fi
48194
48195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48196 fi
48197 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48198 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48199 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48200
48201                            cat >>confdefs.h <<\_ACEOF
48202 #define wxUSE_WEBKIT 1
48203 _ACEOF
48204
48205                            WEBKIT_LINK="-framework WebKit"
48206
48207 else
48208
48209                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48210 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48211                            wxUSE_WEBKIT=no
48212
48213 fi
48214
48215
48216         CPPFLAGS="$old_CPPFLAGS"
48217     elif test "$wxUSE_OLD_COCOA" = 1; then
48218         cat >>confdefs.h <<\_ACEOF
48219 #define wxUSE_WEBKIT 1
48220 _ACEOF
48221
48222     else
48223         wxUSE_WEBKIT=no
48224     fi
48225     if test "$wxUSE_WEBKIT" = "yes"; then
48226         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48227     fi
48228 fi
48229
48230 USE_XRC=0
48231 if test "$wxUSE_XRC" = "yes"; then
48232     if test "$wxUSE_XML" != "yes"; then
48233         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48234 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48235         wxUSE_XRC=no
48236     else
48237         cat >>confdefs.h <<\_ACEOF
48238 #define wxUSE_XRC 1
48239 _ACEOF
48240
48241         USE_XRC=1
48242         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48243     fi
48244 fi
48245
48246 USE_AUI=0
48247 if test "$wxUSE_AUI" = "yes"; then
48248    cat >>confdefs.h <<\_ACEOF
48249 #define wxUSE_AUI 1
48250 _ACEOF
48251
48252    USE_AUI=1
48253    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48254 fi
48255
48256 USE_PROPGRID=0
48257 if test "$wxUSE_PROPGRID" = "yes"; then
48258    cat >>confdefs.h <<\_ACEOF
48259 #define wxUSE_PROPGRID 1
48260 _ACEOF
48261
48262    USE_PROPGRID=1
48263    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48264 fi
48265
48266 USE_RIBBON=0
48267 if test "$wxUSE_RIBBON" = "yes"; then
48268    cat >>confdefs.h <<\_ACEOF
48269 #define wxUSE_RIBBON 1
48270 _ACEOF
48271
48272    USE_RIBBON=1
48273    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48274 fi
48275
48276 USE_STC=0
48277 if test "$wxUSE_STC" = "yes"; then
48278    cat >>confdefs.h <<\_ACEOF
48279 #define wxUSE_STC 1
48280 _ACEOF
48281
48282    USE_STC=1
48283    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48284
48285       # Extract the first word of "python", so it can be a program name with args.
48286 set dummy python; ac_word=$2
48287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48289 if test "${ac_cv_path_PYTHON+set}" = set; then
48290   echo $ECHO_N "(cached) $ECHO_C" >&6
48291 else
48292   case $PYTHON in
48293   [\\/]* | ?:[\\/]*)
48294   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48295   ;;
48296   *)
48297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48298 for as_dir in $PATH
48299 do
48300   IFS=$as_save_IFS
48301   test -z "$as_dir" && as_dir=.
48302   for ac_exec_ext in '' $ac_executable_extensions; do
48303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48304     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48306     break 2
48307   fi
48308 done
48309 done
48310 IFS=$as_save_IFS
48311
48312   ;;
48313 esac
48314 fi
48315 PYTHON=$ac_cv_path_PYTHON
48316 if test -n "$PYTHON"; then
48317   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48318 echo "${ECHO_T}$PYTHON" >&6; }
48319 else
48320   { echo "$as_me:$LINENO: result: no" >&5
48321 echo "${ECHO_T}no" >&6; }
48322 fi
48323
48324
48325    if test "x$PYTHON" = "x"; then
48326      COND_PYTHON="#"
48327    fi
48328
48329 fi
48330
48331 if test "$wxUSE_MENUS" = "yes"; then
48332     cat >>confdefs.h <<\_ACEOF
48333 #define wxUSE_MENUS 1
48334 _ACEOF
48335
48336     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48337 fi
48338
48339 if test "$wxUSE_MIMETYPE" = "yes"; then
48340     cat >>confdefs.h <<\_ACEOF
48341 #define wxUSE_MIMETYPE 1
48342 _ACEOF
48343
48344 fi
48345
48346 if test "$wxUSE_MINIFRAME" = "yes"; then
48347     cat >>confdefs.h <<\_ACEOF
48348 #define wxUSE_MINIFRAME 1
48349 _ACEOF
48350
48351 fi
48352
48353 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48354     cat >>confdefs.h <<\_ACEOF
48355 #define wxUSE_SYSTEM_OPTIONS 1
48356 _ACEOF
48357
48358 fi
48359
48360 if test "$wxUSE_TASKBARICON" = "yes"; then
48361     cat >>confdefs.h <<\_ACEOF
48362 #define wxUSE_TASKBARICON 1
48363 _ACEOF
48364
48365     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48366 fi
48367
48368
48369 if test "$wxUSE_VALIDATORS" = "yes"; then
48370     cat >>confdefs.h <<\_ACEOF
48371 #define wxUSE_VALIDATORS 1
48372 _ACEOF
48373
48374     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48375 fi
48376
48377 if test "$wxUSE_PALETTE" = "yes" ; then
48378     if test "$wxUSE_DFB" = 1; then
48379         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48380 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48381         wxUSE_PALETTE=no
48382     else
48383         cat >>confdefs.h <<\_ACEOF
48384 #define wxUSE_PALETTE 1
48385 _ACEOF
48386
48387     fi
48388 fi
48389
48390 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48391     LIBS=" -lunicows $LIBS"
48392 fi
48393
48394 USE_RICHTEXT=0
48395 if test "$wxUSE_RICHTEXT" = "yes"; then
48396     cat >>confdefs.h <<\_ACEOF
48397 #define wxUSE_RICHTEXT 1
48398 _ACEOF
48399
48400     USE_RICHTEXT=1
48401     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48402 fi
48403
48404 USE_WEB=0
48405 if test "$wxUSE_WEB" = "yes"; then
48406    cat >>confdefs.h <<\_ACEOF
48407 #define wxUSE_WEB 1
48408 _ACEOF
48409
48410    USE_WEB=1
48411    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS web"
48412
48413    if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_GTK" = 1; then
48414        cat >>confdefs.h <<\_ACEOF
48415 #define wxUSE_WEBVIEW_WEBKIT 1
48416 _ACEOF
48417
48418        { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
48419 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
48420
48421   ac_find_libraries=
48422   for ac_dir in $SEARCH_LIB
48423   do
48424     for ac_extension in a so sl dylib dll.a; do
48425       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
48426         ac_find_libraries=$ac_dir
48427         break 2
48428       fi
48429     done
48430   done
48431
48432        if test "$ac_find_libraries" != "" ; then
48433
48434     if test "$ac_find_libraries" = "default location"; then
48435     ac_path_to_link=""
48436   else
48437     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
48438     result=$?
48439     if test $result = 0; then
48440       ac_path_to_link=""
48441     else
48442       ac_path_to_link=" -L$ac_find_libraries"
48443     fi
48444   fi
48445
48446            if test "$ac_path_to_link" != " -L/usr/lib" ; then
48447                LDFLAGS="$LDFLAGS $ac_path_to_link"
48448            fi
48449            GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
48450            { echo "$as_me:$LINENO: result: yes" >&5
48451 echo "${ECHO_T}yes" >&6; }
48452        else
48453            { echo "$as_me:$LINENO: result: no" >&5
48454 echo "${ECHO_T}no" >&6; }
48455            { echo "$as_me:$LINENO: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&5
48456 echo "$as_me: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&2;}
48457            wxUSE_WEBVIEW_WEBKIT="no"
48458        fi
48459
48460        { echo "$as_me:$LINENO: checking for webkitgtk includes" >&5
48461 echo $ECHO_N "checking for webkitgtk includes... $ECHO_C" >&6; }
48462
48463 ac_find_includes=
48464 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
48465   do
48466     if test -f "$ac_dir/webkit/webkit.h"; then
48467       ac_find_includes=$ac_dir
48468       break
48469     fi
48470   done
48471
48472        if test "$ac_find_includes" != "" ; then
48473            { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48474 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48475
48476     if test "x$ac_find_includes" = "x/usr/include"; then
48477     ac_path_to_include=""
48478   else
48479     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48480     result=$?
48481     if test $result = 0; then
48482       ac_path_to_include=""
48483     else
48484       ac_path_to_include=" -I$ac_find_includes"
48485     fi
48486   fi
48487
48488            CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48489        else
48490            { echo "$as_me:$LINENO: result: not found" >&5
48491 echo "${ECHO_T}not found" >&6; }
48492        fi
48493               { echo "$as_me:$LINENO: checking for libsoup includes" >&5
48494 echo $ECHO_N "checking for libsoup includes... $ECHO_C" >&6; }
48495
48496 ac_find_includes=
48497 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
48498   do
48499     if test -f "$ac_dir/libsoup/soup.h"; then
48500       ac_find_includes=$ac_dir
48501       break
48502     fi
48503   done
48504
48505        if test "$ac_find_includes" != "" ; then
48506            { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48507 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48508
48509     if test "x$ac_find_includes" = "x/usr/include"; then
48510     ac_path_to_include=""
48511   else
48512     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48513     result=$?
48514     if test $result = 0; then
48515       ac_path_to_include=""
48516     else
48517       ac_path_to_include=" -I$ac_find_includes"
48518     fi
48519   fi
48520
48521            CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48522        else
48523            { echo "$as_me:$LINENO: result: not found" >&5
48524 echo "${ECHO_T}not found" >&6; }
48525        fi
48526    fi
48527
48528     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48529         old_CPPFLAGS="$CPPFLAGS"
48530         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48531         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48532 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48533 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48534   echo $ECHO_N "(cached) $ECHO_C" >&6
48535 else
48536   cat >conftest.$ac_ext <<_ACEOF
48537 /* confdefs.h.  */
48538 _ACEOF
48539 cat confdefs.h >>conftest.$ac_ext
48540 cat >>conftest.$ac_ext <<_ACEOF
48541 /* end confdefs.h.  */
48542
48543                            #include <Carbon/Carbon.h>
48544                            #include <WebKit/WebKit.h>
48545
48546
48547 #include <WebKit/HIWebView.h>
48548 _ACEOF
48549 rm -f conftest.$ac_objext
48550 if { (ac_try="$ac_compile"
48551 case "(($ac_try" in
48552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48553   *) ac_try_echo=$ac_try;;
48554 esac
48555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48556   (eval "$ac_compile") 2>conftest.er1
48557   ac_status=$?
48558   grep -v '^ *+' conftest.er1 >conftest.err
48559   rm -f conftest.er1
48560   cat conftest.err >&5
48561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48562   (exit $ac_status); } && {
48563          test -z "$ac_c_werror_flag" ||
48564          test ! -s conftest.err
48565        } && test -s conftest.$ac_objext; then
48566   ac_cv_header_WebKit_HIWebView_h=yes
48567 else
48568   echo "$as_me: failed program was:" >&5
48569 sed 's/^/| /' conftest.$ac_ext >&5
48570
48571         ac_cv_header_WebKit_HIWebView_h=no
48572 fi
48573
48574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48575 fi
48576 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48577 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48578 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48579
48580                            cat >>confdefs.h <<\_ACEOF
48581 #define wxUSE_WEBVIEW_WEBKIT 1
48582 _ACEOF
48583
48584                            WEBKIT_LINK="-framework WebKit"
48585
48586 else
48587
48588                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&5
48589 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&2;}
48590                            wxUSE_WEBVIEW_WEBKIT=no
48591
48592 fi
48593
48594
48595         CPPFLAGS="$old_CPPFLAGS"
48596     elif test "$wxUSE_OLD_COCOA" = 1; then
48597         cat >>confdefs.h <<\_ACEOF
48598 #define wxUSE_WEBVIEW_WEBKIT 1
48599 _ACEOF
48600
48601     else
48602         wxUSE_WEBVIEW_WEBKIT=no
48603     fi
48604 fi
48605
48606
48607 if test "$wxUSE_IMAGE" = "yes" ; then
48608     cat >>confdefs.h <<\_ACEOF
48609 #define wxUSE_IMAGE 1
48610 _ACEOF
48611
48612
48613     if test "$wxUSE_GIF" = "yes" ; then
48614       cat >>confdefs.h <<\_ACEOF
48615 #define wxUSE_GIF 1
48616 _ACEOF
48617
48618     fi
48619
48620     if test "$wxUSE_PCX" = "yes" ; then
48621       cat >>confdefs.h <<\_ACEOF
48622 #define wxUSE_PCX 1
48623 _ACEOF
48624
48625     fi
48626
48627     if test "$wxUSE_TGA" = "yes" ; then
48628       cat >>confdefs.h <<\_ACEOF
48629 #define wxUSE_TGA 1
48630 _ACEOF
48631
48632     fi
48633
48634     if test "$wxUSE_IFF" = "yes" ; then
48635       cat >>confdefs.h <<\_ACEOF
48636 #define wxUSE_IFF 1
48637 _ACEOF
48638
48639     fi
48640
48641     if test "$wxUSE_PNM" = "yes" ; then
48642       cat >>confdefs.h <<\_ACEOF
48643 #define wxUSE_PNM 1
48644 _ACEOF
48645
48646     fi
48647
48648     if test "$wxUSE_XPM" = "yes" ; then
48649       cat >>confdefs.h <<\_ACEOF
48650 #define wxUSE_XPM 1
48651 _ACEOF
48652
48653     fi
48654
48655     if test "$wxUSE_ICO_CUR" = "yes" ; then
48656       cat >>confdefs.h <<\_ACEOF
48657 #define wxUSE_ICO_CUR 1
48658 _ACEOF
48659
48660     fi
48661 fi
48662
48663
48664 if test "$wxUSE_ABOUTDLG" = "yes"; then
48665     cat >>confdefs.h <<\_ACEOF
48666 #define wxUSE_ABOUTDLG 1
48667 _ACEOF
48668
48669 fi
48670
48671 if test "$wxUSE_CHOICEDLG" = "yes"; then
48672     cat >>confdefs.h <<\_ACEOF
48673 #define wxUSE_CHOICEDLG 1
48674 _ACEOF
48675
48676 fi
48677
48678 if test "$wxUSE_COLOURDLG" = "yes"; then
48679     cat >>confdefs.h <<\_ACEOF
48680 #define wxUSE_COLOURDLG 1
48681 _ACEOF
48682
48683 fi
48684
48685 if test "$wxUSE_FILEDLG" = "yes"; then
48686     cat >>confdefs.h <<\_ACEOF
48687 #define wxUSE_FILEDLG 1
48688 _ACEOF
48689
48690 fi
48691
48692 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48693     cat >>confdefs.h <<\_ACEOF
48694 #define wxUSE_FINDREPLDLG 1
48695 _ACEOF
48696
48697 fi
48698
48699 if test "$wxUSE_FONTDLG" = "yes"; then
48700     cat >>confdefs.h <<\_ACEOF
48701 #define wxUSE_FONTDLG 1
48702 _ACEOF
48703
48704 fi
48705
48706 if test "$wxUSE_DIRDLG" = "yes"; then
48707     if test "$wxUSE_TREECTRL" != "yes"; then
48708         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48709 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48710     else
48711         cat >>confdefs.h <<\_ACEOF
48712 #define wxUSE_DIRDLG 1
48713 _ACEOF
48714
48715     fi
48716 fi
48717
48718 if test "$wxUSE_MSGDLG" = "yes"; then
48719     cat >>confdefs.h <<\_ACEOF
48720 #define wxUSE_MSGDLG 1
48721 _ACEOF
48722
48723 fi
48724
48725 if test "$wxUSE_NUMBERDLG" = "yes"; then
48726     cat >>confdefs.h <<\_ACEOF
48727 #define wxUSE_NUMBERDLG 1
48728 _ACEOF
48729
48730 fi
48731
48732 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48733     cat >>confdefs.h <<\_ACEOF
48734 #define wxUSE_PROGRESSDLG 1
48735 _ACEOF
48736
48737 fi
48738
48739 if test "$wxUSE_SPLASH" = "yes"; then
48740     cat >>confdefs.h <<\_ACEOF
48741 #define wxUSE_SPLASH 1
48742 _ACEOF
48743
48744     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48745 fi
48746
48747 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48748     cat >>confdefs.h <<\_ACEOF
48749 #define wxUSE_STARTUP_TIPS 1
48750 _ACEOF
48751
48752 fi
48753
48754 if test "$wxUSE_TEXTDLG" = "yes"; then
48755     cat >>confdefs.h <<\_ACEOF
48756 #define wxUSE_TEXTDLG 1
48757 _ACEOF
48758
48759 fi
48760
48761 if test "$wxUSE_WIZARDDLG" = "yes"; then
48762     cat >>confdefs.h <<\_ACEOF
48763 #define wxUSE_WIZARDDLG 1
48764 _ACEOF
48765
48766     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48767 fi
48768
48769
48770 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48771     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48772         cat >>confdefs.h <<\_ACEOF
48773 #define wxUSE_OWNER_DRAWN 1
48774 _ACEOF
48775
48776     fi
48777 fi
48778
48779
48780 if test "$wxUSE_MSW" = 1 ; then
48781
48782     if test "$wxUSE_DC_CACHEING" = "yes"; then
48783         cat >>confdefs.h <<\_ACEOF
48784 #define wxUSE_DC_CACHEING 1
48785 _ACEOF
48786
48787     fi
48788
48789     if test "$wxUSE_DIB" = "yes"; then
48790         cat >>confdefs.h <<\_ACEOF
48791 #define wxUSE_WXDIB 1
48792 _ACEOF
48793
48794     fi
48795
48796     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48797         cat >>confdefs.h <<\_ACEOF
48798 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48799 _ACEOF
48800
48801     fi
48802
48803     if test "$wxUSE_UXTHEME" = "yes"; then
48804         cat >>confdefs.h <<\_ACEOF
48805 #define wxUSE_UXTHEME 1
48806 _ACEOF
48807
48808     fi
48809
48810 fi
48811
48812 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48813     cat >>confdefs.h <<\_ACEOF
48814 #define wxUSE_AUTOID_MANAGEMENT 1
48815 _ACEOF
48816
48817 fi
48818
48819 if test "$USE_WIN32" = 1 ; then
48820     if test "$wxUSE_INICONF" = "yes"; then
48821         cat >>confdefs.h <<\_ACEOF
48822 #define wxUSE_INICONF 1
48823 _ACEOF
48824
48825     fi
48826
48827     if test "$wxUSE_REGKEY" = "yes"; then
48828         cat >>confdefs.h <<\_ACEOF
48829 #define wxUSE_REGKEY 1
48830 _ACEOF
48831
48832     fi
48833 fi
48834
48835
48836 if test "$wxUSE_MAC" = 1; then
48837     wxUSE_GRAPHICS_CONTEXT="yes"
48838 fi
48839
48840 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48841     wx_has_graphics=0
48842     if test "$wxUSE_MSW" = 1; then
48843         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48844 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48845 if test "${wx_cv_lib_gdiplus+set}" = set; then
48846   echo $ECHO_N "(cached) $ECHO_C" >&6
48847 else
48848
48849                                                 ac_ext=cpp
48850 ac_cpp='$CXXCPP $CPPFLAGS'
48851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48854
48855                 cat >conftest.$ac_ext <<_ACEOF
48856 /* confdefs.h.  */
48857 _ACEOF
48858 cat confdefs.h >>conftest.$ac_ext
48859 cat >>conftest.$ac_ext <<_ACEOF
48860 /* end confdefs.h.  */
48861 #include <windows.h>
48862                      #include <gdiplus.h>
48863 int
48864 main ()
48865 {
48866
48867                         using namespace Gdiplus;
48868
48869   ;
48870   return 0;
48871 }
48872 _ACEOF
48873 rm -f conftest.$ac_objext
48874 if { (ac_try="$ac_compile"
48875 case "(($ac_try" in
48876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48877   *) ac_try_echo=$ac_try;;
48878 esac
48879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48880   (eval "$ac_compile") 2>conftest.er1
48881   ac_status=$?
48882   grep -v '^ *+' conftest.er1 >conftest.err
48883   rm -f conftest.er1
48884   cat conftest.err >&5
48885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886   (exit $ac_status); } && {
48887          test -z "$ac_cxx_werror_flag" ||
48888          test ! -s conftest.err
48889        } && test -s conftest.$ac_objext; then
48890   wx_cv_lib_gdiplus=yes
48891 else
48892   echo "$as_me: failed program was:" >&5
48893 sed 's/^/| /' conftest.$ac_ext >&5
48894
48895         wx_cv_lib_gdiplus=no
48896
48897 fi
48898
48899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48900                 ac_ext=c
48901 ac_cpp='$CPP $CPPFLAGS'
48902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48905
48906
48907
48908 fi
48909 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48910 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48911         if test "$wx_cv_lib_gdiplus" = "yes"; then
48912             wx_has_graphics=1
48913         fi
48914     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48915
48916 pkg_failed=no
48917 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48918 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48919
48920 if test -n "$PKG_CONFIG"; then
48921     if test -n "$CAIRO_CFLAGS"; then
48922         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48923     else
48924         if test -n "$PKG_CONFIG" && \
48925     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48926   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48927   ac_status=$?
48928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48929   (exit $ac_status); }; then
48930   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48931 else
48932   pkg_failed=yes
48933 fi
48934     fi
48935 else
48936         pkg_failed=untried
48937 fi
48938 if test -n "$PKG_CONFIG"; then
48939     if test -n "$CAIRO_LIBS"; then
48940         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48941     else
48942         if test -n "$PKG_CONFIG" && \
48943     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48944   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48945   ac_status=$?
48946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48947   (exit $ac_status); }; then
48948   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48949 else
48950   pkg_failed=yes
48951 fi
48952     fi
48953 else
48954         pkg_failed=untried
48955 fi
48956
48957
48958
48959 if test $pkg_failed = yes; then
48960
48961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48962         _pkg_short_errors_supported=yes
48963 else
48964         _pkg_short_errors_supported=no
48965 fi
48966         if test $_pkg_short_errors_supported = yes; then
48967                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48968         else
48969                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48970         fi
48971         # Put the nasty error message in config.log where it belongs
48972         echo "$CAIRO_PKG_ERRORS" >&5
48973
48974         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48975 echo "$as_me: WARNING: Cairo library not found" >&2;}
48976
48977 elif test $pkg_failed = untried; then
48978         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48979 echo "$as_me: WARNING: Cairo library not found" >&2;}
48980
48981 else
48982         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48983         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48984         { echo "$as_me:$LINENO: result: yes" >&5
48985 echo "${ECHO_T}yes" >&6; }
48986         wx_has_graphics=1
48987 fi
48988         if test "$wx_has_graphics" = 1; then
48989                                                 save_LIBS="$LIBS"
48990             LIBS="$LIBS $CAIRO_LIBS"
48991
48992 for ac_func in cairo_push_group
48993 do
48994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48998   echo $ECHO_N "(cached) $ECHO_C" >&6
48999 else
49000   cat >conftest.$ac_ext <<_ACEOF
49001 /* confdefs.h.  */
49002 _ACEOF
49003 cat confdefs.h >>conftest.$ac_ext
49004 cat >>conftest.$ac_ext <<_ACEOF
49005 /* end confdefs.h.  */
49006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49008 #define $ac_func innocuous_$ac_func
49009
49010 /* System header to define __stub macros and hopefully few prototypes,
49011     which can conflict with char $ac_func (); below.
49012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49013     <limits.h> exists even on freestanding compilers.  */
49014
49015 #ifdef __STDC__
49016 # include <limits.h>
49017 #else
49018 # include <assert.h>
49019 #endif
49020
49021 #undef $ac_func
49022
49023 /* Override any GCC internal prototype to avoid an error.
49024    Use char because int might match the return type of a GCC
49025    builtin and then its argument prototype would still apply.  */
49026 #ifdef __cplusplus
49027 extern "C"
49028 #endif
49029 char $ac_func ();
49030 /* The GNU C library defines this for functions which it implements
49031     to always fail with ENOSYS.  Some functions are actually named
49032     something starting with __ and the normal name is an alias.  */
49033 #if defined __stub_$ac_func || defined __stub___$ac_func
49034 choke me
49035 #endif
49036
49037 int
49038 main ()
49039 {
49040 return $ac_func ();
49041   ;
49042   return 0;
49043 }
49044 _ACEOF
49045 rm -f conftest.$ac_objext conftest$ac_exeext
49046 if { (ac_try="$ac_link"
49047 case "(($ac_try" in
49048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49049   *) ac_try_echo=$ac_try;;
49050 esac
49051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49052   (eval "$ac_link") 2>conftest.er1
49053   ac_status=$?
49054   grep -v '^ *+' conftest.er1 >conftest.err
49055   rm -f conftest.er1
49056   cat conftest.err >&5
49057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49058   (exit $ac_status); } && {
49059          test -z "$ac_c_werror_flag" ||
49060          test ! -s conftest.err
49061        } && test -s conftest$ac_exeext &&
49062        $as_test_x conftest$ac_exeext; then
49063   eval "$as_ac_var=yes"
49064 else
49065   echo "$as_me: failed program was:" >&5
49066 sed 's/^/| /' conftest.$ac_ext >&5
49067
49068         eval "$as_ac_var=no"
49069 fi
49070
49071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49072       conftest$ac_exeext conftest.$ac_ext
49073 fi
49074 ac_res=`eval echo '${'$as_ac_var'}'`
49075                { echo "$as_me:$LINENO: result: $ac_res" >&5
49076 echo "${ECHO_T}$ac_res" >&6; }
49077 if test `eval echo '${'$as_ac_var'}'` = yes; then
49078   cat >>confdefs.h <<_ACEOF
49079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49080 _ACEOF
49081
49082 fi
49083 done
49084
49085             LIBS="$save_LIBS"
49086             if test "$ac_cv_func_cairo_push_group" = "no"; then
49087                 wx_has_graphics=0
49088                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
49089 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
49090             else
49091                 cat >>confdefs.h <<\_ACEOF
49092 #define wxUSE_CAIRO 1
49093 _ACEOF
49094
49095
49096                                                 if test "$wxUSE_GTK" != 1; then
49097                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
49098                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
49099                 fi
49100             fi
49101         fi
49102     else
49103                 wx_has_graphics=1
49104     fi
49105
49106     if test "$wx_has_graphics" = 1; then
49107         cat >>confdefs.h <<\_ACEOF
49108 #define wxUSE_GRAPHICS_CONTEXT 1
49109 _ACEOF
49110
49111     else
49112         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
49113 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
49114     fi
49115 fi
49116
49117
49118 USE_MEDIA=0
49119
49120 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
49121     USE_MEDIA=1
49122
49123                 if test "$wxUSE_GTK" = 1; then
49124         wxUSE_GSTREAMER="no"
49125
49126                                                                 GST_VERSION_MAJOR=0
49127         GST_VERSION_MINOR=10
49128         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49129
49130         if test "$wxUSE_GSTREAMER8" = "no"; then
49131
49132 pkg_failed=no
49133 { echo "$as_me:$LINENO: checking for GST" >&5
49134 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49135
49136 if test -n "$PKG_CONFIG"; then
49137     if test -n "$GST_CFLAGS"; then
49138         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49139     else
49140         if test -n "$PKG_CONFIG" && \
49141     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49142   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49143   ac_status=$?
49144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49145   (exit $ac_status); }; then
49146   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49147 else
49148   pkg_failed=yes
49149 fi
49150     fi
49151 else
49152         pkg_failed=untried
49153 fi
49154 if test -n "$PKG_CONFIG"; then
49155     if test -n "$GST_LIBS"; then
49156         pkg_cv_GST_LIBS="$GST_LIBS"
49157     else
49158         if test -n "$PKG_CONFIG" && \
49159     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49160   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49161   ac_status=$?
49162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49163   (exit $ac_status); }; then
49164   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49165 else
49166   pkg_failed=yes
49167 fi
49168     fi
49169 else
49170         pkg_failed=untried
49171 fi
49172
49173
49174
49175 if test $pkg_failed = yes; then
49176
49177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49178         _pkg_short_errors_supported=yes
49179 else
49180         _pkg_short_errors_supported=no
49181 fi
49182         if test $_pkg_short_errors_supported = yes; then
49183                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49184         else
49185                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49186         fi
49187         # Put the nasty error message in config.log where it belongs
49188         echo "$GST_PKG_ERRORS" >&5
49189
49190
49191                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49192 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49193                     GST_VERSION_MINOR=8
49194
49195
49196 elif test $pkg_failed = untried; then
49197
49198                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49199 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49200                     GST_VERSION_MINOR=8
49201
49202
49203 else
49204         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49205         GST_LIBS=$pkg_cv_GST_LIBS
49206         { echo "$as_me:$LINENO: result: yes" >&5
49207 echo "${ECHO_T}yes" >&6; }
49208
49209                     wxUSE_GSTREAMER="yes"
49210                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49211
49212 fi
49213         else
49214                         GST_VERSION_MINOR=8
49215         fi
49216
49217         if test $GST_VERSION_MINOR = "8"; then
49218             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49219
49220 pkg_failed=no
49221 { echo "$as_me:$LINENO: checking for GST" >&5
49222 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49223
49224 if test -n "$PKG_CONFIG"; then
49225     if test -n "$GST_CFLAGS"; then
49226         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49227     else
49228         if test -n "$PKG_CONFIG" && \
49229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49230   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49231   ac_status=$?
49232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49233   (exit $ac_status); }; then
49234   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49235 else
49236   pkg_failed=yes
49237 fi
49238     fi
49239 else
49240         pkg_failed=untried
49241 fi
49242 if test -n "$PKG_CONFIG"; then
49243     if test -n "$GST_LIBS"; then
49244         pkg_cv_GST_LIBS="$GST_LIBS"
49245     else
49246         if test -n "$PKG_CONFIG" && \
49247     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49248   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49249   ac_status=$?
49250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49251   (exit $ac_status); }; then
49252   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49253 else
49254   pkg_failed=yes
49255 fi
49256     fi
49257 else
49258         pkg_failed=untried
49259 fi
49260
49261
49262
49263 if test $pkg_failed = yes; then
49264
49265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49266         _pkg_short_errors_supported=yes
49267 else
49268         _pkg_short_errors_supported=no
49269 fi
49270         if test $_pkg_short_errors_supported = yes; then
49271                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49272         else
49273                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49274         fi
49275         # Put the nasty error message in config.log where it belongs
49276         echo "$GST_PKG_ERRORS" >&5
49277
49278
49279                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49280 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49281
49282 elif test $pkg_failed = untried; then
49283
49284                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49285 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49286
49287 else
49288         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49289         GST_LIBS=$pkg_cv_GST_LIBS
49290         { echo "$as_me:$LINENO: result: yes" >&5
49291 echo "${ECHO_T}yes" >&6; }
49292         wxUSE_GSTREAMER="yes"
49293 fi
49294         fi
49295
49296
49297         if test "$wxUSE_GSTREAMER" = "yes"; then
49298             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49299             EXTRALIBS_MEDIA="$GST_LIBS"
49300
49301             cat >>confdefs.h <<\_ACEOF
49302 #define wxUSE_GSTREAMER 1
49303 _ACEOF
49304
49305         else
49306             USE_MEDIA=0
49307         fi
49308     fi
49309
49310     if test $USE_MEDIA = 1; then
49311         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49312         cat >>confdefs.h <<\_ACEOF
49313 #define wxUSE_MEDIACTRL 1
49314 _ACEOF
49315
49316     else
49317         if test "$wxUSE_MEDIACTRL" = "yes"; then
49318             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
49319 echo "$as_me: error: GStreamer not available" >&2;}
49320    { (exit 1); exit 1; }; }
49321         else
49322                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
49323 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
49324         fi
49325     fi
49326 fi
49327
49328
49329 if test "$cross_compiling" != "no"; then
49330         OSINFO="\"$host\""
49331 else
49332         OSINFO=`uname -s -r -m`
49333     OSINFO="\"$OSINFO\""
49334 fi
49335
49336 cat >>confdefs.h <<_ACEOF
49337 #define WXWIN_OS_DESCRIPTION $OSINFO
49338 _ACEOF
49339
49340
49341
49342 if test "x$prefix" != "xNONE"; then
49343     wxPREFIX=$prefix
49344 else
49345     wxPREFIX=$ac_default_prefix
49346 fi
49347
49348 cat >>confdefs.h <<_ACEOF
49349 #define wxINSTALL_PREFIX "$wxPREFIX"
49350 _ACEOF
49351
49352
49353
49354
49355 STD_BASE_LIBS="base"
49356 STD_GUI_LIBS=""
49357 BUILT_WX_LIBS="base"
49358 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49359
49360 if test "$wxUSE_SOCKETS" = "yes" ; then
49361     STD_BASE_LIBS="net $STD_BASE_LIBS"
49362     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49363 fi
49364 if test "$wxUSE_XML" = "yes" ; then
49365     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49366     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49367 fi
49368
49369 if test "$wxUSE_GUI" = "yes"; then
49370     STD_GUI_LIBS="adv core"
49371     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49372
49373     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49374         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49375         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49376     fi
49377     if test "$wxUSE_HTML" = "yes" ; then
49378         STD_GUI_LIBS="html $STD_GUI_LIBS"
49379         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49380     fi
49381     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49382         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49383     fi
49384     if test "$wxUSE_OPENGL" = "yes" ; then
49385         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49386     fi
49387     if test "$wxUSE_AUI" = "yes" ; then
49388         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49389     fi
49390     if test "$wxUSE_PROPGRID" = "yes" ; then
49391         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49392     fi
49393     if test "$wxUSE_RIBBON" = "yes" ; then
49394         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49395     fi
49396     if test "$wxUSE_RICHTEXT" = "yes" ; then
49397         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49398     fi
49399     if test "$wxUSE_STC" = "yes" ; then
49400         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49401     fi
49402     if test "$wxUSE_WEB" = "yes" ; then
49403         STD_GUI_LIBS="web $STD_GUI_LIBS"
49404         BUILT_WX_LIBS="web $BUILT_WX_LIBS"
49405     fi
49406     if test "$wxUSE_XRC" = "yes" ; then
49407         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49408         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49409     fi
49410 fi
49411
49412
49413
49414
49415
49416
49417
49418 EXTRA_FRAMEWORKS=
49419 if test "$wxUSE_MAC" = 1 ; then
49420     if test "$USE_DARWIN" = 1; then
49421         if test "$wxUSE_OSX_IPHONE" = 1; then
49422             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49423         else
49424             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49425         fi
49426     fi
49427 fi
49428 if test "$wxUSE_OLD_COCOA" = 1 ; then
49429     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49430     if test "$wxUSE_MEDIACTRL" = "yes"; then
49431         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49432     fi
49433 fi
49434 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49435     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49436 fi
49437
49438 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49439 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49440
49441 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49442
49443 if test "$wxUSE_GUI" = "yes"; then
49444
49445
49446         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49447                      erase event exec font image minimal render \
49448                      shaped svg taborder vscroll widgets wrapsizer"
49449
49450     if test "$wxUSE_MONOLITHIC" != "yes"; then
49451         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49452     fi
49453     if test "$TOOLKIT" = "MSW"; then
49454         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49455         if test "$wxUSE_UNIVERSAL" != "yes"; then
49456             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49457         fi
49458     fi
49459     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49460         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49461     fi
49462 else
49463     SAMPLES_SUBDIRS="console"
49464     if test "$wxUSE_SOCKETS" = "yes" ; then
49465         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49466     fi
49467     if test "$wxUSE_IPC" = "yes" ; then
49468         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49469     fi
49470 fi
49471
49472
49473 if test "x$INTELCC" = "xyes" ; then
49474                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49475 elif test "$GCC" = yes ; then
49476     CWARNINGS="-Wall -Wundef"
49477 fi
49478
49479 if test "x$INTELCXX" = "xyes" ; then
49480                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49481 elif test "$GXX" = yes ; then
49482     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49483     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49484 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49485 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49486   echo $ECHO_N "(cached) $ECHO_C" >&6
49487 else
49488   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49489
49490  ac_ext=cpp
49491 ac_cpp='$CXXCPP $CPPFLAGS'
49492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49495
49496  ac_save_CXXFLAGS="$CXXFLAGS"
49497 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49498 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49499    cat >conftest.$ac_ext <<_ACEOF
49500 /* confdefs.h.  */
49501 _ACEOF
49502 cat confdefs.h >>conftest.$ac_ext
49503 cat >>conftest.$ac_ext <<_ACEOF
49504 /* end confdefs.h.  */
49505
49506 int
49507 main ()
49508 {
49509 return 0;
49510   ;
49511   return 0;
49512 }
49513 _ACEOF
49514 rm -f conftest.$ac_objext
49515 if { (ac_try="$ac_compile"
49516 case "(($ac_try" in
49517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49518   *) ac_try_echo=$ac_try;;
49519 esac
49520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49521   (eval "$ac_compile") 2>conftest.er1
49522   ac_status=$?
49523   grep -v '^ *+' conftest.er1 >conftest.err
49524   rm -f conftest.er1
49525   cat conftest.err >&5
49526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49527   (exit $ac_status); } && {
49528          test -z "$ac_cxx_werror_flag" ||
49529          test ! -s conftest.err
49530        } && test -s conftest.$ac_objext; then
49531   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49532 else
49533   echo "$as_me: failed program was:" >&5
49534 sed 's/^/| /' conftest.$ac_ext >&5
49535
49536
49537 fi
49538
49539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49540 done
49541  CXXFLAGS="$ac_save_CXXFLAGS"
49542  ac_ext=c
49543 ac_cpp='$CPP $CPPFLAGS'
49544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49547
49548
49549 fi
49550 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49551 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49552 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49553      .ok|.ok,*)  ;;
49554    .|.no|.no,*)  ;;
49555    *)
49556    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49557    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49558   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49559   ac_status=$?
49560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49561   (exit $ac_status); }
49562    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49563   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49564   ac_status=$?
49565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49566   (exit $ac_status); }
49567                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49568    fi
49569  ;;
49570 esac
49571
49572
49573                     if test "$wxUSE_MAC" = 1 ; then
49574         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49575     fi
49576 fi
49577
49578
49579 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49580 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49581
49582
49583 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49584  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49585  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49586  $CPPFLAGS `
49587
49588 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49589 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49590 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49591 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49592 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49593
49594 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49595
49596
49597 if test "x$MWCC" = "xyes"; then
49598
49599             CC="$CC -cwd source -I-"
49600     CXX="$CXX -cwd source -I-"
49601 fi
49602
49603
49604 LIBS=`echo $LIBS`
49605 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49606 EXTRALIBS_XML="$EXPAT_LINK"
49607 EXTRALIBS_HTML="$MSPACK_LINK"
49608 EXTRALIBS_MEDIA="$GST_LIBS"
49609 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49610 if test "$wxUSE_GUI" = "yes"; then
49611     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49612 fi
49613 if test "$wxUSE_OPENGL" = "yes"; then
49614     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49615 fi
49616
49617 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49618
49619 WXCONFIG_LIBS="$LIBS"
49620
49621 if test "$wxUSE_REGEX" = "builtin" ; then
49622     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49623 fi
49624 if test "$wxUSE_EXPAT" = "builtin" ; then
49625     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49626 fi
49627 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49628     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49629 fi
49630 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49631     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49632 fi
49633 if test "$wxUSE_LIBPNG" = "builtin" ; then
49634     wxconfig_3rdparty="png $wxconfig_3rdparty"
49635 fi
49636 if test "$wxUSE_ZLIB" = "builtin" ; then
49637     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49638 fi
49639
49640 for i in $wxconfig_3rdparty ; do
49641     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49642 done
49643
49644
49645 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49646     WXUNIV=1
49647
49648     case "$wxUNIV_THEMES" in
49649         ''|all)
49650             cat >>confdefs.h <<\_ACEOF
49651 #define wxUSE_ALL_THEMES 1
49652 _ACEOF
49653
49654             ;;
49655
49656         *)
49657             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49658                 cat >>confdefs.h <<_ACEOF
49659 #define wxUSE_THEME_$t 1
49660 _ACEOF
49661
49662             done
49663     esac
49664 else
49665     WXUNIV=0
49666 fi
49667
49668
49669
49670
49671
49672
49673
49674
49675 if test $wxUSE_MONOLITHIC = "yes" ; then
49676     MONOLITHIC=1
49677 else
49678     MONOLITHIC=0
49679 fi
49680
49681 if test $wxUSE_PLUGINS = "yes" ; then
49682     USE_PLUGINS=1
49683 else
49684     USE_PLUGINS=0
49685 fi
49686
49687 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49688     USE_QA=1
49689 else
49690     USE_QA=0
49691 fi
49692
49693 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49694     OFFICIAL_BUILD=1
49695 else
49696     OFFICIAL_BUILD=0
49697 fi
49698
49699
49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736 case "$TOOLKIT" in
49737     GTK)
49738         TOOLKIT_DESC="GTK+"
49739         if test "$WXGTK2" = 1; then
49740             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49741             if test "$wxUSE_GTKPRINT" = "yes" ; then
49742                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49743             fi
49744             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49745                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49746             fi
49747             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49748                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49749             fi
49750             if test "$wxUSE_LIBHILDON" = "yes"; then
49751                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49752             fi
49753             if test "$wxUSE_LIBHILDON2" = "yes"; then
49754                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49755             fi
49756
49757             if test "$TOOLKIT_EXTRA" != ""; then
49758                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49759             fi
49760         fi
49761         ;;
49762
49763     ?*)
49764         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49765         ;;
49766
49767     *)
49768         TOOLKIT_DESC="base only"
49769         ;;
49770 esac
49771
49772 if test "$wxUSE_WINE" = "yes"; then
49773     BAKEFILE_FORCE_PLATFORM=win32
49774 fi
49775
49776 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49777 then
49778     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49779 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49780 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49781   echo $ECHO_N "(cached) $ECHO_C" >&6
49782 else
49783
49784             echo '#include <stdio.h>
49785                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49786
49787             echo '#include "conftest.h"
49788                   int main()
49789                   {
49790                      printf("%ls", test_var);
49791                      return 0;
49792                   }' > conftest.cpp
49793
49794             wx_cv_gcc_pch_bug="pch not supported"
49795
49796             if $CXX conftest.h >/dev/null 2>&1
49797             then
49798                 wx_cv_gcc_pch_bug=
49799
49800                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49801                 then
49802                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49803                         grep awidetest >/dev/null
49804                     then
49805                         wx_cv_gcc_pch_bug=no
49806                     else
49807                         wx_cv_gcc_pch_bug=yes
49808                     fi
49809                 fi
49810             fi
49811
49812             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49813
49814 fi
49815 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49816 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49817
49818     if test "$wx_cv_gcc_pch_bug" = yes; then
49819                         bk_use_pch=no
49820     fi
49821 fi
49822
49823
49824
49825
49826
49827
49828
49829     if test "x$BAKEFILE_HOST" = "x"; then
49830                if test "x${host}" = "x" ; then
49831                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49832 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49833    { (exit 1); exit 1; }; }
49834                fi
49835
49836         BAKEFILE_HOST="${host}"
49837     fi
49838
49839     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49840
49841     if test -n "$ac_tool_prefix"; then
49842   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49846 if test "${ac_cv_prog_RANLIB+set}" = set; then
49847   echo $ECHO_N "(cached) $ECHO_C" >&6
49848 else
49849   if test -n "$RANLIB"; then
49850   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49851 else
49852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49853 for as_dir in $PATH
49854 do
49855   IFS=$as_save_IFS
49856   test -z "$as_dir" && as_dir=.
49857   for ac_exec_ext in '' $ac_executable_extensions; do
49858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49859     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49861     break 2
49862   fi
49863 done
49864 done
49865 IFS=$as_save_IFS
49866
49867 fi
49868 fi
49869 RANLIB=$ac_cv_prog_RANLIB
49870 if test -n "$RANLIB"; then
49871   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49872 echo "${ECHO_T}$RANLIB" >&6; }
49873 else
49874   { echo "$as_me:$LINENO: result: no" >&5
49875 echo "${ECHO_T}no" >&6; }
49876 fi
49877
49878
49879 fi
49880 if test -z "$ac_cv_prog_RANLIB"; then
49881   ac_ct_RANLIB=$RANLIB
49882   # Extract the first word of "ranlib", so it can be a program name with args.
49883 set dummy ranlib; ac_word=$2
49884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49887   echo $ECHO_N "(cached) $ECHO_C" >&6
49888 else
49889   if test -n "$ac_ct_RANLIB"; then
49890   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49891 else
49892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49893 for as_dir in $PATH
49894 do
49895   IFS=$as_save_IFS
49896   test -z "$as_dir" && as_dir=.
49897   for ac_exec_ext in '' $ac_executable_extensions; do
49898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49899     ac_cv_prog_ac_ct_RANLIB="ranlib"
49900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49901     break 2
49902   fi
49903 done
49904 done
49905 IFS=$as_save_IFS
49906
49907 fi
49908 fi
49909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49910 if test -n "$ac_ct_RANLIB"; then
49911   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49912 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49913 else
49914   { echo "$as_me:$LINENO: result: no" >&5
49915 echo "${ECHO_T}no" >&6; }
49916 fi
49917
49918   if test "x$ac_ct_RANLIB" = x; then
49919     RANLIB=":"
49920   else
49921     case $cross_compiling:$ac_tool_warned in
49922 yes:)
49923 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49924 whose name does not start with the host triplet.  If you think this
49925 configuration is useful to you, please write to autoconf@gnu.org." >&5
49926 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49927 whose name does not start with the host triplet.  If you think this
49928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49929 ac_tool_warned=yes ;;
49930 esac
49931     RANLIB=$ac_ct_RANLIB
49932   fi
49933 else
49934   RANLIB="$ac_cv_prog_RANLIB"
49935 fi
49936
49937     # Find a good install program.  We prefer a C program (faster),
49938 # so one script is as good as another.  But avoid the broken or
49939 # incompatible versions:
49940 # SysV /etc/install, /usr/sbin/install
49941 # SunOS /usr/etc/install
49942 # IRIX /sbin/install
49943 # AIX /bin/install
49944 # AmigaOS /C/install, which installs bootblocks on floppy discs
49945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49948 # OS/2's system install, which has a completely different semantic
49949 # ./install, which can be erroneously created by make from ./install.sh.
49950 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49951 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49952 if test -z "$INSTALL"; then
49953 if test "${ac_cv_path_install+set}" = set; then
49954   echo $ECHO_N "(cached) $ECHO_C" >&6
49955 else
49956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49957 for as_dir in $PATH
49958 do
49959   IFS=$as_save_IFS
49960   test -z "$as_dir" && as_dir=.
49961   # Account for people who put trailing slashes in PATH elements.
49962 case $as_dir/ in
49963   ./ | .// | /cC/* | \
49964   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49965   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49966   /usr/ucb/* ) ;;
49967   *)
49968     # OSF1 and SCO ODT 3.0 have their own names for install.
49969     # Don't use installbsd from OSF since it installs stuff as root
49970     # by default.
49971     for ac_prog in ginstall scoinst install; do
49972       for ac_exec_ext in '' $ac_executable_extensions; do
49973         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49974           if test $ac_prog = install &&
49975             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49976             # AIX install.  It has an incompatible calling convention.
49977             :
49978           elif test $ac_prog = install &&
49979             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49980             # program-specific install script used by HP pwplus--don't use.
49981             :
49982           else
49983             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49984             break 3
49985           fi
49986         fi
49987       done
49988     done
49989     ;;
49990 esac
49991 done
49992 IFS=$as_save_IFS
49993
49994
49995 fi
49996   if test "${ac_cv_path_install+set}" = set; then
49997     INSTALL=$ac_cv_path_install
49998   else
49999     # As a last resort, use the slow shell script.  Don't cache a
50000     # value for INSTALL within a source directory, because that will
50001     # break other packages using the cache if that directory is
50002     # removed, or if the value is a relative name.
50003     INSTALL=$ac_install_sh
50004   fi
50005 fi
50006 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50007 echo "${ECHO_T}$INSTALL" >&6; }
50008
50009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50010 # It thinks the first close brace ends the variable substitution.
50011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50012
50013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50014
50015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50016
50017     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50019 LN_S=$as_ln_s
50020 if test "$LN_S" = "ln -s"; then
50021   { echo "$as_me:$LINENO: result: yes" >&5
50022 echo "${ECHO_T}yes" >&6; }
50023 else
50024   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50025 echo "${ECHO_T}no, using $LN_S" >&6; }
50026 fi
50027
50028
50029     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50031 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50032 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50033   echo $ECHO_N "(cached) $ECHO_C" >&6
50034 else
50035   cat >conftest.make <<\_ACEOF
50036 SHELL = /bin/sh
50037 all:
50038         @echo '@@@%%%=$(MAKE)=@@@%%%'
50039 _ACEOF
50040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50041 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50042   *@@@%%%=?*=@@@%%%*)
50043     eval ac_cv_prog_make_${ac_make}_set=yes;;
50044   *)
50045     eval ac_cv_prog_make_${ac_make}_set=no;;
50046 esac
50047 rm -f conftest.make
50048 fi
50049 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50050   { echo "$as_me:$LINENO: result: yes" >&5
50051 echo "${ECHO_T}yes" >&6; }
50052   SET_MAKE=
50053 else
50054   { echo "$as_me:$LINENO: result: no" >&5
50055 echo "${ECHO_T}no" >&6; }
50056   SET_MAKE="MAKE=${MAKE-make}"
50057 fi
50058
50059
50060
50061     if test "x$SUNCXX" = "xyes"; then
50062                                 AR=$CXX
50063         AROPTIONS="-xar -o"
50064
50065     elif test "x$SGICC" = "xyes"; then
50066                 AR=$CXX
50067         AROPTIONS="-ar -o"
50068
50069     else
50070         if test -n "$ac_tool_prefix"; then
50071   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50072 set dummy ${ac_tool_prefix}ar; ac_word=$2
50073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50075 if test "${ac_cv_prog_AR+set}" = set; then
50076   echo $ECHO_N "(cached) $ECHO_C" >&6
50077 else
50078   if test -n "$AR"; then
50079   ac_cv_prog_AR="$AR" # Let the user override the test.
50080 else
50081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50082 for as_dir in $PATH
50083 do
50084   IFS=$as_save_IFS
50085   test -z "$as_dir" && as_dir=.
50086   for ac_exec_ext in '' $ac_executable_extensions; do
50087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50088     ac_cv_prog_AR="${ac_tool_prefix}ar"
50089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50090     break 2
50091   fi
50092 done
50093 done
50094 IFS=$as_save_IFS
50095
50096 fi
50097 fi
50098 AR=$ac_cv_prog_AR
50099 if test -n "$AR"; then
50100   { echo "$as_me:$LINENO: result: $AR" >&5
50101 echo "${ECHO_T}$AR" >&6; }
50102 else
50103   { echo "$as_me:$LINENO: result: no" >&5
50104 echo "${ECHO_T}no" >&6; }
50105 fi
50106
50107
50108 fi
50109 if test -z "$ac_cv_prog_AR"; then
50110   ac_ct_AR=$AR
50111   # Extract the first word of "ar", so it can be a program name with args.
50112 set dummy ar; ac_word=$2
50113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50115 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50116   echo $ECHO_N "(cached) $ECHO_C" >&6
50117 else
50118   if test -n "$ac_ct_AR"; then
50119   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50120 else
50121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50122 for as_dir in $PATH
50123 do
50124   IFS=$as_save_IFS
50125   test -z "$as_dir" && as_dir=.
50126   for ac_exec_ext in '' $ac_executable_extensions; do
50127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50128     ac_cv_prog_ac_ct_AR="ar"
50129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50130     break 2
50131   fi
50132 done
50133 done
50134 IFS=$as_save_IFS
50135
50136 fi
50137 fi
50138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50139 if test -n "$ac_ct_AR"; then
50140   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50141 echo "${ECHO_T}$ac_ct_AR" >&6; }
50142 else
50143   { echo "$as_me:$LINENO: result: no" >&5
50144 echo "${ECHO_T}no" >&6; }
50145 fi
50146
50147   if test "x$ac_ct_AR" = x; then
50148     AR="ar"
50149   else
50150     case $cross_compiling:$ac_tool_warned in
50151 yes:)
50152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50153 whose name does not start with the host triplet.  If you think this
50154 configuration is useful to you, please write to autoconf@gnu.org." >&5
50155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50156 whose name does not start with the host triplet.  If you think this
50157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50158 ac_tool_warned=yes ;;
50159 esac
50160     AR=$ac_ct_AR
50161   fi
50162 else
50163   AR="$ac_cv_prog_AR"
50164 fi
50165
50166         AROPTIONS=rcu
50167     fi
50168
50169
50170     if test -n "$ac_tool_prefix"; then
50171   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50172 set dummy ${ac_tool_prefix}strip; ac_word=$2
50173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50175 if test "${ac_cv_prog_STRIP+set}" = set; then
50176   echo $ECHO_N "(cached) $ECHO_C" >&6
50177 else
50178   if test -n "$STRIP"; then
50179   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50180 else
50181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50182 for as_dir in $PATH
50183 do
50184   IFS=$as_save_IFS
50185   test -z "$as_dir" && as_dir=.
50186   for ac_exec_ext in '' $ac_executable_extensions; do
50187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50188     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50190     break 2
50191   fi
50192 done
50193 done
50194 IFS=$as_save_IFS
50195
50196 fi
50197 fi
50198 STRIP=$ac_cv_prog_STRIP
50199 if test -n "$STRIP"; then
50200   { echo "$as_me:$LINENO: result: $STRIP" >&5
50201 echo "${ECHO_T}$STRIP" >&6; }
50202 else
50203   { echo "$as_me:$LINENO: result: no" >&5
50204 echo "${ECHO_T}no" >&6; }
50205 fi
50206
50207
50208 fi
50209 if test -z "$ac_cv_prog_STRIP"; then
50210   ac_ct_STRIP=$STRIP
50211   # Extract the first word of "strip", so it can be a program name with args.
50212 set dummy strip; ac_word=$2
50213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50215 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50216   echo $ECHO_N "(cached) $ECHO_C" >&6
50217 else
50218   if test -n "$ac_ct_STRIP"; then
50219   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50220 else
50221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50222 for as_dir in $PATH
50223 do
50224   IFS=$as_save_IFS
50225   test -z "$as_dir" && as_dir=.
50226   for ac_exec_ext in '' $ac_executable_extensions; do
50227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50228     ac_cv_prog_ac_ct_STRIP="strip"
50229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50230     break 2
50231   fi
50232 done
50233 done
50234 IFS=$as_save_IFS
50235
50236 fi
50237 fi
50238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50239 if test -n "$ac_ct_STRIP"; then
50240   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50241 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50242 else
50243   { echo "$as_me:$LINENO: result: no" >&5
50244 echo "${ECHO_T}no" >&6; }
50245 fi
50246
50247   if test "x$ac_ct_STRIP" = x; then
50248     STRIP=":"
50249   else
50250     case $cross_compiling:$ac_tool_warned in
50251 yes:)
50252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50253 whose name does not start with the host triplet.  If you think this
50254 configuration is useful to you, please write to autoconf@gnu.org." >&5
50255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50256 whose name does not start with the host triplet.  If you think this
50257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50258 ac_tool_warned=yes ;;
50259 esac
50260     STRIP=$ac_ct_STRIP
50261   fi
50262 else
50263   STRIP="$ac_cv_prog_STRIP"
50264 fi
50265
50266     if test -n "$ac_tool_prefix"; then
50267   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50268 set dummy ${ac_tool_prefix}nm; ac_word=$2
50269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50271 if test "${ac_cv_prog_NM+set}" = set; then
50272   echo $ECHO_N "(cached) $ECHO_C" >&6
50273 else
50274   if test -n "$NM"; then
50275   ac_cv_prog_NM="$NM" # Let the user override the test.
50276 else
50277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50278 for as_dir in $PATH
50279 do
50280   IFS=$as_save_IFS
50281   test -z "$as_dir" && as_dir=.
50282   for ac_exec_ext in '' $ac_executable_extensions; do
50283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50284     ac_cv_prog_NM="${ac_tool_prefix}nm"
50285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50286     break 2
50287   fi
50288 done
50289 done
50290 IFS=$as_save_IFS
50291
50292 fi
50293 fi
50294 NM=$ac_cv_prog_NM
50295 if test -n "$NM"; then
50296   { echo "$as_me:$LINENO: result: $NM" >&5
50297 echo "${ECHO_T}$NM" >&6; }
50298 else
50299   { echo "$as_me:$LINENO: result: no" >&5
50300 echo "${ECHO_T}no" >&6; }
50301 fi
50302
50303
50304 fi
50305 if test -z "$ac_cv_prog_NM"; then
50306   ac_ct_NM=$NM
50307   # Extract the first word of "nm", so it can be a program name with args.
50308 set dummy nm; ac_word=$2
50309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50311 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50312   echo $ECHO_N "(cached) $ECHO_C" >&6
50313 else
50314   if test -n "$ac_ct_NM"; then
50315   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50316 else
50317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50318 for as_dir in $PATH
50319 do
50320   IFS=$as_save_IFS
50321   test -z "$as_dir" && as_dir=.
50322   for ac_exec_ext in '' $ac_executable_extensions; do
50323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50324     ac_cv_prog_ac_ct_NM="nm"
50325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50326     break 2
50327   fi
50328 done
50329 done
50330 IFS=$as_save_IFS
50331
50332 fi
50333 fi
50334 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50335 if test -n "$ac_ct_NM"; then
50336   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50337 echo "${ECHO_T}$ac_ct_NM" >&6; }
50338 else
50339   { echo "$as_me:$LINENO: result: no" >&5
50340 echo "${ECHO_T}no" >&6; }
50341 fi
50342
50343   if test "x$ac_ct_NM" = x; then
50344     NM=":"
50345   else
50346     case $cross_compiling:$ac_tool_warned in
50347 yes:)
50348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50349 whose name does not start with the host triplet.  If you think this
50350 configuration is useful to you, please write to autoconf@gnu.org." >&5
50351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50352 whose name does not start with the host triplet.  If you think this
50353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50354 ac_tool_warned=yes ;;
50355 esac
50356     NM=$ac_ct_NM
50357   fi
50358 else
50359   NM="$ac_cv_prog_NM"
50360 fi
50361
50362
50363             { echo "$as_me:$LINENO: checking for command to install directories" >&5
50364 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
50365     INSTALL_TEST_DIR=acbftest$$
50366     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
50367     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
50368         rmdir $INSTALL_TEST_DIR
50369                         INSTALL_DIR='$(INSTALL) -d'
50370         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
50371 echo "${ECHO_T}$INSTALL -d" >&6; }
50372     else
50373         INSTALL_DIR="mkdir -p"
50374         { echo "$as_me:$LINENO: result: mkdir -p" >&5
50375 echo "${ECHO_T}mkdir -p" >&6; }
50376     fi
50377
50378
50379     LDFLAGS_GUI=
50380     case ${BAKEFILE_HOST} in
50381         *-*-cygwin* | *-*-mingw32* )
50382         LDFLAGS_GUI="-mwindows"
50383     esac
50384
50385
50386     fi
50387
50388         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50389 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50390 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50391   echo $ECHO_N "(cached) $ECHO_C" >&6
50392 else
50393
50394         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50395                 egrep -s GNU > /dev/null); then
50396             bakefile_cv_prog_makeisgnu="yes"
50397         else
50398             bakefile_cv_prog_makeisgnu="no"
50399         fi
50400
50401 fi
50402 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50403 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50404
50405     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50406         IF_GNU_MAKE=""
50407     else
50408         IF_GNU_MAKE="#"
50409     fi
50410
50411
50412
50413     PLATFORM_UNIX=0
50414     PLATFORM_WIN32=0
50415     PLATFORM_MSDOS=0
50416     PLATFORM_MAC=0
50417     PLATFORM_MACOS=0
50418     PLATFORM_MACOSX=0
50419     PLATFORM_OS2=0
50420     PLATFORM_BEOS=0
50421
50422     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50423         case "${BAKEFILE_HOST}" in
50424             *-*-mingw32* )
50425                 PLATFORM_WIN32=1
50426             ;;
50427             *-pc-msdosdjgpp )
50428                 PLATFORM_MSDOS=1
50429             ;;
50430             *-pc-os2_emx | *-pc-os2-emx )
50431                 PLATFORM_OS2=1
50432             ;;
50433             *-*-darwin* )
50434                 PLATFORM_MAC=1
50435                 PLATFORM_MACOSX=1
50436             ;;
50437             *-*-beos* )
50438                 PLATFORM_BEOS=1
50439             ;;
50440             powerpc-apple-macos* )
50441                 PLATFORM_MAC=1
50442                 PLATFORM_MACOS=1
50443             ;;
50444             * )
50445                 PLATFORM_UNIX=1
50446             ;;
50447         esac
50448     else
50449         case "$BAKEFILE_FORCE_PLATFORM" in
50450             win32 )
50451                 PLATFORM_WIN32=1
50452             ;;
50453             msdos )
50454                 PLATFORM_MSDOS=1
50455             ;;
50456             os2 )
50457                 PLATFORM_OS2=1
50458             ;;
50459             darwin )
50460                 PLATFORM_MAC=1
50461                 PLATFORM_MACOSX=1
50462             ;;
50463             unix )
50464                 PLATFORM_UNIX=1
50465             ;;
50466             beos )
50467                 PLATFORM_BEOS=1
50468             ;;
50469             * )
50470                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50471 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50472    { (exit 1); exit 1; }; }
50473             ;;
50474         esac
50475     fi
50476
50477
50478
50479
50480
50481
50482
50483
50484
50485
50486
50487     # Check whether --enable-omf was given.
50488 if test "${enable_omf+set}" = set; then
50489   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50490 fi
50491
50492
50493     case "${BAKEFILE_HOST}" in
50494       *-*-darwin* )
50495                         if test "x$GCC" = "xyes"; then
50496             CFLAGS="$CFLAGS -fno-common"
50497             CXXFLAGS="$CXXFLAGS -fno-common"
50498         fi
50499         if test "x$XLCC" = "xyes"; then
50500             CFLAGS="$CFLAGS -qnocommon"
50501             CXXFLAGS="$CXXFLAGS -qnocommon"
50502         fi
50503         ;;
50504
50505       *-pc-os2_emx | *-pc-os2-emx )
50506         if test "x$bk_os2_use_omf" = "xyes" ; then
50507             AR=emxomfar
50508             RANLIB=:
50509             LDFLAGS="-Zomf $LDFLAGS"
50510             CFLAGS="-Zomf $CFLAGS"
50511             CXXFLAGS="-Zomf $CXXFLAGS"
50512             OS2_LIBEXT="lib"
50513         else
50514             OS2_LIBEXT="a"
50515         fi
50516         ;;
50517
50518       i*86-*-beos* )
50519         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50520         ;;
50521     esac
50522
50523
50524     SO_SUFFIX="so"
50525     SO_SUFFIX_MODULE="so"
50526     EXEEXT=""
50527     LIBPREFIX="lib"
50528     LIBEXT=".a"
50529     DLLPREFIX="lib"
50530     DLLPREFIX_MODULE=""
50531     DLLIMP_SUFFIX=""
50532     dlldir="$libdir"
50533
50534     case "${BAKEFILE_HOST}" in
50535                         ia64-hp-hpux* )
50536         ;;
50537         *-hp-hpux* )
50538             SO_SUFFIX="sl"
50539             SO_SUFFIX_MODULE="sl"
50540         ;;
50541         *-*-aix* )
50542                                                                         SO_SUFFIX="a"
50543             SO_SUFFIX_MODULE="a"
50544         ;;
50545         *-*-cygwin* )
50546             SO_SUFFIX="dll"
50547             SO_SUFFIX_MODULE="dll"
50548             DLLIMP_SUFFIX="dll.a"
50549             EXEEXT=".exe"
50550             DLLPREFIX="cyg"
50551             dlldir="$bindir"
50552         ;;
50553         *-*-mingw32* )
50554             SO_SUFFIX="dll"
50555             SO_SUFFIX_MODULE="dll"
50556             DLLIMP_SUFFIX="dll.a"
50557             EXEEXT=".exe"
50558             DLLPREFIX=""
50559             dlldir="$bindir"
50560         ;;
50561         *-pc-msdosdjgpp )
50562             EXEEXT=".exe"
50563             DLLPREFIX=""
50564             dlldir="$bindir"
50565         ;;
50566         *-pc-os2_emx | *-pc-os2-emx )
50567             SO_SUFFIX="dll"
50568             SO_SUFFIX_MODULE="dll"
50569             DLLIMP_SUFFIX=$OS2_LIBEXT
50570             EXEEXT=".exe"
50571             DLLPREFIX=""
50572             LIBPREFIX=""
50573             LIBEXT=".$OS2_LIBEXT"
50574             dlldir="$bindir"
50575         ;;
50576         *-*-darwin* )
50577             SO_SUFFIX="dylib"
50578             SO_SUFFIX_MODULE="bundle"
50579         ;;
50580     esac
50581
50582     if test "x$DLLIMP_SUFFIX" = "x" ; then
50583         DLLIMP_SUFFIX="$SO_SUFFIX"
50584     fi
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597         PIC_FLAG=""
50598     if test "x$GCC" = "xyes"; then
50599                 PIC_FLAG="-fPIC"
50600     fi
50601
50602         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50603     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50604     WINDOWS_IMPLIB=0
50605
50606     case "${BAKEFILE_HOST}" in
50607       *-hp-hpux* )
50608                 if test "x$GCC" != "xyes"; then
50609                         LDFLAGS="$LDFLAGS -L/usr/lib"
50610
50611             SHARED_LD_CC="${CC} -b -o"
50612             SHARED_LD_CXX="${CXX} -b -o"
50613             PIC_FLAG="+Z"
50614         fi
50615       ;;
50616
50617       *-*-linux* )
50618                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50619             PIC_FLAG="-KPIC"
50620         elif test "x$SUNCXX" = "xyes"; then
50621             SHARED_LD_CC="${CC} -G -o"
50622             SHARED_LD_CXX="${CXX} -G -o"
50623             PIC_FLAG="-KPIC"
50624         fi
50625       ;;
50626
50627       *-*-solaris2* )
50628         if test "x$SUNCXX" = xyes ; then
50629             SHARED_LD_CC="${CC} -G -o"
50630             SHARED_LD_CXX="${CXX} -G -o"
50631             PIC_FLAG="-KPIC"
50632         fi
50633       ;;
50634
50635       *-*-darwin* )
50636
50637 D='$'
50638 cat <<EOF >shared-ld-sh
50639 #!/bin/sh
50640 #-----------------------------------------------------------------------------
50641 #-- Name:        distrib/mac/shared-ld-sh
50642 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50643 #-- Author:      Gilles Depeyrot
50644 #-- Copyright:   (c) 2002 Gilles Depeyrot
50645 #-- Licence:     any use permitted
50646 #-----------------------------------------------------------------------------
50647
50648 verbose=0
50649 args=""
50650 objects=""
50651 linking_flag="-dynamiclib"
50652 ldargs="-r -keep_private_externs -nostdlib"
50653
50654 if test "x${D}CXX" = "x"; then
50655     CXX="c++"
50656 fi
50657
50658 while test ${D}# -gt 0; do
50659     case ${D}1 in
50660
50661        -v)
50662         verbose=1
50663         ;;
50664
50665        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50666         # collect these options and values
50667         args="${D}{args} ${D}1 ${D}2"
50668         shift
50669         ;;
50670
50671        -arch|-isysroot)
50672         # collect these options and values
50673         ldargs="${D}{ldargs} ${D}1 ${D}2"
50674         shift
50675         ;;
50676
50677        -s|-Wl,*)
50678         # collect these load args
50679         ldargs="${D}{ldargs} ${D}1"
50680         ;;
50681
50682        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50683         # collect these options
50684         args="${D}{args} ${D}1"
50685         ;;
50686
50687        -dynamiclib|-bundle)
50688         linking_flag="${D}1"
50689         ;;
50690
50691        -*)
50692         echo "shared-ld: unhandled option '${D}1'"
50693         exit 1
50694         ;;
50695
50696         *.o | *.a | *.dylib)
50697         # collect object files
50698         objects="${D}{objects} ${D}1"
50699         ;;
50700
50701         *)
50702         echo "shared-ld: unhandled argument '${D}1'"
50703         exit 1
50704         ;;
50705
50706     esac
50707     shift
50708 done
50709
50710 status=0
50711
50712 #
50713 # Link one module containing all the others
50714 #
50715 if test ${D}{verbose} = 1; then
50716     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50717 fi
50718 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50719 status=${D}?
50720
50721 #
50722 # Link the shared library from the single module created, but only if the
50723 # previous command didn't fail:
50724 #
50725 if test ${D}{status} = 0; then
50726     if test ${D}{verbose} = 1; then
50727         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50728     fi
50729     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50730     status=${D}?
50731 fi
50732
50733 #
50734 # Remove intermediate module
50735 #
50736 rm -f master.${D}${D}.o
50737
50738 exit ${D}status
50739 EOF
50740
50741         chmod +x shared-ld-sh
50742
50743         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50744         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50745
50746
50747                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50748 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50749 if test "${bakefile_cv_gcc31+set}" = set; then
50750   echo $ECHO_N "(cached) $ECHO_C" >&6
50751 else
50752
50753            cat >conftest.$ac_ext <<_ACEOF
50754 /* confdefs.h.  */
50755 _ACEOF
50756 cat confdefs.h >>conftest.$ac_ext
50757 cat >>conftest.$ac_ext <<_ACEOF
50758 /* end confdefs.h.  */
50759
50760 int
50761 main ()
50762 {
50763
50764                    #if (__GNUC__ < 3) || \
50765                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50766                        This is old gcc
50767                    #endif
50768
50769   ;
50770   return 0;
50771 }
50772 _ACEOF
50773 rm -f conftest.$ac_objext
50774 if { (ac_try="$ac_compile"
50775 case "(($ac_try" in
50776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50777   *) ac_try_echo=$ac_try;;
50778 esac
50779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50780   (eval "$ac_compile") 2>conftest.er1
50781   ac_status=$?
50782   grep -v '^ *+' conftest.er1 >conftest.err
50783   rm -f conftest.er1
50784   cat conftest.err >&5
50785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50786   (exit $ac_status); } && {
50787          test -z "$ac_c_werror_flag" ||
50788          test ! -s conftest.err
50789        } && test -s conftest.$ac_objext; then
50790
50791                    bakefile_cv_gcc31=yes
50792
50793 else
50794   echo "$as_me: failed program was:" >&5
50795 sed 's/^/| /' conftest.$ac_ext >&5
50796
50797
50798                    bakefile_cv_gcc31=no
50799
50800
50801 fi
50802
50803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50804
50805 fi
50806 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50807 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50808         if test "$bakefile_cv_gcc31" = "no"; then
50809                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50810             SHARED_LD_CXX="$SHARED_LD_CC"
50811         else
50812                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50813             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50814         fi
50815
50816         if test "x$GCC" == "xyes"; then
50817             PIC_FLAG="-dynamic -fPIC"
50818         fi
50819         if test "x$XLCC" = "xyes"; then
50820             PIC_FLAG="-dynamic -DPIC"
50821         fi
50822       ;;
50823
50824       *-*-aix* )
50825         if test "x$GCC" = "xyes"; then
50826                                                             PIC_FLAG=""
50827
50828                                                                                     case "${BAKEFILE_HOST}" in
50829                 *-*-aix5* )
50830                     LD_EXPFULL="-Wl,-bexpfull"
50831                     ;;
50832             esac
50833
50834             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50835             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50836         else
50837                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50838 set dummy makeC++SharedLib; ac_word=$2
50839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50841 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50842   echo $ECHO_N "(cached) $ECHO_C" >&6
50843 else
50844   if test -n "$AIX_CXX_LD"; then
50845   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50846 else
50847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50848 for as_dir in $PATH
50849 do
50850   IFS=$as_save_IFS
50851   test -z "$as_dir" && as_dir=.
50852   for ac_exec_ext in '' $ac_executable_extensions; do
50853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50854     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50856     break 2
50857   fi
50858 done
50859 done
50860 IFS=$as_save_IFS
50861
50862   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50863 fi
50864 fi
50865 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50866 if test -n "$AIX_CXX_LD"; then
50867   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50868 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50869 else
50870   { echo "$as_me:$LINENO: result: no" >&5
50871 echo "${ECHO_T}no" >&6; }
50872 fi
50873
50874
50875             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50876             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50877         fi
50878       ;;
50879
50880       *-*-beos* )
50881                         SHARED_LD_CC="${LD} -nostart -o"
50882         SHARED_LD_CXX="${LD} -nostart -o"
50883       ;;
50884
50885       *-*-irix* )
50886                 if test "x$GCC" != "xyes"; then
50887             PIC_FLAG="-KPIC"
50888         fi
50889       ;;
50890
50891       *-*-cygwin* | *-*-mingw32* )
50892         PIC_FLAG=""
50893         SHARED_LD_CC="\$(CC) -shared -o"
50894         SHARED_LD_CXX="\$(CXX) -shared -o"
50895         WINDOWS_IMPLIB=1
50896       ;;
50897
50898       *-pc-os2_emx | *-pc-os2-emx )
50899         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50900         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50901         PIC_FLAG=""
50902
50903 D='$'
50904 cat <<EOF >dllar.sh
50905 #!/bin/sh
50906 #
50907 # dllar - a tool to build both a .dll and an .a file
50908 # from a set of object (.o) files for EMX/OS2.
50909 #
50910 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50911 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50912 #
50913 #  This script will accept a set of files on the command line.
50914 #  All the public symbols from the .o files will be exported into
50915 #  a .DEF file, then linker will be run (through gcc) against them to
50916 #  build a shared library consisting of all given .o files. All libraries
50917 #  (.a) will be first decompressed into component .o files then act as
50918 #  described above. You can optionally give a description (-d "description")
50919 #  which will be put into .DLL. To see the list of accepted options (as well
50920 #  as command-line format) simply run this program without options. The .DLL
50921 #  is built to be imported by name (there is no guarantee that new versions
50922 #  of the library you build will have same ordinals for same symbols).
50923 #
50924 #  dllar is free software; you can redistribute it and/or modify
50925 #  it under the terms of the GNU General Public License as published by
50926 #  the Free Software Foundation; either version 2, or (at your option)
50927 #  any later version.
50928 #
50929 #  dllar is distributed in the hope that it will be useful,
50930 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50931 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50932 #  GNU General Public License for more details.
50933 #
50934 #  You should have received a copy of the GNU General Public License
50935 #  along with dllar; see the file COPYING.  If not, write to the Free
50936 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50937 #  02111-1307, USA.
50938
50939 # To successfuly run this program you will need:
50940 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50941 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50942 #  - gcc
50943 #    (used to build the .dll)
50944 #  - emxexp
50945 #    (used to create .def file from .o files)
50946 #  - emximp
50947 #    (used to create .a file from .def file)
50948 #  - GNU text utilites (cat, sort, uniq)
50949 #    used to process emxexp output
50950 #  - GNU file utilities (mv, rm)
50951 #  - GNU sed
50952 #  - lxlite (optional, see flag below)
50953 #    (used for general .dll cleanup)
50954 #
50955
50956 flag_USE_LXLITE=1;
50957
50958 #
50959 # helper functions
50960 # basnam, variant of basename, which does _not_ remove the path, _iff_
50961 #                              second argument (suffix to remove) is given
50962 basnam(){
50963     case ${D}# in
50964     1)
50965         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50966         ;;
50967     2)
50968         echo ${D}1 | sed 's/'${D}2'${D}//'
50969         ;;
50970     *)
50971         echo "error in basnam ${D}*"
50972         exit 8
50973         ;;
50974     esac
50975 }
50976
50977 # Cleanup temporary files and output
50978 CleanUp() {
50979     cd ${D}curDir
50980     for i in ${D}inputFiles ; do
50981         case ${D}i in
50982         *!)
50983             rm -rf \`basnam ${D}i !\`
50984             ;;
50985         *)
50986             ;;
50987         esac
50988     done
50989
50990     # Kill result in case of failure as there is just to many stupid make/nmake
50991     # things out there which doesn't do this.
50992     if [ ${D}# -eq 0 ]; then
50993         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50994     fi
50995 }
50996
50997 # Print usage and exit script with rc=1.
50998 PrintHelp() {
50999  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51000  echo '       [-name-mangler-script script.sh]'
51001  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51002  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51003  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51004  echo '       [*.o] [*.a]'
51005  echo '*> "output_file" should have no extension.'
51006  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51007  echo '   The import library name is derived from this and is set to "name".a,'
51008  echo '   unless overridden by -import'
51009  echo '*> "importlib_name" should have no extension.'
51010  echo '   If it has the .o, or .a extension, it is automatically removed.'
51011  echo '   This name is used as the import library name and may be longer and'
51012  echo '   more descriptive than the DLL name which has to follow the old '
51013  echo '   8.3 convention of FAT.'
51014  echo '*> "script.sh may be given to override the output_file name by a'
51015  echo '   different name. It is mainly useful if the regular make process'
51016  echo '   of some package does not take into account OS/2 restriction of'
51017  echo '   DLL name lengths. It takes the importlib name as input and is'
51018  echo '   supposed to procude a shorter name as output. The script should'
51019  echo '   expect to get importlib_name without extension and should produce'
51020  echo '   a (max.) 8 letter name without extension.'
51021  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51022  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51023  echo '   These flags will be put at the start of GCC command line.'
51024  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51025  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51026  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51027  echo '   If the last character of a symbol is "*", all symbols beginning'
51028  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51029  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51030  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51031  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51032  echo '   C runtime DLLs.'
51033  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51034  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51035  echo '   unchanged to GCC at the end of command line.'
51036  echo '*> If you create a DLL from a library and you do not specify -o,'
51037  echo '   the basename for DLL and import library will be set to library name,'
51038  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51039  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51040  echo '   library will be renamed into gcc_s.a.'
51041  echo '--------'
51042  echo 'Example:'
51043  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51044  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51045  CleanUp
51046  exit 1
51047 }
51048
51049 # Execute a command.
51050 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51051 # @Uses    Whatever CleanUp() uses.
51052 doCommand() {
51053     echo "${D}*"
51054     eval ${D}*
51055     rcCmd=${D}?
51056
51057     if [ ${D}rcCmd -ne 0 ]; then
51058         echo "command failed, exit code="${D}rcCmd
51059         CleanUp
51060         exit ${D}rcCmd
51061     fi
51062 }
51063
51064 # main routine
51065 # setup globals
51066 cmdLine=${D}*
51067 outFile=""
51068 outimpFile=""
51069 inputFiles=""
51070 renameScript=""
51071 description=""
51072 CC=gcc.exe
51073 CFLAGS="-s -Zcrtdll"
51074 EXTRA_CFLAGS=""
51075 EXPORT_BY_ORDINALS=0
51076 exclude_symbols=""
51077 library_flags=""
51078 curDir=\`pwd\`
51079 curDirS=curDir
51080 case ${D}curDirS in
51081 */)
51082   ;;
51083 *)
51084   curDirS=${D}{curDirS}"/"
51085   ;;
51086 esac
51087 # Parse commandline
51088 libsToLink=0
51089 omfLinking=0
51090 while [ ${D}1 ]; do
51091     case ${D}1 in
51092     -ord*)
51093         EXPORT_BY_ORDINALS=1;
51094         ;;
51095     -o*)
51096         shift
51097         outFile=${D}1
51098         ;;
51099     -i*)
51100         shift
51101         outimpFile=${D}1
51102         ;;
51103     -name-mangler-script)
51104         shift
51105         renameScript=${D}1
51106         ;;
51107     -d*)
51108         shift
51109         description=${D}1
51110         ;;
51111     -f*)
51112         shift
51113         CFLAGS=${D}1
51114         ;;
51115     -c*)
51116         shift
51117         CC=${D}1
51118         ;;
51119     -h*)
51120         PrintHelp
51121         ;;
51122     -ex*)
51123         shift
51124         exclude_symbols=${D}{exclude_symbols}${D}1" "
51125         ;;
51126     -libf*)
51127         shift
51128         library_flags=${D}{library_flags}${D}1" "
51129         ;;
51130     -nocrt*)
51131         CFLAGS="-s"
51132         ;;
51133     -nolxl*)
51134         flag_USE_LXLITE=0
51135         ;;
51136     -* | /*)
51137         case ${D}1 in
51138         -L* | -l*)
51139             libsToLink=1
51140             ;;
51141         -Zomf)
51142             omfLinking=1
51143             ;;
51144         *)
51145             ;;
51146         esac
51147         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51148         ;;
51149     *.dll)
51150         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51151         if [ ${D}omfLinking -eq 1 ]; then
51152             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51153         else
51154             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51155         fi
51156         ;;
51157     *)
51158         found=0;
51159         if [ ${D}libsToLink -ne 0 ]; then
51160             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51161         else
51162             for file in ${D}1 ; do
51163                 if [ -f ${D}file ]; then
51164                     inputFiles="${D}{inputFiles} ${D}file"
51165                     found=1
51166                 fi
51167             done
51168             if [ ${D}found -eq 0 ]; then
51169                 echo "ERROR: No file(s) found: "${D}1
51170                 exit 8
51171             fi
51172         fi
51173       ;;
51174     esac
51175     shift
51176 done # iterate cmdline words
51177
51178 #
51179 if [ -z "${D}inputFiles" ]; then
51180     echo "dllar: no input files"
51181     PrintHelp
51182 fi
51183
51184 # Now extract all .o files from .a files
51185 newInputFiles=""
51186 for file in ${D}inputFiles ; do
51187     case ${D}file in
51188     *.a | *.lib)
51189         case ${D}file in
51190         *.a)
51191             suffix=".a"
51192             AR="ar"
51193             ;;
51194         *.lib)
51195             suffix=".lib"
51196             AR="emxomfar"
51197             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51198             ;;
51199         *)
51200             ;;
51201         esac
51202         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51203         mkdir ${D}dirname
51204         if [ ${D}? -ne 0 ]; then
51205             echo "Failed to create subdirectory ./${D}dirname"
51206             CleanUp
51207             exit 8;
51208         fi
51209         # Append '!' to indicate archive
51210         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51211         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51212         cd ${D}curDir
51213         found=0;
51214         for subfile in ${D}dirname/*.o* ; do
51215             if [ -f ${D}subfile ]; then
51216                 found=1
51217                 if [ -s ${D}subfile ]; then
51218                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51219                     newInputFiles="${D}newInputFiles ${D}subfile"
51220                 fi
51221             fi
51222         done
51223         if [ ${D}found -eq 0 ]; then
51224             echo "WARNING: there are no files in archive \\'${D}file\\'"
51225         fi
51226         ;;
51227     *)
51228         newInputFiles="${D}{newInputFiles} ${D}file"
51229         ;;
51230     esac
51231 done
51232 inputFiles="${D}newInputFiles"
51233
51234 # Output filename(s).
51235 do_backup=0;
51236 if [ -z ${D}outFile ]; then
51237     do_backup=1;
51238     set outFile ${D}inputFiles; outFile=${D}2
51239 fi
51240
51241 # If it is an archive, remove the '!' and the '_%' suffixes
51242 case ${D}outFile in
51243 *_%!)
51244     outFile=\`basnam ${D}outFile _%!\`
51245     ;;
51246 *)
51247     ;;
51248 esac
51249 case ${D}outFile in
51250 *.dll)
51251     outFile=\`basnam ${D}outFile .dll\`
51252     ;;
51253 *.DLL)
51254     outFile=\`basnam ${D}outFile .DLL\`
51255     ;;
51256 *.o)
51257     outFile=\`basnam ${D}outFile .o\`
51258     ;;
51259 *.obj)
51260     outFile=\`basnam ${D}outFile .obj\`
51261     ;;
51262 *.a)
51263     outFile=\`basnam ${D}outFile .a\`
51264     ;;
51265 *.lib)
51266     outFile=\`basnam ${D}outFile .lib\`
51267     ;;
51268 *)
51269     ;;
51270 esac
51271 case ${D}outimpFile in
51272 *.a)
51273     outimpFile=\`basnam ${D}outimpFile .a\`
51274     ;;
51275 *.lib)
51276     outimpFile=\`basnam ${D}outimpFile .lib\`
51277     ;;
51278 *)
51279     ;;
51280 esac
51281 if [ -z ${D}outimpFile ]; then
51282     outimpFile=${D}outFile
51283 fi
51284 defFile="${D}{outFile}.def"
51285 arcFile="${D}{outimpFile}.a"
51286 arcFile2="${D}{outimpFile}.lib"
51287
51288 #create ${D}dllFile as something matching 8.3 restrictions,
51289 if [ -z ${D}renameScript ] ; then
51290     dllFile="${D}outFile"
51291 else
51292     dllFile=\`${D}renameScript ${D}outimpFile\`
51293 fi
51294
51295 if [ ${D}do_backup -ne 0 ] ; then
51296     if [ -f ${D}arcFile ] ; then
51297         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51298     fi
51299     if [ -f ${D}arcFile2 ] ; then
51300         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51301     fi
51302 fi
51303
51304 # Extract public symbols from all the object files.
51305 tmpdefFile=${D}{defFile}_%
51306 rm -f ${D}tmpdefFile
51307 for file in ${D}inputFiles ; do
51308     case ${D}file in
51309     *!)
51310         ;;
51311     *)
51312         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51313         ;;
51314     esac
51315 done
51316
51317 # Create the def file.
51318 rm -f ${D}defFile
51319 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51320 dllFile="${D}{dllFile}.dll"
51321 if [ ! -z ${D}description ]; then
51322     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51323 fi
51324 echo "EXPORTS" >> ${D}defFile
51325
51326 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51327 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51328
51329 # Checks if the export is ok or not.
51330 for word in ${D}exclude_symbols; do
51331     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51332     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51333 done
51334
51335
51336 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51337     sed "=" < ${D}tmpdefFile | \\
51338     sed '
51339       N
51340       : loop
51341       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51342       t loop
51343     ' > ${D}{tmpdefFile}%
51344     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51345 else
51346     rm -f ${D}{tmpdefFile}%
51347 fi
51348 cat ${D}tmpdefFile >> ${D}defFile
51349 rm -f ${D}tmpdefFile
51350
51351 # Do linking, create implib, and apply lxlite.
51352 gccCmdl="";
51353 for file in ${D}inputFiles ; do
51354     case ${D}file in
51355     *!)
51356         ;;
51357     *)
51358         gccCmdl="${D}gccCmdl ${D}file"
51359         ;;
51360     esac
51361 done
51362 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51363 touch "${D}{outFile}.dll"
51364
51365 doCommand "emximp -o ${D}arcFile ${D}defFile"
51366 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51367     add_flags="";
51368     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51369         add_flags="-ynd"
51370     fi
51371     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51372 fi
51373 doCommand "emxomf -s -l ${D}arcFile"
51374
51375 # Successful exit.
51376 CleanUp 1
51377 exit 0
51378 EOF
51379
51380         chmod +x dllar.sh
51381       ;;
51382
51383       powerpc-apple-macos* | \
51384       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51385       *-*-mirbsd* | \
51386       *-*-sunos4* | \
51387       *-*-osf* | \
51388       *-*-dgux5* | \
51389       *-*-sysv5* | \
51390       *-pc-msdosdjgpp )
51391               ;;
51392
51393       *)
51394         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51395 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51396    { (exit 1); exit 1; }; }
51397     esac
51398
51399     if test "x$PIC_FLAG" != "x" ; then
51400         PIC_FLAG="$PIC_FLAG -DPIC"
51401     fi
51402
51403     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51404         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51405     fi
51406     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51407         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51408     fi
51409
51410
51411
51412
51413
51414
51415
51416
51417
51418     USE_SOVERSION=0
51419     USE_SOVERLINUX=0
51420     USE_SOVERSOLARIS=0
51421     USE_SOVERCYGWIN=0
51422     USE_SOTWOSYMLINKS=0
51423     USE_MACVERSION=0
51424     SONAME_FLAG=
51425
51426     case "${BAKEFILE_HOST}" in
51427       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51428       *-*-k*bsd*-gnu | *-*-mirbsd* )
51429         if test "x$SUNCXX" = "xyes"; then
51430             SONAME_FLAG="-h "
51431         else
51432             SONAME_FLAG="-Wl,-soname,"
51433         fi
51434         USE_SOVERSION=1
51435         USE_SOVERLINUX=1
51436         USE_SOTWOSYMLINKS=1
51437       ;;
51438
51439       *-*-solaris2* )
51440         SONAME_FLAG="-h "
51441         USE_SOVERSION=1
51442         USE_SOVERSOLARIS=1
51443       ;;
51444
51445       *-*-darwin* )
51446         USE_MACVERSION=1
51447         USE_SOVERSION=1
51448         USE_SOTWOSYMLINKS=1
51449       ;;
51450
51451       *-*-cygwin* )
51452         USE_SOVERSION=1
51453         USE_SOVERCYGWIN=1
51454       ;;
51455     esac
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466     # Check whether --enable-dependency-tracking was given.
51467 if test "${enable_dependency_tracking+set}" = set; then
51468   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51469 fi
51470
51471
51472     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51473 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51474
51475     BK_DEPS=""
51476     if test "x$bk_use_trackdeps" = "xno" ; then
51477         DEPS_TRACKING=0
51478         { echo "$as_me:$LINENO: result: disabled" >&5
51479 echo "${ECHO_T}disabled" >&6; }
51480     else
51481         DEPS_TRACKING=1
51482
51483         if test "x$GCC" = "xyes"; then
51484             DEPSMODE=gcc
51485             case "${BAKEFILE_HOST}" in
51486                 *-*-darwin* )
51487                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51488                 ;;
51489                 * )
51490                     DEPSFLAG="-MMD"
51491                 ;;
51492             esac
51493             { echo "$as_me:$LINENO: result: gcc" >&5
51494 echo "${ECHO_T}gcc" >&6; }
51495         elif test "x$MWCC" = "xyes"; then
51496             DEPSMODE=mwcc
51497             DEPSFLAG="-MM"
51498             { echo "$as_me:$LINENO: result: mwcc" >&5
51499 echo "${ECHO_T}mwcc" >&6; }
51500         elif test "x$SUNCC" = "xyes"; then
51501             DEPSMODE=unixcc
51502             DEPSFLAG="-xM1"
51503             { echo "$as_me:$LINENO: result: Sun cc" >&5
51504 echo "${ECHO_T}Sun cc" >&6; }
51505         elif test "x$SGICC" = "xyes"; then
51506             DEPSMODE=unixcc
51507             DEPSFLAG="-M"
51508             { echo "$as_me:$LINENO: result: SGI cc" >&5
51509 echo "${ECHO_T}SGI cc" >&6; }
51510         elif test "x$HPCC" = "xyes"; then
51511             DEPSMODE=unixcc
51512             DEPSFLAG="+make"
51513             { echo "$as_me:$LINENO: result: HP cc" >&5
51514 echo "${ECHO_T}HP cc" >&6; }
51515         elif test "x$COMPAQCC" = "xyes"; then
51516             DEPSMODE=gcc
51517             DEPSFLAG="-MD"
51518             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51519 echo "${ECHO_T}Compaq cc" >&6; }
51520         else
51521             DEPS_TRACKING=0
51522             { echo "$as_me:$LINENO: result: none" >&5
51523 echo "${ECHO_T}none" >&6; }
51524         fi
51525
51526         if test $DEPS_TRACKING = 1 ; then
51527
51528 D='$'
51529 cat <<EOF >bk-deps
51530 #!/bin/sh
51531
51532 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51533 # script. It is used to track C/C++ files dependencies in portable way.
51534 #
51535 # Permission is given to use this file in any way.
51536
51537 DEPSMODE=${DEPSMODE}
51538 DEPSFLAG="${DEPSFLAG}"
51539 DEPSDIRBASE=.deps
51540
51541 if test ${D}DEPSMODE = gcc ; then
51542     ${D}* ${D}{DEPSFLAG}
51543     status=${D}?
51544
51545     # determine location of created files:
51546     while test ${D}# -gt 0; do
51547         case "${D}1" in
51548             -o )
51549                 shift
51550                 objfile=${D}1
51551             ;;
51552             -* )
51553             ;;
51554             * )
51555                 srcfile=${D}1
51556             ;;
51557         esac
51558         shift
51559     done
51560     objfilebase=\`basename ${D}objfile\`
51561     builddir=\`dirname ${D}objfile\`
51562     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51563     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51564     depsdir=${D}builddir/${D}DEPSDIRBASE
51565     mkdir -p ${D}depsdir
51566
51567     # if the compiler failed, we're done:
51568     if test ${D}{status} != 0 ; then
51569         rm -f ${D}depfile
51570         exit ${D}{status}
51571     fi
51572
51573     # move created file to the location we want it in:
51574     if test -f ${D}depfile ; then
51575         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51576         rm -f ${D}depfile
51577     else
51578         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51579         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51580         if test ! -f ${D}depfile ; then
51581             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51582             depfile="${D}objfile.d"
51583         fi
51584         if test -f ${D}depfile ; then
51585             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51586             rm -f ${D}depfile
51587         fi
51588     fi
51589     exit 0
51590
51591 elif test ${D}DEPSMODE = mwcc ; then
51592     ${D}* || exit ${D}?
51593     # Run mwcc again with -MM and redirect into the dep file we want
51594     # NOTE: We can't use shift here because we need ${D}* to be valid
51595     prevarg=
51596     for arg in ${D}* ; do
51597         if test "${D}prevarg" = "-o"; then
51598             objfile=${D}arg
51599         else
51600             case "${D}arg" in
51601                 -* )
51602                 ;;
51603                 * )
51604                     srcfile=${D}arg
51605                 ;;
51606             esac
51607         fi
51608         prevarg="${D}arg"
51609     done
51610
51611     objfilebase=\`basename ${D}objfile\`
51612     builddir=\`dirname ${D}objfile\`
51613     depsdir=${D}builddir/${D}DEPSDIRBASE
51614     mkdir -p ${D}depsdir
51615
51616     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51617     exit 0
51618
51619 elif test ${D}DEPSMODE = unixcc; then
51620     ${D}* || exit ${D}?
51621     # Run compiler again with deps flag and redirect into the dep file.
51622     # It doesn't work if the '-o FILE' option is used, but without it the
51623     # dependency file will contain the wrong name for the object. So it is
51624     # removed from the command line, and the dep file is fixed with sed.
51625     cmd=""
51626     while test ${D}# -gt 0; do
51627         case "${D}1" in
51628             -o )
51629                 shift
51630                 objfile=${D}1
51631             ;;
51632             * )
51633                 eval arg${D}#=\\${D}1
51634                 cmd="${D}cmd \\${D}arg${D}#"
51635             ;;
51636         esac
51637         shift
51638     done
51639
51640     objfilebase=\`basename ${D}objfile\`
51641     builddir=\`dirname ${D}objfile\`
51642     depsdir=${D}builddir/${D}DEPSDIRBASE
51643     mkdir -p ${D}depsdir
51644
51645     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51646     exit 0
51647
51648 else
51649     ${D}*
51650     exit ${D}?
51651 fi
51652 EOF
51653
51654             chmod +x bk-deps
51655                                     BK_DEPS="`pwd`/bk-deps"
51656         fi
51657     fi
51658
51659
51660
51661
51662
51663     case ${BAKEFILE_HOST} in
51664         *-*-cygwin* | *-*-mingw32* )
51665                         if test -n "$ac_tool_prefix"; then
51666   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51667 set dummy ${ac_tool_prefix}windres; ac_word=$2
51668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51670 if test "${ac_cv_prog_WINDRES+set}" = set; then
51671   echo $ECHO_N "(cached) $ECHO_C" >&6
51672 else
51673   if test -n "$WINDRES"; then
51674   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51675 else
51676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51677 for as_dir in $PATH
51678 do
51679   IFS=$as_save_IFS
51680   test -z "$as_dir" && as_dir=.
51681   for ac_exec_ext in '' $ac_executable_extensions; do
51682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51683     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51685     break 2
51686   fi
51687 done
51688 done
51689 IFS=$as_save_IFS
51690
51691 fi
51692 fi
51693 WINDRES=$ac_cv_prog_WINDRES
51694 if test -n "$WINDRES"; then
51695   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51696 echo "${ECHO_T}$WINDRES" >&6; }
51697 else
51698   { echo "$as_me:$LINENO: result: no" >&5
51699 echo "${ECHO_T}no" >&6; }
51700 fi
51701
51702
51703 fi
51704 if test -z "$ac_cv_prog_WINDRES"; then
51705   ac_ct_WINDRES=$WINDRES
51706   # Extract the first word of "windres", so it can be a program name with args.
51707 set dummy windres; ac_word=$2
51708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51710 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51711   echo $ECHO_N "(cached) $ECHO_C" >&6
51712 else
51713   if test -n "$ac_ct_WINDRES"; then
51714   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51715 else
51716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51717 for as_dir in $PATH
51718 do
51719   IFS=$as_save_IFS
51720   test -z "$as_dir" && as_dir=.
51721   for ac_exec_ext in '' $ac_executable_extensions; do
51722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51723     ac_cv_prog_ac_ct_WINDRES="windres"
51724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51725     break 2
51726   fi
51727 done
51728 done
51729 IFS=$as_save_IFS
51730
51731 fi
51732 fi
51733 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51734 if test -n "$ac_ct_WINDRES"; then
51735   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51736 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51737 else
51738   { echo "$as_me:$LINENO: result: no" >&5
51739 echo "${ECHO_T}no" >&6; }
51740 fi
51741
51742   if test "x$ac_ct_WINDRES" = x; then
51743     WINDRES=""
51744   else
51745     case $cross_compiling:$ac_tool_warned in
51746 yes:)
51747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51748 whose name does not start with the host triplet.  If you think this
51749 configuration is useful to you, please write to autoconf@gnu.org." >&5
51750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51751 whose name does not start with the host triplet.  If you think this
51752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51753 ac_tool_warned=yes ;;
51754 esac
51755     WINDRES=$ac_ct_WINDRES
51756   fi
51757 else
51758   WINDRES="$ac_cv_prog_WINDRES"
51759 fi
51760
51761          ;;
51762
51763       *-*-darwin* | powerpc-apple-macos* )
51764             # Extract the first word of "Rez", so it can be a program name with args.
51765 set dummy Rez; ac_word=$2
51766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51768 if test "${ac_cv_prog_REZ+set}" = set; then
51769   echo $ECHO_N "(cached) $ECHO_C" >&6
51770 else
51771   if test -n "$REZ"; then
51772   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51773 else
51774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51775 for as_dir in $PATH
51776 do
51777   IFS=$as_save_IFS
51778   test -z "$as_dir" && as_dir=.
51779   for ac_exec_ext in '' $ac_executable_extensions; do
51780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51781     ac_cv_prog_REZ="Rez"
51782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51783     break 2
51784   fi
51785 done
51786 done
51787 IFS=$as_save_IFS
51788
51789   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51790 fi
51791 fi
51792 REZ=$ac_cv_prog_REZ
51793 if test -n "$REZ"; then
51794   { echo "$as_me:$LINENO: result: $REZ" >&5
51795 echo "${ECHO_T}$REZ" >&6; }
51796 else
51797   { echo "$as_me:$LINENO: result: no" >&5
51798 echo "${ECHO_T}no" >&6; }
51799 fi
51800
51801
51802             # Extract the first word of "SetFile", so it can be a program name with args.
51803 set dummy SetFile; ac_word=$2
51804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51806 if test "${ac_cv_prog_SETFILE+set}" = set; then
51807   echo $ECHO_N "(cached) $ECHO_C" >&6
51808 else
51809   if test -n "$SETFILE"; then
51810   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51811 else
51812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51813 for as_dir in $PATH
51814 do
51815   IFS=$as_save_IFS
51816   test -z "$as_dir" && as_dir=.
51817   for ac_exec_ext in '' $ac_executable_extensions; do
51818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51819     ac_cv_prog_SETFILE="SetFile"
51820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51821     break 2
51822   fi
51823 done
51824 done
51825 IFS=$as_save_IFS
51826
51827   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51828 fi
51829 fi
51830 SETFILE=$ac_cv_prog_SETFILE
51831 if test -n "$SETFILE"; then
51832   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51833 echo "${ECHO_T}$SETFILE" >&6; }
51834 else
51835   { echo "$as_me:$LINENO: result: no" >&5
51836 echo "${ECHO_T}no" >&6; }
51837 fi
51838
51839
51840         ;;
51841     esac
51842
51843
51844
51845
51846
51847
51848
51849
51850
51851     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51852
51853
51854 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51855
51856
51857
51858     # Check whether --enable-precomp-headers was given.
51859 if test "${enable_precomp_headers+set}" = set; then
51860   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51861 fi
51862
51863
51864     GCC_PCH=0
51865     ICC_PCH=0
51866     USE_PCH=0
51867     BK_MAKE_PCH=""
51868
51869     case ${BAKEFILE_HOST} in
51870         *-*-cygwin* )
51871                                                 bk_use_pch="no"
51872             ;;
51873     esac
51874
51875     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51876         if test "x$GCC" = "xyes"; then
51877                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51878 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51879             cat >conftest.$ac_ext <<_ACEOF
51880 /* confdefs.h.  */
51881 _ACEOF
51882 cat confdefs.h >>conftest.$ac_ext
51883 cat >>conftest.$ac_ext <<_ACEOF
51884 /* end confdefs.h.  */
51885
51886 int
51887 main ()
51888 {
51889
51890                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51891                         There is no PCH support
51892                     #endif
51893                     #if (__GNUC__ < 3)
51894                         There is no PCH support
51895                     #endif
51896                     #if (__GNUC__ == 3) && \
51897                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51898                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51899                        ( defined(__INTEL_COMPILER) )
51900                         There is no PCH support
51901                     #endif
51902
51903   ;
51904   return 0;
51905 }
51906 _ACEOF
51907 rm -f conftest.$ac_objext
51908 if { (ac_try="$ac_compile"
51909 case "(($ac_try" in
51910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51911   *) ac_try_echo=$ac_try;;
51912 esac
51913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51914   (eval "$ac_compile") 2>conftest.er1
51915   ac_status=$?
51916   grep -v '^ *+' conftest.er1 >conftest.err
51917   rm -f conftest.er1
51918   cat conftest.err >&5
51919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51920   (exit $ac_status); } && {
51921          test -z "$ac_c_werror_flag" ||
51922          test ! -s conftest.err
51923        } && test -s conftest.$ac_objext; then
51924
51925                     { echo "$as_me:$LINENO: result: yes" >&5
51926 echo "${ECHO_T}yes" >&6; }
51927                     GCC_PCH=1
51928
51929 else
51930   echo "$as_me: failed program was:" >&5
51931 sed 's/^/| /' conftest.$ac_ext >&5
51932
51933
51934                     if test "$INTELCXX8" = "yes"; then
51935                         { echo "$as_me:$LINENO: result: yes" >&5
51936 echo "${ECHO_T}yes" >&6; }
51937                         ICC_PCH=1
51938                         if test "$INTELCXX10" = "yes"; then
51939                             ICC_PCH_CREATE_SWITCH="-pch-create"
51940                             ICC_PCH_USE_SWITCH="-pch-use"
51941                         else
51942                             ICC_PCH_CREATE_SWITCH="-create-pch"
51943                             ICC_PCH_USE_SWITCH="-use-pch"
51944                         fi
51945                     else
51946                         { echo "$as_me:$LINENO: result: no" >&5
51947 echo "${ECHO_T}no" >&6; }
51948                     fi
51949
51950 fi
51951
51952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51953             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51954                 USE_PCH=1
51955
51956 D='$'
51957 cat <<EOF >bk-make-pch
51958 #!/bin/sh
51959
51960 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51961 # script. It is used to generated precompiled headers.
51962 #
51963 # Permission is given to use this file in any way.
51964
51965 outfile="${D}{1}"
51966 header="${D}{2}"
51967 shift
51968 shift
51969
51970 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51971
51972 compiler=""
51973 headerfile=""
51974
51975 while test ${D}{#} -gt 0; do
51976     add_to_cmdline=1
51977     case "${D}{1}" in
51978         -I* )
51979             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51980             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51981                 headerfile="${D}{incdir}/${D}{header}"
51982             fi
51983         ;;
51984         -use-pch|-use_pch|-pch-use )
51985             shift
51986             add_to_cmdline=0
51987         ;;
51988     esac
51989     if test ${D}add_to_cmdline = 1 ; then
51990         compiler="${D}{compiler} ${D}{1}"
51991     fi
51992     shift
51993 done
51994
51995 if test "x${D}{headerfile}" = "x" ; then
51996     echo "error: can't find header ${D}{header} in include paths" >&2
51997 else
51998     if test -f ${D}{outfile} ; then
51999         rm -f ${D}{outfile}
52000     else
52001         mkdir -p \`dirname ${D}{outfile}\`
52002     fi
52003     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52004     mkdir -p ${D}{builddir}/.deps
52005     if test "x${GCC_PCH}" = "x1" ; then
52006         # can do this because gcc is >= 3.4:
52007         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52008     elif test "x${ICC_PCH}" = "x1" ; then
52009         filename=pch_gen-${D}${D}
52010         file=${D}{filename}.c
52011         dfile=${D}{filename}.d
52012         cat > ${D}file <<EOT
52013 #include "${D}header"
52014 EOT
52015         # using -MF icc complains about differing command lines in creation/use
52016         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
52017           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52018           rm -f ${D}file ${D}dfile ${D}{filename}.o
52019     fi
52020     exit ${D}{?}
52021 fi
52022 EOF
52023
52024                 chmod +x bk-make-pch
52025                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52026             fi
52027         fi
52028     fi
52029
52030
52031
52032
52033
52034
52035
52036     COND_BUILD_DEBUG="#"
52037     if test "x$BUILD" = "xdebug" ; then
52038         COND_BUILD_DEBUG=""
52039     fi
52040
52041     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52042     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52043         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52044     fi
52045
52046     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52047     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52048         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52049     fi
52050
52051     COND_BUILD_DEBUG_UNICODE_0="#"
52052     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52053         COND_BUILD_DEBUG_UNICODE_0=""
52054     fi
52055
52056     COND_BUILD_DEBUG_UNICODE_1="#"
52057     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52058         COND_BUILD_DEBUG_UNICODE_1=""
52059     fi
52060
52061     COND_BUILD_RELEASE="#"
52062     if test "x$BUILD" = "xrelease" ; then
52063         COND_BUILD_RELEASE=""
52064     fi
52065
52066     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52067     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52068         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52069     fi
52070
52071     COND_BUILD_RELEASE_UNICODE_0="#"
52072     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52073         COND_BUILD_RELEASE_UNICODE_0=""
52074     fi
52075
52076     COND_BUILD_RELEASE_UNICODE_1="#"
52077     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52078         COND_BUILD_RELEASE_UNICODE_1=""
52079     fi
52080
52081     COND_BUILD_debug="#"
52082     if test "x$BUILD" = "xdebug" ; then
52083         COND_BUILD_debug=""
52084     fi
52085
52086     COND_BUILD_debug_DEBUG_FLAG_default="#"
52087     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52088         COND_BUILD_debug_DEBUG_FLAG_default=""
52089     fi
52090
52091     COND_BUILD_debug_DEBUG_INFO_default="#"
52092     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52093         COND_BUILD_debug_DEBUG_INFO_default=""
52094     fi
52095
52096     COND_BUILD_debug_UNICODE_0="#"
52097     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52098         COND_BUILD_debug_UNICODE_0=""
52099     fi
52100
52101     COND_BUILD_debug_UNICODE_1="#"
52102     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52103         COND_BUILD_debug_UNICODE_1=""
52104     fi
52105
52106     COND_BUILD_release="#"
52107     if test "x$BUILD" = "xrelease" ; then
52108         COND_BUILD_release=""
52109     fi
52110
52111     COND_BUILD_release_DEBUG_INFO_default="#"
52112     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52113         COND_BUILD_release_DEBUG_INFO_default=""
52114     fi
52115
52116     COND_BUILD_release_UNICODE_0="#"
52117     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52118         COND_BUILD_release_UNICODE_0=""
52119     fi
52120
52121     COND_BUILD_release_UNICODE_1="#"
52122     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52123         COND_BUILD_release_UNICODE_1=""
52124     fi
52125
52126     COND_DEBUG_FLAG_0="#"
52127     if test "x$DEBUG_FLAG" = "x0" ; then
52128         COND_DEBUG_FLAG_0=""
52129     fi
52130
52131     COND_DEBUG_FLAG_1="#"
52132     if test "x$DEBUG_FLAG" = "x1" ; then
52133         COND_DEBUG_FLAG_1=""
52134     fi
52135
52136     COND_DEBUG_INFO_0="#"
52137     if test "x$DEBUG_INFO" = "x0" ; then
52138         COND_DEBUG_INFO_0=""
52139     fi
52140
52141     COND_DEBUG_INFO_1="#"
52142     if test "x$DEBUG_INFO" = "x1" ; then
52143         COND_DEBUG_INFO_1=""
52144     fi
52145
52146     COND_DEPS_TRACKING_0="#"
52147     if test "x$DEPS_TRACKING" = "x0" ; then
52148         COND_DEPS_TRACKING_0=""
52149     fi
52150
52151     COND_DEPS_TRACKING_1="#"
52152     if test "x$DEPS_TRACKING" = "x1" ; then
52153         COND_DEPS_TRACKING_1=""
52154     fi
52155
52156     COND_GCC_PCH_1="#"
52157     if test "x$GCC_PCH" = "x1" ; then
52158         COND_GCC_PCH_1=""
52159     fi
52160
52161     COND_ICC_PCH_1="#"
52162     if test "x$ICC_PCH" = "x1" ; then
52163         COND_ICC_PCH_1=""
52164     fi
52165
52166     COND_MONOLITHIC_0="#"
52167     if test "x$MONOLITHIC" = "x0" ; then
52168         COND_MONOLITHIC_0=""
52169     fi
52170
52171     COND_MONOLITHIC_0_SHARED_0="#"
52172     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52173         COND_MONOLITHIC_0_SHARED_0=""
52174     fi
52175
52176     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52177     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52178         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52179     fi
52180
52181     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52182     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52183         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52184     fi
52185
52186     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52187     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52188         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52189     fi
52190
52191     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52192     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52193         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52194     fi
52195
52196     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52197     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52198         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52199     fi
52200
52201     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1="#"
52202     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEB" = "x1" ; then
52203         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1=""
52204     fi
52205
52206     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
52207     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52208         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
52209     fi
52210
52211     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
52212     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52213         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
52214     fi
52215
52216     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52217     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52218         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52219     fi
52220
52221     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52222     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52223         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52224     fi
52225
52226     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52227     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52228         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52229     fi
52230
52231     COND_MONOLITHIC_0_SHARED_1="#"
52232     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52233         COND_MONOLITHIC_0_SHARED_1=""
52234     fi
52235
52236     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52237     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52238         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52239     fi
52240
52241     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52242     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52243         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52244     fi
52245
52246     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52247     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52248         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52249     fi
52250
52251     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52252     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52253         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52254     fi
52255
52256     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52257     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52258         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52259     fi
52260
52261     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1="#"
52262     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEB" = "x1" ; then
52263         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1=""
52264     fi
52265
52266     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
52267     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
52268         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
52269     fi
52270
52271     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
52272     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
52273         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
52274     fi
52275
52276     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52277     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52278         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52279     fi
52280
52281     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52282     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52283         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52284     fi
52285
52286     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52287     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52288         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52289     fi
52290
52291     COND_MONOLITHIC_0_USE_AUI_1="#"
52292     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52293         COND_MONOLITHIC_0_USE_AUI_1=""
52294     fi
52295
52296     COND_MONOLITHIC_0_USE_GUI_1="#"
52297     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52298         COND_MONOLITHIC_0_USE_GUI_1=""
52299     fi
52300
52301     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52302     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52303         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52304     fi
52305
52306     COND_MONOLITHIC_0_USE_HTML_1="#"
52307     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52308         COND_MONOLITHIC_0_USE_HTML_1=""
52309     fi
52310
52311     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52312     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52313         COND_MONOLITHIC_0_USE_MEDIA_1=""
52314     fi
52315
52316     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
52317     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52318         COND_MONOLITHIC_0_USE_PROPGRID_1=""
52319     fi
52320
52321     COND_MONOLITHIC_0_USE_QA_1="#"
52322     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52323         COND_MONOLITHIC_0_USE_QA_1=""
52324     fi
52325
52326     COND_MONOLITHIC_0_USE_RIBBON_1="#"
52327     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52328         COND_MONOLITHIC_0_USE_RIBBON_1=""
52329     fi
52330
52331     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52332     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52333         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52334     fi
52335
52336     COND_MONOLITHIC_0_USE_STC_1="#"
52337     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52338         COND_MONOLITHIC_0_USE_STC_1=""
52339     fi
52340
52341     COND_MONOLITHIC_0_USE_WEB_1="#"
52342     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEB" = "x1" ; then
52343         COND_MONOLITHIC_0_USE_WEB_1=""
52344     fi
52345
52346     COND_MONOLITHIC_0_USE_XRC_1="#"
52347     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52348         COND_MONOLITHIC_0_USE_XRC_1=""
52349     fi
52350
52351     COND_MONOLITHIC_1="#"
52352     if test "x$MONOLITHIC" = "x1" ; then
52353         COND_MONOLITHIC_1=""
52354     fi
52355
52356     COND_MONOLITHIC_1_SHARED_0="#"
52357     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52358         COND_MONOLITHIC_1_SHARED_0=""
52359     fi
52360
52361     COND_MONOLITHIC_1_SHARED_1="#"
52362     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52363         COND_MONOLITHIC_1_SHARED_1=""
52364     fi
52365
52366     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52367     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52368         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52369     fi
52370
52371     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52372     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52373         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52374     fi
52375
52376     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52377     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52378         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52379     fi
52380
52381     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52382     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52383         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52384     fi
52385
52386     COND_PLATFORM_MACOSX_1="#"
52387     if test "x$PLATFORM_MACOSX" = "x1" ; then
52388         COND_PLATFORM_MACOSX_1=""
52389     fi
52390
52391     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52392     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52393         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52394     fi
52395
52396     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52397     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52398         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52399     fi
52400
52401     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52402     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52403         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52404     fi
52405
52406     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52407     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52408         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52409     fi
52410
52411     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52412     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52413         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52414     fi
52415
52416     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52417     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52418         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52419     fi
52420
52421     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52422     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52423         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52424     fi
52425
52426     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52427     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52428         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52429     fi
52430
52431     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52432     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52433         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52434     fi
52435
52436     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52437     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52438         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52439     fi
52440
52441     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52442     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52443         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52444     fi
52445
52446     COND_PLATFORM_MACOS_1="#"
52447     if test "x$PLATFORM_MACOS" = "x1" ; then
52448         COND_PLATFORM_MACOS_1=""
52449     fi
52450
52451     COND_PLATFORM_MAC_0="#"
52452     if test "x$PLATFORM_MAC" = "x0" ; then
52453         COND_PLATFORM_MAC_0=""
52454     fi
52455
52456     COND_PLATFORM_MAC_1="#"
52457     if test "x$PLATFORM_MAC" = "x1" ; then
52458         COND_PLATFORM_MAC_1=""
52459     fi
52460
52461     COND_PLATFORM_MSDOS_0="#"
52462     if test "x$PLATFORM_MSDOS" = "x0" ; then
52463         COND_PLATFORM_MSDOS_0=""
52464     fi
52465
52466     COND_PLATFORM_MSDOS_1="#"
52467     if test "x$PLATFORM_MSDOS" = "x1" ; then
52468         COND_PLATFORM_MSDOS_1=""
52469     fi
52470
52471     COND_PLATFORM_OS2_1="#"
52472     if test "x$PLATFORM_OS2" = "x1" ; then
52473         COND_PLATFORM_OS2_1=""
52474     fi
52475
52476     COND_PLATFORM_UNIX_0="#"
52477     if test "x$PLATFORM_UNIX" = "x0" ; then
52478         COND_PLATFORM_UNIX_0=""
52479     fi
52480
52481     COND_PLATFORM_UNIX_1="#"
52482     if test "x$PLATFORM_UNIX" = "x1" ; then
52483         COND_PLATFORM_UNIX_1=""
52484     fi
52485
52486     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52487     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52488         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52489     fi
52490
52491     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52492     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52493         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52494     fi
52495
52496     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52497     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52498         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52499     fi
52500
52501     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52502     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52503         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52504     fi
52505
52506     COND_PLATFORM_WIN32_0="#"
52507     if test "x$PLATFORM_WIN32" = "x0" ; then
52508         COND_PLATFORM_WIN32_0=""
52509     fi
52510
52511     COND_PLATFORM_WIN32_1="#"
52512     if test "x$PLATFORM_WIN32" = "x1" ; then
52513         COND_PLATFORM_WIN32_1=""
52514     fi
52515
52516     COND_PLATFORM_WIN32_1_SHARED_0="#"
52517     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52518         COND_PLATFORM_WIN32_1_SHARED_0=""
52519     fi
52520
52521     COND_SHARED_0="#"
52522     if test "x$SHARED" = "x0" ; then
52523         COND_SHARED_0=""
52524     fi
52525
52526     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52527     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52528         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52529     fi
52530
52531     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52532     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52533         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52534     fi
52535
52536     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52537     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52538         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52539     fi
52540
52541     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52542     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52543         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52544     fi
52545
52546     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52547     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52548         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52549     fi
52550
52551     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52552     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52553         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52554     fi
52555
52556     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52557     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52558         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52559     fi
52560
52561     COND_SHARED_0_USE_STC_1="#"
52562     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52563         COND_SHARED_0_USE_STC_1=""
52564     fi
52565
52566     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52567     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52568         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52569     fi
52570
52571     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52572     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52573         COND_SHARED_0_wxUSE_REGEX_builtin=""
52574     fi
52575
52576     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52577     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52578         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52579     fi
52580
52581     COND_SHARED_1="#"
52582     if test "x$SHARED" = "x1" ; then
52583         COND_SHARED_1=""
52584     fi
52585
52586     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52587     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52588         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52589     fi
52590
52591     COND_TOOLKIT_="#"
52592     if test "x$TOOLKIT" = "x" ; then
52593         COND_TOOLKIT_=""
52594     fi
52595
52596     COND_TOOLKIT_COCOA="#"
52597     if test "x$TOOLKIT" = "xCOCOA" ; then
52598         COND_TOOLKIT_COCOA=""
52599     fi
52600
52601     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52602     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52603         COND_TOOLKIT_COCOA_USE_GUI_1=""
52604     fi
52605
52606     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52607     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52608         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52609     fi
52610
52611     COND_TOOLKIT_DFB="#"
52612     if test "x$TOOLKIT" = "xDFB" ; then
52613         COND_TOOLKIT_DFB=""
52614     fi
52615
52616     COND_TOOLKIT_DFB_USE_GUI_1="#"
52617     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52618         COND_TOOLKIT_DFB_USE_GUI_1=""
52619     fi
52620
52621     COND_TOOLKIT_GTK="#"
52622     if test "x$TOOLKIT" = "xGTK" ; then
52623         COND_TOOLKIT_GTK=""
52624     fi
52625
52626     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52627     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52628         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52629     fi
52630
52631     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52632     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52633         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52634     fi
52635
52636     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52637     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52638         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52639     fi
52640
52641     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52642     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52643         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52644     fi
52645
52646     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52647     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52648         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52649     fi
52650
52651     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52652     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52653         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52654     fi
52655
52656     COND_TOOLKIT_GTK_USE_GUI_1="#"
52657     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52658         COND_TOOLKIT_GTK_USE_GUI_1=""
52659     fi
52660
52661     COND_TOOLKIT_MAC="#"
52662     if test "x$TOOLKIT" = "xMAC" ; then
52663         COND_TOOLKIT_MAC=""
52664     fi
52665
52666     COND_TOOLKIT_MGL="#"
52667     if test "x$TOOLKIT" = "xMGL" ; then
52668         COND_TOOLKIT_MGL=""
52669     fi
52670
52671     COND_TOOLKIT_MGL_USE_GUI_1="#"
52672     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52673         COND_TOOLKIT_MGL_USE_GUI_1=""
52674     fi
52675
52676     COND_TOOLKIT_MOTIF="#"
52677     if test "x$TOOLKIT" = "xMOTIF" ; then
52678         COND_TOOLKIT_MOTIF=""
52679     fi
52680
52681     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52682     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52683         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52684     fi
52685
52686     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52687     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52688         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52689     fi
52690
52691     COND_TOOLKIT_MSW="#"
52692     if test "x$TOOLKIT" = "xMSW" ; then
52693         COND_TOOLKIT_MSW=""
52694     fi
52695
52696     COND_TOOLKIT_MSW_USE_GUI_1="#"
52697     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52698         COND_TOOLKIT_MSW_USE_GUI_1=""
52699     fi
52700
52701     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52702     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52703         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52704     fi
52705
52706     COND_TOOLKIT_MSW_WXUNIV_0="#"
52707     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52708         COND_TOOLKIT_MSW_WXUNIV_0=""
52709     fi
52710
52711     COND_TOOLKIT_OSX_CARBON="#"
52712     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52713         COND_TOOLKIT_OSX_CARBON=""
52714     fi
52715
52716     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52717     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52718         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52719     fi
52720
52721     COND_TOOLKIT_OSX_COCOA="#"
52722     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52723         COND_TOOLKIT_OSX_COCOA=""
52724     fi
52725
52726     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52727     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52728         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52729     fi
52730
52731     COND_TOOLKIT_OSX_IPHONE="#"
52732     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52733         COND_TOOLKIT_OSX_IPHONE=""
52734     fi
52735
52736     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52737     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52738         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52739     fi
52740
52741     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52742     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52743         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52744     fi
52745
52746     COND_TOOLKIT_PM="#"
52747     if test "x$TOOLKIT" = "xPM" ; then
52748         COND_TOOLKIT_PM=""
52749     fi
52750
52751     COND_TOOLKIT_PM_USE_GUI_1="#"
52752     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52753         COND_TOOLKIT_PM_USE_GUI_1=""
52754     fi
52755
52756     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52757     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52758         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52759     fi
52760
52761     COND_TOOLKIT_WINCE="#"
52762     if test "x$TOOLKIT" = "xWINCE" ; then
52763         COND_TOOLKIT_WINCE=""
52764     fi
52765
52766     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52767     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52768         COND_TOOLKIT_WINCE_USE_GUI_1=""
52769     fi
52770
52771     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52772     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52773         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52774     fi
52775
52776     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52777     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52778         COND_TOOLKIT_WINCE_WXUNIV_0=""
52779     fi
52780
52781     COND_TOOLKIT_X11="#"
52782     if test "x$TOOLKIT" = "xX11" ; then
52783         COND_TOOLKIT_X11=""
52784     fi
52785
52786     COND_TOOLKIT_X11_USE_GUI_1="#"
52787     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52788         COND_TOOLKIT_X11_USE_GUI_1=""
52789     fi
52790
52791     COND_UNICODE_1="#"
52792     if test "x$UNICODE" = "x1" ; then
52793         COND_UNICODE_1=""
52794     fi
52795
52796     COND_USE_CAIRO_1="#"
52797     if test "x$USE_CAIRO" = "x1" ; then
52798         COND_USE_CAIRO_1=""
52799     fi
52800
52801     COND_USE_EXCEPTIONS_0="#"
52802     if test "x$USE_EXCEPTIONS" = "x0" ; then
52803         COND_USE_EXCEPTIONS_0=""
52804     fi
52805
52806     COND_USE_EXCEPTIONS_1="#"
52807     if test "x$USE_EXCEPTIONS" = "x1" ; then
52808         COND_USE_EXCEPTIONS_1=""
52809     fi
52810
52811     COND_USE_GUI_0="#"
52812     if test "x$USE_GUI" = "x0" ; then
52813         COND_USE_GUI_0=""
52814     fi
52815
52816     COND_USE_GUI_1="#"
52817     if test "x$USE_GUI" = "x1" ; then
52818         COND_USE_GUI_1=""
52819     fi
52820
52821     COND_USE_GUI_1_USE_OPENGL_1="#"
52822     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52823         COND_USE_GUI_1_USE_OPENGL_1=""
52824     fi
52825
52826     COND_USE_GUI_1_WXUNIV_0="#"
52827     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52828         COND_USE_GUI_1_WXUNIV_0=""
52829     fi
52830
52831     COND_USE_GUI_1_WXUNIV_1="#"
52832     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52833         COND_USE_GUI_1_WXUNIV_1=""
52834     fi
52835
52836     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52837     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52838         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52839     fi
52840
52841     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52842     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52843         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52844     fi
52845
52846     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52847     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52848         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52849     fi
52850
52851     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52852     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52853         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52854     fi
52855
52856     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52857     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52858         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52859     fi
52860
52861     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52862     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52863         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52864     fi
52865
52866     COND_USE_OPENGL_1="#"
52867     if test "x$USE_OPENGL" = "x1" ; then
52868         COND_USE_OPENGL_1=""
52869     fi
52870
52871     COND_USE_PCH_1="#"
52872     if test "x$USE_PCH" = "x1" ; then
52873         COND_USE_PCH_1=""
52874     fi
52875
52876     COND_USE_PLUGINS_0="#"
52877     if test "x$USE_PLUGINS" = "x0" ; then
52878         COND_USE_PLUGINS_0=""
52879     fi
52880
52881     COND_USE_RTTI_0="#"
52882     if test "x$USE_RTTI" = "x0" ; then
52883         COND_USE_RTTI_0=""
52884     fi
52885
52886     COND_USE_RTTI_1="#"
52887     if test "x$USE_RTTI" = "x1" ; then
52888         COND_USE_RTTI_1=""
52889     fi
52890
52891     COND_USE_SOTWOSYMLINKS_1="#"
52892     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52893         COND_USE_SOTWOSYMLINKS_1=""
52894     fi
52895
52896     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52897     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52898         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52899     fi
52900
52901     COND_USE_SOVERLINUX_1="#"
52902     if test "x$USE_SOVERLINUX" = "x1" ; then
52903         COND_USE_SOVERLINUX_1=""
52904     fi
52905
52906     COND_USE_SOVERSION_0="#"
52907     if test "x$USE_SOVERSION" = "x0" ; then
52908         COND_USE_SOVERSION_0=""
52909     fi
52910
52911     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52912     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52913         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52914     fi
52915
52916     COND_USE_SOVERSOLARIS_1="#"
52917     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52918         COND_USE_SOVERSOLARIS_1=""
52919     fi
52920
52921     COND_USE_STC_1="#"
52922     if test "x$USE_STC" = "x1" ; then
52923         COND_USE_STC_1=""
52924     fi
52925
52926     COND_USE_THREADS_0="#"
52927     if test "x$USE_THREADS" = "x0" ; then
52928         COND_USE_THREADS_0=""
52929     fi
52930
52931     COND_USE_THREADS_1="#"
52932     if test "x$USE_THREADS" = "x1" ; then
52933         COND_USE_THREADS_1=""
52934     fi
52935
52936     COND_USE_XRC_1="#"
52937     if test "x$USE_XRC" = "x1" ; then
52938         COND_USE_XRC_1=""
52939     fi
52940
52941     COND_WINDOWS_IMPLIB_1="#"
52942     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52943         COND_WINDOWS_IMPLIB_1=""
52944     fi
52945
52946     COND_WITH_PLUGIN_SDL_1="#"
52947     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52948         COND_WITH_PLUGIN_SDL_1=""
52949     fi
52950
52951     COND_WXUNIV_0="#"
52952     if test "x$WXUNIV" = "x0" ; then
52953         COND_WXUNIV_0=""
52954     fi
52955
52956     COND_WXUNIV_1="#"
52957     if test "x$WXUNIV" = "x1" ; then
52958         COND_WXUNIV_1=""
52959     fi
52960
52961     COND_WXUSE_EXPAT_BUILTIN="#"
52962     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52963         COND_WXUSE_EXPAT_BUILTIN=""
52964     fi
52965
52966     COND_WXUSE_LIBJPEG_BUILTIN="#"
52967     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52968         COND_WXUSE_LIBJPEG_BUILTIN=""
52969     fi
52970
52971     COND_WXUSE_LIBPNG_BUILTIN="#"
52972     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52973         COND_WXUSE_LIBPNG_BUILTIN=""
52974     fi
52975
52976     COND_WXUSE_LIBTIFF_BUILTIN="#"
52977     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52978         COND_WXUSE_LIBTIFF_BUILTIN=""
52979     fi
52980
52981     COND_WXUSE_REGEX_BUILTIN="#"
52982     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52983         COND_WXUSE_REGEX_BUILTIN=""
52984     fi
52985
52986     COND_WXUSE_ZLIB_BUILTIN="#"
52987     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52988         COND_WXUSE_ZLIB_BUILTIN=""
52989     fi
52990
52991     COND_wxUSE_EXPAT_builtin="#"
52992     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52993         COND_wxUSE_EXPAT_builtin=""
52994     fi
52995
52996     COND_wxUSE_LIBJPEG_builtin="#"
52997     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52998         COND_wxUSE_LIBJPEG_builtin=""
52999     fi
53000
53001     COND_wxUSE_LIBPNG_builtin="#"
53002     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53003         COND_wxUSE_LIBPNG_builtin=""
53004     fi
53005
53006     COND_wxUSE_LIBTIFF_builtin="#"
53007     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53008         COND_wxUSE_LIBTIFF_builtin=""
53009     fi
53010
53011     COND_wxUSE_REGEX_builtin="#"
53012     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53013         COND_wxUSE_REGEX_builtin=""
53014     fi
53015
53016     COND_wxUSE_ZLIB_builtin="#"
53017     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53018         COND_wxUSE_ZLIB_builtin=""
53019     fi
53020
53021
53022
53023     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53024         { { 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
53025 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;}
53026    { (exit 1); exit 1; }; }
53027     fi
53028
53029     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53030         { { 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
53031 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;}
53032    { (exit 1); exit 1; }; }
53033     fi
53034
53035
53036 case ${INSTALL} in
53037   /* ) # Absolute
53038      ;;
53039   ?:* ) # Drive letter, considered as absolute.
53040      ;;
53041   *)
53042      INSTALL=`pwd`/${INSTALL} ;;
53043 esac
53044
53045 if test "$wxUSE_GUI" = "yes"; then
53046
53047 if test "$wxUSE_MSW" = 1 ; then
53048     if test "x$WINDRES" = "x"; then
53049         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
53050 echo "$as_me: error: Required windres program not found" >&2;}
53051    { (exit 1); exit 1; }; }
53052     fi
53053
53054     RESCOMP="$WINDRES"
53055 fi
53056
53057 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
53058             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
53059     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
53060
53061         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
53062
53063     # Extract the first word of "DeRez", so it can be a program name with args.
53064 set dummy DeRez; ac_word=$2
53065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53067 if test "${ac_cv_prog_DEREZ+set}" = set; then
53068   echo $ECHO_N "(cached) $ECHO_C" >&6
53069 else
53070   if test -n "$DEREZ"; then
53071   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
53072 else
53073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53074 for as_dir in $PATH
53075 do
53076   IFS=$as_save_IFS
53077   test -z "$as_dir" && as_dir=.
53078   for ac_exec_ext in '' $ac_executable_extensions; do
53079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53080     ac_cv_prog_DEREZ="DeRez"
53081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53082     break 2
53083   fi
53084 done
53085 done
53086 IFS=$as_save_IFS
53087
53088   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
53089 fi
53090 fi
53091 DEREZ=$ac_cv_prog_DEREZ
53092 if test -n "$DEREZ"; then
53093   { echo "$as_me:$LINENO: result: $DEREZ" >&5
53094 echo "${ECHO_T}$DEREZ" >&6; }
53095 else
53096   { echo "$as_me:$LINENO: result: no" >&5
53097 echo "${ECHO_T}no" >&6; }
53098 fi
53099
53100
53101
53102     MACSETFILE="\$(SETFILE)"
53103
53104             if test "$wxUSE_OSX_CARBON" = 1; then
53105         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
53106         RESCOMP="$REZ"
53107         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
53108     else
53109         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
53110         RESCOMP="cat /dev/null \| $REZ"
53111         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
53112     fi
53113
53114 else
53115         MACSETFILE="@true"
53116
53117     if test "$wxUSE_PM" = 1; then
53118         RESCOMP="emxbind"
53119         WXCONFIG_RESFLAGS="-ep"
53120
53121                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
53122     else
53123         POSTLINK_COMMAND="@true"
53124     fi
53125 fi
53126
53127 fi
53128
53129
53130 if test $GCC_PCH = 1
53131 then
53132     if test "$wx_cv_gcc_pch_bug" = yes; then
53133         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53134 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53135         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53136 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53137         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53138 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53139     fi
53140
53141     # Our WX_PRECOMP flag does not make sense for any language except C++ because
53142     # the headers that benefit from precompilation are mostly C++ headers.
53143     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53144     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
53145     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53146 fi
53147
53148
53149 if test "$wxUSE_MAC" = 1 ; then
53150     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53151         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53152         mv temp bk-deps
53153         chmod +x bk-deps
53154     fi
53155 fi
53156
53157 if test "$wxUSE_SHARED" = "yes"; then
53158                 case "${host}" in
53159       *-pc-os2_emx | *-pc-os2-emx )
53160         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53161         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53162         cp -p ${srcdir}/src/os2/dllnames.sh .
53163         cp -p ${srcdir}/src/os2/dllar.sh .
53164       ;;
53165     esac
53166 fi
53167 if test "$wxUSE_OMF" = "yes"; then
53168     case "${host}" in
53169       *-pc-os2_emx | *-pc-os2-emx )
53170         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53171         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53172         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53173       ;;
53174     esac
53175 fi
53176
53177 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53178
53179
53180 case "${host}" in
53181     *-*-solaris2* )
53182                         if test "$GCC" = yes; then
53183             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53184             LIBS=`echo $LIBS | sed 's/-mt//'`
53185             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53186         fi
53187         ;;
53188
53189     *-*-linux* )
53190                         if test "x$SUNCXX" = xyes; then
53191             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53192             LIBS=`echo $LIBS | sed 's/-pthread//'`
53193             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53194         fi
53195         ;;
53196 esac
53197
53198 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53199 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53200 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
53201 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
53202
53203 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53204
53205
53206
53207
53208
53209
53210
53211
53212
53213
53214
53215
53216
53217
53218
53219
53220
53221
53222
53223
53224
53225
53226
53227
53228
53229
53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
53241
53242
53243
53244
53245
53246
53247
53248
53249
53250
53251
53252
53253
53254
53255
53256
53257
53258
53259
53260
53261
53262
53263
53264 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53265 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53266 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53267 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53268   echo $ECHO_N "(cached) $ECHO_C" >&6
53269 else
53270   cat >conftest.make <<\_ACEOF
53271 SHELL = /bin/sh
53272 all:
53273         @echo '@@@%%%=$(MAKE)=@@@%%%'
53274 _ACEOF
53275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53276 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53277   *@@@%%%=?*=@@@%%%*)
53278     eval ac_cv_prog_make_${ac_make}_set=yes;;
53279   *)
53280     eval ac_cv_prog_make_${ac_make}_set=no;;
53281 esac
53282 rm -f conftest.make
53283 fi
53284 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53285   { echo "$as_me:$LINENO: result: yes" >&5
53286 echo "${ECHO_T}yes" >&6; }
53287   SET_MAKE=
53288 else
53289   { echo "$as_me:$LINENO: result: no" >&5
53290 echo "${ECHO_T}no" >&6; }
53291   SET_MAKE="MAKE=${MAKE-make}"
53292 fi
53293
53294
53295
53296 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53297
53298
53299 if test "$USE_WIN32" = 1; then
53300     ac_config_commands="$ac_config_commands rcdefs.h"
53301
53302 fi
53303
53304 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53305
53306
53307 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53308
53309
53310 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
53311
53312
53313 if test "$wx_cv_version_script" = "yes"; then
53314     ac_config_files="$ac_config_files version-script"
53315
53316 fi
53317 ac_config_files="$ac_config_files Makefile"
53318
53319
53320 ac_config_commands="$ac_config_commands wx-config"
53321
53322
53323
53324 if test "$wxWITH_SUBDIRS" != "no"; then
53325 if test "$wxUSE_GUI" = "yes"; then
53326     SUBDIRS="samples demos utils"
53327 else
53328             SUBDIRS="samples utils"
53329 fi
53330
53331
53332
53333 # Check whether --with-cppunit-prefix was given.
53334 if test "${with_cppunit_prefix+set}" = set; then
53335   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53336 else
53337   cppunit_config_prefix=""
53338 fi
53339
53340
53341 # Check whether --with-cppunit-exec-prefix was given.
53342 if test "${with_cppunit_exec_prefix+set}" = set; then
53343   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53344 else
53345   cppunit_config_exec_prefix=""
53346 fi
53347
53348
53349   if test x$cppunit_config_exec_prefix != x ; then
53350      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53351      if test x${CPPUNIT_CONFIG+set} != xset ; then
53352         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53353      fi
53354   fi
53355   if test x$cppunit_config_prefix != x ; then
53356      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53357      if test x${CPPUNIT_CONFIG+set} != xset ; then
53358         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53359      fi
53360   fi
53361
53362   # Extract the first word of "cppunit-config", so it can be a program name with args.
53363 set dummy cppunit-config; ac_word=$2
53364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53366 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53367   echo $ECHO_N "(cached) $ECHO_C" >&6
53368 else
53369   case $CPPUNIT_CONFIG in
53370   [\\/]* | ?:[\\/]*)
53371   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53372   ;;
53373   *)
53374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53375 for as_dir in $PATH
53376 do
53377   IFS=$as_save_IFS
53378   test -z "$as_dir" && as_dir=.
53379   for ac_exec_ext in '' $ac_executable_extensions; do
53380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53381     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53383     break 2
53384   fi
53385 done
53386 done
53387 IFS=$as_save_IFS
53388
53389   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53390   ;;
53391 esac
53392 fi
53393 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53394 if test -n "$CPPUNIT_CONFIG"; then
53395   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53396 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53397 else
53398   { echo "$as_me:$LINENO: result: no" >&5
53399 echo "${ECHO_T}no" >&6; }
53400 fi
53401
53402
53403   cppunit_version_min=1.8.0
53404
53405   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53406 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53407   no_cppunit=""
53408   if test "$CPPUNIT_CONFIG" = "no" ; then
53409     { echo "$as_me:$LINENO: result: no" >&5
53410 echo "${ECHO_T}no" >&6; }
53411     no_cppunit=yes
53412   else
53413     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53414     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53415     cppunit_version=`$CPPUNIT_CONFIG --version`
53416
53417     cppunit_major_version=`echo $cppunit_version | \
53418            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53419     cppunit_minor_version=`echo $cppunit_version | \
53420            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53421     cppunit_micro_version=`echo $cppunit_version | \
53422            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53423
53424     cppunit_major_min=`echo $cppunit_version_min | \
53425            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53426     cppunit_minor_min=`echo $cppunit_version_min | \
53427            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53428     cppunit_micro_min=`echo $cppunit_version_min | \
53429            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53430
53431     cppunit_version_proper=`expr \
53432         $cppunit_major_version \> $cppunit_major_min \| \
53433         $cppunit_major_version \= $cppunit_major_min \& \
53434         $cppunit_minor_version \> $cppunit_minor_min \| \
53435         $cppunit_major_version \= $cppunit_major_min \& \
53436         $cppunit_minor_version \= $cppunit_minor_min \& \
53437         $cppunit_micro_version \>= $cppunit_micro_min `
53438
53439     if test "$cppunit_version_proper" = "1" ; then
53440       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53441 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53442     else
53443       { echo "$as_me:$LINENO: result: no" >&5
53444 echo "${ECHO_T}no" >&6; }
53445       no_cppunit=yes
53446     fi
53447   fi
53448
53449   if test "x$no_cppunit" = x ; then
53450      SUBDIRS="$SUBDIRS tests"
53451   else
53452      CPPUNIT_CFLAGS=""
53453      CPPUNIT_LIBS=""
53454      :
53455   fi
53456
53457
53458
53459
53460
53461 for subdir in $SUBDIRS; do
53462     if test -d ${srcdir}/${subdir} ; then
53463         if test "$wxUSE_GUI" = "yes"; then
53464             if test ${subdir} = "samples"; then
53465                                                 makefiles="samples/Makefile.in $makefiles"
53466                 for sample in $SAMPLES_SUBDIRS; do
53467                     if test -d $srcdir/samples/$sample; then
53468                         makefiles="samples/$sample/Makefile.in $makefiles"
53469                     fi
53470                 done
53471             else
53472                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53473                 eval "disabled=\$$disabled_var"
53474                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53475                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53476             fi
53477         else
53478                                     if test ${subdir} = "samples"; then
53479                                                 makefiles="samples/Makefile.in $makefiles"
53480                 for sample in `echo $SAMPLES_SUBDIRS`; do
53481                     if test -d $srcdir/samples/$sample; then
53482                         makefiles="samples/$sample/Makefile.in $makefiles"
53483                     fi
53484                 done
53485             elif test ${subdir} = "utils"; then
53486                 makefiles=""
53487                 for util in ifacecheck ; do
53488                     if test -d $srcdir/utils/$util ; then
53489                         makefiles="utils/$util/src/Makefile.in \
53490                                    $makefiles"
53491                     fi
53492                 done
53493             else
53494                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53495             fi
53496         fi
53497
53498         for mkin in $makefiles ; do
53499             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53500             ac_config_files="$ac_config_files $mk"
53501
53502         done
53503     fi
53504 done
53505 fi
53506 cat >confcache <<\_ACEOF
53507 # This file is a shell script that caches the results of configure
53508 # tests run on this system so they can be shared between configure
53509 # scripts and configure runs, see configure's option --config-cache.
53510 # It is not useful on other systems.  If it contains results you don't
53511 # want to keep, you may remove or edit it.
53512 #
53513 # config.status only pays attention to the cache file if you give it
53514 # the --recheck option to rerun configure.
53515 #
53516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53518 # following values.
53519
53520 _ACEOF
53521
53522 # The following way of writing the cache mishandles newlines in values,
53523 # but we know of no workaround that is simple, portable, and efficient.
53524 # So, we kill variables containing newlines.
53525 # Ultrix sh set writes to stderr and can't be redirected directly,
53526 # and sets the high bit in the cache file unless we assign to the vars.
53527 (
53528   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53529     eval ac_val=\$$ac_var
53530     case $ac_val in #(
53531     *${as_nl}*)
53532       case $ac_var in #(
53533       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53534 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53535       esac
53536       case $ac_var in #(
53537       _ | IFS | as_nl) ;; #(
53538       *) $as_unset $ac_var ;;
53539       esac ;;
53540     esac
53541   done
53542
53543   (set) 2>&1 |
53544     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53545     *${as_nl}ac_space=\ *)
53546       # `set' does not quote correctly, so add quotes (double-quote
53547       # substitution turns \\\\ into \\, and sed turns \\ into \).
53548       sed -n \
53549         "s/'/'\\\\''/g;
53550           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53551       ;; #(
53552     *)
53553       # `set' quotes correctly as required by POSIX, so do not add quotes.
53554       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53555       ;;
53556     esac |
53557     sort
53558 ) |
53559   sed '
53560      /^ac_cv_env_/b end
53561      t clear
53562      :clear
53563      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53564      t end
53565      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53566      :end' >>confcache
53567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53568   if test -w "$cache_file"; then
53569     test "x$cache_file" != "x/dev/null" &&
53570       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53571 echo "$as_me: updating cache $cache_file" >&6;}
53572     cat confcache >$cache_file
53573   else
53574     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53575 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53576   fi
53577 fi
53578 rm -f confcache
53579
53580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53581 # Let make expand exec_prefix.
53582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53583
53584 DEFS=-DHAVE_CONFIG_H
53585
53586 ac_libobjs=
53587 ac_ltlibobjs=
53588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53589   # 1. Remove the extension, and $U if already installed.
53590   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53591   ac_i=`echo "$ac_i" | sed "$ac_script"`
53592   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53593   #    will be set to the directory where LIBOBJS objects are built.
53594   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53595   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53596 done
53597 LIBOBJS=$ac_libobjs
53598
53599 LTLIBOBJS=$ac_ltlibobjs
53600
53601
53602
53603 : ${CONFIG_STATUS=./config.status}
53604 ac_clean_files_save=$ac_clean_files
53605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53608 cat >$CONFIG_STATUS <<_ACEOF
53609 #! $SHELL
53610 # Generated by $as_me.
53611 # Run this file to recreate the current configuration.
53612 # Compiler output produced by configure, useful for debugging
53613 # configure, is in config.log if it exists.
53614
53615 debug=false
53616 ac_cs_recheck=false
53617 ac_cs_silent=false
53618 SHELL=\${CONFIG_SHELL-$SHELL}
53619 _ACEOF
53620
53621 cat >>$CONFIG_STATUS <<\_ACEOF
53622 ## --------------------- ##
53623 ## M4sh Initialization.  ##
53624 ## --------------------- ##
53625
53626 # Be more Bourne compatible
53627 DUALCASE=1; export DUALCASE # for MKS sh
53628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53629   emulate sh
53630   NULLCMD=:
53631   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53632   # is contrary to our usage.  Disable this feature.
53633   alias -g '${1+"$@"}'='"$@"'
53634   setopt NO_GLOB_SUBST
53635 else
53636   case `(set -o) 2>/dev/null` in
53637   *posix*) set -o posix ;;
53638 esac
53639
53640 fi
53641
53642
53643
53644
53645 # PATH needs CR
53646 # Avoid depending upon Character Ranges.
53647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53650 as_cr_digits='0123456789'
53651 as_cr_alnum=$as_cr_Letters$as_cr_digits
53652
53653 # The user is always right.
53654 if test "${PATH_SEPARATOR+set}" != set; then
53655   echo "#! /bin/sh" >conf$$.sh
53656   echo  "exit 0"   >>conf$$.sh
53657   chmod +x conf$$.sh
53658   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53659     PATH_SEPARATOR=';'
53660   else
53661     PATH_SEPARATOR=:
53662   fi
53663   rm -f conf$$.sh
53664 fi
53665
53666 # Support unset when possible.
53667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53668   as_unset=unset
53669 else
53670   as_unset=false
53671 fi
53672
53673
53674 # IFS
53675 # We need space, tab and new line, in precisely that order.  Quoting is
53676 # there to prevent editors from complaining about space-tab.
53677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53678 # splitting by setting IFS to empty value.)
53679 as_nl='
53680 '
53681 IFS=" ""        $as_nl"
53682
53683 # Find who we are.  Look in the path if we contain no directory separator.
53684 case $0 in
53685   *[\\/]* ) as_myself=$0 ;;
53686   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53687 for as_dir in $PATH
53688 do
53689   IFS=$as_save_IFS
53690   test -z "$as_dir" && as_dir=.
53691   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53692 done
53693 IFS=$as_save_IFS
53694
53695      ;;
53696 esac
53697 # We did not find ourselves, most probably we were run as `sh COMMAND'
53698 # in which case we are not to be found in the path.
53699 if test "x$as_myself" = x; then
53700   as_myself=$0
53701 fi
53702 if test ! -f "$as_myself"; then
53703   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53704   { (exit 1); exit 1; }
53705 fi
53706
53707 # Work around bugs in pre-3.0 UWIN ksh.
53708 for as_var in ENV MAIL MAILPATH
53709 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53710 done
53711 PS1='$ '
53712 PS2='> '
53713 PS4='+ '
53714
53715 # NLS nuisances.
53716 for as_var in \
53717   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53718   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53719   LC_TELEPHONE LC_TIME
53720 do
53721   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53722     eval $as_var=C; export $as_var
53723   else
53724     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53725   fi
53726 done
53727
53728 # Required to use basename.
53729 if expr a : '\(a\)' >/dev/null 2>&1 &&
53730    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53731   as_expr=expr
53732 else
53733   as_expr=false
53734 fi
53735
53736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53737   as_basename=basename
53738 else
53739   as_basename=false
53740 fi
53741
53742
53743 # Name of the executable.
53744 as_me=`$as_basename -- "$0" ||
53745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53746          X"$0" : 'X\(//\)$' \| \
53747          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53748 echo X/"$0" |
53749     sed '/^.*\/\([^/][^/]*\)\/*$/{
53750             s//\1/
53751             q
53752           }
53753           /^X\/\(\/\/\)$/{
53754             s//\1/
53755             q
53756           }
53757           /^X\/\(\/\).*/{
53758             s//\1/
53759             q
53760           }
53761           s/.*/./; q'`
53762
53763 # CDPATH.
53764 $as_unset CDPATH
53765
53766
53767
53768   as_lineno_1=$LINENO
53769   as_lineno_2=$LINENO
53770   test "x$as_lineno_1" != "x$as_lineno_2" &&
53771   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53772
53773   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53774   # uniformly replaced by the line number.  The first 'sed' inserts a
53775   # line-number line after each line using $LINENO; the second 'sed'
53776   # does the real work.  The second script uses 'N' to pair each
53777   # line-number line with the line containing $LINENO, and appends
53778   # trailing '-' during substitution so that $LINENO is not a special
53779   # case at line end.
53780   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53781   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53782   # E. McMahon (1931-1989) for sed's syntax.  :-)
53783   sed -n '
53784     p
53785     /[$]LINENO/=
53786   ' <$as_myself |
53787     sed '
53788       s/[$]LINENO.*/&-/
53789       t lineno
53790       b
53791       :lineno
53792       N
53793       :loop
53794       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53795       t loop
53796       s/-\n.*//
53797     ' >$as_me.lineno &&
53798   chmod +x "$as_me.lineno" ||
53799     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53800    { (exit 1); exit 1; }; }
53801
53802   # Don't try to exec as it changes $[0], causing all sort of problems
53803   # (the dirname of $[0] is not the place where we might find the
53804   # original and so on.  Autoconf is especially sensitive to this).
53805   . "./$as_me.lineno"
53806   # Exit status is that of the last command.
53807   exit
53808 }
53809
53810
53811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53812   as_dirname=dirname
53813 else
53814   as_dirname=false
53815 fi
53816
53817 ECHO_C= ECHO_N= ECHO_T=
53818 case `echo -n x` in
53819 -n*)
53820   case `echo 'x\c'` in
53821   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53822   *)   ECHO_C='\c';;
53823   esac;;
53824 *)
53825   ECHO_N='-n';;
53826 esac
53827
53828 if expr a : '\(a\)' >/dev/null 2>&1 &&
53829    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53830   as_expr=expr
53831 else
53832   as_expr=false
53833 fi
53834
53835 rm -f conf$$ conf$$.exe conf$$.file
53836 if test -d conf$$.dir; then
53837   rm -f conf$$.dir/conf$$.file
53838 else
53839   rm -f conf$$.dir
53840   mkdir conf$$.dir
53841 fi
53842 echo >conf$$.file
53843 if ln -s conf$$.file conf$$ 2>/dev/null; then
53844   as_ln_s='ln -s'
53845   # ... but there are two gotchas:
53846   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53847   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53848   # In both cases, we have to default to `cp -p'.
53849   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53850     as_ln_s='cp -p'
53851 elif ln conf$$.file conf$$ 2>/dev/null; then
53852   as_ln_s=ln
53853 else
53854   as_ln_s='cp -p'
53855 fi
53856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53857 rmdir conf$$.dir 2>/dev/null
53858
53859 if mkdir -p . 2>/dev/null; then
53860   as_mkdir_p=:
53861 else
53862   test -d ./-p && rmdir ./-p
53863   as_mkdir_p=false
53864 fi
53865
53866 if test -x / >/dev/null 2>&1; then
53867   as_test_x='test -x'
53868 else
53869   if ls -dL / >/dev/null 2>&1; then
53870     as_ls_L_option=L
53871   else
53872     as_ls_L_option=
53873   fi
53874   as_test_x='
53875     eval sh -c '\''
53876       if test -d "$1"; then
53877         test -d "$1/.";
53878       else
53879         case $1 in
53880         -*)set "./$1";;
53881         esac;
53882         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53883         ???[sx]*):;;*)false;;esac;fi
53884     '\'' sh
53885   '
53886 fi
53887 as_executable_p=$as_test_x
53888
53889 # Sed expression to map a string onto a valid CPP name.
53890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53891
53892 # Sed expression to map a string onto a valid variable name.
53893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53894
53895
53896 exec 6>&1
53897
53898 # Save the log message, to keep $[0] and so on meaningful, and to
53899 # report actual input values of CONFIG_FILES etc. instead of their
53900 # values after options handling.
53901 ac_log="
53902 This file was extended by wxWidgets $as_me 2.9.3, which was
53903 generated by GNU Autoconf 2.61.  Invocation command line was
53904
53905   CONFIG_FILES    = $CONFIG_FILES
53906   CONFIG_HEADERS  = $CONFIG_HEADERS
53907   CONFIG_LINKS    = $CONFIG_LINKS
53908   CONFIG_COMMANDS = $CONFIG_COMMANDS
53909   $ $0 $@
53910
53911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53912 "
53913
53914 _ACEOF
53915
53916 cat >>$CONFIG_STATUS <<_ACEOF
53917 # Files that config.status was made for.
53918 config_files="$ac_config_files"
53919 config_headers="$ac_config_headers"
53920 config_commands="$ac_config_commands"
53921
53922 _ACEOF
53923
53924 cat >>$CONFIG_STATUS <<\_ACEOF
53925 ac_cs_usage="\
53926 \`$as_me' instantiates files from templates according to the
53927 current configuration.
53928
53929 Usage: $0 [OPTIONS] [FILE]...
53930
53931   -h, --help       print this help, then exit
53932   -V, --version    print version number and configuration settings, then exit
53933   -q, --quiet      do not print progress messages
53934   -d, --debug      don't remove temporary files
53935       --recheck    update $as_me by reconfiguring in the same conditions
53936   --file=FILE[:TEMPLATE]
53937                    instantiate the configuration file FILE
53938   --header=FILE[:TEMPLATE]
53939                    instantiate the configuration header FILE
53940
53941 Configuration files:
53942 $config_files
53943
53944 Configuration headers:
53945 $config_headers
53946
53947 Configuration commands:
53948 $config_commands
53949
53950 Report bugs to <bug-autoconf@gnu.org>."
53951
53952 _ACEOF
53953 cat >>$CONFIG_STATUS <<_ACEOF
53954 ac_cs_version="\\
53955 wxWidgets config.status 2.9.3
53956 configured by $0, generated by GNU Autoconf 2.61,
53957   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53958
53959 Copyright (C) 2006 Free Software Foundation, Inc.
53960 This config.status script is free software; the Free Software Foundation
53961 gives unlimited permission to copy, distribute and modify it."
53962
53963 ac_pwd='$ac_pwd'
53964 srcdir='$srcdir'
53965 INSTALL='$INSTALL'
53966 _ACEOF
53967
53968 cat >>$CONFIG_STATUS <<\_ACEOF
53969 # If no file are specified by the user, then we need to provide default
53970 # value.  By we need to know if files were specified by the user.
53971 ac_need_defaults=:
53972 while test $# != 0
53973 do
53974   case $1 in
53975   --*=*)
53976     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53977     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53978     ac_shift=:
53979     ;;
53980   *)
53981     ac_option=$1
53982     ac_optarg=$2
53983     ac_shift=shift
53984     ;;
53985   esac
53986
53987   case $ac_option in
53988   # Handling of the options.
53989   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53990     ac_cs_recheck=: ;;
53991   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53992     echo "$ac_cs_version"; exit ;;
53993   --debug | --debu | --deb | --de | --d | -d )
53994     debug=: ;;
53995   --file | --fil | --fi | --f )
53996     $ac_shift
53997     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53998     ac_need_defaults=false;;
53999   --header | --heade | --head | --hea )
54000     $ac_shift
54001     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54002     ac_need_defaults=false;;
54003   --he | --h)
54004     # Conflict between --help and --header
54005     { echo "$as_me: error: ambiguous option: $1
54006 Try \`$0 --help' for more information." >&2
54007    { (exit 1); exit 1; }; };;
54008   --help | --hel | -h )
54009     echo "$ac_cs_usage"; exit ;;
54010   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54011   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54012     ac_cs_silent=: ;;
54013
54014   # This is an error.
54015   -*) { echo "$as_me: error: unrecognized option: $1
54016 Try \`$0 --help' for more information." >&2
54017    { (exit 1); exit 1; }; } ;;
54018
54019   *) ac_config_targets="$ac_config_targets $1"
54020      ac_need_defaults=false ;;
54021
54022   esac
54023   shift
54024 done
54025
54026 ac_configure_extra_args=
54027
54028 if $ac_cs_silent; then
54029   exec 6>/dev/null
54030   ac_configure_extra_args="$ac_configure_extra_args --silent"
54031 fi
54032
54033 _ACEOF
54034 cat >>$CONFIG_STATUS <<_ACEOF
54035 if \$ac_cs_recheck; then
54036   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54037   CONFIG_SHELL=$SHELL
54038   export CONFIG_SHELL
54039   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54040 fi
54041
54042 _ACEOF
54043 cat >>$CONFIG_STATUS <<\_ACEOF
54044 exec 5>>config.log
54045 {
54046   echo
54047   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54048 ## Running $as_me. ##
54049 _ASBOX
54050   echo "$ac_log"
54051 } >&5
54052
54053 _ACEOF
54054 cat >>$CONFIG_STATUS <<_ACEOF
54055 #
54056 # INIT-COMMANDS
54057 #
54058
54059             CPP="$CPP"
54060             infile="$srcdir/include/wx/msw/genrcdefs.h"
54061             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54062
54063
54064  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54065  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54066  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54067                      LN_S="${LN_S}"
54068
54069
54070 _ACEOF
54071
54072 cat >>$CONFIG_STATUS <<\_ACEOF
54073
54074 # Handling of arguments.
54075 for ac_config_target in $ac_config_targets
54076 do
54077   case $ac_config_target in
54078     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54079     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54080     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54081     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54082     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
54083     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54084     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54085     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54086     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54087
54088   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54090    { (exit 1); exit 1; }; };;
54091   esac
54092 done
54093
54094
54095 # If the user did not use the arguments to specify the items to instantiate,
54096 # then the envvar interface is used.  Set only those that are not.
54097 # We use the long form for the default assignment because of an extremely
54098 # bizarre bug on SunOS 4.1.3.
54099 if $ac_need_defaults; then
54100   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54101   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54102   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54103 fi
54104
54105 # Have a temporary directory for convenience.  Make it in the build tree
54106 # simply because there is no reason against having it here, and in addition,
54107 # creating and moving files from /tmp can sometimes cause problems.
54108 # Hook for its removal unless debugging.
54109 # Note that there is a small window in which the directory will not be cleaned:
54110 # after its creation but before its name has been assigned to `$tmp'.
54111 $debug ||
54112 {
54113   tmp=
54114   trap 'exit_status=$?
54115   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54116 ' 0
54117   trap '{ (exit 1); exit 1; }' 1 2 13 15
54118 }
54119 # Create a (secure) tmp directory for tmp files.
54120
54121 {
54122   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54123   test -n "$tmp" && test -d "$tmp"
54124 }  ||
54125 {
54126   tmp=./conf$$-$RANDOM
54127   (umask 077 && mkdir "$tmp")
54128 } ||
54129 {
54130    echo "$me: cannot create a temporary directory in ." >&2
54131    { (exit 1); exit 1; }
54132 }
54133
54134 #
54135 # Set up the sed scripts for CONFIG_FILES section.
54136 #
54137
54138 # No need to generate the scripts if there are no CONFIG_FILES.
54139 # This happens for instance when ./config.status config.h
54140 if test -n "$CONFIG_FILES"; then
54141
54142 _ACEOF
54143
54144
54145
54146 ac_delim='%!_!# '
54147 for ac_last_try in false false false false false :; do
54148   cat >conf$$subs.sed <<_ACEOF
54149 SHELL!$SHELL$ac_delim
54150 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54151 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54152 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54153 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54154 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54155 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54156 exec_prefix!$exec_prefix$ac_delim
54157 prefix!$prefix$ac_delim
54158 program_transform_name!$program_transform_name$ac_delim
54159 bindir!$bindir$ac_delim
54160 sbindir!$sbindir$ac_delim
54161 libexecdir!$libexecdir$ac_delim
54162 datarootdir!$datarootdir$ac_delim
54163 datadir!$datadir$ac_delim
54164 sysconfdir!$sysconfdir$ac_delim
54165 sharedstatedir!$sharedstatedir$ac_delim
54166 localstatedir!$localstatedir$ac_delim
54167 includedir!$includedir$ac_delim
54168 oldincludedir!$oldincludedir$ac_delim
54169 docdir!$docdir$ac_delim
54170 infodir!$infodir$ac_delim
54171 htmldir!$htmldir$ac_delim
54172 dvidir!$dvidir$ac_delim
54173 pdfdir!$pdfdir$ac_delim
54174 psdir!$psdir$ac_delim
54175 libdir!$libdir$ac_delim
54176 localedir!$localedir$ac_delim
54177 mandir!$mandir$ac_delim
54178 DEFS!$DEFS$ac_delim
54179 ECHO_C!$ECHO_C$ac_delim
54180 ECHO_N!$ECHO_N$ac_delim
54181 ECHO_T!$ECHO_T$ac_delim
54182 LIBS!$LIBS$ac_delim
54183 build_alias!$build_alias$ac_delim
54184 host_alias!$host_alias$ac_delim
54185 target_alias!$target_alias$ac_delim
54186 build!$build$ac_delim
54187 build_cpu!$build_cpu$ac_delim
54188 build_vendor!$build_vendor$ac_delim
54189 build_os!$build_os$ac_delim
54190 host!$host$ac_delim
54191 host_cpu!$host_cpu$ac_delim
54192 host_vendor!$host_vendor$ac_delim
54193 host_os!$host_os$ac_delim
54194 wx_top_builddir!$wx_top_builddir$ac_delim
54195 CC!$CC$ac_delim
54196 CFLAGS!$CFLAGS$ac_delim
54197 LDFLAGS!$LDFLAGS$ac_delim
54198 CPPFLAGS!$CPPFLAGS$ac_delim
54199 ac_ct_CC!$ac_ct_CC$ac_delim
54200 EXEEXT!$EXEEXT$ac_delim
54201 OBJEXT!$OBJEXT$ac_delim
54202 CPP!$CPP$ac_delim
54203 GREP!$GREP$ac_delim
54204 EGREP!$EGREP$ac_delim
54205 CXX!$CXX$ac_delim
54206 CXXFLAGS!$CXXFLAGS$ac_delim
54207 ac_ct_CXX!$ac_ct_CXX$ac_delim
54208 AR!$AR$ac_delim
54209 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
54210 CXXCPP!$CXXCPP$ac_delim
54211 subdirs!$subdirs$ac_delim
54212 PKG_CONFIG!$PKG_CONFIG$ac_delim
54213 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54214 GTK_LIBS!$GTK_LIBS$ac_delim
54215 GTK_CONFIG!$GTK_CONFIG$ac_delim
54216 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54217 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54218 XMKMF!$XMKMF$ac_delim
54219 X_CFLAGS!$X_CFLAGS$ac_delim
54220 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54221 X_LIBS!$X_LIBS$ac_delim
54222 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54223 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54224 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54225 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54226 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54227 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54228 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54229 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54230 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54231 LIBICONV!$LIBICONV$ac_delim
54232 GXX_VERSION!$GXX_VERSION$ac_delim
54233 SDL_CONFIG!$SDL_CONFIG$ac_delim
54234 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54235 SDL_LIBS!$SDL_LIBS$ac_delim
54236 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54237 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54238 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54239 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54240 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54241 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54242 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54243 HILDON_LIBS!$HILDON_LIBS$ac_delim
54244 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
54245 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
54246 _ACEOF
54247
54248   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54249     break
54250   elif $ac_last_try; then
54251     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54253    { (exit 1); exit 1; }; }
54254   else
54255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54256   fi
54257 done
54258
54259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54260 if test -n "$ac_eof"; then
54261   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54262   ac_eof=`expr $ac_eof + 1`
54263 fi
54264
54265 cat >>$CONFIG_STATUS <<_ACEOF
54266 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54268 _ACEOF
54269 sed '
54270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54271 s/^/s,@/; s/!/@,|#_!!_#|/
54272 :n
54273 t n
54274 s/'"$ac_delim"'$/,g/; t
54275 s/$/\\/; p
54276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54277 ' >>$CONFIG_STATUS <conf$$subs.sed
54278 rm -f conf$$subs.sed
54279 cat >>$CONFIG_STATUS <<_ACEOF
54280 CEOF$ac_eof
54281 _ACEOF
54282
54283
54284 ac_delim='%!_!# '
54285 for ac_last_try in false false false false false :; do
54286   cat >conf$$subs.sed <<_ACEOF
54287 PYTHON!$PYTHON$ac_delim
54288 COND_PYTHON!$COND_PYTHON$ac_delim
54289 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54290 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54291 GST_CFLAGS!$GST_CFLAGS$ac_delim
54292 GST_LIBS!$GST_LIBS$ac_delim
54293 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54294 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54295 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54296 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54297 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54298 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54299 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54300 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54301 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54302 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54303 VENDOR!$VENDOR$ac_delim
54304 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54305 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54306 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54307 WXUNIV!$WXUNIV$ac_delim
54308 MONOLITHIC!$MONOLITHIC$ac_delim
54309 USE_PLUGINS!$USE_PLUGINS$ac_delim
54310 CXXWARNINGS!$CXXWARNINGS$ac_delim
54311 EXTRALIBS!$EXTRALIBS$ac_delim
54312 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54313 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54314 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
54315 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54316 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54317 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54318 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
54319 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54320 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54321 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54322 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54323 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54324 UNICODE!$UNICODE$ac_delim
54325 DEBUG_INFO!$DEBUG_INFO$ac_delim
54326 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54327 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54328 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54329 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
54330 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
54331 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54332 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
54333 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54334 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54335 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54336 RANLIB!$RANLIB$ac_delim
54337 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54338 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54339 INSTALL_DATA!$INSTALL_DATA$ac_delim
54340 LN_S!$LN_S$ac_delim
54341 SET_MAKE!$SET_MAKE$ac_delim
54342 MAKE_SET!$MAKE_SET$ac_delim
54343 AROPTIONS!$AROPTIONS$ac_delim
54344 STRIP!$STRIP$ac_delim
54345 NM!$NM$ac_delim
54346 INSTALL_DIR!$INSTALL_DIR$ac_delim
54347 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54348 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54349 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54350 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54351 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54352 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54353 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54354 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54355 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54356 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54357 SO_SUFFIX!$SO_SUFFIX$ac_delim
54358 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54359 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54360 LIBPREFIX!$LIBPREFIX$ac_delim
54361 LIBEXT!$LIBEXT$ac_delim
54362 DLLPREFIX!$DLLPREFIX$ac_delim
54363 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54364 dlldir!$dlldir$ac_delim
54365 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54366 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54367 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54368 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54369 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54370 PIC_FLAG!$PIC_FLAG$ac_delim
54371 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54372 USE_SOVERSION!$USE_SOVERSION$ac_delim
54373 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54374 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54375 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54376 USE_MACVERSION!$USE_MACVERSION$ac_delim
54377 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54378 SONAME_FLAG!$SONAME_FLAG$ac_delim
54379 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54380 BK_DEPS!$BK_DEPS$ac_delim
54381 WINDRES!$WINDRES$ac_delim
54382 REZ!$REZ$ac_delim
54383 SETFILE!$SETFILE$ac_delim
54384 _ACEOF
54385
54386   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54387     break
54388   elif $ac_last_try; then
54389     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54390 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54391    { (exit 1); exit 1; }; }
54392   else
54393     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54394   fi
54395 done
54396
54397 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54398 if test -n "$ac_eof"; then
54399   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54400   ac_eof=`expr $ac_eof + 1`
54401 fi
54402
54403 cat >>$CONFIG_STATUS <<_ACEOF
54404 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54406 _ACEOF
54407 sed '
54408 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54409 s/^/s,@/; s/!/@,|#_!!_#|/
54410 :n
54411 t n
54412 s/'"$ac_delim"'$/,g/; t
54413 s/$/\\/; p
54414 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54415 ' >>$CONFIG_STATUS <conf$$subs.sed
54416 rm -f conf$$subs.sed
54417 cat >>$CONFIG_STATUS <<_ACEOF
54418 CEOF$ac_eof
54419 _ACEOF
54420
54421
54422 ac_delim='%!_!# '
54423 for ac_last_try in false false false false false :; do
54424   cat >conf$$subs.sed <<_ACEOF
54425 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54426 GCC_PCH!$GCC_PCH$ac_delim
54427 ICC_PCH!$ICC_PCH$ac_delim
54428 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54429 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54430 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54431 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54432 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54433 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54434 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54435 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54436 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54437 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54438 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54439 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54440 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54441 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54442 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54443 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54444 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54445 COND_BUILD_release!$COND_BUILD_release$ac_delim
54446 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54447 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54448 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54449 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54450 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54451 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54452 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54453 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54454 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54455 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54456 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54457 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54458 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54459 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54460 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54461 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54462 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54463 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54464 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1$ac_delim
54465 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54466 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54467 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54468 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54469 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54470 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54471 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54472 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54473 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54474 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54475 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54476 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1$ac_delim
54477 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54478 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54479 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54480 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54481 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54482 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54483 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54484 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54485 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54486 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54487 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54488 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54489 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54490 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54491 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54492 COND_MONOLITHIC_0_USE_WEB_1!$COND_MONOLITHIC_0_USE_WEB_1$ac_delim
54493 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54494 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54495 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54496 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54497 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54498 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54499 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54500 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54501 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54502 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54503 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54504 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54505 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
54506 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54507 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54508 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54509 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54510 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54511 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54512 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54513 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54514 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54515 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54516 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54517 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54518 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54519 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54520 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54521 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54522 _ACEOF
54523
54524   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54525     break
54526   elif $ac_last_try; then
54527     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54528 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54529    { (exit 1); exit 1; }; }
54530   else
54531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54532   fi
54533 done
54534
54535 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54536 if test -n "$ac_eof"; then
54537   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54538   ac_eof=`expr $ac_eof + 1`
54539 fi
54540
54541 cat >>$CONFIG_STATUS <<_ACEOF
54542 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54544 _ACEOF
54545 sed '
54546 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54547 s/^/s,@/; s/!/@,|#_!!_#|/
54548 :n
54549 t n
54550 s/'"$ac_delim"'$/,g/; t
54551 s/$/\\/; p
54552 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54553 ' >>$CONFIG_STATUS <conf$$subs.sed
54554 rm -f conf$$subs.sed
54555 cat >>$CONFIG_STATUS <<_ACEOF
54556 CEOF$ac_eof
54557 _ACEOF
54558
54559
54560 ac_delim='%!_!# '
54561 for ac_last_try in false false false false false :; do
54562   cat >conf$$subs.sed <<_ACEOF
54563 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54564 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54565 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54566 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54567 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54568 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54569 COND_SHARED_0!$COND_SHARED_0$ac_delim
54570 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54571 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54572 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54573 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54574 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54575 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54576 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54577 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54578 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54579 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54580 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54581 COND_SHARED_1!$COND_SHARED_1$ac_delim
54582 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54583 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54584 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54585 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54586 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54587 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54588 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54589 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54590 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54591 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54592 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54593 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54594 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54595 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54596 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54597 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54598 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54599 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54600 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54601 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54602 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54603 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54604 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54605 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54606 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54607 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54608 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54609 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54610 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54611 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54612 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54613 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54614 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54615 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54616 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54617 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54618 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54619 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54620 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54621 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54622 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54623 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54624 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54625 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54626 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54627 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54628 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54629 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54630 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54631 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54632 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54633 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54634 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54635 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54636 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54637 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54638 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54639 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54640 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54641 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54642 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54643 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54644 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54645 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54646 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54647 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54648 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54649 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54650 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54651 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54652 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54653 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54654 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54655 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54656 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54657 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54658 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54659 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54660 _ACEOF
54661
54662   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54663     break
54664   elif $ac_last_try; then
54665     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54667    { (exit 1); exit 1; }; }
54668   else
54669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54670   fi
54671 done
54672
54673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54674 if test -n "$ac_eof"; then
54675   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54676   ac_eof=`expr $ac_eof + 1`
54677 fi
54678
54679 cat >>$CONFIG_STATUS <<_ACEOF
54680 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54682 _ACEOF
54683 sed '
54684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54685 s/^/s,@/; s/!/@,|#_!!_#|/
54686 :n
54687 t n
54688 s/'"$ac_delim"'$/,g/; t
54689 s/$/\\/; p
54690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54691 ' >>$CONFIG_STATUS <conf$$subs.sed
54692 rm -f conf$$subs.sed
54693 cat >>$CONFIG_STATUS <<_ACEOF
54694 CEOF$ac_eof
54695 _ACEOF
54696
54697
54698 ac_delim='%!_!# '
54699 for ac_last_try in false false false false false :; do
54700   cat >conf$$subs.sed <<_ACEOF
54701 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54702 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54703 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54704 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54705 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54706 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54707 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54708 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54709 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54710 DEREZ!$DEREZ$ac_delim
54711 SHARED!$SHARED$ac_delim
54712 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54713 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54714 USE_GUI!$USE_GUI$ac_delim
54715 AFMINSTALL!$AFMINSTALL$ac_delim
54716 WIN32INSTALL!$WIN32INSTALL$ac_delim
54717 TOOLKIT!$TOOLKIT$ac_delim
54718 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54719 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54720 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54721 cross_compiling!$cross_compiling$ac_delim
54722 WIDGET_SET!$WIDGET_SET$ac_delim
54723 WX_RELEASE!$WX_RELEASE$ac_delim
54724 WX_VERSION!$WX_VERSION$ac_delim
54725 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54726 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54727 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54728 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54729 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54730 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54731 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54732 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54733 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54734 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54735 GUIDIST!$GUIDIST$ac_delim
54736 DISTDIR!$DISTDIR$ac_delim
54737 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54738 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54739 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54740 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54741 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54742 RESCOMP!$RESCOMP$ac_delim
54743 RESFLAGS!$RESFLAGS$ac_delim
54744 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54745 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54746 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54747 LIBWXMACRES!$LIBWXMACRES$ac_delim
54748 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54749 MACSETFILE!$MACSETFILE$ac_delim
54750 GCC!$GCC$ac_delim
54751 DLLTOOL!$DLLTOOL$ac_delim
54752 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54753 LIBOBJS!$LIBOBJS$ac_delim
54754 LTLIBOBJS!$LTLIBOBJS$ac_delim
54755 _ACEOF
54756
54757   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
54758     break
54759   elif $ac_last_try; then
54760     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54761 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54762    { (exit 1); exit 1; }; }
54763   else
54764     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54765   fi
54766 done
54767
54768 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54769 if test -n "$ac_eof"; then
54770   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54771   ac_eof=`expr $ac_eof + 1`
54772 fi
54773
54774 cat >>$CONFIG_STATUS <<_ACEOF
54775 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54777 _ACEOF
54778 sed '
54779 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54780 s/^/s,@/; s/!/@,|#_!!_#|/
54781 :n
54782 t n
54783 s/'"$ac_delim"'$/,g/; t
54784 s/$/\\/; p
54785 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54786 ' >>$CONFIG_STATUS <conf$$subs.sed
54787 rm -f conf$$subs.sed
54788 cat >>$CONFIG_STATUS <<_ACEOF
54789 :end
54790 s/|#_!!_#|//g
54791 CEOF$ac_eof
54792 _ACEOF
54793
54794
54795 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54796 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54797 # trailing colons and then remove the whole line if VPATH becomes empty
54798 # (actually we leave an empty line to preserve line numbers).
54799 if test "x$srcdir" = x.; then
54800   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54801 s/:*\$(srcdir):*/:/
54802 s/:*\${srcdir}:*/:/
54803 s/:*@srcdir@:*/:/
54804 s/^\([^=]*=[     ]*\):*/\1/
54805 s/:*$//
54806 s/^[^=]*=[       ]*$//
54807 }'
54808 fi
54809
54810 cat >>$CONFIG_STATUS <<\_ACEOF
54811 fi # test -n "$CONFIG_FILES"
54812
54813
54814 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54815 do
54816   case $ac_tag in
54817   :[FHLC]) ac_mode=$ac_tag; continue;;
54818   esac
54819   case $ac_mode$ac_tag in
54820   :[FHL]*:*);;
54821   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54822 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54823    { (exit 1); exit 1; }; };;
54824   :[FH]-) ac_tag=-:-;;
54825   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54826   esac
54827   ac_save_IFS=$IFS
54828   IFS=:
54829   set x $ac_tag
54830   IFS=$ac_save_IFS
54831   shift
54832   ac_file=$1
54833   shift
54834
54835   case $ac_mode in
54836   :L) ac_source=$1;;
54837   :[FH])
54838     ac_file_inputs=
54839     for ac_f
54840     do
54841       case $ac_f in
54842       -) ac_f="$tmp/stdin";;
54843       *) # Look for the file first in the build tree, then in the source tree
54844          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54845          # because $ac_f cannot contain `:'.
54846          test -f "$ac_f" ||
54847            case $ac_f in
54848            [\\/$]*) false;;
54849            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54850            esac ||
54851            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54852 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54853    { (exit 1); exit 1; }; };;
54854       esac
54855       ac_file_inputs="$ac_file_inputs $ac_f"
54856     done
54857
54858     # Let's still pretend it is `configure' which instantiates (i.e., don't
54859     # use $as_me), people would be surprised to read:
54860     #    /* config.h.  Generated by config.status.  */
54861     configure_input="Generated from "`IFS=:
54862           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54863     if test x"$ac_file" != x-; then
54864       configure_input="$ac_file.  $configure_input"
54865       { echo "$as_me:$LINENO: creating $ac_file" >&5
54866 echo "$as_me: creating $ac_file" >&6;}
54867     fi
54868
54869     case $ac_tag in
54870     *:-:* | *:-) cat >"$tmp/stdin";;
54871     esac
54872     ;;
54873   esac
54874
54875   ac_dir=`$as_dirname -- "$ac_file" ||
54876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54877          X"$ac_file" : 'X\(//\)[^/]' \| \
54878          X"$ac_file" : 'X\(//\)$' \| \
54879          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54880 echo X"$ac_file" |
54881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54882             s//\1/
54883             q
54884           }
54885           /^X\(\/\/\)[^/].*/{
54886             s//\1/
54887             q
54888           }
54889           /^X\(\/\/\)$/{
54890             s//\1/
54891             q
54892           }
54893           /^X\(\/\).*/{
54894             s//\1/
54895             q
54896           }
54897           s/.*/./; q'`
54898   { as_dir="$ac_dir"
54899   case $as_dir in #(
54900   -*) as_dir=./$as_dir;;
54901   esac
54902   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54903     as_dirs=
54904     while :; do
54905       case $as_dir in #(
54906       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54907       *) as_qdir=$as_dir;;
54908       esac
54909       as_dirs="'$as_qdir' $as_dirs"
54910       as_dir=`$as_dirname -- "$as_dir" ||
54911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54912          X"$as_dir" : 'X\(//\)[^/]' \| \
54913          X"$as_dir" : 'X\(//\)$' \| \
54914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54915 echo X"$as_dir" |
54916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54917             s//\1/
54918             q
54919           }
54920           /^X\(\/\/\)[^/].*/{
54921             s//\1/
54922             q
54923           }
54924           /^X\(\/\/\)$/{
54925             s//\1/
54926             q
54927           }
54928           /^X\(\/\).*/{
54929             s//\1/
54930             q
54931           }
54932           s/.*/./; q'`
54933       test -d "$as_dir" && break
54934     done
54935     test -z "$as_dirs" || eval "mkdir $as_dirs"
54936   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54937 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54938    { (exit 1); exit 1; }; }; }
54939   ac_builddir=.
54940
54941 case "$ac_dir" in
54942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54943 *)
54944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54945   # A ".." for each directory in $ac_dir_suffix.
54946   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54947   case $ac_top_builddir_sub in
54948   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54949   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54950   esac ;;
54951 esac
54952 ac_abs_top_builddir=$ac_pwd
54953 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54954 # for backward compatibility:
54955 ac_top_builddir=$ac_top_build_prefix
54956
54957 case $srcdir in
54958   .)  # We are building in place.
54959     ac_srcdir=.
54960     ac_top_srcdir=$ac_top_builddir_sub
54961     ac_abs_top_srcdir=$ac_pwd ;;
54962   [\\/]* | ?:[\\/]* )  # Absolute name.
54963     ac_srcdir=$srcdir$ac_dir_suffix;
54964     ac_top_srcdir=$srcdir
54965     ac_abs_top_srcdir=$srcdir ;;
54966   *) # Relative name.
54967     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54968     ac_top_srcdir=$ac_top_build_prefix$srcdir
54969     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54970 esac
54971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54972
54973
54974   case $ac_mode in
54975   :F)
54976   #
54977   # CONFIG_FILE
54978   #
54979
54980   case $INSTALL in
54981   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54982   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54983   esac
54984 _ACEOF
54985
54986 cat >>$CONFIG_STATUS <<\_ACEOF
54987 # If the template does not know about datarootdir, expand it.
54988 # FIXME: This hack should be removed a few years after 2.60.
54989 ac_datarootdir_hack=; ac_datarootdir_seen=
54990
54991 case `sed -n '/datarootdir/ {
54992   p
54993   q
54994 }
54995 /@datadir@/p
54996 /@docdir@/p
54997 /@infodir@/p
54998 /@localedir@/p
54999 /@mandir@/p
55000 ' $ac_file_inputs` in
55001 *datarootdir*) ac_datarootdir_seen=yes;;
55002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55003   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55004 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55005 _ACEOF
55006 cat >>$CONFIG_STATUS <<_ACEOF
55007   ac_datarootdir_hack='
55008   s&@datadir@&$datadir&g
55009   s&@docdir@&$docdir&g
55010   s&@infodir@&$infodir&g
55011   s&@localedir@&$localedir&g
55012   s&@mandir@&$mandir&g
55013     s&\\\${datarootdir}&$datarootdir&g' ;;
55014 esac
55015 _ACEOF
55016
55017 # Neutralize VPATH when `$srcdir' = `.'.
55018 # Shell code in configure.ac might set extrasub.
55019 # FIXME: do we really want to maintain this feature?
55020 cat >>$CONFIG_STATUS <<_ACEOF
55021   sed "$ac_vpsub
55022 $extrasub
55023 _ACEOF
55024 cat >>$CONFIG_STATUS <<\_ACEOF
55025 :t
55026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55027 s&@configure_input@&$configure_input&;t t
55028 s&@top_builddir@&$ac_top_builddir_sub&;t t
55029 s&@srcdir@&$ac_srcdir&;t t
55030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55031 s&@top_srcdir@&$ac_top_srcdir&;t t
55032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55033 s&@builddir@&$ac_builddir&;t t
55034 s&@abs_builddir@&$ac_abs_builddir&;t t
55035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55036 s&@INSTALL@&$ac_INSTALL&;t t
55037 $ac_datarootdir_hack
55038 " $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
55039
55040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55041   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55042   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55043   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55044 which seems to be undefined.  Please make sure it is defined." >&5
55045 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55046 which seems to be undefined.  Please make sure it is defined." >&2;}
55047
55048   rm -f "$tmp/stdin"
55049   case $ac_file in
55050   -) cat "$tmp/out"; rm -f "$tmp/out";;
55051   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55052   esac
55053  ;;
55054   :H)
55055   #
55056   # CONFIG_HEADER
55057   #
55058 _ACEOF
55059
55060 # Transform confdefs.h into a sed script `conftest.defines', that
55061 # substitutes the proper values into config.h.in to produce config.h.
55062 rm -f conftest.defines conftest.tail
55063 # First, append a space to every undef/define line, to ease matching.
55064 echo 's/$/ /' >conftest.defines
55065 # Then, protect against being on the right side of a sed subst, or in
55066 # an unquoted here document, in config.status.  If some macros were
55067 # called several times there might be several #defines for the same
55068 # symbol, which is useless.  But do not sort them, since the last
55069 # AC_DEFINE must be honored.
55070 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55071 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55072 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55073 # PARAMS is the parameter list in the macro definition--in most cases, it's
55074 # just an empty string.
55075 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55076 ac_dB='\\)[      (].*,\\1define\\2'
55077 ac_dC=' '
55078 ac_dD=' ,'
55079
55080 uniq confdefs.h |
55081   sed -n '
55082         t rset
55083         :rset
55084         s/^[     ]*#[    ]*define[       ][      ]*//
55085         t ok
55086         d
55087         :ok
55088         s/[\\&,]/\\&/g
55089         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55090         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55091   ' >>conftest.defines
55092
55093 # Remove the space that was appended to ease matching.
55094 # Then replace #undef with comments.  This is necessary, for
55095 # example, in the case of _POSIX_SOURCE, which is predefined and required
55096 # on some systems where configure will not decide to define it.
55097 # (The regexp can be short, since the line contains either #define or #undef.)
55098 echo 's/ $//
55099 s,^[     #]*u.*,/* & */,' >>conftest.defines
55100
55101 # Break up conftest.defines:
55102 ac_max_sed_lines=50
55103
55104 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55105 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55106 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55107 # et cetera.
55108 ac_in='$ac_file_inputs'
55109 ac_out='"$tmp/out1"'
55110 ac_nxt='"$tmp/out2"'
55111
55112 while :
55113 do
55114   # Write a here document:
55115     cat >>$CONFIG_STATUS <<_ACEOF
55116     # First, check the format of the line:
55117     cat >"\$tmp/defines.sed" <<\\CEOF
55118 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55119 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55120 b
55121 :def
55122 _ACEOF
55123   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55124   echo 'CEOF
55125     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55126   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55127   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55128   grep . conftest.tail >/dev/null || break
55129   rm -f conftest.defines
55130   mv conftest.tail conftest.defines
55131 done
55132 rm -f conftest.defines conftest.tail
55133
55134 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55135 cat >>$CONFIG_STATUS <<\_ACEOF
55136   if test x"$ac_file" != x-; then
55137     echo "/* $configure_input  */" >"$tmp/config.h"
55138     cat "$ac_result" >>"$tmp/config.h"
55139     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55140       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55141 echo "$as_me: $ac_file is unchanged" >&6;}
55142     else
55143       rm -f $ac_file
55144       mv "$tmp/config.h" $ac_file
55145     fi
55146   else
55147     echo "/* $configure_input  */"
55148     cat "$ac_result"
55149   fi
55150   rm -f "$tmp/out12"
55151  ;;
55152
55153   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55154 echo "$as_me: executing $ac_file commands" >&6;}
55155  ;;
55156   esac
55157
55158
55159   case $ac_file$ac_mode in
55160     "rcdefs.h":C)
55161             mkdir -p $outdir &&
55162             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55163          ;;
55164     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55165     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55166     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
55167     "wx-config":C)  rm -f wx-config
55168                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55169                     ;;
55170
55171   esac
55172 done # for ac_tag
55173
55174
55175 { (exit 0); exit 0; }
55176 _ACEOF
55177 chmod +x $CONFIG_STATUS
55178 ac_clean_files=$ac_clean_files_save
55179
55180
55181 # configure is writing to config.log, and then calls config.status.
55182 # config.status does its own redirection, appending to config.log.
55183 # Unfortunately, on DOS this fails, as config.log is still kept open
55184 # by configure, so config.status won't be able to write to it; its
55185 # output is simply discarded.  So we exec the FD to /dev/null,
55186 # effectively closing config.log, so it can be properly (re)opened and
55187 # appended to by config.status.  When coming back to configure, we
55188 # need to make the FD available again.
55189 if test "$no_create" != yes; then
55190   ac_cs_success=:
55191   ac_config_status_args=
55192   test "$silent" = yes &&
55193     ac_config_status_args="$ac_config_status_args --quiet"
55194   exec 5>/dev/null
55195   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55196   exec 5>>config.log
55197   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55198   # would make configure fail if this is the last instruction.
55199   $ac_cs_success || { (exit 1); exit 1; }
55200 fi
55201
55202 #
55203 # CONFIG_SUBDIRS section.
55204 #
55205 if test "$no_recursion" != yes; then
55206
55207   # Remove --cache-file and --srcdir arguments so they do not pile up.
55208   ac_sub_configure_args=
55209   ac_prev=
55210   eval "set x $ac_configure_args"
55211   shift
55212   for ac_arg
55213   do
55214     if test -n "$ac_prev"; then
55215       ac_prev=
55216       continue
55217     fi
55218     case $ac_arg in
55219     -cache-file | --cache-file | --cache-fil | --cache-fi \
55220     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55221       ac_prev=cache_file ;;
55222     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55223     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55224     | --c=*)
55225       ;;
55226     --config-cache | -C)
55227       ;;
55228     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55229       ac_prev=srcdir ;;
55230     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55231       ;;
55232     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55233       ac_prev=prefix ;;
55234     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55235       ;;
55236     *)
55237       case $ac_arg in
55238       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55239       esac
55240       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55241     esac
55242   done
55243
55244   # Always prepend --prefix to ensure using the same prefix
55245   # in subdir configurations.
55246   ac_arg="--prefix=$prefix"
55247   case $ac_arg in
55248   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55249   esac
55250   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55251
55252   # Pass --silent
55253   if test "$silent" = yes; then
55254     ac_sub_configure_args="--silent $ac_sub_configure_args"
55255   fi
55256
55257   ac_popdir=`pwd`
55258   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55259
55260     # Do not complain, so a configure script can configure whichever
55261     # parts of a large source tree are present.
55262     test -d "$srcdir/$ac_dir" || continue
55263
55264     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55265     echo "$as_me:$LINENO: $ac_msg" >&5
55266     echo "$ac_msg" >&6
55267     { as_dir="$ac_dir"
55268   case $as_dir in #(
55269   -*) as_dir=./$as_dir;;
55270   esac
55271   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55272     as_dirs=
55273     while :; do
55274       case $as_dir in #(
55275       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55276       *) as_qdir=$as_dir;;
55277       esac
55278       as_dirs="'$as_qdir' $as_dirs"
55279       as_dir=`$as_dirname -- "$as_dir" ||
55280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55281          X"$as_dir" : 'X\(//\)[^/]' \| \
55282          X"$as_dir" : 'X\(//\)$' \| \
55283          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55284 echo X"$as_dir" |
55285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55286             s//\1/
55287             q
55288           }
55289           /^X\(\/\/\)[^/].*/{
55290             s//\1/
55291             q
55292           }
55293           /^X\(\/\/\)$/{
55294             s//\1/
55295             q
55296           }
55297           /^X\(\/\).*/{
55298             s//\1/
55299             q
55300           }
55301           s/.*/./; q'`
55302       test -d "$as_dir" && break
55303     done
55304     test -z "$as_dirs" || eval "mkdir $as_dirs"
55305   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55306 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55307    { (exit 1); exit 1; }; }; }
55308     ac_builddir=.
55309
55310 case "$ac_dir" in
55311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55312 *)
55313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55314   # A ".." for each directory in $ac_dir_suffix.
55315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55316   case $ac_top_builddir_sub in
55317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55319   esac ;;
55320 esac
55321 ac_abs_top_builddir=$ac_pwd
55322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55323 # for backward compatibility:
55324 ac_top_builddir=$ac_top_build_prefix
55325
55326 case $srcdir in
55327   .)  # We are building in place.
55328     ac_srcdir=.
55329     ac_top_srcdir=$ac_top_builddir_sub
55330     ac_abs_top_srcdir=$ac_pwd ;;
55331   [\\/]* | ?:[\\/]* )  # Absolute name.
55332     ac_srcdir=$srcdir$ac_dir_suffix;
55333     ac_top_srcdir=$srcdir
55334     ac_abs_top_srcdir=$srcdir ;;
55335   *) # Relative name.
55336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55337     ac_top_srcdir=$ac_top_build_prefix$srcdir
55338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55339 esac
55340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55341
55342
55343     cd "$ac_dir"
55344
55345     # Check for guested configure; otherwise get Cygnus style configure.
55346     if test -f "$ac_srcdir/configure.gnu"; then
55347       ac_sub_configure=$ac_srcdir/configure.gnu
55348     elif test -f "$ac_srcdir/configure"; then
55349       ac_sub_configure=$ac_srcdir/configure
55350     elif test -f "$ac_srcdir/configure.in"; then
55351       # This should be Cygnus configure.
55352       ac_sub_configure=$ac_aux_dir/configure
55353     else
55354       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55355 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55356       ac_sub_configure=
55357     fi
55358
55359     # The recursion is here.
55360     if test -n "$ac_sub_configure"; then
55361       # Make the cache file name correct relative to the subdirectory.
55362       case $cache_file in
55363       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55364       *) # Relative name.
55365         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55366       esac
55367
55368       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55369 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55370       # The eval makes quoting arguments work.
55371       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55372            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55373         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55374 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55375    { (exit 1); exit 1; }; }
55376     fi
55377
55378     cd "$ac_popdir"
55379   done
55380 fi
55381
55382
55383 echo
55384 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55385 echo ""
55386 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55387 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55388 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55389 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55390 if test "$wxUSE_UNICODE" = "yes"; then
55391     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55392         echo " (using UTF-8)"
55393     else
55394         echo " (using wchar_t)"
55395     fi
55396 else
55397     echo
55398 fi
55399
55400 echo "  What level of wxWidgets compatibility should be enabled?"
55401 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55402 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55403
55404 echo "  Which libraries should wxWidgets use?"
55405 echo "                                       STL                ${wxUSE_STL}"
55406 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55407 echo "                                       png                ${wxUSE_LIBPNG-none}"
55408 echo "                                       regex              ${wxUSE_REGEX}"
55409 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55410 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55411 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55412 fi
55413 echo "                                       zlib               ${wxUSE_ZLIB}"
55414 echo "                                       expat              ${wxUSE_EXPAT}"
55415 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55416 echo "                                       sdl                ${wxUSE_LIBSDL}"
55417
55418 echo ""
55419