No changes, just removed hard tabs and trailing white space.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 61278 2009-07-02 09:00:20Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.1'
579 PACKAGE_STRING='wxWidgets 2.9.1'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 subdirs
680 PKG_CONFIG
681 GTK_CFLAGS
682 GTK_LIBS
683 GTK_CONFIG
684 DIRECTFB_CFLAGS
685 DIRECTFB_LIBS
686 XMKMF
687 X_CFLAGS
688 X_PRE_LIBS
689 X_LIBS
690 X_EXTRA_LIBS
691 PANGOX_CFLAGS
692 PANGOX_LIBS
693 PANGOFT2_CFLAGS
694 PANGOFT2_LIBS
695 PANGOXFT_CFLAGS
696 PANGOXFT_LIBS
697 CFLAGS_VISIBILITY
698 CXXFLAGS_VISIBILITY
699 LIBICONV
700 GXX_VERSION
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 GTKPRINT_CFLAGS
705 GTKPRINT_LIBS
706 LIBGNOMEPRINTUI_CFLAGS
707 LIBGNOMEPRINTUI_LIBS
708 GNOMEVFS_CFLAGS
709 GNOMEVFS_LIBS
710 HILDON_CFLAGS
711 HILDON_LIBS
712 PYTHON
713 COND_PYTHON
714 CAIRO_CFLAGS
715 CAIRO_LIBS
716 GST_CFLAGS
717 GST_LIBS
718 ALL_WX_LIBS
719 BUILT_WX_LIBS
720 STD_BASE_LIBS
721 STD_GUI_LIBS
722 wxUSE_ZLIB
723 wxUSE_REGEX
724 wxUSE_EXPAT
725 wxUSE_LIBJPEG
726 wxUSE_LIBPNG
727 wxUSE_LIBTIFF
728 VENDOR
729 OFFICIAL_BUILD
730 WX_FLAVOUR
731 WX_LIB_FLAVOUR
732 WXUNIV
733 MONOLITHIC
734 USE_PLUGINS
735 CXXWARNINGS
736 EXTRALIBS
737 EXTRALIBS_XML
738 EXTRALIBS_HTML
739 EXTRALIBS_MEDIA
740 EXTRALIBS_GUI
741 EXTRALIBS_OPENGL
742 EXTRALIBS_SDL
743 EXTRALIBS_STC
744 WITH_PLUGIN_SDL
745 EXTRALIBS_GTKPRINT
746 EXTRALIBS_GNOMEPRINT
747 EXTRALIBS_GNOMEVFS
748 EXTRALIBS_HILDON
749 UNICODE
750 BUILD
751 DEBUG_INFO
752 DEBUG_FLAG
753 TOOLKIT_LOWERCASE
754 TOOLKIT_VERSION
755 DYLIB_RPATH_INSTALL
756 DYLIB_RPATH_POSTLINK
757 SAMPLES_RPATH_FLAG
758 HEADER_PAD_OPTION
759 HOST_SUFFIX
760 CPPUNIT_CFLAGS
761 CPPUNIT_LIBS
762 RANLIB
763 INSTALL_PROGRAM
764 INSTALL_SCRIPT
765 INSTALL_DATA
766 LN_S
767 SET_MAKE
768 MAKE_SET
769 AROPTIONS
770 STRIP
771 NM
772 INSTALL_DIR
773 LDFLAGS_GUI
774 IF_GNU_MAKE
775 PLATFORM_UNIX
776 PLATFORM_WIN32
777 PLATFORM_MSDOS
778 PLATFORM_MAC
779 PLATFORM_MACOS
780 PLATFORM_MACOSX
781 PLATFORM_OS2
782 PLATFORM_BEOS
783 SO_SUFFIX
784 SO_SUFFIX_MODULE
785 DLLIMP_SUFFIX
786 LIBPREFIX
787 LIBEXT
788 DLLPREFIX
789 DLLPREFIX_MODULE
790 dlldir
791 AIX_CXX_LD
792 SHARED_LD_CC
793 SHARED_LD_CXX
794 SHARED_LD_MODULE_CC
795 SHARED_LD_MODULE_CXX
796 PIC_FLAG
797 WINDOWS_IMPLIB
798 USE_SOVERSION
799 USE_SOVERLINUX
800 USE_SOVERSOLARIS
801 USE_SOVERCYGWIN
802 USE_MACVERSION
803 USE_SOSYMLINKS
804 SONAME_FLAG
805 DEPS_TRACKING
806 BK_DEPS
807 WINDRES
808 REZ
809 SETFILE
810 OBJCXXFLAGS
811 GCC_PCH
812 ICC_PCH
813 ICC_PCH_CREATE_SWITCH
814 ICC_PCH_USE_SWITCH
815 BK_MAKE_PCH
816 COND_BUILD_DEBUG
817 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
818 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
819 COND_BUILD_DEBUG_UNICODE_0
820 COND_BUILD_DEBUG_UNICODE_1
821 COND_BUILD_RELEASE
822 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
823 COND_BUILD_RELEASE_UNICODE_0
824 COND_BUILD_RELEASE_UNICODE_1
825 COND_BUILD_debug
826 COND_BUILD_debug_DEBUG_FLAG_default
827 COND_BUILD_debug_DEBUG_INFO_default
828 COND_BUILD_debug_UNICODE_0
829 COND_BUILD_debug_UNICODE_1
830 COND_BUILD_release
831 COND_BUILD_release_DEBUG_INFO_default
832 COND_BUILD_release_UNICODE_0
833 COND_BUILD_release_UNICODE_1
834 COND_DEBUG_FLAG_1
835 COND_DEBUG_INFO_0
836 COND_DEBUG_INFO_1
837 COND_DEPS_TRACKING_0
838 COND_DEPS_TRACKING_1
839 COND_GCC_PCH_1
840 COND_ICC_PCH_1
841 COND_MONOLITHIC_0
842 COND_MONOLITHIC_0_SHARED_0
843 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
845 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
846 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
848 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
849 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
850 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
851 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
852 COND_MONOLITHIC_0_SHARED_1
853 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
856 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
857 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
858 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
859 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
860 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
861 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
862 COND_MONOLITHIC_0_USE_AUI_1
863 COND_MONOLITHIC_0_USE_GUI_1
864 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
865 COND_MONOLITHIC_0_USE_HTML_1
866 COND_MONOLITHIC_0_USE_MEDIA_1
867 COND_MONOLITHIC_0_USE_PROPGRID_1
868 COND_MONOLITHIC_0_USE_QA_1
869 COND_MONOLITHIC_0_USE_RICHTEXT_1
870 COND_MONOLITHIC_0_USE_STC_1
871 COND_MONOLITHIC_0_USE_XRC_1
872 COND_MONOLITHIC_1
873 COND_MONOLITHIC_1_SHARED_0
874 COND_MONOLITHIC_1_SHARED_1
875 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
876 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
877 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
878 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
879 COND_PLATFORM_MACOSX_1
880 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
882 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
883 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
884 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
885 COND_PLATFORM_MACOSX_1_USE_GUI_1
886 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
887 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
888 COND_PLATFORM_MACOS_1
889 COND_PLATFORM_MAC_0
890 COND_PLATFORM_MAC_1
891 COND_PLATFORM_MSDOS_0
892 COND_PLATFORM_MSDOS_1
893 COND_PLATFORM_OS2_1
894 COND_PLATFORM_UNIX_0
895 COND_PLATFORM_UNIX_1
896 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
897 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
898 COND_PLATFORM_UNIX_1_USE_GUI_1
899 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
900 COND_PLATFORM_WIN32_0
901 COND_PLATFORM_WIN32_1
902 COND_SHARED_0
903 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
904 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
905 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
906 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
908 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
909 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
910 COND_SHARED_0_USE_STC_1
911 COND_SHARED_0_wxUSE_EXPAT_builtin
912 COND_SHARED_0_wxUSE_REGEX_builtin
913 COND_SHARED_0_wxUSE_ZLIB_builtin
914 COND_SHARED_1
915 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
916 COND_TOOLKIT_
917 COND_TOOLKIT_COCOA
918 COND_TOOLKIT_COCOA_USE_GUI_1
919 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
920 COND_TOOLKIT_DFB
921 COND_TOOLKIT_DFB_USE_GUI_1
922 COND_TOOLKIT_GTK
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
926 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
928 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_GTK_USE_GUI_1
930 COND_TOOLKIT_MAC
931 COND_TOOLKIT_MGL
932 COND_TOOLKIT_MGL_USE_GUI_1
933 COND_TOOLKIT_MOTIF
934 COND_TOOLKIT_MOTIF_USE_GUI_1
935 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW
937 COND_TOOLKIT_MSW_USE_GUI_1
938 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
939 COND_TOOLKIT_MSW_WXUNIV_0
940 COND_TOOLKIT_OSX_CARBON
941 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
942 COND_TOOLKIT_OSX_COCOA
943 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
944 COND_TOOLKIT_OSX_IPHONE
945 COND_TOOLKIT_PM
946 COND_TOOLKIT_PM_USE_GUI_1
947 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
948 COND_TOOLKIT_WINCE
949 COND_TOOLKIT_WINCE_USE_GUI_1
950 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
951 COND_TOOLKIT_WINCE_WXUNIV_0
952 COND_TOOLKIT_X11
953 COND_TOOLKIT_X11_USE_GUI_1
954 COND_UNICODE_1
955 COND_USE_EXCEPTIONS_0
956 COND_USE_EXCEPTIONS_1
957 COND_USE_GUI_0
958 COND_USE_GUI_1
959 COND_USE_GUI_1_USE_OPENGL_1
960 COND_USE_GUI_1_WXUNIV_0
961 COND_USE_GUI_1_WXUNIV_1
962 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
964 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
965 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
966 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
967 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
968 COND_USE_OPENGL_1
969 COND_USE_PCH_1
970 COND_USE_PLUGINS_0
971 COND_USE_RTTI_0
972 COND_USE_RTTI_1
973 COND_USE_SOSYMLINKS_1
974 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
975 COND_USE_SOVERLINUX_1
976 COND_USE_SOVERSION_0
977 COND_USE_SOVERSOLARIS_1
978 COND_USE_STC_1
979 COND_USE_THREADS_0
980 COND_USE_THREADS_1
981 COND_USE_XRC_1
982 COND_WINDOWS_IMPLIB_1
983 COND_WITH_PLUGIN_SDL_1
984 COND_WXUNIV_0
985 COND_WXUNIV_1
986 COND_WXUSE_EXPAT_BUILTIN
987 COND_WXUSE_LIBJPEG_BUILTIN
988 COND_WXUSE_LIBPNG_BUILTIN
989 COND_WXUSE_LIBTIFF_BUILTIN
990 COND_WXUSE_REGEX_BUILTIN
991 COND_WXUSE_ZLIB_BUILTIN
992 COND_wxUSE_EXPAT_builtin
993 COND_wxUSE_LIBJPEG_builtin
994 COND_wxUSE_LIBPNG_builtin
995 COND_wxUSE_LIBTIFF_builtin
996 COND_wxUSE_REGEX_builtin
997 COND_wxUSE_ZLIB_builtin
998 DEREZ
999 SHARED
1000 WX_LIBRARY_BASENAME_NOGUI
1001 WX_LIBRARY_BASENAME_GUI
1002 USE_GUI
1003 AFMINSTALL
1004 WIN32INSTALL
1005 TOOLKIT
1006 TOOLKIT_DIR
1007 TOOLCHAIN_NAME
1008 TOOLCHAIN_FULLNAME
1009 cross_compiling
1010 WIDGET_SET
1011 WX_RELEASE
1012 WX_VERSION
1013 WX_SUBVERSION
1014 WX_CHARTYPE
1015 WX_DEBUGTYPE
1016 WXCONFIG_CPPFLAGS
1017 WXCONFIG_CFLAGS
1018 WXCONFIG_CXXFLAGS
1019 WXCONFIG_LIBS
1020 WXCONFIG_RPATH
1021 WXCONFIG_LDFLAGS_GUI
1022 WXCONFIG_RESFLAGS
1023 GUIDIST
1024 DISTDIR
1025 SAMPLES_SUBDIRS
1026 LDFLAGS_GL
1027 OPENGL_LIBS
1028 DMALLOC_LIBS
1029 WX_VERSION_TAG
1030 RESCOMP
1031 RESFLAGS
1032 RESPROGRAMOBJ
1033 WX_RESOURCES_MACOSX_ASCII
1034 WX_RESOURCES_MACOSX_DATA
1035 LIBWXMACRES
1036 POSTLINK_COMMAND
1037 MACSETFILE
1038 GCC
1039 DLLTOOL
1040 CPPUNIT_CONFIG
1041 LIBOBJS
1042 LTLIBOBJS'
1043 ac_subst_files=''
1044       ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1047 CC
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1052 CPP
1053 CXX
1054 CXXFLAGS
1055 CCC
1056 PKG_CONFIG
1057 DIRECTFB_CFLAGS
1058 DIRECTFB_LIBS
1059 XMKMF
1060 PANGOX_CFLAGS
1061 PANGOX_LIBS
1062 PANGOFT2_CFLAGS
1063 PANGOFT2_LIBS
1064 PANGOXFT_CFLAGS
1065 PANGOXFT_LIBS
1066 GTKPRINT_CFLAGS
1067 GTKPRINT_LIBS
1068 LIBGNOMEPRINTUI_CFLAGS
1069 LIBGNOMEPRINTUI_LIBS
1070 GNOMEVFS_CFLAGS
1071 GNOMEVFS_LIBS
1072 HILDON_CFLAGS
1073 HILDON_LIBS
1074 CAIRO_CFLAGS
1075 CAIRO_LIBS
1076 GST_CFLAGS
1077 GST_LIBS'
1078 ac_subdirs_all='src/tiff
1079 src/expat'
1080
1081 # Initialize some variables set by options.
1082 ac_init_help=
1083 ac_init_version=false
1084 # The variables have the same names as the options, with
1085 # dashes changed to underlines.
1086 cache_file=/dev/null
1087 exec_prefix=NONE
1088 no_create=
1089 no_recursion=
1090 prefix=NONE
1091 program_prefix=NONE
1092 program_suffix=NONE
1093 program_transform_name=s,x,x,
1094 silent=
1095 site=
1096 srcdir=
1097 verbose=
1098 x_includes=NONE
1099 x_libraries=NONE
1100
1101 # Installation directory options.
1102 # These are left unexpanded so users can "make install exec_prefix=/foo"
1103 # and all the variables that are supposed to be based on exec_prefix
1104 # by default will actually change.
1105 # Use braces instead of parens because sh, perl, etc. also accept them.
1106 # (The list follows the same order as the GNU Coding Standards.)
1107 bindir='${exec_prefix}/bin'
1108 sbindir='${exec_prefix}/sbin'
1109 libexecdir='${exec_prefix}/libexec'
1110 datarootdir='${prefix}/share'
1111 datadir='${datarootdir}'
1112 sysconfdir='${prefix}/etc'
1113 sharedstatedir='${prefix}/com'
1114 localstatedir='${prefix}/var'
1115 includedir='${prefix}/include'
1116 oldincludedir='/usr/include'
1117 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1118 infodir='${datarootdir}/info'
1119 htmldir='${docdir}'
1120 dvidir='${docdir}'
1121 pdfdir='${docdir}'
1122 psdir='${docdir}'
1123 libdir='${exec_prefix}/lib'
1124 localedir='${datarootdir}/locale'
1125 mandir='${datarootdir}/man'
1126
1127 ac_prev=
1128 ac_dashdash=
1129 for ac_option
1130 do
1131   # If the previous option needs an argument, assign it.
1132   if test -n "$ac_prev"; then
1133     eval $ac_prev=\$ac_option
1134     ac_prev=
1135     continue
1136   fi
1137
1138   case $ac_option in
1139   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1140   *)    ac_optarg=yes ;;
1141   esac
1142
1143   # Accept the important Cygnus configure options, so we can diagnose typos.
1144
1145   case $ac_dashdash$ac_option in
1146   --)
1147     ac_dashdash=yes ;;
1148
1149   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1150     ac_prev=bindir ;;
1151   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1152     bindir=$ac_optarg ;;
1153
1154   -build | --build | --buil | --bui | --bu)
1155     ac_prev=build_alias ;;
1156   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1157     build_alias=$ac_optarg ;;
1158
1159   -cache-file | --cache-file | --cache-fil | --cache-fi \
1160   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1161     ac_prev=cache_file ;;
1162   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1163   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1164     cache_file=$ac_optarg ;;
1165
1166   --config-cache | -C)
1167     cache_file=config.cache ;;
1168
1169   -datadir | --datadir | --datadi | --datad)
1170     ac_prev=datadir ;;
1171   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1172     datadir=$ac_optarg ;;
1173
1174   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1175   | --dataroo | --dataro | --datar)
1176     ac_prev=datarootdir ;;
1177   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1178   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1179     datarootdir=$ac_optarg ;;
1180
1181   -disable-* | --disable-*)
1182     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188     eval enable_$ac_feature=no ;;
1189
1190   -docdir | --docdir | --docdi | --doc | --do)
1191     ac_prev=docdir ;;
1192   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193     docdir=$ac_optarg ;;
1194
1195   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196     ac_prev=dvidir ;;
1197   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198     dvidir=$ac_optarg ;;
1199
1200   -enable-* | --enable-*)
1201     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1207     eval enable_$ac_feature=\$ac_optarg ;;
1208
1209   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1210   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1211   | --exec | --exe | --ex)
1212     ac_prev=exec_prefix ;;
1213   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1214   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1215   | --exec=* | --exe=* | --ex=*)
1216     exec_prefix=$ac_optarg ;;
1217
1218   -gas | --gas | --ga | --g)
1219     # Obsolete; use --with-gas.
1220     with_gas=yes ;;
1221
1222   -help | --help | --hel | --he | -h)
1223     ac_init_help=long ;;
1224   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1225     ac_init_help=recursive ;;
1226   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1227     ac_init_help=short ;;
1228
1229   -host | --host | --hos | --ho)
1230     ac_prev=host_alias ;;
1231   -host=* | --host=* | --hos=* | --ho=*)
1232     host_alias=$ac_optarg ;;
1233
1234   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1235     ac_prev=htmldir ;;
1236   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1237   | --ht=*)
1238     htmldir=$ac_optarg ;;
1239
1240   -includedir | --includedir | --includedi | --included | --include \
1241   | --includ | --inclu | --incl | --inc)
1242     ac_prev=includedir ;;
1243   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1244   | --includ=* | --inclu=* | --incl=* | --inc=*)
1245     includedir=$ac_optarg ;;
1246
1247   -infodir | --infodir | --infodi | --infod | --info | --inf)
1248     ac_prev=infodir ;;
1249   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1250     infodir=$ac_optarg ;;
1251
1252   -libdir | --libdir | --libdi | --libd)
1253     ac_prev=libdir ;;
1254   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1255     libdir=$ac_optarg ;;
1256
1257   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1258   | --libexe | --libex | --libe)
1259     ac_prev=libexecdir ;;
1260   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1261   | --libexe=* | --libex=* | --libe=*)
1262     libexecdir=$ac_optarg ;;
1263
1264   -localedir | --localedir | --localedi | --localed | --locale)
1265     ac_prev=localedir ;;
1266   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1267     localedir=$ac_optarg ;;
1268
1269   -localstatedir | --localstatedir | --localstatedi | --localstated \
1270   | --localstate | --localstat | --localsta | --localst | --locals)
1271     ac_prev=localstatedir ;;
1272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1273   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1274     localstatedir=$ac_optarg ;;
1275
1276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1277     ac_prev=mandir ;;
1278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1279     mandir=$ac_optarg ;;
1280
1281   -nfp | --nfp | --nf)
1282     # Obsolete; use --without-fp.
1283     with_fp=no ;;
1284
1285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1286   | --no-cr | --no-c | -n)
1287     no_create=yes ;;
1288
1289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291     no_recursion=yes ;;
1292
1293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1295   | --oldin | --oldi | --old | --ol | --o)
1296     ac_prev=oldincludedir ;;
1297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1300     oldincludedir=$ac_optarg ;;
1301
1302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1303     ac_prev=prefix ;;
1304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1305     prefix=$ac_optarg ;;
1306
1307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1308   | --program-pre | --program-pr | --program-p)
1309     ac_prev=program_prefix ;;
1310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1312     program_prefix=$ac_optarg ;;
1313
1314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1315   | --program-suf | --program-su | --program-s)
1316     ac_prev=program_suffix ;;
1317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1319     program_suffix=$ac_optarg ;;
1320
1321   -program-transform-name | --program-transform-name \
1322   | --program-transform-nam | --program-transform-na \
1323   | --program-transform-n | --program-transform- \
1324   | --program-transform | --program-transfor \
1325   | --program-transfo | --program-transf \
1326   | --program-trans | --program-tran \
1327   | --progr-tra | --program-tr | --program-t)
1328     ac_prev=program_transform_name ;;
1329   -program-transform-name=* | --program-transform-name=* \
1330   | --program-transform-nam=* | --program-transform-na=* \
1331   | --program-transform-n=* | --program-transform-=* \
1332   | --program-transform=* | --program-transfor=* \
1333   | --program-transfo=* | --program-transf=* \
1334   | --program-trans=* | --program-tran=* \
1335   | --progr-tra=* | --program-tr=* | --program-t=*)
1336     program_transform_name=$ac_optarg ;;
1337
1338   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1339     ac_prev=pdfdir ;;
1340   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1341     pdfdir=$ac_optarg ;;
1342
1343   -psdir | --psdir | --psdi | --psd | --ps)
1344     ac_prev=psdir ;;
1345   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346     psdir=$ac_optarg ;;
1347
1348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1349   | -silent | --silent | --silen | --sile | --sil)
1350     silent=yes ;;
1351
1352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1353     ac_prev=sbindir ;;
1354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1355   | --sbi=* | --sb=*)
1356     sbindir=$ac_optarg ;;
1357
1358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1360   | --sharedst | --shareds | --shared | --share | --shar \
1361   | --sha | --sh)
1362     ac_prev=sharedstatedir ;;
1363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1366   | --sha=* | --sh=*)
1367     sharedstatedir=$ac_optarg ;;
1368
1369   -site | --site | --sit)
1370     ac_prev=site ;;
1371   -site=* | --site=* | --sit=*)
1372     site=$ac_optarg ;;
1373
1374   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1375     ac_prev=srcdir ;;
1376   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1377     srcdir=$ac_optarg ;;
1378
1379   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1380   | --syscon | --sysco | --sysc | --sys | --sy)
1381     ac_prev=sysconfdir ;;
1382   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1383   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1384     sysconfdir=$ac_optarg ;;
1385
1386   -target | --target | --targe | --targ | --tar | --ta | --t)
1387     ac_prev=target_alias ;;
1388   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1389     target_alias=$ac_optarg ;;
1390
1391   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1392     verbose=yes ;;
1393
1394   -version | --version | --versio | --versi | --vers | -V)
1395     ac_init_version=: ;;
1396
1397   -with-* | --with-*)
1398     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       { echo "$as_me: error: invalid package name: $ac_package" >&2
1402    { (exit 1); exit 1; }; }
1403     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1404     eval with_$ac_package=\$ac_optarg ;;
1405
1406   -without-* | --without-*)
1407     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410       { echo "$as_me: error: invalid package name: $ac_package" >&2
1411    { (exit 1); exit 1; }; }
1412     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1413     eval with_$ac_package=no ;;
1414
1415   --x)
1416     # Obsolete; use --with-x.
1417     with_x=yes ;;
1418
1419   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1420   | --x-incl | --x-inc | --x-in | --x-i)
1421     ac_prev=x_includes ;;
1422   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1423   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1424     x_includes=$ac_optarg ;;
1425
1426   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1427   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1428     ac_prev=x_libraries ;;
1429   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1430   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1431     x_libraries=$ac_optarg ;;
1432
1433   -*) { echo "$as_me: error: unrecognized option: $ac_option
1434 Try \`$0 --help' for more information." >&2
1435    { (exit 1); exit 1; }; }
1436     ;;
1437
1438   *=*)
1439     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440     # Reject names that are not valid shell variable names.
1441     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1442       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1443    { (exit 1); exit 1; }; }
1444     eval $ac_envvar=\$ac_optarg
1445     export $ac_envvar ;;
1446
1447   *)
1448     # FIXME: should be removed in autoconf 3.0.
1449     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1450     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1452     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1453     ;;
1454
1455   esac
1456 done
1457
1458 if test -n "$ac_prev"; then
1459   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1460   { echo "$as_me: error: missing argument to $ac_option" >&2
1461    { (exit 1); exit 1; }; }
1462 fi
1463
1464 # Be sure to have absolute directory names.
1465 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466                 datadir sysconfdir sharedstatedir localstatedir includedir \
1467                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468                 libdir localedir mandir
1469 do
1470   eval ac_val=\$$ac_var
1471   case $ac_val in
1472     [\\/$]* | ?:[\\/]* )  continue;;
1473     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1474   esac
1475   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1476    { (exit 1); exit 1; }; }
1477 done
1478
1479 # There might be people who depend on the old broken behavior: `$host'
1480 # used to hold the argument of --host etc.
1481 # FIXME: To remove some day.
1482 build=$build_alias
1483 host=$host_alias
1484 target=$target_alias
1485
1486 # FIXME: To remove some day.
1487 if test "x$host_alias" != x; then
1488   if test "x$build_alias" = x; then
1489     cross_compiling=maybe
1490     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1491     If a cross compiler is detected then cross compile mode will be used." >&2
1492   elif test "x$build_alias" != "x$host_alias"; then
1493     cross_compiling=yes
1494   fi
1495 fi
1496
1497 ac_tool_prefix=
1498 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499
1500 test "$silent" = yes && exec 6>/dev/null
1501
1502
1503 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1504 ac_ls_di=`ls -di .` &&
1505 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1506   { echo "$as_me: error: Working directory cannot be determined" >&2
1507    { (exit 1); exit 1; }; }
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509   { echo "$as_me: error: pwd does not report name of working directory" >&2
1510    { (exit 1); exit 1; }; }
1511
1512
1513 # Find the source files, if location was not specified.
1514 if test -z "$srcdir"; then
1515   ac_srcdir_defaulted=yes
1516   # Try the directory containing this script, then the parent directory.
1517   ac_confdir=`$as_dirname -- "$0" ||
1518 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1519          X"$0" : 'X\(//\)[^/]' \| \
1520          X"$0" : 'X\(//\)$' \| \
1521          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1522 echo X"$0" |
1523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524             s//\1/
1525             q
1526           }
1527           /^X\(\/\/\)[^/].*/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\/\)$/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\).*/{
1536             s//\1/
1537             q
1538           }
1539           s/.*/./; q'`
1540   srcdir=$ac_confdir
1541   if test ! -r "$srcdir/$ac_unique_file"; then
1542     srcdir=..
1543   fi
1544 else
1545   ac_srcdir_defaulted=no
1546 fi
1547 if test ! -r "$srcdir/$ac_unique_file"; then
1548   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1549   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1555    { (exit 1); exit 1; }; }
1556         pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559   srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569   eval ac_env_${ac_var}_value=\$${ac_var}
1570   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578   # Omit some internal or obsolete options to make the list less imposing.
1579   # This message is too long to be a string in the A/UX 3.1 sh.
1580   cat <<_ACEOF
1581 \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE.  See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591   -h, --help              display this help and exit
1592       --help=short        display options specific to this package
1593       --help=recursive    display the short help of all the included packages
1594   -V, --version           display version information and exit
1595   -q, --quiet, --silent   do not print \`checking...' messages
1596       --cache-file=FILE   cache test results in FILE [disabled]
1597   -C, --config-cache      alias for \`--cache-file=config.cache'
1598   -n, --no-create         do not create output files
1599       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602   --prefix=PREFIX         install architecture-independent files in PREFIX
1603                           [$ac_default_prefix]
1604   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1605                           [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615   --bindir=DIR           user executables [EPREFIX/bin]
1616   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1617   --libexecdir=DIR       program executables [EPREFIX/libexec]
1618   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1619   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1620   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1621   --libdir=DIR           object code libraries [EPREFIX/lib]
1622   --includedir=DIR       C header files [PREFIX/include]
1623   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1624   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1625   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1626   --infodir=DIR          info documentation [DATAROOTDIR/info]
1627   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1628   --mandir=DIR           man documentation [DATAROOTDIR/man]
1629   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1630   --htmldir=DIR          html documentation [DOCDIR]
1631   --dvidir=DIR           dvi documentation [DOCDIR]
1632   --pdfdir=DIR           pdf documentation [DOCDIR]
1633   --psdir=DIR            ps documentation [DOCDIR]
1634 _ACEOF
1635
1636   cat <<\_ACEOF
1637
1638 X features:
1639   --x-includes=DIR    X include files are in DIR
1640   --x-libraries=DIR   X library files are in DIR
1641
1642 System types:
1643   --build=BUILD     configure for building on BUILD [guessed]
1644   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649   case $ac_init_help in
1650      short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
1651    esac
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1656   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1657   --disable-gui           don't build GUI parts of the library
1658   --enable-monolithic     build wxWidgets as single library
1659   --enable-plugins        build parts of wxWidgets as loadable components
1660   --enable-official_build official build of wxWidgets (win32 DLL only)
1661   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1662   --disable-all-features  disable all optional features to build minimal library
1663   --enable-universal      use wxWidgets GUI controls instead of native ones
1664   --enable-nanox          use NanoX
1665   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1666   --enable-gpe            use GNOME PDA Environment features if possible
1667   --disable-shared        create static library instead of shared
1668   --enable-debug          same as debug_flag and debug_info
1669   --enable-stl            use STL for containers
1670   --enable-std_iostreams  use standard C++ stream classes
1671   --enable-std_string     use standard C++ string classes
1672   --disable-unicode       compile without Unicode support
1673   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1674   --enable-utf8           use UTF-8 representation for strings (Unix only)
1675   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1676   --enable-extended_rtti  use extended RTTI (XTI)
1677   --enable-omf            use OMF object format
1678   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1679   --enable-debug_info     create code with debugging information
1680   --disable-optimise      compile without optimisations
1681   --enable-debug_gdb      create code with extra GDB debugging information
1682   --enable-debug_cntxt    use wxDebugContext
1683   --enable-mem_tracing    create code with memory tracing
1684   --enable-profile        create code with profiling information
1685   --enable-no_rtti        create code without RTTI information
1686   --enable-no_exceptions  create code without C++ exceptions handling
1687   --enable-permissive     compile code disregarding strict ANSI
1688   --enable-no_deps        create code without dependency information
1689   --disable-vararg_macros don't use vararg macros, even if they are supported
1690   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1691   --enable-compat26       enable wxWidgets 2.6 compatibility
1692   --disable-compat28      disable wxWidgets 2.8 compatibility
1693   --disable-rpath         disable use of rpath for uninstalled builds
1694   --enable-objc_uniquifying enable Objective-C class name uniquifying
1695   --disable-visibility    disable use of ELF symbols visibility even if supported
1696   --disable-tls           disable use of compiler TLS support
1697   --enable-intl           use internationalization system
1698   --enable-xlocale        use x-locale support (requires wxLocale)
1699   --enable-config         use wxConfig (and derived) classes
1700   --enable-protocols      use wxProtocol and derived classes
1701   --enable-ftp            use wxFTP (requires wxProtocol
1702   --enable-http           use wxHTTP (requires wxProtocol
1703   --enable-fileproto      use wxFileProto class (requires wxProtocol
1704   --enable-sockets        use socket/network classes
1705   --enable-ipv6           enable IPv6 support in wxSocket
1706   --enable-ole            use OLE classes (Win32 only)
1707   --enable-dataobj        use data object classes
1708   --enable-ipc            use interprocess communication (wxSocket etc.)
1709   --enable-baseevtloop    use event loop in console programs too
1710   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1711   --enable-selectloop     use wxSelectDispatcher class
1712   --enable-apple_ieee     use the Apple IEEE codec
1713   --enable-arcstream      use wxArchive streams
1714   --enable-base64         use base64 encoding/decoding functions
1715   --enable-backtrace      use wxStackWalker class for getting backtraces
1716   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1717   --enable-cmdline        use wxCmdLineParser class
1718   --enable-datetime       use wxDateTime class
1719   --enable-debugreport    use wxDebugReport class
1720   --enable-dialupman      use dialup network classes
1721   --enable-dynlib         use wxLibrary class for DLL loading
1722   --enable-dynamicloader  use (new) wxDynamicLibrary class
1723   --enable-exceptions     build exception-safe library
1724   --enable-ffile          use wxFFile class
1725   --enable-file           use wxFile class
1726   --enable-filesystem     use virtual file systems classes
1727   --enable-fontenum       use wxFontEnumerator class
1728   --enable-fontmap        use font encodings conversion classes
1729   --enable-fs_archive     use virtual archive filesystems
1730   --enable-fs_inet        use virtual HTTP/FTP filesystems
1731   --enable-fs_zip         now replaced by fs_archive
1732   --enable-geometry       use geometry class
1733   --enable-log            use logging system
1734   --enable-longlong       use wxLongLong class
1735   --enable-mimetype       use wxMimeTypesManager
1736   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1737   --enable-snglinst       use wxSingleInstanceChecker class
1738   --enable-sound          use wxSound class
1739   --enable-stdpaths       use wxStandardPaths class
1740   --enable-stopwatch      use wxStopWatch class
1741   --enable-streams        use wxStream etc classes
1742   --enable-sysoptions     use wxSystemOptions
1743   --enable-tarstream      use wxTar streams
1744   --enable-textbuf        use wxTextBuffer class
1745   --enable-textfile       use wxTextFile class
1746   --enable-timer          use wxTimer class
1747   --enable-variant        use wxVariant class
1748   --enable-zipstream      use wxZip streams
1749   --enable-url            use wxURL class
1750   --enable-protocol       use wxProtocol class
1751   --enable-protocol-http  HTTP support in wxProtocol
1752   --enable-protocol-ftp   FTP support in wxProtocol
1753   --enable-protocol-file  FILE support in wxProtocol
1754   --enable-threads        use threads
1755   --enable-iniconf        use wxIniConfig (Win32 only)
1756   --enable-regkey         use wxRegKey class (Win32 only)
1757   --enable-docview        use document view architecture
1758   --enable-help           use help subsystem
1759   --enable-mshtmlhelp     use MS HTML Help (win32)
1760   --enable-html           use wxHTML sub-library
1761   --enable-htmlhelp       use wxHTML-based help
1762   --enable-xrc            use XRC resources sub-library
1763   --enable-aui            use AUI docking library
1764   --enable-propgrid       use wxPropertyGrid library
1765   --enable-stc            use wxStyledTextCtrl library
1766   --enable-constraints    use layout-constraints system
1767   --enable-loggui         use standard GUI logger
1768   --enable-logwin         use wxLogWindow
1769   --enable-logdialog      use wxLogDialog
1770   --enable-mdi            use multiple document interface architecture
1771   --enable-mdidoc         use docview architecture with MDI
1772   --enable-mediactrl      use wxMediaCtrl class
1773   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1774   --enable-webkit         use wxWebKitCtrl (Mac)
1775   --enable-richtext       use wxRichTextCtrl
1776   --enable-graphics_ctx   use graphics context 2D drawing API
1777   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1778   --enable-printarch      use printing architecture
1779   --enable-svg            use wxSVGFileDC device context
1780   --enable-clipboard      use wxClipboard class
1781   --enable-dnd            use Drag'n'Drop classes
1782   --enable-metafile       use win32 metafiles
1783   --disable-controls      disable compilation of all standard controls
1784   --enable-accel          use accelerators
1785   --enable-animatectrl    use wxAnimationCtrl class
1786   --enable-bmpbutton      use wxBitmapButton class
1787   --enable-bmpcombobox    use wxBitmapComboBox class
1788   --enable-button         use wxButton class
1789   --enable-calendar       use wxCalendarCtrl class
1790   --enable-caret          use wxCaret class
1791   --enable-checkbox       use wxCheckBox class
1792   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1793   --enable-choice         use wxChoice class
1794   --enable-choicebook     use wxChoicebook class
1795   --enable-collpane       use wxCollapsiblePane class
1796   --enable-colourpicker   use wxColourPickerCtrl class
1797   --enable-combobox       use wxComboBox class
1798   --enable-comboctrl      use wxComboCtrl class
1799   --enable-dataviewctrl   use wxDataViewCtrl class
1800   --enable-datepick       use wxDatePickerCtrl class
1801   --enable-detect_sm      use code to detect X11 session manager
1802   --enable-dirpicker      use wxDirPickerCtrl class
1803   --enable-display        use wxDisplay class
1804   --enable-editablebox    use wxEditableListBox class
1805   --enable-filectrl       use wxFileCtrl class
1806   --enable-filepicker     use wxFilePickerCtrl class
1807   --enable-fontpicker     use wxFontPickerCtrl class
1808   --enable-gauge          use wxGauge class
1809   --enable-grid           use wxGrid class
1810   --enable-headerctrl     use wxHeaderCtrl class
1811   --enable-hyperlink      use wxHyperlinkCtrl class
1812   --enable-imaglist       use wxImageList class
1813   --enable-listbook       use wxListbook class
1814   --enable-listbox        use wxListBox class
1815   --enable-listctrl       use wxListCtrl class
1816   --enable-notebook       use wxNotebook class
1817   --enable-notifmsg       use wxNotificationMessage class
1818   --enable-odcombobox     use wxOwnerDrawnComboBox class
1819   --enable-popupwin       use wxPopUpWindow class
1820   --enable-radiobox       use wxRadioBox class
1821   --enable-radiobtn       use wxRadioButton class
1822   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1823   --enable-sash           use wxSashWindow class
1824   --enable-scrollbar      use wxScrollBar class and scrollable windows
1825   --enable-searchctrl     use wxSearchCtrl class
1826   --enable-slider         use wxSlider class
1827   --enable-spinbtn        use wxSpinButton class
1828   --enable-spinctrl       use wxSpinCtrl class
1829   --enable-splitter       use wxSplitterWindow class
1830   --enable-statbmp        use wxStaticBitmap class
1831   --enable-statbox        use wxStaticBox class
1832   --enable-statline       use wxStaticLine class
1833   --enable-stattext       use wxStaticText class
1834   --enable-statusbar      use wxStatusBar class
1835   --enable-taskbaricon    use wxTaskBarIcon class
1836   --enable-tbarnative     use native wxToolBar class
1837   --enable-textctrl       use wxTextCtrl class
1838   --enable-tipwindow      use wxTipWindow class
1839   --enable-togglebtn      use wxToggleButton class
1840   --enable-toolbar        use wxToolBar class
1841   --enable-toolbook       use wxToolbook class
1842   --enable-treebook       use wxTreebook class
1843   --enable-treectrl       use wxTreeCtrl class
1844   --enable-commondlg      use all common dialogs
1845   --enable-aboutdlg       use wxAboutBox
1846   --enable-choicedlg      use wxChoiceDialog
1847   --enable-coldlg         use wxColourDialog
1848   --enable-filedlg        use wxFileDialog
1849   --enable-finddlg        use wxFindReplaceDialog
1850   --enable-fontdlg        use wxFontDialog
1851   --enable-dirdlg         use wxDirDialog
1852   --enable-msgdlg         use wxMessageDialog
1853   --enable-numberdlg      use wxNumberEntryDialog
1854   --enable-splash         use wxSplashScreen
1855   --enable-textdlg        use wxTextDialog
1856   --enable-tipdlg         use startup tips
1857   --enable-progressdlg    use wxProgressDialog
1858   --enable-wizarddlg      use wxWizard
1859   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1860   --enable-miniframe      use wxMiniFrame class
1861   --enable-tooltips       use wxToolTip class
1862   --enable-splines        use spline drawing code
1863   --enable-mousewheel     use mousewheel
1864   --enable-validators     use wxValidator and derived classes
1865   --enable-busyinfo       use wxBusyInfo
1866   --enable-joystick       use wxJoystick
1867   --enable-metafiles      use wxMetaFile (Win32 only)
1868   --enable-dragimage      use wxDragImage
1869   --enable-accessibility  enable accessibility support
1870   --enable-palette        use wxPalette class
1871   --enable-image          use wxImage class
1872   --enable-gif            use gif images (GIF file format)
1873   --enable-pcx            use pcx images (PCX file format)
1874   --enable-tga            use tga images (TGA file format)
1875   --enable-iff            use iff images (IFF file format)
1876   --enable-pnm            use pnm images (PNM file format)
1877   --enable-xpm            use xpm images (XPM file format)
1878   --enable-ico_cur        use Windows ICO and CUR formats
1879   --enable-dccache        cache temporary wxDC objects (Win32 only)
1880   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1881   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1882   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1883   --enable-wxdib          use wxDIB class (Win32 only)
1884   --enable-autoidman      use automatic ids management
1885   --disable-largefile     omit support for large files
1886   --disable-gtktest       do not try to compile and run a test GTK+ program
1887   --disable-gtktest       Do not try to compile and run a test GTK program
1888   --disable-sdltest       Do not try to compile and run a test SDL program
1889   --enable-omf            use OMF object format (OS/2)
1890   --disable-dependency-tracking
1891                           don't use dependency tracking even if the compiler
1892                           can
1893   --disable-precomp-headers
1894                           don't use precompiled headers even if compiler can
1895
1896 Optional Packages:
1897   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1898   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1899   --without-subdirs       don't generate makefiles for samples/demos/...
1900   --with-flavour=NAME     specify a name to identify this build
1901   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1902   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1903   --with-motif            use Motif/Lesstif
1904   --with-osx_carbon       use Mac OS X (Carbon)
1905   --with-osx_cocoa        use Mac OS X (Cocoa)
1906   --with-mac              use Mac OS X (Default)
1907   --with-cocoa            use Cocoa
1908   --with-wine             use Wine
1909   --with-msw              use MS-Windows
1910   --with-pm               use OS/2 Presentation Manager
1911   --with-mgl              use SciTech MGL
1912   --with-directfb         use DirectFB
1913   --with-microwin         use MicroWindows
1914   --with-x11              use X11
1915   --with-libpng           use libpng (PNG image format)
1916   --with-libjpeg          use libjpeg (JPEG file format)
1917   --with-libtiff          use libtiff (TIFF file format)
1918   --with-libxpm           use libxpm (XPM file format)
1919   --with-libiconv         use libiconv (character conversion)
1920   --with-libmspack        use libmspack (CHM help files loading)
1921   --without-gtkprint      don't use GTK printing support
1922   --without-gnomeprint    don't use GNOME printing libraries
1923   --with-gnomevfs         use GNOME VFS for associating MIME types
1924   --with-hildon           use Hildon framework for Nokia 770
1925   --with-opengl           use OpenGL (or Mesa)
1926   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1927   --with-sdl              use SDL for audio on Unix
1928   --with-regex            enable support for wxRegEx class
1929   --with-zlib             use zlib for LZW compression
1930   --with-expat            enable XML support using expat parser
1931   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1932   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1933   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1934   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1935   --with-x                use the X Window System
1936   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1937   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1938   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1939   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1940   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1941
1942 Some influential environment variables:
1943   CC          C compiler command
1944   CFLAGS      C compiler flags
1945   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1946               nonstandard directory <lib dir>
1947   LIBS        libraries to pass to the linker, e.g. -l<library>
1948   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1949               you have headers in a nonstandard directory <include dir>
1950   CPP         C preprocessor
1951   CXX         C++ compiler command
1952   CXXFLAGS    C++ compiler flags
1953   PKG_CONFIG  path to pkg-config utility
1954   DIRECTFB_CFLAGS
1955               C compiler flags for DIRECTFB, overriding pkg-config
1956   DIRECTFB_LIBS
1957               linker flags for DIRECTFB, overriding pkg-config
1958   XMKMF       Path to xmkmf, Makefile generator for X Window System
1959   PANGOX_CFLAGS
1960               C compiler flags for PANGOX, overriding pkg-config
1961   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1962   PANGOFT2_CFLAGS
1963               C compiler flags for PANGOFT2, overriding pkg-config
1964   PANGOFT2_LIBS
1965               linker flags for PANGOFT2, overriding pkg-config
1966   PANGOXFT_CFLAGS
1967               C compiler flags for PANGOXFT, overriding pkg-config
1968   PANGOXFT_LIBS
1969               linker flags for PANGOXFT, overriding pkg-config
1970   GTKPRINT_CFLAGS
1971               C compiler flags for GTKPRINT, overriding pkg-config
1972   GTKPRINT_LIBS
1973               linker flags for GTKPRINT, overriding pkg-config
1974   LIBGNOMEPRINTUI_CFLAGS
1975               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1976   LIBGNOMEPRINTUI_LIBS
1977               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1978   GNOMEVFS_CFLAGS
1979               C compiler flags for GNOMEVFS, overriding pkg-config
1980   GNOMEVFS_LIBS
1981               linker flags for GNOMEVFS, overriding pkg-config
1982   HILDON_CFLAGS
1983               C compiler flags for HILDON, overriding pkg-config
1984   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1985   CAIRO_CFLAGS
1986               C compiler flags for CAIRO, overriding pkg-config
1987   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1988   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1989   GST_LIBS    linker flags for GST, overriding pkg-config
1990
1991 Use these variables to override the choices made by `configure' or to help
1992 it to find libraries and programs with nonstandard names/locations.
1993
1994 Report bugs to <wx-dev@lists.wxwidgets.org>.
1995 _ACEOF
1996 ac_status=$?
1997 fi
1998
1999 if test "$ac_init_help" = "recursive"; then
2000   # If there are subdirs, report their specific --help.
2001   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2002     test -d "$ac_dir" || continue
2003     ac_builddir=.
2004
2005 case "$ac_dir" in
2006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2007 *)
2008   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2009   # A ".." for each directory in $ac_dir_suffix.
2010   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2011   case $ac_top_builddir_sub in
2012   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2013   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2014   esac ;;
2015 esac
2016 ac_abs_top_builddir=$ac_pwd
2017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2018 # for backward compatibility:
2019 ac_top_builddir=$ac_top_build_prefix
2020
2021 case $srcdir in
2022   .)  # We are building in place.
2023     ac_srcdir=.
2024     ac_top_srcdir=$ac_top_builddir_sub
2025     ac_abs_top_srcdir=$ac_pwd ;;
2026   [\\/]* | ?:[\\/]* )  # Absolute name.
2027     ac_srcdir=$srcdir$ac_dir_suffix;
2028     ac_top_srcdir=$srcdir
2029     ac_abs_top_srcdir=$srcdir ;;
2030   *) # Relative name.
2031     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2032     ac_top_srcdir=$ac_top_build_prefix$srcdir
2033     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2034 esac
2035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2036
2037     cd "$ac_dir" || { ac_status=$?; continue; }
2038     # Check for guested configure.
2039     if test -f "$ac_srcdir/configure.gnu"; then
2040       echo &&
2041       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2042     elif test -f "$ac_srcdir/configure"; then
2043       echo &&
2044       $SHELL "$ac_srcdir/configure" --help=recursive
2045     else
2046       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2047     fi || ac_status=$?
2048     cd "$ac_pwd" || { ac_status=$?; break; }
2049   done
2050 fi
2051
2052 test -n "$ac_init_help" && exit $ac_status
2053 if $ac_init_version; then
2054   cat <<\_ACEOF
2055 wxWidgets configure 2.9.1
2056 generated by GNU Autoconf 2.61
2057
2058 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2059 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2060 This configure script is free software; the Free Software Foundation
2061 gives unlimited permission to copy, distribute and modify it.
2062 _ACEOF
2063   exit
2064 fi
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by wxWidgets $as_me 2.9.1, which was
2070 generated by GNU Autoconf 2.61.  Invocation command line was
2071
2072   $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2090
2091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   echo "PATH: $as_dir"
2107 done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133   for ac_arg
2134   do
2135     case $ac_arg in
2136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138     | -silent | --silent | --silen | --sile | --sil)
2139       continue ;;
2140     *\'*)
2141       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142     esac
2143     case $ac_pass in
2144     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2145     2)
2146       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2147       if test $ac_must_keep_next = true; then
2148         ac_must_keep_next=false # Got value, back to normal.
2149       else
2150         case $ac_arg in
2151           *=* | --config-cache | -C | -disable-* | --disable-* \
2152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154           | -with-* | --with-* | -without-* | --without-* | --x)
2155             case "$ac_configure_args0 " in
2156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157             esac
2158             ;;
2159           -* ) ac_must_keep_next=true ;;
2160         esac
2161       fi
2162       ac_configure_args="$ac_configure_args '$ac_arg'"
2163       ;;
2164     esac
2165   done
2166 done
2167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log.  We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176   # Save into config.log some information that might help in debugging.
2177   {
2178     echo
2179
2180     cat <<\_ASBOX
2181 ## ---------------- ##
2182 ## Cache variables. ##
2183 ## ---------------- ##
2184 _ASBOX
2185     echo
2186     # The following way of writing the cache mishandles newlines in values,
2187 (
2188   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189     eval ac_val=\$$ac_var
2190     case $ac_val in #(
2191     *${as_nl}*)
2192       case $ac_var in #(
2193       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2194 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2195       esac
2196       case $ac_var in #(
2197       _ | IFS | as_nl) ;; #(
2198       *) $as_unset $ac_var ;;
2199       esac ;;
2200     esac
2201   done
2202   (set) 2>&1 |
2203     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204     *${as_nl}ac_space=\ *)
2205       sed -n \
2206         "s/'\''/'\''\\\\'\'''\''/g;
2207           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208       ;; #(
2209     *)
2210       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211       ;;
2212     esac |
2213     sort
2214 )
2215     echo
2216
2217     cat <<\_ASBOX
2218 ## ----------------- ##
2219 ## Output variables. ##
2220 ## ----------------- ##
2221 _ASBOX
2222     echo
2223     for ac_var in $ac_subst_vars
2224     do
2225       eval ac_val=\$$ac_var
2226       case $ac_val in
2227       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228       esac
2229       echo "$ac_var='\''$ac_val'\''"
2230     done | sort
2231     echo
2232
2233     if test -n "$ac_subst_files"; then
2234       cat <<\_ASBOX
2235 ## ------------------- ##
2236 ## File substitutions. ##
2237 ## ------------------- ##
2238 _ASBOX
2239       echo
2240       for ac_var in $ac_subst_files
2241       do
2242         eval ac_val=\$$ac_var
2243         case $ac_val in
2244         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245         esac
2246         echo "$ac_var='\''$ac_val'\''"
2247       done | sort
2248       echo
2249     fi
2250
2251     if test -s confdefs.h; then
2252       cat <<\_ASBOX
2253 ## ----------- ##
2254 ## confdefs.h. ##
2255 ## ----------- ##
2256 _ASBOX
2257       echo
2258       cat confdefs.h
2259       echo
2260     fi
2261     test "$ac_signal" != 0 &&
2262       echo "$as_me: caught signal $ac_signal"
2263     echo "$as_me: exit $exit_status"
2264   } >&5
2265   rm -f core *.core core.conftest.* &&
2266     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267     exit $exit_status
2268 ' 0
2269 for ac_signal in 1 2 13 15; do
2270   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2271 done
2272 ac_signal=0
2273
2274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2275 rm -f -r conftest* confdefs.h
2276
2277 # Predefined preprocessor variables.
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_NAME "$PACKAGE_NAME"
2281 _ACEOF
2282
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2286 _ACEOF
2287
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2291 _ACEOF
2292
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2296 _ACEOF
2297
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301 _ACEOF
2302
2303
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer explicitly selected file to automatically selected ones.
2306 if test -n "$CONFIG_SITE"; then
2307   set x "$CONFIG_SITE"
2308 elif test "x$prefix" != xNONE; then
2309   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2310 else
2311   set x "$ac_default_prefix/share/config.site" \
2312         "$ac_default_prefix/etc/config.site"
2313 fi
2314 shift
2315 for ac_site_file
2316 do
2317   if test -r "$ac_site_file"; then
2318     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2319 echo "$as_me: loading site script $ac_site_file" >&6;}
2320     sed 's/^/| /' "$ac_site_file" >&5
2321     . "$ac_site_file"
2322   fi
2323 done
2324
2325 if test -r "$cache_file"; then
2326   # Some versions of bash will fail to source /dev/null (special
2327   # files actually), so we avoid doing that.
2328   if test -f "$cache_file"; then
2329     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2330 echo "$as_me: loading cache $cache_file" >&6;}
2331     case $cache_file in
2332       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333       *)                      . "./$cache_file";;
2334     esac
2335   fi
2336 else
2337   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2338 echo "$as_me: creating cache $cache_file" >&6;}
2339   >$cache_file
2340 fi
2341
2342 # Check that the precious variables saved in the cache have kept the same
2343 # value.
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347   eval ac_new_set=\$ac_env_${ac_var}_set
2348   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349   eval ac_new_val=\$ac_env_${ac_var}_value
2350   case $ac_old_set,$ac_new_set in
2351     set,)
2352       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354       ac_cache_corrupted=: ;;
2355     ,set)
2356       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2357 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358       ac_cache_corrupted=: ;;
2359     ,);;
2360     *)
2361       if test "x$ac_old_val" != "x$ac_new_val"; then
2362         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2363 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2364         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2365 echo "$as_me:   former value:  $ac_old_val" >&2;}
2366         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2367 echo "$as_me:   current value: $ac_new_val" >&2;}
2368         ac_cache_corrupted=:
2369       fi;;
2370   esac
2371   # Pass precious variables to config.status.
2372   if test "$ac_new_set" = set; then
2373     case $ac_new_val in
2374     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375     *) ac_arg=$ac_var=$ac_new_val ;;
2376     esac
2377     case " $ac_configure_args " in
2378       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2379       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2380     esac
2381   fi
2382 done
2383 if $ac_cache_corrupted; then
2384   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2385 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2386   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2387 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2388    { (exit 1); exit 1; }; }
2389 fi
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415 ac_ext=c
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420
2421
2422
2423
2424
2425 ac_aux_dir=
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427   if test -f "$ac_dir/install-sh"; then
2428     ac_aux_dir=$ac_dir
2429     ac_install_sh="$ac_aux_dir/install-sh -c"
2430     break
2431   elif test -f "$ac_dir/install.sh"; then
2432     ac_aux_dir=$ac_dir
2433     ac_install_sh="$ac_aux_dir/install.sh -c"
2434     break
2435   elif test -f "$ac_dir/shtool"; then
2436     ac_aux_dir=$ac_dir
2437     ac_install_sh="$ac_aux_dir/shtool install -c"
2438     break
2439   fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2443 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2444    { (exit 1); exit 1; }; }
2445 fi
2446
2447 # These three variables are undocumented and unsupported,
2448 # and are intended to be withdrawn in a future Autoconf release.
2449 # They can cause serious problems if a builder's source tree is in a directory
2450 # whose full name contains unusual characters.
2451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2453 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2454
2455
2456 # Make sure we can run config.sub.
2457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2458   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2459 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2460    { (exit 1); exit 1; }; }
2461
2462 { echo "$as_me:$LINENO: checking build system type" >&5
2463 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2464 if test "${ac_cv_build+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   ac_build_alias=$build_alias
2468 test "x$ac_build_alias" = x &&
2469   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2470 test "x$ac_build_alias" = x &&
2471   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2473    { (exit 1); exit 1; }; }
2474 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2475   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2477    { (exit 1); exit 1; }; }
2478
2479 fi
2480 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2481 echo "${ECHO_T}$ac_cv_build" >&6; }
2482 case $ac_cv_build in
2483 *-*-*) ;;
2484 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2485 echo "$as_me: error: invalid value of canonical build" >&2;}
2486    { (exit 1); exit 1; }; };;
2487 esac
2488 build=$ac_cv_build
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_build
2491 shift
2492 build_cpu=$1
2493 build_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 build_os=$*
2498 IFS=$ac_save_IFS
2499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2500
2501
2502 { echo "$as_me:$LINENO: checking host system type" >&5
2503 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2504 if test "${ac_cv_host+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test "x$host_alias" = x; then
2508   ac_cv_host=$ac_cv_build
2509 else
2510   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2511     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2512 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2513    { (exit 1); exit 1; }; }
2514 fi
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2518 echo "${ECHO_T}$ac_cv_host" >&6; }
2519 case $ac_cv_host in
2520 *-*-*) ;;
2521 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2522 echo "$as_me: error: invalid value of canonical host" >&2;}
2523    { (exit 1); exit 1; }; };;
2524 esac
2525 host=$ac_cv_host
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_host
2528 shift
2529 host_cpu=$1
2530 host_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 host_os=$*
2535 IFS=$ac_save_IFS
2536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2537
2538
2539
2540 if test "$cross_compiling" != "no"; then
2541     HOST_PREFIX="${host_alias}-"
2542     HOST_SUFFIX="-$host_alias"
2543 else
2544     HOST_PREFIX=
2545     HOST_SUFFIX=
2546 fi
2547
2548
2549 wx_major_version_number=2
2550 wx_minor_version_number=9
2551 wx_release_number=1
2552 wx_subrelease_number=0
2553
2554 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2555 WX_VERSION=$WX_RELEASE.$wx_release_number
2556 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2557
2558 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2559
2560
2561 wx_top_builddir="`pwd`"
2562
2563
2564
2565
2566 USE_UNIX=1
2567 USE_OS2=0
2568 USE_WIN32=0
2569 USE_DOS=0
2570 USE_BEOS=0
2571 USE_MAC=0
2572
2573 USE_AIX=
2574 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2575 USE_GNU=                            USE_HPUX=
2576 USE_LINUX=
2577 USE_NETBSD=
2578 USE_OPENBSD=
2579 USE_OSF=                            USE_SGI=
2580 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2581 USE_ULTRIX=
2582 USE_UNIXWARE=
2583
2584 USE_ALPHA=
2585
2586 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2587
2588 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2589
2590 DEFAULT_wxUSE_COCOA=0
2591 DEFAULT_wxUSE_GTK=0
2592 DEFAULT_wxUSE_OSX_CARBON=0
2593 DEFAULT_wxUSE_OSX_COCOA=0
2594 DEFAULT_wxUSE_MGL=0
2595 DEFAULT_wxUSE_MICROWIN=0
2596 DEFAULT_wxUSE_MOTIF=0
2597 DEFAULT_wxUSE_MSW=0
2598 DEFAULT_wxUSE_PM=0
2599 DEFAULT_wxUSE_X11=0
2600 DEFAULT_wxUSE_DFB=0
2601
2602 DEFAULT_DEFAULT_wxUSE_COCOA=0
2603 DEFAULT_DEFAULT_wxUSE_GTK=0
2604 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2605 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2606 DEFAULT_DEFAULT_wxUSE_MGL=0
2607 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2608 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2609 DEFAULT_DEFAULT_wxUSE_MSW=0
2610 DEFAULT_DEFAULT_wxUSE_PM=0
2611 DEFAULT_DEFAULT_wxUSE_X11=0
2612 DEFAULT_DEFAULT_wxUSE_DFB=0
2613
2614 PROGRAM_EXT=
2615 SAMPLES_RPATH_FLAG=
2616 DYLIB_RPATH_INSTALL=
2617 DYLIB_RPATH_POSTLINK=
2618
2619 DEFAULT_STD_FLAG=yes
2620
2621 case "${host}" in
2622   *-hp-hpux* )
2623     USE_HPUX=1
2624     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2625     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2626     cat >>confdefs.h <<\_ACEOF
2627 #define __HPUX__ 1
2628 _ACEOF
2629
2630
2631             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2632   ;;
2633   *-*-linux* )
2634     USE_LINUX=1
2635     cat >>confdefs.h <<\_ACEOF
2636 #define __LINUX__ 1
2637 _ACEOF
2638
2639     TMP=`uname -m`
2640     if test "x$TMP" = "xalpha"; then
2641       USE_ALPHA=1
2642       cat >>confdefs.h <<\_ACEOF
2643 #define __ALPHA__ 1
2644 _ACEOF
2645
2646     fi
2647     DEFAULT_DEFAULT_wxUSE_GTK=1
2648   ;;
2649   *-*-gnu* | *-*-k*bsd*-gnu )
2650     USE_GNU=1
2651     TMP=`uname -m`
2652     if test "x$TMP" = "xalpha"; then
2653       USE_ALPHA=1
2654       cat >>confdefs.h <<\_ACEOF
2655 #define __ALPHA__ 1
2656 _ACEOF
2657
2658     fi
2659     DEFAULT_DEFAULT_wxUSE_GTK=1
2660   ;;
2661   *-*-irix5* | *-*-irix6* )
2662     USE_SGI=1
2663     USE_SVR4=1
2664     cat >>confdefs.h <<\_ACEOF
2665 #define __SGI__ 1
2666 _ACEOF
2667
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __SVR4__ 1
2670 _ACEOF
2671
2672     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2673   ;;
2674   *-*-solaris2* )
2675     USE_SUN=1
2676     USE_SOLARIS=1
2677     USE_SVR4=1
2678     cat >>confdefs.h <<\_ACEOF
2679 #define __SUN__ 1
2680 _ACEOF
2681
2682     cat >>confdefs.h <<\_ACEOF
2683 #define __SOLARIS__ 1
2684 _ACEOF
2685
2686     cat >>confdefs.h <<\_ACEOF
2687 #define __SVR4__ 1
2688 _ACEOF
2689
2690     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2691     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2692   ;;
2693   *-*-sunos4* )
2694     USE_SUN=1
2695     USE_SUNOS=1
2696     USE_BSD=1
2697     cat >>confdefs.h <<\_ACEOF
2698 #define __SUN__ 1
2699 _ACEOF
2700
2701     cat >>confdefs.h <<\_ACEOF
2702 #define __SUNOS__ 1
2703 _ACEOF
2704
2705     cat >>confdefs.h <<\_ACEOF
2706 #define __BSD__ 1
2707 _ACEOF
2708
2709     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2710   ;;
2711   *-*-freebsd*)
2712     USE_BSD=1
2713     USE_FREEBSD=1
2714     cat >>confdefs.h <<\_ACEOF
2715 #define __FREEBSD__ 1
2716 _ACEOF
2717
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __BSD__ 1
2720 _ACEOF
2721
2722     DEFAULT_DEFAULT_wxUSE_GTK=1
2723   ;;
2724   *-*-openbsd*|*-*-mirbsd*)
2725     USE_BSD=1
2726     USE_OPENBSD=1
2727     cat >>confdefs.h <<\_ACEOF
2728 #define __OPENBSD__ 1
2729 _ACEOF
2730
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __BSD__ 1
2733 _ACEOF
2734
2735     DEFAULT_DEFAULT_wxUSE_GTK=1
2736   ;;
2737   *-*-netbsd*)
2738     USE_BSD=1
2739     USE_NETBSD=1
2740     cat >>confdefs.h <<\_ACEOF
2741 #define __NETBSD__ 1
2742 _ACEOF
2743
2744     cat >>confdefs.h <<\_ACEOF
2745 #define __BSD__ 1
2746 _ACEOF
2747
2748     DEFAULT_DEFAULT_wxUSE_GTK=1
2749     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2750
2751             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2752   ;;
2753   *-*-osf* )
2754     USE_ALPHA=1
2755     USE_OSF=1
2756     cat >>confdefs.h <<\_ACEOF
2757 #define __ALPHA__ 1
2758 _ACEOF
2759
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __OSF__ 1
2762 _ACEOF
2763
2764     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2765     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2766   ;;
2767   *-*-dgux5* )
2768     USE_ALPHA=1
2769     USE_SVR4=1
2770     cat >>confdefs.h <<\_ACEOF
2771 #define __ALPHA__ 1
2772 _ACEOF
2773
2774     cat >>confdefs.h <<\_ACEOF
2775 #define __SVR4__ 1
2776 _ACEOF
2777
2778     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2779   ;;
2780   *-*-sysv5* )
2781     USE_SYSV=1
2782     USE_SVR4=1
2783     cat >>confdefs.h <<\_ACEOF
2784 #define __SYSV__ 1
2785 _ACEOF
2786
2787     cat >>confdefs.h <<\_ACEOF
2788 #define __SVR4__ 1
2789 _ACEOF
2790
2791     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2792   ;;
2793   *-*-aix* )
2794     USE_AIX=1
2795     USE_SYSV=1
2796     USE_SVR4=1
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __AIX__ 1
2799 _ACEOF
2800
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SYSV__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SVR4__ 1
2807 _ACEOF
2808
2809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2810   ;;
2811
2812   *-*-*UnixWare*)
2813     USE_SYSV=1
2814     USE_SVR4=1
2815     USE_UNIXWARE=1
2816     cat >>confdefs.h <<\_ACEOF
2817 #define __UNIXWARE__ 1
2818 _ACEOF
2819
2820   ;;
2821
2822   *-*-cygwin* | *-*-mingw32* )
2823                 PROGRAM_EXT=".exe"
2824     DEFAULT_DEFAULT_wxUSE_MSW=1
2825   ;;
2826
2827   *-pc-msdosdjgpp )
2828     USE_UNIX=0
2829     USE_DOS=1
2830     cat >>confdefs.h <<\_ACEOF
2831 #define __DOS__ 1
2832 _ACEOF
2833
2834     PROGRAM_EXT=".exe"
2835     DEFAULT_DEFAULT_wxUSE_MGL=1
2836   ;;
2837
2838   *-pc-os2_emx | *-pc-os2-emx )
2839     cat >>confdefs.h <<\_ACEOF
2840 #define __EMX__ 1
2841 _ACEOF
2842
2843     USE_OS2=1
2844     cat >>confdefs.h <<\_ACEOF
2845 #define __OS2__ 1
2846 _ACEOF
2847
2848     PROGRAM_EXT=".exe"
2849     DEFAULT_DEFAULT_wxUSE_PM=1
2850         CXX=gcc
2851     LDFLAGS="$LDFLAGS -Zcrtdll"
2852                         ac_executable_extensions=".exe"
2853     export ac_executable_extensions
2854             ac_save_IFS="$IFS"
2855     IFS='\\'
2856     ac_TEMP_PATH=
2857     for ac_dir in $PATH; do
2858       IFS=$ac_save_IFS
2859       if test -z "$ac_TEMP_PATH"; then
2860         ac_TEMP_PATH="$ac_dir"
2861       else
2862         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2863       fi
2864     done
2865     export PATH="$ac_TEMP_PATH"
2866     unset ac_TEMP_PATH
2867     DEFAULT_STD_FLAG=no
2868   ;;
2869
2870   *-*-darwin* )
2871         USE_BSD=1
2872     USE_DARWIN=1
2873     cat >>confdefs.h <<\_ACEOF
2874 #define __BSD__ 1
2875 _ACEOF
2876
2877     cat >>confdefs.h <<\_ACEOF
2878 #define __DARWIN__ 1
2879 _ACEOF
2880
2881     cat >>confdefs.h <<\_ACEOF
2882 #define TARGET_CARBON 1
2883 _ACEOF
2884
2885     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2886   ;;
2887
2888   *-*-beos* )
2889         USE_BEOS=1
2890     cat >>confdefs.h <<\_ACEOF
2891 #define __BEOS__ 1
2892 _ACEOF
2893
2894   ;;
2895
2896   *)
2897     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2898 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2899     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2900 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2901
2902     DEFAULT_DEFAULT_wxUSE_X11=1
2903     DEFAULT_wxUSE_SHARED=no
2904 esac
2905
2906
2907
2908 DEFAULT_wxUSE_ALL_FEATURES=yes
2909
2910 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2911 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2912
2913 DEFAULT_wxUSE_DMALLOC=no
2914 DEFAULT_wxUSE_LIBGNOMEVFS=no
2915 DEFAULT_wxUSE_LIBHILDON=no
2916 DEFAULT_wxUSE_LIBMSPACK=no
2917 DEFAULT_wxUSE_LIBSDL=no
2918
2919 DEFAULT_wxUSE_ACCESSIBILITY=no
2920 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2921 DEFAULT_wxUSE_IPV6=no
2922 DEFAULT_wxUSE_GSTREAMER8=no
2923
2924 DEFAULT_wxUSE_UNICODE_UTF8=auto
2925 DEFAULT_wxUSE_OPENGL=auto
2926 DEFAULT_wxUSE_MEDIACTRL=auto
2927 DEFAULT_wxUSE_COMPILER_TLS=auto
2928
2929 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2930
2931 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2932
2933 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2934
2935 DEFAULT_wxUSE_GTK2=yes
2936
2937 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2938
2939
2940
2941
2942
2943           enablestring=disable
2944           defaultval=
2945           if test -z "$defaultval"; then
2946               if test x"$enablestring" = xdisable; then
2947                   defaultval=yes
2948               else
2949                   defaultval=no
2950               fi
2951           fi
2952
2953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2954 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2955           # Check whether --enable-gui was given.
2956 if test "${enable_gui+set}" = set; then
2957   enableval=$enable_gui;
2958                           if test "$enableval" = yes; then
2959                             wx_cv_use_gui='wxUSE_GUI=yes'
2960                           else
2961                             wx_cv_use_gui='wxUSE_GUI=no'
2962                           fi
2963
2964 else
2965
2966                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2967
2968 fi
2969
2970
2971           eval "$wx_cv_use_gui"
2972
2973           if test x"$enablestring" = xdisable; then
2974             if test $wxUSE_GUI = no; then
2975               result=yes
2976             else
2977               result=no
2978             fi
2979           else
2980             result=$wxUSE_GUI
2981           fi
2982
2983           { echo "$as_me:$LINENO: result: $result" >&5
2984 echo "${ECHO_T}$result" >&6; }
2985
2986
2987           enablestring=
2988           defaultval=
2989           if test -z "$defaultval"; then
2990               if test x"$enablestring" = xdisable; then
2991                   defaultval=yes
2992               else
2993                   defaultval=no
2994               fi
2995           fi
2996
2997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2998 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
2999           # Check whether --enable-monolithic was given.
3000 if test "${enable_monolithic+set}" = set; then
3001   enableval=$enable_monolithic;
3002                           if test "$enableval" = yes; then
3003                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3004                           else
3005                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3006                           fi
3007
3008 else
3009
3010                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3011
3012 fi
3013
3014
3015           eval "$wx_cv_use_monolithic"
3016
3017           if test x"$enablestring" = xdisable; then
3018             if test $wxUSE_MONOLITHIC = no; then
3019               result=yes
3020             else
3021               result=no
3022             fi
3023           else
3024             result=$wxUSE_MONOLITHIC
3025           fi
3026
3027           { echo "$as_me:$LINENO: result: $result" >&5
3028 echo "${ECHO_T}$result" >&6; }
3029
3030
3031           enablestring=
3032           defaultval=
3033           if test -z "$defaultval"; then
3034               if test x"$enablestring" = xdisable; then
3035                   defaultval=yes
3036               else
3037                   defaultval=no
3038               fi
3039           fi
3040
3041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3042 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3043           # Check whether --enable-plugins was given.
3044 if test "${enable_plugins+set}" = set; then
3045   enableval=$enable_plugins;
3046                           if test "$enableval" = yes; then
3047                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3048                           else
3049                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3050                           fi
3051
3052 else
3053
3054                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3055
3056 fi
3057
3058
3059           eval "$wx_cv_use_plugins"
3060
3061           if test x"$enablestring" = xdisable; then
3062             if test $wxUSE_PLUGINS = no; then
3063               result=yes
3064             else
3065               result=no
3066             fi
3067           else
3068             result=$wxUSE_PLUGINS
3069           fi
3070
3071           { echo "$as_me:$LINENO: result: $result" >&5
3072 echo "${ECHO_T}$result" >&6; }
3073
3074
3075           withstring=without
3076           defaultval=$wxUSE_ALL_FEATURES
3077           if test -z "$defaultval"; then
3078               if test x"$withstring" = xwithout; then
3079                   defaultval=yes
3080               else
3081                   defaultval=no
3082               fi
3083           fi
3084           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3085 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3086
3087 # Check whether --with-subdirs was given.
3088 if test "${with_subdirs+set}" = set; then
3089   withval=$with_subdirs;
3090                         if test "$withval" = yes; then
3091                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3092                         else
3093                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3094                         fi
3095
3096 else
3097
3098                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3099
3100 fi
3101
3102
3103           eval "$wx_cv_use_subdirs"
3104
3105           if test x"$withstring" = xwithout; then
3106             if test $wxWITH_SUBDIRS = yes; then
3107               result=no
3108             else
3109               result=yes
3110             fi
3111           else
3112             result=$wxWITH_SUBDIRS
3113           fi
3114
3115           { echo "$as_me:$LINENO: result: $result" >&5
3116 echo "${ECHO_T}$result" >&6; }
3117
3118
3119 # Check whether --with-flavour was given.
3120 if test "${with_flavour+set}" = set; then
3121   withval=$with_flavour; WX_FLAVOUR="$withval"
3122 fi
3123
3124
3125           enablestring=
3126           defaultval=
3127           if test -z "$defaultval"; then
3128               if test x"$enablestring" = xdisable; then
3129                   defaultval=yes
3130               else
3131                   defaultval=no
3132               fi
3133           fi
3134
3135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3136 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3137           # Check whether --enable-official_build was given.
3138 if test "${enable_official_build+set}" = set; then
3139   enableval=$enable_official_build;
3140                           if test "$enableval" = yes; then
3141                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3142                           else
3143                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3144                           fi
3145
3146 else
3147
3148                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3149
3150 fi
3151
3152
3153           eval "$wx_cv_use_official_build"
3154
3155           if test x"$enablestring" = xdisable; then
3156             if test $wxUSE_OFFICIAL_BUILD = no; then
3157               result=yes
3158             else
3159               result=no
3160             fi
3161           else
3162             result=$wxUSE_OFFICIAL_BUILD
3163           fi
3164
3165           { echo "$as_me:$LINENO: result: $result" >&5
3166 echo "${ECHO_T}$result" >&6; }
3167
3168 # Check whether --enable-vendor was given.
3169 if test "${enable_vendor+set}" = set; then
3170   enableval=$enable_vendor; VENDOR="$enableval"
3171 fi
3172
3173 if test "x$VENDOR" = "x"; then
3174     VENDOR="custom"
3175 fi
3176
3177
3178           enablestring=disable
3179           defaultval=
3180           if test -z "$defaultval"; then
3181               if test x"$enablestring" = xdisable; then
3182                   defaultval=yes
3183               else
3184                   defaultval=no
3185               fi
3186           fi
3187
3188           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3189 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3190           # Check whether --enable-all-features was given.
3191 if test "${enable_all_features+set}" = set; then
3192   enableval=$enable_all_features;
3193                           if test "$enableval" = yes; then
3194                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3195                           else
3196                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3197                           fi
3198
3199 else
3200
3201                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3202
3203 fi
3204
3205
3206           eval "$wx_cv_use_all_features"
3207
3208           if test x"$enablestring" = xdisable; then
3209             if test $wxUSE_ALL_FEATURES = no; then
3210               result=yes
3211             else
3212               result=no
3213             fi
3214           else
3215             result=$wxUSE_ALL_FEATURES
3216           fi
3217
3218           { echo "$as_me:$LINENO: result: $result" >&5
3219 echo "${ECHO_T}$result" >&6; }
3220
3221
3222 if test "$wxUSE_ALL_FEATURES" = "no"; then
3223                     DEFAULT_wxUSE_MEDIACTRL=no
3224 fi
3225
3226
3227 if test "$wxUSE_GUI" = "yes"; then
3228
3229
3230           enablestring=
3231           defaultval=
3232           if test -z "$defaultval"; then
3233               if test x"$enablestring" = xdisable; then
3234                   defaultval=yes
3235               else
3236                   defaultval=no
3237               fi
3238           fi
3239
3240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3241 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3242           # Check whether --enable-universal was given.
3243 if test "${enable_universal+set}" = set; then
3244   enableval=$enable_universal;
3245                           if test "$enableval" = yes; then
3246                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3247                           else
3248                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3249                           fi
3250
3251 else
3252
3253                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3254
3255 fi
3256
3257
3258           eval "$wx_cv_use_universal"
3259
3260           if test x"$enablestring" = xdisable; then
3261             if test $wxUSE_UNIVERSAL = no; then
3262               result=yes
3263             else
3264               result=no
3265             fi
3266           else
3267             result=$wxUSE_UNIVERSAL
3268           fi
3269
3270           { echo "$as_me:$LINENO: result: $result" >&5
3271 echo "${ECHO_T}$result" >&6; }
3272
3273 if test "$wxUSE_UNIVERSAL" = "yes"; then
3274
3275 # Check whether --with-themes was given.
3276 if test "${with_themes+set}" = set; then
3277   withval=$with_themes; wxUNIV_THEMES="$withval"
3278 fi
3279
3280 fi
3281
3282
3283 # Check whether --with-gtk was given.
3284 if test "${with_gtk+set}" = set; then
3285   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3286 fi
3287
3288
3289 # Check whether --with-motif was given.
3290 if test "${with_motif+set}" = set; then
3291   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3292 fi
3293
3294
3295 # Check whether --with-osx_carbon was given.
3296 if test "${with_osx_carbon+set}" = set; then
3297   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3298 fi
3299
3300
3301 # Check whether --with-osx_cocoa was given.
3302 if test "${with_osx_cocoa+set}" = set; then
3303   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3304 fi
3305
3306
3307 # Check whether --with-mac was given.
3308 if test "${with_mac+set}" = set; then
3309   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3310 fi
3311
3312
3313 # Check whether --with-cocoa was given.
3314 if test "${with_cocoa+set}" = set; then
3315   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3316 fi
3317
3318
3319 # Check whether --with-wine was given.
3320 if test "${with_wine+set}" = set; then
3321   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3322 fi
3323
3324
3325 # Check whether --with-msw was given.
3326 if test "${with_msw+set}" = set; then
3327   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3328 fi
3329
3330
3331 # Check whether --with-pm was given.
3332 if test "${with_pm+set}" = set; then
3333   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3334 fi
3335
3336
3337 # Check whether --with-mgl was given.
3338 if test "${with_mgl+set}" = set; then
3339   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3340 fi
3341
3342
3343 # Check whether --with-directfb was given.
3344 if test "${with_directfb+set}" = set; then
3345   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3346 fi
3347
3348
3349 # Check whether --with-microwin was given.
3350 if test "${with_microwin+set}" = set; then
3351   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3352 fi
3353
3354
3355 # Check whether --with-x11 was given.
3356 if test "${with_x11+set}" = set; then
3357   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3358 fi
3359
3360
3361           enablestring=
3362           defaultval=
3363           if test -z "$defaultval"; then
3364               if test x"$enablestring" = xdisable; then
3365                   defaultval=yes
3366               else
3367                   defaultval=no
3368               fi
3369           fi
3370
3371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3372 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3373           # Check whether --enable-nanox was given.
3374 if test "${enable_nanox+set}" = set; then
3375   enableval=$enable_nanox;
3376                           if test "$enableval" = yes; then
3377                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3378                           else
3379                             wx_cv_use_nanox='wxUSE_NANOX=no'
3380                           fi
3381
3382 else
3383
3384                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3385
3386 fi
3387
3388
3389           eval "$wx_cv_use_nanox"
3390
3391           if test x"$enablestring" = xdisable; then
3392             if test $wxUSE_NANOX = no; then
3393               result=yes
3394             else
3395               result=no
3396             fi
3397           else
3398             result=$wxUSE_NANOX
3399           fi
3400
3401           { echo "$as_me:$LINENO: result: $result" >&5
3402 echo "${ECHO_T}$result" >&6; }
3403
3404
3405 # Check whether --enable-gtk2 was given.
3406 if test "${enable_gtk2+set}" = set; then
3407   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3408 fi
3409
3410
3411           enablestring=
3412           defaultval=
3413           if test -z "$defaultval"; then
3414               if test x"$enablestring" = xdisable; then
3415                   defaultval=yes
3416               else
3417                   defaultval=no
3418               fi
3419           fi
3420
3421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3422 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3423           # Check whether --enable-gpe was given.
3424 if test "${enable_gpe+set}" = set; then
3425   enableval=$enable_gpe;
3426                           if test "$enableval" = yes; then
3427                             wx_cv_use_gpe='wxUSE_GPE=yes'
3428                           else
3429                             wx_cv_use_gpe='wxUSE_GPE=no'
3430                           fi
3431
3432 else
3433
3434                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3435
3436 fi
3437
3438
3439           eval "$wx_cv_use_gpe"
3440
3441           if test x"$enablestring" = xdisable; then
3442             if test $wxUSE_GPE = no; then
3443               result=yes
3444             else
3445               result=no
3446             fi
3447           else
3448             result=$wxUSE_GPE
3449           fi
3450
3451           { echo "$as_me:$LINENO: result: $result" >&5
3452 echo "${ECHO_T}$result" >&6; }
3453
3454
3455
3456 { echo "$as_me:$LINENO: checking for toolkit" >&5
3457 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3458
3459
3460
3461 # In Wine, we need to default to MSW, not GTK or MOTIF
3462 if test "$wxUSE_WINE" = "yes"; then
3463     DEFAULT_DEFAULT_wxUSE_GTK=0
3464     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3465     DEFAULT_DEFAULT_wxUSE_MSW=1
3466     wxUSE_SHARED=no
3467     CC=${CC:-winegcc}
3468     CXX=${CXX:-wineg++}
3469 fi
3470
3471
3472 if test "$wxUSE_GUI" = "yes"; then
3473
3474     if test "$USE_BEOS" = 1; then
3475         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3476 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3477    { (exit 1); exit 1; }; }
3478     fi
3479
3480     if test "$TOOLKIT_GIVEN" = 1; then
3481             for toolkit in $ALL_TOOLKITS; do
3482         var=wxUSE_$toolkit
3483         eval "value=\$${var}"
3484         if test "x$value" = "xno"; then
3485           eval "$var=0"
3486         elif test "x$value" != "x"; then
3487           eval "$var=1"
3488         fi
3489
3490         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3491           eval "wx${toolkit}_VERSION=$value"
3492         fi
3493       done
3494     else
3495             for toolkit in $ALL_TOOLKITS; do
3496         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3497         eval "wxUSE_$toolkit=\$${var}"
3498       done
3499     fi
3500
3501             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3502                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3503                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3504
3505         case "${host}" in
3506       *-pc-os2_emx | *-pc-os2-emx )
3507         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3508     esac
3509
3510     case "$NUM_TOOLKITS" in
3511       1)
3512       ;;
3513       0)
3514         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3515 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3516    { (exit 1); exit 1; }; }
3517       ;;
3518       *)
3519         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3520 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3521    { (exit 1); exit 1; }; }
3522     esac
3523
3524     # to be removed when --disable-gtk2 isn't needed
3525     if test "x$wxUSE_GTK2" = "xyes"; then
3526         wxGTK_VERSION=2
3527     elif test "x$wxUSE_GTK2" = "xno"; then
3528         wxGTK_VERSION=1
3529     fi
3530
3531     for toolkit in $ALL_TOOLKITS; do
3532         var=wxUSE_$toolkit
3533         eval "value=\$${var}"
3534         if test "$value" = 1; then
3535           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3536           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3537 echo "${ECHO_T}$toolkit_echo" >&6; }
3538         fi
3539     done
3540 else
3541     if test "x$host_alias" != "x"; then
3542         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3543 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3544     else
3545         { echo "$as_me:$LINENO: result: base only" >&5
3546 echo "${ECHO_T}base only" >&6; }
3547     fi
3548 fi
3549
3550 wxUSE_MAC=0
3551 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3552     wxUSE_MAC=1
3553 fi
3554
3555
3556
3557           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3558 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3559
3560 # Check whether --with-libpng was given.
3561 if test "${with_libpng+set}" = set; then
3562   withval=$with_libpng;
3563                         if test "$withval" = yes; then
3564                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3565                         elif test "$withval" = no; then
3566                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3567                         elif test "$withval" = sys; then
3568                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3569                         elif test "$withval" = builtin; then
3570                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3571                         else
3572                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3573 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3574    { (exit 1); exit 1; }; }
3575                         fi
3576
3577 else
3578
3579                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3580
3581 fi
3582
3583
3584           eval "$wx_cv_use_libpng"
3585
3586           if test "$wxUSE_LIBPNG" = yes; then
3587             { echo "$as_me:$LINENO: result: yes" >&5
3588 echo "${ECHO_T}yes" >&6; }
3589           elif test "$wxUSE_LIBPNG" = no; then
3590             { echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6; }
3592           elif test "$wxUSE_LIBPNG" = sys; then
3593             { echo "$as_me:$LINENO: result: system version" >&5
3594 echo "${ECHO_T}system version" >&6; }
3595           elif test "$wxUSE_LIBPNG" = builtin; then
3596             { echo "$as_me:$LINENO: result: builtin version" >&5
3597 echo "${ECHO_T}builtin version" >&6; }
3598           else
3599             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3600 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3601    { (exit 1); exit 1; }; }
3602           fi
3603
3604
3605           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3606 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3607
3608 # Check whether --with-libjpeg was given.
3609 if test "${with_libjpeg+set}" = set; then
3610   withval=$with_libjpeg;
3611                         if test "$withval" = yes; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3613                         elif test "$withval" = no; then
3614                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3615                         elif test "$withval" = sys; then
3616                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3617                         elif test "$withval" = builtin; then
3618                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3619                         else
3620                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3621 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3622    { (exit 1); exit 1; }; }
3623                         fi
3624
3625 else
3626
3627                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3628
3629 fi
3630
3631
3632           eval "$wx_cv_use_libjpeg"
3633
3634           if test "$wxUSE_LIBJPEG" = yes; then
3635             { echo "$as_me:$LINENO: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6; }
3637           elif test "$wxUSE_LIBJPEG" = no; then
3638             { echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6; }
3640           elif test "$wxUSE_LIBJPEG" = sys; then
3641             { echo "$as_me:$LINENO: result: system version" >&5
3642 echo "${ECHO_T}system version" >&6; }
3643           elif test "$wxUSE_LIBJPEG" = builtin; then
3644             { echo "$as_me:$LINENO: result: builtin version" >&5
3645 echo "${ECHO_T}builtin version" >&6; }
3646           else
3647             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3648 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3649    { (exit 1); exit 1; }; }
3650           fi
3651
3652
3653           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3654 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3655
3656 # Check whether --with-libtiff was given.
3657 if test "${with_libtiff+set}" = set; then
3658   withval=$with_libtiff;
3659                         if test "$withval" = yes; then
3660                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3661                         elif test "$withval" = no; then
3662                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3663                         elif test "$withval" = sys; then
3664                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3665                         elif test "$withval" = builtin; then
3666                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3667                         else
3668                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3669 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3670    { (exit 1); exit 1; }; }
3671                         fi
3672
3673 else
3674
3675                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3676
3677 fi
3678
3679
3680           eval "$wx_cv_use_libtiff"
3681
3682           if test "$wxUSE_LIBTIFF" = yes; then
3683             { echo "$as_me:$LINENO: result: yes" >&5
3684 echo "${ECHO_T}yes" >&6; }
3685           elif test "$wxUSE_LIBTIFF" = no; then
3686             { echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6; }
3688           elif test "$wxUSE_LIBTIFF" = sys; then
3689             { echo "$as_me:$LINENO: result: system version" >&5
3690 echo "${ECHO_T}system version" >&6; }
3691           elif test "$wxUSE_LIBTIFF" = builtin; then
3692             { echo "$as_me:$LINENO: result: builtin version" >&5
3693 echo "${ECHO_T}builtin version" >&6; }
3694           else
3695             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3696 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3697    { (exit 1); exit 1; }; }
3698           fi
3699
3700
3701           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3702 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3703
3704 # Check whether --with-libxpm was given.
3705 if test "${with_libxpm+set}" = set; then
3706   withval=$with_libxpm;
3707                         if test "$withval" = yes; then
3708                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3709                         elif test "$withval" = no; then
3710                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3711                         elif test "$withval" = sys; then
3712                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3713                         elif test "$withval" = builtin; then
3714                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3715                         else
3716                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3717 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3718    { (exit 1); exit 1; }; }
3719                         fi
3720
3721 else
3722
3723                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3724
3725 fi
3726
3727
3728           eval "$wx_cv_use_libxpm"
3729
3730           if test "$wxUSE_LIBXPM" = yes; then
3731             { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3733           elif test "$wxUSE_LIBXPM" = no; then
3734             { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3736           elif test "$wxUSE_LIBXPM" = sys; then
3737             { echo "$as_me:$LINENO: result: system version" >&5
3738 echo "${ECHO_T}system version" >&6; }
3739           elif test "$wxUSE_LIBXPM" = builtin; then
3740             { echo "$as_me:$LINENO: result: builtin version" >&5
3741 echo "${ECHO_T}builtin version" >&6; }
3742           else
3743             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3744 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3745    { (exit 1); exit 1; }; }
3746           fi
3747
3748
3749           withstring=
3750           defaultval=$wxUSE_ALL_FEATURES
3751           if test -z "$defaultval"; then
3752               if test x"$withstring" = xwithout; then
3753                   defaultval=yes
3754               else
3755                   defaultval=no
3756               fi
3757           fi
3758           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3759 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3760
3761 # Check whether --with-libiconv was given.
3762 if test "${with_libiconv+set}" = set; then
3763   withval=$with_libiconv;
3764                         if test "$withval" = yes; then
3765                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3766                         else
3767                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3768                         fi
3769
3770 else
3771
3772                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3773
3774 fi
3775
3776
3777           eval "$wx_cv_use_libiconv"
3778
3779           if test x"$withstring" = xwithout; then
3780             if test $wxUSE_LIBICONV = yes; then
3781               result=no
3782             else
3783               result=yes
3784             fi
3785           else
3786             result=$wxUSE_LIBICONV
3787           fi
3788
3789           { echo "$as_me:$LINENO: result: $result" >&5
3790 echo "${ECHO_T}$result" >&6; }
3791
3792
3793           withstring=
3794           defaultval=$wxUSE_ALL_FEATURES
3795           if test -z "$defaultval"; then
3796               if test x"$withstring" = xwithout; then
3797                   defaultval=yes
3798               else
3799                   defaultval=no
3800               fi
3801           fi
3802           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3803 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3804
3805 # Check whether --with-libmspack was given.
3806 if test "${with_libmspack+set}" = set; then
3807   withval=$with_libmspack;
3808                         if test "$withval" = yes; then
3809                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3810                         else
3811                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3812                         fi
3813
3814 else
3815
3816                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3817
3818 fi
3819
3820
3821           eval "$wx_cv_use_libmspack"
3822
3823           if test x"$withstring" = xwithout; then
3824             if test $wxUSE_LIBMSPACK = yes; then
3825               result=no
3826             else
3827               result=yes
3828             fi
3829           else
3830             result=$wxUSE_LIBMSPACK
3831           fi
3832
3833           { echo "$as_me:$LINENO: result: $result" >&5
3834 echo "${ECHO_T}$result" >&6; }
3835
3836
3837           withstring=without
3838           defaultval=$wxUSE_ALL_FEATURES
3839           if test -z "$defaultval"; then
3840               if test x"$withstring" = xwithout; then
3841                   defaultval=yes
3842               else
3843                   defaultval=no
3844               fi
3845           fi
3846           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3847 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3848
3849 # Check whether --with-gtkprint was given.
3850 if test "${with_gtkprint+set}" = set; then
3851   withval=$with_gtkprint;
3852                         if test "$withval" = yes; then
3853                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3854                         else
3855                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3856                         fi
3857
3858 else
3859
3860                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3861
3862 fi
3863
3864
3865           eval "$wx_cv_use_gtkprint"
3866
3867           if test x"$withstring" = xwithout; then
3868             if test $wxUSE_GTKPRINT = yes; then
3869               result=no
3870             else
3871               result=yes
3872             fi
3873           else
3874             result=$wxUSE_GTKPRINT
3875           fi
3876
3877           { echo "$as_me:$LINENO: result: $result" >&5
3878 echo "${ECHO_T}$result" >&6; }
3879
3880
3881           withstring=without
3882           defaultval=$wxUSE_ALL_FEATURES
3883           if test -z "$defaultval"; then
3884               if test x"$withstring" = xwithout; then
3885                   defaultval=yes
3886               else
3887                   defaultval=no
3888               fi
3889           fi
3890           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3891 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3892
3893 # Check whether --with-gnomeprint was given.
3894 if test "${with_gnomeprint+set}" = set; then
3895   withval=$with_gnomeprint;
3896                         if test "$withval" = yes; then
3897                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3898                         else
3899                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3900                         fi
3901
3902 else
3903
3904                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3905
3906 fi
3907
3908
3909           eval "$wx_cv_use_gnomeprint"
3910
3911           if test x"$withstring" = xwithout; then
3912             if test $wxUSE_LIBGNOMEPRINT = yes; then
3913               result=no
3914             else
3915               result=yes
3916             fi
3917           else
3918             result=$wxUSE_LIBGNOMEPRINT
3919           fi
3920
3921           { echo "$as_me:$LINENO: result: $result" >&5
3922 echo "${ECHO_T}$result" >&6; }
3923
3924
3925           withstring=
3926           defaultval=$wxUSE_ALL_FEATURES
3927           if test -z "$defaultval"; then
3928               if test x"$withstring" = xwithout; then
3929                   defaultval=yes
3930               else
3931                   defaultval=no
3932               fi
3933           fi
3934           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3935 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3936
3937 # Check whether --with-gnomevfs was given.
3938 if test "${with_gnomevfs+set}" = set; then
3939   withval=$with_gnomevfs;
3940                         if test "$withval" = yes; then
3941                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3942                         else
3943                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3944                         fi
3945
3946 else
3947
3948                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3949
3950 fi
3951
3952
3953           eval "$wx_cv_use_gnomevfs"
3954
3955           if test x"$withstring" = xwithout; then
3956             if test $wxUSE_LIBGNOMEVFS = yes; then
3957               result=no
3958             else
3959               result=yes
3960             fi
3961           else
3962             result=$wxUSE_LIBGNOMEVFS
3963           fi
3964
3965           { echo "$as_me:$LINENO: result: $result" >&5
3966 echo "${ECHO_T}$result" >&6; }
3967
3968
3969           withstring=
3970           defaultval=$wxUSE_ALL_FEATURES
3971           if test -z "$defaultval"; then
3972               if test x"$withstring" = xwithout; then
3973                   defaultval=yes
3974               else
3975                   defaultval=no
3976               fi
3977           fi
3978           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3979 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3980
3981 # Check whether --with-hildon was given.
3982 if test "${with_hildon+set}" = set; then
3983   withval=$with_hildon;
3984                         if test "$withval" = yes; then
3985                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3986                         else
3987                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3988                         fi
3989
3990 else
3991
3992                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3993
3994 fi
3995
3996
3997           eval "$wx_cv_use_hildon"
3998
3999           if test x"$withstring" = xwithout; then
4000             if test $wxUSE_LIBHILDON = yes; then
4001               result=no
4002             else
4003               result=yes
4004             fi
4005           else
4006             result=$wxUSE_LIBHILDON
4007           fi
4008
4009           { echo "$as_me:$LINENO: result: $result" >&5
4010 echo "${ECHO_T}$result" >&6; }
4011
4012
4013           withstring=
4014           defaultval=$wxUSE_ALL_FEATURES
4015           if test -z "$defaultval"; then
4016               if test x"$withstring" = xwithout; then
4017                   defaultval=yes
4018               else
4019                   defaultval=no
4020               fi
4021           fi
4022           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4023 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4024
4025 # Check whether --with-opengl was given.
4026 if test "${with_opengl+set}" = set; then
4027   withval=$with_opengl;
4028                         if test "$withval" = yes; then
4029                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4030                         else
4031                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4032                         fi
4033
4034 else
4035
4036                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4037
4038 fi
4039
4040
4041           eval "$wx_cv_use_opengl"
4042
4043           if test x"$withstring" = xwithout; then
4044             if test $wxUSE_OPENGL = yes; then
4045               result=no
4046             else
4047               result=yes
4048             fi
4049           else
4050             result=$wxUSE_OPENGL
4051           fi
4052
4053           { echo "$as_me:$LINENO: result: $result" >&5
4054 echo "${ECHO_T}$result" >&6; }
4055
4056
4057 fi
4058
4059
4060           withstring=
4061           defaultval=$wxUSE_ALL_FEATURES
4062           if test -z "$defaultval"; then
4063               if test x"$withstring" = xwithout; then
4064                   defaultval=yes
4065               else
4066                   defaultval=no
4067               fi
4068           fi
4069           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4070 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4071
4072 # Check whether --with-dmalloc was given.
4073 if test "${with_dmalloc+set}" = set; then
4074   withval=$with_dmalloc;
4075                         if test "$withval" = yes; then
4076                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4077                         else
4078                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4079                         fi
4080
4081 else
4082
4083                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4084
4085 fi
4086
4087
4088           eval "$wx_cv_use_dmalloc"
4089
4090           if test x"$withstring" = xwithout; then
4091             if test $wxUSE_DMALLOC = yes; then
4092               result=no
4093             else
4094               result=yes
4095             fi
4096           else
4097             result=$wxUSE_DMALLOC
4098           fi
4099
4100           { echo "$as_me:$LINENO: result: $result" >&5
4101 echo "${ECHO_T}$result" >&6; }
4102
4103
4104           withstring=
4105           defaultval=$wxUSE_ALL_FEATURES
4106           if test -z "$defaultval"; then
4107               if test x"$withstring" = xwithout; then
4108                   defaultval=yes
4109               else
4110                   defaultval=no
4111               fi
4112           fi
4113           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4114 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4115
4116 # Check whether --with-sdl was given.
4117 if test "${with_sdl+set}" = set; then
4118   withval=$with_sdl;
4119                         if test "$withval" = yes; then
4120                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4121                         else
4122                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4123                         fi
4124
4125 else
4126
4127                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4128
4129 fi
4130
4131
4132           eval "$wx_cv_use_sdl"
4133
4134           if test x"$withstring" = xwithout; then
4135             if test $wxUSE_LIBSDL = yes; then
4136               result=no
4137             else
4138               result=yes
4139             fi
4140           else
4141             result=$wxUSE_LIBSDL
4142           fi
4143
4144           { echo "$as_me:$LINENO: result: $result" >&5
4145 echo "${ECHO_T}$result" >&6; }
4146
4147
4148           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4149 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4150
4151 # Check whether --with-regex was given.
4152 if test "${with_regex+set}" = set; then
4153   withval=$with_regex;
4154                         if test "$withval" = yes; then
4155                           wx_cv_use_regex='wxUSE_REGEX=yes'
4156                         elif test "$withval" = no; then
4157                           wx_cv_use_regex='wxUSE_REGEX=no'
4158                         elif test "$withval" = sys; then
4159                           wx_cv_use_regex='wxUSE_REGEX=sys'
4160                         elif test "$withval" = builtin; then
4161                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4162                         else
4163                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4164 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4165    { (exit 1); exit 1; }; }
4166                         fi
4167
4168 else
4169
4170                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4171
4172 fi
4173
4174
4175           eval "$wx_cv_use_regex"
4176
4177           if test "$wxUSE_REGEX" = yes; then
4178             { echo "$as_me:$LINENO: result: yes" >&5
4179 echo "${ECHO_T}yes" >&6; }
4180           elif test "$wxUSE_REGEX" = no; then
4181             { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183           elif test "$wxUSE_REGEX" = sys; then
4184             { echo "$as_me:$LINENO: result: system version" >&5
4185 echo "${ECHO_T}system version" >&6; }
4186           elif test "$wxUSE_REGEX" = builtin; then
4187             { echo "$as_me:$LINENO: result: builtin version" >&5
4188 echo "${ECHO_T}builtin version" >&6; }
4189           else
4190             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4191 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4192    { (exit 1); exit 1; }; }
4193           fi
4194
4195
4196           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4197 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4198
4199 # Check whether --with-zlib was given.
4200 if test "${with_zlib+set}" = set; then
4201   withval=$with_zlib;
4202                         if test "$withval" = yes; then
4203                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4204                         elif test "$withval" = no; then
4205                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4206                         elif test "$withval" = sys; then
4207                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4208                         elif test "$withval" = builtin; then
4209                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4210                         else
4211                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4212 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4213    { (exit 1); exit 1; }; }
4214                         fi
4215
4216 else
4217
4218                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4219
4220 fi
4221
4222
4223           eval "$wx_cv_use_zlib"
4224
4225           if test "$wxUSE_ZLIB" = yes; then
4226             { echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6; }
4228           elif test "$wxUSE_ZLIB" = no; then
4229             { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4231           elif test "$wxUSE_ZLIB" = sys; then
4232             { echo "$as_me:$LINENO: result: system version" >&5
4233 echo "${ECHO_T}system version" >&6; }
4234           elif test "$wxUSE_ZLIB" = builtin; then
4235             { echo "$as_me:$LINENO: result: builtin version" >&5
4236 echo "${ECHO_T}builtin version" >&6; }
4237           else
4238             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4239 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4240    { (exit 1); exit 1; }; }
4241           fi
4242
4243
4244           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4245 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4246
4247 # Check whether --with-expat was given.
4248 if test "${with_expat+set}" = set; then
4249   withval=$with_expat;
4250                         if test "$withval" = yes; then
4251                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4252                         elif test "$withval" = no; then
4253                           wx_cv_use_expat='wxUSE_EXPAT=no'
4254                         elif test "$withval" = sys; then
4255                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4256                         elif test "$withval" = builtin; then
4257                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4258                         else
4259                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4260 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4261    { (exit 1); exit 1; }; }
4262                         fi
4263
4264 else
4265
4266                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4267
4268 fi
4269
4270
4271           eval "$wx_cv_use_expat"
4272
4273           if test "$wxUSE_EXPAT" = yes; then
4274             { echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6; }
4276           elif test "$wxUSE_EXPAT" = no; then
4277             { echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6; }
4279           elif test "$wxUSE_EXPAT" = sys; then
4280             { echo "$as_me:$LINENO: result: system version" >&5
4281 echo "${ECHO_T}system version" >&6; }
4282           elif test "$wxUSE_EXPAT" = builtin; then
4283             { echo "$as_me:$LINENO: result: builtin version" >&5
4284 echo "${ECHO_T}builtin version" >&6; }
4285           else
4286             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4287 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4288    { (exit 1); exit 1; }; }
4289           fi
4290
4291
4292 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4293 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4294
4295 # Check whether --with-macosx-sdk was given.
4296 if test "${with_macosx_sdk+set}" = set; then
4297   withval=$with_macosx_sdk;
4298         wxUSE_MACOSX_SDK=$withval
4299         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4300
4301 fi
4302
4303 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4304 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4305
4306 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4307 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4308
4309 # Check whether --with-macosx-version-min was given.
4310 if test "${with_macosx_version_min+set}" = set; then
4311   withval=$with_macosx_version_min;
4312         wxUSE_MACOSX_VERSION_MIN=$withval
4313         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4314
4315 fi
4316
4317 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4318 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4319
4320
4321
4322           enablestring=disable
4323           defaultval=
4324           if test -z "$defaultval"; then
4325               if test x"$enablestring" = xdisable; then
4326                   defaultval=yes
4327               else
4328                   defaultval=no
4329               fi
4330           fi
4331
4332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4333 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4334           # Check whether --enable-shared was given.
4335 if test "${enable_shared+set}" = set; then
4336   enableval=$enable_shared;
4337                           if test "$enableval" = yes; then
4338                             wx_cv_use_shared='wxUSE_SHARED=yes'
4339                           else
4340                             wx_cv_use_shared='wxUSE_SHARED=no'
4341                           fi
4342
4343 else
4344
4345                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4346
4347 fi
4348
4349
4350           eval "$wx_cv_use_shared"
4351
4352           if test x"$enablestring" = xdisable; then
4353             if test $wxUSE_SHARED = no; then
4354               result=yes
4355             else
4356               result=no
4357             fi
4358           else
4359             result=$wxUSE_SHARED
4360           fi
4361
4362           { echo "$as_me:$LINENO: result: $result" >&5
4363 echo "${ECHO_T}$result" >&6; }
4364
4365
4366           enablestring=
4367           defaultval=
4368           if test -z "$defaultval"; then
4369               if test x"$enablestring" = xdisable; then
4370                   defaultval=yes
4371               else
4372                   defaultval=no
4373               fi
4374           fi
4375
4376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4377 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4378           # Check whether --enable-debug was given.
4379 if test "${enable_debug+set}" = set; then
4380   enableval=$enable_debug;
4381                           if test "$enableval" = yes; then
4382                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4383                           else
4384                             wx_cv_use_debug='wxUSE_DEBUG=no'
4385                           fi
4386
4387 else
4388
4389                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4390
4391 fi
4392
4393
4394           eval "$wx_cv_use_debug"
4395
4396           if test x"$enablestring" = xdisable; then
4397             if test $wxUSE_DEBUG = no; then
4398               result=yes
4399             else
4400               result=no
4401             fi
4402           else
4403             result=$wxUSE_DEBUG
4404           fi
4405
4406           { echo "$as_me:$LINENO: result: $result" >&5
4407 echo "${ECHO_T}$result" >&6; }
4408
4409
4410           enablestring=
4411           defaultval=
4412           if test -z "$defaultval"; then
4413               if test x"$enablestring" = xdisable; then
4414                   defaultval=yes
4415               else
4416                   defaultval=no
4417               fi
4418           fi
4419
4420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4421 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4422           # Check whether --enable-stl was given.
4423 if test "${enable_stl+set}" = set; then
4424   enableval=$enable_stl;
4425                           if test "$enableval" = yes; then
4426                             wx_cv_use_stl='wxUSE_STL=yes'
4427                           else
4428                             wx_cv_use_stl='wxUSE_STL=no'
4429                           fi
4430
4431 else
4432
4433                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4434
4435 fi
4436
4437
4438           eval "$wx_cv_use_stl"
4439
4440           if test x"$enablestring" = xdisable; then
4441             if test $wxUSE_STL = no; then
4442               result=yes
4443             else
4444               result=no
4445             fi
4446           else
4447             result=$wxUSE_STL
4448           fi
4449
4450           { echo "$as_me:$LINENO: result: $result" >&5
4451 echo "${ECHO_T}$result" >&6; }
4452
4453
4454           enablestring=
4455           defaultval=
4456           if test -z "$defaultval"; then
4457               if test x"$enablestring" = xdisable; then
4458                   defaultval=yes
4459               else
4460                   defaultval=no
4461               fi
4462           fi
4463
4464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4465 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4466           # Check whether --enable-std_iostreams was given.
4467 if test "${enable_std_iostreams+set}" = set; then
4468   enableval=$enable_std_iostreams;
4469                           if test "$enableval" = yes; then
4470                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4471                           else
4472                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4473                           fi
4474
4475 else
4476
4477                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4478
4479 fi
4480
4481
4482           eval "$wx_cv_use_std_iostreams"
4483
4484           if test x"$enablestring" = xdisable; then
4485             if test $wxUSE_STD_IOSTREAM = no; then
4486               result=yes
4487             else
4488               result=no
4489             fi
4490           else
4491             result=$wxUSE_STD_IOSTREAM
4492           fi
4493
4494           { echo "$as_me:$LINENO: result: $result" >&5
4495 echo "${ECHO_T}$result" >&6; }
4496
4497
4498           enablestring=
4499           defaultval=
4500           if test -z "$defaultval"; then
4501               if test x"$enablestring" = xdisable; then
4502                   defaultval=yes
4503               else
4504                   defaultval=no
4505               fi
4506           fi
4507
4508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4509 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4510           # Check whether --enable-std_string was given.
4511 if test "${enable_std_string+set}" = set; then
4512   enableval=$enable_std_string;
4513                           if test "$enableval" = yes; then
4514                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4515                           else
4516                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4517                           fi
4518
4519 else
4520
4521                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4522
4523 fi
4524
4525
4526           eval "$wx_cv_use_std_string"
4527
4528           if test x"$enablestring" = xdisable; then
4529             if test $wxUSE_STD_STRING = no; then
4530               result=yes
4531             else
4532               result=no
4533             fi
4534           else
4535             result=$wxUSE_STD_STRING
4536           fi
4537
4538           { echo "$as_me:$LINENO: result: $result" >&5
4539 echo "${ECHO_T}$result" >&6; }
4540
4541
4542           enablestring=disable
4543           defaultval=
4544           if test -z "$defaultval"; then
4545               if test x"$enablestring" = xdisable; then
4546                   defaultval=yes
4547               else
4548                   defaultval=no
4549               fi
4550           fi
4551
4552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4553 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4554           # Check whether --enable-unicode was given.
4555 if test "${enable_unicode+set}" = set; then
4556   enableval=$enable_unicode;
4557                           if test "$enableval" = yes; then
4558                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4559                           else
4560                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4561                           fi
4562
4563 else
4564
4565                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4566
4567 fi
4568
4569
4570           eval "$wx_cv_use_unicode"
4571
4572           if test x"$enablestring" = xdisable; then
4573             if test $wxUSE_UNICODE = no; then
4574               result=yes
4575             else
4576               result=no
4577             fi
4578           else
4579             result=$wxUSE_UNICODE
4580           fi
4581
4582           { echo "$as_me:$LINENO: result: $result" >&5
4583 echo "${ECHO_T}$result" >&6; }
4584
4585
4586           enablestring=
4587           defaultval=
4588           if test -z "$defaultval"; then
4589               if test x"$enablestring" = xdisable; then
4590                   defaultval=yes
4591               else
4592                   defaultval=no
4593               fi
4594           fi
4595
4596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4597 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4598           # Check whether --enable-mslu was given.
4599 if test "${enable_mslu+set}" = set; then
4600   enableval=$enable_mslu;
4601                           if test "$enableval" = yes; then
4602                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4603                           else
4604                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4605                           fi
4606
4607 else
4608
4609                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4610
4611 fi
4612
4613
4614           eval "$wx_cv_use_mslu"
4615
4616           if test x"$enablestring" = xdisable; then
4617             if test $wxUSE_UNICODE_MSLU = no; then
4618               result=yes
4619             else
4620               result=no
4621             fi
4622           else
4623             result=$wxUSE_UNICODE_MSLU
4624           fi
4625
4626           { echo "$as_me:$LINENO: result: $result" >&5
4627 echo "${ECHO_T}$result" >&6; }
4628
4629
4630           enablestring=
4631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4632 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4633           # Check whether --enable-utf8 was given.
4634 if test "${enable_utf8+set}" = set; then
4635   enableval=$enable_utf8;
4636                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4637
4638 else
4639
4640                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4641
4642 fi
4643
4644
4645           eval "$wx_cv_use_utf8"
4646
4647           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4648 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4649
4650
4651           enablestring=
4652           defaultval=
4653           if test -z "$defaultval"; then
4654               if test x"$enablestring" = xdisable; then
4655                   defaultval=yes
4656               else
4657                   defaultval=no
4658               fi
4659           fi
4660
4661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4662 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4663           # Check whether --enable-utf8only was given.
4664 if test "${enable_utf8only+set}" = set; then
4665   enableval=$enable_utf8only;
4666                           if test "$enableval" = yes; then
4667                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4668                           else
4669                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4670                           fi
4671
4672 else
4673
4674                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4675
4676 fi
4677
4678
4679           eval "$wx_cv_use_utf8only"
4680
4681           if test x"$enablestring" = xdisable; then
4682             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
4683               result=yes
4684             else
4685               result=no
4686             fi
4687           else
4688             result=$wxUSE_UNICODE_UTF8_LOCALE
4689           fi
4690
4691           { echo "$as_me:$LINENO: result: $result" >&5
4692 echo "${ECHO_T}$result" >&6; }
4693
4694
4695           enablestring=
4696           defaultval=
4697           if test -z "$defaultval"; then
4698               if test x"$enablestring" = xdisable; then
4699                   defaultval=yes
4700               else
4701                   defaultval=no
4702               fi
4703           fi
4704
4705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4706 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4707           # Check whether --enable-extended_rtti was given.
4708 if test "${enable_extended_rtti+set}" = set; then
4709   enableval=$enable_extended_rtti;
4710                           if test "$enableval" = yes; then
4711                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4712                           else
4713                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4714                           fi
4715
4716 else
4717
4718                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4719
4720 fi
4721
4722
4723           eval "$wx_cv_use_extended_rtti"
4724
4725           if test x"$enablestring" = xdisable; then
4726             if test $wxUSE_EXTENDED_RTTI = no; then
4727               result=yes
4728             else
4729               result=no
4730             fi
4731           else
4732             result=$wxUSE_EXTENDED_RTTI
4733           fi
4734
4735           { echo "$as_me:$LINENO: result: $result" >&5
4736 echo "${ECHO_T}$result" >&6; }
4737
4738 if test "$USE_OS2" = 1; then
4739     DEFAULT_wxUSE_OMF=no
4740
4741           enablestring=
4742           defaultval=
4743           if test -z "$defaultval"; then
4744               if test x"$enablestring" = xdisable; then
4745                   defaultval=yes
4746               else
4747                   defaultval=no
4748               fi
4749           fi
4750
4751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4752 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4753           # Check whether --enable-omf was given.
4754 if test "${enable_omf+set}" = set; then
4755   enableval=$enable_omf;
4756                           if test "$enableval" = yes; then
4757                             wx_cv_use_omf='wxUSE_OMF=yes'
4758                           else
4759                             wx_cv_use_omf='wxUSE_OMF=no'
4760                           fi
4761
4762 else
4763
4764                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4765
4766 fi
4767
4768
4769           eval "$wx_cv_use_omf"
4770
4771           if test x"$enablestring" = xdisable; then
4772             if test $wxUSE_OMF = no; then
4773               result=yes
4774             else
4775               result=no
4776             fi
4777           else
4778             result=$wxUSE_OMF
4779           fi
4780
4781           { echo "$as_me:$LINENO: result: $result" >&5
4782 echo "${ECHO_T}$result" >&6; }
4783
4784 fi
4785
4786 if test "$wxUSE_DEBUG" = "yes"; then
4787     DEFAULT_wxUSE_DEBUG_FLAG=yes
4788     DEFAULT_wxUSE_DEBUG_INFO=yes
4789     BUILD=debug
4790 elif test "$wxUSE_DEBUG" = "no"; then
4791     DEFAULT_wxUSE_DEBUG_FLAG=no
4792     DEFAULT_wxUSE_DEBUG_INFO=no
4793     BUILD=release
4794 fi
4795
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}-debug_flag" >&5
4808 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4809           # Check whether --enable-debug_flag was given.
4810 if test "${enable_debug_flag+set}" = set; then
4811   enableval=$enable_debug_flag;
4812                           if test "$enableval" = yes; then
4813                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4814                           else
4815                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4816                           fi
4817
4818 else
4819
4820                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4821
4822 fi
4823
4824
4825           eval "$wx_cv_use_debug_flag"
4826
4827           if test x"$enablestring" = xdisable; then
4828             if test $wxUSE_DEBUG_FLAG = no; then
4829               result=yes
4830             else
4831               result=no
4832             fi
4833           else
4834             result=$wxUSE_DEBUG_FLAG
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}-debug_info" >&5
4852 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4853           # Check whether --enable-debug_info was given.
4854 if test "${enable_debug_info+set}" = set; then
4855   enableval=$enable_debug_info;
4856                           if test "$enableval" = yes; then
4857                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4858                           else
4859                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4860                           fi
4861
4862 else
4863
4864                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4865
4866 fi
4867
4868
4869           eval "$wx_cv_use_debug_info"
4870
4871           if test x"$enablestring" = xdisable; then
4872             if test $wxUSE_DEBUG_INFO = no; then
4873               result=yes
4874             else
4875               result=no
4876             fi
4877           else
4878             result=$wxUSE_DEBUG_INFO
4879           fi
4880
4881           { echo "$as_me:$LINENO: result: $result" >&5
4882 echo "${ECHO_T}$result" >&6; }
4883
4884
4885 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4886     wxUSE_DEBUG=yes
4887     BUILD=debug
4888 fi
4889
4890 if test "$wxUSE_DEBUG" = "yes"; then
4891     DEFAULT_wxUSE_OPTIMISE=no
4892 fi
4893
4894
4895           enablestring=disable
4896           defaultval=
4897           if test -z "$defaultval"; then
4898               if test x"$enablestring" = xdisable; then
4899                   defaultval=yes
4900               else
4901                   defaultval=no
4902               fi
4903           fi
4904
4905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4906 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4907           # Check whether --enable-optimise was given.
4908 if test "${enable_optimise+set}" = set; then
4909   enableval=$enable_optimise;
4910                           if test "$enableval" = yes; then
4911                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4912                           else
4913                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4914                           fi
4915
4916 else
4917
4918                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4919
4920 fi
4921
4922
4923           eval "$wx_cv_use_optimise"
4924
4925           if test x"$enablestring" = xdisable; then
4926             if test $wxUSE_OPTIMISE = no; then
4927               result=yes
4928             else
4929               result=no
4930             fi
4931           else
4932             result=$wxUSE_OPTIMISE
4933           fi
4934
4935           { echo "$as_me:$LINENO: result: $result" >&5
4936 echo "${ECHO_T}$result" >&6; }
4937
4938
4939
4940           enablestring=
4941           defaultval=
4942           if test -z "$defaultval"; then
4943               if test x"$enablestring" = xdisable; then
4944                   defaultval=yes
4945               else
4946                   defaultval=no
4947               fi
4948           fi
4949
4950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4951 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4952           # Check whether --enable-debug_gdb was given.
4953 if test "${enable_debug_gdb+set}" = set; then
4954   enableval=$enable_debug_gdb;
4955                           if test "$enableval" = yes; then
4956                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4957                           else
4958                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4959                           fi
4960
4961 else
4962
4963                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4964
4965 fi
4966
4967
4968           eval "$wx_cv_use_debug_gdb"
4969
4970           if test x"$enablestring" = xdisable; then
4971             if test $wxUSE_DEBUG_GDB = no; then
4972               result=yes
4973             else
4974               result=no
4975             fi
4976           else
4977             result=$wxUSE_DEBUG_GDB
4978           fi
4979
4980           { echo "$as_me:$LINENO: result: $result" >&5
4981 echo "${ECHO_T}$result" >&6; }
4982
4983
4984           enablestring=
4985           defaultval=
4986           if test -z "$defaultval"; then
4987               if test x"$enablestring" = xdisable; then
4988                   defaultval=yes
4989               else
4990                   defaultval=no
4991               fi
4992           fi
4993
4994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4995 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4996           # Check whether --enable-debug_cntxt was given.
4997 if test "${enable_debug_cntxt+set}" = set; then
4998   enableval=$enable_debug_cntxt;
4999                           if test "$enableval" = yes; then
5000                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5001                           else
5002                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5003                           fi
5004
5005 else
5006
5007                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5008
5009 fi
5010
5011
5012           eval "$wx_cv_use_debug_cntxt"
5013
5014           if test x"$enablestring" = xdisable; then
5015             if test $wxUSE_DEBUG_CONTEXT = no; then
5016               result=yes
5017             else
5018               result=no
5019             fi
5020           else
5021             result=$wxUSE_DEBUG_CONTEXT
5022           fi
5023
5024           { echo "$as_me:$LINENO: result: $result" >&5
5025 echo "${ECHO_T}$result" >&6; }
5026
5027
5028           enablestring=
5029           defaultval=
5030           if test -z "$defaultval"; then
5031               if test x"$enablestring" = xdisable; then
5032                   defaultval=yes
5033               else
5034                   defaultval=no
5035               fi
5036           fi
5037
5038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5039 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5040           # Check whether --enable-mem_tracing was given.
5041 if test "${enable_mem_tracing+set}" = set; then
5042   enableval=$enable_mem_tracing;
5043                           if test "$enableval" = yes; then
5044                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5045                           else
5046                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5047                           fi
5048
5049 else
5050
5051                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5052
5053 fi
5054
5055
5056           eval "$wx_cv_use_mem_tracing"
5057
5058           if test x"$enablestring" = xdisable; then
5059             if test $wxUSE_MEM_TRACING = no; then
5060               result=yes
5061             else
5062               result=no
5063             fi
5064           else
5065             result=$wxUSE_MEM_TRACING
5066           fi
5067
5068           { echo "$as_me:$LINENO: result: $result" >&5
5069 echo "${ECHO_T}$result" >&6; }
5070
5071
5072           enablestring=
5073           defaultval=
5074           if test -z "$defaultval"; then
5075               if test x"$enablestring" = xdisable; then
5076                   defaultval=yes
5077               else
5078                   defaultval=no
5079               fi
5080           fi
5081
5082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5083 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5084           # Check whether --enable-profile was given.
5085 if test "${enable_profile+set}" = set; then
5086   enableval=$enable_profile;
5087                           if test "$enableval" = yes; then
5088                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5089                           else
5090                             wx_cv_use_profile='wxUSE_PROFILE=no'
5091                           fi
5092
5093 else
5094
5095                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5096
5097 fi
5098
5099
5100           eval "$wx_cv_use_profile"
5101
5102           if test x"$enablestring" = xdisable; then
5103             if test $wxUSE_PROFILE = no; then
5104               result=yes
5105             else
5106               result=no
5107             fi
5108           else
5109             result=$wxUSE_PROFILE
5110           fi
5111
5112           { echo "$as_me:$LINENO: result: $result" >&5
5113 echo "${ECHO_T}$result" >&6; }
5114
5115
5116           enablestring=
5117           defaultval=
5118           if test -z "$defaultval"; then
5119               if test x"$enablestring" = xdisable; then
5120                   defaultval=yes
5121               else
5122                   defaultval=no
5123               fi
5124           fi
5125
5126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5127 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5128           # Check whether --enable-no_rtti was given.
5129 if test "${enable_no_rtti+set}" = set; then
5130   enableval=$enable_no_rtti;
5131                           if test "$enableval" = yes; then
5132                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5133                           else
5134                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5135                           fi
5136
5137 else
5138
5139                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5140
5141 fi
5142
5143
5144           eval "$wx_cv_use_no_rtti"
5145
5146           if test x"$enablestring" = xdisable; then
5147             if test $wxUSE_NO_RTTI = no; then
5148               result=yes
5149             else
5150               result=no
5151             fi
5152           else
5153             result=$wxUSE_NO_RTTI
5154           fi
5155
5156           { echo "$as_me:$LINENO: result: $result" >&5
5157 echo "${ECHO_T}$result" >&6; }
5158
5159
5160           enablestring=
5161           defaultval=
5162           if test -z "$defaultval"; then
5163               if test x"$enablestring" = xdisable; then
5164                   defaultval=yes
5165               else
5166                   defaultval=no
5167               fi
5168           fi
5169
5170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5171 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5172           # Check whether --enable-no_exceptions was given.
5173 if test "${enable_no_exceptions+set}" = set; then
5174   enableval=$enable_no_exceptions;
5175                           if test "$enableval" = yes; then
5176                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5177                           else
5178                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5179                           fi
5180
5181 else
5182
5183                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5184
5185 fi
5186
5187
5188           eval "$wx_cv_use_no_exceptions"
5189
5190           if test x"$enablestring" = xdisable; then
5191             if test $wxUSE_NO_EXCEPTIONS = no; then
5192               result=yes
5193             else
5194               result=no
5195             fi
5196           else
5197             result=$wxUSE_NO_EXCEPTIONS
5198           fi
5199
5200           { echo "$as_me:$LINENO: result: $result" >&5
5201 echo "${ECHO_T}$result" >&6; }
5202
5203
5204           enablestring=
5205           defaultval=
5206           if test -z "$defaultval"; then
5207               if test x"$enablestring" = xdisable; then
5208                   defaultval=yes
5209               else
5210                   defaultval=no
5211               fi
5212           fi
5213
5214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5215 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5216           # Check whether --enable-permissive was given.
5217 if test "${enable_permissive+set}" = set; then
5218   enableval=$enable_permissive;
5219                           if test "$enableval" = yes; then
5220                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5221                           else
5222                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5223                           fi
5224
5225 else
5226
5227                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5228
5229 fi
5230
5231
5232           eval "$wx_cv_use_permissive"
5233
5234           if test x"$enablestring" = xdisable; then
5235             if test $wxUSE_PERMISSIVE = no; then
5236               result=yes
5237             else
5238               result=no
5239             fi
5240           else
5241             result=$wxUSE_PERMISSIVE
5242           fi
5243
5244           { echo "$as_me:$LINENO: result: $result" >&5
5245 echo "${ECHO_T}$result" >&6; }
5246
5247
5248           enablestring=
5249           defaultval=
5250           if test -z "$defaultval"; then
5251               if test x"$enablestring" = xdisable; then
5252                   defaultval=yes
5253               else
5254                   defaultval=no
5255               fi
5256           fi
5257
5258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5259 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5260           # Check whether --enable-no_deps was given.
5261 if test "${enable_no_deps+set}" = set; then
5262   enableval=$enable_no_deps;
5263                           if test "$enableval" = yes; then
5264                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5265                           else
5266                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5267                           fi
5268
5269 else
5270
5271                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5272
5273 fi
5274
5275
5276           eval "$wx_cv_use_no_deps"
5277
5278           if test x"$enablestring" = xdisable; then
5279             if test $wxUSE_NO_DEPS = no; then
5280               result=yes
5281             else
5282               result=no
5283             fi
5284           else
5285             result=$wxUSE_NO_DEPS
5286           fi
5287
5288           { echo "$as_me:$LINENO: result: $result" >&5
5289 echo "${ECHO_T}$result" >&6; }
5290
5291
5292           enablestring=disable
5293           defaultval=
5294           if test -z "$defaultval"; then
5295               if test x"$enablestring" = xdisable; then
5296                   defaultval=yes
5297               else
5298                   defaultval=no
5299               fi
5300           fi
5301
5302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5303 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5304           # Check whether --enable-vararg_macros was given.
5305 if test "${enable_vararg_macros+set}" = set; then
5306   enableval=$enable_vararg_macros;
5307                           if test "$enableval" = yes; then
5308                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5309                           else
5310                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5311                           fi
5312
5313 else
5314
5315                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5316
5317 fi
5318
5319
5320           eval "$wx_cv_use_vararg_macros"
5321
5322           if test x"$enablestring" = xdisable; then
5323             if test $wxUSE_VARARG_MACROS = no; then
5324               result=yes
5325             else
5326               result=no
5327             fi
5328           else
5329             result=$wxUSE_VARARG_MACROS
5330           fi
5331
5332           { echo "$as_me:$LINENO: result: $result" >&5
5333 echo "${ECHO_T}$result" >&6; }
5334
5335
5336           enablestring=
5337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5338 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5339           # Check whether --enable-universal_binary was given.
5340 if test "${enable_universal_binary+set}" = set; then
5341   enableval=$enable_universal_binary;
5342                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5343
5344 else
5345
5346                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5347
5348 fi
5349
5350
5351           eval "$wx_cv_use_universal_binary"
5352
5353           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5354 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5355
5356
5357
5358           enablestring=
5359           defaultval=
5360           if test -z "$defaultval"; then
5361               if test x"$enablestring" = xdisable; then
5362                   defaultval=yes
5363               else
5364                   defaultval=no
5365               fi
5366           fi
5367
5368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5369 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5370           # Check whether --enable-compat26 was given.
5371 if test "${enable_compat26+set}" = set; then
5372   enableval=$enable_compat26;
5373                           if test "$enableval" = yes; then
5374                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5375                           else
5376                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5377                           fi
5378
5379 else
5380
5381                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5382
5383 fi
5384
5385
5386           eval "$wx_cv_use_compat26"
5387
5388           if test x"$enablestring" = xdisable; then
5389             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5390               result=yes
5391             else
5392               result=no
5393             fi
5394           else
5395             result=$WXWIN_COMPATIBILITY_2_6
5396           fi
5397
5398           { echo "$as_me:$LINENO: result: $result" >&5
5399 echo "${ECHO_T}$result" >&6; }
5400
5401
5402           enablestring=disable
5403           defaultval=
5404           if test -z "$defaultval"; then
5405               if test x"$enablestring" = xdisable; then
5406                   defaultval=yes
5407               else
5408                   defaultval=no
5409               fi
5410           fi
5411
5412           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5413 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5414           # Check whether --enable-compat28 was given.
5415 if test "${enable_compat28+set}" = set; then
5416   enableval=$enable_compat28;
5417                           if test "$enableval" = yes; then
5418                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5419                           else
5420                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5421                           fi
5422
5423 else
5424
5425                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5426
5427 fi
5428
5429
5430           eval "$wx_cv_use_compat28"
5431
5432           if test x"$enablestring" = xdisable; then
5433             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5434               result=yes
5435             else
5436               result=no
5437             fi
5438           else
5439             result=$WXWIN_COMPATIBILITY_2_8
5440           fi
5441
5442           { echo "$as_me:$LINENO: result: $result" >&5
5443 echo "${ECHO_T}$result" >&6; }
5444
5445
5446
5447           enablestring=disable
5448           defaultval=
5449           if test -z "$defaultval"; then
5450               if test x"$enablestring" = xdisable; then
5451                   defaultval=yes
5452               else
5453                   defaultval=no
5454               fi
5455           fi
5456
5457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5458 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5459           # Check whether --enable-rpath was given.
5460 if test "${enable_rpath+set}" = set; then
5461   enableval=$enable_rpath;
5462                           if test "$enableval" = yes; then
5463                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5464                           else
5465                             wx_cv_use_rpath='wxUSE_RPATH=no'
5466                           fi
5467
5468 else
5469
5470                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5471
5472 fi
5473
5474
5475           eval "$wx_cv_use_rpath"
5476
5477           if test x"$enablestring" = xdisable; then
5478             if test $wxUSE_RPATH = no; then
5479               result=yes
5480             else
5481               result=no
5482             fi
5483           else
5484             result=$wxUSE_RPATH
5485           fi
5486
5487           { echo "$as_me:$LINENO: result: $result" >&5
5488 echo "${ECHO_T}$result" >&6; }
5489
5490
5491
5492           enablestring=
5493           defaultval=
5494           if test -z "$defaultval"; then
5495               if test x"$enablestring" = xdisable; then
5496                   defaultval=yes
5497               else
5498                   defaultval=no
5499               fi
5500           fi
5501
5502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5503 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5504           # Check whether --enable-objc_uniquifying was given.
5505 if test "${enable_objc_uniquifying+set}" = set; then
5506   enableval=$enable_objc_uniquifying;
5507                           if test "$enableval" = yes; then
5508                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5509                           else
5510                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5511                           fi
5512
5513 else
5514
5515                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5516
5517 fi
5518
5519
5520           eval "$wx_cv_use_objc_uniquifying"
5521
5522           if test x"$enablestring" = xdisable; then
5523             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5524               result=yes
5525             else
5526               result=no
5527             fi
5528           else
5529             result=$wxUSE_OBJC_UNIQUIFYING
5530           fi
5531
5532           { echo "$as_me:$LINENO: result: $result" >&5
5533 echo "${ECHO_T}$result" >&6; }
5534
5535
5536
5537           enablestring=disable
5538           defaultval=
5539           if test -z "$defaultval"; then
5540               if test x"$enablestring" = xdisable; then
5541                   defaultval=yes
5542               else
5543                   defaultval=no
5544               fi
5545           fi
5546
5547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5548 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5549           # Check whether --enable-visibility was given.
5550 if test "${enable_visibility+set}" = set; then
5551   enableval=$enable_visibility;
5552                           if test "$enableval" = yes; then
5553                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5554                           else
5555                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5556                           fi
5557
5558 else
5559
5560                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5561
5562 fi
5563
5564
5565           eval "$wx_cv_use_visibility"
5566
5567           if test x"$enablestring" = xdisable; then
5568             if test $wxUSE_VISIBILITY = no; then
5569               result=yes
5570             else
5571               result=no
5572             fi
5573           else
5574             result=$wxUSE_VISIBILITY
5575           fi
5576
5577           { echo "$as_me:$LINENO: result: $result" >&5
5578 echo "${ECHO_T}$result" >&6; }
5579
5580
5581           enablestring=disable
5582           defaultval=
5583           if test -z "$defaultval"; then
5584               if test x"$enablestring" = xdisable; then
5585                   defaultval=yes
5586               else
5587                   defaultval=no
5588               fi
5589           fi
5590
5591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5592 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5593           # Check whether --enable-tls was given.
5594 if test "${enable_tls+set}" = set; then
5595   enableval=$enable_tls;
5596                           if test "$enableval" = yes; then
5597                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5598                           else
5599                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5600                           fi
5601
5602 else
5603
5604                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5605
5606 fi
5607
5608
5609           eval "$wx_cv_use_tls"
5610
5611           if test x"$enablestring" = xdisable; then
5612             if test $wxUSE_COMPILER_TLS = no; then
5613               result=yes
5614             else
5615               result=no
5616             fi
5617           else
5618             result=$wxUSE_COMPILER_TLS
5619           fi
5620
5621           { echo "$as_me:$LINENO: result: $result" >&5
5622 echo "${ECHO_T}$result" >&6; }
5623
5624
5625
5626
5627           enablestring=
5628           defaultval=$wxUSE_ALL_FEATURES
5629           if test -z "$defaultval"; then
5630               if test x"$enablestring" = xdisable; then
5631                   defaultval=yes
5632               else
5633                   defaultval=no
5634               fi
5635           fi
5636
5637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5638 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5639           # Check whether --enable-intl was given.
5640 if test "${enable_intl+set}" = set; then
5641   enableval=$enable_intl;
5642                           if test "$enableval" = yes; then
5643                             wx_cv_use_intl='wxUSE_INTL=yes'
5644                           else
5645                             wx_cv_use_intl='wxUSE_INTL=no'
5646                           fi
5647
5648 else
5649
5650                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5651
5652 fi
5653
5654
5655           eval "$wx_cv_use_intl"
5656
5657           if test x"$enablestring" = xdisable; then
5658             if test $wxUSE_INTL = no; then
5659               result=yes
5660             else
5661               result=no
5662             fi
5663           else
5664             result=$wxUSE_INTL
5665           fi
5666
5667           { echo "$as_me:$LINENO: result: $result" >&5
5668 echo "${ECHO_T}$result" >&6; }
5669
5670
5671           enablestring=
5672           defaultval=$wxUSE_ALL_FEATURES
5673           if test -z "$defaultval"; then
5674               if test x"$enablestring" = xdisable; then
5675                   defaultval=yes
5676               else
5677                   defaultval=no
5678               fi
5679           fi
5680
5681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5682 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5683           # Check whether --enable-xlocale was given.
5684 if test "${enable_xlocale+set}" = set; then
5685   enableval=$enable_xlocale;
5686                           if test "$enableval" = yes; then
5687                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5688                           else
5689                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5690                           fi
5691
5692 else
5693
5694                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5695
5696 fi
5697
5698
5699           eval "$wx_cv_use_xlocale"
5700
5701           if test x"$enablestring" = xdisable; then
5702             if test $wxUSE_XLOCALE = no; then
5703               result=yes
5704             else
5705               result=no
5706             fi
5707           else
5708             result=$wxUSE_XLOCALE
5709           fi
5710
5711           { echo "$as_me:$LINENO: result: $result" >&5
5712 echo "${ECHO_T}$result" >&6; }
5713
5714
5715           enablestring=
5716           defaultval=$wxUSE_ALL_FEATURES
5717           if test -z "$defaultval"; then
5718               if test x"$enablestring" = xdisable; then
5719                   defaultval=yes
5720               else
5721                   defaultval=no
5722               fi
5723           fi
5724
5725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5726 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5727           # Check whether --enable-config was given.
5728 if test "${enable_config+set}" = set; then
5729   enableval=$enable_config;
5730                           if test "$enableval" = yes; then
5731                             wx_cv_use_config='wxUSE_CONFIG=yes'
5732                           else
5733                             wx_cv_use_config='wxUSE_CONFIG=no'
5734                           fi
5735
5736 else
5737
5738                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5739
5740 fi
5741
5742
5743           eval "$wx_cv_use_config"
5744
5745           if test x"$enablestring" = xdisable; then
5746             if test $wxUSE_CONFIG = no; then
5747               result=yes
5748             else
5749               result=no
5750             fi
5751           else
5752             result=$wxUSE_CONFIG
5753           fi
5754
5755           { echo "$as_me:$LINENO: result: $result" >&5
5756 echo "${ECHO_T}$result" >&6; }
5757
5758
5759
5760           enablestring=
5761           defaultval=$wxUSE_ALL_FEATURES
5762           if test -z "$defaultval"; then
5763               if test x"$enablestring" = xdisable; then
5764                   defaultval=yes
5765               else
5766                   defaultval=no
5767               fi
5768           fi
5769
5770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5771 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5772           # Check whether --enable-protocols was given.
5773 if test "${enable_protocols+set}" = set; then
5774   enableval=$enable_protocols;
5775                           if test "$enableval" = yes; then
5776                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5777                           else
5778                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5779                           fi
5780
5781 else
5782
5783                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5784
5785 fi
5786
5787
5788           eval "$wx_cv_use_protocols"
5789
5790           if test x"$enablestring" = xdisable; then
5791             if test $wxUSE_PROTOCOL = no; then
5792               result=yes
5793             else
5794               result=no
5795             fi
5796           else
5797             result=$wxUSE_PROTOCOL
5798           fi
5799
5800           { echo "$as_me:$LINENO: result: $result" >&5
5801 echo "${ECHO_T}$result" >&6; }
5802
5803
5804           enablestring=
5805           defaultval=$wxUSE_ALL_FEATURES
5806           if test -z "$defaultval"; then
5807               if test x"$enablestring" = xdisable; then
5808                   defaultval=yes
5809               else
5810                   defaultval=no
5811               fi
5812           fi
5813
5814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5815 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5816           # Check whether --enable-ftp was given.
5817 if test "${enable_ftp+set}" = set; then
5818   enableval=$enable_ftp;
5819                           if test "$enableval" = yes; then
5820                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5821                           else
5822                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5823                           fi
5824
5825 else
5826
5827                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5828
5829 fi
5830
5831
5832           eval "$wx_cv_use_ftp"
5833
5834           if test x"$enablestring" = xdisable; then
5835             if test $wxUSE_PROTOCOL_FTP = no; then
5836               result=yes
5837             else
5838               result=no
5839             fi
5840           else
5841             result=$wxUSE_PROTOCOL_FTP
5842           fi
5843
5844           { echo "$as_me:$LINENO: result: $result" >&5
5845 echo "${ECHO_T}$result" >&6; }
5846
5847
5848           enablestring=
5849           defaultval=$wxUSE_ALL_FEATURES
5850           if test -z "$defaultval"; then
5851               if test x"$enablestring" = xdisable; then
5852                   defaultval=yes
5853               else
5854                   defaultval=no
5855               fi
5856           fi
5857
5858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5859 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5860           # Check whether --enable-http was given.
5861 if test "${enable_http+set}" = set; then
5862   enableval=$enable_http;
5863                           if test "$enableval" = yes; then
5864                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5865                           else
5866                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5867                           fi
5868
5869 else
5870
5871                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5872
5873 fi
5874
5875
5876           eval "$wx_cv_use_http"
5877
5878           if test x"$enablestring" = xdisable; then
5879             if test $wxUSE_PROTOCOL_HTTP = no; then
5880               result=yes
5881             else
5882               result=no
5883             fi
5884           else
5885             result=$wxUSE_PROTOCOL_HTTP
5886           fi
5887
5888           { echo "$as_me:$LINENO: result: $result" >&5
5889 echo "${ECHO_T}$result" >&6; }
5890
5891
5892           enablestring=
5893           defaultval=$wxUSE_ALL_FEATURES
5894           if test -z "$defaultval"; then
5895               if test x"$enablestring" = xdisable; then
5896                   defaultval=yes
5897               else
5898                   defaultval=no
5899               fi
5900           fi
5901
5902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5903 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5904           # Check whether --enable-fileproto was given.
5905 if test "${enable_fileproto+set}" = set; then
5906   enableval=$enable_fileproto;
5907                           if test "$enableval" = yes; then
5908                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5909                           else
5910                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5911                           fi
5912
5913 else
5914
5915                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5916
5917 fi
5918
5919
5920           eval "$wx_cv_use_fileproto"
5921
5922           if test x"$enablestring" = xdisable; then
5923             if test $wxUSE_PROTOCOL_FILE = no; then
5924               result=yes
5925             else
5926               result=no
5927             fi
5928           else
5929             result=$wxUSE_PROTOCOL_FILE
5930           fi
5931
5932           { echo "$as_me:$LINENO: result: $result" >&5
5933 echo "${ECHO_T}$result" >&6; }
5934
5935
5936           enablestring=
5937           defaultval=$wxUSE_ALL_FEATURES
5938           if test -z "$defaultval"; then
5939               if test x"$enablestring" = xdisable; then
5940                   defaultval=yes
5941               else
5942                   defaultval=no
5943               fi
5944           fi
5945
5946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5947 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5948           # Check whether --enable-sockets was given.
5949 if test "${enable_sockets+set}" = set; then
5950   enableval=$enable_sockets;
5951                           if test "$enableval" = yes; then
5952                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5953                           else
5954                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5955                           fi
5956
5957 else
5958
5959                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5960
5961 fi
5962
5963
5964           eval "$wx_cv_use_sockets"
5965
5966           if test x"$enablestring" = xdisable; then
5967             if test $wxUSE_SOCKETS = no; then
5968               result=yes
5969             else
5970               result=no
5971             fi
5972           else
5973             result=$wxUSE_SOCKETS
5974           fi
5975
5976           { echo "$as_me:$LINENO: result: $result" >&5
5977 echo "${ECHO_T}$result" >&6; }
5978
5979
5980           enablestring=
5981           defaultval=$wxUSE_ALL_FEATURES
5982           if test -z "$defaultval"; then
5983               if test x"$enablestring" = xdisable; then
5984                   defaultval=yes
5985               else
5986                   defaultval=no
5987               fi
5988           fi
5989
5990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5991 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5992           # Check whether --enable-ipv6 was given.
5993 if test "${enable_ipv6+set}" = set; then
5994   enableval=$enable_ipv6;
5995                           if test "$enableval" = yes; then
5996                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5997                           else
5998                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5999                           fi
6000
6001 else
6002
6003                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6004
6005 fi
6006
6007
6008           eval "$wx_cv_use_ipv6"
6009
6010           if test x"$enablestring" = xdisable; then
6011             if test $wxUSE_IPV6 = no; then
6012               result=yes
6013             else
6014               result=no
6015             fi
6016           else
6017             result=$wxUSE_IPV6
6018           fi
6019
6020           { echo "$as_me:$LINENO: result: $result" >&5
6021 echo "${ECHO_T}$result" >&6; }
6022
6023
6024           enablestring=
6025           defaultval=$wxUSE_ALL_FEATURES
6026           if test -z "$defaultval"; then
6027               if test x"$enablestring" = xdisable; then
6028                   defaultval=yes
6029               else
6030                   defaultval=no
6031               fi
6032           fi
6033
6034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6035 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6036           # Check whether --enable-ole was given.
6037 if test "${enable_ole+set}" = set; then
6038   enableval=$enable_ole;
6039                           if test "$enableval" = yes; then
6040                             wx_cv_use_ole='wxUSE_OLE=yes'
6041                           else
6042                             wx_cv_use_ole='wxUSE_OLE=no'
6043                           fi
6044
6045 else
6046
6047                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6048
6049 fi
6050
6051
6052           eval "$wx_cv_use_ole"
6053
6054           if test x"$enablestring" = xdisable; then
6055             if test $wxUSE_OLE = no; then
6056               result=yes
6057             else
6058               result=no
6059             fi
6060           else
6061             result=$wxUSE_OLE
6062           fi
6063
6064           { echo "$as_me:$LINENO: result: $result" >&5
6065 echo "${ECHO_T}$result" >&6; }
6066
6067
6068           enablestring=
6069           defaultval=$wxUSE_ALL_FEATURES
6070           if test -z "$defaultval"; then
6071               if test x"$enablestring" = xdisable; then
6072                   defaultval=yes
6073               else
6074                   defaultval=no
6075               fi
6076           fi
6077
6078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6079 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6080           # Check whether --enable-dataobj was given.
6081 if test "${enable_dataobj+set}" = set; then
6082   enableval=$enable_dataobj;
6083                           if test "$enableval" = yes; then
6084                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6085                           else
6086                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6087                           fi
6088
6089 else
6090
6091                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6092
6093 fi
6094
6095
6096           eval "$wx_cv_use_dataobj"
6097
6098           if test x"$enablestring" = xdisable; then
6099             if test $wxUSE_DATAOBJ = no; then
6100               result=yes
6101             else
6102               result=no
6103             fi
6104           else
6105             result=$wxUSE_DATAOBJ
6106           fi
6107
6108           { echo "$as_me:$LINENO: result: $result" >&5
6109 echo "${ECHO_T}$result" >&6; }
6110
6111
6112
6113           enablestring=
6114           defaultval=$wxUSE_ALL_FEATURES
6115           if test -z "$defaultval"; then
6116               if test x"$enablestring" = xdisable; then
6117                   defaultval=yes
6118               else
6119                   defaultval=no
6120               fi
6121           fi
6122
6123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6124 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6125           # Check whether --enable-ipc was given.
6126 if test "${enable_ipc+set}" = set; then
6127   enableval=$enable_ipc;
6128                           if test "$enableval" = yes; then
6129                             wx_cv_use_ipc='wxUSE_IPC=yes'
6130                           else
6131                             wx_cv_use_ipc='wxUSE_IPC=no'
6132                           fi
6133
6134 else
6135
6136                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6137
6138 fi
6139
6140
6141           eval "$wx_cv_use_ipc"
6142
6143           if test x"$enablestring" = xdisable; then
6144             if test $wxUSE_IPC = no; then
6145               result=yes
6146             else
6147               result=no
6148             fi
6149           else
6150             result=$wxUSE_IPC
6151           fi
6152
6153           { echo "$as_me:$LINENO: result: $result" >&5
6154 echo "${ECHO_T}$result" >&6; }
6155
6156
6157
6158           enablestring=
6159           defaultval=$wxUSE_ALL_FEATURES
6160           if test -z "$defaultval"; then
6161               if test x"$enablestring" = xdisable; then
6162                   defaultval=yes
6163               else
6164                   defaultval=no
6165               fi
6166           fi
6167
6168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6169 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6170           # Check whether --enable-baseevtloop was given.
6171 if test "${enable_baseevtloop+set}" = set; then
6172   enableval=$enable_baseevtloop;
6173                           if test "$enableval" = yes; then
6174                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6175                           else
6176                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6177                           fi
6178
6179 else
6180
6181                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6182
6183 fi
6184
6185
6186           eval "$wx_cv_use_baseevtloop"
6187
6188           if test x"$enablestring" = xdisable; then
6189             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6190               result=yes
6191             else
6192               result=no
6193             fi
6194           else
6195             result=$wxUSE_CONSOLE_EVENTLOOP
6196           fi
6197
6198           { echo "$as_me:$LINENO: result: $result" >&5
6199 echo "${ECHO_T}$result" >&6; }
6200
6201
6202           enablestring=
6203           defaultval=$wxUSE_ALL_FEATURES
6204           if test -z "$defaultval"; then
6205               if test x"$enablestring" = xdisable; then
6206                   defaultval=yes
6207               else
6208                   defaultval=no
6209               fi
6210           fi
6211
6212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6213 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6214           # Check whether --enable-epollloop was given.
6215 if test "${enable_epollloop+set}" = set; then
6216   enableval=$enable_epollloop;
6217                           if test "$enableval" = yes; then
6218                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6219                           else
6220                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6221                           fi
6222
6223 else
6224
6225                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6226
6227 fi
6228
6229
6230           eval "$wx_cv_use_epollloop"
6231
6232           if test x"$enablestring" = xdisable; then
6233             if test $wxUSE_EPOLL_DISPATCHER = no; then
6234               result=yes
6235             else
6236               result=no
6237             fi
6238           else
6239             result=$wxUSE_EPOLL_DISPATCHER
6240           fi
6241
6242           { echo "$as_me:$LINENO: result: $result" >&5
6243 echo "${ECHO_T}$result" >&6; }
6244
6245
6246           enablestring=
6247           defaultval=$wxUSE_ALL_FEATURES
6248           if test -z "$defaultval"; then
6249               if test x"$enablestring" = xdisable; then
6250                   defaultval=yes
6251               else
6252                   defaultval=no
6253               fi
6254           fi
6255
6256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6257 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6258           # Check whether --enable-selectloop was given.
6259 if test "${enable_selectloop+set}" = set; then
6260   enableval=$enable_selectloop;
6261                           if test "$enableval" = yes; then
6262                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6263                           else
6264                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6265                           fi
6266
6267 else
6268
6269                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6270
6271 fi
6272
6273
6274           eval "$wx_cv_use_selectloop"
6275
6276           if test x"$enablestring" = xdisable; then
6277             if test $wxUSE_SELECT_DISPATCHER = no; then
6278               result=yes
6279             else
6280               result=no
6281             fi
6282           else
6283             result=$wxUSE_SELECT_DISPATCHER
6284           fi
6285
6286           { echo "$as_me:$LINENO: result: $result" >&5
6287 echo "${ECHO_T}$result" >&6; }
6288
6289
6290
6291           enablestring=
6292           defaultval=$wxUSE_ALL_FEATURES
6293           if test -z "$defaultval"; then
6294               if test x"$enablestring" = xdisable; then
6295                   defaultval=yes
6296               else
6297                   defaultval=no
6298               fi
6299           fi
6300
6301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6302 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6303           # Check whether --enable-apple_ieee was given.
6304 if test "${enable_apple_ieee+set}" = set; then
6305   enableval=$enable_apple_ieee;
6306                           if test "$enableval" = yes; then
6307                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6308                           else
6309                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6310                           fi
6311
6312 else
6313
6314                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6315
6316 fi
6317
6318
6319           eval "$wx_cv_use_apple_ieee"
6320
6321           if test x"$enablestring" = xdisable; then
6322             if test $wxUSE_APPLE_IEEE = no; then
6323               result=yes
6324             else
6325               result=no
6326             fi
6327           else
6328             result=$wxUSE_APPLE_IEEE
6329           fi
6330
6331           { echo "$as_me:$LINENO: result: $result" >&5
6332 echo "${ECHO_T}$result" >&6; }
6333
6334
6335           enablestring=
6336           defaultval=$wxUSE_ALL_FEATURES
6337           if test -z "$defaultval"; then
6338               if test x"$enablestring" = xdisable; then
6339                   defaultval=yes
6340               else
6341                   defaultval=no
6342               fi
6343           fi
6344
6345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6346 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6347           # Check whether --enable-arcstream was given.
6348 if test "${enable_arcstream+set}" = set; then
6349   enableval=$enable_arcstream;
6350                           if test "$enableval" = yes; then
6351                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6352                           else
6353                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6354                           fi
6355
6356 else
6357
6358                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6359
6360 fi
6361
6362
6363           eval "$wx_cv_use_arcstream"
6364
6365           if test x"$enablestring" = xdisable; then
6366             if test $wxUSE_ARCHIVE_STREAMS = no; then
6367               result=yes
6368             else
6369               result=no
6370             fi
6371           else
6372             result=$wxUSE_ARCHIVE_STREAMS
6373           fi
6374
6375           { echo "$as_me:$LINENO: result: $result" >&5
6376 echo "${ECHO_T}$result" >&6; }
6377
6378
6379           enablestring=
6380           defaultval=$wxUSE_ALL_FEATURES
6381           if test -z "$defaultval"; then
6382               if test x"$enablestring" = xdisable; then
6383                   defaultval=yes
6384               else
6385                   defaultval=no
6386               fi
6387           fi
6388
6389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6390 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6391           # Check whether --enable-base64 was given.
6392 if test "${enable_base64+set}" = set; then
6393   enableval=$enable_base64;
6394                           if test "$enableval" = yes; then
6395                             wx_cv_use_base64='wxUSE_BASE64=yes'
6396                           else
6397                             wx_cv_use_base64='wxUSE_BASE64=no'
6398                           fi
6399
6400 else
6401
6402                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6403
6404 fi
6405
6406
6407           eval "$wx_cv_use_base64"
6408
6409           if test x"$enablestring" = xdisable; then
6410             if test $wxUSE_BASE64 = no; then
6411               result=yes
6412             else
6413               result=no
6414             fi
6415           else
6416             result=$wxUSE_BASE64
6417           fi
6418
6419           { echo "$as_me:$LINENO: result: $result" >&5
6420 echo "${ECHO_T}$result" >&6; }
6421
6422
6423           enablestring=
6424           defaultval=$wxUSE_ALL_FEATURES
6425           if test -z "$defaultval"; then
6426               if test x"$enablestring" = xdisable; then
6427                   defaultval=yes
6428               else
6429                   defaultval=no
6430               fi
6431           fi
6432
6433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6434 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6435           # Check whether --enable-backtrace was given.
6436 if test "${enable_backtrace+set}" = set; then
6437   enableval=$enable_backtrace;
6438                           if test "$enableval" = yes; then
6439                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6440                           else
6441                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6442                           fi
6443
6444 else
6445
6446                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6447
6448 fi
6449
6450
6451           eval "$wx_cv_use_backtrace"
6452
6453           if test x"$enablestring" = xdisable; then
6454             if test $wxUSE_STACKWALKER = no; then
6455               result=yes
6456             else
6457               result=no
6458             fi
6459           else
6460             result=$wxUSE_STACKWALKER
6461           fi
6462
6463           { echo "$as_me:$LINENO: result: $result" >&5
6464 echo "${ECHO_T}$result" >&6; }
6465
6466
6467           enablestring=
6468           defaultval=$wxUSE_ALL_FEATURES
6469           if test -z "$defaultval"; then
6470               if test x"$enablestring" = xdisable; then
6471                   defaultval=yes
6472               else
6473                   defaultval=no
6474               fi
6475           fi
6476
6477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6478 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6479           # Check whether --enable-catch_segvs was given.
6480 if test "${enable_catch_segvs+set}" = set; then
6481   enableval=$enable_catch_segvs;
6482                           if test "$enableval" = yes; then
6483                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6484                           else
6485                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6486                           fi
6487
6488 else
6489
6490                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6491
6492 fi
6493
6494
6495           eval "$wx_cv_use_catch_segvs"
6496
6497           if test x"$enablestring" = xdisable; then
6498             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6499               result=yes
6500             else
6501               result=no
6502             fi
6503           else
6504             result=$wxUSE_ON_FATAL_EXCEPTION
6505           fi
6506
6507           { echo "$as_me:$LINENO: result: $result" >&5
6508 echo "${ECHO_T}$result" >&6; }
6509
6510
6511           enablestring=
6512           defaultval=$wxUSE_ALL_FEATURES
6513           if test -z "$defaultval"; then
6514               if test x"$enablestring" = xdisable; then
6515                   defaultval=yes
6516               else
6517                   defaultval=no
6518               fi
6519           fi
6520
6521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6522 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6523           # Check whether --enable-cmdline was given.
6524 if test "${enable_cmdline+set}" = set; then
6525   enableval=$enable_cmdline;
6526                           if test "$enableval" = yes; then
6527                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6528                           else
6529                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6530                           fi
6531
6532 else
6533
6534                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6535
6536 fi
6537
6538
6539           eval "$wx_cv_use_cmdline"
6540
6541           if test x"$enablestring" = xdisable; then
6542             if test $wxUSE_CMDLINE_PARSER = no; then
6543               result=yes
6544             else
6545               result=no
6546             fi
6547           else
6548             result=$wxUSE_CMDLINE_PARSER
6549           fi
6550
6551           { echo "$as_me:$LINENO: result: $result" >&5
6552 echo "${ECHO_T}$result" >&6; }
6553
6554
6555           enablestring=
6556           defaultval=$wxUSE_ALL_FEATURES
6557           if test -z "$defaultval"; then
6558               if test x"$enablestring" = xdisable; then
6559                   defaultval=yes
6560               else
6561                   defaultval=no
6562               fi
6563           fi
6564
6565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6566 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6567           # Check whether --enable-datetime was given.
6568 if test "${enable_datetime+set}" = set; then
6569   enableval=$enable_datetime;
6570                           if test "$enableval" = yes; then
6571                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6572                           else
6573                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6574                           fi
6575
6576 else
6577
6578                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6579
6580 fi
6581
6582
6583           eval "$wx_cv_use_datetime"
6584
6585           if test x"$enablestring" = xdisable; then
6586             if test $wxUSE_DATETIME = no; then
6587               result=yes
6588             else
6589               result=no
6590             fi
6591           else
6592             result=$wxUSE_DATETIME
6593           fi
6594
6595           { echo "$as_me:$LINENO: result: $result" >&5
6596 echo "${ECHO_T}$result" >&6; }
6597
6598
6599           enablestring=
6600           defaultval=$wxUSE_ALL_FEATURES
6601           if test -z "$defaultval"; then
6602               if test x"$enablestring" = xdisable; then
6603                   defaultval=yes
6604               else
6605                   defaultval=no
6606               fi
6607           fi
6608
6609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6610 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6611           # Check whether --enable-debugreport was given.
6612 if test "${enable_debugreport+set}" = set; then
6613   enableval=$enable_debugreport;
6614                           if test "$enableval" = yes; then
6615                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6616                           else
6617                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6618                           fi
6619
6620 else
6621
6622                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6623
6624 fi
6625
6626
6627           eval "$wx_cv_use_debugreport"
6628
6629           if test x"$enablestring" = xdisable; then
6630             if test $wxUSE_DEBUGREPORT = no; then
6631               result=yes
6632             else
6633               result=no
6634             fi
6635           else
6636             result=$wxUSE_DEBUGREPORT
6637           fi
6638
6639           { echo "$as_me:$LINENO: result: $result" >&5
6640 echo "${ECHO_T}$result" >&6; }
6641
6642
6643           enablestring=
6644           defaultval=$wxUSE_ALL_FEATURES
6645           if test -z "$defaultval"; then
6646               if test x"$enablestring" = xdisable; then
6647                   defaultval=yes
6648               else
6649                   defaultval=no
6650               fi
6651           fi
6652
6653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6654 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6655           # Check whether --enable-dialupman was given.
6656 if test "${enable_dialupman+set}" = set; then
6657   enableval=$enable_dialupman;
6658                           if test "$enableval" = yes; then
6659                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6660                           else
6661                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6662                           fi
6663
6664 else
6665
6666                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6667
6668 fi
6669
6670
6671           eval "$wx_cv_use_dialupman"
6672
6673           if test x"$enablestring" = xdisable; then
6674             if test $wxUSE_DIALUP_MANAGER = no; then
6675               result=yes
6676             else
6677               result=no
6678             fi
6679           else
6680             result=$wxUSE_DIALUP_MANAGER
6681           fi
6682
6683           { echo "$as_me:$LINENO: result: $result" >&5
6684 echo "${ECHO_T}$result" >&6; }
6685
6686
6687           enablestring=
6688           defaultval=$wxUSE_ALL_FEATURES
6689           if test -z "$defaultval"; then
6690               if test x"$enablestring" = xdisable; then
6691                   defaultval=yes
6692               else
6693                   defaultval=no
6694               fi
6695           fi
6696
6697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6698 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6699           # Check whether --enable-dynlib was given.
6700 if test "${enable_dynlib+set}" = set; then
6701   enableval=$enable_dynlib;
6702                           if test "$enableval" = yes; then
6703                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6704                           else
6705                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6706                           fi
6707
6708 else
6709
6710                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6711
6712 fi
6713
6714
6715           eval "$wx_cv_use_dynlib"
6716
6717           if test x"$enablestring" = xdisable; then
6718             if test $wxUSE_DYNLIB_CLASS = no; then
6719               result=yes
6720             else
6721               result=no
6722             fi
6723           else
6724             result=$wxUSE_DYNLIB_CLASS
6725           fi
6726
6727           { echo "$as_me:$LINENO: result: $result" >&5
6728 echo "${ECHO_T}$result" >&6; }
6729
6730
6731           enablestring=
6732           defaultval=$wxUSE_ALL_FEATURES
6733           if test -z "$defaultval"; then
6734               if test x"$enablestring" = xdisable; then
6735                   defaultval=yes
6736               else
6737                   defaultval=no
6738               fi
6739           fi
6740
6741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6742 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6743           # Check whether --enable-dynamicloader was given.
6744 if test "${enable_dynamicloader+set}" = set; then
6745   enableval=$enable_dynamicloader;
6746                           if test "$enableval" = yes; then
6747                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6748                           else
6749                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6750                           fi
6751
6752 else
6753
6754                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6755
6756 fi
6757
6758
6759           eval "$wx_cv_use_dynamicloader"
6760
6761           if test x"$enablestring" = xdisable; then
6762             if test $wxUSE_DYNAMIC_LOADER = no; then
6763               result=yes
6764             else
6765               result=no
6766             fi
6767           else
6768             result=$wxUSE_DYNAMIC_LOADER
6769           fi
6770
6771           { echo "$as_me:$LINENO: result: $result" >&5
6772 echo "${ECHO_T}$result" >&6; }
6773
6774
6775           enablestring=
6776           defaultval=$wxUSE_ALL_FEATURES
6777           if test -z "$defaultval"; then
6778               if test x"$enablestring" = xdisable; then
6779                   defaultval=yes
6780               else
6781                   defaultval=no
6782               fi
6783           fi
6784
6785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6786 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6787           # Check whether --enable-exceptions was given.
6788 if test "${enable_exceptions+set}" = set; then
6789   enableval=$enable_exceptions;
6790                           if test "$enableval" = yes; then
6791                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6792                           else
6793                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6794                           fi
6795
6796 else
6797
6798                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6799
6800 fi
6801
6802
6803           eval "$wx_cv_use_exceptions"
6804
6805           if test x"$enablestring" = xdisable; then
6806             if test $wxUSE_EXCEPTIONS = no; then
6807               result=yes
6808             else
6809               result=no
6810             fi
6811           else
6812             result=$wxUSE_EXCEPTIONS
6813           fi
6814
6815           { echo "$as_me:$LINENO: result: $result" >&5
6816 echo "${ECHO_T}$result" >&6; }
6817
6818
6819           enablestring=
6820           defaultval=$wxUSE_ALL_FEATURES
6821           if test -z "$defaultval"; then
6822               if test x"$enablestring" = xdisable; then
6823                   defaultval=yes
6824               else
6825                   defaultval=no
6826               fi
6827           fi
6828
6829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6830 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6831           # Check whether --enable-ffile was given.
6832 if test "${enable_ffile+set}" = set; then
6833   enableval=$enable_ffile;
6834                           if test "$enableval" = yes; then
6835                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6836                           else
6837                             wx_cv_use_ffile='wxUSE_FFILE=no'
6838                           fi
6839
6840 else
6841
6842                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6843
6844 fi
6845
6846
6847           eval "$wx_cv_use_ffile"
6848
6849           if test x"$enablestring" = xdisable; then
6850             if test $wxUSE_FFILE = no; then
6851               result=yes
6852             else
6853               result=no
6854             fi
6855           else
6856             result=$wxUSE_FFILE
6857           fi
6858
6859           { echo "$as_me:$LINENO: result: $result" >&5
6860 echo "${ECHO_T}$result" >&6; }
6861
6862
6863           enablestring=
6864           defaultval=$wxUSE_ALL_FEATURES
6865           if test -z "$defaultval"; then
6866               if test x"$enablestring" = xdisable; then
6867                   defaultval=yes
6868               else
6869                   defaultval=no
6870               fi
6871           fi
6872
6873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6874 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6875           # Check whether --enable-file was given.
6876 if test "${enable_file+set}" = set; then
6877   enableval=$enable_file;
6878                           if test "$enableval" = yes; then
6879                             wx_cv_use_file='wxUSE_FILE=yes'
6880                           else
6881                             wx_cv_use_file='wxUSE_FILE=no'
6882                           fi
6883
6884 else
6885
6886                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6887
6888 fi
6889
6890
6891           eval "$wx_cv_use_file"
6892
6893           if test x"$enablestring" = xdisable; then
6894             if test $wxUSE_FILE = no; then
6895               result=yes
6896             else
6897               result=no
6898             fi
6899           else
6900             result=$wxUSE_FILE
6901           fi
6902
6903           { echo "$as_me:$LINENO: result: $result" >&5
6904 echo "${ECHO_T}$result" >&6; }
6905
6906
6907           enablestring=
6908           defaultval=$wxUSE_ALL_FEATURES
6909           if test -z "$defaultval"; then
6910               if test x"$enablestring" = xdisable; then
6911                   defaultval=yes
6912               else
6913                   defaultval=no
6914               fi
6915           fi
6916
6917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6918 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6919           # Check whether --enable-filesystem was given.
6920 if test "${enable_filesystem+set}" = set; then
6921   enableval=$enable_filesystem;
6922                           if test "$enableval" = yes; then
6923                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6924                           else
6925                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6926                           fi
6927
6928 else
6929
6930                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6931
6932 fi
6933
6934
6935           eval "$wx_cv_use_filesystem"
6936
6937           if test x"$enablestring" = xdisable; then
6938             if test $wxUSE_FILESYSTEM = no; then
6939               result=yes
6940             else
6941               result=no
6942             fi
6943           else
6944             result=$wxUSE_FILESYSTEM
6945           fi
6946
6947           { echo "$as_me:$LINENO: result: $result" >&5
6948 echo "${ECHO_T}$result" >&6; }
6949
6950
6951           enablestring=
6952           defaultval=$wxUSE_ALL_FEATURES
6953           if test -z "$defaultval"; then
6954               if test x"$enablestring" = xdisable; then
6955                   defaultval=yes
6956               else
6957                   defaultval=no
6958               fi
6959           fi
6960
6961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6962 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6963           # Check whether --enable-fontenum was given.
6964 if test "${enable_fontenum+set}" = set; then
6965   enableval=$enable_fontenum;
6966                           if test "$enableval" = yes; then
6967                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6968                           else
6969                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6970                           fi
6971
6972 else
6973
6974                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6975
6976 fi
6977
6978
6979           eval "$wx_cv_use_fontenum"
6980
6981           if test x"$enablestring" = xdisable; then
6982             if test $wxUSE_FONTENUM = no; then
6983               result=yes
6984             else
6985               result=no
6986             fi
6987           else
6988             result=$wxUSE_FONTENUM
6989           fi
6990
6991           { echo "$as_me:$LINENO: result: $result" >&5
6992 echo "${ECHO_T}$result" >&6; }
6993
6994
6995           enablestring=
6996           defaultval=$wxUSE_ALL_FEATURES
6997           if test -z "$defaultval"; then
6998               if test x"$enablestring" = xdisable; then
6999                   defaultval=yes
7000               else
7001                   defaultval=no
7002               fi
7003           fi
7004
7005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7006 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7007           # Check whether --enable-fontmap was given.
7008 if test "${enable_fontmap+set}" = set; then
7009   enableval=$enable_fontmap;
7010                           if test "$enableval" = yes; then
7011                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7012                           else
7013                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7014                           fi
7015
7016 else
7017
7018                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7019
7020 fi
7021
7022
7023           eval "$wx_cv_use_fontmap"
7024
7025           if test x"$enablestring" = xdisable; then
7026             if test $wxUSE_FONTMAP = no; then
7027               result=yes
7028             else
7029               result=no
7030             fi
7031           else
7032             result=$wxUSE_FONTMAP
7033           fi
7034
7035           { echo "$as_me:$LINENO: result: $result" >&5
7036 echo "${ECHO_T}$result" >&6; }
7037
7038
7039           enablestring=
7040           defaultval=$wxUSE_ALL_FEATURES
7041           if test -z "$defaultval"; then
7042               if test x"$enablestring" = xdisable; then
7043                   defaultval=yes
7044               else
7045                   defaultval=no
7046               fi
7047           fi
7048
7049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7050 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7051           # Check whether --enable-fs_archive was given.
7052 if test "${enable_fs_archive+set}" = set; then
7053   enableval=$enable_fs_archive;
7054                           if test "$enableval" = yes; then
7055                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7056                           else
7057                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7058                           fi
7059
7060 else
7061
7062                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7063
7064 fi
7065
7066
7067           eval "$wx_cv_use_fs_archive"
7068
7069           if test x"$enablestring" = xdisable; then
7070             if test $wxUSE_FS_ARCHIVE = no; then
7071               result=yes
7072             else
7073               result=no
7074             fi
7075           else
7076             result=$wxUSE_FS_ARCHIVE
7077           fi
7078
7079           { echo "$as_me:$LINENO: result: $result" >&5
7080 echo "${ECHO_T}$result" >&6; }
7081
7082
7083           enablestring=
7084           defaultval=$wxUSE_ALL_FEATURES
7085           if test -z "$defaultval"; then
7086               if test x"$enablestring" = xdisable; then
7087                   defaultval=yes
7088               else
7089                   defaultval=no
7090               fi
7091           fi
7092
7093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7094 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7095           # Check whether --enable-fs_inet was given.
7096 if test "${enable_fs_inet+set}" = set; then
7097   enableval=$enable_fs_inet;
7098                           if test "$enableval" = yes; then
7099                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7100                           else
7101                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7102                           fi
7103
7104 else
7105
7106                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7107
7108 fi
7109
7110
7111           eval "$wx_cv_use_fs_inet"
7112
7113           if test x"$enablestring" = xdisable; then
7114             if test $wxUSE_FS_INET = no; then
7115               result=yes
7116             else
7117               result=no
7118             fi
7119           else
7120             result=$wxUSE_FS_INET
7121           fi
7122
7123           { echo "$as_me:$LINENO: result: $result" >&5
7124 echo "${ECHO_T}$result" >&6; }
7125
7126
7127           enablestring=
7128           defaultval=$wxUSE_ALL_FEATURES
7129           if test -z "$defaultval"; then
7130               if test x"$enablestring" = xdisable; then
7131                   defaultval=yes
7132               else
7133                   defaultval=no
7134               fi
7135           fi
7136
7137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7138 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7139           # Check whether --enable-fs_zip was given.
7140 if test "${enable_fs_zip+set}" = set; then
7141   enableval=$enable_fs_zip;
7142                           if test "$enableval" = yes; then
7143                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7144                           else
7145                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7146                           fi
7147
7148 else
7149
7150                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7151
7152 fi
7153
7154
7155           eval "$wx_cv_use_fs_zip"
7156
7157           if test x"$enablestring" = xdisable; then
7158             if test $wxUSE_FS_ZIP = no; then
7159               result=yes
7160             else
7161               result=no
7162             fi
7163           else
7164             result=$wxUSE_FS_ZIP
7165           fi
7166
7167           { echo "$as_me:$LINENO: result: $result" >&5
7168 echo "${ECHO_T}$result" >&6; }
7169
7170
7171           enablestring=
7172           defaultval=$wxUSE_ALL_FEATURES
7173           if test -z "$defaultval"; then
7174               if test x"$enablestring" = xdisable; then
7175                   defaultval=yes
7176               else
7177                   defaultval=no
7178               fi
7179           fi
7180
7181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7182 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7183           # Check whether --enable-geometry was given.
7184 if test "${enable_geometry+set}" = set; then
7185   enableval=$enable_geometry;
7186                           if test "$enableval" = yes; then
7187                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7188                           else
7189                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7190                           fi
7191
7192 else
7193
7194                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7195
7196 fi
7197
7198
7199           eval "$wx_cv_use_geometry"
7200
7201           if test x"$enablestring" = xdisable; then
7202             if test $wxUSE_GEOMETRY = no; then
7203               result=yes
7204             else
7205               result=no
7206             fi
7207           else
7208             result=$wxUSE_GEOMETRY
7209           fi
7210
7211           { echo "$as_me:$LINENO: result: $result" >&5
7212 echo "${ECHO_T}$result" >&6; }
7213
7214
7215           enablestring=
7216           defaultval=$wxUSE_ALL_FEATURES
7217           if test -z "$defaultval"; then
7218               if test x"$enablestring" = xdisable; then
7219                   defaultval=yes
7220               else
7221                   defaultval=no
7222               fi
7223           fi
7224
7225           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7226 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7227           # Check whether --enable-log was given.
7228 if test "${enable_log+set}" = set; then
7229   enableval=$enable_log;
7230                           if test "$enableval" = yes; then
7231                             wx_cv_use_log='wxUSE_LOG=yes'
7232                           else
7233                             wx_cv_use_log='wxUSE_LOG=no'
7234                           fi
7235
7236 else
7237
7238                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7239
7240 fi
7241
7242
7243           eval "$wx_cv_use_log"
7244
7245           if test x"$enablestring" = xdisable; then
7246             if test $wxUSE_LOG = no; then
7247               result=yes
7248             else
7249               result=no
7250             fi
7251           else
7252             result=$wxUSE_LOG
7253           fi
7254
7255           { echo "$as_me:$LINENO: result: $result" >&5
7256 echo "${ECHO_T}$result" >&6; }
7257
7258
7259           enablestring=
7260           defaultval=$wxUSE_ALL_FEATURES
7261           if test -z "$defaultval"; then
7262               if test x"$enablestring" = xdisable; then
7263                   defaultval=yes
7264               else
7265                   defaultval=no
7266               fi
7267           fi
7268
7269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7270 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7271           # Check whether --enable-longlong was given.
7272 if test "${enable_longlong+set}" = set; then
7273   enableval=$enable_longlong;
7274                           if test "$enableval" = yes; then
7275                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7276                           else
7277                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7278                           fi
7279
7280 else
7281
7282                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7283
7284 fi
7285
7286
7287           eval "$wx_cv_use_longlong"
7288
7289           if test x"$enablestring" = xdisable; then
7290             if test $wxUSE_LONGLONG = no; then
7291               result=yes
7292             else
7293               result=no
7294             fi
7295           else
7296             result=$wxUSE_LONGLONG
7297           fi
7298
7299           { echo "$as_me:$LINENO: result: $result" >&5
7300 echo "${ECHO_T}$result" >&6; }
7301
7302
7303           enablestring=
7304           defaultval=$wxUSE_ALL_FEATURES
7305           if test -z "$defaultval"; then
7306               if test x"$enablestring" = xdisable; then
7307                   defaultval=yes
7308               else
7309                   defaultval=no
7310               fi
7311           fi
7312
7313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7314 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7315           # Check whether --enable-mimetype was given.
7316 if test "${enable_mimetype+set}" = set; then
7317   enableval=$enable_mimetype;
7318                           if test "$enableval" = yes; then
7319                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7320                           else
7321                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7322                           fi
7323
7324 else
7325
7326                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7327
7328 fi
7329
7330
7331           eval "$wx_cv_use_mimetype"
7332
7333           if test x"$enablestring" = xdisable; then
7334             if test $wxUSE_MIMETYPE = no; then
7335               result=yes
7336             else
7337               result=no
7338             fi
7339           else
7340             result=$wxUSE_MIMETYPE
7341           fi
7342
7343           { echo "$as_me:$LINENO: result: $result" >&5
7344 echo "${ECHO_T}$result" >&6; }
7345
7346
7347           enablestring=
7348           defaultval=$wxUSE_ALL_FEATURES
7349           if test -z "$defaultval"; then
7350               if test x"$enablestring" = xdisable; then
7351                   defaultval=yes
7352               else
7353                   defaultval=no
7354               fi
7355           fi
7356
7357           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7358 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7359           # Check whether --enable-printfposparam was given.
7360 if test "${enable_printfposparam+set}" = set; then
7361   enableval=$enable_printfposparam;
7362                           if test "$enableval" = yes; then
7363                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7364                           else
7365                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7366                           fi
7367
7368 else
7369
7370                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7371
7372 fi
7373
7374
7375           eval "$wx_cv_use_printfposparam"
7376
7377           if test x"$enablestring" = xdisable; then
7378             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7379               result=yes
7380             else
7381               result=no
7382             fi
7383           else
7384             result=$wxUSE_PRINTF_POS_PARAMS
7385           fi
7386
7387           { echo "$as_me:$LINENO: result: $result" >&5
7388 echo "${ECHO_T}$result" >&6; }
7389
7390
7391           enablestring=
7392           defaultval=$wxUSE_ALL_FEATURES
7393           if test -z "$defaultval"; then
7394               if test x"$enablestring" = xdisable; then
7395                   defaultval=yes
7396               else
7397                   defaultval=no
7398               fi
7399           fi
7400
7401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7402 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7403           # Check whether --enable-snglinst was given.
7404 if test "${enable_snglinst+set}" = set; then
7405   enableval=$enable_snglinst;
7406                           if test "$enableval" = yes; then
7407                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7408                           else
7409                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7410                           fi
7411
7412 else
7413
7414                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7415
7416 fi
7417
7418
7419           eval "$wx_cv_use_snglinst"
7420
7421           if test x"$enablestring" = xdisable; then
7422             if test $wxUSE_SNGLINST_CHECKER = no; then
7423               result=yes
7424             else
7425               result=no
7426             fi
7427           else
7428             result=$wxUSE_SNGLINST_CHECKER
7429           fi
7430
7431           { echo "$as_me:$LINENO: result: $result" >&5
7432 echo "${ECHO_T}$result" >&6; }
7433
7434
7435           enablestring=
7436           defaultval=$wxUSE_ALL_FEATURES
7437           if test -z "$defaultval"; then
7438               if test x"$enablestring" = xdisable; then
7439                   defaultval=yes
7440               else
7441                   defaultval=no
7442               fi
7443           fi
7444
7445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7446 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7447           # Check whether --enable-sound was given.
7448 if test "${enable_sound+set}" = set; then
7449   enableval=$enable_sound;
7450                           if test "$enableval" = yes; then
7451                             wx_cv_use_sound='wxUSE_SOUND=yes'
7452                           else
7453                             wx_cv_use_sound='wxUSE_SOUND=no'
7454                           fi
7455
7456 else
7457
7458                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7459
7460 fi
7461
7462
7463           eval "$wx_cv_use_sound"
7464
7465           if test x"$enablestring" = xdisable; then
7466             if test $wxUSE_SOUND = no; then
7467               result=yes
7468             else
7469               result=no
7470             fi
7471           else
7472             result=$wxUSE_SOUND
7473           fi
7474
7475           { echo "$as_me:$LINENO: result: $result" >&5
7476 echo "${ECHO_T}$result" >&6; }
7477
7478
7479           enablestring=
7480           defaultval=$wxUSE_ALL_FEATURES
7481           if test -z "$defaultval"; then
7482               if test x"$enablestring" = xdisable; then
7483                   defaultval=yes
7484               else
7485                   defaultval=no
7486               fi
7487           fi
7488
7489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7490 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7491           # Check whether --enable-stdpaths was given.
7492 if test "${enable_stdpaths+set}" = set; then
7493   enableval=$enable_stdpaths;
7494                           if test "$enableval" = yes; then
7495                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7496                           else
7497                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7498                           fi
7499
7500 else
7501
7502                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7503
7504 fi
7505
7506
7507           eval "$wx_cv_use_stdpaths"
7508
7509           if test x"$enablestring" = xdisable; then
7510             if test $wxUSE_STDPATHS = no; then
7511               result=yes
7512             else
7513               result=no
7514             fi
7515           else
7516             result=$wxUSE_STDPATHS
7517           fi
7518
7519           { echo "$as_me:$LINENO: result: $result" >&5
7520 echo "${ECHO_T}$result" >&6; }
7521
7522
7523           enablestring=
7524           defaultval=$wxUSE_ALL_FEATURES
7525           if test -z "$defaultval"; then
7526               if test x"$enablestring" = xdisable; then
7527                   defaultval=yes
7528               else
7529                   defaultval=no
7530               fi
7531           fi
7532
7533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7534 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7535           # Check whether --enable-stopwatch was given.
7536 if test "${enable_stopwatch+set}" = set; then
7537   enableval=$enable_stopwatch;
7538                           if test "$enableval" = yes; then
7539                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7540                           else
7541                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7542                           fi
7543
7544 else
7545
7546                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7547
7548 fi
7549
7550
7551           eval "$wx_cv_use_stopwatch"
7552
7553           if test x"$enablestring" = xdisable; then
7554             if test $wxUSE_STOPWATCH = no; then
7555               result=yes
7556             else
7557               result=no
7558             fi
7559           else
7560             result=$wxUSE_STOPWATCH
7561           fi
7562
7563           { echo "$as_me:$LINENO: result: $result" >&5
7564 echo "${ECHO_T}$result" >&6; }
7565
7566
7567           enablestring=
7568           defaultval=$wxUSE_ALL_FEATURES
7569           if test -z "$defaultval"; then
7570               if test x"$enablestring" = xdisable; then
7571                   defaultval=yes
7572               else
7573                   defaultval=no
7574               fi
7575           fi
7576
7577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7578 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7579           # Check whether --enable-streams was given.
7580 if test "${enable_streams+set}" = set; then
7581   enableval=$enable_streams;
7582                           if test "$enableval" = yes; then
7583                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7584                           else
7585                             wx_cv_use_streams='wxUSE_STREAMS=no'
7586                           fi
7587
7588 else
7589
7590                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7591
7592 fi
7593
7594
7595           eval "$wx_cv_use_streams"
7596
7597           if test x"$enablestring" = xdisable; then
7598             if test $wxUSE_STREAMS = no; then
7599               result=yes
7600             else
7601               result=no
7602             fi
7603           else
7604             result=$wxUSE_STREAMS
7605           fi
7606
7607           { echo "$as_me:$LINENO: result: $result" >&5
7608 echo "${ECHO_T}$result" >&6; }
7609
7610
7611           enablestring=
7612           defaultval=$wxUSE_ALL_FEATURES
7613           if test -z "$defaultval"; then
7614               if test x"$enablestring" = xdisable; then
7615                   defaultval=yes
7616               else
7617                   defaultval=no
7618               fi
7619           fi
7620
7621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7622 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7623           # Check whether --enable-system_options was given.
7624 if test "${enable_system_options+set}" = set; then
7625   enableval=$enable_system_options;
7626                           if test "$enableval" = yes; then
7627                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7628                           else
7629                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7630                           fi
7631
7632 else
7633
7634                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7635
7636 fi
7637
7638
7639           eval "$wx_cv_use_system_options"
7640
7641           if test x"$enablestring" = xdisable; then
7642             if test $wxUSE_SYSTEM_OPTIONS = no; then
7643               result=yes
7644             else
7645               result=no
7646             fi
7647           else
7648             result=$wxUSE_SYSTEM_OPTIONS
7649           fi
7650
7651           { echo "$as_me:$LINENO: result: $result" >&5
7652 echo "${ECHO_T}$result" >&6; }
7653
7654
7655           enablestring=
7656           defaultval=$wxUSE_ALL_FEATURES
7657           if test -z "$defaultval"; then
7658               if test x"$enablestring" = xdisable; then
7659                   defaultval=yes
7660               else
7661                   defaultval=no
7662               fi
7663           fi
7664
7665           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7666 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7667           # Check whether --enable-tarstream was given.
7668 if test "${enable_tarstream+set}" = set; then
7669   enableval=$enable_tarstream;
7670                           if test "$enableval" = yes; then
7671                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7672                           else
7673                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7674                           fi
7675
7676 else
7677
7678                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7679
7680 fi
7681
7682
7683           eval "$wx_cv_use_tarstream"
7684
7685           if test x"$enablestring" = xdisable; then
7686             if test $wxUSE_TARSTREAM = no; then
7687               result=yes
7688             else
7689               result=no
7690             fi
7691           else
7692             result=$wxUSE_TARSTREAM
7693           fi
7694
7695           { echo "$as_me:$LINENO: result: $result" >&5
7696 echo "${ECHO_T}$result" >&6; }
7697
7698
7699           enablestring=
7700           defaultval=$wxUSE_ALL_FEATURES
7701           if test -z "$defaultval"; then
7702               if test x"$enablestring" = xdisable; then
7703                   defaultval=yes
7704               else
7705                   defaultval=no
7706               fi
7707           fi
7708
7709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7710 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7711           # Check whether --enable-textbuf was given.
7712 if test "${enable_textbuf+set}" = set; then
7713   enableval=$enable_textbuf;
7714                           if test "$enableval" = yes; then
7715                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7716                           else
7717                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7718                           fi
7719
7720 else
7721
7722                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7723
7724 fi
7725
7726
7727           eval "$wx_cv_use_textbuf"
7728
7729           if test x"$enablestring" = xdisable; then
7730             if test $wxUSE_TEXTBUFFER = no; then
7731               result=yes
7732             else
7733               result=no
7734             fi
7735           else
7736             result=$wxUSE_TEXTBUFFER
7737           fi
7738
7739           { echo "$as_me:$LINENO: result: $result" >&5
7740 echo "${ECHO_T}$result" >&6; }
7741
7742
7743           enablestring=
7744           defaultval=$wxUSE_ALL_FEATURES
7745           if test -z "$defaultval"; then
7746               if test x"$enablestring" = xdisable; then
7747                   defaultval=yes
7748               else
7749                   defaultval=no
7750               fi
7751           fi
7752
7753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7754 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7755           # Check whether --enable-textfile was given.
7756 if test "${enable_textfile+set}" = set; then
7757   enableval=$enable_textfile;
7758                           if test "$enableval" = yes; then
7759                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7760                           else
7761                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7762                           fi
7763
7764 else
7765
7766                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7767
7768 fi
7769
7770
7771           eval "$wx_cv_use_textfile"
7772
7773           if test x"$enablestring" = xdisable; then
7774             if test $wxUSE_TEXTFILE = no; then
7775               result=yes
7776             else
7777               result=no
7778             fi
7779           else
7780             result=$wxUSE_TEXTFILE
7781           fi
7782
7783           { echo "$as_me:$LINENO: result: $result" >&5
7784 echo "${ECHO_T}$result" >&6; }
7785
7786
7787           enablestring=
7788           defaultval=$wxUSE_ALL_FEATURES
7789           if test -z "$defaultval"; then
7790               if test x"$enablestring" = xdisable; then
7791                   defaultval=yes
7792               else
7793                   defaultval=no
7794               fi
7795           fi
7796
7797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7798 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7799           # Check whether --enable-timer was given.
7800 if test "${enable_timer+set}" = set; then
7801   enableval=$enable_timer;
7802                           if test "$enableval" = yes; then
7803                             wx_cv_use_timer='wxUSE_TIMER=yes'
7804                           else
7805                             wx_cv_use_timer='wxUSE_TIMER=no'
7806                           fi
7807
7808 else
7809
7810                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7811
7812 fi
7813
7814
7815           eval "$wx_cv_use_timer"
7816
7817           if test x"$enablestring" = xdisable; then
7818             if test $wxUSE_TIMER = no; then
7819               result=yes
7820             else
7821               result=no
7822             fi
7823           else
7824             result=$wxUSE_TIMER
7825           fi
7826
7827           { echo "$as_me:$LINENO: result: $result" >&5
7828 echo "${ECHO_T}$result" >&6; }
7829
7830
7831           enablestring=
7832           defaultval=$wxUSE_ALL_FEATURES
7833           if test -z "$defaultval"; then
7834               if test x"$enablestring" = xdisable; then
7835                   defaultval=yes
7836               else
7837                   defaultval=no
7838               fi
7839           fi
7840
7841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7842 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7843           # Check whether --enable-variant was given.
7844 if test "${enable_variant+set}" = set; then
7845   enableval=$enable_variant;
7846                           if test "$enableval" = yes; then
7847                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7848                           else
7849                             wx_cv_use_variant='wxUSE_VARIANT=no'
7850                           fi
7851
7852 else
7853
7854                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7855
7856 fi
7857
7858
7859           eval "$wx_cv_use_variant"
7860
7861           if test x"$enablestring" = xdisable; then
7862             if test $wxUSE_VARIANT = no; then
7863               result=yes
7864             else
7865               result=no
7866             fi
7867           else
7868             result=$wxUSE_VARIANT
7869           fi
7870
7871           { echo "$as_me:$LINENO: result: $result" >&5
7872 echo "${ECHO_T}$result" >&6; }
7873
7874
7875           enablestring=
7876           defaultval=$wxUSE_ALL_FEATURES
7877           if test -z "$defaultval"; then
7878               if test x"$enablestring" = xdisable; then
7879                   defaultval=yes
7880               else
7881                   defaultval=no
7882               fi
7883           fi
7884
7885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7886 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7887           # Check whether --enable-zipstream was given.
7888 if test "${enable_zipstream+set}" = set; then
7889   enableval=$enable_zipstream;
7890                           if test "$enableval" = yes; then
7891                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7892                           else
7893                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7894                           fi
7895
7896 else
7897
7898                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7899
7900 fi
7901
7902
7903           eval "$wx_cv_use_zipstream"
7904
7905           if test x"$enablestring" = xdisable; then
7906             if test $wxUSE_ZIPSTREAM = no; then
7907               result=yes
7908             else
7909               result=no
7910             fi
7911           else
7912             result=$wxUSE_ZIPSTREAM
7913           fi
7914
7915           { echo "$as_me:$LINENO: result: $result" >&5
7916 echo "${ECHO_T}$result" >&6; }
7917
7918
7919
7920           enablestring=
7921           defaultval=$wxUSE_ALL_FEATURES
7922           if test -z "$defaultval"; then
7923               if test x"$enablestring" = xdisable; then
7924                   defaultval=yes
7925               else
7926                   defaultval=no
7927               fi
7928           fi
7929
7930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7931 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7932           # Check whether --enable-url was given.
7933 if test "${enable_url+set}" = set; then
7934   enableval=$enable_url;
7935                           if test "$enableval" = yes; then
7936                             wx_cv_use_url='wxUSE_URL=yes'
7937                           else
7938                             wx_cv_use_url='wxUSE_URL=no'
7939                           fi
7940
7941 else
7942
7943                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7944
7945 fi
7946
7947
7948           eval "$wx_cv_use_url"
7949
7950           if test x"$enablestring" = xdisable; then
7951             if test $wxUSE_URL = no; then
7952               result=yes
7953             else
7954               result=no
7955             fi
7956           else
7957             result=$wxUSE_URL
7958           fi
7959
7960           { echo "$as_me:$LINENO: result: $result" >&5
7961 echo "${ECHO_T}$result" >&6; }
7962
7963
7964           enablestring=
7965           defaultval=$wxUSE_ALL_FEATURES
7966           if test -z "$defaultval"; then
7967               if test x"$enablestring" = xdisable; then
7968                   defaultval=yes
7969               else
7970                   defaultval=no
7971               fi
7972           fi
7973
7974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7975 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7976           # Check whether --enable-protocol was given.
7977 if test "${enable_protocol+set}" = set; then
7978   enableval=$enable_protocol;
7979                           if test "$enableval" = yes; then
7980                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7981                           else
7982                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7983                           fi
7984
7985 else
7986
7987                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7988
7989 fi
7990
7991
7992           eval "$wx_cv_use_protocol"
7993
7994           if test x"$enablestring" = xdisable; then
7995             if test $wxUSE_PROTOCOL = no; then
7996               result=yes
7997             else
7998               result=no
7999             fi
8000           else
8001             result=$wxUSE_PROTOCOL
8002           fi
8003
8004           { echo "$as_me:$LINENO: result: $result" >&5
8005 echo "${ECHO_T}$result" >&6; }
8006
8007
8008           enablestring=
8009           defaultval=$wxUSE_ALL_FEATURES
8010           if test -z "$defaultval"; then
8011               if test x"$enablestring" = xdisable; then
8012                   defaultval=yes
8013               else
8014                   defaultval=no
8015               fi
8016           fi
8017
8018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8019 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8020           # Check whether --enable-protocol_http was given.
8021 if test "${enable_protocol_http+set}" = set; then
8022   enableval=$enable_protocol_http;
8023                           if test "$enableval" = yes; then
8024                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8025                           else
8026                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8027                           fi
8028
8029 else
8030
8031                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8032
8033 fi
8034
8035
8036           eval "$wx_cv_use_protocol_http"
8037
8038           if test x"$enablestring" = xdisable; then
8039             if test $wxUSE_PROTOCOL_HTTP = no; then
8040               result=yes
8041             else
8042               result=no
8043             fi
8044           else
8045             result=$wxUSE_PROTOCOL_HTTP
8046           fi
8047
8048           { echo "$as_me:$LINENO: result: $result" >&5
8049 echo "${ECHO_T}$result" >&6; }
8050
8051
8052           enablestring=
8053           defaultval=$wxUSE_ALL_FEATURES
8054           if test -z "$defaultval"; then
8055               if test x"$enablestring" = xdisable; then
8056                   defaultval=yes
8057               else
8058                   defaultval=no
8059               fi
8060           fi
8061
8062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8063 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8064           # Check whether --enable-protocol_ftp was given.
8065 if test "${enable_protocol_ftp+set}" = set; then
8066   enableval=$enable_protocol_ftp;
8067                           if test "$enableval" = yes; then
8068                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8069                           else
8070                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8071                           fi
8072
8073 else
8074
8075                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8076
8077 fi
8078
8079
8080           eval "$wx_cv_use_protocol_ftp"
8081
8082           if test x"$enablestring" = xdisable; then
8083             if test $wxUSE_PROTOCOL_FTP = no; then
8084               result=yes
8085             else
8086               result=no
8087             fi
8088           else
8089             result=$wxUSE_PROTOCOL_FTP
8090           fi
8091
8092           { echo "$as_me:$LINENO: result: $result" >&5
8093 echo "${ECHO_T}$result" >&6; }
8094
8095
8096           enablestring=
8097           defaultval=$wxUSE_ALL_FEATURES
8098           if test -z "$defaultval"; then
8099               if test x"$enablestring" = xdisable; then
8100                   defaultval=yes
8101               else
8102                   defaultval=no
8103               fi
8104           fi
8105
8106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8107 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8108           # Check whether --enable-protocol_file was given.
8109 if test "${enable_protocol_file+set}" = set; then
8110   enableval=$enable_protocol_file;
8111                           if test "$enableval" = yes; then
8112                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8113                           else
8114                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8115                           fi
8116
8117 else
8118
8119                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8120
8121 fi
8122
8123
8124           eval "$wx_cv_use_protocol_file"
8125
8126           if test x"$enablestring" = xdisable; then
8127             if test $wxUSE_PROTOCOL_FILE = no; then
8128               result=yes
8129             else
8130               result=no
8131             fi
8132           else
8133             result=$wxUSE_PROTOCOL_FILE
8134           fi
8135
8136           { echo "$as_me:$LINENO: result: $result" >&5
8137 echo "${ECHO_T}$result" >&6; }
8138
8139
8140
8141           enablestring=
8142           defaultval=$wxUSE_ALL_FEATURES
8143           if test -z "$defaultval"; then
8144               if test x"$enablestring" = xdisable; then
8145                   defaultval=yes
8146               else
8147                   defaultval=no
8148               fi
8149           fi
8150
8151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8152 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8153           # Check whether --enable-threads was given.
8154 if test "${enable_threads+set}" = set; then
8155   enableval=$enable_threads;
8156                           if test "$enableval" = yes; then
8157                             wx_cv_use_threads='wxUSE_THREADS=yes'
8158                           else
8159                             wx_cv_use_threads='wxUSE_THREADS=no'
8160                           fi
8161
8162 else
8163
8164                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8165
8166 fi
8167
8168
8169           eval "$wx_cv_use_threads"
8170
8171           if test x"$enablestring" = xdisable; then
8172             if test $wxUSE_THREADS = no; then
8173               result=yes
8174             else
8175               result=no
8176             fi
8177           else
8178             result=$wxUSE_THREADS
8179           fi
8180
8181           { echo "$as_me:$LINENO: result: $result" >&5
8182 echo "${ECHO_T}$result" >&6; }
8183
8184
8185
8186           enablestring=
8187           defaultval=
8188           if test -z "$defaultval"; then
8189               if test x"$enablestring" = xdisable; then
8190                   defaultval=yes
8191               else
8192                   defaultval=no
8193               fi
8194           fi
8195
8196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8197 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8198           # Check whether --enable-iniconf was given.
8199 if test "${enable_iniconf+set}" = set; then
8200   enableval=$enable_iniconf;
8201                           if test "$enableval" = yes; then
8202                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8203                           else
8204                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8205                           fi
8206
8207 else
8208
8209                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8210
8211 fi
8212
8213
8214           eval "$wx_cv_use_iniconf"
8215
8216           if test x"$enablestring" = xdisable; then
8217             if test $wxUSE_INICONF = no; then
8218               result=yes
8219             else
8220               result=no
8221             fi
8222           else
8223             result=$wxUSE_INICONF
8224           fi
8225
8226           { echo "$as_me:$LINENO: result: $result" >&5
8227 echo "${ECHO_T}$result" >&6; }
8228
8229
8230           enablestring=
8231           defaultval=$wxUSE_ALL_FEATURES
8232           if test -z "$defaultval"; then
8233               if test x"$enablestring" = xdisable; then
8234                   defaultval=yes
8235               else
8236                   defaultval=no
8237               fi
8238           fi
8239
8240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8241 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8242           # Check whether --enable-regkey was given.
8243 if test "${enable_regkey+set}" = set; then
8244   enableval=$enable_regkey;
8245                           if test "$enableval" = yes; then
8246                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8247                           else
8248                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8249                           fi
8250
8251 else
8252
8253                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8254
8255 fi
8256
8257
8258           eval "$wx_cv_use_regkey"
8259
8260           if test x"$enablestring" = xdisable; then
8261             if test $wxUSE_REGKEY = no; then
8262               result=yes
8263             else
8264               result=no
8265             fi
8266           else
8267             result=$wxUSE_REGKEY
8268           fi
8269
8270           { echo "$as_me:$LINENO: result: $result" >&5
8271 echo "${ECHO_T}$result" >&6; }
8272
8273
8274 if test "$wxUSE_GUI" = "yes"; then
8275
8276
8277
8278           enablestring=
8279           defaultval=$wxUSE_ALL_FEATURES
8280           if test -z "$defaultval"; then
8281               if test x"$enablestring" = xdisable; then
8282                   defaultval=yes
8283               else
8284                   defaultval=no
8285               fi
8286           fi
8287
8288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8289 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8290           # Check whether --enable-docview was given.
8291 if test "${enable_docview+set}" = set; then
8292   enableval=$enable_docview;
8293                           if test "$enableval" = yes; then
8294                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8295                           else
8296                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8297                           fi
8298
8299 else
8300
8301                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8302
8303 fi
8304
8305
8306           eval "$wx_cv_use_docview"
8307
8308           if test x"$enablestring" = xdisable; then
8309             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8310               result=yes
8311             else
8312               result=no
8313             fi
8314           else
8315             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8316           fi
8317
8318           { echo "$as_me:$LINENO: result: $result" >&5
8319 echo "${ECHO_T}$result" >&6; }
8320
8321
8322           enablestring=
8323           defaultval=$wxUSE_ALL_FEATURES
8324           if test -z "$defaultval"; then
8325               if test x"$enablestring" = xdisable; then
8326                   defaultval=yes
8327               else
8328                   defaultval=no
8329               fi
8330           fi
8331
8332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8333 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8334           # Check whether --enable-help was given.
8335 if test "${enable_help+set}" = set; then
8336   enableval=$enable_help;
8337                           if test "$enableval" = yes; then
8338                             wx_cv_use_help='wxUSE_HELP=yes'
8339                           else
8340                             wx_cv_use_help='wxUSE_HELP=no'
8341                           fi
8342
8343 else
8344
8345                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8346
8347 fi
8348
8349
8350           eval "$wx_cv_use_help"
8351
8352           if test x"$enablestring" = xdisable; then
8353             if test $wxUSE_HELP = no; then
8354               result=yes
8355             else
8356               result=no
8357             fi
8358           else
8359             result=$wxUSE_HELP
8360           fi
8361
8362           { echo "$as_me:$LINENO: result: $result" >&5
8363 echo "${ECHO_T}$result" >&6; }
8364
8365
8366           enablestring=
8367           defaultval=$wxUSE_ALL_FEATURES
8368           if test -z "$defaultval"; then
8369               if test x"$enablestring" = xdisable; then
8370                   defaultval=yes
8371               else
8372                   defaultval=no
8373               fi
8374           fi
8375
8376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8377 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8378           # Check whether --enable-mshtmlhelp was given.
8379 if test "${enable_mshtmlhelp+set}" = set; then
8380   enableval=$enable_mshtmlhelp;
8381                           if test "$enableval" = yes; then
8382                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8383                           else
8384                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8385                           fi
8386
8387 else
8388
8389                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8390
8391 fi
8392
8393
8394           eval "$wx_cv_use_mshtmlhelp"
8395
8396           if test x"$enablestring" = xdisable; then
8397             if test $wxUSE_MS_HTML_HELP = no; then
8398               result=yes
8399             else
8400               result=no
8401             fi
8402           else
8403             result=$wxUSE_MS_HTML_HELP
8404           fi
8405
8406           { echo "$as_me:$LINENO: result: $result" >&5
8407 echo "${ECHO_T}$result" >&6; }
8408
8409
8410           enablestring=
8411           defaultval=$wxUSE_ALL_FEATURES
8412           if test -z "$defaultval"; then
8413               if test x"$enablestring" = xdisable; then
8414                   defaultval=yes
8415               else
8416                   defaultval=no
8417               fi
8418           fi
8419
8420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8421 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8422           # Check whether --enable-html was given.
8423 if test "${enable_html+set}" = set; then
8424   enableval=$enable_html;
8425                           if test "$enableval" = yes; then
8426                             wx_cv_use_html='wxUSE_HTML=yes'
8427                           else
8428                             wx_cv_use_html='wxUSE_HTML=no'
8429                           fi
8430
8431 else
8432
8433                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8434
8435 fi
8436
8437
8438           eval "$wx_cv_use_html"
8439
8440           if test x"$enablestring" = xdisable; then
8441             if test $wxUSE_HTML = no; then
8442               result=yes
8443             else
8444               result=no
8445             fi
8446           else
8447             result=$wxUSE_HTML
8448           fi
8449
8450           { echo "$as_me:$LINENO: result: $result" >&5
8451 echo "${ECHO_T}$result" >&6; }
8452
8453
8454           enablestring=
8455           defaultval=$wxUSE_ALL_FEATURES
8456           if test -z "$defaultval"; then
8457               if test x"$enablestring" = xdisable; then
8458                   defaultval=yes
8459               else
8460                   defaultval=no
8461               fi
8462           fi
8463
8464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8465 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8466           # Check whether --enable-htmlhelp was given.
8467 if test "${enable_htmlhelp+set}" = set; then
8468   enableval=$enable_htmlhelp;
8469                           if test "$enableval" = yes; then
8470                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8471                           else
8472                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8473                           fi
8474
8475 else
8476
8477                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8478
8479 fi
8480
8481
8482           eval "$wx_cv_use_htmlhelp"
8483
8484           if test x"$enablestring" = xdisable; then
8485             if test $wxUSE_WXHTML_HELP = no; then
8486               result=yes
8487             else
8488               result=no
8489             fi
8490           else
8491             result=$wxUSE_WXHTML_HELP
8492           fi
8493
8494           { echo "$as_me:$LINENO: result: $result" >&5
8495 echo "${ECHO_T}$result" >&6; }
8496
8497
8498           enablestring=
8499           defaultval=$wxUSE_ALL_FEATURES
8500           if test -z "$defaultval"; then
8501               if test x"$enablestring" = xdisable; then
8502                   defaultval=yes
8503               else
8504                   defaultval=no
8505               fi
8506           fi
8507
8508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8509 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8510           # Check whether --enable-xrc was given.
8511 if test "${enable_xrc+set}" = set; then
8512   enableval=$enable_xrc;
8513                           if test "$enableval" = yes; then
8514                             wx_cv_use_xrc='wxUSE_XRC=yes'
8515                           else
8516                             wx_cv_use_xrc='wxUSE_XRC=no'
8517                           fi
8518
8519 else
8520
8521                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8522
8523 fi
8524
8525
8526           eval "$wx_cv_use_xrc"
8527
8528           if test x"$enablestring" = xdisable; then
8529             if test $wxUSE_XRC = no; then
8530               result=yes
8531             else
8532               result=no
8533             fi
8534           else
8535             result=$wxUSE_XRC
8536           fi
8537
8538           { echo "$as_me:$LINENO: result: $result" >&5
8539 echo "${ECHO_T}$result" >&6; }
8540
8541
8542           enablestring=
8543           defaultval=$wxUSE_ALL_FEATURES
8544           if test -z "$defaultval"; then
8545               if test x"$enablestring" = xdisable; then
8546                   defaultval=yes
8547               else
8548                   defaultval=no
8549               fi
8550           fi
8551
8552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8553 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8554           # Check whether --enable-aui was given.
8555 if test "${enable_aui+set}" = set; then
8556   enableval=$enable_aui;
8557                           if test "$enableval" = yes; then
8558                             wx_cv_use_aui='wxUSE_AUI=yes'
8559                           else
8560                             wx_cv_use_aui='wxUSE_AUI=no'
8561                           fi
8562
8563 else
8564
8565                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8566
8567 fi
8568
8569
8570           eval "$wx_cv_use_aui"
8571
8572           if test x"$enablestring" = xdisable; then
8573             if test $wxUSE_AUI = no; then
8574               result=yes
8575             else
8576               result=no
8577             fi
8578           else
8579             result=$wxUSE_AUI
8580           fi
8581
8582           { echo "$as_me:$LINENO: result: $result" >&5
8583 echo "${ECHO_T}$result" >&6; }
8584
8585
8586           enablestring=
8587           defaultval=$wxUSE_ALL_FEATURES
8588           if test -z "$defaultval"; then
8589               if test x"$enablestring" = xdisable; then
8590                   defaultval=yes
8591               else
8592                   defaultval=no
8593               fi
8594           fi
8595
8596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8597 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8598           # Check whether --enable-propgrid was given.
8599 if test "${enable_propgrid+set}" = set; then
8600   enableval=$enable_propgrid;
8601                           if test "$enableval" = yes; then
8602                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8603                           else
8604                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8605                           fi
8606
8607 else
8608
8609                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8610
8611 fi
8612
8613
8614           eval "$wx_cv_use_propgrid"
8615
8616           if test x"$enablestring" = xdisable; then
8617             if test $wxUSE_PROPGRID = no; then
8618               result=yes
8619             else
8620               result=no
8621             fi
8622           else
8623             result=$wxUSE_PROPGRID
8624           fi
8625
8626           { echo "$as_me:$LINENO: result: $result" >&5
8627 echo "${ECHO_T}$result" >&6; }
8628
8629
8630           enablestring=
8631           defaultval=$wxUSE_ALL_FEATURES
8632           if test -z "$defaultval"; then
8633               if test x"$enablestring" = xdisable; then
8634                   defaultval=yes
8635               else
8636                   defaultval=no
8637               fi
8638           fi
8639
8640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8641 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8642           # Check whether --enable-stc was given.
8643 if test "${enable_stc+set}" = set; then
8644   enableval=$enable_stc;
8645                           if test "$enableval" = yes; then
8646                             wx_cv_use_stc='wxUSE_STC=yes'
8647                           else
8648                             wx_cv_use_stc='wxUSE_STC=no'
8649                           fi
8650
8651 else
8652
8653                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8654
8655 fi
8656
8657
8658           eval "$wx_cv_use_stc"
8659
8660           if test x"$enablestring" = xdisable; then
8661             if test $wxUSE_STC = no; then
8662               result=yes
8663             else
8664               result=no
8665             fi
8666           else
8667             result=$wxUSE_STC
8668           fi
8669
8670           { echo "$as_me:$LINENO: result: $result" >&5
8671 echo "${ECHO_T}$result" >&6; }
8672
8673
8674           enablestring=
8675           defaultval=$wxUSE_ALL_FEATURES
8676           if test -z "$defaultval"; then
8677               if test x"$enablestring" = xdisable; then
8678                   defaultval=yes
8679               else
8680                   defaultval=no
8681               fi
8682           fi
8683
8684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8685 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8686           # Check whether --enable-constraints was given.
8687 if test "${enable_constraints+set}" = set; then
8688   enableval=$enable_constraints;
8689                           if test "$enableval" = yes; then
8690                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8691                           else
8692                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8693                           fi
8694
8695 else
8696
8697                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8698
8699 fi
8700
8701
8702           eval "$wx_cv_use_constraints"
8703
8704           if test x"$enablestring" = xdisable; then
8705             if test $wxUSE_CONSTRAINTS = no; then
8706               result=yes
8707             else
8708               result=no
8709             fi
8710           else
8711             result=$wxUSE_CONSTRAINTS
8712           fi
8713
8714           { echo "$as_me:$LINENO: result: $result" >&5
8715 echo "${ECHO_T}$result" >&6; }
8716
8717
8718           enablestring=
8719           defaultval=$wxUSE_ALL_FEATURES
8720           if test -z "$defaultval"; then
8721               if test x"$enablestring" = xdisable; then
8722                   defaultval=yes
8723               else
8724                   defaultval=no
8725               fi
8726           fi
8727
8728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8729 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8730           # Check whether --enable-loggui was given.
8731 if test "${enable_loggui+set}" = set; then
8732   enableval=$enable_loggui;
8733                           if test "$enableval" = yes; then
8734                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8735                           else
8736                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8737                           fi
8738
8739 else
8740
8741                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8742
8743 fi
8744
8745
8746           eval "$wx_cv_use_loggui"
8747
8748           if test x"$enablestring" = xdisable; then
8749             if test $wxUSE_LOGGUI = no; then
8750               result=yes
8751             else
8752               result=no
8753             fi
8754           else
8755             result=$wxUSE_LOGGUI
8756           fi
8757
8758           { echo "$as_me:$LINENO: result: $result" >&5
8759 echo "${ECHO_T}$result" >&6; }
8760
8761
8762           enablestring=
8763           defaultval=$wxUSE_ALL_FEATURES
8764           if test -z "$defaultval"; then
8765               if test x"$enablestring" = xdisable; then
8766                   defaultval=yes
8767               else
8768                   defaultval=no
8769               fi
8770           fi
8771
8772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8773 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8774           # Check whether --enable-logwin was given.
8775 if test "${enable_logwin+set}" = set; then
8776   enableval=$enable_logwin;
8777                           if test "$enableval" = yes; then
8778                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8779                           else
8780                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8781                           fi
8782
8783 else
8784
8785                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8786
8787 fi
8788
8789
8790           eval "$wx_cv_use_logwin"
8791
8792           if test x"$enablestring" = xdisable; then
8793             if test $wxUSE_LOGWINDOW = no; then
8794               result=yes
8795             else
8796               result=no
8797             fi
8798           else
8799             result=$wxUSE_LOGWINDOW
8800           fi
8801
8802           { echo "$as_me:$LINENO: result: $result" >&5
8803 echo "${ECHO_T}$result" >&6; }
8804
8805
8806           enablestring=
8807           defaultval=$wxUSE_ALL_FEATURES
8808           if test -z "$defaultval"; then
8809               if test x"$enablestring" = xdisable; then
8810                   defaultval=yes
8811               else
8812                   defaultval=no
8813               fi
8814           fi
8815
8816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8817 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8818           # Check whether --enable-logdialog was given.
8819 if test "${enable_logdialog+set}" = set; then
8820   enableval=$enable_logdialog;
8821                           if test "$enableval" = yes; then
8822                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8823                           else
8824                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8825                           fi
8826
8827 else
8828
8829                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8830
8831 fi
8832
8833
8834           eval "$wx_cv_use_logdialog"
8835
8836           if test x"$enablestring" = xdisable; then
8837             if test $wxUSE_LOGDIALOG = no; then
8838               result=yes
8839             else
8840               result=no
8841             fi
8842           else
8843             result=$wxUSE_LOGDIALOG
8844           fi
8845
8846           { echo "$as_me:$LINENO: result: $result" >&5
8847 echo "${ECHO_T}$result" >&6; }
8848
8849
8850           enablestring=
8851           defaultval=$wxUSE_ALL_FEATURES
8852           if test -z "$defaultval"; then
8853               if test x"$enablestring" = xdisable; then
8854                   defaultval=yes
8855               else
8856                   defaultval=no
8857               fi
8858           fi
8859
8860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8861 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8862           # Check whether --enable-mdi was given.
8863 if test "${enable_mdi+set}" = set; then
8864   enableval=$enable_mdi;
8865                           if test "$enableval" = yes; then
8866                             wx_cv_use_mdi='wxUSE_MDI=yes'
8867                           else
8868                             wx_cv_use_mdi='wxUSE_MDI=no'
8869                           fi
8870
8871 else
8872
8873                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8874
8875 fi
8876
8877
8878           eval "$wx_cv_use_mdi"
8879
8880           if test x"$enablestring" = xdisable; then
8881             if test $wxUSE_MDI = no; then
8882               result=yes
8883             else
8884               result=no
8885             fi
8886           else
8887             result=$wxUSE_MDI
8888           fi
8889
8890           { echo "$as_me:$LINENO: result: $result" >&5
8891 echo "${ECHO_T}$result" >&6; }
8892
8893
8894           enablestring=
8895           defaultval=$wxUSE_ALL_FEATURES
8896           if test -z "$defaultval"; then
8897               if test x"$enablestring" = xdisable; then
8898                   defaultval=yes
8899               else
8900                   defaultval=no
8901               fi
8902           fi
8903
8904           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8905 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8906           # Check whether --enable-mdidoc was given.
8907 if test "${enable_mdidoc+set}" = set; then
8908   enableval=$enable_mdidoc;
8909                           if test "$enableval" = yes; then
8910                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8911                           else
8912                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8913                           fi
8914
8915 else
8916
8917                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8918
8919 fi
8920
8921
8922           eval "$wx_cv_use_mdidoc"
8923
8924           if test x"$enablestring" = xdisable; then
8925             if test $wxUSE_MDI_ARCHITECTURE = no; then
8926               result=yes
8927             else
8928               result=no
8929             fi
8930           else
8931             result=$wxUSE_MDI_ARCHITECTURE
8932           fi
8933
8934           { echo "$as_me:$LINENO: result: $result" >&5
8935 echo "${ECHO_T}$result" >&6; }
8936
8937
8938           enablestring=
8939           defaultval=$wxUSE_ALL_FEATURES
8940           if test -z "$defaultval"; then
8941               if test x"$enablestring" = xdisable; then
8942                   defaultval=yes
8943               else
8944                   defaultval=no
8945               fi
8946           fi
8947
8948           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8949 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8950           # Check whether --enable-mediactrl was given.
8951 if test "${enable_mediactrl+set}" = set; then
8952   enableval=$enable_mediactrl;
8953                           if test "$enableval" = yes; then
8954                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8955                           else
8956                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8957                           fi
8958
8959 else
8960
8961                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8962
8963 fi
8964
8965
8966           eval "$wx_cv_use_mediactrl"
8967
8968           if test x"$enablestring" = xdisable; then
8969             if test $wxUSE_MEDIACTRL = no; then
8970               result=yes
8971             else
8972               result=no
8973             fi
8974           else
8975             result=$wxUSE_MEDIACTRL
8976           fi
8977
8978           { echo "$as_me:$LINENO: result: $result" >&5
8979 echo "${ECHO_T}$result" >&6; }
8980
8981
8982           enablestring=
8983           defaultval=$wxUSE_ALL_FEATURES
8984           if test -z "$defaultval"; then
8985               if test x"$enablestring" = xdisable; then
8986                   defaultval=yes
8987               else
8988                   defaultval=no
8989               fi
8990           fi
8991
8992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8993 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8994           # Check whether --enable-gstreamer8 was given.
8995 if test "${enable_gstreamer8+set}" = set; then
8996   enableval=$enable_gstreamer8;
8997                           if test "$enableval" = yes; then
8998                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8999                           else
9000                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9001                           fi
9002
9003 else
9004
9005                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9006
9007 fi
9008
9009
9010           eval "$wx_cv_use_gstreamer8"
9011
9012           if test x"$enablestring" = xdisable; then
9013             if test $wxUSE_GSTREAMER8 = no; then
9014               result=yes
9015             else
9016               result=no
9017             fi
9018           else
9019             result=$wxUSE_GSTREAMER8
9020           fi
9021
9022           { echo "$as_me:$LINENO: result: $result" >&5
9023 echo "${ECHO_T}$result" >&6; }
9024
9025
9026           enablestring=
9027           defaultval=$wxUSE_ALL_FEATURES
9028           if test -z "$defaultval"; then
9029               if test x"$enablestring" = xdisable; then
9030                   defaultval=yes
9031               else
9032                   defaultval=no
9033               fi
9034           fi
9035
9036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9037 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9038           # Check whether --enable-webkit was given.
9039 if test "${enable_webkit+set}" = set; then
9040   enableval=$enable_webkit;
9041                           if test "$enableval" = yes; then
9042                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9043                           else
9044                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9045                           fi
9046
9047 else
9048
9049                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9050
9051 fi
9052
9053
9054           eval "$wx_cv_use_webkit"
9055
9056           if test x"$enablestring" = xdisable; then
9057             if test $wxUSE_WEBKIT = no; then
9058               result=yes
9059             else
9060               result=no
9061             fi
9062           else
9063             result=$wxUSE_WEBKIT
9064           fi
9065
9066           { echo "$as_me:$LINENO: result: $result" >&5
9067 echo "${ECHO_T}$result" >&6; }
9068
9069
9070           enablestring=
9071           defaultval=$wxUSE_ALL_FEATURES
9072           if test -z "$defaultval"; then
9073               if test x"$enablestring" = xdisable; then
9074                   defaultval=yes
9075               else
9076                   defaultval=no
9077               fi
9078           fi
9079
9080           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9081 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9082           # Check whether --enable-richtext was given.
9083 if test "${enable_richtext+set}" = set; then
9084   enableval=$enable_richtext;
9085                           if test "$enableval" = yes; then
9086                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9087                           else
9088                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9089                           fi
9090
9091 else
9092
9093                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9094
9095 fi
9096
9097
9098           eval "$wx_cv_use_richtext"
9099
9100           if test x"$enablestring" = xdisable; then
9101             if test $wxUSE_RICHTEXT = no; then
9102               result=yes
9103             else
9104               result=no
9105             fi
9106           else
9107             result=$wxUSE_RICHTEXT
9108           fi
9109
9110           { echo "$as_me:$LINENO: result: $result" >&5
9111 echo "${ECHO_T}$result" >&6; }
9112
9113
9114           enablestring=
9115           defaultval=$wxUSE_ALL_FEATURES
9116           if test -z "$defaultval"; then
9117               if test x"$enablestring" = xdisable; then
9118                   defaultval=yes
9119               else
9120                   defaultval=no
9121               fi
9122           fi
9123
9124           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9125 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9126           # Check whether --enable-graphics_ctx was given.
9127 if test "${enable_graphics_ctx+set}" = set; then
9128   enableval=$enable_graphics_ctx;
9129                           if test "$enableval" = yes; then
9130                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9131                           else
9132                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9133                           fi
9134
9135 else
9136
9137                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9138
9139 fi
9140
9141
9142           eval "$wx_cv_use_graphics_ctx"
9143
9144           if test x"$enablestring" = xdisable; then
9145             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9146               result=yes
9147             else
9148               result=no
9149             fi
9150           else
9151             result=$wxUSE_GRAPHICS_CONTEXT
9152           fi
9153
9154           { echo "$as_me:$LINENO: result: $result" >&5
9155 echo "${ECHO_T}$result" >&6; }
9156
9157
9158           enablestring=
9159           defaultval=$wxUSE_ALL_FEATURES
9160           if test -z "$defaultval"; then
9161               if test x"$enablestring" = xdisable; then
9162                   defaultval=yes
9163               else
9164                   defaultval=no
9165               fi
9166           fi
9167
9168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9169 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9170           # Check whether --enable-postscript was given.
9171 if test "${enable_postscript+set}" = set; then
9172   enableval=$enable_postscript;
9173                           if test "$enableval" = yes; then
9174                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9175                           else
9176                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9177                           fi
9178
9179 else
9180
9181                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9182
9183 fi
9184
9185
9186           eval "$wx_cv_use_postscript"
9187
9188           if test x"$enablestring" = xdisable; then
9189             if test $wxUSE_POSTSCRIPT = no; then
9190               result=yes
9191             else
9192               result=no
9193             fi
9194           else
9195             result=$wxUSE_POSTSCRIPT
9196           fi
9197
9198           { echo "$as_me:$LINENO: result: $result" >&5
9199 echo "${ECHO_T}$result" >&6; }
9200
9201
9202           enablestring=
9203           defaultval=$wxUSE_ALL_FEATURES
9204           if test -z "$defaultval"; then
9205               if test x"$enablestring" = xdisable; then
9206                   defaultval=yes
9207               else
9208                   defaultval=no
9209               fi
9210           fi
9211
9212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9213 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9214           # Check whether --enable-printarch was given.
9215 if test "${enable_printarch+set}" = set; then
9216   enableval=$enable_printarch;
9217                           if test "$enableval" = yes; then
9218                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9219                           else
9220                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9221                           fi
9222
9223 else
9224
9225                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9226
9227 fi
9228
9229
9230           eval "$wx_cv_use_printarch"
9231
9232           if test x"$enablestring" = xdisable; then
9233             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9234               result=yes
9235             else
9236               result=no
9237             fi
9238           else
9239             result=$wxUSE_PRINTING_ARCHITECTURE
9240           fi
9241
9242           { echo "$as_me:$LINENO: result: $result" >&5
9243 echo "${ECHO_T}$result" >&6; }
9244
9245
9246           enablestring=
9247           defaultval=$wxUSE_ALL_FEATURES
9248           if test -z "$defaultval"; then
9249               if test x"$enablestring" = xdisable; then
9250                   defaultval=yes
9251               else
9252                   defaultval=no
9253               fi
9254           fi
9255
9256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9257 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9258           # Check whether --enable-svg was given.
9259 if test "${enable_svg+set}" = set; then
9260   enableval=$enable_svg;
9261                           if test "$enableval" = yes; then
9262                             wx_cv_use_svg='wxUSE_SVG=yes'
9263                           else
9264                             wx_cv_use_svg='wxUSE_SVG=no'
9265                           fi
9266
9267 else
9268
9269                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9270
9271 fi
9272
9273
9274           eval "$wx_cv_use_svg"
9275
9276           if test x"$enablestring" = xdisable; then
9277             if test $wxUSE_SVG = no; then
9278               result=yes
9279             else
9280               result=no
9281             fi
9282           else
9283             result=$wxUSE_SVG
9284           fi
9285
9286           { echo "$as_me:$LINENO: result: $result" >&5
9287 echo "${ECHO_T}$result" >&6; }
9288
9289
9290
9291
9292           enablestring=
9293           defaultval=$wxUSE_ALL_FEATURES
9294           if test -z "$defaultval"; then
9295               if test x"$enablestring" = xdisable; then
9296                   defaultval=yes
9297               else
9298                   defaultval=no
9299               fi
9300           fi
9301
9302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9303 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9304           # Check whether --enable-clipboard was given.
9305 if test "${enable_clipboard+set}" = set; then
9306   enableval=$enable_clipboard;
9307                           if test "$enableval" = yes; then
9308                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9309                           else
9310                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9311                           fi
9312
9313 else
9314
9315                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9316
9317 fi
9318
9319
9320           eval "$wx_cv_use_clipboard"
9321
9322           if test x"$enablestring" = xdisable; then
9323             if test $wxUSE_CLIPBOARD = no; then
9324               result=yes
9325             else
9326               result=no
9327             fi
9328           else
9329             result=$wxUSE_CLIPBOARD
9330           fi
9331
9332           { echo "$as_me:$LINENO: result: $result" >&5
9333 echo "${ECHO_T}$result" >&6; }
9334
9335
9336           enablestring=
9337           defaultval=$wxUSE_ALL_FEATURES
9338           if test -z "$defaultval"; then
9339               if test x"$enablestring" = xdisable; then
9340                   defaultval=yes
9341               else
9342                   defaultval=no
9343               fi
9344           fi
9345
9346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9347 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9348           # Check whether --enable-dnd was given.
9349 if test "${enable_dnd+set}" = set; then
9350   enableval=$enable_dnd;
9351                           if test "$enableval" = yes; then
9352                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9353                           else
9354                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9355                           fi
9356
9357 else
9358
9359                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9360
9361 fi
9362
9363
9364           eval "$wx_cv_use_dnd"
9365
9366           if test x"$enablestring" = xdisable; then
9367             if test $wxUSE_DRAG_AND_DROP = no; then
9368               result=yes
9369             else
9370               result=no
9371             fi
9372           else
9373             result=$wxUSE_DRAG_AND_DROP
9374           fi
9375
9376           { echo "$as_me:$LINENO: result: $result" >&5
9377 echo "${ECHO_T}$result" >&6; }
9378
9379
9380           enablestring=
9381           defaultval=$wxUSE_ALL_FEATURES
9382           if test -z "$defaultval"; then
9383               if test x"$enablestring" = xdisable; then
9384                   defaultval=yes
9385               else
9386                   defaultval=no
9387               fi
9388           fi
9389
9390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9391 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9392           # Check whether --enable-metafile was given.
9393 if test "${enable_metafile+set}" = set; then
9394   enableval=$enable_metafile;
9395                           if test "$enableval" = yes; then
9396                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9397                           else
9398                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9399                           fi
9400
9401 else
9402
9403                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9404
9405 fi
9406
9407
9408           eval "$wx_cv_use_metafile"
9409
9410           if test x"$enablestring" = xdisable; then
9411             if test $wxUSE_METAFILE = no; then
9412               result=yes
9413             else
9414               result=no
9415             fi
9416           else
9417             result=$wxUSE_METAFILE
9418           fi
9419
9420           { echo "$as_me:$LINENO: result: $result" >&5
9421 echo "${ECHO_T}$result" >&6; }
9422
9423
9424
9425 DEFAULT_wxUSE_CONTROLS=none
9426
9427           enablestring=disable
9428           defaultval=
9429           if test -z "$defaultval"; then
9430               if test x"$enablestring" = xdisable; then
9431                   defaultval=yes
9432               else
9433                   defaultval=no
9434               fi
9435           fi
9436
9437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9438 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9439           # Check whether --enable-controls was given.
9440 if test "${enable_controls+set}" = set; then
9441   enableval=$enable_controls;
9442                           if test "$enableval" = yes; then
9443                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9444                           else
9445                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9446                           fi
9447
9448 else
9449
9450                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9451
9452 fi
9453
9454
9455           eval "$wx_cv_use_controls"
9456
9457           if test x"$enablestring" = xdisable; then
9458             if test $wxUSE_CONTROLS = no; then
9459               result=yes
9460             else
9461               result=no
9462             fi
9463           else
9464             result=$wxUSE_CONTROLS
9465           fi
9466
9467           { echo "$as_me:$LINENO: result: $result" >&5
9468 echo "${ECHO_T}$result" >&6; }
9469
9470
9471 if test "$wxUSE_CONTROLS" = "no"; then
9472     DEFAULT_wxUSE_ACCEL=no
9473     DEFAULT_wxUSE_ANIMATIONCTRL=no
9474     DEFAULT_wxUSE_BMPBUTTON=no
9475     DEFAULT_wxUSE_BUTTON=no
9476     DEFAULT_wxUSE_CALCTRL=no
9477     DEFAULT_wxUSE_CARET=no
9478     DEFAULT_wxUSE_CHECKBOX=no
9479     DEFAULT_wxUSE_CHECKLISTBOX=no
9480     DEFAULT_wxUSE_CHOICE=no
9481     DEFAULT_wxUSE_CHOICEBOOK=no
9482     DEFAULT_wxUSE_COLLPANE=no
9483     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9484     DEFAULT_wxUSE_COMBOBOX=no
9485     DEFAULT_wxUSE_COMBOBOX=no
9486     DEFAULT_wxUSE_DATAVIEWCTRL=no
9487     DEFAULT_wxUSE_DATEPICKCTRL=no
9488     DEFAULT_wxUSE_DETECT_SM=no
9489     DEFAULT_wxUSE_DIRPICKERCTRL=no
9490     DEFAULT_wxUSE_DISPLAY=no
9491     DEFAULT_wxUSE_FILECTRL=no
9492     DEFAULT_wxUSE_FILEPICKERCTRL=no
9493     DEFAULT_wxUSE_FONTPICKERCTRL=no
9494     DEFAULT_wxUSE_GAUGE=no
9495     DEFAULT_wxUSE_GRID=no
9496     DEFAULT_wxUSE_HEADERCTRL=no
9497     DEFAULT_wxUSE_HYPERLINKCTRL=no
9498     DEFAULT_wxUSE_IMAGLIST=no
9499     DEFAULT_wxUSE_LISTBOOK=no
9500     DEFAULT_wxUSE_LISTBOX=no
9501     DEFAULT_wxUSE_LISTCTRL=no
9502     DEFAULT_wxUSE_NOTEBOOK=no
9503     DEFAULT_wxUSE_POPUPWIN=no
9504     DEFAULT_wxUSE_RADIOBOX=no
9505     DEFAULT_wxUSE_RADIOBTN=no
9506     DEFAULT_wxUSE_REARRANGECTRL=no
9507     DEFAULT_wxUSE_SASH=no
9508     DEFAULT_wxUSE_SCROLLBAR=no
9509     DEFAULT_wxUSE_SEARCHCTRL=no
9510     DEFAULT_wxUSE_SLIDER=no
9511     DEFAULT_wxUSE_SPINBTN=no
9512     DEFAULT_wxUSE_SPINCTRL=no
9513     DEFAULT_wxUSE_SPLITTER=no
9514     DEFAULT_wxUSE_STATBMP=no
9515     DEFAULT_wxUSE_STATBOX=no
9516     DEFAULT_wxUSE_STATLINE=no
9517     DEFAULT_wxUSE_STATUSBAR=no
9518     DEFAULT_wxUSE_TIPWINDOW=no
9519     DEFAULT_wxUSE_TOGGLEBTN=no
9520     DEFAULT_wxUSE_TOOLBAR=no
9521     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9522     DEFAULT_wxUSE_TOOLBOOK=no
9523     DEFAULT_wxUSE_TOOLTIPS=no
9524     DEFAULT_wxUSE_TREEBOOK=no
9525     DEFAULT_wxUSE_TREECTRL=no
9526 fi
9527
9528
9529           enablestring=
9530           defaultval=$wxUSE_ALL_FEATURES
9531           if test -z "$defaultval"; then
9532               if test x"$enablestring" = xdisable; then
9533                   defaultval=yes
9534               else
9535                   defaultval=no
9536               fi
9537           fi
9538
9539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9540 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9541           # Check whether --enable-accel was given.
9542 if test "${enable_accel+set}" = set; then
9543   enableval=$enable_accel;
9544                           if test "$enableval" = yes; then
9545                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9546                           else
9547                             wx_cv_use_accel='wxUSE_ACCEL=no'
9548                           fi
9549
9550 else
9551
9552                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9553
9554 fi
9555
9556
9557           eval "$wx_cv_use_accel"
9558
9559           if test x"$enablestring" = xdisable; then
9560             if test $wxUSE_ACCEL = no; then
9561               result=yes
9562             else
9563               result=no
9564             fi
9565           else
9566             result=$wxUSE_ACCEL
9567           fi
9568
9569           { echo "$as_me:$LINENO: result: $result" >&5
9570 echo "${ECHO_T}$result" >&6; }
9571
9572
9573           enablestring=
9574           defaultval=$wxUSE_ALL_FEATURES
9575           if test -z "$defaultval"; then
9576               if test x"$enablestring" = xdisable; then
9577                   defaultval=yes
9578               else
9579                   defaultval=no
9580               fi
9581           fi
9582
9583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9584 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9585           # Check whether --enable-animatectrl was given.
9586 if test "${enable_animatectrl+set}" = set; then
9587   enableval=$enable_animatectrl;
9588                           if test "$enableval" = yes; then
9589                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9590                           else
9591                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9592                           fi
9593
9594 else
9595
9596                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9597
9598 fi
9599
9600
9601           eval "$wx_cv_use_animatectrl"
9602
9603           if test x"$enablestring" = xdisable; then
9604             if test $wxUSE_ANIMATIONCTRL = no; then
9605               result=yes
9606             else
9607               result=no
9608             fi
9609           else
9610             result=$wxUSE_ANIMATIONCTRL
9611           fi
9612
9613           { echo "$as_me:$LINENO: result: $result" >&5
9614 echo "${ECHO_T}$result" >&6; }
9615
9616
9617           enablestring=
9618           defaultval=$wxUSE_ALL_FEATURES
9619           if test -z "$defaultval"; then
9620               if test x"$enablestring" = xdisable; then
9621                   defaultval=yes
9622               else
9623                   defaultval=no
9624               fi
9625           fi
9626
9627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9628 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9629           # Check whether --enable-bmpbutton was given.
9630 if test "${enable_bmpbutton+set}" = set; then
9631   enableval=$enable_bmpbutton;
9632                           if test "$enableval" = yes; then
9633                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9634                           else
9635                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9636                           fi
9637
9638 else
9639
9640                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9641
9642 fi
9643
9644
9645           eval "$wx_cv_use_bmpbutton"
9646
9647           if test x"$enablestring" = xdisable; then
9648             if test $wxUSE_BMPBUTTON = no; then
9649               result=yes
9650             else
9651               result=no
9652             fi
9653           else
9654             result=$wxUSE_BMPBUTTON
9655           fi
9656
9657           { echo "$as_me:$LINENO: result: $result" >&5
9658 echo "${ECHO_T}$result" >&6; }
9659
9660
9661           enablestring=
9662           defaultval=$wxUSE_ALL_FEATURES
9663           if test -z "$defaultval"; then
9664               if test x"$enablestring" = xdisable; then
9665                   defaultval=yes
9666               else
9667                   defaultval=no
9668               fi
9669           fi
9670
9671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9672 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9673           # Check whether --enable-bmpcombobox was given.
9674 if test "${enable_bmpcombobox+set}" = set; then
9675   enableval=$enable_bmpcombobox;
9676                           if test "$enableval" = yes; then
9677                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9678                           else
9679                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9680                           fi
9681
9682 else
9683
9684                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9685
9686 fi
9687
9688
9689           eval "$wx_cv_use_bmpcombobox"
9690
9691           if test x"$enablestring" = xdisable; then
9692             if test $wxUSE_BITMAPCOMBOBOX = no; then
9693               result=yes
9694             else
9695               result=no
9696             fi
9697           else
9698             result=$wxUSE_BITMAPCOMBOBOX
9699           fi
9700
9701           { echo "$as_me:$LINENO: result: $result" >&5
9702 echo "${ECHO_T}$result" >&6; }
9703
9704
9705           enablestring=
9706           defaultval=$wxUSE_ALL_FEATURES
9707           if test -z "$defaultval"; then
9708               if test x"$enablestring" = xdisable; then
9709                   defaultval=yes
9710               else
9711                   defaultval=no
9712               fi
9713           fi
9714
9715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9716 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9717           # Check whether --enable-button was given.
9718 if test "${enable_button+set}" = set; then
9719   enableval=$enable_button;
9720                           if test "$enableval" = yes; then
9721                             wx_cv_use_button='wxUSE_BUTTON=yes'
9722                           else
9723                             wx_cv_use_button='wxUSE_BUTTON=no'
9724                           fi
9725
9726 else
9727
9728                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9729
9730 fi
9731
9732
9733           eval "$wx_cv_use_button"
9734
9735           if test x"$enablestring" = xdisable; then
9736             if test $wxUSE_BUTTON = no; then
9737               result=yes
9738             else
9739               result=no
9740             fi
9741           else
9742             result=$wxUSE_BUTTON
9743           fi
9744
9745           { echo "$as_me:$LINENO: result: $result" >&5
9746 echo "${ECHO_T}$result" >&6; }
9747
9748
9749           enablestring=
9750           defaultval=$wxUSE_ALL_FEATURES
9751           if test -z "$defaultval"; then
9752               if test x"$enablestring" = xdisable; then
9753                   defaultval=yes
9754               else
9755                   defaultval=no
9756               fi
9757           fi
9758
9759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9760 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9761           # Check whether --enable-calendar was given.
9762 if test "${enable_calendar+set}" = set; then
9763   enableval=$enable_calendar;
9764                           if test "$enableval" = yes; then
9765                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9766                           else
9767                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9768                           fi
9769
9770 else
9771
9772                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9773
9774 fi
9775
9776
9777           eval "$wx_cv_use_calendar"
9778
9779           if test x"$enablestring" = xdisable; then
9780             if test $wxUSE_CALCTRL = no; then
9781               result=yes
9782             else
9783               result=no
9784             fi
9785           else
9786             result=$wxUSE_CALCTRL
9787           fi
9788
9789           { echo "$as_me:$LINENO: result: $result" >&5
9790 echo "${ECHO_T}$result" >&6; }
9791
9792
9793           enablestring=
9794           defaultval=$wxUSE_ALL_FEATURES
9795           if test -z "$defaultval"; then
9796               if test x"$enablestring" = xdisable; then
9797                   defaultval=yes
9798               else
9799                   defaultval=no
9800               fi
9801           fi
9802
9803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9804 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9805           # Check whether --enable-caret was given.
9806 if test "${enable_caret+set}" = set; then
9807   enableval=$enable_caret;
9808                           if test "$enableval" = yes; then
9809                             wx_cv_use_caret='wxUSE_CARET=yes'
9810                           else
9811                             wx_cv_use_caret='wxUSE_CARET=no'
9812                           fi
9813
9814 else
9815
9816                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9817
9818 fi
9819
9820
9821           eval "$wx_cv_use_caret"
9822
9823           if test x"$enablestring" = xdisable; then
9824             if test $wxUSE_CARET = no; then
9825               result=yes
9826             else
9827               result=no
9828             fi
9829           else
9830             result=$wxUSE_CARET
9831           fi
9832
9833           { echo "$as_me:$LINENO: result: $result" >&5
9834 echo "${ECHO_T}$result" >&6; }
9835
9836
9837           enablestring=
9838           defaultval=$wxUSE_ALL_FEATURES
9839           if test -z "$defaultval"; then
9840               if test x"$enablestring" = xdisable; then
9841                   defaultval=yes
9842               else
9843                   defaultval=no
9844               fi
9845           fi
9846
9847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9848 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9849           # Check whether --enable-checkbox was given.
9850 if test "${enable_checkbox+set}" = set; then
9851   enableval=$enable_checkbox;
9852                           if test "$enableval" = yes; then
9853                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9854                           else
9855                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9856                           fi
9857
9858 else
9859
9860                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9861
9862 fi
9863
9864
9865           eval "$wx_cv_use_checkbox"
9866
9867           if test x"$enablestring" = xdisable; then
9868             if test $wxUSE_CHECKBOX = no; then
9869               result=yes
9870             else
9871               result=no
9872             fi
9873           else
9874             result=$wxUSE_CHECKBOX
9875           fi
9876
9877           { echo "$as_me:$LINENO: result: $result" >&5
9878 echo "${ECHO_T}$result" >&6; }
9879
9880
9881           enablestring=
9882           defaultval=$wxUSE_ALL_FEATURES
9883           if test -z "$defaultval"; then
9884               if test x"$enablestring" = xdisable; then
9885                   defaultval=yes
9886               else
9887                   defaultval=no
9888               fi
9889           fi
9890
9891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9892 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9893           # Check whether --enable-checklst was given.
9894 if test "${enable_checklst+set}" = set; then
9895   enableval=$enable_checklst;
9896                           if test "$enableval" = yes; then
9897                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9898                           else
9899                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9900                           fi
9901
9902 else
9903
9904                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9905
9906 fi
9907
9908
9909           eval "$wx_cv_use_checklst"
9910
9911           if test x"$enablestring" = xdisable; then
9912             if test $wxUSE_CHECKLST = no; then
9913               result=yes
9914             else
9915               result=no
9916             fi
9917           else
9918             result=$wxUSE_CHECKLST
9919           fi
9920
9921           { echo "$as_me:$LINENO: result: $result" >&5
9922 echo "${ECHO_T}$result" >&6; }
9923
9924
9925           enablestring=
9926           defaultval=$wxUSE_ALL_FEATURES
9927           if test -z "$defaultval"; then
9928               if test x"$enablestring" = xdisable; then
9929                   defaultval=yes
9930               else
9931                   defaultval=no
9932               fi
9933           fi
9934
9935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9936 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9937           # Check whether --enable-choice was given.
9938 if test "${enable_choice+set}" = set; then
9939   enableval=$enable_choice;
9940                           if test "$enableval" = yes; then
9941                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9942                           else
9943                             wx_cv_use_choice='wxUSE_CHOICE=no'
9944                           fi
9945
9946 else
9947
9948                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9949
9950 fi
9951
9952
9953           eval "$wx_cv_use_choice"
9954
9955           if test x"$enablestring" = xdisable; then
9956             if test $wxUSE_CHOICE = no; then
9957               result=yes
9958             else
9959               result=no
9960             fi
9961           else
9962             result=$wxUSE_CHOICE
9963           fi
9964
9965           { echo "$as_me:$LINENO: result: $result" >&5
9966 echo "${ECHO_T}$result" >&6; }
9967
9968
9969           enablestring=
9970           defaultval=$wxUSE_ALL_FEATURES
9971           if test -z "$defaultval"; then
9972               if test x"$enablestring" = xdisable; then
9973                   defaultval=yes
9974               else
9975                   defaultval=no
9976               fi
9977           fi
9978
9979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9980 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9981           # Check whether --enable-choicebook was given.
9982 if test "${enable_choicebook+set}" = set; then
9983   enableval=$enable_choicebook;
9984                           if test "$enableval" = yes; then
9985                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9986                           else
9987                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9988                           fi
9989
9990 else
9991
9992                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9993
9994 fi
9995
9996
9997           eval "$wx_cv_use_choicebook"
9998
9999           if test x"$enablestring" = xdisable; then
10000             if test $wxUSE_CHOICEBOOK = no; then
10001               result=yes
10002             else
10003               result=no
10004             fi
10005           else
10006             result=$wxUSE_CHOICEBOOK
10007           fi
10008
10009           { echo "$as_me:$LINENO: result: $result" >&5
10010 echo "${ECHO_T}$result" >&6; }
10011
10012
10013           enablestring=
10014           defaultval=$wxUSE_ALL_FEATURES
10015           if test -z "$defaultval"; then
10016               if test x"$enablestring" = xdisable; then
10017                   defaultval=yes
10018               else
10019                   defaultval=no
10020               fi
10021           fi
10022
10023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10024 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10025           # Check whether --enable-collpane was given.
10026 if test "${enable_collpane+set}" = set; then
10027   enableval=$enable_collpane;
10028                           if test "$enableval" = yes; then
10029                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10030                           else
10031                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10032                           fi
10033
10034 else
10035
10036                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10037
10038 fi
10039
10040
10041           eval "$wx_cv_use_collpane"
10042
10043           if test x"$enablestring" = xdisable; then
10044             if test $wxUSE_COLLPANE = no; then
10045               result=yes
10046             else
10047               result=no
10048             fi
10049           else
10050             result=$wxUSE_COLLPANE
10051           fi
10052
10053           { echo "$as_me:$LINENO: result: $result" >&5
10054 echo "${ECHO_T}$result" >&6; }
10055
10056
10057           enablestring=
10058           defaultval=$wxUSE_ALL_FEATURES
10059           if test -z "$defaultval"; then
10060               if test x"$enablestring" = xdisable; then
10061                   defaultval=yes
10062               else
10063                   defaultval=no
10064               fi
10065           fi
10066
10067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10068 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10069           # Check whether --enable-colourpicker was given.
10070 if test "${enable_colourpicker+set}" = set; then
10071   enableval=$enable_colourpicker;
10072                           if test "$enableval" = yes; then
10073                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10074                           else
10075                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10076                           fi
10077
10078 else
10079
10080                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10081
10082 fi
10083
10084
10085           eval "$wx_cv_use_colourpicker"
10086
10087           if test x"$enablestring" = xdisable; then
10088             if test $wxUSE_COLOURPICKERCTRL = no; then
10089               result=yes
10090             else
10091               result=no
10092             fi
10093           else
10094             result=$wxUSE_COLOURPICKERCTRL
10095           fi
10096
10097           { echo "$as_me:$LINENO: result: $result" >&5
10098 echo "${ECHO_T}$result" >&6; }
10099
10100
10101           enablestring=
10102           defaultval=$wxUSE_ALL_FEATURES
10103           if test -z "$defaultval"; then
10104               if test x"$enablestring" = xdisable; then
10105                   defaultval=yes
10106               else
10107                   defaultval=no
10108               fi
10109           fi
10110
10111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10112 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10113           # Check whether --enable-combobox was given.
10114 if test "${enable_combobox+set}" = set; then
10115   enableval=$enable_combobox;
10116                           if test "$enableval" = yes; then
10117                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10118                           else
10119                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10120                           fi
10121
10122 else
10123
10124                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10125
10126 fi
10127
10128
10129           eval "$wx_cv_use_combobox"
10130
10131           if test x"$enablestring" = xdisable; then
10132             if test $wxUSE_COMBOBOX = no; then
10133               result=yes
10134             else
10135               result=no
10136             fi
10137           else
10138             result=$wxUSE_COMBOBOX
10139           fi
10140
10141           { echo "$as_me:$LINENO: result: $result" >&5
10142 echo "${ECHO_T}$result" >&6; }
10143
10144
10145           enablestring=
10146           defaultval=$wxUSE_ALL_FEATURES
10147           if test -z "$defaultval"; then
10148               if test x"$enablestring" = xdisable; then
10149                   defaultval=yes
10150               else
10151                   defaultval=no
10152               fi
10153           fi
10154
10155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10156 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10157           # Check whether --enable-comboctrl was given.
10158 if test "${enable_comboctrl+set}" = set; then
10159   enableval=$enable_comboctrl;
10160                           if test "$enableval" = yes; then
10161                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10162                           else
10163                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10164                           fi
10165
10166 else
10167
10168                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10169
10170 fi
10171
10172
10173           eval "$wx_cv_use_comboctrl"
10174
10175           if test x"$enablestring" = xdisable; then
10176             if test $wxUSE_COMBOCTRL = no; then
10177               result=yes
10178             else
10179               result=no
10180             fi
10181           else
10182             result=$wxUSE_COMBOCTRL
10183           fi
10184
10185           { echo "$as_me:$LINENO: result: $result" >&5
10186 echo "${ECHO_T}$result" >&6; }
10187
10188
10189           enablestring=
10190           defaultval=$wxUSE_ALL_FEATURES
10191           if test -z "$defaultval"; then
10192               if test x"$enablestring" = xdisable; then
10193                   defaultval=yes
10194               else
10195                   defaultval=no
10196               fi
10197           fi
10198
10199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10200 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10201           # Check whether --enable-dataviewctrl was given.
10202 if test "${enable_dataviewctrl+set}" = set; then
10203   enableval=$enable_dataviewctrl;
10204                           if test "$enableval" = yes; then
10205                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10206                           else
10207                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10208                           fi
10209
10210 else
10211
10212                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10213
10214 fi
10215
10216
10217           eval "$wx_cv_use_dataviewctrl"
10218
10219           if test x"$enablestring" = xdisable; then
10220             if test $wxUSE_DATAVIEWCTRL = no; then
10221               result=yes
10222             else
10223               result=no
10224             fi
10225           else
10226             result=$wxUSE_DATAVIEWCTRL
10227           fi
10228
10229           { echo "$as_me:$LINENO: result: $result" >&5
10230 echo "${ECHO_T}$result" >&6; }
10231
10232
10233           enablestring=
10234           defaultval=$wxUSE_ALL_FEATURES
10235           if test -z "$defaultval"; then
10236               if test x"$enablestring" = xdisable; then
10237                   defaultval=yes
10238               else
10239                   defaultval=no
10240               fi
10241           fi
10242
10243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10244 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10245           # Check whether --enable-datepick was given.
10246 if test "${enable_datepick+set}" = set; then
10247   enableval=$enable_datepick;
10248                           if test "$enableval" = yes; then
10249                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10250                           else
10251                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10252                           fi
10253
10254 else
10255
10256                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10257
10258 fi
10259
10260
10261           eval "$wx_cv_use_datepick"
10262
10263           if test x"$enablestring" = xdisable; then
10264             if test $wxUSE_DATEPICKCTRL = no; then
10265               result=yes
10266             else
10267               result=no
10268             fi
10269           else
10270             result=$wxUSE_DATEPICKCTRL
10271           fi
10272
10273           { echo "$as_me:$LINENO: result: $result" >&5
10274 echo "${ECHO_T}$result" >&6; }
10275
10276
10277           enablestring=
10278           defaultval=$wxUSE_ALL_FEATURES
10279           if test -z "$defaultval"; then
10280               if test x"$enablestring" = xdisable; then
10281                   defaultval=yes
10282               else
10283                   defaultval=no
10284               fi
10285           fi
10286
10287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10288 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10289           # Check whether --enable-detect_sm was given.
10290 if test "${enable_detect_sm+set}" = set; then
10291   enableval=$enable_detect_sm;
10292                           if test "$enableval" = yes; then
10293                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10294                           else
10295                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10296                           fi
10297
10298 else
10299
10300                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10301
10302 fi
10303
10304
10305           eval "$wx_cv_use_detect_sm"
10306
10307           if test x"$enablestring" = xdisable; then
10308             if test $wxUSE_DETECT_SM = no; then
10309               result=yes
10310             else
10311               result=no
10312             fi
10313           else
10314             result=$wxUSE_DETECT_SM
10315           fi
10316
10317           { echo "$as_me:$LINENO: result: $result" >&5
10318 echo "${ECHO_T}$result" >&6; }
10319
10320
10321           enablestring=
10322           defaultval=$wxUSE_ALL_FEATURES
10323           if test -z "$defaultval"; then
10324               if test x"$enablestring" = xdisable; then
10325                   defaultval=yes
10326               else
10327                   defaultval=no
10328               fi
10329           fi
10330
10331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10332 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10333           # Check whether --enable-dirpicker was given.
10334 if test "${enable_dirpicker+set}" = set; then
10335   enableval=$enable_dirpicker;
10336                           if test "$enableval" = yes; then
10337                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10338                           else
10339                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10340                           fi
10341
10342 else
10343
10344                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10345
10346 fi
10347
10348
10349           eval "$wx_cv_use_dirpicker"
10350
10351           if test x"$enablestring" = xdisable; then
10352             if test $wxUSE_DIRPICKERCTRL = no; then
10353               result=yes
10354             else
10355               result=no
10356             fi
10357           else
10358             result=$wxUSE_DIRPICKERCTRL
10359           fi
10360
10361           { echo "$as_me:$LINENO: result: $result" >&5
10362 echo "${ECHO_T}$result" >&6; }
10363
10364
10365           enablestring=
10366           defaultval=$wxUSE_ALL_FEATURES
10367           if test -z "$defaultval"; then
10368               if test x"$enablestring" = xdisable; then
10369                   defaultval=yes
10370               else
10371                   defaultval=no
10372               fi
10373           fi
10374
10375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10376 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10377           # Check whether --enable-display was given.
10378 if test "${enable_display+set}" = set; then
10379   enableval=$enable_display;
10380                           if test "$enableval" = yes; then
10381                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10382                           else
10383                             wx_cv_use_display='wxUSE_DISPLAY=no'
10384                           fi
10385
10386 else
10387
10388                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10389
10390 fi
10391
10392
10393           eval "$wx_cv_use_display"
10394
10395           if test x"$enablestring" = xdisable; then
10396             if test $wxUSE_DISPLAY = no; then
10397               result=yes
10398             else
10399               result=no
10400             fi
10401           else
10402             result=$wxUSE_DISPLAY
10403           fi
10404
10405           { echo "$as_me:$LINENO: result: $result" >&5
10406 echo "${ECHO_T}$result" >&6; }
10407
10408
10409           enablestring=
10410           defaultval=$wxUSE_ALL_FEATURES
10411           if test -z "$defaultval"; then
10412               if test x"$enablestring" = xdisable; then
10413                   defaultval=yes
10414               else
10415                   defaultval=no
10416               fi
10417           fi
10418
10419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10420 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10421           # Check whether --enable-editablebox was given.
10422 if test "${enable_editablebox+set}" = set; then
10423   enableval=$enable_editablebox;
10424                           if test "$enableval" = yes; then
10425                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10426                           else
10427                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10428                           fi
10429
10430 else
10431
10432                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10433
10434 fi
10435
10436
10437           eval "$wx_cv_use_editablebox"
10438
10439           if test x"$enablestring" = xdisable; then
10440             if test $wxUSE_EDITABLELISTBOX = no; then
10441               result=yes
10442             else
10443               result=no
10444             fi
10445           else
10446             result=$wxUSE_EDITABLELISTBOX
10447           fi
10448
10449           { echo "$as_me:$LINENO: result: $result" >&5
10450 echo "${ECHO_T}$result" >&6; }
10451
10452
10453           enablestring=
10454           defaultval=$wxUSE_ALL_FEATURES
10455           if test -z "$defaultval"; then
10456               if test x"$enablestring" = xdisable; then
10457                   defaultval=yes
10458               else
10459                   defaultval=no
10460               fi
10461           fi
10462
10463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10464 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10465           # Check whether --enable-filectrl was given.
10466 if test "${enable_filectrl+set}" = set; then
10467   enableval=$enable_filectrl;
10468                           if test "$enableval" = yes; then
10469                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10470                           else
10471                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10472                           fi
10473
10474 else
10475
10476                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10477
10478 fi
10479
10480
10481           eval "$wx_cv_use_filectrl"
10482
10483           if test x"$enablestring" = xdisable; then
10484             if test $wxUSE_FILECTRL = no; then
10485               result=yes
10486             else
10487               result=no
10488             fi
10489           else
10490             result=$wxUSE_FILECTRL
10491           fi
10492
10493           { echo "$as_me:$LINENO: result: $result" >&5
10494 echo "${ECHO_T}$result" >&6; }
10495
10496
10497           enablestring=
10498           defaultval=$wxUSE_ALL_FEATURES
10499           if test -z "$defaultval"; then
10500               if test x"$enablestring" = xdisable; then
10501                   defaultval=yes
10502               else
10503                   defaultval=no
10504               fi
10505           fi
10506
10507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10508 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10509           # Check whether --enable-filepicker was given.
10510 if test "${enable_filepicker+set}" = set; then
10511   enableval=$enable_filepicker;
10512                           if test "$enableval" = yes; then
10513                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10514                           else
10515                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10516                           fi
10517
10518 else
10519
10520                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10521
10522 fi
10523
10524
10525           eval "$wx_cv_use_filepicker"
10526
10527           if test x"$enablestring" = xdisable; then
10528             if test $wxUSE_FILEPICKERCTRL = no; then
10529               result=yes
10530             else
10531               result=no
10532             fi
10533           else
10534             result=$wxUSE_FILEPICKERCTRL
10535           fi
10536
10537           { echo "$as_me:$LINENO: result: $result" >&5
10538 echo "${ECHO_T}$result" >&6; }
10539
10540
10541           enablestring=
10542           defaultval=$wxUSE_ALL_FEATURES
10543           if test -z "$defaultval"; then
10544               if test x"$enablestring" = xdisable; then
10545                   defaultval=yes
10546               else
10547                   defaultval=no
10548               fi
10549           fi
10550
10551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10552 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10553           # Check whether --enable-fontpicker was given.
10554 if test "${enable_fontpicker+set}" = set; then
10555   enableval=$enable_fontpicker;
10556                           if test "$enableval" = yes; then
10557                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10558                           else
10559                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10560                           fi
10561
10562 else
10563
10564                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10565
10566 fi
10567
10568
10569           eval "$wx_cv_use_fontpicker"
10570
10571           if test x"$enablestring" = xdisable; then
10572             if test $wxUSE_FONTPICKERCTRL = no; then
10573               result=yes
10574             else
10575               result=no
10576             fi
10577           else
10578             result=$wxUSE_FONTPICKERCTRL
10579           fi
10580
10581           { echo "$as_me:$LINENO: result: $result" >&5
10582 echo "${ECHO_T}$result" >&6; }
10583
10584
10585           enablestring=
10586           defaultval=$wxUSE_ALL_FEATURES
10587           if test -z "$defaultval"; then
10588               if test x"$enablestring" = xdisable; then
10589                   defaultval=yes
10590               else
10591                   defaultval=no
10592               fi
10593           fi
10594
10595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10596 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10597           # Check whether --enable-gauge was given.
10598 if test "${enable_gauge+set}" = set; then
10599   enableval=$enable_gauge;
10600                           if test "$enableval" = yes; then
10601                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10602                           else
10603                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10604                           fi
10605
10606 else
10607
10608                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10609
10610 fi
10611
10612
10613           eval "$wx_cv_use_gauge"
10614
10615           if test x"$enablestring" = xdisable; then
10616             if test $wxUSE_GAUGE = no; then
10617               result=yes
10618             else
10619               result=no
10620             fi
10621           else
10622             result=$wxUSE_GAUGE
10623           fi
10624
10625           { echo "$as_me:$LINENO: result: $result" >&5
10626 echo "${ECHO_T}$result" >&6; }
10627
10628
10629           enablestring=
10630           defaultval=$wxUSE_ALL_FEATURES
10631           if test -z "$defaultval"; then
10632               if test x"$enablestring" = xdisable; then
10633                   defaultval=yes
10634               else
10635                   defaultval=no
10636               fi
10637           fi
10638
10639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10640 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10641           # Check whether --enable-grid was given.
10642 if test "${enable_grid+set}" = set; then
10643   enableval=$enable_grid;
10644                           if test "$enableval" = yes; then
10645                             wx_cv_use_grid='wxUSE_GRID=yes'
10646                           else
10647                             wx_cv_use_grid='wxUSE_GRID=no'
10648                           fi
10649
10650 else
10651
10652                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10653
10654 fi
10655
10656
10657           eval "$wx_cv_use_grid"
10658
10659           if test x"$enablestring" = xdisable; then
10660             if test $wxUSE_GRID = no; then
10661               result=yes
10662             else
10663               result=no
10664             fi
10665           else
10666             result=$wxUSE_GRID
10667           fi
10668
10669           { echo "$as_me:$LINENO: result: $result" >&5
10670 echo "${ECHO_T}$result" >&6; }
10671
10672
10673           enablestring=
10674           defaultval=$wxUSE_ALL_FEATURES
10675           if test -z "$defaultval"; then
10676               if test x"$enablestring" = xdisable; then
10677                   defaultval=yes
10678               else
10679                   defaultval=no
10680               fi
10681           fi
10682
10683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10684 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10685           # Check whether --enable-headerctrl was given.
10686 if test "${enable_headerctrl+set}" = set; then
10687   enableval=$enable_headerctrl;
10688                           if test "$enableval" = yes; then
10689                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10690                           else
10691                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10692                           fi
10693
10694 else
10695
10696                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10697
10698 fi
10699
10700
10701           eval "$wx_cv_use_headerctrl"
10702
10703           if test x"$enablestring" = xdisable; then
10704             if test $wxUSE_HEADERCTRL = no; then
10705               result=yes
10706             else
10707               result=no
10708             fi
10709           else
10710             result=$wxUSE_HEADERCTRL
10711           fi
10712
10713           { echo "$as_me:$LINENO: result: $result" >&5
10714 echo "${ECHO_T}$result" >&6; }
10715
10716
10717           enablestring=
10718           defaultval=$wxUSE_ALL_FEATURES
10719           if test -z "$defaultval"; then
10720               if test x"$enablestring" = xdisable; then
10721                   defaultval=yes
10722               else
10723                   defaultval=no
10724               fi
10725           fi
10726
10727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10728 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10729           # Check whether --enable-hyperlink was given.
10730 if test "${enable_hyperlink+set}" = set; then
10731   enableval=$enable_hyperlink;
10732                           if test "$enableval" = yes; then
10733                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10734                           else
10735                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10736                           fi
10737
10738 else
10739
10740                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10741
10742 fi
10743
10744
10745           eval "$wx_cv_use_hyperlink"
10746
10747           if test x"$enablestring" = xdisable; then
10748             if test $wxUSE_HYPERLINKCTRL = no; then
10749               result=yes
10750             else
10751               result=no
10752             fi
10753           else
10754             result=$wxUSE_HYPERLINKCTRL
10755           fi
10756
10757           { echo "$as_me:$LINENO: result: $result" >&5
10758 echo "${ECHO_T}$result" >&6; }
10759
10760
10761           enablestring=
10762           defaultval=$wxUSE_ALL_FEATURES
10763           if test -z "$defaultval"; then
10764               if test x"$enablestring" = xdisable; then
10765                   defaultval=yes
10766               else
10767                   defaultval=no
10768               fi
10769           fi
10770
10771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10772 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10773           # Check whether --enable-imaglist was given.
10774 if test "${enable_imaglist+set}" = set; then
10775   enableval=$enable_imaglist;
10776                           if test "$enableval" = yes; then
10777                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10778                           else
10779                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10780                           fi
10781
10782 else
10783
10784                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10785
10786 fi
10787
10788
10789           eval "$wx_cv_use_imaglist"
10790
10791           if test x"$enablestring" = xdisable; then
10792             if test $wxUSE_IMAGLIST = no; then
10793               result=yes
10794             else
10795               result=no
10796             fi
10797           else
10798             result=$wxUSE_IMAGLIST
10799           fi
10800
10801           { echo "$as_me:$LINENO: result: $result" >&5
10802 echo "${ECHO_T}$result" >&6; }
10803
10804
10805           enablestring=
10806           defaultval=$wxUSE_ALL_FEATURES
10807           if test -z "$defaultval"; then
10808               if test x"$enablestring" = xdisable; then
10809                   defaultval=yes
10810               else
10811                   defaultval=no
10812               fi
10813           fi
10814
10815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10816 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10817           # Check whether --enable-listbook was given.
10818 if test "${enable_listbook+set}" = set; then
10819   enableval=$enable_listbook;
10820                           if test "$enableval" = yes; then
10821                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10822                           else
10823                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10824                           fi
10825
10826 else
10827
10828                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10829
10830 fi
10831
10832
10833           eval "$wx_cv_use_listbook"
10834
10835           if test x"$enablestring" = xdisable; then
10836             if test $wxUSE_LISTBOOK = no; then
10837               result=yes
10838             else
10839               result=no
10840             fi
10841           else
10842             result=$wxUSE_LISTBOOK
10843           fi
10844
10845           { echo "$as_me:$LINENO: result: $result" >&5
10846 echo "${ECHO_T}$result" >&6; }
10847
10848
10849           enablestring=
10850           defaultval=$wxUSE_ALL_FEATURES
10851           if test -z "$defaultval"; then
10852               if test x"$enablestring" = xdisable; then
10853                   defaultval=yes
10854               else
10855                   defaultval=no
10856               fi
10857           fi
10858
10859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10860 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10861           # Check whether --enable-listbox was given.
10862 if test "${enable_listbox+set}" = set; then
10863   enableval=$enable_listbox;
10864                           if test "$enableval" = yes; then
10865                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10866                           else
10867                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10868                           fi
10869
10870 else
10871
10872                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10873
10874 fi
10875
10876
10877           eval "$wx_cv_use_listbox"
10878
10879           if test x"$enablestring" = xdisable; then
10880             if test $wxUSE_LISTBOX = no; then
10881               result=yes
10882             else
10883               result=no
10884             fi
10885           else
10886             result=$wxUSE_LISTBOX
10887           fi
10888
10889           { echo "$as_me:$LINENO: result: $result" >&5
10890 echo "${ECHO_T}$result" >&6; }
10891
10892
10893           enablestring=
10894           defaultval=$wxUSE_ALL_FEATURES
10895           if test -z "$defaultval"; then
10896               if test x"$enablestring" = xdisable; then
10897                   defaultval=yes
10898               else
10899                   defaultval=no
10900               fi
10901           fi
10902
10903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10904 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10905           # Check whether --enable-listctrl was given.
10906 if test "${enable_listctrl+set}" = set; then
10907   enableval=$enable_listctrl;
10908                           if test "$enableval" = yes; then
10909                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10910                           else
10911                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10912                           fi
10913
10914 else
10915
10916                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10917
10918 fi
10919
10920
10921           eval "$wx_cv_use_listctrl"
10922
10923           if test x"$enablestring" = xdisable; then
10924             if test $wxUSE_LISTCTRL = no; then
10925               result=yes
10926             else
10927               result=no
10928             fi
10929           else
10930             result=$wxUSE_LISTCTRL
10931           fi
10932
10933           { echo "$as_me:$LINENO: result: $result" >&5
10934 echo "${ECHO_T}$result" >&6; }
10935
10936
10937           enablestring=
10938           defaultval=$wxUSE_ALL_FEATURES
10939           if test -z "$defaultval"; then
10940               if test x"$enablestring" = xdisable; then
10941                   defaultval=yes
10942               else
10943                   defaultval=no
10944               fi
10945           fi
10946
10947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10948 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10949           # Check whether --enable-notebook was given.
10950 if test "${enable_notebook+set}" = set; then
10951   enableval=$enable_notebook;
10952                           if test "$enableval" = yes; then
10953                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10954                           else
10955                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10956                           fi
10957
10958 else
10959
10960                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10961
10962 fi
10963
10964
10965           eval "$wx_cv_use_notebook"
10966
10967           if test x"$enablestring" = xdisable; then
10968             if test $wxUSE_NOTEBOOK = no; then
10969               result=yes
10970             else
10971               result=no
10972             fi
10973           else
10974             result=$wxUSE_NOTEBOOK
10975           fi
10976
10977           { echo "$as_me:$LINENO: result: $result" >&5
10978 echo "${ECHO_T}$result" >&6; }
10979
10980
10981           enablestring=
10982           defaultval=$wxUSE_ALL_FEATURES
10983           if test -z "$defaultval"; then
10984               if test x"$enablestring" = xdisable; then
10985                   defaultval=yes
10986               else
10987                   defaultval=no
10988               fi
10989           fi
10990
10991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10992 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10993           # Check whether --enable-notifmsg was given.
10994 if test "${enable_notifmsg+set}" = set; then
10995   enableval=$enable_notifmsg;
10996                           if test "$enableval" = yes; then
10997                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10998                           else
10999                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11000                           fi
11001
11002 else
11003
11004                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11005
11006 fi
11007
11008
11009           eval "$wx_cv_use_notifmsg"
11010
11011           if test x"$enablestring" = xdisable; then
11012             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11013               result=yes
11014             else
11015               result=no
11016             fi
11017           else
11018             result=$wxUSE_NOTIFICATION_MESSAGE
11019           fi
11020
11021           { echo "$as_me:$LINENO: result: $result" >&5
11022 echo "${ECHO_T}$result" >&6; }
11023
11024
11025           enablestring=
11026           defaultval=$wxUSE_ALL_FEATURES
11027           if test -z "$defaultval"; then
11028               if test x"$enablestring" = xdisable; then
11029                   defaultval=yes
11030               else
11031                   defaultval=no
11032               fi
11033           fi
11034
11035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11036 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11037           # Check whether --enable-odcombobox was given.
11038 if test "${enable_odcombobox+set}" = set; then
11039   enableval=$enable_odcombobox;
11040                           if test "$enableval" = yes; then
11041                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11042                           else
11043                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11044                           fi
11045
11046 else
11047
11048                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11049
11050 fi
11051
11052
11053           eval "$wx_cv_use_odcombobox"
11054
11055           if test x"$enablestring" = xdisable; then
11056             if test $wxUSE_ODCOMBOBOX = no; then
11057               result=yes
11058             else
11059               result=no
11060             fi
11061           else
11062             result=$wxUSE_ODCOMBOBOX
11063           fi
11064
11065           { echo "$as_me:$LINENO: result: $result" >&5
11066 echo "${ECHO_T}$result" >&6; }
11067
11068
11069           enablestring=
11070           defaultval=$wxUSE_ALL_FEATURES
11071           if test -z "$defaultval"; then
11072               if test x"$enablestring" = xdisable; then
11073                   defaultval=yes
11074               else
11075                   defaultval=no
11076               fi
11077           fi
11078
11079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11080 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11081           # Check whether --enable-popupwin was given.
11082 if test "${enable_popupwin+set}" = set; then
11083   enableval=$enable_popupwin;
11084                           if test "$enableval" = yes; then
11085                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11086                           else
11087                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11088                           fi
11089
11090 else
11091
11092                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11093
11094 fi
11095
11096
11097           eval "$wx_cv_use_popupwin"
11098
11099           if test x"$enablestring" = xdisable; then
11100             if test $wxUSE_POPUPWIN = no; then
11101               result=yes
11102             else
11103               result=no
11104             fi
11105           else
11106             result=$wxUSE_POPUPWIN
11107           fi
11108
11109           { echo "$as_me:$LINENO: result: $result" >&5
11110 echo "${ECHO_T}$result" >&6; }
11111
11112
11113           enablestring=
11114           defaultval=$wxUSE_ALL_FEATURES
11115           if test -z "$defaultval"; then
11116               if test x"$enablestring" = xdisable; then
11117                   defaultval=yes
11118               else
11119                   defaultval=no
11120               fi
11121           fi
11122
11123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11124 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11125           # Check whether --enable-radiobox was given.
11126 if test "${enable_radiobox+set}" = set; then
11127   enableval=$enable_radiobox;
11128                           if test "$enableval" = yes; then
11129                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11130                           else
11131                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11132                           fi
11133
11134 else
11135
11136                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11137
11138 fi
11139
11140
11141           eval "$wx_cv_use_radiobox"
11142
11143           if test x"$enablestring" = xdisable; then
11144             if test $wxUSE_RADIOBOX = no; then
11145               result=yes
11146             else
11147               result=no
11148             fi
11149           else
11150             result=$wxUSE_RADIOBOX
11151           fi
11152
11153           { echo "$as_me:$LINENO: result: $result" >&5
11154 echo "${ECHO_T}$result" >&6; }
11155
11156
11157           enablestring=
11158           defaultval=$wxUSE_ALL_FEATURES
11159           if test -z "$defaultval"; then
11160               if test x"$enablestring" = xdisable; then
11161                   defaultval=yes
11162               else
11163                   defaultval=no
11164               fi
11165           fi
11166
11167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11168 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11169           # Check whether --enable-radiobtn was given.
11170 if test "${enable_radiobtn+set}" = set; then
11171   enableval=$enable_radiobtn;
11172                           if test "$enableval" = yes; then
11173                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11174                           else
11175                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11176                           fi
11177
11178 else
11179
11180                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11181
11182 fi
11183
11184
11185           eval "$wx_cv_use_radiobtn"
11186
11187           if test x"$enablestring" = xdisable; then
11188             if test $wxUSE_RADIOBTN = no; then
11189               result=yes
11190             else
11191               result=no
11192             fi
11193           else
11194             result=$wxUSE_RADIOBTN
11195           fi
11196
11197           { echo "$as_me:$LINENO: result: $result" >&5
11198 echo "${ECHO_T}$result" >&6; }
11199
11200
11201           enablestring=
11202           defaultval=$wxUSE_ALL_FEATURES
11203           if test -z "$defaultval"; then
11204               if test x"$enablestring" = xdisable; then
11205                   defaultval=yes
11206               else
11207                   defaultval=no
11208               fi
11209           fi
11210
11211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11212 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11213           # Check whether --enable-rearrangectrl was given.
11214 if test "${enable_rearrangectrl+set}" = set; then
11215   enableval=$enable_rearrangectrl;
11216                           if test "$enableval" = yes; then
11217                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11218                           else
11219                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11220                           fi
11221
11222 else
11223
11224                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11225
11226 fi
11227
11228
11229           eval "$wx_cv_use_rearrangectrl"
11230
11231           if test x"$enablestring" = xdisable; then
11232             if test $wxUSE_REARRANGECTRL = no; then
11233               result=yes
11234             else
11235               result=no
11236             fi
11237           else
11238             result=$wxUSE_REARRANGECTRL
11239           fi
11240
11241           { echo "$as_me:$LINENO: result: $result" >&5
11242 echo "${ECHO_T}$result" >&6; }
11243
11244
11245           enablestring=
11246           defaultval=$wxUSE_ALL_FEATURES
11247           if test -z "$defaultval"; then
11248               if test x"$enablestring" = xdisable; then
11249                   defaultval=yes
11250               else
11251                   defaultval=no
11252               fi
11253           fi
11254
11255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11256 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11257           # Check whether --enable-sash was given.
11258 if test "${enable_sash+set}" = set; then
11259   enableval=$enable_sash;
11260                           if test "$enableval" = yes; then
11261                             wx_cv_use_sash='wxUSE_SASH=yes'
11262                           else
11263                             wx_cv_use_sash='wxUSE_SASH=no'
11264                           fi
11265
11266 else
11267
11268                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11269
11270 fi
11271
11272
11273           eval "$wx_cv_use_sash"
11274
11275           if test x"$enablestring" = xdisable; then
11276             if test $wxUSE_SASH = no; then
11277               result=yes
11278             else
11279               result=no
11280             fi
11281           else
11282             result=$wxUSE_SASH
11283           fi
11284
11285           { echo "$as_me:$LINENO: result: $result" >&5
11286 echo "${ECHO_T}$result" >&6; }
11287
11288
11289           enablestring=
11290           defaultval=$wxUSE_ALL_FEATURES
11291           if test -z "$defaultval"; then
11292               if test x"$enablestring" = xdisable; then
11293                   defaultval=yes
11294               else
11295                   defaultval=no
11296               fi
11297           fi
11298
11299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11300 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11301           # Check whether --enable-scrollbar was given.
11302 if test "${enable_scrollbar+set}" = set; then
11303   enableval=$enable_scrollbar;
11304                           if test "$enableval" = yes; then
11305                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11306                           else
11307                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11308                           fi
11309
11310 else
11311
11312                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11313
11314 fi
11315
11316
11317           eval "$wx_cv_use_scrollbar"
11318
11319           if test x"$enablestring" = xdisable; then
11320             if test $wxUSE_SCROLLBAR = no; then
11321               result=yes
11322             else
11323               result=no
11324             fi
11325           else
11326             result=$wxUSE_SCROLLBAR
11327           fi
11328
11329           { echo "$as_me:$LINENO: result: $result" >&5
11330 echo "${ECHO_T}$result" >&6; }
11331
11332
11333           enablestring=
11334           defaultval=$wxUSE_ALL_FEATURES
11335           if test -z "$defaultval"; then
11336               if test x"$enablestring" = xdisable; then
11337                   defaultval=yes
11338               else
11339                   defaultval=no
11340               fi
11341           fi
11342
11343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11344 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11345           # Check whether --enable-searchctrl was given.
11346 if test "${enable_searchctrl+set}" = set; then
11347   enableval=$enable_searchctrl;
11348                           if test "$enableval" = yes; then
11349                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11350                           else
11351                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11352                           fi
11353
11354 else
11355
11356                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11357
11358 fi
11359
11360
11361           eval "$wx_cv_use_searchctrl"
11362
11363           if test x"$enablestring" = xdisable; then
11364             if test $wxUSE_SEARCHCTRL = no; then
11365               result=yes
11366             else
11367               result=no
11368             fi
11369           else
11370             result=$wxUSE_SEARCHCTRL
11371           fi
11372
11373           { echo "$as_me:$LINENO: result: $result" >&5
11374 echo "${ECHO_T}$result" >&6; }
11375
11376
11377           enablestring=
11378           defaultval=$wxUSE_ALL_FEATURES
11379           if test -z "$defaultval"; then
11380               if test x"$enablestring" = xdisable; then
11381                   defaultval=yes
11382               else
11383                   defaultval=no
11384               fi
11385           fi
11386
11387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11388 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11389           # Check whether --enable-slider was given.
11390 if test "${enable_slider+set}" = set; then
11391   enableval=$enable_slider;
11392                           if test "$enableval" = yes; then
11393                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11394                           else
11395                             wx_cv_use_slider='wxUSE_SLIDER=no'
11396                           fi
11397
11398 else
11399
11400                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11401
11402 fi
11403
11404
11405           eval "$wx_cv_use_slider"
11406
11407           if test x"$enablestring" = xdisable; then
11408             if test $wxUSE_SLIDER = no; then
11409               result=yes
11410             else
11411               result=no
11412             fi
11413           else
11414             result=$wxUSE_SLIDER
11415           fi
11416
11417           { echo "$as_me:$LINENO: result: $result" >&5
11418 echo "${ECHO_T}$result" >&6; }
11419
11420
11421           enablestring=
11422           defaultval=$wxUSE_ALL_FEATURES
11423           if test -z "$defaultval"; then
11424               if test x"$enablestring" = xdisable; then
11425                   defaultval=yes
11426               else
11427                   defaultval=no
11428               fi
11429           fi
11430
11431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11432 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11433           # Check whether --enable-spinbtn was given.
11434 if test "${enable_spinbtn+set}" = set; then
11435   enableval=$enable_spinbtn;
11436                           if test "$enableval" = yes; then
11437                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11438                           else
11439                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11440                           fi
11441
11442 else
11443
11444                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11445
11446 fi
11447
11448
11449           eval "$wx_cv_use_spinbtn"
11450
11451           if test x"$enablestring" = xdisable; then
11452             if test $wxUSE_SPINBTN = no; then
11453               result=yes
11454             else
11455               result=no
11456             fi
11457           else
11458             result=$wxUSE_SPINBTN
11459           fi
11460
11461           { echo "$as_me:$LINENO: result: $result" >&5
11462 echo "${ECHO_T}$result" >&6; }
11463
11464
11465           enablestring=
11466           defaultval=$wxUSE_ALL_FEATURES
11467           if test -z "$defaultval"; then
11468               if test x"$enablestring" = xdisable; then
11469                   defaultval=yes
11470               else
11471                   defaultval=no
11472               fi
11473           fi
11474
11475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11476 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11477           # Check whether --enable-spinctrl was given.
11478 if test "${enable_spinctrl+set}" = set; then
11479   enableval=$enable_spinctrl;
11480                           if test "$enableval" = yes; then
11481                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11482                           else
11483                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11484                           fi
11485
11486 else
11487
11488                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11489
11490 fi
11491
11492
11493           eval "$wx_cv_use_spinctrl"
11494
11495           if test x"$enablestring" = xdisable; then
11496             if test $wxUSE_SPINCTRL = no; then
11497               result=yes
11498             else
11499               result=no
11500             fi
11501           else
11502             result=$wxUSE_SPINCTRL
11503           fi
11504
11505           { echo "$as_me:$LINENO: result: $result" >&5
11506 echo "${ECHO_T}$result" >&6; }
11507
11508
11509           enablestring=
11510           defaultval=$wxUSE_ALL_FEATURES
11511           if test -z "$defaultval"; then
11512               if test x"$enablestring" = xdisable; then
11513                   defaultval=yes
11514               else
11515                   defaultval=no
11516               fi
11517           fi
11518
11519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11520 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11521           # Check whether --enable-splitter was given.
11522 if test "${enable_splitter+set}" = set; then
11523   enableval=$enable_splitter;
11524                           if test "$enableval" = yes; then
11525                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11526                           else
11527                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11528                           fi
11529
11530 else
11531
11532                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11533
11534 fi
11535
11536
11537           eval "$wx_cv_use_splitter"
11538
11539           if test x"$enablestring" = xdisable; then
11540             if test $wxUSE_SPLITTER = no; then
11541               result=yes
11542             else
11543               result=no
11544             fi
11545           else
11546             result=$wxUSE_SPLITTER
11547           fi
11548
11549           { echo "$as_me:$LINENO: result: $result" >&5
11550 echo "${ECHO_T}$result" >&6; }
11551
11552
11553           enablestring=
11554           defaultval=$wxUSE_ALL_FEATURES
11555           if test -z "$defaultval"; then
11556               if test x"$enablestring" = xdisable; then
11557                   defaultval=yes
11558               else
11559                   defaultval=no
11560               fi
11561           fi
11562
11563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11564 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11565           # Check whether --enable-statbmp was given.
11566 if test "${enable_statbmp+set}" = set; then
11567   enableval=$enable_statbmp;
11568                           if test "$enableval" = yes; then
11569                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11570                           else
11571                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11572                           fi
11573
11574 else
11575
11576                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11577
11578 fi
11579
11580
11581           eval "$wx_cv_use_statbmp"
11582
11583           if test x"$enablestring" = xdisable; then
11584             if test $wxUSE_STATBMP = no; then
11585               result=yes
11586             else
11587               result=no
11588             fi
11589           else
11590             result=$wxUSE_STATBMP
11591           fi
11592
11593           { echo "$as_me:$LINENO: result: $result" >&5
11594 echo "${ECHO_T}$result" >&6; }
11595
11596
11597           enablestring=
11598           defaultval=$wxUSE_ALL_FEATURES
11599           if test -z "$defaultval"; then
11600               if test x"$enablestring" = xdisable; then
11601                   defaultval=yes
11602               else
11603                   defaultval=no
11604               fi
11605           fi
11606
11607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11608 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11609           # Check whether --enable-statbox was given.
11610 if test "${enable_statbox+set}" = set; then
11611   enableval=$enable_statbox;
11612                           if test "$enableval" = yes; then
11613                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11614                           else
11615                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11616                           fi
11617
11618 else
11619
11620                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11621
11622 fi
11623
11624
11625           eval "$wx_cv_use_statbox"
11626
11627           if test x"$enablestring" = xdisable; then
11628             if test $wxUSE_STATBOX = no; then
11629               result=yes
11630             else
11631               result=no
11632             fi
11633           else
11634             result=$wxUSE_STATBOX
11635           fi
11636
11637           { echo "$as_me:$LINENO: result: $result" >&5
11638 echo "${ECHO_T}$result" >&6; }
11639
11640
11641           enablestring=
11642           defaultval=$wxUSE_ALL_FEATURES
11643           if test -z "$defaultval"; then
11644               if test x"$enablestring" = xdisable; then
11645                   defaultval=yes
11646               else
11647                   defaultval=no
11648               fi
11649           fi
11650
11651           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11652 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11653           # Check whether --enable-statline was given.
11654 if test "${enable_statline+set}" = set; then
11655   enableval=$enable_statline;
11656                           if test "$enableval" = yes; then
11657                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11658                           else
11659                             wx_cv_use_statline='wxUSE_STATLINE=no'
11660                           fi
11661
11662 else
11663
11664                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11665
11666 fi
11667
11668
11669           eval "$wx_cv_use_statline"
11670
11671           if test x"$enablestring" = xdisable; then
11672             if test $wxUSE_STATLINE = no; then
11673               result=yes
11674             else
11675               result=no
11676             fi
11677           else
11678             result=$wxUSE_STATLINE
11679           fi
11680
11681           { echo "$as_me:$LINENO: result: $result" >&5
11682 echo "${ECHO_T}$result" >&6; }
11683
11684
11685           enablestring=
11686           defaultval=$wxUSE_ALL_FEATURES
11687           if test -z "$defaultval"; then
11688               if test x"$enablestring" = xdisable; then
11689                   defaultval=yes
11690               else
11691                   defaultval=no
11692               fi
11693           fi
11694
11695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11696 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11697           # Check whether --enable-stattext was given.
11698 if test "${enable_stattext+set}" = set; then
11699   enableval=$enable_stattext;
11700                           if test "$enableval" = yes; then
11701                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11702                           else
11703                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11704                           fi
11705
11706 else
11707
11708                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11709
11710 fi
11711
11712
11713           eval "$wx_cv_use_stattext"
11714
11715           if test x"$enablestring" = xdisable; then
11716             if test $wxUSE_STATTEXT = no; then
11717               result=yes
11718             else
11719               result=no
11720             fi
11721           else
11722             result=$wxUSE_STATTEXT
11723           fi
11724
11725           { echo "$as_me:$LINENO: result: $result" >&5
11726 echo "${ECHO_T}$result" >&6; }
11727
11728
11729           enablestring=
11730           defaultval=$wxUSE_ALL_FEATURES
11731           if test -z "$defaultval"; then
11732               if test x"$enablestring" = xdisable; then
11733                   defaultval=yes
11734               else
11735                   defaultval=no
11736               fi
11737           fi
11738
11739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11740 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11741           # Check whether --enable-statusbar was given.
11742 if test "${enable_statusbar+set}" = set; then
11743   enableval=$enable_statusbar;
11744                           if test "$enableval" = yes; then
11745                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11746                           else
11747                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11748                           fi
11749
11750 else
11751
11752                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11753
11754 fi
11755
11756
11757           eval "$wx_cv_use_statusbar"
11758
11759           if test x"$enablestring" = xdisable; then
11760             if test $wxUSE_STATUSBAR = no; then
11761               result=yes
11762             else
11763               result=no
11764             fi
11765           else
11766             result=$wxUSE_STATUSBAR
11767           fi
11768
11769           { echo "$as_me:$LINENO: result: $result" >&5
11770 echo "${ECHO_T}$result" >&6; }
11771
11772
11773           enablestring=
11774           defaultval=$wxUSE_ALL_FEATURES
11775           if test -z "$defaultval"; then
11776               if test x"$enablestring" = xdisable; then
11777                   defaultval=yes
11778               else
11779                   defaultval=no
11780               fi
11781           fi
11782
11783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11784 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11785           # Check whether --enable-taskbaricon was given.
11786 if test "${enable_taskbaricon+set}" = set; then
11787   enableval=$enable_taskbaricon;
11788                           if test "$enableval" = yes; then
11789                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11790                           else
11791                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11792                           fi
11793
11794 else
11795
11796                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11797
11798 fi
11799
11800
11801           eval "$wx_cv_use_taskbaricon"
11802
11803           if test x"$enablestring" = xdisable; then
11804             if test $wxUSE_TASKBARICON = no; then
11805               result=yes
11806             else
11807               result=no
11808             fi
11809           else
11810             result=$wxUSE_TASKBARICON
11811           fi
11812
11813           { echo "$as_me:$LINENO: result: $result" >&5
11814 echo "${ECHO_T}$result" >&6; }
11815
11816
11817           enablestring=
11818           defaultval=$wxUSE_ALL_FEATURES
11819           if test -z "$defaultval"; then
11820               if test x"$enablestring" = xdisable; then
11821                   defaultval=yes
11822               else
11823                   defaultval=no
11824               fi
11825           fi
11826
11827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11828 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11829           # Check whether --enable-tbarnative was given.
11830 if test "${enable_tbarnative+set}" = set; then
11831   enableval=$enable_tbarnative;
11832                           if test "$enableval" = yes; then
11833                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11834                           else
11835                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11836                           fi
11837
11838 else
11839
11840                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11841
11842 fi
11843
11844
11845           eval "$wx_cv_use_tbarnative"
11846
11847           if test x"$enablestring" = xdisable; then
11848             if test $wxUSE_TOOLBAR_NATIVE = no; then
11849               result=yes
11850             else
11851               result=no
11852             fi
11853           else
11854             result=$wxUSE_TOOLBAR_NATIVE
11855           fi
11856
11857           { echo "$as_me:$LINENO: result: $result" >&5
11858 echo "${ECHO_T}$result" >&6; }
11859
11860
11861           enablestring=
11862           defaultval=$wxUSE_ALL_FEATURES
11863           if test -z "$defaultval"; then
11864               if test x"$enablestring" = xdisable; then
11865                   defaultval=yes
11866               else
11867                   defaultval=no
11868               fi
11869           fi
11870
11871           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11872 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11873           # Check whether --enable-textctrl was given.
11874 if test "${enable_textctrl+set}" = set; then
11875   enableval=$enable_textctrl;
11876                           if test "$enableval" = yes; then
11877                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11878                           else
11879                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11880                           fi
11881
11882 else
11883
11884                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11885
11886 fi
11887
11888
11889           eval "$wx_cv_use_textctrl"
11890
11891           if test x"$enablestring" = xdisable; then
11892             if test $wxUSE_TEXTCTRL = no; then
11893               result=yes
11894             else
11895               result=no
11896             fi
11897           else
11898             result=$wxUSE_TEXTCTRL
11899           fi
11900
11901           { echo "$as_me:$LINENO: result: $result" >&5
11902 echo "${ECHO_T}$result" >&6; }
11903
11904
11905           enablestring=
11906           defaultval=$wxUSE_ALL_FEATURES
11907           if test -z "$defaultval"; then
11908               if test x"$enablestring" = xdisable; then
11909                   defaultval=yes
11910               else
11911                   defaultval=no
11912               fi
11913           fi
11914
11915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11916 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11917           # Check whether --enable-tipwindow was given.
11918 if test "${enable_tipwindow+set}" = set; then
11919   enableval=$enable_tipwindow;
11920                           if test "$enableval" = yes; then
11921                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11922                           else
11923                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11924                           fi
11925
11926 else
11927
11928                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11929
11930 fi
11931
11932
11933           eval "$wx_cv_use_tipwindow"
11934
11935           if test x"$enablestring" = xdisable; then
11936             if test $wxUSE_TIPWINDOW = no; then
11937               result=yes
11938             else
11939               result=no
11940             fi
11941           else
11942             result=$wxUSE_TIPWINDOW
11943           fi
11944
11945           { echo "$as_me:$LINENO: result: $result" >&5
11946 echo "${ECHO_T}$result" >&6; }
11947
11948
11949           enablestring=
11950           defaultval=$wxUSE_ALL_FEATURES
11951           if test -z "$defaultval"; then
11952               if test x"$enablestring" = xdisable; then
11953                   defaultval=yes
11954               else
11955                   defaultval=no
11956               fi
11957           fi
11958
11959           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11960 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11961           # Check whether --enable-togglebtn was given.
11962 if test "${enable_togglebtn+set}" = set; then
11963   enableval=$enable_togglebtn;
11964                           if test "$enableval" = yes; then
11965                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11966                           else
11967                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11968                           fi
11969
11970 else
11971
11972                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11973
11974 fi
11975
11976
11977           eval "$wx_cv_use_togglebtn"
11978
11979           if test x"$enablestring" = xdisable; then
11980             if test $wxUSE_TOGGLEBTN = no; then
11981               result=yes
11982             else
11983               result=no
11984             fi
11985           else
11986             result=$wxUSE_TOGGLEBTN
11987           fi
11988
11989           { echo "$as_me:$LINENO: result: $result" >&5
11990 echo "${ECHO_T}$result" >&6; }
11991
11992
11993           enablestring=
11994           defaultval=$wxUSE_ALL_FEATURES
11995           if test -z "$defaultval"; then
11996               if test x"$enablestring" = xdisable; then
11997                   defaultval=yes
11998               else
11999                   defaultval=no
12000               fi
12001           fi
12002
12003           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12004 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12005           # Check whether --enable-toolbar was given.
12006 if test "${enable_toolbar+set}" = set; then
12007   enableval=$enable_toolbar;
12008                           if test "$enableval" = yes; then
12009                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12010                           else
12011                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12012                           fi
12013
12014 else
12015
12016                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12017
12018 fi
12019
12020
12021           eval "$wx_cv_use_toolbar"
12022
12023           if test x"$enablestring" = xdisable; then
12024             if test $wxUSE_TOOLBAR = no; then
12025               result=yes
12026             else
12027               result=no
12028             fi
12029           else
12030             result=$wxUSE_TOOLBAR
12031           fi
12032
12033           { echo "$as_me:$LINENO: result: $result" >&5
12034 echo "${ECHO_T}$result" >&6; }
12035
12036
12037           enablestring=
12038           defaultval=$wxUSE_ALL_FEATURES
12039           if test -z "$defaultval"; then
12040               if test x"$enablestring" = xdisable; then
12041                   defaultval=yes
12042               else
12043                   defaultval=no
12044               fi
12045           fi
12046
12047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12048 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12049           # Check whether --enable-toolbook was given.
12050 if test "${enable_toolbook+set}" = set; then
12051   enableval=$enable_toolbook;
12052                           if test "$enableval" = yes; then
12053                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12054                           else
12055                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12056                           fi
12057
12058 else
12059
12060                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12061
12062 fi
12063
12064
12065           eval "$wx_cv_use_toolbook"
12066
12067           if test x"$enablestring" = xdisable; then
12068             if test $wxUSE_TOOLBOOK = no; then
12069               result=yes
12070             else
12071               result=no
12072             fi
12073           else
12074             result=$wxUSE_TOOLBOOK
12075           fi
12076
12077           { echo "$as_me:$LINENO: result: $result" >&5
12078 echo "${ECHO_T}$result" >&6; }
12079
12080
12081           enablestring=
12082           defaultval=$wxUSE_ALL_FEATURES
12083           if test -z "$defaultval"; then
12084               if test x"$enablestring" = xdisable; then
12085                   defaultval=yes
12086               else
12087                   defaultval=no
12088               fi
12089           fi
12090
12091           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12092 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12093           # Check whether --enable-treebook was given.
12094 if test "${enable_treebook+set}" = set; then
12095   enableval=$enable_treebook;
12096                           if test "$enableval" = yes; then
12097                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12098                           else
12099                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12100                           fi
12101
12102 else
12103
12104                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12105
12106 fi
12107
12108
12109           eval "$wx_cv_use_treebook"
12110
12111           if test x"$enablestring" = xdisable; then
12112             if test $wxUSE_TREEBOOK = no; then
12113               result=yes
12114             else
12115               result=no
12116             fi
12117           else
12118             result=$wxUSE_TREEBOOK
12119           fi
12120
12121           { echo "$as_me:$LINENO: result: $result" >&5
12122 echo "${ECHO_T}$result" >&6; }
12123
12124
12125           enablestring=
12126           defaultval=$wxUSE_ALL_FEATURES
12127           if test -z "$defaultval"; then
12128               if test x"$enablestring" = xdisable; then
12129                   defaultval=yes
12130               else
12131                   defaultval=no
12132               fi
12133           fi
12134
12135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12136 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12137           # Check whether --enable-treectrl was given.
12138 if test "${enable_treectrl+set}" = set; then
12139   enableval=$enable_treectrl;
12140                           if test "$enableval" = yes; then
12141                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12142                           else
12143                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12144                           fi
12145
12146 else
12147
12148                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12149
12150 fi
12151
12152
12153           eval "$wx_cv_use_treectrl"
12154
12155           if test x"$enablestring" = xdisable; then
12156             if test $wxUSE_TREECTRL = no; then
12157               result=yes
12158             else
12159               result=no
12160             fi
12161           else
12162             result=$wxUSE_TREECTRL
12163           fi
12164
12165           { echo "$as_me:$LINENO: result: $result" >&5
12166 echo "${ECHO_T}$result" >&6; }
12167
12168
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}-commondlg" >&5
12182 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12183           # Check whether --enable-commondlg was given.
12184 if test "${enable_commondlg+set}" = set; then
12185   enableval=$enable_commondlg;
12186                           if test "$enableval" = yes; then
12187                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12188                           else
12189                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12190                           fi
12191
12192 else
12193
12194                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12195
12196 fi
12197
12198
12199           eval "$wx_cv_use_commondlg"
12200
12201           if test x"$enablestring" = xdisable; then
12202             if test $wxUSE_COMMONDLGS = no; then
12203               result=yes
12204             else
12205               result=no
12206             fi
12207           else
12208             result=$wxUSE_COMMONDLGS
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}-aboutdlg" >&5
12226 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12227           # Check whether --enable-aboutdlg was given.
12228 if test "${enable_aboutdlg+set}" = set; then
12229   enableval=$enable_aboutdlg;
12230                           if test "$enableval" = yes; then
12231                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12232                           else
12233                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12234                           fi
12235
12236 else
12237
12238                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12239
12240 fi
12241
12242
12243           eval "$wx_cv_use_aboutdlg"
12244
12245           if test x"$enablestring" = xdisable; then
12246             if test $wxUSE_ABOUTDLG = no; then
12247               result=yes
12248             else
12249               result=no
12250             fi
12251           else
12252             result=$wxUSE_ABOUTDLG
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}-choicedlg" >&5
12270 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12271           # Check whether --enable-choicedlg was given.
12272 if test "${enable_choicedlg+set}" = set; then
12273   enableval=$enable_choicedlg;
12274                           if test "$enableval" = yes; then
12275                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12276                           else
12277                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12278                           fi
12279
12280 else
12281
12282                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12283
12284 fi
12285
12286
12287           eval "$wx_cv_use_choicedlg"
12288
12289           if test x"$enablestring" = xdisable; then
12290             if test $wxUSE_CHOICEDLG = no; then
12291               result=yes
12292             else
12293               result=no
12294             fi
12295           else
12296             result=$wxUSE_CHOICEDLG
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}-coldlg" >&5
12314 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12315           # Check whether --enable-coldlg was given.
12316 if test "${enable_coldlg+set}" = set; then
12317   enableval=$enable_coldlg;
12318                           if test "$enableval" = yes; then
12319                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12320                           else
12321                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12322                           fi
12323
12324 else
12325
12326                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12327
12328 fi
12329
12330
12331           eval "$wx_cv_use_coldlg"
12332
12333           if test x"$enablestring" = xdisable; then
12334             if test $wxUSE_COLOURDLG = no; then
12335               result=yes
12336             else
12337               result=no
12338             fi
12339           else
12340             result=$wxUSE_COLOURDLG
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}-filedlg" >&5
12358 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12359           # Check whether --enable-filedlg was given.
12360 if test "${enable_filedlg+set}" = set; then
12361   enableval=$enable_filedlg;
12362                           if test "$enableval" = yes; then
12363                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12364                           else
12365                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12366                           fi
12367
12368 else
12369
12370                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12371
12372 fi
12373
12374
12375           eval "$wx_cv_use_filedlg"
12376
12377           if test x"$enablestring" = xdisable; then
12378             if test $wxUSE_FILEDLG = no; then
12379               result=yes
12380             else
12381               result=no
12382             fi
12383           else
12384             result=$wxUSE_FILEDLG
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}-finddlg" >&5
12402 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12403           # Check whether --enable-finddlg was given.
12404 if test "${enable_finddlg+set}" = set; then
12405   enableval=$enable_finddlg;
12406                           if test "$enableval" = yes; then
12407                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12408                           else
12409                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12410                           fi
12411
12412 else
12413
12414                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12415
12416 fi
12417
12418
12419           eval "$wx_cv_use_finddlg"
12420
12421           if test x"$enablestring" = xdisable; then
12422             if test $wxUSE_FINDREPLDLG = no; then
12423               result=yes
12424             else
12425               result=no
12426             fi
12427           else
12428             result=$wxUSE_FINDREPLDLG
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}-fontdlg" >&5
12446 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12447           # Check whether --enable-fontdlg was given.
12448 if test "${enable_fontdlg+set}" = set; then
12449   enableval=$enable_fontdlg;
12450                           if test "$enableval" = yes; then
12451                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12452                           else
12453                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12454                           fi
12455
12456 else
12457
12458                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12459
12460 fi
12461
12462
12463           eval "$wx_cv_use_fontdlg"
12464
12465           if test x"$enablestring" = xdisable; then
12466             if test $wxUSE_FONTDLG = no; then
12467               result=yes
12468             else
12469               result=no
12470             fi
12471           else
12472             result=$wxUSE_FONTDLG
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}-dirdlg" >&5
12490 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12491           # Check whether --enable-dirdlg was given.
12492 if test "${enable_dirdlg+set}" = set; then
12493   enableval=$enable_dirdlg;
12494                           if test "$enableval" = yes; then
12495                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12496                           else
12497                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12498                           fi
12499
12500 else
12501
12502                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12503
12504 fi
12505
12506
12507           eval "$wx_cv_use_dirdlg"
12508
12509           if test x"$enablestring" = xdisable; then
12510             if test $wxUSE_DIRDLG = no; then
12511               result=yes
12512             else
12513               result=no
12514             fi
12515           else
12516             result=$wxUSE_DIRDLG
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}-msgdlg" >&5
12534 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12535           # Check whether --enable-msgdlg was given.
12536 if test "${enable_msgdlg+set}" = set; then
12537   enableval=$enable_msgdlg;
12538                           if test "$enableval" = yes; then
12539                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12540                           else
12541                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12542                           fi
12543
12544 else
12545
12546                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12547
12548 fi
12549
12550
12551           eval "$wx_cv_use_msgdlg"
12552
12553           if test x"$enablestring" = xdisable; then
12554             if test $wxUSE_MSGDLG = no; then
12555               result=yes
12556             else
12557               result=no
12558             fi
12559           else
12560             result=$wxUSE_MSGDLG
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}-numberdlg" >&5
12578 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12579           # Check whether --enable-numberdlg was given.
12580 if test "${enable_numberdlg+set}" = set; then
12581   enableval=$enable_numberdlg;
12582                           if test "$enableval" = yes; then
12583                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12584                           else
12585                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12586                           fi
12587
12588 else
12589
12590                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12591
12592 fi
12593
12594
12595           eval "$wx_cv_use_numberdlg"
12596
12597           if test x"$enablestring" = xdisable; then
12598             if test $wxUSE_NUMBERDLG = no; then
12599               result=yes
12600             else
12601               result=no
12602             fi
12603           else
12604             result=$wxUSE_NUMBERDLG
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}-splash" >&5
12622 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12623           # Check whether --enable-splash was given.
12624 if test "${enable_splash+set}" = set; then
12625   enableval=$enable_splash;
12626                           if test "$enableval" = yes; then
12627                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12628                           else
12629                             wx_cv_use_splash='wxUSE_SPLASH=no'
12630                           fi
12631
12632 else
12633
12634                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12635
12636 fi
12637
12638
12639           eval "$wx_cv_use_splash"
12640
12641           if test x"$enablestring" = xdisable; then
12642             if test $wxUSE_SPLASH = no; then
12643               result=yes
12644             else
12645               result=no
12646             fi
12647           else
12648             result=$wxUSE_SPLASH
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}-textdlg" >&5
12666 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12667           # Check whether --enable-textdlg was given.
12668 if test "${enable_textdlg+set}" = set; then
12669   enableval=$enable_textdlg;
12670                           if test "$enableval" = yes; then
12671                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12672                           else
12673                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12674                           fi
12675
12676 else
12677
12678                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12679
12680 fi
12681
12682
12683           eval "$wx_cv_use_textdlg"
12684
12685           if test x"$enablestring" = xdisable; then
12686             if test $wxUSE_TEXTDLG = no; then
12687               result=yes
12688             else
12689               result=no
12690             fi
12691           else
12692             result=$wxUSE_TEXTDLG
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}-tipdlg" >&5
12710 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12711           # Check whether --enable-tipdlg was given.
12712 if test "${enable_tipdlg+set}" = set; then
12713   enableval=$enable_tipdlg;
12714                           if test "$enableval" = yes; then
12715                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12716                           else
12717                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12718                           fi
12719
12720 else
12721
12722                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12723
12724 fi
12725
12726
12727           eval "$wx_cv_use_tipdlg"
12728
12729           if test x"$enablestring" = xdisable; then
12730             if test $wxUSE_STARTUP_TIPS = no; then
12731               result=yes
12732             else
12733               result=no
12734             fi
12735           else
12736             result=$wxUSE_STARTUP_TIPS
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}-progressdlg" >&5
12754 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12755           # Check whether --enable-progressdlg was given.
12756 if test "${enable_progressdlg+set}" = set; then
12757   enableval=$enable_progressdlg;
12758                           if test "$enableval" = yes; then
12759                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12760                           else
12761                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12762                           fi
12763
12764 else
12765
12766                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12767
12768 fi
12769
12770
12771           eval "$wx_cv_use_progressdlg"
12772
12773           if test x"$enablestring" = xdisable; then
12774             if test $wxUSE_PROGRESSDLG = no; then
12775               result=yes
12776             else
12777               result=no
12778             fi
12779           else
12780             result=$wxUSE_PROGRESSDLG
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}-wizarddlg" >&5
12798 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12799           # Check whether --enable-wizarddlg was given.
12800 if test "${enable_wizarddlg+set}" = set; then
12801   enableval=$enable_wizarddlg;
12802                           if test "$enableval" = yes; then
12803                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12804                           else
12805                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12806                           fi
12807
12808 else
12809
12810                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12811
12812 fi
12813
12814
12815           eval "$wx_cv_use_wizarddlg"
12816
12817           if test x"$enablestring" = xdisable; then
12818             if test $wxUSE_WIZARDDLG = no; then
12819               result=yes
12820             else
12821               result=no
12822             fi
12823           else
12824             result=$wxUSE_WIZARDDLG
12825           fi
12826
12827           { echo "$as_me:$LINENO: result: $result" >&5
12828 echo "${ECHO_T}$result" >&6; }
12829
12830
12831
12832
12833           enablestring=
12834           defaultval=$wxUSE_ALL_FEATURES
12835           if test -z "$defaultval"; then
12836               if test x"$enablestring" = xdisable; then
12837                   defaultval=yes
12838               else
12839                   defaultval=no
12840               fi
12841           fi
12842
12843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12844 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12845           # Check whether --enable-menus was given.
12846 if test "${enable_menus+set}" = set; then
12847   enableval=$enable_menus;
12848                           if test "$enableval" = yes; then
12849                             wx_cv_use_menus='wxUSE_MENUS=yes'
12850                           else
12851                             wx_cv_use_menus='wxUSE_MENUS=no'
12852                           fi
12853
12854 else
12855
12856                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12857
12858 fi
12859
12860
12861           eval "$wx_cv_use_menus"
12862
12863           if test x"$enablestring" = xdisable; then
12864             if test $wxUSE_MENUS = no; then
12865               result=yes
12866             else
12867               result=no
12868             fi
12869           else
12870             result=$wxUSE_MENUS
12871           fi
12872
12873           { echo "$as_me:$LINENO: result: $result" >&5
12874 echo "${ECHO_T}$result" >&6; }
12875
12876
12877           enablestring=
12878           defaultval=$wxUSE_ALL_FEATURES
12879           if test -z "$defaultval"; then
12880               if test x"$enablestring" = xdisable; then
12881                   defaultval=yes
12882               else
12883                   defaultval=no
12884               fi
12885           fi
12886
12887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12888 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12889           # Check whether --enable-miniframe was given.
12890 if test "${enable_miniframe+set}" = set; then
12891   enableval=$enable_miniframe;
12892                           if test "$enableval" = yes; then
12893                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12894                           else
12895                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12896                           fi
12897
12898 else
12899
12900                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12901
12902 fi
12903
12904
12905           eval "$wx_cv_use_miniframe"
12906
12907           if test x"$enablestring" = xdisable; then
12908             if test $wxUSE_MINIFRAME = no; then
12909               result=yes
12910             else
12911               result=no
12912             fi
12913           else
12914             result=$wxUSE_MINIFRAME
12915           fi
12916
12917           { echo "$as_me:$LINENO: result: $result" >&5
12918 echo "${ECHO_T}$result" >&6; }
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}-tooltips" >&5
12932 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12933           # Check whether --enable-tooltips was given.
12934 if test "${enable_tooltips+set}" = set; then
12935   enableval=$enable_tooltips;
12936                           if test "$enableval" = yes; then
12937                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12938                           else
12939                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12940                           fi
12941
12942 else
12943
12944                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12945
12946 fi
12947
12948
12949           eval "$wx_cv_use_tooltips"
12950
12951           if test x"$enablestring" = xdisable; then
12952             if test $wxUSE_TOOLTIPS = no; then
12953               result=yes
12954             else
12955               result=no
12956             fi
12957           else
12958             result=$wxUSE_TOOLTIPS
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}-splines" >&5
12976 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12977           # Check whether --enable-splines was given.
12978 if test "${enable_splines+set}" = set; then
12979   enableval=$enable_splines;
12980                           if test "$enableval" = yes; then
12981                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12982                           else
12983                             wx_cv_use_splines='wxUSE_SPLINES=no'
12984                           fi
12985
12986 else
12987
12988                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12989
12990 fi
12991
12992
12993           eval "$wx_cv_use_splines"
12994
12995           if test x"$enablestring" = xdisable; then
12996             if test $wxUSE_SPLINES = no; then
12997               result=yes
12998             else
12999               result=no
13000             fi
13001           else
13002             result=$wxUSE_SPLINES
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}-mousewheel" >&5
13020 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13021           # Check whether --enable-mousewheel was given.
13022 if test "${enable_mousewheel+set}" = set; then
13023   enableval=$enable_mousewheel;
13024                           if test "$enableval" = yes; then
13025                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13026                           else
13027                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13028                           fi
13029
13030 else
13031
13032                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13033
13034 fi
13035
13036
13037           eval "$wx_cv_use_mousewheel"
13038
13039           if test x"$enablestring" = xdisable; then
13040             if test $wxUSE_MOUSEWHEEL = no; then
13041               result=yes
13042             else
13043               result=no
13044             fi
13045           else
13046             result=$wxUSE_MOUSEWHEEL
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}-validators" >&5
13064 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13065           # Check whether --enable-validators was given.
13066 if test "${enable_validators+set}" = set; then
13067   enableval=$enable_validators;
13068                           if test "$enableval" = yes; then
13069                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13070                           else
13071                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13072                           fi
13073
13074 else
13075
13076                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13077
13078 fi
13079
13080
13081           eval "$wx_cv_use_validators"
13082
13083           if test x"$enablestring" = xdisable; then
13084             if test $wxUSE_VALIDATORS = no; then
13085               result=yes
13086             else
13087               result=no
13088             fi
13089           else
13090             result=$wxUSE_VALIDATORS
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}-busyinfo" >&5
13108 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13109           # Check whether --enable-busyinfo was given.
13110 if test "${enable_busyinfo+set}" = set; then
13111   enableval=$enable_busyinfo;
13112                           if test "$enableval" = yes; then
13113                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13114                           else
13115                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13116                           fi
13117
13118 else
13119
13120                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13121
13122 fi
13123
13124
13125           eval "$wx_cv_use_busyinfo"
13126
13127           if test x"$enablestring" = xdisable; then
13128             if test $wxUSE_BUSYINFO = no; then
13129               result=yes
13130             else
13131               result=no
13132             fi
13133           else
13134             result=$wxUSE_BUSYINFO
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}-joystick" >&5
13152 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13153           # Check whether --enable-joystick was given.
13154 if test "${enable_joystick+set}" = set; then
13155   enableval=$enable_joystick;
13156                           if test "$enableval" = yes; then
13157                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13158                           else
13159                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13160                           fi
13161
13162 else
13163
13164                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13165
13166 fi
13167
13168
13169           eval "$wx_cv_use_joystick"
13170
13171           if test x"$enablestring" = xdisable; then
13172             if test $wxUSE_JOYSTICK = no; then
13173               result=yes
13174             else
13175               result=no
13176             fi
13177           else
13178             result=$wxUSE_JOYSTICK
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}-metafile" >&5
13196 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13197           # Check whether --enable-metafile was given.
13198 if test "${enable_metafile+set}" = set; then
13199   enableval=$enable_metafile;
13200                           if test "$enableval" = yes; then
13201                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13202                           else
13203                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13204                           fi
13205
13206 else
13207
13208                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13209
13210 fi
13211
13212
13213           eval "$wx_cv_use_metafile"
13214
13215           if test x"$enablestring" = xdisable; then
13216             if test $wxUSE_METAFILE = no; then
13217               result=yes
13218             else
13219               result=no
13220             fi
13221           else
13222             result=$wxUSE_METAFILE
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}-dragimage" >&5
13240 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13241           # Check whether --enable-dragimage was given.
13242 if test "${enable_dragimage+set}" = set; then
13243   enableval=$enable_dragimage;
13244                           if test "$enableval" = yes; then
13245                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13246                           else
13247                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13248                           fi
13249
13250 else
13251
13252                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13253
13254 fi
13255
13256
13257           eval "$wx_cv_use_dragimage"
13258
13259           if test x"$enablestring" = xdisable; then
13260             if test $wxUSE_DRAGIMAGE = no; then
13261               result=yes
13262             else
13263               result=no
13264             fi
13265           else
13266             result=$wxUSE_DRAGIMAGE
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}-accessibility" >&5
13284 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13285           # Check whether --enable-accessibility was given.
13286 if test "${enable_accessibility+set}" = set; then
13287   enableval=$enable_accessibility;
13288                           if test "$enableval" = yes; then
13289                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13290                           else
13291                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13292                           fi
13293
13294 else
13295
13296                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13297
13298 fi
13299
13300
13301           eval "$wx_cv_use_accessibility"
13302
13303           if test x"$enablestring" = xdisable; then
13304             if test $wxUSE_ACCESSIBILITY = no; then
13305               result=yes
13306             else
13307               result=no
13308             fi
13309           else
13310             result=$wxUSE_ACCESSIBILITY
13311           fi
13312
13313           { echo "$as_me:$LINENO: result: $result" >&5
13314 echo "${ECHO_T}$result" >&6; }
13315
13316
13317
13318
13319           enablestring=
13320           defaultval=$wxUSE_ALL_FEATURES
13321           if test -z "$defaultval"; then
13322               if test x"$enablestring" = xdisable; then
13323                   defaultval=yes
13324               else
13325                   defaultval=no
13326               fi
13327           fi
13328
13329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13330 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13331           # Check whether --enable-palette was given.
13332 if test "${enable_palette+set}" = set; then
13333   enableval=$enable_palette;
13334                           if test "$enableval" = yes; then
13335                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13336                           else
13337                             wx_cv_use_palette='wxUSE_PALETTE=no'
13338                           fi
13339
13340 else
13341
13342                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13343
13344 fi
13345
13346
13347           eval "$wx_cv_use_palette"
13348
13349           if test x"$enablestring" = xdisable; then
13350             if test $wxUSE_PALETTE = no; then
13351               result=yes
13352             else
13353               result=no
13354             fi
13355           else
13356             result=$wxUSE_PALETTE
13357           fi
13358
13359           { echo "$as_me:$LINENO: result: $result" >&5
13360 echo "${ECHO_T}$result" >&6; }
13361
13362
13363           enablestring=
13364           defaultval=$wxUSE_ALL_FEATURES
13365           if test -z "$defaultval"; then
13366               if test x"$enablestring" = xdisable; then
13367                   defaultval=yes
13368               else
13369                   defaultval=no
13370               fi
13371           fi
13372
13373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13374 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13375           # Check whether --enable-image was given.
13376 if test "${enable_image+set}" = set; then
13377   enableval=$enable_image;
13378                           if test "$enableval" = yes; then
13379                             wx_cv_use_image='wxUSE_IMAGE=yes'
13380                           else
13381                             wx_cv_use_image='wxUSE_IMAGE=no'
13382                           fi
13383
13384 else
13385
13386                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13387
13388 fi
13389
13390
13391           eval "$wx_cv_use_image"
13392
13393           if test x"$enablestring" = xdisable; then
13394             if test $wxUSE_IMAGE = no; then
13395               result=yes
13396             else
13397               result=no
13398             fi
13399           else
13400             result=$wxUSE_IMAGE
13401           fi
13402
13403           { echo "$as_me:$LINENO: result: $result" >&5
13404 echo "${ECHO_T}$result" >&6; }
13405
13406
13407           enablestring=
13408           defaultval=$wxUSE_ALL_FEATURES
13409           if test -z "$defaultval"; then
13410               if test x"$enablestring" = xdisable; then
13411                   defaultval=yes
13412               else
13413                   defaultval=no
13414               fi
13415           fi
13416
13417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13418 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13419           # Check whether --enable-gif was given.
13420 if test "${enable_gif+set}" = set; then
13421   enableval=$enable_gif;
13422                           if test "$enableval" = yes; then
13423                             wx_cv_use_gif='wxUSE_GIF=yes'
13424                           else
13425                             wx_cv_use_gif='wxUSE_GIF=no'
13426                           fi
13427
13428 else
13429
13430                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13431
13432 fi
13433
13434
13435           eval "$wx_cv_use_gif"
13436
13437           if test x"$enablestring" = xdisable; then
13438             if test $wxUSE_GIF = no; then
13439               result=yes
13440             else
13441               result=no
13442             fi
13443           else
13444             result=$wxUSE_GIF
13445           fi
13446
13447           { echo "$as_me:$LINENO: result: $result" >&5
13448 echo "${ECHO_T}$result" >&6; }
13449
13450
13451           enablestring=
13452           defaultval=$wxUSE_ALL_FEATURES
13453           if test -z "$defaultval"; then
13454               if test x"$enablestring" = xdisable; then
13455                   defaultval=yes
13456               else
13457                   defaultval=no
13458               fi
13459           fi
13460
13461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13462 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13463           # Check whether --enable-pcx was given.
13464 if test "${enable_pcx+set}" = set; then
13465   enableval=$enable_pcx;
13466                           if test "$enableval" = yes; then
13467                             wx_cv_use_pcx='wxUSE_PCX=yes'
13468                           else
13469                             wx_cv_use_pcx='wxUSE_PCX=no'
13470                           fi
13471
13472 else
13473
13474                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13475
13476 fi
13477
13478
13479           eval "$wx_cv_use_pcx"
13480
13481           if test x"$enablestring" = xdisable; then
13482             if test $wxUSE_PCX = no; then
13483               result=yes
13484             else
13485               result=no
13486             fi
13487           else
13488             result=$wxUSE_PCX
13489           fi
13490
13491           { echo "$as_me:$LINENO: result: $result" >&5
13492 echo "${ECHO_T}$result" >&6; }
13493
13494
13495           enablestring=
13496           defaultval=$wxUSE_ALL_FEATURES
13497           if test -z "$defaultval"; then
13498               if test x"$enablestring" = xdisable; then
13499                   defaultval=yes
13500               else
13501                   defaultval=no
13502               fi
13503           fi
13504
13505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13506 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13507           # Check whether --enable-tga was given.
13508 if test "${enable_tga+set}" = set; then
13509   enableval=$enable_tga;
13510                           if test "$enableval" = yes; then
13511                             wx_cv_use_tga='wxUSE_TGA=yes'
13512                           else
13513                             wx_cv_use_tga='wxUSE_TGA=no'
13514                           fi
13515
13516 else
13517
13518                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13519
13520 fi
13521
13522
13523           eval "$wx_cv_use_tga"
13524
13525           if test x"$enablestring" = xdisable; then
13526             if test $wxUSE_TGA = no; then
13527               result=yes
13528             else
13529               result=no
13530             fi
13531           else
13532             result=$wxUSE_TGA
13533           fi
13534
13535           { echo "$as_me:$LINENO: result: $result" >&5
13536 echo "${ECHO_T}$result" >&6; }
13537
13538
13539           enablestring=
13540           defaultval=$wxUSE_ALL_FEATURES
13541           if test -z "$defaultval"; then
13542               if test x"$enablestring" = xdisable; then
13543                   defaultval=yes
13544               else
13545                   defaultval=no
13546               fi
13547           fi
13548
13549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13550 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13551           # Check whether --enable-iff was given.
13552 if test "${enable_iff+set}" = set; then
13553   enableval=$enable_iff;
13554                           if test "$enableval" = yes; then
13555                             wx_cv_use_iff='wxUSE_IFF=yes'
13556                           else
13557                             wx_cv_use_iff='wxUSE_IFF=no'
13558                           fi
13559
13560 else
13561
13562                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13563
13564 fi
13565
13566
13567           eval "$wx_cv_use_iff"
13568
13569           if test x"$enablestring" = xdisable; then
13570             if test $wxUSE_IFF = no; then
13571               result=yes
13572             else
13573               result=no
13574             fi
13575           else
13576             result=$wxUSE_IFF
13577           fi
13578
13579           { echo "$as_me:$LINENO: result: $result" >&5
13580 echo "${ECHO_T}$result" >&6; }
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}-pnm" >&5
13594 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13595           # Check whether --enable-pnm was given.
13596 if test "${enable_pnm+set}" = set; then
13597   enableval=$enable_pnm;
13598                           if test "$enableval" = yes; then
13599                             wx_cv_use_pnm='wxUSE_PNM=yes'
13600                           else
13601                             wx_cv_use_pnm='wxUSE_PNM=no'
13602                           fi
13603
13604 else
13605
13606                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13607
13608 fi
13609
13610
13611           eval "$wx_cv_use_pnm"
13612
13613           if test x"$enablestring" = xdisable; then
13614             if test $wxUSE_PNM = no; then
13615               result=yes
13616             else
13617               result=no
13618             fi
13619           else
13620             result=$wxUSE_PNM
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}-xpm" >&5
13638 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13639           # Check whether --enable-xpm was given.
13640 if test "${enable_xpm+set}" = set; then
13641   enableval=$enable_xpm;
13642                           if test "$enableval" = yes; then
13643                             wx_cv_use_xpm='wxUSE_XPM=yes'
13644                           else
13645                             wx_cv_use_xpm='wxUSE_XPM=no'
13646                           fi
13647
13648 else
13649
13650                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13651
13652 fi
13653
13654
13655           eval "$wx_cv_use_xpm"
13656
13657           if test x"$enablestring" = xdisable; then
13658             if test $wxUSE_XPM = no; then
13659               result=yes
13660             else
13661               result=no
13662             fi
13663           else
13664             result=$wxUSE_XPM
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}-ico_cur" >&5
13682 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13683           # Check whether --enable-ico_cur was given.
13684 if test "${enable_ico_cur+set}" = set; then
13685   enableval=$enable_ico_cur;
13686                           if test "$enableval" = yes; then
13687                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13688                           else
13689                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13690                           fi
13691
13692 else
13693
13694                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13695
13696 fi
13697
13698
13699           eval "$wx_cv_use_ico_cur"
13700
13701           if test x"$enablestring" = xdisable; then
13702             if test $wxUSE_ICO_CUR = no; then
13703               result=yes
13704             else
13705               result=no
13706             fi
13707           else
13708             result=$wxUSE_ICO_CUR
13709           fi
13710
13711           { echo "$as_me:$LINENO: result: $result" >&5
13712 echo "${ECHO_T}$result" >&6; }
13713
13714
13715
13716
13717           enablestring=
13718           defaultval=$wxUSE_ALL_FEATURES
13719           if test -z "$defaultval"; then
13720               if test x"$enablestring" = xdisable; then
13721                   defaultval=yes
13722               else
13723                   defaultval=no
13724               fi
13725           fi
13726
13727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13728 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13729           # Check whether --enable-dccache was given.
13730 if test "${enable_dccache+set}" = set; then
13731   enableval=$enable_dccache;
13732                           if test "$enableval" = yes; then
13733                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13734                           else
13735                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13736                           fi
13737
13738 else
13739
13740                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13741
13742 fi
13743
13744
13745           eval "$wx_cv_use_dccache"
13746
13747           if test x"$enablestring" = xdisable; then
13748             if test $wxUSE_DC_CACHEING = no; then
13749               result=yes
13750             else
13751               result=no
13752             fi
13753           else
13754             result=$wxUSE_DC_CACHEING
13755           fi
13756
13757           { echo "$as_me:$LINENO: result: $result" >&5
13758 echo "${ECHO_T}$result" >&6; }
13759
13760
13761           enablestring=
13762           defaultval=$wxUSE_ALL_FEATURES
13763           if test -z "$defaultval"; then
13764               if test x"$enablestring" = xdisable; then
13765                   defaultval=yes
13766               else
13767                   defaultval=no
13768               fi
13769           fi
13770
13771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13772 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13773           # Check whether --enable-ps-in-msw was given.
13774 if test "${enable_ps_in_msw+set}" = set; then
13775   enableval=$enable_ps_in_msw;
13776                           if test "$enableval" = yes; then
13777                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13778                           else
13779                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13780                           fi
13781
13782 else
13783
13784                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13785
13786 fi
13787
13788
13789           eval "$wx_cv_use_ps_in_msw"
13790
13791           if test x"$enablestring" = xdisable; then
13792             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
13793               result=yes
13794             else
13795               result=no
13796             fi
13797           else
13798             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13799           fi
13800
13801           { echo "$as_me:$LINENO: result: $result" >&5
13802 echo "${ECHO_T}$result" >&6; }
13803
13804
13805           enablestring=
13806           defaultval=$wxUSE_ALL_FEATURES
13807           if test -z "$defaultval"; then
13808               if test x"$enablestring" = xdisable; then
13809                   defaultval=yes
13810               else
13811                   defaultval=no
13812               fi
13813           fi
13814
13815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13816 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13817           # Check whether --enable-ownerdrawn was given.
13818 if test "${enable_ownerdrawn+set}" = set; then
13819   enableval=$enable_ownerdrawn;
13820                           if test "$enableval" = yes; then
13821                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13822                           else
13823                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13824                           fi
13825
13826 else
13827
13828                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13829
13830 fi
13831
13832
13833           eval "$wx_cv_use_ownerdrawn"
13834
13835           if test x"$enablestring" = xdisable; then
13836             if test $wxUSE_OWNER_DRAWN = no; then
13837               result=yes
13838             else
13839               result=no
13840             fi
13841           else
13842             result=$wxUSE_OWNER_DRAWN
13843           fi
13844
13845           { echo "$as_me:$LINENO: result: $result" >&5
13846 echo "${ECHO_T}$result" >&6; }
13847
13848
13849           enablestring=
13850           defaultval=$wxUSE_ALL_FEATURES
13851           if test -z "$defaultval"; then
13852               if test x"$enablestring" = xdisable; then
13853                   defaultval=yes
13854               else
13855                   defaultval=no
13856               fi
13857           fi
13858
13859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13860 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13861           # Check whether --enable-uxtheme was given.
13862 if test "${enable_uxtheme+set}" = set; then
13863   enableval=$enable_uxtheme;
13864                           if test "$enableval" = yes; then
13865                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13866                           else
13867                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13868                           fi
13869
13870 else
13871
13872                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13873
13874 fi
13875
13876
13877           eval "$wx_cv_use_uxtheme"
13878
13879           if test x"$enablestring" = xdisable; then
13880             if test $wxUSE_UXTHEME = no; then
13881               result=yes
13882             else
13883               result=no
13884             fi
13885           else
13886             result=$wxUSE_UXTHEME
13887           fi
13888
13889           { echo "$as_me:$LINENO: result: $result" >&5
13890 echo "${ECHO_T}$result" >&6; }
13891
13892
13893           enablestring=
13894           defaultval=$wxUSE_ALL_FEATURES
13895           if test -z "$defaultval"; then
13896               if test x"$enablestring" = xdisable; then
13897                   defaultval=yes
13898               else
13899                   defaultval=no
13900               fi
13901           fi
13902
13903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13904 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13905           # Check whether --enable-wxdib was given.
13906 if test "${enable_wxdib+set}" = set; then
13907   enableval=$enable_wxdib;
13908                           if test "$enableval" = yes; then
13909                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13910                           else
13911                             wx_cv_use_wxdib='wxUSE_DIB=no'
13912                           fi
13913
13914 else
13915
13916                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13917
13918 fi
13919
13920
13921           eval "$wx_cv_use_wxdib"
13922
13923           if test x"$enablestring" = xdisable; then
13924             if test $wxUSE_DIB = no; then
13925               result=yes
13926             else
13927               result=no
13928             fi
13929           else
13930             result=$wxUSE_DIB
13931           fi
13932
13933           { echo "$as_me:$LINENO: result: $result" >&5
13934 echo "${ECHO_T}$result" >&6; }
13935
13936
13937 if test "$wxUSE_MSW" != 1; then
13938     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13939 fi
13940
13941
13942           enablestring=
13943           defaultval=$wxUSE_ALL_FEATURES
13944           if test -z "$defaultval"; then
13945               if test x"$enablestring" = xdisable; then
13946                   defaultval=yes
13947               else
13948                   defaultval=no
13949               fi
13950           fi
13951
13952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13953 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13954           # Check whether --enable-autoidman was given.
13955 if test "${enable_autoidman+set}" = set; then
13956   enableval=$enable_autoidman;
13957                           if test "$enableval" = yes; then
13958                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13959                           else
13960                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13961                           fi
13962
13963 else
13964
13965                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13966
13967 fi
13968
13969
13970           eval "$wx_cv_use_autoidman"
13971
13972           if test x"$enablestring" = xdisable; then
13973             if test $wxUSE_AUTOID_MANAGEMENT = no; then
13974               result=yes
13975             else
13976               result=no
13977             fi
13978           else
13979             result=$wxUSE_AUTOID_MANAGEMENT
13980           fi
13981
13982           { echo "$as_me:$LINENO: result: $result" >&5
13983 echo "${ECHO_T}$result" >&6; }
13984
13985
13986 fi
13987
13988
13989 cat >confcache <<\_ACEOF
13990 # This file is a shell script that caches the results of configure
13991 # tests run on this system so they can be shared between configure
13992 # scripts and configure runs, see configure's option --config-cache.
13993 # It is not useful on other systems.  If it contains results you don't
13994 # want to keep, you may remove or edit it.
13995 #
13996 # config.status only pays attention to the cache file if you give it
13997 # the --recheck option to rerun configure.
13998 #
13999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14001 # following values.
14002
14003 _ACEOF
14004
14005 # The following way of writing the cache mishandles newlines in values,
14006 # but we know of no workaround that is simple, portable, and efficient.
14007 # So, we kill variables containing newlines.
14008 # Ultrix sh set writes to stderr and can't be redirected directly,
14009 # and sets the high bit in the cache file unless we assign to the vars.
14010 (
14011   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14012     eval ac_val=\$$ac_var
14013     case $ac_val in #(
14014     *${as_nl}*)
14015       case $ac_var in #(
14016       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14018       esac
14019       case $ac_var in #(
14020       _ | IFS | as_nl) ;; #(
14021       *) $as_unset $ac_var ;;
14022       esac ;;
14023     esac
14024   done
14025
14026   (set) 2>&1 |
14027     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14028     *${as_nl}ac_space=\ *)
14029       # `set' does not quote correctly, so add quotes (double-quote
14030       # substitution turns \\\\ into \\, and sed turns \\ into \).
14031       sed -n \
14032         "s/'/'\\\\''/g;
14033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14034       ;; #(
14035     *)
14036       # `set' quotes correctly as required by POSIX, so do not add quotes.
14037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14038       ;;
14039     esac |
14040     sort
14041 ) |
14042   sed '
14043      /^ac_cv_env_/b end
14044      t clear
14045      :clear
14046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14047      t end
14048      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14049      :end' >>confcache
14050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14051   if test -w "$cache_file"; then
14052     test "x$cache_file" != "x/dev/null" &&
14053       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14054 echo "$as_me: updating cache $cache_file" >&6;}
14055     cat confcache >$cache_file
14056   else
14057     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14059   fi
14060 fi
14061 rm -f confcache
14062
14063 CFLAGS=${CFLAGS:=}
14064
14065
14066
14067     ac_ext=c
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14072 if test -n "$ac_tool_prefix"; then
14073   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14077 if test "${ac_cv_prog_CC+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   if test -n "$CC"; then
14081   ac_cv_prog_CC="$CC" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086   IFS=$as_save_IFS
14087   test -z "$as_dir" && as_dir=.
14088   for ac_exec_ext in '' $ac_executable_extensions; do
14089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14092     break 2
14093   fi
14094 done
14095 done
14096 IFS=$as_save_IFS
14097
14098 fi
14099 fi
14100 CC=$ac_cv_prog_CC
14101 if test -n "$CC"; then
14102   { echo "$as_me:$LINENO: result: $CC" >&5
14103 echo "${ECHO_T}$CC" >&6; }
14104 else
14105   { echo "$as_me:$LINENO: result: no" >&5
14106 echo "${ECHO_T}no" >&6; }
14107 fi
14108
14109
14110 fi
14111 if test -z "$ac_cv_prog_CC"; then
14112   ac_ct_CC=$CC
14113   # Extract the first word of "gcc", so it can be a program name with args.
14114 set dummy gcc; ac_word=$2
14115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   if test -n "$ac_ct_CC"; then
14121   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14122 else
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14125 do
14126   IFS=$as_save_IFS
14127   test -z "$as_dir" && as_dir=.
14128   for ac_exec_ext in '' $ac_executable_extensions; do
14129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130     ac_cv_prog_ac_ct_CC="gcc"
14131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14132     break 2
14133   fi
14134 done
14135 done
14136 IFS=$as_save_IFS
14137
14138 fi
14139 fi
14140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14141 if test -n "$ac_ct_CC"; then
14142   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14143 echo "${ECHO_T}$ac_ct_CC" >&6; }
14144 else
14145   { echo "$as_me:$LINENO: result: no" >&5
14146 echo "${ECHO_T}no" >&6; }
14147 fi
14148
14149   if test "x$ac_ct_CC" = x; then
14150     CC=""
14151   else
14152     case $cross_compiling:$ac_tool_warned in
14153 yes:)
14154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14155 whose name does not start with the host triplet.  If you think this
14156 configuration is useful to you, please write to autoconf@gnu.org." >&5
14157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14158 whose name does not start with the host triplet.  If you think this
14159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14160 ac_tool_warned=yes ;;
14161 esac
14162     CC=$ac_ct_CC
14163   fi
14164 else
14165   CC="$ac_cv_prog_CC"
14166 fi
14167
14168 if test -z "$CC"; then
14169           if test -n "$ac_tool_prefix"; then
14170     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14171 set dummy ${ac_tool_prefix}cc; ac_word=$2
14172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14174 if test "${ac_cv_prog_CC+set}" = set; then
14175   echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
14177   if test -n "$CC"; then
14178   ac_cv_prog_CC="$CC" # Let the user override the test.
14179 else
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14182 do
14183   IFS=$as_save_IFS
14184   test -z "$as_dir" && as_dir=.
14185   for ac_exec_ext in '' $ac_executable_extensions; do
14186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14187     ac_cv_prog_CC="${ac_tool_prefix}cc"
14188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14189     break 2
14190   fi
14191 done
14192 done
14193 IFS=$as_save_IFS
14194
14195 fi
14196 fi
14197 CC=$ac_cv_prog_CC
14198 if test -n "$CC"; then
14199   { echo "$as_me:$LINENO: result: $CC" >&5
14200 echo "${ECHO_T}$CC" >&6; }
14201 else
14202   { echo "$as_me:$LINENO: result: no" >&5
14203 echo "${ECHO_T}no" >&6; }
14204 fi
14205
14206
14207   fi
14208 fi
14209 if test -z "$CC"; then
14210   # Extract the first word of "cc", so it can be a program name with args.
14211 set dummy cc; ac_word=$2
14212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14214 if test "${ac_cv_prog_CC+set}" = set; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217   if test -n "$CC"; then
14218   ac_cv_prog_CC="$CC" # Let the user override the test.
14219 else
14220   ac_prog_rejected=no
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14223 do
14224   IFS=$as_save_IFS
14225   test -z "$as_dir" && as_dir=.
14226   for ac_exec_ext in '' $ac_executable_extensions; do
14227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14229        ac_prog_rejected=yes
14230        continue
14231      fi
14232     ac_cv_prog_CC="cc"
14233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14234     break 2
14235   fi
14236 done
14237 done
14238 IFS=$as_save_IFS
14239
14240 if test $ac_prog_rejected = yes; then
14241   # We found a bogon in the path, so make sure we never use it.
14242   set dummy $ac_cv_prog_CC
14243   shift
14244   if test $# != 0; then
14245     # We chose a different compiler from the bogus one.
14246     # However, it has the same basename, so the bogon will be chosen
14247     # first if we set CC to just the basename; use the full file name.
14248     shift
14249     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14250   fi
14251 fi
14252 fi
14253 fi
14254 CC=$ac_cv_prog_CC
14255 if test -n "$CC"; then
14256   { echo "$as_me:$LINENO: result: $CC" >&5
14257 echo "${ECHO_T}$CC" >&6; }
14258 else
14259   { echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6; }
14261 fi
14262
14263
14264 fi
14265 if test -z "$CC"; then
14266   if test -n "$ac_tool_prefix"; then
14267   for ac_prog in cl.exe
14268   do
14269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14273 if test "${ac_cv_prog_CC+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   if test -n "$CC"; then
14277   ac_cv_prog_CC="$CC" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284   for ac_exec_ext in '' $ac_executable_extensions; do
14285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14286     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291 done
14292 IFS=$as_save_IFS
14293
14294 fi
14295 fi
14296 CC=$ac_cv_prog_CC
14297 if test -n "$CC"; then
14298   { echo "$as_me:$LINENO: result: $CC" >&5
14299 echo "${ECHO_T}$CC" >&6; }
14300 else
14301   { echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6; }
14303 fi
14304
14305
14306     test -n "$CC" && break
14307   done
14308 fi
14309 if test -z "$CC"; then
14310   ac_ct_CC=$CC
14311   for ac_prog in cl.exe
14312 do
14313   # Extract the first word of "$ac_prog", so it can be a program name with args.
14314 set dummy $ac_prog; ac_word=$2
14315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   if test -n "$ac_ct_CC"; then
14321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326   IFS=$as_save_IFS
14327   test -z "$as_dir" && as_dir=.
14328   for ac_exec_ext in '' $ac_executable_extensions; do
14329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14330     ac_cv_prog_ac_ct_CC="$ac_prog"
14331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332     break 2
14333   fi
14334 done
14335 done
14336 IFS=$as_save_IFS
14337
14338 fi
14339 fi
14340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14341 if test -n "$ac_ct_CC"; then
14342   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14343 echo "${ECHO_T}$ac_ct_CC" >&6; }
14344 else
14345   { echo "$as_me:$LINENO: result: no" >&5
14346 echo "${ECHO_T}no" >&6; }
14347 fi
14348
14349
14350   test -n "$ac_ct_CC" && break
14351 done
14352
14353   if test "x$ac_ct_CC" = x; then
14354     CC=""
14355   else
14356     case $cross_compiling:$ac_tool_warned in
14357 yes:)
14358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14359 whose name does not start with the host triplet.  If you think this
14360 configuration is useful to you, please write to autoconf@gnu.org." >&5
14361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14362 whose name does not start with the host triplet.  If you think this
14363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14364 ac_tool_warned=yes ;;
14365 esac
14366     CC=$ac_ct_CC
14367   fi
14368 fi
14369
14370 fi
14371
14372
14373 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14374 See \`config.log' for more details." >&5
14375 echo "$as_me: error: no acceptable C compiler found in \$PATH
14376 See \`config.log' for more details." >&2;}
14377    { (exit 1); exit 1; }; }
14378
14379 # Provide some information about the compiler.
14380 echo "$as_me:$LINENO: checking for C compiler version" >&5
14381 ac_compiler=`set X $ac_compile; echo $2`
14382 { (ac_try="$ac_compiler --version >&5"
14383 case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_compiler --version >&5") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }
14392 { (ac_try="$ac_compiler -v >&5"
14393 case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_compiler -v >&5") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }
14402 { (ac_try="$ac_compiler -V >&5"
14403 case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_compiler -V >&5") 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }
14412
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h.  */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h.  */
14419
14420 int
14421 main ()
14422 {
14423
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 ac_clean_files_save=$ac_clean_files
14429 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14430 # Try to create an executable without -o first, disregard a.out.
14431 # It will help us diagnose broken compilers, and finding out an intuition
14432 # of exeext.
14433 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14434 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14435 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14436 #
14437 # List of possible output files, starting from the most likely.
14438 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14439 # only as a last resort.  b.out is created by i960 compilers.
14440 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14441 #
14442 # The IRIX 6 linker writes into existing files which may not be
14443 # executable, retaining their permissions.  Remove them first so a
14444 # subsequent execution test works.
14445 ac_rmfiles=
14446 for ac_file in $ac_files
14447 do
14448   case $ac_file in
14449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14450     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14451   esac
14452 done
14453 rm -f $ac_rmfiles
14454
14455 if { (ac_try="$ac_link_default"
14456 case "(($ac_try" in
14457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458   *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461   (eval "$ac_link_default") 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; then
14465   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14467 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14468 # so that the user can short-circuit this test for compilers unknown to
14469 # Autoconf.
14470 for ac_file in $ac_files ''
14471 do
14472   test -f "$ac_file" || continue
14473   case $ac_file in
14474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14475         ;;
14476     [ab].out )
14477         # We found the default executable, but exeext='' is most
14478         # certainly right.
14479         break;;
14480     *.* )
14481         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14482         then :; else
14483            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14484         fi
14485         # We set ac_cv_exeext here because the later test for it is not
14486         # safe: cross compilers may not add the suffix if given an `-o'
14487         # argument, so we may need to know it at that point already.
14488         # Even if this section looks crufty: it has the advantage of
14489         # actually working.
14490         break;;
14491     * )
14492         break;;
14493   esac
14494 done
14495 test "$ac_cv_exeext" = no && ac_cv_exeext=
14496
14497 else
14498   ac_file=''
14499 fi
14500
14501 { echo "$as_me:$LINENO: result: $ac_file" >&5
14502 echo "${ECHO_T}$ac_file" >&6; }
14503 if test -z "$ac_file"; then
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14508 See \`config.log' for more details." >&5
14509 echo "$as_me: error: C compiler cannot create executables
14510 See \`config.log' for more details." >&2;}
14511    { (exit 77); exit 77; }; }
14512 fi
14513
14514 ac_exeext=$ac_cv_exeext
14515
14516 # Check that the compiler produces executables we can run.  If not, either
14517 # the compiler is broken, or we cross compile.
14518 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14521 # If not cross compiling, check that we can run a simple program.
14522 if test "$cross_compiling" != yes; then
14523   if { ac_try='./$ac_file'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533     cross_compiling=no
14534   else
14535     if test "$cross_compiling" = maybe; then
14536         cross_compiling=yes
14537     else
14538         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14539 If you meant to cross compile, use \`--host'.
14540 See \`config.log' for more details." >&5
14541 echo "$as_me: error: cannot run C compiled programs.
14542 If you meant to cross compile, use \`--host'.
14543 See \`config.log' for more details." >&2;}
14544    { (exit 1); exit 1; }; }
14545     fi
14546   fi
14547 fi
14548 { echo "$as_me:$LINENO: result: yes" >&5
14549 echo "${ECHO_T}yes" >&6; }
14550
14551 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14552 ac_clean_files=$ac_clean_files_save
14553 # Check that the compiler produces executables we can run.  If not, either
14554 # the compiler is broken, or we cross compile.
14555 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14556 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14557 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14558 echo "${ECHO_T}$cross_compiling" >&6; }
14559
14560 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14561 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_link") 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; then
14572   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14573 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14574 # work properly (i.e., refer to `conftest.exe'), while it won't with
14575 # `rm'.
14576 for ac_file in conftest.exe conftest conftest.*; do
14577   test -f "$ac_file" || continue
14578   case $ac_file in
14579     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14580     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14581           break;;
14582     * ) break;;
14583   esac
14584 done
14585 else
14586   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14587 See \`config.log' for more details." >&5
14588 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14589 See \`config.log' for more details." >&2;}
14590    { (exit 1); exit 1; }; }
14591 fi
14592
14593 rm -f conftest$ac_cv_exeext
14594 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14595 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14596
14597 rm -f conftest.$ac_ext
14598 EXEEXT=$ac_cv_exeext
14599 ac_exeext=$EXEEXT
14600 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14601 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14602 if test "${ac_cv_objext+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611
14612 int
14613 main ()
14614 {
14615
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 rm -f conftest.o conftest.obj
14621 if { (ac_try="$ac_compile"
14622 case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627   (eval "$ac_compile") 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; then
14631   for ac_file in conftest.o conftest.obj conftest.*; do
14632   test -f "$ac_file" || continue;
14633   case $ac_file in
14634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14635     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14636        break;;
14637   esac
14638 done
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14644 See \`config.log' for more details." >&5
14645 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14646 See \`config.log' for more details." >&2;}
14647    { (exit 1); exit 1; }; }
14648 fi
14649
14650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14653 echo "${ECHO_T}$ac_cv_objext" >&6; }
14654 OBJEXT=$ac_cv_objext
14655 ac_objext=$OBJEXT
14656 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14657 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14658 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667
14668 int
14669 main ()
14670 {
14671 #ifndef __GNUC__
14672        choke me
14673 #endif
14674
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 rm -f conftest.$ac_objext
14680 if { (ac_try="$ac_compile"
14681 case "(($ac_try" in
14682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683   *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686   (eval "$ac_compile") 2>conftest.er1
14687   ac_status=$?
14688   grep -v '^ *+' conftest.er1 >conftest.err
14689   rm -f conftest.er1
14690   cat conftest.err >&5
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } && {
14693          test -z "$ac_c_werror_flag" ||
14694          test ! -s conftest.err
14695        } && test -s conftest.$ac_objext; then
14696   ac_compiler_gnu=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701         ac_compiler_gnu=no
14702 fi
14703
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14706
14707 fi
14708 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14709 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14710 GCC=`test $ac_compiler_gnu = yes && echo yes`
14711 ac_test_CFLAGS=${CFLAGS+set}
14712 ac_save_CFLAGS=$CFLAGS
14713 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14714 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14715 if test "${ac_cv_prog_cc_g+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   ac_save_c_werror_flag=$ac_c_werror_flag
14719    ac_c_werror_flag=yes
14720    ac_cv_prog_cc_g=no
14721    CFLAGS="-g"
14722    cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728
14729 int
14730 main ()
14731 {
14732
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (ac_try="$ac_compile"
14739 case "(($ac_try" in
14740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741   *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744   (eval "$ac_compile") 2>conftest.er1
14745   ac_status=$?
14746   grep -v '^ *+' conftest.er1 >conftest.err
14747   rm -f conftest.er1
14748   cat conftest.err >&5
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } && {
14751          test -z "$ac_c_werror_flag" ||
14752          test ! -s conftest.err
14753        } && test -s conftest.$ac_objext; then
14754   ac_cv_prog_cc_g=yes
14755 else
14756   echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759         CFLAGS=""
14760       cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766
14767 int
14768 main ()
14769 {
14770
14771   ;
14772   return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (ac_try="$ac_compile"
14777 case "(($ac_try" in
14778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779   *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782   (eval "$ac_compile") 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } && {
14789          test -z "$ac_c_werror_flag" ||
14790          test ! -s conftest.err
14791        } && test -s conftest.$ac_objext; then
14792   :
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797         ac_c_werror_flag=$ac_save_c_werror_flag
14798          CFLAGS="-g"
14799          cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805
14806 int
14807 main ()
14808 {
14809
14810   ;
14811   return 0;
14812 }
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (ac_try="$ac_compile"
14816 case "(($ac_try" in
14817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818   *) ac_try_echo=$ac_try;;
14819 esac
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821   (eval "$ac_compile") 2>conftest.er1
14822   ac_status=$?
14823   grep -v '^ *+' conftest.er1 >conftest.err
14824   rm -f conftest.er1
14825   cat conftest.err >&5
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } && {
14828          test -z "$ac_c_werror_flag" ||
14829          test ! -s conftest.err
14830        } && test -s conftest.$ac_objext; then
14831   ac_cv_prog_cc_g=yes
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836
14837 fi
14838
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 fi
14844
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846    ac_c_werror_flag=$ac_save_c_werror_flag
14847 fi
14848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14849 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14850 if test "$ac_test_CFLAGS" = set; then
14851   CFLAGS=$ac_save_CFLAGS
14852 elif test $ac_cv_prog_cc_g = yes; then
14853   if test "$GCC" = yes; then
14854     CFLAGS="-g -O2"
14855   else
14856     CFLAGS="-g"
14857   fi
14858 else
14859   if test "$GCC" = yes; then
14860     CFLAGS="-O2"
14861   else
14862     CFLAGS=
14863   fi
14864 fi
14865 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14866 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14867 if test "${ac_cv_prog_cc_c89+set}" = set; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   ac_cv_prog_cc_c89=no
14871 ac_save_CC=$CC
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878 #include <stdarg.h>
14879 #include <stdio.h>
14880 #include <sys/types.h>
14881 #include <sys/stat.h>
14882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14883 struct buf { int x; };
14884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14885 static char *e (p, i)
14886      char **p;
14887      int i;
14888 {
14889   return p[i];
14890 }
14891 static char *f (char * (*g) (char **, int), char **p, ...)
14892 {
14893   char *s;
14894   va_list v;
14895   va_start (v,p);
14896   s = g (p, va_arg (v,int));
14897   va_end (v);
14898   return s;
14899 }
14900
14901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14902    function prototypes and stuff, but not '\xHH' hex character constants.
14903    These don't provoke an error unfortunately, instead are silently treated
14904    as 'x'.  The following induces an error, until -std is added to get
14905    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14906    array size at least.  It's necessary to write '\x00'==0 to get something
14907    that's true only with -std.  */
14908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14909
14910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14911    inside strings and character constants.  */
14912 #define FOO(x) 'x'
14913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14914
14915 int test (int i, double x);
14916 struct s1 {int (*f) (int a);};
14917 struct s2 {int (*f) (double a);};
14918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14919 int argc;
14920 char **argv;
14921 int
14922 main ()
14923 {
14924 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14930         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14931 do
14932   CC="$ac_save_CC $ac_arg"
14933   rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937   *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940   (eval "$ac_compile") 2>conftest.er1
14941   ac_status=$?
14942   grep -v '^ *+' conftest.er1 >conftest.err
14943   rm -f conftest.er1
14944   cat conftest.err >&5
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } && {
14947          test -z "$ac_c_werror_flag" ||
14948          test ! -s conftest.err
14949        } && test -s conftest.$ac_objext; then
14950   ac_cv_prog_cc_c89=$ac_arg
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955
14956 fi
14957
14958 rm -f core conftest.err conftest.$ac_objext
14959   test "x$ac_cv_prog_cc_c89" != "xno" && break
14960 done
14961 rm -f conftest.$ac_ext
14962 CC=$ac_save_CC
14963
14964 fi
14965 # AC_CACHE_VAL
14966 case "x$ac_cv_prog_cc_c89" in
14967   x)
14968     { echo "$as_me:$LINENO: result: none needed" >&5
14969 echo "${ECHO_T}none needed" >&6; } ;;
14970   xno)
14971     { echo "$as_me:$LINENO: result: unsupported" >&5
14972 echo "${ECHO_T}unsupported" >&6; } ;;
14973   *)
14974     CC="$CC $ac_cv_prog_cc_c89"
14975     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14976 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14977 esac
14978
14979
14980 ac_ext=c
14981 ac_cpp='$CPP $CPPFLAGS'
14982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985
14986
14987
14988
14989     ac_ext=c
14990 ac_cpp='$CPP $CPPFLAGS'
14991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994
14995     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14996 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14997 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14998   echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000   cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006
15007 int
15008 main ()
15009 {
15010
15011              #ifndef __INTEL_COMPILER
15012                 choke me
15013              #endif
15014
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (ac_try="$ac_compile"
15021 case "(($ac_try" in
15022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023   *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026   (eval "$ac_compile") 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } && {
15033          test -z "$ac_c_werror_flag" ||
15034          test ! -s conftest.err
15035        } && test -s conftest.$ac_objext; then
15036   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041         bakefile_cv_c_compiler___INTEL_COMPILER=no
15042
15043 fi
15044
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046
15047
15048 fi
15049 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15050 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15051     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15052         :; INTELCC=yes
15053     else
15054         :;
15055     fi
15056     ac_ext=c
15057 ac_cpp='$CPP $CPPFLAGS'
15058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15061
15062
15063
15064
15065         if test "$INTELCC" = "yes"; then
15066
15067
15068     ac_ext=c
15069 ac_cpp='$CPP $CPPFLAGS'
15070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073
15074     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15075 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15076 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085
15086 int
15087 main ()
15088 {
15089
15090              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15091                 choke me
15092              #endif
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105   (eval "$ac_compile") 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } && {
15112          test -z "$ac_c_werror_flag" ||
15113          test ! -s conftest.err
15114        } && test -s conftest.$ac_objext; then
15115   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15121
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125
15126
15127 fi
15128 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15129 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15130     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15131         :; INTELCC8=yes
15132     else
15133         :;
15134     fi
15135     ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140
15141
15142
15143
15144
15145     ac_ext=c
15146 ac_cpp='$CPP $CPPFLAGS'
15147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15150
15151     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15152 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15153 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162
15163 int
15164 main ()
15165 {
15166
15167              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15168                 choke me
15169              #endif
15170
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (ac_try="$ac_compile"
15177 case "(($ac_try" in
15178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179   *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182   (eval "$ac_compile") 2>conftest.er1
15183   ac_status=$?
15184   grep -v '^ *+' conftest.er1 >conftest.err
15185   rm -f conftest.er1
15186   cat conftest.err >&5
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } && {
15189          test -z "$ac_c_werror_flag" ||
15190          test ! -s conftest.err
15191        } && test -s conftest.$ac_objext; then
15192   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15198
15199 fi
15200
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202
15203
15204 fi
15205 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15206 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15207     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15208         :; INTELCC10=yes
15209     else
15210         :;
15211     fi
15212     ac_ext=c
15213 ac_cpp='$CPP $CPPFLAGS'
15214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15217
15218
15219
15220     fi
15221
15222         if test "x$GCC" != "xyes"; then
15223         if test "xCC" = "xC"; then
15224             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15225 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15226 if test "${bakefile_cv_c_exto+set}" = set; then
15227   echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229   cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235
15236 int
15237 main ()
15238 {
15239
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest.$ac_ext.o
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246   (eval $ac_compile) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; then
15250   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15251     case $ac_file in
15252         conftest.$ac_ext.o)
15253             bakefile_cv_c_exto="-ext o"
15254             ;;
15255         *)
15256             ;;
15257     esac
15258 done
15259 else
15260   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15261 See \`config.log' for more details." >&5
15262 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15263 See \`config.log' for more details." >&2;}
15264    { (exit 1); exit 1; }; }
15265
15266 fi
15267
15268 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15269
15270 fi
15271 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15272 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15273 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15274     if test "c" = "c"; then
15275         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15276     fi
15277     if test "c" = "cxx"; then
15278         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15279     fi
15280 fi
15281
15282             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15283                 unset ac_cv_prog_cc_g
15284                 ac_test_CFLAGS=${CFLAGS+set}
15285 ac_save_CFLAGS=$CFLAGS
15286 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15288 if test "${ac_cv_prog_cc_g+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_save_c_werror_flag=$ac_c_werror_flag
15292    ac_c_werror_flag=yes
15293    ac_cv_prog_cc_g=no
15294    CFLAGS="-g"
15295    cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301
15302 int
15303 main ()
15304 {
15305
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_compile") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && {
15324          test -z "$ac_c_werror_flag" ||
15325          test ! -s conftest.err
15326        } && test -s conftest.$ac_objext; then
15327   ac_cv_prog_cc_g=yes
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332         CFLAGS=""
15333       cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339
15340 int
15341 main ()
15342 {
15343
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_c_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest.$ac_objext; then
15365   :
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370         ac_c_werror_flag=$ac_save_c_werror_flag
15371          CFLAGS="-g"
15372          cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378
15379 int
15380 main ()
15381 {
15382
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_compile") 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } && {
15401          test -z "$ac_c_werror_flag" ||
15402          test ! -s conftest.err
15403        } && test -s conftest.$ac_objext; then
15404   ac_cv_prog_cc_g=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409
15410 fi
15411
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 fi
15417
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419    ac_c_werror_flag=$ac_save_c_werror_flag
15420 fi
15421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15423 if test "$ac_test_CFLAGS" = set; then
15424   CFLAGS=$ac_save_CFLAGS
15425 elif test $ac_cv_prog_cc_g = yes; then
15426   if test "$GCC" = yes; then
15427     CFLAGS="-g -O2"
15428   else
15429     CFLAGS="-g"
15430   fi
15431 else
15432   if test "$GCC" = yes; then
15433     CFLAGS="-O2"
15434   else
15435     CFLAGS=
15436   fi
15437 fi
15438             fi
15439         fi
15440
15441                         case `uname -s` in
15442             AIX*)
15443
15444
15445     ac_ext=c
15446 ac_cpp='$CPP $CPPFLAGS'
15447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15450
15451     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15452 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15453 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462
15463 int
15464 main ()
15465 {
15466
15467              #ifndef __xlC__
15468                 choke me
15469              #endif
15470
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (ac_try="$ac_compile"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_compile") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } && {
15489          test -z "$ac_c_werror_flag" ||
15490          test ! -s conftest.err
15491        } && test -s conftest.$ac_objext; then
15492   bakefile_cv_c_compiler___xlC__=yes
15493 else
15494   echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497         bakefile_cv_c_compiler___xlC__=no
15498
15499 fi
15500
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502
15503
15504 fi
15505 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15506 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15507     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15508         :; XLCC=yes
15509     else
15510         :;
15511     fi
15512     ac_ext=c
15513 ac_cpp='$CPP $CPPFLAGS'
15514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15517
15518
15519
15520                 ;;
15521
15522             Darwin)
15523
15524
15525     ac_ext=c
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15530
15531     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15532 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15533 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543 int
15544 main ()
15545 {
15546
15547              #ifndef __MWERKS__
15548                 choke me
15549              #endif
15550
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_compile") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } && {
15569          test -z "$ac_c_werror_flag" ||
15570          test ! -s conftest.err
15571        } && test -s conftest.$ac_objext; then
15572   bakefile_cv_c_compiler___MWERKS__=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577         bakefile_cv_c_compiler___MWERKS__=no
15578
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582
15583
15584 fi
15585 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15586 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15587     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15588         :; MWCC=yes
15589     else
15590         :;
15591     fi
15592     ac_ext=c
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15597
15598
15599
15600                 if test "$MWCC" != "yes"; then
15601
15602
15603     ac_ext=c
15604 ac_cpp='$CPP $CPPFLAGS'
15605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15608
15609     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15610 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15611 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620
15621 int
15622 main ()
15623 {
15624
15625              #ifndef __xlC__
15626                 choke me
15627              #endif
15628
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext
15634 if { (ac_try="$ac_compile"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_compile") 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } && {
15647          test -z "$ac_c_werror_flag" ||
15648          test ! -s conftest.err
15649        } && test -s conftest.$ac_objext; then
15650   bakefile_cv_c_compiler___xlC__=yes
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655         bakefile_cv_c_compiler___xlC__=no
15656
15657 fi
15658
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660
15661
15662 fi
15663 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15664 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15665     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15666         :; XLCC=yes
15667     else
15668         :;
15669     fi
15670     ac_ext=c
15671 ac_cpp='$CPP $CPPFLAGS'
15672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15675
15676
15677
15678                 fi
15679                 ;;
15680
15681             IRIX*)
15682
15683
15684     ac_ext=c
15685 ac_cpp='$CPP $CPPFLAGS'
15686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15689
15690     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15691 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15692 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15693   echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695   cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701
15702 int
15703 main ()
15704 {
15705
15706              #ifndef _SGI_COMPILER_VERSION
15707                 choke me
15708              #endif
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_compile") 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } && {
15728          test -z "$ac_c_werror_flag" ||
15729          test ! -s conftest.err
15730        } && test -s conftest.$ac_objext; then
15731   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15737
15738 fi
15739
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741
15742
15743 fi
15744 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15745 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15746     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15747         :; SGICC=yes
15748     else
15749         :;
15750     fi
15751     ac_ext=c
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756
15757
15758
15759                 ;;
15760
15761             Linux*)
15762                                                 if test "$INTELCC" != "yes"; then
15763
15764
15765     ac_ext=c
15766 ac_cpp='$CPP $CPPFLAGS'
15767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15770
15771     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15772 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15773 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782
15783 int
15784 main ()
15785 {
15786
15787              #ifndef __SUNPRO_C
15788                 choke me
15789              #endif
15790
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext
15796 if { (ac_try="$ac_compile"
15797 case "(($ac_try" in
15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799   *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802   (eval "$ac_compile") 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } && {
15809          test -z "$ac_c_werror_flag" ||
15810          test ! -s conftest.err
15811        } && test -s conftest.$ac_objext; then
15812   bakefile_cv_c_compiler___SUNPRO_C=yes
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817         bakefile_cv_c_compiler___SUNPRO_C=no
15818
15819 fi
15820
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822
15823
15824 fi
15825 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15826 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15827     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15828         :; SUNCC=yes
15829     else
15830         :;
15831     fi
15832     ac_ext=c
15833 ac_cpp='$CPP $CPPFLAGS'
15834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15837
15838
15839
15840                 fi
15841                 ;;
15842
15843             HP-UX*)
15844
15845
15846     ac_ext=c
15847 ac_cpp='$CPP $CPPFLAGS'
15848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15851
15852     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15853 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15854 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15855   echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857   cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h.  */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h.  */
15863
15864 int
15865 main ()
15866 {
15867
15868              #ifndef __HP_cc
15869                 choke me
15870              #endif
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (ac_try="$ac_compile"
15878 case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883   (eval "$ac_compile") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest.$ac_objext; then
15893   bakefile_cv_c_compiler___HP_cc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         bakefile_cv_c_compiler___HP_cc=no
15899
15900 fi
15901
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903
15904
15905 fi
15906 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15907 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15908     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15909         :; HPCC=yes
15910     else
15911         :;
15912     fi
15913     ac_ext=c
15914 ac_cpp='$CPP $CPPFLAGS'
15915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15918
15919
15920
15921                 ;;
15922
15923             OSF1)
15924
15925
15926     ac_ext=c
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15931
15932     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15933 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15934 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943
15944 int
15945 main ()
15946 {
15947
15948              #ifndef __DECC
15949                 choke me
15950              #endif
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960   *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963   (eval "$ac_compile") 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } && {
15970          test -z "$ac_c_werror_flag" ||
15971          test ! -s conftest.err
15972        } && test -s conftest.$ac_objext; then
15973   bakefile_cv_c_compiler___DECC=yes
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978         bakefile_cv_c_compiler___DECC=no
15979
15980 fi
15981
15982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983
15984
15985 fi
15986 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15987 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15988     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15989         :; COMPAQCC=yes
15990     else
15991         :;
15992     fi
15993     ac_ext=c
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15998
15999
16000
16001                 ;;
16002
16003             SunOS)
16004
16005
16006     ac_ext=c
16007 ac_cpp='$CPP $CPPFLAGS'
16008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16011
16012     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16013 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16014 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017   cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023
16024 int
16025 main ()
16026 {
16027
16028              #ifndef __SUNPRO_C
16029                 choke me
16030              #endif
16031
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_compile") 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } && {
16050          test -z "$ac_c_werror_flag" ||
16051          test ! -s conftest.err
16052        } && test -s conftest.$ac_objext; then
16053   bakefile_cv_c_compiler___SUNPRO_C=yes
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058         bakefile_cv_c_compiler___SUNPRO_C=no
16059
16060 fi
16061
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063
16064
16065 fi
16066 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16067 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16068     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16069         :; SUNCC=yes
16070     else
16071         :;
16072     fi
16073     ac_ext=c
16074 ac_cpp='$CPP $CPPFLAGS'
16075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16078
16079
16080
16081                 ;;
16082         esac
16083     fi
16084
16085
16086
16087 ac_ext=c
16088 ac_cpp='$CPP $CPPFLAGS'
16089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16092 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16093 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16094 # On Suns, sometimes $CPP names a directory.
16095 if test -n "$CPP" && test -d "$CPP"; then
16096   CPP=
16097 fi
16098 if test -z "$CPP"; then
16099   if test "${ac_cv_prog_CPP+set}" = set; then
16100   echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102       # Double quotes because CPP needs to be expanded
16103     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16104     do
16105       ac_preproc_ok=false
16106 for ac_c_preproc_warn_flag in '' yes
16107 do
16108   # Use a header file that comes with gcc, so configuring glibc
16109   # with a fresh cross-compiler works.
16110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16111   # <limits.h> exists even on freestanding compilers.
16112   # On the NeXT, cc -E runs the code through the compiler's parser,
16113   # not just through cpp. "Syntax error" is here to catch this case.
16114   cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 #ifdef __STDC__
16121 # include <limits.h>
16122 #else
16123 # include <assert.h>
16124 #endif
16125                      Syntax error
16126 _ACEOF
16127 if { (ac_try="$ac_cpp conftest.$ac_ext"
16128 case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } >/dev/null && {
16140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16141          test ! -s conftest.err
16142        }; then
16143   :
16144 else
16145   echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148   # Broken: fails on valid input.
16149 continue
16150 fi
16151
16152 rm -f conftest.err conftest.$ac_ext
16153
16154   # OK, works on sane cases.  Now check whether nonexistent headers
16155   # can be detected and how.
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <ac_nonexistent.h>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null && {
16177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178          test ! -s conftest.err
16179        }; then
16180   # Broken: success on invalid input.
16181 continue
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186   # Passes both tests.
16187 ac_preproc_ok=:
16188 break
16189 fi
16190
16191 rm -f conftest.err conftest.$ac_ext
16192
16193 done
16194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16195 rm -f conftest.err conftest.$ac_ext
16196 if $ac_preproc_ok; then
16197   break
16198 fi
16199
16200     done
16201     ac_cv_prog_CPP=$CPP
16202
16203 fi
16204   CPP=$ac_cv_prog_CPP
16205 else
16206   ac_cv_prog_CPP=$CPP
16207 fi
16208 { echo "$as_me:$LINENO: result: $CPP" >&5
16209 echo "${ECHO_T}$CPP" >&6; }
16210 ac_preproc_ok=false
16211 for ac_c_preproc_warn_flag in '' yes
16212 do
16213   # Use a header file that comes with gcc, so configuring glibc
16214   # with a fresh cross-compiler works.
16215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16216   # <limits.h> exists even on freestanding compilers.
16217   # On the NeXT, cc -E runs the code through the compiler's parser,
16218   # not just through cpp. "Syntax error" is here to catch this case.
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 #ifdef __STDC__
16226 # include <limits.h>
16227 #else
16228 # include <assert.h>
16229 #endif
16230                      Syntax error
16231 _ACEOF
16232 if { (ac_try="$ac_cpp conftest.$ac_ext"
16233 case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239   ac_status=$?
16240   grep -v '^ *+' conftest.er1 >conftest.err
16241   rm -f conftest.er1
16242   cat conftest.err >&5
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } >/dev/null && {
16245          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16246          test ! -s conftest.err
16247        }; then
16248   :
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253   # Broken: fails on valid input.
16254 continue
16255 fi
16256
16257 rm -f conftest.err conftest.$ac_ext
16258
16259   # OK, works on sane cases.  Now check whether nonexistent headers
16260   # can be detected and how.
16261   cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h.  */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h.  */
16267 #include <ac_nonexistent.h>
16268 _ACEOF
16269 if { (ac_try="$ac_cpp conftest.$ac_ext"
16270 case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } >/dev/null && {
16282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16283          test ! -s conftest.err
16284        }; then
16285   # Broken: success on invalid input.
16286 continue
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291   # Passes both tests.
16292 ac_preproc_ok=:
16293 break
16294 fi
16295
16296 rm -f conftest.err conftest.$ac_ext
16297
16298 done
16299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16300 rm -f conftest.err conftest.$ac_ext
16301 if $ac_preproc_ok; then
16302   :
16303 else
16304   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16305 See \`config.log' for more details." >&5
16306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16307 See \`config.log' for more details." >&2;}
16308    { (exit 1); exit 1; }; }
16309 fi
16310
16311 ac_ext=c
16312 ac_cpp='$CPP $CPPFLAGS'
16313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16316
16317
16318 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16319 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16320 if test "${ac_cv_path_GREP+set}" = set; then
16321   echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323   # Extract the first word of "grep ggrep" to use in msg output
16324 if test -z "$GREP"; then
16325 set dummy grep ggrep; ac_prog_name=$2
16326 if test "${ac_cv_path_GREP+set}" = set; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329   ac_path_GREP_found=false
16330 # Loop through the user's path and test for each of PROGNAME-LIST
16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16333 do
16334   IFS=$as_save_IFS
16335   test -z "$as_dir" && as_dir=.
16336   for ac_prog in grep ggrep; do
16337   for ac_exec_ext in '' $ac_executable_extensions; do
16338     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16339     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16340     # Check for GNU ac_path_GREP and select it if it is found.
16341   # Check for GNU $ac_path_GREP
16342 case `"$ac_path_GREP" --version 2>&1` in
16343 *GNU*)
16344   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16345 *)
16346   ac_count=0
16347   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16348   while :
16349   do
16350     cat "conftest.in" "conftest.in" >"conftest.tmp"
16351     mv "conftest.tmp" "conftest.in"
16352     cp "conftest.in" "conftest.nl"
16353     echo 'GREP' >> "conftest.nl"
16354     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16355     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16356     ac_count=`expr $ac_count + 1`
16357     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16358       # Best one so far, save it but keep looking for a better one
16359       ac_cv_path_GREP="$ac_path_GREP"
16360       ac_path_GREP_max=$ac_count
16361     fi
16362     # 10*(2^10) chars as input seems more than enough
16363     test $ac_count -gt 10 && break
16364   done
16365   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16366 esac
16367
16368
16369     $ac_path_GREP_found && break 3
16370   done
16371 done
16372
16373 done
16374 IFS=$as_save_IFS
16375
16376
16377 fi
16378
16379 GREP="$ac_cv_path_GREP"
16380 if test -z "$GREP"; then
16381   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16382 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16383    { (exit 1); exit 1; }; }
16384 fi
16385
16386 else
16387   ac_cv_path_GREP=$GREP
16388 fi
16389
16390
16391 fi
16392 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16393 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16394  GREP="$ac_cv_path_GREP"
16395
16396
16397 { echo "$as_me:$LINENO: checking for egrep" >&5
16398 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16399 if test "${ac_cv_path_EGREP+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16403    then ac_cv_path_EGREP="$GREP -E"
16404    else
16405      # Extract the first word of "egrep" to use in msg output
16406 if test -z "$EGREP"; then
16407 set dummy egrep; ac_prog_name=$2
16408 if test "${ac_cv_path_EGREP+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   ac_path_EGREP_found=false
16412 # Loop through the user's path and test for each of PROGNAME-LIST
16413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16415 do
16416   IFS=$as_save_IFS
16417   test -z "$as_dir" && as_dir=.
16418   for ac_prog in egrep; do
16419   for ac_exec_ext in '' $ac_executable_extensions; do
16420     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16421     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16422     # Check for GNU ac_path_EGREP and select it if it is found.
16423   # Check for GNU $ac_path_EGREP
16424 case `"$ac_path_EGREP" --version 2>&1` in
16425 *GNU*)
16426   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16427 *)
16428   ac_count=0
16429   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16430   while :
16431   do
16432     cat "conftest.in" "conftest.in" >"conftest.tmp"
16433     mv "conftest.tmp" "conftest.in"
16434     cp "conftest.in" "conftest.nl"
16435     echo 'EGREP' >> "conftest.nl"
16436     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16438     ac_count=`expr $ac_count + 1`
16439     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16440       # Best one so far, save it but keep looking for a better one
16441       ac_cv_path_EGREP="$ac_path_EGREP"
16442       ac_path_EGREP_max=$ac_count
16443     fi
16444     # 10*(2^10) chars as input seems more than enough
16445     test $ac_count -gt 10 && break
16446   done
16447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16448 esac
16449
16450
16451     $ac_path_EGREP_found && break 3
16452   done
16453 done
16454
16455 done
16456 IFS=$as_save_IFS
16457
16458
16459 fi
16460
16461 EGREP="$ac_cv_path_EGREP"
16462 if test -z "$EGREP"; then
16463   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16464 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16465    { (exit 1); exit 1; }; }
16466 fi
16467
16468 else
16469   ac_cv_path_EGREP=$EGREP
16470 fi
16471
16472
16473    fi
16474 fi
16475 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16476 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16477  EGREP="$ac_cv_path_EGREP"
16478
16479
16480 if test $ac_cv_c_compiler_gnu = yes; then
16481     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16482 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16483 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16484   echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486     ac_pattern="Autoconf.*'x'"
16487   cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493 #include <sgtty.h>
16494 Autoconf TIOCGETP
16495 _ACEOF
16496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16497   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16498   ac_cv_prog_gcc_traditional=yes
16499 else
16500   ac_cv_prog_gcc_traditional=no
16501 fi
16502 rm -f conftest*
16503
16504
16505   if test $ac_cv_prog_gcc_traditional = no; then
16506     cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512 #include <termio.h>
16513 Autoconf TCGETA
16514 _ACEOF
16515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16516   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16517   ac_cv_prog_gcc_traditional=yes
16518 fi
16519 rm -f conftest*
16520
16521   fi
16522 fi
16523 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16524 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16525   if test $ac_cv_prog_gcc_traditional = yes; then
16526     CC="$CC -traditional"
16527   fi
16528 fi
16529
16530
16531 CXXFLAGS=${CXXFLAGS:=}
16532
16533
16534
16535     ac_ext=cpp
16536 ac_cpp='$CXXCPP $CPPFLAGS'
16537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16540 if test -z "$CXX"; then
16541   if test -n "$CCC"; then
16542     CXX=$CCC
16543   else
16544     if test -n "$ac_tool_prefix"; then
16545   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16546   do
16547     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16551 if test "${ac_cv_prog_CXX+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   if test -n "$CXX"; then
16555   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16556 else
16557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558 for as_dir in $PATH
16559 do
16560   IFS=$as_save_IFS
16561   test -z "$as_dir" && as_dir=.
16562   for ac_exec_ext in '' $ac_executable_extensions; do
16563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16564     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16566     break 2
16567   fi
16568 done
16569 done
16570 IFS=$as_save_IFS
16571
16572 fi
16573 fi
16574 CXX=$ac_cv_prog_CXX
16575 if test -n "$CXX"; then
16576   { echo "$as_me:$LINENO: result: $CXX" >&5
16577 echo "${ECHO_T}$CXX" >&6; }
16578 else
16579   { echo "$as_me:$LINENO: result: no" >&5
16580 echo "${ECHO_T}no" >&6; }
16581 fi
16582
16583
16584     test -n "$CXX" && break
16585   done
16586 fi
16587 if test -z "$CXX"; then
16588   ac_ct_CXX=$CXX
16589   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16590 do
16591   # Extract the first word of "$ac_prog", so it can be a program name with args.
16592 set dummy $ac_prog; ac_word=$2
16593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16596   echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598   if test -n "$ac_ct_CXX"; then
16599   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16600 else
16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602 for as_dir in $PATH
16603 do
16604   IFS=$as_save_IFS
16605   test -z "$as_dir" && as_dir=.
16606   for ac_exec_ext in '' $ac_executable_extensions; do
16607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16608     ac_cv_prog_ac_ct_CXX="$ac_prog"
16609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16610     break 2
16611   fi
16612 done
16613 done
16614 IFS=$as_save_IFS
16615
16616 fi
16617 fi
16618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16619 if test -n "$ac_ct_CXX"; then
16620   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16621 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16622 else
16623   { echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6; }
16625 fi
16626
16627
16628   test -n "$ac_ct_CXX" && break
16629 done
16630
16631   if test "x$ac_ct_CXX" = x; then
16632     CXX="g++"
16633   else
16634     case $cross_compiling:$ac_tool_warned in
16635 yes:)
16636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16637 whose name does not start with the host triplet.  If you think this
16638 configuration is useful to you, please write to autoconf@gnu.org." >&5
16639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16640 whose name does not start with the host triplet.  If you think this
16641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16642 ac_tool_warned=yes ;;
16643 esac
16644     CXX=$ac_ct_CXX
16645   fi
16646 fi
16647
16648   fi
16649 fi
16650 # Provide some information about the compiler.
16651 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16652 ac_compiler=`set X $ac_compile; echo $2`
16653 { (ac_try="$ac_compiler --version >&5"
16654 case "(($ac_try" in
16655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656   *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659   (eval "$ac_compiler --version >&5") 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }
16663 { (ac_try="$ac_compiler -v >&5"
16664 case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_compiler -v >&5") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }
16673 { (ac_try="$ac_compiler -V >&5"
16674 case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_compiler -V >&5") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }
16683
16684 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16685 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16686 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16687   echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689   cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h.  */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h.  */
16695
16696 int
16697 main ()
16698 {
16699 #ifndef __GNUC__
16700        choke me
16701 #endif
16702
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_cxx_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest.$ac_objext; then
16724   ac_compiler_gnu=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_compiler_gnu=no
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16734
16735 fi
16736 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16738 GXX=`test $ac_compiler_gnu = yes && echo yes`
16739 ac_test_CXXFLAGS=${CXXFLAGS+set}
16740 ac_save_CXXFLAGS=$CXXFLAGS
16741 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16742 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16743 if test "${ac_cv_prog_cxx_g+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16747    ac_cxx_werror_flag=yes
16748    ac_cv_prog_cxx_g=no
16749    CXXFLAGS="-g"
16750    cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756
16757 int
16758 main ()
16759 {
16760
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 rm -f conftest.$ac_objext
16766 if { (ac_try="$ac_compile"
16767 case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_compile") 2>conftest.er1
16773   ac_status=$?
16774   grep -v '^ *+' conftest.er1 >conftest.err
16775   rm -f conftest.er1
16776   cat conftest.err >&5
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); } && {
16779          test -z "$ac_cxx_werror_flag" ||
16780          test ! -s conftest.err
16781        } && test -s conftest.$ac_objext; then
16782   ac_cv_prog_cxx_g=yes
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787         CXXFLAGS=""
16788       cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794
16795 int
16796 main ()
16797 {
16798
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_compile") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } && {
16817          test -z "$ac_cxx_werror_flag" ||
16818          test ! -s conftest.err
16819        } && test -s conftest.$ac_objext; then
16820   :
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16826          CXXFLAGS="-g"
16827          cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833
16834 int
16835 main ()
16836 {
16837
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_compile") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } && {
16856          test -z "$ac_cxx_werror_flag" ||
16857          test ! -s conftest.err
16858        } && test -s conftest.$ac_objext; then
16859   ac_cv_prog_cxx_g=yes
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864
16865 fi
16866
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16875 fi
16876 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16877 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16878 if test "$ac_test_CXXFLAGS" = set; then
16879   CXXFLAGS=$ac_save_CXXFLAGS
16880 elif test $ac_cv_prog_cxx_g = yes; then
16881   if test "$GXX" = yes; then
16882     CXXFLAGS="-g -O2"
16883   else
16884     CXXFLAGS="-g"
16885   fi
16886 else
16887   if test "$GXX" = yes; then
16888     CXXFLAGS="-O2"
16889   else
16890     CXXFLAGS=
16891   fi
16892 fi
16893 ac_ext=c
16894 ac_cpp='$CPP $CPPFLAGS'
16895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16898
16899
16900
16901
16902     ac_ext=cpp
16903 ac_cpp='$CXXCPP $CPPFLAGS'
16904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16907
16908     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16909 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16910 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919
16920 int
16921 main ()
16922 {
16923
16924              #ifndef __INTEL_COMPILER
16925                 choke me
16926              #endif
16927
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_compile") 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } && {
16946          test -z "$ac_cxx_werror_flag" ||
16947          test ! -s conftest.err
16948        } && test -s conftest.$ac_objext; then
16949   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16955
16956 fi
16957
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959
16960
16961 fi
16962 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16963 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16964     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16965         :; INTELCXX=yes
16966     else
16967         :;
16968     fi
16969     ac_ext=c
16970 ac_cpp='$CPP $CPPFLAGS'
16971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16974
16975
16976
16977
16978         if test "$INTELCXX" = "yes"; then
16979
16980
16981     ac_ext=cpp
16982 ac_cpp='$CXXCPP $CPPFLAGS'
16983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16986
16987     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16988 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16989 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992   cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998
16999 int
17000 main ()
17001 {
17002
17003              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17004                 choke me
17005              #endif
17006
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (ac_try="$ac_compile"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_compile") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } && {
17025          test -z "$ac_cxx_werror_flag" ||
17026          test ! -s conftest.err
17027        } && test -s conftest.$ac_objext; then
17028   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17029 else
17030   echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17034
17035 fi
17036
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038
17039
17040 fi
17041 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17042 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17043     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17044         :; INTELCXX8=yes
17045     else
17046         :;
17047     fi
17048     ac_ext=c
17049 ac_cpp='$CPP $CPPFLAGS'
17050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17053
17054
17055
17056
17057
17058     ac_ext=cpp
17059 ac_cpp='$CXXCPP $CPPFLAGS'
17060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17063
17064     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17065 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17066 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075
17076 int
17077 main ()
17078 {
17079
17080              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17081                 choke me
17082              #endif
17083
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext
17089 if { (ac_try="$ac_compile"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_compile") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } && {
17102          test -z "$ac_cxx_werror_flag" ||
17103          test ! -s conftest.err
17104        } && test -s conftest.$ac_objext; then
17105   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17111
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115
17116
17117 fi
17118 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17119 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17120     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17121         :; INTELCXX10=yes
17122     else
17123         :;
17124     fi
17125     ac_ext=c
17126 ac_cpp='$CPP $CPPFLAGS'
17127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17130
17131
17132
17133     fi
17134
17135         if test "x$GCXX" != "xyes"; then
17136         if test "xCXX" = "xC"; then
17137             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17138 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17139 if test "${bakefile_cv_c_exto+set}" = set; then
17140   echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142   cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148
17149 int
17150 main ()
17151 {
17152
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest.$ac_ext.o
17158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159   (eval $ac_compile) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; then
17163   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17164     case $ac_file in
17165         conftest.$ac_ext.o)
17166             bakefile_cv_c_exto="-ext o"
17167             ;;
17168         *)
17169             ;;
17170     esac
17171 done
17172 else
17173   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17174 See \`config.log' for more details." >&5
17175 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17176 See \`config.log' for more details." >&2;}
17177    { (exit 1); exit 1; }; }
17178
17179 fi
17180
17181 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17182
17183 fi
17184 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17185 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17186 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17187     if test "c" = "c"; then
17188         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17189     fi
17190     if test "c" = "cxx"; then
17191         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17192     fi
17193 fi
17194
17195             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17196                 unset ac_cv_prog_cc_g
17197                 ac_test_CFLAGS=${CFLAGS+set}
17198 ac_save_CFLAGS=$CFLAGS
17199 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17201 if test "${ac_cv_prog_cc_g+set}" = set; then
17202   echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204   ac_save_c_werror_flag=$ac_c_werror_flag
17205    ac_c_werror_flag=yes
17206    ac_cv_prog_cc_g=no
17207    CFLAGS="-g"
17208    cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215 int
17216 main ()
17217 {
17218
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext
17224 if { (ac_try="$ac_compile"
17225 case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_compile") 2>conftest.er1
17231   ac_status=$?
17232   grep -v '^ *+' conftest.er1 >conftest.err
17233   rm -f conftest.er1
17234   cat conftest.err >&5
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } && {
17237          test -z "$ac_c_werror_flag" ||
17238          test ! -s conftest.err
17239        } && test -s conftest.$ac_objext; then
17240   ac_cv_prog_cc_g=yes
17241 else
17242   echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245         CFLAGS=""
17246       cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252
17253 int
17254 main ()
17255 {
17256
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   :
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283         ac_c_werror_flag=$ac_save_c_werror_flag
17284          CFLAGS="-g"
17285          cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291
17292 int
17293 main ()
17294 {
17295
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext
17301 if { (ac_try="$ac_compile"
17302 case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_compile") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } && {
17314          test -z "$ac_c_werror_flag" ||
17315          test ! -s conftest.err
17316        } && test -s conftest.$ac_objext; then
17317   ac_cv_prog_cc_g=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 fi
17330
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332    ac_c_werror_flag=$ac_save_c_werror_flag
17333 fi
17334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17336 if test "$ac_test_CFLAGS" = set; then
17337   CFLAGS=$ac_save_CFLAGS
17338 elif test $ac_cv_prog_cc_g = yes; then
17339   if test "$GCC" = yes; then
17340     CFLAGS="-g -O2"
17341   else
17342     CFLAGS="-g"
17343   fi
17344 else
17345   if test "$GCC" = yes; then
17346     CFLAGS="-O2"
17347   else
17348     CFLAGS=
17349   fi
17350 fi
17351             fi
17352         fi
17353
17354                         case `uname -s` in
17355             AIX*)
17356
17357
17358     ac_ext=cpp
17359 ac_cpp='$CXXCPP $CPPFLAGS'
17360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17363
17364     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17365 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17366 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369   cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375
17376 int
17377 main ()
17378 {
17379
17380              #ifndef __xlC__
17381                 choke me
17382              #endif
17383
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (ac_try="$ac_compile"
17390 case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_compile") 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } && {
17402          test -z "$ac_cxx_werror_flag" ||
17403          test ! -s conftest.err
17404        } && test -s conftest.$ac_objext; then
17405   bakefile_cv_cxx_compiler___xlC__=yes
17406 else
17407   echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410         bakefile_cv_cxx_compiler___xlC__=no
17411
17412 fi
17413
17414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17415
17416
17417 fi
17418 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17419 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17420     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17421         :; XLCXX=yes
17422     else
17423         :;
17424     fi
17425     ac_ext=c
17426 ac_cpp='$CPP $CPPFLAGS'
17427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17430
17431
17432
17433                 ;;
17434
17435             Darwin)
17436
17437
17438     ac_ext=cpp
17439 ac_cpp='$CXXCPP $CPPFLAGS'
17440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17443
17444     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17445 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17446 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449   cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h.  */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h.  */
17455
17456 int
17457 main ()
17458 {
17459
17460              #ifndef __MWERKS__
17461                 choke me
17462              #endif
17463
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext
17469 if { (ac_try="$ac_compile"
17470 case "(($ac_try" in
17471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472   *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475   (eval "$ac_compile") 2>conftest.er1
17476   ac_status=$?
17477   grep -v '^ *+' conftest.er1 >conftest.err
17478   rm -f conftest.er1
17479   cat conftest.err >&5
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } && {
17482          test -z "$ac_cxx_werror_flag" ||
17483          test ! -s conftest.err
17484        } && test -s conftest.$ac_objext; then
17485   bakefile_cv_cxx_compiler___MWERKS__=yes
17486 else
17487   echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490         bakefile_cv_cxx_compiler___MWERKS__=no
17491
17492 fi
17493
17494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495
17496
17497 fi
17498 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17499 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17500     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17501         :; MWCXX=yes
17502     else
17503         :;
17504     fi
17505     ac_ext=c
17506 ac_cpp='$CPP $CPPFLAGS'
17507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
17511
17512
17513                 if test "$MWCXX" != "yes"; then
17514
17515
17516     ac_ext=cpp
17517 ac_cpp='$CXXCPP $CPPFLAGS'
17518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17521
17522     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17523 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17524 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17525   echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527   cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h.  */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h.  */
17533
17534 int
17535 main ()
17536 {
17537
17538              #ifndef __xlC__
17539                 choke me
17540              #endif
17541
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (ac_try="$ac_compile"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_compile") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } && {
17560          test -z "$ac_cxx_werror_flag" ||
17561          test ! -s conftest.err
17562        } && test -s conftest.$ac_objext; then
17563   bakefile_cv_cxx_compiler___xlC__=yes
17564 else
17565   echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568         bakefile_cv_cxx_compiler___xlC__=no
17569
17570 fi
17571
17572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573
17574
17575 fi
17576 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17577 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17578     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17579         :; XLCXX=yes
17580     else
17581         :;
17582     fi
17583     ac_ext=c
17584 ac_cpp='$CPP $CPPFLAGS'
17585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588
17589
17590
17591                 fi
17592                 ;;
17593
17594             IRIX*)
17595
17596
17597     ac_ext=cpp
17598 ac_cpp='$CXXCPP $CPPFLAGS'
17599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17602
17603     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17604 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17605 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615 int
17616 main ()
17617 {
17618
17619              #ifndef _SGI_COMPILER_VERSION
17620                 choke me
17621              #endif
17622
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (ac_try="$ac_compile"
17629 case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_compile") 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } && {
17641          test -z "$ac_cxx_werror_flag" ||
17642          test ! -s conftest.err
17643        } && test -s conftest.$ac_objext; then
17644   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17650
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654
17655
17656 fi
17657 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17658 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17659     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17660         :; SGICXX=yes
17661     else
17662         :;
17663     fi
17664     ac_ext=c
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670
17671
17672                 ;;
17673
17674             Linux*)
17675                                                 if test "$INTELCXX" != "yes"; then
17676
17677
17678     ac_ext=cpp
17679 ac_cpp='$CXXCPP $CPPFLAGS'
17680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17683
17684     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17685 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17686 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695
17696 int
17697 main ()
17698 {
17699
17700              #ifndef __SUNPRO_CC
17701                 choke me
17702              #endif
17703
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext
17709 if { (ac_try="$ac_compile"
17710 case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_compile") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } && {
17722          test -z "$ac_cxx_werror_flag" ||
17723          test ! -s conftest.err
17724        } && test -s conftest.$ac_objext; then
17725   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17731
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17735
17736
17737 fi
17738 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17739 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17740     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17741         :; SUNCXX=yes
17742     else
17743         :;
17744     fi
17745     ac_ext=c
17746 ac_cpp='$CPP $CPPFLAGS'
17747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750
17751
17752
17753                 fi
17754                 ;;
17755
17756             HP-UX*)
17757
17758
17759     ac_ext=cpp
17760 ac_cpp='$CXXCPP $CPPFLAGS'
17761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17764
17765     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17766 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17767 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h.  */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h.  */
17776
17777 int
17778 main ()
17779 {
17780
17781              #ifndef __HP_aCC
17782                 choke me
17783              #endif
17784
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 rm -f conftest.$ac_objext
17790 if { (ac_try="$ac_compile"
17791 case "(($ac_try" in
17792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793   *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796   (eval "$ac_compile") 2>conftest.er1
17797   ac_status=$?
17798   grep -v '^ *+' conftest.er1 >conftest.err
17799   rm -f conftest.er1
17800   cat conftest.err >&5
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); } && {
17803          test -z "$ac_cxx_werror_flag" ||
17804          test ! -s conftest.err
17805        } && test -s conftest.$ac_objext; then
17806   bakefile_cv_cxx_compiler___HP_aCC=yes
17807 else
17808   echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17810
17811         bakefile_cv_cxx_compiler___HP_aCC=no
17812
17813 fi
17814
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816
17817
17818 fi
17819 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17820 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17821     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17822         :; HPCXX=yes
17823     else
17824         :;
17825     fi
17826     ac_ext=c
17827 ac_cpp='$CPP $CPPFLAGS'
17828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17831
17832
17833
17834                 ;;
17835
17836             OSF1)
17837
17838
17839     ac_ext=cpp
17840 ac_cpp='$CXXCPP $CPPFLAGS'
17841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17844
17845     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17846 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17847 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856
17857 int
17858 main ()
17859 {
17860
17861              #ifndef __DECCXX
17862                 choke me
17863              #endif
17864
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_compile") 2>conftest.er1
17877   ac_status=$?
17878   grep -v '^ *+' conftest.er1 >conftest.err
17879   rm -f conftest.er1
17880   cat conftest.err >&5
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } && {
17883          test -z "$ac_cxx_werror_flag" ||
17884          test ! -s conftest.err
17885        } && test -s conftest.$ac_objext; then
17886   bakefile_cv_cxx_compiler___DECCXX=yes
17887 else
17888   echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17890
17891         bakefile_cv_cxx_compiler___DECCXX=no
17892
17893 fi
17894
17895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896
17897
17898 fi
17899 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17900 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17901     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17902         :; COMPAQCXX=yes
17903     else
17904         :;
17905     fi
17906     ac_ext=c
17907 ac_cpp='$CPP $CPPFLAGS'
17908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17911
17912
17913
17914                 ;;
17915
17916             SunOS)
17917
17918
17919     ac_ext=cpp
17920 ac_cpp='$CXXCPP $CPPFLAGS'
17921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17924
17925     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17926 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17927 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930   cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936
17937 int
17938 main ()
17939 {
17940
17941              #ifndef __SUNPRO_CC
17942                 choke me
17943              #endif
17944
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_compile") 2>conftest.er1
17957   ac_status=$?
17958   grep -v '^ *+' conftest.er1 >conftest.err
17959   rm -f conftest.er1
17960   cat conftest.err >&5
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } && {
17963          test -z "$ac_cxx_werror_flag" ||
17964          test ! -s conftest.err
17965        } && test -s conftest.$ac_objext; then
17966   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17972
17973 fi
17974
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976
17977
17978 fi
17979 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17980 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17981     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17982         :; SUNCXX=yes
17983     else
17984         :;
17985     fi
17986     ac_ext=c
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17991
17992
17993
17994                 ;;
17995         esac
17996     fi
17997
17998
17999
18000 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18001     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18002 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18003    { (exit 1); exit 1; }; }
18004 fi
18005
18006 if test "x$SUNCXX" != xyes; then
18007     if test -n "$ac_tool_prefix"; then
18008   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18009 set dummy ${ac_tool_prefix}ar; ac_word=$2
18010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18012 if test "${ac_cv_prog_AR+set}" = set; then
18013   echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015   if test -n "$AR"; then
18016   ac_cv_prog_AR="$AR" # Let the user override the test.
18017 else
18018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18019 for as_dir in $PATH
18020 do
18021   IFS=$as_save_IFS
18022   test -z "$as_dir" && as_dir=.
18023   for ac_exec_ext in '' $ac_executable_extensions; do
18024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18025     ac_cv_prog_AR="${ac_tool_prefix}ar"
18026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18027     break 2
18028   fi
18029 done
18030 done
18031 IFS=$as_save_IFS
18032
18033 fi
18034 fi
18035 AR=$ac_cv_prog_AR
18036 if test -n "$AR"; then
18037   { echo "$as_me:$LINENO: result: $AR" >&5
18038 echo "${ECHO_T}$AR" >&6; }
18039 else
18040   { echo "$as_me:$LINENO: result: no" >&5
18041 echo "${ECHO_T}no" >&6; }
18042 fi
18043
18044
18045 fi
18046 if test -z "$ac_cv_prog_AR"; then
18047   ac_ct_AR=$AR
18048   # Extract the first word of "ar", so it can be a program name with args.
18049 set dummy ar; ac_word=$2
18050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055   if test -n "$ac_ct_AR"; then
18056   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18057 else
18058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18059 for as_dir in $PATH
18060 do
18061   IFS=$as_save_IFS
18062   test -z "$as_dir" && as_dir=.
18063   for ac_exec_ext in '' $ac_executable_extensions; do
18064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18065     ac_cv_prog_ac_ct_AR="ar"
18066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18067     break 2
18068   fi
18069 done
18070 done
18071 IFS=$as_save_IFS
18072
18073 fi
18074 fi
18075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18076 if test -n "$ac_ct_AR"; then
18077   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18078 echo "${ECHO_T}$ac_ct_AR" >&6; }
18079 else
18080   { echo "$as_me:$LINENO: result: no" >&5
18081 echo "${ECHO_T}no" >&6; }
18082 fi
18083
18084   if test "x$ac_ct_AR" = x; then
18085     AR=""
18086   else
18087     case $cross_compiling:$ac_tool_warned in
18088 yes:)
18089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18090 whose name does not start with the host triplet.  If you think this
18091 configuration is useful to you, please write to autoconf@gnu.org." >&5
18092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18093 whose name does not start with the host triplet.  If you think this
18094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18095 ac_tool_warned=yes ;;
18096 esac
18097     AR=$ac_ct_AR
18098   fi
18099 else
18100   AR="$ac_cv_prog_AR"
18101 fi
18102
18103     if test "x$AR" = "x" ; then
18104         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18105 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18106    { (exit 1); exit 1; }; }
18107     fi
18108 fi
18109
18110 retest_macosx_linking=no
18111
18112 #if test "$wxUSE_MAC" = 1; then
18113     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18114                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18115             # Implicitly turn on the new --with-macosx-sdk using the default
18116             # SDK which provides the behavior this option has always had.
18117             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18118                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18119 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18120                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18121 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18122                 wxUSE_MACOSX_SDK=yes
18123             fi
18124         else
18125             # Complain to user if he specified an argument to --enable-universal_binary
18126             # and also 1) specified --with-macosx-sdk using the default (yes) or
18127             # 2) specified --with-macosx-sdk using a path or 3) specified
18128             # --without-macosx-sdk (no).
18129             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18130                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18131 See \`config.log' for more details." >&5
18132 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18133 See \`config.log' for more details." >&2;}
18134    { (exit 1); exit 1; }; }
18135             else
18136                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18137                 # special-case the empty string because the below test simply
18138                 # converts "no" to the empty string anyway.
18139                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18140                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18141 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18142             fi
18143         fi
18144                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18145         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18146         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18147         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18148         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18149         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18150                                                                                                                 retest_macosx_linking=yes
18151
18152                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18153 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18154         bk_use_pch=no
18155     fi
18156 #fi
18157
18158 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18159     wxUSE_MACOSX_SDK=
18160 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18161     # TODO: Search for most recent SDK and use it.
18162     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18163 fi
18164
18165
18166 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18167     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18168 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18169     if ! test -d "$wxUSE_MACOSX_SDK"; then
18170         { { echo "$as_me:$LINENO: error: not found
18171 See \`config.log' for more details." >&5
18172 echo "$as_me: error: not found
18173 See \`config.log' for more details." >&2;}
18174    { (exit 1); exit 1; }; }
18175     else
18176         { echo "$as_me:$LINENO: result: exists" >&5
18177 echo "${ECHO_T}exists" >&6; }
18178     fi
18179     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18180     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18181     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18182     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18183     retest_macosx_linking=yes
18184             fi
18185
18186 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18187     wxUSE_MACOSX_VERSION_MIN=
18188 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18189     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18190         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18191 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18192
18193         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/'`
18194
18195         # If that failed, try again with the new key
18196         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18197
18198             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/'`
18199
18200         fi
18201
18202         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18203             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18204             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18205 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18206         else
18207             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18208 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18209             wxUSE_MACOSX_VERSION_MIN=
18210         fi
18211     else
18212         wxUSE_MACOSX_VERSION_MIN=
18213     fi
18214 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18215     if test "$wxUSE_MAC" = 1; then
18216         # otherwise configure stops on leopard for universal_binary
18217         wxUSE_MACOSX_VERSION_MIN=10.4
18218     fi
18219 fi
18220
18221 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18222     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18223     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18224     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18225     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18226     retest_macosx_linking=yes
18227 fi
18228
18229 if test "x$retest_macosx_linking" = "xyes"; then
18230     ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
18236     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18237 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18238     cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245 int
18246 main ()
18247 {
18248
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257   *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260   (eval "$ac_link") 2>conftest.er1
18261   ac_status=$?
18262   grep -v '^ *+' conftest.er1 >conftest.err
18263   rm -f conftest.er1
18264   cat conftest.err >&5
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); } && {
18267          test -z "$ac_c_werror_flag" ||
18268          test ! -s conftest.err
18269        } && test -s conftest$ac_exeext &&
18270        $as_test_x conftest$ac_exeext; then
18271   { echo "$as_me:$LINENO: result: yes" >&5
18272 echo "${ECHO_T}yes" >&6; }
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18278 See \`config.log' for more details." >&5
18279 echo "$as_me: error: no.  Try a different SDK
18280 See \`config.log' for more details." >&2;}
18281    { (exit 1); exit 1; }; }; exit 1
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285       conftest$ac_exeext conftest.$ac_ext
18286     ac_ext=c
18287 ac_cpp='$CPP $CPPFLAGS'
18288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18291
18292
18293     ac_ext=cpp
18294 ac_cpp='$CXXCPP $CPPFLAGS'
18295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18298
18299     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18300 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18301     cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307
18308 int
18309 main ()
18310 {
18311
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_link") 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } && {
18330          test -z "$ac_cxx_werror_flag" ||
18331          test ! -s conftest.err
18332        } && test -s conftest$ac_exeext &&
18333        $as_test_x conftest$ac_exeext; then
18334   { echo "$as_me:$LINENO: result: yes" >&5
18335 echo "${ECHO_T}yes" >&6; }
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18341 See \`config.log' for more details." >&5
18342 echo "$as_me: error: no.  Try a different SDK
18343 See \`config.log' for more details." >&2;}
18344    { (exit 1); exit 1; }; }; exit 1
18345 fi
18346
18347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18348       conftest$ac_exeext conftest.$ac_ext
18349     ac_ext=c
18350 ac_cpp='$CPP $CPPFLAGS'
18351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18354
18355 fi
18356
18357
18358 case "${host}" in
18359
18360                 *-*-darwin* )
18361         INSTALL_PROGRAM="cp -fp"
18362         INSTALL_DATA="cp -fp"
18363         ;;
18364     *)
18365         ;;
18366 esac
18367
18368
18369 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18370     CXXFLAGS="-qunique $CXXFLAGS"
18371 fi
18372
18373 case "${host}" in
18374   powerpc-*-darwin* )
18375     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18376 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18377     cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h.  */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h.  */
18383
18384 int
18385 main ()
18386 {
18387 #ifndef __POWERPC__
18388         choke me for lack of PowerPC
18389 #endif
18390
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext
18396 if { (ac_try="$ac_compile"
18397 case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_compile") 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } && {
18409          test -z "$ac_c_werror_flag" ||
18410          test ! -s conftest.err
18411        } && test -s conftest.$ac_objext; then
18412   { echo "$as_me:$LINENO: result: yes" >&5
18413 echo "${ECHO_T}yes" >&6; }
18414 else
18415   echo "$as_me: failed program was:" >&5
18416 sed 's/^/| /' conftest.$ac_ext >&5
18417
18418         { echo "$as_me:$LINENO: result: no" >&5
18419 echo "${ECHO_T}no" >&6; }
18420         cat >>confdefs.h <<\_ACEOF
18421 #define __POWERPC__ 1
18422 _ACEOF
18423
18424
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428   ;;
18429 esac
18430
18431 case "${host}" in
18432   *-*-darwin* )
18433     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18434 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18435     cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 #include <CoreFoundation/CFBase.h>
18442
18443 int
18444 main ()
18445 {
18446
18447   ;
18448   return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_compile") 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } && {
18465          test -z "$ac_c_werror_flag" ||
18466          test ! -s conftest.err
18467        } && test -s conftest.$ac_objext; then
18468   { echo "$as_me:$LINENO: result: yes" >&5
18469 echo "${ECHO_T}yes" >&6; }
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         { echo "$as_me:$LINENO: result: no" >&5
18475 echo "${ECHO_T}no" >&6; }
18476         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18477 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18478         cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484 #define __CF_USE_FRAMEWORK_INCLUDES__
18485 #include <CoreFoundation/CFBase.h>
18486
18487 int
18488 main ()
18489 {
18490
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_compile") 2>conftest.er1
18503   ac_status=$?
18504   grep -v '^ *+' conftest.er1 >conftest.err
18505   rm -f conftest.er1
18506   cat conftest.err >&5
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); } && {
18509          test -z "$ac_c_werror_flag" ||
18510          test ! -s conftest.err
18511        } && test -s conftest.$ac_objext; then
18512   { echo "$as_me:$LINENO: result: yes" >&5
18513 echo "${ECHO_T}yes" >&6; }
18514                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18515 else
18516   echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18520 See \`config.log' for more details." >&5
18521 echo "$as_me: error: no.  CoreFoundation not available.
18522 See \`config.log' for more details." >&2;}
18523    { (exit 1); exit 1; }; }
18524
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528
18529
18530 fi
18531
18532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533   ;;
18534 esac
18535
18536 wants_win32=0
18537 doesnt_want_win32=0
18538 case "${host}" in
18539   *-*-cygwin*)
18540       if test "$wxUSE_MSW" = 1 ; then
18541         wants_win32=1
18542       else
18543                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18544 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18545 if test "${wx_cv_nocygwin+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548
18549                 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 int
18557 main ()
18558 {
18559
18560                         #ifdef __MINGW32__
18561                             choke me
18562                         #endif
18563
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
18570 case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_compile") 2>conftest.er1
18576   ac_status=$?
18577   grep -v '^ *+' conftest.er1 >conftest.err
18578   rm -f conftest.er1
18579   cat conftest.err >&5
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); } && {
18582          test -z "$ac_c_werror_flag" ||
18583          test ! -s conftest.err
18584        } && test -s conftest.$ac_objext; then
18585   wx_cv_nocygwin=no
18586 else
18587   echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18589
18590         wx_cv_nocygwin=yes
18591
18592 fi
18593
18594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18595
18596
18597 fi
18598 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18599 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18600
18601         if test "$wx_cv_nocygwin" = "yes"; then
18602             wants_win32=1
18603         else
18604             doesnt_want_win32=1
18605         fi
18606       fi
18607       if test "$wants_win32" = 1 ; then
18608         BAKEFILE_FORCE_PLATFORM=win32
18609       fi
18610   ;;
18611   *-*-mingw*)
18612       wants_win32=1
18613   ;;
18614 esac
18615
18616 if test "$wxUSE_WINE" = "yes"; then
18617     wants_win32=1
18618     LDFLAGS_GUI="-mwindows"
18619 fi
18620
18621 if test "$wants_win32" = 1 ; then
18622     USE_UNIX=0
18623     USE_WIN32=1
18624     cat >>confdefs.h <<\_ACEOF
18625 #define __WIN32__ 1
18626 _ACEOF
18627
18628     cat >>confdefs.h <<\_ACEOF
18629 #define __WIN95__ 1
18630 _ACEOF
18631
18632     cat >>confdefs.h <<\_ACEOF
18633 #define __WINDOWS__ 1
18634 _ACEOF
18635
18636     cat >>confdefs.h <<\_ACEOF
18637 #define __GNUWIN32__ 1
18638 _ACEOF
18639
18640     cat >>confdefs.h <<\_ACEOF
18641 #define STRICT 1
18642 _ACEOF
18643
18644 fi
18645 if test "$doesnt_want_win32" = 1 ; then
18646     USE_UNIX=1
18647     USE_WIN32=0
18648 fi
18649
18650 if test "$USE_UNIX" = 1 ; then
18651     wxUSE_UNIX=yes
18652     cat >>confdefs.h <<\_ACEOF
18653 #define __UNIX__ 1
18654 _ACEOF
18655
18656 fi
18657
18658 case "${host}" in
18659   *-pc-os2_emx | *-pc-os2-emx )
18660                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18661                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18662 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18663 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666   ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lcExt  $LIBS"
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 /* Override any GCC internal prototype to avoid an error.
18676    Use char because int might match the return type of a GCC
18677    builtin and then its argument prototype would still apply.  */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 char drand48 ();
18682 int
18683 main ()
18684 {
18685 return drand48 ();
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_link") 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } && {
18704          test -z "$ac_c_werror_flag" ||
18705          test ! -s conftest.err
18706        } && test -s conftest$ac_exeext &&
18707        $as_test_x conftest$ac_exeext; then
18708   ac_cv_lib_cExt_drand48=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         ac_cv_lib_cExt_drand48=no
18714 fi
18715
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18717       conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18719 fi
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18721 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18722 if test $ac_cv_lib_cExt_drand48 = yes; then
18723   LIBS="$LIBS -lcExt"
18724 fi
18725
18726       else
18727                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18728       fi
18729                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18730 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18731 if test "${wx_cv_gccversion+set}" = set; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734
18735           if test "$cross_compiling" = yes; then
18736                 wx_cv_gccversion="EMX2"
18737
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745
18746                   #include <stdio.h>
18747
18748                   int main()
18749                   {
18750                       FILE *f=fopen("conftestval", "w");
18751                       if (!f) exit(1);
18752                       fprintf(f,
18753                   #if (__GNUC__ < 3)
18754                               "EMX2"
18755                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18756                               "EMX3"
18757                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18758                               "Innotek5"
18759                   #else
18760                               "Innotek6"
18761                   #endif
18762                       );
18763                       exit(0);
18764                   }
18765
18766 _ACEOF
18767 rm -f conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_link") 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18778   { (case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_try") 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   wx_cv_gccversion=`cat conftestval`
18788 else
18789   echo "$as_me: program exited with status $ac_status" >&5
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ( exit $ac_status )
18794 wx_cv_gccversion="EMX2"
18795 fi
18796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18797 fi
18798
18799
18800
18801 fi
18802 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18803 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18804       if test "$wx_cv_gccversion" = "EMX2"; then
18805           LIBS="$LIBS -lstdcpp"
18806           LDFLAGS="$LDFLAGS -Zsysv-signals"
18807       else
18808           if test "$wx_cv_gccversion" = "EMX3"; then
18809               LIBS="$LIBS -lstdcxx -lgcc"
18810               LDFLAGS="$LDFLAGS -Zsysv-signals"
18811           else
18812               LIBS="$LIBS -lstdc++"
18813           fi
18814       fi
18815       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18816         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18817 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18818         wxUSE_OMF=yes
18819         enable_omf=yes
18820       fi
18821         ;;
18822   *)
18823
18824       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18825 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18826 if test "${ac_cv_string_strcasecmp+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829
18830           cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837               #include <string.h>
18838
18839 int
18840 main ()
18841 {
18842
18843                   strcasecmp("foo", "bar");
18844
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest$ac_exeext &&
18866        $as_test_x conftest$ac_exeext; then
18867   ac_cv_string_strcasecmp=yes
18868 else
18869   echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18871
18872         ac_cv_string_strcasecmp=no
18873
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18877       conftest$ac_exeext conftest.$ac_ext
18878
18879 fi
18880 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18881 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18882
18883       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18884           cat >>confdefs.h <<\_ACEOF
18885 #define HAVE_STRCASECMP_IN_STRING_H 1
18886 _ACEOF
18887
18888       else
18889           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18890 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18891 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894
18895               cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902                   #include <strings.h>
18903
18904 int
18905 main ()
18906 {
18907
18908                       strcasecmp("foo", "bar");
18909
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918   *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921   (eval "$ac_link") 2>conftest.er1
18922   ac_status=$?
18923   grep -v '^ *+' conftest.er1 >conftest.err
18924   rm -f conftest.er1
18925   cat conftest.err >&5
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); } && {
18928          test -z "$ac_c_werror_flag" ||
18929          test ! -s conftest.err
18930        } && test -s conftest$ac_exeext &&
18931        $as_test_x conftest$ac_exeext; then
18932   ac_cv_strings_strcasecmp=yes
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937         ac_cv_strings_strcasecmp=no
18938
18939 fi
18940
18941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18942       conftest$ac_exeext conftest.$ac_ext
18943
18944 fi
18945 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18946 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18947
18948           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18949               cat >>confdefs.h <<\_ACEOF
18950 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18951 _ACEOF
18952
18953           else
18954               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18955 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18956    { (exit 1); exit 1; }; }
18957           fi
18958       fi
18959
18960         ;;
18961 esac
18962
18963
18964 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18966 if test "${ac_cv_header_stdc+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975 #include <stdlib.h>
18976 #include <stdarg.h>
18977 #include <string.h>
18978 #include <float.h>
18979
18980 int
18981 main ()
18982 {
18983
18984   ;
18985   return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_compile") 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } && {
19002          test -z "$ac_c_werror_flag" ||
19003          test ! -s conftest.err
19004        } && test -s conftest.$ac_objext; then
19005   ac_cv_header_stdc=yes
19006 else
19007   echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010         ac_cv_header_stdc=no
19011 fi
19012
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014
19015 if test $ac_cv_header_stdc = yes; then
19016   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19017   cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 #include <string.h>
19024
19025 _ACEOF
19026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19027   $EGREP "memchr" >/dev/null 2>&1; then
19028   :
19029 else
19030   ac_cv_header_stdc=no
19031 fi
19032 rm -f conftest*
19033
19034 fi
19035
19036 if test $ac_cv_header_stdc = yes; then
19037   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19038   cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 #include <stdlib.h>
19045
19046 _ACEOF
19047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19048   $EGREP "free" >/dev/null 2>&1; then
19049   :
19050 else
19051   ac_cv_header_stdc=no
19052 fi
19053 rm -f conftest*
19054
19055 fi
19056
19057 if test $ac_cv_header_stdc = yes; then
19058   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19059   if test "$cross_compiling" = yes; then
19060   :
19061 else
19062   cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 #include <ctype.h>
19069 #include <stdlib.h>
19070 #if ((' ' & 0x0FF) == 0x020)
19071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19073 #else
19074 # define ISLOWER(c) \
19075                    (('a' <= (c) && (c) <= 'i') \
19076                      || ('j' <= (c) && (c) <= 'r') \
19077                      || ('s' <= (c) && (c) <= 'z'))
19078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19079 #endif
19080
19081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19082 int
19083 main ()
19084 {
19085   int i;
19086   for (i = 0; i < 256; i++)
19087     if (XOR (islower (i), ISLOWER (i))
19088         || toupper (i) != TOUPPER (i))
19089       return 2;
19090   return 0;
19091 }
19092 _ACEOF
19093 rm -f conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097   *) ac_try_echo=$ac_try;;
19098 esac
19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100   (eval "$ac_link") 2>&5
19101   ac_status=$?
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19104   { (case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_try") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; }; then
19113   :
19114 else
19115   echo "$as_me: program exited with status $ac_status" >&5
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19118
19119 ( exit $ac_status )
19120 ac_cv_header_stdc=no
19121 fi
19122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19123 fi
19124
19125
19126 fi
19127 fi
19128 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19129 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19130 if test $ac_cv_header_stdc = yes; then
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define STDC_HEADERS 1
19134 _ACEOF
19135
19136 fi
19137
19138 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19149                   inttypes.h stdint.h unistd.h
19150 do
19151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 $ac_includes_default
19164
19165 #include <$ac_header>
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_compile") 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } && {
19181          test -z "$ac_c_werror_flag" ||
19182          test ! -s conftest.err
19183        } && test -s conftest.$ac_objext; then
19184   eval "$as_ac_Header=yes"
19185 else
19186   echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189         eval "$as_ac_Header=no"
19190 fi
19191
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 fi
19194 ac_res=`eval echo '${'$as_ac_Header'}'`
19195                { echo "$as_me:$LINENO: result: $ac_res" >&5
19196 echo "${ECHO_T}$ac_res" >&6; }
19197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19198   cat >>confdefs.h <<_ACEOF
19199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 _ACEOF
19201
19202 fi
19203
19204 done
19205
19206
19207
19208
19209 for ac_header in langinfo.h wchar.h
19210 do
19211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 $ac_includes_default
19224
19225 #include <$ac_header>
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_compile") 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } && {
19241          test -z "$ac_c_werror_flag" ||
19242          test ! -s conftest.err
19243        } && test -s conftest.$ac_objext; then
19244   eval "$as_ac_Header=yes"
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249         eval "$as_ac_Header=no"
19250 fi
19251
19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253 fi
19254 ac_res=`eval echo '${'$as_ac_Header'}'`
19255                { echo "$as_me:$LINENO: result: $ac_res" >&5
19256 echo "${ECHO_T}$ac_res" >&6; }
19257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19258   cat >>confdefs.h <<_ACEOF
19259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19260 _ACEOF
19261
19262 fi
19263
19264 done
19265
19266
19267 if test "$ac_cv_header_wchar_h" != "yes"; then
19268
19269 for ac_header in wcstr.h
19270 do
19271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 $ac_includes_default
19284
19285 #include <$ac_header>
19286 _ACEOF
19287 rm -f conftest.$ac_objext
19288 if { (ac_try="$ac_compile"
19289 case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_compile") 2>conftest.er1
19295   ac_status=$?
19296   grep -v '^ *+' conftest.er1 >conftest.err
19297   rm -f conftest.er1
19298   cat conftest.err >&5
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } && {
19301          test -z "$ac_c_werror_flag" ||
19302          test ! -s conftest.err
19303        } && test -s conftest.$ac_objext; then
19304   eval "$as_ac_Header=yes"
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         eval "$as_ac_Header=no"
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 fi
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315                { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19318   cat >>confdefs.h <<_ACEOF
19319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19320 _ACEOF
19321
19322 fi
19323
19324 done
19325
19326 fi
19327
19328 case "${host}" in
19329   *-pc-os2_emx | *-pc-os2-emx )
19330                   if test $ac_cv_header_langinfo_h = "yes" \
19331                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19332                      -o "$wx_cv_gccversion" = "EMX3" \
19333                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19334           LIBS="$LIBS -lintl"
19335       fi
19336   ;;
19337 esac
19338
19339 if test "$USE_UNIX" = 1 ; then
19340
19341 for ac_header in sys/select.h
19342 do
19343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349   cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355 $ac_includes_default
19356
19357 #include <$ac_header>
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_compile") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } && {
19373          test -z "$ac_c_werror_flag" ||
19374          test ! -s conftest.err
19375        } && test -s conftest.$ac_objext; then
19376   eval "$as_ac_Header=yes"
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         eval "$as_ac_Header=no"
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 fi
19386 ac_res=`eval echo '${'$as_ac_Header'}'`
19387                { echo "$as_me:$LINENO: result: $ac_res" >&5
19388 echo "${ECHO_T}$ac_res" >&6; }
19389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19390   cat >>confdefs.h <<_ACEOF
19391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392 _ACEOF
19393
19394 fi
19395
19396 done
19397
19398 fi
19399
19400
19401 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19402 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19403 if test "${ac_cv_c_const+set}" = set; then
19404   echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406   cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412
19413 int
19414 main ()
19415 {
19416 /* FIXME: Include the comments suggested by Paul. */
19417 #ifndef __cplusplus
19418   /* Ultrix mips cc rejects this.  */
19419   typedef int charset[2];
19420   const charset cs;
19421   /* SunOS 4.1.1 cc rejects this.  */
19422   char const *const *pcpcc;
19423   char **ppc;
19424   /* NEC SVR4.0.2 mips cc rejects this.  */
19425   struct point {int x, y;};
19426   static struct point const zero = {0,0};
19427   /* AIX XL C 1.02.0.0 rejects this.
19428      It does not let you subtract one const X* pointer from another in
19429      an arm of an if-expression whose if-part is not a constant
19430      expression */
19431   const char *g = "string";
19432   pcpcc = &g + (g ? g-g : 0);
19433   /* HPUX 7.0 cc rejects these. */
19434   ++pcpcc;
19435   ppc = (char**) pcpcc;
19436   pcpcc = (char const *const *) ppc;
19437   { /* SCO 3.2v4 cc rejects this.  */
19438     char *t;
19439     char const *s = 0 ? (char *) 0 : (char const *) 0;
19440
19441     *t++ = 0;
19442     if (s) return 0;
19443   }
19444   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19445     int x[] = {25, 17};
19446     const int *foo = &x[0];
19447     ++foo;
19448   }
19449   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19450     typedef const int *iptr;
19451     iptr p = 0;
19452     ++p;
19453   }
19454   { /* AIX XL C 1.02.0.0 rejects this saying
19455        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19456     struct s { int j; const int *ap[3]; };
19457     struct s *b; b->j = 5;
19458   }
19459   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19460     const int foo = 10;
19461     if (!foo) return 0;
19462   }
19463   return !cs[0] && !zero.x;
19464 #endif
19465
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext
19471 if { (ac_try="$ac_compile"
19472 case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_compile") 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } && {
19484          test -z "$ac_c_werror_flag" ||
19485          test ! -s conftest.err
19486        } && test -s conftest.$ac_objext; then
19487   ac_cv_c_const=yes
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492         ac_cv_c_const=no
19493 fi
19494
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19498 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19499 if test $ac_cv_c_const = no; then
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define const
19503 _ACEOF
19504
19505 fi
19506
19507 { echo "$as_me:$LINENO: checking for inline" >&5
19508 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19509 if test "${ac_cv_c_inline+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   ac_cv_c_inline=no
19513 for ac_kw in inline __inline__ __inline; do
19514   cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 #ifndef __cplusplus
19521 typedef int foo_t;
19522 static $ac_kw foo_t static_foo () {return 0; }
19523 $ac_kw foo_t foo () {return 0; }
19524 #endif
19525
19526 _ACEOF
19527 rm -f conftest.$ac_objext
19528 if { (ac_try="$ac_compile"
19529 case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_compile") 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } && {
19541          test -z "$ac_c_werror_flag" ||
19542          test ! -s conftest.err
19543        } && test -s conftest.$ac_objext; then
19544   ac_cv_c_inline=$ac_kw
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549
19550 fi
19551
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553   test "$ac_cv_c_inline" != no && break
19554 done
19555
19556 fi
19557 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19558 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19559
19560
19561 case $ac_cv_c_inline in
19562   inline | yes) ;;
19563   *)
19564     case $ac_cv_c_inline in
19565       no) ac_val=;;
19566       *) ac_val=$ac_cv_c_inline;;
19567     esac
19568     cat >>confdefs.h <<_ACEOF
19569 #ifndef __cplusplus
19570 #define inline $ac_val
19571 #endif
19572 _ACEOF
19573     ;;
19574 esac
19575
19576
19577 { echo "$as_me:$LINENO: checking for short" >&5
19578 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19579 if test "${ac_cv_type_short+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 $ac_includes_default
19589 typedef short ac__type_new_;
19590 int
19591 main ()
19592 {
19593 if ((ac__type_new_ *) 0)
19594   return 0;
19595 if (sizeof (ac__type_new_))
19596   return 0;
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_compile") 2>conftest.er1
19609   ac_status=$?
19610   grep -v '^ *+' conftest.er1 >conftest.err
19611   rm -f conftest.er1
19612   cat conftest.err >&5
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); } && {
19615          test -z "$ac_c_werror_flag" ||
19616          test ! -s conftest.err
19617        } && test -s conftest.$ac_objext; then
19618   ac_cv_type_short=yes
19619 else
19620   echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623         ac_cv_type_short=no
19624 fi
19625
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 fi
19628 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19629 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19630
19631 # The cast to long int works around a bug in the HP C Compiler
19632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19634 # This bug is HP SR number 8606223364.
19635 { echo "$as_me:$LINENO: checking size of short" >&5
19636 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19637 if test "${ac_cv_sizeof_short+set}" = set; then
19638   echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640   if test "$cross_compiling" = yes; then
19641   # Depending upon the size, compute the lo and hi bounds.
19642 cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648 $ac_includes_default
19649    typedef short ac__type_sizeof_;
19650 int
19651 main ()
19652 {
19653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19654 test_array [0] = 0
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && {
19674          test -z "$ac_c_werror_flag" ||
19675          test ! -s conftest.err
19676        } && test -s conftest.$ac_objext; then
19677   ac_lo=0 ac_mid=0
19678   while :; do
19679     cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 $ac_includes_default
19686    typedef short ac__type_sizeof_;
19687 int
19688 main ()
19689 {
19690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19691 test_array [0] = 0
19692
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (ac_try="$ac_compile"
19699 case "(($ac_try" in
19700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701   *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704   (eval "$ac_compile") 2>conftest.er1
19705   ac_status=$?
19706   grep -v '^ *+' conftest.er1 >conftest.err
19707   rm -f conftest.er1
19708   cat conftest.err >&5
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); } && {
19711          test -z "$ac_c_werror_flag" ||
19712          test ! -s conftest.err
19713        } && test -s conftest.$ac_objext; then
19714   ac_hi=$ac_mid; break
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719         ac_lo=`expr $ac_mid + 1`
19720                         if test $ac_lo -le $ac_mid; then
19721                           ac_lo= ac_hi=
19722                           break
19723                         fi
19724                         ac_mid=`expr 2 '*' $ac_mid + 1`
19725 fi
19726
19727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19728   done
19729 else
19730   echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733         cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 $ac_includes_default
19740    typedef short ac__type_sizeof_;
19741 int
19742 main ()
19743 {
19744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19745 test_array [0] = 0
19746
19747   ;
19748   return 0;
19749 }
19750 _ACEOF
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755   *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758   (eval "$ac_compile") 2>conftest.er1
19759   ac_status=$?
19760   grep -v '^ *+' conftest.er1 >conftest.err
19761   rm -f conftest.er1
19762   cat conftest.err >&5
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); } && {
19765          test -z "$ac_c_werror_flag" ||
19766          test ! -s conftest.err
19767        } && test -s conftest.$ac_objext; then
19768   ac_hi=-1 ac_mid=-1
19769   while :; do
19770     cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 $ac_includes_default
19777    typedef short ac__type_sizeof_;
19778 int
19779 main ()
19780 {
19781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19782 test_array [0] = 0
19783
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_compile") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } && {
19802          test -z "$ac_c_werror_flag" ||
19803          test ! -s conftest.err
19804        } && test -s conftest.$ac_objext; then
19805   ac_lo=$ac_mid; break
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810         ac_hi=`expr '(' $ac_mid ')' - 1`
19811                         if test $ac_mid -le $ac_hi; then
19812                           ac_lo= ac_hi=
19813                           break
19814                         fi
19815                         ac_mid=`expr 2 '*' $ac_mid`
19816 fi
19817
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819   done
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         ac_lo= ac_hi=
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 # Binary search between lo and hi bounds.
19832 while test "x$ac_lo" != "x$ac_hi"; do
19833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19834   cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 $ac_includes_default
19841    typedef short ac__type_sizeof_;
19842 int
19843 main ()
19844 {
19845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19846 test_array [0] = 0
19847
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext
19853 if { (ac_try="$ac_compile"
19854 case "(($ac_try" in
19855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856   *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859   (eval "$ac_compile") 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } && {
19866          test -z "$ac_c_werror_flag" ||
19867          test ! -s conftest.err
19868        } && test -s conftest.$ac_objext; then
19869   ac_hi=$ac_mid
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874         ac_lo=`expr '(' $ac_mid ')' + 1`
19875 fi
19876
19877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878 done
19879 case $ac_lo in
19880 ?*) ac_cv_sizeof_short=$ac_lo;;
19881 '') if test "$ac_cv_type_short" = yes; then
19882      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19883 See \`config.log' for more details." >&5
19884 echo "$as_me: error: cannot compute sizeof (short)
19885 See \`config.log' for more details." >&2;}
19886    { (exit 77); exit 77; }; }
19887    else
19888      ac_cv_sizeof_short=0
19889    fi ;;
19890 esac
19891 else
19892   cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 $ac_includes_default
19899    typedef short ac__type_sizeof_;
19900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19902 #include <stdio.h>
19903 #include <stdlib.h>
19904 int
19905 main ()
19906 {
19907
19908   FILE *f = fopen ("conftest.val", "w");
19909   if (! f)
19910     return 1;
19911   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19912     {
19913       long int i = longval ();
19914       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19915         return 1;
19916       fprintf (f, "%ld\n", i);
19917     }
19918   else
19919     {
19920       unsigned long int i = ulongval ();
19921       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19922         return 1;
19923       fprintf (f, "%lu\n", i);
19924     }
19925   return ferror (f) || fclose (f) != 0;
19926
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_link") 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19942   { (case "(($ac_try" in
19943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944   *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947   (eval "$ac_try") 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   ac_cv_sizeof_short=`cat conftest.val`
19952 else
19953   echo "$as_me: program exited with status $ac_status" >&5
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 ( exit $ac_status )
19958 if test "$ac_cv_type_short" = yes; then
19959      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19960 See \`config.log' for more details." >&5
19961 echo "$as_me: error: cannot compute sizeof (short)
19962 See \`config.log' for more details." >&2;}
19963    { (exit 77); exit 77; }; }
19964    else
19965      ac_cv_sizeof_short=0
19966    fi
19967 fi
19968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19969 fi
19970 rm -f conftest.val
19971 fi
19972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19973 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19974
19975
19976
19977 cat >>confdefs.h <<_ACEOF
19978 #define SIZEOF_SHORT $ac_cv_sizeof_short
19979 _ACEOF
19980
19981
19982 { echo "$as_me:$LINENO: checking for void *" >&5
19983 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19984 if test "${ac_cv_type_void_p+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 $ac_includes_default
19994 typedef void * ac__type_new_;
19995 int
19996 main ()
19997 {
19998 if ((ac__type_new_ *) 0)
19999   return 0;
20000 if (sizeof (ac__type_new_))
20001   return 0;
20002   ;
20003   return 0;
20004 }
20005 _ACEOF
20006 rm -f conftest.$ac_objext
20007 if { (ac_try="$ac_compile"
20008 case "(($ac_try" in
20009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010   *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013   (eval "$ac_compile") 2>conftest.er1
20014   ac_status=$?
20015   grep -v '^ *+' conftest.er1 >conftest.err
20016   rm -f conftest.er1
20017   cat conftest.err >&5
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); } && {
20020          test -z "$ac_c_werror_flag" ||
20021          test ! -s conftest.err
20022        } && test -s conftest.$ac_objext; then
20023   ac_cv_type_void_p=yes
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028         ac_cv_type_void_p=no
20029 fi
20030
20031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032 fi
20033 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20034 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20035
20036 # The cast to long int works around a bug in the HP C Compiler
20037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20039 # This bug is HP SR number 8606223364.
20040 { echo "$as_me:$LINENO: checking size of void *" >&5
20041 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20042 if test "${ac_cv_sizeof_void_p+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   if test "$cross_compiling" = yes; then
20046   # Depending upon the size, compute the lo and hi bounds.
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053 $ac_includes_default
20054    typedef void * ac__type_sizeof_;
20055 int
20056 main ()
20057 {
20058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20059 test_array [0] = 0
20060
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext
20066 if { (ac_try="$ac_compile"
20067 case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_compile") 2>conftest.er1
20073   ac_status=$?
20074   grep -v '^ *+' conftest.er1 >conftest.err
20075   rm -f conftest.er1
20076   cat conftest.err >&5
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } && {
20079          test -z "$ac_c_werror_flag" ||
20080          test ! -s conftest.err
20081        } && test -s conftest.$ac_objext; then
20082   ac_lo=0 ac_mid=0
20083   while :; do
20084     cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 $ac_includes_default
20091    typedef void * ac__type_sizeof_;
20092 int
20093 main ()
20094 {
20095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20096 test_array [0] = 0
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest.$ac_objext; then
20119   ac_hi=$ac_mid; break
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124         ac_lo=`expr $ac_mid + 1`
20125                         if test $ac_lo -le $ac_mid; then
20126                           ac_lo= ac_hi=
20127                           break
20128                         fi
20129                         ac_mid=`expr 2 '*' $ac_mid + 1`
20130 fi
20131
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20133   done
20134 else
20135   echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138         cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 $ac_includes_default
20145    typedef void * ac__type_sizeof_;
20146 int
20147 main ()
20148 {
20149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20150 test_array [0] = 0
20151
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 rm -f conftest.$ac_objext
20157 if { (ac_try="$ac_compile"
20158 case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_compile") 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } && {
20170          test -z "$ac_c_werror_flag" ||
20171          test ! -s conftest.err
20172        } && test -s conftest.$ac_objext; then
20173   ac_hi=-1 ac_mid=-1
20174   while :; do
20175     cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181 $ac_includes_default
20182    typedef void * ac__type_sizeof_;
20183 int
20184 main ()
20185 {
20186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20187 test_array [0] = 0
20188
20189   ;
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_compile") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && {
20207          test -z "$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        } && test -s conftest.$ac_objext; then
20210   ac_lo=$ac_mid; break
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         ac_hi=`expr '(' $ac_mid ')' - 1`
20216                         if test $ac_mid -le $ac_hi; then
20217                           ac_lo= ac_hi=
20218                           break
20219                         fi
20220                         ac_mid=`expr 2 '*' $ac_mid`
20221 fi
20222
20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20224   done
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229         ac_lo= ac_hi=
20230 fi
20231
20232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 # Binary search between lo and hi bounds.
20237 while test "x$ac_lo" != "x$ac_hi"; do
20238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 $ac_includes_default
20246    typedef void * ac__type_sizeof_;
20247 int
20248 main ()
20249 {
20250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20251 test_array [0] = 0
20252
20253   ;
20254   return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_compile") 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } && {
20271          test -z "$ac_c_werror_flag" ||
20272          test ! -s conftest.err
20273        } && test -s conftest.$ac_objext; then
20274   ac_hi=$ac_mid
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279         ac_lo=`expr '(' $ac_mid ')' + 1`
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 done
20284 case $ac_lo in
20285 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20286 '') if test "$ac_cv_type_void_p" = yes; then
20287      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20288 See \`config.log' for more details." >&5
20289 echo "$as_me: error: cannot compute sizeof (void *)
20290 See \`config.log' for more details." >&2;}
20291    { (exit 77); exit 77; }; }
20292    else
20293      ac_cv_sizeof_void_p=0
20294    fi ;;
20295 esac
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 $ac_includes_default
20304    typedef void * ac__type_sizeof_;
20305 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20306 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20307 #include <stdio.h>
20308 #include <stdlib.h>
20309 int
20310 main ()
20311 {
20312
20313   FILE *f = fopen ("conftest.val", "w");
20314   if (! f)
20315     return 1;
20316   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20317     {
20318       long int i = longval ();
20319       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20320         return 1;
20321       fprintf (f, "%ld\n", i);
20322     }
20323   else
20324     {
20325       unsigned long int i = ulongval ();
20326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20327         return 1;
20328       fprintf (f, "%lu\n", i);
20329     }
20330   return ferror (f) || fclose (f) != 0;
20331
20332   ;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_link") 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20347   { (case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   ac_cv_sizeof_void_p=`cat conftest.val`
20357 else
20358   echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ( exit $ac_status )
20363 if test "$ac_cv_type_void_p" = yes; then
20364      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20365 See \`config.log' for more details." >&5
20366 echo "$as_me: error: cannot compute sizeof (void *)
20367 See \`config.log' for more details." >&2;}
20368    { (exit 77); exit 77; }; }
20369    else
20370      ac_cv_sizeof_void_p=0
20371    fi
20372 fi
20373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 fi
20375 rm -f conftest.val
20376 fi
20377 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20378 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20379
20380
20381
20382 cat >>confdefs.h <<_ACEOF
20383 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20384 _ACEOF
20385
20386
20387 { echo "$as_me:$LINENO: checking for int" >&5
20388 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20389 if test "${ac_cv_type_int+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398 $ac_includes_default
20399 typedef int ac__type_new_;
20400 int
20401 main ()
20402 {
20403 if ((ac__type_new_ *) 0)
20404   return 0;
20405 if (sizeof (ac__type_new_))
20406   return 0;
20407   ;
20408   return 0;
20409 }
20410 _ACEOF
20411 rm -f conftest.$ac_objext
20412 if { (ac_try="$ac_compile"
20413 case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_compile") 2>conftest.er1
20419   ac_status=$?
20420   grep -v '^ *+' conftest.er1 >conftest.err
20421   rm -f conftest.er1
20422   cat conftest.err >&5
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); } && {
20425          test -z "$ac_c_werror_flag" ||
20426          test ! -s conftest.err
20427        } && test -s conftest.$ac_objext; then
20428   ac_cv_type_int=yes
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433         ac_cv_type_int=no
20434 fi
20435
20436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20439 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20440
20441 # The cast to long int works around a bug in the HP C Compiler
20442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20444 # This bug is HP SR number 8606223364.
20445 { echo "$as_me:$LINENO: checking size of int" >&5
20446 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20447 if test "${ac_cv_sizeof_int+set}" = set; then
20448   echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450   if test "$cross_compiling" = yes; then
20451   # Depending upon the size, compute the lo and hi bounds.
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 $ac_includes_default
20459    typedef int ac__type_sizeof_;
20460 int
20461 main ()
20462 {
20463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20464 test_array [0] = 0
20465
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_compile") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } && {
20484          test -z "$ac_c_werror_flag" ||
20485          test ! -s conftest.err
20486        } && test -s conftest.$ac_objext; then
20487   ac_lo=0 ac_mid=0
20488   while :; do
20489     cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 $ac_includes_default
20496    typedef int ac__type_sizeof_;
20497 int
20498 main ()
20499 {
20500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20501 test_array [0] = 0
20502
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_compile") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } && {
20521          test -z "$ac_c_werror_flag" ||
20522          test ! -s conftest.err
20523        } && test -s conftest.$ac_objext; then
20524   ac_hi=$ac_mid; break
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529         ac_lo=`expr $ac_mid + 1`
20530                         if test $ac_lo -le $ac_mid; then
20531                           ac_lo= ac_hi=
20532                           break
20533                         fi
20534                         ac_mid=`expr 2 '*' $ac_mid + 1`
20535 fi
20536
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538   done
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543         cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h.  */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h.  */
20549 $ac_includes_default
20550    typedef int ac__type_sizeof_;
20551 int
20552 main ()
20553 {
20554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20555 test_array [0] = 0
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (ac_try="$ac_compile"
20563 case "(($ac_try" in
20564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565   *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568   (eval "$ac_compile") 2>conftest.er1
20569   ac_status=$?
20570   grep -v '^ *+' conftest.er1 >conftest.err
20571   rm -f conftest.er1
20572   cat conftest.err >&5
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); } && {
20575          test -z "$ac_c_werror_flag" ||
20576          test ! -s conftest.err
20577        } && test -s conftest.$ac_objext; then
20578   ac_hi=-1 ac_mid=-1
20579   while :; do
20580     cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h.  */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h.  */
20586 $ac_includes_default
20587    typedef int ac__type_sizeof_;
20588 int
20589 main ()
20590 {
20591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20592 test_array [0] = 0
20593
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_compile") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && {
20612          test -z "$ac_c_werror_flag" ||
20613          test ! -s conftest.err
20614        } && test -s conftest.$ac_objext; then
20615   ac_lo=$ac_mid; break
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620         ac_hi=`expr '(' $ac_mid ')' - 1`
20621                         if test $ac_mid -le $ac_hi; then
20622                           ac_lo= ac_hi=
20623                           break
20624                         fi
20625                         ac_mid=`expr 2 '*' $ac_mid`
20626 fi
20627
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629   done
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634         ac_lo= ac_hi=
20635 fi
20636
20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 fi
20639
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 # Binary search between lo and hi bounds.
20642 while test "x$ac_lo" != "x$ac_hi"; do
20643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 $ac_includes_default
20651    typedef int ac__type_sizeof_;
20652 int
20653 main ()
20654 {
20655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20656 test_array [0] = 0
20657
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_compile") 2>conftest.er1
20670   ac_status=$?
20671   grep -v '^ *+' conftest.er1 >conftest.err
20672   rm -f conftest.er1
20673   cat conftest.err >&5
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } && {
20676          test -z "$ac_c_werror_flag" ||
20677          test ! -s conftest.err
20678        } && test -s conftest.$ac_objext; then
20679   ac_hi=$ac_mid
20680 else
20681   echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20683
20684         ac_lo=`expr '(' $ac_mid ')' + 1`
20685 fi
20686
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688 done
20689 case $ac_lo in
20690 ?*) ac_cv_sizeof_int=$ac_lo;;
20691 '') if test "$ac_cv_type_int" = yes; then
20692      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20693 See \`config.log' for more details." >&5
20694 echo "$as_me: error: cannot compute sizeof (int)
20695 See \`config.log' for more details." >&2;}
20696    { (exit 77); exit 77; }; }
20697    else
20698      ac_cv_sizeof_int=0
20699    fi ;;
20700 esac
20701 else
20702   cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708 $ac_includes_default
20709    typedef int ac__type_sizeof_;
20710 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20711 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20712 #include <stdio.h>
20713 #include <stdlib.h>
20714 int
20715 main ()
20716 {
20717
20718   FILE *f = fopen ("conftest.val", "w");
20719   if (! f)
20720     return 1;
20721   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20722     {
20723       long int i = longval ();
20724       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20725         return 1;
20726       fprintf (f, "%ld\n", i);
20727     }
20728   else
20729     {
20730       unsigned long int i = ulongval ();
20731       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20732         return 1;
20733       fprintf (f, "%lu\n", i);
20734     }
20735   return ferror (f) || fclose (f) != 0;
20736
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest$ac_exeext
20742 if { (ac_try="$ac_link"
20743 case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_link") 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20752   { (case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_try") 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_cv_sizeof_int=`cat conftest.val`
20762 else
20763   echo "$as_me: program exited with status $ac_status" >&5
20764 echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20766
20767 ( exit $ac_status )
20768 if test "$ac_cv_type_int" = yes; then
20769      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20770 See \`config.log' for more details." >&5
20771 echo "$as_me: error: cannot compute sizeof (int)
20772 See \`config.log' for more details." >&2;}
20773    { (exit 77); exit 77; }; }
20774    else
20775      ac_cv_sizeof_int=0
20776    fi
20777 fi
20778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20779 fi
20780 rm -f conftest.val
20781 fi
20782 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20783 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20784
20785
20786
20787 cat >>confdefs.h <<_ACEOF
20788 #define SIZEOF_INT $ac_cv_sizeof_int
20789 _ACEOF
20790
20791
20792 { echo "$as_me:$LINENO: checking for long" >&5
20793 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20794 if test "${ac_cv_type_long+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797   cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 $ac_includes_default
20804 typedef long ac__type_new_;
20805 int
20806 main ()
20807 {
20808 if ((ac__type_new_ *) 0)
20809   return 0;
20810 if (sizeof (ac__type_new_))
20811   return 0;
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && {
20830          test -z "$ac_c_werror_flag" ||
20831          test ! -s conftest.err
20832        } && test -s conftest.$ac_objext; then
20833   ac_cv_type_long=yes
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838         ac_cv_type_long=no
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 fi
20843 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20844 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20845
20846 # The cast to long int works around a bug in the HP C Compiler
20847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20849 # This bug is HP SR number 8606223364.
20850 { echo "$as_me:$LINENO: checking size of long" >&5
20851 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20852 if test "${ac_cv_sizeof_long+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   if test "$cross_compiling" = yes; then
20856   # Depending upon the size, compute the lo and hi bounds.
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 $ac_includes_default
20864    typedef long ac__type_sizeof_;
20865 int
20866 main ()
20867 {
20868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20869 test_array [0] = 0
20870
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_compile") 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } && {
20889          test -z "$ac_c_werror_flag" ||
20890          test ! -s conftest.err
20891        } && test -s conftest.$ac_objext; then
20892   ac_lo=0 ac_mid=0
20893   while :; do
20894     cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 $ac_includes_default
20901    typedef long ac__type_sizeof_;
20902 int
20903 main ()
20904 {
20905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20906 test_array [0] = 0
20907
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_compile") 2>conftest.er1
20920   ac_status=$?
20921   grep -v '^ *+' conftest.er1 >conftest.err
20922   rm -f conftest.er1
20923   cat conftest.err >&5
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && {
20926          test -z "$ac_c_werror_flag" ||
20927          test ! -s conftest.err
20928        } && test -s conftest.$ac_objext; then
20929   ac_hi=$ac_mid; break
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934         ac_lo=`expr $ac_mid + 1`
20935                         if test $ac_lo -le $ac_mid; then
20936                           ac_lo= ac_hi=
20937                           break
20938                         fi
20939                         ac_mid=`expr 2 '*' $ac_mid + 1`
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943   done
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948         cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 $ac_includes_default
20955    typedef long ac__type_sizeof_;
20956 int
20957 main ()
20958 {
20959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20960 test_array [0] = 0
20961
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_compile") 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } && {
20980          test -z "$ac_c_werror_flag" ||
20981          test ! -s conftest.err
20982        } && test -s conftest.$ac_objext; then
20983   ac_hi=-1 ac_mid=-1
20984   while :; do
20985     cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h.  */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h.  */
20991 $ac_includes_default
20992    typedef long ac__type_sizeof_;
20993 int
20994 main ()
20995 {
20996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20997 test_array [0] = 0
20998
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_compile") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } && {
21017          test -z "$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        } && test -s conftest.$ac_objext; then
21020   ac_lo=$ac_mid; break
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_hi=`expr '(' $ac_mid ')' - 1`
21026                         if test $ac_mid -le $ac_hi; then
21027                           ac_lo= ac_hi=
21028                           break
21029                         fi
21030                         ac_mid=`expr 2 '*' $ac_mid`
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034   done
21035 else
21036   echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039         ac_lo= ac_hi=
21040 fi
21041
21042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 fi
21044
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046 # Binary search between lo and hi bounds.
21047 while test "x$ac_lo" != "x$ac_hi"; do
21048   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21049   cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055 $ac_includes_default
21056    typedef long ac__type_sizeof_;
21057 int
21058 main ()
21059 {
21060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21061 test_array [0] = 0
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } && {
21081          test -z "$ac_c_werror_flag" ||
21082          test ! -s conftest.err
21083        } && test -s conftest.$ac_objext; then
21084   ac_hi=$ac_mid
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089         ac_lo=`expr '(' $ac_mid ')' + 1`
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 done
21094 case $ac_lo in
21095 ?*) ac_cv_sizeof_long=$ac_lo;;
21096 '') if test "$ac_cv_type_long" = yes; then
21097      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21098 See \`config.log' for more details." >&5
21099 echo "$as_me: error: cannot compute sizeof (long)
21100 See \`config.log' for more details." >&2;}
21101    { (exit 77); exit 77; }; }
21102    else
21103      ac_cv_sizeof_long=0
21104    fi ;;
21105 esac
21106 else
21107   cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 $ac_includes_default
21114    typedef long ac__type_sizeof_;
21115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21117 #include <stdio.h>
21118 #include <stdlib.h>
21119 int
21120 main ()
21121 {
21122
21123   FILE *f = fopen ("conftest.val", "w");
21124   if (! f)
21125     return 1;
21126   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21127     {
21128       long int i = longval ();
21129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21130         return 1;
21131       fprintf (f, "%ld\n", i);
21132     }
21133   else
21134     {
21135       unsigned long int i = ulongval ();
21136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21137         return 1;
21138       fprintf (f, "%lu\n", i);
21139     }
21140   return ferror (f) || fclose (f) != 0;
21141
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_link") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157   { (case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_try") 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_sizeof_long=`cat conftest.val`
21167 else
21168   echo "$as_me: program exited with status $ac_status" >&5
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ( exit $ac_status )
21173 if test "$ac_cv_type_long" = yes; then
21174      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21175 See \`config.log' for more details." >&5
21176 echo "$as_me: error: cannot compute sizeof (long)
21177 See \`config.log' for more details." >&2;}
21178    { (exit 77); exit 77; }; }
21179    else
21180      ac_cv_sizeof_long=0
21181    fi
21182 fi
21183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 rm -f conftest.val
21186 fi
21187 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21188 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21189
21190
21191
21192 cat >>confdefs.h <<_ACEOF
21193 #define SIZEOF_LONG $ac_cv_sizeof_long
21194 _ACEOF
21195
21196
21197 { echo "$as_me:$LINENO: checking for size_t" >&5
21198 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21199 if test "${ac_cv_type_size_t+set}" = set; then
21200   echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202   cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208 $ac_includes_default
21209 typedef size_t ac__type_new_;
21210 int
21211 main ()
21212 {
21213 if ((ac__type_new_ *) 0)
21214   return 0;
21215 if (sizeof (ac__type_new_))
21216   return 0;
21217   ;
21218   return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (ac_try="$ac_compile"
21223 case "(($ac_try" in
21224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225   *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228   (eval "$ac_compile") 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } && {
21235          test -z "$ac_c_werror_flag" ||
21236          test ! -s conftest.err
21237        } && test -s conftest.$ac_objext; then
21238   ac_cv_type_size_t=yes
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243         ac_cv_type_size_t=no
21244 fi
21245
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 fi
21248 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21249 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21250
21251 # The cast to long int works around a bug in the HP C Compiler
21252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21254 # This bug is HP SR number 8606223364.
21255 { echo "$as_me:$LINENO: checking size of size_t" >&5
21256 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21257 if test "${ac_cv_sizeof_size_t+set}" = set; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   if test "$cross_compiling" = yes; then
21261   # Depending upon the size, compute the lo and hi bounds.
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268 $ac_includes_default
21269    typedef size_t ac__type_sizeof_;
21270 int
21271 main ()
21272 {
21273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21274 test_array [0] = 0
21275
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_compile") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && {
21294          test -z "$ac_c_werror_flag" ||
21295          test ! -s conftest.err
21296        } && test -s conftest.$ac_objext; then
21297   ac_lo=0 ac_mid=0
21298   while :; do
21299     cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h.  */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h.  */
21305 $ac_includes_default
21306    typedef size_t ac__type_sizeof_;
21307 int
21308 main ()
21309 {
21310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21311 test_array [0] = 0
21312
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_compile") 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } && {
21331          test -z "$ac_c_werror_flag" ||
21332          test ! -s conftest.err
21333        } && test -s conftest.$ac_objext; then
21334   ac_hi=$ac_mid; break
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339         ac_lo=`expr $ac_mid + 1`
21340                         if test $ac_lo -le $ac_mid; then
21341                           ac_lo= ac_hi=
21342                           break
21343                         fi
21344                         ac_mid=`expr 2 '*' $ac_mid + 1`
21345 fi
21346
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348   done
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353         cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 $ac_includes_default
21360    typedef size_t ac__type_sizeof_;
21361 int
21362 main ()
21363 {
21364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21365 test_array [0] = 0
21366
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (ac_try="$ac_compile"
21373 case "(($ac_try" in
21374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375   *) ac_try_echo=$ac_try;;
21376 esac
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378   (eval "$ac_compile") 2>conftest.er1
21379   ac_status=$?
21380   grep -v '^ *+' conftest.er1 >conftest.err
21381   rm -f conftest.er1
21382   cat conftest.err >&5
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); } && {
21385          test -z "$ac_c_werror_flag" ||
21386          test ! -s conftest.err
21387        } && test -s conftest.$ac_objext; then
21388   ac_hi=-1 ac_mid=-1
21389   while :; do
21390     cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396 $ac_includes_default
21397    typedef size_t ac__type_sizeof_;
21398 int
21399 main ()
21400 {
21401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21402 test_array [0] = 0
21403
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (ac_try="$ac_compile"
21410 case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_compile") 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && {
21422          test -z "$ac_c_werror_flag" ||
21423          test ! -s conftest.err
21424        } && test -s conftest.$ac_objext; then
21425   ac_lo=$ac_mid; break
21426 else
21427   echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430         ac_hi=`expr '(' $ac_mid ')' - 1`
21431                         if test $ac_mid -le $ac_hi; then
21432                           ac_lo= ac_hi=
21433                           break
21434                         fi
21435                         ac_mid=`expr 2 '*' $ac_mid`
21436 fi
21437
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439   done
21440 else
21441   echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444         ac_lo= ac_hi=
21445 fi
21446
21447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 fi
21449
21450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 # Binary search between lo and hi bounds.
21452 while test "x$ac_lo" != "x$ac_hi"; do
21453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21454   cat >conftest.$ac_ext <<_ACEOF
21455 /* confdefs.h.  */
21456 _ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h.  */
21460 $ac_includes_default
21461    typedef size_t ac__type_sizeof_;
21462 int
21463 main ()
21464 {
21465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21466 test_array [0] = 0
21467
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (ac_try="$ac_compile"
21474 case "(($ac_try" in
21475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476   *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479   (eval "$ac_compile") 2>conftest.er1
21480   ac_status=$?
21481   grep -v '^ *+' conftest.er1 >conftest.err
21482   rm -f conftest.er1
21483   cat conftest.err >&5
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); } && {
21486          test -z "$ac_c_werror_flag" ||
21487          test ! -s conftest.err
21488        } && test -s conftest.$ac_objext; then
21489   ac_hi=$ac_mid
21490 else
21491   echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494         ac_lo=`expr '(' $ac_mid ')' + 1`
21495 fi
21496
21497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21498 done
21499 case $ac_lo in
21500 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21501 '') if test "$ac_cv_type_size_t" = yes; then
21502      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21503 See \`config.log' for more details." >&5
21504 echo "$as_me: error: cannot compute sizeof (size_t)
21505 See \`config.log' for more details." >&2;}
21506    { (exit 77); exit 77; }; }
21507    else
21508      ac_cv_sizeof_size_t=0
21509    fi ;;
21510 esac
21511 else
21512   cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518 $ac_includes_default
21519    typedef size_t ac__type_sizeof_;
21520 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21521 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21522 #include <stdio.h>
21523 #include <stdlib.h>
21524 int
21525 main ()
21526 {
21527
21528   FILE *f = fopen ("conftest.val", "w");
21529   if (! f)
21530     return 1;
21531   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21532     {
21533       long int i = longval ();
21534       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21535         return 1;
21536       fprintf (f, "%ld\n", i);
21537     }
21538   else
21539     {
21540       unsigned long int i = ulongval ();
21541       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21542         return 1;
21543       fprintf (f, "%lu\n", i);
21544     }
21545   return ferror (f) || fclose (f) != 0;
21546
21547   ;
21548   return 0;
21549 }
21550 _ACEOF
21551 rm -f conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555   *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558   (eval "$ac_link") 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562   { (case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_try") 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_cv_sizeof_size_t=`cat conftest.val`
21572 else
21573   echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ( exit $ac_status )
21578 if test "$ac_cv_type_size_t" = yes; then
21579      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21580 See \`config.log' for more details." >&5
21581 echo "$as_me: error: cannot compute sizeof (size_t)
21582 See \`config.log' for more details." >&2;}
21583    { (exit 77); exit 77; }; }
21584    else
21585      ac_cv_sizeof_size_t=0
21586    fi
21587 fi
21588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21589 fi
21590 rm -f conftest.val
21591 fi
21592 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21593 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21594
21595
21596
21597 cat >>confdefs.h <<_ACEOF
21598 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21599 _ACEOF
21600
21601
21602
21603 case "${host}" in
21604     arm-*-linux* )
21605         { echo "$as_me:$LINENO: checking for long long" >&5
21606 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21607 if test "${ac_cv_type_long_long+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 $ac_includes_default
21617 typedef long long ac__type_new_;
21618 int
21619 main ()
21620 {
21621 if ((ac__type_new_ *) 0)
21622   return 0;
21623 if (sizeof (ac__type_new_))
21624   return 0;
21625   ;
21626   return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_compile") 2>conftest.er1
21637   ac_status=$?
21638   grep -v '^ *+' conftest.er1 >conftest.err
21639   rm -f conftest.er1
21640   cat conftest.err >&5
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && {
21643          test -z "$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        } && test -s conftest.$ac_objext; then
21646   ac_cv_type_long_long=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_cv_type_long_long=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 fi
21656 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21657 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21658
21659 # The cast to long int works around a bug in the HP C Compiler
21660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21662 # This bug is HP SR number 8606223364.
21663 { echo "$as_me:$LINENO: checking size of long long" >&5
21664 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21665 if test "${ac_cv_sizeof_long_long+set}" = set; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   if test "$cross_compiling" = yes; then
21669   # Depending upon the size, compute the lo and hi bounds.
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 $ac_includes_default
21677    typedef long long ac__type_sizeof_;
21678 int
21679 main ()
21680 {
21681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21682 test_array [0] = 0
21683
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (ac_try="$ac_compile"
21690 case "(($ac_try" in
21691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692   *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695   (eval "$ac_compile") 2>conftest.er1
21696   ac_status=$?
21697   grep -v '^ *+' conftest.er1 >conftest.err
21698   rm -f conftest.er1
21699   cat conftest.err >&5
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } && {
21702          test -z "$ac_c_werror_flag" ||
21703          test ! -s conftest.err
21704        } && test -s conftest.$ac_objext; then
21705   ac_lo=0 ac_mid=0
21706   while :; do
21707     cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 $ac_includes_default
21714    typedef long long ac__type_sizeof_;
21715 int
21716 main ()
21717 {
21718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21719 test_array [0] = 0
21720
21721   ;
21722   return 0;
21723 }
21724 _ACEOF
21725 rm -f conftest.$ac_objext
21726 if { (ac_try="$ac_compile"
21727 case "(($ac_try" in
21728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729   *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732   (eval "$ac_compile") 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && {
21739          test -z "$ac_c_werror_flag" ||
21740          test ! -s conftest.err
21741        } && test -s conftest.$ac_objext; then
21742   ac_hi=$ac_mid; break
21743 else
21744   echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747         ac_lo=`expr $ac_mid + 1`
21748                         if test $ac_lo -le $ac_mid; then
21749                           ac_lo= ac_hi=
21750                           break
21751                         fi
21752                         ac_mid=`expr 2 '*' $ac_mid + 1`
21753 fi
21754
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756   done
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 $ac_includes_default
21768    typedef long long ac__type_sizeof_;
21769 int
21770 main ()
21771 {
21772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21773 test_array [0] = 0
21774
21775   ;
21776   return 0;
21777 }
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_compile") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } && {
21793          test -z "$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        } && test -s conftest.$ac_objext; then
21796   ac_hi=-1 ac_mid=-1
21797   while :; do
21798     cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 $ac_includes_default
21805    typedef long long ac__type_sizeof_;
21806 int
21807 main ()
21808 {
21809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21810 test_array [0] = 0
21811
21812   ;
21813   return 0;
21814 }
21815 _ACEOF
21816 rm -f conftest.$ac_objext
21817 if { (ac_try="$ac_compile"
21818 case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_compile") 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } && {
21830          test -z "$ac_c_werror_flag" ||
21831          test ! -s conftest.err
21832        } && test -s conftest.$ac_objext; then
21833   ac_lo=$ac_mid; break
21834 else
21835   echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838         ac_hi=`expr '(' $ac_mid ')' - 1`
21839                         if test $ac_mid -le $ac_hi; then
21840                           ac_lo= ac_hi=
21841                           break
21842                         fi
21843                         ac_mid=`expr 2 '*' $ac_mid`
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847   done
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         ac_lo= ac_hi=
21853 fi
21854
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 # Binary search between lo and hi bounds.
21860 while test "x$ac_lo" != "x$ac_hi"; do
21861   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21862   cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 $ac_includes_default
21869    typedef long long ac__type_sizeof_;
21870 int
21871 main ()
21872 {
21873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21874 test_array [0] = 0
21875
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887   (eval "$ac_compile") 2>conftest.er1
21888   ac_status=$?
21889   grep -v '^ *+' conftest.er1 >conftest.err
21890   rm -f conftest.er1
21891   cat conftest.err >&5
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); } && {
21894          test -z "$ac_c_werror_flag" ||
21895          test ! -s conftest.err
21896        } && test -s conftest.$ac_objext; then
21897   ac_hi=$ac_mid
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902         ac_lo=`expr '(' $ac_mid ')' + 1`
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 done
21907 case $ac_lo in
21908 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21909 '') if test "$ac_cv_type_long_long" = yes; then
21910      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21911 See \`config.log' for more details." >&5
21912 echo "$as_me: error: cannot compute sizeof (long long)
21913 See \`config.log' for more details." >&2;}
21914    { (exit 77); exit 77; }; }
21915    else
21916      ac_cv_sizeof_long_long=0
21917    fi ;;
21918 esac
21919 else
21920   cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926 $ac_includes_default
21927    typedef long long ac__type_sizeof_;
21928 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21929 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21930 #include <stdio.h>
21931 #include <stdlib.h>
21932 int
21933 main ()
21934 {
21935
21936   FILE *f = fopen ("conftest.val", "w");
21937   if (! f)
21938     return 1;
21939   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21940     {
21941       long int i = longval ();
21942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21943         return 1;
21944       fprintf (f, "%ld\n", i);
21945     }
21946   else
21947     {
21948       unsigned long int i = ulongval ();
21949       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21950         return 1;
21951       fprintf (f, "%lu\n", i);
21952     }
21953   return ferror (f) || fclose (f) != 0;
21954
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest$ac_exeext
21960 if { (ac_try="$ac_link"
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_link") 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970   { (case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_try") 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   ac_cv_sizeof_long_long=`cat conftest.val`
21980 else
21981   echo "$as_me: program exited with status $ac_status" >&5
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 ( exit $ac_status )
21986 if test "$ac_cv_type_long_long" = yes; then
21987      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21988 See \`config.log' for more details." >&5
21989 echo "$as_me: error: cannot compute sizeof (long long)
21990 See \`config.log' for more details." >&2;}
21991    { (exit 77); exit 77; }; }
21992    else
21993      ac_cv_sizeof_long_long=0
21994    fi
21995 fi
21996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21997 fi
21998 rm -f conftest.val
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22001 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22002
22003
22004
22005 cat >>confdefs.h <<_ACEOF
22006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22007 _ACEOF
22008
22009
22010     ;;
22011     *-hp-hpux* )
22012         { echo "$as_me:$LINENO: checking for long long" >&5
22013 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22014 if test "${ac_cv_type_long_long+set}" = set; then
22015   echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 $ac_includes_default
22024 typedef long long ac__type_new_;
22025 int
22026 main ()
22027 {
22028 if ((ac__type_new_ *) 0)
22029   return 0;
22030 if (sizeof (ac__type_new_))
22031   return 0;
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043   (eval "$ac_compile") 2>conftest.er1
22044   ac_status=$?
22045   grep -v '^ *+' conftest.er1 >conftest.err
22046   rm -f conftest.er1
22047   cat conftest.err >&5
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } && {
22050          test -z "$ac_c_werror_flag" ||
22051          test ! -s conftest.err
22052        } && test -s conftest.$ac_objext; then
22053   ac_cv_type_long_long=yes
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058         ac_cv_type_long_long=no
22059 fi
22060
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22062 fi
22063 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22064 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22065
22066 # The cast to long int works around a bug in the HP C Compiler
22067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22069 # This bug is HP SR number 8606223364.
22070 { echo "$as_me:$LINENO: checking size of long long" >&5
22071 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22072 if test "${ac_cv_sizeof_long_long+set}" = set; then
22073   echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22075   if test "$cross_compiling" = yes; then
22076   # Depending upon the size, compute the lo and hi bounds.
22077 cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083 $ac_includes_default
22084    typedef long long ac__type_sizeof_;
22085 int
22086 main ()
22087 {
22088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22089 test_array [0] = 0
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   ac_lo=0 ac_mid=0
22113   while :; do
22114     cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h.  */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h.  */
22120 $ac_includes_default
22121    typedef long long ac__type_sizeof_;
22122 int
22123 main ()
22124 {
22125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22126 test_array [0] = 0
22127
22128   ;
22129   return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_compile") 2>conftest.er1
22140   ac_status=$?
22141   grep -v '^ *+' conftest.er1 >conftest.err
22142   rm -f conftest.er1
22143   cat conftest.err >&5
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } && {
22146          test -z "$ac_c_werror_flag" ||
22147          test ! -s conftest.err
22148        } && test -s conftest.$ac_objext; then
22149   ac_hi=$ac_mid; break
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154         ac_lo=`expr $ac_mid + 1`
22155                         if test $ac_lo -le $ac_mid; then
22156                           ac_lo= ac_hi=
22157                           break
22158                         fi
22159                         ac_mid=`expr 2 '*' $ac_mid + 1`
22160 fi
22161
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163   done
22164 else
22165   echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168         cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 $ac_includes_default
22175    typedef long long ac__type_sizeof_;
22176 int
22177 main ()
22178 {
22179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22180 test_array [0] = 0
22181
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext
22187 if { (ac_try="$ac_compile"
22188 case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193   (eval "$ac_compile") 2>conftest.er1
22194   ac_status=$?
22195   grep -v '^ *+' conftest.er1 >conftest.err
22196   rm -f conftest.er1
22197   cat conftest.err >&5
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } && {
22200          test -z "$ac_c_werror_flag" ||
22201          test ! -s conftest.err
22202        } && test -s conftest.$ac_objext; then
22203   ac_hi=-1 ac_mid=-1
22204   while :; do
22205     cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h.  */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h.  */
22211 $ac_includes_default
22212    typedef long long ac__type_sizeof_;
22213 int
22214 main ()
22215 {
22216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22217 test_array [0] = 0
22218
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227   *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230   (eval "$ac_compile") 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } && {
22237          test -z "$ac_c_werror_flag" ||
22238          test ! -s conftest.err
22239        } && test -s conftest.$ac_objext; then
22240   ac_lo=$ac_mid; break
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245         ac_hi=`expr '(' $ac_mid ')' - 1`
22246                         if test $ac_mid -le $ac_hi; then
22247                           ac_lo= ac_hi=
22248                           break
22249                         fi
22250                         ac_mid=`expr 2 '*' $ac_mid`
22251 fi
22252
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254   done
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259         ac_lo= ac_hi=
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 # Binary search between lo and hi bounds.
22267 while test "x$ac_lo" != "x$ac_hi"; do
22268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22269   cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h.  */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h.  */
22275 $ac_includes_default
22276    typedef long long ac__type_sizeof_;
22277 int
22278 main ()
22279 {
22280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22281 test_array [0] = 0
22282
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext
22288 if { (ac_try="$ac_compile"
22289 case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_compile") 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } && {
22301          test -z "$ac_c_werror_flag" ||
22302          test ! -s conftest.err
22303        } && test -s conftest.$ac_objext; then
22304   ac_hi=$ac_mid
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309         ac_lo=`expr '(' $ac_mid ')' + 1`
22310 fi
22311
22312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313 done
22314 case $ac_lo in
22315 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22316 '') if test "$ac_cv_type_long_long" = yes; then
22317      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22318 See \`config.log' for more details." >&5
22319 echo "$as_me: error: cannot compute sizeof (long long)
22320 See \`config.log' for more details." >&2;}
22321    { (exit 77); exit 77; }; }
22322    else
22323      ac_cv_sizeof_long_long=0
22324    fi ;;
22325 esac
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 $ac_includes_default
22334    typedef long long ac__type_sizeof_;
22335 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22336 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22337 #include <stdio.h>
22338 #include <stdlib.h>
22339 int
22340 main ()
22341 {
22342
22343   FILE *f = fopen ("conftest.val", "w");
22344   if (! f)
22345     return 1;
22346   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22347     {
22348       long int i = longval ();
22349       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22350         return 1;
22351       fprintf (f, "%ld\n", i);
22352     }
22353   else
22354     {
22355       unsigned long int i = ulongval ();
22356       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22357         return 1;
22358       fprintf (f, "%lu\n", i);
22359     }
22360   return ferror (f) || fclose (f) != 0;
22361
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370   *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373   (eval "$ac_link") 2>&5
22374   ac_status=$?
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22377   { (case "(($ac_try" in
22378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379   *) ac_try_echo=$ac_try;;
22380 esac
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382   (eval "$ac_try") 2>&5
22383   ac_status=$?
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); }; }; then
22386   ac_cv_sizeof_long_long=`cat conftest.val`
22387 else
22388   echo "$as_me: program exited with status $ac_status" >&5
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392 ( exit $ac_status )
22393 if test "$ac_cv_type_long_long" = yes; then
22394      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22395 See \`config.log' for more details." >&5
22396 echo "$as_me: error: cannot compute sizeof (long long)
22397 See \`config.log' for more details." >&2;}
22398    { (exit 77); exit 77; }; }
22399    else
22400      ac_cv_sizeof_long_long=0
22401    fi
22402 fi
22403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 fi
22405 rm -f conftest.val
22406 fi
22407 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22408 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22409
22410
22411
22412 cat >>confdefs.h <<_ACEOF
22413 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22414 _ACEOF
22415
22416
22417         if test "$ac_cv_sizeof_long_long" != 0; then
22418                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22419         fi
22420     ;;
22421     * )
22422         { echo "$as_me:$LINENO: checking for long long" >&5
22423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22424 if test "${ac_cv_type_long_long+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 $ac_includes_default
22434 typedef long long ac__type_new_;
22435 int
22436 main ()
22437 {
22438 if ((ac__type_new_ *) 0)
22439   return 0;
22440 if (sizeof (ac__type_new_))
22441   return 0;
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450   *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453   (eval "$ac_compile") 2>conftest.er1
22454   ac_status=$?
22455   grep -v '^ *+' conftest.er1 >conftest.err
22456   rm -f conftest.er1
22457   cat conftest.err >&5
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } && {
22460          test -z "$ac_c_werror_flag" ||
22461          test ! -s conftest.err
22462        } && test -s conftest.$ac_objext; then
22463   ac_cv_type_long_long=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468         ac_cv_type_long_long=no
22469 fi
22470
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22474 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22475
22476 # The cast to long int works around a bug in the HP C Compiler
22477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22479 # This bug is HP SR number 8606223364.
22480 { echo "$as_me:$LINENO: checking size of long long" >&5
22481 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22482 if test "${ac_cv_sizeof_long_long+set}" = set; then
22483   echo $ECHO_N "(cached) $ECHO_C" >&6
22484 else
22485   if test "$cross_compiling" = yes; then
22486   # Depending upon the size, compute the lo and hi bounds.
22487 cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h.  */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h.  */
22493 $ac_includes_default
22494    typedef long long ac__type_sizeof_;
22495 int
22496 main ()
22497 {
22498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22499 test_array [0] = 0
22500
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512   (eval "$ac_compile") 2>conftest.er1
22513   ac_status=$?
22514   grep -v '^ *+' conftest.er1 >conftest.err
22515   rm -f conftest.er1
22516   cat conftest.err >&5
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); } && {
22519          test -z "$ac_c_werror_flag" ||
22520          test ! -s conftest.err
22521        } && test -s conftest.$ac_objext; then
22522   ac_lo=0 ac_mid=0
22523   while :; do
22524     cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 $ac_includes_default
22531    typedef long long ac__type_sizeof_;
22532 int
22533 main ()
22534 {
22535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22536 test_array [0] = 0
22537
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546   *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549   (eval "$ac_compile") 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } && {
22556          test -z "$ac_c_werror_flag" ||
22557          test ! -s conftest.err
22558        } && test -s conftest.$ac_objext; then
22559   ac_hi=$ac_mid; break
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564         ac_lo=`expr $ac_mid + 1`
22565                         if test $ac_lo -le $ac_mid; then
22566                           ac_lo= ac_hi=
22567                           break
22568                         fi
22569                         ac_mid=`expr 2 '*' $ac_mid + 1`
22570 fi
22571
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573   done
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578         cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 $ac_includes_default
22585    typedef long long ac__type_sizeof_;
22586 int
22587 main ()
22588 {
22589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22590 test_array [0] = 0
22591
22592   ;
22593   return 0;
22594 }
22595 _ACEOF
22596 rm -f conftest.$ac_objext
22597 if { (ac_try="$ac_compile"
22598 case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_compile") 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } && {
22610          test -z "$ac_c_werror_flag" ||
22611          test ! -s conftest.err
22612        } && test -s conftest.$ac_objext; then
22613   ac_hi=-1 ac_mid=-1
22614   while :; do
22615     cat >conftest.$ac_ext <<_ACEOF
22616 /* confdefs.h.  */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h.  */
22621 $ac_includes_default
22622    typedef long long ac__type_sizeof_;
22623 int
22624 main ()
22625 {
22626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22627 test_array [0] = 0
22628
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (ac_try="$ac_compile"
22635 case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_compile") 2>conftest.er1
22641   ac_status=$?
22642   grep -v '^ *+' conftest.er1 >conftest.err
22643   rm -f conftest.er1
22644   cat conftest.err >&5
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); } && {
22647          test -z "$ac_c_werror_flag" ||
22648          test ! -s conftest.err
22649        } && test -s conftest.$ac_objext; then
22650   ac_lo=$ac_mid; break
22651 else
22652   echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655         ac_hi=`expr '(' $ac_mid ')' - 1`
22656                         if test $ac_mid -le $ac_hi; then
22657                           ac_lo= ac_hi=
22658                           break
22659                         fi
22660                         ac_mid=`expr 2 '*' $ac_mid`
22661 fi
22662
22663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664   done
22665 else
22666   echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669         ac_lo= ac_hi=
22670 fi
22671
22672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22673 fi
22674
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 # Binary search between lo and hi bounds.
22677 while test "x$ac_lo" != "x$ac_hi"; do
22678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22679   cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685 $ac_includes_default
22686    typedef long long ac__type_sizeof_;
22687 int
22688 main ()
22689 {
22690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22691 test_array [0] = 0
22692
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_compile") 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } && {
22711          test -z "$ac_c_werror_flag" ||
22712          test ! -s conftest.err
22713        } && test -s conftest.$ac_objext; then
22714   ac_hi=$ac_mid
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719         ac_lo=`expr '(' $ac_mid ')' + 1`
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 done
22724 case $ac_lo in
22725 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22726 '') if test "$ac_cv_type_long_long" = yes; then
22727      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22728 See \`config.log' for more details." >&5
22729 echo "$as_me: error: cannot compute sizeof (long long)
22730 See \`config.log' for more details." >&2;}
22731    { (exit 77); exit 77; }; }
22732    else
22733      ac_cv_sizeof_long_long=0
22734    fi ;;
22735 esac
22736 else
22737   cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743 $ac_includes_default
22744    typedef long long ac__type_sizeof_;
22745 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22746 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22747 #include <stdio.h>
22748 #include <stdlib.h>
22749 int
22750 main ()
22751 {
22752
22753   FILE *f = fopen ("conftest.val", "w");
22754   if (! f)
22755     return 1;
22756   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22757     {
22758       long int i = longval ();
22759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22760         return 1;
22761       fprintf (f, "%ld\n", i);
22762     }
22763   else
22764     {
22765       unsigned long int i = ulongval ();
22766       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22767         return 1;
22768       fprintf (f, "%lu\n", i);
22769     }
22770   return ferror (f) || fclose (f) != 0;
22771
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest$ac_exeext
22777 if { (ac_try="$ac_link"
22778 case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_link") 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22787   { (case "(($ac_try" in
22788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789   *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792   (eval "$ac_try") 2>&5
22793   ac_status=$?
22794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795   (exit $ac_status); }; }; then
22796   ac_cv_sizeof_long_long=`cat conftest.val`
22797 else
22798   echo "$as_me: program exited with status $ac_status" >&5
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22801
22802 ( exit $ac_status )
22803 if test "$ac_cv_type_long_long" = yes; then
22804      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22805 See \`config.log' for more details." >&5
22806 echo "$as_me: error: cannot compute sizeof (long long)
22807 See \`config.log' for more details." >&2;}
22808    { (exit 77); exit 77; }; }
22809    else
22810      ac_cv_sizeof_long_long=0
22811    fi
22812 fi
22813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22814 fi
22815 rm -f conftest.val
22816 fi
22817 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22818 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22819
22820
22821
22822 cat >>confdefs.h <<_ACEOF
22823 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22824 _ACEOF
22825
22826
22827 esac
22828
22829 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22830 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22831 if test "${ac_cv_type_wchar_t+set}" = set; then
22832   echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834   cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840
22841         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22842         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22843         #  error "fake wchar_t"
22844         #endif
22845         #ifdef HAVE_WCHAR_H
22846         #  ifdef __CYGWIN__
22847         #    include <stddef.h>
22848         #  endif
22849         #  include <wchar.h>
22850         #endif
22851         #ifdef HAVE_STDLIB_H
22852         #  include <stdlib.h>
22853         #endif
22854         #include <stdio.h>
22855
22856
22857
22858 typedef wchar_t ac__type_new_;
22859 int
22860 main ()
22861 {
22862 if ((ac__type_new_ *) 0)
22863   return 0;
22864 if (sizeof (ac__type_new_))
22865   return 0;
22866   ;
22867   return 0;
22868 }
22869 _ACEOF
22870 rm -f conftest.$ac_objext
22871 if { (ac_try="$ac_compile"
22872 case "(($ac_try" in
22873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874   *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877   (eval "$ac_compile") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest.$ac_objext; then
22887   ac_cv_type_wchar_t=yes
22888 else
22889   echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892         ac_cv_type_wchar_t=no
22893 fi
22894
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 fi
22897 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22898 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22899
22900 # The cast to long int works around a bug in the HP C Compiler
22901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22903 # This bug is HP SR number 8606223364.
22904 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22905 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22906 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22907   echo $ECHO_N "(cached) $ECHO_C" >&6
22908 else
22909   if test "$cross_compiling" = yes; then
22910   # Depending upon the size, compute the lo and hi bounds.
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h.  */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h.  */
22917
22918         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22919         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22920         #  error "fake wchar_t"
22921         #endif
22922         #ifdef HAVE_WCHAR_H
22923         #  ifdef __CYGWIN__
22924         #    include <stddef.h>
22925         #  endif
22926         #  include <wchar.h>
22927         #endif
22928         #ifdef HAVE_STDLIB_H
22929         #  include <stdlib.h>
22930         #endif
22931         #include <stdio.h>
22932
22933
22934
22935    typedef wchar_t ac__type_sizeof_;
22936 int
22937 main ()
22938 {
22939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22940 test_array [0] = 0
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && {
22960          test -z "$ac_c_werror_flag" ||
22961          test ! -s conftest.err
22962        } && test -s conftest.$ac_objext; then
22963   ac_lo=0 ac_mid=0
22964   while :; do
22965     cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971
22972         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22973         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22974         #  error "fake wchar_t"
22975         #endif
22976         #ifdef HAVE_WCHAR_H
22977         #  ifdef __CYGWIN__
22978         #    include <stddef.h>
22979         #  endif
22980         #  include <wchar.h>
22981         #endif
22982         #ifdef HAVE_STDLIB_H
22983         #  include <stdlib.h>
22984         #endif
22985         #include <stdio.h>
22986
22987
22988
22989    typedef wchar_t ac__type_sizeof_;
22990 int
22991 main ()
22992 {
22993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22994 test_array [0] = 0
22995
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext
23001 if { (ac_try="$ac_compile"
23002 case "(($ac_try" in
23003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004   *) ac_try_echo=$ac_try;;
23005 esac
23006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007   (eval "$ac_compile") 2>conftest.er1
23008   ac_status=$?
23009   grep -v '^ *+' conftest.er1 >conftest.err
23010   rm -f conftest.er1
23011   cat conftest.err >&5
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); } && {
23014          test -z "$ac_c_werror_flag" ||
23015          test ! -s conftest.err
23016        } && test -s conftest.$ac_objext; then
23017   ac_hi=$ac_mid; break
23018 else
23019   echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23021
23022         ac_lo=`expr $ac_mid + 1`
23023                         if test $ac_lo -le $ac_mid; then
23024                           ac_lo= ac_hi=
23025                           break
23026                         fi
23027                         ac_mid=`expr 2 '*' $ac_mid + 1`
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031   done
23032 else
23033   echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036         cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042
23043         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23044         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23045         #  error "fake wchar_t"
23046         #endif
23047         #ifdef HAVE_WCHAR_H
23048         #  ifdef __CYGWIN__
23049         #    include <stddef.h>
23050         #  endif
23051         #  include <wchar.h>
23052         #endif
23053         #ifdef HAVE_STDLIB_H
23054         #  include <stdlib.h>
23055         #endif
23056         #include <stdio.h>
23057
23058
23059
23060    typedef wchar_t ac__type_sizeof_;
23061 int
23062 main ()
23063 {
23064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23065 test_array [0] = 0
23066
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_compile") 2>conftest.er1
23079   ac_status=$?
23080   grep -v '^ *+' conftest.er1 >conftest.err
23081   rm -f conftest.er1
23082   cat conftest.err >&5
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } && {
23085          test -z "$ac_c_werror_flag" ||
23086          test ! -s conftest.err
23087        } && test -s conftest.$ac_objext; then
23088   ac_hi=-1 ac_mid=-1
23089   while :; do
23090     cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096
23097         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23098         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23099         #  error "fake wchar_t"
23100         #endif
23101         #ifdef HAVE_WCHAR_H
23102         #  ifdef __CYGWIN__
23103         #    include <stddef.h>
23104         #  endif
23105         #  include <wchar.h>
23106         #endif
23107         #ifdef HAVE_STDLIB_H
23108         #  include <stdlib.h>
23109         #endif
23110         #include <stdio.h>
23111
23112
23113
23114    typedef wchar_t ac__type_sizeof_;
23115 int
23116 main ()
23117 {
23118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23119 test_array [0] = 0
23120
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (ac_try="$ac_compile"
23127 case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_compile") 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && {
23139          test -z "$ac_c_werror_flag" ||
23140          test ! -s conftest.err
23141        } && test -s conftest.$ac_objext; then
23142   ac_lo=$ac_mid; break
23143 else
23144   echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147         ac_hi=`expr '(' $ac_mid ')' - 1`
23148                         if test $ac_mid -le $ac_hi; then
23149                           ac_lo= ac_hi=
23150                           break
23151                         fi
23152                         ac_mid=`expr 2 '*' $ac_mid`
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156   done
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         ac_lo= ac_hi=
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 # Binary search between lo and hi bounds.
23169 while test "x$ac_lo" != "x$ac_hi"; do
23170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23171   cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h.  */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h.  */
23177
23178         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23179         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23180         #  error "fake wchar_t"
23181         #endif
23182         #ifdef HAVE_WCHAR_H
23183         #  ifdef __CYGWIN__
23184         #    include <stddef.h>
23185         #  endif
23186         #  include <wchar.h>
23187         #endif
23188         #ifdef HAVE_STDLIB_H
23189         #  include <stdlib.h>
23190         #endif
23191         #include <stdio.h>
23192
23193
23194
23195    typedef wchar_t ac__type_sizeof_;
23196 int
23197 main ()
23198 {
23199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23200 test_array [0] = 0
23201
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213   (eval "$ac_compile") 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } && {
23220          test -z "$ac_c_werror_flag" ||
23221          test ! -s conftest.err
23222        } && test -s conftest.$ac_objext; then
23223   ac_hi=$ac_mid
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228         ac_lo=`expr '(' $ac_mid ')' + 1`
23229 fi
23230
23231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232 done
23233 case $ac_lo in
23234 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23235 '') if test "$ac_cv_type_wchar_t" = yes; then
23236      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23237 See \`config.log' for more details." >&5
23238 echo "$as_me: error: cannot compute sizeof (wchar_t)
23239 See \`config.log' for more details." >&2;}
23240    { (exit 77); exit 77; }; }
23241    else
23242      ac_cv_sizeof_wchar_t=0
23243    fi ;;
23244 esac
23245 else
23246   cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h.  */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h.  */
23252
23253         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23254         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23255         #  error "fake wchar_t"
23256         #endif
23257         #ifdef HAVE_WCHAR_H
23258         #  ifdef __CYGWIN__
23259         #    include <stddef.h>
23260         #  endif
23261         #  include <wchar.h>
23262         #endif
23263         #ifdef HAVE_STDLIB_H
23264         #  include <stdlib.h>
23265         #endif
23266         #include <stdio.h>
23267
23268
23269
23270    typedef wchar_t ac__type_sizeof_;
23271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23273 #include <stdio.h>
23274 #include <stdlib.h>
23275 int
23276 main ()
23277 {
23278
23279   FILE *f = fopen ("conftest.val", "w");
23280   if (! f)
23281     return 1;
23282   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23283     {
23284       long int i = longval ();
23285       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23286         return 1;
23287       fprintf (f, "%ld\n", i);
23288     }
23289   else
23290     {
23291       unsigned long int i = ulongval ();
23292       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23293         return 1;
23294       fprintf (f, "%lu\n", i);
23295     }
23296   return ferror (f) || fclose (f) != 0;
23297
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest$ac_exeext
23303 if { (ac_try="$ac_link"
23304 case "(($ac_try" in
23305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306   *) ac_try_echo=$ac_try;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309   (eval "$ac_link") 2>&5
23310   ac_status=$?
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23313   { (case "(($ac_try" in
23314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315   *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318   (eval "$ac_try") 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; }; then
23322   ac_cv_sizeof_wchar_t=`cat conftest.val`
23323 else
23324   echo "$as_me: program exited with status $ac_status" >&5
23325 echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23327
23328 ( exit $ac_status )
23329 if test "$ac_cv_type_wchar_t" = yes; then
23330      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23331 See \`config.log' for more details." >&5
23332 echo "$as_me: error: cannot compute sizeof (wchar_t)
23333 See \`config.log' for more details." >&2;}
23334    { (exit 77); exit 77; }; }
23335    else
23336      ac_cv_sizeof_wchar_t=0
23337    fi
23338 fi
23339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23340 fi
23341 rm -f conftest.val
23342 fi
23343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23344 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23345
23346
23347
23348 cat >>confdefs.h <<_ACEOF
23349 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23350 _ACEOF
23351
23352
23353 if test "$ac_cv_sizeof_wchar_t" != 0; then
23354     wxUSE_WCHAR_T=yes
23355 else
23356     wxUSE_WCHAR_T=no
23357 fi
23358
23359 { echo "$as_me:$LINENO: checking for va_copy" >&5
23360 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23361 if test "${wx_cv_func_va_copy+set}" = set; then
23362   echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364
23365         ac_ext=cpp
23366 ac_cpp='$CXXCPP $CPPFLAGS'
23367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23370
23371         cat >conftest.$ac_ext <<_ACEOF
23372
23373             #include <stdarg.h>
23374             void foo(char *f, ...)
23375             {
23376                 va_list ap1, ap2;
23377                 va_start(ap1, f);
23378                 va_copy(ap2, ap1);
23379                 va_end(ap2);
23380                 va_end(ap1);
23381             }
23382             int main()
23383             {
23384                 foo("hi", 17);
23385                 return 0;
23386             }
23387 _ACEOF
23388 rm -f conftest.$ac_objext conftest$ac_exeext
23389 if { (ac_try="$ac_link"
23390 case "(($ac_try" in
23391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392   *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395   (eval "$ac_link") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_cxx_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest$ac_exeext &&
23405        $as_test_x conftest$ac_exeext; then
23406   wx_cv_func_va_copy=yes
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411         wx_cv_func_va_copy=no
23412
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23416       conftest$ac_exeext conftest.$ac_ext
23417         ac_ext=c
23418 ac_cpp='$CPP $CPPFLAGS'
23419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23422
23423
23424
23425 fi
23426 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23427 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23428
23429 if test $wx_cv_func_va_copy = "yes"; then
23430     cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_VA_COPY 1
23432 _ACEOF
23433
23434 else
23435         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23436 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23437 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23438   echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440
23441             if test "$cross_compiling" = yes; then
23442                   wx_cv_type_va_list_lvalue=yes
23443
23444 else
23445   cat >conftest.$ac_ext <<_ACEOF
23446
23447                 #include <stdarg.h>
23448                 int foo(char *f, ...)
23449                 {
23450                     va_list ap1, ap2;
23451                     va_start(ap1, f);
23452                     ap2 = ap1;
23453                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23454                         return 1;
23455                     va_end(ap2);
23456                     va_end(ap1);
23457                     return 0;
23458                 }
23459                 int main()
23460                 {
23461                     return foo("hi", 17);
23462                 }
23463 _ACEOF
23464 rm -f conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_link") 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475   { (case "(($ac_try" in
23476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477   *) ac_try_echo=$ac_try;;
23478 esac
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480   (eval "$ac_try") 2>&5
23481   ac_status=$?
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); }; }; then
23484   wx_cv_type_va_list_lvalue=yes
23485 else
23486   echo "$as_me: program exited with status $ac_status" >&5
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ( exit $ac_status )
23491 wx_cv_type_va_list_lvalue=no
23492 fi
23493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23494 fi
23495
23496
23497
23498
23499 fi
23500 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23501 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23502
23503     if test $wx_cv_type_va_list_lvalue != "yes"; then
23504                         cat >>confdefs.h <<\_ACEOF
23505 #define VA_LIST_IS_ARRAY 1
23506 _ACEOF
23507
23508     fi
23509 fi
23510
23511 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23512
23513 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23514 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23515 if test "${wx_cv_have_variadic_macros+set}" = set; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518
23519                         ac_ext=cpp
23520 ac_cpp='$CXXCPP $CPPFLAGS'
23521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23524
23525         cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h.  */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h.  */
23531
23532                     #include <stdio.h>
23533                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23534
23535 int
23536 main ()
23537 {
23538
23539                     test("%s %d %p", "test", 1, 0);
23540
23541
23542   ;
23543   return 0;
23544 }
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550   *) ac_try_echo=$ac_try;;
23551 esac
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553   (eval "$ac_compile") 2>conftest.er1
23554   ac_status=$?
23555   grep -v '^ *+' conftest.er1 >conftest.err
23556   rm -f conftest.er1
23557   cat conftest.err >&5
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } && {
23560          test -z "$ac_cxx_werror_flag" ||
23561          test ! -s conftest.err
23562        } && test -s conftest.$ac_objext; then
23563   wx_cv_have_variadic_macros=yes
23564 else
23565   echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568         wx_cv_have_variadic_macros=no
23569
23570 fi
23571
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573         ac_ext=c
23574 ac_cpp='$CPP $CPPFLAGS'
23575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23578
23579
23580
23581 fi
23582 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23583 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23584
23585 if test $wx_cv_have_variadic_macros = "yes"; then
23586     cat >>confdefs.h <<\_ACEOF
23587 #define HAVE_VARIADIC_MACROS 1
23588 _ACEOF
23589
23590 fi
23591
23592 fi
23593
23594 LARGEFILE_CPPFLAGS=
23595 # Check whether --enable-largefile was given.
23596 if test "${enable_largefile+set}" = set; then
23597   enableval=$enable_largefile;
23598 fi
23599
23600 if test "$enable_largefile" != no; then
23601             wx_largefile=no
23602
23603     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23604 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23605 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23606   echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608
23609           cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 #define _FILE_OFFSET_BITS 64
23616                           #include <sys/types.h>
23617 int
23618 main ()
23619 {
23620 typedef struct {
23621     unsigned int field: sizeof(off_t) == 8;
23622 } wxlf;
23623
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest.$ac_objext
23629 if { (ac_try="$ac_compile"
23630 case "(($ac_try" in
23631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632   *) ac_try_echo=$ac_try;;
23633 esac
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635   (eval "$ac_compile") 2>conftest.er1
23636   ac_status=$?
23637   grep -v '^ *+' conftest.er1 >conftest.err
23638   rm -f conftest.er1
23639   cat conftest.err >&5
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); } && {
23642          test -z "$ac_c_werror_flag" ||
23643          test ! -s conftest.err
23644        } && test -s conftest.$ac_objext; then
23645   ac_cv_sys_file_offset_bits=64
23646 else
23647   echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23649
23650         ac_cv_sys_file_offset_bits=no
23651 fi
23652
23653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654
23655
23656 fi
23657 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23658 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23659
23660     if test "$ac_cv_sys_file_offset_bits" != no; then
23661         wx_largefile=yes
23662         cat >>confdefs.h <<_ACEOF
23663 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23664 _ACEOF
23665
23666     fi
23667
23668     if test "x$wx_largefile" != "xyes"; then
23669
23670     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23671 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23672 if test "${ac_cv_sys_large_files+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675
23676           cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 #define _LARGE_FILES 1
23683                           #include <sys/types.h>
23684 int
23685 main ()
23686 {
23687 typedef struct {
23688     unsigned int field: sizeof(off_t) == 8;
23689 } wxlf;
23690
23691   ;
23692   return 0;
23693 }
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699   *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702   (eval "$ac_compile") 2>conftest.er1
23703   ac_status=$?
23704   grep -v '^ *+' conftest.er1 >conftest.err
23705   rm -f conftest.er1
23706   cat conftest.err >&5
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); } && {
23709          test -z "$ac_c_werror_flag" ||
23710          test ! -s conftest.err
23711        } && test -s conftest.$ac_objext; then
23712   ac_cv_sys_large_files=1
23713 else
23714   echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717         ac_cv_sys_large_files=no
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721
23722
23723 fi
23724 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23725 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23726
23727     if test "$ac_cv_sys_large_files" != no; then
23728         wx_largefile=yes
23729         cat >>confdefs.h <<_ACEOF
23730 #define _LARGE_FILES $ac_cv_sys_large_files
23731 _ACEOF
23732
23733     fi
23734
23735     fi
23736
23737     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23738 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23739     if test "x$wx_largefile" = "xyes"; then
23740         cat >>confdefs.h <<\_ACEOF
23741 #define HAVE_LARGEFILE_SUPPORT 1
23742 _ACEOF
23743
23744     fi
23745     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23746 echo "${ECHO_T}$wx_largefile" >&6; }
23747 fi
23748
23749 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23750     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23751 elif test "$ac_cv_sys_large_files" = 1; then
23752     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23753 fi
23754
23755 if test -n "$LARGEFILE_CPPFLAGS"; then
23756     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23757
23758                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23759         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23760 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23761 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23762   echo $ECHO_N "(cached) $ECHO_C" >&6
23763 else
23764
23765                 ac_ext=cpp
23766 ac_cpp='$CXXCPP $CPPFLAGS'
23767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23770
23771                 cat >conftest.$ac_ext <<_ACEOF
23772 /* confdefs.h.  */
23773 _ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h.  */
23777
23778 int
23779 main ()
23780 {
23781
23782                         #ifndef __STDC_EXT__
23783                             choke me
23784                         #endif
23785
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794   *) ac_try_echo=$ac_try;;
23795 esac
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797   (eval "$ac_compile") 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } && {
23804          test -z "$ac_cxx_werror_flag" ||
23805          test ! -s conftest.err
23806        } && test -s conftest.$ac_objext; then
23807   wx_cv_STDC_EXT_required=no
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812         wx_cv_STDC_EXT_required=yes
23813
23814 fi
23815
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817                 ac_ext=c
23818 ac_cpp='$CPP $CPPFLAGS'
23819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23822
23823
23824
23825 fi
23826 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23827 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23828         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23829             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23830         fi
23831     fi
23832 fi
23833
23834 ac_ext=cpp
23835 ac_cpp='$CXXCPP $CPPFLAGS'
23836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23839
23840 old_CPPFLAGS="$CPPFLAGS"
23841 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23842 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23843 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23844 if test "${ac_cv_sys_largefile_source+set}" = set; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847   while :; do
23848   cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h.  */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h.  */
23854 #include <sys/types.h> /* for off_t */
23855      #include <stdio.h>
23856 int
23857 main ()
23858 {
23859 int (*fp) (FILE *, off_t, int) = fseeko;
23860      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23861   ;
23862   return 0;
23863 }
23864 _ACEOF
23865 rm -f conftest.$ac_objext conftest$ac_exeext
23866 if { (ac_try="$ac_link"
23867 case "(($ac_try" in
23868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869   *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872   (eval "$ac_link") 2>conftest.er1
23873   ac_status=$?
23874   grep -v '^ *+' conftest.er1 >conftest.err
23875   rm -f conftest.er1
23876   cat conftest.err >&5
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } && {
23879          test -z "$ac_cxx_werror_flag" ||
23880          test ! -s conftest.err
23881        } && test -s conftest$ac_exeext &&
23882        $as_test_x conftest$ac_exeext; then
23883   ac_cv_sys_largefile_source=no; break
23884 else
23885   echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23887
23888
23889 fi
23890
23891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23892       conftest$ac_exeext conftest.$ac_ext
23893   cat >conftest.$ac_ext <<_ACEOF
23894 /* confdefs.h.  */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h.  */
23899 #define _LARGEFILE_SOURCE 1
23900 #include <sys/types.h> /* for off_t */
23901      #include <stdio.h>
23902 int
23903 main ()
23904 {
23905 int (*fp) (FILE *, off_t, int) = fseeko;
23906      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 rm -f conftest.$ac_objext conftest$ac_exeext
23912 if { (ac_try="$ac_link"
23913 case "(($ac_try" in
23914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915   *) ac_try_echo=$ac_try;;
23916 esac
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918   (eval "$ac_link") 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } && {
23925          test -z "$ac_cxx_werror_flag" ||
23926          test ! -s conftest.err
23927        } && test -s conftest$ac_exeext &&
23928        $as_test_x conftest$ac_exeext; then
23929   ac_cv_sys_largefile_source=1; break
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934
23935 fi
23936
23937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938       conftest$ac_exeext conftest.$ac_ext
23939   ac_cv_sys_largefile_source=unknown
23940   break
23941 done
23942 fi
23943 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23944 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23945 case $ac_cv_sys_largefile_source in #(
23946   no | unknown) ;;
23947   *)
23948 cat >>confdefs.h <<_ACEOF
23949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23950 _ACEOF
23951 ;;
23952 esac
23953 rm -f conftest*
23954
23955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23956 # in glibc 2.1.3, but that breaks too many other things.
23957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23958 if test $ac_cv_sys_largefile_source != unknown; then
23959
23960 cat >>confdefs.h <<\_ACEOF
23961 #define HAVE_FSEEKO 1
23962 _ACEOF
23963
23964 fi
23965
23966 CPPFLAGS="$old_CPPFLAGS"
23967 ac_ext=c
23968 ac_cpp='$CPP $CPPFLAGS'
23969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23972
23973 if test "$ac_cv_sys_largefile_source" != no; then
23974     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23975 fi
23976
23977 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23979 if test "${ac_cv_c_bigendian+set}" = set; then
23980   echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982   ac_cv_c_bigendian=unknown
23983 # See if sys/param.h defines the BYTE_ORDER macro.
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990 #include <sys/types.h>
23991 #include <sys/param.h>
23992 int
23993 main ()
23994 {
23995
23996 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23997  bogus endian macros
23998 #endif
23999   ;
24000   return 0;
24001 }
24002 _ACEOF
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007   *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010   (eval "$ac_compile") 2>conftest.er1
24011   ac_status=$?
24012   grep -v '^ *+' conftest.er1 >conftest.err
24013   rm -f conftest.er1
24014   cat conftest.err >&5
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); } && {
24017          test -z "$ac_c_werror_flag" ||
24018          test ! -s conftest.err
24019        } && test -s conftest.$ac_objext; then
24020   # It does; now see whether it defined to BIG_ENDIAN or not.
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h.  */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h.  */
24027 #include <sys/types.h>
24028 #include <sys/param.h>
24029 int
24030 main ()
24031 {
24032
24033 #if BYTE_ORDER != BIG_ENDIAN
24034  not big endian
24035 #endif
24036   ;
24037   return 0;
24038 }
24039 _ACEOF
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047   (eval "$ac_compile") 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } && {
24054          test -z "$ac_c_werror_flag" ||
24055          test ! -s conftest.err
24056        } && test -s conftest.$ac_objext; then
24057   ac_cv_c_bigendian=yes
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062         ac_cv_c_bigendian=no
24063 fi
24064
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 else
24067   echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070
24071 fi
24072
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 if test $ac_cv_c_bigendian = unknown; then
24075 if test "$cross_compiling" = yes; then
24076   ac_cv_c_bigendian=unknown
24077 else
24078   cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h.  */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h.  */
24084 main () {
24085   /* Are we little or big endian?  From Harbison&Steele.  */
24086   union
24087   {
24088     long l;
24089     char c[sizeof (long)];
24090   } u;
24091   u.l = 1;
24092   exit (u.c[sizeof (long) - 1] == 1);
24093 }
24094 _ACEOF
24095 rm -f conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099   *) ac_try_echo=$ac_try;;
24100 esac
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102   (eval "$ac_link") 2>&5
24103   ac_status=$?
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24106   { (case "(($ac_try" in
24107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24108   *) ac_try_echo=$ac_try;;
24109 esac
24110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24111   (eval "$ac_try") 2>&5
24112   ac_status=$?
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); }; }; then
24115   ac_cv_c_bigendian=no
24116 else
24117   echo "$as_me: program exited with status $ac_status" >&5
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121 ( exit $ac_status )
24122 ac_cv_c_bigendian=yes
24123 fi
24124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24125 fi
24126
24127
24128 fi
24129 fi
24130 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24131 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24132 if test $ac_cv_c_bigendian = unknown; then
24133   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
24134 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
24135 fi
24136 if test $ac_cv_c_bigendian = yes; then
24137   cat >>confdefs.h <<\_ACEOF
24138 #define WORDS_BIGENDIAN 1
24139 _ACEOF
24140
24141 fi
24142
24143
24144
24145
24146     ac_ext=cpp
24147 ac_cpp='$CXXCPP $CPPFLAGS'
24148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24151
24152
24153
24154 for ac_header in iostream
24155 do
24156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24160   echo $ECHO_N "(cached) $ECHO_C" >&6
24161 else
24162   cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168
24169
24170 #include <$ac_header>
24171 _ACEOF
24172 rm -f conftest.$ac_objext
24173 if { (ac_try="$ac_compile"
24174 case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179   (eval "$ac_compile") 2>conftest.er1
24180   ac_status=$?
24181   grep -v '^ *+' conftest.er1 >conftest.err
24182   rm -f conftest.er1
24183   cat conftest.err >&5
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); } && {
24186          test -z "$ac_cxx_werror_flag" ||
24187          test ! -s conftest.err
24188        } && test -s conftest.$ac_objext; then
24189   eval "$as_ac_Header=yes"
24190 else
24191   echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194         eval "$as_ac_Header=no"
24195 fi
24196
24197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24198 fi
24199 ac_res=`eval echo '${'$as_ac_Header'}'`
24200                { echo "$as_me:$LINENO: result: $ac_res" >&5
24201 echo "${ECHO_T}$ac_res" >&6; }
24202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24203   cat >>confdefs.h <<_ACEOF
24204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24205 _ACEOF
24206
24207 fi
24208
24209 done
24210
24211
24212     if test "$ac_cv_header_iostream" = "yes" ; then
24213       :
24214     else
24215       cat >>confdefs.h <<\_ACEOF
24216 #define wxUSE_IOSTREAMH 1
24217 _ACEOF
24218
24219     fi
24220
24221     ac_ext=c
24222 ac_cpp='$CPP $CPPFLAGS'
24223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24226
24227
24228
24229
24230   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24231 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24232 if test "${wx_cv_explicit+set}" = set; then
24233   echo $ECHO_N "(cached) $ECHO_C" >&6
24234 else
24235
24236
24237     ac_ext=cpp
24238 ac_cpp='$CXXCPP $CPPFLAGS'
24239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24242
24243
24244             cat >conftest.$ac_ext <<_ACEOF
24245 /* confdefs.h.  */
24246 _ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h.  */
24250
24251         class Foo { public: explicit Foo(int) {} };
24252
24253 int
24254 main ()
24255 {
24256
24257         return 0;
24258
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_compile") 2>conftest.er1
24271   ac_status=$?
24272   grep -v '^ *+' conftest.er1 >conftest.err
24273   rm -f conftest.er1
24274   cat conftest.err >&5
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); } && {
24277          test -z "$ac_cxx_werror_flag" ||
24278          test ! -s conftest.err
24279        } && test -s conftest.$ac_objext; then
24280
24281         cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287
24288                 class Foo { public: explicit Foo(int) {} };
24289                 static void TakeFoo(const Foo& foo) { }
24290
24291 int
24292 main ()
24293 {
24294
24295                 TakeFoo(17);
24296                 return 0;
24297
24298   ;
24299   return 0;
24300 }
24301 _ACEOF
24302 rm -f conftest.$ac_objext
24303 if { (ac_try="$ac_compile"
24304 case "(($ac_try" in
24305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306   *) ac_try_echo=$ac_try;;
24307 esac
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309   (eval "$ac_compile") 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } && {
24316          test -z "$ac_cxx_werror_flag" ||
24317          test ! -s conftest.err
24318        } && test -s conftest.$ac_objext; then
24319   wx_cv_explicit=no
24320 else
24321   echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24323
24324         wx_cv_explicit=yes
24325
24326 fi
24327
24328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24329
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334         wx_cv_explicit=no
24335
24336 fi
24337
24338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339
24340     ac_ext=c
24341 ac_cpp='$CPP $CPPFLAGS'
24342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24345
24346
24347 fi
24348 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24349 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24350
24351   if test "$wx_cv_explicit" = "yes"; then
24352     cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_EXPLICIT 1
24354 _ACEOF
24355
24356   fi
24357
24358
24359 if test "x$SUNCXX" = xyes; then
24360     CXXFLAGS="-features=tmplife $CXXFLAGS"
24361 fi
24362
24363 if test "x$SUNCC" = xyes; then
24364     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24365 fi
24366
24367 if test "x$SGICC" = "xyes"; then
24368     CFLAGS="-woff 3970 $CFLAGS"
24369 fi
24370 if test "x$SGICXX" = "xyes"; then
24371     CXXFLAGS="-woff 3970 $CXXFLAGS"
24372 fi
24373
24374 if test "x$HPCC" = "xyes"; then
24375                     CFLAGS="+W 2011,2450 $CFLAGS"
24376 fi
24377 if test "x$HPCXX" = "xyes"; then
24378                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24379 fi
24380
24381 if test "x$COMPAQCXX" = "xyes"; then
24382                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24383 fi
24384
24385 ac_ext=cpp
24386 ac_cpp='$CXXCPP $CPPFLAGS'
24387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24390
24391
24392 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24393     if test "$wxUSE_UNICODE" = "yes"; then
24394         std_string="std::wstring"
24395         char_type="wchar_t"
24396     else
24397         std_string="std::string"
24398         char_type="char"
24399     fi
24400
24401         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24402 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24403 if test "${wx_cv_class_stdstring+set}" = set; then
24404   echo $ECHO_N "(cached) $ECHO_C" >&6
24405 else
24406
24407             cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413 #include <string>
24414 int
24415 main ()
24416 {
24417 $std_string foo;
24418   ;
24419   return 0;
24420 }
24421 _ACEOF
24422 rm -f conftest.$ac_objext
24423 if { (ac_try="$ac_compile"
24424 case "(($ac_try" in
24425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426   *) ac_try_echo=$ac_try;;
24427 esac
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429   (eval "$ac_compile") 2>conftest.er1
24430   ac_status=$?
24431   grep -v '^ *+' conftest.er1 >conftest.err
24432   rm -f conftest.er1
24433   cat conftest.err >&5
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); } && {
24436          test -z "$ac_cxx_werror_flag" ||
24437          test ! -s conftest.err
24438        } && test -s conftest.$ac_objext; then
24439   wx_cv_class_stdstring=yes
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444         wx_cv_class_stdstring=no
24445
24446 fi
24447
24448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449
24450
24451 fi
24452 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24453 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24454
24455     if test "$wx_cv_class_stdstring" = yes; then
24456         if test "$wxUSE_UNICODE" = "yes"; then
24457             cat >>confdefs.h <<\_ACEOF
24458 #define HAVE_STD_WSTRING 1
24459 _ACEOF
24460
24461         fi
24462                     else
24463         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24464 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24465 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24466   echo $ECHO_N "(cached) $ECHO_C" >&6
24467 else
24468
24469                 cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h.  */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h.  */
24475
24476                     #ifdef HAVE_WCHAR_H
24477                     #  ifdef __CYGWIN__
24478                     #    include <stddef.h>
24479                     #  endif
24480                     #  include <wchar.h>
24481                     #endif
24482                     #ifdef HAVE_STDLIB_H
24483                     #  include <stdlib.h>
24484                     #endif
24485                     #include <stdio.h>
24486                     #include <string>
24487
24488 int
24489 main ()
24490 {
24491 std::basic_string<$char_type> foo;
24492                      const $char_type* dummy = foo.c_str();
24493   ;
24494   return 0;
24495 }
24496 _ACEOF
24497 rm -f conftest.$ac_objext
24498 if { (ac_try="$ac_compile"
24499 case "(($ac_try" in
24500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501   *) ac_try_echo=$ac_try;;
24502 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504   (eval "$ac_compile") 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } && {
24511          test -z "$ac_cxx_werror_flag" ||
24512          test ! -s conftest.err
24513        } && test -s conftest.$ac_objext; then
24514   wx_cv_class_stdbasicstring=yes
24515 else
24516   echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519         wx_cv_class_stdbasicstring=no
24520
24521 fi
24522
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524
24525
24526 fi
24527 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24528 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24529
24530         if test "$wx_cv_class_stdbasicstring" != yes; then
24531             if test "$wxUSE_STL" = "yes"; then
24532                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24533 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24534    { (exit 1); exit 1; }; }
24535             elif test "$wxUSE_STD_STRING" = "yes"; then
24536                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24537 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24538    { (exit 1); exit 1; }; }
24539             else
24540                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24541 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24542                 wxUSE_STD_STRING=no
24543             fi
24544         fi
24545     fi
24546 fi
24547
24548 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24549     { echo "$as_me:$LINENO: checking for std::istream" >&5
24550 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24551 if test "${ac_cv_type_std__istream+set}" = set; then
24552   echo $ECHO_N "(cached) $ECHO_C" >&6
24553 else
24554   cat >conftest.$ac_ext <<_ACEOF
24555 /* confdefs.h.  */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h.  */
24560 #include <iostream>
24561
24562 typedef std::istream ac__type_new_;
24563 int
24564 main ()
24565 {
24566 if ((ac__type_new_ *) 0)
24567   return 0;
24568 if (sizeof (ac__type_new_))
24569   return 0;
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578   *) ac_try_echo=$ac_try;;
24579 esac
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581   (eval "$ac_compile") 2>conftest.er1
24582   ac_status=$?
24583   grep -v '^ *+' conftest.er1 >conftest.err
24584   rm -f conftest.er1
24585   cat conftest.err >&5
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } && {
24588          test -z "$ac_cxx_werror_flag" ||
24589          test ! -s conftest.err
24590        } && test -s conftest.$ac_objext; then
24591   ac_cv_type_std__istream=yes
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596         ac_cv_type_std__istream=no
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600 fi
24601 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24602 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24603 if test $ac_cv_type_std__istream = yes; then
24604
24605 cat >>confdefs.h <<_ACEOF
24606 #define HAVE_STD__ISTREAM 1
24607 _ACEOF
24608
24609
24610 else
24611   wxUSE_STD_IOSTREAM=no
24612 fi
24613 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24614 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24615 if test "${ac_cv_type_std__ostream+set}" = set; then
24616   echo $ECHO_N "(cached) $ECHO_C" >&6
24617 else
24618   cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h.  */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h.  */
24624 #include <iostream>
24625
24626 typedef std::ostream ac__type_new_;
24627 int
24628 main ()
24629 {
24630 if ((ac__type_new_ *) 0)
24631   return 0;
24632 if (sizeof (ac__type_new_))
24633   return 0;
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_compile") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_cxx_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest.$ac_objext; then
24655   ac_cv_type_std__ostream=yes
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         ac_cv_type_std__ostream=no
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 fi
24665 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24666 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24667 if test $ac_cv_type_std__ostream = yes; then
24668
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_STD__OSTREAM 1
24671 _ACEOF
24672
24673
24674 else
24675   wxUSE_STD_IOSTREAM=no
24676 fi
24677
24678
24679     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24680         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24681             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24682 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24683    { (exit 1); exit 1; }; }
24684         else
24685             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24686 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24687         fi
24688     fi
24689 fi
24690
24691 if test "$wxUSE_STL" = "yes"; then
24692         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24693 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24694 if test "${wx_cv_lib_stl+set}" = set; then
24695   echo $ECHO_N "(cached) $ECHO_C" >&6
24696 else
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 #include <string>
24704             #include <functional>
24705             #include <algorithm>
24706             #include <vector>
24707             #include <list>
24708 int
24709 main ()
24710 {
24711 std::vector<int> moo;
24712              std::list<int> foo;
24713              std::vector<int>::iterator it =
24714                  std::find_if(moo.begin(), moo.end(),
24715                               std::bind2nd(std::less<int>(), 3));
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext
24721 if { (ac_try="$ac_compile"
24722 case "(($ac_try" in
24723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724   *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727   (eval "$ac_compile") 2>conftest.er1
24728   ac_status=$?
24729   grep -v '^ *+' conftest.er1 >conftest.err
24730   rm -f conftest.er1
24731   cat conftest.err >&5
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); } && {
24734          test -z "$ac_cxx_werror_flag" ||
24735          test ! -s conftest.err
24736        } && test -s conftest.$ac_objext; then
24737   wx_cv_lib_stl=yes
24738 else
24739   echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24741
24742         wx_cv_lib_stl=no
24743
24744 fi
24745
24746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24747
24748 fi
24749 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24750 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24751
24752     if test "$wx_cv_lib_stl" != yes; then
24753          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24754 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24755    { (exit 1); exit 1; }; }
24756     fi
24757
24758         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24759 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24760 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763   cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h.  */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h.  */
24769 #include <string>
24770 int
24771 main ()
24772 {
24773 std::string foo, bar;
24774             foo.compare(bar);
24775             foo.compare(1, 1, bar);
24776             foo.compare(1, 1, bar, 1, 1);
24777             foo.compare("");
24778             foo.compare(1, 1, "");
24779             foo.compare(1, 1, "", 2);
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788   *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791   (eval "$ac_compile") 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } && {
24798          test -z "$ac_cxx_werror_flag" ||
24799          test ! -s conftest.err
24800        } && test -s conftest.$ac_objext; then
24801   wx_cv_func_stdstring_compare=yes
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806         wx_cv_func_stdstring_compare=no
24807
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811
24812 fi
24813 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24814 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24815
24816     if test "$wx_cv_func_stdstring_compare" = yes; then
24817         cat >>confdefs.h <<\_ACEOF
24818 #define HAVE_STD_STRING_COMPARE 1
24819 _ACEOF
24820
24821     fi
24822
24823     if test "$wx_cv_class_gnuhashmapset" = yes; then
24824          cat >>confdefs.h <<\_ACEOF
24825 #define HAVE_EXT_HASH_MAP 1
24826 _ACEOF
24827
24828          cat >>confdefs.h <<\_ACEOF
24829 #define HAVE_GNU_CXX_HASH_MAP 1
24830 _ACEOF
24831
24832     fi
24833
24834     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24835 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24836 if test "${ac_cv_header_unordered_map+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h.  */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h.  */
24845
24846
24847
24848 #include <unordered_map>
24849 _ACEOF
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854   *) ac_try_echo=$ac_try;;
24855 esac
24856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857   (eval "$ac_compile") 2>conftest.er1
24858   ac_status=$?
24859   grep -v '^ *+' conftest.er1 >conftest.err
24860   rm -f conftest.er1
24861   cat conftest.err >&5
24862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); } && {
24864          test -z "$ac_cxx_werror_flag" ||
24865          test ! -s conftest.err
24866        } && test -s conftest.$ac_objext; then
24867   ac_cv_header_unordered_map=yes
24868 else
24869   echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872         ac_cv_header_unordered_map=no
24873 fi
24874
24875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 fi
24877 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24878 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24879 if test $ac_cv_header_unordered_map = yes; then
24880   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24881 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24882 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24883   echo $ECHO_N "(cached) $ECHO_C" >&6
24884 else
24885   cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 #include <unordered_map>
24892                 #include <unordered_set>
24893 int
24894 main ()
24895 {
24896 std::unordered_map<double*, char*> test1;
24897                  std::unordered_set<char*> test2;
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_compile") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_cxx_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest.$ac_objext; then
24919   wx_cv_class_stdunorderedmapset=yes
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         wx_cv_class_stdunorderedmapset=no
24925 fi
24926
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928
24929
24930 fi
24931 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24932 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24933 fi
24934
24935
24936
24937     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24938          cat >>confdefs.h <<\_ACEOF
24939 #define HAVE_STD_UNORDERED_MAP 1
24940 _ACEOF
24941
24942          cat >>confdefs.h <<\_ACEOF
24943 #define HAVE_STD_UNORDERED_SET 1
24944 _ACEOF
24945
24946     else
24947         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24948 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24949 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24950   echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952   cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958
24959
24960
24961 #include <tr1/unordered_map>
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_compile") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && {
24977          test -z "$ac_cxx_werror_flag" ||
24978          test ! -s conftest.err
24979        } && test -s conftest.$ac_objext; then
24980   ac_cv_header_tr1_unordered_map=yes
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985         ac_cv_header_tr1_unordered_map=no
24986 fi
24987
24988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24989 fi
24990 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24991 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24992 if test $ac_cv_header_tr1_unordered_map = yes; then
24993   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24994 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24995 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24996   echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
24998   cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004 #include <tr1/unordered_map>
25005                     #include <tr1/unordered_set>
25006 int
25007 main ()
25008 {
25009 std::tr1::unordered_map<double*, char*> test1;
25010                      std::tr1::unordered_set<char*> test2;
25011             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25012             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25013             #endif
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_compile") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_cxx_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest.$ac_objext; then
25035   wx_cv_class_tr1unorderedmapset=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         wx_cv_class_tr1unorderedmapset=no
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044
25045
25046 fi
25047 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25048 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25049 fi
25050
25051
25052
25053         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25054             cat >>confdefs.h <<\_ACEOF
25055 #define HAVE_TR1_UNORDERED_MAP 1
25056 _ACEOF
25057
25058             cat >>confdefs.h <<\_ACEOF
25059 #define HAVE_TR1_UNORDERED_SET 1
25060 _ACEOF
25061
25062         else
25063                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25064 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25065 if test "${ac_cv_header_hash_map+set}" = set; then
25066   echo $ECHO_N "(cached) $ECHO_C" >&6
25067 else
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
25075
25076
25077 #include <hash_map>
25078 _ACEOF
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083   *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086   (eval "$ac_compile") 2>conftest.er1
25087   ac_status=$?
25088   grep -v '^ *+' conftest.er1 >conftest.err
25089   rm -f conftest.er1
25090   cat conftest.err >&5
25091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092   (exit $ac_status); } && {
25093          test -z "$ac_cxx_werror_flag" ||
25094          test ! -s conftest.err
25095        } && test -s conftest.$ac_objext; then
25096   ac_cv_header_hash_map=yes
25097 else
25098   echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101         ac_cv_header_hash_map=no
25102 fi
25103
25104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 fi
25106 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25107 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25108 if test $ac_cv_header_hash_map = yes; then
25109   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25110 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25111 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25112   echo $ECHO_N "(cached) $ECHO_C" >&6
25113 else
25114   cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120 #include <hash_map>
25121                         #include <hash_set>
25122 int
25123 main ()
25124 {
25125 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25126                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25127   ;
25128   return 0;
25129 }
25130 _ACEOF
25131 rm -f conftest.$ac_objext
25132 if { (ac_try="$ac_compile"
25133 case "(($ac_try" in
25134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135   *) ac_try_echo=$ac_try;;
25136 esac
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138   (eval "$ac_compile") 2>conftest.er1
25139   ac_status=$?
25140   grep -v '^ *+' conftest.er1 >conftest.err
25141   rm -f conftest.er1
25142   cat conftest.err >&5
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } && {
25145          test -z "$ac_cxx_werror_flag" ||
25146          test ! -s conftest.err
25147        } && test -s conftest.$ac_objext; then
25148   wx_cv_class_stdhashmapset=yes
25149 else
25150   echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25152
25153         wx_cv_class_stdhashmapset=no
25154 fi
25155
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157
25158
25159 fi
25160 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25161 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25162 fi
25163
25164
25165
25166             if test "$wx_cv_class_stdhashmapset" = yes; then
25167                 cat >>confdefs.h <<\_ACEOF
25168 #define HAVE_HASH_MAP 1
25169 _ACEOF
25170
25171                 cat >>confdefs.h <<\_ACEOF
25172 #define HAVE_STD_HASH_MAP 1
25173 _ACEOF
25174
25175             fi
25176
25177             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25178 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25179 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188
25189
25190
25191 #include <ext/hash_map>
25192 _ACEOF
25193 rm -f conftest.$ac_objext
25194 if { (ac_try="$ac_compile"
25195 case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_compile") 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } && {
25207          test -z "$ac_cxx_werror_flag" ||
25208          test ! -s conftest.err
25209        } && test -s conftest.$ac_objext; then
25210   ac_cv_header_ext_hash_map=yes
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215         ac_cv_header_ext_hash_map=no
25216 fi
25217
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 fi
25220 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25221 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25222 if test $ac_cv_header_ext_hash_map = yes; then
25223   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25224 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25225 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25226   echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228   cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h.  */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h.  */
25234 #include <ext/hash_map>
25235                         #include <ext/hash_set>
25236 int
25237 main ()
25238 {
25239 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25240                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25241   ;
25242   return 0;
25243 }
25244 _ACEOF
25245 rm -f conftest.$ac_objext
25246 if { (ac_try="$ac_compile"
25247 case "(($ac_try" in
25248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249   *) ac_try_echo=$ac_try;;
25250 esac
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252   (eval "$ac_compile") 2>conftest.er1
25253   ac_status=$?
25254   grep -v '^ *+' conftest.er1 >conftest.err
25255   rm -f conftest.er1
25256   cat conftest.err >&5
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); } && {
25259          test -z "$ac_cxx_werror_flag" ||
25260          test ! -s conftest.err
25261        } && test -s conftest.$ac_objext; then
25262   wx_cv_class_gnuhashmapset=yes
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267         wx_cv_class_gnuhashmapset=no
25268 fi
25269
25270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25271
25272
25273 fi
25274 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25275 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25276 fi
25277
25278
25279
25280         fi
25281     fi
25282 fi
25283
25284
25285
25286   if test -n "$GCC"; then
25287     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25288 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25289     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25290   echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292
25293       cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299
25300 int
25301 main ()
25302 {
25303
25304           unsigned int value=0;
25305           /* wxAtomicInc doesn't use return value here */
25306           __sync_fetch_and_add(&value, 2);
25307           __sync_sub_and_fetch(&value, 1);
25308           /* but wxAtomicDec does, so mimic that: */
25309           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25310
25311   ;
25312   return 0;
25313 }
25314 _ACEOF
25315 rm -f conftest.$ac_objext conftest$ac_exeext
25316 if { (ac_try="$ac_link"
25317 case "(($ac_try" in
25318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319   *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322   (eval "$ac_link") 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } && {
25329          test -z "$ac_cxx_werror_flag" ||
25330          test ! -s conftest.err
25331        } && test -s conftest$ac_exeext &&
25332        $as_test_x conftest$ac_exeext; then
25333   wx_cv_cc_gcc_atomic_builtins=yes
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338         wx_cv_cc_gcc_atomic_builtins=no
25339 fi
25340
25341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25342       conftest$ac_exeext conftest.$ac_ext
25343
25344 fi
25345
25346     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25347 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25348     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25349       cat >>confdefs.h <<\_ACEOF
25350 #define HAVE_GCC_ATOMIC_BUILTINS 1
25351 _ACEOF
25352
25353     fi
25354   fi
25355
25356
25357 ac_ext=c
25358 ac_cpp='$CPP $CPPFLAGS'
25359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25362
25363
25364
25365 SEARCH_INCLUDE="\
25366     /usr/local/include        \
25367     /usr/local/X11/include    \
25368     /usr/local/include/X11    \
25369     /usr/local/X11R7/include  \
25370     /usr/local/X11R6/include  \
25371     /usr/local/include/X11R7  \
25372     /usr/local/include/X11R6  \
25373                               \
25374     /usr/Motif-2.1/include    \
25375     /usr/Motif-1.2/include    \
25376     /usr/include/Motif1.2     \
25377                               \
25378     /usr/dt/include           \
25379     /usr/openwin/include      \
25380                               \
25381     /usr/include/Xm           \
25382                               \
25383     /usr/X11R7/include        \
25384     /usr/X11R6/include        \
25385     /usr/X11R6.4/include      \
25386                               \
25387     /usr/include/X11R7        \
25388     /usr/include/X11R6        \
25389                               \
25390     /usr/X11/include          \
25391     /usr/include/X11          \
25392                               \
25393     /usr/XFree86/include/X11  \
25394     /usr/pkg/include          \
25395                               \
25396     /usr/local/X1R5/include  \
25397     /usr/local/include/X11R5  \
25398     /usr/X11R5/include        \
25399     /usr/include/X11R5        \
25400                               \
25401     /usr/local/X11R4/include  \
25402     /usr/local/include/X11R4  \
25403     /usr/X11R4/include        \
25404     /usr/include/X11R4        \
25405                               \
25406     /usr/openwin/share/include"
25407
25408 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25409 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25410
25411 case "${host}" in
25412     *-*-irix6* )
25413         if test "${wx_cv_std_libpath+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416
25417                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25418                     for e in a so sl dylib dll.a; do
25419                         libc="$d/libc.$e"
25420                         if test -f $libc; then
25421                             save_LIBS="$LIBS"
25422                             LIBS="$libc"
25423                             cat >conftest.$ac_ext <<_ACEOF
25424 int main() { return 0; }
25425 _ACEOF
25426 rm -f conftest.$ac_objext conftest$ac_exeext
25427 if { (ac_try="$ac_link"
25428 case "(($ac_try" in
25429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430   *) ac_try_echo=$ac_try;;
25431 esac
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433   (eval "$ac_link") 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } && {
25440          test -z "$ac_c_werror_flag" ||
25441          test ! -s conftest.err
25442        } && test -s conftest$ac_exeext &&
25443        $as_test_x conftest$ac_exeext; then
25444   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25445 else
25446   echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25448
25449
25450 fi
25451
25452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25453       conftest$ac_exeext conftest.$ac_ext
25454                             LIBS="$save_LIBS"
25455                             if test "x$wx_cv_std_libpath" != "x"; then
25456                                 break 2
25457                             fi
25458                         fi
25459                     done
25460                 done
25461                 if test "x$wx_cv_std_libpath" = "x"; then
25462                     wx_cv_std_libpath="lib"
25463                 fi
25464
25465
25466 fi
25467
25468         ;;
25469
25470     *-*-solaris2* )
25471                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25472             wx_cv_std_libpath="lib/64"
25473         else
25474             wx_cv_std_libpath="lib"
25475         fi
25476         ;;
25477
25478     *-*-linux* )
25479                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25480                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25481             wx_cv_std_libpath="lib64"
25482         else
25483             wx_cv_std_libpath="lib"
25484         fi
25485         ;;
25486
25487     *)
25488         wx_cv_std_libpath="lib";
25489         ;;
25490 esac
25491
25492 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25493 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25494
25495 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25496
25497 if test "$build" != "$host" -a "$GCC" = yes; then
25498                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25499         cross_root=`dirname $cross_root`
25500         cross_root=`dirname $cross_root`
25501
25502                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25503         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25504         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25505
25506                 if test -z "$PKG_CONFIG_PATH"; then
25507             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25508             export PKG_CONFIG_PATH
25509         fi
25510
25511                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25512
25513 ac_find_includes=
25514 for ac_dir in $SEARCH_INCLUDE /usr/include;
25515   do
25516     if test -f "$ac_dir/X11/Intrinsic.h"; then
25517       ac_find_includes=$ac_dir
25518       break
25519     fi
25520   done
25521
25522             x_includes=$ac_find_includes
25523         fi
25524         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25525
25526   ac_find_libraries=
25527   for ac_dir in $SEARCH_LIB;
25528   do
25529     for ac_extension in a so sl dylib dll.a; do
25530       if test -f "$ac_dir/libXt.$ac_extension"; then
25531         ac_find_libraries=$ac_dir
25532         break 2
25533       fi
25534     done
25535   done
25536
25537             x_libraries=$ac_find_libraries
25538         fi
25539     fi
25540 fi
25541
25542
25543 cat >confcache <<\_ACEOF
25544 # This file is a shell script that caches the results of configure
25545 # tests run on this system so they can be shared between configure
25546 # scripts and configure runs, see configure's option --config-cache.
25547 # It is not useful on other systems.  If it contains results you don't
25548 # want to keep, you may remove or edit it.
25549 #
25550 # config.status only pays attention to the cache file if you give it
25551 # the --recheck option to rerun configure.
25552 #
25553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25555 # following values.
25556
25557 _ACEOF
25558
25559 # The following way of writing the cache mishandles newlines in values,
25560 # but we know of no workaround that is simple, portable, and efficient.
25561 # So, we kill variables containing newlines.
25562 # Ultrix sh set writes to stderr and can't be redirected directly,
25563 # and sets the high bit in the cache file unless we assign to the vars.
25564 (
25565   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25566     eval ac_val=\$$ac_var
25567     case $ac_val in #(
25568     *${as_nl}*)
25569       case $ac_var in #(
25570       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25571 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25572       esac
25573       case $ac_var in #(
25574       _ | IFS | as_nl) ;; #(
25575       *) $as_unset $ac_var ;;
25576       esac ;;
25577     esac
25578   done
25579
25580   (set) 2>&1 |
25581     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25582     *${as_nl}ac_space=\ *)
25583       # `set' does not quote correctly, so add quotes (double-quote
25584       # substitution turns \\\\ into \\, and sed turns \\ into \).
25585       sed -n \
25586         "s/'/'\\\\''/g;
25587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25588       ;; #(
25589     *)
25590       # `set' quotes correctly as required by POSIX, so do not add quotes.
25591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25592       ;;
25593     esac |
25594     sort
25595 ) |
25596   sed '
25597      /^ac_cv_env_/b end
25598      t clear
25599      :clear
25600      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25601      t end
25602      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25603      :end' >>confcache
25604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25605   if test -w "$cache_file"; then
25606     test "x$cache_file" != "x/dev/null" &&
25607       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25608 echo "$as_me: updating cache $cache_file" >&6;}
25609     cat confcache >$cache_file
25610   else
25611     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25612 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25613   fi
25614 fi
25615 rm -f confcache
25616
25617 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25618     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25619 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25620 if test "${wx_cv_lib_glibc21+set}" = set; then
25621   echo $ECHO_N "(cached) $ECHO_C" >&6
25622 else
25623
25624         cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630 #include <features.h>
25631 int
25632 main ()
25633 {
25634
25635                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25636                 not glibc 2.1
25637                 #endif
25638
25639   ;
25640   return 0;
25641 }
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647   *) ac_try_echo=$ac_try;;
25648 esac
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650   (eval "$ac_compile") 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } && {
25657          test -z "$ac_c_werror_flag" ||
25658          test ! -s conftest.err
25659        } && test -s conftest.$ac_objext; then
25660
25661                 wx_cv_lib_glibc21=yes
25662
25663 else
25664   echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667
25668                 wx_cv_lib_glibc21=no
25669
25670
25671 fi
25672
25673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674
25675 fi
25676 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25677 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25678     if test "$wx_cv_lib_glibc21" = "yes"; then
25679         cat >>confdefs.h <<\_ACEOF
25680 #define wxHAVE_GLIBC2 1
25681 _ACEOF
25682
25683     fi
25684 fi
25685
25686 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25687     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25688         cat >>confdefs.h <<\_ACEOF
25689 #define _GNU_SOURCE 1
25690 _ACEOF
25691
25692     fi
25693 fi
25694
25695 have_cos=0
25696 have_floor=0
25697
25698 for ac_func in cos
25699 do
25700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25704   echo $ECHO_N "(cached) $ECHO_C" >&6
25705 else
25706   cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h.  */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h.  */
25712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25714 #define $ac_func innocuous_$ac_func
25715
25716 /* System header to define __stub macros and hopefully few prototypes,
25717     which can conflict with char $ac_func (); below.
25718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25719     <limits.h> exists even on freestanding compilers.  */
25720
25721 #ifdef __STDC__
25722 # include <limits.h>
25723 #else
25724 # include <assert.h>
25725 #endif
25726
25727 #undef $ac_func
25728
25729 /* Override any GCC internal prototype to avoid an error.
25730    Use char because int might match the return type of a GCC
25731    builtin and then its argument prototype would still apply.  */
25732 #ifdef __cplusplus
25733 extern "C"
25734 #endif
25735 char $ac_func ();
25736 /* The GNU C library defines this for functions which it implements
25737     to always fail with ENOSYS.  Some functions are actually named
25738     something starting with __ and the normal name is an alias.  */
25739 #if defined __stub_$ac_func || defined __stub___$ac_func
25740 choke me
25741 #endif
25742
25743 int
25744 main ()
25745 {
25746 return $ac_func ();
25747   ;
25748   return 0;
25749 }
25750 _ACEOF
25751 rm -f conftest.$ac_objext conftest$ac_exeext
25752 if { (ac_try="$ac_link"
25753 case "(($ac_try" in
25754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755   *) ac_try_echo=$ac_try;;
25756 esac
25757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25758   (eval "$ac_link") 2>conftest.er1
25759   ac_status=$?
25760   grep -v '^ *+' conftest.er1 >conftest.err
25761   rm -f conftest.er1
25762   cat conftest.err >&5
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); } && {
25765          test -z "$ac_c_werror_flag" ||
25766          test ! -s conftest.err
25767        } && test -s conftest$ac_exeext &&
25768        $as_test_x conftest$ac_exeext; then
25769   eval "$as_ac_var=yes"
25770 else
25771   echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25773
25774         eval "$as_ac_var=no"
25775 fi
25776
25777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25778       conftest$ac_exeext conftest.$ac_ext
25779 fi
25780 ac_res=`eval echo '${'$as_ac_var'}'`
25781                { echo "$as_me:$LINENO: result: $ac_res" >&5
25782 echo "${ECHO_T}$ac_res" >&6; }
25783 if test `eval echo '${'$as_ac_var'}'` = yes; then
25784   cat >>confdefs.h <<_ACEOF
25785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25786 _ACEOF
25787  have_cos=1
25788 fi
25789 done
25790
25791
25792 for ac_func in floor
25793 do
25794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25798   echo $ECHO_N "(cached) $ECHO_C" >&6
25799 else
25800   cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25808 #define $ac_func innocuous_$ac_func
25809
25810 /* System header to define __stub macros and hopefully few prototypes,
25811     which can conflict with char $ac_func (); below.
25812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25813     <limits.h> exists even on freestanding compilers.  */
25814
25815 #ifdef __STDC__
25816 # include <limits.h>
25817 #else
25818 # include <assert.h>
25819 #endif
25820
25821 #undef $ac_func
25822
25823 /* Override any GCC internal prototype to avoid an error.
25824    Use char because int might match the return type of a GCC
25825    builtin and then its argument prototype would still apply.  */
25826 #ifdef __cplusplus
25827 extern "C"
25828 #endif
25829 char $ac_func ();
25830 /* The GNU C library defines this for functions which it implements
25831     to always fail with ENOSYS.  Some functions are actually named
25832     something starting with __ and the normal name is an alias.  */
25833 #if defined __stub_$ac_func || defined __stub___$ac_func
25834 choke me
25835 #endif
25836
25837 int
25838 main ()
25839 {
25840 return $ac_func ();
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 rm -f conftest.$ac_objext conftest$ac_exeext
25846 if { (ac_try="$ac_link"
25847 case "(($ac_try" in
25848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849   *) ac_try_echo=$ac_try;;
25850 esac
25851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25852   (eval "$ac_link") 2>conftest.er1
25853   ac_status=$?
25854   grep -v '^ *+' conftest.er1 >conftest.err
25855   rm -f conftest.er1
25856   cat conftest.err >&5
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } && {
25859          test -z "$ac_c_werror_flag" ||
25860          test ! -s conftest.err
25861        } && test -s conftest$ac_exeext &&
25862        $as_test_x conftest$ac_exeext; then
25863   eval "$as_ac_var=yes"
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868         eval "$as_ac_var=no"
25869 fi
25870
25871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25872       conftest$ac_exeext conftest.$ac_ext
25873 fi
25874 ac_res=`eval echo '${'$as_ac_var'}'`
25875                { echo "$as_me:$LINENO: result: $ac_res" >&5
25876 echo "${ECHO_T}$ac_res" >&6; }
25877 if test `eval echo '${'$as_ac_var'}'` = yes; then
25878   cat >>confdefs.h <<_ACEOF
25879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25880 _ACEOF
25881  have_floor=1
25882 fi
25883 done
25884
25885 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25886 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25887 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25888     { echo "$as_me:$LINENO: result: yes" >&5
25889 echo "${ECHO_T}yes" >&6; }
25890 else
25891     { echo "$as_me:$LINENO: result: no" >&5
25892 echo "${ECHO_T}no" >&6; }
25893     LIBS="$LIBS -lm"
25894     # use different functions to avoid configure caching
25895     have_sin=0
25896     have_ceil=0
25897
25898 for ac_func in sin
25899 do
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any GCC internal prototype to avoid an error.
25930    Use char because int might match the return type of a GCC
25931    builtin and then its argument prototype would still apply.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 #endif
25935 char $ac_func ();
25936 /* The GNU C library defines this for functions which it implements
25937     to always fail with ENOSYS.  Some functions are actually named
25938     something starting with __ and the normal name is an alias.  */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25940 choke me
25941 #endif
25942
25943 int
25944 main ()
25945 {
25946 return $ac_func ();
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_link") 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } && {
25965          test -z "$ac_c_werror_flag" ||
25966          test ! -s conftest.err
25967        } && test -s conftest$ac_exeext &&
25968        $as_test_x conftest$ac_exeext; then
25969   eval "$as_ac_var=yes"
25970 else
25971   echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974         eval "$as_ac_var=no"
25975 fi
25976
25977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25978       conftest$ac_exeext conftest.$ac_ext
25979 fi
25980 ac_res=`eval echo '${'$as_ac_var'}'`
25981                { echo "$as_me:$LINENO: result: $ac_res" >&5
25982 echo "${ECHO_T}$ac_res" >&6; }
25983 if test `eval echo '${'$as_ac_var'}'` = yes; then
25984   cat >>confdefs.h <<_ACEOF
25985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25986 _ACEOF
25987  have_sin=1
25988 fi
25989 done
25990
25991
25992 for ac_func in ceil
25993 do
25994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25998   echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000   cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h.  */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h.  */
26006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26008 #define $ac_func innocuous_$ac_func
26009
26010 /* System header to define __stub macros and hopefully few prototypes,
26011     which can conflict with char $ac_func (); below.
26012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26013     <limits.h> exists even on freestanding compilers.  */
26014
26015 #ifdef __STDC__
26016 # include <limits.h>
26017 #else
26018 # include <assert.h>
26019 #endif
26020
26021 #undef $ac_func
26022
26023 /* Override any GCC internal prototype to avoid an error.
26024    Use char because int might match the return type of a GCC
26025    builtin and then its argument prototype would still apply.  */
26026 #ifdef __cplusplus
26027 extern "C"
26028 #endif
26029 char $ac_func ();
26030 /* The GNU C library defines this for functions which it implements
26031     to always fail with ENOSYS.  Some functions are actually named
26032     something starting with __ and the normal name is an alias.  */
26033 #if defined __stub_$ac_func || defined __stub___$ac_func
26034 choke me
26035 #endif
26036
26037 int
26038 main ()
26039 {
26040 return $ac_func ();
26041   ;
26042   return 0;
26043 }
26044 _ACEOF
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (ac_try="$ac_link"
26047 case "(($ac_try" in
26048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049   *) ac_try_echo=$ac_try;;
26050 esac
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052   (eval "$ac_link") 2>conftest.er1
26053   ac_status=$?
26054   grep -v '^ *+' conftest.er1 >conftest.err
26055   rm -f conftest.er1
26056   cat conftest.err >&5
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } && {
26059          test -z "$ac_c_werror_flag" ||
26060          test ! -s conftest.err
26061        } && test -s conftest$ac_exeext &&
26062        $as_test_x conftest$ac_exeext; then
26063   eval "$as_ac_var=yes"
26064 else
26065   echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068         eval "$as_ac_var=no"
26069 fi
26070
26071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26072       conftest$ac_exeext conftest.$ac_ext
26073 fi
26074 ac_res=`eval echo '${'$as_ac_var'}'`
26075                { echo "$as_me:$LINENO: result: $ac_res" >&5
26076 echo "${ECHO_T}$ac_res" >&6; }
26077 if test `eval echo '${'$as_ac_var'}'` = yes; then
26078   cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26080 _ACEOF
26081  have_ceil=1
26082 fi
26083 done
26084
26085     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26086 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26087     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26088         { echo "$as_me:$LINENO: result: yes" >&5
26089 echo "${ECHO_T}yes" >&6; }
26090     else
26091         { echo "$as_me:$LINENO: result: no" >&5
26092 echo "${ECHO_T}no" >&6; }
26093         # not sure we should warn the user, crash, etc.
26094     fi
26095 fi
26096
26097 ac_ext=cpp
26098 ac_cpp='$CXXCPP $CPPFLAGS'
26099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26102
26103 if test "wxUSE_UNICODE" = "yes"; then
26104
26105   for wx_func in wcstoull
26106   do
26107     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26108 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26109 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26110   echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112
26113         cat >conftest.$ac_ext <<_ACEOF
26114
26115             /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120
26121
26122                 $ac_includes_default
26123
26124 int
26125 main ()
26126 {
26127
26128                 #ifndef $wx_func
26129                   &$wx_func;
26130                 #endif
26131
26132
26133   ;
26134   return 0;
26135 }
26136
26137 _ACEOF
26138 rm -f conftest.$ac_objext conftest$ac_exeext
26139 if { (ac_try="$ac_link"
26140 case "(($ac_try" in
26141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142   *) ac_try_echo=$ac_try;;
26143 esac
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145   (eval "$ac_link") 2>conftest.er1
26146   ac_status=$?
26147   grep -v '^ *+' conftest.er1 >conftest.err
26148   rm -f conftest.er1
26149   cat conftest.err >&5
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); } && {
26152          test -z "$ac_cxx_werror_flag" ||
26153          test ! -s conftest.err
26154        } && test -s conftest$ac_exeext &&
26155        $as_test_x conftest$ac_exeext; then
26156   eval wx_cv_func_$wx_func=yes
26157 else
26158   echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26160
26161         eval wx_cv_func_$wx_func=no
26162 fi
26163
26164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26165       conftest$ac_exeext conftest.$ac_ext
26166
26167 fi
26168 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26169                { echo "$as_me:$LINENO: result: $ac_res" >&5
26170 echo "${ECHO_T}$ac_res" >&6; }
26171
26172     if eval test \$wx_cv_func_$wx_func = yes
26173     then
26174       cat >>confdefs.h <<_ACEOF
26175 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26176 _ACEOF
26177
26178
26179     else
26180       :
26181
26182     fi
26183   done
26184
26185 else
26186
26187   for wx_func in strtoull
26188   do
26189     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26190 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26191 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26192   echo $ECHO_N "(cached) $ECHO_C" >&6
26193 else
26194
26195         cat >conftest.$ac_ext <<_ACEOF
26196
26197             /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202
26203
26204                 $ac_includes_default
26205
26206 int
26207 main ()
26208 {
26209
26210                 #ifndef $wx_func
26211                   &$wx_func;
26212                 #endif
26213
26214
26215   ;
26216   return 0;
26217 }
26218
26219 _ACEOF
26220 rm -f conftest.$ac_objext conftest$ac_exeext
26221 if { (ac_try="$ac_link"
26222 case "(($ac_try" in
26223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224   *) ac_try_echo=$ac_try;;
26225 esac
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227   (eval "$ac_link") 2>conftest.er1
26228   ac_status=$?
26229   grep -v '^ *+' conftest.er1 >conftest.err
26230   rm -f conftest.er1
26231   cat conftest.err >&5
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); } && {
26234          test -z "$ac_cxx_werror_flag" ||
26235          test ! -s conftest.err
26236        } && test -s conftest$ac_exeext &&
26237        $as_test_x conftest$ac_exeext; then
26238   eval wx_cv_func_$wx_func=yes
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243         eval wx_cv_func_$wx_func=no
26244 fi
26245
26246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26247       conftest$ac_exeext conftest.$ac_ext
26248
26249 fi
26250 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26251                { echo "$as_me:$LINENO: result: $ac_res" >&5
26252 echo "${ECHO_T}$ac_res" >&6; }
26253
26254     if eval test \$wx_cv_func_$wx_func = yes
26255     then
26256       cat >>confdefs.h <<_ACEOF
26257 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26258 _ACEOF
26259
26260
26261     else
26262       :
26263
26264     fi
26265   done
26266
26267 fi
26268 ac_ext=c
26269 ac_cpp='$CPP $CPPFLAGS'
26270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26273
26274
26275
26276
26277 if test "$wxUSE_REGEX" != "no"; then
26278     cat >>confdefs.h <<\_ACEOF
26279 #define wxUSE_REGEX 1
26280 _ACEOF
26281
26282
26283     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26284         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26285 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26286         wxUSE_REGEX=builtin
26287     fi
26288
26289     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26290                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26291 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26292 if test "${ac_cv_header_regex_h+set}" = set; then
26293   echo $ECHO_N "(cached) $ECHO_C" >&6
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301
26302
26303 #include <regex.h>
26304 _ACEOF
26305 rm -f conftest.$ac_objext
26306 if { (ac_try="$ac_compile"
26307 case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_compile") 2>conftest.er1
26313   ac_status=$?
26314   grep -v '^ *+' conftest.er1 >conftest.err
26315   rm -f conftest.er1
26316   cat conftest.err >&5
26317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318   (exit $ac_status); } && {
26319          test -z "$ac_c_werror_flag" ||
26320          test ! -s conftest.err
26321        } && test -s conftest.$ac_objext; then
26322   ac_cv_header_regex_h=yes
26323 else
26324   echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327         ac_cv_header_regex_h=no
26328 fi
26329
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331 fi
26332 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26333 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26334 if test $ac_cv_header_regex_h = yes; then
26335
26336
26337 for ac_func in regcomp re_search
26338 do
26339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26343   echo $ECHO_N "(cached) $ECHO_C" >&6
26344 else
26345   cat >conftest.$ac_ext <<_ACEOF
26346 /* confdefs.h.  */
26347 _ACEOF
26348 cat confdefs.h >>conftest.$ac_ext
26349 cat >>conftest.$ac_ext <<_ACEOF
26350 /* end confdefs.h.  */
26351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26353 #define $ac_func innocuous_$ac_func
26354
26355 /* System header to define __stub macros and hopefully few prototypes,
26356     which can conflict with char $ac_func (); below.
26357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26358     <limits.h> exists even on freestanding compilers.  */
26359
26360 #ifdef __STDC__
26361 # include <limits.h>
26362 #else
26363 # include <assert.h>
26364 #endif
26365
26366 #undef $ac_func
26367
26368 /* Override any GCC internal prototype to avoid an error.
26369    Use char because int might match the return type of a GCC
26370    builtin and then its argument prototype would still apply.  */
26371 #ifdef __cplusplus
26372 extern "C"
26373 #endif
26374 char $ac_func ();
26375 /* The GNU C library defines this for functions which it implements
26376     to always fail with ENOSYS.  Some functions are actually named
26377     something starting with __ and the normal name is an alias.  */
26378 #if defined __stub_$ac_func || defined __stub___$ac_func
26379 choke me
26380 #endif
26381
26382 int
26383 main ()
26384 {
26385 return $ac_func ();
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (ac_try="$ac_link"
26392 case "(($ac_try" in
26393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394   *) ac_try_echo=$ac_try;;
26395 esac
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397   (eval "$ac_link") 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } && {
26404          test -z "$ac_c_werror_flag" ||
26405          test ! -s conftest.err
26406        } && test -s conftest$ac_exeext &&
26407        $as_test_x conftest$ac_exeext; then
26408   eval "$as_ac_var=yes"
26409 else
26410   echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26412
26413         eval "$as_ac_var=no"
26414 fi
26415
26416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26417       conftest$ac_exeext conftest.$ac_ext
26418 fi
26419 ac_res=`eval echo '${'$as_ac_var'}'`
26420                { echo "$as_me:$LINENO: result: $ac_res" >&5
26421 echo "${ECHO_T}$ac_res" >&6; }
26422 if test `eval echo '${'$as_ac_var'}'` = yes; then
26423   cat >>confdefs.h <<_ACEOF
26424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26425 _ACEOF
26426
26427 fi
26428 done
26429
26430 fi
26431
26432
26433
26434         if test "x$ac_cv_func_regcomp" != "xyes"; then
26435             if test "$wxUSE_REGEX" = "sys" ; then
26436                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26437 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26438    { (exit 1); exit 1; }; }
26439             else
26440                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26441 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26442                 wxUSE_REGEX=builtin
26443             fi
26444         else
26445                         wxUSE_REGEX=sys
26446                         cat >>confdefs.h <<\_ACEOF
26447 #define WX_NO_REGEX_ADVANCED 1
26448 _ACEOF
26449
26450         fi
26451     fi
26452 fi
26453
26454
26455 ZLIB_LINK=
26456 if test "$wxUSE_ZLIB" != "no" ; then
26457     cat >>confdefs.h <<\_ACEOF
26458 #define wxUSE_ZLIB 1
26459 _ACEOF
26460
26461
26462     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26463                                                 if test "$USE_DARWIN" = 1; then
26464             system_zlib_h_ok="yes"
26465         else
26466                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26467 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26468 if test "${ac_cv_header_zlib_h+set}" = set; then
26469   echo $ECHO_N "(cached) $ECHO_C" >&6
26470 else
26471   if test "$cross_compiling" = yes; then
26472                       unset ac_cv_header_zlib_h
26473
26474 else
26475   cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481
26482                         #include <zlib.h>
26483                         #include <stdio.h>
26484
26485                         int main()
26486                         {
26487                             FILE *f=fopen("conftestval", "w");
26488                             if (!f) exit(1);
26489                             fprintf(f, "%s",
26490                                     ZLIB_VERSION[0] == '1' &&
26491                                     (ZLIB_VERSION[2] > '1' ||
26492                                     (ZLIB_VERSION[2] == '1' &&
26493                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26494                             exit(0);
26495                         }
26496
26497 _ACEOF
26498 rm -f conftest$ac_exeext
26499 if { (ac_try="$ac_link"
26500 case "(($ac_try" in
26501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502   *) ac_try_echo=$ac_try;;
26503 esac
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505   (eval "$ac_link") 2>&5
26506   ac_status=$?
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26509   { (case "(($ac_try" in
26510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511   *) ac_try_echo=$ac_try;;
26512 esac
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514   (eval "$ac_try") 2>&5
26515   ac_status=$?
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); }; }; then
26518   ac_cv_header_zlib_h=`cat conftestval`
26519 else
26520   echo "$as_me: program exited with status $ac_status" >&5
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 ( exit $ac_status )
26525 ac_cv_header_zlib_h=no
26526 fi
26527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26528 fi
26529
26530
26531
26532 fi
26533 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26534 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26535                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26536 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26537 if test "${ac_cv_header_zlib_h+set}" = set; then
26538   echo $ECHO_N "(cached) $ECHO_C" >&6
26539 else
26540   cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h.  */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h.  */
26546
26547
26548 #include <zlib.h>
26549 _ACEOF
26550 rm -f conftest.$ac_objext
26551 if { (ac_try="$ac_compile"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_compile") 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } && {
26564          test -z "$ac_c_werror_flag" ||
26565          test ! -s conftest.err
26566        } && test -s conftest.$ac_objext; then
26567   ac_cv_header_zlib_h=yes
26568 else
26569   echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572         ac_cv_header_zlib_h=no
26573 fi
26574
26575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26576 fi
26577 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26578 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26579
26580
26581
26582             system_zlib_h_ok=$ac_cv_header_zlib_h
26583         fi
26584
26585         if test "$system_zlib_h_ok" = "yes"; then
26586             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26587 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_z_deflate+set}" = set; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591   ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-lz  $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601    Use char because int might match the return type of a GCC
26602    builtin and then its argument prototype would still apply.  */
26603 #ifdef __cplusplus
26604 extern "C"
26605 #endif
26606 char deflate ();
26607 int
26608 main ()
26609 {
26610 return deflate ();
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622   (eval "$ac_link") 2>conftest.er1
26623   ac_status=$?
26624   grep -v '^ *+' conftest.er1 >conftest.err
26625   rm -f conftest.er1
26626   cat conftest.err >&5
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); } && {
26629          test -z "$ac_c_werror_flag" ||
26630          test ! -s conftest.err
26631        } && test -s conftest$ac_exeext &&
26632        $as_test_x conftest$ac_exeext; then
26633   ac_cv_lib_z_deflate=yes
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638         ac_cv_lib_z_deflate=no
26639 fi
26640
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642       conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26644 fi
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26646 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26647 if test $ac_cv_lib_z_deflate = yes; then
26648   ZLIB_LINK=" -lz"
26649 fi
26650
26651         fi
26652
26653         if test "x$ZLIB_LINK" = "x" ; then
26654             if test "$wxUSE_ZLIB" = "sys" ; then
26655                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26656 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26657    { (exit 1); exit 1; }; }
26658             else
26659                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26660 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26661                 wxUSE_ZLIB=builtin
26662             fi
26663         else
26664                         wxUSE_ZLIB=sys
26665         fi
26666     fi
26667 fi
26668
26669
26670 PNG_LINK=
26671 if test "$wxUSE_LIBPNG" != "no" ; then
26672     cat >>confdefs.h <<\_ACEOF
26673 #define wxUSE_LIBPNG 1
26674 _ACEOF
26675
26676
26677     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26678         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26679 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26680         wxUSE_LIBPNG=sys
26681     fi
26682
26683                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26684         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26685 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26686         wxUSE_LIBPNG=builtin
26687     fi
26688
26689     if test "$wxUSE_MGL" != 1 ; then
26690                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26691                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26692 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26693 if test "${ac_cv_header_png_h+set}" = set; then
26694   echo $ECHO_N "(cached) $ECHO_C" >&6
26695 else
26696   if test "$cross_compiling" = yes; then
26697                       unset ac_cv_header_png_h
26698
26699 else
26700   cat >conftest.$ac_ext <<_ACEOF
26701 /* confdefs.h.  */
26702 _ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h.  */
26706
26707                         #include <png.h>
26708                         #include <stdio.h>
26709
26710                         int main()
26711                         {
26712                             FILE *f=fopen("conftestval", "w");
26713                             if (!f) exit(1);
26714                             fprintf(f, "%s",
26715                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26716                             exit(0);
26717                         }
26718
26719 _ACEOF
26720 rm -f conftest$ac_exeext
26721 if { (ac_try="$ac_link"
26722 case "(($ac_try" in
26723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724   *) ac_try_echo=$ac_try;;
26725 esac
26726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26727   (eval "$ac_link") 2>&5
26728   ac_status=$?
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26731   { (case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_try") 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; }; then
26740   ac_cv_header_png_h=`cat conftestval`
26741 else
26742   echo "$as_me: program exited with status $ac_status" >&5
26743 echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746 ( exit $ac_status )
26747 ac_cv_header_png_h=no
26748 fi
26749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26750 fi
26751
26752
26753
26754 fi
26755 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26756 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26757             { echo "$as_me:$LINENO: checking for png.h" >&5
26758 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26759 if test "${ac_cv_header_png_h+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768
26769
26770 #include <png.h>
26771 _ACEOF
26772 rm -f conftest.$ac_objext
26773 if { (ac_try="$ac_compile"
26774 case "(($ac_try" in
26775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776   *) ac_try_echo=$ac_try;;
26777 esac
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779   (eval "$ac_compile") 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } && {
26786          test -z "$ac_c_werror_flag" ||
26787          test ! -s conftest.err
26788        } && test -s conftest.$ac_objext; then
26789   ac_cv_header_png_h=yes
26790 else
26791   echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26793
26794         ac_cv_header_png_h=no
26795 fi
26796
26797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798 fi
26799 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26800 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26801
26802
26803
26804             if test "$ac_cv_header_png_h" = "yes"; then
26805                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26806 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26807 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26808   echo $ECHO_N "(cached) $ECHO_C" >&6
26809 else
26810   ac_check_lib_save_LIBS=$LIBS
26811 LIBS="-lpng -lz -lm $LIBS"
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818
26819 /* Override any GCC internal prototype to avoid an error.
26820    Use char because int might match the return type of a GCC
26821    builtin and then its argument prototype would still apply.  */
26822 #ifdef __cplusplus
26823 extern "C"
26824 #endif
26825 char png_check_sig ();
26826 int
26827 main ()
26828 {
26829 return png_check_sig ();
26830   ;
26831   return 0;
26832 }
26833 _ACEOF
26834 rm -f conftest.$ac_objext conftest$ac_exeext
26835 if { (ac_try="$ac_link"
26836 case "(($ac_try" in
26837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838   *) ac_try_echo=$ac_try;;
26839 esac
26840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26841   (eval "$ac_link") 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } && {
26848          test -z "$ac_c_werror_flag" ||
26849          test ! -s conftest.err
26850        } && test -s conftest$ac_exeext &&
26851        $as_test_x conftest$ac_exeext; then
26852   ac_cv_lib_png_png_check_sig=yes
26853 else
26854   echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857         ac_cv_lib_png_png_check_sig=no
26858 fi
26859
26860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26861       conftest$ac_exeext conftest.$ac_ext
26862 LIBS=$ac_check_lib_save_LIBS
26863 fi
26864 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26865 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26866 if test $ac_cv_lib_png_png_check_sig = yes; then
26867   PNG_LINK=" -lpng -lz"
26868 fi
26869
26870             fi
26871
26872             if test "x$PNG_LINK" = "x" ; then
26873                 if test "$wxUSE_LIBPNG" = "sys" ; then
26874                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26875 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26876    { (exit 1); exit 1; }; }
26877                 else
26878                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26879 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26880                     wxUSE_LIBPNG=builtin
26881                 fi
26882             else
26883                                 wxUSE_LIBPNG=sys
26884             fi
26885         fi
26886     fi
26887 fi
26888
26889
26890 JPEG_LINK=
26891 if test "$wxUSE_LIBJPEG" != "no" ; then
26892     cat >>confdefs.h <<\_ACEOF
26893 #define wxUSE_LIBJPEG 1
26894 _ACEOF
26895
26896
26897     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26898         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26899 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26900         wxUSE_LIBJPEG=sys
26901     fi
26902
26903     if test "$wxUSE_MGL" != 1 ; then
26904                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26905                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26906 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26907             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26908   echo $ECHO_N "(cached) $ECHO_C" >&6
26909 else
26910   cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916
26917                         #undef HAVE_STDLIB_H
26918                         #include <stdio.h>
26919                         #include <jpeglib.h>
26920
26921 int
26922 main ()
26923 {
26924
26925
26926   ;
26927   return 0;
26928 }
26929 _ACEOF
26930 rm -f conftest.$ac_objext
26931 if { (ac_try="$ac_compile"
26932 case "(($ac_try" in
26933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934   *) ac_try_echo=$ac_try;;
26935 esac
26936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937   (eval "$ac_compile") 2>conftest.er1
26938   ac_status=$?
26939   grep -v '^ *+' conftest.er1 >conftest.err
26940   rm -f conftest.er1
26941   cat conftest.err >&5
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); } && {
26944          test -z "$ac_c_werror_flag" ||
26945          test ! -s conftest.err
26946        } && test -s conftest.$ac_objext; then
26947   ac_cv_header_jpeglib_h=yes
26948 else
26949   echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952         ac_cv_header_jpeglib_h=no
26953
26954 fi
26955
26956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26957
26958 fi
26959
26960             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26961 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26962
26963             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26964                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26965 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26966 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26967   echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969   ac_check_lib_save_LIBS=$LIBS
26970 LIBS="-ljpeg  $LIBS"
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977
26978 /* Override any GCC internal prototype to avoid an error.
26979    Use char because int might match the return type of a GCC
26980    builtin and then its argument prototype would still apply.  */
26981 #ifdef __cplusplus
26982 extern "C"
26983 #endif
26984 char jpeg_read_header ();
26985 int
26986 main ()
26987 {
26988 return jpeg_read_header ();
26989   ;
26990   return 0;
26991 }
26992 _ACEOF
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997   *) ac_try_echo=$ac_try;;
26998 esac
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000   (eval "$ac_link") 2>conftest.er1
27001   ac_status=$?
27002   grep -v '^ *+' conftest.er1 >conftest.err
27003   rm -f conftest.er1
27004   cat conftest.err >&5
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); } && {
27007          test -z "$ac_c_werror_flag" ||
27008          test ! -s conftest.err
27009        } && test -s conftest$ac_exeext &&
27010        $as_test_x conftest$ac_exeext; then
27011   ac_cv_lib_jpeg_jpeg_read_header=yes
27012 else
27013   echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016         ac_cv_lib_jpeg_jpeg_read_header=no
27017 fi
27018
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020       conftest$ac_exeext conftest.$ac_ext
27021 LIBS=$ac_check_lib_save_LIBS
27022 fi
27023 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27024 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27025 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27026   JPEG_LINK=" -ljpeg"
27027 fi
27028
27029             fi
27030
27031             if test "x$JPEG_LINK" = "x" ; then
27032                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27033                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27034 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27035    { (exit 1); exit 1; }; }
27036                 else
27037                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27038 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27039                     wxUSE_LIBJPEG=builtin
27040                 fi
27041             else
27042                                 wxUSE_LIBJPEG=sys
27043
27044                 if test "$wxUSE_MSW" = 1; then
27045                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27046 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27047 if test "${ac_cv_type_boolean+set}" = set; then
27048   echo $ECHO_N "(cached) $ECHO_C" >&6
27049 else
27050   cat >conftest.$ac_ext <<_ACEOF
27051 /* confdefs.h.  */
27052 _ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h.  */
27056 #include <windows.h>
27057
27058 typedef boolean ac__type_new_;
27059 int
27060 main ()
27061 {
27062 if ((ac__type_new_ *) 0)
27063   return 0;
27064 if (sizeof (ac__type_new_))
27065   return 0;
27066   ;
27067   return 0;
27068 }
27069 _ACEOF
27070 rm -f conftest.$ac_objext
27071 if { (ac_try="$ac_compile"
27072 case "(($ac_try" in
27073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074   *) ac_try_echo=$ac_try;;
27075 esac
27076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077   (eval "$ac_compile") 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } && {
27084          test -z "$ac_c_werror_flag" ||
27085          test ! -s conftest.err
27086        } && test -s conftest.$ac_objext; then
27087   ac_cv_type_boolean=yes
27088 else
27089   echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27091
27092         ac_cv_type_boolean=no
27093 fi
27094
27095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 fi
27097 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27098 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27099 if test $ac_cv_type_boolean = yes; then
27100
27101 cat >>confdefs.h <<_ACEOF
27102 #define HAVE_BOOLEAN 1
27103 _ACEOF
27104
27105
27106                             { echo "$as_me:$LINENO: checking for boolean" >&5
27107 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27108 if test "${ac_cv_type_boolean+set}" = set; then
27109   echo $ECHO_N "(cached) $ECHO_C" >&6
27110 else
27111   cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h.  */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h.  */
27117
27118                                     #undef HAVE_BOOLEAN
27119                                     #include <stdio.h>
27120                                     #include <jpeglib.h>
27121
27122
27123 typedef boolean ac__type_new_;
27124 int
27125 main ()
27126 {
27127 if ((ac__type_new_ *) 0)
27128   return 0;
27129 if (sizeof (ac__type_new_))
27130   return 0;
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext
27136 if { (ac_try="$ac_compile"
27137 case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142   (eval "$ac_compile") 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } && {
27149          test -z "$ac_c_werror_flag" ||
27150          test ! -s conftest.err
27151        } && test -s conftest.$ac_objext; then
27152   ac_cv_type_boolean=yes
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157         ac_cv_type_boolean=no
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161 fi
27162 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27163 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27164
27165 # The cast to long int works around a bug in the HP C Compiler
27166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27168 # This bug is HP SR number 8606223364.
27169 { echo "$as_me:$LINENO: checking size of boolean" >&5
27170 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27171 if test "${ac_cv_sizeof_boolean+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   if test "$cross_compiling" = yes; then
27175   # Depending upon the size, compute the lo and hi bounds.
27176 cat >conftest.$ac_ext <<_ACEOF
27177 /* confdefs.h.  */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h.  */
27182
27183                                     #undef HAVE_BOOLEAN
27184                                     #include <stdio.h>
27185                                     #include <jpeglib.h>
27186
27187
27188    typedef boolean ac__type_sizeof_;
27189 int
27190 main ()
27191 {
27192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27193 test_array [0] = 0
27194
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 rm -f conftest.$ac_objext
27200 if { (ac_try="$ac_compile"
27201 case "(($ac_try" in
27202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203   *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206   (eval "$ac_compile") 2>conftest.er1
27207   ac_status=$?
27208   grep -v '^ *+' conftest.er1 >conftest.err
27209   rm -f conftest.er1
27210   cat conftest.err >&5
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); } && {
27213          test -z "$ac_c_werror_flag" ||
27214          test ! -s conftest.err
27215        } && test -s conftest.$ac_objext; then
27216   ac_lo=0 ac_mid=0
27217   while :; do
27218     cat >conftest.$ac_ext <<_ACEOF
27219 /* confdefs.h.  */
27220 _ACEOF
27221 cat confdefs.h >>conftest.$ac_ext
27222 cat >>conftest.$ac_ext <<_ACEOF
27223 /* end confdefs.h.  */
27224
27225                                     #undef HAVE_BOOLEAN
27226                                     #include <stdio.h>
27227                                     #include <jpeglib.h>
27228
27229
27230    typedef boolean ac__type_sizeof_;
27231 int
27232 main ()
27233 {
27234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27235 test_array [0] = 0
27236
27237   ;
27238   return 0;
27239 }
27240 _ACEOF
27241 rm -f conftest.$ac_objext
27242 if { (ac_try="$ac_compile"
27243 case "(($ac_try" in
27244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245   *) ac_try_echo=$ac_try;;
27246 esac
27247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248   (eval "$ac_compile") 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } && {
27255          test -z "$ac_c_werror_flag" ||
27256          test ! -s conftest.err
27257        } && test -s conftest.$ac_objext; then
27258   ac_hi=$ac_mid; break
27259 else
27260   echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263         ac_lo=`expr $ac_mid + 1`
27264                         if test $ac_lo -le $ac_mid; then
27265                           ac_lo= ac_hi=
27266                           break
27267                         fi
27268                         ac_mid=`expr 2 '*' $ac_mid + 1`
27269 fi
27270
27271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272   done
27273 else
27274   echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27276
27277         cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283
27284                                     #undef HAVE_BOOLEAN
27285                                     #include <stdio.h>
27286                                     #include <jpeglib.h>
27287
27288
27289    typedef boolean ac__type_sizeof_;
27290 int
27291 main ()
27292 {
27293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27294 test_array [0] = 0
27295
27296   ;
27297   return 0;
27298 }
27299 _ACEOF
27300 rm -f conftest.$ac_objext
27301 if { (ac_try="$ac_compile"
27302 case "(($ac_try" in
27303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304   *) ac_try_echo=$ac_try;;
27305 esac
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307   (eval "$ac_compile") 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } && {
27314          test -z "$ac_c_werror_flag" ||
27315          test ! -s conftest.err
27316        } && test -s conftest.$ac_objext; then
27317   ac_hi=-1 ac_mid=-1
27318   while :; do
27319     cat >conftest.$ac_ext <<_ACEOF
27320 /* confdefs.h.  */
27321 _ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h.  */
27325
27326                                     #undef HAVE_BOOLEAN
27327                                     #include <stdio.h>
27328                                     #include <jpeglib.h>
27329
27330
27331    typedef boolean ac__type_sizeof_;
27332 int
27333 main ()
27334 {
27335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27336 test_array [0] = 0
27337
27338   ;
27339   return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext
27343 if { (ac_try="$ac_compile"
27344 case "(($ac_try" in
27345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346   *) ac_try_echo=$ac_try;;
27347 esac
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349   (eval "$ac_compile") 2>conftest.er1
27350   ac_status=$?
27351   grep -v '^ *+' conftest.er1 >conftest.err
27352   rm -f conftest.er1
27353   cat conftest.err >&5
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); } && {
27356          test -z "$ac_c_werror_flag" ||
27357          test ! -s conftest.err
27358        } && test -s conftest.$ac_objext; then
27359   ac_lo=$ac_mid; break
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364         ac_hi=`expr '(' $ac_mid ')' - 1`
27365                         if test $ac_mid -le $ac_hi; then
27366                           ac_lo= ac_hi=
27367                           break
27368                         fi
27369                         ac_mid=`expr 2 '*' $ac_mid`
27370 fi
27371
27372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373   done
27374 else
27375   echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27377
27378         ac_lo= ac_hi=
27379 fi
27380
27381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 fi
27383
27384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27385 # Binary search between lo and hi bounds.
27386 while test "x$ac_lo" != "x$ac_hi"; do
27387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27388   cat >conftest.$ac_ext <<_ACEOF
27389 /* confdefs.h.  */
27390 _ACEOF
27391 cat confdefs.h >>conftest.$ac_ext
27392 cat >>conftest.$ac_ext <<_ACEOF
27393 /* end confdefs.h.  */
27394
27395                                     #undef HAVE_BOOLEAN
27396                                     #include <stdio.h>
27397                                     #include <jpeglib.h>
27398
27399
27400    typedef boolean ac__type_sizeof_;
27401 int
27402 main ()
27403 {
27404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27405 test_array [0] = 0
27406
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_compile") 2>conftest.er1
27419   ac_status=$?
27420   grep -v '^ *+' conftest.er1 >conftest.err
27421   rm -f conftest.er1
27422   cat conftest.err >&5
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); } && {
27425          test -z "$ac_c_werror_flag" ||
27426          test ! -s conftest.err
27427        } && test -s conftest.$ac_objext; then
27428   ac_hi=$ac_mid
27429 else
27430   echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27432
27433         ac_lo=`expr '(' $ac_mid ')' + 1`
27434 fi
27435
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437 done
27438 case $ac_lo in
27439 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27440 '') if test "$ac_cv_type_boolean" = yes; then
27441      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27442 See \`config.log' for more details." >&5
27443 echo "$as_me: error: cannot compute sizeof (boolean)
27444 See \`config.log' for more details." >&2;}
27445    { (exit 77); exit 77; }; }
27446    else
27447      ac_cv_sizeof_boolean=0
27448    fi ;;
27449 esac
27450 else
27451   cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h.  */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h.  */
27457
27458                                     #undef HAVE_BOOLEAN
27459                                     #include <stdio.h>
27460                                     #include <jpeglib.h>
27461
27462
27463    typedef boolean ac__type_sizeof_;
27464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27466 #include <stdio.h>
27467 #include <stdlib.h>
27468 int
27469 main ()
27470 {
27471
27472   FILE *f = fopen ("conftest.val", "w");
27473   if (! f)
27474     return 1;
27475   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27476     {
27477       long int i = longval ();
27478       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27479         return 1;
27480       fprintf (f, "%ld\n", i);
27481     }
27482   else
27483     {
27484       unsigned long int i = ulongval ();
27485       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27486         return 1;
27487       fprintf (f, "%lu\n", i);
27488     }
27489   return ferror (f) || fclose (f) != 0;
27490
27491   ;
27492   return 0;
27493 }
27494 _ACEOF
27495 rm -f conftest$ac_exeext
27496 if { (ac_try="$ac_link"
27497 case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502   (eval "$ac_link") 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27506   { (case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_try") 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; }; then
27515   ac_cv_sizeof_boolean=`cat conftest.val`
27516 else
27517   echo "$as_me: program exited with status $ac_status" >&5
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27520
27521 ( exit $ac_status )
27522 if test "$ac_cv_type_boolean" = yes; then
27523      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27524 See \`config.log' for more details." >&5
27525 echo "$as_me: error: cannot compute sizeof (boolean)
27526 See \`config.log' for more details." >&2;}
27527    { (exit 77); exit 77; }; }
27528    else
27529      ac_cv_sizeof_boolean=0
27530    fi
27531 fi
27532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27533 fi
27534 rm -f conftest.val
27535 fi
27536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27537 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27538
27539
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27543 _ACEOF
27544
27545
27546                             cat >>confdefs.h <<_ACEOF
27547 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27548 _ACEOF
27549
27550
27551 fi
27552
27553                 fi
27554             fi
27555         fi
27556     fi
27557 fi
27558
27559
27560 TIFF_LINK=
27561 TIFF_PREREQ_LINKS=-lm
27562 if test "$wxUSE_LIBTIFF" != "no" ; then
27563     cat >>confdefs.h <<\_ACEOF
27564 #define wxUSE_LIBTIFF 1
27565 _ACEOF
27566
27567
27568     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27569                         if test "$wxUSE_LIBJPEG" = "sys"; then
27570             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27571         fi
27572         if test "$wxUSE_ZLIB" = "sys"; then
27573             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27574         fi
27575         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27576 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27577 if test "${ac_cv_header_tiffio_h+set}" = set; then
27578   echo $ECHO_N "(cached) $ECHO_C" >&6
27579 else
27580   cat >conftest.$ac_ext <<_ACEOF
27581 /* confdefs.h.  */
27582 _ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h.  */
27586
27587
27588
27589 #include <tiffio.h>
27590 _ACEOF
27591 rm -f conftest.$ac_objext
27592 if { (ac_try="$ac_compile"
27593 case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_compile") 2>conftest.er1
27599   ac_status=$?
27600   grep -v '^ *+' conftest.er1 >conftest.err
27601   rm -f conftest.er1
27602   cat conftest.err >&5
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); } && {
27605          test -z "$ac_c_werror_flag" ||
27606          test ! -s conftest.err
27607        } && test -s conftest.$ac_objext; then
27608   ac_cv_header_tiffio_h=yes
27609 else
27610   echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27612
27613         ac_cv_header_tiffio_h=no
27614 fi
27615
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27617 fi
27618 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27619 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27620 if test $ac_cv_header_tiffio_h = yes; then
27621
27622                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27623 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27624 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   ac_check_lib_save_LIBS=$LIBS
27628 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27629 cat >conftest.$ac_ext <<_ACEOF
27630 /* confdefs.h.  */
27631 _ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h.  */
27635
27636 /* Override any GCC internal prototype to avoid an error.
27637    Use char because int might match the return type of a GCC
27638    builtin and then its argument prototype would still apply.  */
27639 #ifdef __cplusplus
27640 extern "C"
27641 #endif
27642 char TIFFError ();
27643 int
27644 main ()
27645 {
27646 return TIFFError ();
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655   *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658   (eval "$ac_link") 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } && {
27665          test -z "$ac_c_werror_flag" ||
27666          test ! -s conftest.err
27667        } && test -s conftest$ac_exeext &&
27668        $as_test_x conftest$ac_exeext; then
27669   ac_cv_lib_tiff_TIFFError=yes
27670 else
27671   echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27673
27674         ac_cv_lib_tiff_TIFFError=no
27675 fi
27676
27677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27678       conftest$ac_exeext conftest.$ac_ext
27679 LIBS=$ac_check_lib_save_LIBS
27680 fi
27681 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27682 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27683 if test $ac_cv_lib_tiff_TIFFError = yes; then
27684   TIFF_LINK=" -ltiff"
27685 fi
27686
27687
27688 fi
27689
27690
27691
27692         if test "x$TIFF_LINK" = "x" ; then
27693             if test "$wxUSE_LIBTIFF" = "sys" ; then
27694                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27695 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27696    { (exit 1); exit 1; }; }
27697             else
27698                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27699 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27700                 wxUSE_LIBTIFF=builtin
27701             fi
27702         else
27703                         wxUSE_LIBTIFF=sys
27704         fi
27705     fi
27706     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27707         if test "$wxUSE_LIBJPEG" = "no"; then
27708                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27709         fi
27710         subdirs="$subdirs src/tiff"
27711
27712     fi
27713 fi
27714
27715
27716 if test "$wxUSE_WCHAR_T" != "yes"; then
27717     if test "$wxUSE_EXPAT" != "no"; then
27718         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27719 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27720         wxUSE_EXPAT=no
27721     fi
27722     if test "$wxUSE_XML" != "no"; then
27723         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27724 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27725         wxUSE_XML=no
27726     fi
27727 fi
27728
27729 if test "$wxUSE_EXPAT" != "no"; then
27730     wxUSE_XML=yes
27731     cat >>confdefs.h <<\_ACEOF
27732 #define wxUSE_EXPAT 1
27733 _ACEOF
27734
27735     cat >>confdefs.h <<\_ACEOF
27736 #define wxUSE_XML 1
27737 _ACEOF
27738
27739
27740     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27741         { echo "$as_me:$LINENO: checking for expat.h" >&5
27742 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27743 if test "${ac_cv_header_expat_h+set}" = set; then
27744   echo $ECHO_N "(cached) $ECHO_C" >&6
27745 else
27746   cat >conftest.$ac_ext <<_ACEOF
27747 /* confdefs.h.  */
27748 _ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h.  */
27752
27753
27754 #include <expat.h>
27755 _ACEOF
27756 rm -f conftest.$ac_objext
27757 if { (ac_try="$ac_compile"
27758 case "(($ac_try" in
27759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760   *) ac_try_echo=$ac_try;;
27761 esac
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763   (eval "$ac_compile") 2>conftest.er1
27764   ac_status=$?
27765   grep -v '^ *+' conftest.er1 >conftest.err
27766   rm -f conftest.er1
27767   cat conftest.err >&5
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); } && {
27770          test -z "$ac_c_werror_flag" ||
27771          test ! -s conftest.err
27772        } && test -s conftest.$ac_objext; then
27773   ac_cv_header_expat_h=yes
27774 else
27775   echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27777
27778         ac_cv_header_expat_h=no
27779 fi
27780
27781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782 fi
27783 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27784 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27785 if test $ac_cv_header_expat_h = yes; then
27786   found_expat_h=1
27787 fi
27788
27789
27790         if test "x$found_expat_h" = "x1"; then
27791                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27792 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27793 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796
27797                 ac_ext=cpp
27798 ac_cpp='$CXXCPP $CPPFLAGS'
27799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27802
27803                 cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h.  */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h.  */
27809 #include <expat.h>
27810 int
27811 main ()
27812 {
27813
27814   ;
27815   return 0;
27816 }
27817 _ACEOF
27818 rm -f conftest.$ac_objext
27819 if { (ac_try="$ac_compile"
27820 case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_compile") 2>conftest.er1
27826   ac_status=$?
27827   grep -v '^ *+' conftest.er1 >conftest.err
27828   rm -f conftest.er1
27829   cat conftest.err >&5
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); } && {
27832          test -z "$ac_cxx_werror_flag" ||
27833          test ! -s conftest.err
27834        } && test -s conftest.$ac_objext; then
27835   wx_cv_expat_is_not_broken=yes
27836 else
27837   echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27839
27840         wx_cv_expat_is_not_broken=no
27841
27842 fi
27843
27844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27845                 ac_ext=c
27846 ac_cpp='$CPP $CPPFLAGS'
27847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27850
27851
27852
27853 fi
27854 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27855 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27856             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27857                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27858 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27859 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27860   echo $ECHO_N "(cached) $ECHO_C" >&6
27861 else
27862   ac_check_lib_save_LIBS=$LIBS
27863 LIBS="-lexpat  $LIBS"
27864 cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870
27871 /* Override any GCC internal prototype to avoid an error.
27872    Use char because int might match the return type of a GCC
27873    builtin and then its argument prototype would still apply.  */
27874 #ifdef __cplusplus
27875 extern "C"
27876 #endif
27877 char XML_ParserCreate ();
27878 int
27879 main ()
27880 {
27881 return XML_ParserCreate ();
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (ac_try="$ac_link"
27888 case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_link") 2>conftest.er1
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
27897   cat conftest.err >&5
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } && {
27900          test -z "$ac_c_werror_flag" ||
27901          test ! -s conftest.err
27902        } && test -s conftest$ac_exeext &&
27903        $as_test_x conftest$ac_exeext; then
27904   ac_cv_lib_expat_XML_ParserCreate=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909         ac_cv_lib_expat_XML_ParserCreate=no
27910 fi
27911
27912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27913       conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27915 fi
27916 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27917 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27918 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27919   EXPAT_LINK=" -lexpat"
27920 fi
27921
27922             fi
27923         fi
27924         if test "x$EXPAT_LINK" = "x" ; then
27925             if test "$wxUSE_EXPAT" = "sys" ; then
27926                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27927 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27928    { (exit 1); exit 1; }; }
27929             else
27930                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27931 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27932                 wxUSE_EXPAT=builtin
27933             fi
27934         else
27935                         wxUSE_EXPAT=sys
27936         fi
27937     fi
27938     if test "$wxUSE_EXPAT" = "builtin" ; then
27939                 subdirs="$subdirs src/expat"
27940
27941     fi
27942 fi
27943
27944
27945
27946 if test "$wxUSE_LIBMSPACK" != "no"; then
27947     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27948 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27949 if test "${ac_cv_header_mspack_h+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h.  */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h.  */
27958
27959
27960 #include <mspack.h>
27961 _ACEOF
27962 rm -f conftest.$ac_objext
27963 if { (ac_try="$ac_compile"
27964 case "(($ac_try" in
27965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966   *) ac_try_echo=$ac_try;;
27967 esac
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969   (eval "$ac_compile") 2>conftest.er1
27970   ac_status=$?
27971   grep -v '^ *+' conftest.er1 >conftest.err
27972   rm -f conftest.er1
27973   cat conftest.err >&5
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); } && {
27976          test -z "$ac_c_werror_flag" ||
27977          test ! -s conftest.err
27978        } && test -s conftest.$ac_objext; then
27979   ac_cv_header_mspack_h=yes
27980 else
27981   echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984         ac_cv_header_mspack_h=no
27985 fi
27986
27987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 fi
27989 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27990 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27991 if test $ac_cv_header_mspack_h = yes; then
27992   found_mspack_h=1
27993 fi
27994
27995
27996     if test "x$found_mspack_h" = "x1"; then
27997         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27998 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27999 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28000   echo $ECHO_N "(cached) $ECHO_C" >&6
28001 else
28002   ac_check_lib_save_LIBS=$LIBS
28003 LIBS="-lmspack  $LIBS"
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010
28011 /* Override any GCC internal prototype to avoid an error.
28012    Use char because int might match the return type of a GCC
28013    builtin and then its argument prototype would still apply.  */
28014 #ifdef __cplusplus
28015 extern "C"
28016 #endif
28017 char mspack_create_chm_decompressor ();
28018 int
28019 main ()
28020 {
28021 return mspack_create_chm_decompressor ();
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext conftest$ac_exeext
28027 if { (ac_try="$ac_link"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_link") 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } && {
28040          test -z "$ac_c_werror_flag" ||
28041          test ! -s conftest.err
28042        } && test -s conftest$ac_exeext &&
28043        $as_test_x conftest$ac_exeext; then
28044   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28045 else
28046   echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28050 fi
28051
28052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28053       conftest$ac_exeext conftest.$ac_ext
28054 LIBS=$ac_check_lib_save_LIBS
28055 fi
28056 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28057 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28058 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28059   MSPACK_LINK=" -lmspack"
28060 fi
28061
28062     fi
28063     if test "x$MSPACK_LINK" = "x" ; then
28064         wxUSE_LIBMSPACK=no
28065     fi
28066 fi
28067
28068 if test "$wxUSE_LIBMSPACK" != "no"; then
28069     cat >>confdefs.h <<\_ACEOF
28070 #define wxUSE_LIBMSPACK 1
28071 _ACEOF
28072
28073 fi
28074
28075
28076
28077 AFMINSTALL=
28078 WIN32INSTALL=
28079
28080 TOOLKIT=
28081 TOOLKIT_INCLUDE=
28082 WIDGET_SET=
28083
28084 if test "$USE_WIN32" = 1 ; then
28085
28086 for ac_header in w32api.h
28087 do
28088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28092   echo $ECHO_N "(cached) $ECHO_C" >&6
28093 else
28094   cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h.  */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h.  */
28100
28101
28102 #include <$ac_header>
28103 _ACEOF
28104 rm -f conftest.$ac_objext
28105 if { (ac_try="$ac_compile"
28106 case "(($ac_try" in
28107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108   *) ac_try_echo=$ac_try;;
28109 esac
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111   (eval "$ac_compile") 2>conftest.er1
28112   ac_status=$?
28113   grep -v '^ *+' conftest.er1 >conftest.err
28114   rm -f conftest.er1
28115   cat conftest.err >&5
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); } && {
28118          test -z "$ac_c_werror_flag" ||
28119          test ! -s conftest.err
28120        } && test -s conftest.$ac_objext; then
28121   eval "$as_ac_Header=yes"
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126         eval "$as_ac_Header=no"
28127 fi
28128
28129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28130 fi
28131 ac_res=`eval echo '${'$as_ac_Header'}'`
28132                { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28135   cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28137 _ACEOF
28138
28139 fi
28140
28141 done
28142
28143     { echo "$as_me:$LINENO: checking for windows.h" >&5
28144 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28145 if test "${ac_cv_header_windows_h+set}" = set; then
28146   echo $ECHO_N "(cached) $ECHO_C" >&6
28147 else
28148   cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154
28155
28156 #include <windows.h>
28157 _ACEOF
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162   *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165   (eval "$ac_compile") 2>conftest.er1
28166   ac_status=$?
28167   grep -v '^ *+' conftest.er1 >conftest.err
28168   rm -f conftest.er1
28169   cat conftest.err >&5
28170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); } && {
28172          test -z "$ac_c_werror_flag" ||
28173          test ! -s conftest.err
28174        } && test -s conftest.$ac_objext; then
28175   ac_cv_header_windows_h=yes
28176 else
28177   echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28179
28180         ac_cv_header_windows_h=no
28181 fi
28182
28183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 fi
28185 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28186 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28187 if test $ac_cv_header_windows_h = yes; then
28188   :
28189 else
28190
28191         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28192 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28193    { (exit 1); exit 1; }; }
28194
28195 fi
28196
28197
28198
28199             case "${host}" in
28200         x86_64-*-mingw32* )
28201                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28202         ;;
28203         * )
28204             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28205         ;;
28206     esac
28207     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28208         LIBS="$LIBS -loleacc"
28209     fi
28210
28211     case "${host}" in
28212         *-*-cygwin* )
28213                         LIBS="$LIBS -lkernel32 -luser32"
28214     esac
28215
28216         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28217     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28218
28219                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28220
28221         WIN32INSTALL=win32install
28222
28223         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28224 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28225 if test "${ac_cv_header_pbt_h+set}" = set; then
28226   echo $ECHO_N "(cached) $ECHO_C" >&6
28227 else
28228   cat >conftest.$ac_ext <<_ACEOF
28229 /* confdefs.h.  */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h.  */
28234
28235
28236 #include <pbt.h>
28237 _ACEOF
28238 rm -f conftest.$ac_objext
28239 if { (ac_try="$ac_compile"
28240 case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_compile") 2>conftest.er1
28246   ac_status=$?
28247   grep -v '^ *+' conftest.er1 >conftest.err
28248   rm -f conftest.er1
28249   cat conftest.err >&5
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); } && {
28252          test -z "$ac_c_werror_flag" ||
28253          test ! -s conftest.err
28254        } && test -s conftest.$ac_objext; then
28255   ac_cv_header_pbt_h=yes
28256 else
28257   echo "$as_me: failed program was:" >&5
28258 sed 's/^/| /' conftest.$ac_ext >&5
28259
28260         ac_cv_header_pbt_h=no
28261 fi
28262
28263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28264 fi
28265 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28266 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28267 if test $ac_cv_header_pbt_h = yes; then
28268   :
28269 else
28270   cat >>confdefs.h <<\_ACEOF
28271 #define NEED_PBT_H 1
28272 _ACEOF
28273
28274 fi
28275
28276
28277 fi
28278
28279 if test "$wxUSE_GUI" = "yes"; then
28280     USE_GUI=1
28281
28282     GUI_TK_LIBRARY=
28283
28284     WXGTK12=
28285     WXGTK127=
28286     WXGTK2=
28287     WXGPE=
28288
28289     if test "$wxUSE_COCOA" = 1 ; then
28290         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28291             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28292 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28293             wxUSE_PRINTING_ARCHITECTURE=no
28294         fi
28295         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28296             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28297 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28298             wxUSE_DRAG_AND_DROP=no
28299         fi
28300         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28301             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28302 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28303             wxUSE_DRAGIMAGE=no
28304         fi
28305     fi
28306
28307     if test "$wxUSE_MSW" = 1 ; then
28308         TOOLKIT=MSW
28309         GUIDIST=MSW_DIST
28310
28311                 case "${host}" in
28312             *-*-mingw32* )
28313                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28314         esac
28315     fi
28316
28317     if test "$wxUSE_GTK" = 1; then
28318                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28319 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28320
28321         gtk_version_cached=1
28322         if test "${wx_cv_lib_gtk+set}" = set; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325
28326                                                 gtk_version_cached=0
28327                 { echo "$as_me:$LINENO: result: " >&5
28328 echo "${ECHO_T}" >&6; }
28329
28330                                                 GTK_MODULES=
28331                 if test "$wxUSE_THREADS" = "yes"; then
28332                     GTK_MODULES=gthread
28333                 fi
28334
28335                                 wx_cv_lib_gtk=
28336                 if test "x$wxGTK_VERSION" != "x1"
28337                 then
28338                                                                                 case "${host}" in
28339                         *-*-solaris2* )
28340                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28341                                 enable_gtktest=no
28342                             fi
28343                     esac
28344
28345                     # Check whether --enable-gtktest was given.
28346 if test "${enable_gtktest+set}" = set; then
28347   enableval=$enable_gtktest;
28348 else
28349   enable_gtktest=yes
28350 fi
28351
28352
28353   pkg_config_args=gtk+-2.0
28354   for module in . $GTK_MODULES
28355   do
28356       case "$module" in
28357          gthread)
28358              pkg_config_args="$pkg_config_args gthread-2.0"
28359          ;;
28360       esac
28361   done
28362
28363   no_gtk=""
28364
28365   # Extract the first word of "pkg-config", so it can be a program name with args.
28366 set dummy pkg-config; ac_word=$2
28367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28369 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28370   echo $ECHO_N "(cached) $ECHO_C" >&6
28371 else
28372   case $PKG_CONFIG in
28373   [\\/]* | ?:[\\/]*)
28374   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28375   ;;
28376   *)
28377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28378 for as_dir in $PATH
28379 do
28380   IFS=$as_save_IFS
28381   test -z "$as_dir" && as_dir=.
28382   for ac_exec_ext in '' $ac_executable_extensions; do
28383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28384     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28386     break 2
28387   fi
28388 done
28389 done
28390 IFS=$as_save_IFS
28391
28392   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28393   ;;
28394 esac
28395 fi
28396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28397 if test -n "$PKG_CONFIG"; then
28398   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28399 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28400 else
28401   { echo "$as_me:$LINENO: result: no" >&5
28402 echo "${ECHO_T}no" >&6; }
28403 fi
28404
28405
28406
28407   if test x$PKG_CONFIG != xno ; then
28408     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28409       :
28410     else
28411       echo "*** pkg-config too old; version 0.7 or better required."
28412       no_gtk=yes
28413       PKG_CONFIG=no
28414     fi
28415   else
28416     no_gtk=yes
28417   fi
28418
28419   min_gtk_version=2.4.0
28420   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28421 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28422
28423   if test x$PKG_CONFIG != xno ; then
28424     ## don't try to run the test against uninstalled libtool libs
28425     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28426           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28427           enable_gtktest=no
28428     fi
28429
28430     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28431           :
28432     else
28433           no_gtk=yes
28434     fi
28435   fi
28436
28437   if test x"$no_gtk" = x ; then
28438     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28439     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28440     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28441            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28442     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28443            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28444     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28445            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28446     if test "x$enable_gtktest" = "xyes" ; then
28447       ac_save_CFLAGS="$CFLAGS"
28448       ac_save_LIBS="$LIBS"
28449       CFLAGS="$CFLAGS $GTK_CFLAGS"
28450       LIBS="$GTK_LIBS $LIBS"
28451       rm -f conf.gtktest
28452       if test "$cross_compiling" = yes; then
28453   echo $ac_n "cross compiling; assumed OK... $ac_c"
28454 else
28455   cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461
28462 #include <gtk/gtk.h>
28463 #include <stdio.h>
28464 #include <stdlib.h>
28465
28466 int
28467 main ()
28468 {
28469   int major, minor, micro;
28470   char *tmp_version;
28471
28472   system ("touch conf.gtktest");
28473
28474   /* HP/UX 9 (%@#!) writes to sscanf strings */
28475   tmp_version = g_strdup("$min_gtk_version");
28476   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28477      printf("%s, bad version string\n", "$min_gtk_version");
28478      exit(1);
28479    }
28480
28481   if ((gtk_major_version != $gtk_config_major_version) ||
28482       (gtk_minor_version != $gtk_config_minor_version) ||
28483       (gtk_micro_version != $gtk_config_micro_version))
28484     {
28485       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28486              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28487              gtk_major_version, gtk_minor_version, gtk_micro_version);
28488       printf ("*** was found! If pkg-config was correct, then it is best\n");
28489       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28490       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28491       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28492       printf("*** required on your system.\n");
28493       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28494       printf("*** to point to the correct configuration files\n");
28495     }
28496   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28497            (gtk_minor_version != GTK_MINOR_VERSION) ||
28498            (gtk_micro_version != GTK_MICRO_VERSION))
28499     {
28500       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28501              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28502       printf("*** library (version %d.%d.%d)\n",
28503              gtk_major_version, gtk_minor_version, gtk_micro_version);
28504     }
28505   else
28506     {
28507       if ((gtk_major_version > major) ||
28508         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28509         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28510       {
28511         return 0;
28512        }
28513      else
28514       {
28515         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28516                gtk_major_version, gtk_minor_version, gtk_micro_version);
28517         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28518                major, minor, micro);
28519         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28520         printf("***\n");
28521         printf("*** If you have already installed a sufficiently new version, this error\n");
28522         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28523         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28524         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28525         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28526         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28527         printf("*** so that the correct libraries are found at run-time))\n");
28528       }
28529     }
28530   return 1;
28531 }
28532
28533 _ACEOF
28534 rm -f conftest$ac_exeext
28535 if { (ac_try="$ac_link"
28536 case "(($ac_try" in
28537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538   *) ac_try_echo=$ac_try;;
28539 esac
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541   (eval "$ac_link") 2>&5
28542   ac_status=$?
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28545   { (case "(($ac_try" in
28546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547   *) ac_try_echo=$ac_try;;
28548 esac
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550   (eval "$ac_try") 2>&5
28551   ac_status=$?
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); }; }; then
28554   :
28555 else
28556   echo "$as_me: program exited with status $ac_status" >&5
28557 echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560 ( exit $ac_status )
28561 no_gtk=yes
28562 fi
28563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28564 fi
28565
28566
28567        CFLAGS="$ac_save_CFLAGS"
28568        LIBS="$ac_save_LIBS"
28569      fi
28570   fi
28571   if test "x$no_gtk" = x ; then
28572      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28573 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28574      wx_cv_lib_gtk=2.0
28575   else
28576      { echo "$as_me:$LINENO: result: no" >&5
28577 echo "${ECHO_T}no" >&6; }
28578      if test "$PKG_CONFIG" = "no" ; then
28579        echo "*** A new enough version of pkg-config was not found."
28580        echo "*** See http://pkgconfig.sourceforge.net"
28581      else
28582        if test -f conf.gtktest ; then
28583         :
28584        else
28585           echo "*** Could not run GTK+ test program, checking why..."
28586           ac_save_CFLAGS="$CFLAGS"
28587           ac_save_LIBS="$LIBS"
28588           CFLAGS="$CFLAGS $GTK_CFLAGS"
28589           LIBS="$LIBS $GTK_LIBS"
28590           cat >conftest.$ac_ext <<_ACEOF
28591 /* confdefs.h.  */
28592 _ACEOF
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h.  */
28596
28597 #include <gtk/gtk.h>
28598 #include <stdio.h>
28599
28600 int
28601 main ()
28602 {
28603  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28604   ;
28605   return 0;
28606 }
28607 _ACEOF
28608 rm -f conftest.$ac_objext conftest$ac_exeext
28609 if { (ac_try="$ac_link"
28610 case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_link") 2>conftest.er1
28616   ac_status=$?
28617   grep -v '^ *+' conftest.er1 >conftest.err
28618   rm -f conftest.er1
28619   cat conftest.err >&5
28620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621   (exit $ac_status); } && {
28622          test -z "$ac_c_werror_flag" ||
28623          test ! -s conftest.err
28624        } && test -s conftest$ac_exeext &&
28625        $as_test_x conftest$ac_exeext; then
28626    echo "*** The test program compiled, but did not run. This usually means"
28627           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28628           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28629           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28630           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28631           echo "*** is required on your system"
28632           echo "***"
28633           echo "*** If you have an old version installed, it is best to remove it, although"
28634           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28635 else
28636   echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28638
28639          echo "*** The test program failed to compile or link. See the file config.log for the"
28640           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28641 fi
28642
28643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28644       conftest$ac_exeext conftest.$ac_ext
28645           CFLAGS="$ac_save_CFLAGS"
28646           LIBS="$ac_save_LIBS"
28647        fi
28648      fi
28649      GTK_CFLAGS=""
28650      GTK_LIBS=""
28651      :
28652   fi
28653
28654
28655   rm -f conf.gtktest
28656
28657
28658                                         case "${host}" in
28659                         *-*-solaris2* )
28660                             if test "$wxUSE_SHARED" != "yes"; then
28661                                 GTK_LIBS="$GTK_LIBS -lX11"
28662                             fi
28663                     esac
28664                 fi
28665
28666                                 if test -z "$wx_cv_lib_gtk"; then
28667                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28668
28669 # Check whether --with-gtk-prefix was given.
28670 if test "${with_gtk_prefix+set}" = set; then
28671   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28672 else
28673   gtk_config_prefix=""
28674 fi
28675
28676
28677 # Check whether --with-gtk-exec-prefix was given.
28678 if test "${with_gtk_exec_prefix+set}" = set; then
28679   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28680 else
28681   gtk_config_exec_prefix=""
28682 fi
28683
28684 # Check whether --enable-gtktest was given.
28685 if test "${enable_gtktest+set}" = set; then
28686   enableval=$enable_gtktest;
28687 else
28688   enable_gtktest=yes
28689 fi
28690
28691
28692   for module in . $GTK_MODULES
28693   do
28694       case "$module" in
28695          gthread)
28696              gtk_config_args="$gtk_config_args gthread"
28697          ;;
28698       esac
28699   done
28700
28701   if test x$gtk_config_exec_prefix != x ; then
28702      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28703      if test x${GTK_CONFIG+set} != xset ; then
28704         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28705      fi
28706   fi
28707   if test x$gtk_config_prefix != x ; then
28708      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28709      if test x${GTK_CONFIG+set} != xset ; then
28710         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28711      fi
28712   fi
28713
28714   # Extract the first word of "gtk-config", so it can be a program name with args.
28715 set dummy gtk-config; ac_word=$2
28716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28718 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28719   echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721   case $GTK_CONFIG in
28722   [\\/]* | ?:[\\/]*)
28723   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28724   ;;
28725   *)
28726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28727 for as_dir in $PATH
28728 do
28729   IFS=$as_save_IFS
28730   test -z "$as_dir" && as_dir=.
28731   for ac_exec_ext in '' $ac_executable_extensions; do
28732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28733     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28735     break 2
28736   fi
28737 done
28738 done
28739 IFS=$as_save_IFS
28740
28741   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28742   ;;
28743 esac
28744 fi
28745 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28746 if test -n "$GTK_CONFIG"; then
28747   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28748 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28749 else
28750   { echo "$as_me:$LINENO: result: no" >&5
28751 echo "${ECHO_T}no" >&6; }
28752 fi
28753
28754
28755   min_gtk_version=1.2.7
28756   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28757 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28758   no_gtk=""
28759   if test "$GTK_CONFIG" = "no" ; then
28760     no_gtk=yes
28761   else
28762     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28763     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28764     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28765            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28766     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28767            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28768     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28769            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28770     if test "x$enable_gtktest" = "xyes" ; then
28771       ac_save_CFLAGS="$CFLAGS"
28772       ac_save_LIBS="$LIBS"
28773       CFLAGS="$CFLAGS $GTK_CFLAGS"
28774       LIBS="$GTK_LIBS $LIBS"
28775       rm -f conf.gtktest
28776       if test "$cross_compiling" = yes; then
28777   echo $ac_n "cross compiling; assumed OK... $ac_c"
28778 else
28779   cat >conftest.$ac_ext <<_ACEOF
28780 /* confdefs.h.  */
28781 _ACEOF
28782 cat confdefs.h >>conftest.$ac_ext
28783 cat >>conftest.$ac_ext <<_ACEOF
28784 /* end confdefs.h.  */
28785
28786 #include <gtk/gtk.h>
28787 #include <stdio.h>
28788 #include <stdlib.h>
28789
28790 int
28791 main ()
28792 {
28793   int major, minor, micro;
28794   char *tmp_version;
28795
28796   system ("touch conf.gtktest");
28797
28798   /* HP/UX 9 (%@#!) writes to sscanf strings */
28799   tmp_version = g_strdup("$min_gtk_version");
28800   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28801      printf("%s, bad version string\n", "$min_gtk_version");
28802      exit(1);
28803    }
28804
28805   if ((gtk_major_version != $gtk_config_major_version) ||
28806       (gtk_minor_version != $gtk_config_minor_version) ||
28807       (gtk_micro_version != $gtk_config_micro_version))
28808     {
28809       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28810              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28811              gtk_major_version, gtk_minor_version, gtk_micro_version);
28812       printf ("*** was found! If gtk-config was correct, then it is best\n");
28813       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28814       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28815       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28816       printf("*** required on your system.\n");
28817       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28818       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28819       printf("*** before re-running configure\n");
28820     }
28821 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28822   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28823            (gtk_minor_version != GTK_MINOR_VERSION) ||
28824            (gtk_micro_version != GTK_MICRO_VERSION))
28825     {
28826       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28827              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28828       printf("*** library (version %d.%d.%d)\n",
28829              gtk_major_version, gtk_minor_version, gtk_micro_version);
28830     }
28831 #endif /* defined (GTK_MAJOR_VERSION) ... */
28832   else
28833     {
28834       if ((gtk_major_version > major) ||
28835         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28836         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28837       {
28838         return 0;
28839        }
28840      else
28841       {
28842         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28843                gtk_major_version, gtk_minor_version, gtk_micro_version);
28844         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28845                major, minor, micro);
28846         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28847         printf("***\n");
28848         printf("*** If you have already installed a sufficiently new version, this error\n");
28849         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28850         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28851         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28852         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28853         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28854         printf("*** so that the correct libraries are found at run-time))\n");
28855       }
28856     }
28857   return 1;
28858 }
28859
28860 _ACEOF
28861 rm -f conftest$ac_exeext
28862 if { (ac_try="$ac_link"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_link") 2>&5
28869   ac_status=$?
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28872   { (case "(($ac_try" in
28873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874   *) ac_try_echo=$ac_try;;
28875 esac
28876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877   (eval "$ac_try") 2>&5
28878   ac_status=$?
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); }; }; then
28881   :
28882 else
28883   echo "$as_me: program exited with status $ac_status" >&5
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887 ( exit $ac_status )
28888 no_gtk=yes
28889 fi
28890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28891 fi
28892
28893
28894        CFLAGS="$ac_save_CFLAGS"
28895        LIBS="$ac_save_LIBS"
28896      fi
28897   fi
28898   if test "x$no_gtk" = x ; then
28899      { echo "$as_me:$LINENO: result: yes" >&5
28900 echo "${ECHO_T}yes" >&6; }
28901      wx_cv_lib_gtk=1.2.7
28902   else
28903      { echo "$as_me:$LINENO: result: no" >&5
28904 echo "${ECHO_T}no" >&6; }
28905      if test "$GTK_CONFIG" = "no" ; then
28906        echo "*** The gtk-config script installed by GTK could not be found"
28907        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28908        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28909        echo "*** full path to gtk-config."
28910      else
28911        if test -f conf.gtktest ; then
28912         :
28913        else
28914           echo "*** Could not run GTK test program, checking why..."
28915           CFLAGS="$CFLAGS $GTK_CFLAGS"
28916           LIBS="$LIBS $GTK_LIBS"
28917           cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923
28924 #include <gtk/gtk.h>
28925 #include <stdio.h>
28926
28927 int
28928 main ()
28929 {
28930  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28931   ;
28932   return 0;
28933 }
28934 _ACEOF
28935 rm -f conftest.$ac_objext conftest$ac_exeext
28936 if { (ac_try="$ac_link"
28937 case "(($ac_try" in
28938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939   *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942   (eval "$ac_link") 2>conftest.er1
28943   ac_status=$?
28944   grep -v '^ *+' conftest.er1 >conftest.err
28945   rm -f conftest.er1
28946   cat conftest.err >&5
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); } && {
28949          test -z "$ac_c_werror_flag" ||
28950          test ! -s conftest.err
28951        } && test -s conftest$ac_exeext &&
28952        $as_test_x conftest$ac_exeext; then
28953    echo "*** The test program compiled, but did not run. This usually means"
28954           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28955           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28956           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28957           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28958           echo "*** is required on your system"
28959           echo "***"
28960           echo "*** If you have an old version installed, it is best to remove it, although"
28961           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28962           echo "***"
28963           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28964           echo "*** came with the system with the command"
28965           echo "***"
28966           echo "***    rpm --erase --nodeps gtk gtk-devel"
28967 else
28968   echo "$as_me: failed program was:" >&5
28969 sed 's/^/| /' conftest.$ac_ext >&5
28970
28971          echo "*** The test program failed to compile or link. See the file config.log for the"
28972           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28973           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28974           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28975 fi
28976
28977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28978       conftest$ac_exeext conftest.$ac_ext
28979           CFLAGS="$ac_save_CFLAGS"
28980           LIBS="$ac_save_LIBS"
28981        fi
28982      fi
28983      GTK_CFLAGS=""
28984      GTK_LIBS=""
28985      :
28986   fi
28987
28988
28989   rm -f conf.gtktest
28990
28991
28992                         if test -z "$wx_cv_lib_gtk"; then
28993
28994 # Check whether --with-gtk-prefix was given.
28995 if test "${with_gtk_prefix+set}" = set; then
28996   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28997 else
28998   gtk_config_prefix=""
28999 fi
29000
29001
29002 # Check whether --with-gtk-exec-prefix was given.
29003 if test "${with_gtk_exec_prefix+set}" = set; then
29004   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29005 else
29006   gtk_config_exec_prefix=""
29007 fi
29008
29009 # Check whether --enable-gtktest was given.
29010 if test "${enable_gtktest+set}" = set; then
29011   enableval=$enable_gtktest;
29012 else
29013   enable_gtktest=yes
29014 fi
29015
29016
29017   for module in . $GTK_MODULES
29018   do
29019       case "$module" in
29020          gthread)
29021              gtk_config_args="$gtk_config_args gthread"
29022          ;;
29023       esac
29024   done
29025
29026   if test x$gtk_config_exec_prefix != x ; then
29027      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29028      if test x${GTK_CONFIG+set} != xset ; then
29029         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29030      fi
29031   fi
29032   if test x$gtk_config_prefix != x ; then
29033      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29034      if test x${GTK_CONFIG+set} != xset ; then
29035         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29036      fi
29037   fi
29038
29039   # Extract the first word of "gtk-config", so it can be a program name with args.
29040 set dummy gtk-config; ac_word=$2
29041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29043 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 else
29046   case $GTK_CONFIG in
29047   [\\/]* | ?:[\\/]*)
29048   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29049   ;;
29050   *)
29051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29052 for as_dir in $PATH
29053 do
29054   IFS=$as_save_IFS
29055   test -z "$as_dir" && as_dir=.
29056   for ac_exec_ext in '' $ac_executable_extensions; do
29057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29058     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29060     break 2
29061   fi
29062 done
29063 done
29064 IFS=$as_save_IFS
29065
29066   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29067   ;;
29068 esac
29069 fi
29070 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29071 if test -n "$GTK_CONFIG"; then
29072   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29073 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29074 else
29075   { echo "$as_me:$LINENO: result: no" >&5
29076 echo "${ECHO_T}no" >&6; }
29077 fi
29078
29079
29080   min_gtk_version=1.2.3
29081   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29082 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29083   no_gtk=""
29084   if test "$GTK_CONFIG" = "no" ; then
29085     no_gtk=yes
29086   else
29087     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29088     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29089     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29090            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29091     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29092            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29093     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29094            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29095     if test "x$enable_gtktest" = "xyes" ; then
29096       ac_save_CFLAGS="$CFLAGS"
29097       ac_save_LIBS="$LIBS"
29098       CFLAGS="$CFLAGS $GTK_CFLAGS"
29099       LIBS="$GTK_LIBS $LIBS"
29100       rm -f conf.gtktest
29101       if test "$cross_compiling" = yes; then
29102   echo $ac_n "cross compiling; assumed OK... $ac_c"
29103 else
29104   cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h.  */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h.  */
29110
29111 #include <gtk/gtk.h>
29112 #include <stdio.h>
29113 #include <stdlib.h>
29114
29115 int
29116 main ()
29117 {
29118   int major, minor, micro;
29119   char *tmp_version;
29120
29121   system ("touch conf.gtktest");
29122
29123   /* HP/UX 9 (%@#!) writes to sscanf strings */
29124   tmp_version = g_strdup("$min_gtk_version");
29125   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29126      printf("%s, bad version string\n", "$min_gtk_version");
29127      exit(1);
29128    }
29129
29130   if ((gtk_major_version != $gtk_config_major_version) ||
29131       (gtk_minor_version != $gtk_config_minor_version) ||
29132       (gtk_micro_version != $gtk_config_micro_version))
29133     {
29134       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29135              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29136              gtk_major_version, gtk_minor_version, gtk_micro_version);
29137       printf ("*** was found! If gtk-config was correct, then it is best\n");
29138       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29139       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29140       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29141       printf("*** required on your system.\n");
29142       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29143       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29144       printf("*** before re-running configure\n");
29145     }
29146 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29147   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29148            (gtk_minor_version != GTK_MINOR_VERSION) ||
29149            (gtk_micro_version != GTK_MICRO_VERSION))
29150     {
29151       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29152              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29153       printf("*** library (version %d.%d.%d)\n",
29154              gtk_major_version, gtk_minor_version, gtk_micro_version);
29155     }
29156 #endif /* defined (GTK_MAJOR_VERSION) ... */
29157   else
29158     {
29159       if ((gtk_major_version > major) ||
29160         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29161         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29162       {
29163         return 0;
29164        }
29165      else
29166       {
29167         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29168                gtk_major_version, gtk_minor_version, gtk_micro_version);
29169         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29170                major, minor, micro);
29171         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29172         printf("***\n");
29173         printf("*** If you have already installed a sufficiently new version, this error\n");
29174         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29175         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29176         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29177         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29178         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29179         printf("*** so that the correct libraries are found at run-time))\n");
29180       }
29181     }
29182   return 1;
29183 }
29184
29185 _ACEOF
29186 rm -f conftest$ac_exeext
29187 if { (ac_try="$ac_link"
29188 case "(($ac_try" in
29189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190   *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193   (eval "$ac_link") 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29197   { (case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202   (eval "$ac_try") 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; }; then
29206   :
29207 else
29208   echo "$as_me: program exited with status $ac_status" >&5
29209 echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 ( exit $ac_status )
29213 no_gtk=yes
29214 fi
29215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29216 fi
29217
29218
29219        CFLAGS="$ac_save_CFLAGS"
29220        LIBS="$ac_save_LIBS"
29221      fi
29222   fi
29223   if test "x$no_gtk" = x ; then
29224      { echo "$as_me:$LINENO: result: yes" >&5
29225 echo "${ECHO_T}yes" >&6; }
29226      wx_cv_lib_gtk=1.2.3
29227   else
29228      { echo "$as_me:$LINENO: result: no" >&5
29229 echo "${ECHO_T}no" >&6; }
29230      if test "$GTK_CONFIG" = "no" ; then
29231        echo "*** The gtk-config script installed by GTK could not be found"
29232        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29233        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29234        echo "*** full path to gtk-config."
29235      else
29236        if test -f conf.gtktest ; then
29237         :
29238        else
29239           echo "*** Could not run GTK test program, checking why..."
29240           CFLAGS="$CFLAGS $GTK_CFLAGS"
29241           LIBS="$LIBS $GTK_LIBS"
29242           cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248
29249 #include <gtk/gtk.h>
29250 #include <stdio.h>
29251
29252 int
29253 main ()
29254 {
29255  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29256   ;
29257   return 0;
29258 }
29259 _ACEOF
29260 rm -f conftest.$ac_objext conftest$ac_exeext
29261 if { (ac_try="$ac_link"
29262 case "(($ac_try" in
29263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264   *) ac_try_echo=$ac_try;;
29265 esac
29266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267   (eval "$ac_link") 2>conftest.er1
29268   ac_status=$?
29269   grep -v '^ *+' conftest.er1 >conftest.err
29270   rm -f conftest.er1
29271   cat conftest.err >&5
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); } && {
29274          test -z "$ac_c_werror_flag" ||
29275          test ! -s conftest.err
29276        } && test -s conftest$ac_exeext &&
29277        $as_test_x conftest$ac_exeext; then
29278    echo "*** The test program compiled, but did not run. This usually means"
29279           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29280           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29281           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29282           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29283           echo "*** is required on your system"
29284           echo "***"
29285           echo "*** If you have an old version installed, it is best to remove it, although"
29286           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29287           echo "***"
29288           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29289           echo "*** came with the system with the command"
29290           echo "***"
29291           echo "***    rpm --erase --nodeps gtk gtk-devel"
29292 else
29293   echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29295
29296          echo "*** The test program failed to compile or link. See the file config.log for the"
29297           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29298           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29299           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29300 fi
29301
29302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29303       conftest$ac_exeext conftest.$ac_ext
29304           CFLAGS="$ac_save_CFLAGS"
29305           LIBS="$ac_save_LIBS"
29306        fi
29307      fi
29308      GTK_CFLAGS=""
29309      GTK_LIBS=""
29310      :
29311   fi
29312
29313
29314   rm -f conf.gtktest
29315
29316                         fi
29317                     fi
29318                 fi
29319
29320                 if test -z "$wx_cv_lib_gtk"; then
29321                                         wx_cv_lib_gtk=none
29322                 else
29323                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29324                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29325                 fi
29326
29327
29328 fi
29329
29330
29331                         if test "$gtk_version_cached" = 1; then
29332             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29333 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29334         fi
29335
29336         case "$wx_cv_lib_gtk" in
29337             2.0)    WXGTK2=1
29338                     TOOLKIT_VERSION=2
29339                     ;;
29340             1.2.7)  WXGTK127=1
29341                     WXGTK12=1
29342                     ;;
29343             1.2.3)  WXGTK12=1
29344                     ;;
29345             *)      { { echo "$as_me:$LINENO: error:
29346 The development files for GTK+ were not found. For GTK+ 2, please
29347 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29348 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29349 and that the version is 1.2.3 or above. Also check that the
29350 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29351 --libs' are in the LD_LIBRARY_PATH or equivalent.
29352                             " >&5
29353 echo "$as_me: error:
29354 The development files for GTK+ were not found. For GTK+ 2, please
29355 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29356 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29357 and that the version is 1.2.3 or above. Also check that the
29358 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29359 --libs' are in the LD_LIBRARY_PATH or equivalent.
29360                             " >&2;}
29361    { (exit 1); exit 1; }; }
29362                     ;;
29363         esac
29364
29365         if test "$WXGTK2" = 1; then
29366             save_CFLAGS="$CFLAGS"
29367             save_LIBS="$LIBS"
29368             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29369             LIBS="$LIBS $wx_cv_libs_gtk"
29370
29371                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29372 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29373             cat >conftest.$ac_ext <<_ACEOF
29374 /* confdefs.h.  */
29375 _ACEOF
29376 cat confdefs.h >>conftest.$ac_ext
29377 cat >>conftest.$ac_ext <<_ACEOF
29378 /* end confdefs.h.  */
29379
29380                             #include <gtk/gtk.h>
29381
29382 int
29383 main ()
29384 {
29385
29386                             #if !GTK_CHECK_VERSION(2,10,0)
29387                             Not GTK+ 2.10
29388                             #endif
29389
29390   ;
29391   return 0;
29392 }
29393 _ACEOF
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398   *) ac_try_echo=$ac_try;;
29399 esac
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401   (eval "$ac_compile") 2>conftest.er1
29402   ac_status=$?
29403   grep -v '^ *+' conftest.er1 >conftest.err
29404   rm -f conftest.er1
29405   cat conftest.err >&5
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } && {
29408          test -z "$ac_c_werror_flag" ||
29409          test ! -s conftest.err
29410        } && test -s conftest.$ac_objext; then
29411
29412                             cat >>confdefs.h <<\_ACEOF
29413 #define __WXGTK210__ 1
29414 _ACEOF
29415
29416                             cat >>confdefs.h <<\_ACEOF
29417 #define __WXGTK26__ 1
29418 _ACEOF
29419
29420                             { echo "$as_me:$LINENO: result: yes" >&5
29421 echo "${ECHO_T}yes" >&6; }
29422                             ac_wxgtk210=1
29423
29424 else
29425   echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428
29429                             { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29431                             ac_wxgtk210=0
29432
29433 fi
29434
29435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29436
29437             if test "$ac_wxgtk210" = 0; then
29438                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29439 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29440                 cat >conftest.$ac_ext <<_ACEOF
29441 /* confdefs.h.  */
29442 _ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h.  */
29446
29447                                 #include <gtk/gtk.h>
29448
29449 int
29450 main ()
29451 {
29452
29453                                 #if !GTK_CHECK_VERSION(2,6,0)
29454                                 Not GTK+ 2.6
29455                                 #endif
29456
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext
29462 if { (ac_try="$ac_compile"
29463 case "(($ac_try" in
29464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465   *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468   (eval "$ac_compile") 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } && {
29475          test -z "$ac_c_werror_flag" ||
29476          test ! -s conftest.err
29477        } && test -s conftest.$ac_objext; then
29478
29479                                 cat >>confdefs.h <<\_ACEOF
29480 #define __WXGTK26__ 1
29481 _ACEOF
29482
29483                                 { echo "$as_me:$LINENO: result: yes" >&5
29484 echo "${ECHO_T}yes" >&6; }
29485                                 ac_wxgtk26=1
29486
29487 else
29488   echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29490
29491
29492                                 { echo "$as_me:$LINENO: result: no" >&5
29493 echo "${ECHO_T}no" >&6; }
29494                                 ac_wxgtk26=0
29495
29496 fi
29497
29498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29499             fi
29500
29501             CFLAGS="$save_CFLAGS"
29502             LIBS="$save_LIBS"
29503         else
29504             if test "$wxUSE_UNICODE" = "yes"; then
29505                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29506 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29507                 wxUSE_UNICODE=no
29508             fi
29509
29510                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29511 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29512 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29513   echo $ECHO_N "(cached) $ECHO_C" >&6
29514 else
29515   ac_check_lib_save_LIBS=$LIBS
29516 LIBS="-lgdk  $LIBS"
29517 cat >conftest.$ac_ext <<_ACEOF
29518 /* confdefs.h.  */
29519 _ACEOF
29520 cat confdefs.h >>conftest.$ac_ext
29521 cat >>conftest.$ac_ext <<_ACEOF
29522 /* end confdefs.h.  */
29523
29524 /* Override any GCC internal prototype to avoid an error.
29525    Use char because int might match the return type of a GCC
29526    builtin and then its argument prototype would still apply.  */
29527 #ifdef __cplusplus
29528 extern "C"
29529 #endif
29530 char gdk_im_open ();
29531 int
29532 main ()
29533 {
29534 return gdk_im_open ();
29535   ;
29536   return 0;
29537 }
29538 _ACEOF
29539 rm -f conftest.$ac_objext conftest$ac_exeext
29540 if { (ac_try="$ac_link"
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_link") 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_exeext &&
29556        $as_test_x conftest$ac_exeext; then
29557   ac_cv_lib_gdk_gdk_im_open=yes
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562         ac_cv_lib_gdk_gdk_im_open=no
29563 fi
29564
29565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29566       conftest$ac_exeext conftest.$ac_ext
29567 LIBS=$ac_check_lib_save_LIBS
29568 fi
29569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29570 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29571 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29572   cat >>confdefs.h <<\_ACEOF
29573 #define HAVE_XIM 1
29574 _ACEOF
29575
29576 fi
29577
29578
29579                                     if test "$USE_DARWIN" != 1; then
29580
29581 for ac_func in poll
29582 do
29583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29587   echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589   cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29597 #define $ac_func innocuous_$ac_func
29598
29599 /* System header to define __stub macros and hopefully few prototypes,
29600     which can conflict with char $ac_func (); below.
29601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29602     <limits.h> exists even on freestanding compilers.  */
29603
29604 #ifdef __STDC__
29605 # include <limits.h>
29606 #else
29607 # include <assert.h>
29608 #endif
29609
29610 #undef $ac_func
29611
29612 /* Override any GCC internal prototype to avoid an error.
29613    Use char because int might match the return type of a GCC
29614    builtin and then its argument prototype would still apply.  */
29615 #ifdef __cplusplus
29616 extern "C"
29617 #endif
29618 char $ac_func ();
29619 /* The GNU C library defines this for functions which it implements
29620     to always fail with ENOSYS.  Some functions are actually named
29621     something starting with __ and the normal name is an alias.  */
29622 #if defined __stub_$ac_func || defined __stub___$ac_func
29623 choke me
29624 #endif
29625
29626 int
29627 main ()
29628 {
29629 return $ac_func ();
29630   ;
29631   return 0;
29632 }
29633 _ACEOF
29634 rm -f conftest.$ac_objext conftest$ac_exeext
29635 if { (ac_try="$ac_link"
29636 case "(($ac_try" in
29637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638   *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641   (eval "$ac_link") 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } && {
29648          test -z "$ac_c_werror_flag" ||
29649          test ! -s conftest.err
29650        } && test -s conftest$ac_exeext &&
29651        $as_test_x conftest$ac_exeext; then
29652   eval "$as_ac_var=yes"
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         eval "$as_ac_var=no"
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661       conftest$ac_exeext conftest.$ac_ext
29662 fi
29663 ac_res=`eval echo '${'$as_ac_var'}'`
29664                { echo "$as_me:$LINENO: result: $ac_res" >&5
29665 echo "${ECHO_T}$ac_res" >&6; }
29666 if test `eval echo '${'$as_ac_var'}'` = yes; then
29667   cat >>confdefs.h <<_ACEOF
29668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29669 _ACEOF
29670
29671 fi
29672 done
29673
29674             fi
29675         fi
29676
29677         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29678         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29679
29680         AFMINSTALL=afminstall
29681         TOOLKIT=GTK
29682         GUIDIST=GTK_DIST
29683
29684                 if test "$wxUSE_GPE" = "yes"; then
29685             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29686 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29687
29688   ac_find_libraries=
29689   for ac_dir in $SEARCH_LIB;
29690   do
29691     for ac_extension in a so sl dylib dll.a; do
29692       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29693         ac_find_libraries=$ac_dir
29694         break 2
29695       fi
29696     done
29697   done
29698
29699             if test "$ac_find_libraries" != "" ; then
29700
29701     if test "$ac_find_libraries" = "default location"; then
29702     ac_path_to_link=""
29703   else
29704     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29705     result=$?
29706     if test $result = 0; then
29707       ac_path_to_link=""
29708     else
29709       ac_path_to_link=" -L$ac_find_libraries"
29710     fi
29711   fi
29712
29713                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29714                 WXGPE=1
29715                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29716 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29717             else
29718                 { echo "$as_me:$LINENO: result: not found" >&5
29719 echo "${ECHO_T}not found" >&6; }
29720             fi
29721
29722                                                                                                                     fi
29723     fi
29724
29725     if test "$wxUSE_MGL" = 1; then
29726        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29727 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29728         if test "x$MGL_ROOT" = x ; then
29729             { echo "$as_me:$LINENO: result: not found" >&5
29730 echo "${ECHO_T}not found" >&6; }
29731             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29732 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29733    { (exit 1); exit 1; }; }
29734         else
29735             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29736 echo "${ECHO_T}$MGL_ROOT" >&6; }
29737         fi
29738
29739         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29740 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29741                                 case "${host}" in
29742             *-*-linux* )
29743                                           if test "x$wxUSE_SHARED" = xyes ; then
29744                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29745               else
29746                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29747               fi
29748               ;;
29749             *-pc-msdosdjgpp )
29750               mgl_os_candidates="dos32/dj2"
29751               ;;
29752             *)
29753               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29754 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29755    { (exit 1); exit 1; }; }
29756         esac
29757
29758         mgl_lib_type=""
29759         mgl_os=""
29760
29761         for mgl_os_i in $mgl_os_candidates ; do
29762             if test "x$mgl_os" = x ; then
29763                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29764                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29765                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29766                         mgl_lib_type=debug
29767                         mgl_os=$mgl_os_i
29768                     fi
29769                 fi
29770                 if test "x$mgl_lib_type" = x ; then
29771                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29772                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29773                         mgl_lib_type=release
29774                         mgl_os=$mgl_os_i
29775                     fi
29776                 fi
29777             fi
29778         done
29779
29780         if test "x$mgl_os" = x ; then
29781             { echo "$as_me:$LINENO: result: not found" >&5
29782 echo "${ECHO_T}not found" >&6; }
29783             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29784 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29785    { (exit 1); exit 1; }; }
29786         fi
29787         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29788 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29789
29790         wxUSE_UNIVERSAL="yes"
29791
29792         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29793         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29794
29795         AFMINSTALL=afminstall
29796         TOOLKIT=MGL
29797         GUIDIST=MGL_DIST
29798     fi
29799
29800     if test "$wxUSE_DFB" = 1; then
29801
29802
29803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29804         if test -n "$ac_tool_prefix"; then
29805   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29810   echo $ECHO_N "(cached) $ECHO_C" >&6
29811 else
29812   case $PKG_CONFIG in
29813   [\\/]* | ?:[\\/]*)
29814   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29815   ;;
29816   *)
29817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29818 for as_dir in $PATH
29819 do
29820   IFS=$as_save_IFS
29821   test -z "$as_dir" && as_dir=.
29822   for ac_exec_ext in '' $ac_executable_extensions; do
29823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29824     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29826     break 2
29827   fi
29828 done
29829 done
29830 IFS=$as_save_IFS
29831
29832   ;;
29833 esac
29834 fi
29835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29836 if test -n "$PKG_CONFIG"; then
29837   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29838 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29839 else
29840   { echo "$as_me:$LINENO: result: no" >&5
29841 echo "${ECHO_T}no" >&6; }
29842 fi
29843
29844
29845 fi
29846 if test -z "$ac_cv_path_PKG_CONFIG"; then
29847   ac_pt_PKG_CONFIG=$PKG_CONFIG
29848   # Extract the first word of "pkg-config", so it can be a program name with args.
29849 set dummy pkg-config; ac_word=$2
29850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29852 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29853   echo $ECHO_N "(cached) $ECHO_C" >&6
29854 else
29855   case $ac_pt_PKG_CONFIG in
29856   [\\/]* | ?:[\\/]*)
29857   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29858   ;;
29859   *)
29860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29861 for as_dir in $PATH
29862 do
29863   IFS=$as_save_IFS
29864   test -z "$as_dir" && as_dir=.
29865   for ac_exec_ext in '' $ac_executable_extensions; do
29866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29867     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29869     break 2
29870   fi
29871 done
29872 done
29873 IFS=$as_save_IFS
29874
29875   ;;
29876 esac
29877 fi
29878 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29879 if test -n "$ac_pt_PKG_CONFIG"; then
29880   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29881 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29882 else
29883   { echo "$as_me:$LINENO: result: no" >&5
29884 echo "${ECHO_T}no" >&6; }
29885 fi
29886
29887   if test "x$ac_pt_PKG_CONFIG" = x; then
29888     PKG_CONFIG=""
29889   else
29890     case $cross_compiling:$ac_tool_warned in
29891 yes:)
29892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29893 whose name does not start with the host triplet.  If you think this
29894 configuration is useful to you, please write to autoconf@gnu.org." >&5
29895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29896 whose name does not start with the host triplet.  If you think this
29897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29898 ac_tool_warned=yes ;;
29899 esac
29900     PKG_CONFIG=$ac_pt_PKG_CONFIG
29901   fi
29902 else
29903   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29904 fi
29905
29906 fi
29907 if test -n "$PKG_CONFIG"; then
29908         _pkg_min_version=0.9.0
29909         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29910 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29911         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29912                 { echo "$as_me:$LINENO: result: yes" >&5
29913 echo "${ECHO_T}yes" >&6; }
29914         else
29915                 { echo "$as_me:$LINENO: result: no" >&5
29916 echo "${ECHO_T}no" >&6; }
29917                 PKG_CONFIG=""
29918         fi
29919
29920 fi
29921
29922
29923 pkg_failed=no
29924 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29925 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29926
29927 if test -n "$PKG_CONFIG"; then
29928     if test -n "$DIRECTFB_CFLAGS"; then
29929         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29930     else
29931         if test -n "$PKG_CONFIG" && \
29932     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29933   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29934   ac_status=$?
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); }; then
29937   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29938 else
29939   pkg_failed=yes
29940 fi
29941     fi
29942 else
29943         pkg_failed=untried
29944 fi
29945 if test -n "$PKG_CONFIG"; then
29946     if test -n "$DIRECTFB_LIBS"; then
29947         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29948     else
29949         if test -n "$PKG_CONFIG" && \
29950     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29951   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29952   ac_status=$?
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); }; then
29955   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29956 else
29957   pkg_failed=yes
29958 fi
29959     fi
29960 else
29961         pkg_failed=untried
29962 fi
29963
29964
29965
29966 if test $pkg_failed = yes; then
29967
29968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29969         _pkg_short_errors_supported=yes
29970 else
29971         _pkg_short_errors_supported=no
29972 fi
29973         if test $_pkg_short_errors_supported = yes; then
29974                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29975         else
29976                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29977         fi
29978         # Put the nasty error message in config.log where it belongs
29979         echo "$DIRECTFB_PKG_ERRORS" >&5
29980
29981
29982                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29983 echo "$as_me: error: DirectFB not found." >&2;}
29984    { (exit 1); exit 1; }; }
29985
29986
29987 elif test $pkg_failed = untried; then
29988
29989                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29990 echo "$as_me: error: DirectFB not found." >&2;}
29991    { (exit 1); exit 1; }; }
29992
29993
29994 else
29995         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29996         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29997         { echo "$as_me:$LINENO: result: yes" >&5
29998 echo "${ECHO_T}yes" >&6; }
29999
30000                            wxUSE_UNIVERSAL="yes"
30001                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30002                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30003                            TOOLKIT=DFB
30004                            GUIDIST=DFB_DIST
30005
30006 fi
30007     fi
30008
30009     if test "$wxUSE_MICROWIN" = 1; then
30010         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30011 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30012         if test "x$MICROWINDOWS" = x ; then
30013             { echo "$as_me:$LINENO: result: not found" >&5
30014 echo "${ECHO_T}not found" >&6; }
30015             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30016 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30017    { (exit 1); exit 1; }; }
30018         else
30019             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30020 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30021         fi
30022
30023         if test -f $MICROWINDOWS/lib/libmwin.a; then
30024             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30025 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30026         else
30027             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30028 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30029    { (exit 1); exit 1; }; }
30030         fi
30031
30032         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30033         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30034
30035         wxUSE_UNIVERSAL="yes"
30036
30037         AFMINSTALL=afminstall
30038         TOOLKIT=MICROWIN
30039         GUIDIST=MICROWIN_DIST
30040
30041         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30042     fi
30043
30044         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30045                                 { echo "$as_me:$LINENO: checking for X" >&5
30046 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30047
30048
30049 # Check whether --with-x was given.
30050 if test "${with_x+set}" = set; then
30051   withval=$with_x;
30052 fi
30053
30054 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30055 if test "x$with_x" = xno; then
30056   # The user explicitly disabled X.
30057   have_x=disabled
30058 else
30059   case $x_includes,$x_libraries in #(
30060     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30061 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30062    { (exit 1); exit 1; }; };; #(
30063     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30064   echo $ECHO_N "(cached) $ECHO_C" >&6
30065 else
30066   # One or both of the vars are not set, and there is no cached value.
30067 ac_x_includes=no ac_x_libraries=no
30068 rm -f -r conftest.dir
30069 if mkdir conftest.dir; then
30070   cd conftest.dir
30071   cat >Imakefile <<'_ACEOF'
30072 incroot:
30073         @echo incroot='${INCROOT}'
30074 usrlibdir:
30075         @echo usrlibdir='${USRLIBDIR}'
30076 libdir:
30077         @echo libdir='${LIBDIR}'
30078 _ACEOF
30079   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30080     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30081     for ac_var in incroot usrlibdir libdir; do
30082       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30083     done
30084     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30085     for ac_extension in a so sl; do
30086       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30087          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30088         ac_im_usrlibdir=$ac_im_libdir; break
30089       fi
30090     done
30091     # Screen out bogus values from the imake configuration.  They are
30092     # bogus both because they are the default anyway, and because
30093     # using them would break gcc on systems where it needs fixed includes.
30094     case $ac_im_incroot in
30095         /usr/include) ac_x_includes= ;;
30096         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30097     esac
30098     case $ac_im_usrlibdir in
30099         /usr/lib | /lib) ;;
30100         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30101     esac
30102   fi
30103   cd ..
30104   rm -f -r conftest.dir
30105 fi
30106
30107 # Standard set of common directories for X headers.
30108 # Check X11 before X11Rn because it is often a symlink to the current release.
30109 ac_x_header_dirs='
30110 /usr/X11/include
30111 /usr/X11R6/include
30112 /usr/X11R5/include
30113 /usr/X11R4/include
30114
30115 /usr/include/X11
30116 /usr/include/X11R6
30117 /usr/include/X11R5
30118 /usr/include/X11R4
30119
30120 /usr/local/X11/include
30121 /usr/local/X11R6/include
30122 /usr/local/X11R5/include
30123 /usr/local/X11R4/include
30124
30125 /usr/local/include/X11
30126 /usr/local/include/X11R6
30127 /usr/local/include/X11R5
30128 /usr/local/include/X11R4
30129
30130 /usr/X386/include
30131 /usr/x386/include
30132 /usr/XFree86/include/X11
30133
30134 /usr/include
30135 /usr/local/include
30136 /usr/unsupported/include
30137 /usr/athena/include
30138 /usr/local/x11r5/include
30139 /usr/lpp/Xamples/include
30140
30141 /usr/openwin/include
30142 /usr/openwin/share/include'
30143
30144 if test "$ac_x_includes" = no; then
30145   # Guess where to find include files, by looking for Xlib.h.
30146   # First, try using that file with no special directory specified.
30147   cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153 #include <X11/Xlib.h>
30154 _ACEOF
30155 if { (ac_try="$ac_cpp conftest.$ac_ext"
30156 case "(($ac_try" in
30157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158   *) ac_try_echo=$ac_try;;
30159 esac
30160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30162   ac_status=$?
30163   grep -v '^ *+' conftest.er1 >conftest.err
30164   rm -f conftest.er1
30165   cat conftest.err >&5
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); } >/dev/null && {
30168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30169          test ! -s conftest.err
30170        }; then
30171   # We can compile using X headers with no special include directory.
30172 ac_x_includes=
30173 else
30174   echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30176
30177   for ac_dir in $ac_x_header_dirs; do
30178   if test -r "$ac_dir/X11/Xlib.h"; then
30179     ac_x_includes=$ac_dir
30180     break
30181   fi
30182 done
30183 fi
30184
30185 rm -f conftest.err conftest.$ac_ext
30186 fi # $ac_x_includes = no
30187
30188 if test "$ac_x_libraries" = no; then
30189   # Check for the libraries.
30190   # See if we find them without any special options.
30191   # Don't add to $LIBS permanently.
30192   ac_save_LIBS=$LIBS
30193   LIBS="-lX11 $LIBS"
30194   cat >conftest.$ac_ext <<_ACEOF
30195 /* confdefs.h.  */
30196 _ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h.  */
30200 #include <X11/Xlib.h>
30201 int
30202 main ()
30203 {
30204 XrmInitialize ()
30205   ;
30206   return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213   *) ac_try_echo=$ac_try;;
30214 esac
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216   (eval "$ac_link") 2>conftest.er1
30217   ac_status=$?
30218   grep -v '^ *+' conftest.er1 >conftest.err
30219   rm -f conftest.er1
30220   cat conftest.err >&5
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); } && {
30223          test -z "$ac_c_werror_flag" ||
30224          test ! -s conftest.err
30225        } && test -s conftest$ac_exeext &&
30226        $as_test_x conftest$ac_exeext; then
30227   LIBS=$ac_save_LIBS
30228 # We can link X programs with no special library path.
30229 ac_x_libraries=
30230 else
30231   echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30233
30234         LIBS=$ac_save_LIBS
30235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30236 do
30237   # Don't even attempt the hair of trying to link an X program!
30238   for ac_extension in a so sl; do
30239     if test -r "$ac_dir/libX11.$ac_extension"; then
30240       ac_x_libraries=$ac_dir
30241       break 2
30242     fi
30243   done
30244 done
30245 fi
30246
30247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30248       conftest$ac_exeext conftest.$ac_ext
30249 fi # $ac_x_libraries = no
30250
30251 case $ac_x_includes,$ac_x_libraries in #(
30252   no,* | *,no | *\'*)
30253     # Didn't find X, or a directory has "'" in its name.
30254     ac_cv_have_x="have_x=no";; #(
30255   *)
30256     # Record where we found X for the cache.
30257     ac_cv_have_x="have_x=yes\
30258         ac_x_includes='$ac_x_includes'\
30259         ac_x_libraries='$ac_x_libraries'"
30260 esac
30261 fi
30262 ;; #(
30263     *) have_x=yes;;
30264   esac
30265   eval "$ac_cv_have_x"
30266 fi # $with_x != no
30267
30268 if test "$have_x" != yes; then
30269   { echo "$as_me:$LINENO: result: $have_x" >&5
30270 echo "${ECHO_T}$have_x" >&6; }
30271   no_x=yes
30272 else
30273   # If each of the values was on the command line, it overrides each guess.
30274   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30275   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30276   # Update the cache value to reflect the command line values.
30277   ac_cv_have_x="have_x=yes\
30278         ac_x_includes='$x_includes'\
30279         ac_x_libraries='$x_libraries'"
30280   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30281 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30282 fi
30283
30284 if test "$no_x" = yes; then
30285   # Not all programs may use this symbol, but it does not hurt to define it.
30286
30287 cat >>confdefs.h <<\_ACEOF
30288 #define X_DISPLAY_MISSING 1
30289 _ACEOF
30290
30291   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30292 else
30293   if test -n "$x_includes"; then
30294     X_CFLAGS="$X_CFLAGS -I$x_includes"
30295   fi
30296
30297   # It would also be nice to do this for all -L options, not just this one.
30298   if test -n "$x_libraries"; then
30299     X_LIBS="$X_LIBS -L$x_libraries"
30300     # For Solaris; some versions of Sun CC require a space after -R and
30301     # others require no space.  Words are not sufficient . . . .
30302     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30303 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30304     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30305     ac_xsave_c_werror_flag=$ac_c_werror_flag
30306     ac_c_werror_flag=yes
30307     cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h.  */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h.  */
30313
30314 int
30315 main ()
30316 {
30317
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 rm -f conftest.$ac_objext conftest$ac_exeext
30323 if { (ac_try="$ac_link"
30324 case "(($ac_try" in
30325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326   *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329   (eval "$ac_link") 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } && {
30336          test -z "$ac_c_werror_flag" ||
30337          test ! -s conftest.err
30338        } && test -s conftest$ac_exeext &&
30339        $as_test_x conftest$ac_exeext; then
30340   { echo "$as_me:$LINENO: result: no" >&5
30341 echo "${ECHO_T}no" >&6; }
30342        X_LIBS="$X_LIBS -R$x_libraries"
30343 else
30344   echo "$as_me: failed program was:" >&5
30345 sed 's/^/| /' conftest.$ac_ext >&5
30346
30347         LIBS="$ac_xsave_LIBS -R $x_libraries"
30348        cat >conftest.$ac_ext <<_ACEOF
30349 /* confdefs.h.  */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h.  */
30354
30355 int
30356 main ()
30357 {
30358
30359   ;
30360   return 0;
30361 }
30362 _ACEOF
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364 if { (ac_try="$ac_link"
30365 case "(($ac_try" in
30366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367   *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370   (eval "$ac_link") 2>conftest.er1
30371   ac_status=$?
30372   grep -v '^ *+' conftest.er1 >conftest.err
30373   rm -f conftest.er1
30374   cat conftest.err >&5
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); } && {
30377          test -z "$ac_c_werror_flag" ||
30378          test ! -s conftest.err
30379        } && test -s conftest$ac_exeext &&
30380        $as_test_x conftest$ac_exeext; then
30381   { echo "$as_me:$LINENO: result: yes" >&5
30382 echo "${ECHO_T}yes" >&6; }
30383           X_LIBS="$X_LIBS -R $x_libraries"
30384 else
30385   echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.$ac_ext >&5
30387
30388         { echo "$as_me:$LINENO: result: neither works" >&5
30389 echo "${ECHO_T}neither works" >&6; }
30390 fi
30391
30392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30393       conftest$ac_exeext conftest.$ac_ext
30394 fi
30395
30396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30397       conftest$ac_exeext conftest.$ac_ext
30398     ac_c_werror_flag=$ac_xsave_c_werror_flag
30399     LIBS=$ac_xsave_LIBS
30400   fi
30401
30402   # Check for system-dependent libraries X programs must link with.
30403   # Do this before checking for the system-independent R6 libraries
30404   # (-lICE), since we may need -lsocket or whatever for X linking.
30405
30406   if test "$ISC" = yes; then
30407     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30408   else
30409     # Martyn Johnson says this is needed for Ultrix, if the X
30410     # libraries were built with DECnet support.  And Karl Berry says
30411     # the Alpha needs dnet_stub (dnet does not exist).
30412     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30413     cat >conftest.$ac_ext <<_ACEOF
30414 /* confdefs.h.  */
30415 _ACEOF
30416 cat confdefs.h >>conftest.$ac_ext
30417 cat >>conftest.$ac_ext <<_ACEOF
30418 /* end confdefs.h.  */
30419
30420 /* Override any GCC internal prototype to avoid an error.
30421    Use char because int might match the return type of a GCC
30422    builtin and then its argument prototype would still apply.  */
30423 #ifdef __cplusplus
30424 extern "C"
30425 #endif
30426 char XOpenDisplay ();
30427 int
30428 main ()
30429 {
30430 return XOpenDisplay ();
30431   ;
30432   return 0;
30433 }
30434 _ACEOF
30435 rm -f conftest.$ac_objext conftest$ac_exeext
30436 if { (ac_try="$ac_link"
30437 case "(($ac_try" in
30438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439   *) ac_try_echo=$ac_try;;
30440 esac
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442   (eval "$ac_link") 2>conftest.er1
30443   ac_status=$?
30444   grep -v '^ *+' conftest.er1 >conftest.err
30445   rm -f conftest.er1
30446   cat conftest.err >&5
30447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448   (exit $ac_status); } && {
30449          test -z "$ac_c_werror_flag" ||
30450          test ! -s conftest.err
30451        } && test -s conftest$ac_exeext &&
30452        $as_test_x conftest$ac_exeext; then
30453   :
30454 else
30455   echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30457
30458         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30459 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30460 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   ac_check_lib_save_LIBS=$LIBS
30464 LIBS="-ldnet  $LIBS"
30465 cat >conftest.$ac_ext <<_ACEOF
30466 /* confdefs.h.  */
30467 _ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h.  */
30471
30472 /* Override any GCC internal prototype to avoid an error.
30473    Use char because int might match the return type of a GCC
30474    builtin and then its argument prototype would still apply.  */
30475 #ifdef __cplusplus
30476 extern "C"
30477 #endif
30478 char dnet_ntoa ();
30479 int
30480 main ()
30481 {
30482 return dnet_ntoa ();
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_link") 2>conftest.er1
30495   ac_status=$?
30496   grep -v '^ *+' conftest.er1 >conftest.err
30497   rm -f conftest.er1
30498   cat conftest.err >&5
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); } && {
30501          test -z "$ac_c_werror_flag" ||
30502          test ! -s conftest.err
30503        } && test -s conftest$ac_exeext &&
30504        $as_test_x conftest$ac_exeext; then
30505   ac_cv_lib_dnet_dnet_ntoa=yes
30506 else
30507   echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         ac_cv_lib_dnet_dnet_ntoa=no
30511 fi
30512
30513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30514       conftest$ac_exeext conftest.$ac_ext
30515 LIBS=$ac_check_lib_save_LIBS
30516 fi
30517 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30518 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30519 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30520   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30521 fi
30522
30523     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30524       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30525 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30526 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30527   echo $ECHO_N "(cached) $ECHO_C" >&6
30528 else
30529   ac_check_lib_save_LIBS=$LIBS
30530 LIBS="-ldnet_stub  $LIBS"
30531 cat >conftest.$ac_ext <<_ACEOF
30532 /* confdefs.h.  */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h.  */
30537
30538 /* Override any GCC internal prototype to avoid an error.
30539    Use char because int might match the return type of a GCC
30540    builtin and then its argument prototype would still apply.  */
30541 #ifdef __cplusplus
30542 extern "C"
30543 #endif
30544 char dnet_ntoa ();
30545 int
30546 main ()
30547 {
30548 return dnet_ntoa ();
30549   ;
30550   return 0;
30551 }
30552 _ACEOF
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (ac_try="$ac_link"
30555 case "(($ac_try" in
30556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557   *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560   (eval "$ac_link") 2>conftest.er1
30561   ac_status=$?
30562   grep -v '^ *+' conftest.er1 >conftest.err
30563   rm -f conftest.er1
30564   cat conftest.err >&5
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); } && {
30567          test -z "$ac_c_werror_flag" ||
30568          test ! -s conftest.err
30569        } && test -s conftest$ac_exeext &&
30570        $as_test_x conftest$ac_exeext; then
30571   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576         ac_cv_lib_dnet_stub_dnet_ntoa=no
30577 fi
30578
30579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30580       conftest$ac_exeext conftest.$ac_ext
30581 LIBS=$ac_check_lib_save_LIBS
30582 fi
30583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30584 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30585 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30586   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30587 fi
30588
30589     fi
30590 fi
30591
30592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30593       conftest$ac_exeext conftest.$ac_ext
30594     LIBS="$ac_xsave_LIBS"
30595
30596     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30597     # to get the SysV transport functions.
30598     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30599     # needs -lnsl.
30600     # The nsl library prevents programs from opening the X display
30601     # on Irix 5.2, according to T.E. Dickey.
30602     # The functions gethostbyname, getservbyname, and inet_addr are
30603     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30604     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30605 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30606 if test "${ac_cv_func_gethostbyname+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   cat >conftest.$ac_ext <<_ACEOF
30610 /* confdefs.h.  */
30611 _ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h.  */
30615 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30617 #define gethostbyname innocuous_gethostbyname
30618
30619 /* System header to define __stub macros and hopefully few prototypes,
30620     which can conflict with char gethostbyname (); below.
30621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30622     <limits.h> exists even on freestanding compilers.  */
30623
30624 #ifdef __STDC__
30625 # include <limits.h>
30626 #else
30627 # include <assert.h>
30628 #endif
30629
30630 #undef gethostbyname
30631
30632 /* Override any GCC internal prototype to avoid an error.
30633    Use char because int might match the return type of a GCC
30634    builtin and then its argument prototype would still apply.  */
30635 #ifdef __cplusplus
30636 extern "C"
30637 #endif
30638 char gethostbyname ();
30639 /* The GNU C library defines this for functions which it implements
30640     to always fail with ENOSYS.  Some functions are actually named
30641     something starting with __ and the normal name is an alias.  */
30642 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30643 choke me
30644 #endif
30645
30646 int
30647 main ()
30648 {
30649 return gethostbyname ();
30650   ;
30651   return 0;
30652 }
30653 _ACEOF
30654 rm -f conftest.$ac_objext conftest$ac_exeext
30655 if { (ac_try="$ac_link"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_link") 2>conftest.er1
30662   ac_status=$?
30663   grep -v '^ *+' conftest.er1 >conftest.err
30664   rm -f conftest.er1
30665   cat conftest.err >&5
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); } && {
30668          test -z "$ac_c_werror_flag" ||
30669          test ! -s conftest.err
30670        } && test -s conftest$ac_exeext &&
30671        $as_test_x conftest$ac_exeext; then
30672   ac_cv_func_gethostbyname=yes
30673 else
30674   echo "$as_me: failed program was:" >&5
30675 sed 's/^/| /' conftest.$ac_ext >&5
30676
30677         ac_cv_func_gethostbyname=no
30678 fi
30679
30680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30681       conftest$ac_exeext conftest.$ac_ext
30682 fi
30683 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30684 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30685
30686     if test $ac_cv_func_gethostbyname = no; then
30687       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30688 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30689 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30690   echo $ECHO_N "(cached) $ECHO_C" >&6
30691 else
30692   ac_check_lib_save_LIBS=$LIBS
30693 LIBS="-lnsl  $LIBS"
30694 cat >conftest.$ac_ext <<_ACEOF
30695 /* confdefs.h.  */
30696 _ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h.  */
30700
30701 /* Override any GCC internal prototype to avoid an error.
30702    Use char because int might match the return type of a GCC
30703    builtin and then its argument prototype would still apply.  */
30704 #ifdef __cplusplus
30705 extern "C"
30706 #endif
30707 char gethostbyname ();
30708 int
30709 main ()
30710 {
30711 return gethostbyname ();
30712   ;
30713   return 0;
30714 }
30715 _ACEOF
30716 rm -f conftest.$ac_objext conftest$ac_exeext
30717 if { (ac_try="$ac_link"
30718 case "(($ac_try" in
30719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720   *) ac_try_echo=$ac_try;;
30721 esac
30722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30723   (eval "$ac_link") 2>conftest.er1
30724   ac_status=$?
30725   grep -v '^ *+' conftest.er1 >conftest.err
30726   rm -f conftest.er1
30727   cat conftest.err >&5
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); } && {
30730          test -z "$ac_c_werror_flag" ||
30731          test ! -s conftest.err
30732        } && test -s conftest$ac_exeext &&
30733        $as_test_x conftest$ac_exeext; then
30734   ac_cv_lib_nsl_gethostbyname=yes
30735 else
30736   echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30738
30739         ac_cv_lib_nsl_gethostbyname=no
30740 fi
30741
30742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30743       conftest$ac_exeext conftest.$ac_ext
30744 LIBS=$ac_check_lib_save_LIBS
30745 fi
30746 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30748 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30749   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30750 fi
30751
30752       if test $ac_cv_lib_nsl_gethostbyname = no; then
30753         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30754 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30755 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30756   echo $ECHO_N "(cached) $ECHO_C" >&6
30757 else
30758   ac_check_lib_save_LIBS=$LIBS
30759 LIBS="-lbsd  $LIBS"
30760 cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766
30767 /* Override any GCC internal prototype to avoid an error.
30768    Use char because int might match the return type of a GCC
30769    builtin and then its argument prototype would still apply.  */
30770 #ifdef __cplusplus
30771 extern "C"
30772 #endif
30773 char gethostbyname ();
30774 int
30775 main ()
30776 {
30777 return gethostbyname ();
30778   ;
30779   return 0;
30780 }
30781 _ACEOF
30782 rm -f conftest.$ac_objext conftest$ac_exeext
30783 if { (ac_try="$ac_link"
30784 case "(($ac_try" in
30785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786   *) ac_try_echo=$ac_try;;
30787 esac
30788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789   (eval "$ac_link") 2>conftest.er1
30790   ac_status=$?
30791   grep -v '^ *+' conftest.er1 >conftest.err
30792   rm -f conftest.er1
30793   cat conftest.err >&5
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); } && {
30796          test -z "$ac_c_werror_flag" ||
30797          test ! -s conftest.err
30798        } && test -s conftest$ac_exeext &&
30799        $as_test_x conftest$ac_exeext; then
30800   ac_cv_lib_bsd_gethostbyname=yes
30801 else
30802   echo "$as_me: failed program was:" >&5
30803 sed 's/^/| /' conftest.$ac_ext >&5
30804
30805         ac_cv_lib_bsd_gethostbyname=no
30806 fi
30807
30808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30809       conftest$ac_exeext conftest.$ac_ext
30810 LIBS=$ac_check_lib_save_LIBS
30811 fi
30812 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30813 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30814 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30815   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30816 fi
30817
30818       fi
30819     fi
30820
30821     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30822     # socket/setsockopt and other routines are undefined under SCO ODT
30823     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30824     # on later versions), says Simon Leinen: it contains gethostby*
30825     # variants that don't use the name server (or something).  -lsocket
30826     # must be given before -lnsl if both are needed.  We assume that
30827     # if connect needs -lnsl, so does gethostbyname.
30828     { echo "$as_me:$LINENO: checking for connect" >&5
30829 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30830 if test "${ac_cv_func_connect+set}" = set; then
30831   echo $ECHO_N "(cached) $ECHO_C" >&6
30832 else
30833   cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h.  */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h.  */
30839 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30841 #define connect innocuous_connect
30842
30843 /* System header to define __stub macros and hopefully few prototypes,
30844     which can conflict with char connect (); below.
30845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30846     <limits.h> exists even on freestanding compilers.  */
30847
30848 #ifdef __STDC__
30849 # include <limits.h>
30850 #else
30851 # include <assert.h>
30852 #endif
30853
30854 #undef connect
30855
30856 /* Override any GCC internal prototype to avoid an error.
30857    Use char because int might match the return type of a GCC
30858    builtin and then its argument prototype would still apply.  */
30859 #ifdef __cplusplus
30860 extern "C"
30861 #endif
30862 char connect ();
30863 /* The GNU C library defines this for functions which it implements
30864     to always fail with ENOSYS.  Some functions are actually named
30865     something starting with __ and the normal name is an alias.  */
30866 #if defined __stub_connect || defined __stub___connect
30867 choke me
30868 #endif
30869
30870 int
30871 main ()
30872 {
30873 return connect ();
30874   ;
30875   return 0;
30876 }
30877 _ACEOF
30878 rm -f conftest.$ac_objext conftest$ac_exeext
30879 if { (ac_try="$ac_link"
30880 case "(($ac_try" in
30881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882   *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885   (eval "$ac_link") 2>conftest.er1
30886   ac_status=$?
30887   grep -v '^ *+' conftest.er1 >conftest.err
30888   rm -f conftest.er1
30889   cat conftest.err >&5
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); } && {
30892          test -z "$ac_c_werror_flag" ||
30893          test ! -s conftest.err
30894        } && test -s conftest$ac_exeext &&
30895        $as_test_x conftest$ac_exeext; then
30896   ac_cv_func_connect=yes
30897 else
30898   echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30900
30901         ac_cv_func_connect=no
30902 fi
30903
30904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30905       conftest$ac_exeext conftest.$ac_ext
30906 fi
30907 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30908 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30909
30910     if test $ac_cv_func_connect = no; then
30911       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30912 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30913 if test "${ac_cv_lib_socket_connect+set}" = set; then
30914   echo $ECHO_N "(cached) $ECHO_C" >&6
30915 else
30916   ac_check_lib_save_LIBS=$LIBS
30917 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30918 cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h.  */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h.  */
30924
30925 /* Override any GCC internal prototype to avoid an error.
30926    Use char because int might match the return type of a GCC
30927    builtin and then its argument prototype would still apply.  */
30928 #ifdef __cplusplus
30929 extern "C"
30930 #endif
30931 char connect ();
30932 int
30933 main ()
30934 {
30935 return connect ();
30936   ;
30937   return 0;
30938 }
30939 _ACEOF
30940 rm -f conftest.$ac_objext conftest$ac_exeext
30941 if { (ac_try="$ac_link"
30942 case "(($ac_try" in
30943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944   *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947   (eval "$ac_link") 2>conftest.er1
30948   ac_status=$?
30949   grep -v '^ *+' conftest.er1 >conftest.err
30950   rm -f conftest.er1
30951   cat conftest.err >&5
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); } && {
30954          test -z "$ac_c_werror_flag" ||
30955          test ! -s conftest.err
30956        } && test -s conftest$ac_exeext &&
30957        $as_test_x conftest$ac_exeext; then
30958   ac_cv_lib_socket_connect=yes
30959 else
30960   echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30962
30963         ac_cv_lib_socket_connect=no
30964 fi
30965
30966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30967       conftest$ac_exeext conftest.$ac_ext
30968 LIBS=$ac_check_lib_save_LIBS
30969 fi
30970 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30971 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30972 if test $ac_cv_lib_socket_connect = yes; then
30973   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30974 fi
30975
30976     fi
30977
30978     # Guillermo Gomez says -lposix is necessary on A/UX.
30979     { echo "$as_me:$LINENO: checking for remove" >&5
30980 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30981 if test "${ac_cv_func_remove+set}" = set; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984   cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h.  */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h.  */
30990 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30992 #define remove innocuous_remove
30993
30994 /* System header to define __stub macros and hopefully few prototypes,
30995     which can conflict with char remove (); below.
30996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997     <limits.h> exists even on freestanding compilers.  */
30998
30999 #ifdef __STDC__
31000 # include <limits.h>
31001 #else
31002 # include <assert.h>
31003 #endif
31004
31005 #undef remove
31006
31007 /* Override any GCC internal prototype to avoid an error.
31008    Use char because int might match the return type of a GCC
31009    builtin and then its argument prototype would still apply.  */
31010 #ifdef __cplusplus
31011 extern "C"
31012 #endif
31013 char remove ();
31014 /* The GNU C library defines this for functions which it implements
31015     to always fail with ENOSYS.  Some functions are actually named
31016     something starting with __ and the normal name is an alias.  */
31017 #if defined __stub_remove || defined __stub___remove
31018 choke me
31019 #endif
31020
31021 int
31022 main ()
31023 {
31024 return remove ();
31025   ;
31026   return 0;
31027 }
31028 _ACEOF
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (ac_try="$ac_link"
31031 case "(($ac_try" in
31032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033   *) ac_try_echo=$ac_try;;
31034 esac
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036   (eval "$ac_link") 2>conftest.er1
31037   ac_status=$?
31038   grep -v '^ *+' conftest.er1 >conftest.err
31039   rm -f conftest.er1
31040   cat conftest.err >&5
31041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042   (exit $ac_status); } && {
31043          test -z "$ac_c_werror_flag" ||
31044          test ! -s conftest.err
31045        } && test -s conftest$ac_exeext &&
31046        $as_test_x conftest$ac_exeext; then
31047   ac_cv_func_remove=yes
31048 else
31049   echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31051
31052         ac_cv_func_remove=no
31053 fi
31054
31055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31056       conftest$ac_exeext conftest.$ac_ext
31057 fi
31058 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31059 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31060
31061     if test $ac_cv_func_remove = no; then
31062       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31063 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31064 if test "${ac_cv_lib_posix_remove+set}" = set; then
31065   echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067   ac_check_lib_save_LIBS=$LIBS
31068 LIBS="-lposix  $LIBS"
31069 cat >conftest.$ac_ext <<_ACEOF
31070 /* confdefs.h.  */
31071 _ACEOF
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h.  */
31075
31076 /* Override any GCC internal prototype to avoid an error.
31077    Use char because int might match the return type of a GCC
31078    builtin and then its argument prototype would still apply.  */
31079 #ifdef __cplusplus
31080 extern "C"
31081 #endif
31082 char remove ();
31083 int
31084 main ()
31085 {
31086 return remove ();
31087   ;
31088   return 0;
31089 }
31090 _ACEOF
31091 rm -f conftest.$ac_objext conftest$ac_exeext
31092 if { (ac_try="$ac_link"
31093 case "(($ac_try" in
31094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31095   *) ac_try_echo=$ac_try;;
31096 esac
31097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31098   (eval "$ac_link") 2>conftest.er1
31099   ac_status=$?
31100   grep -v '^ *+' conftest.er1 >conftest.err
31101   rm -f conftest.er1
31102   cat conftest.err >&5
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); } && {
31105          test -z "$ac_c_werror_flag" ||
31106          test ! -s conftest.err
31107        } && test -s conftest$ac_exeext &&
31108        $as_test_x conftest$ac_exeext; then
31109   ac_cv_lib_posix_remove=yes
31110 else
31111   echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31113
31114         ac_cv_lib_posix_remove=no
31115 fi
31116
31117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31118       conftest$ac_exeext conftest.$ac_ext
31119 LIBS=$ac_check_lib_save_LIBS
31120 fi
31121 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31122 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31123 if test $ac_cv_lib_posix_remove = yes; then
31124   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31125 fi
31126
31127     fi
31128
31129     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31130     { echo "$as_me:$LINENO: checking for shmat" >&5
31131 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31132 if test "${ac_cv_func_shmat+set}" = set; then
31133   echo $ECHO_N "(cached) $ECHO_C" >&6
31134 else
31135   cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h.  */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h.  */
31141 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31143 #define shmat innocuous_shmat
31144
31145 /* System header to define __stub macros and hopefully few prototypes,
31146     which can conflict with char shmat (); below.
31147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31148     <limits.h> exists even on freestanding compilers.  */
31149
31150 #ifdef __STDC__
31151 # include <limits.h>
31152 #else
31153 # include <assert.h>
31154 #endif
31155
31156 #undef shmat
31157
31158 /* Override any GCC internal prototype to avoid an error.
31159    Use char because int might match the return type of a GCC
31160    builtin and then its argument prototype would still apply.  */
31161 #ifdef __cplusplus
31162 extern "C"
31163 #endif
31164 char shmat ();
31165 /* The GNU C library defines this for functions which it implements
31166     to always fail with ENOSYS.  Some functions are actually named
31167     something starting with __ and the normal name is an alias.  */
31168 #if defined __stub_shmat || defined __stub___shmat
31169 choke me
31170 #endif
31171
31172 int
31173 main ()
31174 {
31175 return shmat ();
31176   ;
31177   return 0;
31178 }
31179 _ACEOF
31180 rm -f conftest.$ac_objext conftest$ac_exeext
31181 if { (ac_try="$ac_link"
31182 case "(($ac_try" in
31183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184   *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187   (eval "$ac_link") 2>conftest.er1
31188   ac_status=$?
31189   grep -v '^ *+' conftest.er1 >conftest.err
31190   rm -f conftest.er1
31191   cat conftest.err >&5
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); } && {
31194          test -z "$ac_c_werror_flag" ||
31195          test ! -s conftest.err
31196        } && test -s conftest$ac_exeext &&
31197        $as_test_x conftest$ac_exeext; then
31198   ac_cv_func_shmat=yes
31199 else
31200   echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31202
31203         ac_cv_func_shmat=no
31204 fi
31205
31206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31207       conftest$ac_exeext conftest.$ac_ext
31208 fi
31209 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31210 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31211
31212     if test $ac_cv_func_shmat = no; then
31213       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31214 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31215 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31216   echo $ECHO_N "(cached) $ECHO_C" >&6
31217 else
31218   ac_check_lib_save_LIBS=$LIBS
31219 LIBS="-lipc  $LIBS"
31220 cat >conftest.$ac_ext <<_ACEOF
31221 /* confdefs.h.  */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h.  */
31226
31227 /* Override any GCC internal prototype to avoid an error.
31228    Use char because int might match the return type of a GCC
31229    builtin and then its argument prototype would still apply.  */
31230 #ifdef __cplusplus
31231 extern "C"
31232 #endif
31233 char shmat ();
31234 int
31235 main ()
31236 {
31237 return shmat ();
31238   ;
31239   return 0;
31240 }
31241 _ACEOF
31242 rm -f conftest.$ac_objext conftest$ac_exeext
31243 if { (ac_try="$ac_link"
31244 case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_link") 2>conftest.er1
31250   ac_status=$?
31251   grep -v '^ *+' conftest.er1 >conftest.err
31252   rm -f conftest.er1
31253   cat conftest.err >&5
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); } && {
31256          test -z "$ac_c_werror_flag" ||
31257          test ! -s conftest.err
31258        } && test -s conftest$ac_exeext &&
31259        $as_test_x conftest$ac_exeext; then
31260   ac_cv_lib_ipc_shmat=yes
31261 else
31262   echo "$as_me: failed program was:" >&5
31263 sed 's/^/| /' conftest.$ac_ext >&5
31264
31265         ac_cv_lib_ipc_shmat=no
31266 fi
31267
31268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31269       conftest$ac_exeext conftest.$ac_ext
31270 LIBS=$ac_check_lib_save_LIBS
31271 fi
31272 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31273 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31274 if test $ac_cv_lib_ipc_shmat = yes; then
31275   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31276 fi
31277
31278     fi
31279   fi
31280
31281   # Check for libraries that X11R6 Xt/Xaw programs need.
31282   ac_save_LDFLAGS=$LDFLAGS
31283   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31284   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31285   # check for ICE first), but we must link in the order -lSM -lICE or
31286   # we get undefined symbols.  So assume we have SM if we have ICE.
31287   # These have to be linked with before -lX11, unlike the other
31288   # libraries we check for below, so use a different variable.
31289   # John Interrante, Karl Berry
31290   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31291 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31292 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31293   echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31295   ac_check_lib_save_LIBS=$LIBS
31296 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31297 cat >conftest.$ac_ext <<_ACEOF
31298 /* confdefs.h.  */
31299 _ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h.  */
31303
31304 /* Override any GCC internal prototype to avoid an error.
31305    Use char because int might match the return type of a GCC
31306    builtin and then its argument prototype would still apply.  */
31307 #ifdef __cplusplus
31308 extern "C"
31309 #endif
31310 char IceConnectionNumber ();
31311 int
31312 main ()
31313 {
31314 return IceConnectionNumber ();
31315   ;
31316   return 0;
31317 }
31318 _ACEOF
31319 rm -f conftest.$ac_objext conftest$ac_exeext
31320 if { (ac_try="$ac_link"
31321 case "(($ac_try" in
31322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323   *) ac_try_echo=$ac_try;;
31324 esac
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326   (eval "$ac_link") 2>conftest.er1
31327   ac_status=$?
31328   grep -v '^ *+' conftest.er1 >conftest.err
31329   rm -f conftest.er1
31330   cat conftest.err >&5
31331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332   (exit $ac_status); } && {
31333          test -z "$ac_c_werror_flag" ||
31334          test ! -s conftest.err
31335        } && test -s conftest$ac_exeext &&
31336        $as_test_x conftest$ac_exeext; then
31337   ac_cv_lib_ICE_IceConnectionNumber=yes
31338 else
31339   echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31341
31342         ac_cv_lib_ICE_IceConnectionNumber=no
31343 fi
31344
31345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31346       conftest$ac_exeext conftest.$ac_ext
31347 LIBS=$ac_check_lib_save_LIBS
31348 fi
31349 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31350 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31351 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31352   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31353 fi
31354
31355   LDFLAGS=$ac_save_LDFLAGS
31356
31357 fi
31358
31359
31360         if test "$no_x" = "yes"; then
31361           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31362 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31363    { (exit 1); exit 1; }; }
31364         fi
31365
31366                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31367         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31368         AFMINSTALL=afminstall
31369         COMPILED_X_PROGRAM=0
31370
31371     fi
31372
31373     if test "$wxUSE_X11" = 1; then
31374         if test "$wxUSE_NANOX" = "yes"; then
31375             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31376 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31377             if test "x$MICROWIN" = x ; then
31378                 { echo "$as_me:$LINENO: result: not found" >&5
31379 echo "${ECHO_T}not found" >&6; }
31380                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31381 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31382    { (exit 1); exit 1; }; }
31383             else
31384                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31385 echo "${ECHO_T}$MICROWIN" >&6; }
31386                 cat >>confdefs.h <<\_ACEOF
31387 #define wxUSE_NANOX 1
31388 _ACEOF
31389
31390             fi
31391         fi
31392
31393         if test "$wxUSE_UNICODE" = "yes"; then
31394
31395
31396 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31397         if test -n "$ac_tool_prefix"; then
31398   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31402 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31403   echo $ECHO_N "(cached) $ECHO_C" >&6
31404 else
31405   case $PKG_CONFIG in
31406   [\\/]* | ?:[\\/]*)
31407   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31408   ;;
31409   *)
31410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31411 for as_dir in $PATH
31412 do
31413   IFS=$as_save_IFS
31414   test -z "$as_dir" && as_dir=.
31415   for ac_exec_ext in '' $ac_executable_extensions; do
31416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31417     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31419     break 2
31420   fi
31421 done
31422 done
31423 IFS=$as_save_IFS
31424
31425   ;;
31426 esac
31427 fi
31428 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31429 if test -n "$PKG_CONFIG"; then
31430   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31431 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31432 else
31433   { echo "$as_me:$LINENO: result: no" >&5
31434 echo "${ECHO_T}no" >&6; }
31435 fi
31436
31437
31438 fi
31439 if test -z "$ac_cv_path_PKG_CONFIG"; then
31440   ac_pt_PKG_CONFIG=$PKG_CONFIG
31441   # Extract the first word of "pkg-config", so it can be a program name with args.
31442 set dummy pkg-config; ac_word=$2
31443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31445 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31446   echo $ECHO_N "(cached) $ECHO_C" >&6
31447 else
31448   case $ac_pt_PKG_CONFIG in
31449   [\\/]* | ?:[\\/]*)
31450   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31451   ;;
31452   *)
31453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31454 for as_dir in $PATH
31455 do
31456   IFS=$as_save_IFS
31457   test -z "$as_dir" && as_dir=.
31458   for ac_exec_ext in '' $ac_executable_extensions; do
31459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31460     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31462     break 2
31463   fi
31464 done
31465 done
31466 IFS=$as_save_IFS
31467
31468   ;;
31469 esac
31470 fi
31471 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31472 if test -n "$ac_pt_PKG_CONFIG"; then
31473   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31474 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31475 else
31476   { echo "$as_me:$LINENO: result: no" >&5
31477 echo "${ECHO_T}no" >&6; }
31478 fi
31479
31480   if test "x$ac_pt_PKG_CONFIG" = x; then
31481     PKG_CONFIG=""
31482   else
31483     case $cross_compiling:$ac_tool_warned in
31484 yes:)
31485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31486 whose name does not start with the host triplet.  If you think this
31487 configuration is useful to you, please write to autoconf@gnu.org." >&5
31488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31489 whose name does not start with the host triplet.  If you think this
31490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31491 ac_tool_warned=yes ;;
31492 esac
31493     PKG_CONFIG=$ac_pt_PKG_CONFIG
31494   fi
31495 else
31496   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31497 fi
31498
31499 fi
31500 if test -n "$PKG_CONFIG"; then
31501         _pkg_min_version=0.9.0
31502         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31503 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31504         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31505                 { echo "$as_me:$LINENO: result: yes" >&5
31506 echo "${ECHO_T}yes" >&6; }
31507         else
31508                 { echo "$as_me:$LINENO: result: no" >&5
31509 echo "${ECHO_T}no" >&6; }
31510                 PKG_CONFIG=""
31511         fi
31512
31513 fi
31514
31515
31516 pkg_failed=no
31517 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31518 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31519
31520 if test -n "$PKG_CONFIG"; then
31521     if test -n "$PANGOX_CFLAGS"; then
31522         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31523     else
31524         if test -n "$PKG_CONFIG" && \
31525     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31526   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31527   ac_status=$?
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); }; then
31530   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31531 else
31532   pkg_failed=yes
31533 fi
31534     fi
31535 else
31536         pkg_failed=untried
31537 fi
31538 if test -n "$PKG_CONFIG"; then
31539     if test -n "$PANGOX_LIBS"; then
31540         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31541     else
31542         if test -n "$PKG_CONFIG" && \
31543     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31544   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31545   ac_status=$?
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); }; then
31548   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31549 else
31550   pkg_failed=yes
31551 fi
31552     fi
31553 else
31554         pkg_failed=untried
31555 fi
31556
31557
31558
31559 if test $pkg_failed = yes; then
31560
31561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31562         _pkg_short_errors_supported=yes
31563 else
31564         _pkg_short_errors_supported=no
31565 fi
31566         if test $_pkg_short_errors_supported = yes; then
31567                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31568         else
31569                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31570         fi
31571         # Put the nasty error message in config.log where it belongs
31572         echo "$PANGOX_PKG_ERRORS" >&5
31573
31574
31575                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31576 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31577    { (exit 1); exit 1; }; }
31578
31579
31580 elif test $pkg_failed = untried; then
31581
31582                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31583 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31584    { (exit 1); exit 1; }; }
31585
31586
31587 else
31588         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31589         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31590         { echo "$as_me:$LINENO: result: yes" >&5
31591 echo "${ECHO_T}yes" >&6; }
31592
31593                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31594                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31595                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31596
31597 fi
31598
31599 pkg_failed=no
31600 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31601 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31602
31603 if test -n "$PKG_CONFIG"; then
31604     if test -n "$PANGOFT2_CFLAGS"; then
31605         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31606     else
31607         if test -n "$PKG_CONFIG" && \
31608     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31609   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31610   ac_status=$?
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); }; then
31613   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31614 else
31615   pkg_failed=yes
31616 fi
31617     fi
31618 else
31619         pkg_failed=untried
31620 fi
31621 if test -n "$PKG_CONFIG"; then
31622     if test -n "$PANGOFT2_LIBS"; then
31623         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31624     else
31625         if test -n "$PKG_CONFIG" && \
31626     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31627   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); }; then
31631   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31632 else
31633   pkg_failed=yes
31634 fi
31635     fi
31636 else
31637         pkg_failed=untried
31638 fi
31639
31640
31641
31642 if test $pkg_failed = yes; then
31643
31644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31645         _pkg_short_errors_supported=yes
31646 else
31647         _pkg_short_errors_supported=no
31648 fi
31649         if test $_pkg_short_errors_supported = yes; then
31650                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31651         else
31652                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31653         fi
31654         # Put the nasty error message in config.log where it belongs
31655         echo "$PANGOFT2_PKG_ERRORS" >&5
31656
31657
31658                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31659 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31660                     wxUSE_PRINTING_ARCHITECTURE="no"
31661
31662
31663 elif test $pkg_failed = untried; then
31664
31665                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31666 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31667                     wxUSE_PRINTING_ARCHITECTURE="no"
31668
31669
31670 else
31671         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31672         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31673         { echo "$as_me:$LINENO: result: yes" >&5
31674 echo "${ECHO_T}yes" >&6; }
31675
31676                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31677                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31678                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31679
31680 fi
31681
31682 pkg_failed=no
31683 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31684 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31685
31686 if test -n "$PKG_CONFIG"; then
31687     if test -n "$PANGOXFT_CFLAGS"; then
31688         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31689     else
31690         if test -n "$PKG_CONFIG" && \
31691     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31692   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31693   ac_status=$?
31694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695   (exit $ac_status); }; then
31696   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31697 else
31698   pkg_failed=yes
31699 fi
31700     fi
31701 else
31702         pkg_failed=untried
31703 fi
31704 if test -n "$PKG_CONFIG"; then
31705     if test -n "$PANGOXFT_LIBS"; then
31706         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31707     else
31708         if test -n "$PKG_CONFIG" && \
31709     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31710   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31711   ac_status=$?
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); }; then
31714   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31715 else
31716   pkg_failed=yes
31717 fi
31718     fi
31719 else
31720         pkg_failed=untried
31721 fi
31722
31723
31724
31725 if test $pkg_failed = yes; then
31726
31727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31728         _pkg_short_errors_supported=yes
31729 else
31730         _pkg_short_errors_supported=no
31731 fi
31732         if test $_pkg_short_errors_supported = yes; then
31733                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31734         else
31735                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31736         fi
31737         # Put the nasty error message in config.log where it belongs
31738         echo "$PANGOXFT_PKG_ERRORS" >&5
31739
31740
31741                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31742 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31743
31744
31745 elif test $pkg_failed = untried; then
31746
31747                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31748 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31749
31750
31751 else
31752         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31753         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31754         { echo "$as_me:$LINENO: result: yes" >&5
31755 echo "${ECHO_T}yes" >&6; }
31756
31757                     cat >>confdefs.h <<\_ACEOF
31758 #define HAVE_PANGO_XFT 1
31759 _ACEOF
31760
31761                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31762                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31763                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31764
31765 fi
31766             save_LIBS="$LIBS"
31767             LIBS="$LIBS $PANGOX_LIBS"
31768
31769 for ac_func in pango_font_family_is_monospace
31770 do
31771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31775   echo $ECHO_N "(cached) $ECHO_C" >&6
31776 else
31777   cat >conftest.$ac_ext <<_ACEOF
31778 /* confdefs.h.  */
31779 _ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h.  */
31783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31785 #define $ac_func innocuous_$ac_func
31786
31787 /* System header to define __stub macros and hopefully few prototypes,
31788     which can conflict with char $ac_func (); below.
31789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31790     <limits.h> exists even on freestanding compilers.  */
31791
31792 #ifdef __STDC__
31793 # include <limits.h>
31794 #else
31795 # include <assert.h>
31796 #endif
31797
31798 #undef $ac_func
31799
31800 /* Override any GCC internal prototype to avoid an error.
31801    Use char because int might match the return type of a GCC
31802    builtin and then its argument prototype would still apply.  */
31803 #ifdef __cplusplus
31804 extern "C"
31805 #endif
31806 char $ac_func ();
31807 /* The GNU C library defines this for functions which it implements
31808     to always fail with ENOSYS.  Some functions are actually named
31809     something starting with __ and the normal name is an alias.  */
31810 #if defined __stub_$ac_func || defined __stub___$ac_func
31811 choke me
31812 #endif
31813
31814 int
31815 main ()
31816 {
31817 return $ac_func ();
31818   ;
31819   return 0;
31820 }
31821 _ACEOF
31822 rm -f conftest.$ac_objext conftest$ac_exeext
31823 if { (ac_try="$ac_link"
31824 case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829   (eval "$ac_link") 2>conftest.er1
31830   ac_status=$?
31831   grep -v '^ *+' conftest.er1 >conftest.err
31832   rm -f conftest.er1
31833   cat conftest.err >&5
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); } && {
31836          test -z "$ac_c_werror_flag" ||
31837          test ! -s conftest.err
31838        } && test -s conftest$ac_exeext &&
31839        $as_test_x conftest$ac_exeext; then
31840   eval "$as_ac_var=yes"
31841 else
31842   echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31844
31845         eval "$as_ac_var=no"
31846 fi
31847
31848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31849       conftest$ac_exeext conftest.$ac_ext
31850 fi
31851 ac_res=`eval echo '${'$as_ac_var'}'`
31852                { echo "$as_me:$LINENO: result: $ac_res" >&5
31853 echo "${ECHO_T}$ac_res" >&6; }
31854 if test `eval echo '${'$as_ac_var'}'` = yes; then
31855   cat >>confdefs.h <<_ACEOF
31856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31857 _ACEOF
31858
31859 fi
31860 done
31861
31862             LIBS="$save_LIBS"
31863         fi
31864
31865         wxUSE_UNIVERSAL="yes"
31866
31867         if test "$wxUSE_NANOX" = "yes"; then
31868             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31869             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"
31870             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31871         else
31872             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31873         fi
31874
31875         TOOLKIT=X11
31876         GUIDIST=X11_DIST
31877     fi
31878
31879     if test "$wxUSE_MOTIF" = 1; then
31880         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31881 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31882
31883 ac_find_includes=
31884 for ac_dir in $SEARCH_INCLUDE /usr/include;
31885   do
31886     if test -f "$ac_dir/Xm/Xm.h"; then
31887       ac_find_includes=$ac_dir
31888       break
31889     fi
31890   done
31891
31892         if test "$ac_find_includes" != "" ; then
31893             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31894 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31895
31896     if test "x$ac_find_includes" = "x/usr/include"; then
31897     ac_path_to_include=""
31898   else
31899     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31900     result=$?
31901     if test $result = 0; then
31902       ac_path_to_include=""
31903     else
31904       ac_path_to_include=" -I$ac_find_includes"
31905     fi
31906   fi
31907
31908             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31909         else
31910             save_CFLAGS=$CFLAGS
31911             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31912
31913             cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31919
31920                     #include <Xm/Xm.h>
31921
31922 int
31923 main ()
31924 {
31925
31926                     int version;
31927                     version = xmUseVersion;
31928
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_compile") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } && {
31947          test -z "$ac_c_werror_flag" ||
31948          test ! -s conftest.err
31949        } && test -s conftest.$ac_objext; then
31950
31951                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31952 echo "${ECHO_T}found in default search path" >&6; }
31953                     COMPILED_X_PROGRAM=1
31954
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959
31960                     { echo "$as_me:$LINENO: result: no" >&5
31961 echo "${ECHO_T}no" >&6; }
31962                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31963 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31964    { (exit 1); exit 1; }; }
31965
31966
31967 fi
31968
31969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31970
31971             CFLAGS=$save_CFLAGS
31972         fi
31973
31974
31975         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31976 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31977
31978   ac_find_libraries=
31979   for ac_dir in $SEARCH_LIB;
31980   do
31981     for ac_extension in a so sl dylib dll.a; do
31982       if test -f "$ac_dir/libXm.$ac_extension"; then
31983         ac_find_libraries=$ac_dir
31984         break 2
31985       fi
31986     done
31987   done
31988
31989
31990         if test "x$ac_find_libraries" != "x" ; then
31991             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31992 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31993
31994
31995     if test "$ac_find_libraries" = "default location"; then
31996     ac_path_to_link=""
31997   else
31998     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31999     result=$?
32000     if test $result = 0; then
32001       ac_path_to_link=""
32002     else
32003       ac_path_to_link=" -L$ac_find_libraries"
32004     fi
32005   fi
32006
32007             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32008         else
32009                                                 save_CFLAGS=$CFLAGS
32010             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32011             save_LIBS="$LIBS"
32012             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32013
32014             cat >conftest.$ac_ext <<_ACEOF
32015 /* confdefs.h.  */
32016 _ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h.  */
32020
32021                     #include <Xm/Xm.h>
32022
32023 int
32024 main ()
32025 {
32026
32027                     int version;
32028                     version = xmUseVersion;
32029
32030   ;
32031   return 0;
32032 }
32033 _ACEOF
32034 rm -f conftest.$ac_objext conftest$ac_exeext
32035 if { (ac_try="$ac_link"
32036 case "(($ac_try" in
32037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038   *) ac_try_echo=$ac_try;;
32039 esac
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041   (eval "$ac_link") 2>conftest.er1
32042   ac_status=$?
32043   grep -v '^ *+' conftest.er1 >conftest.err
32044   rm -f conftest.er1
32045   cat conftest.err >&5
32046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047   (exit $ac_status); } && {
32048          test -z "$ac_c_werror_flag" ||
32049          test ! -s conftest.err
32050        } && test -s conftest$ac_exeext &&
32051        $as_test_x conftest$ac_exeext; then
32052
32053                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32054 echo "${ECHO_T}found in default search path" >&6; }
32055                     COMPILED_X_PROGRAM=1
32056
32057 else
32058   echo "$as_me: failed program was:" >&5
32059 sed 's/^/| /' conftest.$ac_ext >&5
32060
32061
32062                     { echo "$as_me:$LINENO: result: no" >&5
32063 echo "${ECHO_T}no" >&6; }
32064                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32065 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32066    { (exit 1); exit 1; }; }
32067
32068
32069 fi
32070
32071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32072       conftest$ac_exeext conftest.$ac_ext
32073
32074             CFLAGS=$save_CFLAGS
32075             LIBS="$save_LIBS"
32076         fi
32077
32078         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32079 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32080         libp_link=""
32081         libsm_ice_link=""
32082         libs_found=0
32083         for libp in "" " -lXp"; do
32084             if test "$libs_found" = 0; then
32085                 for libsm_ice in "" " -lSM -lICE"; do
32086                     if test "$libs_found" = 0; then
32087                         save_LIBS="$LIBS"
32088                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32089                         save_CFLAGS=$CFLAGS
32090                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32091
32092                         cat >conftest.$ac_ext <<_ACEOF
32093 /* confdefs.h.  */
32094 _ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h.  */
32098
32099                                 #include <Xm/Xm.h>
32100                                 #include <Xm/List.h>
32101
32102 int
32103 main ()
32104 {
32105
32106                                 XmString string = NULL;
32107                                 Widget w = NULL;
32108                                 int position = 0;
32109                                 XmListAddItem(w, string, position);
32110
32111   ;
32112   return 0;
32113 }
32114 _ACEOF
32115 rm -f conftest.$ac_objext conftest$ac_exeext
32116 if { (ac_try="$ac_link"
32117 case "(($ac_try" in
32118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32119   *) ac_try_echo=$ac_try;;
32120 esac
32121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32122   (eval "$ac_link") 2>conftest.er1
32123   ac_status=$?
32124   grep -v '^ *+' conftest.er1 >conftest.err
32125   rm -f conftest.er1
32126   cat conftest.err >&5
32127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128   (exit $ac_status); } && {
32129          test -z "$ac_c_werror_flag" ||
32130          test ! -s conftest.err
32131        } && test -s conftest$ac_exeext &&
32132        $as_test_x conftest$ac_exeext; then
32133
32134                                 libp_link="$libp"
32135                                 libsm_ice_link="$libsm_ice"
32136                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32137 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32138                                 libs_found=1
32139
32140 else
32141   echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32143
32144
32145
32146 fi
32147
32148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32149       conftest$ac_exeext conftest.$ac_ext
32150
32151                         LIBS="$save_LIBS"
32152                         CFLAGS=$save_CFLAGS
32153                     fi
32154                 done
32155             fi
32156         done
32157
32158         if test "$libs_found" = 0; then
32159             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32160 echo "${ECHO_T}can't find the right libraries" >&6; }
32161             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32162 echo "$as_me: error: can't link a simple motif program" >&2;}
32163    { (exit 1); exit 1; }; }
32164         fi
32165
32166                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32167 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32168 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32169   echo $ECHO_N "(cached) $ECHO_C" >&6
32170 else
32171   ac_check_lib_save_LIBS=$LIBS
32172 LIBS="-lSgm  $LIBS"
32173 cat >conftest.$ac_ext <<_ACEOF
32174 /* confdefs.h.  */
32175 _ACEOF
32176 cat confdefs.h >>conftest.$ac_ext
32177 cat >>conftest.$ac_ext <<_ACEOF
32178 /* end confdefs.h.  */
32179
32180 /* Override any GCC internal prototype to avoid an error.
32181    Use char because int might match the return type of a GCC
32182    builtin and then its argument prototype would still apply.  */
32183 #ifdef __cplusplus
32184 extern "C"
32185 #endif
32186 char SgCreateList ();
32187 int
32188 main ()
32189 {
32190 return SgCreateList ();
32191   ;
32192   return 0;
32193 }
32194 _ACEOF
32195 rm -f conftest.$ac_objext conftest$ac_exeext
32196 if { (ac_try="$ac_link"
32197 case "(($ac_try" in
32198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199   *) ac_try_echo=$ac_try;;
32200 esac
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202   (eval "$ac_link") 2>conftest.er1
32203   ac_status=$?
32204   grep -v '^ *+' conftest.er1 >conftest.err
32205   rm -f conftest.er1
32206   cat conftest.err >&5
32207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208   (exit $ac_status); } && {
32209          test -z "$ac_c_werror_flag" ||
32210          test ! -s conftest.err
32211        } && test -s conftest$ac_exeext &&
32212        $as_test_x conftest$ac_exeext; then
32213   ac_cv_lib_Sgm_SgCreateList=yes
32214 else
32215   echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218         ac_cv_lib_Sgm_SgCreateList=no
32219 fi
32220
32221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32222       conftest$ac_exeext conftest.$ac_ext
32223 LIBS=$ac_check_lib_save_LIBS
32224 fi
32225 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32226 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32227 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32228   libsgm_link=" -lSgm"
32229 fi
32230
32231
32232         save_CFLAGS=$CFLAGS
32233         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32234
32235         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32236 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32237 if test "${wx_cv_lib_motif2+set}" = set; then
32238   echo $ECHO_N "(cached) $ECHO_C" >&6
32239 else
32240   cat >conftest.$ac_ext <<_ACEOF
32241 /* confdefs.h.  */
32242 _ACEOF
32243 cat confdefs.h >>conftest.$ac_ext
32244 cat >>conftest.$ac_ext <<_ACEOF
32245 /* end confdefs.h.  */
32246
32247                             #include <Xm/Xm.h>
32248
32249 int
32250 main ()
32251 {
32252
32253                             #if XmVersion < 2000
32254                             Not Motif 2
32255                             #endif
32256
32257   ;
32258   return 0;
32259 }
32260 _ACEOF
32261 rm -f conftest.$ac_objext
32262 if { (ac_try="$ac_compile"
32263 case "(($ac_try" in
32264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265   *) ac_try_echo=$ac_try;;
32266 esac
32267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268   (eval "$ac_compile") 2>conftest.er1
32269   ac_status=$?
32270   grep -v '^ *+' conftest.er1 >conftest.err
32271   rm -f conftest.er1
32272   cat conftest.err >&5
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } && {
32275          test -z "$ac_c_werror_flag" ||
32276          test ! -s conftest.err
32277        } && test -s conftest.$ac_objext; then
32278   wx_cv_lib_motif2="yes"
32279 else
32280   echo "$as_me: failed program was:" >&5
32281 sed 's/^/| /' conftest.$ac_ext >&5
32282
32283         wx_cv_lib_motif2="no"
32284 fi
32285
32286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32287 fi
32288 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32289 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32290         if test "$wx_cv_lib_motif2" = "yes"; then
32291             cat >>confdefs.h <<\_ACEOF
32292 #define __WXMOTIF20__ 1
32293 _ACEOF
32294
32295         else
32296             cat >>confdefs.h <<\_ACEOF
32297 #define __WXMOTIF20__ 0
32298 _ACEOF
32299
32300         fi
32301
32302         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32303 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32304 if test "${wx_cv_lib_lesstif+set}" = set; then
32305   echo $ECHO_N "(cached) $ECHO_C" >&6
32306 else
32307   cat >conftest.$ac_ext <<_ACEOF
32308 /* confdefs.h.  */
32309 _ACEOF
32310 cat confdefs.h >>conftest.$ac_ext
32311 cat >>conftest.$ac_ext <<_ACEOF
32312 /* end confdefs.h.  */
32313
32314                             #include <Xm/Xm.h>
32315
32316 int
32317 main ()
32318 {
32319
32320                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32321                             Not Lesstif
32322                             #endif
32323
32324   ;
32325   return 0;
32326 }
32327 _ACEOF
32328 rm -f conftest.$ac_objext
32329 if { (ac_try="$ac_compile"
32330 case "(($ac_try" in
32331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32332   *) ac_try_echo=$ac_try;;
32333 esac
32334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32335   (eval "$ac_compile") 2>conftest.er1
32336   ac_status=$?
32337   grep -v '^ *+' conftest.er1 >conftest.err
32338   rm -f conftest.er1
32339   cat conftest.err >&5
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); } && {
32342          test -z "$ac_c_werror_flag" ||
32343          test ! -s conftest.err
32344        } && test -s conftest.$ac_objext; then
32345   wx_cv_lib_lesstif="yes"
32346 else
32347   echo "$as_me: failed program was:" >&5
32348 sed 's/^/| /' conftest.$ac_ext >&5
32349
32350         wx_cv_lib_lesstif="no"
32351 fi
32352
32353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32354
32355 fi
32356 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32357 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32358         if test "$wx_cv_lib_lesstif" = "yes"; then
32359             cat >>confdefs.h <<\_ACEOF
32360 #define __WXLESSTIF__ 1
32361 _ACEOF
32362
32363         else
32364             cat >>confdefs.h <<\_ACEOF
32365 #define __WXLESSTIF__ 0
32366 _ACEOF
32367
32368         fi
32369
32370         CFLAGS=$save_CFLAGS
32371
32372         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32373         TOOLKIT=MOTIF
32374         GUIDIST=MOTIF_DIST
32375     fi
32376
32377         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32378                 if test "$wxUSE_LIBXPM" = "sys"; then
32379             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32380 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32381
32382   ac_find_libraries=
32383   for ac_dir in $SEARCH_LIB;
32384   do
32385     for ac_extension in a so sl dylib dll.a; do
32386       if test -f "$ac_dir/libXpm.$ac_extension"; then
32387         ac_find_libraries=$ac_dir
32388         break 2
32389       fi
32390     done
32391   done
32392
32393             if test "$ac_find_libraries" != "" ; then
32394
32395     if test "$ac_find_libraries" = "default location"; then
32396     ac_path_to_link=""
32397   else
32398     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32399     result=$?
32400     if test $result = 0; then
32401       ac_path_to_link=""
32402     else
32403       ac_path_to_link=" -L$ac_find_libraries"
32404     fi
32405   fi
32406
32407                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32408                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32409 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32410
32411                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32412 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32413 if test "${wx_cv_x11_xpm_h+set}" = set; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416
32417                         save_CFLAGS=$CFLAGS
32418                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32419
32420                         cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426
32427                                 #include <X11/xpm.h>
32428
32429 int
32430 main ()
32431 {
32432
32433                                 int version;
32434                                 version = XpmLibraryVersion();
32435
32436   ;
32437   return 0;
32438 }
32439 _ACEOF
32440 rm -f conftest.$ac_objext
32441 if { (ac_try="$ac_compile"
32442 case "(($ac_try" in
32443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444   *) ac_try_echo=$ac_try;;
32445 esac
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447   (eval "$ac_compile") 2>conftest.er1
32448   ac_status=$?
32449   grep -v '^ *+' conftest.er1 >conftest.err
32450   rm -f conftest.er1
32451   cat conftest.err >&5
32452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453   (exit $ac_status); } && {
32454          test -z "$ac_c_werror_flag" ||
32455          test ! -s conftest.err
32456        } && test -s conftest.$ac_objext; then
32457   wx_cv_x11_xpm_h=yes
32458 else
32459   echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32461
32462         wx_cv_x11_xpm_h=no
32463
32464 fi
32465
32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32467
32468                         CFLAGS=$save_CFLAGS
32469
32470
32471 fi
32472 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32473 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32474
32475                 if test $wx_cv_x11_xpm_h = "yes"; then
32476                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32477                     cat >>confdefs.h <<\_ACEOF
32478 #define wxHAVE_LIB_XPM 1
32479 _ACEOF
32480
32481                 else
32482                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32483 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32484                 fi
32485             fi
32486
32487         fi
32488
32489                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32490 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32491 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32492   echo $ECHO_N "(cached) $ECHO_C" >&6
32493 else
32494   ac_check_lib_save_LIBS=$LIBS
32495 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32496 cat >conftest.$ac_ext <<_ACEOF
32497 /* confdefs.h.  */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h.  */
32502
32503 /* Override any GCC internal prototype to avoid an error.
32504    Use char because int might match the return type of a GCC
32505    builtin and then its argument prototype would still apply.  */
32506 #ifdef __cplusplus
32507 extern "C"
32508 #endif
32509 char XShapeQueryExtension ();
32510 int
32511 main ()
32512 {
32513 return XShapeQueryExtension ();
32514   ;
32515   return 0;
32516 }
32517 _ACEOF
32518 rm -f conftest.$ac_objext conftest$ac_exeext
32519 if { (ac_try="$ac_link"
32520 case "(($ac_try" in
32521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522   *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525   (eval "$ac_link") 2>conftest.er1
32526   ac_status=$?
32527   grep -v '^ *+' conftest.er1 >conftest.err
32528   rm -f conftest.er1
32529   cat conftest.err >&5
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); } && {
32532          test -z "$ac_c_werror_flag" ||
32533          test ! -s conftest.err
32534        } && test -s conftest$ac_exeext &&
32535        $as_test_x conftest$ac_exeext; then
32536   ac_cv_lib_Xext_XShapeQueryExtension=yes
32537 else
32538   echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32540
32541         ac_cv_lib_Xext_XShapeQueryExtension=no
32542 fi
32543
32544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32545       conftest$ac_exeext conftest.$ac_ext
32546 LIBS=$ac_check_lib_save_LIBS
32547 fi
32548 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32549 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32550 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32551
32552                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32553                       wxHAVE_XEXT_LIB=1
32554
32555 fi
32556
32557
32558         if test "$wxHAVE_XEXT_LIB" = 1; then
32559             save_CFLAGS="$CFLAGS"
32560             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32561
32562             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32563 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32564             cat >conftest.$ac_ext <<_ACEOF
32565 /* confdefs.h.  */
32566 _ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h.  */
32570
32571                             #include <X11/Xlib.h>
32572                             #include <X11/extensions/shape.h>
32573
32574 int
32575 main ()
32576 {
32577
32578                             int dummy1, dummy2;
32579                             XShapeQueryExtension((Display*)NULL,
32580                                                  (int*)NULL, (int*)NULL);
32581
32582   ;
32583   return 0;
32584 }
32585 _ACEOF
32586 rm -f conftest.$ac_objext
32587 if { (ac_try="$ac_compile"
32588 case "(($ac_try" in
32589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590   *) ac_try_echo=$ac_try;;
32591 esac
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593   (eval "$ac_compile") 2>conftest.er1
32594   ac_status=$?
32595   grep -v '^ *+' conftest.er1 >conftest.err
32596   rm -f conftest.er1
32597   cat conftest.err >&5
32598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599   (exit $ac_status); } && {
32600          test -z "$ac_c_werror_flag" ||
32601          test ! -s conftest.err
32602        } && test -s conftest.$ac_objext; then
32603
32604                             cat >>confdefs.h <<\_ACEOF
32605 #define HAVE_XSHAPE 1
32606 _ACEOF
32607
32608                             { echo "$as_me:$LINENO: result: found" >&5
32609 echo "${ECHO_T}found" >&6; }
32610
32611 else
32612   echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32614
32615
32616                             { echo "$as_me:$LINENO: result: not found" >&5
32617 echo "${ECHO_T}not found" >&6; }
32618
32619 fi
32620
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622             CFLAGS="$save_CFLAGS"
32623
32624         fi
32625     fi
32626
32627     if test "$wxUSE_OSX_CARBON" = 1; then
32628         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32629 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32630         if test "$GCC" = yes; then
32631             { echo "$as_me:$LINENO: result: gcc" >&5
32632 echo "${ECHO_T}gcc" >&6; }
32633             CPPFLAGS_PASCAL="-fpascal-strings"
32634         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32635             { echo "$as_me:$LINENO: result: xlc" >&5
32636 echo "${ECHO_T}xlc" >&6; }
32637             CPPFLAGS_PASCAL="-qmacpstr"
32638         else
32639             { echo "$as_me:$LINENO: result: none" >&5
32640 echo "${ECHO_T}none" >&6; }
32641         fi
32642
32643         if test "x$wxUSE_UNIX" = "xyes"; then
32644             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32645         else
32646                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32647         fi
32648
32649         TOOLKIT=OSX_CARBON
32650                 GUIDIST=OSX_CARBON_DIST
32651                         WXBASEPORT="_carbon"
32652     fi
32653
32654     if test "$wxUSE_OSX_COCOA" = 1; then
32655         TOOLKIT=OSX_COCOA
32656         GUIDIST=OSX_COCOA_DIST
32657     fi
32658
32659     if test "$wxUSE_COCOA" = 1; then
32660         TOOLKIT=COCOA
32661         GUIDIST=COCOA_DIST
32662     fi
32663
32664     if test "$wxUSE_PM" = 1; then
32665         TOOLKIT=PM
32666         GUIDIST=PM_DIST
32667         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32668 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32669 if test "${wx_cv_spbcdata+set}" = set; then
32670   echo $ECHO_N "(cached) $ECHO_C" >&6
32671 else
32672
32673                 cat >conftest.$ac_ext <<_ACEOF
32674 /* confdefs.h.  */
32675 _ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h.  */
32679
32680                         #define INCL_PM
32681                         #include <os2.h>
32682
32683 int
32684 main ()
32685 {
32686
32687                         SPBCDATA test;
32688
32689   ;
32690   return 0;
32691 }
32692 _ACEOF
32693 rm -f conftest.$ac_objext
32694 if { (ac_try="$ac_compile"
32695 case "(($ac_try" in
32696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697   *) ac_try_echo=$ac_try;;
32698 esac
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700   (eval "$ac_compile") 2>conftest.er1
32701   ac_status=$?
32702   grep -v '^ *+' conftest.er1 >conftest.err
32703   rm -f conftest.er1
32704   cat conftest.err >&5
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); } && {
32707          test -z "$ac_c_werror_flag" ||
32708          test ! -s conftest.err
32709        } && test -s conftest.$ac_objext; then
32710   wx_cv_spbcdata=yes
32711 else
32712   echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715         wx_cv_spbcdata=no
32716
32717 fi
32718
32719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32720
32721
32722 fi
32723 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32724 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32725
32726         if test $wx_cv_spbcdata = "yes"; then
32727             cat >>confdefs.h <<\_ACEOF
32728 #define HAVE_SPBCDATA 1
32729 _ACEOF
32730
32731         fi
32732     fi
32733
32734         if test "$TOOLKIT" = "PM" ; then
32735         TOOLKIT_DIR="os2"
32736     else
32737         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32738     fi
32739
32740     if test "$wxUSE_UNIVERSAL" = "yes"; then
32741         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32742         WIDGET_SET=univ
32743     fi
32744
32745         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32746     DISTDIR="wx\$(TOOLKIT)"
32747 else
32748     USE_GUI=0
32749
32750             TOOLKIT_DIR="base"
32751
32752         if test "$USE_WIN32" = 1 ; then
32753                         TOOLKIT="MSW"
32754     fi
32755
32756         GUIDIST="BASE_DIST"
32757     DISTDIR="wxBase"
32758 fi
32759
32760
32761
32762 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32763     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32764         wxUSE_UNICODE_UTF8=yes
32765     elif test "$USE_OS2" = 1 ; then
32766                                 wxUSE_UNICODE_UTF8=yes
32767     else
32768         wxUSE_UNICODE_UTF8=no
32769     fi
32770 fi
32771
32772
32773 if test "$wxUSE_GUI" = "yes"; then
32774     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32775
32776 for ac_header in X11/Xlib.h
32777 do
32778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32782   echo $ECHO_N "(cached) $ECHO_C" >&6
32783 else
32784   cat >conftest.$ac_ext <<_ACEOF
32785 /* confdefs.h.  */
32786 _ACEOF
32787 cat confdefs.h >>conftest.$ac_ext
32788 cat >>conftest.$ac_ext <<_ACEOF
32789 /* end confdefs.h.  */
32790
32791
32792 #include <$ac_header>
32793 _ACEOF
32794 rm -f conftest.$ac_objext
32795 if { (ac_try="$ac_compile"
32796 case "(($ac_try" in
32797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798   *) ac_try_echo=$ac_try;;
32799 esac
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801   (eval "$ac_compile") 2>conftest.er1
32802   ac_status=$?
32803   grep -v '^ *+' conftest.er1 >conftest.err
32804   rm -f conftest.er1
32805   cat conftest.err >&5
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); } && {
32808          test -z "$ac_c_werror_flag" ||
32809          test ! -s conftest.err
32810        } && test -s conftest.$ac_objext; then
32811   eval "$as_ac_Header=yes"
32812 else
32813   echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32815
32816         eval "$as_ac_Header=no"
32817 fi
32818
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820 fi
32821 ac_res=`eval echo '${'$as_ac_Header'}'`
32822                { echo "$as_me:$LINENO: result: $ac_res" >&5
32823 echo "${ECHO_T}$ac_res" >&6; }
32824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32825   cat >>confdefs.h <<_ACEOF
32826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32827 _ACEOF
32828
32829 fi
32830
32831 done
32832
32833
32834 for ac_header in X11/XKBlib.h
32835 do
32836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32840   echo $ECHO_N "(cached) $ECHO_C" >&6
32841 else
32842   cat >conftest.$ac_ext <<_ACEOF
32843 /* confdefs.h.  */
32844 _ACEOF
32845 cat confdefs.h >>conftest.$ac_ext
32846 cat >>conftest.$ac_ext <<_ACEOF
32847 /* end confdefs.h.  */
32848
32849                           #if HAVE_X11_XLIB_H
32850                             #include <X11/Xlib.h>
32851                           #endif
32852
32853
32854 #include <$ac_header>
32855 _ACEOF
32856 rm -f conftest.$ac_objext
32857 if { (ac_try="$ac_compile"
32858 case "(($ac_try" in
32859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32860   *) ac_try_echo=$ac_try;;
32861 esac
32862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32863   (eval "$ac_compile") 2>conftest.er1
32864   ac_status=$?
32865   grep -v '^ *+' conftest.er1 >conftest.err
32866   rm -f conftest.er1
32867   cat conftest.err >&5
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); } && {
32870          test -z "$ac_c_werror_flag" ||
32871          test ! -s conftest.err
32872        } && test -s conftest.$ac_objext; then
32873   eval "$as_ac_Header=yes"
32874 else
32875   echo "$as_me: failed program was:" >&5
32876 sed 's/^/| /' conftest.$ac_ext >&5
32877
32878         eval "$as_ac_Header=no"
32879 fi
32880
32881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32882 fi
32883 ac_res=`eval echo '${'$as_ac_Header'}'`
32884                { echo "$as_me:$LINENO: result: $ac_res" >&5
32885 echo "${ECHO_T}$ac_res" >&6; }
32886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32887   cat >>confdefs.h <<_ACEOF
32888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32889 _ACEOF
32890
32891 fi
32892
32893 done
32894
32895     fi
32896 fi
32897
32898
32899
32900 if test "$wxUSE_DISPLAY" = "yes"; then
32901     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32902         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32903 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32904
32905   ac_find_libraries=
32906   for ac_dir in $SEARCH_LIB;
32907   do
32908     for ac_extension in a so sl dylib dll.a; do
32909       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32910         ac_find_libraries=$ac_dir
32911         break 2
32912       fi
32913     done
32914   done
32915
32916         if test "$ac_find_libraries" != "" ; then
32917
32918     if test "$ac_find_libraries" = "default location"; then
32919     ac_path_to_link=""
32920   else
32921     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32922     result=$?
32923     if test $result = 0; then
32924       ac_path_to_link=""
32925     else
32926       ac_path_to_link=" -L$ac_find_libraries"
32927     fi
32928   fi
32929
32930             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32931                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32932             fi
32933             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32934             { echo "$as_me:$LINENO: result: yes" >&5
32935 echo "${ECHO_T}yes" >&6; }
32936
32937             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32938 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32939
32940   ac_find_libraries=
32941   for ac_dir in $SEARCH_LIB;
32942   do
32943     for ac_extension in a so sl dylib dll.a; do
32944       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32945         ac_find_libraries=$ac_dir
32946         break 2
32947       fi
32948     done
32949   done
32950
32951             if test "$ac_find_libraries" != "" ; then
32952                 { echo "$as_me:$LINENO: result: yes" >&5
32953 echo "${ECHO_T}yes" >&6; }
32954
32955 for ac_header in X11/extensions/xf86vmode.h
32956 do
32957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32961   echo $ECHO_N "(cached) $ECHO_C" >&6
32962 else
32963   cat >conftest.$ac_ext <<_ACEOF
32964 /* confdefs.h.  */
32965 _ACEOF
32966 cat confdefs.h >>conftest.$ac_ext
32967 cat >>conftest.$ac_ext <<_ACEOF
32968 /* end confdefs.h.  */
32969
32970                                       #if HAVE_X11_XLIB_H
32971                                         #include <X11/Xlib.h>
32972                                       #endif
32973
32974
32975 #include <$ac_header>
32976 _ACEOF
32977 rm -f conftest.$ac_objext
32978 if { (ac_try="$ac_compile"
32979 case "(($ac_try" in
32980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32981   *) ac_try_echo=$ac_try;;
32982 esac
32983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984   (eval "$ac_compile") 2>conftest.er1
32985   ac_status=$?
32986   grep -v '^ *+' conftest.er1 >conftest.err
32987   rm -f conftest.er1
32988   cat conftest.err >&5
32989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990   (exit $ac_status); } && {
32991          test -z "$ac_c_werror_flag" ||
32992          test ! -s conftest.err
32993        } && test -s conftest.$ac_objext; then
32994   eval "$as_ac_Header=yes"
32995 else
32996   echo "$as_me: failed program was:" >&5
32997 sed 's/^/| /' conftest.$ac_ext >&5
32998
32999         eval "$as_ac_Header=no"
33000 fi
33001
33002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33003 fi
33004 ac_res=`eval echo '${'$as_ac_Header'}'`
33005                { echo "$as_me:$LINENO: result: $ac_res" >&5
33006 echo "${ECHO_T}$ac_res" >&6; }
33007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33008   cat >>confdefs.h <<_ACEOF
33009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33010 _ACEOF
33011
33012                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33013
33014 fi
33015
33016 done
33017
33018             else
33019                 { echo "$as_me:$LINENO: result: no" >&5
33020 echo "${ECHO_T}no" >&6; }
33021             fi
33022
33023         else
33024             { echo "$as_me:$LINENO: result: no" >&5
33025 echo "${ECHO_T}no" >&6; }
33026             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33027 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33028             wxUSE_DISPLAY="no"
33029         fi
33030     elif test "$wxUSE_MSW" = 1; then
33031         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33032 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33033 if test "${ac_cv_header_ddraw_h+set}" = set; then
33034   echo $ECHO_N "(cached) $ECHO_C" >&6
33035 else
33036   cat >conftest.$ac_ext <<_ACEOF
33037 /* confdefs.h.  */
33038 _ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h.  */
33042 #include <windows.h>
33043
33044 #include <ddraw.h>
33045 _ACEOF
33046 rm -f conftest.$ac_objext
33047 if { (ac_try="$ac_compile"
33048 case "(($ac_try" in
33049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050   *) ac_try_echo=$ac_try;;
33051 esac
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053   (eval "$ac_compile") 2>conftest.er1
33054   ac_status=$?
33055   grep -v '^ *+' conftest.er1 >conftest.err
33056   rm -f conftest.er1
33057   cat conftest.err >&5
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); } && {
33060          test -z "$ac_c_werror_flag" ||
33061          test ! -s conftest.err
33062        } && test -s conftest.$ac_objext; then
33063   ac_cv_header_ddraw_h=yes
33064 else
33065   echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068         ac_cv_header_ddraw_h=no
33069 fi
33070
33071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33072 fi
33073 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33074 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33075
33076
33077     fi
33078 fi
33079
33080 if test "$wxUSE_DETECT_SM" = "yes"; then
33081     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33082         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33083 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33084
33085   ac_find_libraries=
33086   for ac_dir in $SEARCH_LIB;
33087   do
33088     for ac_extension in a so sl dylib dll.a; do
33089       if test -f "$ac_dir/libSM.$ac_extension"; then
33090         ac_find_libraries=$ac_dir
33091         break 2
33092       fi
33093     done
33094   done
33095
33096         if test "$ac_find_libraries" != "" ; then
33097
33098     if test "$ac_find_libraries" = "default location"; then
33099     ac_path_to_link=""
33100   else
33101     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33102     result=$?
33103     if test $result = 0; then
33104       ac_path_to_link=""
33105     else
33106       ac_path_to_link=" -L$ac_find_libraries"
33107     fi
33108   fi
33109
33110             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33111                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33112             fi
33113             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33114             { echo "$as_me:$LINENO: result: yes" >&5
33115 echo "${ECHO_T}yes" >&6; }
33116         else
33117             { echo "$as_me:$LINENO: result: no" >&5
33118 echo "${ECHO_T}no" >&6; }
33119             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33120 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33121             wxUSE_DETECT_SM="no"
33122         fi
33123     else
33124         wxUSE_DETECT_SM="no"
33125     fi
33126 fi
33127
33128
33129
33130 USE_OPENGL=0
33131 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33132
33133
33134     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33135         OPENGL_LIBS="-framework OpenGL -framework AGL"
33136     elif test "$wxUSE_MSW" = 1; then
33137         OPENGL_LIBS="-lopengl32 -lglu32"
33138     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33139
33140                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33141 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33142
33143 ac_find_includes=
33144 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33145   do
33146     if test -f "$ac_dir/GL/gl.h"; then
33147       ac_find_includes=$ac_dir
33148       break
33149     fi
33150   done
33151
33152         if test "$ac_find_includes" != "" ; then
33153             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33154 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33155
33156     if test "x$ac_find_includes" = "x/usr/include"; then
33157     ac_path_to_include=""
33158   else
33159     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33160     result=$?
33161     if test $result = 0; then
33162       ac_path_to_include=""
33163     else
33164       ac_path_to_include=" -I$ac_find_includes"
33165     fi
33166   fi
33167
33168             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33169         else
33170             { echo "$as_me:$LINENO: result: not found" >&5
33171 echo "${ECHO_T}not found" >&6; }
33172         fi
33173
33174         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33175 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179   cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h.  */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h.  */
33185
33186
33187 #include <GL/gl.h>
33188 _ACEOF
33189 rm -f conftest.$ac_objext
33190 if { (ac_try="$ac_compile"
33191 case "(($ac_try" in
33192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193   *) ac_try_echo=$ac_try;;
33194 esac
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196   (eval "$ac_compile") 2>conftest.er1
33197   ac_status=$?
33198   grep -v '^ *+' conftest.er1 >conftest.err
33199   rm -f conftest.er1
33200   cat conftest.err >&5
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); } && {
33203          test -z "$ac_c_werror_flag" ||
33204          test ! -s conftest.err
33205        } && test -s conftest.$ac_objext; then
33206   ac_cv_header_GL_gl_h=yes
33207 else
33208   echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33210
33211         ac_cv_header_GL_gl_h=no
33212 fi
33213
33214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33215 fi
33216 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33217 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33218 if test $ac_cv_header_GL_gl_h = yes; then
33219
33220             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33221 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33222 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33223   echo $ECHO_N "(cached) $ECHO_C" >&6
33224 else
33225   cat >conftest.$ac_ext <<_ACEOF
33226 /* confdefs.h.  */
33227 _ACEOF
33228 cat confdefs.h >>conftest.$ac_ext
33229 cat >>conftest.$ac_ext <<_ACEOF
33230 /* end confdefs.h.  */
33231
33232
33233 #include <GL/glu.h>
33234 _ACEOF
33235 rm -f conftest.$ac_objext
33236 if { (ac_try="$ac_compile"
33237 case "(($ac_try" in
33238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239   *) ac_try_echo=$ac_try;;
33240 esac
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242   (eval "$ac_compile") 2>conftest.er1
33243   ac_status=$?
33244   grep -v '^ *+' conftest.er1 >conftest.err
33245   rm -f conftest.er1
33246   cat conftest.err >&5
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); } && {
33249          test -z "$ac_c_werror_flag" ||
33250          test ! -s conftest.err
33251        } && test -s conftest.$ac_objext; then
33252   ac_cv_header_GL_glu_h=yes
33253 else
33254   echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33256
33257         ac_cv_header_GL_glu_h=no
33258 fi
33259
33260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33261 fi
33262 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33263 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33264 if test $ac_cv_header_GL_glu_h = yes; then
33265
33266                 found_gl=0
33267
33268                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33269 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33270
33271   ac_find_libraries=
33272   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33273   do
33274     for ac_extension in a so sl dylib dll.a; do
33275       if test -f "$ac_dir/libGL.$ac_extension"; then
33276         ac_find_libraries=$ac_dir
33277         break 2
33278       fi
33279     done
33280   done
33281
33282                 if test "$ac_find_libraries" != "" ; then
33283                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33284 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33285
33286
33287     if test "$ac_find_libraries" = "default location"; then
33288     ac_path_to_link=""
33289   else
33290     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33291     result=$?
33292     if test $result = 0; then
33293       ac_path_to_link=""
33294     else
33295       ac_path_to_link=" -L$ac_find_libraries"
33296     fi
33297   fi
33298
33299                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33300                         LDFLAGS_GL="$ac_path_to_link"
33301                     fi
33302
33303                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33304 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33305
33306   ac_find_libraries=
33307   for ac_dir in $SEARCH_LIB;
33308   do
33309     for ac_extension in a so sl dylib dll.a; do
33310       if test -f "$ac_dir/libGLU.$ac_extension"; then
33311         ac_find_libraries=$ac_dir
33312         break 2
33313       fi
33314     done
33315   done
33316
33317                     if test "$ac_find_libraries" != "" ; then
33318
33319     if test "$ac_find_libraries" = "default location"; then
33320     ac_path_to_link=""
33321   else
33322     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33323     result=$?
33324     if test $result = 0; then
33325       ac_path_to_link=""
33326     else
33327       ac_path_to_link=" -L$ac_find_libraries"
33328     fi
33329   fi
33330
33331                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33332                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33333                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33334                         fi
33335
33336                         found_gl=1
33337                         OPENGL_LIBS="-lGL -lGLU"
33338                         { echo "$as_me:$LINENO: result: yes" >&5
33339 echo "${ECHO_T}yes" >&6; }
33340                     else
33341                         { echo "$as_me:$LINENO: result: no" >&5
33342 echo "${ECHO_T}no" >&6; }
33343                     fi
33344                 else
33345                     { echo "$as_me:$LINENO: result: no" >&5
33346 echo "${ECHO_T}no" >&6; }
33347                 fi
33348
33349                 if test "$found_gl" != 1; then
33350                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33351 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33352
33353   ac_find_libraries=
33354   for ac_dir in $SEARCH_LIB;
33355   do
33356     for ac_extension in a so sl dylib dll.a; do
33357       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33358         ac_find_libraries=$ac_dir
33359         break 2
33360       fi
33361     done
33362   done
33363
33364                     if test "$ac_find_libraries" != "" ; then
33365
33366     if test "$ac_find_libraries" = "default location"; then
33367     ac_path_to_link=""
33368   else
33369     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33370     result=$?
33371     if test $result = 0; then
33372       ac_path_to_link=""
33373     else
33374       ac_path_to_link=" -L$ac_find_libraries"
33375     fi
33376   fi
33377
33378                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33379                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33380                         { echo "$as_me:$LINENO: result: yes" >&5
33381 echo "${ECHO_T}yes" >&6; }
33382                     else
33383                         { echo "$as_me:$LINENO: result: no" >&5
33384 echo "${ECHO_T}no" >&6; }
33385                     fi
33386                 fi
33387
33388 fi
33389
33390
33391
33392 fi
33393
33394
33395
33396         if test "x$OPENGL_LIBS" = "x"; then
33397             if test "$wxUSE_OPENGL" = "yes"; then
33398                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33399 echo "$as_me: error: OpenGL libraries not available" >&2;}
33400    { (exit 1); exit 1; }; }
33401             else
33402                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33403 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33404                 wxUSE_OPENGL=no
33405                 USE_OPENGL=0
33406             fi
33407         fi
33408     else
33409         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33410 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33411         wxUSE_OPENGL="no"
33412     fi
33413
33414     if test "$wxUSE_OPENGL" = "auto"; then
33415                                 wxUSE_OPENGL=yes
33416     fi
33417
33418     if test "$wxUSE_OPENGL" = "yes"; then
33419         USE_OPENGL=1
33420         cat >>confdefs.h <<\_ACEOF
33421 #define wxUSE_OPENGL 1
33422 _ACEOF
33423
33424         cat >>confdefs.h <<\_ACEOF
33425 #define wxUSE_GLCANVAS 1
33426 _ACEOF
33427
33428         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33429     fi
33430 fi
33431
33432
33433 if test -n "$TOOLKIT" ; then
33434     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33435 fi
33436
33437
33438
33439 if test "$wxUSE_SHARED" = "yes"; then
33440     case "${host}" in
33441       *-pc-msdosdjgpp )
33442                 wxUSE_SHARED=no
33443         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33444 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33445       ;;
33446     esac
33447 fi
33448
33449 if test "$wxUSE_SHARED" = "yes"; then
33450
33451
33452     case "${host}" in
33453         *-*-cygwin* | *-*-mingw* )
33454                                                                                                 wx_cv_version_script=no
33455             ;;
33456
33457         *)
33458             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33459 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33460 if test "${wx_cv_version_script+set}" = set; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463
33464                 echo "VER_1 { *; };" >conftest.sym
33465                 echo "int main() { return 0; }" >conftest.cpp
33466
33467                 if { ac_try='
33468                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33469                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471   (eval $ac_try) 2>&5
33472   ac_status=$?
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); }; } ; then
33475                   if test -s conftest.stderr ; then
33476                       wx_cv_version_script=no
33477                   else
33478                       wx_cv_version_script=yes
33479                   fi
33480                 else
33481                   wx_cv_version_script=no
33482                 fi
33483
33484                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33485                 then
33486                   echo "struct B { virtual ~B() { } }; \
33487                         struct D : public B { }; \
33488                         void F() { D d; }" > conftest.cpp
33489
33490                   if { ac_try='
33491                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33492                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494   (eval $ac_try) 2>&5
33495   ac_status=$?
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); }; } &&
33498                      { ac_try='
33499                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33500                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502   (eval $ac_try) 2>&5
33503   ac_status=$?
33504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505   (exit $ac_status); }; }
33506                   then
33507                     if { ac_try='
33508                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33509                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33511   (eval $ac_try) 2>&5
33512   ac_status=$?
33513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514   (exit $ac_status); }; }
33515                     then
33516                       wx_cv_version_script=yes
33517                     else
33518                       wx_cv_version_script=no
33519                     fi
33520                   fi
33521                 fi
33522
33523                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33524                 rm -f conftest1.output conftest2.output conftest3.output
33525
33526 fi
33527 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33528 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33529
33530             if test $wx_cv_version_script = yes ; then
33531                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33532             fi
33533             ;;
33534     esac
33535
33536
33537             if test "$wxUSE_VISIBILITY" != "no"; then
33538
33539
33540   if test -n "$GCC"; then
33541     CFLAGS_VISIBILITY="-fvisibility=hidden"
33542     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33543     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33544 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33545     if test "${wx_cv_cc_visibility+set}" = set; then
33546   echo $ECHO_N "(cached) $ECHO_C" >&6
33547 else
33548
33549       wx_save_CXXFLAGS="$CXXFLAGS"
33550       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33551       ac_ext=cpp
33552 ac_cpp='$CXXCPP $CPPFLAGS'
33553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33556
33557       cat >conftest.$ac_ext <<_ACEOF
33558 /* confdefs.h.  */
33559 _ACEOF
33560 cat confdefs.h >>conftest.$ac_ext
33561 cat >>conftest.$ac_ext <<_ACEOF
33562 /* end confdefs.h.  */
33563
33564          /* we need gcc >= 4.0, older versions with visibility support
33565             didn't have class visibility: */
33566          #if defined(__GNUC__) && __GNUC__ < 4
33567          error this gcc is too old;
33568          #endif
33569
33570          /* visibility only makes sense for ELF shared libs: */
33571          #if !defined(__ELF__) && !defined(__APPLE__)
33572          error this platform has no visibility;
33573          #endif
33574
33575          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33576          extern __attribute__((__visibility__("default"))) int exportedvar;
33577          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33578          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33579          class __attribute__((__visibility__("default"))) Foo {
33580            Foo() {}
33581          };
33582
33583 int
33584 main ()
33585 {
33586
33587   ;
33588   return 0;
33589 }
33590 _ACEOF
33591 rm -f conftest.$ac_objext
33592 if { (ac_try="$ac_compile"
33593 case "(($ac_try" in
33594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595   *) ac_try_echo=$ac_try;;
33596 esac
33597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598   (eval "$ac_compile") 2>conftest.er1
33599   ac_status=$?
33600   grep -v '^ *+' conftest.er1 >conftest.err
33601   rm -f conftest.er1
33602   cat conftest.err >&5
33603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604   (exit $ac_status); } && {
33605          test -z "$ac_cxx_werror_flag" ||
33606          test ! -s conftest.err
33607        } && test -s conftest.$ac_objext; then
33608   wx_cv_cc_visibility=yes
33609 else
33610   echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613         wx_cv_cc_visibility=no
33614 fi
33615
33616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33617       ac_ext=c
33618 ac_cpp='$CPP $CPPFLAGS'
33619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33622
33623       CXXFLAGS="$wx_save_CXXFLAGS"
33624 fi
33625
33626     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33627 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33628     if test $wx_cv_cc_visibility = yes; then
33629                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33630 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33631       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33632   echo $ECHO_N "(cached) $ECHO_C" >&6
33633 else
33634
33635         wx_save_CXXFLAGS="$CXXFLAGS"
33636         wx_save_LDFLAGS="$LDFLAGS"
33637         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33638         LDFLAGS="$LDFLAGS -shared -fPIC"
33639         ac_ext=cpp
33640 ac_cpp='$CXXCPP $CPPFLAGS'
33641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33644
33645         cat >conftest.$ac_ext <<_ACEOF
33646 /* confdefs.h.  */
33647 _ACEOF
33648 cat confdefs.h >>conftest.$ac_ext
33649 cat >>conftest.$ac_ext <<_ACEOF
33650 /* end confdefs.h.  */
33651
33652             #include <string>
33653
33654 int
33655 main ()
33656 {
33657
33658             std::string s("hello");
33659             return s.length();
33660
33661   ;
33662   return 0;
33663 }
33664 _ACEOF
33665 rm -f conftest.$ac_objext conftest$ac_exeext
33666 if { (ac_try="$ac_link"
33667 case "(($ac_try" in
33668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669   *) ac_try_echo=$ac_try;;
33670 esac
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672   (eval "$ac_link") 2>conftest.er1
33673   ac_status=$?
33674   grep -v '^ *+' conftest.er1 >conftest.err
33675   rm -f conftest.er1
33676   cat conftest.err >&5
33677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678   (exit $ac_status); } && {
33679          test -z "$ac_cxx_werror_flag" ||
33680          test ! -s conftest.err
33681        } && test -s conftest$ac_exeext &&
33682        $as_test_x conftest$ac_exeext; then
33683   wx_cv_cc_broken_libstdcxx_visibility=no
33684 else
33685   echo "$as_me: failed program was:" >&5
33686 sed 's/^/| /' conftest.$ac_ext >&5
33687
33688         wx_cv_cc_broken_libstdcxx_visibility=yes
33689 fi
33690
33691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33692       conftest$ac_exeext conftest.$ac_ext
33693         ac_ext=c
33694 ac_cpp='$CPP $CPPFLAGS'
33695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33698
33699         CXXFLAGS="$wx_save_CXXFLAGS"
33700         LDFLAGS="$wx_save_LDFLAGS"
33701 fi
33702
33703       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33704 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33705
33706       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33707         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33708 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33709         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33710   echo $ECHO_N "(cached) $ECHO_C" >&6
33711 else
33712
33713           ac_ext=cpp
33714 ac_cpp='$CXXCPP $CPPFLAGS'
33715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33718
33719           cat >conftest.$ac_ext <<_ACEOF
33720 /* confdefs.h.  */
33721 _ACEOF
33722 cat confdefs.h >>conftest.$ac_ext
33723 cat >>conftest.$ac_ext <<_ACEOF
33724 /* end confdefs.h.  */
33725
33726               #pragma GCC visibility push(default)
33727               #include <string>
33728               #pragma GCC visibility pop
33729
33730 int
33731 main ()
33732 {
33733
33734               std::string s("hello");
33735               return s.length();
33736
33737   ;
33738   return 0;
33739 }
33740 _ACEOF
33741 rm -f conftest.$ac_objext conftest$ac_exeext
33742 if { (ac_try="$ac_link"
33743 case "(($ac_try" in
33744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745   *) ac_try_echo=$ac_try;;
33746 esac
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748   (eval "$ac_link") 2>conftest.er1
33749   ac_status=$?
33750   grep -v '^ *+' conftest.er1 >conftest.err
33751   rm -f conftest.er1
33752   cat conftest.err >&5
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); } && {
33755          test -z "$ac_cxx_werror_flag" ||
33756          test ! -s conftest.err
33757        } && test -s conftest$ac_exeext &&
33758        $as_test_x conftest$ac_exeext; then
33759   wx_cv_cc_visibility_workaround=no
33760 else
33761   echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33763
33764         wx_cv_cc_visibility_workaround=yes
33765 fi
33766
33767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33768       conftest$ac_exeext conftest.$ac_ext
33769           ac_ext=c
33770 ac_cpp='$CPP $CPPFLAGS'
33771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33774
33775
33776 fi
33777
33778         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33779 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33780
33781         if test $wx_cv_cc_visibility_workaround = no; then
33782                     wx_cv_cc_visibility=no
33783         fi
33784       fi
33785     fi
33786
33787     if test $wx_cv_cc_visibility = yes; then
33788       cat >>confdefs.h <<\_ACEOF
33789 #define HAVE_VISIBILITY 1
33790 _ACEOF
33791
33792       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33793         cat >>confdefs.h <<\_ACEOF
33794 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33795 _ACEOF
33796
33797       fi
33798     else
33799       CFLAGS_VISIBILITY=""
33800       CXXFLAGS_VISIBILITY=""
33801     fi
33802
33803
33804   fi
33805
33806     fi
33807
33808         if test "x$SUNCXX" = xyes; then
33809         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33810         WXCONFIG_RPATH="-R\$libdir"
33811     else
33812     case "${host}" in
33813       *-*-linux* | *-*-gnu* )
33814         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33815         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33816         ;;
33817
33818       *-*-solaris2* )
33819
33820                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33821
33822                         saveLdflags="$LDFLAGS"
33823         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33824         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33825 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33826         cat >conftest.$ac_ext <<_ACEOF
33827 /* confdefs.h.  */
33828 _ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h.  */
33832
33833 int
33834 main ()
33835 {
33836
33837   ;
33838   return 0;
33839 }
33840 _ACEOF
33841 rm -f conftest.$ac_objext conftest$ac_exeext
33842 if { (ac_try="$ac_link"
33843 case "(($ac_try" in
33844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33845   *) ac_try_echo=$ac_try;;
33846 esac
33847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33848   (eval "$ac_link") 2>conftest.er1
33849   ac_status=$?
33850   grep -v '^ *+' conftest.er1 >conftest.err
33851   rm -f conftest.er1
33852   cat conftest.err >&5
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); } && {
33855          test -z "$ac_c_werror_flag" ||
33856          test ! -s conftest.err
33857        } && test -s conftest$ac_exeext &&
33858        $as_test_x conftest$ac_exeext; then
33859
33860                 { echo "$as_me:$LINENO: result: yes" >&5
33861 echo "${ECHO_T}yes" >&6; }
33862                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33863                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33864
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869
33870                 { echo "$as_me:$LINENO: result: no" >&5
33871 echo "${ECHO_T}no" >&6; }
33872                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33873 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33874                 LDFLAGS="$saveLdflags -Wl,-R,/"
33875                 cat >conftest.$ac_ext <<_ACEOF
33876 /* confdefs.h.  */
33877 _ACEOF
33878 cat confdefs.h >>conftest.$ac_ext
33879 cat >>conftest.$ac_ext <<_ACEOF
33880 /* end confdefs.h.  */
33881
33882 int
33883 main ()
33884 {
33885
33886   ;
33887   return 0;
33888 }
33889 _ACEOF
33890 rm -f conftest.$ac_objext conftest$ac_exeext
33891 if { (ac_try="$ac_link"
33892 case "(($ac_try" in
33893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894   *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897   (eval "$ac_link") 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } && {
33904          test -z "$ac_c_werror_flag" ||
33905          test ! -s conftest.err
33906        } && test -s conftest$ac_exeext &&
33907        $as_test_x conftest$ac_exeext; then
33908
33909                         { echo "$as_me:$LINENO: result: yes" >&5
33910 echo "${ECHO_T}yes" >&6; }
33911                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33912                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33913
33914 else
33915   echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33917
33918
33919                         { echo "$as_me:$LINENO: result: no" >&5
33920 echo "${ECHO_T}no" >&6; }
33921
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33925       conftest$ac_exeext conftest.$ac_ext
33926
33927 fi
33928
33929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33930       conftest$ac_exeext conftest.$ac_ext
33931         LDFLAGS="$saveLdflags"
33932       ;;
33933
33934       *-*-darwin* )
33935         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
33936         if test "$install_name_tool" -a -x "$install_name_tool"; then
33937             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
33938             cat <<EOF >change-install-names
33939 #!/bin/sh
33940 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33941 for i in \${libnames} ; do
33942     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
33943     for dep in \${libnames} ; do
33944         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
33945     done
33946 done
33947 EOF
33948             chmod +x change-install-names
33949             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
33950         fi
33951
33952                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33953       ;;
33954
33955       *-*-cygwin* | *-*-mingw32* )
33956         ;;
33957
33958       *-*-hpux* )
33959         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33960         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33961         ;;
33962
33963     esac
33964     fi
33965
33966             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33967
33968     if test $wxUSE_RPATH = "no"; then
33969         SAMPLES_RPATH_FLAG=''
33970         DYLIB_PATH_POSTLINK=''
33971         WXCONFIG_RPATH=''
33972     fi
33973
33974     SHARED=1
33975
33976 else
33977
33978     config_linkage_component="-static"
33979     SHARED=0
33980
33981 fi
33982
33983
33984 UNICODE=0
33985 lib_unicode_suffix=
33986 WX_CHARTYPE="ansi"
33987 if test "$wxUSE_UNICODE" = "yes"; then
33988     lib_unicode_suffix=u
33989     WX_CHARTYPE="unicode"
33990     UNICODE=1
33991 fi
33992
33993 lib_debug_suffix=
33994 WX_DEBUGTYPE="release"
33995 DEBUG_FLAG=0
33996 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33997     lib_debug_suffix=d
33998     WX_DEBUGTYPE="debug"
33999     DEBUG_FLAG=1
34000 fi
34001
34002 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34003 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34004
34005 DEBUG_INFO=0
34006 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34007     DEBUG_INFO=1
34008 fi
34009
34010 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34011
34012 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34013
34014 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34015
34016
34017 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
34018     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34019 else
34020     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34021 fi
34022 if test "${TOOLKIT_DIR}" = "os2"; then
34023     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34024 else
34025     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34026 fi
34027
34028
34029
34030 if test "$wxUSE_COCOA" = 1; then
34031
34032     ac_ext=c
34033 ac_cpp='$CPP $CPPFLAGS'
34034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34037
34038 ac_ext=m
34039
34040     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34041 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34042     cat >conftest.$ac_ext <<_ACEOF
34043 /* confdefs.h.  */
34044 _ACEOF
34045 cat confdefs.h >>conftest.$ac_ext
34046 cat >>conftest.$ac_ext <<_ACEOF
34047 /* end confdefs.h.  */
34048 #include <AppKit/NSEvent.h>
34049 #include <CoreFoundation/CoreFoundation.h>
34050
34051 int
34052 main ()
34053 {
34054
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext
34060 if { (ac_try="$ac_compile"
34061 case "(($ac_try" in
34062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063   *) ac_try_echo=$ac_try;;
34064 esac
34065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34066   (eval "$ac_compile") 2>conftest.er1
34067   ac_status=$?
34068   grep -v '^ *+' conftest.er1 >conftest.err
34069   rm -f conftest.er1
34070   cat conftest.err >&5
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); } && {
34073          test -z "$ac_c_werror_flag" ||
34074          test ! -s conftest.err
34075        } && test -s conftest.$ac_objext; then
34076   { echo "$as_me:$LINENO: result: no" >&5
34077 echo "${ECHO_T}no" >&6; }
34078 else
34079   echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34081
34082         { echo "$as_me:$LINENO: result: yes" >&5
34083 echo "${ECHO_T}yes" >&6; }
34084         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34085 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34086         cat >conftest.$ac_ext <<_ACEOF
34087 /* confdefs.h.  */
34088 _ACEOF
34089 cat confdefs.h >>conftest.$ac_ext
34090 cat >>conftest.$ac_ext <<_ACEOF
34091 /* end confdefs.h.  */
34092 #define __Point__ 1
34093 #include <AppKit/NSEvent.h>
34094 #include <CoreFoundation/CoreFoundation.h>
34095
34096 int
34097 main ()
34098 {
34099
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 rm -f conftest.$ac_objext
34105 if { (ac_try="$ac_compile"
34106 case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_compile") 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } && {
34118          test -z "$ac_c_werror_flag" ||
34119          test ! -s conftest.err
34120        } && test -s conftest.$ac_objext; then
34121   { echo "$as_me:$LINENO: result: yes" >&5
34122 echo "${ECHO_T}yes" >&6; }
34123             cat >>confdefs.h <<\_ACEOF
34124 #define __Point__ 1
34125 _ACEOF
34126
34127
34128 else
34129   echo "$as_me: failed program was:" >&5
34130 sed 's/^/| /' conftest.$ac_ext >&5
34131
34132         { { echo "$as_me:$LINENO: error: no
34133 See \`config.log' for more details." >&5
34134 echo "$as_me: error: no
34135 See \`config.log' for more details." >&2;}
34136    { (exit 1); exit 1; }; }
34137
34138 fi
34139
34140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34141
34142 fi
34143
34144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34145     ac_ext=c
34146 ac_cpp='$CPP $CPPFLAGS'
34147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34150
34151 fi
34152
34153
34154 { echo "$as_me:$LINENO: checking for mode_t" >&5
34155 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34156 if test "${ac_cv_type_mode_t+set}" = set; then
34157   echo $ECHO_N "(cached) $ECHO_C" >&6
34158 else
34159   cat >conftest.$ac_ext <<_ACEOF
34160 /* confdefs.h.  */
34161 _ACEOF
34162 cat confdefs.h >>conftest.$ac_ext
34163 cat >>conftest.$ac_ext <<_ACEOF
34164 /* end confdefs.h.  */
34165 $ac_includes_default
34166 typedef mode_t ac__type_new_;
34167 int
34168 main ()
34169 {
34170 if ((ac__type_new_ *) 0)
34171   return 0;
34172 if (sizeof (ac__type_new_))
34173   return 0;
34174   ;
34175   return 0;
34176 }
34177 _ACEOF
34178 rm -f conftest.$ac_objext
34179 if { (ac_try="$ac_compile"
34180 case "(($ac_try" in
34181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34182   *) ac_try_echo=$ac_try;;
34183 esac
34184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34185   (eval "$ac_compile") 2>conftest.er1
34186   ac_status=$?
34187   grep -v '^ *+' conftest.er1 >conftest.err
34188   rm -f conftest.er1
34189   cat conftest.err >&5
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); } && {
34192          test -z "$ac_c_werror_flag" ||
34193          test ! -s conftest.err
34194        } && test -s conftest.$ac_objext; then
34195   ac_cv_type_mode_t=yes
34196 else
34197   echo "$as_me: failed program was:" >&5
34198 sed 's/^/| /' conftest.$ac_ext >&5
34199
34200         ac_cv_type_mode_t=no
34201 fi
34202
34203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204 fi
34205 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34206 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34207 if test $ac_cv_type_mode_t = yes; then
34208   :
34209 else
34210
34211 cat >>confdefs.h <<_ACEOF
34212 #define mode_t int
34213 _ACEOF
34214
34215 fi
34216
34217 { echo "$as_me:$LINENO: checking for off_t" >&5
34218 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34219 if test "${ac_cv_type_off_t+set}" = set; then
34220   echo $ECHO_N "(cached) $ECHO_C" >&6
34221 else
34222   cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h.  */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h.  */
34228 $ac_includes_default
34229 typedef off_t ac__type_new_;
34230 int
34231 main ()
34232 {
34233 if ((ac__type_new_ *) 0)
34234   return 0;
34235 if (sizeof (ac__type_new_))
34236   return 0;
34237   ;
34238   return 0;
34239 }
34240 _ACEOF
34241 rm -f conftest.$ac_objext
34242 if { (ac_try="$ac_compile"
34243 case "(($ac_try" in
34244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34245   *) ac_try_echo=$ac_try;;
34246 esac
34247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34248   (eval "$ac_compile") 2>conftest.er1
34249   ac_status=$?
34250   grep -v '^ *+' conftest.er1 >conftest.err
34251   rm -f conftest.er1
34252   cat conftest.err >&5
34253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254   (exit $ac_status); } && {
34255          test -z "$ac_c_werror_flag" ||
34256          test ! -s conftest.err
34257        } && test -s conftest.$ac_objext; then
34258   ac_cv_type_off_t=yes
34259 else
34260   echo "$as_me: failed program was:" >&5
34261 sed 's/^/| /' conftest.$ac_ext >&5
34262
34263         ac_cv_type_off_t=no
34264 fi
34265
34266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34267 fi
34268 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34269 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34270 if test $ac_cv_type_off_t = yes; then
34271   :
34272 else
34273
34274 cat >>confdefs.h <<_ACEOF
34275 #define off_t long int
34276 _ACEOF
34277
34278 fi
34279
34280 { echo "$as_me:$LINENO: checking for pid_t" >&5
34281 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34282 if test "${ac_cv_type_pid_t+set}" = set; then
34283   echo $ECHO_N "(cached) $ECHO_C" >&6
34284 else
34285   cat >conftest.$ac_ext <<_ACEOF
34286 /* confdefs.h.  */
34287 _ACEOF
34288 cat confdefs.h >>conftest.$ac_ext
34289 cat >>conftest.$ac_ext <<_ACEOF
34290 /* end confdefs.h.  */
34291 $ac_includes_default
34292 typedef pid_t ac__type_new_;
34293 int
34294 main ()
34295 {
34296 if ((ac__type_new_ *) 0)
34297   return 0;
34298 if (sizeof (ac__type_new_))
34299   return 0;
34300   ;
34301   return 0;
34302 }
34303 _ACEOF
34304 rm -f conftest.$ac_objext
34305 if { (ac_try="$ac_compile"
34306 case "(($ac_try" in
34307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34308   *) ac_try_echo=$ac_try;;
34309 esac
34310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34311   (eval "$ac_compile") 2>conftest.er1
34312   ac_status=$?
34313   grep -v '^ *+' conftest.er1 >conftest.err
34314   rm -f conftest.er1
34315   cat conftest.err >&5
34316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317   (exit $ac_status); } && {
34318          test -z "$ac_c_werror_flag" ||
34319          test ! -s conftest.err
34320        } && test -s conftest.$ac_objext; then
34321   ac_cv_type_pid_t=yes
34322 else
34323   echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34325
34326         ac_cv_type_pid_t=no
34327 fi
34328
34329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330 fi
34331 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34332 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34333 if test $ac_cv_type_pid_t = yes; then
34334   :
34335 else
34336
34337 cat >>confdefs.h <<_ACEOF
34338 #define pid_t int
34339 _ACEOF
34340
34341 fi
34342
34343 { echo "$as_me:$LINENO: checking for size_t" >&5
34344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34345 if test "${ac_cv_type_size_t+set}" = set; then
34346   echo $ECHO_N "(cached) $ECHO_C" >&6
34347 else
34348   cat >conftest.$ac_ext <<_ACEOF
34349 /* confdefs.h.  */
34350 _ACEOF
34351 cat confdefs.h >>conftest.$ac_ext
34352 cat >>conftest.$ac_ext <<_ACEOF
34353 /* end confdefs.h.  */
34354 $ac_includes_default
34355 typedef size_t ac__type_new_;
34356 int
34357 main ()
34358 {
34359 if ((ac__type_new_ *) 0)
34360   return 0;
34361 if (sizeof (ac__type_new_))
34362   return 0;
34363   ;
34364   return 0;
34365 }
34366 _ACEOF
34367 rm -f conftest.$ac_objext
34368 if { (ac_try="$ac_compile"
34369 case "(($ac_try" in
34370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34371   *) ac_try_echo=$ac_try;;
34372 esac
34373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374   (eval "$ac_compile") 2>conftest.er1
34375   ac_status=$?
34376   grep -v '^ *+' conftest.er1 >conftest.err
34377   rm -f conftest.er1
34378   cat conftest.err >&5
34379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380   (exit $ac_status); } && {
34381          test -z "$ac_c_werror_flag" ||
34382          test ! -s conftest.err
34383        } && test -s conftest.$ac_objext; then
34384   ac_cv_type_size_t=yes
34385 else
34386   echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389         ac_cv_type_size_t=no
34390 fi
34391
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 fi
34394 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34395 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34396 if test $ac_cv_type_size_t = yes; then
34397   :
34398 else
34399
34400 cat >>confdefs.h <<_ACEOF
34401 #define size_t unsigned int
34402 _ACEOF
34403
34404 fi
34405
34406
34407 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34408 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34409 if test "${ac_cv_type_ssize_t+set}" = set; then
34410   echo $ECHO_N "(cached) $ECHO_C" >&6
34411 else
34412   cat >conftest.$ac_ext <<_ACEOF
34413 /* confdefs.h.  */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h.  */
34418 $ac_includes_default
34419 typedef ssize_t ac__type_new_;
34420 int
34421 main ()
34422 {
34423 if ((ac__type_new_ *) 0)
34424   return 0;
34425 if (sizeof (ac__type_new_))
34426   return 0;
34427   ;
34428   return 0;
34429 }
34430 _ACEOF
34431 rm -f conftest.$ac_objext
34432 if { (ac_try="$ac_compile"
34433 case "(($ac_try" in
34434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435   *) ac_try_echo=$ac_try;;
34436 esac
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438   (eval "$ac_compile") 2>conftest.er1
34439   ac_status=$?
34440   grep -v '^ *+' conftest.er1 >conftest.err
34441   rm -f conftest.er1
34442   cat conftest.err >&5
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); } && {
34445          test -z "$ac_c_werror_flag" ||
34446          test ! -s conftest.err
34447        } && test -s conftest.$ac_objext; then
34448   ac_cv_type_ssize_t=yes
34449 else
34450   echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34452
34453         ac_cv_type_ssize_t=no
34454 fi
34455
34456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34457 fi
34458 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34459 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34460 if test $ac_cv_type_ssize_t = yes; then
34461
34462 cat >>confdefs.h <<_ACEOF
34463 #define HAVE_SSIZE_T 1
34464 _ACEOF
34465
34466
34467 fi
34468
34469
34470 ac_ext=cpp
34471 ac_cpp='$CXXCPP $CPPFLAGS'
34472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34475  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34476 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34477 if test "${wx_cv_size_t_is_uint+set}" = set; then
34478   echo $ECHO_N "(cached) $ECHO_C" >&6
34479 else
34480
34481                             cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h.  */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h.  */
34487 #include <stddef.h>
34488 int
34489 main ()
34490 {
34491
34492             return 0; }
34493
34494             struct Foo { void foo(size_t); void foo(unsigned int); };
34495
34496             int bar() {
34497
34498   ;
34499   return 0;
34500 }
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_cxx_werror_flag" ||
34517          test ! -s conftest.err
34518        } && test -s conftest.$ac_objext; then
34519   wx_cv_size_t_is_uint=no
34520 else
34521   echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34523
34524         wx_cv_size_t_is_uint=yes
34525
34526 fi
34527
34528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34529
34530
34531 fi
34532 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34533 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34534
34535 if test "$wx_cv_size_t_is_uint" = "yes"; then
34536     cat >>confdefs.h <<\_ACEOF
34537 #define wxSIZE_T_IS_UINT 1
34538 _ACEOF
34539
34540 else
34541     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34542 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34543 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34544   echo $ECHO_N "(cached) $ECHO_C" >&6
34545 else
34546   cat >conftest.$ac_ext <<_ACEOF
34547 /* confdefs.h.  */
34548 _ACEOF
34549 cat confdefs.h >>conftest.$ac_ext
34550 cat >>conftest.$ac_ext <<_ACEOF
34551 /* end confdefs.h.  */
34552 #include <stddef.h>
34553 int
34554 main ()
34555 {
34556
34557                 return 0; }
34558
34559                 struct Foo { void foo(size_t); void foo(unsigned long); };
34560
34561                 int bar() {
34562
34563   ;
34564   return 0;
34565 }
34566 _ACEOF
34567 rm -f conftest.$ac_objext
34568 if { (ac_try="$ac_compile"
34569 case "(($ac_try" in
34570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34571   *) ac_try_echo=$ac_try;;
34572 esac
34573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34574   (eval "$ac_compile") 2>conftest.er1
34575   ac_status=$?
34576   grep -v '^ *+' conftest.er1 >conftest.err
34577   rm -f conftest.er1
34578   cat conftest.err >&5
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); } && {
34581          test -z "$ac_cxx_werror_flag" ||
34582          test ! -s conftest.err
34583        } && test -s conftest.$ac_objext; then
34584   wx_cv_size_t_is_ulong=no
34585 else
34586   echo "$as_me: failed program was:" >&5
34587 sed 's/^/| /' conftest.$ac_ext >&5
34588
34589         wx_cv_size_t_is_ulong=yes
34590
34591 fi
34592
34593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34594
34595 fi
34596 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34597 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34598
34599     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34600         cat >>confdefs.h <<\_ACEOF
34601 #define wxSIZE_T_IS_ULONG 1
34602 _ACEOF
34603
34604     fi
34605 fi
34606
34607 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34608 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34609 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34610   echo $ECHO_N "(cached) $ECHO_C" >&6
34611 else
34612   cat >conftest.$ac_ext <<_ACEOF
34613 /* confdefs.h.  */
34614 _ACEOF
34615 cat confdefs.h >>conftest.$ac_ext
34616 cat >>conftest.$ac_ext <<_ACEOF
34617 /* end confdefs.h.  */
34618 #include <wchar.h>
34619 int
34620 main ()
34621 {
34622
34623             return 0; }
34624
34625             struct Foo { void foo(wchar_t);
34626                          void foo(unsigned short);
34627                          void foo(unsigned int);
34628                          void foo(unsigned long); };
34629
34630             int bar() {
34631
34632   ;
34633   return 0;
34634 }
34635 _ACEOF
34636 rm -f conftest.$ac_objext
34637 if { (ac_try="$ac_compile"
34638 case "(($ac_try" in
34639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34640   *) ac_try_echo=$ac_try;;
34641 esac
34642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34643   (eval "$ac_compile") 2>conftest.er1
34644   ac_status=$?
34645   grep -v '^ *+' conftest.er1 >conftest.err
34646   rm -f conftest.er1
34647   cat conftest.err >&5
34648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); } && {
34650          test -z "$ac_cxx_werror_flag" ||
34651          test ! -s conftest.err
34652        } && test -s conftest.$ac_objext; then
34653   wx_cv_wchar_t_is_separate_type=yes
34654 else
34655   echo "$as_me: failed program was:" >&5
34656 sed 's/^/| /' conftest.$ac_ext >&5
34657
34658         wx_cv_wchar_t_is_separate_type=no
34659
34660 fi
34661
34662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34663
34664 fi
34665 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34666 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34667
34668 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34669     cat >>confdefs.h <<\_ACEOF
34670 #define wxWCHAR_T_IS_REAL_TYPE 1
34671 _ACEOF
34672
34673 else
34674     cat >>confdefs.h <<\_ACEOF
34675 #define wxWCHAR_T_IS_REAL_TYPE 0
34676 _ACEOF
34677
34678 fi
34679
34680 ac_ext=c
34681 ac_cpp='$CPP $CPPFLAGS'
34682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34685
34686
34687 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34688 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34689 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34690   echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692
34693         cat >conftest.$ac_ext <<_ACEOF
34694 /* confdefs.h.  */
34695 _ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h.  */
34699 #include <pwd.h>
34700 int
34701 main ()
34702 {
34703
34704                 char *p;
34705                 struct passwd *pw;
34706                 p = pw->pw_gecos;
34707
34708   ;
34709   return 0;
34710 }
34711 _ACEOF
34712 rm -f conftest.$ac_objext
34713 if { (ac_try="$ac_compile"
34714 case "(($ac_try" in
34715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716   *) ac_try_echo=$ac_try;;
34717 esac
34718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719   (eval "$ac_compile") 2>conftest.er1
34720   ac_status=$?
34721   grep -v '^ *+' conftest.er1 >conftest.err
34722   rm -f conftest.er1
34723   cat conftest.err >&5
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); } && {
34726          test -z "$ac_c_werror_flag" ||
34727          test ! -s conftest.err
34728        } && test -s conftest.$ac_objext; then
34729
34730                 wx_cv_struct_pw_gecos=yes
34731
34732 else
34733   echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34735
34736
34737                 wx_cv_struct_pw_gecos=no
34738
34739
34740 fi
34741
34742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34743
34744
34745 fi
34746 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34747 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34748
34749 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34750     cat >>confdefs.h <<\_ACEOF
34751 #define HAVE_PW_GECOS 1
34752 _ACEOF
34753
34754 fi
34755
34756
34757 if test "$wxUSE_WCHAR_T" = "yes"; then
34758     cat >>confdefs.h <<\_ACEOF
34759 #define wxUSE_WCHAR_T 1
34760 _ACEOF
34761
34762
34763         WCSLEN_FOUND=0
34764     WCHAR_LINK=
34765
34766 for ac_func in wcslen
34767 do
34768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34772   echo $ECHO_N "(cached) $ECHO_C" >&6
34773 else
34774   cat >conftest.$ac_ext <<_ACEOF
34775 /* confdefs.h.  */
34776 _ACEOF
34777 cat confdefs.h >>conftest.$ac_ext
34778 cat >>conftest.$ac_ext <<_ACEOF
34779 /* end confdefs.h.  */
34780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34782 #define $ac_func innocuous_$ac_func
34783
34784 /* System header to define __stub macros and hopefully few prototypes,
34785     which can conflict with char $ac_func (); below.
34786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34787     <limits.h> exists even on freestanding compilers.  */
34788
34789 #ifdef __STDC__
34790 # include <limits.h>
34791 #else
34792 # include <assert.h>
34793 #endif
34794
34795 #undef $ac_func
34796
34797 /* Override any GCC internal prototype to avoid an error.
34798    Use char because int might match the return type of a GCC
34799    builtin and then its argument prototype would still apply.  */
34800 #ifdef __cplusplus
34801 extern "C"
34802 #endif
34803 char $ac_func ();
34804 /* The GNU C library defines this for functions which it implements
34805     to always fail with ENOSYS.  Some functions are actually named
34806     something starting with __ and the normal name is an alias.  */
34807 #if defined __stub_$ac_func || defined __stub___$ac_func
34808 choke me
34809 #endif
34810
34811 int
34812 main ()
34813 {
34814 return $ac_func ();
34815   ;
34816   return 0;
34817 }
34818 _ACEOF
34819 rm -f conftest.$ac_objext conftest$ac_exeext
34820 if { (ac_try="$ac_link"
34821 case "(($ac_try" in
34822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823   *) ac_try_echo=$ac_try;;
34824 esac
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826   (eval "$ac_link") 2>conftest.er1
34827   ac_status=$?
34828   grep -v '^ *+' conftest.er1 >conftest.err
34829   rm -f conftest.er1
34830   cat conftest.err >&5
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); } && {
34833          test -z "$ac_c_werror_flag" ||
34834          test ! -s conftest.err
34835        } && test -s conftest$ac_exeext &&
34836        $as_test_x conftest$ac_exeext; then
34837   eval "$as_ac_var=yes"
34838 else
34839   echo "$as_me: failed program was:" >&5
34840 sed 's/^/| /' conftest.$ac_ext >&5
34841
34842         eval "$as_ac_var=no"
34843 fi
34844
34845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34846       conftest$ac_exeext conftest.$ac_ext
34847 fi
34848 ac_res=`eval echo '${'$as_ac_var'}'`
34849                { echo "$as_me:$LINENO: result: $ac_res" >&5
34850 echo "${ECHO_T}$ac_res" >&6; }
34851 if test `eval echo '${'$as_ac_var'}'` = yes; then
34852   cat >>confdefs.h <<_ACEOF
34853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34854 _ACEOF
34855  WCSLEN_FOUND=1
34856 fi
34857 done
34858
34859
34860     if test "$WCSLEN_FOUND" = 0; then
34861         if test "$TOOLKIT" = "MSW"; then
34862             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34863 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34864 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34865   echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867   ac_check_lib_save_LIBS=$LIBS
34868 LIBS="-lmsvcrt  $LIBS"
34869 cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h.  */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h.  */
34875
34876 /* Override any GCC internal prototype to avoid an error.
34877    Use char because int might match the return type of a GCC
34878    builtin and then its argument prototype would still apply.  */
34879 #ifdef __cplusplus
34880 extern "C"
34881 #endif
34882 char wcslen ();
34883 int
34884 main ()
34885 {
34886 return wcslen ();
34887   ;
34888   return 0;
34889 }
34890 _ACEOF
34891 rm -f conftest.$ac_objext conftest$ac_exeext
34892 if { (ac_try="$ac_link"
34893 case "(($ac_try" in
34894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34895   *) ac_try_echo=$ac_try;;
34896 esac
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898   (eval "$ac_link") 2>conftest.er1
34899   ac_status=$?
34900   grep -v '^ *+' conftest.er1 >conftest.err
34901   rm -f conftest.er1
34902   cat conftest.err >&5
34903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904   (exit $ac_status); } && {
34905          test -z "$ac_c_werror_flag" ||
34906          test ! -s conftest.err
34907        } && test -s conftest$ac_exeext &&
34908        $as_test_x conftest$ac_exeext; then
34909   ac_cv_lib_msvcrt_wcslen=yes
34910 else
34911   echo "$as_me: failed program was:" >&5
34912 sed 's/^/| /' conftest.$ac_ext >&5
34913
34914         ac_cv_lib_msvcrt_wcslen=no
34915 fi
34916
34917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34918       conftest$ac_exeext conftest.$ac_ext
34919 LIBS=$ac_check_lib_save_LIBS
34920 fi
34921 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34922 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34923 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34924   WCHAR_OK=1
34925 fi
34926
34927         else
34928             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34929 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34930 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34931   echo $ECHO_N "(cached) $ECHO_C" >&6
34932 else
34933   ac_check_lib_save_LIBS=$LIBS
34934 LIBS="-lw  $LIBS"
34935 cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h.  */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h.  */
34941
34942 /* Override any GCC internal prototype to avoid an error.
34943    Use char because int might match the return type of a GCC
34944    builtin and then its argument prototype would still apply.  */
34945 #ifdef __cplusplus
34946 extern "C"
34947 #endif
34948 char wcslen ();
34949 int
34950 main ()
34951 {
34952 return wcslen ();
34953   ;
34954   return 0;
34955 }
34956 _ACEOF
34957 rm -f conftest.$ac_objext conftest$ac_exeext
34958 if { (ac_try="$ac_link"
34959 case "(($ac_try" in
34960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34961   *) ac_try_echo=$ac_try;;
34962 esac
34963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34964   (eval "$ac_link") 2>conftest.er1
34965   ac_status=$?
34966   grep -v '^ *+' conftest.er1 >conftest.err
34967   rm -f conftest.er1
34968   cat conftest.err >&5
34969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970   (exit $ac_status); } && {
34971          test -z "$ac_c_werror_flag" ||
34972          test ! -s conftest.err
34973        } && test -s conftest$ac_exeext &&
34974        $as_test_x conftest$ac_exeext; then
34975   ac_cv_lib_w_wcslen=yes
34976 else
34977   echo "$as_me: failed program was:" >&5
34978 sed 's/^/| /' conftest.$ac_ext >&5
34979
34980         ac_cv_lib_w_wcslen=no
34981 fi
34982
34983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34984       conftest$ac_exeext conftest.$ac_ext
34985 LIBS=$ac_check_lib_save_LIBS
34986 fi
34987 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34988 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34989 if test $ac_cv_lib_w_wcslen = yes; then
34990
34991                             WCHAR_LINK=" -lw"
34992                             WCSLEN_FOUND=1
34993
34994 fi
34995
34996         fi
34997     fi
34998
34999     if test "$WCSLEN_FOUND" = 1; then
35000         cat >>confdefs.h <<\_ACEOF
35001 #define HAVE_WCSLEN 1
35002 _ACEOF
35003
35004     fi
35005
35006
35007
35008
35009
35010
35011 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35012 do
35013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35017   echo $ECHO_N "(cached) $ECHO_C" >&6
35018 else
35019   cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h.  */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h.  */
35025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35027 #define $ac_func innocuous_$ac_func
35028
35029 /* System header to define __stub macros and hopefully few prototypes,
35030     which can conflict with char $ac_func (); below.
35031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35032     <limits.h> exists even on freestanding compilers.  */
35033
35034 #ifdef __STDC__
35035 # include <limits.h>
35036 #else
35037 # include <assert.h>
35038 #endif
35039
35040 #undef $ac_func
35041
35042 /* Override any GCC internal prototype to avoid an error.
35043    Use char because int might match the return type of a GCC
35044    builtin and then its argument prototype would still apply.  */
35045 #ifdef __cplusplus
35046 extern "C"
35047 #endif
35048 char $ac_func ();
35049 /* The GNU C library defines this for functions which it implements
35050     to always fail with ENOSYS.  Some functions are actually named
35051     something starting with __ and the normal name is an alias.  */
35052 #if defined __stub_$ac_func || defined __stub___$ac_func
35053 choke me
35054 #endif
35055
35056 int
35057 main ()
35058 {
35059 return $ac_func ();
35060   ;
35061   return 0;
35062 }
35063 _ACEOF
35064 rm -f conftest.$ac_objext conftest$ac_exeext
35065 if { (ac_try="$ac_link"
35066 case "(($ac_try" in
35067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35068   *) ac_try_echo=$ac_try;;
35069 esac
35070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35071   (eval "$ac_link") 2>conftest.er1
35072   ac_status=$?
35073   grep -v '^ *+' conftest.er1 >conftest.err
35074   rm -f conftest.er1
35075   cat conftest.err >&5
35076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077   (exit $ac_status); } && {
35078          test -z "$ac_c_werror_flag" ||
35079          test ! -s conftest.err
35080        } && test -s conftest$ac_exeext &&
35081        $as_test_x conftest$ac_exeext; then
35082   eval "$as_ac_var=yes"
35083 else
35084   echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35086
35087         eval "$as_ac_var=no"
35088 fi
35089
35090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35091       conftest$ac_exeext conftest.$ac_ext
35092 fi
35093 ac_res=`eval echo '${'$as_ac_var'}'`
35094                { echo "$as_me:$LINENO: result: $ac_res" >&5
35095 echo "${ECHO_T}$ac_res" >&6; }
35096 if test `eval echo '${'$as_ac_var'}'` = yes; then
35097   cat >>confdefs.h <<_ACEOF
35098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35099 _ACEOF
35100
35101 fi
35102 done
35103
35104
35105                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35106         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35107     fi
35108
35109                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35110 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35111 if test "${ac_cv_type_mbstate_t+set}" = set; then
35112   echo $ECHO_N "(cached) $ECHO_C" >&6
35113 else
35114   cat >conftest.$ac_ext <<_ACEOF
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 #include <wchar.h>
35121
35122 typedef mbstate_t ac__type_new_;
35123 int
35124 main ()
35125 {
35126 if ((ac__type_new_ *) 0)
35127   return 0;
35128 if (sizeof (ac__type_new_))
35129   return 0;
35130   ;
35131   return 0;
35132 }
35133 _ACEOF
35134 rm -f conftest.$ac_objext
35135 if { (ac_try="$ac_compile"
35136 case "(($ac_try" in
35137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35138   *) ac_try_echo=$ac_try;;
35139 esac
35140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35141   (eval "$ac_compile") 2>conftest.er1
35142   ac_status=$?
35143   grep -v '^ *+' conftest.er1 >conftest.err
35144   rm -f conftest.er1
35145   cat conftest.err >&5
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); } && {
35148          test -z "$ac_c_werror_flag" ||
35149          test ! -s conftest.err
35150        } && test -s conftest.$ac_objext; then
35151   ac_cv_type_mbstate_t=yes
35152 else
35153   echo "$as_me: failed program was:" >&5
35154 sed 's/^/| /' conftest.$ac_ext >&5
35155
35156         ac_cv_type_mbstate_t=no
35157 fi
35158
35159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35160 fi
35161 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35162 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35163 if test $ac_cv_type_mbstate_t = yes; then
35164
35165 cat >>confdefs.h <<_ACEOF
35166 #define HAVE_MBSTATE_T 1
35167 _ACEOF
35168
35169
35170 for ac_func in wcsrtombs
35171 do
35172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35176   echo $ECHO_N "(cached) $ECHO_C" >&6
35177 else
35178   cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h.  */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h.  */
35184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35186 #define $ac_func innocuous_$ac_func
35187
35188 /* System header to define __stub macros and hopefully few prototypes,
35189     which can conflict with char $ac_func (); below.
35190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35191     <limits.h> exists even on freestanding compilers.  */
35192
35193 #ifdef __STDC__
35194 # include <limits.h>
35195 #else
35196 # include <assert.h>
35197 #endif
35198
35199 #undef $ac_func
35200
35201 /* Override any GCC internal prototype to avoid an error.
35202    Use char because int might match the return type of a GCC
35203    builtin and then its argument prototype would still apply.  */
35204 #ifdef __cplusplus
35205 extern "C"
35206 #endif
35207 char $ac_func ();
35208 /* The GNU C library defines this for functions which it implements
35209     to always fail with ENOSYS.  Some functions are actually named
35210     something starting with __ and the normal name is an alias.  */
35211 #if defined __stub_$ac_func || defined __stub___$ac_func
35212 choke me
35213 #endif
35214
35215 int
35216 main ()
35217 {
35218 return $ac_func ();
35219   ;
35220   return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext conftest$ac_exeext
35224 if { (ac_try="$ac_link"
35225 case "(($ac_try" in
35226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35227   *) ac_try_echo=$ac_try;;
35228 esac
35229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35230   (eval "$ac_link") 2>conftest.er1
35231   ac_status=$?
35232   grep -v '^ *+' conftest.er1 >conftest.err
35233   rm -f conftest.er1
35234   cat conftest.err >&5
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); } && {
35237          test -z "$ac_c_werror_flag" ||
35238          test ! -s conftest.err
35239        } && test -s conftest$ac_exeext &&
35240        $as_test_x conftest$ac_exeext; then
35241   eval "$as_ac_var=yes"
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246         eval "$as_ac_var=no"
35247 fi
35248
35249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35250       conftest$ac_exeext conftest.$ac_ext
35251 fi
35252 ac_res=`eval echo '${'$as_ac_var'}'`
35253                { echo "$as_me:$LINENO: result: $ac_res" >&5
35254 echo "${ECHO_T}$ac_res" >&6; }
35255 if test `eval echo '${'$as_ac_var'}'` = yes; then
35256   cat >>confdefs.h <<_ACEOF
35257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35258 _ACEOF
35259
35260 fi
35261 done
35262
35263 fi
35264
35265 else
35266     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35267 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35268 fi
35269
35270
35271
35272
35273 for ac_func in snprintf vsnprintf vsscanf
35274 do
35275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35279   echo $ECHO_N "(cached) $ECHO_C" >&6
35280 else
35281   cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h.  */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h.  */
35287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35289 #define $ac_func innocuous_$ac_func
35290
35291 /* System header to define __stub macros and hopefully few prototypes,
35292     which can conflict with char $ac_func (); below.
35293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35294     <limits.h> exists even on freestanding compilers.  */
35295
35296 #ifdef __STDC__
35297 # include <limits.h>
35298 #else
35299 # include <assert.h>
35300 #endif
35301
35302 #undef $ac_func
35303
35304 /* Override any GCC internal prototype to avoid an error.
35305    Use char because int might match the return type of a GCC
35306    builtin and then its argument prototype would still apply.  */
35307 #ifdef __cplusplus
35308 extern "C"
35309 #endif
35310 char $ac_func ();
35311 /* The GNU C library defines this for functions which it implements
35312     to always fail with ENOSYS.  Some functions are actually named
35313     something starting with __ and the normal name is an alias.  */
35314 #if defined __stub_$ac_func || defined __stub___$ac_func
35315 choke me
35316 #endif
35317
35318 int
35319 main ()
35320 {
35321 return $ac_func ();
35322   ;
35323   return 0;
35324 }
35325 _ACEOF
35326 rm -f conftest.$ac_objext conftest$ac_exeext
35327 if { (ac_try="$ac_link"
35328 case "(($ac_try" in
35329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35330   *) ac_try_echo=$ac_try;;
35331 esac
35332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35333   (eval "$ac_link") 2>conftest.er1
35334   ac_status=$?
35335   grep -v '^ *+' conftest.er1 >conftest.err
35336   rm -f conftest.er1
35337   cat conftest.err >&5
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); } && {
35340          test -z "$ac_c_werror_flag" ||
35341          test ! -s conftest.err
35342        } && test -s conftest$ac_exeext &&
35343        $as_test_x conftest$ac_exeext; then
35344   eval "$as_ac_var=yes"
35345 else
35346   echo "$as_me: failed program was:" >&5
35347 sed 's/^/| /' conftest.$ac_ext >&5
35348
35349         eval "$as_ac_var=no"
35350 fi
35351
35352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35353       conftest$ac_exeext conftest.$ac_ext
35354 fi
35355 ac_res=`eval echo '${'$as_ac_var'}'`
35356                { echo "$as_me:$LINENO: result: $ac_res" >&5
35357 echo "${ECHO_T}$ac_res" >&6; }
35358 if test `eval echo '${'$as_ac_var'}'` = yes; then
35359   cat >>confdefs.h <<_ACEOF
35360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35361 _ACEOF
35362
35363 fi
35364 done
35365
35366
35367 ac_ext=cpp
35368 ac_cpp='$CXXCPP $CPPFLAGS'
35369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35372
35373 if test "$ac_cv_func_vsnprintf" = "yes"; then
35374         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35375 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35376 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35377   echo $ECHO_N "(cached) $ECHO_C" >&6
35378 else
35379
35380                                                             cat >conftest.$ac_ext <<_ACEOF
35381 /* confdefs.h.  */
35382 _ACEOF
35383 cat confdefs.h >>conftest.$ac_ext
35384 cat >>conftest.$ac_ext <<_ACEOF
35385 /* end confdefs.h.  */
35386
35387                     #include <stdio.h>
35388                     #include <stdarg.h>
35389                     #ifdef __MSL__
35390                     #if __MSL__ >= 0x6000
35391                     namespace std {}
35392                     using namespace std;
35393                     #endif
35394                     #endif
35395
35396 int
35397 main ()
35398 {
35399
35400                     char *buf;
35401                     va_list ap;
35402                     vsnprintf(buf, 10u, "%s", ap);
35403
35404   ;
35405   return 0;
35406 }
35407 _ACEOF
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412   *) ac_try_echo=$ac_try;;
35413 esac
35414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35415   (eval "$ac_compile") 2>conftest.er1
35416   ac_status=$?
35417   grep -v '^ *+' conftest.er1 >conftest.err
35418   rm -f conftest.er1
35419   cat conftest.err >&5
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); } && {
35422          test -z "$ac_cxx_werror_flag" ||
35423          test ! -s conftest.err
35424        } && test -s conftest.$ac_objext; then
35425   wx_cv_func_vsnprintf_decl=yes
35426 else
35427   echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35429
35430         wx_cv_func_vsnprintf_decl=no
35431
35432 fi
35433
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435
35436
35437 fi
35438 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35439 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35440
35441     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35442         cat >>confdefs.h <<\_ACEOF
35443 #define HAVE_VSNPRINTF_DECL 1
35444 _ACEOF
35445
35446
35447                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35448 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35449 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35450   echo $ECHO_N "(cached) $ECHO_C" >&6
35451 else
35452
35453                 cat >conftest.$ac_ext <<_ACEOF
35454 /* confdefs.h.  */
35455 _ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h.  */
35459
35460                         #include <stdio.h>
35461                         #include <stdarg.h>
35462                         #ifdef __MSL__
35463                         #if __MSL__ >= 0x6000
35464                         namespace std {}
35465                         using namespace std;
35466                         #endif
35467                         #endif
35468
35469 int
35470 main ()
35471 {
35472
35473                         char *buf;
35474                         va_list ap;
35475                         const char *fmt = "%s";
35476                         vsnprintf(buf, 10u, fmt, ap);
35477
35478   ;
35479   return 0;
35480 }
35481 _ACEOF
35482 rm -f conftest.$ac_objext
35483 if { (ac_try="$ac_compile"
35484 case "(($ac_try" in
35485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486   *) ac_try_echo=$ac_try;;
35487 esac
35488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35489   (eval "$ac_compile") 2>conftest.er1
35490   ac_status=$?
35491   grep -v '^ *+' conftest.er1 >conftest.err
35492   rm -f conftest.er1
35493   cat conftest.err >&5
35494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495   (exit $ac_status); } && {
35496          test -z "$ac_cxx_werror_flag" ||
35497          test ! -s conftest.err
35498        } && test -s conftest.$ac_objext; then
35499   wx_cv_func_broken_vsnprintf_decl=no
35500 else
35501   echo "$as_me: failed program was:" >&5
35502 sed 's/^/| /' conftest.$ac_ext >&5
35503
35504         wx_cv_func_broken_vsnprintf_decl=yes
35505
35506 fi
35507
35508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35509
35510
35511 fi
35512 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35513 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35514
35515         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35516             cat >>confdefs.h <<\_ACEOF
35517 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35518 _ACEOF
35519
35520         fi
35521     fi
35522 fi
35523
35524 if test "$ac_cv_func_snprintf" = "yes"; then
35525     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35526 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35527 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35528   echo $ECHO_N "(cached) $ECHO_C" >&6
35529 else
35530
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                     #include <stdio.h>
35539                     #include <stdarg.h>
35540                     #ifdef __MSL__
35541                     #if __MSL__ >= 0x6000
35542                     namespace std {}
35543                     using namespace std;
35544                     #endif
35545                     #endif
35546
35547 int
35548 main ()
35549 {
35550
35551                     char *buf;
35552                     snprintf(buf, 10u, "%s", "wx");
35553
35554   ;
35555   return 0;
35556 }
35557 _ACEOF
35558 rm -f conftest.$ac_objext
35559 if { (ac_try="$ac_compile"
35560 case "(($ac_try" in
35561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35562   *) ac_try_echo=$ac_try;;
35563 esac
35564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35565   (eval "$ac_compile") 2>conftest.er1
35566   ac_status=$?
35567   grep -v '^ *+' conftest.er1 >conftest.err
35568   rm -f conftest.er1
35569   cat conftest.err >&5
35570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571   (exit $ac_status); } && {
35572          test -z "$ac_cxx_werror_flag" ||
35573          test ! -s conftest.err
35574        } && test -s conftest.$ac_objext; then
35575   wx_cv_func_snprintf_decl=yes
35576 else
35577   echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580         wx_cv_func_snprintf_decl=no
35581
35582 fi
35583
35584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35585
35586
35587 fi
35588 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35589 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35590
35591     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35592         cat >>confdefs.h <<\_ACEOF
35593 #define HAVE_SNPRINTF_DECL 1
35594 _ACEOF
35595
35596     fi
35597
35598     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35599
35600                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35601 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35602 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35603   echo $ECHO_N "(cached) $ECHO_C" >&6
35604 else
35605
35606                 if test "$cross_compiling" = yes; then
35607
35608                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35609 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35610 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35611 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35612                         wx_cv_func_snprintf_pos_params=no
35613
35614
35615 else
35616   cat >conftest.$ac_ext <<_ACEOF
35617 /* confdefs.h.  */
35618 _ACEOF
35619 cat confdefs.h >>conftest.$ac_ext
35620 cat >>conftest.$ac_ext <<_ACEOF
35621 /* end confdefs.h.  */
35622
35623                         #include <stdio.h>
35624
35625                         int main (void)
35626                         {
35627                             char buffer[128];
35628                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35629                             if (strcmp ("2 3 1", buffer) == 0)
35630                                 exit (0);
35631                             exit (1);
35632                         }
35633
35634 _ACEOF
35635 rm -f conftest$ac_exeext
35636 if { (ac_try="$ac_link"
35637 case "(($ac_try" in
35638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639   *) ac_try_echo=$ac_try;;
35640 esac
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642   (eval "$ac_link") 2>&5
35643   ac_status=$?
35644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35646   { (case "(($ac_try" in
35647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648   *) ac_try_echo=$ac_try;;
35649 esac
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651   (eval "$ac_try") 2>&5
35652   ac_status=$?
35653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); }; }; then
35655   wx_cv_func_snprintf_pos_params=no
35656 else
35657   echo "$as_me: program exited with status $ac_status" >&5
35658 echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35660
35661 ( exit $ac_status )
35662 wx_cv_func_snprintf_pos_params=yes
35663 fi
35664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35665 fi
35666
35667
35668
35669
35670 fi
35671 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35672 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35673
35674         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35675             cat >>confdefs.h <<\_ACEOF
35676 #define HAVE_UNIX98_PRINTF 1
35677 _ACEOF
35678
35679         fi
35680     fi
35681 fi
35682
35683 if test "$ac_cv_func_vsscanf" = "yes"; then
35684     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35685 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35686 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35687   echo $ECHO_N "(cached) $ECHO_C" >&6
35688 else
35689
35690             cat >conftest.$ac_ext <<_ACEOF
35691 /* confdefs.h.  */
35692 _ACEOF
35693 cat confdefs.h >>conftest.$ac_ext
35694 cat >>conftest.$ac_ext <<_ACEOF
35695 /* end confdefs.h.  */
35696
35697                     #include <stdio.h>
35698                     #include <stdarg.h>
35699                     #ifdef __MSL__
35700                     #if __MSL__ >= 0x6000
35701                     namespace std {}
35702                     using namespace std;
35703                     #endif
35704                     #endif
35705
35706 int
35707 main ()
35708 {
35709
35710                     char *buf;
35711                     va_list args;
35712                     vsscanf(buf, "%s", args);
35713
35714   ;
35715   return 0;
35716 }
35717 _ACEOF
35718 rm -f conftest.$ac_objext
35719 if { (ac_try="$ac_compile"
35720 case "(($ac_try" in
35721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35722   *) ac_try_echo=$ac_try;;
35723 esac
35724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35725   (eval "$ac_compile") 2>conftest.er1
35726   ac_status=$?
35727   grep -v '^ *+' conftest.er1 >conftest.err
35728   rm -f conftest.er1
35729   cat conftest.err >&5
35730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731   (exit $ac_status); } && {
35732          test -z "$ac_cxx_werror_flag" ||
35733          test ! -s conftest.err
35734        } && test -s conftest.$ac_objext; then
35735   wx_cv_func_vsscanf_decl=yes
35736 else
35737   echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35739
35740         wx_cv_func_vsscanf_decl=no
35741
35742 fi
35743
35744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35745
35746
35747 fi
35748 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35749 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35750
35751     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35752         cat >>confdefs.h <<\_ACEOF
35753 #define HAVE_VSSCANF_DECL 1
35754 _ACEOF
35755
35756     fi
35757 fi
35758 ac_ext=c
35759 ac_cpp='$CPP $CPPFLAGS'
35760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35763
35764
35765 if test "$wxUSE_UNICODE" = yes; then
35766
35767             wchar_headers="#include <stdio.h>
35768 #include <wchar.h>"
35769     case "${host}" in
35770         *-*-solaris2* )
35771
35772 for ac_header in widec.h
35773 do
35774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35778   echo $ECHO_N "(cached) $ECHO_C" >&6
35779 else
35780   cat >conftest.$ac_ext <<_ACEOF
35781 /* confdefs.h.  */
35782 _ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h.  */
35786 $ac_includes_default
35787
35788 #include <$ac_header>
35789 _ACEOF
35790 rm -f conftest.$ac_objext
35791 if { (ac_try="$ac_compile"
35792 case "(($ac_try" in
35793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794   *) ac_try_echo=$ac_try;;
35795 esac
35796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35797   (eval "$ac_compile") 2>conftest.er1
35798   ac_status=$?
35799   grep -v '^ *+' conftest.er1 >conftest.err
35800   rm -f conftest.er1
35801   cat conftest.err >&5
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); } && {
35804          test -z "$ac_c_werror_flag" ||
35805          test ! -s conftest.err
35806        } && test -s conftest.$ac_objext; then
35807   eval "$as_ac_Header=yes"
35808 else
35809   echo "$as_me: failed program was:" >&5
35810 sed 's/^/| /' conftest.$ac_ext >&5
35811
35812         eval "$as_ac_Header=no"
35813 fi
35814
35815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35816 fi
35817 ac_res=`eval echo '${'$as_ac_Header'}'`
35818                { echo "$as_me:$LINENO: result: $ac_res" >&5
35819 echo "${ECHO_T}$ac_res" >&6; }
35820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35821   cat >>confdefs.h <<_ACEOF
35822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35823 _ACEOF
35824
35825 fi
35826
35827 done
35828
35829             if test "$ac_cv_header_widec_h" = "yes"; then
35830                 wchar_headers="$wchar_headers
35831 #include <widec.h>"
35832             fi
35833     esac
35834
35835
35836   for wx_func in putws fputws wprintf vswprintf vswscanf
35837   do
35838     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35839 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35840 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35841   echo $ECHO_N "(cached) $ECHO_C" >&6
35842 else
35843
35844         cat >conftest.$ac_ext <<_ACEOF
35845
35846             /* confdefs.h.  */
35847 _ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h.  */
35851
35852                 $wchar_headers
35853                 $ac_includes_default
35854
35855 int
35856 main ()
35857 {
35858
35859                 #ifndef $wx_func
35860                   &$wx_func;
35861                 #endif
35862
35863
35864   ;
35865   return 0;
35866 }
35867
35868 _ACEOF
35869 rm -f conftest.$ac_objext conftest$ac_exeext
35870 if { (ac_try="$ac_link"
35871 case "(($ac_try" in
35872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35873   *) ac_try_echo=$ac_try;;
35874 esac
35875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35876   (eval "$ac_link") 2>conftest.er1
35877   ac_status=$?
35878   grep -v '^ *+' conftest.er1 >conftest.err
35879   rm -f conftest.er1
35880   cat conftest.err >&5
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); } && {
35883          test -z "$ac_c_werror_flag" ||
35884          test ! -s conftest.err
35885        } && test -s conftest$ac_exeext &&
35886        $as_test_x conftest$ac_exeext; then
35887   eval wx_cv_func_$wx_func=yes
35888 else
35889   echo "$as_me: failed program was:" >&5
35890 sed 's/^/| /' conftest.$ac_ext >&5
35891
35892         eval wx_cv_func_$wx_func=no
35893 fi
35894
35895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35896       conftest$ac_exeext conftest.$ac_ext
35897
35898 fi
35899 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35900                { echo "$as_me:$LINENO: result: $ac_res" >&5
35901 echo "${ECHO_T}$ac_res" >&6; }
35902
35903     if eval test \$wx_cv_func_$wx_func = yes
35904     then
35905       cat >>confdefs.h <<_ACEOF
35906 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35907 _ACEOF
35908
35909
35910     else
35911       :
35912
35913     fi
35914   done
35915
35916
35917                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35918 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35919     cat >conftest.$ac_ext <<_ACEOF
35920 /* confdefs.h.  */
35921 _ACEOF
35922 cat confdefs.h >>conftest.$ac_ext
35923 cat >>conftest.$ac_ext <<_ACEOF
35924 /* end confdefs.h.  */
35925 #include <wchar.h>
35926 int
35927 main ()
35928 {
35929 &_vsnwprintf;
35930   ;
35931   return 0;
35932 }
35933 _ACEOF
35934 rm -f conftest.$ac_objext
35935 if { (ac_try="$ac_compile"
35936 case "(($ac_try" in
35937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35938   *) ac_try_echo=$ac_try;;
35939 esac
35940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35941   (eval "$ac_compile") 2>conftest.er1
35942   ac_status=$?
35943   grep -v '^ *+' conftest.er1 >conftest.err
35944   rm -f conftest.er1
35945   cat conftest.err >&5
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } && {
35948          test -z "$ac_c_werror_flag" ||
35949          test ! -s conftest.err
35950        } && test -s conftest.$ac_objext; then
35951   { echo "$as_me:$LINENO: result: yes" >&5
35952 echo "${ECHO_T}yes" >&6; }
35953                     cat >>confdefs.h <<\_ACEOF
35954 #define HAVE__VSNWPRINTF 1
35955 _ACEOF
35956
35957 else
35958   echo "$as_me: failed program was:" >&5
35959 sed 's/^/| /' conftest.$ac_ext >&5
35960
35961         { echo "$as_me:$LINENO: result: no" >&5
35962 echo "${ECHO_T}no" >&6; }
35963 fi
35964
35965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35966 fi
35967
35968 if test "$wxUSE_FILE" = "yes"; then
35969
35970   for wx_func in fsync
35971   do
35972     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35973 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35974 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35975   echo $ECHO_N "(cached) $ECHO_C" >&6
35976 else
35977
35978         cat >conftest.$ac_ext <<_ACEOF
35979
35980             /* confdefs.h.  */
35981 _ACEOF
35982 cat confdefs.h >>conftest.$ac_ext
35983 cat >>conftest.$ac_ext <<_ACEOF
35984 /* end confdefs.h.  */
35985
35986
35987                 $ac_includes_default
35988
35989 int
35990 main ()
35991 {
35992
35993                 #ifndef $wx_func
35994                   &$wx_func;
35995                 #endif
35996
35997
35998   ;
35999   return 0;
36000 }
36001
36002 _ACEOF
36003 rm -f conftest.$ac_objext conftest$ac_exeext
36004 if { (ac_try="$ac_link"
36005 case "(($ac_try" in
36006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36007   *) ac_try_echo=$ac_try;;
36008 esac
36009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36010   (eval "$ac_link") 2>conftest.er1
36011   ac_status=$?
36012   grep -v '^ *+' conftest.er1 >conftest.err
36013   rm -f conftest.er1
36014   cat conftest.err >&5
36015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016   (exit $ac_status); } && {
36017          test -z "$ac_c_werror_flag" ||
36018          test ! -s conftest.err
36019        } && test -s conftest$ac_exeext &&
36020        $as_test_x conftest$ac_exeext; then
36021   eval wx_cv_func_$wx_func=yes
36022 else
36023   echo "$as_me: failed program was:" >&5
36024 sed 's/^/| /' conftest.$ac_ext >&5
36025
36026         eval wx_cv_func_$wx_func=no
36027 fi
36028
36029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36030       conftest$ac_exeext conftest.$ac_ext
36031
36032 fi
36033 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36034                { echo "$as_me:$LINENO: result: $ac_res" >&5
36035 echo "${ECHO_T}$ac_res" >&6; }
36036
36037     if eval test \$wx_cv_func_$wx_func = yes
36038     then
36039       cat >>confdefs.h <<_ACEOF
36040 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36041 _ACEOF
36042
36043
36044     else
36045       :
36046
36047     fi
36048   done
36049
36050 fi
36051
36052 ac_ext=cpp
36053 ac_cpp='$CXXCPP $CPPFLAGS'
36054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36057
36058
36059   for wx_func in round
36060   do
36061     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36062 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36063 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36064   echo $ECHO_N "(cached) $ECHO_C" >&6
36065 else
36066
36067         cat >conftest.$ac_ext <<_ACEOF
36068
36069             /* confdefs.h.  */
36070 _ACEOF
36071 cat confdefs.h >>conftest.$ac_ext
36072 cat >>conftest.$ac_ext <<_ACEOF
36073 /* end confdefs.h.  */
36074
36075                 #include <math.h>
36076                 $ac_includes_default
36077
36078 int
36079 main ()
36080 {
36081
36082                 #ifndef $wx_func
36083                   &$wx_func;
36084                 #endif
36085
36086
36087   ;
36088   return 0;
36089 }
36090
36091 _ACEOF
36092 rm -f conftest.$ac_objext conftest$ac_exeext
36093 if { (ac_try="$ac_link"
36094 case "(($ac_try" in
36095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36096   *) ac_try_echo=$ac_try;;
36097 esac
36098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36099   (eval "$ac_link") 2>conftest.er1
36100   ac_status=$?
36101   grep -v '^ *+' conftest.er1 >conftest.err
36102   rm -f conftest.er1
36103   cat conftest.err >&5
36104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105   (exit $ac_status); } && {
36106          test -z "$ac_cxx_werror_flag" ||
36107          test ! -s conftest.err
36108        } && test -s conftest$ac_exeext &&
36109        $as_test_x conftest$ac_exeext; then
36110   eval wx_cv_func_$wx_func=yes
36111 else
36112   echo "$as_me: failed program was:" >&5
36113 sed 's/^/| /' conftest.$ac_ext >&5
36114
36115         eval wx_cv_func_$wx_func=no
36116 fi
36117
36118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36119       conftest$ac_exeext conftest.$ac_ext
36120
36121 fi
36122 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36123                { echo "$as_me:$LINENO: result: $ac_res" >&5
36124 echo "${ECHO_T}$ac_res" >&6; }
36125
36126     if eval test \$wx_cv_func_$wx_func = yes
36127     then
36128       cat >>confdefs.h <<_ACEOF
36129 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36130 _ACEOF
36131
36132
36133     else
36134       :
36135
36136     fi
36137   done
36138
36139 ac_ext=c
36140 ac_cpp='$CPP $CPPFLAGS'
36141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36144
36145
36146 if test "$TOOLKIT" != "MSW"; then
36147
36148 if test "$wxUSE_LIBICONV" != "no" ; then
36149
36150
36151
36152 # Check whether --with-libiconv-prefix was given.
36153 if test "${with_libiconv_prefix+set}" = set; then
36154   withval=$with_libiconv_prefix;
36155     for dir in `echo "$withval" | tr : ' '`; do
36156       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36157       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36158     done
36159
36160 fi
36161
36162
36163   { echo "$as_me:$LINENO: checking for iconv" >&5
36164 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36165 if test "${am_cv_func_iconv+set}" = set; then
36166   echo $ECHO_N "(cached) $ECHO_C" >&6
36167 else
36168
36169     am_cv_func_iconv="no, consider installing GNU libiconv"
36170     am_cv_lib_iconv=no
36171     cat >conftest.$ac_ext <<_ACEOF
36172 /* confdefs.h.  */
36173 _ACEOF
36174 cat confdefs.h >>conftest.$ac_ext
36175 cat >>conftest.$ac_ext <<_ACEOF
36176 /* end confdefs.h.  */
36177 #include <stdlib.h>
36178 #include <iconv.h>
36179 int
36180 main ()
36181 {
36182 iconv_t cd = iconv_open("","");
36183        iconv(cd,NULL,NULL,NULL,NULL);
36184        iconv_close(cd);
36185   ;
36186   return 0;
36187 }
36188 _ACEOF
36189 rm -f conftest.$ac_objext conftest$ac_exeext
36190 if { (ac_try="$ac_link"
36191 case "(($ac_try" in
36192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36193   *) ac_try_echo=$ac_try;;
36194 esac
36195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36196   (eval "$ac_link") 2>conftest.er1
36197   ac_status=$?
36198   grep -v '^ *+' conftest.er1 >conftest.err
36199   rm -f conftest.er1
36200   cat conftest.err >&5
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); } && {
36203          test -z "$ac_c_werror_flag" ||
36204          test ! -s conftest.err
36205        } && test -s conftest$ac_exeext &&
36206        $as_test_x conftest$ac_exeext; then
36207   am_cv_func_iconv=yes
36208 else
36209   echo "$as_me: failed program was:" >&5
36210 sed 's/^/| /' conftest.$ac_ext >&5
36211
36212
36213 fi
36214
36215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36216       conftest$ac_exeext conftest.$ac_ext
36217     if test "$am_cv_func_iconv" != yes; then
36218       am_save_LIBS="$LIBS"
36219       LIBS="$LIBS -liconv"
36220       cat >conftest.$ac_ext <<_ACEOF
36221 /* confdefs.h.  */
36222 _ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h.  */
36226 #include <stdlib.h>
36227 #include <iconv.h>
36228 int
36229 main ()
36230 {
36231 iconv_t cd = iconv_open("","");
36232          iconv(cd,NULL,NULL,NULL,NULL);
36233          iconv_close(cd);
36234   ;
36235   return 0;
36236 }
36237 _ACEOF
36238 rm -f conftest.$ac_objext conftest$ac_exeext
36239 if { (ac_try="$ac_link"
36240 case "(($ac_try" in
36241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242   *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245   (eval "$ac_link") 2>conftest.er1
36246   ac_status=$?
36247   grep -v '^ *+' conftest.er1 >conftest.err
36248   rm -f conftest.er1
36249   cat conftest.err >&5
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); } && {
36252          test -z "$ac_c_werror_flag" ||
36253          test ! -s conftest.err
36254        } && test -s conftest$ac_exeext &&
36255        $as_test_x conftest$ac_exeext; then
36256   am_cv_lib_iconv=yes
36257         am_cv_func_iconv=yes
36258 else
36259   echo "$as_me: failed program was:" >&5
36260 sed 's/^/| /' conftest.$ac_ext >&5
36261
36262
36263 fi
36264
36265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36266       conftest$ac_exeext conftest.$ac_ext
36267       LIBS="$am_save_LIBS"
36268     fi
36269
36270 fi
36271 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36272 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36273   if test "$am_cv_func_iconv" = yes; then
36274
36275 cat >>confdefs.h <<\_ACEOF
36276 #define HAVE_ICONV 1
36277 _ACEOF
36278
36279     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36280 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36281 if test "${wx_cv_func_iconv_const+set}" = set; then
36282   echo $ECHO_N "(cached) $ECHO_C" >&6
36283 else
36284   cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290
36291 #include <stdlib.h>
36292 #include <iconv.h>
36293 extern
36294 #ifdef __cplusplus
36295 "C"
36296 #endif
36297 #if defined(__STDC__) || defined(__cplusplus)
36298 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36299 #else
36300 size_t iconv();
36301 #endif
36302
36303 int
36304 main ()
36305 {
36306
36307   ;
36308   return 0;
36309 }
36310 _ACEOF
36311 rm -f conftest.$ac_objext
36312 if { (ac_try="$ac_compile"
36313 case "(($ac_try" in
36314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36315   *) ac_try_echo=$ac_try;;
36316 esac
36317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36318   (eval "$ac_compile") 2>conftest.er1
36319   ac_status=$?
36320   grep -v '^ *+' conftest.er1 >conftest.err
36321   rm -f conftest.er1
36322   cat conftest.err >&5
36323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324   (exit $ac_status); } && {
36325          test -z "$ac_c_werror_flag" ||
36326          test ! -s conftest.err
36327        } && test -s conftest.$ac_objext; then
36328   wx_cv_func_iconv_const="no"
36329 else
36330   echo "$as_me: failed program was:" >&5
36331 sed 's/^/| /' conftest.$ac_ext >&5
36332
36333         wx_cv_func_iconv_const="yes"
36334
36335 fi
36336
36337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36338
36339 fi
36340 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36341 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36342
36343     iconv_const=
36344     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36345         iconv_const="const"
36346     fi
36347
36348
36349 cat >>confdefs.h <<_ACEOF
36350 #define ICONV_CONST $iconv_const
36351 _ACEOF
36352
36353   fi
36354   LIBICONV=
36355   if test "$am_cv_lib_iconv" = yes; then
36356     LIBICONV="-liconv"
36357   fi
36358
36359
36360     LIBS="$LIBICONV $LIBS"
36361 fi
36362
36363 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36364
36365 for ac_func in sigaction
36366 do
36367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36371   echo $ECHO_N "(cached) $ECHO_C" >&6
36372 else
36373   cat >conftest.$ac_ext <<_ACEOF
36374 /* confdefs.h.  */
36375 _ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h.  */
36379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36381 #define $ac_func innocuous_$ac_func
36382
36383 /* System header to define __stub macros and hopefully few prototypes,
36384     which can conflict with char $ac_func (); below.
36385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36386     <limits.h> exists even on freestanding compilers.  */
36387
36388 #ifdef __STDC__
36389 # include <limits.h>
36390 #else
36391 # include <assert.h>
36392 #endif
36393
36394 #undef $ac_func
36395
36396 /* Override any GCC internal prototype to avoid an error.
36397    Use char because int might match the return type of a GCC
36398    builtin and then its argument prototype would still apply.  */
36399 #ifdef __cplusplus
36400 extern "C"
36401 #endif
36402 char $ac_func ();
36403 /* The GNU C library defines this for functions which it implements
36404     to always fail with ENOSYS.  Some functions are actually named
36405     something starting with __ and the normal name is an alias.  */
36406 #if defined __stub_$ac_func || defined __stub___$ac_func
36407 choke me
36408 #endif
36409
36410 int
36411 main ()
36412 {
36413 return $ac_func ();
36414   ;
36415   return 0;
36416 }
36417 _ACEOF
36418 rm -f conftest.$ac_objext conftest$ac_exeext
36419 if { (ac_try="$ac_link"
36420 case "(($ac_try" in
36421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36422   *) ac_try_echo=$ac_try;;
36423 esac
36424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36425   (eval "$ac_link") 2>conftest.er1
36426   ac_status=$?
36427   grep -v '^ *+' conftest.er1 >conftest.err
36428   rm -f conftest.er1
36429   cat conftest.err >&5
36430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431   (exit $ac_status); } && {
36432          test -z "$ac_c_werror_flag" ||
36433          test ! -s conftest.err
36434        } && test -s conftest$ac_exeext &&
36435        $as_test_x conftest$ac_exeext; then
36436   eval "$as_ac_var=yes"
36437 else
36438   echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36440
36441         eval "$as_ac_var=no"
36442 fi
36443
36444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36445       conftest$ac_exeext conftest.$ac_ext
36446 fi
36447 ac_res=`eval echo '${'$as_ac_var'}'`
36448                { echo "$as_me:$LINENO: result: $ac_res" >&5
36449 echo "${ECHO_T}$ac_res" >&6; }
36450 if test `eval echo '${'$as_ac_var'}'` = yes; then
36451   cat >>confdefs.h <<_ACEOF
36452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36453 _ACEOF
36454
36455 fi
36456 done
36457
36458
36459     if test "$ac_cv_func_sigaction" = "no"; then
36460         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36461 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36462         wxUSE_ON_FATAL_EXCEPTION=no
36463     fi
36464
36465     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36466       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36467 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36468 if test "${wx_cv_type_sa_handler+set}" = set; then
36469   echo $ECHO_N "(cached) $ECHO_C" >&6
36470 else
36471
36472                 ac_ext=cpp
36473 ac_cpp='$CXXCPP $CPPFLAGS'
36474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36477
36478         cat >conftest.$ac_ext <<_ACEOF
36479 /* confdefs.h.  */
36480 _ACEOF
36481 cat confdefs.h >>conftest.$ac_ext
36482 cat >>conftest.$ac_ext <<_ACEOF
36483 /* end confdefs.h.  */
36484 #include <signal.h>
36485 int
36486 main ()
36487 {
36488
36489                         extern void testSigHandler(int);
36490
36491                         struct sigaction sa;
36492                         sa.sa_handler = testSigHandler;
36493
36494   ;
36495   return 0;
36496 }
36497 _ACEOF
36498 rm -f conftest.$ac_objext
36499 if { (ac_try="$ac_compile"
36500 case "(($ac_try" in
36501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36502   *) ac_try_echo=$ac_try;;
36503 esac
36504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36505   (eval "$ac_compile") 2>conftest.er1
36506   ac_status=$?
36507   grep -v '^ *+' conftest.er1 >conftest.err
36508   rm -f conftest.er1
36509   cat conftest.err >&5
36510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511   (exit $ac_status); } && {
36512          test -z "$ac_cxx_werror_flag" ||
36513          test ! -s conftest.err
36514        } && test -s conftest.$ac_objext; then
36515
36516                         wx_cv_type_sa_handler=int
36517
36518 else
36519   echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.$ac_ext >&5
36521
36522
36523                         wx_cv_type_sa_handler=void
36524
36525 fi
36526
36527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36528         ac_ext=c
36529 ac_cpp='$CPP $CPPFLAGS'
36530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36533
36534
36535 fi
36536 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36537 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36538
36539       cat >>confdefs.h <<_ACEOF
36540 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36541 _ACEOF
36542
36543     fi
36544 fi
36545
36546 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36547     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36548 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36549 if test "${wx_cv_func_backtrace+set}" = set; then
36550   echo $ECHO_N "(cached) $ECHO_C" >&6
36551 else
36552
36553             ac_ext=cpp
36554 ac_cpp='$CXXCPP $CPPFLAGS'
36555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36558
36559             cat >conftest.$ac_ext <<_ACEOF
36560 /* confdefs.h.  */
36561 _ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h.  */
36565 #include <execinfo.h>
36566 int
36567 main ()
36568 {
36569
36570                     void *trace[1];
36571                     char **messages;
36572
36573                     backtrace(trace, 1);
36574                     messages = backtrace_symbols(trace, 1);
36575
36576   ;
36577   return 0;
36578 }
36579 _ACEOF
36580 rm -f conftest.$ac_objext
36581 if { (ac_try="$ac_compile"
36582 case "(($ac_try" in
36583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36584   *) ac_try_echo=$ac_try;;
36585 esac
36586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36587   (eval "$ac_compile") 2>conftest.er1
36588   ac_status=$?
36589   grep -v '^ *+' conftest.er1 >conftest.err
36590   rm -f conftest.er1
36591   cat conftest.err >&5
36592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593   (exit $ac_status); } && {
36594          test -z "$ac_cxx_werror_flag" ||
36595          test ! -s conftest.err
36596        } && test -s conftest.$ac_objext; then
36597   wx_cv_func_backtrace=yes
36598 else
36599   echo "$as_me: failed program was:" >&5
36600 sed 's/^/| /' conftest.$ac_ext >&5
36601
36602         wx_cv_func_backtrace=no
36603
36604 fi
36605
36606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36607             ac_ext=c
36608 ac_cpp='$CPP $CPPFLAGS'
36609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36612
36613
36614
36615 fi
36616 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36617 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36618
36619
36620     if test "$wx_cv_func_backtrace" = "no"; then
36621         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36622 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36623         wxUSE_STACKWALKER=no
36624     else
36625         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36626 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36627 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36628   echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
36630
36631                 ac_ext=cpp
36632 ac_cpp='$CXXCPP $CPPFLAGS'
36633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36636
36637                 cat >conftest.$ac_ext <<_ACEOF
36638 /* confdefs.h.  */
36639 _ACEOF
36640 cat confdefs.h >>conftest.$ac_ext
36641 cat >>conftest.$ac_ext <<_ACEOF
36642 /* end confdefs.h.  */
36643 #include <cxxabi.h>
36644 int
36645 main ()
36646 {
36647
36648                         int rc;
36649                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36650
36651   ;
36652   return 0;
36653 }
36654 _ACEOF
36655 rm -f conftest.$ac_objext conftest$ac_exeext
36656 if { (ac_try="$ac_link"
36657 case "(($ac_try" in
36658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36659   *) ac_try_echo=$ac_try;;
36660 esac
36661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36662   (eval "$ac_link") 2>conftest.er1
36663   ac_status=$?
36664   grep -v '^ *+' conftest.er1 >conftest.err
36665   rm -f conftest.er1
36666   cat conftest.err >&5
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); } && {
36669          test -z "$ac_cxx_werror_flag" ||
36670          test ! -s conftest.err
36671        } && test -s conftest$ac_exeext &&
36672        $as_test_x conftest$ac_exeext; then
36673   wx_cv_func_cxa_demangle=yes
36674 else
36675   echo "$as_me: failed program was:" >&5
36676 sed 's/^/| /' conftest.$ac_ext >&5
36677
36678         wx_cv_func_cxa_demangle=no
36679
36680 fi
36681
36682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36683       conftest$ac_exeext conftest.$ac_ext
36684                 ac_ext=c
36685 ac_cpp='$CPP $CPPFLAGS'
36686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36689
36690
36691
36692 fi
36693 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36694 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36695
36696         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36697             cat >>confdefs.h <<\_ACEOF
36698 #define HAVE_CXA_DEMANGLE 1
36699 _ACEOF
36700
36701         fi
36702     fi
36703 fi
36704
36705 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36706     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36707 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36708     wxUSE_STACKWALKER=no
36709 fi
36710
36711
36712
36713
36714 for ac_func in mkstemp mktemp
36715 do
36716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36720   echo $ECHO_N "(cached) $ECHO_C" >&6
36721 else
36722   cat >conftest.$ac_ext <<_ACEOF
36723 /* confdefs.h.  */
36724 _ACEOF
36725 cat confdefs.h >>conftest.$ac_ext
36726 cat >>conftest.$ac_ext <<_ACEOF
36727 /* end confdefs.h.  */
36728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36730 #define $ac_func innocuous_$ac_func
36731
36732 /* System header to define __stub macros and hopefully few prototypes,
36733     which can conflict with char $ac_func (); below.
36734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36735     <limits.h> exists even on freestanding compilers.  */
36736
36737 #ifdef __STDC__
36738 # include <limits.h>
36739 #else
36740 # include <assert.h>
36741 #endif
36742
36743 #undef $ac_func
36744
36745 /* Override any GCC internal prototype to avoid an error.
36746    Use char because int might match the return type of a GCC
36747    builtin and then its argument prototype would still apply.  */
36748 #ifdef __cplusplus
36749 extern "C"
36750 #endif
36751 char $ac_func ();
36752 /* The GNU C library defines this for functions which it implements
36753     to always fail with ENOSYS.  Some functions are actually named
36754     something starting with __ and the normal name is an alias.  */
36755 #if defined __stub_$ac_func || defined __stub___$ac_func
36756 choke me
36757 #endif
36758
36759 int
36760 main ()
36761 {
36762 return $ac_func ();
36763   ;
36764   return 0;
36765 }
36766 _ACEOF
36767 rm -f conftest.$ac_objext conftest$ac_exeext
36768 if { (ac_try="$ac_link"
36769 case "(($ac_try" in
36770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36771   *) ac_try_echo=$ac_try;;
36772 esac
36773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36774   (eval "$ac_link") 2>conftest.er1
36775   ac_status=$?
36776   grep -v '^ *+' conftest.er1 >conftest.err
36777   rm -f conftest.er1
36778   cat conftest.err >&5
36779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780   (exit $ac_status); } && {
36781          test -z "$ac_c_werror_flag" ||
36782          test ! -s conftest.err
36783        } && test -s conftest$ac_exeext &&
36784        $as_test_x conftest$ac_exeext; then
36785   eval "$as_ac_var=yes"
36786 else
36787   echo "$as_me: failed program was:" >&5
36788 sed 's/^/| /' conftest.$ac_ext >&5
36789
36790         eval "$as_ac_var=no"
36791 fi
36792
36793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36794       conftest$ac_exeext conftest.$ac_ext
36795 fi
36796 ac_res=`eval echo '${'$as_ac_var'}'`
36797                { echo "$as_me:$LINENO: result: $ac_res" >&5
36798 echo "${ECHO_T}$ac_res" >&6; }
36799 if test `eval echo '${'$as_ac_var'}'` = yes; then
36800   cat >>confdefs.h <<_ACEOF
36801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36802 _ACEOF
36803  break
36804 fi
36805 done
36806
36807
36808 { echo "$as_me:$LINENO: checking for statfs" >&5
36809 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36810 if test "${wx_cv_func_statfs+set}" = set; then
36811   echo $ECHO_N "(cached) $ECHO_C" >&6
36812 else
36813   cat >conftest.$ac_ext <<_ACEOF
36814 /* confdefs.h.  */
36815 _ACEOF
36816 cat confdefs.h >>conftest.$ac_ext
36817 cat >>conftest.$ac_ext <<_ACEOF
36818 /* end confdefs.h.  */
36819
36820              #if defined(__BSD__)
36821              #include <sys/param.h>
36822              #include <sys/mount.h>
36823              #else
36824              #include <sys/vfs.h>
36825              #endif
36826
36827 int
36828 main ()
36829 {
36830
36831              long l;
36832              struct statfs fs;
36833              statfs("/", &fs);
36834              l = fs.f_bsize;
36835              l += fs.f_blocks;
36836              l += fs.f_bavail;
36837
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext
36843 if { (ac_try="$ac_compile"
36844 case "(($ac_try" in
36845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846   *) ac_try_echo=$ac_try;;
36847 esac
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849   (eval "$ac_compile") 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } && {
36856          test -z "$ac_c_werror_flag" ||
36857          test ! -s conftest.err
36858        } && test -s conftest.$ac_objext; then
36859   wx_cv_func_statfs=yes
36860 else
36861   echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.$ac_ext >&5
36863
36864         wx_cv_func_statfs=no
36865
36866 fi
36867
36868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36869
36870 fi
36871 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36872 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36873
36874 if test "$wx_cv_func_statfs" = "yes"; then
36875         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36876 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36877 if test "${wx_cv_func_statfs_decl+set}" = set; then
36878   echo $ECHO_N "(cached) $ECHO_C" >&6
36879 else
36880   ac_ext=cpp
36881 ac_cpp='$CXXCPP $CPPFLAGS'
36882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36885
36886         cat >conftest.$ac_ext <<_ACEOF
36887 /* confdefs.h.  */
36888 _ACEOF
36889 cat confdefs.h >>conftest.$ac_ext
36890 cat >>conftest.$ac_ext <<_ACEOF
36891 /* end confdefs.h.  */
36892
36893                  #if defined(__BSD__)
36894                  #include <sys/param.h>
36895                  #include <sys/mount.h>
36896                  #else
36897                  #include <sys/vfs.h>
36898                  #endif
36899
36900 int
36901 main ()
36902 {
36903
36904                 struct statfs fs;
36905                 statfs("", &fs);
36906
36907   ;
36908   return 0;
36909 }
36910 _ACEOF
36911 rm -f conftest.$ac_objext
36912 if { (ac_try="$ac_compile"
36913 case "(($ac_try" in
36914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36915   *) ac_try_echo=$ac_try;;
36916 esac
36917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36918   (eval "$ac_compile") 2>conftest.er1
36919   ac_status=$?
36920   grep -v '^ *+' conftest.er1 >conftest.err
36921   rm -f conftest.er1
36922   cat conftest.err >&5
36923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924   (exit $ac_status); } && {
36925          test -z "$ac_cxx_werror_flag" ||
36926          test ! -s conftest.err
36927        } && test -s conftest.$ac_objext; then
36928   wx_cv_func_statfs_decl=yes
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933         wx_cv_func_statfs_decl=no
36934
36935 fi
36936
36937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36938         ac_ext=c
36939 ac_cpp='$CPP $CPPFLAGS'
36940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36943
36944
36945 fi
36946 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36947 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36948
36949     if test "$wx_cv_func_statfs_decl" = "yes"; then
36950         cat >>confdefs.h <<\_ACEOF
36951 #define HAVE_STATFS_DECL 1
36952 _ACEOF
36953
36954     fi
36955
36956     wx_cv_type_statvfs_t="struct statfs"
36957     cat >>confdefs.h <<\_ACEOF
36958 #define HAVE_STATFS 1
36959 _ACEOF
36960
36961 else
36962     { echo "$as_me:$LINENO: checking for statvfs" >&5
36963 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36964 if test "${wx_cv_func_statvfs+set}" = set; then
36965   echo $ECHO_N "(cached) $ECHO_C" >&6
36966 else
36967   cat >conftest.$ac_ext <<_ACEOF
36968 /* confdefs.h.  */
36969 _ACEOF
36970 cat confdefs.h >>conftest.$ac_ext
36971 cat >>conftest.$ac_ext <<_ACEOF
36972 /* end confdefs.h.  */
36973
36974                 #include <stddef.h>
36975                 #include <sys/statvfs.h>
36976
36977 int
36978 main ()
36979 {
36980
36981                 statvfs("/", NULL);
36982
36983   ;
36984   return 0;
36985 }
36986 _ACEOF
36987 rm -f conftest.$ac_objext
36988 if { (ac_try="$ac_compile"
36989 case "(($ac_try" in
36990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991   *) ac_try_echo=$ac_try;;
36992 esac
36993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36994   (eval "$ac_compile") 2>conftest.er1
36995   ac_status=$?
36996   grep -v '^ *+' conftest.er1 >conftest.err
36997   rm -f conftest.er1
36998   cat conftest.err >&5
36999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); } && {
37001          test -z "$ac_c_werror_flag" ||
37002          test ! -s conftest.err
37003        } && test -s conftest.$ac_objext; then
37004   wx_cv_func_statvfs=yes
37005 else
37006   echo "$as_me: failed program was:" >&5
37007 sed 's/^/| /' conftest.$ac_ext >&5
37008
37009         wx_cv_func_statvfs=no
37010
37011 fi
37012
37013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37014
37015 fi
37016 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37017 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
37018
37019     if test "$wx_cv_func_statvfs" = "yes"; then
37020                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37021 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37022 if test "${wx_cv_type_statvfs_t+set}" = set; then
37023   echo $ECHO_N "(cached) $ECHO_C" >&6
37024 else
37025   ac_ext=cpp
37026 ac_cpp='$CXXCPP $CPPFLAGS'
37027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37030
37031             cat >conftest.$ac_ext <<_ACEOF
37032 /* confdefs.h.  */
37033 _ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h.  */
37037
37038                     #include <sys/statvfs.h>
37039
37040 int
37041 main ()
37042 {
37043
37044                     long l;
37045                     statvfs_t fs;
37046                     statvfs("/", &fs);
37047                     l = fs.f_bsize;
37048                     l += fs.f_blocks;
37049                     l += fs.f_bavail;
37050
37051   ;
37052   return 0;
37053 }
37054 _ACEOF
37055 rm -f conftest.$ac_objext
37056 if { (ac_try="$ac_compile"
37057 case "(($ac_try" in
37058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37059   *) ac_try_echo=$ac_try;;
37060 esac
37061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37062   (eval "$ac_compile") 2>conftest.er1
37063   ac_status=$?
37064   grep -v '^ *+' conftest.er1 >conftest.err
37065   rm -f conftest.er1
37066   cat conftest.err >&5
37067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068   (exit $ac_status); } && {
37069          test -z "$ac_cxx_werror_flag" ||
37070          test ! -s conftest.err
37071        } && test -s conftest.$ac_objext; then
37072   wx_cv_type_statvfs_t=statvfs_t
37073 else
37074   echo "$as_me: failed program was:" >&5
37075 sed 's/^/| /' conftest.$ac_ext >&5
37076
37077
37078                     cat >conftest.$ac_ext <<_ACEOF
37079 /* confdefs.h.  */
37080 _ACEOF
37081 cat confdefs.h >>conftest.$ac_ext
37082 cat >>conftest.$ac_ext <<_ACEOF
37083 /* end confdefs.h.  */
37084
37085                             #include <sys/statvfs.h>
37086
37087 int
37088 main ()
37089 {
37090
37091                             long l;
37092                             struct statvfs fs;
37093                             statvfs("/", &fs);
37094                             l = fs.f_bsize;
37095                             l += fs.f_blocks;
37096                             l += fs.f_bavail;
37097
37098   ;
37099   return 0;
37100 }
37101 _ACEOF
37102 rm -f conftest.$ac_objext
37103 if { (ac_try="$ac_compile"
37104 case "(($ac_try" in
37105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37106   *) ac_try_echo=$ac_try;;
37107 esac
37108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37109   (eval "$ac_compile") 2>conftest.er1
37110   ac_status=$?
37111   grep -v '^ *+' conftest.er1 >conftest.err
37112   rm -f conftest.er1
37113   cat conftest.err >&5
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); } && {
37116          test -z "$ac_cxx_werror_flag" ||
37117          test ! -s conftest.err
37118        } && test -s conftest.$ac_objext; then
37119   wx_cv_type_statvfs_t="struct statvfs"
37120 else
37121   echo "$as_me: failed program was:" >&5
37122 sed 's/^/| /' conftest.$ac_ext >&5
37123
37124         wx_cv_type_statvfs_t="unknown"
37125
37126 fi
37127
37128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37129
37130
37131 fi
37132
37133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37134             ac_ext=c
37135 ac_cpp='$CPP $CPPFLAGS'
37136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37139
37140
37141 fi
37142 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37143 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37144
37145         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37146             cat >>confdefs.h <<\_ACEOF
37147 #define HAVE_STATVFS 1
37148 _ACEOF
37149
37150         fi
37151     else
37152                 wx_cv_type_statvfs_t="unknown"
37153     fi
37154 fi
37155
37156 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37157     cat >>confdefs.h <<_ACEOF
37158 #define WX_STATFS_T $wx_cv_type_statvfs_t
37159 _ACEOF
37160
37161 else
37162     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37163 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37164 fi
37165
37166 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37167
37168
37169 for ac_func in fcntl flock
37170 do
37171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37175   echo $ECHO_N "(cached) $ECHO_C" >&6
37176 else
37177   cat >conftest.$ac_ext <<_ACEOF
37178 /* confdefs.h.  */
37179 _ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h.  */
37183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37185 #define $ac_func innocuous_$ac_func
37186
37187 /* System header to define __stub macros and hopefully few prototypes,
37188     which can conflict with char $ac_func (); below.
37189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37190     <limits.h> exists even on freestanding compilers.  */
37191
37192 #ifdef __STDC__
37193 # include <limits.h>
37194 #else
37195 # include <assert.h>
37196 #endif
37197
37198 #undef $ac_func
37199
37200 /* Override any GCC internal prototype to avoid an error.
37201    Use char because int might match the return type of a GCC
37202    builtin and then its argument prototype would still apply.  */
37203 #ifdef __cplusplus
37204 extern "C"
37205 #endif
37206 char $ac_func ();
37207 /* The GNU C library defines this for functions which it implements
37208     to always fail with ENOSYS.  Some functions are actually named
37209     something starting with __ and the normal name is an alias.  */
37210 #if defined __stub_$ac_func || defined __stub___$ac_func
37211 choke me
37212 #endif
37213
37214 int
37215 main ()
37216 {
37217 return $ac_func ();
37218   ;
37219   return 0;
37220 }
37221 _ACEOF
37222 rm -f conftest.$ac_objext conftest$ac_exeext
37223 if { (ac_try="$ac_link"
37224 case "(($ac_try" in
37225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226   *) ac_try_echo=$ac_try;;
37227 esac
37228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37229   (eval "$ac_link") 2>conftest.er1
37230   ac_status=$?
37231   grep -v '^ *+' conftest.er1 >conftest.err
37232   rm -f conftest.er1
37233   cat conftest.err >&5
37234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235   (exit $ac_status); } && {
37236          test -z "$ac_c_werror_flag" ||
37237          test ! -s conftest.err
37238        } && test -s conftest$ac_exeext &&
37239        $as_test_x conftest$ac_exeext; then
37240   eval "$as_ac_var=yes"
37241 else
37242   echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245         eval "$as_ac_var=no"
37246 fi
37247
37248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37249       conftest$ac_exeext conftest.$ac_ext
37250 fi
37251 ac_res=`eval echo '${'$as_ac_var'}'`
37252                { echo "$as_me:$LINENO: result: $ac_res" >&5
37253 echo "${ECHO_T}$ac_res" >&6; }
37254 if test `eval echo '${'$as_ac_var'}'` = yes; then
37255   cat >>confdefs.h <<_ACEOF
37256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37257 _ACEOF
37258  break
37259 fi
37260 done
37261
37262
37263     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37264         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37265 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37266         wxUSE_SNGLINST_CHECKER=no
37267     fi
37268 fi
37269
37270
37271
37272 for ac_func in setenv putenv
37273 do
37274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37278   echo $ECHO_N "(cached) $ECHO_C" >&6
37279 else
37280   cat >conftest.$ac_ext <<_ACEOF
37281 /* confdefs.h.  */
37282 _ACEOF
37283 cat confdefs.h >>conftest.$ac_ext
37284 cat >>conftest.$ac_ext <<_ACEOF
37285 /* end confdefs.h.  */
37286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37288 #define $ac_func innocuous_$ac_func
37289
37290 /* System header to define __stub macros and hopefully few prototypes,
37291     which can conflict with char $ac_func (); below.
37292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37293     <limits.h> exists even on freestanding compilers.  */
37294
37295 #ifdef __STDC__
37296 # include <limits.h>
37297 #else
37298 # include <assert.h>
37299 #endif
37300
37301 #undef $ac_func
37302
37303 /* Override any GCC internal prototype to avoid an error.
37304    Use char because int might match the return type of a GCC
37305    builtin and then its argument prototype would still apply.  */
37306 #ifdef __cplusplus
37307 extern "C"
37308 #endif
37309 char $ac_func ();
37310 /* The GNU C library defines this for functions which it implements
37311     to always fail with ENOSYS.  Some functions are actually named
37312     something starting with __ and the normal name is an alias.  */
37313 #if defined __stub_$ac_func || defined __stub___$ac_func
37314 choke me
37315 #endif
37316
37317 int
37318 main ()
37319 {
37320 return $ac_func ();
37321   ;
37322   return 0;
37323 }
37324 _ACEOF
37325 rm -f conftest.$ac_objext conftest$ac_exeext
37326 if { (ac_try="$ac_link"
37327 case "(($ac_try" in
37328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37329   *) ac_try_echo=$ac_try;;
37330 esac
37331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37332   (eval "$ac_link") 2>conftest.er1
37333   ac_status=$?
37334   grep -v '^ *+' conftest.er1 >conftest.err
37335   rm -f conftest.er1
37336   cat conftest.err >&5
37337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338   (exit $ac_status); } && {
37339          test -z "$ac_c_werror_flag" ||
37340          test ! -s conftest.err
37341        } && test -s conftest$ac_exeext &&
37342        $as_test_x conftest$ac_exeext; then
37343   eval "$as_ac_var=yes"
37344 else
37345   echo "$as_me: failed program was:" >&5
37346 sed 's/^/| /' conftest.$ac_ext >&5
37347
37348         eval "$as_ac_var=no"
37349 fi
37350
37351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37352       conftest$ac_exeext conftest.$ac_ext
37353 fi
37354 ac_res=`eval echo '${'$as_ac_var'}'`
37355                { echo "$as_me:$LINENO: result: $ac_res" >&5
37356 echo "${ECHO_T}$ac_res" >&6; }
37357 if test `eval echo '${'$as_ac_var'}'` = yes; then
37358   cat >>confdefs.h <<_ACEOF
37359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37360 _ACEOF
37361  break
37362 fi
37363 done
37364
37365 if test "$ac_cv_func_setenv" = "yes"; then
37366
37367 for ac_func in unsetenv
37368 do
37369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37373   echo $ECHO_N "(cached) $ECHO_C" >&6
37374 else
37375   cat >conftest.$ac_ext <<_ACEOF
37376 /* confdefs.h.  */
37377 _ACEOF
37378 cat confdefs.h >>conftest.$ac_ext
37379 cat >>conftest.$ac_ext <<_ACEOF
37380 /* end confdefs.h.  */
37381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37383 #define $ac_func innocuous_$ac_func
37384
37385 /* System header to define __stub macros and hopefully few prototypes,
37386     which can conflict with char $ac_func (); below.
37387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37388     <limits.h> exists even on freestanding compilers.  */
37389
37390 #ifdef __STDC__
37391 # include <limits.h>
37392 #else
37393 # include <assert.h>
37394 #endif
37395
37396 #undef $ac_func
37397
37398 /* Override any GCC internal prototype to avoid an error.
37399    Use char because int might match the return type of a GCC
37400    builtin and then its argument prototype would still apply.  */
37401 #ifdef __cplusplus
37402 extern "C"
37403 #endif
37404 char $ac_func ();
37405 /* The GNU C library defines this for functions which it implements
37406     to always fail with ENOSYS.  Some functions are actually named
37407     something starting with __ and the normal name is an alias.  */
37408 #if defined __stub_$ac_func || defined __stub___$ac_func
37409 choke me
37410 #endif
37411
37412 int
37413 main ()
37414 {
37415 return $ac_func ();
37416   ;
37417   return 0;
37418 }
37419 _ACEOF
37420 rm -f conftest.$ac_objext conftest$ac_exeext
37421 if { (ac_try="$ac_link"
37422 case "(($ac_try" in
37423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37424   *) ac_try_echo=$ac_try;;
37425 esac
37426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37427   (eval "$ac_link") 2>conftest.er1
37428   ac_status=$?
37429   grep -v '^ *+' conftest.er1 >conftest.err
37430   rm -f conftest.er1
37431   cat conftest.err >&5
37432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433   (exit $ac_status); } && {
37434          test -z "$ac_c_werror_flag" ||
37435          test ! -s conftest.err
37436        } && test -s conftest$ac_exeext &&
37437        $as_test_x conftest$ac_exeext; then
37438   eval "$as_ac_var=yes"
37439 else
37440   echo "$as_me: failed program was:" >&5
37441 sed 's/^/| /' conftest.$ac_ext >&5
37442
37443         eval "$as_ac_var=no"
37444 fi
37445
37446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37447       conftest$ac_exeext conftest.$ac_ext
37448 fi
37449 ac_res=`eval echo '${'$as_ac_var'}'`
37450                { echo "$as_me:$LINENO: result: $ac_res" >&5
37451 echo "${ECHO_T}$ac_res" >&6; }
37452 if test `eval echo '${'$as_ac_var'}'` = yes; then
37453   cat >>confdefs.h <<_ACEOF
37454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37455 _ACEOF
37456
37457 fi
37458 done
37459
37460 fi
37461
37462 HAVE_SOME_SLEEP_FUNC=0
37463 if test "$USE_BEOS" = 1; then
37464             cat >>confdefs.h <<\_ACEOF
37465 #define HAVE_SLEEP 1
37466 _ACEOF
37467
37468     HAVE_SOME_SLEEP_FUNC=1
37469 fi
37470
37471 if test "$USE_DARWIN" = 1; then
37472             cat >>confdefs.h <<\_ACEOF
37473 #define HAVE_USLEEP 1
37474 _ACEOF
37475
37476     HAVE_SOME_SLEEP_FUNC=1
37477 fi
37478
37479 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37480         POSIX4_LINK=
37481
37482 for ac_func in nanosleep
37483 do
37484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37488   echo $ECHO_N "(cached) $ECHO_C" >&6
37489 else
37490   cat >conftest.$ac_ext <<_ACEOF
37491 /* confdefs.h.  */
37492 _ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h.  */
37496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37498 #define $ac_func innocuous_$ac_func
37499
37500 /* System header to define __stub macros and hopefully few prototypes,
37501     which can conflict with char $ac_func (); below.
37502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37503     <limits.h> exists even on freestanding compilers.  */
37504
37505 #ifdef __STDC__
37506 # include <limits.h>
37507 #else
37508 # include <assert.h>
37509 #endif
37510
37511 #undef $ac_func
37512
37513 /* Override any GCC internal prototype to avoid an error.
37514    Use char because int might match the return type of a GCC
37515    builtin and then its argument prototype would still apply.  */
37516 #ifdef __cplusplus
37517 extern "C"
37518 #endif
37519 char $ac_func ();
37520 /* The GNU C library defines this for functions which it implements
37521     to always fail with ENOSYS.  Some functions are actually named
37522     something starting with __ and the normal name is an alias.  */
37523 #if defined __stub_$ac_func || defined __stub___$ac_func
37524 choke me
37525 #endif
37526
37527 int
37528 main ()
37529 {
37530 return $ac_func ();
37531   ;
37532   return 0;
37533 }
37534 _ACEOF
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (ac_try="$ac_link"
37537 case "(($ac_try" in
37538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539   *) ac_try_echo=$ac_try;;
37540 esac
37541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37542   (eval "$ac_link") 2>conftest.er1
37543   ac_status=$?
37544   grep -v '^ *+' conftest.er1 >conftest.err
37545   rm -f conftest.er1
37546   cat conftest.err >&5
37547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); } && {
37549          test -z "$ac_c_werror_flag" ||
37550          test ! -s conftest.err
37551        } && test -s conftest$ac_exeext &&
37552        $as_test_x conftest$ac_exeext; then
37553   eval "$as_ac_var=yes"
37554 else
37555   echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558         eval "$as_ac_var=no"
37559 fi
37560
37561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37562       conftest$ac_exeext conftest.$ac_ext
37563 fi
37564 ac_res=`eval echo '${'$as_ac_var'}'`
37565                { echo "$as_me:$LINENO: result: $ac_res" >&5
37566 echo "${ECHO_T}$ac_res" >&6; }
37567 if test `eval echo '${'$as_ac_var'}'` = yes; then
37568   cat >>confdefs.h <<_ACEOF
37569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37570 _ACEOF
37571  cat >>confdefs.h <<\_ACEOF
37572 #define HAVE_NANOSLEEP 1
37573 _ACEOF
37574
37575 else
37576
37577             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37578 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37579 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37580   echo $ECHO_N "(cached) $ECHO_C" >&6
37581 else
37582   ac_check_lib_save_LIBS=$LIBS
37583 LIBS="-lposix4  $LIBS"
37584 cat >conftest.$ac_ext <<_ACEOF
37585 /* confdefs.h.  */
37586 _ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h.  */
37590
37591 /* Override any GCC internal prototype to avoid an error.
37592    Use char because int might match the return type of a GCC
37593    builtin and then its argument prototype would still apply.  */
37594 #ifdef __cplusplus
37595 extern "C"
37596 #endif
37597 char nanosleep ();
37598 int
37599 main ()
37600 {
37601 return nanosleep ();
37602   ;
37603   return 0;
37604 }
37605 _ACEOF
37606 rm -f conftest.$ac_objext conftest$ac_exeext
37607 if { (ac_try="$ac_link"
37608 case "(($ac_try" in
37609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37610   *) ac_try_echo=$ac_try;;
37611 esac
37612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37613   (eval "$ac_link") 2>conftest.er1
37614   ac_status=$?
37615   grep -v '^ *+' conftest.er1 >conftest.err
37616   rm -f conftest.er1
37617   cat conftest.err >&5
37618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619   (exit $ac_status); } && {
37620          test -z "$ac_c_werror_flag" ||
37621          test ! -s conftest.err
37622        } && test -s conftest$ac_exeext &&
37623        $as_test_x conftest$ac_exeext; then
37624   ac_cv_lib_posix4_nanosleep=yes
37625 else
37626   echo "$as_me: failed program was:" >&5
37627 sed 's/^/| /' conftest.$ac_ext >&5
37628
37629         ac_cv_lib_posix4_nanosleep=no
37630 fi
37631
37632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37633       conftest$ac_exeext conftest.$ac_ext
37634 LIBS=$ac_check_lib_save_LIBS
37635 fi
37636 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37637 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37638 if test $ac_cv_lib_posix4_nanosleep = yes; then
37639
37640                     cat >>confdefs.h <<\_ACEOF
37641 #define HAVE_NANOSLEEP 1
37642 _ACEOF
37643
37644                     POSIX4_LINK=" -lposix4"
37645
37646 else
37647
37648
37649   for wx_func in usleep
37650   do
37651     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37652 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37653 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37654   echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37656
37657         cat >conftest.$ac_ext <<_ACEOF
37658
37659             /* confdefs.h.  */
37660 _ACEOF
37661 cat confdefs.h >>conftest.$ac_ext
37662 cat >>conftest.$ac_ext <<_ACEOF
37663 /* end confdefs.h.  */
37664
37665
37666                 $ac_includes_default
37667
37668 int
37669 main ()
37670 {
37671
37672                 #ifndef $wx_func
37673                   &$wx_func;
37674                 #endif
37675
37676
37677   ;
37678   return 0;
37679 }
37680
37681 _ACEOF
37682 rm -f conftest.$ac_objext conftest$ac_exeext
37683 if { (ac_try="$ac_link"
37684 case "(($ac_try" in
37685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37686   *) ac_try_echo=$ac_try;;
37687 esac
37688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37689   (eval "$ac_link") 2>conftest.er1
37690   ac_status=$?
37691   grep -v '^ *+' conftest.er1 >conftest.err
37692   rm -f conftest.er1
37693   cat conftest.err >&5
37694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695   (exit $ac_status); } && {
37696          test -z "$ac_c_werror_flag" ||
37697          test ! -s conftest.err
37698        } && test -s conftest$ac_exeext &&
37699        $as_test_x conftest$ac_exeext; then
37700   eval wx_cv_func_$wx_func=yes
37701 else
37702   echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37704
37705         eval wx_cv_func_$wx_func=no
37706 fi
37707
37708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37709       conftest$ac_exeext conftest.$ac_ext
37710
37711 fi
37712 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37713                { echo "$as_me:$LINENO: result: $ac_res" >&5
37714 echo "${ECHO_T}$ac_res" >&6; }
37715
37716     if eval test \$wx_cv_func_$wx_func = yes
37717     then
37718       cat >>confdefs.h <<_ACEOF
37719 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37720 _ACEOF
37721
37722
37723     else
37724       :
37725       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37726 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37727
37728     fi
37729   done
37730
37731
37732
37733 fi
37734
37735
37736
37737 fi
37738 done
37739
37740 fi
37741
37742
37743   for wx_func in uname
37744   do
37745     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37746 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37747 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37748   echo $ECHO_N "(cached) $ECHO_C" >&6
37749 else
37750
37751         cat >conftest.$ac_ext <<_ACEOF
37752
37753             /* confdefs.h.  */
37754 _ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h.  */
37758
37759                 #include <sys/utsname.h>
37760                 $ac_includes_default
37761
37762 int
37763 main ()
37764 {
37765
37766                 #ifndef $wx_func
37767                   &$wx_func;
37768                 #endif
37769
37770
37771   ;
37772   return 0;
37773 }
37774
37775 _ACEOF
37776 rm -f conftest.$ac_objext conftest$ac_exeext
37777 if { (ac_try="$ac_link"
37778 case "(($ac_try" in
37779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37780   *) ac_try_echo=$ac_try;;
37781 esac
37782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37783   (eval "$ac_link") 2>conftest.er1
37784   ac_status=$?
37785   grep -v '^ *+' conftest.er1 >conftest.err
37786   rm -f conftest.er1
37787   cat conftest.err >&5
37788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789   (exit $ac_status); } && {
37790          test -z "$ac_c_werror_flag" ||
37791          test ! -s conftest.err
37792        } && test -s conftest$ac_exeext &&
37793        $as_test_x conftest$ac_exeext; then
37794   eval wx_cv_func_$wx_func=yes
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799         eval wx_cv_func_$wx_func=no
37800 fi
37801
37802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37803       conftest$ac_exeext conftest.$ac_ext
37804
37805 fi
37806 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37807                { echo "$as_me:$LINENO: result: $ac_res" >&5
37808 echo "${ECHO_T}$ac_res" >&6; }
37809
37810     if eval test \$wx_cv_func_$wx_func = yes
37811     then
37812       cat >>confdefs.h <<_ACEOF
37813 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37814 _ACEOF
37815
37816
37817     else
37818       :
37819
37820     fi
37821   done
37822
37823 if test "$wx_cv_func_uname" != yes; then
37824
37825   for wx_func in gethostname
37826   do
37827     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37828 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37829 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37830   echo $ECHO_N "(cached) $ECHO_C" >&6
37831 else
37832
37833         cat >conftest.$ac_ext <<_ACEOF
37834
37835             /* confdefs.h.  */
37836 _ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h.  */
37840
37841
37842                 $ac_includes_default
37843
37844 int
37845 main ()
37846 {
37847
37848                 #ifndef $wx_func
37849                   &$wx_func;
37850                 #endif
37851
37852
37853   ;
37854   return 0;
37855 }
37856
37857 _ACEOF
37858 rm -f conftest.$ac_objext conftest$ac_exeext
37859 if { (ac_try="$ac_link"
37860 case "(($ac_try" in
37861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37862   *) ac_try_echo=$ac_try;;
37863 esac
37864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37865   (eval "$ac_link") 2>conftest.er1
37866   ac_status=$?
37867   grep -v '^ *+' conftest.er1 >conftest.err
37868   rm -f conftest.er1
37869   cat conftest.err >&5
37870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871   (exit $ac_status); } && {
37872          test -z "$ac_c_werror_flag" ||
37873          test ! -s conftest.err
37874        } && test -s conftest$ac_exeext &&
37875        $as_test_x conftest$ac_exeext; then
37876   eval wx_cv_func_$wx_func=yes
37877 else
37878   echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37880
37881         eval wx_cv_func_$wx_func=no
37882 fi
37883
37884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37885       conftest$ac_exeext conftest.$ac_ext
37886
37887 fi
37888 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37889                { echo "$as_me:$LINENO: result: $ac_res" >&5
37890 echo "${ECHO_T}$ac_res" >&6; }
37891
37892     if eval test \$wx_cv_func_$wx_func = yes
37893     then
37894       cat >>confdefs.h <<_ACEOF
37895 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37896 _ACEOF
37897
37898
37899     else
37900       :
37901
37902     fi
37903   done
37904
37905 fi
37906
37907
37908   for wx_func in strtok_r
37909   do
37910     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37911 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37912 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37913   echo $ECHO_N "(cached) $ECHO_C" >&6
37914 else
37915
37916         cat >conftest.$ac_ext <<_ACEOF
37917
37918             /* confdefs.h.  */
37919 _ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h.  */
37923
37924                 #define _REENTRANT
37925                 $ac_includes_default
37926
37927 int
37928 main ()
37929 {
37930
37931                 #ifndef $wx_func
37932                   &$wx_func;
37933                 #endif
37934
37935
37936   ;
37937   return 0;
37938 }
37939
37940 _ACEOF
37941 rm -f conftest.$ac_objext conftest$ac_exeext
37942 if { (ac_try="$ac_link"
37943 case "(($ac_try" in
37944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37945   *) ac_try_echo=$ac_try;;
37946 esac
37947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37948   (eval "$ac_link") 2>conftest.er1
37949   ac_status=$?
37950   grep -v '^ *+' conftest.er1 >conftest.err
37951   rm -f conftest.er1
37952   cat conftest.err >&5
37953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954   (exit $ac_status); } && {
37955          test -z "$ac_c_werror_flag" ||
37956          test ! -s conftest.err
37957        } && test -s conftest$ac_exeext &&
37958        $as_test_x conftest$ac_exeext; then
37959   eval wx_cv_func_$wx_func=yes
37960 else
37961   echo "$as_me: failed program was:" >&5
37962 sed 's/^/| /' conftest.$ac_ext >&5
37963
37964         eval wx_cv_func_$wx_func=no
37965 fi
37966
37967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37968       conftest$ac_exeext conftest.$ac_ext
37969
37970 fi
37971 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37972                { echo "$as_me:$LINENO: result: $ac_res" >&5
37973 echo "${ECHO_T}$ac_res" >&6; }
37974
37975     if eval test \$wx_cv_func_$wx_func = yes
37976     then
37977       cat >>confdefs.h <<_ACEOF
37978 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37979 _ACEOF
37980
37981
37982     else
37983       :
37984
37985     fi
37986   done
37987
37988
37989 INET_LINK=
37990
37991 for ac_func in inet_addr
37992 do
37993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37997   echo $ECHO_N "(cached) $ECHO_C" >&6
37998 else
37999   cat >conftest.$ac_ext <<_ACEOF
38000 /* confdefs.h.  */
38001 _ACEOF
38002 cat confdefs.h >>conftest.$ac_ext
38003 cat >>conftest.$ac_ext <<_ACEOF
38004 /* end confdefs.h.  */
38005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38007 #define $ac_func innocuous_$ac_func
38008
38009 /* System header to define __stub macros and hopefully few prototypes,
38010     which can conflict with char $ac_func (); below.
38011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38012     <limits.h> exists even on freestanding compilers.  */
38013
38014 #ifdef __STDC__
38015 # include <limits.h>
38016 #else
38017 # include <assert.h>
38018 #endif
38019
38020 #undef $ac_func
38021
38022 /* Override any GCC internal prototype to avoid an error.
38023    Use char because int might match the return type of a GCC
38024    builtin and then its argument prototype would still apply.  */
38025 #ifdef __cplusplus
38026 extern "C"
38027 #endif
38028 char $ac_func ();
38029 /* The GNU C library defines this for functions which it implements
38030     to always fail with ENOSYS.  Some functions are actually named
38031     something starting with __ and the normal name is an alias.  */
38032 #if defined __stub_$ac_func || defined __stub___$ac_func
38033 choke me
38034 #endif
38035
38036 int
38037 main ()
38038 {
38039 return $ac_func ();
38040   ;
38041   return 0;
38042 }
38043 _ACEOF
38044 rm -f conftest.$ac_objext conftest$ac_exeext
38045 if { (ac_try="$ac_link"
38046 case "(($ac_try" in
38047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38048   *) ac_try_echo=$ac_try;;
38049 esac
38050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38051   (eval "$ac_link") 2>conftest.er1
38052   ac_status=$?
38053   grep -v '^ *+' conftest.er1 >conftest.err
38054   rm -f conftest.er1
38055   cat conftest.err >&5
38056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057   (exit $ac_status); } && {
38058          test -z "$ac_c_werror_flag" ||
38059          test ! -s conftest.err
38060        } && test -s conftest$ac_exeext &&
38061        $as_test_x conftest$ac_exeext; then
38062   eval "$as_ac_var=yes"
38063 else
38064   echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38066
38067         eval "$as_ac_var=no"
38068 fi
38069
38070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38071       conftest$ac_exeext conftest.$ac_ext
38072 fi
38073 ac_res=`eval echo '${'$as_ac_var'}'`
38074                { echo "$as_me:$LINENO: result: $ac_res" >&5
38075 echo "${ECHO_T}$ac_res" >&6; }
38076 if test `eval echo '${'$as_ac_var'}'` = yes; then
38077   cat >>confdefs.h <<_ACEOF
38078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38079 _ACEOF
38080  cat >>confdefs.h <<\_ACEOF
38081 #define HAVE_INET_ADDR 1
38082 _ACEOF
38083
38084 else
38085
38086         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38087 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38088 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38089   echo $ECHO_N "(cached) $ECHO_C" >&6
38090 else
38091   ac_check_lib_save_LIBS=$LIBS
38092 LIBS="-lnsl  $LIBS"
38093 cat >conftest.$ac_ext <<_ACEOF
38094 /* confdefs.h.  */
38095 _ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h.  */
38099
38100 /* Override any GCC internal prototype to avoid an error.
38101    Use char because int might match the return type of a GCC
38102    builtin and then its argument prototype would still apply.  */
38103 #ifdef __cplusplus
38104 extern "C"
38105 #endif
38106 char inet_addr ();
38107 int
38108 main ()
38109 {
38110 return inet_addr ();
38111   ;
38112   return 0;
38113 }
38114 _ACEOF
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (ac_try="$ac_link"
38117 case "(($ac_try" in
38118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38119   *) ac_try_echo=$ac_try;;
38120 esac
38121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38122   (eval "$ac_link") 2>conftest.er1
38123   ac_status=$?
38124   grep -v '^ *+' conftest.er1 >conftest.err
38125   rm -f conftest.er1
38126   cat conftest.err >&5
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); } && {
38129          test -z "$ac_c_werror_flag" ||
38130          test ! -s conftest.err
38131        } && test -s conftest$ac_exeext &&
38132        $as_test_x conftest$ac_exeext; then
38133   ac_cv_lib_nsl_inet_addr=yes
38134 else
38135   echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38137
38138         ac_cv_lib_nsl_inet_addr=no
38139 fi
38140
38141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38142       conftest$ac_exeext conftest.$ac_ext
38143 LIBS=$ac_check_lib_save_LIBS
38144 fi
38145 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38146 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38147 if test $ac_cv_lib_nsl_inet_addr = yes; then
38148   INET_LINK="nsl"
38149 else
38150
38151                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38152 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38153 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   ac_check_lib_save_LIBS=$LIBS
38157 LIBS="-lresolv  $LIBS"
38158 cat >conftest.$ac_ext <<_ACEOF
38159 /* confdefs.h.  */
38160 _ACEOF
38161 cat confdefs.h >>conftest.$ac_ext
38162 cat >>conftest.$ac_ext <<_ACEOF
38163 /* end confdefs.h.  */
38164
38165 /* Override any GCC internal prototype to avoid an error.
38166    Use char because int might match the return type of a GCC
38167    builtin and then its argument prototype would still apply.  */
38168 #ifdef __cplusplus
38169 extern "C"
38170 #endif
38171 char inet_addr ();
38172 int
38173 main ()
38174 {
38175 return inet_addr ();
38176   ;
38177   return 0;
38178 }
38179 _ACEOF
38180 rm -f conftest.$ac_objext conftest$ac_exeext
38181 if { (ac_try="$ac_link"
38182 case "(($ac_try" in
38183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38184   *) ac_try_echo=$ac_try;;
38185 esac
38186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38187   (eval "$ac_link") 2>conftest.er1
38188   ac_status=$?
38189   grep -v '^ *+' conftest.er1 >conftest.err
38190   rm -f conftest.er1
38191   cat conftest.err >&5
38192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193   (exit $ac_status); } && {
38194          test -z "$ac_c_werror_flag" ||
38195          test ! -s conftest.err
38196        } && test -s conftest$ac_exeext &&
38197        $as_test_x conftest$ac_exeext; then
38198   ac_cv_lib_resolv_inet_addr=yes
38199 else
38200   echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38202
38203         ac_cv_lib_resolv_inet_addr=no
38204 fi
38205
38206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38207       conftest$ac_exeext conftest.$ac_ext
38208 LIBS=$ac_check_lib_save_LIBS
38209 fi
38210 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38211 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38212 if test $ac_cv_lib_resolv_inet_addr = yes; then
38213   INET_LINK="resolv"
38214 else
38215
38216                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38217 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38218 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38219   echo $ECHO_N "(cached) $ECHO_C" >&6
38220 else
38221   ac_check_lib_save_LIBS=$LIBS
38222 LIBS="-lsocket  $LIBS"
38223 cat >conftest.$ac_ext <<_ACEOF
38224 /* confdefs.h.  */
38225 _ACEOF
38226 cat confdefs.h >>conftest.$ac_ext
38227 cat >>conftest.$ac_ext <<_ACEOF
38228 /* end confdefs.h.  */
38229
38230 /* Override any GCC internal prototype to avoid an error.
38231    Use char because int might match the return type of a GCC
38232    builtin and then its argument prototype would still apply.  */
38233 #ifdef __cplusplus
38234 extern "C"
38235 #endif
38236 char inet_addr ();
38237 int
38238 main ()
38239 {
38240 return inet_addr ();
38241   ;
38242   return 0;
38243 }
38244 _ACEOF
38245 rm -f conftest.$ac_objext conftest$ac_exeext
38246 if { (ac_try="$ac_link"
38247 case "(($ac_try" in
38248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38249   *) ac_try_echo=$ac_try;;
38250 esac
38251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38252   (eval "$ac_link") 2>conftest.er1
38253   ac_status=$?
38254   grep -v '^ *+' conftest.er1 >conftest.err
38255   rm -f conftest.er1
38256   cat conftest.err >&5
38257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258   (exit $ac_status); } && {
38259          test -z "$ac_c_werror_flag" ||
38260          test ! -s conftest.err
38261        } && test -s conftest$ac_exeext &&
38262        $as_test_x conftest$ac_exeext; then
38263   ac_cv_lib_socket_inet_addr=yes
38264 else
38265   echo "$as_me: failed program was:" >&5
38266 sed 's/^/| /' conftest.$ac_ext >&5
38267
38268         ac_cv_lib_socket_inet_addr=no
38269 fi
38270
38271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38272       conftest$ac_exeext conftest.$ac_ext
38273 LIBS=$ac_check_lib_save_LIBS
38274 fi
38275 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38276 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38277 if test $ac_cv_lib_socket_inet_addr = yes; then
38278   INET_LINK="socket"
38279
38280 fi
38281
38282
38283
38284 fi
38285
38286
38287
38288 fi
38289
38290
38291
38292 fi
38293 done
38294
38295
38296
38297 for ac_func in inet_aton
38298 do
38299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38303   echo $ECHO_N "(cached) $ECHO_C" >&6
38304 else
38305   cat >conftest.$ac_ext <<_ACEOF
38306 /* confdefs.h.  */
38307 _ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h.  */
38311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38313 #define $ac_func innocuous_$ac_func
38314
38315 /* System header to define __stub macros and hopefully few prototypes,
38316     which can conflict with char $ac_func (); below.
38317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38318     <limits.h> exists even on freestanding compilers.  */
38319
38320 #ifdef __STDC__
38321 # include <limits.h>
38322 #else
38323 # include <assert.h>
38324 #endif
38325
38326 #undef $ac_func
38327
38328 /* Override any GCC internal prototype to avoid an error.
38329    Use char because int might match the return type of a GCC
38330    builtin and then its argument prototype would still apply.  */
38331 #ifdef __cplusplus
38332 extern "C"
38333 #endif
38334 char $ac_func ();
38335 /* The GNU C library defines this for functions which it implements
38336     to always fail with ENOSYS.  Some functions are actually named
38337     something starting with __ and the normal name is an alias.  */
38338 #if defined __stub_$ac_func || defined __stub___$ac_func
38339 choke me
38340 #endif
38341
38342 int
38343 main ()
38344 {
38345 return $ac_func ();
38346   ;
38347   return 0;
38348 }
38349 _ACEOF
38350 rm -f conftest.$ac_objext conftest$ac_exeext
38351 if { (ac_try="$ac_link"
38352 case "(($ac_try" in
38353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38354   *) ac_try_echo=$ac_try;;
38355 esac
38356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38357   (eval "$ac_link") 2>conftest.er1
38358   ac_status=$?
38359   grep -v '^ *+' conftest.er1 >conftest.err
38360   rm -f conftest.er1
38361   cat conftest.err >&5
38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363   (exit $ac_status); } && {
38364          test -z "$ac_c_werror_flag" ||
38365          test ! -s conftest.err
38366        } && test -s conftest$ac_exeext &&
38367        $as_test_x conftest$ac_exeext; then
38368   eval "$as_ac_var=yes"
38369 else
38370   echo "$as_me: failed program was:" >&5
38371 sed 's/^/| /' conftest.$ac_ext >&5
38372
38373         eval "$as_ac_var=no"
38374 fi
38375
38376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38377       conftest$ac_exeext conftest.$ac_ext
38378 fi
38379 ac_res=`eval echo '${'$as_ac_var'}'`
38380                { echo "$as_me:$LINENO: result: $ac_res" >&5
38381 echo "${ECHO_T}$ac_res" >&6; }
38382 if test `eval echo '${'$as_ac_var'}'` = yes; then
38383   cat >>confdefs.h <<_ACEOF
38384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38385 _ACEOF
38386  cat >>confdefs.h <<\_ACEOF
38387 #define HAVE_INET_ATON 1
38388 _ACEOF
38389
38390 else
38391
38392                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38393 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38394 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38395 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38396   echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398   ac_check_lib_save_LIBS=$LIBS
38399 LIBS="-l$INET_LINK  $LIBS"
38400 cat >conftest.$ac_ext <<_ACEOF
38401 /* confdefs.h.  */
38402 _ACEOF
38403 cat confdefs.h >>conftest.$ac_ext
38404 cat >>conftest.$ac_ext <<_ACEOF
38405 /* end confdefs.h.  */
38406
38407 /* Override any GCC internal prototype to avoid an error.
38408    Use char because int might match the return type of a GCC
38409    builtin and then its argument prototype would still apply.  */
38410 #ifdef __cplusplus
38411 extern "C"
38412 #endif
38413 char inet_aton ();
38414 int
38415 main ()
38416 {
38417 return inet_aton ();
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426   *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429   (eval "$ac_link") 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } && {
38436          test -z "$ac_c_werror_flag" ||
38437          test ! -s conftest.err
38438        } && test -s conftest$ac_exeext &&
38439        $as_test_x conftest$ac_exeext; then
38440   eval "$as_ac_Lib=yes"
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445         eval "$as_ac_Lib=no"
38446 fi
38447
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449       conftest$ac_exeext conftest.$ac_ext
38450 LIBS=$ac_check_lib_save_LIBS
38451 fi
38452 ac_res=`eval echo '${'$as_ac_Lib'}'`
38453                { echo "$as_me:$LINENO: result: $ac_res" >&5
38454 echo "${ECHO_T}$ac_res" >&6; }
38455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38456   cat >>confdefs.h <<\_ACEOF
38457 #define HAVE_INET_ATON 1
38458 _ACEOF
38459
38460 fi
38461
38462
38463 fi
38464 done
38465
38466
38467 if test "x$INET_LINK" != "x"; then
38468     cat >>confdefs.h <<\_ACEOF
38469 #define HAVE_INET_ADDR 1
38470 _ACEOF
38471
38472     INET_LINK=" -l$INET_LINK"
38473 fi
38474
38475
38476   for wx_func in fdopen
38477   do
38478     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38479 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38480 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38481   echo $ECHO_N "(cached) $ECHO_C" >&6
38482 else
38483
38484         cat >conftest.$ac_ext <<_ACEOF
38485
38486             /* confdefs.h.  */
38487 _ACEOF
38488 cat confdefs.h >>conftest.$ac_ext
38489 cat >>conftest.$ac_ext <<_ACEOF
38490 /* end confdefs.h.  */
38491
38492
38493                 $ac_includes_default
38494
38495 int
38496 main ()
38497 {
38498
38499                 #ifndef $wx_func
38500                   &$wx_func;
38501                 #endif
38502
38503
38504   ;
38505   return 0;
38506 }
38507
38508 _ACEOF
38509 rm -f conftest.$ac_objext conftest$ac_exeext
38510 if { (ac_try="$ac_link"
38511 case "(($ac_try" in
38512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38513   *) ac_try_echo=$ac_try;;
38514 esac
38515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38516   (eval "$ac_link") 2>conftest.er1
38517   ac_status=$?
38518   grep -v '^ *+' conftest.er1 >conftest.err
38519   rm -f conftest.er1
38520   cat conftest.err >&5
38521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522   (exit $ac_status); } && {
38523          test -z "$ac_c_werror_flag" ||
38524          test ! -s conftest.err
38525        } && test -s conftest$ac_exeext &&
38526        $as_test_x conftest$ac_exeext; then
38527   eval wx_cv_func_$wx_func=yes
38528 else
38529   echo "$as_me: failed program was:" >&5
38530 sed 's/^/| /' conftest.$ac_ext >&5
38531
38532         eval wx_cv_func_$wx_func=no
38533 fi
38534
38535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38536       conftest$ac_exeext conftest.$ac_ext
38537
38538 fi
38539 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38540                { echo "$as_me:$LINENO: result: $ac_res" >&5
38541 echo "${ECHO_T}$ac_res" >&6; }
38542
38543     if eval test \$wx_cv_func_$wx_func = yes
38544     then
38545       cat >>confdefs.h <<_ACEOF
38546 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38547 _ACEOF
38548
38549
38550     else
38551       :
38552
38553     fi
38554   done
38555
38556
38557 if test "$wxUSE_TARSTREAM" = "yes"; then
38558
38559   for wx_func in sysconf
38560   do
38561     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38562 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38563 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38564   echo $ECHO_N "(cached) $ECHO_C" >&6
38565 else
38566
38567         cat >conftest.$ac_ext <<_ACEOF
38568
38569             /* confdefs.h.  */
38570 _ACEOF
38571 cat confdefs.h >>conftest.$ac_ext
38572 cat >>conftest.$ac_ext <<_ACEOF
38573 /* end confdefs.h.  */
38574
38575
38576                 $ac_includes_default
38577
38578 int
38579 main ()
38580 {
38581
38582                 #ifndef $wx_func
38583                   &$wx_func;
38584                 #endif
38585
38586
38587   ;
38588   return 0;
38589 }
38590
38591 _ACEOF
38592 rm -f conftest.$ac_objext conftest$ac_exeext
38593 if { (ac_try="$ac_link"
38594 case "(($ac_try" in
38595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38596   *) ac_try_echo=$ac_try;;
38597 esac
38598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38599   (eval "$ac_link") 2>conftest.er1
38600   ac_status=$?
38601   grep -v '^ *+' conftest.er1 >conftest.err
38602   rm -f conftest.er1
38603   cat conftest.err >&5
38604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605   (exit $ac_status); } && {
38606          test -z "$ac_c_werror_flag" ||
38607          test ! -s conftest.err
38608        } && test -s conftest$ac_exeext &&
38609        $as_test_x conftest$ac_exeext; then
38610   eval wx_cv_func_$wx_func=yes
38611 else
38612   echo "$as_me: failed program was:" >&5
38613 sed 's/^/| /' conftest.$ac_ext >&5
38614
38615         eval wx_cv_func_$wx_func=no
38616 fi
38617
38618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38619       conftest$ac_exeext conftest.$ac_ext
38620
38621 fi
38622 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38623                { echo "$as_me:$LINENO: result: $ac_res" >&5
38624 echo "${ECHO_T}$ac_res" >&6; }
38625
38626     if eval test \$wx_cv_func_$wx_func = yes
38627     then
38628       cat >>confdefs.h <<_ACEOF
38629 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38630 _ACEOF
38631
38632
38633     else
38634       :
38635
38636     fi
38637   done
38638
38639
38640
38641   for wx_func in getpwuid_r
38642   do
38643     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38644 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38645 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38646   echo $ECHO_N "(cached) $ECHO_C" >&6
38647 else
38648
38649         cat >conftest.$ac_ext <<_ACEOF
38650
38651             /* confdefs.h.  */
38652 _ACEOF
38653 cat confdefs.h >>conftest.$ac_ext
38654 cat >>conftest.$ac_ext <<_ACEOF
38655 /* end confdefs.h.  */
38656
38657
38658                     #define _REENTRANT
38659                     #include <pwd.h>
38660
38661                 $ac_includes_default
38662
38663 int
38664 main ()
38665 {
38666
38667                 #ifndef $wx_func
38668                   &$wx_func;
38669                 #endif
38670
38671                     struct passwd pw, *ppw;
38672                     char buf[1024];
38673                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38674
38675
38676   ;
38677   return 0;
38678 }
38679
38680 _ACEOF
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685   *) ac_try_echo=$ac_try;;
38686 esac
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688   (eval "$ac_link") 2>conftest.er1
38689   ac_status=$?
38690   grep -v '^ *+' conftest.er1 >conftest.err
38691   rm -f conftest.er1
38692   cat conftest.err >&5
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); } && {
38695          test -z "$ac_c_werror_flag" ||
38696          test ! -s conftest.err
38697        } && test -s conftest$ac_exeext &&
38698        $as_test_x conftest$ac_exeext; then
38699   eval wx_cv_func_$wx_func=yes
38700 else
38701   echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38703
38704         eval wx_cv_func_$wx_func=no
38705 fi
38706
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708       conftest$ac_exeext conftest.$ac_ext
38709
38710 fi
38711 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38712                { echo "$as_me:$LINENO: result: $ac_res" >&5
38713 echo "${ECHO_T}$ac_res" >&6; }
38714
38715     if eval test \$wx_cv_func_$wx_func = yes
38716     then
38717       cat >>confdefs.h <<_ACEOF
38718 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38719 _ACEOF
38720
38721
38722     else
38723       :
38724
38725     fi
38726   done
38727
38728
38729
38730   for wx_func in getgrgid_r
38731   do
38732     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38733 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38734 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38735   echo $ECHO_N "(cached) $ECHO_C" >&6
38736 else
38737
38738         cat >conftest.$ac_ext <<_ACEOF
38739
38740             /* confdefs.h.  */
38741 _ACEOF
38742 cat confdefs.h >>conftest.$ac_ext
38743 cat >>conftest.$ac_ext <<_ACEOF
38744 /* end confdefs.h.  */
38745
38746
38747                     #define _REENTRANT
38748                     #include <grp.h>
38749
38750                 $ac_includes_default
38751
38752 int
38753 main ()
38754 {
38755
38756                 #ifndef $wx_func
38757                   &$wx_func;
38758                 #endif
38759
38760                     struct group grp, *pgrp;
38761                     char buf[1024];
38762                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38763
38764
38765   ;
38766   return 0;
38767 }
38768
38769 _ACEOF
38770 rm -f conftest.$ac_objext conftest$ac_exeext
38771 if { (ac_try="$ac_link"
38772 case "(($ac_try" in
38773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38774   *) ac_try_echo=$ac_try;;
38775 esac
38776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38777   (eval "$ac_link") 2>conftest.er1
38778   ac_status=$?
38779   grep -v '^ *+' conftest.er1 >conftest.err
38780   rm -f conftest.er1
38781   cat conftest.err >&5
38782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783   (exit $ac_status); } && {
38784          test -z "$ac_c_werror_flag" ||
38785          test ! -s conftest.err
38786        } && test -s conftest$ac_exeext &&
38787        $as_test_x conftest$ac_exeext; then
38788   eval wx_cv_func_$wx_func=yes
38789 else
38790   echo "$as_me: failed program was:" >&5
38791 sed 's/^/| /' conftest.$ac_ext >&5
38792
38793         eval wx_cv_func_$wx_func=no
38794 fi
38795
38796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38797       conftest$ac_exeext conftest.$ac_ext
38798
38799 fi
38800 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38801                { echo "$as_me:$LINENO: result: $ac_res" >&5
38802 echo "${ECHO_T}$ac_res" >&6; }
38803
38804     if eval test \$wx_cv_func_$wx_func = yes
38805     then
38806       cat >>confdefs.h <<_ACEOF
38807 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38808 _ACEOF
38809
38810
38811     else
38812       :
38813
38814     fi
38815   done
38816
38817 fi
38818
38819 fi
38820
38821
38822
38823 cat >confcache <<\_ACEOF
38824 # This file is a shell script that caches the results of configure
38825 # tests run on this system so they can be shared between configure
38826 # scripts and configure runs, see configure's option --config-cache.
38827 # It is not useful on other systems.  If it contains results you don't
38828 # want to keep, you may remove or edit it.
38829 #
38830 # config.status only pays attention to the cache file if you give it
38831 # the --recheck option to rerun configure.
38832 #
38833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38835 # following values.
38836
38837 _ACEOF
38838
38839 # The following way of writing the cache mishandles newlines in values,
38840 # but we know of no workaround that is simple, portable, and efficient.
38841 # So, we kill variables containing newlines.
38842 # Ultrix sh set writes to stderr and can't be redirected directly,
38843 # and sets the high bit in the cache file unless we assign to the vars.
38844 (
38845   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38846     eval ac_val=\$$ac_var
38847     case $ac_val in #(
38848     *${as_nl}*)
38849       case $ac_var in #(
38850       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38852       esac
38853       case $ac_var in #(
38854       _ | IFS | as_nl) ;; #(
38855       *) $as_unset $ac_var ;;
38856       esac ;;
38857     esac
38858   done
38859
38860   (set) 2>&1 |
38861     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38862     *${as_nl}ac_space=\ *)
38863       # `set' does not quote correctly, so add quotes (double-quote
38864       # substitution turns \\\\ into \\, and sed turns \\ into \).
38865       sed -n \
38866         "s/'/'\\\\''/g;
38867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38868       ;; #(
38869     *)
38870       # `set' quotes correctly as required by POSIX, so do not add quotes.
38871       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38872       ;;
38873     esac |
38874     sort
38875 ) |
38876   sed '
38877      /^ac_cv_env_/b end
38878      t clear
38879      :clear
38880      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38881      t end
38882      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38883      :end' >>confcache
38884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38885   if test -w "$cache_file"; then
38886     test "x$cache_file" != "x/dev/null" &&
38887       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38888 echo "$as_me: updating cache $cache_file" >&6;}
38889     cat confcache >$cache_file
38890   else
38891     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38892 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38893   fi
38894 fi
38895 rm -f confcache
38896
38897
38898 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38899
38900
38901     THREADS_LINK=
38902     THREADS_CFLAGS=
38903
38904     if test "$wxUSE_THREADS" = "yes" ; then
38905         if test "$USE_BEOS" = 1; then
38906             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38907 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38908             wxUSE_THREADS="no"
38909         fi
38910     fi
38911
38912     if test "$wxUSE_THREADS" = "yes" ; then
38913
38914
38915                                 THREAD_OPTS="-pthread"
38916         if test "x$SUNCXX" = xyes; then
38917             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38918         fi
38919
38920         case "${host}" in
38921           *-*-solaris2* | *-*-sunos4* )
38922                 if test "x$GCC" = "xyes"; then
38923                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38924                 fi
38925                 ;;
38926           *-*-freebsd*)
38927                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38928                 ;;
38929           *-*-darwin* | *-*-cygwin* )
38930                                                 THREAD_OPTS=""
38931                 ;;
38932           *-*-aix*)
38933                                 THREAD_OPTS="pthreads"
38934                 ;;
38935           *-hp-hpux* )
38936                 if test "x$GCC" = "xyes"; then
38937                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38938                         THREAD_OPTS=""
38939                 else
38940                                                             THREAD_OPTS="-mt"
38941                 fi
38942                 ;;
38943
38944           *-*-irix* )
38945                                                                 if test "x$GCC" = "xyes"; then
38946                     THREAD_OPTS=""
38947                 fi
38948                 ;;
38949
38950           *-*-*UnixWare*)
38951                                 if test "x$GCC" != "xyes"; then
38952                     THREAD_OPTS="-Ethread"
38953                 fi
38954                 ;;
38955         esac
38956
38957                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38958
38959                 THREADS_OK=no
38960         for flag in $THREAD_OPTS; do
38961             case $flag in
38962                 none)
38963                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38964 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38965                     ;;
38966
38967                 -*)
38968                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38969 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38970                     THREADS_CFLAGS="$flag"
38971                     ;;
38972
38973                 *)
38974                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38975 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38976                     THREADS_LINK="-l$flag"
38977                     ;;
38978               esac
38979
38980               save_LIBS="$LIBS"
38981               save_CFLAGS="$CFLAGS"
38982               LIBS="$THREADS_LINK $LIBS"
38983               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38984
38985               cat >conftest.$ac_ext <<_ACEOF
38986 /* confdefs.h.  */
38987 _ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h.  */
38991 #include <pthread.h>
38992 int
38993 main ()
38994 {
38995 pthread_create(0,0,0,0);
38996   ;
38997   return 0;
38998 }
38999 _ACEOF
39000 rm -f conftest.$ac_objext conftest$ac_exeext
39001 if { (ac_try="$ac_link"
39002 case "(($ac_try" in
39003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39004   *) ac_try_echo=$ac_try;;
39005 esac
39006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39007   (eval "$ac_link") 2>conftest.er1
39008   ac_status=$?
39009   grep -v '^ *+' conftest.er1 >conftest.err
39010   rm -f conftest.er1
39011   cat conftest.err >&5
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); } && {
39014          test -z "$ac_c_werror_flag" ||
39015          test ! -s conftest.err
39016        } && test -s conftest$ac_exeext &&
39017        $as_test_x conftest$ac_exeext; then
39018   THREADS_OK=yes
39019 else
39020   echo "$as_me: failed program was:" >&5
39021 sed 's/^/| /' conftest.$ac_ext >&5
39022
39023
39024 fi
39025
39026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39027       conftest$ac_exeext conftest.$ac_ext
39028
39029               LIBS="$save_LIBS"
39030               CFLAGS="$save_CFLAGS"
39031
39032               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39033 echo "${ECHO_T}$THREADS_OK" >&6; }
39034               if test "x$THREADS_OK" = "xyes"; then
39035                       break;
39036               fi
39037
39038               THREADS_LINK=""
39039               THREADS_CFLAGS=""
39040       done
39041
39042       if test "x$THREADS_OK" != "xyes"; then
39043           wxUSE_THREADS=no
39044           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39045 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39046       else
39047                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39048           LIBS="$THREADS_LINK $LIBS"
39049
39050           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39051 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39052           flag=no
39053           case "${host}" in
39054             *-aix*)
39055                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39056                 flag="-D_THREAD_SAFE"
39057                 ;;
39058             *-freebsd*)
39059                 flag="-D_THREAD_SAFE"
39060                 ;;
39061             *-hp-hpux* )
39062                 flag="-D_REENTRANT"
39063                 if test "x$GCC" != "xyes"; then
39064                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39065                 fi
39066                 ;;
39067             *solaris* | alpha*-osf*)
39068                 flag="-D_REENTRANT"
39069                 ;;
39070           esac
39071           { echo "$as_me:$LINENO: result: ${flag}" >&5
39072 echo "${ECHO_T}${flag}" >&6; }
39073           if test "x$flag" != xno; then
39074               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39075           fi
39076
39077                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39078       fi
39079     fi
39080
39081         if test "$wxUSE_THREADS" = "yes" ; then
39082
39083 for ac_func in thr_setconcurrency
39084 do
39085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39089   echo $ECHO_N "(cached) $ECHO_C" >&6
39090 else
39091   cat >conftest.$ac_ext <<_ACEOF
39092 /* confdefs.h.  */
39093 _ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h.  */
39097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39099 #define $ac_func innocuous_$ac_func
39100
39101 /* System header to define __stub macros and hopefully few prototypes,
39102     which can conflict with char $ac_func (); below.
39103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39104     <limits.h> exists even on freestanding compilers.  */
39105
39106 #ifdef __STDC__
39107 # include <limits.h>
39108 #else
39109 # include <assert.h>
39110 #endif
39111
39112 #undef $ac_func
39113
39114 /* Override any GCC internal prototype to avoid an error.
39115    Use char because int might match the return type of a GCC
39116    builtin and then its argument prototype would still apply.  */
39117 #ifdef __cplusplus
39118 extern "C"
39119 #endif
39120 char $ac_func ();
39121 /* The GNU C library defines this for functions which it implements
39122     to always fail with ENOSYS.  Some functions are actually named
39123     something starting with __ and the normal name is an alias.  */
39124 #if defined __stub_$ac_func || defined __stub___$ac_func
39125 choke me
39126 #endif
39127
39128 int
39129 main ()
39130 {
39131 return $ac_func ();
39132   ;
39133   return 0;
39134 }
39135 _ACEOF
39136 rm -f conftest.$ac_objext conftest$ac_exeext
39137 if { (ac_try="$ac_link"
39138 case "(($ac_try" in
39139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39140   *) ac_try_echo=$ac_try;;
39141 esac
39142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39143   (eval "$ac_link") 2>conftest.er1
39144   ac_status=$?
39145   grep -v '^ *+' conftest.er1 >conftest.err
39146   rm -f conftest.er1
39147   cat conftest.err >&5
39148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149   (exit $ac_status); } && {
39150          test -z "$ac_c_werror_flag" ||
39151          test ! -s conftest.err
39152        } && test -s conftest$ac_exeext &&
39153        $as_test_x conftest$ac_exeext; then
39154   eval "$as_ac_var=yes"
39155 else
39156   echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39158
39159         eval "$as_ac_var=no"
39160 fi
39161
39162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39163       conftest$ac_exeext conftest.$ac_ext
39164 fi
39165 ac_res=`eval echo '${'$as_ac_var'}'`
39166                { echo "$as_me:$LINENO: result: $ac_res" >&5
39167 echo "${ECHO_T}$ac_res" >&6; }
39168 if test `eval echo '${'$as_ac_var'}'` = yes; then
39169   cat >>confdefs.h <<_ACEOF
39170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39171 _ACEOF
39172
39173 fi
39174 done
39175
39176
39177                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39178 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39179 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39180   echo $ECHO_N "(cached) $ECHO_C" >&6
39181 else
39182
39183                                 ac_ext=cpp
39184 ac_cpp='$CXXCPP $CPPFLAGS'
39185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39188
39189         cat >conftest.$ac_ext <<_ACEOF
39190 /* confdefs.h.  */
39191 _ACEOF
39192 cat confdefs.h >>conftest.$ac_ext
39193 cat >>conftest.$ac_ext <<_ACEOF
39194 /* end confdefs.h.  */
39195 #include <pthread.h>
39196                void ThreadCleanupFunc(void *p);
39197
39198 int
39199 main ()
39200 {
39201
39202                 void *p;
39203                 pthread_cleanup_push(ThreadCleanupFunc, p);
39204                 pthread_cleanup_pop(0);
39205
39206   ;
39207   return 0;
39208 }
39209 _ACEOF
39210 rm -f conftest.$ac_objext
39211 if { (ac_try="$ac_compile"
39212 case "(($ac_try" in
39213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39214   *) ac_try_echo=$ac_try;;
39215 esac
39216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39217   (eval "$ac_compile") 2>conftest.er1
39218   ac_status=$?
39219   grep -v '^ *+' conftest.er1 >conftest.err
39220   rm -f conftest.er1
39221   cat conftest.err >&5
39222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223   (exit $ac_status); } && {
39224          test -z "$ac_cxx_werror_flag" ||
39225          test ! -s conftest.err
39226        } && test -s conftest.$ac_objext; then
39227
39228                wx_cv_func_pthread_cleanup=yes
39229
39230 else
39231   echo "$as_me: failed program was:" >&5
39232 sed 's/^/| /' conftest.$ac_ext >&5
39233
39234
39235                wx_cv_func_pthread_cleanup=no
39236
39237
39238 fi
39239
39240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39241         ac_ext=c
39242 ac_cpp='$CPP $CPPFLAGS'
39243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39246
39247
39248 fi
39249 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39250 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39251       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39252         cat >>confdefs.h <<\_ACEOF
39253 #define wxHAVE_PTHREAD_CLEANUP 1
39254 _ACEOF
39255
39256       fi
39257
39258
39259 for ac_header in sched.h
39260 do
39261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39265   echo $ECHO_N "(cached) $ECHO_C" >&6
39266 else
39267   cat >conftest.$ac_ext <<_ACEOF
39268 /* confdefs.h.  */
39269 _ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h.  */
39273 $ac_includes_default
39274
39275 #include <$ac_header>
39276 _ACEOF
39277 rm -f conftest.$ac_objext
39278 if { (ac_try="$ac_compile"
39279 case "(($ac_try" in
39280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39281   *) ac_try_echo=$ac_try;;
39282 esac
39283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39284   (eval "$ac_compile") 2>conftest.er1
39285   ac_status=$?
39286   grep -v '^ *+' conftest.er1 >conftest.err
39287   rm -f conftest.er1
39288   cat conftest.err >&5
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); } && {
39291          test -z "$ac_c_werror_flag" ||
39292          test ! -s conftest.err
39293        } && test -s conftest.$ac_objext; then
39294   eval "$as_ac_Header=yes"
39295 else
39296   echo "$as_me: failed program was:" >&5
39297 sed 's/^/| /' conftest.$ac_ext >&5
39298
39299         eval "$as_ac_Header=no"
39300 fi
39301
39302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39303 fi
39304 ac_res=`eval echo '${'$as_ac_Header'}'`
39305                { echo "$as_me:$LINENO: result: $ac_res" >&5
39306 echo "${ECHO_T}$ac_res" >&6; }
39307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39308   cat >>confdefs.h <<_ACEOF
39309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39310 _ACEOF
39311
39312 fi
39313
39314 done
39315
39316       if test "$ac_cv_header_sched_h" = "yes"; then
39317           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39318 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39319 if test "${ac_cv_func_sched_yield+set}" = set; then
39320   echo $ECHO_N "(cached) $ECHO_C" >&6
39321 else
39322   cat >conftest.$ac_ext <<_ACEOF
39323 /* confdefs.h.  */
39324 _ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h.  */
39328 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39330 #define sched_yield innocuous_sched_yield
39331
39332 /* System header to define __stub macros and hopefully few prototypes,
39333     which can conflict with char sched_yield (); below.
39334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39335     <limits.h> exists even on freestanding compilers.  */
39336
39337 #ifdef __STDC__
39338 # include <limits.h>
39339 #else
39340 # include <assert.h>
39341 #endif
39342
39343 #undef sched_yield
39344
39345 /* Override any GCC internal prototype to avoid an error.
39346    Use char because int might match the return type of a GCC
39347    builtin and then its argument prototype would still apply.  */
39348 #ifdef __cplusplus
39349 extern "C"
39350 #endif
39351 char sched_yield ();
39352 /* The GNU C library defines this for functions which it implements
39353     to always fail with ENOSYS.  Some functions are actually named
39354     something starting with __ and the normal name is an alias.  */
39355 #if defined __stub_sched_yield || defined __stub___sched_yield
39356 choke me
39357 #endif
39358
39359 int
39360 main ()
39361 {
39362 return sched_yield ();
39363   ;
39364   return 0;
39365 }
39366 _ACEOF
39367 rm -f conftest.$ac_objext conftest$ac_exeext
39368 if { (ac_try="$ac_link"
39369 case "(($ac_try" in
39370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39371   *) ac_try_echo=$ac_try;;
39372 esac
39373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39374   (eval "$ac_link") 2>conftest.er1
39375   ac_status=$?
39376   grep -v '^ *+' conftest.er1 >conftest.err
39377   rm -f conftest.er1
39378   cat conftest.err >&5
39379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380   (exit $ac_status); } && {
39381          test -z "$ac_c_werror_flag" ||
39382          test ! -s conftest.err
39383        } && test -s conftest$ac_exeext &&
39384        $as_test_x conftest$ac_exeext; then
39385   ac_cv_func_sched_yield=yes
39386 else
39387   echo "$as_me: failed program was:" >&5
39388 sed 's/^/| /' conftest.$ac_ext >&5
39389
39390         ac_cv_func_sched_yield=no
39391 fi
39392
39393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39394       conftest$ac_exeext conftest.$ac_ext
39395 fi
39396 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39397 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39398 if test $ac_cv_func_sched_yield = yes; then
39399   cat >>confdefs.h <<\_ACEOF
39400 #define HAVE_SCHED_YIELD 1
39401 _ACEOF
39402
39403 else
39404
39405                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39406 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39407 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39408   echo $ECHO_N "(cached) $ECHO_C" >&6
39409 else
39410   ac_check_lib_save_LIBS=$LIBS
39411 LIBS="-lposix4  $LIBS"
39412 cat >conftest.$ac_ext <<_ACEOF
39413 /* confdefs.h.  */
39414 _ACEOF
39415 cat confdefs.h >>conftest.$ac_ext
39416 cat >>conftest.$ac_ext <<_ACEOF
39417 /* end confdefs.h.  */
39418
39419 /* Override any GCC internal prototype to avoid an error.
39420    Use char because int might match the return type of a GCC
39421    builtin and then its argument prototype would still apply.  */
39422 #ifdef __cplusplus
39423 extern "C"
39424 #endif
39425 char sched_yield ();
39426 int
39427 main ()
39428 {
39429 return sched_yield ();
39430   ;
39431   return 0;
39432 }
39433 _ACEOF
39434 rm -f conftest.$ac_objext conftest$ac_exeext
39435 if { (ac_try="$ac_link"
39436 case "(($ac_try" in
39437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39438   *) ac_try_echo=$ac_try;;
39439 esac
39440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39441   (eval "$ac_link") 2>conftest.er1
39442   ac_status=$?
39443   grep -v '^ *+' conftest.er1 >conftest.err
39444   rm -f conftest.er1
39445   cat conftest.err >&5
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); } && {
39448          test -z "$ac_c_werror_flag" ||
39449          test ! -s conftest.err
39450        } && test -s conftest$ac_exeext &&
39451        $as_test_x conftest$ac_exeext; then
39452   ac_cv_lib_posix4_sched_yield=yes
39453 else
39454   echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39456
39457         ac_cv_lib_posix4_sched_yield=no
39458 fi
39459
39460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39461       conftest$ac_exeext conftest.$ac_ext
39462 LIBS=$ac_check_lib_save_LIBS
39463 fi
39464 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39465 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39466 if test $ac_cv_lib_posix4_sched_yield = yes; then
39467   cat >>confdefs.h <<\_ACEOF
39468 #define HAVE_SCHED_YIELD 1
39469 _ACEOF
39470  POSIX4_LINK=" -lposix4"
39471 else
39472   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39473 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39474
39475 fi
39476
39477
39478
39479 fi
39480
39481       fi
39482
39483                                           HAVE_PRIOR_FUNCS=0
39484       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39485 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39486 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39487   echo $ECHO_N "(cached) $ECHO_C" >&6
39488 else
39489   cat >conftest.$ac_ext <<_ACEOF
39490 /* confdefs.h.  */
39491 _ACEOF
39492 cat confdefs.h >>conftest.$ac_ext
39493 cat >>conftest.$ac_ext <<_ACEOF
39494 /* end confdefs.h.  */
39495 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39497 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39498
39499 /* System header to define __stub macros and hopefully few prototypes,
39500     which can conflict with char pthread_attr_getschedpolicy (); below.
39501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39502     <limits.h> exists even on freestanding compilers.  */
39503
39504 #ifdef __STDC__
39505 # include <limits.h>
39506 #else
39507 # include <assert.h>
39508 #endif
39509
39510 #undef pthread_attr_getschedpolicy
39511
39512 /* Override any GCC internal prototype to avoid an error.
39513    Use char because int might match the return type of a GCC
39514    builtin and then its argument prototype would still apply.  */
39515 #ifdef __cplusplus
39516 extern "C"
39517 #endif
39518 char pthread_attr_getschedpolicy ();
39519 /* The GNU C library defines this for functions which it implements
39520     to always fail with ENOSYS.  Some functions are actually named
39521     something starting with __ and the normal name is an alias.  */
39522 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39523 choke me
39524 #endif
39525
39526 int
39527 main ()
39528 {
39529 return pthread_attr_getschedpolicy ();
39530   ;
39531   return 0;
39532 }
39533 _ACEOF
39534 rm -f conftest.$ac_objext conftest$ac_exeext
39535 if { (ac_try="$ac_link"
39536 case "(($ac_try" in
39537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39538   *) ac_try_echo=$ac_try;;
39539 esac
39540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39541   (eval "$ac_link") 2>conftest.er1
39542   ac_status=$?
39543   grep -v '^ *+' conftest.er1 >conftest.err
39544   rm -f conftest.er1
39545   cat conftest.err >&5
39546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547   (exit $ac_status); } && {
39548          test -z "$ac_c_werror_flag" ||
39549          test ! -s conftest.err
39550        } && test -s conftest$ac_exeext &&
39551        $as_test_x conftest$ac_exeext; then
39552   ac_cv_func_pthread_attr_getschedpolicy=yes
39553 else
39554   echo "$as_me: failed program was:" >&5
39555 sed 's/^/| /' conftest.$ac_ext >&5
39556
39557         ac_cv_func_pthread_attr_getschedpolicy=no
39558 fi
39559
39560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39561       conftest$ac_exeext conftest.$ac_ext
39562 fi
39563 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39564 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39565 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39566   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39567 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39568 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39569   echo $ECHO_N "(cached) $ECHO_C" >&6
39570 else
39571   cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39579 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39580
39581 /* System header to define __stub macros and hopefully few prototypes,
39582     which can conflict with char pthread_attr_setschedparam (); below.
39583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39584     <limits.h> exists even on freestanding compilers.  */
39585
39586 #ifdef __STDC__
39587 # include <limits.h>
39588 #else
39589 # include <assert.h>
39590 #endif
39591
39592 #undef pthread_attr_setschedparam
39593
39594 /* Override any GCC internal prototype to avoid an error.
39595    Use char because int might match the return type of a GCC
39596    builtin and then its argument prototype would still apply.  */
39597 #ifdef __cplusplus
39598 extern "C"
39599 #endif
39600 char pthread_attr_setschedparam ();
39601 /* The GNU C library defines this for functions which it implements
39602     to always fail with ENOSYS.  Some functions are actually named
39603     something starting with __ and the normal name is an alias.  */
39604 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39605 choke me
39606 #endif
39607
39608 int
39609 main ()
39610 {
39611 return pthread_attr_setschedparam ();
39612   ;
39613   return 0;
39614 }
39615 _ACEOF
39616 rm -f conftest.$ac_objext conftest$ac_exeext
39617 if { (ac_try="$ac_link"
39618 case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_link") 2>conftest.er1
39624   ac_status=$?
39625   grep -v '^ *+' conftest.er1 >conftest.err
39626   rm -f conftest.er1
39627   cat conftest.err >&5
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); } && {
39630          test -z "$ac_c_werror_flag" ||
39631          test ! -s conftest.err
39632        } && test -s conftest$ac_exeext &&
39633        $as_test_x conftest$ac_exeext; then
39634   ac_cv_func_pthread_attr_setschedparam=yes
39635 else
39636   echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39638
39639         ac_cv_func_pthread_attr_setschedparam=no
39640 fi
39641
39642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39643       conftest$ac_exeext conftest.$ac_ext
39644 fi
39645 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39646 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39647 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39648   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39649 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39650 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39651   echo $ECHO_N "(cached) $ECHO_C" >&6
39652 else
39653   cat >conftest.$ac_ext <<_ACEOF
39654 /* confdefs.h.  */
39655 _ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h.  */
39659 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39661 #define sched_get_priority_max innocuous_sched_get_priority_max
39662
39663 /* System header to define __stub macros and hopefully few prototypes,
39664     which can conflict with char sched_get_priority_max (); below.
39665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39666     <limits.h> exists even on freestanding compilers.  */
39667
39668 #ifdef __STDC__
39669 # include <limits.h>
39670 #else
39671 # include <assert.h>
39672 #endif
39673
39674 #undef sched_get_priority_max
39675
39676 /* Override any GCC internal prototype to avoid an error.
39677    Use char because int might match the return type of a GCC
39678    builtin and then its argument prototype would still apply.  */
39679 #ifdef __cplusplus
39680 extern "C"
39681 #endif
39682 char sched_get_priority_max ();
39683 /* The GNU C library defines this for functions which it implements
39684     to always fail with ENOSYS.  Some functions are actually named
39685     something starting with __ and the normal name is an alias.  */
39686 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39687 choke me
39688 #endif
39689
39690 int
39691 main ()
39692 {
39693 return sched_get_priority_max ();
39694   ;
39695   return 0;
39696 }
39697 _ACEOF
39698 rm -f conftest.$ac_objext conftest$ac_exeext
39699 if { (ac_try="$ac_link"
39700 case "(($ac_try" in
39701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39702   *) ac_try_echo=$ac_try;;
39703 esac
39704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39705   (eval "$ac_link") 2>conftest.er1
39706   ac_status=$?
39707   grep -v '^ *+' conftest.er1 >conftest.err
39708   rm -f conftest.er1
39709   cat conftest.err >&5
39710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711   (exit $ac_status); } && {
39712          test -z "$ac_c_werror_flag" ||
39713          test ! -s conftest.err
39714        } && test -s conftest$ac_exeext &&
39715        $as_test_x conftest$ac_exeext; then
39716   ac_cv_func_sched_get_priority_max=yes
39717 else
39718   echo "$as_me: failed program was:" >&5
39719 sed 's/^/| /' conftest.$ac_ext >&5
39720
39721         ac_cv_func_sched_get_priority_max=no
39722 fi
39723
39724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39725       conftest$ac_exeext conftest.$ac_ext
39726 fi
39727 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39728 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39729 if test $ac_cv_func_sched_get_priority_max = yes; then
39730   HAVE_PRIOR_FUNCS=1
39731 else
39732   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39733 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39734 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39735   echo $ECHO_N "(cached) $ECHO_C" >&6
39736 else
39737   ac_check_lib_save_LIBS=$LIBS
39738 LIBS="-lposix4  $LIBS"
39739 cat >conftest.$ac_ext <<_ACEOF
39740 /* confdefs.h.  */
39741 _ACEOF
39742 cat confdefs.h >>conftest.$ac_ext
39743 cat >>conftest.$ac_ext <<_ACEOF
39744 /* end confdefs.h.  */
39745
39746 /* Override any GCC internal prototype to avoid an error.
39747    Use char because int might match the return type of a GCC
39748    builtin and then its argument prototype would still apply.  */
39749 #ifdef __cplusplus
39750 extern "C"
39751 #endif
39752 char sched_get_priority_max ();
39753 int
39754 main ()
39755 {
39756 return sched_get_priority_max ();
39757   ;
39758   return 0;
39759 }
39760 _ACEOF
39761 rm -f conftest.$ac_objext conftest$ac_exeext
39762 if { (ac_try="$ac_link"
39763 case "(($ac_try" in
39764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39765   *) ac_try_echo=$ac_try;;
39766 esac
39767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39768   (eval "$ac_link") 2>conftest.er1
39769   ac_status=$?
39770   grep -v '^ *+' conftest.er1 >conftest.err
39771   rm -f conftest.er1
39772   cat conftest.err >&5
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); } && {
39775          test -z "$ac_c_werror_flag" ||
39776          test ! -s conftest.err
39777        } && test -s conftest$ac_exeext &&
39778        $as_test_x conftest$ac_exeext; then
39779   ac_cv_lib_posix4_sched_get_priority_max=yes
39780 else
39781   echo "$as_me: failed program was:" >&5
39782 sed 's/^/| /' conftest.$ac_ext >&5
39783
39784         ac_cv_lib_posix4_sched_get_priority_max=no
39785 fi
39786
39787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39788       conftest$ac_exeext conftest.$ac_ext
39789 LIBS=$ac_check_lib_save_LIBS
39790 fi
39791 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39792 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39793 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39794
39795                                 HAVE_PRIOR_FUNCS=1
39796                                 POSIX4_LINK=" -lposix4"
39797
39798 fi
39799
39800
39801 fi
39802
39803
39804 fi
39805
39806
39807 fi
39808
39809
39810       if test "$HAVE_PRIOR_FUNCS" = 1; then
39811         cat >>confdefs.h <<\_ACEOF
39812 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39813 _ACEOF
39814
39815       else
39816         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39817 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39818       fi
39819
39820       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39821 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39822 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39823   echo $ECHO_N "(cached) $ECHO_C" >&6
39824 else
39825   cat >conftest.$ac_ext <<_ACEOF
39826 /* confdefs.h.  */
39827 _ACEOF
39828 cat confdefs.h >>conftest.$ac_ext
39829 cat >>conftest.$ac_ext <<_ACEOF
39830 /* end confdefs.h.  */
39831 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39833 #define pthread_cancel innocuous_pthread_cancel
39834
39835 /* System header to define __stub macros and hopefully few prototypes,
39836     which can conflict with char pthread_cancel (); below.
39837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39838     <limits.h> exists even on freestanding compilers.  */
39839
39840 #ifdef __STDC__
39841 # include <limits.h>
39842 #else
39843 # include <assert.h>
39844 #endif
39845
39846 #undef pthread_cancel
39847
39848 /* Override any GCC internal prototype to avoid an error.
39849    Use char because int might match the return type of a GCC
39850    builtin and then its argument prototype would still apply.  */
39851 #ifdef __cplusplus
39852 extern "C"
39853 #endif
39854 char pthread_cancel ();
39855 /* The GNU C library defines this for functions which it implements
39856     to always fail with ENOSYS.  Some functions are actually named
39857     something starting with __ and the normal name is an alias.  */
39858 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39859 choke me
39860 #endif
39861
39862 int
39863 main ()
39864 {
39865 return pthread_cancel ();
39866   ;
39867   return 0;
39868 }
39869 _ACEOF
39870 rm -f conftest.$ac_objext conftest$ac_exeext
39871 if { (ac_try="$ac_link"
39872 case "(($ac_try" in
39873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39874   *) ac_try_echo=$ac_try;;
39875 esac
39876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39877   (eval "$ac_link") 2>conftest.er1
39878   ac_status=$?
39879   grep -v '^ *+' conftest.er1 >conftest.err
39880   rm -f conftest.er1
39881   cat conftest.err >&5
39882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883   (exit $ac_status); } && {
39884          test -z "$ac_c_werror_flag" ||
39885          test ! -s conftest.err
39886        } && test -s conftest$ac_exeext &&
39887        $as_test_x conftest$ac_exeext; then
39888   ac_cv_func_pthread_cancel=yes
39889 else
39890   echo "$as_me: failed program was:" >&5
39891 sed 's/^/| /' conftest.$ac_ext >&5
39892
39893         ac_cv_func_pthread_cancel=no
39894 fi
39895
39896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39897       conftest$ac_exeext conftest.$ac_ext
39898 fi
39899 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39900 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39901 if test $ac_cv_func_pthread_cancel = yes; then
39902   cat >>confdefs.h <<\_ACEOF
39903 #define HAVE_PTHREAD_CANCEL 1
39904 _ACEOF
39905
39906 else
39907   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39908 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39909 fi
39910
39911
39912       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39913 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39914 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39915   echo $ECHO_N "(cached) $ECHO_C" >&6
39916 else
39917   cat >conftest.$ac_ext <<_ACEOF
39918 /* confdefs.h.  */
39919 _ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h.  */
39923 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39925 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39926
39927 /* System header to define __stub macros and hopefully few prototypes,
39928     which can conflict with char pthread_mutex_timedlock (); below.
39929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39930     <limits.h> exists even on freestanding compilers.  */
39931
39932 #ifdef __STDC__
39933 # include <limits.h>
39934 #else
39935 # include <assert.h>
39936 #endif
39937
39938 #undef pthread_mutex_timedlock
39939
39940 /* Override any GCC internal prototype to avoid an error.
39941    Use char because int might match the return type of a GCC
39942    builtin and then its argument prototype would still apply.  */
39943 #ifdef __cplusplus
39944 extern "C"
39945 #endif
39946 char pthread_mutex_timedlock ();
39947 /* The GNU C library defines this for functions which it implements
39948     to always fail with ENOSYS.  Some functions are actually named
39949     something starting with __ and the normal name is an alias.  */
39950 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39951 choke me
39952 #endif
39953
39954 int
39955 main ()
39956 {
39957 return pthread_mutex_timedlock ();
39958   ;
39959   return 0;
39960 }
39961 _ACEOF
39962 rm -f conftest.$ac_objext conftest$ac_exeext
39963 if { (ac_try="$ac_link"
39964 case "(($ac_try" in
39965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39966   *) ac_try_echo=$ac_try;;
39967 esac
39968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39969   (eval "$ac_link") 2>conftest.er1
39970   ac_status=$?
39971   grep -v '^ *+' conftest.er1 >conftest.err
39972   rm -f conftest.er1
39973   cat conftest.err >&5
39974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39975   (exit $ac_status); } && {
39976          test -z "$ac_c_werror_flag" ||
39977          test ! -s conftest.err
39978        } && test -s conftest$ac_exeext &&
39979        $as_test_x conftest$ac_exeext; then
39980   ac_cv_func_pthread_mutex_timedlock=yes
39981 else
39982   echo "$as_me: failed program was:" >&5
39983 sed 's/^/| /' conftest.$ac_ext >&5
39984
39985         ac_cv_func_pthread_mutex_timedlock=no
39986 fi
39987
39988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39989       conftest$ac_exeext conftest.$ac_ext
39990 fi
39991 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39992 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39993 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39994   cat >>confdefs.h <<\_ACEOF
39995 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39996 _ACEOF
39997
39998 else
39999   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40000 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40001 fi
40002
40003
40004       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40005 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
40006 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40007   echo $ECHO_N "(cached) $ECHO_C" >&6
40008 else
40009   cat >conftest.$ac_ext <<_ACEOF
40010 /* confdefs.h.  */
40011 _ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h.  */
40015 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40017 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40018
40019 /* System header to define __stub macros and hopefully few prototypes,
40020     which can conflict with char pthread_attr_setstacksize (); below.
40021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40022     <limits.h> exists even on freestanding compilers.  */
40023
40024 #ifdef __STDC__
40025 # include <limits.h>
40026 #else
40027 # include <assert.h>
40028 #endif
40029
40030 #undef pthread_attr_setstacksize
40031
40032 /* Override any GCC internal prototype to avoid an error.
40033    Use char because int might match the return type of a GCC
40034    builtin and then its argument prototype would still apply.  */
40035 #ifdef __cplusplus
40036 extern "C"
40037 #endif
40038 char pthread_attr_setstacksize ();
40039 /* The GNU C library defines this for functions which it implements
40040     to always fail with ENOSYS.  Some functions are actually named
40041     something starting with __ and the normal name is an alias.  */
40042 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40043 choke me
40044 #endif
40045
40046 int
40047 main ()
40048 {
40049 return pthread_attr_setstacksize ();
40050   ;
40051   return 0;
40052 }
40053 _ACEOF
40054 rm -f conftest.$ac_objext conftest$ac_exeext
40055 if { (ac_try="$ac_link"
40056 case "(($ac_try" in
40057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40058   *) ac_try_echo=$ac_try;;
40059 esac
40060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40061   (eval "$ac_link") 2>conftest.er1
40062   ac_status=$?
40063   grep -v '^ *+' conftest.er1 >conftest.err
40064   rm -f conftest.er1
40065   cat conftest.err >&5
40066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067   (exit $ac_status); } && {
40068          test -z "$ac_c_werror_flag" ||
40069          test ! -s conftest.err
40070        } && test -s conftest$ac_exeext &&
40071        $as_test_x conftest$ac_exeext; then
40072   ac_cv_func_pthread_attr_setstacksize=yes
40073 else
40074   echo "$as_me: failed program was:" >&5
40075 sed 's/^/| /' conftest.$ac_ext >&5
40076
40077         ac_cv_func_pthread_attr_setstacksize=no
40078 fi
40079
40080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40081       conftest$ac_exeext conftest.$ac_ext
40082 fi
40083 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40084 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40085 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40086   cat >>confdefs.h <<\_ACEOF
40087 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40088 _ACEOF
40089
40090 fi
40091
40092
40093
40094       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40095 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40096 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40097   echo $ECHO_N "(cached) $ECHO_C" >&6
40098 else
40099
40100         cat >conftest.$ac_ext <<_ACEOF
40101 /* confdefs.h.  */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h.  */
40106 #include <pthread.h>
40107 int
40108 main ()
40109 {
40110
40111                pthread_mutexattr_t attr;
40112                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40113
40114   ;
40115   return 0;
40116 }
40117 _ACEOF
40118 rm -f conftest.$ac_objext
40119 if { (ac_try="$ac_compile"
40120 case "(($ac_try" in
40121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122   *) ac_try_echo=$ac_try;;
40123 esac
40124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40125   (eval "$ac_compile") 2>conftest.er1
40126   ac_status=$?
40127   grep -v '^ *+' conftest.er1 >conftest.err
40128   rm -f conftest.er1
40129   cat conftest.err >&5
40130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131   (exit $ac_status); } && {
40132          test -z "$ac_c_werror_flag" ||
40133          test ! -s conftest.err
40134        } && test -s conftest.$ac_objext; then
40135   wx_cv_type_pthread_mutexattr_t=yes
40136 else
40137   echo "$as_me: failed program was:" >&5
40138 sed 's/^/| /' conftest.$ac_ext >&5
40139
40140         wx_cv_type_pthread_mutexattr_t=no
40141
40142 fi
40143
40144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40145
40146 fi
40147 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40148 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40149
40150       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40151         cat >>confdefs.h <<\_ACEOF
40152 #define HAVE_PTHREAD_MUTEXATTR_T 1
40153 _ACEOF
40154
40155
40156                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40157 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40158 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40159   echo $ECHO_N "(cached) $ECHO_C" >&6
40160 else
40161
40162                        cat >conftest.$ac_ext <<_ACEOF
40163 /* confdefs.h.  */
40164 _ACEOF
40165 cat confdefs.h >>conftest.$ac_ext
40166 cat >>conftest.$ac_ext <<_ACEOF
40167 /* end confdefs.h.  */
40168 #include <pthread.h>
40169 int
40170 main ()
40171 {
40172
40173                                pthread_mutexattr_t attr;
40174                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40175
40176   ;
40177   return 0;
40178 }
40179 _ACEOF
40180 rm -f conftest.$ac_objext
40181 if { (ac_try="$ac_compile"
40182 case "(($ac_try" in
40183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40184   *) ac_try_echo=$ac_try;;
40185 esac
40186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40187   (eval "$ac_compile") 2>conftest.er1
40188   ac_status=$?
40189   grep -v '^ *+' conftest.er1 >conftest.err
40190   rm -f conftest.er1
40191   cat conftest.err >&5
40192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193   (exit $ac_status); } && {
40194          test -z "$ac_c_werror_flag" ||
40195          test ! -s conftest.err
40196        } && test -s conftest.$ac_objext; then
40197   wx_cv_func_pthread_mutexattr_settype_decl=yes
40198 else
40199   echo "$as_me: failed program was:" >&5
40200 sed 's/^/| /' conftest.$ac_ext >&5
40201
40202         wx_cv_func_pthread_mutexattr_settype_decl=no
40203
40204 fi
40205
40206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40207
40208 fi
40209 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40210 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40211         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40212             cat >>confdefs.h <<\_ACEOF
40213 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40214 _ACEOF
40215
40216         fi
40217       else
40218                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40219 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40220 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40221   echo $ECHO_N "(cached) $ECHO_C" >&6
40222 else
40223
40224             cat >conftest.$ac_ext <<_ACEOF
40225 /* confdefs.h.  */
40226 _ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h.  */
40230 #include <pthread.h>
40231 int
40232 main ()
40233 {
40234
40235                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40236
40237   ;
40238   return 0;
40239 }
40240 _ACEOF
40241 rm -f conftest.$ac_objext
40242 if { (ac_try="$ac_compile"
40243 case "(($ac_try" in
40244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40245   *) ac_try_echo=$ac_try;;
40246 esac
40247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40248   (eval "$ac_compile") 2>conftest.er1
40249   ac_status=$?
40250   grep -v '^ *+' conftest.er1 >conftest.err
40251   rm -f conftest.er1
40252   cat conftest.err >&5
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); } && {
40255          test -z "$ac_c_werror_flag" ||
40256          test ! -s conftest.err
40257        } && test -s conftest.$ac_objext; then
40258
40259                     wx_cv_type_pthread_rec_mutex_init=yes
40260
40261 else
40262   echo "$as_me: failed program was:" >&5
40263 sed 's/^/| /' conftest.$ac_ext >&5
40264
40265
40266                     wx_cv_type_pthread_rec_mutex_init=no
40267
40268
40269 fi
40270
40271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40272
40273 fi
40274 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40275 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40276         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40277           cat >>confdefs.h <<\_ACEOF
40278 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40279 _ACEOF
40280
40281         else
40282                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40283 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40284         fi
40285       fi
40286
40287       if test "$wxUSE_COMPILER_TLS" = "auto"; then
40288           if test "$USE_NETBSD" = 1; then
40289               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40290 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40291               wxUSE_COMPILER_TLS=no
40292           else
40293               wxUSE_COMPILER_TLS=yes
40294           fi
40295       fi
40296
40297       if test "$wxUSE_COMPILER_TLS" = "yes"; then
40298                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40299 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40300 if test "${wx_cv_cc___thread+set}" = set; then
40301   echo $ECHO_N "(cached) $ECHO_C" >&6
40302 else
40303
40304                   cat >conftest.$ac_ext <<_ACEOF
40305 /* confdefs.h.  */
40306 _ACEOF
40307 cat confdefs.h >>conftest.$ac_ext
40308 cat >>conftest.$ac_ext <<_ACEOF
40309 /* end confdefs.h.  */
40310 #include <pthread.h>
40311 int
40312 main ()
40313 {
40314
40315                           static __thread int n = 0;
40316                           static __thread int *p = 0;
40317
40318   ;
40319   return 0;
40320 }
40321 _ACEOF
40322 rm -f conftest.$ac_objext
40323 if { (ac_try="$ac_compile"
40324 case "(($ac_try" in
40325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40326   *) ac_try_echo=$ac_try;;
40327 esac
40328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40329   (eval "$ac_compile") 2>conftest.er1
40330   ac_status=$?
40331   grep -v '^ *+' conftest.er1 >conftest.err
40332   rm -f conftest.er1
40333   cat conftest.err >&5
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); } && {
40336          test -z "$ac_c_werror_flag" ||
40337          test ! -s conftest.err
40338        } && test -s conftest.$ac_objext; then
40339   wx_cv_cc___thread=yes
40340 else
40341   echo "$as_me: failed program was:" >&5
40342 sed 's/^/| /' conftest.$ac_ext >&5
40343
40344         wx_cv_cc___thread=no
40345
40346 fi
40347
40348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40349
40350
40351 fi
40352 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40353 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40354
40355           if test "$wx_cv_cc___thread" = "yes"; then
40356
40357   GXX_VERSION=""
40358
40359
40360
40361   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40362 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40363
40364   if  test "x$GCC" = "xyes" ; then
40365
40366     if  test -z "" ; then
40367
40368       ax_gcc_option_test="int main()
40369 {
40370         return 0;
40371 }"
40372
40373 else
40374
40375       ax_gcc_option_test=""
40376
40377 fi
40378
40379
40380     # Dump the test program to file
40381     cat <<EOF > conftest.c
40382 $ax_gcc_option_test
40383 EOF
40384
40385     # Dump back the file to the log, useful for debugging purposes
40386     { ac_try='cat conftest.c 1>&5'
40387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40388   (eval $ac_try) 2>&5
40389   ac_status=$?
40390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391   (exit $ac_status); }; }
40392
40393     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40395   (eval $ac_try) 2>&5
40396   ac_status=$?
40397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398   (exit $ac_status); }; } ; then
40399
40400                 { echo "$as_me:$LINENO: result: yes" >&5
40401 echo "${ECHO_T}yes" >&6; }
40402
40403     ax_gcc_version_option=yes
40404
40405
40406 else
40407
40408                 { echo "$as_me:$LINENO: result: no" >&5
40409 echo "${ECHO_T}no" >&6; }
40410
40411     ax_gcc_version_option=no
40412
40413
40414 fi
40415
40416
40417 else
40418
40419     { echo "$as_me:$LINENO: result: no gcc available" >&5
40420 echo "${ECHO_T}no gcc available" >&6; }
40421
40422 fi
40423
40424
40425   if test "x$GXX" = "xyes"; then
40426
40427     if test "x$ax_gxx_version_option" != "no"; then
40428
40429       { echo "$as_me:$LINENO: checking gxx version" >&5
40430 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40431 if test "${ax_cv_gxx_version+set}" = set; then
40432   echo $ECHO_N "(cached) $ECHO_C" >&6
40433 else
40434
40435         ax_cv_gxx_version="`$CXX -dumpversion`"
40436         if test "x$ax_cv_gxx_version" = "x"; then
40437
40438           ax_cv_gxx_version=""
40439
40440 fi
40441
40442
40443 fi
40444 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40445 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40446       GXX_VERSION=$ax_cv_gxx_version
40447
40448 fi
40449
40450
40451 fi
40452
40453
40454
40455               if test -n "$ax_cv_gxx_version"; then
40456                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40457 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40458                   case "$ax_cv_gxx_version" in
40459                     1.* | 2.* | 3.* )
40460                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
40461 echo "${ECHO_T}no, it's broken" >&6; }
40462                         wx_cv_cc___thread=no
40463                         ;;
40464                     *)
40465                         { echo "$as_me:$LINENO: result: yes, it works" >&5
40466 echo "${ECHO_T}yes, it works" >&6; }
40467                         ;;
40468                   esac
40469               fi
40470           fi
40471
40472           if test "$wx_cv_cc___thread" = "yes"; then
40473             cat >>confdefs.h <<\_ACEOF
40474 #define HAVE___THREAD_KEYWORD 1
40475 _ACEOF
40476
40477           fi
40478         fi
40479     fi
40480
40481 else
40482     if test "$wxUSE_THREADS" = "yes" ; then
40483       case "${host}" in
40484         x86_64-*-mingw32* )
40485         ;;
40486         *-*-mingw32* )
40487                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40488 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40489 if test "${wx_cv_cflags_mthread+set}" = set; then
40490   echo $ECHO_N "(cached) $ECHO_C" >&6
40491 else
40492
40493                     CFLAGS_OLD="$CFLAGS"
40494                     CFLAGS="-mthreads $CFLAGS"
40495                     cat >conftest.$ac_ext <<_ACEOF
40496 /* confdefs.h.  */
40497 _ACEOF
40498 cat confdefs.h >>conftest.$ac_ext
40499 cat >>conftest.$ac_ext <<_ACEOF
40500 /* end confdefs.h.  */
40501
40502 int
40503 main ()
40504 {
40505
40506   ;
40507   return 0;
40508 }
40509 _ACEOF
40510 rm -f conftest.$ac_objext
40511 if { (ac_try="$ac_compile"
40512 case "(($ac_try" in
40513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40514   *) ac_try_echo=$ac_try;;
40515 esac
40516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40517   (eval "$ac_compile") 2>conftest.er1
40518   ac_status=$?
40519   grep -v '^ *+' conftest.er1 >conftest.err
40520   rm -f conftest.er1
40521   cat conftest.err >&5
40522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523   (exit $ac_status); } && {
40524          test -z "$ac_c_werror_flag" ||
40525          test ! -s conftest.err
40526        } && test -s conftest.$ac_objext; then
40527   wx_cv_cflags_mthread=yes
40528 else
40529   echo "$as_me: failed program was:" >&5
40530 sed 's/^/| /' conftest.$ac_ext >&5
40531
40532         wx_cv_cflags_mthread=no
40533
40534 fi
40535
40536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40537
40538
40539 fi
40540 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40541 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40542
40543             if test "$wx_cv_cflags_mthread" = "yes"; then
40544                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40545                 LDFLAGS="$LDFLAGS -mthreads"
40546             else
40547                                 CFLAGS="$CFLAGS_OLD"
40548             fi
40549         ;;
40550         *-pc-os2*emx )
40551             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40552             LDFLAGS="$LDFLAGS -Zmt"
40553         ;;
40554       esac
40555     fi
40556 fi
40557
40558 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40559 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40560 if test "${ac_cv_func_localtime_r+set}" = set; then
40561   echo $ECHO_N "(cached) $ECHO_C" >&6
40562 else
40563   cat >conftest.$ac_ext <<_ACEOF
40564 /* confdefs.h.  */
40565 _ACEOF
40566 cat confdefs.h >>conftest.$ac_ext
40567 cat >>conftest.$ac_ext <<_ACEOF
40568 /* end confdefs.h.  */
40569 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40571 #define localtime_r innocuous_localtime_r
40572
40573 /* System header to define __stub macros and hopefully few prototypes,
40574     which can conflict with char localtime_r (); below.
40575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40576     <limits.h> exists even on freestanding compilers.  */
40577
40578 #ifdef __STDC__
40579 # include <limits.h>
40580 #else
40581 # include <assert.h>
40582 #endif
40583
40584 #undef localtime_r
40585
40586 /* Override any GCC internal prototype to avoid an error.
40587    Use char because int might match the return type of a GCC
40588    builtin and then its argument prototype would still apply.  */
40589 #ifdef __cplusplus
40590 extern "C"
40591 #endif
40592 char localtime_r ();
40593 /* The GNU C library defines this for functions which it implements
40594     to always fail with ENOSYS.  Some functions are actually named
40595     something starting with __ and the normal name is an alias.  */
40596 #if defined __stub_localtime_r || defined __stub___localtime_r
40597 choke me
40598 #endif
40599
40600 int
40601 main ()
40602 {
40603 return localtime_r ();
40604   ;
40605   return 0;
40606 }
40607 _ACEOF
40608 rm -f conftest.$ac_objext conftest$ac_exeext
40609 if { (ac_try="$ac_link"
40610 case "(($ac_try" in
40611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40612   *) ac_try_echo=$ac_try;;
40613 esac
40614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40615   (eval "$ac_link") 2>conftest.er1
40616   ac_status=$?
40617   grep -v '^ *+' conftest.er1 >conftest.err
40618   rm -f conftest.er1
40619   cat conftest.err >&5
40620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621   (exit $ac_status); } && {
40622          test -z "$ac_c_werror_flag" ||
40623          test ! -s conftest.err
40624        } && test -s conftest$ac_exeext &&
40625        $as_test_x conftest$ac_exeext; then
40626   ac_cv_func_localtime_r=yes
40627 else
40628   echo "$as_me: failed program was:" >&5
40629 sed 's/^/| /' conftest.$ac_ext >&5
40630
40631         ac_cv_func_localtime_r=no
40632 fi
40633
40634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40635       conftest$ac_exeext conftest.$ac_ext
40636 fi
40637 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40638 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40639 if test $ac_cv_func_localtime_r = yes; then
40640    cat >>confdefs.h <<\_ACEOF
40641 #define HAVE_LOCALTIME_R 1
40642 _ACEOF
40643
40644 fi
40645
40646 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40647 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40648 if test "${ac_cv_func_gmtime_r+set}" = set; then
40649   echo $ECHO_N "(cached) $ECHO_C" >&6
40650 else
40651   cat >conftest.$ac_ext <<_ACEOF
40652 /* confdefs.h.  */
40653 _ACEOF
40654 cat confdefs.h >>conftest.$ac_ext
40655 cat >>conftest.$ac_ext <<_ACEOF
40656 /* end confdefs.h.  */
40657 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40659 #define gmtime_r innocuous_gmtime_r
40660
40661 /* System header to define __stub macros and hopefully few prototypes,
40662     which can conflict with char gmtime_r (); below.
40663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40664     <limits.h> exists even on freestanding compilers.  */
40665
40666 #ifdef __STDC__
40667 # include <limits.h>
40668 #else
40669 # include <assert.h>
40670 #endif
40671
40672 #undef gmtime_r
40673
40674 /* Override any GCC internal prototype to avoid an error.
40675    Use char because int might match the return type of a GCC
40676    builtin and then its argument prototype would still apply.  */
40677 #ifdef __cplusplus
40678 extern "C"
40679 #endif
40680 char gmtime_r ();
40681 /* The GNU C library defines this for functions which it implements
40682     to always fail with ENOSYS.  Some functions are actually named
40683     something starting with __ and the normal name is an alias.  */
40684 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40685 choke me
40686 #endif
40687
40688 int
40689 main ()
40690 {
40691 return gmtime_r ();
40692   ;
40693   return 0;
40694 }
40695 _ACEOF
40696 rm -f conftest.$ac_objext conftest$ac_exeext
40697 if { (ac_try="$ac_link"
40698 case "(($ac_try" in
40699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40700   *) ac_try_echo=$ac_try;;
40701 esac
40702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40703   (eval "$ac_link") 2>conftest.er1
40704   ac_status=$?
40705   grep -v '^ *+' conftest.er1 >conftest.err
40706   rm -f conftest.er1
40707   cat conftest.err >&5
40708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709   (exit $ac_status); } && {
40710          test -z "$ac_c_werror_flag" ||
40711          test ! -s conftest.err
40712        } && test -s conftest$ac_exeext &&
40713        $as_test_x conftest$ac_exeext; then
40714   ac_cv_func_gmtime_r=yes
40715 else
40716   echo "$as_me: failed program was:" >&5
40717 sed 's/^/| /' conftest.$ac_ext >&5
40718
40719         ac_cv_func_gmtime_r=no
40720 fi
40721
40722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40723       conftest$ac_exeext conftest.$ac_ext
40724 fi
40725 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40726 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40727 if test $ac_cv_func_gmtime_r = yes; then
40728    cat >>confdefs.h <<\_ACEOF
40729 #define HAVE_GMTIME_R 1
40730 _ACEOF
40731
40732 fi
40733
40734
40735
40736
40737     ac_ext=c
40738 ac_cpp='$CPP $CPPFLAGS'
40739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40742
40743     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40744 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40745
40746     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40747   echo $ECHO_N "(cached) $ECHO_C" >&6
40748 else
40749
40750
40751 ################################################################
40752
40753 ac_cv_func_which_gethostbyname_r=unknown
40754
40755 #
40756 # ONE ARGUMENT (sanity check)
40757 #
40758
40759 # This should fail, as there is no variant of gethostbyname_r() that takes
40760 # a single argument. If it actually compiles, then we can assume that
40761 # netdb.h is not declaring the function, and the compiler is thereby
40762 # assuming an implicit prototype. In which case, we're out of luck.
40763 #
40764 cat >conftest.$ac_ext <<_ACEOF
40765 /* confdefs.h.  */
40766 _ACEOF
40767 cat confdefs.h >>conftest.$ac_ext
40768 cat >>conftest.$ac_ext <<_ACEOF
40769 /* end confdefs.h.  */
40770 #include <netdb.h>
40771 int
40772 main ()
40773 {
40774
40775             char *name = "www.gnu.org";
40776             (void)gethostbyname_r(name) /* ; */
40777
40778   ;
40779   return 0;
40780 }
40781 _ACEOF
40782 rm -f conftest.$ac_objext
40783 if { (ac_try="$ac_compile"
40784 case "(($ac_try" in
40785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40786   *) ac_try_echo=$ac_try;;
40787 esac
40788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40789   (eval "$ac_compile") 2>conftest.er1
40790   ac_status=$?
40791   grep -v '^ *+' conftest.er1 >conftest.err
40792   rm -f conftest.er1
40793   cat conftest.err >&5
40794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795   (exit $ac_status); } && {
40796          test -z "$ac_c_werror_flag" ||
40797          test ! -s conftest.err
40798        } && test -s conftest.$ac_objext; then
40799   ac_cv_func_which_gethostbyname_r=no
40800 else
40801   echo "$as_me: failed program was:" >&5
40802 sed 's/^/| /' conftest.$ac_ext >&5
40803
40804
40805 fi
40806
40807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40808
40809 #
40810 # SIX ARGUMENTS
40811 # (e.g. Linux)
40812 #
40813
40814 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40815
40816 cat >conftest.$ac_ext <<_ACEOF
40817 /* confdefs.h.  */
40818 _ACEOF
40819 cat confdefs.h >>conftest.$ac_ext
40820 cat >>conftest.$ac_ext <<_ACEOF
40821 /* end confdefs.h.  */
40822 #include <netdb.h>
40823 int
40824 main ()
40825 {
40826
40827             char *name = "www.gnu.org";
40828             struct hostent ret, *retp;
40829             char buf[1024];
40830             int buflen = 1024;
40831             int my_h_errno;
40832             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40833
40834   ;
40835   return 0;
40836 }
40837 _ACEOF
40838 rm -f conftest.$ac_objext
40839 if { (ac_try="$ac_compile"
40840 case "(($ac_try" in
40841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40842   *) ac_try_echo=$ac_try;;
40843 esac
40844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40845   (eval "$ac_compile") 2>conftest.er1
40846   ac_status=$?
40847   grep -v '^ *+' conftest.er1 >conftest.err
40848   rm -f conftest.er1
40849   cat conftest.err >&5
40850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851   (exit $ac_status); } && {
40852          test -z "$ac_c_werror_flag" ||
40853          test ! -s conftest.err
40854        } && test -s conftest.$ac_objext; then
40855   ac_cv_func_which_gethostbyname_r=six
40856 else
40857   echo "$as_me: failed program was:" >&5
40858 sed 's/^/| /' conftest.$ac_ext >&5
40859
40860
40861 fi
40862
40863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40864
40865 fi
40866
40867 #
40868 # FIVE ARGUMENTS
40869 # (e.g. Solaris)
40870 #
40871
40872 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40873
40874 cat >conftest.$ac_ext <<_ACEOF
40875 /* confdefs.h.  */
40876 _ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h.  */
40880 #include <netdb.h>
40881 int
40882 main ()
40883 {
40884
40885             char *name = "www.gnu.org";
40886             struct hostent ret;
40887             char buf[1024];
40888             int buflen = 1024;
40889             int my_h_errno;
40890             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40891
40892   ;
40893   return 0;
40894 }
40895 _ACEOF
40896 rm -f conftest.$ac_objext
40897 if { (ac_try="$ac_compile"
40898 case "(($ac_try" in
40899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900   *) ac_try_echo=$ac_try;;
40901 esac
40902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903   (eval "$ac_compile") 2>conftest.er1
40904   ac_status=$?
40905   grep -v '^ *+' conftest.er1 >conftest.err
40906   rm -f conftest.er1
40907   cat conftest.err >&5
40908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909   (exit $ac_status); } && {
40910          test -z "$ac_c_werror_flag" ||
40911          test ! -s conftest.err
40912        } && test -s conftest.$ac_objext; then
40913   ac_cv_func_which_gethostbyname_r=five
40914 else
40915   echo "$as_me: failed program was:" >&5
40916 sed 's/^/| /' conftest.$ac_ext >&5
40917
40918
40919 fi
40920
40921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40922
40923 fi
40924
40925 #
40926 # THREE ARGUMENTS
40927 # (e.g. AIX, HP-UX, Tru64)
40928 #
40929
40930 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40931
40932 cat >conftest.$ac_ext <<_ACEOF
40933 /* confdefs.h.  */
40934 _ACEOF
40935 cat confdefs.h >>conftest.$ac_ext
40936 cat >>conftest.$ac_ext <<_ACEOF
40937 /* end confdefs.h.  */
40938 #include <netdb.h>
40939 int
40940 main ()
40941 {
40942
40943             char *name = "www.gnu.org";
40944             struct hostent ret;
40945             struct hostent_data data;
40946             (void)gethostbyname_r(name, &ret, &data) /* ; */
40947
40948   ;
40949   return 0;
40950 }
40951 _ACEOF
40952 rm -f conftest.$ac_objext
40953 if { (ac_try="$ac_compile"
40954 case "(($ac_try" in
40955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40956   *) ac_try_echo=$ac_try;;
40957 esac
40958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40959   (eval "$ac_compile") 2>conftest.er1
40960   ac_status=$?
40961   grep -v '^ *+' conftest.er1 >conftest.err
40962   rm -f conftest.er1
40963   cat conftest.err >&5
40964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965   (exit $ac_status); } && {
40966          test -z "$ac_c_werror_flag" ||
40967          test ! -s conftest.err
40968        } && test -s conftest.$ac_objext; then
40969   ac_cv_func_which_gethostbyname_r=three
40970 else
40971   echo "$as_me: failed program was:" >&5
40972 sed 's/^/| /' conftest.$ac_ext >&5
40973
40974
40975 fi
40976
40977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40978
40979 fi
40980
40981 ################################################################
40982
40983
40984 fi
40985
40986 case "$ac_cv_func_which_gethostbyname_r" in
40987     three)
40988     { echo "$as_me:$LINENO: result: three" >&5
40989 echo "${ECHO_T}three" >&6; }
40990     cat >>confdefs.h <<\_ACEOF
40991 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40992 _ACEOF
40993
40994     ;;
40995
40996     five)
40997     { echo "$as_me:$LINENO: result: five" >&5
40998 echo "${ECHO_T}five" >&6; }
40999     cat >>confdefs.h <<\_ACEOF
41000 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41001 _ACEOF
41002
41003     ;;
41004
41005     six)
41006     { echo "$as_me:$LINENO: result: six" >&5
41007 echo "${ECHO_T}six" >&6; }
41008     cat >>confdefs.h <<\_ACEOF
41009 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41010 _ACEOF
41011
41012     ;;
41013
41014     no)
41015     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41016 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
41017     ;;
41018
41019     unknown)
41020     { echo "$as_me:$LINENO: result: can't tell" >&5
41021 echo "${ECHO_T}can't tell" >&6; }
41022     ;;
41023
41024     *)
41025     { { echo "$as_me:$LINENO: error: internal error" >&5
41026 echo "$as_me: error: internal error" >&2;}
41027    { (exit 1); exit 1; }; }
41028     ;;
41029 esac
41030
41031 ac_ext=c
41032 ac_cpp='$CPP $CPPFLAGS'
41033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41036
41037
41038
41039       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41040               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41041           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41042 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41043 if test "${ac_cv_func_gethostbyname+set}" = set; then
41044   echo $ECHO_N "(cached) $ECHO_C" >&6
41045 else
41046   cat >conftest.$ac_ext <<_ACEOF
41047 /* confdefs.h.  */
41048 _ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h.  */
41052 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41054 #define gethostbyname innocuous_gethostbyname
41055
41056 /* System header to define __stub macros and hopefully few prototypes,
41057     which can conflict with char gethostbyname (); below.
41058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41059     <limits.h> exists even on freestanding compilers.  */
41060
41061 #ifdef __STDC__
41062 # include <limits.h>
41063 #else
41064 # include <assert.h>
41065 #endif
41066
41067 #undef gethostbyname
41068
41069 /* Override any GCC internal prototype to avoid an error.
41070    Use char because int might match the return type of a GCC
41071    builtin and then its argument prototype would still apply.  */
41072 #ifdef __cplusplus
41073 extern "C"
41074 #endif
41075 char gethostbyname ();
41076 /* The GNU C library defines this for functions which it implements
41077     to always fail with ENOSYS.  Some functions are actually named
41078     something starting with __ and the normal name is an alias.  */
41079 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41080 choke me
41081 #endif
41082
41083 int
41084 main ()
41085 {
41086 return gethostbyname ();
41087   ;
41088   return 0;
41089 }
41090 _ACEOF
41091 rm -f conftest.$ac_objext conftest$ac_exeext
41092 if { (ac_try="$ac_link"
41093 case "(($ac_try" in
41094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41095   *) ac_try_echo=$ac_try;;
41096 esac
41097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41098   (eval "$ac_link") 2>conftest.er1
41099   ac_status=$?
41100   grep -v '^ *+' conftest.er1 >conftest.err
41101   rm -f conftest.er1
41102   cat conftest.err >&5
41103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41104   (exit $ac_status); } && {
41105          test -z "$ac_c_werror_flag" ||
41106          test ! -s conftest.err
41107        } && test -s conftest$ac_exeext &&
41108        $as_test_x conftest$ac_exeext; then
41109   ac_cv_func_gethostbyname=yes
41110 else
41111   echo "$as_me: failed program was:" >&5
41112 sed 's/^/| /' conftest.$ac_ext >&5
41113
41114         ac_cv_func_gethostbyname=no
41115 fi
41116
41117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41118       conftest$ac_exeext conftest.$ac_ext
41119 fi
41120 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41121 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41122 if test $ac_cv_func_gethostbyname = yes; then
41123    cat >>confdefs.h <<\_ACEOF
41124 #define HAVE_GETHOSTBYNAME 1
41125 _ACEOF
41126
41127 fi
41128
41129       fi
41130
41131 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41132 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41133 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41134   echo $ECHO_N "(cached) $ECHO_C" >&6
41135 else
41136
41137                 ac_ext=cpp
41138 ac_cpp='$CXXCPP $CPPFLAGS'
41139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41142
41143
41144         cat >conftest.$ac_ext <<_ACEOF
41145 /* confdefs.h.  */
41146 _ACEOF
41147 cat confdefs.h >>conftest.$ac_ext
41148 cat >>conftest.$ac_ext <<_ACEOF
41149 /* end confdefs.h.  */
41150 #include <netdb.h>
41151 int
41152 main ()
41153 {
41154
41155                 char *name;
41156                 char *proto;
41157                 struct servent *se, *res;
41158                 char buffer[2048];
41159                 int buflen = 2048;
41160                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41161
41162   ;
41163   return 0;
41164 }
41165 _ACEOF
41166 rm -f conftest.$ac_objext
41167 if { (ac_try="$ac_compile"
41168 case "(($ac_try" in
41169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41170   *) ac_try_echo=$ac_try;;
41171 esac
41172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41173   (eval "$ac_compile") 2>conftest.er1
41174   ac_status=$?
41175   grep -v '^ *+' conftest.er1 >conftest.err
41176   rm -f conftest.er1
41177   cat conftest.err >&5
41178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41179   (exit $ac_status); } && {
41180          test -z "$ac_cxx_werror_flag" ||
41181          test ! -s conftest.err
41182        } && test -s conftest.$ac_objext; then
41183   ac_cv_func_which_getservbyname_r=six
41184 else
41185   echo "$as_me: failed program was:" >&5
41186 sed 's/^/| /' conftest.$ac_ext >&5
41187
41188
41189                 cat >conftest.$ac_ext <<_ACEOF
41190 /* confdefs.h.  */
41191 _ACEOF
41192 cat confdefs.h >>conftest.$ac_ext
41193 cat >>conftest.$ac_ext <<_ACEOF
41194 /* end confdefs.h.  */
41195 #include <netdb.h>
41196 int
41197 main ()
41198 {
41199
41200                         char *name;
41201                         char *proto;
41202                         struct servent *se;
41203                         char buffer[2048];
41204                         int buflen = 2048;
41205                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41206
41207   ;
41208   return 0;
41209 }
41210 _ACEOF
41211 rm -f conftest.$ac_objext
41212 if { (ac_try="$ac_compile"
41213 case "(($ac_try" in
41214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215   *) ac_try_echo=$ac_try;;
41216 esac
41217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41218   (eval "$ac_compile") 2>conftest.er1
41219   ac_status=$?
41220   grep -v '^ *+' conftest.er1 >conftest.err
41221   rm -f conftest.er1
41222   cat conftest.err >&5
41223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41224   (exit $ac_status); } && {
41225          test -z "$ac_cxx_werror_flag" ||
41226          test ! -s conftest.err
41227        } && test -s conftest.$ac_objext; then
41228   ac_cv_func_which_getservbyname_r=five
41229 else
41230   echo "$as_me: failed program was:" >&5
41231 sed 's/^/| /' conftest.$ac_ext >&5
41232
41233
41234                         cat >conftest.$ac_ext <<_ACEOF
41235 /* confdefs.h.  */
41236 _ACEOF
41237 cat confdefs.h >>conftest.$ac_ext
41238 cat >>conftest.$ac_ext <<_ACEOF
41239 /* end confdefs.h.  */
41240 #include <netdb.h>
41241 int
41242 main ()
41243 {
41244
41245                                 char *name;
41246                                 char *proto;
41247                                 struct servent *se;
41248                                 struct servent_data data;
41249                                 (void) getservbyname_r(name, proto, se, &data);
41250
41251   ;
41252   return 0;
41253 }
41254 _ACEOF
41255 rm -f conftest.$ac_objext
41256 if { (ac_try="$ac_compile"
41257 case "(($ac_try" in
41258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259   *) ac_try_echo=$ac_try;;
41260 esac
41261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41262   (eval "$ac_compile") 2>conftest.er1
41263   ac_status=$?
41264   grep -v '^ *+' conftest.er1 >conftest.err
41265   rm -f conftest.er1
41266   cat conftest.err >&5
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); } && {
41269          test -z "$ac_cxx_werror_flag" ||
41270          test ! -s conftest.err
41271        } && test -s conftest.$ac_objext; then
41272   ac_cv_func_which_getservbyname_r=four
41273 else
41274   echo "$as_me: failed program was:" >&5
41275 sed 's/^/| /' conftest.$ac_ext >&5
41276
41277         ac_cv_func_which_getservbyname_r=no
41278
41279 fi
41280
41281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41282
41283
41284 fi
41285
41286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41287
41288
41289 fi
41290
41291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41292         ac_ext=c
41293 ac_cpp='$CPP $CPPFLAGS'
41294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41297
41298
41299
41300 fi
41301 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41302 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41303
41304 if test $ac_cv_func_which_getservbyname_r = six; then
41305   cat >>confdefs.h <<\_ACEOF
41306 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41307 _ACEOF
41308
41309 elif test $ac_cv_func_which_getservbyname_r = five; then
41310   cat >>confdefs.h <<\_ACEOF
41311 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41312 _ACEOF
41313
41314 elif test $ac_cv_func_which_getservbyname_r = four; then
41315   cat >>confdefs.h <<\_ACEOF
41316 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41317 _ACEOF
41318
41319 fi
41320
41321
41322       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41323               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41324
41325 for ac_func in getservbyname
41326 do
41327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41331   echo $ECHO_N "(cached) $ECHO_C" >&6
41332 else
41333   cat >conftest.$ac_ext <<_ACEOF
41334 /* confdefs.h.  */
41335 _ACEOF
41336 cat confdefs.h >>conftest.$ac_ext
41337 cat >>conftest.$ac_ext <<_ACEOF
41338 /* end confdefs.h.  */
41339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41341 #define $ac_func innocuous_$ac_func
41342
41343 /* System header to define __stub macros and hopefully few prototypes,
41344     which can conflict with char $ac_func (); below.
41345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41346     <limits.h> exists even on freestanding compilers.  */
41347
41348 #ifdef __STDC__
41349 # include <limits.h>
41350 #else
41351 # include <assert.h>
41352 #endif
41353
41354 #undef $ac_func
41355
41356 /* Override any GCC internal prototype to avoid an error.
41357    Use char because int might match the return type of a GCC
41358    builtin and then its argument prototype would still apply.  */
41359 #ifdef __cplusplus
41360 extern "C"
41361 #endif
41362 char $ac_func ();
41363 /* The GNU C library defines this for functions which it implements
41364     to always fail with ENOSYS.  Some functions are actually named
41365     something starting with __ and the normal name is an alias.  */
41366 #if defined __stub_$ac_func || defined __stub___$ac_func
41367 choke me
41368 #endif
41369
41370 int
41371 main ()
41372 {
41373 return $ac_func ();
41374   ;
41375   return 0;
41376 }
41377 _ACEOF
41378 rm -f conftest.$ac_objext conftest$ac_exeext
41379 if { (ac_try="$ac_link"
41380 case "(($ac_try" in
41381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41382   *) ac_try_echo=$ac_try;;
41383 esac
41384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41385   (eval "$ac_link") 2>conftest.er1
41386   ac_status=$?
41387   grep -v '^ *+' conftest.er1 >conftest.err
41388   rm -f conftest.er1
41389   cat conftest.err >&5
41390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391   (exit $ac_status); } && {
41392          test -z "$ac_c_werror_flag" ||
41393          test ! -s conftest.err
41394        } && test -s conftest$ac_exeext &&
41395        $as_test_x conftest$ac_exeext; then
41396   eval "$as_ac_var=yes"
41397 else
41398   echo "$as_me: failed program was:" >&5
41399 sed 's/^/| /' conftest.$ac_ext >&5
41400
41401         eval "$as_ac_var=no"
41402 fi
41403
41404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41405       conftest$ac_exeext conftest.$ac_ext
41406 fi
41407 ac_res=`eval echo '${'$as_ac_var'}'`
41408                { echo "$as_me:$LINENO: result: $ac_res" >&5
41409 echo "${ECHO_T}$ac_res" >&6; }
41410 if test `eval echo '${'$as_ac_var'}'` = yes; then
41411   cat >>confdefs.h <<_ACEOF
41412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41413 _ACEOF
41414   cat >>confdefs.h <<\_ACEOF
41415 #define HAVE_GETSERVBYNAME 1
41416 _ACEOF
41417
41418 fi
41419 done
41420
41421       fi
41422
41423 if test "$wxUSE_THREADS" = "yes"; then
41424   cat >>confdefs.h <<\_ACEOF
41425 #define wxUSE_THREADS 1
41426 _ACEOF
41427
41428
41429   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41430 else
41431       if test "$wx_cv_func_strtok_r" = "yes"; then
41432     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41433 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41434     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41435         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41436         { echo "$as_me:$LINENO: result: yes" >&5
41437 echo "${ECHO_T}yes" >&6; }
41438     else
41439         { echo "$as_me:$LINENO: result: no" >&5
41440 echo "${ECHO_T}no" >&6; }
41441     fi
41442   fi
41443 fi
41444
41445 if test "$WXGTK2" = 1 ; then
41446   cat >>confdefs.h <<_ACEOF
41447 #define __WXGTK20__ $WXGTK2
41448 _ACEOF
41449
41450   WXGTK12=1
41451 fi
41452
41453 if test "$WXGTK12" = 1 ; then
41454   cat >>confdefs.h <<_ACEOF
41455 #define __WXGTK12__ $WXGTK12
41456 _ACEOF
41457
41458 fi
41459
41460 if test "$WXGTK127" = 1 ; then
41461   cat >>confdefs.h <<_ACEOF
41462 #define __WXGTK127__ $WXGTK127
41463 _ACEOF
41464
41465 fi
41466
41467 if test "$WXGPE" = 1 ; then
41468   cat >>confdefs.h <<_ACEOF
41469 #define __WXGPE__ $WXGPE
41470 _ACEOF
41471
41472 fi
41473
41474 DEBUG_CFLAGS=
41475 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41476                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41477 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41478 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41479     DEBUG_CFLAGS="-g"
41480 fi
41481
41482 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41483     wxUSE_DEBUG_INFO=yes
41484     if test "$GCC" = yes; then
41485         DEBUG_CFLAGS="-ggdb"
41486     fi
41487 fi
41488
41489 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41490     cat >>confdefs.h <<\_ACEOF
41491 #define WXDEBUG 1
41492 _ACEOF
41493
41494     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41495 else
41496     if test "$wxUSE_GTK" = 1 ; then
41497         if test "x$wxGTK_VERSION" = "x1" ; then
41498             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41499         fi
41500     fi
41501 fi
41502
41503 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41504     cat >>confdefs.h <<\_ACEOF
41505 #define wxUSE_MEMORY_TRACING 1
41506 _ACEOF
41507
41508     cat >>confdefs.h <<\_ACEOF
41509 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41510 _ACEOF
41511
41512     cat >>confdefs.h <<\_ACEOF
41513 #define wxUSE_DEBUG_NEW_ALWAYS 1
41514 _ACEOF
41515
41516     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41517 fi
41518
41519 if test "$wxUSE_DMALLOC" = "yes" ; then
41520     DMALLOC_LIBS="-ldmallocthcxx"
41521 fi
41522
41523 PROFILE_FLAGS=
41524 if test "$wxUSE_PROFILE" = "yes" ; then
41525     PROFILE_FLAGS=" -pg"
41526 fi
41527
41528 if test "$GCC" = "yes" ; then
41529     if test "$wxUSE_NO_RTTI" = "yes" ; then
41530         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41531     fi
41532     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41533         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41534     fi
41535     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41536         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41537     fi
41538
41539                                                 case "${host}" in
41540       powerpc*-*-aix* )
41541         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41542         ;;
41543       *-hppa* )
41544         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41545         ;;
41546     esac
41547 fi
41548
41549 OPTIMISE_CFLAGS=
41550 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41551                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41552 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41553 else
41554     if test "$wxUSE_OPTIMISE" = "no" ; then
41555         if test "$GCC" = yes ; then
41556                                     OPTIMISE_CFLAGS="-O0"
41557         fi
41558     else
41559         if test "$GCC" = yes ; then
41560             case "${host}" in
41561                 *-pc-os2_emx | *-pc-os2-emx )
41562                                                             OPTIMISE_CFLAGS="-O2"
41563                 ;;
41564                 *)
41565                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41566                 ;;
41567             esac
41568         else
41569             OPTIMISE_CFLAGS="-O"
41570         fi
41571     fi
41572 fi
41573
41574
41575 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41576     cat >>confdefs.h <<\_ACEOF
41577 #define WXWIN_COMPATIBILITY_2_6 1
41578 _ACEOF
41579
41580
41581     WXWIN_COMPATIBILITY_2_8="yes"
41582 fi
41583
41584 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41585     cat >>confdefs.h <<\_ACEOF
41586 #define WXWIN_COMPATIBILITY_2_8 1
41587 _ACEOF
41588
41589 fi
41590
41591
41592 if test "$wxUSE_GUI" = "yes"; then
41593     cat >>confdefs.h <<\_ACEOF
41594 #define wxUSE_GUI 1
41595 _ACEOF
41596
41597
41598                                             fi
41599
41600
41601 if test "$wxUSE_UNIX" = "yes"; then
41602   cat >>confdefs.h <<\_ACEOF
41603 #define wxUSE_UNIX 1
41604 _ACEOF
41605
41606 fi
41607
41608
41609 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41610
41611     HAVE_DL_FUNCS=0
41612     HAVE_SHL_FUNCS=0
41613     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41614         if test "$USE_DOS" = 1; then
41615             HAVE_DL_FUNCS=0
41616         else
41617
41618 for ac_func in dlopen
41619 do
41620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41624   echo $ECHO_N "(cached) $ECHO_C" >&6
41625 else
41626   cat >conftest.$ac_ext <<_ACEOF
41627 /* confdefs.h.  */
41628 _ACEOF
41629 cat confdefs.h >>conftest.$ac_ext
41630 cat >>conftest.$ac_ext <<_ACEOF
41631 /* end confdefs.h.  */
41632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41634 #define $ac_func innocuous_$ac_func
41635
41636 /* System header to define __stub macros and hopefully few prototypes,
41637     which can conflict with char $ac_func (); below.
41638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41639     <limits.h> exists even on freestanding compilers.  */
41640
41641 #ifdef __STDC__
41642 # include <limits.h>
41643 #else
41644 # include <assert.h>
41645 #endif
41646
41647 #undef $ac_func
41648
41649 /* Override any GCC internal prototype to avoid an error.
41650    Use char because int might match the return type of a GCC
41651    builtin and then its argument prototype would still apply.  */
41652 #ifdef __cplusplus
41653 extern "C"
41654 #endif
41655 char $ac_func ();
41656 /* The GNU C library defines this for functions which it implements
41657     to always fail with ENOSYS.  Some functions are actually named
41658     something starting with __ and the normal name is an alias.  */
41659 #if defined __stub_$ac_func || defined __stub___$ac_func
41660 choke me
41661 #endif
41662
41663 int
41664 main ()
41665 {
41666 return $ac_func ();
41667   ;
41668   return 0;
41669 }
41670 _ACEOF
41671 rm -f conftest.$ac_objext conftest$ac_exeext
41672 if { (ac_try="$ac_link"
41673 case "(($ac_try" in
41674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41675   *) ac_try_echo=$ac_try;;
41676 esac
41677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41678   (eval "$ac_link") 2>conftest.er1
41679   ac_status=$?
41680   grep -v '^ *+' conftest.er1 >conftest.err
41681   rm -f conftest.er1
41682   cat conftest.err >&5
41683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684   (exit $ac_status); } && {
41685          test -z "$ac_c_werror_flag" ||
41686          test ! -s conftest.err
41687        } && test -s conftest$ac_exeext &&
41688        $as_test_x conftest$ac_exeext; then
41689   eval "$as_ac_var=yes"
41690 else
41691   echo "$as_me: failed program was:" >&5
41692 sed 's/^/| /' conftest.$ac_ext >&5
41693
41694         eval "$as_ac_var=no"
41695 fi
41696
41697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41698       conftest$ac_exeext conftest.$ac_ext
41699 fi
41700 ac_res=`eval echo '${'$as_ac_var'}'`
41701                { echo "$as_me:$LINENO: result: $ac_res" >&5
41702 echo "${ECHO_T}$ac_res" >&6; }
41703 if test `eval echo '${'$as_ac_var'}'` = yes; then
41704   cat >>confdefs.h <<_ACEOF
41705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41706 _ACEOF
41707
41708                 cat >>confdefs.h <<\_ACEOF
41709 #define HAVE_DLOPEN 1
41710 _ACEOF
41711
41712                 HAVE_DL_FUNCS=1
41713
41714 else
41715
41716                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41719   echo $ECHO_N "(cached) $ECHO_C" >&6
41720 else
41721   ac_check_lib_save_LIBS=$LIBS
41722 LIBS="-ldl  $LIBS"
41723 cat >conftest.$ac_ext <<_ACEOF
41724 /* confdefs.h.  */
41725 _ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h.  */
41729
41730 /* Override any GCC internal prototype to avoid an error.
41731    Use char because int might match the return type of a GCC
41732    builtin and then its argument prototype would still apply.  */
41733 #ifdef __cplusplus
41734 extern "C"
41735 #endif
41736 char dlopen ();
41737 int
41738 main ()
41739 {
41740 return dlopen ();
41741   ;
41742   return 0;
41743 }
41744 _ACEOF
41745 rm -f conftest.$ac_objext conftest$ac_exeext
41746 if { (ac_try="$ac_link"
41747 case "(($ac_try" in
41748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41749   *) ac_try_echo=$ac_try;;
41750 esac
41751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41752   (eval "$ac_link") 2>conftest.er1
41753   ac_status=$?
41754   grep -v '^ *+' conftest.er1 >conftest.err
41755   rm -f conftest.er1
41756   cat conftest.err >&5
41757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41758   (exit $ac_status); } && {
41759          test -z "$ac_c_werror_flag" ||
41760          test ! -s conftest.err
41761        } && test -s conftest$ac_exeext &&
41762        $as_test_x conftest$ac_exeext; then
41763   ac_cv_lib_dl_dlopen=yes
41764 else
41765   echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41767
41768         ac_cv_lib_dl_dlopen=no
41769 fi
41770
41771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41772       conftest$ac_exeext conftest.$ac_ext
41773 LIBS=$ac_check_lib_save_LIBS
41774 fi
41775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41777 if test $ac_cv_lib_dl_dlopen = yes; then
41778
41779                                 cat >>confdefs.h <<\_ACEOF
41780 #define HAVE_DLOPEN 1
41781 _ACEOF
41782
41783                                 HAVE_DL_FUNCS=1
41784                                 DL_LINK=" -ldl$DL_LINK"
41785
41786 else
41787
41788
41789 for ac_func in shl_load
41790 do
41791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41795   echo $ECHO_N "(cached) $ECHO_C" >&6
41796 else
41797   cat >conftest.$ac_ext <<_ACEOF
41798 /* confdefs.h.  */
41799 _ACEOF
41800 cat confdefs.h >>conftest.$ac_ext
41801 cat >>conftest.$ac_ext <<_ACEOF
41802 /* end confdefs.h.  */
41803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41805 #define $ac_func innocuous_$ac_func
41806
41807 /* System header to define __stub macros and hopefully few prototypes,
41808     which can conflict with char $ac_func (); below.
41809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41810     <limits.h> exists even on freestanding compilers.  */
41811
41812 #ifdef __STDC__
41813 # include <limits.h>
41814 #else
41815 # include <assert.h>
41816 #endif
41817
41818 #undef $ac_func
41819
41820 /* Override any GCC internal prototype to avoid an error.
41821    Use char because int might match the return type of a GCC
41822    builtin and then its argument prototype would still apply.  */
41823 #ifdef __cplusplus
41824 extern "C"
41825 #endif
41826 char $ac_func ();
41827 /* The GNU C library defines this for functions which it implements
41828     to always fail with ENOSYS.  Some functions are actually named
41829     something starting with __ and the normal name is an alias.  */
41830 #if defined __stub_$ac_func || defined __stub___$ac_func
41831 choke me
41832 #endif
41833
41834 int
41835 main ()
41836 {
41837 return $ac_func ();
41838   ;
41839   return 0;
41840 }
41841 _ACEOF
41842 rm -f conftest.$ac_objext conftest$ac_exeext
41843 if { (ac_try="$ac_link"
41844 case "(($ac_try" in
41845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41846   *) ac_try_echo=$ac_try;;
41847 esac
41848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41849   (eval "$ac_link") 2>conftest.er1
41850   ac_status=$?
41851   grep -v '^ *+' conftest.er1 >conftest.err
41852   rm -f conftest.er1
41853   cat conftest.err >&5
41854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855   (exit $ac_status); } && {
41856          test -z "$ac_c_werror_flag" ||
41857          test ! -s conftest.err
41858        } && test -s conftest$ac_exeext &&
41859        $as_test_x conftest$ac_exeext; then
41860   eval "$as_ac_var=yes"
41861 else
41862   echo "$as_me: failed program was:" >&5
41863 sed 's/^/| /' conftest.$ac_ext >&5
41864
41865         eval "$as_ac_var=no"
41866 fi
41867
41868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41869       conftest$ac_exeext conftest.$ac_ext
41870 fi
41871 ac_res=`eval echo '${'$as_ac_var'}'`
41872                { echo "$as_me:$LINENO: result: $ac_res" >&5
41873 echo "${ECHO_T}$ac_res" >&6; }
41874 if test `eval echo '${'$as_ac_var'}'` = yes; then
41875   cat >>confdefs.h <<_ACEOF
41876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41877 _ACEOF
41878
41879                                                 cat >>confdefs.h <<\_ACEOF
41880 #define HAVE_SHL_LOAD 1
41881 _ACEOF
41882
41883                                                 HAVE_SHL_FUNCS=1
41884
41885 else
41886
41887                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41888 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41889 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41890   echo $ECHO_N "(cached) $ECHO_C" >&6
41891 else
41892   ac_check_lib_save_LIBS=$LIBS
41893 LIBS="-lshl_load  $LIBS"
41894 cat >conftest.$ac_ext <<_ACEOF
41895 /* confdefs.h.  */
41896 _ACEOF
41897 cat confdefs.h >>conftest.$ac_ext
41898 cat >>conftest.$ac_ext <<_ACEOF
41899 /* end confdefs.h.  */
41900
41901 /* Override any GCC internal prototype to avoid an error.
41902    Use char because int might match the return type of a GCC
41903    builtin and then its argument prototype would still apply.  */
41904 #ifdef __cplusplus
41905 extern "C"
41906 #endif
41907 char dld ();
41908 int
41909 main ()
41910 {
41911 return dld ();
41912   ;
41913   return 0;
41914 }
41915 _ACEOF
41916 rm -f conftest.$ac_objext conftest$ac_exeext
41917 if { (ac_try="$ac_link"
41918 case "(($ac_try" in
41919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41920   *) ac_try_echo=$ac_try;;
41921 esac
41922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41923   (eval "$ac_link") 2>conftest.er1
41924   ac_status=$?
41925   grep -v '^ *+' conftest.er1 >conftest.err
41926   rm -f conftest.er1
41927   cat conftest.err >&5
41928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929   (exit $ac_status); } && {
41930          test -z "$ac_c_werror_flag" ||
41931          test ! -s conftest.err
41932        } && test -s conftest$ac_exeext &&
41933        $as_test_x conftest$ac_exeext; then
41934   ac_cv_lib_shl_load_dld=yes
41935 else
41936   echo "$as_me: failed program was:" >&5
41937 sed 's/^/| /' conftest.$ac_ext >&5
41938
41939         ac_cv_lib_shl_load_dld=no
41940 fi
41941
41942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41943       conftest$ac_exeext conftest.$ac_ext
41944 LIBS=$ac_check_lib_save_LIBS
41945 fi
41946 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41947 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41948 if test $ac_cv_lib_shl_load_dld = yes; then
41949
41950                                                                 HAVE_SHL_FUNCS=1
41951                                                                 DL_LINK=" -ldld$DL_LINK"
41952
41953 fi
41954
41955
41956 fi
41957 done
41958
41959
41960 fi
41961
41962
41963 fi
41964 done
41965
41966
41967                         if test "$HAVE_DL_FUNCS" = 1; then
41968
41969 for ac_func in dlerror
41970 do
41971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41975   echo $ECHO_N "(cached) $ECHO_C" >&6
41976 else
41977   cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h.  */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h.  */
41983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41985 #define $ac_func innocuous_$ac_func
41986
41987 /* System header to define __stub macros and hopefully few prototypes,
41988     which can conflict with char $ac_func (); below.
41989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41990     <limits.h> exists even on freestanding compilers.  */
41991
41992 #ifdef __STDC__
41993 # include <limits.h>
41994 #else
41995 # include <assert.h>
41996 #endif
41997
41998 #undef $ac_func
41999
42000 /* Override any GCC internal prototype to avoid an error.
42001    Use char because int might match the return type of a GCC
42002    builtin and then its argument prototype would still apply.  */
42003 #ifdef __cplusplus
42004 extern "C"
42005 #endif
42006 char $ac_func ();
42007 /* The GNU C library defines this for functions which it implements
42008     to always fail with ENOSYS.  Some functions are actually named
42009     something starting with __ and the normal name is an alias.  */
42010 #if defined __stub_$ac_func || defined __stub___$ac_func
42011 choke me
42012 #endif
42013
42014 int
42015 main ()
42016 {
42017 return $ac_func ();
42018   ;
42019   return 0;
42020 }
42021 _ACEOF
42022 rm -f conftest.$ac_objext conftest$ac_exeext
42023 if { (ac_try="$ac_link"
42024 case "(($ac_try" in
42025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42026   *) ac_try_echo=$ac_try;;
42027 esac
42028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42029   (eval "$ac_link") 2>conftest.er1
42030   ac_status=$?
42031   grep -v '^ *+' conftest.er1 >conftest.err
42032   rm -f conftest.er1
42033   cat conftest.err >&5
42034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42035   (exit $ac_status); } && {
42036          test -z "$ac_c_werror_flag" ||
42037          test ! -s conftest.err
42038        } && test -s conftest$ac_exeext &&
42039        $as_test_x conftest$ac_exeext; then
42040   eval "$as_ac_var=yes"
42041 else
42042   echo "$as_me: failed program was:" >&5
42043 sed 's/^/| /' conftest.$ac_ext >&5
42044
42045         eval "$as_ac_var=no"
42046 fi
42047
42048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42049       conftest$ac_exeext conftest.$ac_ext
42050 fi
42051 ac_res=`eval echo '${'$as_ac_var'}'`
42052                { echo "$as_me:$LINENO: result: $ac_res" >&5
42053 echo "${ECHO_T}$ac_res" >&6; }
42054 if test `eval echo '${'$as_ac_var'}'` = yes; then
42055   cat >>confdefs.h <<_ACEOF
42056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42057 _ACEOF
42058  cat >>confdefs.h <<\_ACEOF
42059 #define HAVE_DLERROR 1
42060 _ACEOF
42061
42062 else
42063
42064                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42065 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42066 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42067   echo $ECHO_N "(cached) $ECHO_C" >&6
42068 else
42069   ac_check_lib_save_LIBS=$LIBS
42070 LIBS="-ldl  $LIBS"
42071 cat >conftest.$ac_ext <<_ACEOF
42072 /* confdefs.h.  */
42073 _ACEOF
42074 cat confdefs.h >>conftest.$ac_ext
42075 cat >>conftest.$ac_ext <<_ACEOF
42076 /* end confdefs.h.  */
42077
42078 /* Override any GCC internal prototype to avoid an error.
42079    Use char because int might match the return type of a GCC
42080    builtin and then its argument prototype would still apply.  */
42081 #ifdef __cplusplus
42082 extern "C"
42083 #endif
42084 char dlerror ();
42085 int
42086 main ()
42087 {
42088 return dlerror ();
42089   ;
42090   return 0;
42091 }
42092 _ACEOF
42093 rm -f conftest.$ac_objext conftest$ac_exeext
42094 if { (ac_try="$ac_link"
42095 case "(($ac_try" in
42096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42097   *) ac_try_echo=$ac_try;;
42098 esac
42099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42100   (eval "$ac_link") 2>conftest.er1
42101   ac_status=$?
42102   grep -v '^ *+' conftest.er1 >conftest.err
42103   rm -f conftest.er1
42104   cat conftest.err >&5
42105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106   (exit $ac_status); } && {
42107          test -z "$ac_c_werror_flag" ||
42108          test ! -s conftest.err
42109        } && test -s conftest$ac_exeext &&
42110        $as_test_x conftest$ac_exeext; then
42111   ac_cv_lib_dl_dlerror=yes
42112 else
42113   echo "$as_me: failed program was:" >&5
42114 sed 's/^/| /' conftest.$ac_ext >&5
42115
42116         ac_cv_lib_dl_dlerror=no
42117 fi
42118
42119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42120       conftest$ac_exeext conftest.$ac_ext
42121 LIBS=$ac_check_lib_save_LIBS
42122 fi
42123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42124 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42125 if test $ac_cv_lib_dl_dlerror = yes; then
42126   cat >>confdefs.h <<\_ACEOF
42127 #define HAVE_DLERROR 1
42128 _ACEOF
42129
42130 fi
42131
42132
42133
42134 fi
42135 done
42136
42137             fi
42138         fi
42139
42140                 if test "$USE_DARWIN" = 1; then
42141                         HAVE_DL_FUNCS=1
42142         fi
42143
42144         if test "$HAVE_DL_FUNCS" = 0; then
42145             if test "$HAVE_SHL_FUNCS" = 0; then
42146               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42147                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42148 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42149                   wxUSE_DYNAMIC_LOADER=no
42150                   wxUSE_DYNLIB_CLASS=no
42151               else
42152                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42153 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42154               fi
42155             fi
42156         fi
42157     fi
42158 fi
42159
42160 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42161     cat >>confdefs.h <<\_ACEOF
42162 #define wxUSE_DYNAMIC_LOADER 1
42163 _ACEOF
42164
42165 fi
42166 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42167     cat >>confdefs.h <<\_ACEOF
42168 #define wxUSE_DYNLIB_CLASS 1
42169 _ACEOF
42170
42171 fi
42172
42173
42174
42175 if test "$wxUSE_PLUGINS" = "yes" ; then
42176     if test "$wxUSE_SHARED" = "no" ; then
42177         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42178 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42179         wxUSE_PLUGINS=no
42180     fi
42181     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42182         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42183 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42184         wxUSE_PLUGINS=no
42185     fi
42186     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42187         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42188 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42189         wxUSE_PLUGINS=no
42190     fi
42191     if test "$wxUSE_PLUGINS" = "yes" ; then
42192         cat >>confdefs.h <<\_ACEOF
42193 #define wxUSE_PLUGINS 1
42194 _ACEOF
42195
42196     fi
42197 fi
42198
42199
42200 if test "$wxUSE_STL" = "yes"; then
42201   cat >>confdefs.h <<\_ACEOF
42202 #define wxUSE_STL 1
42203 _ACEOF
42204
42205 fi
42206
42207 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42208   cat >>confdefs.h <<\_ACEOF
42209 #define wxUSE_EXTENDED_RTTI 1
42210 _ACEOF
42211
42212 fi
42213
42214 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42215   cat >>confdefs.h <<\_ACEOF
42216 #define wxUSE_APPLE_IEEE 1
42217 _ACEOF
42218
42219 fi
42220
42221 if test "$wxUSE_TIMER" = "yes"; then
42222   cat >>confdefs.h <<\_ACEOF
42223 #define wxUSE_TIMER 1
42224 _ACEOF
42225
42226 fi
42227
42228 if test "$USE_UNIX" = 1 ; then
42229         if test "$wxUSE_MGL" != 1; then
42230                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42231 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42232 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42233   echo $ECHO_N "(cached) $ECHO_C" >&6
42234 else
42235
42236             cat >conftest.$ac_ext <<_ACEOF
42237 /* confdefs.h.  */
42238 _ACEOF
42239 cat confdefs.h >>conftest.$ac_ext
42240 cat >>conftest.$ac_ext <<_ACEOF
42241 /* end confdefs.h.  */
42242
42243                     #include <sys/ioctl.h>
42244                     #include <sys/soundcard.h>
42245
42246 int
42247 main ()
42248 {
42249
42250                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42251
42252   ;
42253   return 0;
42254 }
42255 _ACEOF
42256 rm -f conftest.$ac_objext conftest$ac_exeext
42257 if { (ac_try="$ac_link"
42258 case "(($ac_try" in
42259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260   *) ac_try_echo=$ac_try;;
42261 esac
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263   (eval "$ac_link") 2>conftest.er1
42264   ac_status=$?
42265   grep -v '^ *+' conftest.er1 >conftest.err
42266   rm -f conftest.er1
42267   cat conftest.err >&5
42268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269   (exit $ac_status); } && {
42270          test -z "$ac_c_werror_flag" ||
42271          test ! -s conftest.err
42272        } && test -s conftest$ac_exeext &&
42273        $as_test_x conftest$ac_exeext; then
42274   ac_cv_header_sys_soundcard=yes
42275 else
42276   echo "$as_me: failed program was:" >&5
42277 sed 's/^/| /' conftest.$ac_ext >&5
42278
42279
42280                     saveLibs="$LIBS"
42281                     LIBS="$saveLibs -lossaudio"
42282                     cat >conftest.$ac_ext <<_ACEOF
42283 /* confdefs.h.  */
42284 _ACEOF
42285 cat confdefs.h >>conftest.$ac_ext
42286 cat >>conftest.$ac_ext <<_ACEOF
42287 /* end confdefs.h.  */
42288
42289                             #include <sys/ioctl.h>
42290                             #include <sys/soundcard.h>
42291
42292 int
42293 main ()
42294 {
42295
42296                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42297
42298   ;
42299   return 0;
42300 }
42301 _ACEOF
42302 rm -f conftest.$ac_objext conftest$ac_exeext
42303 if { (ac_try="$ac_link"
42304 case "(($ac_try" in
42305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42306   *) ac_try_echo=$ac_try;;
42307 esac
42308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42309   (eval "$ac_link") 2>conftest.er1
42310   ac_status=$?
42311   grep -v '^ *+' conftest.er1 >conftest.err
42312   rm -f conftest.er1
42313   cat conftest.err >&5
42314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315   (exit $ac_status); } && {
42316          test -z "$ac_c_werror_flag" ||
42317          test ! -s conftest.err
42318        } && test -s conftest$ac_exeext &&
42319        $as_test_x conftest$ac_exeext; then
42320   ac_cv_header_sys_soundcard=yes
42321 else
42322   echo "$as_me: failed program was:" >&5
42323 sed 's/^/| /' conftest.$ac_ext >&5
42324
42325
42326                             LIBS="$saveLibs"
42327                             ac_cv_header_sys_soundcard=no
42328
42329
42330 fi
42331
42332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42333       conftest$ac_exeext conftest.$ac_ext
42334
42335
42336 fi
42337
42338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42339       conftest$ac_exeext conftest.$ac_ext
42340
42341 fi
42342 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42343 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42344     fi
42345
42346     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42347         cat >>confdefs.h <<\_ACEOF
42348 #define HAVE_SYS_SOUNDCARD_H 1
42349 _ACEOF
42350
42351     fi
42352 fi
42353
42354 WITH_PLUGIN_SDL=0
42355 if test "$wxUSE_SOUND" = "yes"; then
42356   if test "$USE_UNIX" = 1 ; then
42357     if test "$wxUSE_LIBSDL" != "no"; then
42358
42359 # Check whether --with-sdl-prefix was given.
42360 if test "${with_sdl_prefix+set}" = set; then
42361   withval=$with_sdl_prefix; sdl_prefix="$withval"
42362 else
42363   sdl_prefix=""
42364 fi
42365
42366
42367 # Check whether --with-sdl-exec-prefix was given.
42368 if test "${with_sdl_exec_prefix+set}" = set; then
42369   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42370 else
42371   sdl_exec_prefix=""
42372 fi
42373
42374 # Check whether --enable-sdltest was given.
42375 if test "${enable_sdltest+set}" = set; then
42376   enableval=$enable_sdltest;
42377 else
42378   enable_sdltest=yes
42379 fi
42380
42381
42382   if test x$sdl_exec_prefix != x ; then
42383     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42384     if test x${SDL_CONFIG+set} != xset ; then
42385       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42386     fi
42387   fi
42388   if test x$sdl_prefix != x ; then
42389     sdl_args="$sdl_args --prefix=$sdl_prefix"
42390     if test x${SDL_CONFIG+set} != xset ; then
42391       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42392     fi
42393   fi
42394
42395   if test "x$prefix" != xNONE; then
42396     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42397   fi
42398   # Extract the first word of "sdl-config", so it can be a program name with args.
42399 set dummy sdl-config; ac_word=$2
42400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42402 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42403   echo $ECHO_N "(cached) $ECHO_C" >&6
42404 else
42405   case $SDL_CONFIG in
42406   [\\/]* | ?:[\\/]*)
42407   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42408   ;;
42409   *)
42410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42411 for as_dir in $PATH
42412 do
42413   IFS=$as_save_IFS
42414   test -z "$as_dir" && as_dir=.
42415   for ac_exec_ext in '' $ac_executable_extensions; do
42416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42417     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42419     break 2
42420   fi
42421 done
42422 done
42423 IFS=$as_save_IFS
42424
42425   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42426   ;;
42427 esac
42428 fi
42429 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42430 if test -n "$SDL_CONFIG"; then
42431   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42432 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42433 else
42434   { echo "$as_me:$LINENO: result: no" >&5
42435 echo "${ECHO_T}no" >&6; }
42436 fi
42437
42438
42439   min_sdl_version=1.2.0
42440   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42441 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42442   no_sdl=""
42443   if test "$SDL_CONFIG" = "no" ; then
42444     no_sdl=yes
42445   else
42446     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42447     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42448
42449     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42450            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42451     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42452            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42453     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42454            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42455     if test "x$enable_sdltest" = "xyes" ; then
42456       ac_save_CFLAGS="$CFLAGS"
42457       ac_save_CXXFLAGS="$CXXFLAGS"
42458       ac_save_LIBS="$LIBS"
42459       CFLAGS="$CFLAGS $SDL_CFLAGS"
42460       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42461       LIBS="$LIBS $SDL_LIBS"
42462       rm -f conf.sdltest
42463       if test "$cross_compiling" = yes; then
42464   echo $ac_n "cross compiling; assumed OK... $ac_c"
42465 else
42466   cat >conftest.$ac_ext <<_ACEOF
42467 /* confdefs.h.  */
42468 _ACEOF
42469 cat confdefs.h >>conftest.$ac_ext
42470 cat >>conftest.$ac_ext <<_ACEOF
42471 /* end confdefs.h.  */
42472
42473 #include <stdio.h>
42474 #include <stdlib.h>
42475 #include <string.h>
42476 #include "SDL.h"
42477
42478 char*
42479 my_strdup (char *str)
42480 {
42481   char *new_str;
42482
42483   if (str)
42484     {
42485       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42486       strcpy (new_str, str);
42487     }
42488   else
42489     new_str = NULL;
42490
42491   return new_str;
42492 }
42493
42494 int main (int argc, char *argv[])
42495 {
42496   int major, minor, micro;
42497   char *tmp_version;
42498
42499   /* This hangs on some systems (?)
42500   system ("touch conf.sdltest");
42501   */
42502   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42503
42504   /* HP/UX 9 (%@#!) writes to sscanf strings */
42505   tmp_version = my_strdup("$min_sdl_version");
42506   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42507      printf("%s, bad version string\n", "$min_sdl_version");
42508      exit(1);
42509    }
42510
42511    if (($sdl_major_version > major) ||
42512       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42513       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42514     {
42515       return 0;
42516     }
42517   else
42518     {
42519       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42520       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42521       printf("*** best to upgrade to the required version.\n");
42522       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42523       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42524       printf("*** config.cache before re-running configure\n");
42525       return 1;
42526     }
42527 }
42528
42529
42530 _ACEOF
42531 rm -f conftest$ac_exeext
42532 if { (ac_try="$ac_link"
42533 case "(($ac_try" in
42534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42535   *) ac_try_echo=$ac_try;;
42536 esac
42537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42538   (eval "$ac_link") 2>&5
42539   ac_status=$?
42540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42542   { (case "(($ac_try" in
42543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42544   *) ac_try_echo=$ac_try;;
42545 esac
42546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42547   (eval "$ac_try") 2>&5
42548   ac_status=$?
42549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550   (exit $ac_status); }; }; then
42551   :
42552 else
42553   echo "$as_me: program exited with status $ac_status" >&5
42554 echo "$as_me: failed program was:" >&5
42555 sed 's/^/| /' conftest.$ac_ext >&5
42556
42557 ( exit $ac_status )
42558 no_sdl=yes
42559 fi
42560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42561 fi
42562
42563
42564        CFLAGS="$ac_save_CFLAGS"
42565        CXXFLAGS="$ac_save_CXXFLAGS"
42566        LIBS="$ac_save_LIBS"
42567      fi
42568   fi
42569   if test "x$no_sdl" = x ; then
42570      { echo "$as_me:$LINENO: result: yes" >&5
42571 echo "${ECHO_T}yes" >&6; }
42572
42573                     EXTRALIBS_SDL="$SDL_LIBS"
42574                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42575                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42576                     cat >>confdefs.h <<\_ACEOF
42577 #define wxUSE_LIBSDL 1
42578 _ACEOF
42579
42580
42581   else
42582      { echo "$as_me:$LINENO: result: no" >&5
42583 echo "${ECHO_T}no" >&6; }
42584      if test "$SDL_CONFIG" = "no" ; then
42585        echo "*** The sdl-config script installed by SDL could not be found"
42586        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42587        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42588        echo "*** full path to sdl-config."
42589      else
42590        if test -f conf.sdltest ; then
42591         :
42592        else
42593           echo "*** Could not run SDL test program, checking why..."
42594           CFLAGS="$CFLAGS $SDL_CFLAGS"
42595           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42596           LIBS="$LIBS $SDL_LIBS"
42597           cat >conftest.$ac_ext <<_ACEOF
42598 /* confdefs.h.  */
42599 _ACEOF
42600 cat confdefs.h >>conftest.$ac_ext
42601 cat >>conftest.$ac_ext <<_ACEOF
42602 /* end confdefs.h.  */
42603
42604 #include <stdio.h>
42605 #include "SDL.h"
42606
42607 int main(int argc, char *argv[])
42608 { return 0; }
42609 #undef  main
42610 #define main K_and_R_C_main
42611
42612 int
42613 main ()
42614 {
42615  return 0;
42616   ;
42617   return 0;
42618 }
42619 _ACEOF
42620 rm -f conftest.$ac_objext conftest$ac_exeext
42621 if { (ac_try="$ac_link"
42622 case "(($ac_try" in
42623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42624   *) ac_try_echo=$ac_try;;
42625 esac
42626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42627   (eval "$ac_link") 2>conftest.er1
42628   ac_status=$?
42629   grep -v '^ *+' conftest.er1 >conftest.err
42630   rm -f conftest.er1
42631   cat conftest.err >&5
42632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633   (exit $ac_status); } && {
42634          test -z "$ac_c_werror_flag" ||
42635          test ! -s conftest.err
42636        } && test -s conftest$ac_exeext &&
42637        $as_test_x conftest$ac_exeext; then
42638    echo "*** The test program compiled, but did not run. This usually means"
42639           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42640           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42641           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42642           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42643           echo "*** is required on your system"
42644           echo "***"
42645           echo "*** If you have an old version installed, it is best to remove it, although"
42646           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42647 else
42648   echo "$as_me: failed program was:" >&5
42649 sed 's/^/| /' conftest.$ac_ext >&5
42650
42651          echo "*** The test program failed to compile or link. See the file config.log for the"
42652           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42653           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42654           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42655 fi
42656
42657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42658       conftest$ac_exeext conftest.$ac_ext
42659           CFLAGS="$ac_save_CFLAGS"
42660           CXXFLAGS="$ac_save_CXXFLAGS"
42661           LIBS="$ac_save_LIBS"
42662        fi
42663      fi
42664      SDL_CFLAGS=""
42665      SDL_LIBS=""
42666      wxUSE_LIBSDL="no"
42667   fi
42668
42669
42670   rm -f conf.sdltest
42671
42672       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42673         WITH_PLUGIN_SDL=1
42674       fi
42675     fi
42676   else
42677         if test "$wxUSE_MGL" = 1; then
42678         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42679 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42680         wxUSE_SOUND="no"
42681     fi
42682   fi
42683 fi
42684
42685 if test "$wxUSE_SOUND" = "yes"; then
42686   cat >>confdefs.h <<\_ACEOF
42687 #define wxUSE_SOUND 1
42688 _ACEOF
42689
42690   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42691 fi
42692
42693 if test "$WXGTK2" = 1; then
42694
42695
42696 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42697         if test -n "$ac_tool_prefix"; then
42698   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42699 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42702 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42703   echo $ECHO_N "(cached) $ECHO_C" >&6
42704 else
42705   case $PKG_CONFIG in
42706   [\\/]* | ?:[\\/]*)
42707   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42708   ;;
42709   *)
42710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42711 for as_dir in $PATH
42712 do
42713   IFS=$as_save_IFS
42714   test -z "$as_dir" && as_dir=.
42715   for ac_exec_ext in '' $ac_executable_extensions; do
42716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42717     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42719     break 2
42720   fi
42721 done
42722 done
42723 IFS=$as_save_IFS
42724
42725   ;;
42726 esac
42727 fi
42728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42729 if test -n "$PKG_CONFIG"; then
42730   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42732 else
42733   { echo "$as_me:$LINENO: result: no" >&5
42734 echo "${ECHO_T}no" >&6; }
42735 fi
42736
42737
42738 fi
42739 if test -z "$ac_cv_path_PKG_CONFIG"; then
42740   ac_pt_PKG_CONFIG=$PKG_CONFIG
42741   # Extract the first word of "pkg-config", so it can be a program name with args.
42742 set dummy pkg-config; ac_word=$2
42743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42745 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42746   echo $ECHO_N "(cached) $ECHO_C" >&6
42747 else
42748   case $ac_pt_PKG_CONFIG in
42749   [\\/]* | ?:[\\/]*)
42750   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42751   ;;
42752   *)
42753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42754 for as_dir in $PATH
42755 do
42756   IFS=$as_save_IFS
42757   test -z "$as_dir" && as_dir=.
42758   for ac_exec_ext in '' $ac_executable_extensions; do
42759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42760     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42762     break 2
42763   fi
42764 done
42765 done
42766 IFS=$as_save_IFS
42767
42768   ;;
42769 esac
42770 fi
42771 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42772 if test -n "$ac_pt_PKG_CONFIG"; then
42773   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42774 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42775 else
42776   { echo "$as_me:$LINENO: result: no" >&5
42777 echo "${ECHO_T}no" >&6; }
42778 fi
42779
42780   if test "x$ac_pt_PKG_CONFIG" = x; then
42781     PKG_CONFIG=""
42782   else
42783     case $cross_compiling:$ac_tool_warned in
42784 yes:)
42785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42786 whose name does not start with the host triplet.  If you think this
42787 configuration is useful to you, please write to autoconf@gnu.org." >&5
42788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42789 whose name does not start with the host triplet.  If you think this
42790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42791 ac_tool_warned=yes ;;
42792 esac
42793     PKG_CONFIG=$ac_pt_PKG_CONFIG
42794   fi
42795 else
42796   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42797 fi
42798
42799 fi
42800 if test -n "$PKG_CONFIG"; then
42801         _pkg_min_version=0.9.0
42802         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42803 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42804         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42805                 { echo "$as_me:$LINENO: result: yes" >&5
42806 echo "${ECHO_T}yes" >&6; }
42807         else
42808                 { echo "$as_me:$LINENO: result: no" >&5
42809 echo "${ECHO_T}no" >&6; }
42810                 PKG_CONFIG=""
42811         fi
42812
42813 fi
42814
42815     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42816
42817         if test "$wxUSE_GTKPRINT" = "yes" ; then
42818
42819
42820 pkg_failed=no
42821 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42822 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42823
42824 if test -n "$PKG_CONFIG"; then
42825     if test -n "$GTKPRINT_CFLAGS"; then
42826         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42827     else
42828         if test -n "$PKG_CONFIG" && \
42829     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42830   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42831   ac_status=$?
42832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833   (exit $ac_status); }; then
42834   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42835 else
42836   pkg_failed=yes
42837 fi
42838     fi
42839 else
42840         pkg_failed=untried
42841 fi
42842 if test -n "$PKG_CONFIG"; then
42843     if test -n "$GTKPRINT_LIBS"; then
42844         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42845     else
42846         if test -n "$PKG_CONFIG" && \
42847     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42848   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42849   ac_status=$?
42850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851   (exit $ac_status); }; then
42852   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42853 else
42854   pkg_failed=yes
42855 fi
42856     fi
42857 else
42858         pkg_failed=untried
42859 fi
42860
42861
42862
42863 if test $pkg_failed = yes; then
42864
42865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42866         _pkg_short_errors_supported=yes
42867 else
42868         _pkg_short_errors_supported=no
42869 fi
42870         if test $_pkg_short_errors_supported = yes; then
42871                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42872         else
42873                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42874         fi
42875         # Put the nasty error message in config.log where it belongs
42876         echo "$GTKPRINT_PKG_ERRORS" >&5
42877
42878
42879                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42880 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42881                         wxUSE_GTKPRINT="no"
42882
42883
42884 elif test $pkg_failed = untried; then
42885
42886                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42887 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42888                         wxUSE_GTKPRINT="no"
42889
42890
42891 else
42892         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42893         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42894         { echo "$as_me:$LINENO: result: yes" >&5
42895 echo "${ECHO_T}yes" >&6; }
42896
42897                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42898                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42899                         cat >>confdefs.h <<\_ACEOF
42900 #define wxUSE_GTKPRINT 1
42901 _ACEOF
42902
42903
42904 fi
42905         fi
42906
42907         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42908
42909
42910 pkg_failed=no
42911 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42912 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42913
42914 if test -n "$PKG_CONFIG"; then
42915     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42916         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42917     else
42918         if test -n "$PKG_CONFIG" && \
42919     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42920   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42921   ac_status=$?
42922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923   (exit $ac_status); }; then
42924   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42925 else
42926   pkg_failed=yes
42927 fi
42928     fi
42929 else
42930         pkg_failed=untried
42931 fi
42932 if test -n "$PKG_CONFIG"; then
42933     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42934         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42935     else
42936         if test -n "$PKG_CONFIG" && \
42937     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42938   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42939   ac_status=$?
42940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941   (exit $ac_status); }; then
42942   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42943 else
42944   pkg_failed=yes
42945 fi
42946     fi
42947 else
42948         pkg_failed=untried
42949 fi
42950
42951
42952
42953 if test $pkg_failed = yes; then
42954
42955 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42956         _pkg_short_errors_supported=yes
42957 else
42958         _pkg_short_errors_supported=no
42959 fi
42960         if test $_pkg_short_errors_supported = yes; then
42961                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42962         else
42963                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42964         fi
42965         # Put the nasty error message in config.log where it belongs
42966         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42967
42968
42969                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42970 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42971                         wxUSE_LIBGNOMEPRINT="no"
42972
42973
42974 elif test $pkg_failed = untried; then
42975
42976                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42977 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42978                         wxUSE_LIBGNOMEPRINT="no"
42979
42980
42981 else
42982         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42983         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42984         { echo "$as_me:$LINENO: result: yes" >&5
42985 echo "${ECHO_T}yes" >&6; }
42986
42987                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42988                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42989                         cat >>confdefs.h <<\_ACEOF
42990 #define wxUSE_LIBGNOMEPRINT 1
42991 _ACEOF
42992
42993
42994 fi
42995         fi
42996     fi
42997
42998     if test "$wxUSE_MIMETYPE" = "yes" ; then
42999         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43000
43001
43002 pkg_failed=no
43003 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43004 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
43005
43006 if test -n "$PKG_CONFIG"; then
43007     if test -n "$GNOMEVFS_CFLAGS"; then
43008         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43009     else
43010         if test -n "$PKG_CONFIG" && \
43011     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43012   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43013   ac_status=$?
43014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43015   (exit $ac_status); }; then
43016   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43017 else
43018   pkg_failed=yes
43019 fi
43020     fi
43021 else
43022         pkg_failed=untried
43023 fi
43024 if test -n "$PKG_CONFIG"; then
43025     if test -n "$GNOMEVFS_LIBS"; then
43026         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43027     else
43028         if test -n "$PKG_CONFIG" && \
43029     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43030   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43031   ac_status=$?
43032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43033   (exit $ac_status); }; then
43034   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43035 else
43036   pkg_failed=yes
43037 fi
43038     fi
43039 else
43040         pkg_failed=untried
43041 fi
43042
43043
43044
43045 if test $pkg_failed = yes; then
43046
43047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43048         _pkg_short_errors_supported=yes
43049 else
43050         _pkg_short_errors_supported=no
43051 fi
43052         if test $_pkg_short_errors_supported = yes; then
43053                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43054         else
43055                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43056         fi
43057         # Put the nasty error message in config.log where it belongs
43058         echo "$GNOMEVFS_PKG_ERRORS" >&5
43059
43060
43061                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43062 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43063                         wxUSE_LIBGNOMEVFS="no"
43064
43065
43066 elif test $pkg_failed = untried; then
43067
43068                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43069 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43070                         wxUSE_LIBGNOMEVFS="no"
43071
43072
43073 else
43074         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43075         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43076         { echo "$as_me:$LINENO: result: yes" >&5
43077 echo "${ECHO_T}yes" >&6; }
43078
43079                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43080                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43081                         cat >>confdefs.h <<\_ACEOF
43082 #define wxUSE_LIBGNOMEVFS 1
43083 _ACEOF
43084
43085
43086 fi
43087         fi
43088     fi
43089
43090     if test "$wxUSE_LIBHILDON" = "yes" ; then
43091
43092 pkg_failed=no
43093 { echo "$as_me:$LINENO: checking for HILDON" >&5
43094 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43095
43096 if test -n "$PKG_CONFIG"; then
43097     if test -n "$HILDON_CFLAGS"; then
43098         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43099     else
43100         if test -n "$PKG_CONFIG" && \
43101     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43102   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43103   ac_status=$?
43104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105   (exit $ac_status); }; then
43106   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43107 else
43108   pkg_failed=yes
43109 fi
43110     fi
43111 else
43112         pkg_failed=untried
43113 fi
43114 if test -n "$PKG_CONFIG"; then
43115     if test -n "$HILDON_LIBS"; then
43116         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43117     else
43118         if test -n "$PKG_CONFIG" && \
43119     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43120   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43121   ac_status=$?
43122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43123   (exit $ac_status); }; then
43124   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43125 else
43126   pkg_failed=yes
43127 fi
43128     fi
43129 else
43130         pkg_failed=untried
43131 fi
43132
43133
43134
43135 if test $pkg_failed = yes; then
43136
43137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43138         _pkg_short_errors_supported=yes
43139 else
43140         _pkg_short_errors_supported=no
43141 fi
43142         if test $_pkg_short_errors_supported = yes; then
43143                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43144         else
43145                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43146         fi
43147         # Put the nasty error message in config.log where it belongs
43148         echo "$HILDON_PKG_ERRORS" >&5
43149
43150
43151                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43152 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43153                         wxUSE_LIBHILDON="no"
43154
43155
43156 elif test $pkg_failed = untried; then
43157
43158                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43159 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43160                         wxUSE_LIBHILDON="no"
43161
43162
43163 else
43164         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43165         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43166         { echo "$as_me:$LINENO: result: yes" >&5
43167 echo "${ECHO_T}yes" >&6; }
43168
43169                 EXTRALIBS_HILDON="$HILDON_LIBS"
43170                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43171                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43172                 cat >>confdefs.h <<\_ACEOF
43173 #define wxUSE_LIBHILDON 1
43174 _ACEOF
43175
43176
43177 fi
43178     fi
43179 fi
43180
43181 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43182   cat >>confdefs.h <<\_ACEOF
43183 #define wxUSE_CMDLINE_PARSER 1
43184 _ACEOF
43185
43186 fi
43187
43188 if test "$wxUSE_STOPWATCH" = "yes"; then
43189   cat >>confdefs.h <<\_ACEOF
43190 #define wxUSE_STOPWATCH 1
43191 _ACEOF
43192
43193 fi
43194
43195 if test "$wxUSE_DATETIME" = "yes"; then
43196   cat >>confdefs.h <<\_ACEOF
43197 #define wxUSE_DATETIME 1
43198 _ACEOF
43199
43200 fi
43201
43202 if test "$wxUSE_FILE" = "yes"; then
43203   cat >>confdefs.h <<\_ACEOF
43204 #define wxUSE_FILE 1
43205 _ACEOF
43206
43207 fi
43208
43209 if test "$wxUSE_FFILE" = "yes"; then
43210   cat >>confdefs.h <<\_ACEOF
43211 #define wxUSE_FFILE 1
43212 _ACEOF
43213
43214 fi
43215
43216 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43217   if test "$wxUSE_STREAMS" != yes; then
43218     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43219 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43220     wxUSE_ARCHIVE_STREAMS=no
43221   else
43222     cat >>confdefs.h <<\_ACEOF
43223 #define wxUSE_ARCHIVE_STREAMS 1
43224 _ACEOF
43225
43226   fi
43227 fi
43228
43229 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43230   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43231     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43232 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43233   elif test "$wxUSE_ZLIB" = "no"; then
43234     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43235 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43236   else
43237     cat >>confdefs.h <<\_ACEOF
43238 #define wxUSE_ZIPSTREAM 1
43239 _ACEOF
43240
43241   fi
43242 fi
43243
43244 if test "$wxUSE_TARSTREAM" = "yes"; then
43245   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43246     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43247 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43248   else
43249     cat >>confdefs.h <<\_ACEOF
43250 #define wxUSE_TARSTREAM 1
43251 _ACEOF
43252
43253   fi
43254 fi
43255
43256 if test "$wxUSE_FILESYSTEM" = "yes"; then
43257   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43258     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43259 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43260     wxUSE_FILESYSTEM=no
43261   else
43262     cat >>confdefs.h <<\_ACEOF
43263 #define wxUSE_FILESYSTEM 1
43264 _ACEOF
43265
43266   fi
43267 fi
43268
43269 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43270   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43271     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43272 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43273   else
43274     cat >>confdefs.h <<\_ACEOF
43275 #define wxUSE_FS_ARCHIVE 1
43276 _ACEOF
43277
43278   fi
43279 fi
43280
43281 if test "$wxUSE_FS_ZIP" = "yes"; then
43282   if test "$wxUSE_FS_ARCHIVE" != yes; then
43283     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43284 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43285   else
43286     cat >>confdefs.h <<\_ACEOF
43287 #define wxUSE_FS_ZIP 1
43288 _ACEOF
43289
43290   fi
43291 fi
43292
43293 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43294   if test "$USE_UNIX" != 1; then
43295     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43296 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43297     wxUSE_ON_FATAL_EXCEPTION=no
43298   else
43299     cat >>confdefs.h <<\_ACEOF
43300 #define wxUSE_ON_FATAL_EXCEPTION 1
43301 _ACEOF
43302
43303   fi
43304 fi
43305
43306 if test "$wxUSE_STACKWALKER" = "yes"; then
43307     cat >>confdefs.h <<\_ACEOF
43308 #define wxUSE_STACKWALKER 1
43309 _ACEOF
43310
43311 fi
43312
43313 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43314     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43315         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43316 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43317         wxUSE_DEBUGREPORT=no
43318     else
43319         cat >>confdefs.h <<\_ACEOF
43320 #define wxUSE_DEBUGREPORT 1
43321 _ACEOF
43322
43323         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43324             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43325         fi
43326     fi
43327 fi
43328
43329 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43330   cat >>confdefs.h <<\_ACEOF
43331 #define wxUSE_SNGLINST_CHECKER 1
43332 _ACEOF
43333
43334 fi
43335
43336 if test "$wxUSE_BUSYINFO" = "yes"; then
43337   cat >>confdefs.h <<\_ACEOF
43338 #define wxUSE_BUSYINFO 1
43339 _ACEOF
43340
43341 fi
43342
43343 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43344   cat >>confdefs.h <<\_ACEOF
43345 #define wxUSE_STD_IOSTREAM 1
43346 _ACEOF
43347
43348 fi
43349
43350 if test "$wxUSE_STD_STRING" = "yes"; then
43351   cat >>confdefs.h <<\_ACEOF
43352 #define wxUSE_STD_STRING 1
43353 _ACEOF
43354
43355 fi
43356
43357 if test "$wxUSE_STDPATHS" = "yes"; then
43358   cat >>confdefs.h <<\_ACEOF
43359 #define wxUSE_STDPATHS 1
43360 _ACEOF
43361
43362 fi
43363
43364 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43365     cat >>confdefs.h <<\_ACEOF
43366 #define wxUSE_TEXTBUFFER 1
43367 _ACEOF
43368
43369 fi
43370
43371 if test "$wxUSE_TEXTFILE" = "yes"; then
43372   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43373     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43374 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43375   else
43376     cat >>confdefs.h <<\_ACEOF
43377 #define wxUSE_TEXTFILE 1
43378 _ACEOF
43379
43380   fi
43381 fi
43382
43383 if test "$wxUSE_CONFIG" = "yes" ; then
43384   if test "$wxUSE_TEXTFILE" != "yes"; then
43385     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43386 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43387   else
43388     cat >>confdefs.h <<\_ACEOF
43389 #define wxUSE_CONFIG 1
43390 _ACEOF
43391
43392     cat >>confdefs.h <<\_ACEOF
43393 #define wxUSE_CONFIG_NATIVE 1
43394 _ACEOF
43395
43396     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43397   fi
43398 fi
43399
43400 if test "$wxUSE_INTL" = "yes" ; then
43401   if test "$wxUSE_FILE" != "yes"; then
43402     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43403 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43404   else
43405     cat >>confdefs.h <<\_ACEOF
43406 #define wxUSE_INTL 1
43407 _ACEOF
43408
43409     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43410     GUIDIST="$GUIDIST INTL_DIST"
43411   fi
43412 fi
43413
43414 if test "$wxUSE_XLOCALE" = "yes" ; then
43415     cat >>confdefs.h <<\_ACEOF
43416 #define wxUSE_XLOCALE 1
43417 _ACEOF
43418
43419     { echo "$as_me:$LINENO: checking for locale_t" >&5
43420 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43421 if test "${ac_cv_type_locale_t+set}" = set; then
43422   echo $ECHO_N "(cached) $ECHO_C" >&6
43423 else
43424   cat >conftest.$ac_ext <<_ACEOF
43425 /* confdefs.h.  */
43426 _ACEOF
43427 cat confdefs.h >>conftest.$ac_ext
43428 cat >>conftest.$ac_ext <<_ACEOF
43429 /* end confdefs.h.  */
43430 #include <xlocale.h>
43431                     #include <locale.h>
43432
43433 typedef locale_t ac__type_new_;
43434 int
43435 main ()
43436 {
43437 if ((ac__type_new_ *) 0)
43438   return 0;
43439 if (sizeof (ac__type_new_))
43440   return 0;
43441   ;
43442   return 0;
43443 }
43444 _ACEOF
43445 rm -f conftest.$ac_objext
43446 if { (ac_try="$ac_compile"
43447 case "(($ac_try" in
43448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43449   *) ac_try_echo=$ac_try;;
43450 esac
43451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43452   (eval "$ac_compile") 2>conftest.er1
43453   ac_status=$?
43454   grep -v '^ *+' conftest.er1 >conftest.err
43455   rm -f conftest.er1
43456   cat conftest.err >&5
43457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43458   (exit $ac_status); } && {
43459          test -z "$ac_c_werror_flag" ||
43460          test ! -s conftest.err
43461        } && test -s conftest.$ac_objext; then
43462   ac_cv_type_locale_t=yes
43463 else
43464   echo "$as_me: failed program was:" >&5
43465 sed 's/^/| /' conftest.$ac_ext >&5
43466
43467         ac_cv_type_locale_t=no
43468 fi
43469
43470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43471 fi
43472 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43473 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43474 if test $ac_cv_type_locale_t = yes; then
43475
43476 cat >>confdefs.h <<_ACEOF
43477 #define HAVE_LOCALE_T 1
43478 _ACEOF
43479
43480
43481 fi
43482
43483 fi
43484
43485 if test "$wxUSE_LOG" = "yes"; then
43486   cat >>confdefs.h <<\_ACEOF
43487 #define wxUSE_LOG 1
43488 _ACEOF
43489
43490
43491     if test "$wxUSE_LOGGUI" = "yes"; then
43492       cat >>confdefs.h <<\_ACEOF
43493 #define wxUSE_LOGGUI 1
43494 _ACEOF
43495
43496     fi
43497
43498     if test "$wxUSE_LOGWINDOW" = "yes"; then
43499       cat >>confdefs.h <<\_ACEOF
43500 #define wxUSE_LOGWINDOW 1
43501 _ACEOF
43502
43503     fi
43504
43505     if test "$wxUSE_LOGDIALOG" = "yes"; then
43506       cat >>confdefs.h <<\_ACEOF
43507 #define wxUSE_LOG_DIALOG 1
43508 _ACEOF
43509
43510     fi
43511
43512         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43513 fi
43514
43515 if test "$wxUSE_LONGLONG" = "yes"; then
43516   cat >>confdefs.h <<\_ACEOF
43517 #define wxUSE_LONGLONG 1
43518 _ACEOF
43519
43520 fi
43521
43522 if test "$wxUSE_GEOMETRY" = "yes"; then
43523   cat >>confdefs.h <<\_ACEOF
43524 #define wxUSE_GEOMETRY 1
43525 _ACEOF
43526
43527 fi
43528
43529 if test "$wxUSE_BASE64" = "yes"; then
43530   cat >>confdefs.h <<\_ACEOF
43531 #define wxUSE_BASE64 1
43532 _ACEOF
43533
43534 fi
43535
43536 if test "$wxUSE_STREAMS" = "yes" ; then
43537   cat >>confdefs.h <<\_ACEOF
43538 #define wxUSE_STREAMS 1
43539 _ACEOF
43540
43541 fi
43542
43543 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43544   cat >>confdefs.h <<\_ACEOF
43545 #define wxUSE_PRINTF_POS_PARAMS 1
43546 _ACEOF
43547
43548 fi
43549
43550 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43551   cat >>confdefs.h <<\_ACEOF
43552 #define wxUSE_OBJC_UNIQUIFYING 1
43553 _ACEOF
43554
43555 fi
43556
43557
43558 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43559     cat >>confdefs.h <<\_ACEOF
43560 #define wxUSE_CONSOLE_EVENTLOOP 1
43561 _ACEOF
43562
43563
43564     if test "$wxUSE_UNIX" = "yes"; then
43565         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43566             cat >>confdefs.h <<\_ACEOF
43567 #define wxUSE_SELECT_DISPATCHER 1
43568 _ACEOF
43569
43570         fi
43571
43572         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43573
43574 for ac_header in sys/epoll.h
43575 do
43576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43580   echo $ECHO_N "(cached) $ECHO_C" >&6
43581 else
43582   cat >conftest.$ac_ext <<_ACEOF
43583 /* confdefs.h.  */
43584 _ACEOF
43585 cat confdefs.h >>conftest.$ac_ext
43586 cat >>conftest.$ac_ext <<_ACEOF
43587 /* end confdefs.h.  */
43588 $ac_includes_default
43589
43590 #include <$ac_header>
43591 _ACEOF
43592 rm -f conftest.$ac_objext
43593 if { (ac_try="$ac_compile"
43594 case "(($ac_try" in
43595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43596   *) ac_try_echo=$ac_try;;
43597 esac
43598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43599   (eval "$ac_compile") 2>conftest.er1
43600   ac_status=$?
43601   grep -v '^ *+' conftest.er1 >conftest.err
43602   rm -f conftest.er1
43603   cat conftest.err >&5
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); } && {
43606          test -z "$ac_c_werror_flag" ||
43607          test ! -s conftest.err
43608        } && test -s conftest.$ac_objext; then
43609   eval "$as_ac_Header=yes"
43610 else
43611   echo "$as_me: failed program was:" >&5
43612 sed 's/^/| /' conftest.$ac_ext >&5
43613
43614         eval "$as_ac_Header=no"
43615 fi
43616
43617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43618 fi
43619 ac_res=`eval echo '${'$as_ac_Header'}'`
43620                { echo "$as_me:$LINENO: result: $ac_res" >&5
43621 echo "${ECHO_T}$ac_res" >&6; }
43622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43623   cat >>confdefs.h <<_ACEOF
43624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43625 _ACEOF
43626
43627 fi
43628
43629 done
43630
43631             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43632                 cat >>confdefs.h <<\_ACEOF
43633 #define wxUSE_EPOLL_DISPATCHER 1
43634 _ACEOF
43635
43636             else
43637                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43638 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43639             fi
43640         fi
43641     fi
43642 fi
43643
43644
43645
43646
43647 for ac_func in gettimeofday ftime
43648 do
43649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43653   echo $ECHO_N "(cached) $ECHO_C" >&6
43654 else
43655   cat >conftest.$ac_ext <<_ACEOF
43656 /* confdefs.h.  */
43657 _ACEOF
43658 cat confdefs.h >>conftest.$ac_ext
43659 cat >>conftest.$ac_ext <<_ACEOF
43660 /* end confdefs.h.  */
43661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43663 #define $ac_func innocuous_$ac_func
43664
43665 /* System header to define __stub macros and hopefully few prototypes,
43666     which can conflict with char $ac_func (); below.
43667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43668     <limits.h> exists even on freestanding compilers.  */
43669
43670 #ifdef __STDC__
43671 # include <limits.h>
43672 #else
43673 # include <assert.h>
43674 #endif
43675
43676 #undef $ac_func
43677
43678 /* Override any GCC internal prototype to avoid an error.
43679    Use char because int might match the return type of a GCC
43680    builtin and then its argument prototype would still apply.  */
43681 #ifdef __cplusplus
43682 extern "C"
43683 #endif
43684 char $ac_func ();
43685 /* The GNU C library defines this for functions which it implements
43686     to always fail with ENOSYS.  Some functions are actually named
43687     something starting with __ and the normal name is an alias.  */
43688 #if defined __stub_$ac_func || defined __stub___$ac_func
43689 choke me
43690 #endif
43691
43692 int
43693 main ()
43694 {
43695 return $ac_func ();
43696   ;
43697   return 0;
43698 }
43699 _ACEOF
43700 rm -f conftest.$ac_objext conftest$ac_exeext
43701 if { (ac_try="$ac_link"
43702 case "(($ac_try" in
43703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43704   *) ac_try_echo=$ac_try;;
43705 esac
43706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43707   (eval "$ac_link") 2>conftest.er1
43708   ac_status=$?
43709   grep -v '^ *+' conftest.er1 >conftest.err
43710   rm -f conftest.er1
43711   cat conftest.err >&5
43712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713   (exit $ac_status); } && {
43714          test -z "$ac_c_werror_flag" ||
43715          test ! -s conftest.err
43716        } && test -s conftest$ac_exeext &&
43717        $as_test_x conftest$ac_exeext; then
43718   eval "$as_ac_var=yes"
43719 else
43720   echo "$as_me: failed program was:" >&5
43721 sed 's/^/| /' conftest.$ac_ext >&5
43722
43723         eval "$as_ac_var=no"
43724 fi
43725
43726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43727       conftest$ac_exeext conftest.$ac_ext
43728 fi
43729 ac_res=`eval echo '${'$as_ac_var'}'`
43730                { echo "$as_me:$LINENO: result: $ac_res" >&5
43731 echo "${ECHO_T}$ac_res" >&6; }
43732 if test `eval echo '${'$as_ac_var'}'` = yes; then
43733   cat >>confdefs.h <<_ACEOF
43734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43735 _ACEOF
43736  break
43737 fi
43738 done
43739
43740
43741 if test "$ac_cv_func_gettimeofday" = "yes"; then
43742     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43743 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43744 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43745   echo $ECHO_N "(cached) $ECHO_C" >&6
43746 else
43747
43748                 cat >conftest.$ac_ext <<_ACEOF
43749 /* confdefs.h.  */
43750 _ACEOF
43751 cat confdefs.h >>conftest.$ac_ext
43752 cat >>conftest.$ac_ext <<_ACEOF
43753 /* end confdefs.h.  */
43754
43755                 #include <sys/time.h>
43756                 #include <unistd.h>
43757
43758 int
43759 main ()
43760 {
43761
43762                 struct timeval tv;
43763                 gettimeofday(&tv, NULL);
43764
43765   ;
43766   return 0;
43767 }
43768 _ACEOF
43769 rm -f conftest.$ac_objext
43770 if { (ac_try="$ac_compile"
43771 case "(($ac_try" in
43772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43773   *) ac_try_echo=$ac_try;;
43774 esac
43775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43776   (eval "$ac_compile") 2>conftest.er1
43777   ac_status=$?
43778   grep -v '^ *+' conftest.er1 >conftest.err
43779   rm -f conftest.er1
43780   cat conftest.err >&5
43781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); } && {
43783          test -z "$ac_c_werror_flag" ||
43784          test ! -s conftest.err
43785        } && test -s conftest.$ac_objext; then
43786   wx_cv_func_gettimeofday_has_2_args=yes
43787 else
43788   echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43790
43791         cat >conftest.$ac_ext <<_ACEOF
43792 /* confdefs.h.  */
43793 _ACEOF
43794 cat confdefs.h >>conftest.$ac_ext
43795 cat >>conftest.$ac_ext <<_ACEOF
43796 /* end confdefs.h.  */
43797
43798                     #include <sys/time.h>
43799                     #include <unistd.h>
43800
43801 int
43802 main ()
43803 {
43804
43805                     struct timeval tv;
43806                     gettimeofday(&tv);
43807
43808   ;
43809   return 0;
43810 }
43811 _ACEOF
43812 rm -f conftest.$ac_objext
43813 if { (ac_try="$ac_compile"
43814 case "(($ac_try" in
43815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43816   *) ac_try_echo=$ac_try;;
43817 esac
43818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43819   (eval "$ac_compile") 2>conftest.er1
43820   ac_status=$?
43821   grep -v '^ *+' conftest.er1 >conftest.err
43822   rm -f conftest.er1
43823   cat conftest.err >&5
43824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43825   (exit $ac_status); } && {
43826          test -z "$ac_c_werror_flag" ||
43827          test ! -s conftest.err
43828        } && test -s conftest.$ac_objext; then
43829   wx_cv_func_gettimeofday_has_2_args=no
43830 else
43831   echo "$as_me: failed program was:" >&5
43832 sed 's/^/| /' conftest.$ac_ext >&5
43833
43834
43835                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43836 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43837                     wx_cv_func_gettimeofday_has_2_args=unknown
43838
43839
43840 fi
43841
43842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43843
43844 fi
43845
43846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43847
43848 fi
43849 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43850 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43851
43852     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43853         cat >>confdefs.h <<\_ACEOF
43854 #define WX_GETTIMEOFDAY_NO_TZ 1
43855 _ACEOF
43856
43857     fi
43858 fi
43859
43860 if test "$wxUSE_DATETIME" = "yes"; then
43861             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43862 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43863 if test "${wx_cv_var_timezone+set}" = set; then
43864   echo $ECHO_N "(cached) $ECHO_C" >&6
43865 else
43866
43867                         ac_ext=cpp
43868 ac_cpp='$CXXCPP $CPPFLAGS'
43869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43872
43873                         cat >conftest.$ac_ext <<_ACEOF
43874 /* confdefs.h.  */
43875 _ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h.  */
43879
43880                                 #include <time.h>
43881
43882 int
43883 main ()
43884 {
43885
43886                                 int tz;
43887                                 tz = timezone;
43888
43889   ;
43890   return 0;
43891 }
43892 _ACEOF
43893 rm -f conftest.$ac_objext
43894 if { (ac_try="$ac_compile"
43895 case "(($ac_try" in
43896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43897   *) ac_try_echo=$ac_try;;
43898 esac
43899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43900   (eval "$ac_compile") 2>conftest.er1
43901   ac_status=$?
43902   grep -v '^ *+' conftest.er1 >conftest.err
43903   rm -f conftest.er1
43904   cat conftest.err >&5
43905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43906   (exit $ac_status); } && {
43907          test -z "$ac_cxx_werror_flag" ||
43908          test ! -s conftest.err
43909        } && test -s conftest.$ac_objext; then
43910
43911                                 wx_cv_var_timezone=timezone
43912
43913 else
43914   echo "$as_me: failed program was:" >&5
43915 sed 's/^/| /' conftest.$ac_ext >&5
43916
43917
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
43925                                         #include <time.h>
43926
43927 int
43928 main ()
43929 {
43930
43931                                         int tz;
43932                                         tz = _timezone;
43933
43934   ;
43935   return 0;
43936 }
43937 _ACEOF
43938 rm -f conftest.$ac_objext
43939 if { (ac_try="$ac_compile"
43940 case "(($ac_try" in
43941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43942   *) ac_try_echo=$ac_try;;
43943 esac
43944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43945   (eval "$ac_compile") 2>conftest.er1
43946   ac_status=$?
43947   grep -v '^ *+' conftest.er1 >conftest.err
43948   rm -f conftest.er1
43949   cat conftest.err >&5
43950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951   (exit $ac_status); } && {
43952          test -z "$ac_cxx_werror_flag" ||
43953          test ! -s conftest.err
43954        } && test -s conftest.$ac_objext; then
43955
43956                                         wx_cv_var_timezone=_timezone
43957
43958 else
43959   echo "$as_me: failed program was:" >&5
43960 sed 's/^/| /' conftest.$ac_ext >&5
43961
43962
43963                                         cat >conftest.$ac_ext <<_ACEOF
43964 /* confdefs.h.  */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h.  */
43969
43970                                                 #include <time.h>
43971
43972 int
43973 main ()
43974 {
43975
43976                                                 int tz;
43977                                                 tz = __timezone;
43978
43979   ;
43980   return 0;
43981 }
43982 _ACEOF
43983 rm -f conftest.$ac_objext
43984 if { (ac_try="$ac_compile"
43985 case "(($ac_try" in
43986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43987   *) ac_try_echo=$ac_try;;
43988 esac
43989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43990   (eval "$ac_compile") 2>conftest.er1
43991   ac_status=$?
43992   grep -v '^ *+' conftest.er1 >conftest.err
43993   rm -f conftest.er1
43994   cat conftest.err >&5
43995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43996   (exit $ac_status); } && {
43997          test -z "$ac_cxx_werror_flag" ||
43998          test ! -s conftest.err
43999        } && test -s conftest.$ac_objext; then
44000
44001                                                 wx_cv_var_timezone=__timezone
44002
44003 else
44004   echo "$as_me: failed program was:" >&5
44005 sed 's/^/| /' conftest.$ac_ext >&5
44006
44007
44008                                                 if test "$USE_DOS" = 0 ; then
44009                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44010 echo "$as_me: WARNING: no timezone variable" >&2;}
44011                                                 fi
44012
44013
44014 fi
44015
44016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44017
44018
44019 fi
44020
44021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44022
44023
44024 fi
44025
44026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44027                         ac_ext=c
44028 ac_cpp='$CPP $CPPFLAGS'
44029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44032
44033
44034
44035 fi
44036 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44037 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44038
44039         if test "x$wx_cv_var_timezone" != x ; then
44040         cat >>confdefs.h <<_ACEOF
44041 #define WX_TIMEZONE $wx_cv_var_timezone
44042 _ACEOF
44043
44044     fi
44045
44046
44047 for ac_func in localtime
44048 do
44049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44053   echo $ECHO_N "(cached) $ECHO_C" >&6
44054 else
44055   cat >conftest.$ac_ext <<_ACEOF
44056 /* confdefs.h.  */
44057 _ACEOF
44058 cat confdefs.h >>conftest.$ac_ext
44059 cat >>conftest.$ac_ext <<_ACEOF
44060 /* end confdefs.h.  */
44061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44063 #define $ac_func innocuous_$ac_func
44064
44065 /* System header to define __stub macros and hopefully few prototypes,
44066     which can conflict with char $ac_func (); below.
44067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44068     <limits.h> exists even on freestanding compilers.  */
44069
44070 #ifdef __STDC__
44071 # include <limits.h>
44072 #else
44073 # include <assert.h>
44074 #endif
44075
44076 #undef $ac_func
44077
44078 /* Override any GCC internal prototype to avoid an error.
44079    Use char because int might match the return type of a GCC
44080    builtin and then its argument prototype would still apply.  */
44081 #ifdef __cplusplus
44082 extern "C"
44083 #endif
44084 char $ac_func ();
44085 /* The GNU C library defines this for functions which it implements
44086     to always fail with ENOSYS.  Some functions are actually named
44087     something starting with __ and the normal name is an alias.  */
44088 #if defined __stub_$ac_func || defined __stub___$ac_func
44089 choke me
44090 #endif
44091
44092 int
44093 main ()
44094 {
44095 return $ac_func ();
44096   ;
44097   return 0;
44098 }
44099 _ACEOF
44100 rm -f conftest.$ac_objext conftest$ac_exeext
44101 if { (ac_try="$ac_link"
44102 case "(($ac_try" in
44103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44104   *) ac_try_echo=$ac_try;;
44105 esac
44106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44107   (eval "$ac_link") 2>conftest.er1
44108   ac_status=$?
44109   grep -v '^ *+' conftest.er1 >conftest.err
44110   rm -f conftest.er1
44111   cat conftest.err >&5
44112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113   (exit $ac_status); } && {
44114          test -z "$ac_c_werror_flag" ||
44115          test ! -s conftest.err
44116        } && test -s conftest$ac_exeext &&
44117        $as_test_x conftest$ac_exeext; then
44118   eval "$as_ac_var=yes"
44119 else
44120   echo "$as_me: failed program was:" >&5
44121 sed 's/^/| /' conftest.$ac_ext >&5
44122
44123         eval "$as_ac_var=no"
44124 fi
44125
44126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44127       conftest$ac_exeext conftest.$ac_ext
44128 fi
44129 ac_res=`eval echo '${'$as_ac_var'}'`
44130                { echo "$as_me:$LINENO: result: $ac_res" >&5
44131 echo "${ECHO_T}$ac_res" >&6; }
44132 if test `eval echo '${'$as_ac_var'}'` = yes; then
44133   cat >>confdefs.h <<_ACEOF
44134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44135 _ACEOF
44136
44137 fi
44138 done
44139
44140
44141     if test "$ac_cv_func_localtime" = "yes"; then
44142         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44143 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44144 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44145   echo $ECHO_N "(cached) $ECHO_C" >&6
44146 else
44147
44148             cat >conftest.$ac_ext <<_ACEOF
44149 /* confdefs.h.  */
44150 _ACEOF
44151 cat confdefs.h >>conftest.$ac_ext
44152 cat >>conftest.$ac_ext <<_ACEOF
44153 /* end confdefs.h.  */
44154
44155                     #include <time.h>
44156
44157 int
44158 main ()
44159 {
44160
44161                     struct tm tm;
44162                     tm.tm_gmtoff++;
44163
44164   ;
44165   return 0;
44166 }
44167 _ACEOF
44168 rm -f conftest.$ac_objext
44169 if { (ac_try="$ac_compile"
44170 case "(($ac_try" in
44171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44172   *) ac_try_echo=$ac_try;;
44173 esac
44174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44175   (eval "$ac_compile") 2>conftest.er1
44176   ac_status=$?
44177   grep -v '^ *+' conftest.er1 >conftest.err
44178   rm -f conftest.er1
44179   cat conftest.err >&5
44180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44181   (exit $ac_status); } && {
44182          test -z "$ac_c_werror_flag" ||
44183          test ! -s conftest.err
44184        } && test -s conftest.$ac_objext; then
44185
44186                     wx_cv_struct_tm_has_gmtoff=yes
44187
44188 else
44189   echo "$as_me: failed program was:" >&5
44190 sed 's/^/| /' conftest.$ac_ext >&5
44191
44192         wx_cv_struct_tm_has_gmtoff=no
44193
44194 fi
44195
44196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44197
44198 fi
44199 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44200 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44201     fi
44202
44203     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44204         cat >>confdefs.h <<\_ACEOF
44205 #define WX_GMTOFF_IN_TM 1
44206 _ACEOF
44207
44208     fi
44209
44210     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44211 fi
44212
44213
44214 if test "$wxUSE_SOCKETS" = "yes"; then
44215     if test "$wxUSE_MGL" = 1; then
44216         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44217 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44218         wxUSE_SOCKETS="no"
44219     fi
44220 fi
44221
44222 if test "$wxUSE_SOCKETS" = "yes"; then
44223         if test "$TOOLKIT" != "MSW"; then
44224                 { echo "$as_me:$LINENO: checking for socket" >&5
44225 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44226 if test "${ac_cv_func_socket+set}" = set; then
44227   echo $ECHO_N "(cached) $ECHO_C" >&6
44228 else
44229   cat >conftest.$ac_ext <<_ACEOF
44230 /* confdefs.h.  */
44231 _ACEOF
44232 cat confdefs.h >>conftest.$ac_ext
44233 cat >>conftest.$ac_ext <<_ACEOF
44234 /* end confdefs.h.  */
44235 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44237 #define socket innocuous_socket
44238
44239 /* System header to define __stub macros and hopefully few prototypes,
44240     which can conflict with char socket (); below.
44241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44242     <limits.h> exists even on freestanding compilers.  */
44243
44244 #ifdef __STDC__
44245 # include <limits.h>
44246 #else
44247 # include <assert.h>
44248 #endif
44249
44250 #undef socket
44251
44252 /* Override any GCC internal prototype to avoid an error.
44253    Use char because int might match the return type of a GCC
44254    builtin and then its argument prototype would still apply.  */
44255 #ifdef __cplusplus
44256 extern "C"
44257 #endif
44258 char socket ();
44259 /* The GNU C library defines this for functions which it implements
44260     to always fail with ENOSYS.  Some functions are actually named
44261     something starting with __ and the normal name is an alias.  */
44262 #if defined __stub_socket || defined __stub___socket
44263 choke me
44264 #endif
44265
44266 int
44267 main ()
44268 {
44269 return socket ();
44270   ;
44271   return 0;
44272 }
44273 _ACEOF
44274 rm -f conftest.$ac_objext conftest$ac_exeext
44275 if { (ac_try="$ac_link"
44276 case "(($ac_try" in
44277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44278   *) ac_try_echo=$ac_try;;
44279 esac
44280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44281   (eval "$ac_link") 2>conftest.er1
44282   ac_status=$?
44283   grep -v '^ *+' conftest.er1 >conftest.err
44284   rm -f conftest.er1
44285   cat conftest.err >&5
44286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44287   (exit $ac_status); } && {
44288          test -z "$ac_c_werror_flag" ||
44289          test ! -s conftest.err
44290        } && test -s conftest$ac_exeext &&
44291        $as_test_x conftest$ac_exeext; then
44292   ac_cv_func_socket=yes
44293 else
44294   echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44296
44297         ac_cv_func_socket=no
44298 fi
44299
44300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44301       conftest$ac_exeext conftest.$ac_ext
44302 fi
44303 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44304 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44305 if test $ac_cv_func_socket = yes; then
44306   :
44307 else
44308
44309                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44310 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44311 if test "${ac_cv_lib_socket_socket+set}" = set; then
44312   echo $ECHO_N "(cached) $ECHO_C" >&6
44313 else
44314   ac_check_lib_save_LIBS=$LIBS
44315 LIBS="-lsocket  $LIBS"
44316 cat >conftest.$ac_ext <<_ACEOF
44317 /* confdefs.h.  */
44318 _ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h.  */
44322
44323 /* Override any GCC internal prototype to avoid an error.
44324    Use char because int might match the return type of a GCC
44325    builtin and then its argument prototype would still apply.  */
44326 #ifdef __cplusplus
44327 extern "C"
44328 #endif
44329 char socket ();
44330 int
44331 main ()
44332 {
44333 return socket ();
44334   ;
44335   return 0;
44336 }
44337 _ACEOF
44338 rm -f conftest.$ac_objext 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>conftest.er1
44346   ac_status=$?
44347   grep -v '^ *+' conftest.er1 >conftest.err
44348   rm -f conftest.er1
44349   cat conftest.err >&5
44350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44351   (exit $ac_status); } && {
44352          test -z "$ac_c_werror_flag" ||
44353          test ! -s conftest.err
44354        } && test -s conftest$ac_exeext &&
44355        $as_test_x conftest$ac_exeext; then
44356   ac_cv_lib_socket_socket=yes
44357 else
44358   echo "$as_me: failed program was:" >&5
44359 sed 's/^/| /' conftest.$ac_ext >&5
44360
44361         ac_cv_lib_socket_socket=no
44362 fi
44363
44364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44365       conftest$ac_exeext conftest.$ac_ext
44366 LIBS=$ac_check_lib_save_LIBS
44367 fi
44368 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44369 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44370 if test $ac_cv_lib_socket_socket = yes; then
44371   if test "$INET_LINK" != " -lsocket"; then
44372                         INET_LINK="$INET_LINK -lsocket"
44373                     fi
44374 else
44375
44376                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44377 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44378                         wxUSE_SOCKETS=no
44379
44380
44381 fi
44382
44383
44384
44385 fi
44386
44387     fi
44388 fi
44389
44390 if test "$wxUSE_SOCKETS" = "yes" ; then
44391                 if test "$TOOLKIT" != "MSW"; then
44392                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44393 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44394 if test "${wx_cv_type_getsockname3+set}" = set; then
44395   echo $ECHO_N "(cached) $ECHO_C" >&6
44396 else
44397
44398                 ac_ext=cpp
44399 ac_cpp='$CXXCPP $CPPFLAGS'
44400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44403
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 <sys/types.h>
44412                         #include <sys/socket.h>
44413
44414 int
44415 main ()
44416 {
44417
44418                         socklen_t len;
44419                         getsockname(0, 0, &len);
44420
44421   ;
44422   return 0;
44423 }
44424 _ACEOF
44425 rm -f conftest.$ac_objext
44426 if { (ac_try="$ac_compile"
44427 case "(($ac_try" in
44428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44429   *) ac_try_echo=$ac_try;;
44430 esac
44431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44432   (eval "$ac_compile") 2>conftest.er1
44433   ac_status=$?
44434   grep -v '^ *+' conftest.er1 >conftest.err
44435   rm -f conftest.er1
44436   cat conftest.err >&5
44437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44438   (exit $ac_status); } && {
44439          test -z "$ac_cxx_werror_flag" ||
44440          test ! -s conftest.err
44441        } && test -s conftest.$ac_objext; then
44442   wx_cv_type_getsockname3=socklen_t
44443 else
44444   echo "$as_me: failed program was:" >&5
44445 sed 's/^/| /' conftest.$ac_ext >&5
44446
44447
44448                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44449                         if test "$GCC" = yes ; then
44450                             CFLAGS="-Werror $CFLAGS"
44451                         fi
44452
44453                         cat >conftest.$ac_ext <<_ACEOF
44454 /* confdefs.h.  */
44455 _ACEOF
44456 cat confdefs.h >>conftest.$ac_ext
44457 cat >>conftest.$ac_ext <<_ACEOF
44458 /* end confdefs.h.  */
44459
44460                                 #include <sys/types.h>
44461                                 #include <sys/socket.h>
44462
44463 int
44464 main ()
44465 {
44466
44467                                 size_t len;
44468                                 getsockname(0, 0, &len);
44469
44470   ;
44471   return 0;
44472 }
44473 _ACEOF
44474 rm -f conftest.$ac_objext
44475 if { (ac_try="$ac_compile"
44476 case "(($ac_try" in
44477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44478   *) ac_try_echo=$ac_try;;
44479 esac
44480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44481   (eval "$ac_compile") 2>conftest.er1
44482   ac_status=$?
44483   grep -v '^ *+' conftest.er1 >conftest.err
44484   rm -f conftest.er1
44485   cat conftest.err >&5
44486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487   (exit $ac_status); } && {
44488          test -z "$ac_cxx_werror_flag" ||
44489          test ! -s conftest.err
44490        } && test -s conftest.$ac_objext; then
44491   wx_cv_type_getsockname3=size_t
44492 else
44493   echo "$as_me: failed program was:" >&5
44494 sed 's/^/| /' conftest.$ac_ext >&5
44495
44496         cat >conftest.$ac_ext <<_ACEOF
44497 /* confdefs.h.  */
44498 _ACEOF
44499 cat confdefs.h >>conftest.$ac_ext
44500 cat >>conftest.$ac_ext <<_ACEOF
44501 /* end confdefs.h.  */
44502
44503                                     #include <sys/types.h>
44504                                     #include <sys/socket.h>
44505
44506 int
44507 main ()
44508 {
44509
44510                                     int len;
44511                                     getsockname(0, 0, &len);
44512
44513   ;
44514   return 0;
44515 }
44516 _ACEOF
44517 rm -f conftest.$ac_objext
44518 if { (ac_try="$ac_compile"
44519 case "(($ac_try" in
44520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44521   *) ac_try_echo=$ac_try;;
44522 esac
44523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44524   (eval "$ac_compile") 2>conftest.er1
44525   ac_status=$?
44526   grep -v '^ *+' conftest.er1 >conftest.err
44527   rm -f conftest.er1
44528   cat conftest.err >&5
44529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44530   (exit $ac_status); } && {
44531          test -z "$ac_cxx_werror_flag" ||
44532          test ! -s conftest.err
44533        } && test -s conftest.$ac_objext; then
44534   wx_cv_type_getsockname3=int
44535 else
44536   echo "$as_me: failed program was:" >&5
44537 sed 's/^/| /' conftest.$ac_ext >&5
44538
44539         wx_cv_type_getsockname3=unknown
44540
44541 fi
44542
44543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44544
44545 fi
44546
44547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44548
44549                         CFLAGS="$CFLAGS_OLD"
44550
44551
44552 fi
44553
44554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44555                 ac_ext=c
44556 ac_cpp='$CPP $CPPFLAGS'
44557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44560
44561
44562 fi
44563 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44564 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44565
44566         if test "$wx_cv_type_getsockname3" = "unknown"; then
44567             wxUSE_SOCKETS=no
44568             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44569 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44570         else
44571             cat >>confdefs.h <<_ACEOF
44572 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44573 _ACEOF
44574
44575         fi
44576                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44577 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44578 if test "${wx_cv_type_getsockopt5+set}" = set; then
44579   echo $ECHO_N "(cached) $ECHO_C" >&6
44580 else
44581
44582                                                                                                 ac_ext=cpp
44583 ac_cpp='$CXXCPP $CPPFLAGS'
44584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44587
44588                 cat >conftest.$ac_ext <<_ACEOF
44589 /* confdefs.h.  */
44590 _ACEOF
44591 cat confdefs.h >>conftest.$ac_ext
44592 cat >>conftest.$ac_ext <<_ACEOF
44593 /* end confdefs.h.  */
44594
44595                         #include <sys/types.h>
44596                         #include <sys/socket.h>
44597
44598 int
44599 main ()
44600 {
44601
44602                         socklen_t len;
44603                         getsockopt(0, 0, 0, 0, &len);
44604
44605   ;
44606   return 0;
44607 }
44608 _ACEOF
44609 rm -f conftest.$ac_objext
44610 if { (ac_try="$ac_compile"
44611 case "(($ac_try" in
44612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44613   *) ac_try_echo=$ac_try;;
44614 esac
44615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44616   (eval "$ac_compile") 2>conftest.er1
44617   ac_status=$?
44618   grep -v '^ *+' conftest.er1 >conftest.err
44619   rm -f conftest.er1
44620   cat conftest.err >&5
44621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622   (exit $ac_status); } && {
44623          test -z "$ac_cxx_werror_flag" ||
44624          test ! -s conftest.err
44625        } && test -s conftest.$ac_objext; then
44626   wx_cv_type_getsockopt5=socklen_t
44627 else
44628   echo "$as_me: failed program was:" >&5
44629 sed 's/^/| /' conftest.$ac_ext >&5
44630
44631
44632                         cat >conftest.$ac_ext <<_ACEOF
44633 /* confdefs.h.  */
44634 _ACEOF
44635 cat confdefs.h >>conftest.$ac_ext
44636 cat >>conftest.$ac_ext <<_ACEOF
44637 /* end confdefs.h.  */
44638
44639                                 #include <sys/types.h>
44640                                 #include <sys/socket.h>
44641
44642 int
44643 main ()
44644 {
44645
44646                                 size_t len;
44647                                 getsockopt(0, 0, 0, 0, &len);
44648
44649   ;
44650   return 0;
44651 }
44652 _ACEOF
44653 rm -f conftest.$ac_objext
44654 if { (ac_try="$ac_compile"
44655 case "(($ac_try" in
44656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44657   *) ac_try_echo=$ac_try;;
44658 esac
44659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44660   (eval "$ac_compile") 2>conftest.er1
44661   ac_status=$?
44662   grep -v '^ *+' conftest.er1 >conftest.err
44663   rm -f conftest.er1
44664   cat conftest.err >&5
44665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666   (exit $ac_status); } && {
44667          test -z "$ac_cxx_werror_flag" ||
44668          test ! -s conftest.err
44669        } && test -s conftest.$ac_objext; then
44670   wx_cv_type_getsockopt5=size_t
44671 else
44672   echo "$as_me: failed program was:" >&5
44673 sed 's/^/| /' conftest.$ac_ext >&5
44674
44675         cat >conftest.$ac_ext <<_ACEOF
44676 /* confdefs.h.  */
44677 _ACEOF
44678 cat confdefs.h >>conftest.$ac_ext
44679 cat >>conftest.$ac_ext <<_ACEOF
44680 /* end confdefs.h.  */
44681
44682                                     #include <sys/types.h>
44683                                     #include <sys/socket.h>
44684
44685 int
44686 main ()
44687 {
44688
44689                                     int len;
44690                                     getsockopt(0, 0, 0, 0, &len);
44691
44692   ;
44693   return 0;
44694 }
44695 _ACEOF
44696 rm -f conftest.$ac_objext
44697 if { (ac_try="$ac_compile"
44698 case "(($ac_try" in
44699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44700   *) ac_try_echo=$ac_try;;
44701 esac
44702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44703   (eval "$ac_compile") 2>conftest.er1
44704   ac_status=$?
44705   grep -v '^ *+' conftest.er1 >conftest.err
44706   rm -f conftest.er1
44707   cat conftest.err >&5
44708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709   (exit $ac_status); } && {
44710          test -z "$ac_cxx_werror_flag" ||
44711          test ! -s conftest.err
44712        } && test -s conftest.$ac_objext; then
44713   wx_cv_type_getsockopt5=int
44714 else
44715   echo "$as_me: failed program was:" >&5
44716 sed 's/^/| /' conftest.$ac_ext >&5
44717
44718         wx_cv_type_getsockopt5=unknown
44719
44720 fi
44721
44722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44723
44724 fi
44725
44726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44727
44728
44729 fi
44730
44731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44732                 ac_ext=c
44733 ac_cpp='$CPP $CPPFLAGS'
44734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44737
44738
44739 fi
44740 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44741 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44742
44743         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44744             wxUSE_SOCKETS=no
44745             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44746 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44747         else
44748             cat >>confdefs.h <<_ACEOF
44749 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44750 _ACEOF
44751
44752         fi
44753     fi
44754 fi
44755
44756 if test "$wxUSE_SOCKETS" = "yes" ; then
44757     if test "$wxUSE_IPV6" = "yes"; then
44758         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44759 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44760 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44761   echo $ECHO_N "(cached) $ECHO_C" >&6
44762 else
44763
44764                 cat >conftest.$ac_ext <<_ACEOF
44765 /* confdefs.h.  */
44766 _ACEOF
44767 cat confdefs.h >>conftest.$ac_ext
44768 cat >>conftest.$ac_ext <<_ACEOF
44769 /* end confdefs.h.  */
44770
44771                         #include <sys/types.h>
44772                         #include <sys/socket.h>
44773                         #include <netinet/in.h>
44774
44775 int
44776 main ()
44777 {
44778
44779                         struct sockaddr_in6 sa6;
44780
44781   ;
44782   return 0;
44783 }
44784 _ACEOF
44785 rm -f conftest.$ac_objext
44786 if { (ac_try="$ac_compile"
44787 case "(($ac_try" in
44788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44789   *) ac_try_echo=$ac_try;;
44790 esac
44791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44792   (eval "$ac_compile") 2>conftest.er1
44793   ac_status=$?
44794   grep -v '^ *+' conftest.er1 >conftest.err
44795   rm -f conftest.er1
44796   cat conftest.err >&5
44797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44798   (exit $ac_status); } && {
44799          test -z "$ac_c_werror_flag" ||
44800          test ! -s conftest.err
44801        } && test -s conftest.$ac_objext; then
44802   wx_cv_type_sockaddr_in6=yes
44803 else
44804   echo "$as_me: failed program was:" >&5
44805 sed 's/^/| /' conftest.$ac_ext >&5
44806
44807         wx_cv_type_sockaddr_in6=no
44808
44809 fi
44810
44811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44812
44813
44814 fi
44815 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44816 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44817
44818         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44819             cat >>confdefs.h <<\_ACEOF
44820 #define wxUSE_IPV6 1
44821 _ACEOF
44822
44823         else
44824             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44825 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44826         fi
44827     fi
44828
44829     cat >>confdefs.h <<\_ACEOF
44830 #define wxUSE_SOCKETS 1
44831 _ACEOF
44832
44833     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44834 fi
44835
44836 if test "$wxUSE_PROTOCOL" = "yes"; then
44837     if test "$wxUSE_SOCKETS" != "yes"; then
44838         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44839 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44840         wxUSE_PROTOCOL=no
44841     fi
44842 fi
44843
44844 if test "$wxUSE_PROTOCOL" = "yes"; then
44845     cat >>confdefs.h <<\_ACEOF
44846 #define wxUSE_PROTOCOL 1
44847 _ACEOF
44848
44849
44850     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44851         cat >>confdefs.h <<\_ACEOF
44852 #define wxUSE_PROTOCOL_HTTP 1
44853 _ACEOF
44854
44855     fi
44856     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44857         cat >>confdefs.h <<\_ACEOF
44858 #define wxUSE_PROTOCOL_FTP 1
44859 _ACEOF
44860
44861     fi
44862     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44863         cat >>confdefs.h <<\_ACEOF
44864 #define wxUSE_PROTOCOL_FILE 1
44865 _ACEOF
44866
44867     fi
44868 else
44869     if test "$wxUSE_FS_INET" = "yes"; then
44870         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44871 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44872         wxUSE_FS_INET="no"
44873     fi
44874 fi
44875
44876 if test "$wxUSE_URL" = "yes"; then
44877     if test "$wxUSE_PROTOCOL" != "yes"; then
44878         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44879 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44880         wxUSE_URL=no
44881     fi
44882     if test "$wxUSE_URL" = "yes"; then
44883         cat >>confdefs.h <<\_ACEOF
44884 #define wxUSE_URL 1
44885 _ACEOF
44886
44887     fi
44888 fi
44889
44890 if test "$wxUSE_VARIANT" = "yes"; then
44891     cat >>confdefs.h <<\_ACEOF
44892 #define wxUSE_VARIANT 1
44893 _ACEOF
44894
44895 fi
44896
44897 if test "$wxUSE_FS_INET" = "yes"; then
44898   cat >>confdefs.h <<\_ACEOF
44899 #define wxUSE_FS_INET 1
44900 _ACEOF
44901
44902 fi
44903
44904
44905 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44906     wxUSE_JOYSTICK=no
44907
44908         if test "$TOOLKIT" = "MSW"; then
44909         wxUSE_JOYSTICK=yes
44910
44911         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
44912         if test "$USE_DARWIN" = 1; then
44913                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44914 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44915             ac_ext=cpp
44916 ac_cpp='$CXXCPP $CPPFLAGS'
44917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44920
44921             cat >conftest.$ac_ext <<_ACEOF
44922 /* confdefs.h.  */
44923 _ACEOF
44924 cat confdefs.h >>conftest.$ac_ext
44925 cat >>conftest.$ac_ext <<_ACEOF
44926 /* end confdefs.h.  */
44927  #include <IOKit/hid/IOHIDLib.h>
44928 int
44929 main ()
44930 {
44931  IOHIDQueueInterface *qi = NULL;
44932                               IOHIDCallbackFunction cb = NULL;
44933                               qi->setEventCallout(NULL, cb, NULL, NULL);
44934   ;
44935   return 0;
44936 }
44937 _ACEOF
44938 rm -f conftest.$ac_objext
44939 if { (ac_try="$ac_compile"
44940 case "(($ac_try" in
44941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44942   *) ac_try_echo=$ac_try;;
44943 esac
44944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44945   (eval "$ac_compile") 2>conftest.er1
44946   ac_status=$?
44947   grep -v '^ *+' conftest.er1 >conftest.err
44948   rm -f conftest.er1
44949   cat conftest.err >&5
44950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44951   (exit $ac_status); } && {
44952          test -z "$ac_cxx_werror_flag" ||
44953          test ! -s conftest.err
44954        } && test -s conftest.$ac_objext; then
44955    wxUSE_JOYSTICK=yes
44956
44957 else
44958   echo "$as_me: failed program was:" >&5
44959 sed 's/^/| /' conftest.$ac_ext >&5
44960
44961
44962 fi
44963
44964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44965             ac_ext=c
44966 ac_cpp='$CPP $CPPFLAGS'
44967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44970
44971             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44972 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44973         fi
44974
44975         else
44976                 if test "$wxUSE_MGL" != 1; then
44977
44978 for ac_header in linux/joystick.h
44979 do
44980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44984   echo $ECHO_N "(cached) $ECHO_C" >&6
44985 else
44986   cat >conftest.$ac_ext <<_ACEOF
44987 /* confdefs.h.  */
44988 _ACEOF
44989 cat confdefs.h >>conftest.$ac_ext
44990 cat >>conftest.$ac_ext <<_ACEOF
44991 /* end confdefs.h.  */
44992 $ac_includes_default
44993
44994 #include <$ac_header>
44995 _ACEOF
44996 rm -f conftest.$ac_objext
44997 if { (ac_try="$ac_compile"
44998 case "(($ac_try" in
44999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45000   *) ac_try_echo=$ac_try;;
45001 esac
45002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45003   (eval "$ac_compile") 2>conftest.er1
45004   ac_status=$?
45005   grep -v '^ *+' conftest.er1 >conftest.err
45006   rm -f conftest.er1
45007   cat conftest.err >&5
45008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45009   (exit $ac_status); } && {
45010          test -z "$ac_c_werror_flag" ||
45011          test ! -s conftest.err
45012        } && test -s conftest.$ac_objext; then
45013   eval "$as_ac_Header=yes"
45014 else
45015   echo "$as_me: failed program was:" >&5
45016 sed 's/^/| /' conftest.$ac_ext >&5
45017
45018         eval "$as_ac_Header=no"
45019 fi
45020
45021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45022 fi
45023 ac_res=`eval echo '${'$as_ac_Header'}'`
45024                { echo "$as_me:$LINENO: result: $ac_res" >&5
45025 echo "${ECHO_T}$ac_res" >&6; }
45026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45027   cat >>confdefs.h <<_ACEOF
45028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45029 _ACEOF
45030  wxUSE_JOYSTICK=yes
45031 fi
45032
45033 done
45034
45035         fi
45036     fi
45037
45038     if test "$wxUSE_JOYSTICK" = "yes"; then
45039         cat >>confdefs.h <<\_ACEOF
45040 #define wxUSE_JOYSTICK 1
45041 _ACEOF
45042
45043         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45044     else
45045         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45046 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45047     fi
45048 fi
45049
45050
45051
45052 if test "$wxUSE_FONTENUM" = "yes" ; then
45053   cat >>confdefs.h <<\_ACEOF
45054 #define wxUSE_FONTENUM 1
45055 _ACEOF
45056
45057 fi
45058
45059 if test "$wxUSE_FONTMAP" = "yes" ; then
45060   cat >>confdefs.h <<\_ACEOF
45061 #define wxUSE_FONTMAP 1
45062 _ACEOF
45063
45064 fi
45065
45066 if test "$wxUSE_UNICODE" = "yes" ; then
45067   cat >>confdefs.h <<\_ACEOF
45068 #define wxUSE_UNICODE 1
45069 _ACEOF
45070
45071
45072   if test "$USE_WIN32" != 1; then
45073       wxUSE_UNICODE_MSLU=no
45074   fi
45075
45076   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45077         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45078 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45079 if test "${ac_cv_lib_unicows_main+set}" = set; then
45080   echo $ECHO_N "(cached) $ECHO_C" >&6
45081 else
45082   ac_check_lib_save_LIBS=$LIBS
45083 LIBS="-lunicows  $LIBS"
45084 cat >conftest.$ac_ext <<_ACEOF
45085 /* confdefs.h.  */
45086 _ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h.  */
45090
45091
45092 int
45093 main ()
45094 {
45095 return main ();
45096   ;
45097   return 0;
45098 }
45099 _ACEOF
45100 rm -f conftest.$ac_objext conftest$ac_exeext
45101 if { (ac_try="$ac_link"
45102 case "(($ac_try" in
45103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45104   *) ac_try_echo=$ac_try;;
45105 esac
45106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45107   (eval "$ac_link") 2>conftest.er1
45108   ac_status=$?
45109   grep -v '^ *+' conftest.er1 >conftest.err
45110   rm -f conftest.er1
45111   cat conftest.err >&5
45112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113   (exit $ac_status); } && {
45114          test -z "$ac_c_werror_flag" ||
45115          test ! -s conftest.err
45116        } && test -s conftest$ac_exeext &&
45117        $as_test_x conftest$ac_exeext; then
45118   ac_cv_lib_unicows_main=yes
45119 else
45120   echo "$as_me: failed program was:" >&5
45121 sed 's/^/| /' conftest.$ac_ext >&5
45122
45123         ac_cv_lib_unicows_main=no
45124 fi
45125
45126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45127       conftest$ac_exeext conftest.$ac_ext
45128 LIBS=$ac_check_lib_save_LIBS
45129 fi
45130 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45131 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45132 if test $ac_cv_lib_unicows_main = yes; then
45133
45134                 cat >>confdefs.h <<\_ACEOF
45135 #define wxUSE_UNICODE_MSLU 1
45136 _ACEOF
45137
45138
45139 else
45140
45141                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45142                              Applications will only run on Windows NT/2000/XP!" >&5
45143 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45144                              Applications will only run on Windows NT/2000/XP!" >&2;}
45145                 wxUSE_UNICODE_MSLU=no
45146
45147 fi
45148
45149     fi
45150 fi
45151
45152 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45153     cat >>confdefs.h <<\_ACEOF
45154 #define wxUSE_UNICODE_UTF8 1
45155 _ACEOF
45156
45157
45158     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45159         cat >>confdefs.h <<\_ACEOF
45160 #define wxUSE_UTF8_LOCALE_ONLY 1
45161 _ACEOF
45162
45163     fi
45164 fi
45165
45166
45167 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45168     cat >>confdefs.h <<\_ACEOF
45169 #define wxUSE_CONSTRAINTS 1
45170 _ACEOF
45171
45172     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45173 fi
45174
45175 if test "$wxUSE_MDI" = "yes"; then
45176     cat >>confdefs.h <<\_ACEOF
45177 #define wxUSE_MDI 1
45178 _ACEOF
45179
45180
45181     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45182         cat >>confdefs.h <<\_ACEOF
45183 #define wxUSE_MDI_ARCHITECTURE 1
45184 _ACEOF
45185
45186         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45187     fi
45188 fi
45189
45190 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45191     cat >>confdefs.h <<\_ACEOF
45192 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45193 _ACEOF
45194
45195     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45196 fi
45197
45198 if test "$wxUSE_HELP" = "yes"; then
45199     cat >>confdefs.h <<\_ACEOF
45200 #define wxUSE_HELP 1
45201 _ACEOF
45202
45203     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45204
45205     if test "$wxUSE_MSW" = 1; then
45206       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45207         cat >>confdefs.h <<\_ACEOF
45208 #define wxUSE_MS_HTML_HELP 1
45209 _ACEOF
45210
45211       fi
45212     fi
45213
45214     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45215       if test "$wxUSE_HTML" = "yes"; then
45216         cat >>confdefs.h <<\_ACEOF
45217 #define wxUSE_WXHTML_HELP 1
45218 _ACEOF
45219
45220       else
45221         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45222 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45223         wxUSE_WXHTML_HELP=no
45224       fi
45225     fi
45226 fi
45227
45228 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45229     cat >>confdefs.h <<\_ACEOF
45230 #define wxUSE_PRINTING_ARCHITECTURE 1
45231 _ACEOF
45232
45233     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45234 fi
45235
45236 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45237   cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_POSTSCRIPT 1
45239 _ACEOF
45240
45241 fi
45242
45243 cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45245 _ACEOF
45246
45247
45248 if test "$wxUSE_SVG" = "yes"; then
45249     cat >>confdefs.h <<\_ACEOF
45250 #define wxUSE_SVG 1
45251 _ACEOF
45252
45253 fi
45254
45255
45256 if test "$wxUSE_METAFILE" = "yes"; then
45257     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45258         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45259 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45260         wxUSE_METAFILE=no
45261     fi
45262 fi
45263
45264
45265 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45266                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45267                           -o "$wxUSE_OLE"     = "yes" \
45268                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45269     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45270 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45271 if test "${ac_cv_header_ole2_h+set}" = set; then
45272   echo $ECHO_N "(cached) $ECHO_C" >&6
45273 else
45274   cat >conftest.$ac_ext <<_ACEOF
45275 /* confdefs.h.  */
45276 _ACEOF
45277 cat confdefs.h >>conftest.$ac_ext
45278 cat >>conftest.$ac_ext <<_ACEOF
45279 /* end confdefs.h.  */
45280
45281
45282 #include <ole2.h>
45283 _ACEOF
45284 rm -f conftest.$ac_objext
45285 if { (ac_try="$ac_compile"
45286 case "(($ac_try" in
45287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45288   *) ac_try_echo=$ac_try;;
45289 esac
45290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45291   (eval "$ac_compile") 2>conftest.er1
45292   ac_status=$?
45293   grep -v '^ *+' conftest.er1 >conftest.err
45294   rm -f conftest.er1
45295   cat conftest.err >&5
45296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45297   (exit $ac_status); } && {
45298          test -z "$ac_c_werror_flag" ||
45299          test ! -s conftest.err
45300        } && test -s conftest.$ac_objext; then
45301   ac_cv_header_ole2_h=yes
45302 else
45303   echo "$as_me: failed program was:" >&5
45304 sed 's/^/| /' conftest.$ac_ext >&5
45305
45306         ac_cv_header_ole2_h=no
45307 fi
45308
45309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45310 fi
45311 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45312 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45313
45314
45315
45316     if test "$ac_cv_header_ole2_h" = "yes" ; then
45317         if test "$GCC" = yes ; then
45318             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45319 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45320             cat >conftest.$ac_ext <<_ACEOF
45321 /* confdefs.h.  */
45322 _ACEOF
45323 cat confdefs.h >>conftest.$ac_ext
45324 cat >>conftest.$ac_ext <<_ACEOF
45325 /* end confdefs.h.  */
45326 #include <windows.h>
45327                             #include <ole2.h>
45328 int
45329 main ()
45330 {
45331
45332   ;
45333   return 0;
45334 }
45335 _ACEOF
45336 rm -f conftest.$ac_objext
45337 if { (ac_try="$ac_compile"
45338 case "(($ac_try" in
45339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45340   *) ac_try_echo=$ac_try;;
45341 esac
45342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45343   (eval "$ac_compile") 2>conftest.er1
45344   ac_status=$?
45345   grep -v '^ *+' conftest.er1 >conftest.err
45346   rm -f conftest.er1
45347   cat conftest.err >&5
45348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349   (exit $ac_status); } && {
45350          test -z "$ac_c_werror_flag" ||
45351          test ! -s conftest.err
45352        } && test -s conftest.$ac_objext; then
45353   { echo "$as_me:$LINENO: result: no" >&5
45354 echo "${ECHO_T}no" >&6; }
45355 else
45356   echo "$as_me: failed program was:" >&5
45357 sed 's/^/| /' conftest.$ac_ext >&5
45358
45359         { echo "$as_me:$LINENO: result: yes" >&5
45360 echo "${ECHO_T}yes" >&6; }
45361                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45362 fi
45363
45364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45365             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45366             if test "$wxUSE_OLE" = "yes" ; then
45367                 cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_OLE 1
45369 _ACEOF
45370
45371                 cat >>confdefs.h <<\_ACEOF
45372 #define wxUSE_OLE_AUTOMATION 1
45373 _ACEOF
45374
45375                 cat >>confdefs.h <<\_ACEOF
45376 #define wxUSE_ACTIVEX 1
45377 _ACEOF
45378
45379                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45380             fi
45381         fi
45382
45383                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45384             cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_DATAOBJ 1
45386 _ACEOF
45387
45388         fi
45389     else
45390         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45391 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45392
45393         wxUSE_CLIPBOARD=no
45394         wxUSE_DRAG_AND_DROP=no
45395         wxUSE_DATAOBJ=no
45396         wxUSE_OLE=no
45397     fi
45398
45399     if test "$wxUSE_METAFILE" = "yes"; then
45400         cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_METAFILE 1
45402 _ACEOF
45403
45404
45405                 cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_ENH_METAFILE 1
45407 _ACEOF
45408
45409     fi
45410 fi
45411
45412 if test "$wxUSE_IPC" = "yes"; then
45413     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45414         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45415 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45416         wxUSE_IPC=no
45417     fi
45418
45419     if test "$wxUSE_IPC" = "yes"; then
45420         cat >>confdefs.h <<\_ACEOF
45421 #define wxUSE_IPC 1
45422 _ACEOF
45423
45424         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45425     fi
45426 fi
45427
45428 if test "$wxUSE_DATAOBJ" = "yes"; then
45429     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45430         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45431 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45432         wxUSE_DATAOBJ=no
45433     else
45434         cat >>confdefs.h <<\_ACEOF
45435 #define wxUSE_DATAOBJ 1
45436 _ACEOF
45437
45438     fi
45439 else
45440     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45441 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45442     wxUSE_CLIPBOARD=no
45443     wxUSE_DRAG_AND_DROP=no
45444 fi
45445
45446 if test "$wxUSE_CLIPBOARD" = "yes"; then
45447     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45448         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45449 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45450         wxUSE_CLIPBOARD=no
45451     fi
45452
45453     if test "$wxUSE_CLIPBOARD" = "yes"; then
45454         cat >>confdefs.h <<\_ACEOF
45455 #define wxUSE_CLIPBOARD 1
45456 _ACEOF
45457
45458     fi
45459 fi
45460
45461 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45462     if test "$wxUSE_GTK" = 1; then
45463         if test "$WXGTK12" != 1; then
45464             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45465 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45466             wxUSE_DRAG_AND_DROP=no
45467         fi
45468     fi
45469
45470     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45471             "$wxUSE_DFB" = 1; then
45472         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45473 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45474         wxUSE_DRAG_AND_DROP=no
45475     fi
45476
45477     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45478         cat >>confdefs.h <<\_ACEOF
45479 #define wxUSE_DRAG_AND_DROP 1
45480 _ACEOF
45481
45482     fi
45483
45484 fi
45485
45486 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45487     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45488 fi
45489
45490 if test "$wxUSE_CLIPBOARD" = "yes"; then
45491     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45492 fi
45493
45494 if test "$wxUSE_SPLINES" = "yes" ; then
45495   cat >>confdefs.h <<\_ACEOF
45496 #define wxUSE_SPLINES 1
45497 _ACEOF
45498
45499 fi
45500
45501 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45502   cat >>confdefs.h <<\_ACEOF
45503 #define wxUSE_MOUSEWHEEL 1
45504 _ACEOF
45505
45506 fi
45507
45508
45509 USES_CONTROLS=0
45510 if test "$wxUSE_CONTROLS" = "yes"; then
45511   USES_CONTROLS=1
45512 fi
45513
45514 if test "$wxUSE_ACCEL" = "yes"; then
45515   cat >>confdefs.h <<\_ACEOF
45516 #define wxUSE_ACCEL 1
45517 _ACEOF
45518
45519   USES_CONTROLS=1
45520 fi
45521
45522 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45523   cat >>confdefs.h <<\_ACEOF
45524 #define wxUSE_ANIMATIONCTRL 1
45525 _ACEOF
45526
45527   USES_CONTROLS=1
45528   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45529 fi
45530
45531 if test "$wxUSE_BUTTON" = "yes"; then
45532   cat >>confdefs.h <<\_ACEOF
45533 #define wxUSE_BUTTON 1
45534 _ACEOF
45535
45536   USES_CONTROLS=1
45537 fi
45538
45539 if test "$wxUSE_BMPBUTTON" = "yes"; then
45540   cat >>confdefs.h <<\_ACEOF
45541 #define wxUSE_BMPBUTTON 1
45542 _ACEOF
45543
45544   USES_CONTROLS=1
45545 fi
45546
45547 if test "$wxUSE_CALCTRL" = "yes"; then
45548   cat >>confdefs.h <<\_ACEOF
45549 #define wxUSE_CALENDARCTRL 1
45550 _ACEOF
45551
45552   USES_CONTROLS=1
45553   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45554 fi
45555
45556 if test "$wxUSE_CARET" = "yes"; then
45557   cat >>confdefs.h <<\_ACEOF
45558 #define wxUSE_CARET 1
45559 _ACEOF
45560
45561   USES_CONTROLS=1
45562   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45563 fi
45564
45565 if test "$wxUSE_COLLPANE" = "yes"; then
45566     cat >>confdefs.h <<\_ACEOF
45567 #define wxUSE_COLLPANE 1
45568 _ACEOF
45569
45570     USES_CONTROLS=1
45571     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45572 fi
45573
45574 if test "$wxUSE_COMBOBOX" = "yes"; then
45575   cat >>confdefs.h <<\_ACEOF
45576 #define wxUSE_COMBOBOX 1
45577 _ACEOF
45578
45579   USES_CONTROLS=1
45580 fi
45581
45582 if test "$wxUSE_COMBOCTRL" = "yes"; then
45583   cat >>confdefs.h <<\_ACEOF
45584 #define wxUSE_COMBOCTRL 1
45585 _ACEOF
45586
45587   USES_CONTROLS=1
45588 fi
45589
45590 if test "$wxUSE_CHOICE" = "yes"; then
45591   cat >>confdefs.h <<\_ACEOF
45592 #define wxUSE_CHOICE 1
45593 _ACEOF
45594
45595   USES_CONTROLS=1
45596 fi
45597
45598 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45599     cat >>confdefs.h <<\_ACEOF
45600 #define wxUSE_CHOICEBOOK 1
45601 _ACEOF
45602
45603     USES_CONTROLS=1
45604 fi
45605
45606 if test "$wxUSE_CHECKBOX" = "yes"; then
45607   cat >>confdefs.h <<\_ACEOF
45608 #define wxUSE_CHECKBOX 1
45609 _ACEOF
45610
45611   USES_CONTROLS=1
45612 fi
45613
45614 if test "$wxUSE_CHECKLST" = "yes"; then
45615   cat >>confdefs.h <<\_ACEOF
45616 #define wxUSE_CHECKLISTBOX 1
45617 _ACEOF
45618
45619   USES_CONTROLS=1
45620 fi
45621
45622 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45623   cat >>confdefs.h <<\_ACEOF
45624 #define wxUSE_COLOURPICKERCTRL 1
45625 _ACEOF
45626
45627   USES_CONTROLS=1
45628 fi
45629
45630 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45631   cat >>confdefs.h <<\_ACEOF
45632 #define wxUSE_DATEPICKCTRL 1
45633 _ACEOF
45634
45635   USES_CONTROLS=1
45636 fi
45637
45638 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45639   cat >>confdefs.h <<\_ACEOF
45640 #define wxUSE_DIRPICKERCTRL 1
45641 _ACEOF
45642
45643   USES_CONTROLS=1
45644 fi
45645
45646 if test "$wxUSE_FILECTRL" = "yes"; then
45647   cat >>confdefs.h <<\_ACEOF
45648 #define wxUSE_FILECTRL 1
45649 _ACEOF
45650
45651   USES_CONTROLS=1
45652 fi
45653
45654 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45655   cat >>confdefs.h <<\_ACEOF
45656 #define wxUSE_FILEPICKERCTRL 1
45657 _ACEOF
45658
45659   USES_CONTROLS=1
45660 fi
45661
45662 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45663   cat >>confdefs.h <<\_ACEOF
45664 #define wxUSE_FONTPICKERCTRL 1
45665 _ACEOF
45666
45667   USES_CONTROLS=1
45668 fi
45669
45670 if test "$wxUSE_DISPLAY" = "yes"; then
45671     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45672         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45673 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45674         wxUSE_DISPLAY=no
45675     else
45676         cat >>confdefs.h <<\_ACEOF
45677 #define wxUSE_DISPLAY 1
45678 _ACEOF
45679
45680         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45681     fi
45682 fi
45683
45684 if test "$wxUSE_DETECT_SM" = "yes"; then
45685     cat >>confdefs.h <<\_ACEOF
45686 #define wxUSE_DETECT_SM 1
45687 _ACEOF
45688
45689 fi
45690
45691 if test "$wxUSE_GAUGE" = "yes"; then
45692   cat >>confdefs.h <<\_ACEOF
45693 #define wxUSE_GAUGE 1
45694 _ACEOF
45695
45696   USES_CONTROLS=1
45697 fi
45698
45699 if test "$wxUSE_GRID" = "yes"; then
45700   cat >>confdefs.h <<\_ACEOF
45701 #define wxUSE_GRID 1
45702 _ACEOF
45703
45704   USES_CONTROLS=1
45705   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45706 fi
45707
45708 if test "$wxUSE_HEADERCTRL" = "yes"; then
45709   cat >>confdefs.h <<\_ACEOF
45710 #define wxUSE_HEADERCTRL 1
45711 _ACEOF
45712
45713   USES_CONTROLS=1
45714 fi
45715
45716 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45717   cat >>confdefs.h <<\_ACEOF
45718 #define wxUSE_HYPERLINKCTRL 1
45719 _ACEOF
45720
45721   USES_CONTROLS=1
45722 fi
45723
45724 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45725   cat >>confdefs.h <<\_ACEOF
45726 #define wxUSE_BITMAPCOMBOBOX 1
45727 _ACEOF
45728
45729   USES_CONTROLS=1
45730 fi
45731
45732 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45733   cat >>confdefs.h <<\_ACEOF
45734 #define wxUSE_DATAVIEWCTRL 1
45735 _ACEOF
45736
45737   USES_CONTROLS=1
45738   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45739 fi
45740
45741 if test "$wxUSE_IMAGLIST" = "yes"; then
45742     cat >>confdefs.h <<\_ACEOF
45743 #define wxUSE_IMAGLIST 1
45744 _ACEOF
45745
45746 fi
45747
45748 if test "$wxUSE_LISTBOOK" = "yes"; then
45749     cat >>confdefs.h <<\_ACEOF
45750 #define wxUSE_LISTBOOK 1
45751 _ACEOF
45752
45753     USES_CONTROLS=1
45754 fi
45755
45756 if test "$wxUSE_LISTBOX" = "yes"; then
45757     cat >>confdefs.h <<\_ACEOF
45758 #define wxUSE_LISTBOX 1
45759 _ACEOF
45760
45761     USES_CONTROLS=1
45762 fi
45763
45764 if test "$wxUSE_LISTCTRL" = "yes"; then
45765     if test "$wxUSE_IMAGLIST" = "yes"; then
45766         cat >>confdefs.h <<\_ACEOF
45767 #define wxUSE_LISTCTRL 1
45768 _ACEOF
45769
45770         USES_CONTROLS=1
45771         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45772     else
45773         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45774 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45775     fi
45776 fi
45777
45778 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45779     cat >>confdefs.h <<\_ACEOF
45780 #define wxUSE_EDITABLELISTBOX 1
45781 _ACEOF
45782
45783     USES_CONTROLS=1
45784 fi
45785
45786 if test "$wxUSE_NOTEBOOK" = "yes"; then
45787     cat >>confdefs.h <<\_ACEOF
45788 #define wxUSE_NOTEBOOK 1
45789 _ACEOF
45790
45791     USES_CONTROLS=1
45792     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45793 fi
45794
45795 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45796     cat >>confdefs.h <<\_ACEOF
45797 #define wxUSE_NOTIFICATION_MESSAGE 1
45798 _ACEOF
45799
45800 fi
45801
45802 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45803   cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_ODCOMBOBOX 1
45805 _ACEOF
45806
45807   USES_CONTROLS=1
45808   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45809 fi
45810
45811 if test "$wxUSE_RADIOBOX" = "yes"; then
45812     cat >>confdefs.h <<\_ACEOF
45813 #define wxUSE_RADIOBOX 1
45814 _ACEOF
45815
45816     USES_CONTROLS=1
45817 fi
45818
45819 if test "$wxUSE_RADIOBTN" = "yes"; then
45820     cat >>confdefs.h <<\_ACEOF
45821 #define wxUSE_RADIOBTN 1
45822 _ACEOF
45823
45824     USES_CONTROLS=1
45825 fi
45826
45827 if test "$wxUSE_REARRANGECTRL" = "yes"; then
45828     cat >>confdefs.h <<\_ACEOF
45829 #define wxUSE_REARRANGECTRL 1
45830 _ACEOF
45831
45832 fi
45833
45834 if test "$wxUSE_SASH" = "yes"; then
45835     cat >>confdefs.h <<\_ACEOF
45836 #define wxUSE_SASH 1
45837 _ACEOF
45838
45839     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45840 fi
45841
45842 if test "$wxUSE_SCROLLBAR" = "yes"; then
45843     cat >>confdefs.h <<\_ACEOF
45844 #define wxUSE_SCROLLBAR 1
45845 _ACEOF
45846
45847     USES_CONTROLS=1
45848     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
45849 fi
45850
45851 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45852     cat >>confdefs.h <<\_ACEOF
45853 #define wxUSE_SEARCHCTRL 1
45854 _ACEOF
45855
45856     USES_CONTROLS=1
45857 fi
45858
45859 if test "$wxUSE_SLIDER" = "yes"; then
45860     cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_SLIDER 1
45862 _ACEOF
45863
45864     USES_CONTROLS=1
45865 fi
45866
45867 if test "$wxUSE_SPINBTN" = "yes"; then
45868     cat >>confdefs.h <<\_ACEOF
45869 #define wxUSE_SPINBTN 1
45870 _ACEOF
45871
45872     USES_CONTROLS=1
45873 fi
45874
45875 if test "$wxUSE_SPINCTRL" = "yes"; then
45876     cat >>confdefs.h <<\_ACEOF
45877 #define wxUSE_SPINCTRL 1
45878 _ACEOF
45879
45880     USES_CONTROLS=1
45881 fi
45882
45883 if test "$wxUSE_SPLITTER" = "yes"; then
45884     cat >>confdefs.h <<\_ACEOF
45885 #define wxUSE_SPLITTER 1
45886 _ACEOF
45887
45888     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45889 fi
45890
45891 if test "$wxUSE_STATBMP" = "yes"; then
45892     cat >>confdefs.h <<\_ACEOF
45893 #define wxUSE_STATBMP 1
45894 _ACEOF
45895
45896     USES_CONTROLS=1
45897 fi
45898
45899 if test "$wxUSE_STATBOX" = "yes"; then
45900     cat >>confdefs.h <<\_ACEOF
45901 #define wxUSE_STATBOX 1
45902 _ACEOF
45903
45904     USES_CONTROLS=1
45905 fi
45906
45907 if test "$wxUSE_STATTEXT" = "yes"; then
45908     cat >>confdefs.h <<\_ACEOF
45909 #define wxUSE_STATTEXT 1
45910 _ACEOF
45911
45912     USES_CONTROLS=1
45913 fi
45914
45915 if test "$wxUSE_STATLINE" = "yes"; then
45916     cat >>confdefs.h <<\_ACEOF
45917 #define wxUSE_STATLINE 1
45918 _ACEOF
45919
45920     USES_CONTROLS=1
45921 fi
45922
45923 if test "$wxUSE_STATUSBAR" = "yes"; then
45924         cat >>confdefs.h <<\_ACEOF
45925 #define wxUSE_NATIVE_STATUSBAR 1
45926 _ACEOF
45927
45928     cat >>confdefs.h <<\_ACEOF
45929 #define wxUSE_STATUSBAR 1
45930 _ACEOF
45931
45932     USES_CONTROLS=1
45933
45934     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45935 fi
45936
45937 if test "$wxUSE_TEXTCTRL" = "yes"; then
45938     cat >>confdefs.h <<\_ACEOF
45939 #define wxUSE_TEXTCTRL 1
45940 _ACEOF
45941
45942     USES_CONTROLS=1
45943     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45944
45945             cat >>confdefs.h <<\_ACEOF
45946 #define wxUSE_RICHEDIT 1
45947 _ACEOF
45948
45949     cat >>confdefs.h <<\_ACEOF
45950 #define wxUSE_RICHEDIT2 1
45951 _ACEOF
45952
45953 fi
45954
45955 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45956     if test "$wxUSE_COCOA" = 1 ; then
45957         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45958 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45959         wxUSE_TOGGLEBTN=no
45960     fi
45961
45962     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45963         cat >>confdefs.h <<\_ACEOF
45964 #define wxUSE_TOGGLEBTN 1
45965 _ACEOF
45966
45967         USES_CONTROLS=1
45968     fi
45969 fi
45970
45971 if test "$wxUSE_TOOLBAR" = "yes"; then
45972     cat >>confdefs.h <<\_ACEOF
45973 #define wxUSE_TOOLBAR 1
45974 _ACEOF
45975
45976     USES_CONTROLS=1
45977
45978     if test "$wxUSE_UNIVERSAL" = "yes"; then
45979         wxUSE_TOOLBAR_NATIVE="no"
45980     else
45981         wxUSE_TOOLBAR_NATIVE="yes"
45982         cat >>confdefs.h <<\_ACEOF
45983 #define wxUSE_TOOLBAR_NATIVE 1
45984 _ACEOF
45985
45986     fi
45987
45988     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45989 fi
45990
45991 if test "$wxUSE_TOOLTIPS" = "yes"; then
45992     if test "$wxUSE_MOTIF" = 1; then
45993         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45994 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45995     else
45996         if test "$wxUSE_UNIVERSAL" = "yes"; then
45997             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45998 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45999         else
46000             cat >>confdefs.h <<\_ACEOF
46001 #define wxUSE_TOOLTIPS 1
46002 _ACEOF
46003
46004         fi
46005     fi
46006 fi
46007
46008 if test "$wxUSE_TREEBOOK" = "yes"; then
46009     cat >>confdefs.h <<\_ACEOF
46010 #define wxUSE_TREEBOOK 1
46011 _ACEOF
46012
46013     USES_CONTROLS=1
46014 fi
46015
46016 if test "$wxUSE_TOOLBOOK" = "yes"; then
46017     cat >>confdefs.h <<\_ACEOF
46018 #define wxUSE_TOOLBOOK 1
46019 _ACEOF
46020
46021     USES_CONTROLS=1
46022 fi
46023
46024 if test "$wxUSE_TREECTRL" = "yes"; then
46025     if test "$wxUSE_IMAGLIST" = "yes"; then
46026         cat >>confdefs.h <<\_ACEOF
46027 #define wxUSE_TREECTRL 1
46028 _ACEOF
46029
46030         USES_CONTROLS=1
46031         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46032     else
46033         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46034 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46035     fi
46036 fi
46037
46038 if test "$wxUSE_POPUPWIN" = "yes"; then
46039     if test "$wxUSE_COCOA" = 1 ; then
46040         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46041 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46042     else
46043         if test "$wxUSE_PM" = 1; then
46044             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46045 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46046         else
46047             cat >>confdefs.h <<\_ACEOF
46048 #define wxUSE_POPUPWIN 1
46049 _ACEOF
46050
46051             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46052
46053             USES_CONTROLS=1
46054         fi
46055     fi
46056 fi
46057
46058 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46059     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46060         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46061 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46062     else
46063         cat >>confdefs.h <<\_ACEOF
46064 #define wxUSE_DIALUP_MANAGER 1
46065 _ACEOF
46066
46067         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46068     fi
46069 fi
46070
46071 if test "$wxUSE_TIPWINDOW" = "yes"; then
46072     if test "$wxUSE_PM" = 1; then
46073         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46074 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46075     else
46076         cat >>confdefs.h <<\_ACEOF
46077 #define wxUSE_TIPWINDOW 1
46078 _ACEOF
46079
46080     fi
46081 fi
46082
46083 if test "$USES_CONTROLS" = 1; then
46084     cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_CONTROLS 1
46086 _ACEOF
46087
46088 fi
46089
46090
46091 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46092     cat >>confdefs.h <<\_ACEOF
46093 #define wxUSE_ACCESSIBILITY 1
46094 _ACEOF
46095
46096     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46097 fi
46098
46099 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46100     cat >>confdefs.h <<\_ACEOF
46101 #define wxUSE_DRAGIMAGE 1
46102 _ACEOF
46103
46104     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46105 fi
46106
46107 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46108     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46109         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46110 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46111     else
46112         cat >>confdefs.h <<\_ACEOF
46113 #define wxUSE_EXCEPTIONS 1
46114 _ACEOF
46115
46116         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46117     fi
46118 fi
46119
46120 USE_HTML=0
46121 if test "$wxUSE_HTML" = "yes"; then
46122     cat >>confdefs.h <<\_ACEOF
46123 #define wxUSE_HTML 1
46124 _ACEOF
46125
46126     USE_HTML=1
46127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46128 fi
46129 if test "$wxUSE_WEBKIT" = "yes"; then
46130     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46131         old_CPPFLAGS="$CPPFLAGS"
46132         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46133         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46134 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46135 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46136   echo $ECHO_N "(cached) $ECHO_C" >&6
46137 else
46138   cat >conftest.$ac_ext <<_ACEOF
46139 /* confdefs.h.  */
46140 _ACEOF
46141 cat confdefs.h >>conftest.$ac_ext
46142 cat >>conftest.$ac_ext <<_ACEOF
46143 /* end confdefs.h.  */
46144
46145                            #include <Carbon/Carbon.h>
46146                            #include <WebKit/WebKit.h>
46147
46148
46149 #include <WebKit/HIWebView.h>
46150 _ACEOF
46151 rm -f conftest.$ac_objext
46152 if { (ac_try="$ac_compile"
46153 case "(($ac_try" in
46154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46155   *) ac_try_echo=$ac_try;;
46156 esac
46157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46158   (eval "$ac_compile") 2>conftest.er1
46159   ac_status=$?
46160   grep -v '^ *+' conftest.er1 >conftest.err
46161   rm -f conftest.er1
46162   cat conftest.err >&5
46163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46164   (exit $ac_status); } && {
46165          test -z "$ac_c_werror_flag" ||
46166          test ! -s conftest.err
46167        } && test -s conftest.$ac_objext; then
46168   ac_cv_header_WebKit_HIWebView_h=yes
46169 else
46170   echo "$as_me: failed program was:" >&5
46171 sed 's/^/| /' conftest.$ac_ext >&5
46172
46173         ac_cv_header_WebKit_HIWebView_h=no
46174 fi
46175
46176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46177 fi
46178 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46179 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46180 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46181
46182                            cat >>confdefs.h <<\_ACEOF
46183 #define wxUSE_WEBKIT 1
46184 _ACEOF
46185
46186                            WEBKIT_LINK="-framework WebKit"
46187
46188 else
46189
46190                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46191 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46192                            wxUSE_WEBKIT=no
46193
46194 fi
46195
46196
46197         CPPFLAGS="$old_CPPFLAGS"
46198     elif test "$wxUSE_COCOA" = 1; then
46199         cat >>confdefs.h <<\_ACEOF
46200 #define wxUSE_WEBKIT 1
46201 _ACEOF
46202
46203     else
46204         wxUSE_WEBKIT=no
46205     fi
46206     if test "$wxUSE_WEBKIT" = "yes"; then
46207         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46208     fi
46209 fi
46210
46211 USE_XRC=0
46212 if test "$wxUSE_XRC" = "yes"; then
46213     if test "$wxUSE_XML" != "yes"; then
46214         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46215 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46216         wxUSE_XRC=no
46217     else
46218         cat >>confdefs.h <<\_ACEOF
46219 #define wxUSE_XRC 1
46220 _ACEOF
46221
46222         USE_XRC=1
46223         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46224     fi
46225 fi
46226
46227 USE_AUI=0
46228 if test "$wxUSE_AUI" = "yes"; then
46229    cat >>confdefs.h <<\_ACEOF
46230 #define wxUSE_AUI 1
46231 _ACEOF
46232
46233    USE_AUI=1
46234    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46235 fi
46236
46237 USE_PROPGRID=0
46238 if test "$wxUSE_PROPGRID" = "yes"; then
46239    cat >>confdefs.h <<\_ACEOF
46240 #define wxUSE_PROPGRID 1
46241 _ACEOF
46242
46243    USE_PROPGRID=1
46244    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46245 fi
46246
46247 USE_STC=0
46248 if test "$wxUSE_STC" = "yes"; then
46249    cat >>confdefs.h <<\_ACEOF
46250 #define wxUSE_STC 1
46251 _ACEOF
46252
46253    USE_STC=1
46254    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46255
46256       # Extract the first word of "python", so it can be a program name with args.
46257 set dummy python; ac_word=$2
46258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46260 if test "${ac_cv_path_PYTHON+set}" = set; then
46261   echo $ECHO_N "(cached) $ECHO_C" >&6
46262 else
46263   case $PYTHON in
46264   [\\/]* | ?:[\\/]*)
46265   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
46266   ;;
46267   *)
46268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46269 for as_dir in $PATH
46270 do
46271   IFS=$as_save_IFS
46272   test -z "$as_dir" && as_dir=.
46273   for ac_exec_ext in '' $ac_executable_extensions; do
46274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46275     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
46276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46277     break 2
46278   fi
46279 done
46280 done
46281 IFS=$as_save_IFS
46282
46283   ;;
46284 esac
46285 fi
46286 PYTHON=$ac_cv_path_PYTHON
46287 if test -n "$PYTHON"; then
46288   { echo "$as_me:$LINENO: result: $PYTHON" >&5
46289 echo "${ECHO_T}$PYTHON" >&6; }
46290 else
46291   { echo "$as_me:$LINENO: result: no" >&5
46292 echo "${ECHO_T}no" >&6; }
46293 fi
46294
46295
46296    if test "x$PYTHON" = "x"; then
46297      COND_PYTHON="#"
46298    fi
46299
46300 fi
46301
46302 if test "$wxUSE_MENUS" = "yes"; then
46303     cat >>confdefs.h <<\_ACEOF
46304 #define wxUSE_MENUS 1
46305 _ACEOF
46306
46307     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46308 fi
46309
46310 if test "$wxUSE_METAFILE" = "yes"; then
46311     cat >>confdefs.h <<\_ACEOF
46312 #define wxUSE_METAFILE 1
46313 _ACEOF
46314
46315 fi
46316
46317 if test "$wxUSE_MIMETYPE" = "yes"; then
46318     cat >>confdefs.h <<\_ACEOF
46319 #define wxUSE_MIMETYPE 1
46320 _ACEOF
46321
46322 fi
46323
46324 if test "$wxUSE_MINIFRAME" = "yes"; then
46325     cat >>confdefs.h <<\_ACEOF
46326 #define wxUSE_MINIFRAME 1
46327 _ACEOF
46328
46329 fi
46330
46331 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46332     cat >>confdefs.h <<\_ACEOF
46333 #define wxUSE_SYSTEM_OPTIONS 1
46334 _ACEOF
46335
46336 fi
46337
46338 if test "$wxUSE_TASKBARICON" = "yes"; then
46339     cat >>confdefs.h <<\_ACEOF
46340 #define wxUSE_TASKBARICON 1
46341 _ACEOF
46342
46343     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46344 fi
46345
46346
46347 if test "$wxUSE_VALIDATORS" = "yes"; then
46348     cat >>confdefs.h <<\_ACEOF
46349 #define wxUSE_VALIDATORS 1
46350 _ACEOF
46351
46352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46353 fi
46354
46355 if test "$wxUSE_PALETTE" = "yes" ; then
46356     if test "$wxUSE_DFB" = 1; then
46357         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46358 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46359         wxUSE_PALETTE=no
46360     else
46361         cat >>confdefs.h <<\_ACEOF
46362 #define wxUSE_PALETTE 1
46363 _ACEOF
46364
46365     fi
46366 fi
46367
46368 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46369     LIBS=" -lunicows $LIBS"
46370 fi
46371
46372 USE_RICHTEXT=0
46373 if test "$wxUSE_RICHTEXT" = "yes"; then
46374     cat >>confdefs.h <<\_ACEOF
46375 #define wxUSE_RICHTEXT 1
46376 _ACEOF
46377
46378     USE_RICHTEXT=1
46379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46380 fi
46381
46382
46383 if test "$wxUSE_IMAGE" = "yes" ; then
46384     cat >>confdefs.h <<\_ACEOF
46385 #define wxUSE_IMAGE 1
46386 _ACEOF
46387
46388
46389     if test "$wxUSE_GIF" = "yes" ; then
46390       cat >>confdefs.h <<\_ACEOF
46391 #define wxUSE_GIF 1
46392 _ACEOF
46393
46394     fi
46395
46396     if test "$wxUSE_PCX" = "yes" ; then
46397       cat >>confdefs.h <<\_ACEOF
46398 #define wxUSE_PCX 1
46399 _ACEOF
46400
46401     fi
46402
46403     if test "$wxUSE_TGA" = "yes" ; then
46404       cat >>confdefs.h <<\_ACEOF
46405 #define wxUSE_TGA 1
46406 _ACEOF
46407
46408     fi
46409
46410     if test "$wxUSE_IFF" = "yes" ; then
46411       cat >>confdefs.h <<\_ACEOF
46412 #define wxUSE_IFF 1
46413 _ACEOF
46414
46415     fi
46416
46417     if test "$wxUSE_PNM" = "yes" ; then
46418       cat >>confdefs.h <<\_ACEOF
46419 #define wxUSE_PNM 1
46420 _ACEOF
46421
46422     fi
46423
46424     if test "$wxUSE_XPM" = "yes" ; then
46425       cat >>confdefs.h <<\_ACEOF
46426 #define wxUSE_XPM 1
46427 _ACEOF
46428
46429     fi
46430
46431     if test "$wxUSE_ICO_CUR" = "yes" ; then
46432       cat >>confdefs.h <<\_ACEOF
46433 #define wxUSE_ICO_CUR 1
46434 _ACEOF
46435
46436     fi
46437 fi
46438
46439
46440 if test "$wxUSE_ABOUTDLG" = "yes"; then
46441     cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_ABOUTDLG 1
46443 _ACEOF
46444
46445 fi
46446
46447 if test "$wxUSE_CHOICEDLG" = "yes"; then
46448     cat >>confdefs.h <<\_ACEOF
46449 #define wxUSE_CHOICEDLG 1
46450 _ACEOF
46451
46452 fi
46453
46454 if test "$wxUSE_COLOURDLG" = "yes"; then
46455     cat >>confdefs.h <<\_ACEOF
46456 #define wxUSE_COLOURDLG 1
46457 _ACEOF
46458
46459 fi
46460
46461 if test "$wxUSE_FILEDLG" = "yes"; then
46462     cat >>confdefs.h <<\_ACEOF
46463 #define wxUSE_FILEDLG 1
46464 _ACEOF
46465
46466 fi
46467
46468 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46469     cat >>confdefs.h <<\_ACEOF
46470 #define wxUSE_FINDREPLDLG 1
46471 _ACEOF
46472
46473 fi
46474
46475 if test "$wxUSE_FONTDLG" = "yes"; then
46476     cat >>confdefs.h <<\_ACEOF
46477 #define wxUSE_FONTDLG 1
46478 _ACEOF
46479
46480 fi
46481
46482 if test "$wxUSE_DIRDLG" = "yes"; then
46483     if test "$wxUSE_TREECTRL" != "yes"; then
46484         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46485 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46486     else
46487         cat >>confdefs.h <<\_ACEOF
46488 #define wxUSE_DIRDLG 1
46489 _ACEOF
46490
46491     fi
46492 fi
46493
46494 if test "$wxUSE_MSGDLG" = "yes"; then
46495     cat >>confdefs.h <<\_ACEOF
46496 #define wxUSE_MSGDLG 1
46497 _ACEOF
46498
46499 fi
46500
46501 if test "$wxUSE_NUMBERDLG" = "yes"; then
46502     cat >>confdefs.h <<\_ACEOF
46503 #define wxUSE_NUMBERDLG 1
46504 _ACEOF
46505
46506 fi
46507
46508 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46509     cat >>confdefs.h <<\_ACEOF
46510 #define wxUSE_PROGRESSDLG 1
46511 _ACEOF
46512
46513 fi
46514
46515 if test "$wxUSE_SPLASH" = "yes"; then
46516     cat >>confdefs.h <<\_ACEOF
46517 #define wxUSE_SPLASH 1
46518 _ACEOF
46519
46520     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46521 fi
46522
46523 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46524     cat >>confdefs.h <<\_ACEOF
46525 #define wxUSE_STARTUP_TIPS 1
46526 _ACEOF
46527
46528 fi
46529
46530 if test "$wxUSE_TEXTDLG" = "yes"; then
46531     cat >>confdefs.h <<\_ACEOF
46532 #define wxUSE_TEXTDLG 1
46533 _ACEOF
46534
46535 fi
46536
46537 if test "$wxUSE_WIZARDDLG" = "yes"; then
46538     cat >>confdefs.h <<\_ACEOF
46539 #define wxUSE_WIZARDDLG 1
46540 _ACEOF
46541
46542     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46543 fi
46544
46545
46546 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46547     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46548         cat >>confdefs.h <<\_ACEOF
46549 #define wxUSE_OWNER_DRAWN 1
46550 _ACEOF
46551
46552     fi
46553 fi
46554
46555
46556 if test "$wxUSE_MSW" = 1 ; then
46557
46558     if test "$wxUSE_DC_CACHEING" = "yes"; then
46559         cat >>confdefs.h <<\_ACEOF
46560 #define wxUSE_DC_CACHEING 1
46561 _ACEOF
46562
46563     fi
46564
46565     if test "$wxUSE_DIB" = "yes"; then
46566         cat >>confdefs.h <<\_ACEOF
46567 #define wxUSE_WXDIB 1
46568 _ACEOF
46569
46570     fi
46571
46572     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46573         cat >>confdefs.h <<\_ACEOF
46574 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46575 _ACEOF
46576
46577     fi
46578
46579     if test "$wxUSE_UXTHEME" = "yes"; then
46580         cat >>confdefs.h <<\_ACEOF
46581 #define wxUSE_UXTHEME 1
46582 _ACEOF
46583
46584     fi
46585
46586 fi
46587
46588 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46589     cat >>confdefs.h <<\_ACEOF
46590 #define wxUSE_AUTOID_MANAGEMENT 1
46591 _ACEOF
46592
46593 fi
46594
46595 if test "$USE_WIN32" = 1 ; then
46596     if test "$wxUSE_INICONF" = "yes"; then
46597         cat >>confdefs.h <<\_ACEOF
46598 #define wxUSE_INICONF 1
46599 _ACEOF
46600
46601     fi
46602
46603     if test "$wxUSE_REGKEY" = "yes"; then
46604         cat >>confdefs.h <<\_ACEOF
46605 #define wxUSE_REGKEY 1
46606 _ACEOF
46607
46608     fi
46609 fi
46610
46611
46612 if test "$wxUSE_MAC" = 1; then
46613         wxUSE_GRAPHICS_CONTEXT="yes"
46614 fi
46615
46616 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46617    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46618       cat >>confdefs.h <<\_ACEOF
46619 #define wxUSE_GRAPHICS_CONTEXT 1
46620 _ACEOF
46621
46622    elif test "$wxUSE_GTK" != 1; then
46623             cat >>confdefs.h <<\_ACEOF
46624 #define wxUSE_GRAPHICS_CONTEXT 1
46625 _ACEOF
46626
46627    else
46628
46629 pkg_failed=no
46630 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46631 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46632
46633 if test -n "$PKG_CONFIG"; then
46634     if test -n "$CAIRO_CFLAGS"; then
46635         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46636     else
46637         if test -n "$PKG_CONFIG" && \
46638     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46639   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46640   ac_status=$?
46641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46642   (exit $ac_status); }; then
46643   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46644 else
46645   pkg_failed=yes
46646 fi
46647     fi
46648 else
46649         pkg_failed=untried
46650 fi
46651 if test -n "$PKG_CONFIG"; then
46652     if test -n "$CAIRO_LIBS"; then
46653         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46654     else
46655         if test -n "$PKG_CONFIG" && \
46656     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46657   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46658   ac_status=$?
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); }; then
46661   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46662 else
46663   pkg_failed=yes
46664 fi
46665     fi
46666 else
46667         pkg_failed=untried
46668 fi
46669
46670
46671
46672 if test $pkg_failed = yes; then
46673
46674 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46675         _pkg_short_errors_supported=yes
46676 else
46677         _pkg_short_errors_supported=no
46678 fi
46679         if test $_pkg_short_errors_supported = yes; then
46680                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46681         else
46682                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46683         fi
46684         # Put the nasty error message in config.log where it belongs
46685         echo "$CAIRO_PKG_ERRORS" >&5
46686
46687         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46688 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46689
46690 elif test $pkg_failed = untried; then
46691         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46692 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46693
46694 else
46695         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46696         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46697         { echo "$as_me:$LINENO: result: yes" >&5
46698 echo "${ECHO_T}yes" >&6; }
46699         cat >>confdefs.h <<\_ACEOF
46700 #define wxUSE_GRAPHICS_CONTEXT 1
46701 _ACEOF
46702
46703 fi
46704    fi
46705 fi
46706
46707
46708 USE_MEDIA=0
46709
46710 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46711     USE_MEDIA=1
46712
46713                 if test "$wxUSE_GTK" = 1; then
46714         wxUSE_GSTREAMER="no"
46715
46716                                                                 GST_VERSION_MAJOR=0
46717         GST_VERSION_MINOR=10
46718         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46719
46720         if test "$wxUSE_GSTREAMER8" = "no"; then
46721
46722 pkg_failed=no
46723 { echo "$as_me:$LINENO: checking for GST" >&5
46724 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46725
46726 if test -n "$PKG_CONFIG"; then
46727     if test -n "$GST_CFLAGS"; then
46728         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46729     else
46730         if test -n "$PKG_CONFIG" && \
46731     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46732   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46733   ac_status=$?
46734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46735   (exit $ac_status); }; then
46736   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46737 else
46738   pkg_failed=yes
46739 fi
46740     fi
46741 else
46742         pkg_failed=untried
46743 fi
46744 if test -n "$PKG_CONFIG"; then
46745     if test -n "$GST_LIBS"; then
46746         pkg_cv_GST_LIBS="$GST_LIBS"
46747     else
46748         if test -n "$PKG_CONFIG" && \
46749     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46750   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46751   ac_status=$?
46752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46753   (exit $ac_status); }; then
46754   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46755 else
46756   pkg_failed=yes
46757 fi
46758     fi
46759 else
46760         pkg_failed=untried
46761 fi
46762
46763
46764
46765 if test $pkg_failed = yes; then
46766
46767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46768         _pkg_short_errors_supported=yes
46769 else
46770         _pkg_short_errors_supported=no
46771 fi
46772         if test $_pkg_short_errors_supported = yes; then
46773                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46774         else
46775                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46776         fi
46777         # Put the nasty error message in config.log where it belongs
46778         echo "$GST_PKG_ERRORS" >&5
46779
46780
46781                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46782 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46783                     GST_VERSION_MINOR=8
46784
46785
46786 elif test $pkg_failed = untried; then
46787
46788                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46789 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46790                     GST_VERSION_MINOR=8
46791
46792
46793 else
46794         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46795         GST_LIBS=$pkg_cv_GST_LIBS
46796         { echo "$as_me:$LINENO: result: yes" >&5
46797 echo "${ECHO_T}yes" >&6; }
46798
46799                     wxUSE_GSTREAMER="yes"
46800                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46801
46802 fi
46803         else
46804                         GST_VERSION_MINOR=8
46805         fi
46806
46807         if test $GST_VERSION_MINOR = "8"; then
46808             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46809
46810 pkg_failed=no
46811 { echo "$as_me:$LINENO: checking for GST" >&5
46812 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46813
46814 if test -n "$PKG_CONFIG"; then
46815     if test -n "$GST_CFLAGS"; then
46816         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46817     else
46818         if test -n "$PKG_CONFIG" && \
46819     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46820   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46821   ac_status=$?
46822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46823   (exit $ac_status); }; then
46824   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46825 else
46826   pkg_failed=yes
46827 fi
46828     fi
46829 else
46830         pkg_failed=untried
46831 fi
46832 if test -n "$PKG_CONFIG"; then
46833     if test -n "$GST_LIBS"; then
46834         pkg_cv_GST_LIBS="$GST_LIBS"
46835     else
46836         if test -n "$PKG_CONFIG" && \
46837     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46838   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46839   ac_status=$?
46840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46841   (exit $ac_status); }; then
46842   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46843 else
46844   pkg_failed=yes
46845 fi
46846     fi
46847 else
46848         pkg_failed=untried
46849 fi
46850
46851
46852
46853 if test $pkg_failed = yes; then
46854
46855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46856         _pkg_short_errors_supported=yes
46857 else
46858         _pkg_short_errors_supported=no
46859 fi
46860         if test $_pkg_short_errors_supported = yes; then
46861                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46862         else
46863                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46864         fi
46865         # Put the nasty error message in config.log where it belongs
46866         echo "$GST_PKG_ERRORS" >&5
46867
46868
46869                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46870 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46871
46872 elif test $pkg_failed = untried; then
46873
46874                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46875 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46876
46877 else
46878         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46879         GST_LIBS=$pkg_cv_GST_LIBS
46880         { echo "$as_me:$LINENO: result: yes" >&5
46881 echo "${ECHO_T}yes" >&6; }
46882         wxUSE_GSTREAMER="yes"
46883 fi
46884         fi
46885
46886
46887         if test "$wxUSE_GSTREAMER" = "yes"; then
46888             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46889             EXTRALIBS_MEDIA="$GST_LIBS"
46890
46891             cat >>confdefs.h <<\_ACEOF
46892 #define wxUSE_GSTREAMER 1
46893 _ACEOF
46894
46895         else
46896             USE_MEDIA=0
46897         fi
46898     fi
46899
46900     if test $USE_MEDIA = 1; then
46901         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46902         cat >>confdefs.h <<\_ACEOF
46903 #define wxUSE_MEDIACTRL 1
46904 _ACEOF
46905
46906     else
46907         if test "$wxUSE_MEDIACTRL" = "yes"; then
46908             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
46909 echo "$as_me: error: GStreamer not available" >&2;}
46910    { (exit 1); exit 1; }; }
46911         else
46912                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
46913 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
46914         fi
46915     fi
46916 fi
46917
46918
46919 if test "$cross_compiling" != "no"; then
46920         OSINFO="\"$host\""
46921 else
46922         OSINFO=`uname -s -r -m`
46923     OSINFO="\"$OSINFO\""
46924 fi
46925
46926 cat >>confdefs.h <<_ACEOF
46927 #define WXWIN_OS_DESCRIPTION $OSINFO
46928 _ACEOF
46929
46930
46931
46932 if test "x$prefix" != "xNONE"; then
46933     wxPREFIX=$prefix
46934 else
46935     wxPREFIX=$ac_default_prefix
46936 fi
46937
46938 cat >>confdefs.h <<_ACEOF
46939 #define wxINSTALL_PREFIX "$wxPREFIX"
46940 _ACEOF
46941
46942
46943
46944
46945 STD_BASE_LIBS="base"
46946 STD_GUI_LIBS=""
46947 BUILT_WX_LIBS="base"
46948 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46949
46950 if test "$wxUSE_SOCKETS" = "yes" ; then
46951     STD_BASE_LIBS="net $STD_BASE_LIBS"
46952     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46953 fi
46954 if test "$wxUSE_XML" = "yes" ; then
46955     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46956     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46957 fi
46958
46959 if test "$wxUSE_GUI" = "yes"; then
46960     STD_GUI_LIBS="adv core"
46961     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46962
46963     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46964         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46965         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46966     fi
46967     if test "$wxUSE_HTML" = "yes" ; then
46968         STD_GUI_LIBS="html $STD_GUI_LIBS"
46969         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46970     fi
46971     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46972         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46973     fi
46974     if test "$wxUSE_OPENGL" = "yes" ; then
46975         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46976     fi
46977     if test "$wxUSE_AUI" = "yes" ; then
46978         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46979     fi
46980     if test "$wxUSE_PROPGRID" = "yes" ; then
46981         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
46982     fi
46983     if test "$wxUSE_RICHTEXT" = "yes" ; then
46984         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
46985     fi
46986     if test "$wxUSE_STC" = "yes" ; then
46987         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46988     fi
46989     if test "$wxUSE_XRC" = "yes" ; then
46990         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46991         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46992     fi
46993 fi
46994
46995
46996
46997
46998
46999
47000
47001
47002 if test "$wxUSE_MAC" = 1 ; then
47003     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47004         if test "$USE_DARWIN" = 1; then
47005             LDFLAGS="$LDFLAGS -framework QuickTime"
47006         fi
47007     fi
47008     if test "$USE_DARWIN" = 1; then
47009         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47010     fi
47011 fi
47012 if test "$wxUSE_COCOA" = 1 ; then
47013     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47014     if test "$wxUSE_MEDIACTRL" = "yes"; then
47015         LDFLAGS="$LDFLAGS -framework QuickTime"
47016     fi
47017 fi
47018 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47019     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47020 fi
47021
47022 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47023
47024 if test "$wxUSE_GUI" = "yes"; then
47025
47026
47027         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47028                      erase event exec font image minimal render \
47029                      shaped svg taborder vscroll widgets wrapsizer"
47030
47031     if test "$wxUSE_MONOLITHIC" != "yes"; then
47032         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47033     fi
47034     if test "$TOOLKIT" = "MSW"; then
47035         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47036         if test "$wxUSE_UNIVERSAL" != "yes"; then
47037             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47038         fi
47039     fi
47040     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47041         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47042     fi
47043 else
47044     SAMPLES_SUBDIRS="console"
47045     if test "$wxUSE_SOCKETS" = "yes" ; then
47046         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47047     fi
47048     if test "$wxUSE_IPC" = "yes" ; then
47049         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47050     fi
47051 fi
47052
47053
47054 if test "x$INTELCC" = "xyes" ; then
47055                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47056 elif test "$GCC" = yes ; then
47057     CWARNINGS="-Wall -Wundef"
47058 fi
47059
47060 if test "x$INTELCXX" = "xyes" ; then
47061                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47062 elif test "$GXX" = yes ; then
47063     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47064     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47065 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47066 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47067   echo $ECHO_N "(cached) $ECHO_C" >&6
47068 else
47069   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47070
47071  ac_ext=cpp
47072 ac_cpp='$CXXCPP $CPPFLAGS'
47073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47076
47077  ac_save_CXXFLAGS="$CXXFLAGS"
47078 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47079 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47080    cat >conftest.$ac_ext <<_ACEOF
47081 /* confdefs.h.  */
47082 _ACEOF
47083 cat confdefs.h >>conftest.$ac_ext
47084 cat >>conftest.$ac_ext <<_ACEOF
47085 /* end confdefs.h.  */
47086
47087 int
47088 main ()
47089 {
47090 return 0;
47091   ;
47092   return 0;
47093 }
47094 _ACEOF
47095 rm -f conftest.$ac_objext
47096 if { (ac_try="$ac_compile"
47097 case "(($ac_try" in
47098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47099   *) ac_try_echo=$ac_try;;
47100 esac
47101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47102   (eval "$ac_compile") 2>conftest.er1
47103   ac_status=$?
47104   grep -v '^ *+' conftest.er1 >conftest.err
47105   rm -f conftest.er1
47106   cat conftest.err >&5
47107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47108   (exit $ac_status); } && {
47109          test -z "$ac_cxx_werror_flag" ||
47110          test ! -s conftest.err
47111        } && test -s conftest.$ac_objext; then
47112   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47113 else
47114   echo "$as_me: failed program was:" >&5
47115 sed 's/^/| /' conftest.$ac_ext >&5
47116
47117
47118 fi
47119
47120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47121 done
47122  CXXFLAGS="$ac_save_CXXFLAGS"
47123  ac_ext=c
47124 ac_cpp='$CPP $CPPFLAGS'
47125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47128
47129
47130 fi
47131 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47132 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47133 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47134      .ok|.ok,*)  ;;
47135    .|.no|.no,*)  ;;
47136    *)
47137    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47138    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47139   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47140   ac_status=$?
47141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47142   (exit $ac_status); }
47143    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47144   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47145   ac_status=$?
47146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47147   (exit $ac_status); }
47148                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47149    fi
47150  ;;
47151 esac
47152
47153
47154                     if test "$wxUSE_MAC" = 1 ; then
47155         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
47156     fi
47157 fi
47158
47159
47160 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47161 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47162
47163
47164 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47165  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47166  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47167  $CPPFLAGS `
47168
47169 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47170 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47171 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47172 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47173 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47174
47175 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47176
47177
47178 if test "x$MWCC" = "xyes"; then
47179
47180             CC="$CC -cwd source -I-"
47181     CXX="$CXX -cwd source -I-"
47182 fi
47183
47184
47185 LIBS=`echo $LIBS`
47186 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47187 EXTRALIBS_XML="$EXPAT_LINK"
47188 EXTRALIBS_HTML="$MSPACK_LINK"
47189 EXTRALIBS_MEDIA="$GST_LIBS"
47190 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47191 if test "$wxUSE_GUI" = "yes"; then
47192     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47193 fi
47194 if test "$wxUSE_OPENGL" = "yes"; then
47195     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47196 fi
47197
47198 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47199
47200 WXCONFIG_LIBS="$LIBS"
47201
47202 if test "$wxUSE_REGEX" = "builtin" ; then
47203     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47204 fi
47205 if test "$wxUSE_EXPAT" = "builtin" ; then
47206     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47207 fi
47208 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47209     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47210 fi
47211 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47212     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47213 fi
47214 if test "$wxUSE_LIBPNG" = "builtin" ; then
47215     wxconfig_3rdparty="png $wxconfig_3rdparty"
47216 fi
47217 if test "$wxUSE_ZLIB" = "builtin" ; then
47218     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47219 fi
47220
47221 for i in $wxconfig_3rdparty ; do
47222     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47223 done
47224
47225
47226 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47227     WXUNIV=1
47228
47229     case "$wxUNIV_THEMES" in
47230         ''|all)
47231             cat >>confdefs.h <<\_ACEOF
47232 #define wxUSE_ALL_THEMES 1
47233 _ACEOF
47234
47235             ;;
47236
47237         *)
47238             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47239                 cat >>confdefs.h <<_ACEOF
47240 #define wxUSE_THEME_$t 1
47241 _ACEOF
47242
47243             done
47244     esac
47245 else
47246     WXUNIV=0
47247 fi
47248
47249
47250
47251
47252
47253
47254
47255
47256 if test $wxUSE_MONOLITHIC = "yes" ; then
47257     MONOLITHIC=1
47258 else
47259     MONOLITHIC=0
47260 fi
47261
47262 if test $wxUSE_PLUGINS = "yes" ; then
47263     USE_PLUGINS=1
47264 else
47265     USE_PLUGINS=0
47266 fi
47267
47268 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47269     USE_QA=1
47270 else
47271     USE_QA=0
47272 fi
47273
47274 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47275     OFFICIAL_BUILD=1
47276 else
47277     OFFICIAL_BUILD=0
47278 fi
47279
47280
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307 TOOLKIT_LOWERCASE=xxx
47308 if test "$TOOLKIT" = "MAC"; then
47309     TOOLKIT_LOWERCASE=osx_carbon
47310 fi
47311 if test "$TOOLKIT" = "OSX_CARBON"; then
47312     TOOLKIT_LOWERCASE=osx_carbon
47313 fi
47314 if test "$TOOLKIT" = "OSX_COCOA"; then
47315     TOOLKIT_LOWERCASE=osx_cocoa
47316 fi
47317 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47318     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47319 fi
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330 case "$TOOLKIT" in
47331     GTK)
47332         TOOLKIT_DESC="GTK+"
47333         if test "$WXGTK2" = 1; then
47334             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47335             if test "$wxUSE_GTKPRINT" = "yes" ; then
47336                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47337             fi
47338             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47339                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47340             fi
47341             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47342                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47343             fi
47344             if test "$wxUSE_LIBHILDON" = "yes"; then
47345                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47346             fi
47347
47348             if test "$TOOLKIT_EXTRA" != ""; then
47349                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47350             fi
47351         fi
47352         ;;
47353
47354     ?*)
47355         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47356         ;;
47357
47358     *)
47359         TOOLKIT_DESC="base only"
47360         ;;
47361 esac
47362
47363 if test "$wxUSE_WINE" = "yes"; then
47364     BAKEFILE_FORCE_PLATFORM=win32
47365 fi
47366
47367 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47368 then
47369     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47370 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47371 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47372   echo $ECHO_N "(cached) $ECHO_C" >&6
47373 else
47374
47375             echo '#include <stdio.h>
47376                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47377
47378             echo '#include "conftest.h"
47379                   int main()
47380                   {
47381                      printf("%ls", test_var);
47382                      return 0;
47383                   }' > conftest.cpp
47384
47385             wx_cv_gcc_pch_bug="pch not supported"
47386
47387             if $CXX conftest.h >/dev/null 2>&1
47388             then
47389                 wx_cv_gcc_pch_bug=
47390
47391                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47392                 then
47393                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47394                         grep awidetest >/dev/null
47395                     then
47396                         wx_cv_gcc_pch_bug=no
47397                     else
47398                         wx_cv_gcc_pch_bug=yes
47399                     fi
47400                 fi
47401             fi
47402
47403             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47404
47405 fi
47406 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47407 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47408
47409     if test "$wx_cv_gcc_pch_bug" = yes; then
47410                         bk_use_pch=no
47411     fi
47412 fi
47413
47414
47415
47416
47417
47418
47419
47420     if test "x$BAKEFILE_HOST" = "x"; then
47421                if test "x${host}" = "x" ; then
47422                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47423 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47424    { (exit 1); exit 1; }; }
47425                fi
47426
47427         BAKEFILE_HOST="${host}"
47428     fi
47429
47430     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47431
47432     if test -n "$ac_tool_prefix"; then
47433   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47437 if test "${ac_cv_prog_RANLIB+set}" = set; then
47438   echo $ECHO_N "(cached) $ECHO_C" >&6
47439 else
47440   if test -n "$RANLIB"; then
47441   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47442 else
47443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47444 for as_dir in $PATH
47445 do
47446   IFS=$as_save_IFS
47447   test -z "$as_dir" && as_dir=.
47448   for ac_exec_ext in '' $ac_executable_extensions; do
47449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47450     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47452     break 2
47453   fi
47454 done
47455 done
47456 IFS=$as_save_IFS
47457
47458 fi
47459 fi
47460 RANLIB=$ac_cv_prog_RANLIB
47461 if test -n "$RANLIB"; then
47462   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47463 echo "${ECHO_T}$RANLIB" >&6; }
47464 else
47465   { echo "$as_me:$LINENO: result: no" >&5
47466 echo "${ECHO_T}no" >&6; }
47467 fi
47468
47469
47470 fi
47471 if test -z "$ac_cv_prog_RANLIB"; then
47472   ac_ct_RANLIB=$RANLIB
47473   # Extract the first word of "ranlib", so it can be a program name with args.
47474 set dummy ranlib; ac_word=$2
47475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47478   echo $ECHO_N "(cached) $ECHO_C" >&6
47479 else
47480   if test -n "$ac_ct_RANLIB"; then
47481   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47482 else
47483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47484 for as_dir in $PATH
47485 do
47486   IFS=$as_save_IFS
47487   test -z "$as_dir" && as_dir=.
47488   for ac_exec_ext in '' $ac_executable_extensions; do
47489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47490     ac_cv_prog_ac_ct_RANLIB="ranlib"
47491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47492     break 2
47493   fi
47494 done
47495 done
47496 IFS=$as_save_IFS
47497
47498 fi
47499 fi
47500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47501 if test -n "$ac_ct_RANLIB"; then
47502   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47503 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47504 else
47505   { echo "$as_me:$LINENO: result: no" >&5
47506 echo "${ECHO_T}no" >&6; }
47507 fi
47508
47509   if test "x$ac_ct_RANLIB" = x; then
47510     RANLIB=":"
47511   else
47512     case $cross_compiling:$ac_tool_warned in
47513 yes:)
47514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47515 whose name does not start with the host triplet.  If you think this
47516 configuration is useful to you, please write to autoconf@gnu.org." >&5
47517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47518 whose name does not start with the host triplet.  If you think this
47519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47520 ac_tool_warned=yes ;;
47521 esac
47522     RANLIB=$ac_ct_RANLIB
47523   fi
47524 else
47525   RANLIB="$ac_cv_prog_RANLIB"
47526 fi
47527
47528     # Find a good install program.  We prefer a C program (faster),
47529 # so one script is as good as another.  But avoid the broken or
47530 # incompatible versions:
47531 # SysV /etc/install, /usr/sbin/install
47532 # SunOS /usr/etc/install
47533 # IRIX /sbin/install
47534 # AIX /bin/install
47535 # AmigaOS /C/install, which installs bootblocks on floppy discs
47536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47539 # OS/2's system install, which has a completely different semantic
47540 # ./install, which can be erroneously created by make from ./install.sh.
47541 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47543 if test -z "$INSTALL"; then
47544 if test "${ac_cv_path_install+set}" = set; then
47545   echo $ECHO_N "(cached) $ECHO_C" >&6
47546 else
47547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47548 for as_dir in $PATH
47549 do
47550   IFS=$as_save_IFS
47551   test -z "$as_dir" && as_dir=.
47552   # Account for people who put trailing slashes in PATH elements.
47553 case $as_dir/ in
47554   ./ | .// | /cC/* | \
47555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47557   /usr/ucb/* ) ;;
47558   *)
47559     # OSF1 and SCO ODT 3.0 have their own names for install.
47560     # Don't use installbsd from OSF since it installs stuff as root
47561     # by default.
47562     for ac_prog in ginstall scoinst install; do
47563       for ac_exec_ext in '' $ac_executable_extensions; do
47564         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47565           if test $ac_prog = install &&
47566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47567             # AIX install.  It has an incompatible calling convention.
47568             :
47569           elif test $ac_prog = install &&
47570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47571             # program-specific install script used by HP pwplus--don't use.
47572             :
47573           else
47574             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47575             break 3
47576           fi
47577         fi
47578       done
47579     done
47580     ;;
47581 esac
47582 done
47583 IFS=$as_save_IFS
47584
47585
47586 fi
47587   if test "${ac_cv_path_install+set}" = set; then
47588     INSTALL=$ac_cv_path_install
47589   else
47590     # As a last resort, use the slow shell script.  Don't cache a
47591     # value for INSTALL within a source directory, because that will
47592     # break other packages using the cache if that directory is
47593     # removed, or if the value is a relative name.
47594     INSTALL=$ac_install_sh
47595   fi
47596 fi
47597 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47598 echo "${ECHO_T}$INSTALL" >&6; }
47599
47600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47601 # It thinks the first close brace ends the variable substitution.
47602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47603
47604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47605
47606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47607
47608     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47609 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47610 LN_S=$as_ln_s
47611 if test "$LN_S" = "ln -s"; then
47612   { echo "$as_me:$LINENO: result: yes" >&5
47613 echo "${ECHO_T}yes" >&6; }
47614 else
47615   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47616 echo "${ECHO_T}no, using $LN_S" >&6; }
47617 fi
47618
47619
47620     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47621 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47622 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47623 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47624   echo $ECHO_N "(cached) $ECHO_C" >&6
47625 else
47626   cat >conftest.make <<\_ACEOF
47627 SHELL = /bin/sh
47628 all:
47629         @echo '@@@%%%=$(MAKE)=@@@%%%'
47630 _ACEOF
47631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47633   *@@@%%%=?*=@@@%%%*)
47634     eval ac_cv_prog_make_${ac_make}_set=yes;;
47635   *)
47636     eval ac_cv_prog_make_${ac_make}_set=no;;
47637 esac
47638 rm -f conftest.make
47639 fi
47640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47641   { echo "$as_me:$LINENO: result: yes" >&5
47642 echo "${ECHO_T}yes" >&6; }
47643   SET_MAKE=
47644 else
47645   { echo "$as_me:$LINENO: result: no" >&5
47646 echo "${ECHO_T}no" >&6; }
47647   SET_MAKE="MAKE=${MAKE-make}"
47648 fi
47649
47650
47651
47652     if test "x$SUNCXX" = "xyes"; then
47653                                 AR=$CXX
47654         AROPTIONS="-xar -o"
47655
47656     elif test "x$SGICC" = "xyes"; then
47657                 AR=$CXX
47658         AROPTIONS="-ar -o"
47659
47660     else
47661         if test -n "$ac_tool_prefix"; then
47662   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47663 set dummy ${ac_tool_prefix}ar; ac_word=$2
47664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47666 if test "${ac_cv_prog_AR+set}" = set; then
47667   echo $ECHO_N "(cached) $ECHO_C" >&6
47668 else
47669   if test -n "$AR"; then
47670   ac_cv_prog_AR="$AR" # Let the user override the test.
47671 else
47672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47673 for as_dir in $PATH
47674 do
47675   IFS=$as_save_IFS
47676   test -z "$as_dir" && as_dir=.
47677   for ac_exec_ext in '' $ac_executable_extensions; do
47678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47679     ac_cv_prog_AR="${ac_tool_prefix}ar"
47680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47681     break 2
47682   fi
47683 done
47684 done
47685 IFS=$as_save_IFS
47686
47687 fi
47688 fi
47689 AR=$ac_cv_prog_AR
47690 if test -n "$AR"; then
47691   { echo "$as_me:$LINENO: result: $AR" >&5
47692 echo "${ECHO_T}$AR" >&6; }
47693 else
47694   { echo "$as_me:$LINENO: result: no" >&5
47695 echo "${ECHO_T}no" >&6; }
47696 fi
47697
47698
47699 fi
47700 if test -z "$ac_cv_prog_AR"; then
47701   ac_ct_AR=$AR
47702   # Extract the first word of "ar", so it can be a program name with args.
47703 set dummy ar; ac_word=$2
47704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47706 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47707   echo $ECHO_N "(cached) $ECHO_C" >&6
47708 else
47709   if test -n "$ac_ct_AR"; then
47710   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47711 else
47712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47713 for as_dir in $PATH
47714 do
47715   IFS=$as_save_IFS
47716   test -z "$as_dir" && as_dir=.
47717   for ac_exec_ext in '' $ac_executable_extensions; do
47718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47719     ac_cv_prog_ac_ct_AR="ar"
47720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47721     break 2
47722   fi
47723 done
47724 done
47725 IFS=$as_save_IFS
47726
47727 fi
47728 fi
47729 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47730 if test -n "$ac_ct_AR"; then
47731   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47732 echo "${ECHO_T}$ac_ct_AR" >&6; }
47733 else
47734   { echo "$as_me:$LINENO: result: no" >&5
47735 echo "${ECHO_T}no" >&6; }
47736 fi
47737
47738   if test "x$ac_ct_AR" = x; then
47739     AR="ar"
47740   else
47741     case $cross_compiling:$ac_tool_warned in
47742 yes:)
47743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47744 whose name does not start with the host triplet.  If you think this
47745 configuration is useful to you, please write to autoconf@gnu.org." >&5
47746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47747 whose name does not start with the host triplet.  If you think this
47748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47749 ac_tool_warned=yes ;;
47750 esac
47751     AR=$ac_ct_AR
47752   fi
47753 else
47754   AR="$ac_cv_prog_AR"
47755 fi
47756
47757         AROPTIONS=rcu
47758     fi
47759
47760
47761     if test -n "$ac_tool_prefix"; then
47762   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47763 set dummy ${ac_tool_prefix}strip; ac_word=$2
47764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47766 if test "${ac_cv_prog_STRIP+set}" = set; then
47767   echo $ECHO_N "(cached) $ECHO_C" >&6
47768 else
47769   if test -n "$STRIP"; then
47770   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47771 else
47772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47773 for as_dir in $PATH
47774 do
47775   IFS=$as_save_IFS
47776   test -z "$as_dir" && as_dir=.
47777   for ac_exec_ext in '' $ac_executable_extensions; do
47778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47779     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47781     break 2
47782   fi
47783 done
47784 done
47785 IFS=$as_save_IFS
47786
47787 fi
47788 fi
47789 STRIP=$ac_cv_prog_STRIP
47790 if test -n "$STRIP"; then
47791   { echo "$as_me:$LINENO: result: $STRIP" >&5
47792 echo "${ECHO_T}$STRIP" >&6; }
47793 else
47794   { echo "$as_me:$LINENO: result: no" >&5
47795 echo "${ECHO_T}no" >&6; }
47796 fi
47797
47798
47799 fi
47800 if test -z "$ac_cv_prog_STRIP"; then
47801   ac_ct_STRIP=$STRIP
47802   # Extract the first word of "strip", so it can be a program name with args.
47803 set dummy strip; ac_word=$2
47804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47807   echo $ECHO_N "(cached) $ECHO_C" >&6
47808 else
47809   if test -n "$ac_ct_STRIP"; then
47810   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47811 else
47812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47813 for as_dir in $PATH
47814 do
47815   IFS=$as_save_IFS
47816   test -z "$as_dir" && as_dir=.
47817   for ac_exec_ext in '' $ac_executable_extensions; do
47818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47819     ac_cv_prog_ac_ct_STRIP="strip"
47820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47821     break 2
47822   fi
47823 done
47824 done
47825 IFS=$as_save_IFS
47826
47827 fi
47828 fi
47829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47830 if test -n "$ac_ct_STRIP"; then
47831   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47832 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47833 else
47834   { echo "$as_me:$LINENO: result: no" >&5
47835 echo "${ECHO_T}no" >&6; }
47836 fi
47837
47838   if test "x$ac_ct_STRIP" = x; then
47839     STRIP=":"
47840   else
47841     case $cross_compiling:$ac_tool_warned in
47842 yes:)
47843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47844 whose name does not start with the host triplet.  If you think this
47845 configuration is useful to you, please write to autoconf@gnu.org." >&5
47846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47847 whose name does not start with the host triplet.  If you think this
47848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47849 ac_tool_warned=yes ;;
47850 esac
47851     STRIP=$ac_ct_STRIP
47852   fi
47853 else
47854   STRIP="$ac_cv_prog_STRIP"
47855 fi
47856
47857     if test -n "$ac_tool_prefix"; then
47858   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47859 set dummy ${ac_tool_prefix}nm; ac_word=$2
47860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47862 if test "${ac_cv_prog_NM+set}" = set; then
47863   echo $ECHO_N "(cached) $ECHO_C" >&6
47864 else
47865   if test -n "$NM"; then
47866   ac_cv_prog_NM="$NM" # Let the user override the test.
47867 else
47868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47869 for as_dir in $PATH
47870 do
47871   IFS=$as_save_IFS
47872   test -z "$as_dir" && as_dir=.
47873   for ac_exec_ext in '' $ac_executable_extensions; do
47874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47875     ac_cv_prog_NM="${ac_tool_prefix}nm"
47876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47877     break 2
47878   fi
47879 done
47880 done
47881 IFS=$as_save_IFS
47882
47883 fi
47884 fi
47885 NM=$ac_cv_prog_NM
47886 if test -n "$NM"; then
47887   { echo "$as_me:$LINENO: result: $NM" >&5
47888 echo "${ECHO_T}$NM" >&6; }
47889 else
47890   { echo "$as_me:$LINENO: result: no" >&5
47891 echo "${ECHO_T}no" >&6; }
47892 fi
47893
47894
47895 fi
47896 if test -z "$ac_cv_prog_NM"; then
47897   ac_ct_NM=$NM
47898   # Extract the first word of "nm", so it can be a program name with args.
47899 set dummy nm; ac_word=$2
47900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47902 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47903   echo $ECHO_N "(cached) $ECHO_C" >&6
47904 else
47905   if test -n "$ac_ct_NM"; then
47906   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47907 else
47908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47909 for as_dir in $PATH
47910 do
47911   IFS=$as_save_IFS
47912   test -z "$as_dir" && as_dir=.
47913   for ac_exec_ext in '' $ac_executable_extensions; do
47914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47915     ac_cv_prog_ac_ct_NM="nm"
47916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47917     break 2
47918   fi
47919 done
47920 done
47921 IFS=$as_save_IFS
47922
47923 fi
47924 fi
47925 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47926 if test -n "$ac_ct_NM"; then
47927   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47928 echo "${ECHO_T}$ac_ct_NM" >&6; }
47929 else
47930   { echo "$as_me:$LINENO: result: no" >&5
47931 echo "${ECHO_T}no" >&6; }
47932 fi
47933
47934   if test "x$ac_ct_NM" = x; then
47935     NM=":"
47936   else
47937     case $cross_compiling:$ac_tool_warned in
47938 yes:)
47939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47940 whose name does not start with the host triplet.  If you think this
47941 configuration is useful to you, please write to autoconf@gnu.org." >&5
47942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47943 whose name does not start with the host triplet.  If you think this
47944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47945 ac_tool_warned=yes ;;
47946 esac
47947     NM=$ac_ct_NM
47948   fi
47949 else
47950   NM="$ac_cv_prog_NM"
47951 fi
47952
47953
47954             { echo "$as_me:$LINENO: checking for command to install directories" >&5
47955 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
47956     INSTALL_TEST_DIR=acbftest$$
47957     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
47958     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
47959         rmdir $INSTALL_TEST_DIR
47960                         INSTALL_DIR='$(INSTALL) -d'
47961         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
47962 echo "${ECHO_T}$INSTALL -d" >&6; }
47963     else
47964         INSTALL_DIR="mkdir -p"
47965         { echo "$as_me:$LINENO: result: mkdir -p" >&5
47966 echo "${ECHO_T}mkdir -p" >&6; }
47967     fi
47968
47969
47970     LDFLAGS_GUI=
47971     case ${BAKEFILE_HOST} in
47972         *-*-cygwin* | *-*-mingw32* )
47973         LDFLAGS_GUI="-mwindows"
47974     esac
47975
47976
47977     fi
47978
47979         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47980 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47981 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47982   echo $ECHO_N "(cached) $ECHO_C" >&6
47983 else
47984
47985         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47986                 egrep -s GNU > /dev/null); then
47987             bakefile_cv_prog_makeisgnu="yes"
47988         else
47989             bakefile_cv_prog_makeisgnu="no"
47990         fi
47991
47992 fi
47993 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47994 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47995
47996     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47997         IF_GNU_MAKE=""
47998     else
47999         IF_GNU_MAKE="#"
48000     fi
48001
48002
48003
48004     PLATFORM_UNIX=0
48005     PLATFORM_WIN32=0
48006     PLATFORM_MSDOS=0
48007     PLATFORM_MAC=0
48008     PLATFORM_MACOS=0
48009     PLATFORM_MACOSX=0
48010     PLATFORM_OS2=0
48011     PLATFORM_BEOS=0
48012
48013     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48014         case "${BAKEFILE_HOST}" in
48015             *-*-mingw32* )
48016                 PLATFORM_WIN32=1
48017             ;;
48018             *-pc-msdosdjgpp )
48019                 PLATFORM_MSDOS=1
48020             ;;
48021             *-pc-os2_emx | *-pc-os2-emx )
48022                 PLATFORM_OS2=1
48023             ;;
48024             *-*-darwin* )
48025                 PLATFORM_MAC=1
48026                 PLATFORM_MACOSX=1
48027             ;;
48028             *-*-beos* )
48029                 PLATFORM_BEOS=1
48030             ;;
48031             powerpc-apple-macos* )
48032                 PLATFORM_MAC=1
48033                 PLATFORM_MACOS=1
48034             ;;
48035             * )
48036                 PLATFORM_UNIX=1
48037             ;;
48038         esac
48039     else
48040         case "$BAKEFILE_FORCE_PLATFORM" in
48041             win32 )
48042                 PLATFORM_WIN32=1
48043             ;;
48044             msdos )
48045                 PLATFORM_MSDOS=1
48046             ;;
48047             os2 )
48048                 PLATFORM_OS2=1
48049             ;;
48050             darwin )
48051                 PLATFORM_MAC=1
48052                 PLATFORM_MACOSX=1
48053             ;;
48054             unix )
48055                 PLATFORM_UNIX=1
48056             ;;
48057             beos )
48058                 PLATFORM_BEOS=1
48059             ;;
48060             * )
48061                                             ;;
48062         esac
48063     fi
48064
48065
48066
48067
48068
48069
48070
48071
48072
48073
48074
48075     # Check whether --enable-omf was given.
48076 if test "${enable_omf+set}" = set; then
48077   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48078 fi
48079
48080
48081     case "${BAKEFILE_HOST}" in
48082       *-*-darwin* )
48083                         if test "x$GCC" = "xyes"; then
48084             CFLAGS="$CFLAGS -fno-common"
48085             CXXFLAGS="$CXXFLAGS -fno-common"
48086         fi
48087         if test "x$XLCC" = "xyes"; then
48088             CFLAGS="$CFLAGS -qnocommon"
48089             CXXFLAGS="$CXXFLAGS -qnocommon"
48090         fi
48091         ;;
48092
48093       *-pc-os2_emx | *-pc-os2-emx )
48094         if test "x$bk_os2_use_omf" = "xyes" ; then
48095             AR=emxomfar
48096             RANLIB=:
48097             LDFLAGS="-Zomf $LDFLAGS"
48098             CFLAGS="-Zomf $CFLAGS"
48099             CXXFLAGS="-Zomf $CXXFLAGS"
48100             OS2_LIBEXT="lib"
48101         else
48102             OS2_LIBEXT="a"
48103         fi
48104         ;;
48105
48106       i*86-*-beos* )
48107         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48108         ;;
48109     esac
48110
48111
48112     SO_SUFFIX="so"
48113     SO_SUFFIX_MODULE="so"
48114     EXEEXT=""
48115     LIBPREFIX="lib"
48116     LIBEXT=".a"
48117     DLLPREFIX="lib"
48118     DLLPREFIX_MODULE=""
48119     DLLIMP_SUFFIX=""
48120     dlldir="$libdir"
48121
48122     case "${BAKEFILE_HOST}" in
48123                         ia64-hp-hpux* )
48124         ;;
48125         *-hp-hpux* )
48126             SO_SUFFIX="sl"
48127             SO_SUFFIX_MODULE="sl"
48128         ;;
48129         *-*-aix* )
48130                                                                         SO_SUFFIX="a"
48131             SO_SUFFIX_MODULE="a"
48132         ;;
48133         *-*-cygwin* )
48134             SO_SUFFIX="dll"
48135             SO_SUFFIX_MODULE="dll"
48136             DLLIMP_SUFFIX="dll.a"
48137             EXEEXT=".exe"
48138             DLLPREFIX="cyg"
48139             dlldir="$bindir"
48140         ;;
48141         *-*-mingw32* )
48142             SO_SUFFIX="dll"
48143             SO_SUFFIX_MODULE="dll"
48144             DLLIMP_SUFFIX="dll.a"
48145             EXEEXT=".exe"
48146             DLLPREFIX=""
48147             dlldir="$bindir"
48148         ;;
48149         *-pc-msdosdjgpp )
48150             EXEEXT=".exe"
48151             DLLPREFIX=""
48152             dlldir="$bindir"
48153         ;;
48154         *-pc-os2_emx | *-pc-os2-emx )
48155             SO_SUFFIX="dll"
48156             SO_SUFFIX_MODULE="dll"
48157             DLLIMP_SUFFIX=$OS2_LIBEXT
48158             EXEEXT=".exe"
48159             DLLPREFIX=""
48160             LIBPREFIX=""
48161             LIBEXT=".$OS2_LIBEXT"
48162             dlldir="$bindir"
48163         ;;
48164         *-*-darwin* )
48165             SO_SUFFIX="dylib"
48166             SO_SUFFIX_MODULE="bundle"
48167         ;;
48168     esac
48169
48170     if test "x$DLLIMP_SUFFIX" = "x" ; then
48171         DLLIMP_SUFFIX="$SO_SUFFIX"
48172     fi
48173
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185         PIC_FLAG=""
48186     if test "x$GCC" = "xyes"; then
48187                 PIC_FLAG="-fPIC"
48188     fi
48189
48190         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48191     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48192     WINDOWS_IMPLIB=0
48193
48194     case "${BAKEFILE_HOST}" in
48195       *-hp-hpux* )
48196                 if test "x$GCC" != "xyes"; then
48197                         LDFLAGS="$LDFLAGS -L/usr/lib"
48198
48199             SHARED_LD_CC="${CC} -b -o"
48200             SHARED_LD_CXX="${CXX} -b -o"
48201             PIC_FLAG="+Z"
48202         fi
48203       ;;
48204
48205       *-*-linux* )
48206                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48207             PIC_FLAG="-KPIC"
48208         elif test "x$SUNCXX" = "xyes"; then
48209             SHARED_LD_CC="${CC} -G -o"
48210             SHARED_LD_CXX="${CXX} -G -o"
48211             PIC_FLAG="-KPIC"
48212         fi
48213       ;;
48214
48215       *-*-solaris2* )
48216         if test "x$SUNCXX" = xyes ; then
48217             SHARED_LD_CC="${CC} -G -o"
48218             SHARED_LD_CXX="${CXX} -G -o"
48219             PIC_FLAG="-KPIC"
48220         fi
48221       ;;
48222
48223       *-*-darwin* )
48224
48225 D='$'
48226 cat <<EOF >shared-ld-sh
48227 #!/bin/sh
48228 #-----------------------------------------------------------------------------
48229 #-- Name:        distrib/mac/shared-ld-sh
48230 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48231 #-- Author:      Gilles Depeyrot
48232 #-- Copyright:   (c) 2002 Gilles Depeyrot
48233 #-- Licence:     any use permitted
48234 #-----------------------------------------------------------------------------
48235
48236 verbose=0
48237 args=""
48238 objects=""
48239 linking_flag="-dynamiclib"
48240 ldargs="-r -keep_private_externs -nostdlib"
48241
48242 if test "x${D}CXX" = "x"; then
48243     CXX="c++"
48244 fi
48245
48246 while test ${D}# -gt 0; do
48247     case ${D}1 in
48248
48249        -v)
48250         verbose=1
48251         ;;
48252
48253        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48254         # collect these options and values
48255         args="${D}{args} ${D}1 ${D}2"
48256         shift
48257         ;;
48258
48259        -arch|-isysroot)
48260         # collect these options and values
48261         ldargs="${D}{ldargs} ${D}1 ${D}2"
48262         shift
48263         ;;
48264
48265        -s|-Wl,*)
48266         # collect these load args
48267         ldargs="${D}{ldargs} ${D}1"
48268         ;;
48269
48270        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48271         # collect these options
48272         args="${D}{args} ${D}1"
48273         ;;
48274
48275        -dynamiclib|-bundle)
48276         linking_flag="${D}1"
48277         ;;
48278
48279        -*)
48280         echo "shared-ld: unhandled option '${D}1'"
48281         exit 1
48282         ;;
48283
48284         *.o | *.a | *.dylib)
48285         # collect object files
48286         objects="${D}{objects} ${D}1"
48287         ;;
48288
48289         *)
48290         echo "shared-ld: unhandled argument '${D}1'"
48291         exit 1
48292         ;;
48293
48294     esac
48295     shift
48296 done
48297
48298 status=0
48299
48300 #
48301 # Link one module containing all the others
48302 #
48303 if test ${D}{verbose} = 1; then
48304     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48305 fi
48306 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48307 status=${D}?
48308
48309 #
48310 # Link the shared library from the single module created, but only if the
48311 # previous command didn't fail:
48312 #
48313 if test ${D}{status} = 0; then
48314     if test ${D}{verbose} = 1; then
48315         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48316     fi
48317     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48318     status=${D}?
48319 fi
48320
48321 #
48322 # Remove intermediate module
48323 #
48324 rm -f master.${D}${D}.o
48325
48326 exit ${D}status
48327 EOF
48328
48329         chmod +x shared-ld-sh
48330
48331         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48332         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48333
48334
48335                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48336 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48337 if test "${bakefile_cv_gcc31+set}" = set; then
48338   echo $ECHO_N "(cached) $ECHO_C" >&6
48339 else
48340
48341            cat >conftest.$ac_ext <<_ACEOF
48342 /* confdefs.h.  */
48343 _ACEOF
48344 cat confdefs.h >>conftest.$ac_ext
48345 cat >>conftest.$ac_ext <<_ACEOF
48346 /* end confdefs.h.  */
48347
48348 int
48349 main ()
48350 {
48351
48352                    #if (__GNUC__ < 3) || \
48353                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48354                        This is old gcc
48355                    #endif
48356
48357   ;
48358   return 0;
48359 }
48360 _ACEOF
48361 rm -f conftest.$ac_objext
48362 if { (ac_try="$ac_compile"
48363 case "(($ac_try" in
48364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48365   *) ac_try_echo=$ac_try;;
48366 esac
48367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48368   (eval "$ac_compile") 2>conftest.er1
48369   ac_status=$?
48370   grep -v '^ *+' conftest.er1 >conftest.err
48371   rm -f conftest.er1
48372   cat conftest.err >&5
48373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48374   (exit $ac_status); } && {
48375          test -z "$ac_c_werror_flag" ||
48376          test ! -s conftest.err
48377        } && test -s conftest.$ac_objext; then
48378
48379                    bakefile_cv_gcc31=yes
48380
48381 else
48382   echo "$as_me: failed program was:" >&5
48383 sed 's/^/| /' conftest.$ac_ext >&5
48384
48385
48386                    bakefile_cv_gcc31=no
48387
48388
48389 fi
48390
48391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48392
48393 fi
48394 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48395 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48396         if test "$bakefile_cv_gcc31" = "no"; then
48397                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48398             SHARED_LD_CXX="$SHARED_LD_CC"
48399         else
48400                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48401             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48402         fi
48403
48404         if test "x$GCC" == "xyes"; then
48405             PIC_FLAG="-dynamic -fPIC"
48406         fi
48407         if test "x$XLCC" = "xyes"; then
48408             PIC_FLAG="-dynamic -DPIC"
48409         fi
48410       ;;
48411
48412       *-*-aix* )
48413         if test "x$GCC" = "xyes"; then
48414                                                             PIC_FLAG=""
48415
48416                                                                                     case "${BAKEFILE_HOST}" in
48417                 *-*-aix5* )
48418                     LD_EXPFULL="-Wl,-bexpfull"
48419                     ;;
48420             esac
48421
48422             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48423             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48424         else
48425                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48426 set dummy makeC++SharedLib; ac_word=$2
48427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48429 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48430   echo $ECHO_N "(cached) $ECHO_C" >&6
48431 else
48432   if test -n "$AIX_CXX_LD"; then
48433   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48434 else
48435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48436 for as_dir in $PATH
48437 do
48438   IFS=$as_save_IFS
48439   test -z "$as_dir" && as_dir=.
48440   for ac_exec_ext in '' $ac_executable_extensions; do
48441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48442     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48444     break 2
48445   fi
48446 done
48447 done
48448 IFS=$as_save_IFS
48449
48450   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48451 fi
48452 fi
48453 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48454 if test -n "$AIX_CXX_LD"; then
48455   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48456 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48457 else
48458   { echo "$as_me:$LINENO: result: no" >&5
48459 echo "${ECHO_T}no" >&6; }
48460 fi
48461
48462
48463             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48464             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48465         fi
48466       ;;
48467
48468       *-*-beos* )
48469                         SHARED_LD_CC="${LD} -nostart -o"
48470         SHARED_LD_CXX="${LD} -nostart -o"
48471       ;;
48472
48473       *-*-irix* )
48474                 if test "x$GCC" != "xyes"; then
48475             PIC_FLAG="-KPIC"
48476         fi
48477       ;;
48478
48479       *-*-cygwin* | *-*-mingw32* )
48480         PIC_FLAG=""
48481         SHARED_LD_CC="\$(CC) -shared -o"
48482         SHARED_LD_CXX="\$(CXX) -shared -o"
48483         WINDOWS_IMPLIB=1
48484       ;;
48485
48486       *-pc-os2_emx | *-pc-os2-emx )
48487         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48488         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48489         PIC_FLAG=""
48490
48491 D='$'
48492 cat <<EOF >dllar.sh
48493 #!/bin/sh
48494 #
48495 # dllar - a tool to build both a .dll and an .a file
48496 # from a set of object (.o) files for EMX/OS2.
48497 #
48498 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48499 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48500 #
48501 #  This script will accept a set of files on the command line.
48502 #  All the public symbols from the .o files will be exported into
48503 #  a .DEF file, then linker will be run (through gcc) against them to
48504 #  build a shared library consisting of all given .o files. All libraries
48505 #  (.a) will be first decompressed into component .o files then act as
48506 #  described above. You can optionally give a description (-d "description")
48507 #  which will be put into .DLL. To see the list of accepted options (as well
48508 #  as command-line format) simply run this program without options. The .DLL
48509 #  is built to be imported by name (there is no guarantee that new versions
48510 #  of the library you build will have same ordinals for same symbols).
48511 #
48512 #  dllar is free software; you can redistribute it and/or modify
48513 #  it under the terms of the GNU General Public License as published by
48514 #  the Free Software Foundation; either version 2, or (at your option)
48515 #  any later version.
48516 #
48517 #  dllar is distributed in the hope that it will be useful,
48518 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48519 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48520 #  GNU General Public License for more details.
48521 #
48522 #  You should have received a copy of the GNU General Public License
48523 #  along with dllar; see the file COPYING.  If not, write to the Free
48524 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48525 #  02111-1307, USA.
48526
48527 # To successfuly run this program you will need:
48528 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48529 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48530 #  - gcc
48531 #    (used to build the .dll)
48532 #  - emxexp
48533 #    (used to create .def file from .o files)
48534 #  - emximp
48535 #    (used to create .a file from .def file)
48536 #  - GNU text utilites (cat, sort, uniq)
48537 #    used to process emxexp output
48538 #  - GNU file utilities (mv, rm)
48539 #  - GNU sed
48540 #  - lxlite (optional, see flag below)
48541 #    (used for general .dll cleanup)
48542 #
48543
48544 flag_USE_LXLITE=1;
48545
48546 #
48547 # helper functions
48548 # basnam, variant of basename, which does _not_ remove the path, _iff_
48549 #                              second argument (suffix to remove) is given
48550 basnam(){
48551     case ${D}# in
48552     1)
48553         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48554         ;;
48555     2)
48556         echo ${D}1 | sed 's/'${D}2'${D}//'
48557         ;;
48558     *)
48559         echo "error in basnam ${D}*"
48560         exit 8
48561         ;;
48562     esac
48563 }
48564
48565 # Cleanup temporary files and output
48566 CleanUp() {
48567     cd ${D}curDir
48568     for i in ${D}inputFiles ; do
48569         case ${D}i in
48570         *!)
48571             rm -rf \`basnam ${D}i !\`
48572             ;;
48573         *)
48574             ;;
48575         esac
48576     done
48577
48578     # Kill result in case of failure as there is just to many stupid make/nmake
48579     # things out there which doesn't do this.
48580     if [ ${D}# -eq 0 ]; then
48581         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48582     fi
48583 }
48584
48585 # Print usage and exit script with rc=1.
48586 PrintHelp() {
48587  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48588  echo '       [-name-mangler-script script.sh]'
48589  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48590  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48591  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48592  echo '       [*.o] [*.a]'
48593  echo '*> "output_file" should have no extension.'
48594  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48595  echo '   The import library name is derived from this and is set to "name".a,'
48596  echo '   unless overridden by -import'
48597  echo '*> "importlib_name" should have no extension.'
48598  echo '   If it has the .o, or .a extension, it is automatically removed.'
48599  echo '   This name is used as the import library name and may be longer and'
48600  echo '   more descriptive than the DLL name which has to follow the old '
48601  echo '   8.3 convention of FAT.'
48602  echo '*> "script.sh may be given to override the output_file name by a'
48603  echo '   different name. It is mainly useful if the regular make process'
48604  echo '   of some package does not take into account OS/2 restriction of'
48605  echo '   DLL name lengths. It takes the importlib name as input and is'
48606  echo '   supposed to procude a shorter name as output. The script should'
48607  echo '   expect to get importlib_name without extension and should produce'
48608  echo '   a (max.) 8 letter name without extension.'
48609  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48610  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48611  echo '   These flags will be put at the start of GCC command line.'
48612  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48613  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48614  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48615  echo '   If the last character of a symbol is "*", all symbols beginning'
48616  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48617  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48618  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48619  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48620  echo '   C runtime DLLs.'
48621  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48622  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48623  echo '   unchanged to GCC at the end of command line.'
48624  echo '*> If you create a DLL from a library and you do not specify -o,'
48625  echo '   the basename for DLL and import library will be set to library name,'
48626  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48627  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48628  echo '   library will be renamed into gcc_s.a.'
48629  echo '--------'
48630  echo 'Example:'
48631  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48632  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48633  CleanUp
48634  exit 1
48635 }
48636
48637 # Execute a command.
48638 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48639 # @Uses    Whatever CleanUp() uses.
48640 doCommand() {
48641     echo "${D}*"
48642     eval ${D}*
48643     rcCmd=${D}?
48644
48645     if [ ${D}rcCmd -ne 0 ]; then
48646         echo "command failed, exit code="${D}rcCmd
48647         CleanUp
48648         exit ${D}rcCmd
48649     fi
48650 }
48651
48652 # main routine
48653 # setup globals
48654 cmdLine=${D}*
48655 outFile=""
48656 outimpFile=""
48657 inputFiles=""
48658 renameScript=""
48659 description=""
48660 CC=gcc.exe
48661 CFLAGS="-s -Zcrtdll"
48662 EXTRA_CFLAGS=""
48663 EXPORT_BY_ORDINALS=0
48664 exclude_symbols=""
48665 library_flags=""
48666 curDir=\`pwd\`
48667 curDirS=curDir
48668 case ${D}curDirS in
48669 */)
48670   ;;
48671 *)
48672   curDirS=${D}{curDirS}"/"
48673   ;;
48674 esac
48675 # Parse commandline
48676 libsToLink=0
48677 omfLinking=0
48678 while [ ${D}1 ]; do
48679     case ${D}1 in
48680     -ord*)
48681         EXPORT_BY_ORDINALS=1;
48682         ;;
48683     -o*)
48684         shift
48685         outFile=${D}1
48686         ;;
48687     -i*)
48688         shift
48689         outimpFile=${D}1
48690         ;;
48691     -name-mangler-script)
48692         shift
48693         renameScript=${D}1
48694         ;;
48695     -d*)
48696         shift
48697         description=${D}1
48698         ;;
48699     -f*)
48700         shift
48701         CFLAGS=${D}1
48702         ;;
48703     -c*)
48704         shift
48705         CC=${D}1
48706         ;;
48707     -h*)
48708         PrintHelp
48709         ;;
48710     -ex*)
48711         shift
48712         exclude_symbols=${D}{exclude_symbols}${D}1" "
48713         ;;
48714     -libf*)
48715         shift
48716         library_flags=${D}{library_flags}${D}1" "
48717         ;;
48718     -nocrt*)
48719         CFLAGS="-s"
48720         ;;
48721     -nolxl*)
48722         flag_USE_LXLITE=0
48723         ;;
48724     -* | /*)
48725         case ${D}1 in
48726         -L* | -l*)
48727             libsToLink=1
48728             ;;
48729         -Zomf)
48730             omfLinking=1
48731             ;;
48732         *)
48733             ;;
48734         esac
48735         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48736         ;;
48737     *.dll)
48738         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48739         if [ ${D}omfLinking -eq 1 ]; then
48740             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48741         else
48742             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48743         fi
48744         ;;
48745     *)
48746         found=0;
48747         if [ ${D}libsToLink -ne 0 ]; then
48748             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48749         else
48750             for file in ${D}1 ; do
48751                 if [ -f ${D}file ]; then
48752                     inputFiles="${D}{inputFiles} ${D}file"
48753                     found=1
48754                 fi
48755             done
48756             if [ ${D}found -eq 0 ]; then
48757                 echo "ERROR: No file(s) found: "${D}1
48758                 exit 8
48759             fi
48760         fi
48761       ;;
48762     esac
48763     shift
48764 done # iterate cmdline words
48765
48766 #
48767 if [ -z "${D}inputFiles" ]; then
48768     echo "dllar: no input files"
48769     PrintHelp
48770 fi
48771
48772 # Now extract all .o files from .a files
48773 newInputFiles=""
48774 for file in ${D}inputFiles ; do
48775     case ${D}file in
48776     *.a | *.lib)
48777         case ${D}file in
48778         *.a)
48779             suffix=".a"
48780             AR="ar"
48781             ;;
48782         *.lib)
48783             suffix=".lib"
48784             AR="emxomfar"
48785             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48786             ;;
48787         *)
48788             ;;
48789         esac
48790         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48791         mkdir ${D}dirname
48792         if [ ${D}? -ne 0 ]; then
48793             echo "Failed to create subdirectory ./${D}dirname"
48794             CleanUp
48795             exit 8;
48796         fi
48797         # Append '!' to indicate archive
48798         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48799         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48800         cd ${D}curDir
48801         found=0;
48802         for subfile in ${D}dirname/*.o* ; do
48803             if [ -f ${D}subfile ]; then
48804                 found=1
48805                 if [ -s ${D}subfile ]; then
48806                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48807                     newInputFiles="${D}newInputFiles ${D}subfile"
48808                 fi
48809             fi
48810         done
48811         if [ ${D}found -eq 0 ]; then
48812             echo "WARNING: there are no files in archive \\'${D}file\\'"
48813         fi
48814         ;;
48815     *)
48816         newInputFiles="${D}{newInputFiles} ${D}file"
48817         ;;
48818     esac
48819 done
48820 inputFiles="${D}newInputFiles"
48821
48822 # Output filename(s).
48823 do_backup=0;
48824 if [ -z ${D}outFile ]; then
48825     do_backup=1;
48826     set outFile ${D}inputFiles; outFile=${D}2
48827 fi
48828
48829 # If it is an archive, remove the '!' and the '_%' suffixes
48830 case ${D}outFile in
48831 *_%!)
48832     outFile=\`basnam ${D}outFile _%!\`
48833     ;;
48834 *)
48835     ;;
48836 esac
48837 case ${D}outFile in
48838 *.dll)
48839     outFile=\`basnam ${D}outFile .dll\`
48840     ;;
48841 *.DLL)
48842     outFile=\`basnam ${D}outFile .DLL\`
48843     ;;
48844 *.o)
48845     outFile=\`basnam ${D}outFile .o\`
48846     ;;
48847 *.obj)
48848     outFile=\`basnam ${D}outFile .obj\`
48849     ;;
48850 *.a)
48851     outFile=\`basnam ${D}outFile .a\`
48852     ;;
48853 *.lib)
48854     outFile=\`basnam ${D}outFile .lib\`
48855     ;;
48856 *)
48857     ;;
48858 esac
48859 case ${D}outimpFile in
48860 *.a)
48861     outimpFile=\`basnam ${D}outimpFile .a\`
48862     ;;
48863 *.lib)
48864     outimpFile=\`basnam ${D}outimpFile .lib\`
48865     ;;
48866 *)
48867     ;;
48868 esac
48869 if [ -z ${D}outimpFile ]; then
48870     outimpFile=${D}outFile
48871 fi
48872 defFile="${D}{outFile}.def"
48873 arcFile="${D}{outimpFile}.a"
48874 arcFile2="${D}{outimpFile}.lib"
48875
48876 #create ${D}dllFile as something matching 8.3 restrictions,
48877 if [ -z ${D}renameScript ] ; then
48878     dllFile="${D}outFile"
48879 else
48880     dllFile=\`${D}renameScript ${D}outimpFile\`
48881 fi
48882
48883 if [ ${D}do_backup -ne 0 ] ; then
48884     if [ -f ${D}arcFile ] ; then
48885         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48886     fi
48887     if [ -f ${D}arcFile2 ] ; then
48888         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48889     fi
48890 fi
48891
48892 # Extract public symbols from all the object files.
48893 tmpdefFile=${D}{defFile}_%
48894 rm -f ${D}tmpdefFile
48895 for file in ${D}inputFiles ; do
48896     case ${D}file in
48897     *!)
48898         ;;
48899     *)
48900         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48901         ;;
48902     esac
48903 done
48904
48905 # Create the def file.
48906 rm -f ${D}defFile
48907 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48908 dllFile="${D}{dllFile}.dll"
48909 if [ ! -z ${D}description ]; then
48910     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48911 fi
48912 echo "EXPORTS" >> ${D}defFile
48913
48914 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48915 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48916
48917 # Checks if the export is ok or not.
48918 for word in ${D}exclude_symbols; do
48919     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48920     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48921 done
48922
48923
48924 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48925     sed "=" < ${D}tmpdefFile | \\
48926     sed '
48927       N
48928       : loop
48929       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48930       t loop
48931     ' > ${D}{tmpdefFile}%
48932     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48933 else
48934     rm -f ${D}{tmpdefFile}%
48935 fi
48936 cat ${D}tmpdefFile >> ${D}defFile
48937 rm -f ${D}tmpdefFile
48938
48939 # Do linking, create implib, and apply lxlite.
48940 gccCmdl="";
48941 for file in ${D}inputFiles ; do
48942     case ${D}file in
48943     *!)
48944         ;;
48945     *)
48946         gccCmdl="${D}gccCmdl ${D}file"
48947         ;;
48948     esac
48949 done
48950 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48951 touch "${D}{outFile}.dll"
48952
48953 doCommand "emximp -o ${D}arcFile ${D}defFile"
48954 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48955     add_flags="";
48956     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48957         add_flags="-ynd"
48958     fi
48959     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48960 fi
48961 doCommand "emxomf -s -l ${D}arcFile"
48962
48963 # Successful exit.
48964 CleanUp 1
48965 exit 0
48966 EOF
48967
48968         chmod +x dllar.sh
48969       ;;
48970
48971       powerpc-apple-macos* | \
48972       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48973       *-*-mirbsd* | \
48974       *-*-sunos4* | \
48975       *-*-osf* | \
48976       *-*-dgux5* | \
48977       *-*-sysv5* | \
48978       *-pc-msdosdjgpp )
48979               ;;
48980
48981       *)
48982         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48983 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48984    { (exit 1); exit 1; }; }
48985     esac
48986
48987     if test "x$PIC_FLAG" != "x" ; then
48988         PIC_FLAG="$PIC_FLAG -DPIC"
48989     fi
48990
48991     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48992         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48993     fi
48994     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48995         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48996     fi
48997
48998
48999
49000
49001
49002
49003
49004
49005
49006     USE_SOVERSION=0
49007     USE_SOVERLINUX=0
49008     USE_SOVERSOLARIS=0
49009     USE_SOVERCYGWIN=0
49010     USE_SOSYMLINKS=0
49011     USE_MACVERSION=0
49012     SONAME_FLAG=
49013
49014     case "${BAKEFILE_HOST}" in
49015       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49016       *-*-k*bsd*-gnu | *-*-mirbsd* )
49017         if test "x$SUNCXX" = "xyes"; then
49018             SONAME_FLAG="-h "
49019         else
49020             SONAME_FLAG="-Wl,-soname,"
49021         fi
49022         USE_SOVERSION=1
49023         USE_SOVERLINUX=1
49024         USE_SOSYMLINKS=1
49025       ;;
49026
49027       *-*-solaris2* )
49028         SONAME_FLAG="-h "
49029         USE_SOVERSION=1
49030         USE_SOVERSOLARIS=1
49031         USE_SOSYMLINKS=1
49032       ;;
49033
49034       *-*-darwin* )
49035         USE_MACVERSION=1
49036         USE_SOVERSION=1
49037         USE_SOSYMLINKS=1
49038       ;;
49039
49040       *-*-cygwin* )
49041         USE_SOVERSION=1
49042         USE_SOVERCYGWIN=1
49043       ;;
49044     esac
49045
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055     # Check whether --enable-dependency-tracking was given.
49056 if test "${enable_dependency_tracking+set}" = set; then
49057   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49058 fi
49059
49060
49061     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49062 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49063
49064     BK_DEPS=""
49065     if test "x$bk_use_trackdeps" = "xno" ; then
49066         DEPS_TRACKING=0
49067         { echo "$as_me:$LINENO: result: disabled" >&5
49068 echo "${ECHO_T}disabled" >&6; }
49069     else
49070         DEPS_TRACKING=1
49071
49072         if test "x$GCC" = "xyes"; then
49073             DEPSMODE=gcc
49074             case "${BAKEFILE_HOST}" in
49075                 *-*-darwin* )
49076                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49077                 ;;
49078                 * )
49079                     DEPSFLAG="-MMD"
49080                 ;;
49081             esac
49082             { echo "$as_me:$LINENO: result: gcc" >&5
49083 echo "${ECHO_T}gcc" >&6; }
49084         elif test "x$MWCC" = "xyes"; then
49085             DEPSMODE=mwcc
49086             DEPSFLAG="-MM"
49087             { echo "$as_me:$LINENO: result: mwcc" >&5
49088 echo "${ECHO_T}mwcc" >&6; }
49089         elif test "x$SUNCC" = "xyes"; then
49090             DEPSMODE=unixcc
49091             DEPSFLAG="-xM1"
49092             { echo "$as_me:$LINENO: result: Sun cc" >&5
49093 echo "${ECHO_T}Sun cc" >&6; }
49094         elif test "x$SGICC" = "xyes"; then
49095             DEPSMODE=unixcc
49096             DEPSFLAG="-M"
49097             { echo "$as_me:$LINENO: result: SGI cc" >&5
49098 echo "${ECHO_T}SGI cc" >&6; }
49099         elif test "x$HPCC" = "xyes"; then
49100             DEPSMODE=unixcc
49101             DEPSFLAG="+make"
49102             { echo "$as_me:$LINENO: result: HP cc" >&5
49103 echo "${ECHO_T}HP cc" >&6; }
49104         elif test "x$COMPAQCC" = "xyes"; then
49105             DEPSMODE=gcc
49106             DEPSFLAG="-MD"
49107             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49108 echo "${ECHO_T}Compaq cc" >&6; }
49109         else
49110             DEPS_TRACKING=0
49111             { echo "$as_me:$LINENO: result: none" >&5
49112 echo "${ECHO_T}none" >&6; }
49113         fi
49114
49115         if test $DEPS_TRACKING = 1 ; then
49116
49117 D='$'
49118 cat <<EOF >bk-deps
49119 #!/bin/sh
49120
49121 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49122 # script. It is used to track C/C++ files dependencies in portable way.
49123 #
49124 # Permission is given to use this file in any way.
49125
49126 DEPSMODE=${DEPSMODE}
49127 DEPSFLAG="${DEPSFLAG}"
49128 DEPSDIRBASE=.deps
49129
49130 if test ${D}DEPSMODE = gcc ; then
49131     ${D}* ${D}{DEPSFLAG}
49132     status=${D}?
49133
49134     # determine location of created files:
49135     while test ${D}# -gt 0; do
49136         case "${D}1" in
49137             -o )
49138                 shift
49139                 objfile=${D}1
49140             ;;
49141             -* )
49142             ;;
49143             * )
49144                 srcfile=${D}1
49145             ;;
49146         esac
49147         shift
49148     done
49149     objfilebase=\`basename ${D}objfile\`
49150     builddir=\`dirname ${D}objfile\`
49151     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49152     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49153     depsdir=${D}builddir/${D}DEPSDIRBASE
49154     mkdir -p ${D}depsdir
49155
49156     # if the compiler failed, we're done:
49157     if test ${D}{status} != 0 ; then
49158         rm -f ${D}depfile
49159         exit ${D}{status}
49160     fi
49161
49162     # move created file to the location we want it in:
49163     if test -f ${D}depfile ; then
49164         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49165         rm -f ${D}depfile
49166     else
49167         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49168         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49169         if test ! -f ${D}depfile ; then
49170             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49171             depfile="${D}objfile.d"
49172         fi
49173         if test -f ${D}depfile ; then
49174             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49175             rm -f ${D}depfile
49176         fi
49177     fi
49178     exit 0
49179
49180 elif test ${D}DEPSMODE = mwcc ; then
49181     ${D}* || exit ${D}?
49182     # Run mwcc again with -MM and redirect into the dep file we want
49183     # NOTE: We can't use shift here because we need ${D}* to be valid
49184     prevarg=
49185     for arg in ${D}* ; do
49186         if test "${D}prevarg" = "-o"; then
49187             objfile=${D}arg
49188         else
49189             case "${D}arg" in
49190                 -* )
49191                 ;;
49192                 * )
49193                     srcfile=${D}arg
49194                 ;;
49195             esac
49196         fi
49197         prevarg="${D}arg"
49198     done
49199
49200     objfilebase=\`basename ${D}objfile\`
49201     builddir=\`dirname ${D}objfile\`
49202     depsdir=${D}builddir/${D}DEPSDIRBASE
49203     mkdir -p ${D}depsdir
49204
49205     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49206     exit 0
49207
49208 elif test ${D}DEPSMODE = unixcc; then
49209     ${D}* || exit ${D}?
49210     # Run compiler again with deps flag and redirect into the dep file.
49211     # It doesn't work if the '-o FILE' option is used, but without it the
49212     # dependency file will contain the wrong name for the object. So it is
49213     # removed from the command line, and the dep file is fixed with sed.
49214     cmd=""
49215     while test ${D}# -gt 0; do
49216         case "${D}1" in
49217             -o )
49218                 shift
49219                 objfile=${D}1
49220             ;;
49221             * )
49222                 eval arg${D}#=\\${D}1
49223                 cmd="${D}cmd \\${D}arg${D}#"
49224             ;;
49225         esac
49226         shift
49227     done
49228
49229     objfilebase=\`basename ${D}objfile\`
49230     builddir=\`dirname ${D}objfile\`
49231     depsdir=${D}builddir/${D}DEPSDIRBASE
49232     mkdir -p ${D}depsdir
49233
49234     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49235     exit 0
49236
49237 else
49238     ${D}*
49239     exit ${D}?
49240 fi
49241 EOF
49242
49243             chmod +x bk-deps
49244                                     BK_DEPS="`pwd`/bk-deps"
49245         fi
49246     fi
49247
49248
49249
49250
49251
49252     case ${BAKEFILE_HOST} in
49253         *-*-cygwin* | *-*-mingw32* )
49254                         if test -n "$ac_tool_prefix"; then
49255   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49256 set dummy ${ac_tool_prefix}windres; ac_word=$2
49257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49259 if test "${ac_cv_prog_WINDRES+set}" = set; then
49260   echo $ECHO_N "(cached) $ECHO_C" >&6
49261 else
49262   if test -n "$WINDRES"; then
49263   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49264 else
49265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49266 for as_dir in $PATH
49267 do
49268   IFS=$as_save_IFS
49269   test -z "$as_dir" && as_dir=.
49270   for ac_exec_ext in '' $ac_executable_extensions; do
49271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49272     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49274     break 2
49275   fi
49276 done
49277 done
49278 IFS=$as_save_IFS
49279
49280 fi
49281 fi
49282 WINDRES=$ac_cv_prog_WINDRES
49283 if test -n "$WINDRES"; then
49284   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49285 echo "${ECHO_T}$WINDRES" >&6; }
49286 else
49287   { echo "$as_me:$LINENO: result: no" >&5
49288 echo "${ECHO_T}no" >&6; }
49289 fi
49290
49291
49292 fi
49293 if test -z "$ac_cv_prog_WINDRES"; then
49294   ac_ct_WINDRES=$WINDRES
49295   # Extract the first word of "windres", so it can be a program name with args.
49296 set dummy windres; ac_word=$2
49297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49299 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49300   echo $ECHO_N "(cached) $ECHO_C" >&6
49301 else
49302   if test -n "$ac_ct_WINDRES"; then
49303   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49304 else
49305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49306 for as_dir in $PATH
49307 do
49308   IFS=$as_save_IFS
49309   test -z "$as_dir" && as_dir=.
49310   for ac_exec_ext in '' $ac_executable_extensions; do
49311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49312     ac_cv_prog_ac_ct_WINDRES="windres"
49313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49314     break 2
49315   fi
49316 done
49317 done
49318 IFS=$as_save_IFS
49319
49320 fi
49321 fi
49322 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49323 if test -n "$ac_ct_WINDRES"; then
49324   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49325 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49326 else
49327   { echo "$as_me:$LINENO: result: no" >&5
49328 echo "${ECHO_T}no" >&6; }
49329 fi
49330
49331   if test "x$ac_ct_WINDRES" = x; then
49332     WINDRES=""
49333   else
49334     case $cross_compiling:$ac_tool_warned in
49335 yes:)
49336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49337 whose name does not start with the host triplet.  If you think this
49338 configuration is useful to you, please write to autoconf@gnu.org." >&5
49339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49340 whose name does not start with the host triplet.  If you think this
49341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49342 ac_tool_warned=yes ;;
49343 esac
49344     WINDRES=$ac_ct_WINDRES
49345   fi
49346 else
49347   WINDRES="$ac_cv_prog_WINDRES"
49348 fi
49349
49350          ;;
49351
49352       *-*-darwin* | powerpc-apple-macos* )
49353             # Extract the first word of "Rez", so it can be a program name with args.
49354 set dummy Rez; ac_word=$2
49355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49357 if test "${ac_cv_prog_REZ+set}" = set; then
49358   echo $ECHO_N "(cached) $ECHO_C" >&6
49359 else
49360   if test -n "$REZ"; then
49361   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49362 else
49363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49364 for as_dir in $PATH
49365 do
49366   IFS=$as_save_IFS
49367   test -z "$as_dir" && as_dir=.
49368   for ac_exec_ext in '' $ac_executable_extensions; do
49369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49370     ac_cv_prog_REZ="Rez"
49371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49372     break 2
49373   fi
49374 done
49375 done
49376 IFS=$as_save_IFS
49377
49378   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49379 fi
49380 fi
49381 REZ=$ac_cv_prog_REZ
49382 if test -n "$REZ"; then
49383   { echo "$as_me:$LINENO: result: $REZ" >&5
49384 echo "${ECHO_T}$REZ" >&6; }
49385 else
49386   { echo "$as_me:$LINENO: result: no" >&5
49387 echo "${ECHO_T}no" >&6; }
49388 fi
49389
49390
49391             # Extract the first word of "SetFile", so it can be a program name with args.
49392 set dummy SetFile; ac_word=$2
49393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49395 if test "${ac_cv_prog_SETFILE+set}" = set; then
49396   echo $ECHO_N "(cached) $ECHO_C" >&6
49397 else
49398   if test -n "$SETFILE"; then
49399   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49400 else
49401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49402 for as_dir in $PATH
49403 do
49404   IFS=$as_save_IFS
49405   test -z "$as_dir" && as_dir=.
49406   for ac_exec_ext in '' $ac_executable_extensions; do
49407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49408     ac_cv_prog_SETFILE="SetFile"
49409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49410     break 2
49411   fi
49412 done
49413 done
49414 IFS=$as_save_IFS
49415
49416   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49417 fi
49418 fi
49419 SETFILE=$ac_cv_prog_SETFILE
49420 if test -n "$SETFILE"; then
49421   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49422 echo "${ECHO_T}$SETFILE" >&6; }
49423 else
49424   { echo "$as_me:$LINENO: result: no" >&5
49425 echo "${ECHO_T}no" >&6; }
49426 fi
49427
49428
49429         ;;
49430     esac
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440     BAKEFILE_BAKEFILE_M4_VERSION="0.2.6"
49441
49442
49443 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.6"
49444
49445
49446
49447     # Check whether --enable-precomp-headers was given.
49448 if test "${enable_precomp_headers+set}" = set; then
49449   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49450 fi
49451
49452
49453     GCC_PCH=0
49454     ICC_PCH=0
49455     USE_PCH=0
49456     BK_MAKE_PCH=""
49457
49458     case ${BAKEFILE_HOST} in
49459         *-*-cygwin* )
49460                                                 bk_use_pch="no"
49461             ;;
49462     esac
49463
49464     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49465         if test "x$GCC" = "xyes"; then
49466                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49467 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49468             cat >conftest.$ac_ext <<_ACEOF
49469 /* confdefs.h.  */
49470 _ACEOF
49471 cat confdefs.h >>conftest.$ac_ext
49472 cat >>conftest.$ac_ext <<_ACEOF
49473 /* end confdefs.h.  */
49474
49475 int
49476 main ()
49477 {
49478
49479                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49480                         There is no PCH support
49481                     #endif
49482                     #if (__GNUC__ < 3)
49483                         There is no PCH support
49484                     #endif
49485                     #if (__GNUC__ == 3) && \
49486                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49487                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49488                        ( defined(__INTEL_COMPILER) )
49489                         There is no PCH support
49490                     #endif
49491
49492   ;
49493   return 0;
49494 }
49495 _ACEOF
49496 rm -f conftest.$ac_objext
49497 if { (ac_try="$ac_compile"
49498 case "(($ac_try" in
49499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49500   *) ac_try_echo=$ac_try;;
49501 esac
49502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49503   (eval "$ac_compile") 2>conftest.er1
49504   ac_status=$?
49505   grep -v '^ *+' conftest.er1 >conftest.err
49506   rm -f conftest.er1
49507   cat conftest.err >&5
49508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49509   (exit $ac_status); } && {
49510          test -z "$ac_c_werror_flag" ||
49511          test ! -s conftest.err
49512        } && test -s conftest.$ac_objext; then
49513
49514                     { echo "$as_me:$LINENO: result: yes" >&5
49515 echo "${ECHO_T}yes" >&6; }
49516                     GCC_PCH=1
49517
49518 else
49519   echo "$as_me: failed program was:" >&5
49520 sed 's/^/| /' conftest.$ac_ext >&5
49521
49522
49523                     if test "$INTELCXX8" = "yes"; then
49524                         { echo "$as_me:$LINENO: result: yes" >&5
49525 echo "${ECHO_T}yes" >&6; }
49526                         ICC_PCH=1
49527                         if test "$INTELCXX10" = "yes"; then
49528                             ICC_PCH_CREATE_SWITCH="-pch-create"
49529                             ICC_PCH_USE_SWITCH="-pch-use"
49530                         else
49531                             ICC_PCH_CREATE_SWITCH="-create-pch"
49532                             ICC_PCH_USE_SWITCH="-use-pch"
49533                         fi
49534                     else
49535                         { echo "$as_me:$LINENO: result: no" >&5
49536 echo "${ECHO_T}no" >&6; }
49537                     fi
49538
49539 fi
49540
49541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49542             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49543                 USE_PCH=1
49544
49545 D='$'
49546 cat <<EOF >bk-make-pch
49547 #!/bin/sh
49548
49549 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49550 # script. It is used to generated precompiled headers.
49551 #
49552 # Permission is given to use this file in any way.
49553
49554 outfile="${D}{1}"
49555 header="${D}{2}"
49556 shift
49557 shift
49558
49559 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49560
49561 compiler=""
49562 headerfile=""
49563
49564 while test ${D}{#} -gt 0; do
49565     add_to_cmdline=1
49566     case "${D}{1}" in
49567         -I* )
49568             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49569             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49570                 headerfile="${D}{incdir}/${D}{header}"
49571             fi
49572         ;;
49573         -use-pch|-use_pch|-pch-use )
49574             shift
49575             add_to_cmdline=0
49576         ;;
49577     esac
49578     if test ${D}add_to_cmdline = 1 ; then
49579         compiler="${D}{compiler} ${D}{1}"
49580     fi
49581     shift
49582 done
49583
49584 if test "x${D}{headerfile}" = "x" ; then
49585     echo "error: can't find header ${D}{header} in include paths" >&2
49586 else
49587     if test -f ${D}{outfile} ; then
49588         rm -f ${D}{outfile}
49589     else
49590         mkdir -p \`dirname ${D}{outfile}\`
49591     fi
49592     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49593     mkdir -p ${D}{builddir}/.deps
49594     if test "x${GCC_PCH}" = "x1" ; then
49595         # can do this because gcc is >= 3.4:
49596         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49597     elif test "x${ICC_PCH}" = "x1" ; then
49598         filename=pch_gen-${D}${D}
49599         file=${D}{filename}.c
49600         dfile=${D}{filename}.d
49601         cat > ${D}file <<EOT
49602 #include "${D}header"
49603 EOT
49604         # using -MF icc complains about differing command lines in creation/use
49605         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49606           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49607           rm -f ${D}file ${D}dfile ${D}{filename}.o
49608     fi
49609     exit ${D}{?}
49610 fi
49611 EOF
49612
49613                 chmod +x bk-make-pch
49614                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49615             fi
49616         fi
49617     fi
49618
49619
49620
49621
49622
49623
49624
49625     COND_BUILD_DEBUG="#"
49626     if test "x$BUILD" = "xdebug" ; then
49627         COND_BUILD_DEBUG=""
49628     fi
49629
49630     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49631     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49632         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49633     fi
49634
49635     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49636     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49637         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49638     fi
49639
49640     COND_BUILD_DEBUG_UNICODE_0="#"
49641     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49642         COND_BUILD_DEBUG_UNICODE_0=""
49643     fi
49644
49645     COND_BUILD_DEBUG_UNICODE_1="#"
49646     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49647         COND_BUILD_DEBUG_UNICODE_1=""
49648     fi
49649
49650     COND_BUILD_RELEASE="#"
49651     if test "x$BUILD" = "xrelease" ; then
49652         COND_BUILD_RELEASE=""
49653     fi
49654
49655     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49656     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49657         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49658     fi
49659
49660     COND_BUILD_RELEASE_UNICODE_0="#"
49661     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49662         COND_BUILD_RELEASE_UNICODE_0=""
49663     fi
49664
49665     COND_BUILD_RELEASE_UNICODE_1="#"
49666     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49667         COND_BUILD_RELEASE_UNICODE_1=""
49668     fi
49669
49670     COND_BUILD_debug="#"
49671     if test "x$BUILD" = "xdebug" ; then
49672         COND_BUILD_debug=""
49673     fi
49674
49675     COND_BUILD_debug_DEBUG_FLAG_default="#"
49676     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49677         COND_BUILD_debug_DEBUG_FLAG_default=""
49678     fi
49679
49680     COND_BUILD_debug_DEBUG_INFO_default="#"
49681     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49682         COND_BUILD_debug_DEBUG_INFO_default=""
49683     fi
49684
49685     COND_BUILD_debug_UNICODE_0="#"
49686     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49687         COND_BUILD_debug_UNICODE_0=""
49688     fi
49689
49690     COND_BUILD_debug_UNICODE_1="#"
49691     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49692         COND_BUILD_debug_UNICODE_1=""
49693     fi
49694
49695     COND_BUILD_release="#"
49696     if test "x$BUILD" = "xrelease" ; then
49697         COND_BUILD_release=""
49698     fi
49699
49700     COND_BUILD_release_DEBUG_INFO_default="#"
49701     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49702         COND_BUILD_release_DEBUG_INFO_default=""
49703     fi
49704
49705     COND_BUILD_release_UNICODE_0="#"
49706     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49707         COND_BUILD_release_UNICODE_0=""
49708     fi
49709
49710     COND_BUILD_release_UNICODE_1="#"
49711     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49712         COND_BUILD_release_UNICODE_1=""
49713     fi
49714
49715     COND_DEBUG_FLAG_1="#"
49716     if test "x$DEBUG_FLAG" = "x1" ; then
49717         COND_DEBUG_FLAG_1=""
49718     fi
49719
49720     COND_DEBUG_INFO_0="#"
49721     if test "x$DEBUG_INFO" = "x0" ; then
49722         COND_DEBUG_INFO_0=""
49723     fi
49724
49725     COND_DEBUG_INFO_1="#"
49726     if test "x$DEBUG_INFO" = "x1" ; then
49727         COND_DEBUG_INFO_1=""
49728     fi
49729
49730     COND_DEPS_TRACKING_0="#"
49731     if test "x$DEPS_TRACKING" = "x0" ; then
49732         COND_DEPS_TRACKING_0=""
49733     fi
49734
49735     COND_DEPS_TRACKING_1="#"
49736     if test "x$DEPS_TRACKING" = "x1" ; then
49737         COND_DEPS_TRACKING_1=""
49738     fi
49739
49740     COND_GCC_PCH_1="#"
49741     if test "x$GCC_PCH" = "x1" ; then
49742         COND_GCC_PCH_1=""
49743     fi
49744
49745     COND_ICC_PCH_1="#"
49746     if test "x$ICC_PCH" = "x1" ; then
49747         COND_ICC_PCH_1=""
49748     fi
49749
49750     COND_MONOLITHIC_0="#"
49751     if test "x$MONOLITHIC" = "x0" ; then
49752         COND_MONOLITHIC_0=""
49753     fi
49754
49755     COND_MONOLITHIC_0_SHARED_0="#"
49756     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49757         COND_MONOLITHIC_0_SHARED_0=""
49758     fi
49759
49760     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49761     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49762         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49763     fi
49764
49765     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49766     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49767         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49768     fi
49769
49770     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49771     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49772         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49773     fi
49774
49775     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49776     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49777         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49778     fi
49779
49780     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49781     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49782         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49783     fi
49784
49785     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49786     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49787         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49788     fi
49789
49790     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49791     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49792         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49793     fi
49794
49795     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49796     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49797         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49798     fi
49799
49800     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49801     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49802         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49803     fi
49804
49805     COND_MONOLITHIC_0_SHARED_1="#"
49806     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49807         COND_MONOLITHIC_0_SHARED_1=""
49808     fi
49809
49810     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49811     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49812         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49813     fi
49814
49815     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49816     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49817         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49818     fi
49819
49820     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49821     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49822         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49823     fi
49824
49825     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49826     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49827         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49828     fi
49829
49830     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49831     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49832         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49833     fi
49834
49835     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49836     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49837         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49838     fi
49839
49840     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49841     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49842         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49843     fi
49844
49845     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49846     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49847         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49848     fi
49849
49850     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49851     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49852         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49853     fi
49854
49855     COND_MONOLITHIC_0_USE_AUI_1="#"
49856     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49857         COND_MONOLITHIC_0_USE_AUI_1=""
49858     fi
49859
49860     COND_MONOLITHIC_0_USE_GUI_1="#"
49861     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49862         COND_MONOLITHIC_0_USE_GUI_1=""
49863     fi
49864
49865     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49866     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49867         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49868     fi
49869
49870     COND_MONOLITHIC_0_USE_HTML_1="#"
49871     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49872         COND_MONOLITHIC_0_USE_HTML_1=""
49873     fi
49874
49875     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49876     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49877         COND_MONOLITHIC_0_USE_MEDIA_1=""
49878     fi
49879
49880     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
49881     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49882         COND_MONOLITHIC_0_USE_PROPGRID_1=""
49883     fi
49884
49885     COND_MONOLITHIC_0_USE_QA_1="#"
49886     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49887         COND_MONOLITHIC_0_USE_QA_1=""
49888     fi
49889
49890     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49891     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49892         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49893     fi
49894
49895     COND_MONOLITHIC_0_USE_STC_1="#"
49896     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49897         COND_MONOLITHIC_0_USE_STC_1=""
49898     fi
49899
49900     COND_MONOLITHIC_0_USE_XRC_1="#"
49901     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49902         COND_MONOLITHIC_0_USE_XRC_1=""
49903     fi
49904
49905     COND_MONOLITHIC_1="#"
49906     if test "x$MONOLITHIC" = "x1" ; then
49907         COND_MONOLITHIC_1=""
49908     fi
49909
49910     COND_MONOLITHIC_1_SHARED_0="#"
49911     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49912         COND_MONOLITHIC_1_SHARED_0=""
49913     fi
49914
49915     COND_MONOLITHIC_1_SHARED_1="#"
49916     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49917         COND_MONOLITHIC_1_SHARED_1=""
49918     fi
49919
49920     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49921     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49922         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49923     fi
49924
49925     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49926     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49927         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49928     fi
49929
49930     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49931     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49932         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49933     fi
49934
49935     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49936     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49937         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49938     fi
49939
49940     COND_PLATFORM_MACOSX_1="#"
49941     if test "x$PLATFORM_MACOSX" = "x1" ; then
49942         COND_PLATFORM_MACOSX_1=""
49943     fi
49944
49945     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
49946     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
49947         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
49948     fi
49949
49950     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
49951     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
49952         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
49953     fi
49954
49955     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
49956     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49957         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
49958     fi
49959
49960     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
49961     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
49962         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
49963     fi
49964
49965     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
49966     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49967         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
49968     fi
49969
49970     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49971     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49972         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49973     fi
49974
49975     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
49976     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49977         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
49978     fi
49979
49980     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49981     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49982         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49983     fi
49984
49985     COND_PLATFORM_MACOS_1="#"
49986     if test "x$PLATFORM_MACOS" = "x1" ; then
49987         COND_PLATFORM_MACOS_1=""
49988     fi
49989
49990     COND_PLATFORM_MAC_0="#"
49991     if test "x$PLATFORM_MAC" = "x0" ; then
49992         COND_PLATFORM_MAC_0=""
49993     fi
49994
49995     COND_PLATFORM_MAC_1="#"
49996     if test "x$PLATFORM_MAC" = "x1" ; then
49997         COND_PLATFORM_MAC_1=""
49998     fi
49999
50000     COND_PLATFORM_MSDOS_0="#"
50001     if test "x$PLATFORM_MSDOS" = "x0" ; then
50002         COND_PLATFORM_MSDOS_0=""
50003     fi
50004
50005     COND_PLATFORM_MSDOS_1="#"
50006     if test "x$PLATFORM_MSDOS" = "x1" ; then
50007         COND_PLATFORM_MSDOS_1=""
50008     fi
50009
50010     COND_PLATFORM_OS2_1="#"
50011     if test "x$PLATFORM_OS2" = "x1" ; then
50012         COND_PLATFORM_OS2_1=""
50013     fi
50014
50015     COND_PLATFORM_UNIX_0="#"
50016     if test "x$PLATFORM_UNIX" = "x0" ; then
50017         COND_PLATFORM_UNIX_0=""
50018     fi
50019
50020     COND_PLATFORM_UNIX_1="#"
50021     if test "x$PLATFORM_UNIX" = "x1" ; then
50022         COND_PLATFORM_UNIX_1=""
50023     fi
50024
50025     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50026     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50027         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50028     fi
50029
50030     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50031     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50032         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50033     fi
50034
50035     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50036     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50037         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50038     fi
50039
50040     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50041     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50042         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50043     fi
50044
50045     COND_PLATFORM_WIN32_0="#"
50046     if test "x$PLATFORM_WIN32" = "x0" ; then
50047         COND_PLATFORM_WIN32_0=""
50048     fi
50049
50050     COND_PLATFORM_WIN32_1="#"
50051     if test "x$PLATFORM_WIN32" = "x1" ; then
50052         COND_PLATFORM_WIN32_1=""
50053     fi
50054
50055     COND_SHARED_0="#"
50056     if test "x$SHARED" = "x0" ; then
50057         COND_SHARED_0=""
50058     fi
50059
50060     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50061     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50062         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50063     fi
50064
50065     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50066     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50067         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50068     fi
50069
50070     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50071     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50072         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50073     fi
50074
50075     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50076     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50077         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50078     fi
50079
50080     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50081     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50082         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50083     fi
50084
50085     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50086     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50087         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50088     fi
50089
50090     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50091     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50092         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50093     fi
50094
50095     COND_SHARED_0_USE_STC_1="#"
50096     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50097         COND_SHARED_0_USE_STC_1=""
50098     fi
50099
50100     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50101     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50102         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50103     fi
50104
50105     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50106     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50107         COND_SHARED_0_wxUSE_REGEX_builtin=""
50108     fi
50109
50110     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50111     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50112         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50113     fi
50114
50115     COND_SHARED_1="#"
50116     if test "x$SHARED" = "x1" ; then
50117         COND_SHARED_1=""
50118     fi
50119
50120     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50121     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50122         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50123     fi
50124
50125     COND_TOOLKIT_="#"
50126     if test "x$TOOLKIT" = "x" ; then
50127         COND_TOOLKIT_=""
50128     fi
50129
50130     COND_TOOLKIT_COCOA="#"
50131     if test "x$TOOLKIT" = "xCOCOA" ; then
50132         COND_TOOLKIT_COCOA=""
50133     fi
50134
50135     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50136     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50137         COND_TOOLKIT_COCOA_USE_GUI_1=""
50138     fi
50139
50140     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50141     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50142         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50143     fi
50144
50145     COND_TOOLKIT_DFB="#"
50146     if test "x$TOOLKIT" = "xDFB" ; then
50147         COND_TOOLKIT_DFB=""
50148     fi
50149
50150     COND_TOOLKIT_DFB_USE_GUI_1="#"
50151     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50152         COND_TOOLKIT_DFB_USE_GUI_1=""
50153     fi
50154
50155     COND_TOOLKIT_GTK="#"
50156     if test "x$TOOLKIT" = "xGTK" ; then
50157         COND_TOOLKIT_GTK=""
50158     fi
50159
50160     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50161     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50162         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50163     fi
50164
50165     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50166     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50167         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50168     fi
50169
50170     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50171     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50172         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50173     fi
50174
50175     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50176     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50177         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50178     fi
50179
50180     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50181     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50182         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50183     fi
50184
50185     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50186     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50187         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50188     fi
50189
50190     COND_TOOLKIT_GTK_USE_GUI_1="#"
50191     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50192         COND_TOOLKIT_GTK_USE_GUI_1=""
50193     fi
50194
50195     COND_TOOLKIT_MAC="#"
50196     if test "x$TOOLKIT" = "xMAC" ; then
50197         COND_TOOLKIT_MAC=""
50198     fi
50199
50200     COND_TOOLKIT_MGL="#"
50201     if test "x$TOOLKIT" = "xMGL" ; then
50202         COND_TOOLKIT_MGL=""
50203     fi
50204
50205     COND_TOOLKIT_MGL_USE_GUI_1="#"
50206     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50207         COND_TOOLKIT_MGL_USE_GUI_1=""
50208     fi
50209
50210     COND_TOOLKIT_MOTIF="#"
50211     if test "x$TOOLKIT" = "xMOTIF" ; then
50212         COND_TOOLKIT_MOTIF=""
50213     fi
50214
50215     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50216     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50217         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50218     fi
50219
50220     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50221     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50222         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50223     fi
50224
50225     COND_TOOLKIT_MSW="#"
50226     if test "x$TOOLKIT" = "xMSW" ; then
50227         COND_TOOLKIT_MSW=""
50228     fi
50229
50230     COND_TOOLKIT_MSW_USE_GUI_1="#"
50231     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50232         COND_TOOLKIT_MSW_USE_GUI_1=""
50233     fi
50234
50235     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50236     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50237         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50238     fi
50239
50240     COND_TOOLKIT_MSW_WXUNIV_0="#"
50241     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50242         COND_TOOLKIT_MSW_WXUNIV_0=""
50243     fi
50244
50245     COND_TOOLKIT_OSX_CARBON="#"
50246     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50247         COND_TOOLKIT_OSX_CARBON=""
50248     fi
50249
50250     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50251     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50252         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50253     fi
50254
50255     COND_TOOLKIT_OSX_COCOA="#"
50256     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50257         COND_TOOLKIT_OSX_COCOA=""
50258     fi
50259
50260     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50261     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50262         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50263     fi
50264
50265     COND_TOOLKIT_OSX_IPHONE="#"
50266     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50267         COND_TOOLKIT_OSX_IPHONE=""
50268     fi
50269
50270     COND_TOOLKIT_PM="#"
50271     if test "x$TOOLKIT" = "xPM" ; then
50272         COND_TOOLKIT_PM=""
50273     fi
50274
50275     COND_TOOLKIT_PM_USE_GUI_1="#"
50276     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50277         COND_TOOLKIT_PM_USE_GUI_1=""
50278     fi
50279
50280     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50281     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50282         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50283     fi
50284
50285     COND_TOOLKIT_WINCE="#"
50286     if test "x$TOOLKIT" = "xWINCE" ; then
50287         COND_TOOLKIT_WINCE=""
50288     fi
50289
50290     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50291     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50292         COND_TOOLKIT_WINCE_USE_GUI_1=""
50293     fi
50294
50295     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50296     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50297         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50298     fi
50299
50300     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50301     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50302         COND_TOOLKIT_WINCE_WXUNIV_0=""
50303     fi
50304
50305     COND_TOOLKIT_X11="#"
50306     if test "x$TOOLKIT" = "xX11" ; then
50307         COND_TOOLKIT_X11=""
50308     fi
50309
50310     COND_TOOLKIT_X11_USE_GUI_1="#"
50311     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50312         COND_TOOLKIT_X11_USE_GUI_1=""
50313     fi
50314
50315     COND_UNICODE_1="#"
50316     if test "x$UNICODE" = "x1" ; then
50317         COND_UNICODE_1=""
50318     fi
50319
50320     COND_USE_EXCEPTIONS_0="#"
50321     if test "x$USE_EXCEPTIONS" = "x0" ; then
50322         COND_USE_EXCEPTIONS_0=""
50323     fi
50324
50325     COND_USE_EXCEPTIONS_1="#"
50326     if test "x$USE_EXCEPTIONS" = "x1" ; then
50327         COND_USE_EXCEPTIONS_1=""
50328     fi
50329
50330     COND_USE_GUI_0="#"
50331     if test "x$USE_GUI" = "x0" ; then
50332         COND_USE_GUI_0=""
50333     fi
50334
50335     COND_USE_GUI_1="#"
50336     if test "x$USE_GUI" = "x1" ; then
50337         COND_USE_GUI_1=""
50338     fi
50339
50340     COND_USE_GUI_1_USE_OPENGL_1="#"
50341     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50342         COND_USE_GUI_1_USE_OPENGL_1=""
50343     fi
50344
50345     COND_USE_GUI_1_WXUNIV_0="#"
50346     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50347         COND_USE_GUI_1_WXUNIV_0=""
50348     fi
50349
50350     COND_USE_GUI_1_WXUNIV_1="#"
50351     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50352         COND_USE_GUI_1_WXUNIV_1=""
50353     fi
50354
50355     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50356     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50357         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50358     fi
50359
50360     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50361     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50362         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50363     fi
50364
50365     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50366     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50367         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50368     fi
50369
50370     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50371     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50372         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50373     fi
50374
50375     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50376     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50377         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50378     fi
50379
50380     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50381     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50382         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50383     fi
50384
50385     COND_USE_OPENGL_1="#"
50386     if test "x$USE_OPENGL" = "x1" ; then
50387         COND_USE_OPENGL_1=""
50388     fi
50389
50390     COND_USE_PCH_1="#"
50391     if test "x$USE_PCH" = "x1" ; then
50392         COND_USE_PCH_1=""
50393     fi
50394
50395     COND_USE_PLUGINS_0="#"
50396     if test "x$USE_PLUGINS" = "x0" ; then
50397         COND_USE_PLUGINS_0=""
50398     fi
50399
50400     COND_USE_RTTI_0="#"
50401     if test "x$USE_RTTI" = "x0" ; then
50402         COND_USE_RTTI_0=""
50403     fi
50404
50405     COND_USE_RTTI_1="#"
50406     if test "x$USE_RTTI" = "x1" ; then
50407         COND_USE_RTTI_1=""
50408     fi
50409
50410     COND_USE_SOSYMLINKS_1="#"
50411     if test "x$USE_SOSYMLINKS" = "x1" ; then
50412         COND_USE_SOSYMLINKS_1=""
50413     fi
50414
50415     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50416     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50417         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50418     fi
50419
50420     COND_USE_SOVERLINUX_1="#"
50421     if test "x$USE_SOVERLINUX" = "x1" ; then
50422         COND_USE_SOVERLINUX_1=""
50423     fi
50424
50425     COND_USE_SOVERSION_0="#"
50426     if test "x$USE_SOVERSION" = "x0" ; then
50427         COND_USE_SOVERSION_0=""
50428     fi
50429
50430     COND_USE_SOVERSOLARIS_1="#"
50431     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50432         COND_USE_SOVERSOLARIS_1=""
50433     fi
50434
50435     COND_USE_STC_1="#"
50436     if test "x$USE_STC" = "x1" ; then
50437         COND_USE_STC_1=""
50438     fi
50439
50440     COND_USE_THREADS_0="#"
50441     if test "x$USE_THREADS" = "x0" ; then
50442         COND_USE_THREADS_0=""
50443     fi
50444
50445     COND_USE_THREADS_1="#"
50446     if test "x$USE_THREADS" = "x1" ; then
50447         COND_USE_THREADS_1=""
50448     fi
50449
50450     COND_USE_XRC_1="#"
50451     if test "x$USE_XRC" = "x1" ; then
50452         COND_USE_XRC_1=""
50453     fi
50454
50455     COND_WINDOWS_IMPLIB_1="#"
50456     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50457         COND_WINDOWS_IMPLIB_1=""
50458     fi
50459
50460     COND_WITH_PLUGIN_SDL_1="#"
50461     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50462         COND_WITH_PLUGIN_SDL_1=""
50463     fi
50464
50465     COND_WXUNIV_0="#"
50466     if test "x$WXUNIV" = "x0" ; then
50467         COND_WXUNIV_0=""
50468     fi
50469
50470     COND_WXUNIV_1="#"
50471     if test "x$WXUNIV" = "x1" ; then
50472         COND_WXUNIV_1=""
50473     fi
50474
50475     COND_WXUSE_EXPAT_BUILTIN="#"
50476     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50477         COND_WXUSE_EXPAT_BUILTIN=""
50478     fi
50479
50480     COND_WXUSE_LIBJPEG_BUILTIN="#"
50481     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50482         COND_WXUSE_LIBJPEG_BUILTIN=""
50483     fi
50484
50485     COND_WXUSE_LIBPNG_BUILTIN="#"
50486     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50487         COND_WXUSE_LIBPNG_BUILTIN=""
50488     fi
50489
50490     COND_WXUSE_LIBTIFF_BUILTIN="#"
50491     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50492         COND_WXUSE_LIBTIFF_BUILTIN=""
50493     fi
50494
50495     COND_WXUSE_REGEX_BUILTIN="#"
50496     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50497         COND_WXUSE_REGEX_BUILTIN=""
50498     fi
50499
50500     COND_WXUSE_ZLIB_BUILTIN="#"
50501     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50502         COND_WXUSE_ZLIB_BUILTIN=""
50503     fi
50504
50505     COND_wxUSE_EXPAT_builtin="#"
50506     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50507         COND_wxUSE_EXPAT_builtin=""
50508     fi
50509
50510     COND_wxUSE_LIBJPEG_builtin="#"
50511     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50512         COND_wxUSE_LIBJPEG_builtin=""
50513     fi
50514
50515     COND_wxUSE_LIBPNG_builtin="#"
50516     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50517         COND_wxUSE_LIBPNG_builtin=""
50518     fi
50519
50520     COND_wxUSE_LIBTIFF_builtin="#"
50521     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50522         COND_wxUSE_LIBTIFF_builtin=""
50523     fi
50524
50525     COND_wxUSE_REGEX_builtin="#"
50526     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50527         COND_wxUSE_REGEX_builtin=""
50528     fi
50529
50530     COND_wxUSE_ZLIB_builtin="#"
50531     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50532         COND_wxUSE_ZLIB_builtin=""
50533     fi
50534
50535
50536
50537     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50538         { { 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
50539 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;}
50540    { (exit 1); exit 1; }; }
50541     fi
50542
50543     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50544         { { 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
50545 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;}
50546    { (exit 1); exit 1; }; }
50547     fi
50548
50549
50550 case ${INSTALL} in
50551   /* ) # Absolute
50552      ;;
50553   ?:* ) # Drive letter, considered as absolute.
50554      ;;
50555   *)
50556      INSTALL=`pwd`/${INSTALL} ;;
50557 esac
50558
50559 if test "$wxUSE_GUI" = "yes"; then
50560
50561 if test "$wxUSE_MSW" = 1 ; then
50562     if test "x$WINDRES" = "x"; then
50563         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50564 echo "$as_me: error: Required windres program not found" >&2;}
50565    { (exit 1); exit 1; }; }
50566     fi
50567
50568     RESCOMP="$WINDRES"
50569 fi
50570
50571 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50572             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50573     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50574
50575         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50576
50577     # Extract the first word of "DeRez", so it can be a program name with args.
50578 set dummy DeRez; ac_word=$2
50579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50581 if test "${ac_cv_prog_DEREZ+set}" = set; then
50582   echo $ECHO_N "(cached) $ECHO_C" >&6
50583 else
50584   if test -n "$DEREZ"; then
50585   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50586 else
50587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50588 for as_dir in $PATH
50589 do
50590   IFS=$as_save_IFS
50591   test -z "$as_dir" && as_dir=.
50592   for ac_exec_ext in '' $ac_executable_extensions; do
50593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50594     ac_cv_prog_DEREZ="DeRez"
50595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50596     break 2
50597   fi
50598 done
50599 done
50600 IFS=$as_save_IFS
50601
50602   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50603 fi
50604 fi
50605 DEREZ=$ac_cv_prog_DEREZ
50606 if test -n "$DEREZ"; then
50607   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50608 echo "${ECHO_T}$DEREZ" >&6; }
50609 else
50610   { echo "$as_me:$LINENO: result: no" >&5
50611 echo "${ECHO_T}no" >&6; }
50612 fi
50613
50614
50615
50616     MACSETFILE="\$(SETFILE)"
50617
50618             if test "$wxUSE_OSX_CARBON" = 1; then
50619         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50620         RESCOMP="$REZ"
50621         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50622     else
50623         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50624         RESCOMP="cat /dev/null \| $REZ"
50625         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50626     fi
50627
50628 else
50629         MACSETFILE="@true"
50630
50631     if test "$wxUSE_PM" = 1; then
50632         RESCOMP="emxbind"
50633         WXCONFIG_RESFLAGS="-ep"
50634
50635                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50636     else
50637         POSTLINK_COMMAND="@true"
50638     fi
50639 fi
50640
50641 fi
50642
50643
50644 if test $GCC_PCH = 1
50645 then
50646     if test "$wx_cv_gcc_pch_bug" = yes; then
50647         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50648 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50649         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50650 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50651         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50652 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50653     fi
50654
50655     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50656     # the headers that benefit from precompilation are mostly C++ headers.
50657     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50658     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50659     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50660 fi
50661
50662
50663 if test "$wxUSE_MAC" = 1 ; then
50664     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50665         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50666         mv temp bk-deps
50667         chmod +x bk-deps
50668     fi
50669 fi
50670
50671 if test "$wxUSE_SHARED" = "yes"; then
50672                 case "${host}" in
50673       *-pc-os2_emx | *-pc-os2-emx )
50674         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50675         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50676         cp -p ${srcdir}/src/os2/dllnames.sh .
50677         cp -p ${srcdir}/src/os2/dllar.sh .
50678       ;;
50679     esac
50680 fi
50681 if test "$wxUSE_OMF" = "yes"; then
50682     case "${host}" in
50683       *-pc-os2_emx | *-pc-os2-emx )
50684         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50685         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50686         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50687       ;;
50688     esac
50689 fi
50690
50691 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50692
50693
50694 case "${host}" in
50695     *-*-solaris2* )
50696                         if test "$GCC" = yes; then
50697             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50698             LIBS=`echo $LIBS | sed 's/-mt//'`
50699             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50700         fi
50701         ;;
50702
50703     *-*-linux* )
50704                         if test "x$SUNCXX" = xyes; then
50705             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50706             LIBS=`echo $LIBS | sed 's/-pthread//'`
50707             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50708         fi
50709         ;;
50710 esac
50711
50712 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50713 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50714 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50715 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50716
50717 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50718
50719
50720
50721
50722
50723
50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50779 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50780 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50781 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50782   echo $ECHO_N "(cached) $ECHO_C" >&6
50783 else
50784   cat >conftest.make <<\_ACEOF
50785 SHELL = /bin/sh
50786 all:
50787         @echo '@@@%%%=$(MAKE)=@@@%%%'
50788 _ACEOF
50789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50790 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50791   *@@@%%%=?*=@@@%%%*)
50792     eval ac_cv_prog_make_${ac_make}_set=yes;;
50793   *)
50794     eval ac_cv_prog_make_${ac_make}_set=no;;
50795 esac
50796 rm -f conftest.make
50797 fi
50798 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50799   { echo "$as_me:$LINENO: result: yes" >&5
50800 echo "${ECHO_T}yes" >&6; }
50801   SET_MAKE=
50802 else
50803   { echo "$as_me:$LINENO: result: no" >&5
50804 echo "${ECHO_T}no" >&6; }
50805   SET_MAKE="MAKE=${MAKE-make}"
50806 fi
50807
50808
50809
50810 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50811
50812
50813 if test "$USE_WIN32" = 1; then
50814     ac_config_commands="$ac_config_commands rcdefs.h"
50815
50816 fi
50817
50818 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50819
50820
50821 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50822
50823
50824 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50825
50826
50827 if test "$wx_cv_version_script" = "yes"; then
50828     ac_config_files="$ac_config_files version-script"
50829
50830 fi
50831 ac_config_files="$ac_config_files Makefile"
50832
50833
50834 ac_config_commands="$ac_config_commands wx-config"
50835
50836
50837
50838 if test "$wxWITH_SUBDIRS" != "no"; then
50839 if test "$wxUSE_GUI" = "yes"; then
50840     SUBDIRS="samples demos utils"
50841 else
50842             SUBDIRS="samples utils"
50843 fi
50844
50845
50846
50847 # Check whether --with-cppunit-prefix was given.
50848 if test "${with_cppunit_prefix+set}" = set; then
50849   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50850 else
50851   cppunit_config_prefix=""
50852 fi
50853
50854
50855 # Check whether --with-cppunit-exec-prefix was given.
50856 if test "${with_cppunit_exec_prefix+set}" = set; then
50857   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50858 else
50859   cppunit_config_exec_prefix=""
50860 fi
50861
50862
50863   if test x$cppunit_config_exec_prefix != x ; then
50864      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50865      if test x${CPPUNIT_CONFIG+set} != xset ; then
50866         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50867      fi
50868   fi
50869   if test x$cppunit_config_prefix != x ; then
50870      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50871      if test x${CPPUNIT_CONFIG+set} != xset ; then
50872         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50873      fi
50874   fi
50875
50876   # Extract the first word of "cppunit-config", so it can be a program name with args.
50877 set dummy cppunit-config; ac_word=$2
50878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50880 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50881   echo $ECHO_N "(cached) $ECHO_C" >&6
50882 else
50883   case $CPPUNIT_CONFIG in
50884   [\\/]* | ?:[\\/]*)
50885   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50886   ;;
50887   *)
50888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50889 for as_dir in $PATH
50890 do
50891   IFS=$as_save_IFS
50892   test -z "$as_dir" && as_dir=.
50893   for ac_exec_ext in '' $ac_executable_extensions; do
50894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50895     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50897     break 2
50898   fi
50899 done
50900 done
50901 IFS=$as_save_IFS
50902
50903   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50904   ;;
50905 esac
50906 fi
50907 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50908 if test -n "$CPPUNIT_CONFIG"; then
50909   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50910 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
50911 else
50912   { echo "$as_me:$LINENO: result: no" >&5
50913 echo "${ECHO_T}no" >&6; }
50914 fi
50915
50916
50917   cppunit_version_min=1.8.0
50918
50919   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50920 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
50921   no_cppunit=""
50922   if test "$CPPUNIT_CONFIG" = "no" ; then
50923     { echo "$as_me:$LINENO: result: no" >&5
50924 echo "${ECHO_T}no" >&6; }
50925     no_cppunit=yes
50926   else
50927     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50928     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50929     cppunit_version=`$CPPUNIT_CONFIG --version`
50930
50931     cppunit_major_version=`echo $cppunit_version | \
50932            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50933     cppunit_minor_version=`echo $cppunit_version | \
50934            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50935     cppunit_micro_version=`echo $cppunit_version | \
50936            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50937
50938     cppunit_major_min=`echo $cppunit_version_min | \
50939            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50940     cppunit_minor_min=`echo $cppunit_version_min | \
50941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50942     cppunit_micro_min=`echo $cppunit_version_min | \
50943            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50944
50945     cppunit_version_proper=`expr \
50946         $cppunit_major_version \> $cppunit_major_min \| \
50947         $cppunit_major_version \= $cppunit_major_min \& \
50948         $cppunit_minor_version \> $cppunit_minor_min \| \
50949         $cppunit_major_version \= $cppunit_major_min \& \
50950         $cppunit_minor_version \= $cppunit_minor_min \& \
50951         $cppunit_micro_version \>= $cppunit_micro_min `
50952
50953     if test "$cppunit_version_proper" = "1" ; then
50954       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50955 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50956     else
50957       { echo "$as_me:$LINENO: result: no" >&5
50958 echo "${ECHO_T}no" >&6; }
50959       no_cppunit=yes
50960     fi
50961   fi
50962
50963   if test "x$no_cppunit" = x ; then
50964      SUBDIRS="$SUBDIRS tests"
50965   else
50966      CPPUNIT_CFLAGS=""
50967      CPPUNIT_LIBS=""
50968      :
50969   fi
50970
50971
50972
50973
50974
50975 for subdir in $SUBDIRS; do
50976     if test -d ${srcdir}/${subdir} ; then
50977         if test "$wxUSE_GUI" = "yes"; then
50978             if test ${subdir} = "samples"; then
50979                                                 makefiles="samples/Makefile.in $makefiles"
50980                 for sample in $SAMPLES_SUBDIRS; do
50981                     if test -d $srcdir/samples/$sample; then
50982                         makefiles="samples/$sample/Makefile.in $makefiles"
50983                     fi
50984                 done
50985             else
50986                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50987                 eval "disabled=\$$disabled_var"
50988                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50989                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50990             fi
50991         else
50992                                     if test ${subdir} = "samples"; then
50993                                                 makefiles="samples/Makefile.in $makefiles"
50994                 for sample in `echo $SAMPLES_SUBDIRS`; do
50995                     if test -d $srcdir/samples/$sample; then
50996                         makefiles="samples/$sample/Makefile.in $makefiles"
50997                     fi
50998                 done
50999             elif test ${subdir} = "utils"; then
51000                 makefiles=""
51001                 for util in ifacecheck ; do
51002                     if test -d $srcdir/utils/$util ; then
51003                         makefiles="utils/$util/src/Makefile.in \
51004                                    $makefiles"
51005                     fi
51006                 done
51007             else
51008                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51009             fi
51010         fi
51011
51012         for mkin in $makefiles ; do
51013             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51014             ac_config_files="$ac_config_files $mk"
51015
51016         done
51017     fi
51018 done
51019 fi
51020 cat >confcache <<\_ACEOF
51021 # This file is a shell script that caches the results of configure
51022 # tests run on this system so they can be shared between configure
51023 # scripts and configure runs, see configure's option --config-cache.
51024 # It is not useful on other systems.  If it contains results you don't
51025 # want to keep, you may remove or edit it.
51026 #
51027 # config.status only pays attention to the cache file if you give it
51028 # the --recheck option to rerun configure.
51029 #
51030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51032 # following values.
51033
51034 _ACEOF
51035
51036 # The following way of writing the cache mishandles newlines in values,
51037 # but we know of no workaround that is simple, portable, and efficient.
51038 # So, we kill variables containing newlines.
51039 # Ultrix sh set writes to stderr and can't be redirected directly,
51040 # and sets the high bit in the cache file unless we assign to the vars.
51041 (
51042   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51043     eval ac_val=\$$ac_var
51044     case $ac_val in #(
51045     *${as_nl}*)
51046       case $ac_var in #(
51047       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51048 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51049       esac
51050       case $ac_var in #(
51051       _ | IFS | as_nl) ;; #(
51052       *) $as_unset $ac_var ;;
51053       esac ;;
51054     esac
51055   done
51056
51057   (set) 2>&1 |
51058     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51059     *${as_nl}ac_space=\ *)
51060       # `set' does not quote correctly, so add quotes (double-quote
51061       # substitution turns \\\\ into \\, and sed turns \\ into \).
51062       sed -n \
51063         "s/'/'\\\\''/g;
51064           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51065       ;; #(
51066     *)
51067       # `set' quotes correctly as required by POSIX, so do not add quotes.
51068       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51069       ;;
51070     esac |
51071     sort
51072 ) |
51073   sed '
51074      /^ac_cv_env_/b end
51075      t clear
51076      :clear
51077      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51078      t end
51079      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51080      :end' >>confcache
51081 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51082   if test -w "$cache_file"; then
51083     test "x$cache_file" != "x/dev/null" &&
51084       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51085 echo "$as_me: updating cache $cache_file" >&6;}
51086     cat confcache >$cache_file
51087   else
51088     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51089 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51090   fi
51091 fi
51092 rm -f confcache
51093
51094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51095 # Let make expand exec_prefix.
51096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51097
51098 DEFS=-DHAVE_CONFIG_H
51099
51100 ac_libobjs=
51101 ac_ltlibobjs=
51102 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51103   # 1. Remove the extension, and $U if already installed.
51104   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51105   ac_i=`echo "$ac_i" | sed "$ac_script"`
51106   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51107   #    will be set to the directory where LIBOBJS objects are built.
51108   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51109   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51110 done
51111 LIBOBJS=$ac_libobjs
51112
51113 LTLIBOBJS=$ac_ltlibobjs
51114
51115
51116
51117 : ${CONFIG_STATUS=./config.status}
51118 ac_clean_files_save=$ac_clean_files
51119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51122 cat >$CONFIG_STATUS <<_ACEOF
51123 #! $SHELL
51124 # Generated by $as_me.
51125 # Run this file to recreate the current configuration.
51126 # Compiler output produced by configure, useful for debugging
51127 # configure, is in config.log if it exists.
51128
51129 debug=false
51130 ac_cs_recheck=false
51131 ac_cs_silent=false
51132 SHELL=\${CONFIG_SHELL-$SHELL}
51133 _ACEOF
51134
51135 cat >>$CONFIG_STATUS <<\_ACEOF
51136 ## --------------------- ##
51137 ## M4sh Initialization.  ##
51138 ## --------------------- ##
51139
51140 # Be more Bourne compatible
51141 DUALCASE=1; export DUALCASE # for MKS sh
51142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51143   emulate sh
51144   NULLCMD=:
51145   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51146   # is contrary to our usage.  Disable this feature.
51147   alias -g '${1+"$@"}'='"$@"'
51148   setopt NO_GLOB_SUBST
51149 else
51150   case `(set -o) 2>/dev/null` in
51151   *posix*) set -o posix ;;
51152 esac
51153
51154 fi
51155
51156
51157
51158
51159 # PATH needs CR
51160 # Avoid depending upon Character Ranges.
51161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51164 as_cr_digits='0123456789'
51165 as_cr_alnum=$as_cr_Letters$as_cr_digits
51166
51167 # The user is always right.
51168 if test "${PATH_SEPARATOR+set}" != set; then
51169   echo "#! /bin/sh" >conf$$.sh
51170   echo  "exit 0"   >>conf$$.sh
51171   chmod +x conf$$.sh
51172   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51173     PATH_SEPARATOR=';'
51174   else
51175     PATH_SEPARATOR=:
51176   fi
51177   rm -f conf$$.sh
51178 fi
51179
51180 # Support unset when possible.
51181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51182   as_unset=unset
51183 else
51184   as_unset=false
51185 fi
51186
51187
51188 # IFS
51189 # We need space, tab and new line, in precisely that order.  Quoting is
51190 # there to prevent editors from complaining about space-tab.
51191 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51192 # splitting by setting IFS to empty value.)
51193 as_nl='
51194 '
51195 IFS=" ""        $as_nl"
51196
51197 # Find who we are.  Look in the path if we contain no directory separator.
51198 case $0 in
51199   *[\\/]* ) as_myself=$0 ;;
51200   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51201 for as_dir in $PATH
51202 do
51203   IFS=$as_save_IFS
51204   test -z "$as_dir" && as_dir=.
51205   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51206 done
51207 IFS=$as_save_IFS
51208
51209      ;;
51210 esac
51211 # We did not find ourselves, most probably we were run as `sh COMMAND'
51212 # in which case we are not to be found in the path.
51213 if test "x$as_myself" = x; then
51214   as_myself=$0
51215 fi
51216 if test ! -f "$as_myself"; then
51217   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51218   { (exit 1); exit 1; }
51219 fi
51220
51221 # Work around bugs in pre-3.0 UWIN ksh.
51222 for as_var in ENV MAIL MAILPATH
51223 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51224 done
51225 PS1='$ '
51226 PS2='> '
51227 PS4='+ '
51228
51229 # NLS nuisances.
51230 for as_var in \
51231   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51232   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51233   LC_TELEPHONE LC_TIME
51234 do
51235   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51236     eval $as_var=C; export $as_var
51237   else
51238     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51239   fi
51240 done
51241
51242 # Required to use basename.
51243 if expr a : '\(a\)' >/dev/null 2>&1 &&
51244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51245   as_expr=expr
51246 else
51247   as_expr=false
51248 fi
51249
51250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51251   as_basename=basename
51252 else
51253   as_basename=false
51254 fi
51255
51256
51257 # Name of the executable.
51258 as_me=`$as_basename -- "$0" ||
51259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51260          X"$0" : 'X\(//\)$' \| \
51261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51262 echo X/"$0" |
51263     sed '/^.*\/\([^/][^/]*\)\/*$/{
51264             s//\1/
51265             q
51266           }
51267           /^X\/\(\/\/\)$/{
51268             s//\1/
51269             q
51270           }
51271           /^X\/\(\/\).*/{
51272             s//\1/
51273             q
51274           }
51275           s/.*/./; q'`
51276
51277 # CDPATH.
51278 $as_unset CDPATH
51279
51280
51281
51282   as_lineno_1=$LINENO
51283   as_lineno_2=$LINENO
51284   test "x$as_lineno_1" != "x$as_lineno_2" &&
51285   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51286
51287   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51288   # uniformly replaced by the line number.  The first 'sed' inserts a
51289   # line-number line after each line using $LINENO; the second 'sed'
51290   # does the real work.  The second script uses 'N' to pair each
51291   # line-number line with the line containing $LINENO, and appends
51292   # trailing '-' during substitution so that $LINENO is not a special
51293   # case at line end.
51294   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51295   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51296   # E. McMahon (1931-1989) for sed's syntax.  :-)
51297   sed -n '
51298     p
51299     /[$]LINENO/=
51300   ' <$as_myself |
51301     sed '
51302       s/[$]LINENO.*/&-/
51303       t lineno
51304       b
51305       :lineno
51306       N
51307       :loop
51308       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51309       t loop
51310       s/-\n.*//
51311     ' >$as_me.lineno &&
51312   chmod +x "$as_me.lineno" ||
51313     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51314    { (exit 1); exit 1; }; }
51315
51316   # Don't try to exec as it changes $[0], causing all sort of problems
51317   # (the dirname of $[0] is not the place where we might find the
51318   # original and so on.  Autoconf is especially sensitive to this).
51319   . "./$as_me.lineno"
51320   # Exit status is that of the last command.
51321   exit
51322 }
51323
51324
51325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51326   as_dirname=dirname
51327 else
51328   as_dirname=false
51329 fi
51330
51331 ECHO_C= ECHO_N= ECHO_T=
51332 case `echo -n x` in
51333 -n*)
51334   case `echo 'x\c'` in
51335   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51336   *)   ECHO_C='\c';;
51337   esac;;
51338 *)
51339   ECHO_N='-n';;
51340 esac
51341
51342 if expr a : '\(a\)' >/dev/null 2>&1 &&
51343    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51344   as_expr=expr
51345 else
51346   as_expr=false
51347 fi
51348
51349 rm -f conf$$ conf$$.exe conf$$.file
51350 if test -d conf$$.dir; then
51351   rm -f conf$$.dir/conf$$.file
51352 else
51353   rm -f conf$$.dir
51354   mkdir conf$$.dir
51355 fi
51356 echo >conf$$.file
51357 if ln -s conf$$.file conf$$ 2>/dev/null; then
51358   as_ln_s='ln -s'
51359   # ... but there are two gotchas:
51360   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51361   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51362   # In both cases, we have to default to `cp -p'.
51363   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51364     as_ln_s='cp -p'
51365 elif ln conf$$.file conf$$ 2>/dev/null; then
51366   as_ln_s=ln
51367 else
51368   as_ln_s='cp -p'
51369 fi
51370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51371 rmdir conf$$.dir 2>/dev/null
51372
51373 if mkdir -p . 2>/dev/null; then
51374   as_mkdir_p=:
51375 else
51376   test -d ./-p && rmdir ./-p
51377   as_mkdir_p=false
51378 fi
51379
51380 if test -x / >/dev/null 2>&1; then
51381   as_test_x='test -x'
51382 else
51383   if ls -dL / >/dev/null 2>&1; then
51384     as_ls_L_option=L
51385   else
51386     as_ls_L_option=
51387   fi
51388   as_test_x='
51389     eval sh -c '\''
51390       if test -d "$1"; then
51391         test -d "$1/.";
51392       else
51393         case $1 in
51394         -*)set "./$1";;
51395         esac;
51396         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51397         ???[sx]*):;;*)false;;esac;fi
51398     '\'' sh
51399   '
51400 fi
51401 as_executable_p=$as_test_x
51402
51403 # Sed expression to map a string onto a valid CPP name.
51404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51405
51406 # Sed expression to map a string onto a valid variable name.
51407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51408
51409
51410 exec 6>&1
51411
51412 # Save the log message, to keep $[0] and so on meaningful, and to
51413 # report actual input values of CONFIG_FILES etc. instead of their
51414 # values after options handling.
51415 ac_log="
51416 This file was extended by wxWidgets $as_me 2.9.1, which was
51417 generated by GNU Autoconf 2.61.  Invocation command line was
51418
51419   CONFIG_FILES    = $CONFIG_FILES
51420   CONFIG_HEADERS  = $CONFIG_HEADERS
51421   CONFIG_LINKS    = $CONFIG_LINKS
51422   CONFIG_COMMANDS = $CONFIG_COMMANDS
51423   $ $0 $@
51424
51425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51426 "
51427
51428 _ACEOF
51429
51430 cat >>$CONFIG_STATUS <<_ACEOF
51431 # Files that config.status was made for.
51432 config_files="$ac_config_files"
51433 config_headers="$ac_config_headers"
51434 config_commands="$ac_config_commands"
51435
51436 _ACEOF
51437
51438 cat >>$CONFIG_STATUS <<\_ACEOF
51439 ac_cs_usage="\
51440 \`$as_me' instantiates files from templates according to the
51441 current configuration.
51442
51443 Usage: $0 [OPTIONS] [FILE]...
51444
51445   -h, --help       print this help, then exit
51446   -V, --version    print version number and configuration settings, then exit
51447   -q, --quiet      do not print progress messages
51448   -d, --debug      don't remove temporary files
51449       --recheck    update $as_me by reconfiguring in the same conditions
51450   --file=FILE[:TEMPLATE]
51451                    instantiate the configuration file FILE
51452   --header=FILE[:TEMPLATE]
51453                    instantiate the configuration header FILE
51454
51455 Configuration files:
51456 $config_files
51457
51458 Configuration headers:
51459 $config_headers
51460
51461 Configuration commands:
51462 $config_commands
51463
51464 Report bugs to <bug-autoconf@gnu.org>."
51465
51466 _ACEOF
51467 cat >>$CONFIG_STATUS <<_ACEOF
51468 ac_cs_version="\\
51469 wxWidgets config.status 2.9.1
51470 configured by $0, generated by GNU Autoconf 2.61,
51471   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51472
51473 Copyright (C) 2006 Free Software Foundation, Inc.
51474 This config.status script is free software; the Free Software Foundation
51475 gives unlimited permission to copy, distribute and modify it."
51476
51477 ac_pwd='$ac_pwd'
51478 srcdir='$srcdir'
51479 INSTALL='$INSTALL'
51480 _ACEOF
51481
51482 cat >>$CONFIG_STATUS <<\_ACEOF
51483 # If no file are specified by the user, then we need to provide default
51484 # value.  By we need to know if files were specified by the user.
51485 ac_need_defaults=:
51486 while test $# != 0
51487 do
51488   case $1 in
51489   --*=*)
51490     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51491     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51492     ac_shift=:
51493     ;;
51494   *)
51495     ac_option=$1
51496     ac_optarg=$2
51497     ac_shift=shift
51498     ;;
51499   esac
51500
51501   case $ac_option in
51502   # Handling of the options.
51503   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51504     ac_cs_recheck=: ;;
51505   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51506     echo "$ac_cs_version"; exit ;;
51507   --debug | --debu | --deb | --de | --d | -d )
51508     debug=: ;;
51509   --file | --fil | --fi | --f )
51510     $ac_shift
51511     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51512     ac_need_defaults=false;;
51513   --header | --heade | --head | --hea )
51514     $ac_shift
51515     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51516     ac_need_defaults=false;;
51517   --he | --h)
51518     # Conflict between --help and --header
51519     { echo "$as_me: error: ambiguous option: $1
51520 Try \`$0 --help' for more information." >&2
51521    { (exit 1); exit 1; }; };;
51522   --help | --hel | -h )
51523     echo "$ac_cs_usage"; exit ;;
51524   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51525   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51526     ac_cs_silent=: ;;
51527
51528   # This is an error.
51529   -*) { echo "$as_me: error: unrecognized option: $1
51530 Try \`$0 --help' for more information." >&2
51531    { (exit 1); exit 1; }; } ;;
51532
51533   *) ac_config_targets="$ac_config_targets $1"
51534      ac_need_defaults=false ;;
51535
51536   esac
51537   shift
51538 done
51539
51540 ac_configure_extra_args=
51541
51542 if $ac_cs_silent; then
51543   exec 6>/dev/null
51544   ac_configure_extra_args="$ac_configure_extra_args --silent"
51545 fi
51546
51547 _ACEOF
51548 cat >>$CONFIG_STATUS <<_ACEOF
51549 if \$ac_cs_recheck; then
51550   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51551   CONFIG_SHELL=$SHELL
51552   export CONFIG_SHELL
51553   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51554 fi
51555
51556 _ACEOF
51557 cat >>$CONFIG_STATUS <<\_ACEOF
51558 exec 5>>config.log
51559 {
51560   echo
51561   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51562 ## Running $as_me. ##
51563 _ASBOX
51564   echo "$ac_log"
51565 } >&5
51566
51567 _ACEOF
51568 cat >>$CONFIG_STATUS <<_ACEOF
51569 #
51570 # INIT-COMMANDS
51571 #
51572
51573             CPP="$CPP"
51574             infile="$srcdir/include/wx/msw/genrcdefs.h"
51575             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51576
51577
51578  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51579  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51580  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51581                      LN_S="${LN_S}"
51582
51583
51584 _ACEOF
51585
51586 cat >>$CONFIG_STATUS <<\_ACEOF
51587
51588 # Handling of arguments.
51589 for ac_config_target in $ac_config_targets
51590 do
51591   case $ac_config_target in
51592     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51593     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51594     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51595     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51596     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51597     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51598     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51599     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51600     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51601
51602   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51603 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51604    { (exit 1); exit 1; }; };;
51605   esac
51606 done
51607
51608
51609 # If the user did not use the arguments to specify the items to instantiate,
51610 # then the envvar interface is used.  Set only those that are not.
51611 # We use the long form for the default assignment because of an extremely
51612 # bizarre bug on SunOS 4.1.3.
51613 if $ac_need_defaults; then
51614   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51615   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51616   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51617 fi
51618
51619 # Have a temporary directory for convenience.  Make it in the build tree
51620 # simply because there is no reason against having it here, and in addition,
51621 # creating and moving files from /tmp can sometimes cause problems.
51622 # Hook for its removal unless debugging.
51623 # Note that there is a small window in which the directory will not be cleaned:
51624 # after its creation but before its name has been assigned to `$tmp'.
51625 $debug ||
51626 {
51627   tmp=
51628   trap 'exit_status=$?
51629   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51630 ' 0
51631   trap '{ (exit 1); exit 1; }' 1 2 13 15
51632 }
51633 # Create a (secure) tmp directory for tmp files.
51634
51635 {
51636   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51637   test -n "$tmp" && test -d "$tmp"
51638 }  ||
51639 {
51640   tmp=./conf$$-$RANDOM
51641   (umask 077 && mkdir "$tmp")
51642 } ||
51643 {
51644    echo "$me: cannot create a temporary directory in ." >&2
51645    { (exit 1); exit 1; }
51646 }
51647
51648 #
51649 # Set up the sed scripts for CONFIG_FILES section.
51650 #
51651
51652 # No need to generate the scripts if there are no CONFIG_FILES.
51653 # This happens for instance when ./config.status config.h
51654 if test -n "$CONFIG_FILES"; then
51655
51656 _ACEOF
51657
51658
51659
51660 ac_delim='%!_!# '
51661 for ac_last_try in false false false false false :; do
51662   cat >conf$$subs.sed <<_ACEOF
51663 SHELL!$SHELL$ac_delim
51664 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51665 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51666 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51667 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51668 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51669 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51670 exec_prefix!$exec_prefix$ac_delim
51671 prefix!$prefix$ac_delim
51672 program_transform_name!$program_transform_name$ac_delim
51673 bindir!$bindir$ac_delim
51674 sbindir!$sbindir$ac_delim
51675 libexecdir!$libexecdir$ac_delim
51676 datarootdir!$datarootdir$ac_delim
51677 datadir!$datadir$ac_delim
51678 sysconfdir!$sysconfdir$ac_delim
51679 sharedstatedir!$sharedstatedir$ac_delim
51680 localstatedir!$localstatedir$ac_delim
51681 includedir!$includedir$ac_delim
51682 oldincludedir!$oldincludedir$ac_delim
51683 docdir!$docdir$ac_delim
51684 infodir!$infodir$ac_delim
51685 htmldir!$htmldir$ac_delim
51686 dvidir!$dvidir$ac_delim
51687 pdfdir!$pdfdir$ac_delim
51688 psdir!$psdir$ac_delim
51689 libdir!$libdir$ac_delim
51690 localedir!$localedir$ac_delim
51691 mandir!$mandir$ac_delim
51692 DEFS!$DEFS$ac_delim
51693 ECHO_C!$ECHO_C$ac_delim
51694 ECHO_N!$ECHO_N$ac_delim
51695 ECHO_T!$ECHO_T$ac_delim
51696 LIBS!$LIBS$ac_delim
51697 build_alias!$build_alias$ac_delim
51698 host_alias!$host_alias$ac_delim
51699 target_alias!$target_alias$ac_delim
51700 build!$build$ac_delim
51701 build_cpu!$build_cpu$ac_delim
51702 build_vendor!$build_vendor$ac_delim
51703 build_os!$build_os$ac_delim
51704 host!$host$ac_delim
51705 host_cpu!$host_cpu$ac_delim
51706 host_vendor!$host_vendor$ac_delim
51707 host_os!$host_os$ac_delim
51708 wx_top_builddir!$wx_top_builddir$ac_delim
51709 CC!$CC$ac_delim
51710 CFLAGS!$CFLAGS$ac_delim
51711 LDFLAGS!$LDFLAGS$ac_delim
51712 CPPFLAGS!$CPPFLAGS$ac_delim
51713 ac_ct_CC!$ac_ct_CC$ac_delim
51714 EXEEXT!$EXEEXT$ac_delim
51715 OBJEXT!$OBJEXT$ac_delim
51716 CPP!$CPP$ac_delim
51717 GREP!$GREP$ac_delim
51718 EGREP!$EGREP$ac_delim
51719 CXX!$CXX$ac_delim
51720 CXXFLAGS!$CXXFLAGS$ac_delim
51721 ac_ct_CXX!$ac_ct_CXX$ac_delim
51722 AR!$AR$ac_delim
51723 subdirs!$subdirs$ac_delim
51724 PKG_CONFIG!$PKG_CONFIG$ac_delim
51725 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51726 GTK_LIBS!$GTK_LIBS$ac_delim
51727 GTK_CONFIG!$GTK_CONFIG$ac_delim
51728 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51729 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51730 XMKMF!$XMKMF$ac_delim
51731 X_CFLAGS!$X_CFLAGS$ac_delim
51732 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51733 X_LIBS!$X_LIBS$ac_delim
51734 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51735 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51736 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51737 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51738 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51739 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51740 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51741 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51742 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51743 LIBICONV!$LIBICONV$ac_delim
51744 GXX_VERSION!$GXX_VERSION$ac_delim
51745 SDL_CONFIG!$SDL_CONFIG$ac_delim
51746 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51747 SDL_LIBS!$SDL_LIBS$ac_delim
51748 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51749 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51750 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51751 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51752 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51753 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51754 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51755 HILDON_LIBS!$HILDON_LIBS$ac_delim
51756 PYTHON!$PYTHON$ac_delim
51757 COND_PYTHON!$COND_PYTHON$ac_delim
51758 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51759 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51760 _ACEOF
51761
51762   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51763     break
51764   elif $ac_last_try; then
51765     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51767    { (exit 1); exit 1; }; }
51768   else
51769     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51770   fi
51771 done
51772
51773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51774 if test -n "$ac_eof"; then
51775   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51776   ac_eof=`expr $ac_eof + 1`
51777 fi
51778
51779 cat >>$CONFIG_STATUS <<_ACEOF
51780 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51782 _ACEOF
51783 sed '
51784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51785 s/^/s,@/; s/!/@,|#_!!_#|/
51786 :n
51787 t n
51788 s/'"$ac_delim"'$/,g/; t
51789 s/$/\\/; p
51790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51791 ' >>$CONFIG_STATUS <conf$$subs.sed
51792 rm -f conf$$subs.sed
51793 cat >>$CONFIG_STATUS <<_ACEOF
51794 CEOF$ac_eof
51795 _ACEOF
51796
51797
51798 ac_delim='%!_!# '
51799 for ac_last_try in false false false false false :; do
51800   cat >conf$$subs.sed <<_ACEOF
51801 GST_CFLAGS!$GST_CFLAGS$ac_delim
51802 GST_LIBS!$GST_LIBS$ac_delim
51803 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51804 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51805 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51806 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51807 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51808 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51809 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51810 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51811 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51812 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51813 VENDOR!$VENDOR$ac_delim
51814 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51815 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51816 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51817 WXUNIV!$WXUNIV$ac_delim
51818 MONOLITHIC!$MONOLITHIC$ac_delim
51819 USE_PLUGINS!$USE_PLUGINS$ac_delim
51820 CXXWARNINGS!$CXXWARNINGS$ac_delim
51821 EXTRALIBS!$EXTRALIBS$ac_delim
51822 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51823 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51824 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51825 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51826 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51827 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51828 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51829 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51830 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51831 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51832 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51833 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51834 UNICODE!$UNICODE$ac_delim
51835 BUILD!$BUILD$ac_delim
51836 DEBUG_INFO!$DEBUG_INFO$ac_delim
51837 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51838 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51839 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51840 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
51841 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
51842 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51843 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51844 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51845 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51846 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51847 RANLIB!$RANLIB$ac_delim
51848 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51849 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51850 INSTALL_DATA!$INSTALL_DATA$ac_delim
51851 LN_S!$LN_S$ac_delim
51852 SET_MAKE!$SET_MAKE$ac_delim
51853 MAKE_SET!$MAKE_SET$ac_delim
51854 AROPTIONS!$AROPTIONS$ac_delim
51855 STRIP!$STRIP$ac_delim
51856 NM!$NM$ac_delim
51857 INSTALL_DIR!$INSTALL_DIR$ac_delim
51858 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51859 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51860 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51861 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51862 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51863 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51864 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
51865 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
51866 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
51867 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
51868 SO_SUFFIX!$SO_SUFFIX$ac_delim
51869 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
51870 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
51871 LIBPREFIX!$LIBPREFIX$ac_delim
51872 LIBEXT!$LIBEXT$ac_delim
51873 DLLPREFIX!$DLLPREFIX$ac_delim
51874 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
51875 dlldir!$dlldir$ac_delim
51876 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
51877 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
51878 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
51879 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
51880 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
51881 PIC_FLAG!$PIC_FLAG$ac_delim
51882 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
51883 USE_SOVERSION!$USE_SOVERSION$ac_delim
51884 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
51885 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
51886 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
51887 USE_MACVERSION!$USE_MACVERSION$ac_delim
51888 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
51889 SONAME_FLAG!$SONAME_FLAG$ac_delim
51890 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
51891 BK_DEPS!$BK_DEPS$ac_delim
51892 WINDRES!$WINDRES$ac_delim
51893 REZ!$REZ$ac_delim
51894 SETFILE!$SETFILE$ac_delim
51895 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
51896 GCC_PCH!$GCC_PCH$ac_delim
51897 ICC_PCH!$ICC_PCH$ac_delim
51898 _ACEOF
51899
51900   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51901     break
51902   elif $ac_last_try; then
51903     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51904 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51905    { (exit 1); exit 1; }; }
51906   else
51907     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51908   fi
51909 done
51910
51911 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51912 if test -n "$ac_eof"; then
51913   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51914   ac_eof=`expr $ac_eof + 1`
51915 fi
51916
51917 cat >>$CONFIG_STATUS <<_ACEOF
51918 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51920 _ACEOF
51921 sed '
51922 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51923 s/^/s,@/; s/!/@,|#_!!_#|/
51924 :n
51925 t n
51926 s/'"$ac_delim"'$/,g/; t
51927 s/$/\\/; p
51928 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51929 ' >>$CONFIG_STATUS <conf$$subs.sed
51930 rm -f conf$$subs.sed
51931 cat >>$CONFIG_STATUS <<_ACEOF
51932 CEOF$ac_eof
51933 _ACEOF
51934
51935
51936 ac_delim='%!_!# '
51937 for ac_last_try in false false false false false :; do
51938   cat >conf$$subs.sed <<_ACEOF
51939 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
51940 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
51941 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
51942 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
51943 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
51944 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51945 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51946 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51947 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51948 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51949 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51950 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51951 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
51952 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
51953 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
51954 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
51955 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
51956 COND_BUILD_release!$COND_BUILD_release$ac_delim
51957 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
51958 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
51959 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
51960 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51961 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51962 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51963 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51964 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51965 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51966 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51967 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51968 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51969 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51970 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51971 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51972 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51973 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51974 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
51975 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51976 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51977 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51978 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51979 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51980 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51981 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51982 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51983 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51984 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
51985 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51986 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51987 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51988 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51989 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51990 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51991 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51992 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51993 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
51994 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51995 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51996 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51997 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51998 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51999 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52000 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52001 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52002 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52003 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52004 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52005 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52006 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52007 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52008 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
52009 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52010 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
52011 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52012 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52013 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52014 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52015 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52016 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52017 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52018 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52019 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52020 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52021 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52022 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52023 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52024 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52025 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52026 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52027 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52028 COND_SHARED_0!$COND_SHARED_0$ac_delim
52029 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52030 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52031 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52032 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52033 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52034 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52035 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52036 _ACEOF
52037
52038   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52039     break
52040   elif $ac_last_try; then
52041     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52043    { (exit 1); exit 1; }; }
52044   else
52045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52046   fi
52047 done
52048
52049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52050 if test -n "$ac_eof"; then
52051   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52052   ac_eof=`expr $ac_eof + 1`
52053 fi
52054
52055 cat >>$CONFIG_STATUS <<_ACEOF
52056 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52058 _ACEOF
52059 sed '
52060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52061 s/^/s,@/; s/!/@,|#_!!_#|/
52062 :n
52063 t n
52064 s/'"$ac_delim"'$/,g/; t
52065 s/$/\\/; p
52066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52067 ' >>$CONFIG_STATUS <conf$$subs.sed
52068 rm -f conf$$subs.sed
52069 cat >>$CONFIG_STATUS <<_ACEOF
52070 CEOF$ac_eof
52071 _ACEOF
52072
52073
52074 ac_delim='%!_!# '
52075 for ac_last_try in false false false false false :; do
52076   cat >conf$$subs.sed <<_ACEOF
52077 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52078 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52079 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52080 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52081 COND_SHARED_1!$COND_SHARED_1$ac_delim
52082 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52083 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52084 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52085 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52086 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52087 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52088 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52089 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52090 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52091 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52092 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52093 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52094 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52095 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52096 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52097 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52098 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52099 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52100 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52101 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52102 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52103 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52104 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52105 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52106 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52107 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52108 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52109 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52110 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52111 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52112 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52113 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52114 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52115 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52116 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52117 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52118 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52119 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52120 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52121 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52122 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52123 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52124 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52125 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52126 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52127 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52128 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52129 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52130 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52131 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52132 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52133 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52134 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52135 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52136 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52137 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52138 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52139 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52140 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52141 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52142 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52143 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52144 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52145 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52146 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52147 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52148 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52149 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52150 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52151 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52152 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52153 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52154 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52155 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52156 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52157 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52158 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52159 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52160 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52161 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52162 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52163 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52164 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52165 DEREZ!$DEREZ$ac_delim
52166 SHARED!$SHARED$ac_delim
52167 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52168 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52169 USE_GUI!$USE_GUI$ac_delim
52170 AFMINSTALL!$AFMINSTALL$ac_delim
52171 WIN32INSTALL!$WIN32INSTALL$ac_delim
52172 TOOLKIT!$TOOLKIT$ac_delim
52173 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52174 _ACEOF
52175
52176   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52177     break
52178   elif $ac_last_try; then
52179     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52181    { (exit 1); exit 1; }; }
52182   else
52183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52184   fi
52185 done
52186
52187 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52188 if test -n "$ac_eof"; then
52189   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52190   ac_eof=`expr $ac_eof + 1`
52191 fi
52192
52193 cat >>$CONFIG_STATUS <<_ACEOF
52194 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52196 _ACEOF
52197 sed '
52198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52199 s/^/s,@/; s/!/@,|#_!!_#|/
52200 :n
52201 t n
52202 s/'"$ac_delim"'$/,g/; t
52203 s/$/\\/; p
52204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52205 ' >>$CONFIG_STATUS <conf$$subs.sed
52206 rm -f conf$$subs.sed
52207 cat >>$CONFIG_STATUS <<_ACEOF
52208 CEOF$ac_eof
52209 _ACEOF
52210
52211
52212 ac_delim='%!_!# '
52213 for ac_last_try in false false false false false :; do
52214   cat >conf$$subs.sed <<_ACEOF
52215 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52216 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52217 cross_compiling!$cross_compiling$ac_delim
52218 WIDGET_SET!$WIDGET_SET$ac_delim
52219 WX_RELEASE!$WX_RELEASE$ac_delim
52220 WX_VERSION!$WX_VERSION$ac_delim
52221 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52222 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52223 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52224 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52225 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52226 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52227 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52228 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52229 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52230 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52231 GUIDIST!$GUIDIST$ac_delim
52232 DISTDIR!$DISTDIR$ac_delim
52233 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52234 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52235 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52236 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52237 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52238 RESCOMP!$RESCOMP$ac_delim
52239 RESFLAGS!$RESFLAGS$ac_delim
52240 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52241 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52242 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52243 LIBWXMACRES!$LIBWXMACRES$ac_delim
52244 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52245 MACSETFILE!$MACSETFILE$ac_delim
52246 GCC!$GCC$ac_delim
52247 DLLTOOL!$DLLTOOL$ac_delim
52248 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52249 LIBOBJS!$LIBOBJS$ac_delim
52250 LTLIBOBJS!$LTLIBOBJS$ac_delim
52251 _ACEOF
52252
52253   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
52254     break
52255   elif $ac_last_try; then
52256     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52257 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52258    { (exit 1); exit 1; }; }
52259   else
52260     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52261   fi
52262 done
52263
52264 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52265 if test -n "$ac_eof"; then
52266   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52267   ac_eof=`expr $ac_eof + 1`
52268 fi
52269
52270 cat >>$CONFIG_STATUS <<_ACEOF
52271 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52273 _ACEOF
52274 sed '
52275 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52276 s/^/s,@/; s/!/@,|#_!!_#|/
52277 :n
52278 t n
52279 s/'"$ac_delim"'$/,g/; t
52280 s/$/\\/; p
52281 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52282 ' >>$CONFIG_STATUS <conf$$subs.sed
52283 rm -f conf$$subs.sed
52284 cat >>$CONFIG_STATUS <<_ACEOF
52285 :end
52286 s/|#_!!_#|//g
52287 CEOF$ac_eof
52288 _ACEOF
52289
52290
52291 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52292 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52293 # trailing colons and then remove the whole line if VPATH becomes empty
52294 # (actually we leave an empty line to preserve line numbers).
52295 if test "x$srcdir" = x.; then
52296   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52297 s/:*\$(srcdir):*/:/
52298 s/:*\${srcdir}:*/:/
52299 s/:*@srcdir@:*/:/
52300 s/^\([^=]*=[     ]*\):*/\1/
52301 s/:*$//
52302 s/^[^=]*=[       ]*$//
52303 }'
52304 fi
52305
52306 cat >>$CONFIG_STATUS <<\_ACEOF
52307 fi # test -n "$CONFIG_FILES"
52308
52309
52310 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52311 do
52312   case $ac_tag in
52313   :[FHLC]) ac_mode=$ac_tag; continue;;
52314   esac
52315   case $ac_mode$ac_tag in
52316   :[FHL]*:*);;
52317   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52318 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52319    { (exit 1); exit 1; }; };;
52320   :[FH]-) ac_tag=-:-;;
52321   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52322   esac
52323   ac_save_IFS=$IFS
52324   IFS=:
52325   set x $ac_tag
52326   IFS=$ac_save_IFS
52327   shift
52328   ac_file=$1
52329   shift
52330
52331   case $ac_mode in
52332   :L) ac_source=$1;;
52333   :[FH])
52334     ac_file_inputs=
52335     for ac_f
52336     do
52337       case $ac_f in
52338       -) ac_f="$tmp/stdin";;
52339       *) # Look for the file first in the build tree, then in the source tree
52340          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52341          # because $ac_f cannot contain `:'.
52342          test -f "$ac_f" ||
52343            case $ac_f in
52344            [\\/$]*) false;;
52345            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52346            esac ||
52347            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52348 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52349    { (exit 1); exit 1; }; };;
52350       esac
52351       ac_file_inputs="$ac_file_inputs $ac_f"
52352     done
52353
52354     # Let's still pretend it is `configure' which instantiates (i.e., don't
52355     # use $as_me), people would be surprised to read:
52356     #    /* config.h.  Generated by config.status.  */
52357     configure_input="Generated from "`IFS=:
52358           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52359     if test x"$ac_file" != x-; then
52360       configure_input="$ac_file.  $configure_input"
52361       { echo "$as_me:$LINENO: creating $ac_file" >&5
52362 echo "$as_me: creating $ac_file" >&6;}
52363     fi
52364
52365     case $ac_tag in
52366     *:-:* | *:-) cat >"$tmp/stdin";;
52367     esac
52368     ;;
52369   esac
52370
52371   ac_dir=`$as_dirname -- "$ac_file" ||
52372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52373          X"$ac_file" : 'X\(//\)[^/]' \| \
52374          X"$ac_file" : 'X\(//\)$' \| \
52375          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52376 echo X"$ac_file" |
52377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52378             s//\1/
52379             q
52380           }
52381           /^X\(\/\/\)[^/].*/{
52382             s//\1/
52383             q
52384           }
52385           /^X\(\/\/\)$/{
52386             s//\1/
52387             q
52388           }
52389           /^X\(\/\).*/{
52390             s//\1/
52391             q
52392           }
52393           s/.*/./; q'`
52394   { as_dir="$ac_dir"
52395   case $as_dir in #(
52396   -*) as_dir=./$as_dir;;
52397   esac
52398   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52399     as_dirs=
52400     while :; do
52401       case $as_dir in #(
52402       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52403       *) as_qdir=$as_dir;;
52404       esac
52405       as_dirs="'$as_qdir' $as_dirs"
52406       as_dir=`$as_dirname -- "$as_dir" ||
52407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52408          X"$as_dir" : 'X\(//\)[^/]' \| \
52409          X"$as_dir" : 'X\(//\)$' \| \
52410          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52411 echo X"$as_dir" |
52412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52413             s//\1/
52414             q
52415           }
52416           /^X\(\/\/\)[^/].*/{
52417             s//\1/
52418             q
52419           }
52420           /^X\(\/\/\)$/{
52421             s//\1/
52422             q
52423           }
52424           /^X\(\/\).*/{
52425             s//\1/
52426             q
52427           }
52428           s/.*/./; q'`
52429       test -d "$as_dir" && break
52430     done
52431     test -z "$as_dirs" || eval "mkdir $as_dirs"
52432   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52433 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52434    { (exit 1); exit 1; }; }; }
52435   ac_builddir=.
52436
52437 case "$ac_dir" in
52438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52439 *)
52440   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52441   # A ".." for each directory in $ac_dir_suffix.
52442   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52443   case $ac_top_builddir_sub in
52444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52446   esac ;;
52447 esac
52448 ac_abs_top_builddir=$ac_pwd
52449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52450 # for backward compatibility:
52451 ac_top_builddir=$ac_top_build_prefix
52452
52453 case $srcdir in
52454   .)  # We are building in place.
52455     ac_srcdir=.
52456     ac_top_srcdir=$ac_top_builddir_sub
52457     ac_abs_top_srcdir=$ac_pwd ;;
52458   [\\/]* | ?:[\\/]* )  # Absolute name.
52459     ac_srcdir=$srcdir$ac_dir_suffix;
52460     ac_top_srcdir=$srcdir
52461     ac_abs_top_srcdir=$srcdir ;;
52462   *) # Relative name.
52463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52464     ac_top_srcdir=$ac_top_build_prefix$srcdir
52465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52466 esac
52467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52468
52469
52470   case $ac_mode in
52471   :F)
52472   #
52473   # CONFIG_FILE
52474   #
52475
52476   case $INSTALL in
52477   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52478   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52479   esac
52480 _ACEOF
52481
52482 cat >>$CONFIG_STATUS <<\_ACEOF
52483 # If the template does not know about datarootdir, expand it.
52484 # FIXME: This hack should be removed a few years after 2.60.
52485 ac_datarootdir_hack=; ac_datarootdir_seen=
52486
52487 case `sed -n '/datarootdir/ {
52488   p
52489   q
52490 }
52491 /@datadir@/p
52492 /@docdir@/p
52493 /@infodir@/p
52494 /@localedir@/p
52495 /@mandir@/p
52496 ' $ac_file_inputs` in
52497 *datarootdir*) ac_datarootdir_seen=yes;;
52498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52499   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52500 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52501 _ACEOF
52502 cat >>$CONFIG_STATUS <<_ACEOF
52503   ac_datarootdir_hack='
52504   s&@datadir@&$datadir&g
52505   s&@docdir@&$docdir&g
52506   s&@infodir@&$infodir&g
52507   s&@localedir@&$localedir&g
52508   s&@mandir@&$mandir&g
52509     s&\\\${datarootdir}&$datarootdir&g' ;;
52510 esac
52511 _ACEOF
52512
52513 # Neutralize VPATH when `$srcdir' = `.'.
52514 # Shell code in configure.ac might set extrasub.
52515 # FIXME: do we really want to maintain this feature?
52516 cat >>$CONFIG_STATUS <<_ACEOF
52517   sed "$ac_vpsub
52518 $extrasub
52519 _ACEOF
52520 cat >>$CONFIG_STATUS <<\_ACEOF
52521 :t
52522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52523 s&@configure_input@&$configure_input&;t t
52524 s&@top_builddir@&$ac_top_builddir_sub&;t t
52525 s&@srcdir@&$ac_srcdir&;t t
52526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52527 s&@top_srcdir@&$ac_top_srcdir&;t t
52528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52529 s&@builddir@&$ac_builddir&;t t
52530 s&@abs_builddir@&$ac_abs_builddir&;t t
52531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52532 s&@INSTALL@&$ac_INSTALL&;t t
52533 $ac_datarootdir_hack
52534 " $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
52535
52536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52537   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52538   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52539   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52540 which seems to be undefined.  Please make sure it is defined." >&5
52541 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52542 which seems to be undefined.  Please make sure it is defined." >&2;}
52543
52544   rm -f "$tmp/stdin"
52545   case $ac_file in
52546   -) cat "$tmp/out"; rm -f "$tmp/out";;
52547   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52548   esac
52549  ;;
52550   :H)
52551   #
52552   # CONFIG_HEADER
52553   #
52554 _ACEOF
52555
52556 # Transform confdefs.h into a sed script `conftest.defines', that
52557 # substitutes the proper values into config.h.in to produce config.h.
52558 rm -f conftest.defines conftest.tail
52559 # First, append a space to every undef/define line, to ease matching.
52560 echo 's/$/ /' >conftest.defines
52561 # Then, protect against being on the right side of a sed subst, or in
52562 # an unquoted here document, in config.status.  If some macros were
52563 # called several times there might be several #defines for the same
52564 # symbol, which is useless.  But do not sort them, since the last
52565 # AC_DEFINE must be honored.
52566 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52567 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52568 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52569 # PARAMS is the parameter list in the macro definition--in most cases, it's
52570 # just an empty string.
52571 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52572 ac_dB='\\)[      (].*,\\1define\\2'
52573 ac_dC=' '
52574 ac_dD=' ,'
52575
52576 uniq confdefs.h |
52577   sed -n '
52578         t rset
52579         :rset
52580         s/^[     ]*#[    ]*define[       ][      ]*//
52581         t ok
52582         d
52583         :ok
52584         s/[\\&,]/\\&/g
52585         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52586         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52587   ' >>conftest.defines
52588
52589 # Remove the space that was appended to ease matching.
52590 # Then replace #undef with comments.  This is necessary, for
52591 # example, in the case of _POSIX_SOURCE, which is predefined and required
52592 # on some systems where configure will not decide to define it.
52593 # (The regexp can be short, since the line contains either #define or #undef.)
52594 echo 's/ $//
52595 s,^[     #]*u.*,/* & */,' >>conftest.defines
52596
52597 # Break up conftest.defines:
52598 ac_max_sed_lines=50
52599
52600 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52601 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52602 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52603 # et cetera.
52604 ac_in='$ac_file_inputs'
52605 ac_out='"$tmp/out1"'
52606 ac_nxt='"$tmp/out2"'
52607
52608 while :
52609 do
52610   # Write a here document:
52611     cat >>$CONFIG_STATUS <<_ACEOF
52612     # First, check the format of the line:
52613     cat >"\$tmp/defines.sed" <<\\CEOF
52614 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52615 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52616 b
52617 :def
52618 _ACEOF
52619   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52620   echo 'CEOF
52621     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52622   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52623   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52624   grep . conftest.tail >/dev/null || break
52625   rm -f conftest.defines
52626   mv conftest.tail conftest.defines
52627 done
52628 rm -f conftest.defines conftest.tail
52629
52630 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52631 cat >>$CONFIG_STATUS <<\_ACEOF
52632   if test x"$ac_file" != x-; then
52633     echo "/* $configure_input  */" >"$tmp/config.h"
52634     cat "$ac_result" >>"$tmp/config.h"
52635     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52636       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52637 echo "$as_me: $ac_file is unchanged" >&6;}
52638     else
52639       rm -f $ac_file
52640       mv "$tmp/config.h" $ac_file
52641     fi
52642   else
52643     echo "/* $configure_input  */"
52644     cat "$ac_result"
52645   fi
52646   rm -f "$tmp/out12"
52647  ;;
52648
52649   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52650 echo "$as_me: executing $ac_file commands" >&6;}
52651  ;;
52652   esac
52653
52654
52655   case $ac_file$ac_mode in
52656     "rcdefs.h":C)
52657             mkdir -p $outdir &&
52658             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52659          ;;
52660     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52661     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52662     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52663     "wx-config":C)  rm -f wx-config
52664                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52665                     ;;
52666
52667   esac
52668 done # for ac_tag
52669
52670
52671 { (exit 0); exit 0; }
52672 _ACEOF
52673 chmod +x $CONFIG_STATUS
52674 ac_clean_files=$ac_clean_files_save
52675
52676
52677 # configure is writing to config.log, and then calls config.status.
52678 # config.status does its own redirection, appending to config.log.
52679 # Unfortunately, on DOS this fails, as config.log is still kept open
52680 # by configure, so config.status won't be able to write to it; its
52681 # output is simply discarded.  So we exec the FD to /dev/null,
52682 # effectively closing config.log, so it can be properly (re)opened and
52683 # appended to by config.status.  When coming back to configure, we
52684 # need to make the FD available again.
52685 if test "$no_create" != yes; then
52686   ac_cs_success=:
52687   ac_config_status_args=
52688   test "$silent" = yes &&
52689     ac_config_status_args="$ac_config_status_args --quiet"
52690   exec 5>/dev/null
52691   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52692   exec 5>>config.log
52693   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52694   # would make configure fail if this is the last instruction.
52695   $ac_cs_success || { (exit 1); exit 1; }
52696 fi
52697
52698 #
52699 # CONFIG_SUBDIRS section.
52700 #
52701 if test "$no_recursion" != yes; then
52702
52703   # Remove --cache-file and --srcdir arguments so they do not pile up.
52704   ac_sub_configure_args=
52705   ac_prev=
52706   eval "set x $ac_configure_args"
52707   shift
52708   for ac_arg
52709   do
52710     if test -n "$ac_prev"; then
52711       ac_prev=
52712       continue
52713     fi
52714     case $ac_arg in
52715     -cache-file | --cache-file | --cache-fil | --cache-fi \
52716     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52717       ac_prev=cache_file ;;
52718     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52719     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52720     | --c=*)
52721       ;;
52722     --config-cache | -C)
52723       ;;
52724     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52725       ac_prev=srcdir ;;
52726     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52727       ;;
52728     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52729       ac_prev=prefix ;;
52730     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52731       ;;
52732     *)
52733       case $ac_arg in
52734       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52735       esac
52736       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52737     esac
52738   done
52739
52740   # Always prepend --prefix to ensure using the same prefix
52741   # in subdir configurations.
52742   ac_arg="--prefix=$prefix"
52743   case $ac_arg in
52744   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52745   esac
52746   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52747
52748   # Pass --silent
52749   if test "$silent" = yes; then
52750     ac_sub_configure_args="--silent $ac_sub_configure_args"
52751   fi
52752
52753   ac_popdir=`pwd`
52754   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52755
52756     # Do not complain, so a configure script can configure whichever
52757     # parts of a large source tree are present.
52758     test -d "$srcdir/$ac_dir" || continue
52759
52760     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52761     echo "$as_me:$LINENO: $ac_msg" >&5
52762     echo "$ac_msg" >&6
52763     { as_dir="$ac_dir"
52764   case $as_dir in #(
52765   -*) as_dir=./$as_dir;;
52766   esac
52767   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52768     as_dirs=
52769     while :; do
52770       case $as_dir in #(
52771       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52772       *) as_qdir=$as_dir;;
52773       esac
52774       as_dirs="'$as_qdir' $as_dirs"
52775       as_dir=`$as_dirname -- "$as_dir" ||
52776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52777          X"$as_dir" : 'X\(//\)[^/]' \| \
52778          X"$as_dir" : 'X\(//\)$' \| \
52779          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52780 echo X"$as_dir" |
52781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52782             s//\1/
52783             q
52784           }
52785           /^X\(\/\/\)[^/].*/{
52786             s//\1/
52787             q
52788           }
52789           /^X\(\/\/\)$/{
52790             s//\1/
52791             q
52792           }
52793           /^X\(\/\).*/{
52794             s//\1/
52795             q
52796           }
52797           s/.*/./; q'`
52798       test -d "$as_dir" && break
52799     done
52800     test -z "$as_dirs" || eval "mkdir $as_dirs"
52801   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52802 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52803    { (exit 1); exit 1; }; }; }
52804     ac_builddir=.
52805
52806 case "$ac_dir" in
52807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52808 *)
52809   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52810   # A ".." for each directory in $ac_dir_suffix.
52811   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52812   case $ac_top_builddir_sub in
52813   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52814   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52815   esac ;;
52816 esac
52817 ac_abs_top_builddir=$ac_pwd
52818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52819 # for backward compatibility:
52820 ac_top_builddir=$ac_top_build_prefix
52821
52822 case $srcdir in
52823   .)  # We are building in place.
52824     ac_srcdir=.
52825     ac_top_srcdir=$ac_top_builddir_sub
52826     ac_abs_top_srcdir=$ac_pwd ;;
52827   [\\/]* | ?:[\\/]* )  # Absolute name.
52828     ac_srcdir=$srcdir$ac_dir_suffix;
52829     ac_top_srcdir=$srcdir
52830     ac_abs_top_srcdir=$srcdir ;;
52831   *) # Relative name.
52832     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52833     ac_top_srcdir=$ac_top_build_prefix$srcdir
52834     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52835 esac
52836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52837
52838
52839     cd "$ac_dir"
52840
52841     # Check for guested configure; otherwise get Cygnus style configure.
52842     if test -f "$ac_srcdir/configure.gnu"; then
52843       ac_sub_configure=$ac_srcdir/configure.gnu
52844     elif test -f "$ac_srcdir/configure"; then
52845       ac_sub_configure=$ac_srcdir/configure
52846     elif test -f "$ac_srcdir/configure.in"; then
52847       # This should be Cygnus configure.
52848       ac_sub_configure=$ac_aux_dir/configure
52849     else
52850       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52851 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52852       ac_sub_configure=
52853     fi
52854
52855     # The recursion is here.
52856     if test -n "$ac_sub_configure"; then
52857       # Make the cache file name correct relative to the subdirectory.
52858       case $cache_file in
52859       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52860       *) # Relative name.
52861         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52862       esac
52863
52864       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52865 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52866       # The eval makes quoting arguments work.
52867       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
52868            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
52869         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52870 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52871    { (exit 1); exit 1; }; }
52872     fi
52873
52874     cd "$ac_popdir"
52875   done
52876 fi
52877
52878
52879 echo
52880 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52881 echo ""
52882 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52883 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52884
52885 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52886 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52887 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
52888 if test "$wxUSE_UNICODE" = "yes"; then
52889     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
52890         echo " (using UTF-8)"
52891     else
52892         echo " (using wchar_t)"
52893     fi
52894 else
52895     echo
52896 fi
52897
52898 echo "  What level of wxWidgets compatibility should be enabled?"
52899 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
52900 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
52901
52902 echo "  Which libraries should wxWidgets use?"
52903 echo "                                       STL                ${wxUSE_STL}"
52904 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52905 echo "                                       png                ${wxUSE_LIBPNG-none}"
52906 echo "                                       regex              ${wxUSE_REGEX}"
52907 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52908 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52909 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52910 fi
52911 echo "                                       zlib               ${wxUSE_ZLIB}"
52912 echo "                                       expat              ${wxUSE_EXPAT}"
52913 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52914 echo "                                       sdl                ${wxUSE_LIBSDL}"
52915
52916 echo ""
52917