removed the hyphen from the new --enable{baseevt,epoll,select}loop options description
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47513 2007-07-16 21:20:54Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 CFLAGS_VISIBILITY
711 CXXFLAGS_VISIBILITY
712 REZ
713 DEREZ
714 SETFILE
715 LIBICONV
716 SDL_CONFIG
717 SDL_CFLAGS
718 SDL_LIBS
719 LIBGNOMEPRINTUI_CFLAGS
720 LIBGNOMEPRINTUI_LIBS
721 GNOMEVFS_CFLAGS
722 GNOMEVFS_LIBS
723 HILDON_CFLAGS
724 HILDON_LIBS
725 CAIRO_CFLAGS
726 CAIRO_LIBS
727 GST_CFLAGS
728 GST_LIBS
729 ALL_WX_LIBS
730 BUILT_WX_LIBS
731 STD_BASE_LIBS
732 STD_GUI_LIBS
733 wxUSE_ZLIB
734 wxUSE_REGEX
735 wxUSE_EXPAT
736 wxUSE_ODBC
737 wxUSE_LIBJPEG
738 wxUSE_LIBPNG
739 wxUSE_LIBTIFF
740 VENDOR
741 OFFICIAL_BUILD
742 WX_FLAVOUR
743 WX_LIB_FLAVOUR
744 WXUNIV
745 MONOLITHIC
746 USE_PLUGINS
747 CXXWARNINGS
748 EXTRALIBS
749 EXTRALIBS_XML
750 EXTRALIBS_HTML
751 EXTRALIBS_ODBC
752 EXTRALIBS_GUI
753 EXTRALIBS_OPENGL
754 EXTRALIBS_SDL
755 WITH_PLUGIN_SDL
756 EXTRALIBS_GNOMEPRINT
757 EXTRALIBS_GNOMEVFS
758 EXTRALIBS_HILDON
759 UNICODE
760 BUILD
761 DEBUG_INFO
762 DEBUG_FLAG
763 TOOLKIT_LOWERCASE
764 TOOLKIT_VERSION
765 SAMPLES_RPATH_FLAG
766 SAMPLES_RPATH_POSTLINK
767 HOST_SUFFIX
768 CPPUNIT_CFLAGS
769 CPPUNIT_LIBS
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
847 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
850 COND_MONOLITHIC_0_USE_AUI_1
851 COND_MONOLITHIC_0_USE_GUI_1
852 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
854 COND_MONOLITHIC_0_USE_HTML_1
855 COND_MONOLITHIC_0_USE_MEDIA_1
856 COND_MONOLITHIC_0_USE_ODBC_1
857 COND_MONOLITHIC_0_USE_QA_1
858 COND_MONOLITHIC_0_USE_RICHTEXT_1
859 COND_MONOLITHIC_0_USE_STC_1
860 COND_MONOLITHIC_0_USE_XRC_1
861 COND_MONOLITHIC_1
862 COND_MONOLITHIC_1_SHARED_0
863 COND_MONOLITHIC_1_SHARED_1
864 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
866 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_
870 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
875 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
876 COND_PLATFORM_MACOSX_1_USE_GUI_1
877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
878 COND_PLATFORM_MACOS_1
879 COND_PLATFORM_MAC_1
880 COND_PLATFORM_MSDOS_0
881 COND_PLATFORM_MSDOS_1
882 COND_PLATFORM_OS2_1
883 COND_PLATFORM_UNIX_0
884 COND_PLATFORM_UNIX_1
885 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
887 COND_PLATFORM_UNIX_1_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
889 COND_PLATFORM_WIN32_0
890 COND_PLATFORM_WIN32_1
891 COND_SHARED_0
892 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
893 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
899 COND_SHARED_0_USE_STC_1
900 COND_SHARED_0_USE_XRC_1
901 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
902 COND_SHARED_0_WXUSE_ODBC_BUILTIN
903 COND_SHARED_0_WXUSE_REGEX_BUILTIN
904 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
905 COND_SHARED_1
906 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_1_USE_XRC_1
908 COND_TOOLKIT_
909 COND_TOOLKIT_COCOA
910 COND_TOOLKIT_COCOA_USE_GUI_1
911 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_DFB
913 COND_TOOLKIT_DFB_USE_GUI_1
914 COND_TOOLKIT_GTK
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_GTK_USE_GUI_1
922 COND_TOOLKIT_MAC
923 COND_TOOLKIT_MAC_USE_GUI_1
924 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MGL
926 COND_TOOLKIT_MGL_USE_GUI_1
927 COND_TOOLKIT_MOTIF
928 COND_TOOLKIT_MOTIF_USE_GUI_1
929 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_MSW
931 COND_TOOLKIT_MSW_USE_GUI_1
932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW_WXUNIV_0
934 COND_TOOLKIT_PM
935 COND_TOOLKIT_PM_USE_GUI_1
936 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_WINCE
938 COND_TOOLKIT_WINCE_USE_GUI_1
939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_WINCE_WXUNIV_0
941 COND_TOOLKIT_X11
942 COND_TOOLKIT_X11_USE_GUI_1
943 COND_UNICODE_1
944 COND_USE_EXCEPTIONS_0
945 COND_USE_EXCEPTIONS_1
946 COND_USE_GUI_0
947 COND_USE_GUI_1
948 COND_USE_GUI_1_USE_OPENGL_1
949 COND_USE_GUI_1_WXUNIV_0
950 COND_USE_GUI_1_WXUNIV_1
951 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
952 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
954 COND_USE_ODBC_1
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_ODBC_BUILTIN
978 COND_WXUSE_REGEX_BUILTIN
979 COND_WXUSE_ZLIB_BUILTIN
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 EXE_LINKER
1005 GUIDIST
1006 DISTDIR
1007 SAMPLES_SUBDIRS
1008 LDFLAGS_GL
1009 OPENGL_LIBS
1010 DMALLOC_LIBS
1011 WX_VERSION_TAG
1012 RESCOMP
1013 RESFLAGS
1014 RESPROGRAMOBJ
1015 WX_RESOURCES_MACOSX_ASCII
1016 WX_RESOURCES_MACOSX_DATA
1017 LIBWXMACRES
1018 POSTLINK_COMMAND
1019 MACSETFILE
1020 GCC
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 LIBGNOMEPRINTUI_CFLAGS
1048 LIBGNOMEPRINTUI_LIBS
1049 GNOMEVFS_CFLAGS
1050 GNOMEVFS_LIBS
1051 HILDON_CFLAGS
1052 HILDON_LIBS
1053 CAIRO_CFLAGS
1054 CAIRO_LIBS
1055 GST_CFLAGS
1056 GST_LIBS'
1057 ac_subdirs_all='src/expat'
1058
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1078
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1104
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1108 do
1109   # If the previous option needs an argument, assign it.
1110   if test -n "$ac_prev"; then
1111     eval $ac_prev=\$ac_option
1112     ac_prev=
1113     continue
1114   fi
1115
1116   case $ac_option in
1117   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118   *)    ac_optarg=yes ;;
1119   esac
1120
1121   # Accept the important Cygnus configure options, so we can diagnose typos.
1122
1123   case $ac_dashdash$ac_option in
1124   --)
1125     ac_dashdash=yes ;;
1126
1127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128     ac_prev=bindir ;;
1129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1130     bindir=$ac_optarg ;;
1131
1132   -build | --build | --buil | --bui | --bu)
1133     ac_prev=build_alias ;;
1134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1135     build_alias=$ac_optarg ;;
1136
1137   -cache-file | --cache-file | --cache-fil | --cache-fi \
1138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1139     ac_prev=cache_file ;;
1140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1142     cache_file=$ac_optarg ;;
1143
1144   --config-cache | -C)
1145     cache_file=config.cache ;;
1146
1147   -datadir | --datadir | --datadi | --datad)
1148     ac_prev=datadir ;;
1149   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1150     datadir=$ac_optarg ;;
1151
1152   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1153   | --dataroo | --dataro | --datar)
1154     ac_prev=datarootdir ;;
1155   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1156   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1157     datarootdir=$ac_optarg ;;
1158
1159   -disable-* | --disable-*)
1160     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1166     eval enable_$ac_feature=no ;;
1167
1168   -docdir | --docdir | --docdi | --doc | --do)
1169     ac_prev=docdir ;;
1170   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171     docdir=$ac_optarg ;;
1172
1173   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174     ac_prev=dvidir ;;
1175   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176     dvidir=$ac_optarg ;;
1177
1178   -enable-* | --enable-*)
1179     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183    { (exit 1); exit 1; }; }
1184     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185     eval enable_$ac_feature=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331     ac_prev=sbindir ;;
1332   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333   | --sbi=* | --sb=*)
1334     sbindir=$ac_optarg ;;
1335
1336   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338   | --sharedst | --shareds | --shared | --share | --shar \
1339   | --sha | --sh)
1340     ac_prev=sharedstatedir ;;
1341   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344   | --sha=* | --sh=*)
1345     sharedstatedir=$ac_optarg ;;
1346
1347   -site | --site | --sit)
1348     ac_prev=site ;;
1349   -site=* | --site=* | --sit=*)
1350     site=$ac_optarg ;;
1351
1352   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353     ac_prev=srcdir ;;
1354   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355     srcdir=$ac_optarg ;;
1356
1357   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358   | --syscon | --sysco | --sysc | --sys | --sy)
1359     ac_prev=sysconfdir ;;
1360   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362     sysconfdir=$ac_optarg ;;
1363
1364   -target | --target | --targe | --targ | --tar | --ta | --t)
1365     ac_prev=target_alias ;;
1366   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367     target_alias=$ac_optarg ;;
1368
1369   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370     verbose=yes ;;
1371
1372   -version | --version | --versio | --versi | --vers | -V)
1373     ac_init_version=: ;;
1374
1375   -with-* | --with-*)
1376     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=\$ac_optarg ;;
1383
1384   -without-* | --without-*)
1385     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 # Be sure to have absolute directory names.
1443 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444                 datadir sysconfdir sharedstatedir localstatedir includedir \
1445                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446                 libdir localedir mandir
1447 do
1448   eval ac_val=\$$ac_var
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { echo "$as_me: error: Working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$0" : 'X\(//\)[^/]' \| \
1498          X"$0" : 'X\(//\)$' \| \
1499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1500 echo X"$0" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR           user executables [EPREFIX/bin]
1594   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR       program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR           object code libraries [EPREFIX/lib]
1600   --includedir=DIR       C header files [PREFIX/include]
1601   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR          info documentation [DATAROOTDIR/info]
1605   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR           man documentation [DATAROOTDIR/man]
1607   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1608   --htmldir=DIR          html documentation [DOCDIR]
1609   --dvidir=DIR           dvi documentation [DOCDIR]
1610   --pdfdir=DIR           pdf documentation [DOCDIR]
1611   --psdir=DIR            ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 X features:
1617   --x-includes=DIR    X include files are in DIR
1618   --x-libraries=DIR   X library files are in DIR
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623   --target=TARGET   configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --disable-gui           don't build GUI parts of the library
1637   --enable-monolithic     build wxWidgets as single library
1638   --enable-plugins        build parts of wxWidgets as loadable components
1639   --enable-official_build official build of wxWidgets (win32 DLL only)
1640   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1641   --disable-all-features  disable all optional features to build minimal library
1642   --enable-universal      use wxWidgets GUI controls instead of native ones
1643   --enable-nanox          use NanoX
1644   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1645   --enable-gpe            use GNOME PDA Environment features if possible
1646   --disable-shared        create static library instead of shared
1647   --disable-optimise      create optimised code
1648   --enable-debug          same as debug_flag and debug_info
1649   --enable-stl            use STL for containers
1650   --enable-std_iostreams  use standard C++ stream classes
1651   --enable-std_string     use standard C++ string classes
1652   --disable-unicode       compile without Unicode support
1653   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1654   --enable-utf8           use UTF-8 representation for strings (Unix only)
1655   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1656   --enable-extended_rtti  use extended RTTI (XTI)
1657   --enable-omf            use OMF object format
1658   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1659   --enable-debug_info     create code with debugging information
1660   --enable-debug_gdb      create code with extra GDB debugging information
1661   --enable-debug_cntxt    use wxDebugContext
1662   --enable-mem_tracing    create code with memory tracing
1663   --enable-profile        create code with profiling information
1664   --enable-no_rtti        create code without RTTI information
1665   --enable-no_exceptions  create code without C++ exceptions handling
1666   --enable-permissive     compile code disregarding strict ANSI
1667   --enable-no_deps        create code without dependency information
1668   --disable-vararg_macros don't use vararg macros, even if they are supported
1669   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
1670   --enable-compat26       enable wxWidgets 2.6 compatibility
1671   --disable-compat28      disable wxWidgets 2.8 compatibility
1672   --disable-rpath         disable use of rpath for uninstalled builds
1673   --enable-objc_uniquifying enable Objective-C class name uniquifying
1674   --disable-visibility    disable use of ELF symbols visibility even if supported
1675   --enable-intl           use internationalization system
1676   --enable-config         use wxConfig (and derived) classes
1677   --enable-protocols      use wxProtocol and derived classes
1678   --enable-ftp            use wxFTP (requires wxProtocol
1679   --enable-http           use wxHTTP (requires wxProtocol
1680   --enable-fileproto      use wxFileProto class (requires wxProtocol
1681   --enable-sockets        use socket/network classes
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epoolloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontmap        use font encodings conversion classes
1704   --enable-fs_archive     use virtual archive filesystems
1705   --enable-fs_inet        use virtual HTTP/FTP filesystems
1706   --enable-fs_zip         now replaced by fs_archive
1707   --enable-geometry       use geometry class
1708   --enable-log            use logging system
1709   --enable-longlong       use wxLongLong class
1710   --enable-mimetype       use wxMimeTypesManager
1711   --enable-snglinst       use wxSingleInstanceChecker class
1712   --enable-stdpaths       use wxStandardPaths class
1713   --enable-stopwatch      use wxStopWatch class
1714   --enable-streams        use wxStream etc classes
1715   --enable-sysoptions     use wxSystemOptions
1716   --enable-tarstream      use wxTar streams
1717   --enable-textbuf        use wxTextBuffer class
1718   --enable-textfile       use wxTextFile class
1719   --enable-timer          use wxTimer class
1720   --enable-sound          use wxSound class
1721   --enable-mediactrl      use wxMediaCtrl class
1722   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1723   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1724   --enable-zipstream      use wxZip streams
1725   --enable-url            use wxURL class
1726   --enable-variant        use wxVariant class
1727   --enable-protocol       use wxProtocol class
1728   --enable-protocol-http  HTTP support in wxProtocol
1729   --enable-protocol-ftp   FTP support in wxProtocol
1730   --enable-protocol-file  FILE support in wxProtocol
1731   --enable-threads        use threads
1732   --enable-docview        use document view architecture
1733   --enable-help           use help subsystem
1734   --enable-mshtmlhelp     use MS HTML Help (win32)
1735   --enable-html           use wxHTML sub-library
1736   --enable-htmlhelp       use wxHTML-based help
1737   --enable-xrc            use XRC resources sub-library
1738   --enable-aui            use AUI docking library
1739   --enable-stc            use wxStyledTextCtrl library
1740   --enable-constraints    use layout-constraints system
1741   --enable-printarch      use printing architecture
1742   --enable-mdi            use multiple document interface architecture
1743   --enable-mdidoc         use docview architecture with MDI
1744   --enable-loggui         use standard GUI logger
1745   --enable-logwin         use wxLogWindow
1746   --enable-logdialog      use wxLogDialog
1747   --enable-webkit         use wxWebKitCtrl (Mac)
1748   --enable-richtext       use wxRichTextCtrl
1749   --enable-graphics_ctx   use graphics context 2D drawing API
1750   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1751   --enable-svg            use wxSVGFileDC device context
1752   --enable-clipboard      use wxClipboard class
1753   --enable-dnd            use Drag'n'Drop classes
1754   --enable-metafile       use win32 metafiles
1755   --disable-controls      disable compilation of all standard controls
1756   --enable-accel          use accelerators
1757   --enable-animatectrl    use wxAnimationCtrl class
1758   --enable-button         use wxButton class
1759   --enable-bmpbutton      use wxBitmapButton class
1760   --enable-bmpcombobox    use wxBitmapComboBox class
1761   --enable-calendar       use wxCalendarCtrl class
1762   --enable-caret          use wxCaret class
1763   --enable-checkbox       use wxCheckBox class
1764   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1765   --enable-choice         use wxChoice class
1766   --enable-choicebook     use wxChoicebook class
1767   --enable-collpane       use wxCollapsiblePane class
1768   --enable-colourpicker   use wxColourPickerCtrl class
1769   --enable-combobox       use wxComboBox class
1770   --enable-comboctrl      use wxComboCtrl class
1771   --enable-datepick       use wxDatePickerCtrl class
1772   --enable-dirpicker      use wxDirPickerCtrl class
1773   --enable-display        use wxDisplay class
1774   --enable-detect_sm      use code to detect X11 session manager
1775   --enable-editablebox    use wxEditableListBox class
1776   --enable-filepicker     use wxFilePickerCtrl class
1777   --enable-fontpicker     use wxFontPickerCtrl class
1778   --enable-gauge          use wxGauge class
1779   --enable-grid           use wxGrid class
1780   --enable-dataviewctrl   use wxDataViewCtrl class
1781   --enable-hyperlink      use wxHyperlinkCtrl class
1782   --enable-imaglist       use wxImageList class
1783   --enable-listbook       use wxListbook class
1784   --enable-listbox        use wxListBox class
1785   --enable-listctrl       use wxListCtrl class
1786   --enable-notebook       use wxNotebook class
1787   --enable-odcombobox     use wxOwnerDrawnComboBox class
1788   --enable-radiobox       use wxRadioBox class
1789   --enable-radiobtn       use wxRadioButton class
1790   --enable-sash           use wxSashWindow class
1791   --enable-scrollbar      use wxScrollBar class and scrollable windows
1792   --enable-searchctrl     use wxSearchCtrl class
1793   --enable-slider         use wxSlider class
1794   --enable-spinbtn        use wxSpinButton class
1795   --enable-spinctrl       use wxSpinCtrl class
1796   --enable-splitter       use wxSplitterWindow class
1797   --enable-statbmp        use wxStaticBitmap class
1798   --enable-statbox        use wxStaticBox class
1799   --enable-statline       use wxStaticLine class
1800   --enable-stattext       use wxStaticText class
1801   --enable-statusbar      use wxStatusBar class
1802   --enable-tabdialog      use wxTabControl class
1803   --enable-textctrl       use wxTextCtrl class
1804   --enable-togglebtn      use wxToggleButton class
1805   --enable-toolbar        use wxToolBar class
1806   --enable-tbarnative     use native wxToolBar class
1807   --enable-treebook       use wxTreebook class
1808   --enable-toolbook       use wxToolbook class
1809   --enable-treectrl       use wxTreeCtrl class
1810   --enable-tipwindow      use wxTipWindow class
1811   --enable-popupwin       use wxPopUpWindow class
1812   --enable-commondlg      use all common dialogs
1813   --enable-aboutdlg       use wxAboutBox
1814   --enable-choicedlg      use wxChoiceDialog
1815   --enable-coldlg         use wxColourDialog
1816   --enable-filedlg        use wxFileDialog
1817   --enable-finddlg        use wxFindReplaceDialog
1818   --enable-fontdlg        use wxFontDialog
1819   --enable-dirdlg         use wxDirDialog
1820   --enable-msgdlg         use wxMessageDialog
1821   --enable-numberdlg      use wxNumberEntryDialog
1822   --enable-splash         use wxSplashScreen
1823   --enable-textdlg        use wxTextDialog
1824   --enable-tipdlg         use startup tips
1825   --enable-progressdlg    use wxProgressDialog
1826   --enable-wizarddlg      use wxWizard
1827   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1828   --enable-miniframe      use wxMiniFrame class
1829   --enable-tooltips       use wxToolTip class
1830   --enable-splines        use spline drawing code
1831   --enable-mousewheel     use mousewheel
1832   --enable-validators     use wxValidator and derived classes
1833   --enable-busyinfo       use wxBusyInfo
1834   --enable-joystick       use wxJoystick
1835   --enable-metafiles      use wxMetaFile (Win32 only)
1836   --enable-dragimage      use wxDragImage
1837   --enable-accessibility  enable accessibility support
1838   --enable-dccache        cache temporary wxDC objects (Win32 only)
1839   --enable-palette        use wxPalette class
1840   --enable-image          use wxImage class
1841   --enable-gif            use gif images (GIF file format)
1842   --enable-pcx            use pcx images (PCX file format)
1843   --enable-tga            use tga images (TGA file format)
1844   --enable-iff            use iff images (IFF file format)
1845   --enable-pnm            use pnm images (PNM file format)
1846   --enable-xpm            use xpm images (XPM file format)
1847   --enable-icocur         use Windows ICO and CUR formats
1848   --disable-largefile     omit support for large files
1849   --disable-gtktest       do not try to compile and run a test GTK+ program
1850   --disable-gtktest       Do not try to compile and run a test GTK program
1851   --disable-sdltest       Do not try to compile and run a test SDL program
1852   --enable-omf            use OMF object format (OS/2)
1853   --disable-dependency-tracking
1854                           don't use dependency tracking even if the compiler
1855                           can
1856   --disable-precomp-headers
1857                           don't use precompiled headers even if compiler can
1858
1859 Optional Packages:
1860   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1861   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1862   --without-subdirs       don't generate makefiles for samples/demos/...
1863   --with-flavour=NAME     specify a name to identify this build
1864   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1865   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1866   --with-motif            use Motif/Lesstif
1867   --with-mac              use Mac OS X
1868   --with-cocoa            use Cocoa
1869   --with-wine             use Wine
1870   --with-msw              use MS-Windows
1871   --with-pm               use OS/2 Presentation Manager
1872   --with-mgl              use SciTech MGL
1873   --with-directfb         use DirectFB
1874   --with-microwin         use MicroWindows
1875   --with-x11              use X11
1876   --with-libpng           use libpng (PNG image format)
1877   --with-libjpeg          use libjpeg (JPEG file format)
1878   --with-libtiff          use libtiff (TIFF file format)
1879   --with-libxpm           use libxpm (XPM file format)
1880   --with-libmspack        use libmspack (CHM help files loading)
1881   --without-gnomeprint    don't use GNOME printing libraries
1882   --with-gnomevfs         use GNOME VFS for associating MIME types
1883   --with-hildon           use Hildon framework for Nokia 770
1884   --with-opengl           use OpenGL (or Mesa)
1885   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1886   --with-sdl              use SDL for audio on Unix
1887   --with-regex            enable support for wxRegEx class
1888   --with-zlib             use zlib for LZW compression
1889   --with-odbc             use the IODBC and wxODBC classes
1890   --with-expat            enable XML support using expat parser
1891   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1892   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1893   --with-x                use the X Window System
1894   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1895   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1896   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1897   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1898   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1899
1900 Some influential environment variables:
1901   CC          C compiler command
1902   CFLAGS      C compiler flags
1903   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1904               nonstandard directory <lib dir>
1905   LIBS        libraries to pass to the linker, e.g. -l<library>
1906   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1907               you have headers in a nonstandard directory <include dir>
1908   CPP         C preprocessor
1909   CXX         C++ compiler command
1910   CXXFLAGS    C++ compiler flags
1911   PKG_CONFIG  path to pkg-config utility
1912   DIRECTFB_CFLAGS
1913               C compiler flags for DIRECTFB, overriding pkg-config
1914   DIRECTFB_LIBS
1915               linker flags for DIRECTFB, overriding pkg-config
1916   XMKMF       Path to xmkmf, Makefile generator for X Window System
1917   PANGOX_CFLAGS
1918               C compiler flags for PANGOX, overriding pkg-config
1919   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1920   PANGOFT2_CFLAGS
1921               C compiler flags for PANGOFT2, overriding pkg-config
1922   PANGOFT2_LIBS
1923               linker flags for PANGOFT2, overriding pkg-config
1924   PANGOXFT_CFLAGS
1925               C compiler flags for PANGOXFT, overriding pkg-config
1926   PANGOXFT_LIBS
1927               linker flags for PANGOXFT, overriding pkg-config
1928   LIBGNOMEPRINTUI_CFLAGS
1929               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1930   LIBGNOMEPRINTUI_LIBS
1931               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1932   GNOMEVFS_CFLAGS
1933               C compiler flags for GNOMEVFS, overriding pkg-config
1934   GNOMEVFS_LIBS
1935               linker flags for GNOMEVFS, overriding pkg-config
1936   HILDON_CFLAGS
1937               C compiler flags for HILDON, overriding pkg-config
1938   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1939   CAIRO_CFLAGS
1940               C compiler flags for CAIRO, overriding pkg-config
1941   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1942   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1943   GST_LIBS    linker flags for GST, overriding pkg-config
1944
1945 Use these variables to override the choices made by `configure' or to help
1946 it to find libraries and programs with nonstandard names/locations.
1947
1948 Report bugs to <wx-dev@lists.wxwidgets.org>.
1949 _ACEOF
1950 ac_status=$?
1951 fi
1952
1953 if test "$ac_init_help" = "recursive"; then
1954   # If there are subdirs, report their specific --help.
1955   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1956     test -d "$ac_dir" || continue
1957     ac_builddir=.
1958
1959 case "$ac_dir" in
1960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *)
1962   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1963   # A ".." for each directory in $ac_dir_suffix.
1964   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1965   case $ac_top_builddir_sub in
1966   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1967   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1968   esac ;;
1969 esac
1970 ac_abs_top_builddir=$ac_pwd
1971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1972 # for backward compatibility:
1973 ac_top_builddir=$ac_top_build_prefix
1974
1975 case $srcdir in
1976   .)  # We are building in place.
1977     ac_srcdir=.
1978     ac_top_srcdir=$ac_top_builddir_sub
1979     ac_abs_top_srcdir=$ac_pwd ;;
1980   [\\/]* | ?:[\\/]* )  # Absolute name.
1981     ac_srcdir=$srcdir$ac_dir_suffix;
1982     ac_top_srcdir=$srcdir
1983     ac_abs_top_srcdir=$srcdir ;;
1984   *) # Relative name.
1985     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1986     ac_top_srcdir=$ac_top_build_prefix$srcdir
1987     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1988 esac
1989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1990
1991     cd "$ac_dir" || { ac_status=$?; continue; }
1992     # Check for guested configure.
1993     if test -f "$ac_srcdir/configure.gnu"; then
1994       echo &&
1995       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1996     elif test -f "$ac_srcdir/configure"; then
1997       echo &&
1998       $SHELL "$ac_srcdir/configure" --help=recursive
1999     else
2000       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2001     fi || ac_status=$?
2002     cd "$ac_pwd" || { ac_status=$?; break; }
2003   done
2004 fi
2005
2006 test -n "$ac_init_help" && exit $ac_status
2007 if $ac_init_version; then
2008   cat <<\_ACEOF
2009 wxWidgets configure 2.9.0
2010 generated by GNU Autoconf 2.61
2011
2012 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2013 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2014 This configure script is free software; the Free Software Foundation
2015 gives unlimited permission to copy, distribute and modify it.
2016 _ACEOF
2017   exit
2018 fi
2019 cat >config.log <<_ACEOF
2020 This file contains any messages produced by compilers while
2021 running configure, to aid debugging if configure makes a mistake.
2022
2023 It was created by wxWidgets $as_me 2.9.0, which was
2024 generated by GNU Autoconf 2.61.  Invocation command line was
2025
2026   $ $0 $@
2027
2028 _ACEOF
2029 exec 5>>config.log
2030 {
2031 cat <<_ASUNAME
2032 ## --------- ##
2033 ## Platform. ##
2034 ## --------- ##
2035
2036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2041
2042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2044
2045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2048 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2052
2053 _ASUNAME
2054
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   echo "PATH: $as_dir"
2061 done
2062 IFS=$as_save_IFS
2063
2064 } >&5
2065
2066 cat >&5 <<_ACEOF
2067
2068
2069 ## ----------- ##
2070 ## Core tests. ##
2071 ## ----------- ##
2072
2073 _ACEOF
2074
2075
2076 # Keep a trace of the command line.
2077 # Strip out --no-create and --no-recursion so they do not pile up.
2078 # Strip out --silent because we don't want to record it for future runs.
2079 # Also quote any args containing shell meta-characters.
2080 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_configure_args=
2082 ac_configure_args0=
2083 ac_configure_args1=
2084 ac_must_keep_next=false
2085 for ac_pass in 1 2
2086 do
2087   for ac_arg
2088   do
2089     case $ac_arg in
2090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2092     | -silent | --silent | --silen | --sile | --sil)
2093       continue ;;
2094     *\'*)
2095       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096     esac
2097     case $ac_pass in
2098     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2099     2)
2100       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2101       if test $ac_must_keep_next = true; then
2102         ac_must_keep_next=false # Got value, back to normal.
2103       else
2104         case $ac_arg in
2105           *=* | --config-cache | -C | -disable-* | --disable-* \
2106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2108           | -with-* | --with-* | -without-* | --without-* | --x)
2109             case "$ac_configure_args0 " in
2110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111             esac
2112             ;;
2113           -* ) ac_must_keep_next=true ;;
2114         esac
2115       fi
2116       ac_configure_args="$ac_configure_args '$ac_arg'"
2117       ;;
2118     esac
2119   done
2120 done
2121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2123
2124 # When interrupted or exit'd, cleanup temporary files, and complete
2125 # config.log.  We remove comments because anyway the quotes in there
2126 # would cause problems or look ugly.
2127 # WARNING: Use '\'' to represent an apostrophe within the trap.
2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2129 trap 'exit_status=$?
2130   # Save into config.log some information that might help in debugging.
2131   {
2132     echo
2133
2134     cat <<\_ASBOX
2135 ## ---------------- ##
2136 ## Cache variables. ##
2137 ## ---------------- ##
2138 _ASBOX
2139     echo
2140     # The following way of writing the cache mishandles newlines in values,
2141 (
2142   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2143     eval ac_val=\$$ac_var
2144     case $ac_val in #(
2145     *${as_nl}*)
2146       case $ac_var in #(
2147       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2148 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2149       esac
2150       case $ac_var in #(
2151       _ | IFS | as_nl) ;; #(
2152       *) $as_unset $ac_var ;;
2153       esac ;;
2154     esac
2155   done
2156   (set) 2>&1 |
2157     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158     *${as_nl}ac_space=\ *)
2159       sed -n \
2160         "s/'\''/'\''\\\\'\'''\''/g;
2161           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162       ;; #(
2163     *)
2164       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165       ;;
2166     esac |
2167     sort
2168 )
2169     echo
2170
2171     cat <<\_ASBOX
2172 ## ----------------- ##
2173 ## Output variables. ##
2174 ## ----------------- ##
2175 _ASBOX
2176     echo
2177     for ac_var in $ac_subst_vars
2178     do
2179       eval ac_val=\$$ac_var
2180       case $ac_val in
2181       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182       esac
2183       echo "$ac_var='\''$ac_val'\''"
2184     done | sort
2185     echo
2186
2187     if test -n "$ac_subst_files"; then
2188       cat <<\_ASBOX
2189 ## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##
2192 _ASBOX
2193       echo
2194       for ac_var in $ac_subst_files
2195       do
2196         eval ac_val=\$$ac_var
2197         case $ac_val in
2198         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199         esac
2200         echo "$ac_var='\''$ac_val'\''"
2201       done | sort
2202       echo
2203     fi
2204
2205     if test -s confdefs.h; then
2206       cat <<\_ASBOX
2207 ## ----------- ##
2208 ## confdefs.h. ##
2209 ## ----------- ##
2210 _ASBOX
2211       echo
2212       cat confdefs.h
2213       echo
2214     fi
2215     test "$ac_signal" != 0 &&
2216       echo "$as_me: caught signal $ac_signal"
2217     echo "$as_me: exit $exit_status"
2218   } >&5
2219   rm -f core *.core core.conftest.* &&
2220     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221     exit $exit_status
2222 ' 0
2223 for ac_signal in 1 2 13 15; do
2224   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2225 done
2226 ac_signal=0
2227
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2230
2231 # Predefined preprocessor variables.
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_NAME "$PACKAGE_NAME"
2235 _ACEOF
2236
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2240 _ACEOF
2241
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_STRING "$PACKAGE_STRING"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 _ACEOF
2256
2257
2258 # Let the site file select an alternate cache file if it wants to.
2259 # Prefer explicitly selected file to automatically selected ones.
2260 if test -n "$CONFIG_SITE"; then
2261   set x "$CONFIG_SITE"
2262 elif test "x$prefix" != xNONE; then
2263   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2264 else
2265   set x "$ac_default_prefix/share/config.site" \
2266         "$ac_default_prefix/etc/config.site"
2267 fi
2268 shift
2269 for ac_site_file
2270 do
2271   if test -r "$ac_site_file"; then
2272     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2273 echo "$as_me: loading site script $ac_site_file" >&6;}
2274     sed 's/^/| /' "$ac_site_file" >&5
2275     . "$ac_site_file"
2276   fi
2277 done
2278
2279 if test -r "$cache_file"; then
2280   # Some versions of bash will fail to source /dev/null (special
2281   # files actually), so we avoid doing that.
2282   if test -f "$cache_file"; then
2283     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2284 echo "$as_me: loading cache $cache_file" >&6;}
2285     case $cache_file in
2286       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287       *)                      . "./$cache_file";;
2288     esac
2289   fi
2290 else
2291   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2292 echo "$as_me: creating cache $cache_file" >&6;}
2293   >$cache_file
2294 fi
2295
2296 # Check that the precious variables saved in the cache have kept the same
2297 # value.
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301   eval ac_new_set=\$ac_env_${ac_var}_set
2302   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303   eval ac_new_val=\$ac_env_${ac_var}_value
2304   case $ac_old_set,$ac_new_set in
2305     set,)
2306       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308       ac_cache_corrupted=: ;;
2309     ,set)
2310       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2311 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312       ac_cache_corrupted=: ;;
2313     ,);;
2314     *)
2315       if test "x$ac_old_val" != "x$ac_new_val"; then
2316         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2317 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2318         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2319 echo "$as_me:   former value:  $ac_old_val" >&2;}
2320         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2321 echo "$as_me:   current value: $ac_new_val" >&2;}
2322         ac_cache_corrupted=:
2323       fi;;
2324   esac
2325   # Pass precious variables to config.status.
2326   if test "$ac_new_set" = set; then
2327     case $ac_new_val in
2328     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2329     *) ac_arg=$ac_var=$ac_new_val ;;
2330     esac
2331     case " $ac_configure_args " in
2332       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2333       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2334     esac
2335   fi
2336 done
2337 if $ac_cache_corrupted; then
2338   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2339 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2341 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369 ac_ext=c
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374
2375
2376
2377
2378
2379 ac_aux_dir=
2380 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2381   if test -f "$ac_dir/install-sh"; then
2382     ac_aux_dir=$ac_dir
2383     ac_install_sh="$ac_aux_dir/install-sh -c"
2384     break
2385   elif test -f "$ac_dir/install.sh"; then
2386     ac_aux_dir=$ac_dir
2387     ac_install_sh="$ac_aux_dir/install.sh -c"
2388     break
2389   elif test -f "$ac_dir/shtool"; then
2390     ac_aux_dir=$ac_dir
2391     ac_install_sh="$ac_aux_dir/shtool install -c"
2392     break
2393   fi
2394 done
2395 if test -z "$ac_aux_dir"; then
2396   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2397 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2398    { (exit 1); exit 1; }; }
2399 fi
2400
2401 # These three variables are undocumented and unsupported,
2402 # and are intended to be withdrawn in a future Autoconf release.
2403 # They can cause serious problems if a builder's source tree is in a directory
2404 # whose full name contains unusual characters.
2405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2407 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2408
2409
2410 # Make sure we can run config.sub.
2411 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2412   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2413 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2414    { (exit 1); exit 1; }; }
2415
2416 { echo "$as_me:$LINENO: checking build system type" >&5
2417 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2418 if test "${ac_cv_build+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   ac_build_alias=$build_alias
2422 test "x$ac_build_alias" = x &&
2423   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424 test "x$ac_build_alias" = x &&
2425   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2427    { (exit 1); exit 1; }; }
2428 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2429   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2430 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2431    { (exit 1); exit 1; }; }
2432
2433 fi
2434 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2435 echo "${ECHO_T}$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2437 *-*-*) ;;
2438 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2439 echo "$as_me: error: invalid value of canonical build" >&2;}
2440    { (exit 1); exit 1; }; };;
2441 esac
2442 build=$ac_cv_build
2443 ac_save_IFS=$IFS; IFS='-'
2444 set x $ac_cv_build
2445 shift
2446 build_cpu=$1
2447 build_vendor=$2
2448 shift; shift
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2451 build_os=$*
2452 IFS=$ac_save_IFS
2453 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
2456 { echo "$as_me:$LINENO: checking host system type" >&5
2457 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2458 if test "${ac_cv_host+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test "x$host_alias" = x; then
2462   ac_cv_host=$ac_cv_build
2463 else
2464   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2466 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2467    { (exit 1); exit 1; }; }
2468 fi
2469
2470 fi
2471 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2472 echo "${ECHO_T}$ac_cv_host" >&6; }
2473 case $ac_cv_host in
2474 *-*-*) ;;
2475 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2476 echo "$as_me: error: invalid value of canonical host" >&2;}
2477    { (exit 1); exit 1; }; };;
2478 esac
2479 host=$ac_cv_host
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_host
2482 shift
2483 host_cpu=$1
2484 host_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 host_os=$*
2489 IFS=$ac_save_IFS
2490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493 { echo "$as_me:$LINENO: checking target system type" >&5
2494 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2495 if test "${ac_cv_target+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test "x$target_alias" = x; then
2499   ac_cv_target=$ac_cv_host
2500 else
2501   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2503 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2504    { (exit 1); exit 1; }; }
2505 fi
2506
2507 fi
2508 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2509 echo "${ECHO_T}$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2511 *-*-*) ;;
2512 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2513 echo "$as_me: error: invalid value of canonical target" >&2;}
2514    { (exit 1); exit 1; }; };;
2515 esac
2516 target=$ac_cv_target
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_target
2519 shift
2520 target_cpu=$1
2521 target_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 target_os=$*
2526 IFS=$ac_save_IFS
2527 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528
2529
2530 # The aliases save the names the user supplied, while $host etc.
2531 # will get canonicalized.
2532 test -n "$target_alias" &&
2533   test "$program_prefix$program_suffix$program_transform_name" = \
2534     NONENONEs,x,x, &&
2535   program_prefix=${target_alias}-
2536
2537
2538
2539 wx_major_version_number=2
2540 wx_minor_version_number=9
2541 wx_release_number=0
2542 wx_subrelease_number=0
2543
2544 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2545 WX_VERSION=$WX_RELEASE.$wx_release_number
2546 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2547
2548 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2549
2550
2551 wx_top_builddir="`pwd`"
2552
2553
2554
2555
2556 USE_UNIX=1
2557 USE_OS2=0
2558 USE_WIN32=0
2559 USE_DOS=0
2560 USE_BEOS=0
2561 USE_MAC=0
2562
2563 USE_AIX=
2564 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2565 USE_GNU=                            USE_HPUX=
2566 USE_LINUX=
2567 USE_NETBSD=
2568 USE_OPENBSD=
2569 USE_OSF=                            USE_SGI=
2570 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2571 USE_ULTRIX=
2572 USE_UNIXWARE=
2573
2574 USE_ALPHA=
2575
2576 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2577
2578 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2579
2580 DEFAULT_wxUSE_COCOA=0
2581 DEFAULT_wxUSE_GTK=0
2582 DEFAULT_wxUSE_MAC=0
2583 DEFAULT_wxUSE_MGL=0
2584 DEFAULT_wxUSE_MICROWIN=0
2585 DEFAULT_wxUSE_MOTIF=0
2586 DEFAULT_wxUSE_MSW=0
2587 DEFAULT_wxUSE_PM=0
2588 DEFAULT_wxUSE_X11=0
2589 DEFAULT_wxUSE_DFB=0
2590
2591 DEFAULT_DEFAULT_wxUSE_COCOA=0
2592 DEFAULT_DEFAULT_wxUSE_GTK=0
2593 DEFAULT_DEFAULT_wxUSE_MAC=0
2594 DEFAULT_DEFAULT_wxUSE_MGL=0
2595 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2596 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2597 DEFAULT_DEFAULT_wxUSE_MSW=0
2598 DEFAULT_DEFAULT_wxUSE_PM=0
2599 DEFAULT_DEFAULT_wxUSE_X11=0
2600 DEFAULT_DEFAULT_wxUSE_DFB=0
2601
2602 PROGRAM_EXT=
2603 SO_SUFFIX=so
2604 SAMPLES_RPATH_FLAG=
2605 SAMPLES_RPATH_POSTLINK=
2606
2607 DEFAULT_STD_FLAG=yes
2608
2609 case "${host}" in
2610   *-hp-hpux* )
2611     USE_HPUX=1
2612     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2613     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2614     SO_SUFFIX=sl
2615     cat >>confdefs.h <<\_ACEOF
2616 #define __HPUX__ 1
2617 _ACEOF
2618
2619
2620             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2621   ;;
2622   *-*-linux* )
2623     USE_LINUX=1
2624     cat >>confdefs.h <<\_ACEOF
2625 #define __LINUX__ 1
2626 _ACEOF
2627
2628     TMP=`uname -m`
2629     if test "x$TMP" = "xalpha"; then
2630       USE_ALPHA=1
2631       cat >>confdefs.h <<\_ACEOF
2632 #define __ALPHA__ 1
2633 _ACEOF
2634
2635     fi
2636     DEFAULT_DEFAULT_wxUSE_GTK=1
2637   ;;
2638   *-*-gnu* | *-*-k*bsd*-gnu )
2639     USE_GNU=1
2640     TMP=`uname -m`
2641     if test "x$TMP" = "xalpha"; then
2642       USE_ALPHA=1
2643       cat >>confdefs.h <<\_ACEOF
2644 #define __ALPHA__ 1
2645 _ACEOF
2646
2647     fi
2648     DEFAULT_DEFAULT_wxUSE_GTK=1
2649   ;;
2650   *-*-irix5* | *-*-irix6* )
2651     USE_SGI=1
2652     USE_SVR4=1
2653     cat >>confdefs.h <<\_ACEOF
2654 #define __SGI__ 1
2655 _ACEOF
2656
2657     cat >>confdefs.h <<\_ACEOF
2658 #define __SVR4__ 1
2659 _ACEOF
2660
2661     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2662   ;;
2663   *-*-solaris2* )
2664     USE_SUN=1
2665     USE_SOLARIS=1
2666     USE_SVR4=1
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SUN__ 1
2669 _ACEOF
2670
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __SOLARIS__ 1
2673 _ACEOF
2674
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SVR4__ 1
2677 _ACEOF
2678
2679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2680     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2681   ;;
2682   *-*-sunos4* )
2683     USE_SUN=1
2684     USE_SUNOS=1
2685     USE_BSD=1
2686     cat >>confdefs.h <<\_ACEOF
2687 #define __SUN__ 1
2688 _ACEOF
2689
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __SUNOS__ 1
2692 _ACEOF
2693
2694     cat >>confdefs.h <<\_ACEOF
2695 #define __BSD__ 1
2696 _ACEOF
2697
2698     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2699   ;;
2700   *-*-freebsd*)
2701     USE_BSD=1
2702     USE_FREEBSD=1
2703     cat >>confdefs.h <<\_ACEOF
2704 #define __FREEBSD__ 1
2705 _ACEOF
2706
2707     cat >>confdefs.h <<\_ACEOF
2708 #define __BSD__ 1
2709 _ACEOF
2710
2711     DEFAULT_DEFAULT_wxUSE_GTK=1
2712   ;;
2713   *-*-openbsd*|*-*-mirbsd*)
2714     USE_BSD=1
2715     USE_OPENBSD=1
2716     cat >>confdefs.h <<\_ACEOF
2717 #define __OPENBSD__ 1
2718 _ACEOF
2719
2720     cat >>confdefs.h <<\_ACEOF
2721 #define __BSD__ 1
2722 _ACEOF
2723
2724     DEFAULT_DEFAULT_wxUSE_GTK=1
2725   ;;
2726   *-*-netbsd*)
2727     USE_BSD=1
2728     USE_NETBSD=1
2729     cat >>confdefs.h <<\_ACEOF
2730 #define __NETBSD__ 1
2731 _ACEOF
2732
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __BSD__ 1
2735 _ACEOF
2736
2737     DEFAULT_DEFAULT_wxUSE_GTK=1
2738     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2739
2740             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2741   ;;
2742   *-*-osf* )
2743     USE_ALPHA=1
2744     USE_OSF=1
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __ALPHA__ 1
2747 _ACEOF
2748
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __OSF__ 1
2751 _ACEOF
2752
2753     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2754     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2755   ;;
2756   *-*-dgux5* )
2757     USE_ALPHA=1
2758     USE_SVR4=1
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __ALPHA__ 1
2761 _ACEOF
2762
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __SVR4__ 1
2765 _ACEOF
2766
2767     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2768   ;;
2769   *-*-sysv5* )
2770     USE_SYSV=1
2771     USE_SVR4=1
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __SYSV__ 1
2774 _ACEOF
2775
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __SVR4__ 1
2778 _ACEOF
2779
2780     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2781   ;;
2782   *-*-aix* )
2783     USE_AIX=1
2784     USE_SYSV=1
2785     USE_SVR4=1
2786                         SO_SUFFIX=a
2787     cat >>confdefs.h <<\_ACEOF
2788 #define __AIX__ 1
2789 _ACEOF
2790
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __SYSV__ 1
2793 _ACEOF
2794
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __SVR4__ 1
2797 _ACEOF
2798
2799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2800   ;;
2801
2802   *-*-*UnixWare*)
2803     USE_SYSV=1
2804     USE_SVR4=1
2805     USE_UNIXWARE=1
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __UNIXWARE__ 1
2808 _ACEOF
2809
2810   ;;
2811
2812   *-*-cygwin* | *-*-mingw32* )
2813                 SO_SUFFIX=dll
2814     PROGRAM_EXT=".exe"
2815     DEFAULT_DEFAULT_wxUSE_MSW=1
2816   ;;
2817
2818   *-pc-msdosdjgpp )
2819     USE_UNIX=0
2820     USE_DOS=1
2821     cat >>confdefs.h <<\_ACEOF
2822 #define __DOS__ 1
2823 _ACEOF
2824
2825     PROGRAM_EXT=".exe"
2826     DEFAULT_DEFAULT_wxUSE_MGL=1
2827   ;;
2828
2829   *-pc-os2_emx | *-pc-os2-emx )
2830     cat >>confdefs.h <<\_ACEOF
2831 #define __EMX__ 1
2832 _ACEOF
2833
2834     USE_OS2=1
2835     cat >>confdefs.h <<\_ACEOF
2836 #define __OS2__ 1
2837 _ACEOF
2838
2839     PROGRAM_EXT=".exe"
2840     DEFAULT_DEFAULT_wxUSE_PM=1
2841         CXX=gcc
2842     LDFLAGS="$LDFLAGS -Zcrtdll"
2843                         ac_executable_extensions=".exe"
2844     export ac_executable_extensions
2845             ac_save_IFS="$IFS"
2846     IFS='\\'
2847     ac_TEMP_PATH=
2848     for ac_dir in $PATH; do
2849       IFS=$ac_save_IFS
2850       if test -z "$ac_TEMP_PATH"; then
2851         ac_TEMP_PATH="$ac_dir"
2852       else
2853         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2854       fi
2855     done
2856     export PATH="$ac_TEMP_PATH"
2857     unset ac_TEMP_PATH
2858     DEFAULT_STD_FLAG=no
2859   ;;
2860
2861   *-*-darwin* )
2862         USE_BSD=1
2863     USE_DARWIN=1
2864     SO_SUFFIX=dylib
2865     cat >>confdefs.h <<\_ACEOF
2866 #define __BSD__ 1
2867 _ACEOF
2868
2869     cat >>confdefs.h <<\_ACEOF
2870 #define __DARWIN__ 1
2871 _ACEOF
2872
2873     cat >>confdefs.h <<\_ACEOF
2874 #define TARGET_CARBON 1
2875 _ACEOF
2876
2877     DEFAULT_DEFAULT_wxUSE_MAC=1
2878     DEFAULT_STD_FLAG=no
2879   ;;
2880   powerpc-apple-macos* )
2881         USE_UNIX=0
2882             ac_cv_c_bigendian=yes
2883     SO_SUFFIX=shlib
2884             DEFAULT_DEFAULT_wxUSE_MAC=1
2885     DEFAULT_STD_FLAG=no
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
2909           wx_arg_cache_file="configarg.cache"
2910           echo "loading argument cache $wx_arg_cache_file"
2911           rm -f ${wx_arg_cache_file}.tmp
2912           touch ${wx_arg_cache_file}.tmp
2913           touch ${wx_arg_cache_file}
2914
2915
2916 DEFAULT_wxUSE_ALL_FEATURES=yes
2917
2918 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2919 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2920
2921 DEFAULT_wxUSE_DMALLOC=no
2922 DEFAULT_wxUSE_LIBGNOMEVFS=no
2923 DEFAULT_wxUSE_LIBHILDON=no
2924 DEFAULT_wxUSE_LIBMSPACK=no
2925 DEFAULT_wxUSE_LIBSDL=no
2926 DEFAULT_wxUSE_ODBC=no
2927 DEFAULT_wxUSE_OPENGL=no
2928
2929 DEFAULT_wxUSE_ACCESSIBILITY=no
2930 DEFAULT_wxUSE_DATAVIEWCTRL=no
2931 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2932 DEFAULT_wxUSE_MEDIACTRL=no
2933 DEFAULT_wxUSE_TAB_DIALOG=no
2934
2935 DEFAULT_wxUSE_UNICODE_UTF8=auto
2936 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2937
2938 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2939
2940 DEFAULT_wxUSE_GTK2=yes
2941
2942 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2943
2944
2945 for toolkit in `echo $ALL_TOOLKITS`; do
2946   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2947   if test "x$LINE" != "x" ; then
2948     has_toolkit_in_cache=1
2949     eval "DEFAULT_$LINE"
2950     eval "CACHE_$toolkit=1"
2951
2952     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2953     if test "x$LINE" != "x" ; then
2954         eval "DEFAULT_$LINE"
2955     fi
2956   fi
2957 done
2958
2959
2960
2961
2962
2963           enablestring=disable
2964           defaultval=
2965           if test -z "$defaultval"; then
2966               if test x"$enablestring" = xdisable; then
2967                   defaultval=yes
2968               else
2969                   defaultval=no
2970               fi
2971           fi
2972
2973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2974 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2975           no_cache=0
2976           # Check whether --enable-gui was given.
2977 if test "${enable_gui+set}" = set; then
2978   enableval=$enable_gui;
2979                           if test "$enableval" = yes; then
2980                             wx_cv_use_gui='wxUSE_GUI=yes'
2981                           else
2982                             wx_cv_use_gui='wxUSE_GUI=no'
2983                           fi
2984
2985 else
2986
2987                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2988                           if test "x$LINE" != x ; then
2989                             eval "DEFAULT_$LINE"
2990                           else
2991                             no_cache=1
2992                           fi
2993
2994                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2995
2996 fi
2997
2998
2999           eval "$wx_cv_use_gui"
3000           if test "$no_cache" != 1; then
3001             echo $wx_cv_use_gui >> ${wx_arg_cache_file}.tmp
3002           fi
3003
3004           if test x"$enablestring" = xdisable; then
3005             if test $wxUSE_GUI = yes; then
3006               result=no
3007             else
3008               result=yes
3009             fi
3010           else
3011             result=$wxUSE_GUI
3012           fi
3013
3014           { echo "$as_me:$LINENO: result: $result" >&5
3015 echo "${ECHO_T}$result" >&6; }
3016
3017
3018           enablestring=
3019           defaultval=
3020           if test -z "$defaultval"; then
3021               if test x"$enablestring" = xdisable; then
3022                   defaultval=yes
3023               else
3024                   defaultval=no
3025               fi
3026           fi
3027
3028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3029 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3030           no_cache=0
3031           # Check whether --enable-monolithic was given.
3032 if test "${enable_monolithic+set}" = set; then
3033   enableval=$enable_monolithic;
3034                           if test "$enableval" = yes; then
3035                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3036                           else
3037                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3038                           fi
3039
3040 else
3041
3042                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3043                           if test "x$LINE" != x ; then
3044                             eval "DEFAULT_$LINE"
3045                           else
3046                             no_cache=1
3047                           fi
3048
3049                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3050
3051 fi
3052
3053
3054           eval "$wx_cv_use_monolithic"
3055           if test "$no_cache" != 1; then
3056             echo $wx_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
3057           fi
3058
3059           if test x"$enablestring" = xdisable; then
3060             if test $wxUSE_MONOLITHIC = yes; then
3061               result=no
3062             else
3063               result=yes
3064             fi
3065           else
3066             result=$wxUSE_MONOLITHIC
3067           fi
3068
3069           { echo "$as_me:$LINENO: result: $result" >&5
3070 echo "${ECHO_T}$result" >&6; }
3071
3072
3073           enablestring=
3074           defaultval=
3075           if test -z "$defaultval"; then
3076               if test x"$enablestring" = xdisable; then
3077                   defaultval=yes
3078               else
3079                   defaultval=no
3080               fi
3081           fi
3082
3083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3084 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3085           no_cache=0
3086           # Check whether --enable-plugins was given.
3087 if test "${enable_plugins+set}" = set; then
3088   enableval=$enable_plugins;
3089                           if test "$enableval" = yes; then
3090                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3091                           else
3092                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3093                           fi
3094
3095 else
3096
3097                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3098                           if test "x$LINE" != x ; then
3099                             eval "DEFAULT_$LINE"
3100                           else
3101                             no_cache=1
3102                           fi
3103
3104                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3105
3106 fi
3107
3108
3109           eval "$wx_cv_use_plugins"
3110           if test "$no_cache" != 1; then
3111             echo $wx_cv_use_plugins >> ${wx_arg_cache_file}.tmp
3112           fi
3113
3114           if test x"$enablestring" = xdisable; then
3115             if test $wxUSE_PLUGINS = yes; then
3116               result=no
3117             else
3118               result=yes
3119             fi
3120           else
3121             result=$wxUSE_PLUGINS
3122           fi
3123
3124           { echo "$as_me:$LINENO: result: $result" >&5
3125 echo "${ECHO_T}$result" >&6; }
3126
3127
3128           withstring=without
3129           defaultval=$wxUSE_ALL_FEATURES
3130           if test -z "$defaultval"; then
3131               if test x"$withstring" = xwithout; then
3132                   defaultval=yes
3133               else
3134                   defaultval=no
3135               fi
3136           fi
3137           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3138 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3139           no_cache=0
3140
3141 # Check whether --with-subdirs was given.
3142 if test "${with_subdirs+set}" = set; then
3143   withval=$with_subdirs;
3144                         if test "$withval" = yes; then
3145                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3146                         else
3147                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3148                         fi
3149
3150 else
3151
3152                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3153                         if test "x$LINE" != x ; then
3154                           eval "DEFAULT_$LINE"
3155                         else
3156                           no_cache=1
3157                         fi
3158
3159                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3160
3161 fi
3162
3163
3164           eval "$wx_cv_use_subdirs"
3165           if test "$no_cache" != 1; then
3166             echo $wx_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
3167           fi
3168
3169           if test x"$withstring" = xwithout; then
3170             if test $wxWITH_SUBDIRS = yes; then
3171               result=no
3172             else
3173               result=yes
3174             fi
3175           else
3176             result=$wxWITH_SUBDIRS
3177           fi
3178
3179           { echo "$as_me:$LINENO: result: $result" >&5
3180 echo "${ECHO_T}$result" >&6; }
3181
3182
3183 # Check whether --with-flavour was given.
3184 if test "${with_flavour+set}" = set; then
3185   withval=$with_flavour; WX_FLAVOUR="$withval"
3186 fi
3187
3188
3189           enablestring=
3190           defaultval=
3191           if test -z "$defaultval"; then
3192               if test x"$enablestring" = xdisable; then
3193                   defaultval=yes
3194               else
3195                   defaultval=no
3196               fi
3197           fi
3198
3199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3200 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3201           no_cache=0
3202           # Check whether --enable-official_build was given.
3203 if test "${enable_official_build+set}" = set; then
3204   enableval=$enable_official_build;
3205                           if test "$enableval" = yes; then
3206                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3207                           else
3208                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3209                           fi
3210
3211 else
3212
3213                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3214                           if test "x$LINE" != x ; then
3215                             eval "DEFAULT_$LINE"
3216                           else
3217                             no_cache=1
3218                           fi
3219
3220                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3221
3222 fi
3223
3224
3225           eval "$wx_cv_use_official_build"
3226           if test "$no_cache" != 1; then
3227             echo $wx_cv_use_official_build >> ${wx_arg_cache_file}.tmp
3228           fi
3229
3230           if test x"$enablestring" = xdisable; then
3231             if test $wxUSE_OFFICIAL_BUILD = yes; then
3232               result=no
3233             else
3234               result=yes
3235             fi
3236           else
3237             result=$wxUSE_OFFICIAL_BUILD
3238           fi
3239
3240           { echo "$as_me:$LINENO: result: $result" >&5
3241 echo "${ECHO_T}$result" >&6; }
3242
3243 # Check whether --enable-vendor was given.
3244 if test "${enable_vendor+set}" = set; then
3245   enableval=$enable_vendor; VENDOR="$enableval"
3246 fi
3247
3248 if test "x$VENDOR" = "x"; then
3249     VENDOR="custom"
3250 fi
3251
3252
3253           enablestring=disable
3254           defaultval=
3255           if test -z "$defaultval"; then
3256               if test x"$enablestring" = xdisable; then
3257                   defaultval=yes
3258               else
3259                   defaultval=no
3260               fi
3261           fi
3262
3263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3264 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3265           no_cache=0
3266           # Check whether --enable-all-features was given.
3267 if test "${enable_all_features+set}" = set; then
3268   enableval=$enable_all_features;
3269                           if test "$enableval" = yes; then
3270                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3271                           else
3272                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3273                           fi
3274
3275 else
3276
3277                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3278                           if test "x$LINE" != x ; then
3279                             eval "DEFAULT_$LINE"
3280                           else
3281                             no_cache=1
3282                           fi
3283
3284                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3285
3286 fi
3287
3288
3289           eval "$wx_cv_use_all_features"
3290           if test "$no_cache" != 1; then
3291             echo $wx_cv_use_all_features >> ${wx_arg_cache_file}.tmp
3292           fi
3293
3294           if test x"$enablestring" = xdisable; then
3295             if test $wxUSE_ALL_FEATURES = yes; then
3296               result=no
3297             else
3298               result=yes
3299             fi
3300           else
3301             result=$wxUSE_ALL_FEATURES
3302           fi
3303
3304           { echo "$as_me:$LINENO: result: $result" >&5
3305 echo "${ECHO_T}$result" >&6; }
3306
3307
3308
3309 if test "$wxUSE_GUI" = "yes"; then
3310
3311
3312           enablestring=
3313           defaultval=
3314           if test -z "$defaultval"; then
3315               if test x"$enablestring" = xdisable; then
3316                   defaultval=yes
3317               else
3318                   defaultval=no
3319               fi
3320           fi
3321
3322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3323 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3324           no_cache=0
3325           # Check whether --enable-universal was given.
3326 if test "${enable_universal+set}" = set; then
3327   enableval=$enable_universal;
3328                           if test "$enableval" = yes; then
3329                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3330                           else
3331                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3332                           fi
3333
3334 else
3335
3336                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3337                           if test "x$LINE" != x ; then
3338                             eval "DEFAULT_$LINE"
3339                           else
3340                             no_cache=1
3341                           fi
3342
3343                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3344
3345 fi
3346
3347
3348           eval "$wx_cv_use_universal"
3349           if test "$no_cache" != 1; then
3350             echo $wx_cv_use_universal >> ${wx_arg_cache_file}.tmp
3351           fi
3352
3353           if test x"$enablestring" = xdisable; then
3354             if test $wxUSE_UNIVERSAL = yes; then
3355               result=no
3356             else
3357               result=yes
3358             fi
3359           else
3360             result=$wxUSE_UNIVERSAL
3361           fi
3362
3363           { echo "$as_me:$LINENO: result: $result" >&5
3364 echo "${ECHO_T}$result" >&6; }
3365
3366 if test "$wxUSE_UNIVERSAL" = "yes"; then
3367
3368 # Check whether --with-themes was given.
3369 if test "${with_themes+set}" = set; then
3370   withval=$with_themes; wxUNIV_THEMES="$withval"
3371 fi
3372
3373 fi
3374
3375
3376 # Check whether --with-gtk was given.
3377 if test "${with_gtk+set}" = set; then
3378   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3379 fi
3380
3381
3382 # Check whether --with-motif was given.
3383 if test "${with_motif+set}" = set; then
3384   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3385 fi
3386
3387
3388 # Check whether --with-mac was given.
3389 if test "${with_mac+set}" = set; then
3390   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3391 fi
3392
3393
3394 # Check whether --with-cocoa was given.
3395 if test "${with_cocoa+set}" = set; then
3396   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3397 fi
3398
3399
3400 # Check whether --with-wine was given.
3401 if test "${with_wine+set}" = set; then
3402   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3403 fi
3404
3405
3406 # Check whether --with-msw was given.
3407 if test "${with_msw+set}" = set; then
3408   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3409 fi
3410
3411
3412 # Check whether --with-pm was given.
3413 if test "${with_pm+set}" = set; then
3414   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3415 fi
3416
3417
3418 # Check whether --with-mgl was given.
3419 if test "${with_mgl+set}" = set; then
3420   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3421 fi
3422
3423
3424 # Check whether --with-directfb was given.
3425 if test "${with_directfb+set}" = set; then
3426   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3427 fi
3428
3429
3430 # Check whether --with-microwin was given.
3431 if test "${with_microwin+set}" = set; then
3432   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3433 fi
3434
3435
3436 # Check whether --with-x11 was given.
3437 if test "${with_x11+set}" = set; then
3438   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3439 fi
3440
3441
3442           enablestring=
3443           defaultval=
3444           if test -z "$defaultval"; then
3445               if test x"$enablestring" = xdisable; then
3446                   defaultval=yes
3447               else
3448                   defaultval=no
3449               fi
3450           fi
3451
3452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3453 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3454           no_cache=0
3455           # Check whether --enable-nanox was given.
3456 if test "${enable_nanox+set}" = set; then
3457   enableval=$enable_nanox;
3458                           if test "$enableval" = yes; then
3459                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3460                           else
3461                             wx_cv_use_nanox='wxUSE_NANOX=no'
3462                           fi
3463
3464 else
3465
3466                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3467                           if test "x$LINE" != x ; then
3468                             eval "DEFAULT_$LINE"
3469                           else
3470                             no_cache=1
3471                           fi
3472
3473                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3474
3475 fi
3476
3477
3478           eval "$wx_cv_use_nanox"
3479           if test "$no_cache" != 1; then
3480             echo $wx_cv_use_nanox >> ${wx_arg_cache_file}.tmp
3481           fi
3482
3483           if test x"$enablestring" = xdisable; then
3484             if test $wxUSE_NANOX = yes; then
3485               result=no
3486             else
3487               result=yes
3488             fi
3489           else
3490             result=$wxUSE_NANOX
3491           fi
3492
3493           { echo "$as_me:$LINENO: result: $result" >&5
3494 echo "${ECHO_T}$result" >&6; }
3495
3496
3497 # Check whether --enable-gtk2 was given.
3498 if test "${enable_gtk2+set}" = set; then
3499   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3500 fi
3501
3502
3503           enablestring=
3504           defaultval=
3505           if test -z "$defaultval"; then
3506               if test x"$enablestring" = xdisable; then
3507                   defaultval=yes
3508               else
3509                   defaultval=no
3510               fi
3511           fi
3512
3513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3514 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3515           no_cache=0
3516           # Check whether --enable-gpe was given.
3517 if test "${enable_gpe+set}" = set; then
3518   enableval=$enable_gpe;
3519                           if test "$enableval" = yes; then
3520                             wx_cv_use_gpe='wxUSE_GPE=yes'
3521                           else
3522                             wx_cv_use_gpe='wxUSE_GPE=no'
3523                           fi
3524
3525 else
3526
3527                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3528                           if test "x$LINE" != x ; then
3529                             eval "DEFAULT_$LINE"
3530                           else
3531                             no_cache=1
3532                           fi
3533
3534                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3535
3536 fi
3537
3538
3539           eval "$wx_cv_use_gpe"
3540           if test "$no_cache" != 1; then
3541             echo $wx_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3542           fi
3543
3544           if test x"$enablestring" = xdisable; then
3545             if test $wxUSE_GPE = yes; then
3546               result=no
3547             else
3548               result=yes
3549             fi
3550           else
3551             result=$wxUSE_GPE
3552           fi
3553
3554           { echo "$as_me:$LINENO: result: $result" >&5
3555 echo "${ECHO_T}$result" >&6; }
3556
3557
3558
3559
3560           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3561 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3562           no_cache=0
3563
3564 # Check whether --with-libpng was given.
3565 if test "${with_libpng+set}" = set; then
3566   withval=$with_libpng;
3567                         if test "$withval" = yes; then
3568                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3569                         elif test "$withval" = no; then
3570                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3571                         elif test "$withval" = sys; then
3572                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3573                         elif test "$withval" = builtin; then
3574                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3575                         else
3576                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3577 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3578    { (exit 1); exit 1; }; }
3579                         fi
3580
3581 else
3582
3583                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3584                         if test "x$LINE" != x ; then
3585                           eval "DEFAULT_$LINE"
3586                         else
3587                           no_cache=1
3588                         fi
3589
3590                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3591
3592 fi
3593
3594
3595           eval "$wx_cv_use_libpng"
3596           if test "$no_cache" != 1; then
3597             echo $wx_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3598           fi
3599
3600           if test "$wxUSE_LIBPNG" = yes; then
3601             { echo "$as_me:$LINENO: result: yes" >&5
3602 echo "${ECHO_T}yes" >&6; }
3603           elif test "$wxUSE_LIBPNG" = no; then
3604             { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3606           elif test "$wxUSE_LIBPNG" = sys; then
3607             { echo "$as_me:$LINENO: result: system version" >&5
3608 echo "${ECHO_T}system version" >&6; }
3609           elif test "$wxUSE_LIBPNG" = builtin; then
3610             { echo "$as_me:$LINENO: result: builtin version" >&5
3611 echo "${ECHO_T}builtin version" >&6; }
3612           else
3613             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3614 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3615    { (exit 1); exit 1; }; }
3616           fi
3617
3618
3619           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3620 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3621           no_cache=0
3622
3623 # Check whether --with-libjpeg was given.
3624 if test "${with_libjpeg+set}" = set; then
3625   withval=$with_libjpeg;
3626                         if test "$withval" = yes; then
3627                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3628                         elif test "$withval" = no; then
3629                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3630                         elif test "$withval" = sys; then
3631                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3632                         elif test "$withval" = builtin; then
3633                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3634                         else
3635                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3636 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3637    { (exit 1); exit 1; }; }
3638                         fi
3639
3640 else
3641
3642                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3643                         if test "x$LINE" != x ; then
3644                           eval "DEFAULT_$LINE"
3645                         else
3646                           no_cache=1
3647                         fi
3648
3649                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3650
3651 fi
3652
3653
3654           eval "$wx_cv_use_libjpeg"
3655           if test "$no_cache" != 1; then
3656             echo $wx_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3657           fi
3658
3659           if test "$wxUSE_LIBJPEG" = yes; then
3660             { echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6; }
3662           elif test "$wxUSE_LIBJPEG" = no; then
3663             { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3665           elif test "$wxUSE_LIBJPEG" = sys; then
3666             { echo "$as_me:$LINENO: result: system version" >&5
3667 echo "${ECHO_T}system version" >&6; }
3668           elif test "$wxUSE_LIBJPEG" = builtin; then
3669             { echo "$as_me:$LINENO: result: builtin version" >&5
3670 echo "${ECHO_T}builtin version" >&6; }
3671           else
3672             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3673 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3674    { (exit 1); exit 1; }; }
3675           fi
3676
3677
3678           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3679 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3680           no_cache=0
3681
3682 # Check whether --with-libtiff was given.
3683 if test "${with_libtiff+set}" = set; then
3684   withval=$with_libtiff;
3685                         if test "$withval" = yes; then
3686                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3687                         elif test "$withval" = no; then
3688                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3689                         elif test "$withval" = sys; then
3690                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3691                         elif test "$withval" = builtin; then
3692                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3693                         else
3694                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3695 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3696    { (exit 1); exit 1; }; }
3697                         fi
3698
3699 else
3700
3701                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3702                         if test "x$LINE" != x ; then
3703                           eval "DEFAULT_$LINE"
3704                         else
3705                           no_cache=1
3706                         fi
3707
3708                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3709
3710 fi
3711
3712
3713           eval "$wx_cv_use_libtiff"
3714           if test "$no_cache" != 1; then
3715             echo $wx_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3716           fi
3717
3718           if test "$wxUSE_LIBTIFF" = yes; then
3719             { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721           elif test "$wxUSE_LIBTIFF" = no; then
3722             { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724           elif test "$wxUSE_LIBTIFF" = sys; then
3725             { echo "$as_me:$LINENO: result: system version" >&5
3726 echo "${ECHO_T}system version" >&6; }
3727           elif test "$wxUSE_LIBTIFF" = builtin; then
3728             { echo "$as_me:$LINENO: result: builtin version" >&5
3729 echo "${ECHO_T}builtin version" >&6; }
3730           else
3731             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3732 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3733    { (exit 1); exit 1; }; }
3734           fi
3735
3736
3737           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3738 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3739           no_cache=0
3740
3741 # Check whether --with-libxpm was given.
3742 if test "${with_libxpm+set}" = set; then
3743   withval=$with_libxpm;
3744                         if test "$withval" = yes; then
3745                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3746                         elif test "$withval" = no; then
3747                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3748                         elif test "$withval" = sys; then
3749                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3750                         elif test "$withval" = builtin; then
3751                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3752                         else
3753                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3754 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3755    { (exit 1); exit 1; }; }
3756                         fi
3757
3758 else
3759
3760                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3761                         if test "x$LINE" != x ; then
3762                           eval "DEFAULT_$LINE"
3763                         else
3764                           no_cache=1
3765                         fi
3766
3767                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3768
3769 fi
3770
3771
3772           eval "$wx_cv_use_libxpm"
3773           if test "$no_cache" != 1; then
3774             echo $wx_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3775           fi
3776
3777           if test "$wxUSE_LIBXPM" = yes; then
3778             { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3780           elif test "$wxUSE_LIBXPM" = no; then
3781             { echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6; }
3783           elif test "$wxUSE_LIBXPM" = sys; then
3784             { echo "$as_me:$LINENO: result: system version" >&5
3785 echo "${ECHO_T}system version" >&6; }
3786           elif test "$wxUSE_LIBXPM" = builtin; then
3787             { echo "$as_me:$LINENO: result: builtin version" >&5
3788 echo "${ECHO_T}builtin version" >&6; }
3789           else
3790             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3791 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3792    { (exit 1); exit 1; }; }
3793           fi
3794
3795
3796           withstring=
3797           defaultval=$wxUSE_ALL_FEATURES
3798           if test -z "$defaultval"; then
3799               if test x"$withstring" = xwithout; then
3800                   defaultval=yes
3801               else
3802                   defaultval=no
3803               fi
3804           fi
3805           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3806 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3807           no_cache=0
3808
3809 # Check whether --with-libmspack was given.
3810 if test "${with_libmspack+set}" = set; then
3811   withval=$with_libmspack;
3812                         if test "$withval" = yes; then
3813                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3814                         else
3815                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3816                         fi
3817
3818 else
3819
3820                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3821                         if test "x$LINE" != x ; then
3822                           eval "DEFAULT_$LINE"
3823                         else
3824                           no_cache=1
3825                         fi
3826
3827                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3828
3829 fi
3830
3831
3832           eval "$wx_cv_use_libmspack"
3833           if test "$no_cache" != 1; then
3834             echo $wx_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3835           fi
3836
3837           if test x"$withstring" = xwithout; then
3838             if test $wxUSE_LIBMSPACK = yes; then
3839               result=no
3840             else
3841               result=yes
3842             fi
3843           else
3844             result=$wxUSE_LIBMSPACK
3845           fi
3846
3847           { echo "$as_me:$LINENO: result: $result" >&5
3848 echo "${ECHO_T}$result" >&6; }
3849
3850
3851           withstring=without
3852           defaultval=$wxUSE_ALL_FEATURES
3853           if test -z "$defaultval"; then
3854               if test x"$withstring" = xwithout; then
3855                   defaultval=yes
3856               else
3857                   defaultval=no
3858               fi
3859           fi
3860           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3861 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3862           no_cache=0
3863
3864 # Check whether --with-gnomeprint was given.
3865 if test "${with_gnomeprint+set}" = set; then
3866   withval=$with_gnomeprint;
3867                         if test "$withval" = yes; then
3868                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3869                         else
3870                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3871                         fi
3872
3873 else
3874
3875                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3876                         if test "x$LINE" != x ; then
3877                           eval "DEFAULT_$LINE"
3878                         else
3879                           no_cache=1
3880                         fi
3881
3882                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3883
3884 fi
3885
3886
3887           eval "$wx_cv_use_gnomeprint"
3888           if test "$no_cache" != 1; then
3889             echo $wx_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3890           fi
3891
3892           if test x"$withstring" = xwithout; then
3893             if test $wxUSE_LIBGNOMEPRINT = yes; then
3894               result=no
3895             else
3896               result=yes
3897             fi
3898           else
3899             result=$wxUSE_LIBGNOMEPRINT
3900           fi
3901
3902           { echo "$as_me:$LINENO: result: $result" >&5
3903 echo "${ECHO_T}$result" >&6; }
3904
3905
3906           withstring=
3907           defaultval=$wxUSE_ALL_FEATURES
3908           if test -z "$defaultval"; then
3909               if test x"$withstring" = xwithout; then
3910                   defaultval=yes
3911               else
3912                   defaultval=no
3913               fi
3914           fi
3915           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3916 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3917           no_cache=0
3918
3919 # Check whether --with-gnomevfs was given.
3920 if test "${with_gnomevfs+set}" = set; then
3921   withval=$with_gnomevfs;
3922                         if test "$withval" = yes; then
3923                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3924                         else
3925                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3926                         fi
3927
3928 else
3929
3930                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3931                         if test "x$LINE" != x ; then
3932                           eval "DEFAULT_$LINE"
3933                         else
3934                           no_cache=1
3935                         fi
3936
3937                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3938
3939 fi
3940
3941
3942           eval "$wx_cv_use_gnomevfs"
3943           if test "$no_cache" != 1; then
3944             echo $wx_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3945           fi
3946
3947           if test x"$withstring" = xwithout; then
3948             if test $wxUSE_LIBGNOMEVFS = yes; then
3949               result=no
3950             else
3951               result=yes
3952             fi
3953           else
3954             result=$wxUSE_LIBGNOMEVFS
3955           fi
3956
3957           { echo "$as_me:$LINENO: result: $result" >&5
3958 echo "${ECHO_T}$result" >&6; }
3959
3960
3961           withstring=
3962           defaultval=$wxUSE_ALL_FEATURES
3963           if test -z "$defaultval"; then
3964               if test x"$withstring" = xwithout; then
3965                   defaultval=yes
3966               else
3967                   defaultval=no
3968               fi
3969           fi
3970           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3971 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3972           no_cache=0
3973
3974 # Check whether --with-hildon was given.
3975 if test "${with_hildon+set}" = set; then
3976   withval=$with_hildon;
3977                         if test "$withval" = yes; then
3978                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3979                         else
3980                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3981                         fi
3982
3983 else
3984
3985                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3986                         if test "x$LINE" != x ; then
3987                           eval "DEFAULT_$LINE"
3988                         else
3989                           no_cache=1
3990                         fi
3991
3992                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3993
3994 fi
3995
3996
3997           eval "$wx_cv_use_hildon"
3998           if test "$no_cache" != 1; then
3999             echo $wx_cv_use_hildon >> ${wx_arg_cache_file}.tmp
4000           fi
4001
4002           if test x"$withstring" = xwithout; then
4003             if test $wxUSE_LIBHILDON = yes; then
4004               result=no
4005             else
4006               result=yes
4007             fi
4008           else
4009             result=$wxUSE_LIBHILDON
4010           fi
4011
4012           { echo "$as_me:$LINENO: result: $result" >&5
4013 echo "${ECHO_T}$result" >&6; }
4014
4015
4016           withstring=
4017           defaultval=$wxUSE_ALL_FEATURES
4018           if test -z "$defaultval"; then
4019               if test x"$withstring" = xwithout; then
4020                   defaultval=yes
4021               else
4022                   defaultval=no
4023               fi
4024           fi
4025           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4026 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4027           no_cache=0
4028
4029 # Check whether --with-opengl was given.
4030 if test "${with_opengl+set}" = set; then
4031   withval=$with_opengl;
4032                         if test "$withval" = yes; then
4033                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4034                         else
4035                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4036                         fi
4037
4038 else
4039
4040                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4041                         if test "x$LINE" != x ; then
4042                           eval "DEFAULT_$LINE"
4043                         else
4044                           no_cache=1
4045                         fi
4046
4047                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4048
4049 fi
4050
4051
4052           eval "$wx_cv_use_opengl"
4053           if test "$no_cache" != 1; then
4054             echo $wx_cv_use_opengl >> ${wx_arg_cache_file}.tmp
4055           fi
4056
4057           if test x"$withstring" = xwithout; then
4058             if test $wxUSE_OPENGL = yes; then
4059               result=no
4060             else
4061               result=yes
4062             fi
4063           else
4064             result=$wxUSE_OPENGL
4065           fi
4066
4067           { echo "$as_me:$LINENO: result: $result" >&5
4068 echo "${ECHO_T}$result" >&6; }
4069
4070
4071 fi
4072
4073
4074           withstring=
4075           defaultval=$wxUSE_ALL_FEATURES
4076           if test -z "$defaultval"; then
4077               if test x"$withstring" = xwithout; then
4078                   defaultval=yes
4079               else
4080                   defaultval=no
4081               fi
4082           fi
4083           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4084 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4085           no_cache=0
4086
4087 # Check whether --with-dmalloc was given.
4088 if test "${with_dmalloc+set}" = set; then
4089   withval=$with_dmalloc;
4090                         if test "$withval" = yes; then
4091                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4092                         else
4093                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4094                         fi
4095
4096 else
4097
4098                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4099                         if test "x$LINE" != x ; then
4100                           eval "DEFAULT_$LINE"
4101                         else
4102                           no_cache=1
4103                         fi
4104
4105                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4106
4107 fi
4108
4109
4110           eval "$wx_cv_use_dmalloc"
4111           if test "$no_cache" != 1; then
4112             echo $wx_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
4113           fi
4114
4115           if test x"$withstring" = xwithout; then
4116             if test $wxUSE_DMALLOC = yes; then
4117               result=no
4118             else
4119               result=yes
4120             fi
4121           else
4122             result=$wxUSE_DMALLOC
4123           fi
4124
4125           { echo "$as_me:$LINENO: result: $result" >&5
4126 echo "${ECHO_T}$result" >&6; }
4127
4128
4129           withstring=
4130           defaultval=$wxUSE_ALL_FEATURES
4131           if test -z "$defaultval"; then
4132               if test x"$withstring" = xwithout; then
4133                   defaultval=yes
4134               else
4135                   defaultval=no
4136               fi
4137           fi
4138           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4139 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4140           no_cache=0
4141
4142 # Check whether --with-sdl was given.
4143 if test "${with_sdl+set}" = set; then
4144   withval=$with_sdl;
4145                         if test "$withval" = yes; then
4146                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4147                         else
4148                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4149                         fi
4150
4151 else
4152
4153                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4154                         if test "x$LINE" != x ; then
4155                           eval "DEFAULT_$LINE"
4156                         else
4157                           no_cache=1
4158                         fi
4159
4160                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4161
4162 fi
4163
4164
4165           eval "$wx_cv_use_sdl"
4166           if test "$no_cache" != 1; then
4167             echo $wx_cv_use_sdl >> ${wx_arg_cache_file}.tmp
4168           fi
4169
4170           if test x"$withstring" = xwithout; then
4171             if test $wxUSE_LIBSDL = yes; then
4172               result=no
4173             else
4174               result=yes
4175             fi
4176           else
4177             result=$wxUSE_LIBSDL
4178           fi
4179
4180           { echo "$as_me:$LINENO: result: $result" >&5
4181 echo "${ECHO_T}$result" >&6; }
4182
4183
4184           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4185 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4186           no_cache=0
4187
4188 # Check whether --with-regex was given.
4189 if test "${with_regex+set}" = set; then
4190   withval=$with_regex;
4191                         if test "$withval" = yes; then
4192                           wx_cv_use_regex='wxUSE_REGEX=yes'
4193                         elif test "$withval" = no; then
4194                           wx_cv_use_regex='wxUSE_REGEX=no'
4195                         elif test "$withval" = sys; then
4196                           wx_cv_use_regex='wxUSE_REGEX=sys'
4197                         elif test "$withval" = builtin; then
4198                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4199                         else
4200                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4201 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4202    { (exit 1); exit 1; }; }
4203                         fi
4204
4205 else
4206
4207                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4208                         if test "x$LINE" != x ; then
4209                           eval "DEFAULT_$LINE"
4210                         else
4211                           no_cache=1
4212                         fi
4213
4214                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4215
4216 fi
4217
4218
4219           eval "$wx_cv_use_regex"
4220           if test "$no_cache" != 1; then
4221             echo $wx_cv_use_regex >> ${wx_arg_cache_file}.tmp
4222           fi
4223
4224           if test "$wxUSE_REGEX" = yes; then
4225             { echo "$as_me:$LINENO: result: yes" >&5
4226 echo "${ECHO_T}yes" >&6; }
4227           elif test "$wxUSE_REGEX" = no; then
4228             { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4230           elif test "$wxUSE_REGEX" = sys; then
4231             { echo "$as_me:$LINENO: result: system version" >&5
4232 echo "${ECHO_T}system version" >&6; }
4233           elif test "$wxUSE_REGEX" = builtin; then
4234             { echo "$as_me:$LINENO: result: builtin version" >&5
4235 echo "${ECHO_T}builtin version" >&6; }
4236           else
4237             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4238 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4239    { (exit 1); exit 1; }; }
4240           fi
4241
4242
4243           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4244 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4245           no_cache=0
4246
4247 # Check whether --with-zlib was given.
4248 if test "${with_zlib+set}" = set; then
4249   withval=$with_zlib;
4250                         if test "$withval" = yes; then
4251                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4252                         elif test "$withval" = no; then
4253                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4254                         elif test "$withval" = sys; then
4255                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4256                         elif test "$withval" = builtin; then
4257                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4258                         else
4259                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4260 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4261    { (exit 1); exit 1; }; }
4262                         fi
4263
4264 else
4265
4266                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4267                         if test "x$LINE" != x ; then
4268                           eval "DEFAULT_$LINE"
4269                         else
4270                           no_cache=1
4271                         fi
4272
4273                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4274
4275 fi
4276
4277
4278           eval "$wx_cv_use_zlib"
4279           if test "$no_cache" != 1; then
4280             echo $wx_cv_use_zlib >> ${wx_arg_cache_file}.tmp
4281           fi
4282
4283           if test "$wxUSE_ZLIB" = yes; then
4284             { echo "$as_me:$LINENO: result: yes" >&5
4285 echo "${ECHO_T}yes" >&6; }
4286           elif test "$wxUSE_ZLIB" = no; then
4287             { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4289           elif test "$wxUSE_ZLIB" = sys; then
4290             { echo "$as_me:$LINENO: result: system version" >&5
4291 echo "${ECHO_T}system version" >&6; }
4292           elif test "$wxUSE_ZLIB" = builtin; then
4293             { echo "$as_me:$LINENO: result: builtin version" >&5
4294 echo "${ECHO_T}builtin version" >&6; }
4295           else
4296             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4297 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4298    { (exit 1); exit 1; }; }
4299           fi
4300
4301
4302           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4303 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4304           no_cache=0
4305
4306 # Check whether --with-odbc was given.
4307 if test "${with_odbc+set}" = set; then
4308   withval=$with_odbc;
4309                         if test "$withval" = yes; then
4310                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4311                         elif test "$withval" = no; then
4312                           wx_cv_use_odbc='wxUSE_ODBC=no'
4313                         elif test "$withval" = sys; then
4314                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4315                         elif test "$withval" = builtin; then
4316                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4317                         else
4318                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4319 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4320    { (exit 1); exit 1; }; }
4321                         fi
4322
4323 else
4324
4325                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4326                         if test "x$LINE" != x ; then
4327                           eval "DEFAULT_$LINE"
4328                         else
4329                           no_cache=1
4330                         fi
4331
4332                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4333
4334 fi
4335
4336
4337           eval "$wx_cv_use_odbc"
4338           if test "$no_cache" != 1; then
4339             echo $wx_cv_use_odbc >> ${wx_arg_cache_file}.tmp
4340           fi
4341
4342           if test "$wxUSE_ODBC" = yes; then
4343             { echo "$as_me:$LINENO: result: yes" >&5
4344 echo "${ECHO_T}yes" >&6; }
4345           elif test "$wxUSE_ODBC" = no; then
4346             { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348           elif test "$wxUSE_ODBC" = sys; then
4349             { echo "$as_me:$LINENO: result: system version" >&5
4350 echo "${ECHO_T}system version" >&6; }
4351           elif test "$wxUSE_ODBC" = builtin; then
4352             { echo "$as_me:$LINENO: result: builtin version" >&5
4353 echo "${ECHO_T}builtin version" >&6; }
4354           else
4355             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4356 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4357    { (exit 1); exit 1; }; }
4358           fi
4359
4360
4361           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4362 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4363           no_cache=0
4364
4365 # Check whether --with-expat was given.
4366 if test "${with_expat+set}" = set; then
4367   withval=$with_expat;
4368                         if test "$withval" = yes; then
4369                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4370                         elif test "$withval" = no; then
4371                           wx_cv_use_expat='wxUSE_EXPAT=no'
4372                         elif test "$withval" = sys; then
4373                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4374                         elif test "$withval" = builtin; then
4375                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4376                         else
4377                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4378 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4379    { (exit 1); exit 1; }; }
4380                         fi
4381
4382 else
4383
4384                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4385                         if test "x$LINE" != x ; then
4386                           eval "DEFAULT_$LINE"
4387                         else
4388                           no_cache=1
4389                         fi
4390
4391                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4392
4393 fi
4394
4395
4396           eval "$wx_cv_use_expat"
4397           if test "$no_cache" != 1; then
4398             echo $wx_cv_use_expat >> ${wx_arg_cache_file}.tmp
4399           fi
4400
4401           if test "$wxUSE_EXPAT" = yes; then
4402             { echo "$as_me:$LINENO: result: yes" >&5
4403 echo "${ECHO_T}yes" >&6; }
4404           elif test "$wxUSE_EXPAT" = no; then
4405             { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407           elif test "$wxUSE_EXPAT" = sys; then
4408             { echo "$as_me:$LINENO: result: system version" >&5
4409 echo "${ECHO_T}system version" >&6; }
4410           elif test "$wxUSE_EXPAT" = builtin; then
4411             { echo "$as_me:$LINENO: result: builtin version" >&5
4412 echo "${ECHO_T}builtin version" >&6; }
4413           else
4414             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4415 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4416    { (exit 1); exit 1; }; }
4417           fi
4418
4419
4420
4421
4422           enablestring=disable
4423           defaultval=
4424           if test -z "$defaultval"; then
4425               if test x"$enablestring" = xdisable; then
4426                   defaultval=yes
4427               else
4428                   defaultval=no
4429               fi
4430           fi
4431
4432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4433 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4434           no_cache=0
4435           # Check whether --enable-shared was given.
4436 if test "${enable_shared+set}" = set; then
4437   enableval=$enable_shared;
4438                           if test "$enableval" = yes; then
4439                             wx_cv_use_shared='wxUSE_SHARED=yes'
4440                           else
4441                             wx_cv_use_shared='wxUSE_SHARED=no'
4442                           fi
4443
4444 else
4445
4446                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4447                           if test "x$LINE" != x ; then
4448                             eval "DEFAULT_$LINE"
4449                           else
4450                             no_cache=1
4451                           fi
4452
4453                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4454
4455 fi
4456
4457
4458           eval "$wx_cv_use_shared"
4459           if test "$no_cache" != 1; then
4460             echo $wx_cv_use_shared >> ${wx_arg_cache_file}.tmp
4461           fi
4462
4463           if test x"$enablestring" = xdisable; then
4464             if test $wxUSE_SHARED = yes; then
4465               result=no
4466             else
4467               result=yes
4468             fi
4469           else
4470             result=$wxUSE_SHARED
4471           fi
4472
4473           { echo "$as_me:$LINENO: result: $result" >&5
4474 echo "${ECHO_T}$result" >&6; }
4475
4476
4477           enablestring=disable
4478           defaultval=
4479           if test -z "$defaultval"; then
4480               if test x"$enablestring" = xdisable; then
4481                   defaultval=yes
4482               else
4483                   defaultval=no
4484               fi
4485           fi
4486
4487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4488 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4489           no_cache=0
4490           # Check whether --enable-optimise was given.
4491 if test "${enable_optimise+set}" = set; then
4492   enableval=$enable_optimise;
4493                           if test "$enableval" = yes; then
4494                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4495                           else
4496                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4497                           fi
4498
4499 else
4500
4501                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4502                           if test "x$LINE" != x ; then
4503                             eval "DEFAULT_$LINE"
4504                           else
4505                             no_cache=1
4506                           fi
4507
4508                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4509
4510 fi
4511
4512
4513           eval "$wx_cv_use_optimise"
4514           if test "$no_cache" != 1; then
4515             echo $wx_cv_use_optimise >> ${wx_arg_cache_file}.tmp
4516           fi
4517
4518           if test x"$enablestring" = xdisable; then
4519             if test $wxUSE_OPTIMISE = yes; then
4520               result=no
4521             else
4522               result=yes
4523             fi
4524           else
4525             result=$wxUSE_OPTIMISE
4526           fi
4527
4528           { echo "$as_me:$LINENO: result: $result" >&5
4529 echo "${ECHO_T}$result" >&6; }
4530
4531
4532           enablestring=
4533           defaultval=
4534           if test -z "$defaultval"; then
4535               if test x"$enablestring" = xdisable; then
4536                   defaultval=yes
4537               else
4538                   defaultval=no
4539               fi
4540           fi
4541
4542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4543 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4544           no_cache=0
4545           # Check whether --enable-debug was given.
4546 if test "${enable_debug+set}" = set; then
4547   enableval=$enable_debug;
4548                           if test "$enableval" = yes; then
4549                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4550                           else
4551                             wx_cv_use_debug='wxUSE_DEBUG=no'
4552                           fi
4553
4554 else
4555
4556                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4557                           if test "x$LINE" != x ; then
4558                             eval "DEFAULT_$LINE"
4559                           else
4560                             no_cache=1
4561                           fi
4562
4563                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4564
4565 fi
4566
4567
4568           eval "$wx_cv_use_debug"
4569           if test "$no_cache" != 1; then
4570             echo $wx_cv_use_debug >> ${wx_arg_cache_file}.tmp
4571           fi
4572
4573           if test x"$enablestring" = xdisable; then
4574             if test $wxUSE_DEBUG = yes; then
4575               result=no
4576             else
4577               result=yes
4578             fi
4579           else
4580             result=$wxUSE_DEBUG
4581           fi
4582
4583           { echo "$as_me:$LINENO: result: $result" >&5
4584 echo "${ECHO_T}$result" >&6; }
4585
4586
4587           enablestring=
4588           defaultval=
4589           if test -z "$defaultval"; then
4590               if test x"$enablestring" = xdisable; then
4591                   defaultval=yes
4592               else
4593                   defaultval=no
4594               fi
4595           fi
4596
4597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4598 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4599           no_cache=0
4600           # Check whether --enable-stl was given.
4601 if test "${enable_stl+set}" = set; then
4602   enableval=$enable_stl;
4603                           if test "$enableval" = yes; then
4604                             wx_cv_use_stl='wxUSE_STL=yes'
4605                           else
4606                             wx_cv_use_stl='wxUSE_STL=no'
4607                           fi
4608
4609 else
4610
4611                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4612                           if test "x$LINE" != x ; then
4613                             eval "DEFAULT_$LINE"
4614                           else
4615                             no_cache=1
4616                           fi
4617
4618                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4619
4620 fi
4621
4622
4623           eval "$wx_cv_use_stl"
4624           if test "$no_cache" != 1; then
4625             echo $wx_cv_use_stl >> ${wx_arg_cache_file}.tmp
4626           fi
4627
4628           if test x"$enablestring" = xdisable; then
4629             if test $wxUSE_STL = yes; then
4630               result=no
4631             else
4632               result=yes
4633             fi
4634           else
4635             result=$wxUSE_STL
4636           fi
4637
4638           { echo "$as_me:$LINENO: result: $result" >&5
4639 echo "${ECHO_T}$result" >&6; }
4640
4641
4642           enablestring=
4643           defaultval=
4644           if test -z "$defaultval"; then
4645               if test x"$enablestring" = xdisable; then
4646                   defaultval=yes
4647               else
4648                   defaultval=no
4649               fi
4650           fi
4651
4652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4653 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4654           no_cache=0
4655           # Check whether --enable-std_iostreams was given.
4656 if test "${enable_std_iostreams+set}" = set; then
4657   enableval=$enable_std_iostreams;
4658                           if test "$enableval" = yes; then
4659                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4660                           else
4661                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4662                           fi
4663
4664 else
4665
4666                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4667                           if test "x$LINE" != x ; then
4668                             eval "DEFAULT_$LINE"
4669                           else
4670                             no_cache=1
4671                           fi
4672
4673                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4674
4675 fi
4676
4677
4678           eval "$wx_cv_use_std_iostreams"
4679           if test "$no_cache" != 1; then
4680             echo $wx_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4681           fi
4682
4683           if test x"$enablestring" = xdisable; then
4684             if test $wxUSE_STD_IOSTREAM = yes; then
4685               result=no
4686             else
4687               result=yes
4688             fi
4689           else
4690             result=$wxUSE_STD_IOSTREAM
4691           fi
4692
4693           { echo "$as_me:$LINENO: result: $result" >&5
4694 echo "${ECHO_T}$result" >&6; }
4695
4696
4697           enablestring=
4698           defaultval=
4699           if test -z "$defaultval"; then
4700               if test x"$enablestring" = xdisable; then
4701                   defaultval=yes
4702               else
4703                   defaultval=no
4704               fi
4705           fi
4706
4707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4708 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4709           no_cache=0
4710           # Check whether --enable-std_string was given.
4711 if test "${enable_std_string+set}" = set; then
4712   enableval=$enable_std_string;
4713                           if test "$enableval" = yes; then
4714                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4715                           else
4716                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4717                           fi
4718
4719 else
4720
4721                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4722                           if test "x$LINE" != x ; then
4723                             eval "DEFAULT_$LINE"
4724                           else
4725                             no_cache=1
4726                           fi
4727
4728                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4729
4730 fi
4731
4732
4733           eval "$wx_cv_use_std_string"
4734           if test "$no_cache" != 1; then
4735             echo $wx_cv_use_std_string >> ${wx_arg_cache_file}.tmp
4736           fi
4737
4738           if test x"$enablestring" = xdisable; then
4739             if test $wxUSE_STD_STRING = yes; then
4740               result=no
4741             else
4742               result=yes
4743             fi
4744           else
4745             result=$wxUSE_STD_STRING
4746           fi
4747
4748           { echo "$as_me:$LINENO: result: $result" >&5
4749 echo "${ECHO_T}$result" >&6; }
4750
4751
4752           enablestring=disable
4753           defaultval=
4754           if test -z "$defaultval"; then
4755               if test x"$enablestring" = xdisable; then
4756                   defaultval=yes
4757               else
4758                   defaultval=no
4759               fi
4760           fi
4761
4762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4763 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4764           no_cache=0
4765           # Check whether --enable-unicode was given.
4766 if test "${enable_unicode+set}" = set; then
4767   enableval=$enable_unicode;
4768                           if test "$enableval" = yes; then
4769                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4770                           else
4771                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4772                           fi
4773
4774 else
4775
4776                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4777                           if test "x$LINE" != x ; then
4778                             eval "DEFAULT_$LINE"
4779                           else
4780                             no_cache=1
4781                           fi
4782
4783                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4784
4785 fi
4786
4787
4788           eval "$wx_cv_use_unicode"
4789           if test "$no_cache" != 1; then
4790             echo $wx_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4791           fi
4792
4793           if test x"$enablestring" = xdisable; then
4794             if test $wxUSE_UNICODE = yes; then
4795               result=no
4796             else
4797               result=yes
4798             fi
4799           else
4800             result=$wxUSE_UNICODE
4801           fi
4802
4803           { echo "$as_me:$LINENO: result: $result" >&5
4804 echo "${ECHO_T}$result" >&6; }
4805
4806
4807           enablestring=
4808           defaultval=
4809           if test -z "$defaultval"; then
4810               if test x"$enablestring" = xdisable; then
4811                   defaultval=yes
4812               else
4813                   defaultval=no
4814               fi
4815           fi
4816
4817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4818 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4819           no_cache=0
4820           # Check whether --enable-mslu was given.
4821 if test "${enable_mslu+set}" = set; then
4822   enableval=$enable_mslu;
4823                           if test "$enableval" = yes; then
4824                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4825                           else
4826                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4827                           fi
4828
4829 else
4830
4831                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4832                           if test "x$LINE" != x ; then
4833                             eval "DEFAULT_$LINE"
4834                           else
4835                             no_cache=1
4836                           fi
4837
4838                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4839
4840 fi
4841
4842
4843           eval "$wx_cv_use_mslu"
4844           if test "$no_cache" != 1; then
4845             echo $wx_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4846           fi
4847
4848           if test x"$enablestring" = xdisable; then
4849             if test $wxUSE_UNICODE_MSLU = yes; then
4850               result=no
4851             else
4852               result=yes
4853             fi
4854           else
4855             result=$wxUSE_UNICODE_MSLU
4856           fi
4857
4858           { echo "$as_me:$LINENO: result: $result" >&5
4859 echo "${ECHO_T}$result" >&6; }
4860
4861
4862           enablestring=
4863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4864 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4865           no_cache=0
4866           # Check whether --enable-utf8 was given.
4867 if test "${enable_utf8+set}" = set; then
4868   enableval=$enable_utf8;
4869                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4870
4871 else
4872
4873                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4874                           if test "x$LINE" != x ; then
4875                             eval "DEFAULT_$LINE"
4876                           else
4877                             no_cache=1
4878                           fi
4879
4880                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4881
4882 fi
4883
4884
4885           eval "$wx_cv_use_utf8"
4886           if test "$no_cache" != 1; then
4887             echo $wx_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
4888           fi
4889
4890           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4891 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4892
4893
4894           enablestring=
4895           defaultval=
4896           if test -z "$defaultval"; then
4897               if test x"$enablestring" = xdisable; then
4898                   defaultval=yes
4899               else
4900                   defaultval=no
4901               fi
4902           fi
4903
4904           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4905 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4906           no_cache=0
4907           # Check whether --enable-utf8only was given.
4908 if test "${enable_utf8only+set}" = set; then
4909   enableval=$enable_utf8only;
4910                           if test "$enableval" = yes; then
4911                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4912                           else
4913                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4914                           fi
4915
4916 else
4917
4918                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4919                           if test "x$LINE" != x ; then
4920                             eval "DEFAULT_$LINE"
4921                           else
4922                             no_cache=1
4923                           fi
4924
4925                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4926
4927 fi
4928
4929
4930           eval "$wx_cv_use_utf8only"
4931           if test "$no_cache" != 1; then
4932             echo $wx_cv_use_utf8only >> ${wx_arg_cache_file}.tmp
4933           fi
4934
4935           if test x"$enablestring" = xdisable; then
4936             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4937               result=no
4938             else
4939               result=yes
4940             fi
4941           else
4942             result=$wxUSE_UNICODE_UTF8_LOCALE
4943           fi
4944
4945           { echo "$as_me:$LINENO: result: $result" >&5
4946 echo "${ECHO_T}$result" >&6; }
4947
4948
4949           enablestring=
4950           defaultval=
4951           if test -z "$defaultval"; then
4952               if test x"$enablestring" = xdisable; then
4953                   defaultval=yes
4954               else
4955                   defaultval=no
4956               fi
4957           fi
4958
4959           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4960 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4961           no_cache=0
4962           # Check whether --enable-extended_rtti was given.
4963 if test "${enable_extended_rtti+set}" = set; then
4964   enableval=$enable_extended_rtti;
4965                           if test "$enableval" = yes; then
4966                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4967                           else
4968                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4969                           fi
4970
4971 else
4972
4973                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
4974                           if test "x$LINE" != x ; then
4975                             eval "DEFAULT_$LINE"
4976                           else
4977                             no_cache=1
4978                           fi
4979
4980                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4981
4982 fi
4983
4984
4985           eval "$wx_cv_use_extended_rtti"
4986           if test "$no_cache" != 1; then
4987             echo $wx_cv_use_extended_rtti >> ${wx_arg_cache_file}.tmp
4988           fi
4989
4990           if test x"$enablestring" = xdisable; then
4991             if test $wxUSE_EXTENDED_RTTI = yes; then
4992               result=no
4993             else
4994               result=yes
4995             fi
4996           else
4997             result=$wxUSE_EXTENDED_RTTI
4998           fi
4999
5000           { echo "$as_me:$LINENO: result: $result" >&5
5001 echo "${ECHO_T}$result" >&6; }
5002
5003 if test "$USE_OS2" = "1"; then
5004     DEFAULT_wxUSE_OMF=no
5005
5006           enablestring=
5007           defaultval=
5008           if test -z "$defaultval"; then
5009               if test x"$enablestring" = xdisable; then
5010                   defaultval=yes
5011               else
5012                   defaultval=no
5013               fi
5014           fi
5015
5016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5017 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5018           no_cache=0
5019           # Check whether --enable-omf was given.
5020 if test "${enable_omf+set}" = set; then
5021   enableval=$enable_omf;
5022                           if test "$enableval" = yes; then
5023                             wx_cv_use_omf='wxUSE_OMF=yes'
5024                           else
5025                             wx_cv_use_omf='wxUSE_OMF=no'
5026                           fi
5027
5028 else
5029
5030                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5031                           if test "x$LINE" != x ; then
5032                             eval "DEFAULT_$LINE"
5033                           else
5034                             no_cache=1
5035                           fi
5036
5037                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5038
5039 fi
5040
5041
5042           eval "$wx_cv_use_omf"
5043           if test "$no_cache" != 1; then
5044             echo $wx_cv_use_omf >> ${wx_arg_cache_file}.tmp
5045           fi
5046
5047           if test x"$enablestring" = xdisable; then
5048             if test $wxUSE_OMF = yes; then
5049               result=no
5050             else
5051               result=yes
5052             fi
5053           else
5054             result=$wxUSE_OMF
5055           fi
5056
5057           { echo "$as_me:$LINENO: result: $result" >&5
5058 echo "${ECHO_T}$result" >&6; }
5059
5060 fi
5061
5062 if test "$wxUSE_DEBUG" = "yes"; then
5063   DEFAULT_wxUSE_DEBUG_FLAG=yes
5064   DEFAULT_wxUSE_DEBUG_INFO=yes
5065   BUILD=debug
5066 elif test "$wxUSE_DEBUG" = "no"; then
5067   DEFAULT_wxUSE_DEBUG_FLAG=no
5068   DEFAULT_wxUSE_DEBUG_INFO=no
5069   BUILD=release
5070 fi
5071
5072
5073           enablestring=
5074           defaultval=
5075           if test -z "$defaultval"; then
5076               if test x"$enablestring" = xdisable; then
5077                   defaultval=yes
5078               else
5079                   defaultval=no
5080               fi
5081           fi
5082
5083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5084 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5085           no_cache=0
5086           # Check whether --enable-debug_flag was given.
5087 if test "${enable_debug_flag+set}" = set; then
5088   enableval=$enable_debug_flag;
5089                           if test "$enableval" = yes; then
5090                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5091                           else
5092                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5093                           fi
5094
5095 else
5096
5097                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5098                           if test "x$LINE" != x ; then
5099                             eval "DEFAULT_$LINE"
5100                           else
5101                             no_cache=1
5102                           fi
5103
5104                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5105
5106 fi
5107
5108
5109           eval "$wx_cv_use_debug_flag"
5110           if test "$no_cache" != 1; then
5111             echo $wx_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
5112           fi
5113
5114           if test x"$enablestring" = xdisable; then
5115             if test $wxUSE_DEBUG_FLAG = yes; then
5116               result=no
5117             else
5118               result=yes
5119             fi
5120           else
5121             result=$wxUSE_DEBUG_FLAG
5122           fi
5123
5124           { echo "$as_me:$LINENO: result: $result" >&5
5125 echo "${ECHO_T}$result" >&6; }
5126
5127
5128           enablestring=
5129           defaultval=
5130           if test -z "$defaultval"; then
5131               if test x"$enablestring" = xdisable; then
5132                   defaultval=yes
5133               else
5134                   defaultval=no
5135               fi
5136           fi
5137
5138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5139 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5140           no_cache=0
5141           # Check whether --enable-debug_info was given.
5142 if test "${enable_debug_info+set}" = set; then
5143   enableval=$enable_debug_info;
5144                           if test "$enableval" = yes; then
5145                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5146                           else
5147                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5148                           fi
5149
5150 else
5151
5152                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5153                           if test "x$LINE" != x ; then
5154                             eval "DEFAULT_$LINE"
5155                           else
5156                             no_cache=1
5157                           fi
5158
5159                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5160
5161 fi
5162
5163
5164           eval "$wx_cv_use_debug_info"
5165           if test "$no_cache" != 1; then
5166             echo $wx_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
5167           fi
5168
5169           if test x"$enablestring" = xdisable; then
5170             if test $wxUSE_DEBUG_INFO = yes; then
5171               result=no
5172             else
5173               result=yes
5174             fi
5175           else
5176             result=$wxUSE_DEBUG_INFO
5177           fi
5178
5179           { echo "$as_me:$LINENO: result: $result" >&5
5180 echo "${ECHO_T}$result" >&6; }
5181
5182
5183           enablestring=
5184           defaultval=
5185           if test -z "$defaultval"; then
5186               if test x"$enablestring" = xdisable; then
5187                   defaultval=yes
5188               else
5189                   defaultval=no
5190               fi
5191           fi
5192
5193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5194 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5195           no_cache=0
5196           # Check whether --enable-debug_gdb was given.
5197 if test "${enable_debug_gdb+set}" = set; then
5198   enableval=$enable_debug_gdb;
5199                           if test "$enableval" = yes; then
5200                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5201                           else
5202                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5203                           fi
5204
5205 else
5206
5207                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5208                           if test "x$LINE" != x ; then
5209                             eval "DEFAULT_$LINE"
5210                           else
5211                             no_cache=1
5212                           fi
5213
5214                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5215
5216 fi
5217
5218
5219           eval "$wx_cv_use_debug_gdb"
5220           if test "$no_cache" != 1; then
5221             echo $wx_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
5222           fi
5223
5224           if test x"$enablestring" = xdisable; then
5225             if test $wxUSE_DEBUG_GDB = yes; then
5226               result=no
5227             else
5228               result=yes
5229             fi
5230           else
5231             result=$wxUSE_DEBUG_GDB
5232           fi
5233
5234           { echo "$as_me:$LINENO: result: $result" >&5
5235 echo "${ECHO_T}$result" >&6; }
5236
5237
5238           enablestring=
5239           defaultval=
5240           if test -z "$defaultval"; then
5241               if test x"$enablestring" = xdisable; then
5242                   defaultval=yes
5243               else
5244                   defaultval=no
5245               fi
5246           fi
5247
5248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5249 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5250           no_cache=0
5251           # Check whether --enable-debug_cntxt was given.
5252 if test "${enable_debug_cntxt+set}" = set; then
5253   enableval=$enable_debug_cntxt;
5254                           if test "$enableval" = yes; then
5255                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5256                           else
5257                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5258                           fi
5259
5260 else
5261
5262                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5263                           if test "x$LINE" != x ; then
5264                             eval "DEFAULT_$LINE"
5265                           else
5266                             no_cache=1
5267                           fi
5268
5269                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5270
5271 fi
5272
5273
5274           eval "$wx_cv_use_debug_cntxt"
5275           if test "$no_cache" != 1; then
5276             echo $wx_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
5277           fi
5278
5279           if test x"$enablestring" = xdisable; then
5280             if test $wxUSE_DEBUG_CONTEXT = yes; then
5281               result=no
5282             else
5283               result=yes
5284             fi
5285           else
5286             result=$wxUSE_DEBUG_CONTEXT
5287           fi
5288
5289           { echo "$as_me:$LINENO: result: $result" >&5
5290 echo "${ECHO_T}$result" >&6; }
5291
5292
5293           enablestring=
5294           defaultval=
5295           if test -z "$defaultval"; then
5296               if test x"$enablestring" = xdisable; then
5297                   defaultval=yes
5298               else
5299                   defaultval=no
5300               fi
5301           fi
5302
5303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5304 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5305           no_cache=0
5306           # Check whether --enable-mem_tracing was given.
5307 if test "${enable_mem_tracing+set}" = set; then
5308   enableval=$enable_mem_tracing;
5309                           if test "$enableval" = yes; then
5310                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5311                           else
5312                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5313                           fi
5314
5315 else
5316
5317                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5318                           if test "x$LINE" != x ; then
5319                             eval "DEFAULT_$LINE"
5320                           else
5321                             no_cache=1
5322                           fi
5323
5324                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5325
5326 fi
5327
5328
5329           eval "$wx_cv_use_mem_tracing"
5330           if test "$no_cache" != 1; then
5331             echo $wx_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
5332           fi
5333
5334           if test x"$enablestring" = xdisable; then
5335             if test $wxUSE_MEM_TRACING = yes; then
5336               result=no
5337             else
5338               result=yes
5339             fi
5340           else
5341             result=$wxUSE_MEM_TRACING
5342           fi
5343
5344           { echo "$as_me:$LINENO: result: $result" >&5
5345 echo "${ECHO_T}$result" >&6; }
5346
5347
5348           enablestring=
5349           defaultval=
5350           if test -z "$defaultval"; then
5351               if test x"$enablestring" = xdisable; then
5352                   defaultval=yes
5353               else
5354                   defaultval=no
5355               fi
5356           fi
5357
5358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5359 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5360           no_cache=0
5361           # Check whether --enable-profile was given.
5362 if test "${enable_profile+set}" = set; then
5363   enableval=$enable_profile;
5364                           if test "$enableval" = yes; then
5365                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5366                           else
5367                             wx_cv_use_profile='wxUSE_PROFILE=no'
5368                           fi
5369
5370 else
5371
5372                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5373                           if test "x$LINE" != x ; then
5374                             eval "DEFAULT_$LINE"
5375                           else
5376                             no_cache=1
5377                           fi
5378
5379                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5380
5381 fi
5382
5383
5384           eval "$wx_cv_use_profile"
5385           if test "$no_cache" != 1; then
5386             echo $wx_cv_use_profile >> ${wx_arg_cache_file}.tmp
5387           fi
5388
5389           if test x"$enablestring" = xdisable; then
5390             if test $wxUSE_PROFILE = yes; then
5391               result=no
5392             else
5393               result=yes
5394             fi
5395           else
5396             result=$wxUSE_PROFILE
5397           fi
5398
5399           { echo "$as_me:$LINENO: result: $result" >&5
5400 echo "${ECHO_T}$result" >&6; }
5401
5402
5403           enablestring=
5404           defaultval=
5405           if test -z "$defaultval"; then
5406               if test x"$enablestring" = xdisable; then
5407                   defaultval=yes
5408               else
5409                   defaultval=no
5410               fi
5411           fi
5412
5413           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5414 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5415           no_cache=0
5416           # Check whether --enable-no_rtti was given.
5417 if test "${enable_no_rtti+set}" = set; then
5418   enableval=$enable_no_rtti;
5419                           if test "$enableval" = yes; then
5420                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5421                           else
5422                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5423                           fi
5424
5425 else
5426
5427                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5428                           if test "x$LINE" != x ; then
5429                             eval "DEFAULT_$LINE"
5430                           else
5431                             no_cache=1
5432                           fi
5433
5434                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5435
5436 fi
5437
5438
5439           eval "$wx_cv_use_no_rtti"
5440           if test "$no_cache" != 1; then
5441             echo $wx_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
5442           fi
5443
5444           if test x"$enablestring" = xdisable; then
5445             if test $wxUSE_NO_RTTI = yes; then
5446               result=no
5447             else
5448               result=yes
5449             fi
5450           else
5451             result=$wxUSE_NO_RTTI
5452           fi
5453
5454           { echo "$as_me:$LINENO: result: $result" >&5
5455 echo "${ECHO_T}$result" >&6; }
5456
5457
5458           enablestring=
5459           defaultval=
5460           if test -z "$defaultval"; then
5461               if test x"$enablestring" = xdisable; then
5462                   defaultval=yes
5463               else
5464                   defaultval=no
5465               fi
5466           fi
5467
5468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5469 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5470           no_cache=0
5471           # Check whether --enable-no_exceptions was given.
5472 if test "${enable_no_exceptions+set}" = set; then
5473   enableval=$enable_no_exceptions;
5474                           if test "$enableval" = yes; then
5475                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5476                           else
5477                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5478                           fi
5479
5480 else
5481
5482                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5483                           if test "x$LINE" != x ; then
5484                             eval "DEFAULT_$LINE"
5485                           else
5486                             no_cache=1
5487                           fi
5488
5489                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5490
5491 fi
5492
5493
5494           eval "$wx_cv_use_no_exceptions"
5495           if test "$no_cache" != 1; then
5496             echo $wx_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
5497           fi
5498
5499           if test x"$enablestring" = xdisable; then
5500             if test $wxUSE_NO_EXCEPTIONS = yes; then
5501               result=no
5502             else
5503               result=yes
5504             fi
5505           else
5506             result=$wxUSE_NO_EXCEPTIONS
5507           fi
5508
5509           { echo "$as_me:$LINENO: result: $result" >&5
5510 echo "${ECHO_T}$result" >&6; }
5511
5512
5513           enablestring=
5514           defaultval=
5515           if test -z "$defaultval"; then
5516               if test x"$enablestring" = xdisable; then
5517                   defaultval=yes
5518               else
5519                   defaultval=no
5520               fi
5521           fi
5522
5523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5524 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5525           no_cache=0
5526           # Check whether --enable-permissive was given.
5527 if test "${enable_permissive+set}" = set; then
5528   enableval=$enable_permissive;
5529                           if test "$enableval" = yes; then
5530                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5531                           else
5532                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5533                           fi
5534
5535 else
5536
5537                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5538                           if test "x$LINE" != x ; then
5539                             eval "DEFAULT_$LINE"
5540                           else
5541                             no_cache=1
5542                           fi
5543
5544                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5545
5546 fi
5547
5548
5549           eval "$wx_cv_use_permissive"
5550           if test "$no_cache" != 1; then
5551             echo $wx_cv_use_permissive >> ${wx_arg_cache_file}.tmp
5552           fi
5553
5554           if test x"$enablestring" = xdisable; then
5555             if test $wxUSE_PERMISSIVE = yes; then
5556               result=no
5557             else
5558               result=yes
5559             fi
5560           else
5561             result=$wxUSE_PERMISSIVE
5562           fi
5563
5564           { echo "$as_me:$LINENO: result: $result" >&5
5565 echo "${ECHO_T}$result" >&6; }
5566
5567
5568           enablestring=
5569           defaultval=
5570           if test -z "$defaultval"; then
5571               if test x"$enablestring" = xdisable; then
5572                   defaultval=yes
5573               else
5574                   defaultval=no
5575               fi
5576           fi
5577
5578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5579 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5580           no_cache=0
5581           # Check whether --enable-no_deps was given.
5582 if test "${enable_no_deps+set}" = set; then
5583   enableval=$enable_no_deps;
5584                           if test "$enableval" = yes; then
5585                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5586                           else
5587                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5588                           fi
5589
5590 else
5591
5592                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5593                           if test "x$LINE" != x ; then
5594                             eval "DEFAULT_$LINE"
5595                           else
5596                             no_cache=1
5597                           fi
5598
5599                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5600
5601 fi
5602
5603
5604           eval "$wx_cv_use_no_deps"
5605           if test "$no_cache" != 1; then
5606             echo $wx_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
5607           fi
5608
5609           if test x"$enablestring" = xdisable; then
5610             if test $wxUSE_NO_DEPS = yes; then
5611               result=no
5612             else
5613               result=yes
5614             fi
5615           else
5616             result=$wxUSE_NO_DEPS
5617           fi
5618
5619           { echo "$as_me:$LINENO: result: $result" >&5
5620 echo "${ECHO_T}$result" >&6; }
5621
5622
5623           enablestring=disable
5624           defaultval=
5625           if test -z "$defaultval"; then
5626               if test x"$enablestring" = xdisable; then
5627                   defaultval=yes
5628               else
5629                   defaultval=no
5630               fi
5631           fi
5632
5633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5634 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5635           no_cache=0
5636           # Check whether --enable-vararg_macros was given.
5637 if test "${enable_vararg_macros+set}" = set; then
5638   enableval=$enable_vararg_macros;
5639                           if test "$enableval" = yes; then
5640                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5641                           else
5642                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5643                           fi
5644
5645 else
5646
5647                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5648                           if test "x$LINE" != x ; then
5649                             eval "DEFAULT_$LINE"
5650                           else
5651                             no_cache=1
5652                           fi
5653
5654                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5655
5656 fi
5657
5658
5659           eval "$wx_cv_use_vararg_macros"
5660           if test "$no_cache" != 1; then
5661             echo $wx_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
5662           fi
5663
5664           if test x"$enablestring" = xdisable; then
5665             if test $wxUSE_VARARG_MACROS = yes; then
5666               result=no
5667             else
5668               result=yes
5669             fi
5670           else
5671             result=$wxUSE_VARARG_MACROS
5672           fi
5673
5674           { echo "$as_me:$LINENO: result: $result" >&5
5675 echo "${ECHO_T}$result" >&6; }
5676
5677
5678           enablestring=
5679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5680 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5681           no_cache=0
5682           # Check whether --enable-universal_binary was given.
5683 if test "${enable_universal_binary+set}" = set; then
5684   enableval=$enable_universal_binary;
5685                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5686
5687 else
5688
5689                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5690                           if test "x$LINE" != x ; then
5691                             eval "DEFAULT_$LINE"
5692                           else
5693                             no_cache=1
5694                           fi
5695
5696                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5697
5698 fi
5699
5700
5701           eval "$wx_cv_use_universal_binary"
5702           if test "$no_cache" != 1; then
5703             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
5704           fi
5705
5706           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5707 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5708
5709
5710
5711           enablestring=
5712           defaultval=
5713           if test -z "$defaultval"; then
5714               if test x"$enablestring" = xdisable; then
5715                   defaultval=yes
5716               else
5717                   defaultval=no
5718               fi
5719           fi
5720
5721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5722 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5723           no_cache=0
5724           # Check whether --enable-compat26 was given.
5725 if test "${enable_compat26+set}" = set; then
5726   enableval=$enable_compat26;
5727                           if test "$enableval" = yes; then
5728                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5729                           else
5730                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5731                           fi
5732
5733 else
5734
5735                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5736                           if test "x$LINE" != x ; then
5737                             eval "DEFAULT_$LINE"
5738                           else
5739                             no_cache=1
5740                           fi
5741
5742                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5743
5744 fi
5745
5746
5747           eval "$wx_cv_use_compat26"
5748           if test "$no_cache" != 1; then
5749             echo $wx_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
5750           fi
5751
5752           if test x"$enablestring" = xdisable; then
5753             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5754               result=no
5755             else
5756               result=yes
5757             fi
5758           else
5759             result=$WXWIN_COMPATIBILITY_2_6
5760           fi
5761
5762           { echo "$as_me:$LINENO: result: $result" >&5
5763 echo "${ECHO_T}$result" >&6; }
5764
5765
5766           enablestring=disable
5767           defaultval=
5768           if test -z "$defaultval"; then
5769               if test x"$enablestring" = xdisable; then
5770                   defaultval=yes
5771               else
5772                   defaultval=no
5773               fi
5774           fi
5775
5776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5777 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5778           no_cache=0
5779           # Check whether --enable-compat28 was given.
5780 if test "${enable_compat28+set}" = set; then
5781   enableval=$enable_compat28;
5782                           if test "$enableval" = yes; then
5783                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5784                           else
5785                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5786                           fi
5787
5788 else
5789
5790                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5791                           if test "x$LINE" != x ; then
5792                             eval "DEFAULT_$LINE"
5793                           else
5794                             no_cache=1
5795                           fi
5796
5797                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5798
5799 fi
5800
5801
5802           eval "$wx_cv_use_compat28"
5803           if test "$no_cache" != 1; then
5804             echo $wx_cv_use_compat28 >> ${wx_arg_cache_file}.tmp
5805           fi
5806
5807           if test x"$enablestring" = xdisable; then
5808             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5809               result=no
5810             else
5811               result=yes
5812             fi
5813           else
5814             result=$WXWIN_COMPATIBILITY_2_8
5815           fi
5816
5817           { echo "$as_me:$LINENO: result: $result" >&5
5818 echo "${ECHO_T}$result" >&6; }
5819
5820
5821
5822           enablestring=disable
5823           defaultval=
5824           if test -z "$defaultval"; then
5825               if test x"$enablestring" = xdisable; then
5826                   defaultval=yes
5827               else
5828                   defaultval=no
5829               fi
5830           fi
5831
5832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5833 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5834           no_cache=0
5835           # Check whether --enable-rpath was given.
5836 if test "${enable_rpath+set}" = set; then
5837   enableval=$enable_rpath;
5838                           if test "$enableval" = yes; then
5839                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5840                           else
5841                             wx_cv_use_rpath='wxUSE_RPATH=no'
5842                           fi
5843
5844 else
5845
5846                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5847                           if test "x$LINE" != x ; then
5848                             eval "DEFAULT_$LINE"
5849                           else
5850                             no_cache=1
5851                           fi
5852
5853                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5854
5855 fi
5856
5857
5858           eval "$wx_cv_use_rpath"
5859           if test "$no_cache" != 1; then
5860             echo $wx_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5861           fi
5862
5863           if test x"$enablestring" = xdisable; then
5864             if test $wxUSE_RPATH = yes; then
5865               result=no
5866             else
5867               result=yes
5868             fi
5869           else
5870             result=$wxUSE_RPATH
5871           fi
5872
5873           { echo "$as_me:$LINENO: result: $result" >&5
5874 echo "${ECHO_T}$result" >&6; }
5875
5876
5877
5878           enablestring=
5879           defaultval=
5880           if test -z "$defaultval"; then
5881               if test x"$enablestring" = xdisable; then
5882                   defaultval=yes
5883               else
5884                   defaultval=no
5885               fi
5886           fi
5887
5888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5889 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5890           no_cache=0
5891           # Check whether --enable-objc_uniquifying was given.
5892 if test "${enable_objc_uniquifying+set}" = set; then
5893   enableval=$enable_objc_uniquifying;
5894                           if test "$enableval" = yes; then
5895                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5896                           else
5897                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5898                           fi
5899
5900 else
5901
5902                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5903                           if test "x$LINE" != x ; then
5904                             eval "DEFAULT_$LINE"
5905                           else
5906                             no_cache=1
5907                           fi
5908
5909                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5910
5911 fi
5912
5913
5914           eval "$wx_cv_use_objc_uniquifying"
5915           if test "$no_cache" != 1; then
5916             echo $wx_cv_use_objc_uniquifying >> ${wx_arg_cache_file}.tmp
5917           fi
5918
5919           if test x"$enablestring" = xdisable; then
5920             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5921               result=no
5922             else
5923               result=yes
5924             fi
5925           else
5926             result=$wxUSE_OBJC_UNIQUIFYING
5927           fi
5928
5929           { echo "$as_me:$LINENO: result: $result" >&5
5930 echo "${ECHO_T}$result" >&6; }
5931
5932
5933
5934           enablestring=disable
5935           defaultval=
5936           if test -z "$defaultval"; then
5937               if test x"$enablestring" = xdisable; then
5938                   defaultval=yes
5939               else
5940                   defaultval=no
5941               fi
5942           fi
5943
5944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5945 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5946           no_cache=0
5947           # Check whether --enable-visibility was given.
5948 if test "${enable_visibility+set}" = set; then
5949   enableval=$enable_visibility;
5950                           if test "$enableval" = yes; then
5951                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5952                           else
5953                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5954                           fi
5955
5956 else
5957
5958                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5959                           if test "x$LINE" != x ; then
5960                             eval "DEFAULT_$LINE"
5961                           else
5962                             no_cache=1
5963                           fi
5964
5965                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5966
5967 fi
5968
5969
5970           eval "$wx_cv_use_visibility"
5971           if test "$no_cache" != 1; then
5972             echo $wx_cv_use_visibility >> ${wx_arg_cache_file}.tmp
5973           fi
5974
5975           if test x"$enablestring" = xdisable; then
5976             if test $wxUSE_VISIBILITY = yes; then
5977               result=no
5978             else
5979               result=yes
5980             fi
5981           else
5982             result=$wxUSE_VISIBILITY
5983           fi
5984
5985           { echo "$as_me:$LINENO: result: $result" >&5
5986 echo "${ECHO_T}$result" >&6; }
5987
5988
5989
5990
5991           enablestring=
5992           defaultval=$wxUSE_ALL_FEATURES
5993           if test -z "$defaultval"; then
5994               if test x"$enablestring" = xdisable; then
5995                   defaultval=yes
5996               else
5997                   defaultval=no
5998               fi
5999           fi
6000
6001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6002 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6003           no_cache=0
6004           # Check whether --enable-intl was given.
6005 if test "${enable_intl+set}" = set; then
6006   enableval=$enable_intl;
6007                           if test "$enableval" = yes; then
6008                             wx_cv_use_intl='wxUSE_INTL=yes'
6009                           else
6010                             wx_cv_use_intl='wxUSE_INTL=no'
6011                           fi
6012
6013 else
6014
6015                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6016                           if test "x$LINE" != x ; then
6017                             eval "DEFAULT_$LINE"
6018                           else
6019                             no_cache=1
6020                           fi
6021
6022                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6023
6024 fi
6025
6026
6027           eval "$wx_cv_use_intl"
6028           if test "$no_cache" != 1; then
6029             echo $wx_cv_use_intl >> ${wx_arg_cache_file}.tmp
6030           fi
6031
6032           if test x"$enablestring" = xdisable; then
6033             if test $wxUSE_INTL = yes; then
6034               result=no
6035             else
6036               result=yes
6037             fi
6038           else
6039             result=$wxUSE_INTL
6040           fi
6041
6042           { echo "$as_me:$LINENO: result: $result" >&5
6043 echo "${ECHO_T}$result" >&6; }
6044
6045
6046           enablestring=
6047           defaultval=$wxUSE_ALL_FEATURES
6048           if test -z "$defaultval"; then
6049               if test x"$enablestring" = xdisable; then
6050                   defaultval=yes
6051               else
6052                   defaultval=no
6053               fi
6054           fi
6055
6056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6057 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6058           no_cache=0
6059           # Check whether --enable-config was given.
6060 if test "${enable_config+set}" = set; then
6061   enableval=$enable_config;
6062                           if test "$enableval" = yes; then
6063                             wx_cv_use_config='wxUSE_CONFIG=yes'
6064                           else
6065                             wx_cv_use_config='wxUSE_CONFIG=no'
6066                           fi
6067
6068 else
6069
6070                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6071                           if test "x$LINE" != x ; then
6072                             eval "DEFAULT_$LINE"
6073                           else
6074                             no_cache=1
6075                           fi
6076
6077                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6078
6079 fi
6080
6081
6082           eval "$wx_cv_use_config"
6083           if test "$no_cache" != 1; then
6084             echo $wx_cv_use_config >> ${wx_arg_cache_file}.tmp
6085           fi
6086
6087           if test x"$enablestring" = xdisable; then
6088             if test $wxUSE_CONFIG = yes; then
6089               result=no
6090             else
6091               result=yes
6092             fi
6093           else
6094             result=$wxUSE_CONFIG
6095           fi
6096
6097           { echo "$as_me:$LINENO: result: $result" >&5
6098 echo "${ECHO_T}$result" >&6; }
6099
6100
6101
6102           enablestring=
6103           defaultval=$wxUSE_ALL_FEATURES
6104           if test -z "$defaultval"; then
6105               if test x"$enablestring" = xdisable; then
6106                   defaultval=yes
6107               else
6108                   defaultval=no
6109               fi
6110           fi
6111
6112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6113 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6114           no_cache=0
6115           # Check whether --enable-protocols was given.
6116 if test "${enable_protocols+set}" = set; then
6117   enableval=$enable_protocols;
6118                           if test "$enableval" = yes; then
6119                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6120                           else
6121                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6122                           fi
6123
6124 else
6125
6126                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6127                           if test "x$LINE" != x ; then
6128                             eval "DEFAULT_$LINE"
6129                           else
6130                             no_cache=1
6131                           fi
6132
6133                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6134
6135 fi
6136
6137
6138           eval "$wx_cv_use_protocols"
6139           if test "$no_cache" != 1; then
6140             echo $wx_cv_use_protocols >> ${wx_arg_cache_file}.tmp
6141           fi
6142
6143           if test x"$enablestring" = xdisable; then
6144             if test $wxUSE_PROTOCOL = yes; then
6145               result=no
6146             else
6147               result=yes
6148             fi
6149           else
6150             result=$wxUSE_PROTOCOL
6151           fi
6152
6153           { echo "$as_me:$LINENO: result: $result" >&5
6154 echo "${ECHO_T}$result" >&6; }
6155
6156
6157           enablestring=
6158           defaultval=$wxUSE_ALL_FEATURES
6159           if test -z "$defaultval"; then
6160               if test x"$enablestring" = xdisable; then
6161                   defaultval=yes
6162               else
6163                   defaultval=no
6164               fi
6165           fi
6166
6167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6168 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6169           no_cache=0
6170           # Check whether --enable-ftp was given.
6171 if test "${enable_ftp+set}" = set; then
6172   enableval=$enable_ftp;
6173                           if test "$enableval" = yes; then
6174                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6175                           else
6176                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6177                           fi
6178
6179 else
6180
6181                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6182                           if test "x$LINE" != x ; then
6183                             eval "DEFAULT_$LINE"
6184                           else
6185                             no_cache=1
6186                           fi
6187
6188                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6189
6190 fi
6191
6192
6193           eval "$wx_cv_use_ftp"
6194           if test "$no_cache" != 1; then
6195             echo $wx_cv_use_ftp >> ${wx_arg_cache_file}.tmp
6196           fi
6197
6198           if test x"$enablestring" = xdisable; then
6199             if test $wxUSE_PROTOCOL_FTP = yes; then
6200               result=no
6201             else
6202               result=yes
6203             fi
6204           else
6205             result=$wxUSE_PROTOCOL_FTP
6206           fi
6207
6208           { echo "$as_me:$LINENO: result: $result" >&5
6209 echo "${ECHO_T}$result" >&6; }
6210
6211
6212           enablestring=
6213           defaultval=$wxUSE_ALL_FEATURES
6214           if test -z "$defaultval"; then
6215               if test x"$enablestring" = xdisable; then
6216                   defaultval=yes
6217               else
6218                   defaultval=no
6219               fi
6220           fi
6221
6222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6223 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6224           no_cache=0
6225           # Check whether --enable-http was given.
6226 if test "${enable_http+set}" = set; then
6227   enableval=$enable_http;
6228                           if test "$enableval" = yes; then
6229                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6230                           else
6231                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6232                           fi
6233
6234 else
6235
6236                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6237                           if test "x$LINE" != x ; then
6238                             eval "DEFAULT_$LINE"
6239                           else
6240                             no_cache=1
6241                           fi
6242
6243                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6244
6245 fi
6246
6247
6248           eval "$wx_cv_use_http"
6249           if test "$no_cache" != 1; then
6250             echo $wx_cv_use_http >> ${wx_arg_cache_file}.tmp
6251           fi
6252
6253           if test x"$enablestring" = xdisable; then
6254             if test $wxUSE_PROTOCOL_HTTP = yes; then
6255               result=no
6256             else
6257               result=yes
6258             fi
6259           else
6260             result=$wxUSE_PROTOCOL_HTTP
6261           fi
6262
6263           { echo "$as_me:$LINENO: result: $result" >&5
6264 echo "${ECHO_T}$result" >&6; }
6265
6266
6267           enablestring=
6268           defaultval=$wxUSE_ALL_FEATURES
6269           if test -z "$defaultval"; then
6270               if test x"$enablestring" = xdisable; then
6271                   defaultval=yes
6272               else
6273                   defaultval=no
6274               fi
6275           fi
6276
6277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6278 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6279           no_cache=0
6280           # Check whether --enable-fileproto was given.
6281 if test "${enable_fileproto+set}" = set; then
6282   enableval=$enable_fileproto;
6283                           if test "$enableval" = yes; then
6284                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6285                           else
6286                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6287                           fi
6288
6289 else
6290
6291                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6292                           if test "x$LINE" != x ; then
6293                             eval "DEFAULT_$LINE"
6294                           else
6295                             no_cache=1
6296                           fi
6297
6298                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6299
6300 fi
6301
6302
6303           eval "$wx_cv_use_fileproto"
6304           if test "$no_cache" != 1; then
6305             echo $wx_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
6306           fi
6307
6308           if test x"$enablestring" = xdisable; then
6309             if test $wxUSE_PROTOCOL_FILE = yes; then
6310               result=no
6311             else
6312               result=yes
6313             fi
6314           else
6315             result=$wxUSE_PROTOCOL_FILE
6316           fi
6317
6318           { echo "$as_me:$LINENO: result: $result" >&5
6319 echo "${ECHO_T}$result" >&6; }
6320
6321
6322           enablestring=
6323           defaultval=$wxUSE_ALL_FEATURES
6324           if test -z "$defaultval"; then
6325               if test x"$enablestring" = xdisable; then
6326                   defaultval=yes
6327               else
6328                   defaultval=no
6329               fi
6330           fi
6331
6332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6333 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6334           no_cache=0
6335           # Check whether --enable-sockets was given.
6336 if test "${enable_sockets+set}" = set; then
6337   enableval=$enable_sockets;
6338                           if test "$enableval" = yes; then
6339                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6340                           else
6341                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6342                           fi
6343
6344 else
6345
6346                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6347                           if test "x$LINE" != x ; then
6348                             eval "DEFAULT_$LINE"
6349                           else
6350                             no_cache=1
6351                           fi
6352
6353                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6354
6355 fi
6356
6357
6358           eval "$wx_cv_use_sockets"
6359           if test "$no_cache" != 1; then
6360             echo $wx_cv_use_sockets >> ${wx_arg_cache_file}.tmp
6361           fi
6362
6363           if test x"$enablestring" = xdisable; then
6364             if test $wxUSE_SOCKETS = yes; then
6365               result=no
6366             else
6367               result=yes
6368             fi
6369           else
6370             result=$wxUSE_SOCKETS
6371           fi
6372
6373           { echo "$as_me:$LINENO: result: $result" >&5
6374 echo "${ECHO_T}$result" >&6; }
6375
6376
6377           enablestring=
6378           defaultval=$wxUSE_ALL_FEATURES
6379           if test -z "$defaultval"; then
6380               if test x"$enablestring" = xdisable; then
6381                   defaultval=yes
6382               else
6383                   defaultval=no
6384               fi
6385           fi
6386
6387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6388 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6389           no_cache=0
6390           # Check whether --enable-ole was given.
6391 if test "${enable_ole+set}" = set; then
6392   enableval=$enable_ole;
6393                           if test "$enableval" = yes; then
6394                             wx_cv_use_ole='wxUSE_OLE=yes'
6395                           else
6396                             wx_cv_use_ole='wxUSE_OLE=no'
6397                           fi
6398
6399 else
6400
6401                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6402                           if test "x$LINE" != x ; then
6403                             eval "DEFAULT_$LINE"
6404                           else
6405                             no_cache=1
6406                           fi
6407
6408                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6409
6410 fi
6411
6412
6413           eval "$wx_cv_use_ole"
6414           if test "$no_cache" != 1; then
6415             echo $wx_cv_use_ole >> ${wx_arg_cache_file}.tmp
6416           fi
6417
6418           if test x"$enablestring" = xdisable; then
6419             if test $wxUSE_OLE = yes; then
6420               result=no
6421             else
6422               result=yes
6423             fi
6424           else
6425             result=$wxUSE_OLE
6426           fi
6427
6428           { echo "$as_me:$LINENO: result: $result" >&5
6429 echo "${ECHO_T}$result" >&6; }
6430
6431
6432           enablestring=
6433           defaultval=$wxUSE_ALL_FEATURES
6434           if test -z "$defaultval"; then
6435               if test x"$enablestring" = xdisable; then
6436                   defaultval=yes
6437               else
6438                   defaultval=no
6439               fi
6440           fi
6441
6442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6443 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6444           no_cache=0
6445           # Check whether --enable-dataobj was given.
6446 if test "${enable_dataobj+set}" = set; then
6447   enableval=$enable_dataobj;
6448                           if test "$enableval" = yes; then
6449                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6450                           else
6451                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6452                           fi
6453
6454 else
6455
6456                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6457                           if test "x$LINE" != x ; then
6458                             eval "DEFAULT_$LINE"
6459                           else
6460                             no_cache=1
6461                           fi
6462
6463                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6464
6465 fi
6466
6467
6468           eval "$wx_cv_use_dataobj"
6469           if test "$no_cache" != 1; then
6470             echo $wx_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
6471           fi
6472
6473           if test x"$enablestring" = xdisable; then
6474             if test $wxUSE_DATAOBJ = yes; then
6475               result=no
6476             else
6477               result=yes
6478             fi
6479           else
6480             result=$wxUSE_DATAOBJ
6481           fi
6482
6483           { echo "$as_me:$LINENO: result: $result" >&5
6484 echo "${ECHO_T}$result" >&6; }
6485
6486
6487
6488           enablestring=
6489           defaultval=$wxUSE_ALL_FEATURES
6490           if test -z "$defaultval"; then
6491               if test x"$enablestring" = xdisable; then
6492                   defaultval=yes
6493               else
6494                   defaultval=no
6495               fi
6496           fi
6497
6498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6499 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6500           no_cache=0
6501           # Check whether --enable-ipc was given.
6502 if test "${enable_ipc+set}" = set; then
6503   enableval=$enable_ipc;
6504                           if test "$enableval" = yes; then
6505                             wx_cv_use_ipc='wxUSE_IPC=yes'
6506                           else
6507                             wx_cv_use_ipc='wxUSE_IPC=no'
6508                           fi
6509
6510 else
6511
6512                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6513                           if test "x$LINE" != x ; then
6514                             eval "DEFAULT_$LINE"
6515                           else
6516                             no_cache=1
6517                           fi
6518
6519                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6520
6521 fi
6522
6523
6524           eval "$wx_cv_use_ipc"
6525           if test "$no_cache" != 1; then
6526             echo $wx_cv_use_ipc >> ${wx_arg_cache_file}.tmp
6527           fi
6528
6529           if test x"$enablestring" = xdisable; then
6530             if test $wxUSE_IPC = yes; then
6531               result=no
6532             else
6533               result=yes
6534             fi
6535           else
6536             result=$wxUSE_IPC
6537           fi
6538
6539           { echo "$as_me:$LINENO: result: $result" >&5
6540 echo "${ECHO_T}$result" >&6; }
6541
6542
6543
6544           enablestring=
6545           defaultval=$wxUSE_ALL_FEATURES
6546           if test -z "$defaultval"; then
6547               if test x"$enablestring" = xdisable; then
6548                   defaultval=yes
6549               else
6550                   defaultval=no
6551               fi
6552           fi
6553
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6556           no_cache=0
6557           # Check whether --enable-baseevtloop was given.
6558 if test "${enable_baseevtloop+set}" = set; then
6559   enableval=$enable_baseevtloop;
6560                           if test "$enableval" = yes; then
6561                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6562                           else
6563                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6564                           fi
6565
6566 else
6567
6568                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6569                           if test "x$LINE" != x ; then
6570                             eval "DEFAULT_$LINE"
6571                           else
6572                             no_cache=1
6573                           fi
6574
6575                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6576
6577 fi
6578
6579
6580           eval "$wx_cv_use_baseevtloop"
6581           if test "$no_cache" != 1; then
6582             echo $wx_cv_use_baseevtloop >> ${wx_arg_cache_file}.tmp
6583           fi
6584
6585           if test x"$enablestring" = xdisable; then
6586             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6587               result=no
6588             else
6589               result=yes
6590             fi
6591           else
6592             result=$wxUSE_CONSOLE_EVENTLOOP
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}-epoolloop" >&5
6610 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6611           no_cache=0
6612           # Check whether --enable-epoolloop was given.
6613 if test "${enable_epoolloop+set}" = set; then
6614   enableval=$enable_epoolloop;
6615                           if test "$enableval" = yes; then
6616                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6617                           else
6618                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6619                           fi
6620
6621 else
6622
6623                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6624                           if test "x$LINE" != x ; then
6625                             eval "DEFAULT_$LINE"
6626                           else
6627                             no_cache=1
6628                           fi
6629
6630                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6631
6632 fi
6633
6634
6635           eval "$wx_cv_use_epoolloop"
6636           if test "$no_cache" != 1; then
6637             echo $wx_cv_use_epoolloop >> ${wx_arg_cache_file}.tmp
6638           fi
6639
6640           if test x"$enablestring" = xdisable; then
6641             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6642               result=no
6643             else
6644               result=yes
6645             fi
6646           else
6647             result=$wxUSE_EPOLL_DISPATCHER
6648           fi
6649
6650           { echo "$as_me:$LINENO: result: $result" >&5
6651 echo "${ECHO_T}$result" >&6; }
6652
6653
6654           enablestring=
6655           defaultval=$wxUSE_ALL_FEATURES
6656           if test -z "$defaultval"; then
6657               if test x"$enablestring" = xdisable; then
6658                   defaultval=yes
6659               else
6660                   defaultval=no
6661               fi
6662           fi
6663
6664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6665 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6666           no_cache=0
6667           # Check whether --enable-selectloop was given.
6668 if test "${enable_selectloop+set}" = set; then
6669   enableval=$enable_selectloop;
6670                           if test "$enableval" = yes; then
6671                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6672                           else
6673                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6674                           fi
6675
6676 else
6677
6678                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6679                           if test "x$LINE" != x ; then
6680                             eval "DEFAULT_$LINE"
6681                           else
6682                             no_cache=1
6683                           fi
6684
6685                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6686
6687 fi
6688
6689
6690           eval "$wx_cv_use_selectloop"
6691           if test "$no_cache" != 1; then
6692             echo $wx_cv_use_selectloop >> ${wx_arg_cache_file}.tmp
6693           fi
6694
6695           if test x"$enablestring" = xdisable; then
6696             if test $wxUSE_SELECT_DISPATCHER = yes; then
6697               result=no
6698             else
6699               result=yes
6700             fi
6701           else
6702             result=$wxUSE_SELECT_DISPATCHER
6703           fi
6704
6705           { echo "$as_me:$LINENO: result: $result" >&5
6706 echo "${ECHO_T}$result" >&6; }
6707
6708
6709
6710           enablestring=
6711           defaultval=$wxUSE_ALL_FEATURES
6712           if test -z "$defaultval"; then
6713               if test x"$enablestring" = xdisable; then
6714                   defaultval=yes
6715               else
6716                   defaultval=no
6717               fi
6718           fi
6719
6720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6721 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6722           no_cache=0
6723           # Check whether --enable-apple_ieee was given.
6724 if test "${enable_apple_ieee+set}" = set; then
6725   enableval=$enable_apple_ieee;
6726                           if test "$enableval" = yes; then
6727                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6728                           else
6729                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6730                           fi
6731
6732 else
6733
6734                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6735                           if test "x$LINE" != x ; then
6736                             eval "DEFAULT_$LINE"
6737                           else
6738                             no_cache=1
6739                           fi
6740
6741                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6742
6743 fi
6744
6745
6746           eval "$wx_cv_use_apple_ieee"
6747           if test "$no_cache" != 1; then
6748             echo $wx_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
6749           fi
6750
6751           if test x"$enablestring" = xdisable; then
6752             if test $wxUSE_APPLE_IEEE = yes; then
6753               result=no
6754             else
6755               result=yes
6756             fi
6757           else
6758             result=$wxUSE_APPLE_IEEE
6759           fi
6760
6761           { echo "$as_me:$LINENO: result: $result" >&5
6762 echo "${ECHO_T}$result" >&6; }
6763
6764
6765           enablestring=
6766           defaultval=$wxUSE_ALL_FEATURES
6767           if test -z "$defaultval"; then
6768               if test x"$enablestring" = xdisable; then
6769                   defaultval=yes
6770               else
6771                   defaultval=no
6772               fi
6773           fi
6774
6775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6776 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6777           no_cache=0
6778           # Check whether --enable-arcstream was given.
6779 if test "${enable_arcstream+set}" = set; then
6780   enableval=$enable_arcstream;
6781                           if test "$enableval" = yes; then
6782                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6783                           else
6784                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6785                           fi
6786
6787 else
6788
6789                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6790                           if test "x$LINE" != x ; then
6791                             eval "DEFAULT_$LINE"
6792                           else
6793                             no_cache=1
6794                           fi
6795
6796                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6797
6798 fi
6799
6800
6801           eval "$wx_cv_use_arcstream"
6802           if test "$no_cache" != 1; then
6803             echo $wx_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
6804           fi
6805
6806           if test x"$enablestring" = xdisable; then
6807             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6808               result=no
6809             else
6810               result=yes
6811             fi
6812           else
6813             result=$wxUSE_ARCHIVE_STREAMS
6814           fi
6815
6816           { echo "$as_me:$LINENO: result: $result" >&5
6817 echo "${ECHO_T}$result" >&6; }
6818
6819
6820           enablestring=
6821           defaultval=$wxUSE_ALL_FEATURES
6822           if test -z "$defaultval"; then
6823               if test x"$enablestring" = xdisable; then
6824                   defaultval=yes
6825               else
6826                   defaultval=no
6827               fi
6828           fi
6829
6830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6831 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6832           no_cache=0
6833           # Check whether --enable-base64 was given.
6834 if test "${enable_base64+set}" = set; then
6835   enableval=$enable_base64;
6836                           if test "$enableval" = yes; then
6837                             wx_cv_use_base64='wxUSE_BASE64=yes'
6838                           else
6839                             wx_cv_use_base64='wxUSE_BASE64=no'
6840                           fi
6841
6842 else
6843
6844                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6845                           if test "x$LINE" != x ; then
6846                             eval "DEFAULT_$LINE"
6847                           else
6848                             no_cache=1
6849                           fi
6850
6851                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6852
6853 fi
6854
6855
6856           eval "$wx_cv_use_base64"
6857           if test "$no_cache" != 1; then
6858             echo $wx_cv_use_base64 >> ${wx_arg_cache_file}.tmp
6859           fi
6860
6861           if test x"$enablestring" = xdisable; then
6862             if test $wxUSE_BASE64 = yes; then
6863               result=no
6864             else
6865               result=yes
6866             fi
6867           else
6868             result=$wxUSE_BASE64
6869           fi
6870
6871           { echo "$as_me:$LINENO: result: $result" >&5
6872 echo "${ECHO_T}$result" >&6; }
6873
6874
6875           enablestring=
6876           defaultval=$wxUSE_ALL_FEATURES
6877           if test -z "$defaultval"; then
6878               if test x"$enablestring" = xdisable; then
6879                   defaultval=yes
6880               else
6881                   defaultval=no
6882               fi
6883           fi
6884
6885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6886 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6887           no_cache=0
6888           # Check whether --enable-backtrace was given.
6889 if test "${enable_backtrace+set}" = set; then
6890   enableval=$enable_backtrace;
6891                           if test "$enableval" = yes; then
6892                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6893                           else
6894                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6895                           fi
6896
6897 else
6898
6899                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6900                           if test "x$LINE" != x ; then
6901                             eval "DEFAULT_$LINE"
6902                           else
6903                             no_cache=1
6904                           fi
6905
6906                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6907
6908 fi
6909
6910
6911           eval "$wx_cv_use_backtrace"
6912           if test "$no_cache" != 1; then
6913             echo $wx_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
6914           fi
6915
6916           if test x"$enablestring" = xdisable; then
6917             if test $wxUSE_STACKWALKER = yes; then
6918               result=no
6919             else
6920               result=yes
6921             fi
6922           else
6923             result=$wxUSE_STACKWALKER
6924           fi
6925
6926           { echo "$as_me:$LINENO: result: $result" >&5
6927 echo "${ECHO_T}$result" >&6; }
6928
6929
6930           enablestring=
6931           defaultval=$wxUSE_ALL_FEATURES
6932           if test -z "$defaultval"; then
6933               if test x"$enablestring" = xdisable; then
6934                   defaultval=yes
6935               else
6936                   defaultval=no
6937               fi
6938           fi
6939
6940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6941 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6942           no_cache=0
6943           # Check whether --enable-catch_segvs was given.
6944 if test "${enable_catch_segvs+set}" = set; then
6945   enableval=$enable_catch_segvs;
6946                           if test "$enableval" = yes; then
6947                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6948                           else
6949                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6950                           fi
6951
6952 else
6953
6954                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6955                           if test "x$LINE" != x ; then
6956                             eval "DEFAULT_$LINE"
6957                           else
6958                             no_cache=1
6959                           fi
6960
6961                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6962
6963 fi
6964
6965
6966           eval "$wx_cv_use_catch_segvs"
6967           if test "$no_cache" != 1; then
6968             echo $wx_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
6969           fi
6970
6971           if test x"$enablestring" = xdisable; then
6972             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6973               result=no
6974             else
6975               result=yes
6976             fi
6977           else
6978             result=$wxUSE_ON_FATAL_EXCEPTION
6979           fi
6980
6981           { echo "$as_me:$LINENO: result: $result" >&5
6982 echo "${ECHO_T}$result" >&6; }
6983
6984
6985           enablestring=
6986           defaultval=$wxUSE_ALL_FEATURES
6987           if test -z "$defaultval"; then
6988               if test x"$enablestring" = xdisable; then
6989                   defaultval=yes
6990               else
6991                   defaultval=no
6992               fi
6993           fi
6994
6995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6996 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6997           no_cache=0
6998           # Check whether --enable-cmdline was given.
6999 if test "${enable_cmdline+set}" = set; then
7000   enableval=$enable_cmdline;
7001                           if test "$enableval" = yes; then
7002                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7003                           else
7004                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7005                           fi
7006
7007 else
7008
7009                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7010                           if test "x$LINE" != x ; then
7011                             eval "DEFAULT_$LINE"
7012                           else
7013                             no_cache=1
7014                           fi
7015
7016                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7017
7018 fi
7019
7020
7021           eval "$wx_cv_use_cmdline"
7022           if test "$no_cache" != 1; then
7023             echo $wx_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
7024           fi
7025
7026           if test x"$enablestring" = xdisable; then
7027             if test $wxUSE_CMDLINE_PARSER = yes; then
7028               result=no
7029             else
7030               result=yes
7031             fi
7032           else
7033             result=$wxUSE_CMDLINE_PARSER
7034           fi
7035
7036           { echo "$as_me:$LINENO: result: $result" >&5
7037 echo "${ECHO_T}$result" >&6; }
7038
7039
7040           enablestring=
7041           defaultval=$wxUSE_ALL_FEATURES
7042           if test -z "$defaultval"; then
7043               if test x"$enablestring" = xdisable; then
7044                   defaultval=yes
7045               else
7046                   defaultval=no
7047               fi
7048           fi
7049
7050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7051 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7052           no_cache=0
7053           # Check whether --enable-datetime was given.
7054 if test "${enable_datetime+set}" = set; then
7055   enableval=$enable_datetime;
7056                           if test "$enableval" = yes; then
7057                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7058                           else
7059                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7060                           fi
7061
7062 else
7063
7064                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7065                           if test "x$LINE" != x ; then
7066                             eval "DEFAULT_$LINE"
7067                           else
7068                             no_cache=1
7069                           fi
7070
7071                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7072
7073 fi
7074
7075
7076           eval "$wx_cv_use_datetime"
7077           if test "$no_cache" != 1; then
7078             echo $wx_cv_use_datetime >> ${wx_arg_cache_file}.tmp
7079           fi
7080
7081           if test x"$enablestring" = xdisable; then
7082             if test $wxUSE_DATETIME = yes; then
7083               result=no
7084             else
7085               result=yes
7086             fi
7087           else
7088             result=$wxUSE_DATETIME
7089           fi
7090
7091           { echo "$as_me:$LINENO: result: $result" >&5
7092 echo "${ECHO_T}$result" >&6; }
7093
7094
7095           enablestring=
7096           defaultval=$wxUSE_ALL_FEATURES
7097           if test -z "$defaultval"; then
7098               if test x"$enablestring" = xdisable; then
7099                   defaultval=yes
7100               else
7101                   defaultval=no
7102               fi
7103           fi
7104
7105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7106 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7107           no_cache=0
7108           # Check whether --enable-debugreport was given.
7109 if test "${enable_debugreport+set}" = set; then
7110   enableval=$enable_debugreport;
7111                           if test "$enableval" = yes; then
7112                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7113                           else
7114                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7115                           fi
7116
7117 else
7118
7119                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7120                           if test "x$LINE" != x ; then
7121                             eval "DEFAULT_$LINE"
7122                           else
7123                             no_cache=1
7124                           fi
7125
7126                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7127
7128 fi
7129
7130
7131           eval "$wx_cv_use_debugreport"
7132           if test "$no_cache" != 1; then
7133             echo $wx_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
7134           fi
7135
7136           if test x"$enablestring" = xdisable; then
7137             if test $wxUSE_DEBUGREPORT = yes; then
7138               result=no
7139             else
7140               result=yes
7141             fi
7142           else
7143             result=$wxUSE_DEBUGREPORT
7144           fi
7145
7146           { echo "$as_me:$LINENO: result: $result" >&5
7147 echo "${ECHO_T}$result" >&6; }
7148
7149
7150           enablestring=
7151           defaultval=$wxUSE_ALL_FEATURES
7152           if test -z "$defaultval"; then
7153               if test x"$enablestring" = xdisable; then
7154                   defaultval=yes
7155               else
7156                   defaultval=no
7157               fi
7158           fi
7159
7160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7161 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7162           no_cache=0
7163           # Check whether --enable-dialupman was given.
7164 if test "${enable_dialupman+set}" = set; then
7165   enableval=$enable_dialupman;
7166                           if test "$enableval" = yes; then
7167                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7168                           else
7169                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7170                           fi
7171
7172 else
7173
7174                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7175                           if test "x$LINE" != x ; then
7176                             eval "DEFAULT_$LINE"
7177                           else
7178                             no_cache=1
7179                           fi
7180
7181                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7182
7183 fi
7184
7185
7186           eval "$wx_cv_use_dialupman"
7187           if test "$no_cache" != 1; then
7188             echo $wx_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
7189           fi
7190
7191           if test x"$enablestring" = xdisable; then
7192             if test $wxUSE_DIALUP_MANAGER = yes; then
7193               result=no
7194             else
7195               result=yes
7196             fi
7197           else
7198             result=$wxUSE_DIALUP_MANAGER
7199           fi
7200
7201           { echo "$as_me:$LINENO: result: $result" >&5
7202 echo "${ECHO_T}$result" >&6; }
7203
7204
7205           enablestring=
7206           defaultval=$wxUSE_ALL_FEATURES
7207           if test -z "$defaultval"; then
7208               if test x"$enablestring" = xdisable; then
7209                   defaultval=yes
7210               else
7211                   defaultval=no
7212               fi
7213           fi
7214
7215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7216 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7217           no_cache=0
7218           # Check whether --enable-dynlib was given.
7219 if test "${enable_dynlib+set}" = set; then
7220   enableval=$enable_dynlib;
7221                           if test "$enableval" = yes; then
7222                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7223                           else
7224                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7225                           fi
7226
7227 else
7228
7229                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7230                           if test "x$LINE" != x ; then
7231                             eval "DEFAULT_$LINE"
7232                           else
7233                             no_cache=1
7234                           fi
7235
7236                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7237
7238 fi
7239
7240
7241           eval "$wx_cv_use_dynlib"
7242           if test "$no_cache" != 1; then
7243             echo $wx_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
7244           fi
7245
7246           if test x"$enablestring" = xdisable; then
7247             if test $wxUSE_DYNLIB_CLASS = yes; then
7248               result=no
7249             else
7250               result=yes
7251             fi
7252           else
7253             result=$wxUSE_DYNLIB_CLASS
7254           fi
7255
7256           { echo "$as_me:$LINENO: result: $result" >&5
7257 echo "${ECHO_T}$result" >&6; }
7258
7259
7260           enablestring=
7261           defaultval=$wxUSE_ALL_FEATURES
7262           if test -z "$defaultval"; then
7263               if test x"$enablestring" = xdisable; then
7264                   defaultval=yes
7265               else
7266                   defaultval=no
7267               fi
7268           fi
7269
7270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7271 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7272           no_cache=0
7273           # Check whether --enable-dynamicloader was given.
7274 if test "${enable_dynamicloader+set}" = set; then
7275   enableval=$enable_dynamicloader;
7276                           if test "$enableval" = yes; then
7277                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7278                           else
7279                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7280                           fi
7281
7282 else
7283
7284                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7285                           if test "x$LINE" != x ; then
7286                             eval "DEFAULT_$LINE"
7287                           else
7288                             no_cache=1
7289                           fi
7290
7291                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7292
7293 fi
7294
7295
7296           eval "$wx_cv_use_dynamicloader"
7297           if test "$no_cache" != 1; then
7298             echo $wx_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
7299           fi
7300
7301           if test x"$enablestring" = xdisable; then
7302             if test $wxUSE_DYNAMIC_LOADER = yes; then
7303               result=no
7304             else
7305               result=yes
7306             fi
7307           else
7308             result=$wxUSE_DYNAMIC_LOADER
7309           fi
7310
7311           { echo "$as_me:$LINENO: result: $result" >&5
7312 echo "${ECHO_T}$result" >&6; }
7313
7314
7315           enablestring=
7316           defaultval=$wxUSE_ALL_FEATURES
7317           if test -z "$defaultval"; then
7318               if test x"$enablestring" = xdisable; then
7319                   defaultval=yes
7320               else
7321                   defaultval=no
7322               fi
7323           fi
7324
7325           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7326 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7327           no_cache=0
7328           # Check whether --enable-exceptions was given.
7329 if test "${enable_exceptions+set}" = set; then
7330   enableval=$enable_exceptions;
7331                           if test "$enableval" = yes; then
7332                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7333                           else
7334                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7335                           fi
7336
7337 else
7338
7339                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7340                           if test "x$LINE" != x ; then
7341                             eval "DEFAULT_$LINE"
7342                           else
7343                             no_cache=1
7344                           fi
7345
7346                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7347
7348 fi
7349
7350
7351           eval "$wx_cv_use_exceptions"
7352           if test "$no_cache" != 1; then
7353             echo $wx_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
7354           fi
7355
7356           if test x"$enablestring" = xdisable; then
7357             if test $wxUSE_EXCEPTIONS = yes; then
7358               result=no
7359             else
7360               result=yes
7361             fi
7362           else
7363             result=$wxUSE_EXCEPTIONS
7364           fi
7365
7366           { echo "$as_me:$LINENO: result: $result" >&5
7367 echo "${ECHO_T}$result" >&6; }
7368
7369
7370           enablestring=
7371           defaultval=$wxUSE_ALL_FEATURES
7372           if test -z "$defaultval"; then
7373               if test x"$enablestring" = xdisable; then
7374                   defaultval=yes
7375               else
7376                   defaultval=no
7377               fi
7378           fi
7379
7380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7381 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7382           no_cache=0
7383           # Check whether --enable-ffile was given.
7384 if test "${enable_ffile+set}" = set; then
7385   enableval=$enable_ffile;
7386                           if test "$enableval" = yes; then
7387                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7388                           else
7389                             wx_cv_use_ffile='wxUSE_FFILE=no'
7390                           fi
7391
7392 else
7393
7394                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7395                           if test "x$LINE" != x ; then
7396                             eval "DEFAULT_$LINE"
7397                           else
7398                             no_cache=1
7399                           fi
7400
7401                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7402
7403 fi
7404
7405
7406           eval "$wx_cv_use_ffile"
7407           if test "$no_cache" != 1; then
7408             echo $wx_cv_use_ffile >> ${wx_arg_cache_file}.tmp
7409           fi
7410
7411           if test x"$enablestring" = xdisable; then
7412             if test $wxUSE_FFILE = yes; then
7413               result=no
7414             else
7415               result=yes
7416             fi
7417           else
7418             result=$wxUSE_FFILE
7419           fi
7420
7421           { echo "$as_me:$LINENO: result: $result" >&5
7422 echo "${ECHO_T}$result" >&6; }
7423
7424
7425           enablestring=
7426           defaultval=$wxUSE_ALL_FEATURES
7427           if test -z "$defaultval"; then
7428               if test x"$enablestring" = xdisable; then
7429                   defaultval=yes
7430               else
7431                   defaultval=no
7432               fi
7433           fi
7434
7435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7436 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7437           no_cache=0
7438           # Check whether --enable-file was given.
7439 if test "${enable_file+set}" = set; then
7440   enableval=$enable_file;
7441                           if test "$enableval" = yes; then
7442                             wx_cv_use_file='wxUSE_FILE=yes'
7443                           else
7444                             wx_cv_use_file='wxUSE_FILE=no'
7445                           fi
7446
7447 else
7448
7449                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7450                           if test "x$LINE" != x ; then
7451                             eval "DEFAULT_$LINE"
7452                           else
7453                             no_cache=1
7454                           fi
7455
7456                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7457
7458 fi
7459
7460
7461           eval "$wx_cv_use_file"
7462           if test "$no_cache" != 1; then
7463             echo $wx_cv_use_file >> ${wx_arg_cache_file}.tmp
7464           fi
7465
7466           if test x"$enablestring" = xdisable; then
7467             if test $wxUSE_FILE = yes; then
7468               result=no
7469             else
7470               result=yes
7471             fi
7472           else
7473             result=$wxUSE_FILE
7474           fi
7475
7476           { echo "$as_me:$LINENO: result: $result" >&5
7477 echo "${ECHO_T}$result" >&6; }
7478
7479
7480           enablestring=
7481           defaultval=$wxUSE_ALL_FEATURES
7482           if test -z "$defaultval"; then
7483               if test x"$enablestring" = xdisable; then
7484                   defaultval=yes
7485               else
7486                   defaultval=no
7487               fi
7488           fi
7489
7490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7491 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7492           no_cache=0
7493           # Check whether --enable-filesystem was given.
7494 if test "${enable_filesystem+set}" = set; then
7495   enableval=$enable_filesystem;
7496                           if test "$enableval" = yes; then
7497                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7498                           else
7499                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7500                           fi
7501
7502 else
7503
7504                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7505                           if test "x$LINE" != x ; then
7506                             eval "DEFAULT_$LINE"
7507                           else
7508                             no_cache=1
7509                           fi
7510
7511                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7512
7513 fi
7514
7515
7516           eval "$wx_cv_use_filesystem"
7517           if test "$no_cache" != 1; then
7518             echo $wx_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
7519           fi
7520
7521           if test x"$enablestring" = xdisable; then
7522             if test $wxUSE_FILESYSTEM = yes; then
7523               result=no
7524             else
7525               result=yes
7526             fi
7527           else
7528             result=$wxUSE_FILESYSTEM
7529           fi
7530
7531           { echo "$as_me:$LINENO: result: $result" >&5
7532 echo "${ECHO_T}$result" >&6; }
7533
7534
7535           enablestring=
7536           defaultval=$wxUSE_ALL_FEATURES
7537           if test -z "$defaultval"; then
7538               if test x"$enablestring" = xdisable; then
7539                   defaultval=yes
7540               else
7541                   defaultval=no
7542               fi
7543           fi
7544
7545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7546 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7547           no_cache=0
7548           # Check whether --enable-fontmap was given.
7549 if test "${enable_fontmap+set}" = set; then
7550   enableval=$enable_fontmap;
7551                           if test "$enableval" = yes; then
7552                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7553                           else
7554                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7555                           fi
7556
7557 else
7558
7559                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7560                           if test "x$LINE" != x ; then
7561                             eval "DEFAULT_$LINE"
7562                           else
7563                             no_cache=1
7564                           fi
7565
7566                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7567
7568 fi
7569
7570
7571           eval "$wx_cv_use_fontmap"
7572           if test "$no_cache" != 1; then
7573             echo $wx_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
7574           fi
7575
7576           if test x"$enablestring" = xdisable; then
7577             if test $wxUSE_FONTMAP = yes; then
7578               result=no
7579             else
7580               result=yes
7581             fi
7582           else
7583             result=$wxUSE_FONTMAP
7584           fi
7585
7586           { echo "$as_me:$LINENO: result: $result" >&5
7587 echo "${ECHO_T}$result" >&6; }
7588
7589
7590           enablestring=
7591           defaultval=$wxUSE_ALL_FEATURES
7592           if test -z "$defaultval"; then
7593               if test x"$enablestring" = xdisable; then
7594                   defaultval=yes
7595               else
7596                   defaultval=no
7597               fi
7598           fi
7599
7600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7601 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7602           no_cache=0
7603           # Check whether --enable-fs_archive was given.
7604 if test "${enable_fs_archive+set}" = set; then
7605   enableval=$enable_fs_archive;
7606                           if test "$enableval" = yes; then
7607                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7608                           else
7609                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7610                           fi
7611
7612 else
7613
7614                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7615                           if test "x$LINE" != x ; then
7616                             eval "DEFAULT_$LINE"
7617                           else
7618                             no_cache=1
7619                           fi
7620
7621                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7622
7623 fi
7624
7625
7626           eval "$wx_cv_use_fs_archive"
7627           if test "$no_cache" != 1; then
7628             echo $wx_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
7629           fi
7630
7631           if test x"$enablestring" = xdisable; then
7632             if test $wxUSE_FS_ARCHIVE = yes; then
7633               result=no
7634             else
7635               result=yes
7636             fi
7637           else
7638             result=$wxUSE_FS_ARCHIVE
7639           fi
7640
7641           { echo "$as_me:$LINENO: result: $result" >&5
7642 echo "${ECHO_T}$result" >&6; }
7643
7644
7645           enablestring=
7646           defaultval=$wxUSE_ALL_FEATURES
7647           if test -z "$defaultval"; then
7648               if test x"$enablestring" = xdisable; then
7649                   defaultval=yes
7650               else
7651                   defaultval=no
7652               fi
7653           fi
7654
7655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7656 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7657           no_cache=0
7658           # Check whether --enable-fs_inet was given.
7659 if test "${enable_fs_inet+set}" = set; then
7660   enableval=$enable_fs_inet;
7661                           if test "$enableval" = yes; then
7662                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7663                           else
7664                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7665                           fi
7666
7667 else
7668
7669                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7670                           if test "x$LINE" != x ; then
7671                             eval "DEFAULT_$LINE"
7672                           else
7673                             no_cache=1
7674                           fi
7675
7676                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7677
7678 fi
7679
7680
7681           eval "$wx_cv_use_fs_inet"
7682           if test "$no_cache" != 1; then
7683             echo $wx_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
7684           fi
7685
7686           if test x"$enablestring" = xdisable; then
7687             if test $wxUSE_FS_INET = yes; then
7688               result=no
7689             else
7690               result=yes
7691             fi
7692           else
7693             result=$wxUSE_FS_INET
7694           fi
7695
7696           { echo "$as_me:$LINENO: result: $result" >&5
7697 echo "${ECHO_T}$result" >&6; }
7698
7699
7700           enablestring=
7701           defaultval=$wxUSE_ALL_FEATURES
7702           if test -z "$defaultval"; then
7703               if test x"$enablestring" = xdisable; then
7704                   defaultval=yes
7705               else
7706                   defaultval=no
7707               fi
7708           fi
7709
7710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7711 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7712           no_cache=0
7713           # Check whether --enable-fs_zip was given.
7714 if test "${enable_fs_zip+set}" = set; then
7715   enableval=$enable_fs_zip;
7716                           if test "$enableval" = yes; then
7717                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7718                           else
7719                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7720                           fi
7721
7722 else
7723
7724                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7725                           if test "x$LINE" != x ; then
7726                             eval "DEFAULT_$LINE"
7727                           else
7728                             no_cache=1
7729                           fi
7730
7731                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7732
7733 fi
7734
7735
7736           eval "$wx_cv_use_fs_zip"
7737           if test "$no_cache" != 1; then
7738             echo $wx_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
7739           fi
7740
7741           if test x"$enablestring" = xdisable; then
7742             if test $wxUSE_FS_ZIP = yes; then
7743               result=no
7744             else
7745               result=yes
7746             fi
7747           else
7748             result=$wxUSE_FS_ZIP
7749           fi
7750
7751           { echo "$as_me:$LINENO: result: $result" >&5
7752 echo "${ECHO_T}$result" >&6; }
7753
7754
7755           enablestring=
7756           defaultval=$wxUSE_ALL_FEATURES
7757           if test -z "$defaultval"; then
7758               if test x"$enablestring" = xdisable; then
7759                   defaultval=yes
7760               else
7761                   defaultval=no
7762               fi
7763           fi
7764
7765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7766 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7767           no_cache=0
7768           # Check whether --enable-geometry was given.
7769 if test "${enable_geometry+set}" = set; then
7770   enableval=$enable_geometry;
7771                           if test "$enableval" = yes; then
7772                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7773                           else
7774                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7775                           fi
7776
7777 else
7778
7779                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7780                           if test "x$LINE" != x ; then
7781                             eval "DEFAULT_$LINE"
7782                           else
7783                             no_cache=1
7784                           fi
7785
7786                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7787
7788 fi
7789
7790
7791           eval "$wx_cv_use_geometry"
7792           if test "$no_cache" != 1; then
7793             echo $wx_cv_use_geometry >> ${wx_arg_cache_file}.tmp
7794           fi
7795
7796           if test x"$enablestring" = xdisable; then
7797             if test $wxUSE_GEOMETRY = yes; then
7798               result=no
7799             else
7800               result=yes
7801             fi
7802           else
7803             result=$wxUSE_GEOMETRY
7804           fi
7805
7806           { echo "$as_me:$LINENO: result: $result" >&5
7807 echo "${ECHO_T}$result" >&6; }
7808
7809
7810           enablestring=
7811           defaultval=$wxUSE_ALL_FEATURES
7812           if test -z "$defaultval"; then
7813               if test x"$enablestring" = xdisable; then
7814                   defaultval=yes
7815               else
7816                   defaultval=no
7817               fi
7818           fi
7819
7820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7821 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7822           no_cache=0
7823           # Check whether --enable-log was given.
7824 if test "${enable_log+set}" = set; then
7825   enableval=$enable_log;
7826                           if test "$enableval" = yes; then
7827                             wx_cv_use_log='wxUSE_LOG=yes'
7828                           else
7829                             wx_cv_use_log='wxUSE_LOG=no'
7830                           fi
7831
7832 else
7833
7834                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7835                           if test "x$LINE" != x ; then
7836                             eval "DEFAULT_$LINE"
7837                           else
7838                             no_cache=1
7839                           fi
7840
7841                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7842
7843 fi
7844
7845
7846           eval "$wx_cv_use_log"
7847           if test "$no_cache" != 1; then
7848             echo $wx_cv_use_log >> ${wx_arg_cache_file}.tmp
7849           fi
7850
7851           if test x"$enablestring" = xdisable; then
7852             if test $wxUSE_LOG = yes; then
7853               result=no
7854             else
7855               result=yes
7856             fi
7857           else
7858             result=$wxUSE_LOG
7859           fi
7860
7861           { echo "$as_me:$LINENO: result: $result" >&5
7862 echo "${ECHO_T}$result" >&6; }
7863
7864
7865           enablestring=
7866           defaultval=$wxUSE_ALL_FEATURES
7867           if test -z "$defaultval"; then
7868               if test x"$enablestring" = xdisable; then
7869                   defaultval=yes
7870               else
7871                   defaultval=no
7872               fi
7873           fi
7874
7875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7876 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7877           no_cache=0
7878           # Check whether --enable-longlong was given.
7879 if test "${enable_longlong+set}" = set; then
7880   enableval=$enable_longlong;
7881                           if test "$enableval" = yes; then
7882                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7883                           else
7884                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7885                           fi
7886
7887 else
7888
7889                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7890                           if test "x$LINE" != x ; then
7891                             eval "DEFAULT_$LINE"
7892                           else
7893                             no_cache=1
7894                           fi
7895
7896                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7897
7898 fi
7899
7900
7901           eval "$wx_cv_use_longlong"
7902           if test "$no_cache" != 1; then
7903             echo $wx_cv_use_longlong >> ${wx_arg_cache_file}.tmp
7904           fi
7905
7906           if test x"$enablestring" = xdisable; then
7907             if test $wxUSE_LONGLONG = yes; then
7908               result=no
7909             else
7910               result=yes
7911             fi
7912           else
7913             result=$wxUSE_LONGLONG
7914           fi
7915
7916           { echo "$as_me:$LINENO: result: $result" >&5
7917 echo "${ECHO_T}$result" >&6; }
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}-mimetype" >&5
7931 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7932           no_cache=0
7933           # Check whether --enable-mimetype was given.
7934 if test "${enable_mimetype+set}" = set; then
7935   enableval=$enable_mimetype;
7936                           if test "$enableval" = yes; then
7937                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7938                           else
7939                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7940                           fi
7941
7942 else
7943
7944                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7945                           if test "x$LINE" != x ; then
7946                             eval "DEFAULT_$LINE"
7947                           else
7948                             no_cache=1
7949                           fi
7950
7951                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7952
7953 fi
7954
7955
7956           eval "$wx_cv_use_mimetype"
7957           if test "$no_cache" != 1; then
7958             echo $wx_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
7959           fi
7960
7961           if test x"$enablestring" = xdisable; then
7962             if test $wxUSE_MIMETYPE = yes; then
7963               result=no
7964             else
7965               result=yes
7966             fi
7967           else
7968             result=$wxUSE_MIMETYPE
7969           fi
7970
7971           { echo "$as_me:$LINENO: result: $result" >&5
7972 echo "${ECHO_T}$result" >&6; }
7973
7974
7975           enablestring=
7976           defaultval=$wxUSE_ALL_FEATURES
7977           if test -z "$defaultval"; then
7978               if test x"$enablestring" = xdisable; then
7979                   defaultval=yes
7980               else
7981                   defaultval=no
7982               fi
7983           fi
7984
7985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7986 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7987           no_cache=0
7988           # Check whether --enable-snglinst was given.
7989 if test "${enable_snglinst+set}" = set; then
7990   enableval=$enable_snglinst;
7991                           if test "$enableval" = yes; then
7992                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7993                           else
7994                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7995                           fi
7996
7997 else
7998
7999                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8000                           if test "x$LINE" != x ; then
8001                             eval "DEFAULT_$LINE"
8002                           else
8003                             no_cache=1
8004                           fi
8005
8006                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8007
8008 fi
8009
8010
8011           eval "$wx_cv_use_snglinst"
8012           if test "$no_cache" != 1; then
8013             echo $wx_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
8014           fi
8015
8016           if test x"$enablestring" = xdisable; then
8017             if test $wxUSE_SNGLINST_CHECKER = yes; then
8018               result=no
8019             else
8020               result=yes
8021             fi
8022           else
8023             result=$wxUSE_SNGLINST_CHECKER
8024           fi
8025
8026           { echo "$as_me:$LINENO: result: $result" >&5
8027 echo "${ECHO_T}$result" >&6; }
8028
8029
8030           enablestring=
8031           defaultval=$wxUSE_ALL_FEATURES
8032           if test -z "$defaultval"; then
8033               if test x"$enablestring" = xdisable; then
8034                   defaultval=yes
8035               else
8036                   defaultval=no
8037               fi
8038           fi
8039
8040           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8041 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8042           no_cache=0
8043           # Check whether --enable-stdpaths was given.
8044 if test "${enable_stdpaths+set}" = set; then
8045   enableval=$enable_stdpaths;
8046                           if test "$enableval" = yes; then
8047                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8048                           else
8049                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8050                           fi
8051
8052 else
8053
8054                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8055                           if test "x$LINE" != x ; then
8056                             eval "DEFAULT_$LINE"
8057                           else
8058                             no_cache=1
8059                           fi
8060
8061                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8062
8063 fi
8064
8065
8066           eval "$wx_cv_use_stdpaths"
8067           if test "$no_cache" != 1; then
8068             echo $wx_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
8069           fi
8070
8071           if test x"$enablestring" = xdisable; then
8072             if test $wxUSE_STDPATHS = yes; then
8073               result=no
8074             else
8075               result=yes
8076             fi
8077           else
8078             result=$wxUSE_STDPATHS
8079           fi
8080
8081           { echo "$as_me:$LINENO: result: $result" >&5
8082 echo "${ECHO_T}$result" >&6; }
8083
8084
8085           enablestring=
8086           defaultval=$wxUSE_ALL_FEATURES
8087           if test -z "$defaultval"; then
8088               if test x"$enablestring" = xdisable; then
8089                   defaultval=yes
8090               else
8091                   defaultval=no
8092               fi
8093           fi
8094
8095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8096 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8097           no_cache=0
8098           # Check whether --enable-stopwatch was given.
8099 if test "${enable_stopwatch+set}" = set; then
8100   enableval=$enable_stopwatch;
8101                           if test "$enableval" = yes; then
8102                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8103                           else
8104                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8105                           fi
8106
8107 else
8108
8109                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8110                           if test "x$LINE" != x ; then
8111                             eval "DEFAULT_$LINE"
8112                           else
8113                             no_cache=1
8114                           fi
8115
8116                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8117
8118 fi
8119
8120
8121           eval "$wx_cv_use_stopwatch"
8122           if test "$no_cache" != 1; then
8123             echo $wx_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
8124           fi
8125
8126           if test x"$enablestring" = xdisable; then
8127             if test $wxUSE_STOPWATCH = yes; then
8128               result=no
8129             else
8130               result=yes
8131             fi
8132           else
8133             result=$wxUSE_STOPWATCH
8134           fi
8135
8136           { echo "$as_me:$LINENO: result: $result" >&5
8137 echo "${ECHO_T}$result" >&6; }
8138
8139
8140           enablestring=
8141           defaultval=$wxUSE_ALL_FEATURES
8142           if test -z "$defaultval"; then
8143               if test x"$enablestring" = xdisable; then
8144                   defaultval=yes
8145               else
8146                   defaultval=no
8147               fi
8148           fi
8149
8150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8151 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8152           no_cache=0
8153           # Check whether --enable-streams was given.
8154 if test "${enable_streams+set}" = set; then
8155   enableval=$enable_streams;
8156                           if test "$enableval" = yes; then
8157                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8158                           else
8159                             wx_cv_use_streams='wxUSE_STREAMS=no'
8160                           fi
8161
8162 else
8163
8164                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8165                           if test "x$LINE" != x ; then
8166                             eval "DEFAULT_$LINE"
8167                           else
8168                             no_cache=1
8169                           fi
8170
8171                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8172
8173 fi
8174
8175
8176           eval "$wx_cv_use_streams"
8177           if test "$no_cache" != 1; then
8178             echo $wx_cv_use_streams >> ${wx_arg_cache_file}.tmp
8179           fi
8180
8181           if test x"$enablestring" = xdisable; then
8182             if test $wxUSE_STREAMS = yes; then
8183               result=no
8184             else
8185               result=yes
8186             fi
8187           else
8188             result=$wxUSE_STREAMS
8189           fi
8190
8191           { echo "$as_me:$LINENO: result: $result" >&5
8192 echo "${ECHO_T}$result" >&6; }
8193
8194
8195           enablestring=
8196           defaultval=$wxUSE_ALL_FEATURES
8197           if test -z "$defaultval"; then
8198               if test x"$enablestring" = xdisable; then
8199                   defaultval=yes
8200               else
8201                   defaultval=no
8202               fi
8203           fi
8204
8205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8206 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8207           no_cache=0
8208           # Check whether --enable-system_options was given.
8209 if test "${enable_system_options+set}" = set; then
8210   enableval=$enable_system_options;
8211                           if test "$enableval" = yes; then
8212                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8213                           else
8214                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8215                           fi
8216
8217 else
8218
8219                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8220                           if test "x$LINE" != x ; then
8221                             eval "DEFAULT_$LINE"
8222                           else
8223                             no_cache=1
8224                           fi
8225
8226                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8227
8228 fi
8229
8230
8231           eval "$wx_cv_use_system_options"
8232           if test "$no_cache" != 1; then
8233             echo $wx_cv_use_system_options >> ${wx_arg_cache_file}.tmp
8234           fi
8235
8236           if test x"$enablestring" = xdisable; then
8237             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8238               result=no
8239             else
8240               result=yes
8241             fi
8242           else
8243             result=$wxUSE_SYSTEM_OPTIONS
8244           fi
8245
8246           { echo "$as_me:$LINENO: result: $result" >&5
8247 echo "${ECHO_T}$result" >&6; }
8248
8249
8250           enablestring=
8251           defaultval=$wxUSE_ALL_FEATURES
8252           if test -z "$defaultval"; then
8253               if test x"$enablestring" = xdisable; then
8254                   defaultval=yes
8255               else
8256                   defaultval=no
8257               fi
8258           fi
8259
8260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8261 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8262           no_cache=0
8263           # Check whether --enable-tarstream was given.
8264 if test "${enable_tarstream+set}" = set; then
8265   enableval=$enable_tarstream;
8266                           if test "$enableval" = yes; then
8267                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8268                           else
8269                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8270                           fi
8271
8272 else
8273
8274                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8275                           if test "x$LINE" != x ; then
8276                             eval "DEFAULT_$LINE"
8277                           else
8278                             no_cache=1
8279                           fi
8280
8281                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8282
8283 fi
8284
8285
8286           eval "$wx_cv_use_tarstream"
8287           if test "$no_cache" != 1; then
8288             echo $wx_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
8289           fi
8290
8291           if test x"$enablestring" = xdisable; then
8292             if test $wxUSE_TARSTREAM = yes; then
8293               result=no
8294             else
8295               result=yes
8296             fi
8297           else
8298             result=$wxUSE_TARSTREAM
8299           fi
8300
8301           { echo "$as_me:$LINENO: result: $result" >&5
8302 echo "${ECHO_T}$result" >&6; }
8303
8304
8305           enablestring=
8306           defaultval=$wxUSE_ALL_FEATURES
8307           if test -z "$defaultval"; then
8308               if test x"$enablestring" = xdisable; then
8309                   defaultval=yes
8310               else
8311                   defaultval=no
8312               fi
8313           fi
8314
8315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8316 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8317           no_cache=0
8318           # Check whether --enable-textbuf was given.
8319 if test "${enable_textbuf+set}" = set; then
8320   enableval=$enable_textbuf;
8321                           if test "$enableval" = yes; then
8322                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8323                           else
8324                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8325                           fi
8326
8327 else
8328
8329                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8330                           if test "x$LINE" != x ; then
8331                             eval "DEFAULT_$LINE"
8332                           else
8333                             no_cache=1
8334                           fi
8335
8336                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8337
8338 fi
8339
8340
8341           eval "$wx_cv_use_textbuf"
8342           if test "$no_cache" != 1; then
8343             echo $wx_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
8344           fi
8345
8346           if test x"$enablestring" = xdisable; then
8347             if test $wxUSE_TEXTBUFFER = yes; then
8348               result=no
8349             else
8350               result=yes
8351             fi
8352           else
8353             result=$wxUSE_TEXTBUFFER
8354           fi
8355
8356           { echo "$as_me:$LINENO: result: $result" >&5
8357 echo "${ECHO_T}$result" >&6; }
8358
8359
8360           enablestring=
8361           defaultval=$wxUSE_ALL_FEATURES
8362           if test -z "$defaultval"; then
8363               if test x"$enablestring" = xdisable; then
8364                   defaultval=yes
8365               else
8366                   defaultval=no
8367               fi
8368           fi
8369
8370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8371 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8372           no_cache=0
8373           # Check whether --enable-textfile was given.
8374 if test "${enable_textfile+set}" = set; then
8375   enableval=$enable_textfile;
8376                           if test "$enableval" = yes; then
8377                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8378                           else
8379                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8380                           fi
8381
8382 else
8383
8384                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8385                           if test "x$LINE" != x ; then
8386                             eval "DEFAULT_$LINE"
8387                           else
8388                             no_cache=1
8389                           fi
8390
8391                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8392
8393 fi
8394
8395
8396           eval "$wx_cv_use_textfile"
8397           if test "$no_cache" != 1; then
8398             echo $wx_cv_use_textfile >> ${wx_arg_cache_file}.tmp
8399           fi
8400
8401           if test x"$enablestring" = xdisable; then
8402             if test $wxUSE_TEXTFILE = yes; then
8403               result=no
8404             else
8405               result=yes
8406             fi
8407           else
8408             result=$wxUSE_TEXTFILE
8409           fi
8410
8411           { echo "$as_me:$LINENO: result: $result" >&5
8412 echo "${ECHO_T}$result" >&6; }
8413
8414
8415           enablestring=
8416           defaultval=$wxUSE_ALL_FEATURES
8417           if test -z "$defaultval"; then
8418               if test x"$enablestring" = xdisable; then
8419                   defaultval=yes
8420               else
8421                   defaultval=no
8422               fi
8423           fi
8424
8425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8426 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8427           no_cache=0
8428           # Check whether --enable-timer was given.
8429 if test "${enable_timer+set}" = set; then
8430   enableval=$enable_timer;
8431                           if test "$enableval" = yes; then
8432                             wx_cv_use_timer='wxUSE_TIMER=yes'
8433                           else
8434                             wx_cv_use_timer='wxUSE_TIMER=no'
8435                           fi
8436
8437 else
8438
8439                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8440                           if test "x$LINE" != x ; then
8441                             eval "DEFAULT_$LINE"
8442                           else
8443                             no_cache=1
8444                           fi
8445
8446                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8447
8448 fi
8449
8450
8451           eval "$wx_cv_use_timer"
8452           if test "$no_cache" != 1; then
8453             echo $wx_cv_use_timer >> ${wx_arg_cache_file}.tmp
8454           fi
8455
8456           if test x"$enablestring" = xdisable; then
8457             if test $wxUSE_TIMER = yes; then
8458               result=no
8459             else
8460               result=yes
8461             fi
8462           else
8463             result=$wxUSE_TIMER
8464           fi
8465
8466           { echo "$as_me:$LINENO: result: $result" >&5
8467 echo "${ECHO_T}$result" >&6; }
8468
8469
8470           enablestring=
8471           defaultval=$wxUSE_ALL_FEATURES
8472           if test -z "$defaultval"; then
8473               if test x"$enablestring" = xdisable; then
8474                   defaultval=yes
8475               else
8476                   defaultval=no
8477               fi
8478           fi
8479
8480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8481 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8482           no_cache=0
8483           # Check whether --enable-sound was given.
8484 if test "${enable_sound+set}" = set; then
8485   enableval=$enable_sound;
8486                           if test "$enableval" = yes; then
8487                             wx_cv_use_sound='wxUSE_SOUND=yes'
8488                           else
8489                             wx_cv_use_sound='wxUSE_SOUND=no'
8490                           fi
8491
8492 else
8493
8494                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8495                           if test "x$LINE" != x ; then
8496                             eval "DEFAULT_$LINE"
8497                           else
8498                             no_cache=1
8499                           fi
8500
8501                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8502
8503 fi
8504
8505
8506           eval "$wx_cv_use_sound"
8507           if test "$no_cache" != 1; then
8508             echo $wx_cv_use_sound >> ${wx_arg_cache_file}.tmp
8509           fi
8510
8511           if test x"$enablestring" = xdisable; then
8512             if test $wxUSE_SOUND = yes; then
8513               result=no
8514             else
8515               result=yes
8516             fi
8517           else
8518             result=$wxUSE_SOUND
8519           fi
8520
8521           { echo "$as_me:$LINENO: result: $result" >&5
8522 echo "${ECHO_T}$result" >&6; }
8523
8524
8525           enablestring=
8526           defaultval=$wxUSE_ALL_FEATURES
8527           if test -z "$defaultval"; then
8528               if test x"$enablestring" = xdisable; then
8529                   defaultval=yes
8530               else
8531                   defaultval=no
8532               fi
8533           fi
8534
8535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8536 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8537           no_cache=0
8538           # Check whether --enable-mediactrl was given.
8539 if test "${enable_mediactrl+set}" = set; then
8540   enableval=$enable_mediactrl;
8541                           if test "$enableval" = yes; then
8542                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8543                           else
8544                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8545                           fi
8546
8547 else
8548
8549                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8550                           if test "x$LINE" != x ; then
8551                             eval "DEFAULT_$LINE"
8552                           else
8553                             no_cache=1
8554                           fi
8555
8556                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8557
8558 fi
8559
8560
8561           eval "$wx_cv_use_mediactrl"
8562           if test "$no_cache" != 1; then
8563             echo $wx_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
8564           fi
8565
8566           if test x"$enablestring" = xdisable; then
8567             if test $wxUSE_MEDIACTRL = yes; then
8568               result=no
8569             else
8570               result=yes
8571             fi
8572           else
8573             result=$wxUSE_MEDIACTRL
8574           fi
8575
8576           { echo "$as_me:$LINENO: result: $result" >&5
8577 echo "${ECHO_T}$result" >&6; }
8578
8579
8580           enablestring=
8581           defaultval=$wxUSE_ALL_FEATURES
8582           if test -z "$defaultval"; then
8583               if test x"$enablestring" = xdisable; then
8584                   defaultval=yes
8585               else
8586                   defaultval=no
8587               fi
8588           fi
8589
8590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8591 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8592           no_cache=0
8593           # Check whether --enable-gstreamer8 was given.
8594 if test "${enable_gstreamer8+set}" = set; then
8595   enableval=$enable_gstreamer8;
8596                           if test "$enableval" = yes; then
8597                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8598                           else
8599                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8600                           fi
8601
8602 else
8603
8604                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8605                           if test "x$LINE" != x ; then
8606                             eval "DEFAULT_$LINE"
8607                           else
8608                             no_cache=1
8609                           fi
8610
8611                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8612
8613 fi
8614
8615
8616           eval "$wx_cv_use_gstreamer8"
8617           if test "$no_cache" != 1; then
8618             echo $wx_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
8619           fi
8620
8621           if test x"$enablestring" = xdisable; then
8622             if test $wxUSE_GSTREAMER8 = yes; then
8623               result=no
8624             else
8625               result=yes
8626             fi
8627           else
8628             result=$wxUSE_GSTREAMER8
8629           fi
8630
8631           { echo "$as_me:$LINENO: result: $result" >&5
8632 echo "${ECHO_T}$result" >&6; }
8633
8634
8635           enablestring=
8636           defaultval=$wxUSE_ALL_FEATURES
8637           if test -z "$defaultval"; then
8638               if test x"$enablestring" = xdisable; then
8639                   defaultval=yes
8640               else
8641                   defaultval=no
8642               fi
8643           fi
8644
8645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8646 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8647           no_cache=0
8648           # Check whether --enable-printfposparam was given.
8649 if test "${enable_printfposparam+set}" = set; then
8650   enableval=$enable_printfposparam;
8651                           if test "$enableval" = yes; then
8652                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8653                           else
8654                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8655                           fi
8656
8657 else
8658
8659                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8660                           if test "x$LINE" != x ; then
8661                             eval "DEFAULT_$LINE"
8662                           else
8663                             no_cache=1
8664                           fi
8665
8666                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8667
8668 fi
8669
8670
8671           eval "$wx_cv_use_printfposparam"
8672           if test "$no_cache" != 1; then
8673             echo $wx_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
8674           fi
8675
8676           if test x"$enablestring" = xdisable; then
8677             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8678               result=no
8679             else
8680               result=yes
8681             fi
8682           else
8683             result=$wxUSE_PRINTF_POS_PARAMS
8684           fi
8685
8686           { echo "$as_me:$LINENO: result: $result" >&5
8687 echo "${ECHO_T}$result" >&6; }
8688
8689
8690           enablestring=
8691           defaultval=$wxUSE_ALL_FEATURES
8692           if test -z "$defaultval"; then
8693               if test x"$enablestring" = xdisable; then
8694                   defaultval=yes
8695               else
8696                   defaultval=no
8697               fi
8698           fi
8699
8700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8701 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8702           no_cache=0
8703           # Check whether --enable-zipstream was given.
8704 if test "${enable_zipstream+set}" = set; then
8705   enableval=$enable_zipstream;
8706                           if test "$enableval" = yes; then
8707                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8708                           else
8709                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8710                           fi
8711
8712 else
8713
8714                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8715                           if test "x$LINE" != x ; then
8716                             eval "DEFAULT_$LINE"
8717                           else
8718                             no_cache=1
8719                           fi
8720
8721                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8722
8723 fi
8724
8725
8726           eval "$wx_cv_use_zipstream"
8727           if test "$no_cache" != 1; then
8728             echo $wx_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
8729           fi
8730
8731           if test x"$enablestring" = xdisable; then
8732             if test $wxUSE_ZIPSTREAM = yes; then
8733               result=no
8734             else
8735               result=yes
8736             fi
8737           else
8738             result=$wxUSE_ZIPSTREAM
8739           fi
8740
8741           { echo "$as_me:$LINENO: result: $result" >&5
8742 echo "${ECHO_T}$result" >&6; }
8743
8744
8745
8746           enablestring=
8747           defaultval=$wxUSE_ALL_FEATURES
8748           if test -z "$defaultval"; then
8749               if test x"$enablestring" = xdisable; then
8750                   defaultval=yes
8751               else
8752                   defaultval=no
8753               fi
8754           fi
8755
8756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8757 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8758           no_cache=0
8759           # Check whether --enable-url was given.
8760 if test "${enable_url+set}" = set; then
8761   enableval=$enable_url;
8762                           if test "$enableval" = yes; then
8763                             wx_cv_use_url='wxUSE_URL=yes'
8764                           else
8765                             wx_cv_use_url='wxUSE_URL=no'
8766                           fi
8767
8768 else
8769
8770                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8771                           if test "x$LINE" != x ; then
8772                             eval "DEFAULT_$LINE"
8773                           else
8774                             no_cache=1
8775                           fi
8776
8777                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8778
8779 fi
8780
8781
8782           eval "$wx_cv_use_url"
8783           if test "$no_cache" != 1; then
8784             echo $wx_cv_use_url >> ${wx_arg_cache_file}.tmp
8785           fi
8786
8787           if test x"$enablestring" = xdisable; then
8788             if test $wxUSE_URL = yes; then
8789               result=no
8790             else
8791               result=yes
8792             fi
8793           else
8794             result=$wxUSE_URL
8795           fi
8796
8797           { echo "$as_me:$LINENO: result: $result" >&5
8798 echo "${ECHO_T}$result" >&6; }
8799
8800
8801           enablestring=
8802           defaultval=$wxUSE_ALL_FEATURES
8803           if test -z "$defaultval"; then
8804               if test x"$enablestring" = xdisable; then
8805                   defaultval=yes
8806               else
8807                   defaultval=no
8808               fi
8809           fi
8810
8811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8812 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8813           no_cache=0
8814           # Check whether --enable-variant was given.
8815 if test "${enable_variant+set}" = set; then
8816   enableval=$enable_variant;
8817                           if test "$enableval" = yes; then
8818                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8819                           else
8820                             wx_cv_use_variant='wxUSE_VARIANT=no'
8821                           fi
8822
8823 else
8824
8825                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8826                           if test "x$LINE" != x ; then
8827                             eval "DEFAULT_$LINE"
8828                           else
8829                             no_cache=1
8830                           fi
8831
8832                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8833
8834 fi
8835
8836
8837           eval "$wx_cv_use_variant"
8838           if test "$no_cache" != 1; then
8839             echo $wx_cv_use_variant >> ${wx_arg_cache_file}.tmp
8840           fi
8841
8842           if test x"$enablestring" = xdisable; then
8843             if test $wxUSE_VARIANT = yes; then
8844               result=no
8845             else
8846               result=yes
8847             fi
8848           else
8849             result=$wxUSE_VARIANT
8850           fi
8851
8852           { echo "$as_me:$LINENO: result: $result" >&5
8853 echo "${ECHO_T}$result" >&6; }
8854
8855
8856           enablestring=
8857           defaultval=$wxUSE_ALL_FEATURES
8858           if test -z "$defaultval"; then
8859               if test x"$enablestring" = xdisable; then
8860                   defaultval=yes
8861               else
8862                   defaultval=no
8863               fi
8864           fi
8865
8866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8867 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8868           no_cache=0
8869           # Check whether --enable-protocol was given.
8870 if test "${enable_protocol+set}" = set; then
8871   enableval=$enable_protocol;
8872                           if test "$enableval" = yes; then
8873                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8874                           else
8875                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8876                           fi
8877
8878 else
8879
8880                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8881                           if test "x$LINE" != x ; then
8882                             eval "DEFAULT_$LINE"
8883                           else
8884                             no_cache=1
8885                           fi
8886
8887                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8888
8889 fi
8890
8891
8892           eval "$wx_cv_use_protocol"
8893           if test "$no_cache" != 1; then
8894             echo $wx_cv_use_protocol >> ${wx_arg_cache_file}.tmp
8895           fi
8896
8897           if test x"$enablestring" = xdisable; then
8898             if test $wxUSE_PROTOCOL = yes; then
8899               result=no
8900             else
8901               result=yes
8902             fi
8903           else
8904             result=$wxUSE_PROTOCOL
8905           fi
8906
8907           { echo "$as_me:$LINENO: result: $result" >&5
8908 echo "${ECHO_T}$result" >&6; }
8909
8910
8911           enablestring=
8912           defaultval=$wxUSE_ALL_FEATURES
8913           if test -z "$defaultval"; then
8914               if test x"$enablestring" = xdisable; then
8915                   defaultval=yes
8916               else
8917                   defaultval=no
8918               fi
8919           fi
8920
8921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8922 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8923           no_cache=0
8924           # Check whether --enable-protocol_http was given.
8925 if test "${enable_protocol_http+set}" = set; then
8926   enableval=$enable_protocol_http;
8927                           if test "$enableval" = yes; then
8928                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8929                           else
8930                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8931                           fi
8932
8933 else
8934
8935                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8936                           if test "x$LINE" != x ; then
8937                             eval "DEFAULT_$LINE"
8938                           else
8939                             no_cache=1
8940                           fi
8941
8942                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8943
8944 fi
8945
8946
8947           eval "$wx_cv_use_protocol_http"
8948           if test "$no_cache" != 1; then
8949             echo $wx_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
8950           fi
8951
8952           if test x"$enablestring" = xdisable; then
8953             if test $wxUSE_PROTOCOL_HTTP = yes; then
8954               result=no
8955             else
8956               result=yes
8957             fi
8958           else
8959             result=$wxUSE_PROTOCOL_HTTP
8960           fi
8961
8962           { echo "$as_me:$LINENO: result: $result" >&5
8963 echo "${ECHO_T}$result" >&6; }
8964
8965
8966           enablestring=
8967           defaultval=$wxUSE_ALL_FEATURES
8968           if test -z "$defaultval"; then
8969               if test x"$enablestring" = xdisable; then
8970                   defaultval=yes
8971               else
8972                   defaultval=no
8973               fi
8974           fi
8975
8976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8977 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8978           no_cache=0
8979           # Check whether --enable-protocol_ftp was given.
8980 if test "${enable_protocol_ftp+set}" = set; then
8981   enableval=$enable_protocol_ftp;
8982                           if test "$enableval" = yes; then
8983                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8984                           else
8985                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8986                           fi
8987
8988 else
8989
8990                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
8991                           if test "x$LINE" != x ; then
8992                             eval "DEFAULT_$LINE"
8993                           else
8994                             no_cache=1
8995                           fi
8996
8997                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8998
8999 fi
9000
9001
9002           eval "$wx_cv_use_protocol_ftp"
9003           if test "$no_cache" != 1; then
9004             echo $wx_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
9005           fi
9006
9007           if test x"$enablestring" = xdisable; then
9008             if test $wxUSE_PROTOCOL_FTP = yes; then
9009               result=no
9010             else
9011               result=yes
9012             fi
9013           else
9014             result=$wxUSE_PROTOCOL_FTP
9015           fi
9016
9017           { echo "$as_me:$LINENO: result: $result" >&5
9018 echo "${ECHO_T}$result" >&6; }
9019
9020
9021           enablestring=
9022           defaultval=$wxUSE_ALL_FEATURES
9023           if test -z "$defaultval"; then
9024               if test x"$enablestring" = xdisable; then
9025                   defaultval=yes
9026               else
9027                   defaultval=no
9028               fi
9029           fi
9030
9031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9032 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9033           no_cache=0
9034           # Check whether --enable-protocol_file was given.
9035 if test "${enable_protocol_file+set}" = set; then
9036   enableval=$enable_protocol_file;
9037                           if test "$enableval" = yes; then
9038                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9039                           else
9040                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9041                           fi
9042
9043 else
9044
9045                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9046                           if test "x$LINE" != x ; then
9047                             eval "DEFAULT_$LINE"
9048                           else
9049                             no_cache=1
9050                           fi
9051
9052                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9053
9054 fi
9055
9056
9057           eval "$wx_cv_use_protocol_file"
9058           if test "$no_cache" != 1; then
9059             echo $wx_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
9060           fi
9061
9062           if test x"$enablestring" = xdisable; then
9063             if test $wxUSE_PROTOCOL_FILE = yes; then
9064               result=no
9065             else
9066               result=yes
9067             fi
9068           else
9069             result=$wxUSE_PROTOCOL_FILE
9070           fi
9071
9072           { echo "$as_me:$LINENO: result: $result" >&5
9073 echo "${ECHO_T}$result" >&6; }
9074
9075
9076
9077           enablestring=
9078           defaultval=$wxUSE_ALL_FEATURES
9079           if test -z "$defaultval"; then
9080               if test x"$enablestring" = xdisable; then
9081                   defaultval=yes
9082               else
9083                   defaultval=no
9084               fi
9085           fi
9086
9087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9088 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9089           no_cache=0
9090           # Check whether --enable-threads was given.
9091 if test "${enable_threads+set}" = set; then
9092   enableval=$enable_threads;
9093                           if test "$enableval" = yes; then
9094                             wx_cv_use_threads='wxUSE_THREADS=yes'
9095                           else
9096                             wx_cv_use_threads='wxUSE_THREADS=no'
9097                           fi
9098
9099 else
9100
9101                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9102                           if test "x$LINE" != x ; then
9103                             eval "DEFAULT_$LINE"
9104                           else
9105                             no_cache=1
9106                           fi
9107
9108                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9109
9110 fi
9111
9112
9113           eval "$wx_cv_use_threads"
9114           if test "$no_cache" != 1; then
9115             echo $wx_cv_use_threads >> ${wx_arg_cache_file}.tmp
9116           fi
9117
9118           if test x"$enablestring" = xdisable; then
9119             if test $wxUSE_THREADS = yes; then
9120               result=no
9121             else
9122               result=yes
9123             fi
9124           else
9125             result=$wxUSE_THREADS
9126           fi
9127
9128           { echo "$as_me:$LINENO: result: $result" >&5
9129 echo "${ECHO_T}$result" >&6; }
9130
9131
9132 if test "$wxUSE_GUI" = "yes"; then
9133
9134
9135
9136           enablestring=
9137           defaultval=$wxUSE_ALL_FEATURES
9138           if test -z "$defaultval"; then
9139               if test x"$enablestring" = xdisable; then
9140                   defaultval=yes
9141               else
9142                   defaultval=no
9143               fi
9144           fi
9145
9146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9147 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9148           no_cache=0
9149           # Check whether --enable-docview was given.
9150 if test "${enable_docview+set}" = set; then
9151   enableval=$enable_docview;
9152                           if test "$enableval" = yes; then
9153                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9154                           else
9155                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9156                           fi
9157
9158 else
9159
9160                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9161                           if test "x$LINE" != x ; then
9162                             eval "DEFAULT_$LINE"
9163                           else
9164                             no_cache=1
9165                           fi
9166
9167                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9168
9169 fi
9170
9171
9172           eval "$wx_cv_use_docview"
9173           if test "$no_cache" != 1; then
9174             echo $wx_cv_use_docview >> ${wx_arg_cache_file}.tmp
9175           fi
9176
9177           if test x"$enablestring" = xdisable; then
9178             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9179               result=no
9180             else
9181               result=yes
9182             fi
9183           else
9184             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9185           fi
9186
9187           { echo "$as_me:$LINENO: result: $result" >&5
9188 echo "${ECHO_T}$result" >&6; }
9189
9190
9191           enablestring=
9192           defaultval=$wxUSE_ALL_FEATURES
9193           if test -z "$defaultval"; then
9194               if test x"$enablestring" = xdisable; then
9195                   defaultval=yes
9196               else
9197                   defaultval=no
9198               fi
9199           fi
9200
9201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9202 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9203           no_cache=0
9204           # Check whether --enable-help was given.
9205 if test "${enable_help+set}" = set; then
9206   enableval=$enable_help;
9207                           if test "$enableval" = yes; then
9208                             wx_cv_use_help='wxUSE_HELP=yes'
9209                           else
9210                             wx_cv_use_help='wxUSE_HELP=no'
9211                           fi
9212
9213 else
9214
9215                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9216                           if test "x$LINE" != x ; then
9217                             eval "DEFAULT_$LINE"
9218                           else
9219                             no_cache=1
9220                           fi
9221
9222                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9223
9224 fi
9225
9226
9227           eval "$wx_cv_use_help"
9228           if test "$no_cache" != 1; then
9229             echo $wx_cv_use_help >> ${wx_arg_cache_file}.tmp
9230           fi
9231
9232           if test x"$enablestring" = xdisable; then
9233             if test $wxUSE_HELP = yes; then
9234               result=no
9235             else
9236               result=yes
9237             fi
9238           else
9239             result=$wxUSE_HELP
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}-mshtmlhelp" >&5
9257 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9258           no_cache=0
9259           # Check whether --enable-mshtmlhelp was given.
9260 if test "${enable_mshtmlhelp+set}" = set; then
9261   enableval=$enable_mshtmlhelp;
9262                           if test "$enableval" = yes; then
9263                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9264                           else
9265                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9266                           fi
9267
9268 else
9269
9270                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9271                           if test "x$LINE" != x ; then
9272                             eval "DEFAULT_$LINE"
9273                           else
9274                             no_cache=1
9275                           fi
9276
9277                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9278
9279 fi
9280
9281
9282           eval "$wx_cv_use_mshtmlhelp"
9283           if test "$no_cache" != 1; then
9284             echo $wx_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
9285           fi
9286
9287           if test x"$enablestring" = xdisable; then
9288             if test $wxUSE_MS_HTML_HELP = yes; then
9289               result=no
9290             else
9291               result=yes
9292             fi
9293           else
9294             result=$wxUSE_MS_HTML_HELP
9295           fi
9296
9297           { echo "$as_me:$LINENO: result: $result" >&5
9298 echo "${ECHO_T}$result" >&6; }
9299
9300
9301           enablestring=
9302           defaultval=$wxUSE_ALL_FEATURES
9303           if test -z "$defaultval"; then
9304               if test x"$enablestring" = xdisable; then
9305                   defaultval=yes
9306               else
9307                   defaultval=no
9308               fi
9309           fi
9310
9311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9312 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9313           no_cache=0
9314           # Check whether --enable-html was given.
9315 if test "${enable_html+set}" = set; then
9316   enableval=$enable_html;
9317                           if test "$enableval" = yes; then
9318                             wx_cv_use_html='wxUSE_HTML=yes'
9319                           else
9320                             wx_cv_use_html='wxUSE_HTML=no'
9321                           fi
9322
9323 else
9324
9325                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9326                           if test "x$LINE" != x ; then
9327                             eval "DEFAULT_$LINE"
9328                           else
9329                             no_cache=1
9330                           fi
9331
9332                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9333
9334 fi
9335
9336
9337           eval "$wx_cv_use_html"
9338           if test "$no_cache" != 1; then
9339             echo $wx_cv_use_html >> ${wx_arg_cache_file}.tmp
9340           fi
9341
9342           if test x"$enablestring" = xdisable; then
9343             if test $wxUSE_HTML = yes; then
9344               result=no
9345             else
9346               result=yes
9347             fi
9348           else
9349             result=$wxUSE_HTML
9350           fi
9351
9352           { echo "$as_me:$LINENO: result: $result" >&5
9353 echo "${ECHO_T}$result" >&6; }
9354
9355
9356           enablestring=
9357           defaultval=$wxUSE_ALL_FEATURES
9358           if test -z "$defaultval"; then
9359               if test x"$enablestring" = xdisable; then
9360                   defaultval=yes
9361               else
9362                   defaultval=no
9363               fi
9364           fi
9365
9366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9367 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9368           no_cache=0
9369           # Check whether --enable-htmlhelp was given.
9370 if test "${enable_htmlhelp+set}" = set; then
9371   enableval=$enable_htmlhelp;
9372                           if test "$enableval" = yes; then
9373                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9374                           else
9375                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9376                           fi
9377
9378 else
9379
9380                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9381                           if test "x$LINE" != x ; then
9382                             eval "DEFAULT_$LINE"
9383                           else
9384                             no_cache=1
9385                           fi
9386
9387                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9388
9389 fi
9390
9391
9392           eval "$wx_cv_use_htmlhelp"
9393           if test "$no_cache" != 1; then
9394             echo $wx_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
9395           fi
9396
9397           if test x"$enablestring" = xdisable; then
9398             if test $wxUSE_WXHTML_HELP = yes; then
9399               result=no
9400             else
9401               result=yes
9402             fi
9403           else
9404             result=$wxUSE_WXHTML_HELP
9405           fi
9406
9407           { echo "$as_me:$LINENO: result: $result" >&5
9408 echo "${ECHO_T}$result" >&6; }
9409
9410
9411           enablestring=
9412           defaultval=$wxUSE_ALL_FEATURES
9413           if test -z "$defaultval"; then
9414               if test x"$enablestring" = xdisable; then
9415                   defaultval=yes
9416               else
9417                   defaultval=no
9418               fi
9419           fi
9420
9421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9422 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9423           no_cache=0
9424           # Check whether --enable-xrc was given.
9425 if test "${enable_xrc+set}" = set; then
9426   enableval=$enable_xrc;
9427                           if test "$enableval" = yes; then
9428                             wx_cv_use_xrc='wxUSE_XRC=yes'
9429                           else
9430                             wx_cv_use_xrc='wxUSE_XRC=no'
9431                           fi
9432
9433 else
9434
9435                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9436                           if test "x$LINE" != x ; then
9437                             eval "DEFAULT_$LINE"
9438                           else
9439                             no_cache=1
9440                           fi
9441
9442                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9443
9444 fi
9445
9446
9447           eval "$wx_cv_use_xrc"
9448           if test "$no_cache" != 1; then
9449             echo $wx_cv_use_xrc >> ${wx_arg_cache_file}.tmp
9450           fi
9451
9452           if test x"$enablestring" = xdisable; then
9453             if test $wxUSE_XRC = yes; then
9454               result=no
9455             else
9456               result=yes
9457             fi
9458           else
9459             result=$wxUSE_XRC
9460           fi
9461
9462           { echo "$as_me:$LINENO: result: $result" >&5
9463 echo "${ECHO_T}$result" >&6; }
9464
9465
9466           enablestring=
9467           defaultval=$wxUSE_ALL_FEATURES
9468           if test -z "$defaultval"; then
9469               if test x"$enablestring" = xdisable; then
9470                   defaultval=yes
9471               else
9472                   defaultval=no
9473               fi
9474           fi
9475
9476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9477 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9478           no_cache=0
9479           # Check whether --enable-aui was given.
9480 if test "${enable_aui+set}" = set; then
9481   enableval=$enable_aui;
9482                           if test "$enableval" = yes; then
9483                             wx_cv_use_aui='wxUSE_AUI=yes'
9484                           else
9485                             wx_cv_use_aui='wxUSE_AUI=no'
9486                           fi
9487
9488 else
9489
9490                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9491                           if test "x$LINE" != x ; then
9492                             eval "DEFAULT_$LINE"
9493                           else
9494                             no_cache=1
9495                           fi
9496
9497                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9498
9499 fi
9500
9501
9502           eval "$wx_cv_use_aui"
9503           if test "$no_cache" != 1; then
9504             echo $wx_cv_use_aui >> ${wx_arg_cache_file}.tmp
9505           fi
9506
9507           if test x"$enablestring" = xdisable; then
9508             if test $wxUSE_AUI = yes; then
9509               result=no
9510             else
9511               result=yes
9512             fi
9513           else
9514             result=$wxUSE_AUI
9515           fi
9516
9517           { echo "$as_me:$LINENO: result: $result" >&5
9518 echo "${ECHO_T}$result" >&6; }
9519
9520
9521           enablestring=
9522           defaultval=$wxUSE_ALL_FEATURES
9523           if test -z "$defaultval"; then
9524               if test x"$enablestring" = xdisable; then
9525                   defaultval=yes
9526               else
9527                   defaultval=no
9528               fi
9529           fi
9530
9531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9532 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9533           no_cache=0
9534           # Check whether --enable-stc was given.
9535 if test "${enable_stc+set}" = set; then
9536   enableval=$enable_stc;
9537                           if test "$enableval" = yes; then
9538                             wx_cv_use_stc='wxUSE_STC=yes'
9539                           else
9540                             wx_cv_use_stc='wxUSE_STC=no'
9541                           fi
9542
9543 else
9544
9545                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9546                           if test "x$LINE" != x ; then
9547                             eval "DEFAULT_$LINE"
9548                           else
9549                             no_cache=1
9550                           fi
9551
9552                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9553
9554 fi
9555
9556
9557           eval "$wx_cv_use_stc"
9558           if test "$no_cache" != 1; then
9559             echo $wx_cv_use_stc >> ${wx_arg_cache_file}.tmp
9560           fi
9561
9562           if test x"$enablestring" = xdisable; then
9563             if test $wxUSE_STC = yes; then
9564               result=no
9565             else
9566               result=yes
9567             fi
9568           else
9569             result=$wxUSE_STC
9570           fi
9571
9572           { echo "$as_me:$LINENO: result: $result" >&5
9573 echo "${ECHO_T}$result" >&6; }
9574
9575
9576           enablestring=
9577           defaultval=$wxUSE_ALL_FEATURES
9578           if test -z "$defaultval"; then
9579               if test x"$enablestring" = xdisable; then
9580                   defaultval=yes
9581               else
9582                   defaultval=no
9583               fi
9584           fi
9585
9586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9588           no_cache=0
9589           # Check whether --enable-constraints was given.
9590 if test "${enable_constraints+set}" = set; then
9591   enableval=$enable_constraints;
9592                           if test "$enableval" = yes; then
9593                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9594                           else
9595                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9596                           fi
9597
9598 else
9599
9600                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9601                           if test "x$LINE" != x ; then
9602                             eval "DEFAULT_$LINE"
9603                           else
9604                             no_cache=1
9605                           fi
9606
9607                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9608
9609 fi
9610
9611
9612           eval "$wx_cv_use_constraints"
9613           if test "$no_cache" != 1; then
9614             echo $wx_cv_use_constraints >> ${wx_arg_cache_file}.tmp
9615           fi
9616
9617           if test x"$enablestring" = xdisable; then
9618             if test $wxUSE_CONSTRAINTS = yes; then
9619               result=no
9620             else
9621               result=yes
9622             fi
9623           else
9624             result=$wxUSE_CONSTRAINTS
9625           fi
9626
9627           { echo "$as_me:$LINENO: result: $result" >&5
9628 echo "${ECHO_T}$result" >&6; }
9629
9630
9631           enablestring=
9632           defaultval=$wxUSE_ALL_FEATURES
9633           if test -z "$defaultval"; then
9634               if test x"$enablestring" = xdisable; then
9635                   defaultval=yes
9636               else
9637                   defaultval=no
9638               fi
9639           fi
9640
9641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9642 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9643           no_cache=0
9644           # Check whether --enable-printarch was given.
9645 if test "${enable_printarch+set}" = set; then
9646   enableval=$enable_printarch;
9647                           if test "$enableval" = yes; then
9648                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9649                           else
9650                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9651                           fi
9652
9653 else
9654
9655                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9656                           if test "x$LINE" != x ; then
9657                             eval "DEFAULT_$LINE"
9658                           else
9659                             no_cache=1
9660                           fi
9661
9662                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9663
9664 fi
9665
9666
9667           eval "$wx_cv_use_printarch"
9668           if test "$no_cache" != 1; then
9669             echo $wx_cv_use_printarch >> ${wx_arg_cache_file}.tmp
9670           fi
9671
9672           if test x"$enablestring" = xdisable; then
9673             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9674               result=no
9675             else
9676               result=yes
9677             fi
9678           else
9679             result=$wxUSE_PRINTING_ARCHITECTURE
9680           fi
9681
9682           { echo "$as_me:$LINENO: result: $result" >&5
9683 echo "${ECHO_T}$result" >&6; }
9684
9685
9686           enablestring=
9687           defaultval=$wxUSE_ALL_FEATURES
9688           if test -z "$defaultval"; then
9689               if test x"$enablestring" = xdisable; then
9690                   defaultval=yes
9691               else
9692                   defaultval=no
9693               fi
9694           fi
9695
9696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9697 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9698           no_cache=0
9699           # Check whether --enable-mdi was given.
9700 if test "${enable_mdi+set}" = set; then
9701   enableval=$enable_mdi;
9702                           if test "$enableval" = yes; then
9703                             wx_cv_use_mdi='wxUSE_MDI=yes'
9704                           else
9705                             wx_cv_use_mdi='wxUSE_MDI=no'
9706                           fi
9707
9708 else
9709
9710                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9711                           if test "x$LINE" != x ; then
9712                             eval "DEFAULT_$LINE"
9713                           else
9714                             no_cache=1
9715                           fi
9716
9717                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9718
9719 fi
9720
9721
9722           eval "$wx_cv_use_mdi"
9723           if test "$no_cache" != 1; then
9724             echo $wx_cv_use_mdi >> ${wx_arg_cache_file}.tmp
9725           fi
9726
9727           if test x"$enablestring" = xdisable; then
9728             if test $wxUSE_MDI = yes; then
9729               result=no
9730             else
9731               result=yes
9732             fi
9733           else
9734             result=$wxUSE_MDI
9735           fi
9736
9737           { echo "$as_me:$LINENO: result: $result" >&5
9738 echo "${ECHO_T}$result" >&6; }
9739
9740
9741           enablestring=
9742           defaultval=$wxUSE_ALL_FEATURES
9743           if test -z "$defaultval"; then
9744               if test x"$enablestring" = xdisable; then
9745                   defaultval=yes
9746               else
9747                   defaultval=no
9748               fi
9749           fi
9750
9751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9752 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9753           no_cache=0
9754           # Check whether --enable-mdidoc was given.
9755 if test "${enable_mdidoc+set}" = set; then
9756   enableval=$enable_mdidoc;
9757                           if test "$enableval" = yes; then
9758                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9759                           else
9760                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9761                           fi
9762
9763 else
9764
9765                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9766                           if test "x$LINE" != x ; then
9767                             eval "DEFAULT_$LINE"
9768                           else
9769                             no_cache=1
9770                           fi
9771
9772                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9773
9774 fi
9775
9776
9777           eval "$wx_cv_use_mdidoc"
9778           if test "$no_cache" != 1; then
9779             echo $wx_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
9780           fi
9781
9782           if test x"$enablestring" = xdisable; then
9783             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9784               result=no
9785             else
9786               result=yes
9787             fi
9788           else
9789             result=$wxUSE_MDI_ARCHITECTURE
9790           fi
9791
9792           { echo "$as_me:$LINENO: result: $result" >&5
9793 echo "${ECHO_T}$result" >&6; }
9794
9795
9796           enablestring=
9797           defaultval=$wxUSE_ALL_FEATURES
9798           if test -z "$defaultval"; then
9799               if test x"$enablestring" = xdisable; then
9800                   defaultval=yes
9801               else
9802                   defaultval=no
9803               fi
9804           fi
9805
9806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9807 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9808           no_cache=0
9809           # Check whether --enable-loggui was given.
9810 if test "${enable_loggui+set}" = set; then
9811   enableval=$enable_loggui;
9812                           if test "$enableval" = yes; then
9813                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9814                           else
9815                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9816                           fi
9817
9818 else
9819
9820                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9821                           if test "x$LINE" != x ; then
9822                             eval "DEFAULT_$LINE"
9823                           else
9824                             no_cache=1
9825                           fi
9826
9827                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9828
9829 fi
9830
9831
9832           eval "$wx_cv_use_loggui"
9833           if test "$no_cache" != 1; then
9834             echo $wx_cv_use_loggui >> ${wx_arg_cache_file}.tmp
9835           fi
9836
9837           if test x"$enablestring" = xdisable; then
9838             if test $wxUSE_LOGGUI = yes; then
9839               result=no
9840             else
9841               result=yes
9842             fi
9843           else
9844             result=$wxUSE_LOGGUI
9845           fi
9846
9847           { echo "$as_me:$LINENO: result: $result" >&5
9848 echo "${ECHO_T}$result" >&6; }
9849
9850
9851           enablestring=
9852           defaultval=$wxUSE_ALL_FEATURES
9853           if test -z "$defaultval"; then
9854               if test x"$enablestring" = xdisable; then
9855                   defaultval=yes
9856               else
9857                   defaultval=no
9858               fi
9859           fi
9860
9861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9862 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9863           no_cache=0
9864           # Check whether --enable-logwin was given.
9865 if test "${enable_logwin+set}" = set; then
9866   enableval=$enable_logwin;
9867                           if test "$enableval" = yes; then
9868                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9869                           else
9870                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9871                           fi
9872
9873 else
9874
9875                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9876                           if test "x$LINE" != x ; then
9877                             eval "DEFAULT_$LINE"
9878                           else
9879                             no_cache=1
9880                           fi
9881
9882                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9883
9884 fi
9885
9886
9887           eval "$wx_cv_use_logwin"
9888           if test "$no_cache" != 1; then
9889             echo $wx_cv_use_logwin >> ${wx_arg_cache_file}.tmp
9890           fi
9891
9892           if test x"$enablestring" = xdisable; then
9893             if test $wxUSE_LOGWINDOW = yes; then
9894               result=no
9895             else
9896               result=yes
9897             fi
9898           else
9899             result=$wxUSE_LOGWINDOW
9900           fi
9901
9902           { echo "$as_me:$LINENO: result: $result" >&5
9903 echo "${ECHO_T}$result" >&6; }
9904
9905
9906           enablestring=
9907           defaultval=$wxUSE_ALL_FEATURES
9908           if test -z "$defaultval"; then
9909               if test x"$enablestring" = xdisable; then
9910                   defaultval=yes
9911               else
9912                   defaultval=no
9913               fi
9914           fi
9915
9916           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9917 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9918           no_cache=0
9919           # Check whether --enable-logdialog was given.
9920 if test "${enable_logdialog+set}" = set; then
9921   enableval=$enable_logdialog;
9922                           if test "$enableval" = yes; then
9923                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9924                           else
9925                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9926                           fi
9927
9928 else
9929
9930                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9931                           if test "x$LINE" != x ; then
9932                             eval "DEFAULT_$LINE"
9933                           else
9934                             no_cache=1
9935                           fi
9936
9937                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9938
9939 fi
9940
9941
9942           eval "$wx_cv_use_logdialog"
9943           if test "$no_cache" != 1; then
9944             echo $wx_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
9945           fi
9946
9947           if test x"$enablestring" = xdisable; then
9948             if test $wxUSE_LOGDIALOG = yes; then
9949               result=no
9950             else
9951               result=yes
9952             fi
9953           else
9954             result=$wxUSE_LOGDIALOG
9955           fi
9956
9957           { echo "$as_me:$LINENO: result: $result" >&5
9958 echo "${ECHO_T}$result" >&6; }
9959
9960
9961           enablestring=
9962           defaultval=$wxUSE_ALL_FEATURES
9963           if test -z "$defaultval"; then
9964               if test x"$enablestring" = xdisable; then
9965                   defaultval=yes
9966               else
9967                   defaultval=no
9968               fi
9969           fi
9970
9971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9972 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9973           no_cache=0
9974           # Check whether --enable-webkit was given.
9975 if test "${enable_webkit+set}" = set; then
9976   enableval=$enable_webkit;
9977                           if test "$enableval" = yes; then
9978                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9979                           else
9980                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9981                           fi
9982
9983 else
9984
9985                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9986                           if test "x$LINE" != x ; then
9987                             eval "DEFAULT_$LINE"
9988                           else
9989                             no_cache=1
9990                           fi
9991
9992                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9993
9994 fi
9995
9996
9997           eval "$wx_cv_use_webkit"
9998           if test "$no_cache" != 1; then
9999             echo $wx_cv_use_webkit >> ${wx_arg_cache_file}.tmp
10000           fi
10001
10002           if test x"$enablestring" = xdisable; then
10003             if test $wxUSE_WEBKIT = yes; then
10004               result=no
10005             else
10006               result=yes
10007             fi
10008           else
10009             result=$wxUSE_WEBKIT
10010           fi
10011
10012           { echo "$as_me:$LINENO: result: $result" >&5
10013 echo "${ECHO_T}$result" >&6; }
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10028           no_cache=0
10029           # Check whether --enable-richtext was given.
10030 if test "${enable_richtext+set}" = set; then
10031   enableval=$enable_richtext;
10032                           if test "$enableval" = yes; then
10033                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10034                           else
10035                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10036                           fi
10037
10038 else
10039
10040                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10041                           if test "x$LINE" != x ; then
10042                             eval "DEFAULT_$LINE"
10043                           else
10044                             no_cache=1
10045                           fi
10046
10047                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10048
10049 fi
10050
10051
10052           eval "$wx_cv_use_richtext"
10053           if test "$no_cache" != 1; then
10054             echo $wx_cv_use_richtext >> ${wx_arg_cache_file}.tmp
10055           fi
10056
10057           if test x"$enablestring" = xdisable; then
10058             if test $wxUSE_RICHTEXT = yes; then
10059               result=no
10060             else
10061               result=yes
10062             fi
10063           else
10064             result=$wxUSE_RICHTEXT
10065           fi
10066
10067           { echo "$as_me:$LINENO: result: $result" >&5
10068 echo "${ECHO_T}$result" >&6; }
10069
10070
10071           enablestring=
10072           defaultval=$wxUSE_ALL_FEATURES
10073           if test -z "$defaultval"; then
10074               if test x"$enablestring" = xdisable; then
10075                   defaultval=yes
10076               else
10077                   defaultval=no
10078               fi
10079           fi
10080
10081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10082 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10083           no_cache=0
10084           # Check whether --enable-graphics_ctx was given.
10085 if test "${enable_graphics_ctx+set}" = set; then
10086   enableval=$enable_graphics_ctx;
10087                           if test "$enableval" = yes; then
10088                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10089                           else
10090                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10091                           fi
10092
10093 else
10094
10095                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10096                           if test "x$LINE" != x ; then
10097                             eval "DEFAULT_$LINE"
10098                           else
10099                             no_cache=1
10100                           fi
10101
10102                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10103
10104 fi
10105
10106
10107           eval "$wx_cv_use_graphics_ctx"
10108           if test "$no_cache" != 1; then
10109             echo $wx_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
10110           fi
10111
10112           if test x"$enablestring" = xdisable; then
10113             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10114               result=no
10115             else
10116               result=yes
10117             fi
10118           else
10119             result=$wxUSE_GRAPHICS_CONTEXT
10120           fi
10121
10122           { echo "$as_me:$LINENO: result: $result" >&5
10123 echo "${ECHO_T}$result" >&6; }
10124
10125
10126           enablestring=
10127           defaultval=$wxUSE_ALL_FEATURES
10128           if test -z "$defaultval"; then
10129               if test x"$enablestring" = xdisable; then
10130                   defaultval=yes
10131               else
10132                   defaultval=no
10133               fi
10134           fi
10135
10136           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10137 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10138           no_cache=0
10139           # Check whether --enable-postscript was given.
10140 if test "${enable_postscript+set}" = set; then
10141   enableval=$enable_postscript;
10142                           if test "$enableval" = yes; then
10143                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10144                           else
10145                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10146                           fi
10147
10148 else
10149
10150                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10151                           if test "x$LINE" != x ; then
10152                             eval "DEFAULT_$LINE"
10153                           else
10154                             no_cache=1
10155                           fi
10156
10157                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10158
10159 fi
10160
10161
10162           eval "$wx_cv_use_postscript"
10163           if test "$no_cache" != 1; then
10164             echo $wx_cv_use_postscript >> ${wx_arg_cache_file}.tmp
10165           fi
10166
10167           if test x"$enablestring" = xdisable; then
10168             if test $wxUSE_POSTSCRIPT = yes; then
10169               result=no
10170             else
10171               result=yes
10172             fi
10173           else
10174             result=$wxUSE_POSTSCRIPT
10175           fi
10176
10177           { echo "$as_me:$LINENO: result: $result" >&5
10178 echo "${ECHO_T}$result" >&6; }
10179
10180
10181           enablestring=
10182           defaultval=$wxUSE_ALL_FEATURES
10183           if test -z "$defaultval"; then
10184               if test x"$enablestring" = xdisable; then
10185                   defaultval=yes
10186               else
10187                   defaultval=no
10188               fi
10189           fi
10190
10191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10192 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10193           no_cache=0
10194           # Check whether --enable-svg was given.
10195 if test "${enable_svg+set}" = set; then
10196   enableval=$enable_svg;
10197                           if test "$enableval" = yes; then
10198                             wx_cv_use_svg='wxUSE_SVG=yes'
10199                           else
10200                             wx_cv_use_svg='wxUSE_SVG=no'
10201                           fi
10202
10203 else
10204
10205                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10206                           if test "x$LINE" != x ; then
10207                             eval "DEFAULT_$LINE"
10208                           else
10209                             no_cache=1
10210                           fi
10211
10212                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10213
10214 fi
10215
10216
10217           eval "$wx_cv_use_svg"
10218           if test "$no_cache" != 1; then
10219             echo $wx_cv_use_svg >> ${wx_arg_cache_file}.tmp
10220           fi
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_SVG = yes; then
10224               result=no
10225             else
10226               result=yes
10227             fi
10228           else
10229             result=$wxUSE_SVG
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236
10237
10238           enablestring=
10239           defaultval=$wxUSE_ALL_FEATURES
10240           if test -z "$defaultval"; then
10241               if test x"$enablestring" = xdisable; then
10242                   defaultval=yes
10243               else
10244                   defaultval=no
10245               fi
10246           fi
10247
10248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10249 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10250           no_cache=0
10251           # Check whether --enable-clipboard was given.
10252 if test "${enable_clipboard+set}" = set; then
10253   enableval=$enable_clipboard;
10254                           if test "$enableval" = yes; then
10255                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10256                           else
10257                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10258                           fi
10259
10260 else
10261
10262                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10263                           if test "x$LINE" != x ; then
10264                             eval "DEFAULT_$LINE"
10265                           else
10266                             no_cache=1
10267                           fi
10268
10269                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10270
10271 fi
10272
10273
10274           eval "$wx_cv_use_clipboard"
10275           if test "$no_cache" != 1; then
10276             echo $wx_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
10277           fi
10278
10279           if test x"$enablestring" = xdisable; then
10280             if test $wxUSE_CLIPBOARD = yes; then
10281               result=no
10282             else
10283               result=yes
10284             fi
10285           else
10286             result=$wxUSE_CLIPBOARD
10287           fi
10288
10289           { echo "$as_me:$LINENO: result: $result" >&5
10290 echo "${ECHO_T}$result" >&6; }
10291
10292
10293           enablestring=
10294           defaultval=$wxUSE_ALL_FEATURES
10295           if test -z "$defaultval"; then
10296               if test x"$enablestring" = xdisable; then
10297                   defaultval=yes
10298               else
10299                   defaultval=no
10300               fi
10301           fi
10302
10303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10304 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10305           no_cache=0
10306           # Check whether --enable-dnd was given.
10307 if test "${enable_dnd+set}" = set; then
10308   enableval=$enable_dnd;
10309                           if test "$enableval" = yes; then
10310                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10311                           else
10312                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10313                           fi
10314
10315 else
10316
10317                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10318                           if test "x$LINE" != x ; then
10319                             eval "DEFAULT_$LINE"
10320                           else
10321                             no_cache=1
10322                           fi
10323
10324                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10325
10326 fi
10327
10328
10329           eval "$wx_cv_use_dnd"
10330           if test "$no_cache" != 1; then
10331             echo $wx_cv_use_dnd >> ${wx_arg_cache_file}.tmp
10332           fi
10333
10334           if test x"$enablestring" = xdisable; then
10335             if test $wxUSE_DRAG_AND_DROP = yes; then
10336               result=no
10337             else
10338               result=yes
10339             fi
10340           else
10341             result=$wxUSE_DRAG_AND_DROP
10342           fi
10343
10344           { echo "$as_me:$LINENO: result: $result" >&5
10345 echo "${ECHO_T}$result" >&6; }
10346
10347
10348           enablestring=
10349           defaultval=$wxUSE_ALL_FEATURES
10350           if test -z "$defaultval"; then
10351               if test x"$enablestring" = xdisable; then
10352                   defaultval=yes
10353               else
10354                   defaultval=no
10355               fi
10356           fi
10357
10358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10359 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10360           no_cache=0
10361           # Check whether --enable-metafile was given.
10362 if test "${enable_metafile+set}" = set; then
10363   enableval=$enable_metafile;
10364                           if test "$enableval" = yes; then
10365                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10366                           else
10367                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10368                           fi
10369
10370 else
10371
10372                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10373                           if test "x$LINE" != x ; then
10374                             eval "DEFAULT_$LINE"
10375                           else
10376                             no_cache=1
10377                           fi
10378
10379                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10380
10381 fi
10382
10383
10384           eval "$wx_cv_use_metafile"
10385           if test "$no_cache" != 1; then
10386             echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10387           fi
10388
10389           if test x"$enablestring" = xdisable; then
10390             if test $wxUSE_METAFILE = yes; then
10391               result=no
10392             else
10393               result=yes
10394             fi
10395           else
10396             result=$wxUSE_METAFILE
10397           fi
10398
10399           { echo "$as_me:$LINENO: result: $result" >&5
10400 echo "${ECHO_T}$result" >&6; }
10401
10402
10403
10404 DEFAULT_wxUSE_CONTROLS=none
10405
10406           enablestring=disable
10407           defaultval=
10408           if test -z "$defaultval"; then
10409               if test x"$enablestring" = xdisable; then
10410                   defaultval=yes
10411               else
10412                   defaultval=no
10413               fi
10414           fi
10415
10416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10417 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10418           no_cache=0
10419           # Check whether --enable-controls was given.
10420 if test "${enable_controls+set}" = set; then
10421   enableval=$enable_controls;
10422                           if test "$enableval" = yes; then
10423                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10424                           else
10425                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10426                           fi
10427
10428 else
10429
10430                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10431                           if test "x$LINE" != x ; then
10432                             eval "DEFAULT_$LINE"
10433                           else
10434                             no_cache=1
10435                           fi
10436
10437                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10438
10439 fi
10440
10441
10442           eval "$wx_cv_use_controls"
10443           if test "$no_cache" != 1; then
10444             echo $wx_cv_use_controls >> ${wx_arg_cache_file}.tmp
10445           fi
10446
10447           if test x"$enablestring" = xdisable; then
10448             if test $wxUSE_CONTROLS = yes; then
10449               result=no
10450             else
10451               result=yes
10452             fi
10453           else
10454             result=$wxUSE_CONTROLS
10455           fi
10456
10457           { echo "$as_me:$LINENO: result: $result" >&5
10458 echo "${ECHO_T}$result" >&6; }
10459
10460
10461 if test "$wxUSE_CONTROLS" = "yes"; then
10462   DEFAULT_wxUSE_ACCEL=yes
10463   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10464   DEFAULT_wxUSE_BMPBUTTON=yes
10465   DEFAULT_wxUSE_BUTTON=yes
10466   DEFAULT_wxUSE_CALCTRL=yes
10467   DEFAULT_wxUSE_CARET=yes
10468   DEFAULT_wxUSE_COMBOBOX=yes
10469   DEFAULT_wxUSE_CHECKBOX=yes
10470   DEFAULT_wxUSE_CHECKLISTBOX=yes
10471   DEFAULT_wxUSE_CHOICE=yes
10472   DEFAULT_wxUSE_CHOICEBOOK=yes
10473   DEFAULT_wxUSE_COLLPANE=yes
10474   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10475   DEFAULT_wxUSE_COMBOBOX=yes
10476   DEFAULT_wxUSE_DATEPICKCTRL=yes
10477   DEFAULT_wxUSE_DISPLAY=yes
10478   DEFAULT_wxUSE_DETECT_SM=yes
10479   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10480   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10481   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10482   DEFAULT_wxUSE_GAUGE=yes
10483   DEFAULT_wxUSE_GRID=yes
10484   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10485   DEFAULT_wxUSE_DATAVIEWCTRL=no
10486   DEFAULT_wxUSE_IMAGLIST=yes
10487   DEFAULT_wxUSE_LISTBOOK=yes
10488   DEFAULT_wxUSE_LISTBOX=yes
10489   DEFAULT_wxUSE_LISTCTRL=yes
10490   DEFAULT_wxUSE_NOTEBOOK=yes
10491   DEFAULT_wxUSE_RADIOBOX=yes
10492   DEFAULT_wxUSE_RADIOBTN=yes
10493   DEFAULT_wxUSE_SASH=yes
10494   DEFAULT_wxUSE_SCROLLBAR=yes
10495   DEFAULT_wxUSE_SEARCHCTRL=yes
10496   DEFAULT_wxUSE_SLIDER=yes
10497   DEFAULT_wxUSE_SPINBTN=yes
10498   DEFAULT_wxUSE_SPINCTRL=yes
10499   DEFAULT_wxUSE_SPLITTER=yes
10500   DEFAULT_wxUSE_STATBMP=yes
10501   DEFAULT_wxUSE_STATBOX=yes
10502   DEFAULT_wxUSE_STATLINE=yes
10503   DEFAULT_wxUSE_STATUSBAR=yes
10504   DEFAULT_wxUSE_TAB_DIALOG=yes
10505   DEFAULT_wxUSE_TOGGLEBTN=yes
10506   DEFAULT_wxUSE_TOOLBAR=yes
10507   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10508   DEFAULT_wxUSE_TOOLTIPS=yes
10509   DEFAULT_wxUSE_TREEBOOK=yes
10510   DEFAULT_wxUSE_TOOLBOOK=yes
10511   DEFAULT_wxUSE_TREECTRL=yes
10512   DEFAULT_wxUSE_POPUPWIN=yes
10513   DEFAULT_wxUSE_TIPWINDOW=yes
10514 elif test "$wxUSE_CONTROLS" = "no"; then
10515   DEFAULT_wxUSE_ACCEL=no
10516   DEFAULT_wxUSE_ANIMATIONCTRL=no
10517   DEFAULT_wxUSE_BMPBUTTON=no
10518   DEFAULT_wxUSE_BUTTON=no
10519   DEFAULT_wxUSE_CALCTRL=no
10520   DEFAULT_wxUSE_CARET=no
10521   DEFAULT_wxUSE_COLLPANE=no
10522   DEFAULT_wxUSE_COMBOBOX=no
10523   DEFAULT_wxUSE_CHECKBOX=no
10524   DEFAULT_wxUSE_CHECKLISTBOX=no
10525   DEFAULT_wxUSE_CHOICE=no
10526   DEFAULT_wxUSE_CHOICEBOOK=no
10527   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10528   DEFAULT_wxUSE_COMBOBOX=no
10529   DEFAULT_wxUSE_DATEPICKCTRL=no
10530   DEFAULT_wxUSE_DISPLAY=no
10531   DEFAULT_wxUSE_DETECT_SM=no
10532   DEFAULT_wxUSE_DIRPICKERCTRL=no
10533   DEFAULT_wxUSE_FILEPICKERCTRL=no
10534   DEFAULT_wxUSE_FONTPICKERCTRL=no
10535   DEFAULT_wxUSE_GAUGE=no
10536   DEFAULT_wxUSE_GRID=no
10537   DEFAULT_wxUSE_HYPERLINKCTRL=no
10538   DEFAULT_wxUSE_DATAVIEWCTRL=no
10539   DEFAULT_wxUSE_IMAGLIST=no
10540   DEFAULT_wxUSE_LISTBOOK=no
10541   DEFAULT_wxUSE_LISTBOX=no
10542   DEFAULT_wxUSE_LISTCTRL=no
10543   DEFAULT_wxUSE_NOTEBOOK=no
10544   DEFAULT_wxUSE_RADIOBOX=no
10545   DEFAULT_wxUSE_RADIOBTN=no
10546   DEFAULT_wxUSE_SASH=no
10547   DEFAULT_wxUSE_SCROLLBAR=no
10548   DEFAULT_wxUSE_SEARCHCTRL=no
10549   DEFAULT_wxUSE_SLIDER=no
10550   DEFAULT_wxUSE_SPINBTN=no
10551   DEFAULT_wxUSE_SPINCTRL=no
10552   DEFAULT_wxUSE_SPLITTER=no
10553   DEFAULT_wxUSE_STATBMP=no
10554   DEFAULT_wxUSE_STATBOX=no
10555   DEFAULT_wxUSE_STATLINE=no
10556   DEFAULT_wxUSE_STATUSBAR=no
10557   DEFAULT_wxUSE_TAB_DIALOG=no
10558   DEFAULT_wxUSE_TOGGLEBTN=no
10559   DEFAULT_wxUSE_TOOLBAR=no
10560   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10561   DEFAULT_wxUSE_TOOLTIPS=no
10562   DEFAULT_wxUSE_TREEBOOK=no
10563   DEFAULT_wxUSE_TOOLBOOK=no
10564   DEFAULT_wxUSE_TREECTRL=no
10565   DEFAULT_wxUSE_POPUPWIN=no
10566   DEFAULT_wxUSE_TIPWINDOW=no
10567 fi
10568
10569
10570           enablestring=
10571           defaultval=$wxUSE_ALL_FEATURES
10572           if test -z "$defaultval"; then
10573               if test x"$enablestring" = xdisable; then
10574                   defaultval=yes
10575               else
10576                   defaultval=no
10577               fi
10578           fi
10579
10580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10581 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10582           no_cache=0
10583           # Check whether --enable-accel was given.
10584 if test "${enable_accel+set}" = set; then
10585   enableval=$enable_accel;
10586                           if test "$enableval" = yes; then
10587                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10588                           else
10589                             wx_cv_use_accel='wxUSE_ACCEL=no'
10590                           fi
10591
10592 else
10593
10594                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10595                           if test "x$LINE" != x ; then
10596                             eval "DEFAULT_$LINE"
10597                           else
10598                             no_cache=1
10599                           fi
10600
10601                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10602
10603 fi
10604
10605
10606           eval "$wx_cv_use_accel"
10607           if test "$no_cache" != 1; then
10608             echo $wx_cv_use_accel >> ${wx_arg_cache_file}.tmp
10609           fi
10610
10611           if test x"$enablestring" = xdisable; then
10612             if test $wxUSE_ACCEL = yes; then
10613               result=no
10614             else
10615               result=yes
10616             fi
10617           else
10618             result=$wxUSE_ACCEL
10619           fi
10620
10621           { echo "$as_me:$LINENO: result: $result" >&5
10622 echo "${ECHO_T}$result" >&6; }
10623
10624
10625           enablestring=
10626           defaultval=$wxUSE_ALL_FEATURES
10627           if test -z "$defaultval"; then
10628               if test x"$enablestring" = xdisable; then
10629                   defaultval=yes
10630               else
10631                   defaultval=no
10632               fi
10633           fi
10634
10635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10636 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10637           no_cache=0
10638           # Check whether --enable-animatectrl was given.
10639 if test "${enable_animatectrl+set}" = set; then
10640   enableval=$enable_animatectrl;
10641                           if test "$enableval" = yes; then
10642                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10643                           else
10644                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10645                           fi
10646
10647 else
10648
10649                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10650                           if test "x$LINE" != x ; then
10651                             eval "DEFAULT_$LINE"
10652                           else
10653                             no_cache=1
10654                           fi
10655
10656                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10657
10658 fi
10659
10660
10661           eval "$wx_cv_use_animatectrl"
10662           if test "$no_cache" != 1; then
10663             echo $wx_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
10664           fi
10665
10666           if test x"$enablestring" = xdisable; then
10667             if test $wxUSE_ANIMATIONCTRL = yes; then
10668               result=no
10669             else
10670               result=yes
10671             fi
10672           else
10673             result=$wxUSE_ANIMATIONCTRL
10674           fi
10675
10676           { echo "$as_me:$LINENO: result: $result" >&5
10677 echo "${ECHO_T}$result" >&6; }
10678
10679
10680           enablestring=
10681           defaultval=$wxUSE_ALL_FEATURES
10682           if test -z "$defaultval"; then
10683               if test x"$enablestring" = xdisable; then
10684                   defaultval=yes
10685               else
10686                   defaultval=no
10687               fi
10688           fi
10689
10690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10691 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10692           no_cache=0
10693           # Check whether --enable-button was given.
10694 if test "${enable_button+set}" = set; then
10695   enableval=$enable_button;
10696                           if test "$enableval" = yes; then
10697                             wx_cv_use_button='wxUSE_BUTTON=yes'
10698                           else
10699                             wx_cv_use_button='wxUSE_BUTTON=no'
10700                           fi
10701
10702 else
10703
10704                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10705                           if test "x$LINE" != x ; then
10706                             eval "DEFAULT_$LINE"
10707                           else
10708                             no_cache=1
10709                           fi
10710
10711                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10712
10713 fi
10714
10715
10716           eval "$wx_cv_use_button"
10717           if test "$no_cache" != 1; then
10718             echo $wx_cv_use_button >> ${wx_arg_cache_file}.tmp
10719           fi
10720
10721           if test x"$enablestring" = xdisable; then
10722             if test $wxUSE_BUTTON = yes; then
10723               result=no
10724             else
10725               result=yes
10726             fi
10727           else
10728             result=$wxUSE_BUTTON
10729           fi
10730
10731           { echo "$as_me:$LINENO: result: $result" >&5
10732 echo "${ECHO_T}$result" >&6; }
10733
10734
10735           enablestring=
10736           defaultval=$wxUSE_ALL_FEATURES
10737           if test -z "$defaultval"; then
10738               if test x"$enablestring" = xdisable; then
10739                   defaultval=yes
10740               else
10741                   defaultval=no
10742               fi
10743           fi
10744
10745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10746 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10747           no_cache=0
10748           # Check whether --enable-bmpbutton was given.
10749 if test "${enable_bmpbutton+set}" = set; then
10750   enableval=$enable_bmpbutton;
10751                           if test "$enableval" = yes; then
10752                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10753                           else
10754                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10755                           fi
10756
10757 else
10758
10759                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10760                           if test "x$LINE" != x ; then
10761                             eval "DEFAULT_$LINE"
10762                           else
10763                             no_cache=1
10764                           fi
10765
10766                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10767
10768 fi
10769
10770
10771           eval "$wx_cv_use_bmpbutton"
10772           if test "$no_cache" != 1; then
10773             echo $wx_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
10774           fi
10775
10776           if test x"$enablestring" = xdisable; then
10777             if test $wxUSE_BMPBUTTON = yes; then
10778               result=no
10779             else
10780               result=yes
10781             fi
10782           else
10783             result=$wxUSE_BMPBUTTON
10784           fi
10785
10786           { echo "$as_me:$LINENO: result: $result" >&5
10787 echo "${ECHO_T}$result" >&6; }
10788
10789
10790           enablestring=
10791           defaultval=$wxUSE_ALL_FEATURES
10792           if test -z "$defaultval"; then
10793               if test x"$enablestring" = xdisable; then
10794                   defaultval=yes
10795               else
10796                   defaultval=no
10797               fi
10798           fi
10799
10800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10801 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10802           no_cache=0
10803           # Check whether --enable-bmpcombobox was given.
10804 if test "${enable_bmpcombobox+set}" = set; then
10805   enableval=$enable_bmpcombobox;
10806                           if test "$enableval" = yes; then
10807                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10808                           else
10809                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10810                           fi
10811
10812 else
10813
10814                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10815                           if test "x$LINE" != x ; then
10816                             eval "DEFAULT_$LINE"
10817                           else
10818                             no_cache=1
10819                           fi
10820
10821                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10822
10823 fi
10824
10825
10826           eval "$wx_cv_use_bmpcombobox"
10827           if test "$no_cache" != 1; then
10828             echo $wx_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
10829           fi
10830
10831           if test x"$enablestring" = xdisable; then
10832             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10833               result=no
10834             else
10835               result=yes
10836             fi
10837           else
10838             result=$wxUSE_BITMAPCOMBOBOX
10839           fi
10840
10841           { echo "$as_me:$LINENO: result: $result" >&5
10842 echo "${ECHO_T}$result" >&6; }
10843
10844
10845           enablestring=
10846           defaultval=$wxUSE_ALL_FEATURES
10847           if test -z "$defaultval"; then
10848               if test x"$enablestring" = xdisable; then
10849                   defaultval=yes
10850               else
10851                   defaultval=no
10852               fi
10853           fi
10854
10855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10856 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10857           no_cache=0
10858           # Check whether --enable-calendar was given.
10859 if test "${enable_calendar+set}" = set; then
10860   enableval=$enable_calendar;
10861                           if test "$enableval" = yes; then
10862                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10863                           else
10864                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10865                           fi
10866
10867 else
10868
10869                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10870                           if test "x$LINE" != x ; then
10871                             eval "DEFAULT_$LINE"
10872                           else
10873                             no_cache=1
10874                           fi
10875
10876                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10877
10878 fi
10879
10880
10881           eval "$wx_cv_use_calendar"
10882           if test "$no_cache" != 1; then
10883             echo $wx_cv_use_calendar >> ${wx_arg_cache_file}.tmp
10884           fi
10885
10886           if test x"$enablestring" = xdisable; then
10887             if test $wxUSE_CALCTRL = yes; then
10888               result=no
10889             else
10890               result=yes
10891             fi
10892           else
10893             result=$wxUSE_CALCTRL
10894           fi
10895
10896           { echo "$as_me:$LINENO: result: $result" >&5
10897 echo "${ECHO_T}$result" >&6; }
10898
10899
10900           enablestring=
10901           defaultval=$wxUSE_ALL_FEATURES
10902           if test -z "$defaultval"; then
10903               if test x"$enablestring" = xdisable; then
10904                   defaultval=yes
10905               else
10906                   defaultval=no
10907               fi
10908           fi
10909
10910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10911 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10912           no_cache=0
10913           # Check whether --enable-caret was given.
10914 if test "${enable_caret+set}" = set; then
10915   enableval=$enable_caret;
10916                           if test "$enableval" = yes; then
10917                             wx_cv_use_caret='wxUSE_CARET=yes'
10918                           else
10919                             wx_cv_use_caret='wxUSE_CARET=no'
10920                           fi
10921
10922 else
10923
10924                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10925                           if test "x$LINE" != x ; then
10926                             eval "DEFAULT_$LINE"
10927                           else
10928                             no_cache=1
10929                           fi
10930
10931                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10932
10933 fi
10934
10935
10936           eval "$wx_cv_use_caret"
10937           if test "$no_cache" != 1; then
10938             echo $wx_cv_use_caret >> ${wx_arg_cache_file}.tmp
10939           fi
10940
10941           if test x"$enablestring" = xdisable; then
10942             if test $wxUSE_CARET = yes; then
10943               result=no
10944             else
10945               result=yes
10946             fi
10947           else
10948             result=$wxUSE_CARET
10949           fi
10950
10951           { echo "$as_me:$LINENO: result: $result" >&5
10952 echo "${ECHO_T}$result" >&6; }
10953
10954
10955           enablestring=
10956           defaultval=$wxUSE_ALL_FEATURES
10957           if test -z "$defaultval"; then
10958               if test x"$enablestring" = xdisable; then
10959                   defaultval=yes
10960               else
10961                   defaultval=no
10962               fi
10963           fi
10964
10965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10966 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10967           no_cache=0
10968           # Check whether --enable-checkbox was given.
10969 if test "${enable_checkbox+set}" = set; then
10970   enableval=$enable_checkbox;
10971                           if test "$enableval" = yes; then
10972                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10973                           else
10974                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10975                           fi
10976
10977 else
10978
10979                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10980                           if test "x$LINE" != x ; then
10981                             eval "DEFAULT_$LINE"
10982                           else
10983                             no_cache=1
10984                           fi
10985
10986                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10987
10988 fi
10989
10990
10991           eval "$wx_cv_use_checkbox"
10992           if test "$no_cache" != 1; then
10993             echo $wx_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
10994           fi
10995
10996           if test x"$enablestring" = xdisable; then
10997             if test $wxUSE_CHECKBOX = yes; then
10998               result=no
10999             else
11000               result=yes
11001             fi
11002           else
11003             result=$wxUSE_CHECKBOX
11004           fi
11005
11006           { echo "$as_me:$LINENO: result: $result" >&5
11007 echo "${ECHO_T}$result" >&6; }
11008
11009
11010           enablestring=
11011           defaultval=$wxUSE_ALL_FEATURES
11012           if test -z "$defaultval"; then
11013               if test x"$enablestring" = xdisable; then
11014                   defaultval=yes
11015               else
11016                   defaultval=no
11017               fi
11018           fi
11019
11020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11021 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11022           no_cache=0
11023           # Check whether --enable-checklst was given.
11024 if test "${enable_checklst+set}" = set; then
11025   enableval=$enable_checklst;
11026                           if test "$enableval" = yes; then
11027                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11028                           else
11029                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11030                           fi
11031
11032 else
11033
11034                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11035                           if test "x$LINE" != x ; then
11036                             eval "DEFAULT_$LINE"
11037                           else
11038                             no_cache=1
11039                           fi
11040
11041                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11042
11043 fi
11044
11045
11046           eval "$wx_cv_use_checklst"
11047           if test "$no_cache" != 1; then
11048             echo $wx_cv_use_checklst >> ${wx_arg_cache_file}.tmp
11049           fi
11050
11051           if test x"$enablestring" = xdisable; then
11052             if test $wxUSE_CHECKLST = yes; then
11053               result=no
11054             else
11055               result=yes
11056             fi
11057           else
11058             result=$wxUSE_CHECKLST
11059           fi
11060
11061           { echo "$as_me:$LINENO: result: $result" >&5
11062 echo "${ECHO_T}$result" >&6; }
11063
11064
11065           enablestring=
11066           defaultval=$wxUSE_ALL_FEATURES
11067           if test -z "$defaultval"; then
11068               if test x"$enablestring" = xdisable; then
11069                   defaultval=yes
11070               else
11071                   defaultval=no
11072               fi
11073           fi
11074
11075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11076 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11077           no_cache=0
11078           # Check whether --enable-choice was given.
11079 if test "${enable_choice+set}" = set; then
11080   enableval=$enable_choice;
11081                           if test "$enableval" = yes; then
11082                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11083                           else
11084                             wx_cv_use_choice='wxUSE_CHOICE=no'
11085                           fi
11086
11087 else
11088
11089                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11090                           if test "x$LINE" != x ; then
11091                             eval "DEFAULT_$LINE"
11092                           else
11093                             no_cache=1
11094                           fi
11095
11096                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11097
11098 fi
11099
11100
11101           eval "$wx_cv_use_choice"
11102           if test "$no_cache" != 1; then
11103             echo $wx_cv_use_choice >> ${wx_arg_cache_file}.tmp
11104           fi
11105
11106           if test x"$enablestring" = xdisable; then
11107             if test $wxUSE_CHOICE = yes; then
11108               result=no
11109             else
11110               result=yes
11111             fi
11112           else
11113             result=$wxUSE_CHOICE
11114           fi
11115
11116           { echo "$as_me:$LINENO: result: $result" >&5
11117 echo "${ECHO_T}$result" >&6; }
11118
11119
11120           enablestring=
11121           defaultval=$wxUSE_ALL_FEATURES
11122           if test -z "$defaultval"; then
11123               if test x"$enablestring" = xdisable; then
11124                   defaultval=yes
11125               else
11126                   defaultval=no
11127               fi
11128           fi
11129
11130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11131 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11132           no_cache=0
11133           # Check whether --enable-choicebook was given.
11134 if test "${enable_choicebook+set}" = set; then
11135   enableval=$enable_choicebook;
11136                           if test "$enableval" = yes; then
11137                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11138                           else
11139                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11140                           fi
11141
11142 else
11143
11144                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11145                           if test "x$LINE" != x ; then
11146                             eval "DEFAULT_$LINE"
11147                           else
11148                             no_cache=1
11149                           fi
11150
11151                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11152
11153 fi
11154
11155
11156           eval "$wx_cv_use_choicebook"
11157           if test "$no_cache" != 1; then
11158             echo $wx_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
11159           fi
11160
11161           if test x"$enablestring" = xdisable; then
11162             if test $wxUSE_CHOICEBOOK = yes; then
11163               result=no
11164             else
11165               result=yes
11166             fi
11167           else
11168             result=$wxUSE_CHOICEBOOK
11169           fi
11170
11171           { echo "$as_me:$LINENO: result: $result" >&5
11172 echo "${ECHO_T}$result" >&6; }
11173
11174
11175           enablestring=
11176           defaultval=$wxUSE_ALL_FEATURES
11177           if test -z "$defaultval"; then
11178               if test x"$enablestring" = xdisable; then
11179                   defaultval=yes
11180               else
11181                   defaultval=no
11182               fi
11183           fi
11184
11185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11186 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11187           no_cache=0
11188           # Check whether --enable-collpane was given.
11189 if test "${enable_collpane+set}" = set; then
11190   enableval=$enable_collpane;
11191                           if test "$enableval" = yes; then
11192                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11193                           else
11194                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11195                           fi
11196
11197 else
11198
11199                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11200                           if test "x$LINE" != x ; then
11201                             eval "DEFAULT_$LINE"
11202                           else
11203                             no_cache=1
11204                           fi
11205
11206                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11207
11208 fi
11209
11210
11211           eval "$wx_cv_use_collpane"
11212           if test "$no_cache" != 1; then
11213             echo $wx_cv_use_collpane >> ${wx_arg_cache_file}.tmp
11214           fi
11215
11216           if test x"$enablestring" = xdisable; then
11217             if test $wxUSE_COLLPANE = yes; then
11218               result=no
11219             else
11220               result=yes
11221             fi
11222           else
11223             result=$wxUSE_COLLPANE
11224           fi
11225
11226           { echo "$as_me:$LINENO: result: $result" >&5
11227 echo "${ECHO_T}$result" >&6; }
11228
11229
11230           enablestring=
11231           defaultval=$wxUSE_ALL_FEATURES
11232           if test -z "$defaultval"; then
11233               if test x"$enablestring" = xdisable; then
11234                   defaultval=yes
11235               else
11236                   defaultval=no
11237               fi
11238           fi
11239
11240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11241 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11242           no_cache=0
11243           # Check whether --enable-colourpicker was given.
11244 if test "${enable_colourpicker+set}" = set; then
11245   enableval=$enable_colourpicker;
11246                           if test "$enableval" = yes; then
11247                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11248                           else
11249                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11250                           fi
11251
11252 else
11253
11254                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11255                           if test "x$LINE" != x ; then
11256                             eval "DEFAULT_$LINE"
11257                           else
11258                             no_cache=1
11259                           fi
11260
11261                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11262
11263 fi
11264
11265
11266           eval "$wx_cv_use_colourpicker"
11267           if test "$no_cache" != 1; then
11268             echo $wx_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
11269           fi
11270
11271           if test x"$enablestring" = xdisable; then
11272             if test $wxUSE_COLOURPICKERCTRL = yes; then
11273               result=no
11274             else
11275               result=yes
11276             fi
11277           else
11278             result=$wxUSE_COLOURPICKERCTRL
11279           fi
11280
11281           { echo "$as_me:$LINENO: result: $result" >&5
11282 echo "${ECHO_T}$result" >&6; }
11283
11284
11285           enablestring=
11286           defaultval=$wxUSE_ALL_FEATURES
11287           if test -z "$defaultval"; then
11288               if test x"$enablestring" = xdisable; then
11289                   defaultval=yes
11290               else
11291                   defaultval=no
11292               fi
11293           fi
11294
11295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11296 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11297           no_cache=0
11298           # Check whether --enable-combobox was given.
11299 if test "${enable_combobox+set}" = set; then
11300   enableval=$enable_combobox;
11301                           if test "$enableval" = yes; then
11302                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11303                           else
11304                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11305                           fi
11306
11307 else
11308
11309                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11310                           if test "x$LINE" != x ; then
11311                             eval "DEFAULT_$LINE"
11312                           else
11313                             no_cache=1
11314                           fi
11315
11316                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11317
11318 fi
11319
11320
11321           eval "$wx_cv_use_combobox"
11322           if test "$no_cache" != 1; then
11323             echo $wx_cv_use_combobox >> ${wx_arg_cache_file}.tmp
11324           fi
11325
11326           if test x"$enablestring" = xdisable; then
11327             if test $wxUSE_COMBOBOX = yes; then
11328               result=no
11329             else
11330               result=yes
11331             fi
11332           else
11333             result=$wxUSE_COMBOBOX
11334           fi
11335
11336           { echo "$as_me:$LINENO: result: $result" >&5
11337 echo "${ECHO_T}$result" >&6; }
11338
11339
11340           enablestring=
11341           defaultval=$wxUSE_ALL_FEATURES
11342           if test -z "$defaultval"; then
11343               if test x"$enablestring" = xdisable; then
11344                   defaultval=yes
11345               else
11346                   defaultval=no
11347               fi
11348           fi
11349
11350           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11351 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11352           no_cache=0
11353           # Check whether --enable-comboctrl was given.
11354 if test "${enable_comboctrl+set}" = set; then
11355   enableval=$enable_comboctrl;
11356                           if test "$enableval" = yes; then
11357                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11358                           else
11359                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11360                           fi
11361
11362 else
11363
11364                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11365                           if test "x$LINE" != x ; then
11366                             eval "DEFAULT_$LINE"
11367                           else
11368                             no_cache=1
11369                           fi
11370
11371                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11372
11373 fi
11374
11375
11376           eval "$wx_cv_use_comboctrl"
11377           if test "$no_cache" != 1; then
11378             echo $wx_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
11379           fi
11380
11381           if test x"$enablestring" = xdisable; then
11382             if test $wxUSE_COMBOCTRL = yes; then
11383               result=no
11384             else
11385               result=yes
11386             fi
11387           else
11388             result=$wxUSE_COMBOCTRL
11389           fi
11390
11391           { echo "$as_me:$LINENO: result: $result" >&5
11392 echo "${ECHO_T}$result" >&6; }
11393
11394
11395           enablestring=
11396           defaultval=$wxUSE_ALL_FEATURES
11397           if test -z "$defaultval"; then
11398               if test x"$enablestring" = xdisable; then
11399                   defaultval=yes
11400               else
11401                   defaultval=no
11402               fi
11403           fi
11404
11405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11406 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11407           no_cache=0
11408           # Check whether --enable-datepick was given.
11409 if test "${enable_datepick+set}" = set; then
11410   enableval=$enable_datepick;
11411                           if test "$enableval" = yes; then
11412                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11413                           else
11414                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11415                           fi
11416
11417 else
11418
11419                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11420                           if test "x$LINE" != x ; then
11421                             eval "DEFAULT_$LINE"
11422                           else
11423                             no_cache=1
11424                           fi
11425
11426                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11427
11428 fi
11429
11430
11431           eval "$wx_cv_use_datepick"
11432           if test "$no_cache" != 1; then
11433             echo $wx_cv_use_datepick >> ${wx_arg_cache_file}.tmp
11434           fi
11435
11436           if test x"$enablestring" = xdisable; then
11437             if test $wxUSE_DATEPICKCTRL = yes; then
11438               result=no
11439             else
11440               result=yes
11441             fi
11442           else
11443             result=$wxUSE_DATEPICKCTRL
11444           fi
11445
11446           { echo "$as_me:$LINENO: result: $result" >&5
11447 echo "${ECHO_T}$result" >&6; }
11448
11449
11450           enablestring=
11451           defaultval=$wxUSE_ALL_FEATURES
11452           if test -z "$defaultval"; then
11453               if test x"$enablestring" = xdisable; then
11454                   defaultval=yes
11455               else
11456                   defaultval=no
11457               fi
11458           fi
11459
11460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11461 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11462           no_cache=0
11463           # Check whether --enable-dirpicker was given.
11464 if test "${enable_dirpicker+set}" = set; then
11465   enableval=$enable_dirpicker;
11466                           if test "$enableval" = yes; then
11467                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11468                           else
11469                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11470                           fi
11471
11472 else
11473
11474                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11475                           if test "x$LINE" != x ; then
11476                             eval "DEFAULT_$LINE"
11477                           else
11478                             no_cache=1
11479                           fi
11480
11481                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11482
11483 fi
11484
11485
11486           eval "$wx_cv_use_dirpicker"
11487           if test "$no_cache" != 1; then
11488             echo $wx_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
11489           fi
11490
11491           if test x"$enablestring" = xdisable; then
11492             if test $wxUSE_DIRPICKERCTRL = yes; then
11493               result=no
11494             else
11495               result=yes
11496             fi
11497           else
11498             result=$wxUSE_DIRPICKERCTRL
11499           fi
11500
11501           { echo "$as_me:$LINENO: result: $result" >&5
11502 echo "${ECHO_T}$result" >&6; }
11503
11504
11505           enablestring=
11506           defaultval=$wxUSE_ALL_FEATURES
11507           if test -z "$defaultval"; then
11508               if test x"$enablestring" = xdisable; then
11509                   defaultval=yes
11510               else
11511                   defaultval=no
11512               fi
11513           fi
11514
11515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11516 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11517           no_cache=0
11518           # Check whether --enable-display was given.
11519 if test "${enable_display+set}" = set; then
11520   enableval=$enable_display;
11521                           if test "$enableval" = yes; then
11522                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11523                           else
11524                             wx_cv_use_display='wxUSE_DISPLAY=no'
11525                           fi
11526
11527 else
11528
11529                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11530                           if test "x$LINE" != x ; then
11531                             eval "DEFAULT_$LINE"
11532                           else
11533                             no_cache=1
11534                           fi
11535
11536                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11537
11538 fi
11539
11540
11541           eval "$wx_cv_use_display"
11542           if test "$no_cache" != 1; then
11543             echo $wx_cv_use_display >> ${wx_arg_cache_file}.tmp
11544           fi
11545
11546           if test x"$enablestring" = xdisable; then
11547             if test $wxUSE_DISPLAY = yes; then
11548               result=no
11549             else
11550               result=yes
11551             fi
11552           else
11553             result=$wxUSE_DISPLAY
11554           fi
11555
11556           { echo "$as_me:$LINENO: result: $result" >&5
11557 echo "${ECHO_T}$result" >&6; }
11558
11559
11560           enablestring=
11561           defaultval=$wxUSE_ALL_FEATURES
11562           if test -z "$defaultval"; then
11563               if test x"$enablestring" = xdisable; then
11564                   defaultval=yes
11565               else
11566                   defaultval=no
11567               fi
11568           fi
11569
11570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11571 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11572           no_cache=0
11573           # Check whether --enable-detect_sm was given.
11574 if test "${enable_detect_sm+set}" = set; then
11575   enableval=$enable_detect_sm;
11576                           if test "$enableval" = yes; then
11577                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11578                           else
11579                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11580                           fi
11581
11582 else
11583
11584                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11585                           if test "x$LINE" != x ; then
11586                             eval "DEFAULT_$LINE"
11587                           else
11588                             no_cache=1
11589                           fi
11590
11591                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11592
11593 fi
11594
11595
11596           eval "$wx_cv_use_detect_sm"
11597           if test "$no_cache" != 1; then
11598             echo $wx_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
11599           fi
11600
11601           if test x"$enablestring" = xdisable; then
11602             if test $wxUSE_DETECT_SM = yes; then
11603               result=no
11604             else
11605               result=yes
11606             fi
11607           else
11608             result=$wxUSE_DETECT_SM
11609           fi
11610
11611           { echo "$as_me:$LINENO: result: $result" >&5
11612 echo "${ECHO_T}$result" >&6; }
11613
11614
11615           enablestring=
11616           defaultval=$wxUSE_ALL_FEATURES
11617           if test -z "$defaultval"; then
11618               if test x"$enablestring" = xdisable; then
11619                   defaultval=yes
11620               else
11621                   defaultval=no
11622               fi
11623           fi
11624
11625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11626 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11627           no_cache=0
11628           # Check whether --enable-editablebox was given.
11629 if test "${enable_editablebox+set}" = set; then
11630   enableval=$enable_editablebox;
11631                           if test "$enableval" = yes; then
11632                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11633                           else
11634                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11635                           fi
11636
11637 else
11638
11639                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11640                           if test "x$LINE" != x ; then
11641                             eval "DEFAULT_$LINE"
11642                           else
11643                             no_cache=1
11644                           fi
11645
11646                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11647
11648 fi
11649
11650
11651           eval "$wx_cv_use_editablebox"
11652           if test "$no_cache" != 1; then
11653             echo $wx_cv_use_editablebox >> ${wx_arg_cache_file}.tmp
11654           fi
11655
11656           if test x"$enablestring" = xdisable; then
11657             if test $wxUSE_EDITABLELISTBOX = yes; then
11658               result=no
11659             else
11660               result=yes
11661             fi
11662           else
11663             result=$wxUSE_EDITABLELISTBOX
11664           fi
11665
11666           { echo "$as_me:$LINENO: result: $result" >&5
11667 echo "${ECHO_T}$result" >&6; }
11668
11669
11670           enablestring=
11671           defaultval=$wxUSE_ALL_FEATURES
11672           if test -z "$defaultval"; then
11673               if test x"$enablestring" = xdisable; then
11674                   defaultval=yes
11675               else
11676                   defaultval=no
11677               fi
11678           fi
11679
11680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11681 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11682           no_cache=0
11683           # Check whether --enable-filepicker was given.
11684 if test "${enable_filepicker+set}" = set; then
11685   enableval=$enable_filepicker;
11686                           if test "$enableval" = yes; then
11687                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11688                           else
11689                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11690                           fi
11691
11692 else
11693
11694                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11695                           if test "x$LINE" != x ; then
11696                             eval "DEFAULT_$LINE"
11697                           else
11698                             no_cache=1
11699                           fi
11700
11701                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11702
11703 fi
11704
11705
11706           eval "$wx_cv_use_filepicker"
11707           if test "$no_cache" != 1; then
11708             echo $wx_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
11709           fi
11710
11711           if test x"$enablestring" = xdisable; then
11712             if test $wxUSE_FILEPICKERCTRL = yes; then
11713               result=no
11714             else
11715               result=yes
11716             fi
11717           else
11718             result=$wxUSE_FILEPICKERCTRL
11719           fi
11720
11721           { echo "$as_me:$LINENO: result: $result" >&5
11722 echo "${ECHO_T}$result" >&6; }
11723
11724
11725           enablestring=
11726           defaultval=$wxUSE_ALL_FEATURES
11727           if test -z "$defaultval"; then
11728               if test x"$enablestring" = xdisable; then
11729                   defaultval=yes
11730               else
11731                   defaultval=no
11732               fi
11733           fi
11734
11735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11736 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11737           no_cache=0
11738           # Check whether --enable-fontpicker was given.
11739 if test "${enable_fontpicker+set}" = set; then
11740   enableval=$enable_fontpicker;
11741                           if test "$enableval" = yes; then
11742                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11743                           else
11744                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11745                           fi
11746
11747 else
11748
11749                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11750                           if test "x$LINE" != x ; then
11751                             eval "DEFAULT_$LINE"
11752                           else
11753                             no_cache=1
11754                           fi
11755
11756                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11757
11758 fi
11759
11760
11761           eval "$wx_cv_use_fontpicker"
11762           if test "$no_cache" != 1; then
11763             echo $wx_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
11764           fi
11765
11766           if test x"$enablestring" = xdisable; then
11767             if test $wxUSE_FONTPICKERCTRL = yes; then
11768               result=no
11769             else
11770               result=yes
11771             fi
11772           else
11773             result=$wxUSE_FONTPICKERCTRL
11774           fi
11775
11776           { echo "$as_me:$LINENO: result: $result" >&5
11777 echo "${ECHO_T}$result" >&6; }
11778
11779
11780           enablestring=
11781           defaultval=$wxUSE_ALL_FEATURES
11782           if test -z "$defaultval"; then
11783               if test x"$enablestring" = xdisable; then
11784                   defaultval=yes
11785               else
11786                   defaultval=no
11787               fi
11788           fi
11789
11790           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11791 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11792           no_cache=0
11793           # Check whether --enable-gauge was given.
11794 if test "${enable_gauge+set}" = set; then
11795   enableval=$enable_gauge;
11796                           if test "$enableval" = yes; then
11797                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11798                           else
11799                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11800                           fi
11801
11802 else
11803
11804                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11805                           if test "x$LINE" != x ; then
11806                             eval "DEFAULT_$LINE"
11807                           else
11808                             no_cache=1
11809                           fi
11810
11811                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11812
11813 fi
11814
11815
11816           eval "$wx_cv_use_gauge"
11817           if test "$no_cache" != 1; then
11818             echo $wx_cv_use_gauge >> ${wx_arg_cache_file}.tmp
11819           fi
11820
11821           if test x"$enablestring" = xdisable; then
11822             if test $wxUSE_GAUGE = yes; then
11823               result=no
11824             else
11825               result=yes
11826             fi
11827           else
11828             result=$wxUSE_GAUGE
11829           fi
11830
11831           { echo "$as_me:$LINENO: result: $result" >&5
11832 echo "${ECHO_T}$result" >&6; }
11833
11834
11835           enablestring=
11836           defaultval=$wxUSE_ALL_FEATURES
11837           if test -z "$defaultval"; then
11838               if test x"$enablestring" = xdisable; then
11839                   defaultval=yes
11840               else
11841                   defaultval=no
11842               fi
11843           fi
11844
11845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11846 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11847           no_cache=0
11848           # Check whether --enable-grid was given.
11849 if test "${enable_grid+set}" = set; then
11850   enableval=$enable_grid;
11851                           if test "$enableval" = yes; then
11852                             wx_cv_use_grid='wxUSE_GRID=yes'
11853                           else
11854                             wx_cv_use_grid='wxUSE_GRID=no'
11855                           fi
11856
11857 else
11858
11859                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11860                           if test "x$LINE" != x ; then
11861                             eval "DEFAULT_$LINE"
11862                           else
11863                             no_cache=1
11864                           fi
11865
11866                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11867
11868 fi
11869
11870
11871           eval "$wx_cv_use_grid"
11872           if test "$no_cache" != 1; then
11873             echo $wx_cv_use_grid >> ${wx_arg_cache_file}.tmp
11874           fi
11875
11876           if test x"$enablestring" = xdisable; then
11877             if test $wxUSE_GRID = yes; then
11878               result=no
11879             else
11880               result=yes
11881             fi
11882           else
11883             result=$wxUSE_GRID
11884           fi
11885
11886           { echo "$as_me:$LINENO: result: $result" >&5
11887 echo "${ECHO_T}$result" >&6; }
11888
11889
11890           enablestring=
11891           defaultval=$wxUSE_ALL_FEATURES
11892           if test -z "$defaultval"; then
11893               if test x"$enablestring" = xdisable; then
11894                   defaultval=yes
11895               else
11896                   defaultval=no
11897               fi
11898           fi
11899
11900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11901 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11902           no_cache=0
11903           # Check whether --enable-dataviewctrl was given.
11904 if test "${enable_dataviewctrl+set}" = set; then
11905   enableval=$enable_dataviewctrl;
11906                           if test "$enableval" = yes; then
11907                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11908                           else
11909                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11910                           fi
11911
11912 else
11913
11914                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11915                           if test "x$LINE" != x ; then
11916                             eval "DEFAULT_$LINE"
11917                           else
11918                             no_cache=1
11919                           fi
11920
11921                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11922
11923 fi
11924
11925
11926           eval "$wx_cv_use_dataviewctrl"
11927           if test "$no_cache" != 1; then
11928             echo $wx_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
11929           fi
11930
11931           if test x"$enablestring" = xdisable; then
11932             if test $wxUSE_DATAVIEWCTRL = yes; then
11933               result=no
11934             else
11935               result=yes
11936             fi
11937           else
11938             result=$wxUSE_DATAVIEWCTRL
11939           fi
11940
11941           { echo "$as_me:$LINENO: result: $result" >&5
11942 echo "${ECHO_T}$result" >&6; }
11943
11944
11945           enablestring=
11946           defaultval=$wxUSE_ALL_FEATURES
11947           if test -z "$defaultval"; then
11948               if test x"$enablestring" = xdisable; then
11949                   defaultval=yes
11950               else
11951                   defaultval=no
11952               fi
11953           fi
11954
11955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11956 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11957           no_cache=0
11958           # Check whether --enable-hyperlink was given.
11959 if test "${enable_hyperlink+set}" = set; then
11960   enableval=$enable_hyperlink;
11961                           if test "$enableval" = yes; then
11962                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11963                           else
11964                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11965                           fi
11966
11967 else
11968
11969                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11970                           if test "x$LINE" != x ; then
11971                             eval "DEFAULT_$LINE"
11972                           else
11973                             no_cache=1
11974                           fi
11975
11976                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11977
11978 fi
11979
11980
11981           eval "$wx_cv_use_hyperlink"
11982           if test "$no_cache" != 1; then
11983             echo $wx_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
11984           fi
11985
11986           if test x"$enablestring" = xdisable; then
11987             if test $wxUSE_HYPERLINKCTRL = yes; then
11988               result=no
11989             else
11990               result=yes
11991             fi
11992           else
11993             result=$wxUSE_HYPERLINKCTRL
11994           fi
11995
11996           { echo "$as_me:$LINENO: result: $result" >&5
11997 echo "${ECHO_T}$result" >&6; }
11998
11999
12000           enablestring=
12001           defaultval=$wxUSE_ALL_FEATURES
12002           if test -z "$defaultval"; then
12003               if test x"$enablestring" = xdisable; then
12004                   defaultval=yes
12005               else
12006                   defaultval=no
12007               fi
12008           fi
12009
12010           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12011 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12012           no_cache=0
12013           # Check whether --enable-imaglist was given.
12014 if test "${enable_imaglist+set}" = set; then
12015   enableval=$enable_imaglist;
12016                           if test "$enableval" = yes; then
12017                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12018                           else
12019                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12020                           fi
12021
12022 else
12023
12024                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12025                           if test "x$LINE" != x ; then
12026                             eval "DEFAULT_$LINE"
12027                           else
12028                             no_cache=1
12029                           fi
12030
12031                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12032
12033 fi
12034
12035
12036           eval "$wx_cv_use_imaglist"
12037           if test "$no_cache" != 1; then
12038             echo $wx_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
12039           fi
12040
12041           if test x"$enablestring" = xdisable; then
12042             if test $wxUSE_IMAGLIST = yes; then
12043               result=no
12044             else
12045               result=yes
12046             fi
12047           else
12048             result=$wxUSE_IMAGLIST
12049           fi
12050
12051           { echo "$as_me:$LINENO: result: $result" >&5
12052 echo "${ECHO_T}$result" >&6; }
12053
12054
12055           enablestring=
12056           defaultval=$wxUSE_ALL_FEATURES
12057           if test -z "$defaultval"; then
12058               if test x"$enablestring" = xdisable; then
12059                   defaultval=yes
12060               else
12061                   defaultval=no
12062               fi
12063           fi
12064
12065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12066 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12067           no_cache=0
12068           # Check whether --enable-listbook was given.
12069 if test "${enable_listbook+set}" = set; then
12070   enableval=$enable_listbook;
12071                           if test "$enableval" = yes; then
12072                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12073                           else
12074                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12075                           fi
12076
12077 else
12078
12079                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12080                           if test "x$LINE" != x ; then
12081                             eval "DEFAULT_$LINE"
12082                           else
12083                             no_cache=1
12084                           fi
12085
12086                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12087
12088 fi
12089
12090
12091           eval "$wx_cv_use_listbook"
12092           if test "$no_cache" != 1; then
12093             echo $wx_cv_use_listbook >> ${wx_arg_cache_file}.tmp
12094           fi
12095
12096           if test x"$enablestring" = xdisable; then
12097             if test $wxUSE_LISTBOOK = yes; then
12098               result=no
12099             else
12100               result=yes
12101             fi
12102           else
12103             result=$wxUSE_LISTBOOK
12104           fi
12105
12106           { echo "$as_me:$LINENO: result: $result" >&5
12107 echo "${ECHO_T}$result" >&6; }
12108
12109
12110           enablestring=
12111           defaultval=$wxUSE_ALL_FEATURES
12112           if test -z "$defaultval"; then
12113               if test x"$enablestring" = xdisable; then
12114                   defaultval=yes
12115               else
12116                   defaultval=no
12117               fi
12118           fi
12119
12120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12121 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12122           no_cache=0
12123           # Check whether --enable-listbox was given.
12124 if test "${enable_listbox+set}" = set; then
12125   enableval=$enable_listbox;
12126                           if test "$enableval" = yes; then
12127                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12128                           else
12129                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12130                           fi
12131
12132 else
12133
12134                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12135                           if test "x$LINE" != x ; then
12136                             eval "DEFAULT_$LINE"
12137                           else
12138                             no_cache=1
12139                           fi
12140
12141                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12142
12143 fi
12144
12145
12146           eval "$wx_cv_use_listbox"
12147           if test "$no_cache" != 1; then
12148             echo $wx_cv_use_listbox >> ${wx_arg_cache_file}.tmp
12149           fi
12150
12151           if test x"$enablestring" = xdisable; then
12152             if test $wxUSE_LISTBOX = yes; then
12153               result=no
12154             else
12155               result=yes
12156             fi
12157           else
12158             result=$wxUSE_LISTBOX
12159           fi
12160
12161           { echo "$as_me:$LINENO: result: $result" >&5
12162 echo "${ECHO_T}$result" >&6; }
12163
12164
12165           enablestring=
12166           defaultval=$wxUSE_ALL_FEATURES
12167           if test -z "$defaultval"; then
12168               if test x"$enablestring" = xdisable; then
12169                   defaultval=yes
12170               else
12171                   defaultval=no
12172               fi
12173           fi
12174
12175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12176 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12177           no_cache=0
12178           # Check whether --enable-listctrl was given.
12179 if test "${enable_listctrl+set}" = set; then
12180   enableval=$enable_listctrl;
12181                           if test "$enableval" = yes; then
12182                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12183                           else
12184                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12185                           fi
12186
12187 else
12188
12189                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12190                           if test "x$LINE" != x ; then
12191                             eval "DEFAULT_$LINE"
12192                           else
12193                             no_cache=1
12194                           fi
12195
12196                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12197
12198 fi
12199
12200
12201           eval "$wx_cv_use_listctrl"
12202           if test "$no_cache" != 1; then
12203             echo $wx_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
12204           fi
12205
12206           if test x"$enablestring" = xdisable; then
12207             if test $wxUSE_LISTCTRL = yes; then
12208               result=no
12209             else
12210               result=yes
12211             fi
12212           else
12213             result=$wxUSE_LISTCTRL
12214           fi
12215
12216           { echo "$as_me:$LINENO: result: $result" >&5
12217 echo "${ECHO_T}$result" >&6; }
12218
12219
12220           enablestring=
12221           defaultval=$wxUSE_ALL_FEATURES
12222           if test -z "$defaultval"; then
12223               if test x"$enablestring" = xdisable; then
12224                   defaultval=yes
12225               else
12226                   defaultval=no
12227               fi
12228           fi
12229
12230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12231 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12232           no_cache=0
12233           # Check whether --enable-notebook was given.
12234 if test "${enable_notebook+set}" = set; then
12235   enableval=$enable_notebook;
12236                           if test "$enableval" = yes; then
12237                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12238                           else
12239                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12240                           fi
12241
12242 else
12243
12244                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12245                           if test "x$LINE" != x ; then
12246                             eval "DEFAULT_$LINE"
12247                           else
12248                             no_cache=1
12249                           fi
12250
12251                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12252
12253 fi
12254
12255
12256           eval "$wx_cv_use_notebook"
12257           if test "$no_cache" != 1; then
12258             echo $wx_cv_use_notebook >> ${wx_arg_cache_file}.tmp
12259           fi
12260
12261           if test x"$enablestring" = xdisable; then
12262             if test $wxUSE_NOTEBOOK = yes; then
12263               result=no
12264             else
12265               result=yes
12266             fi
12267           else
12268             result=$wxUSE_NOTEBOOK
12269           fi
12270
12271           { echo "$as_me:$LINENO: result: $result" >&5
12272 echo "${ECHO_T}$result" >&6; }
12273
12274
12275           enablestring=
12276           defaultval=$wxUSE_ALL_FEATURES
12277           if test -z "$defaultval"; then
12278               if test x"$enablestring" = xdisable; then
12279                   defaultval=yes
12280               else
12281                   defaultval=no
12282               fi
12283           fi
12284
12285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12286 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12287           no_cache=0
12288           # Check whether --enable-odcombobox was given.
12289 if test "${enable_odcombobox+set}" = set; then
12290   enableval=$enable_odcombobox;
12291                           if test "$enableval" = yes; then
12292                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12293                           else
12294                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12295                           fi
12296
12297 else
12298
12299                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12300                           if test "x$LINE" != x ; then
12301                             eval "DEFAULT_$LINE"
12302                           else
12303                             no_cache=1
12304                           fi
12305
12306                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12307
12308 fi
12309
12310
12311           eval "$wx_cv_use_odcombobox"
12312           if test "$no_cache" != 1; then
12313             echo $wx_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
12314           fi
12315
12316           if test x"$enablestring" = xdisable; then
12317             if test $wxUSE_ODCOMBOBOX = yes; then
12318               result=no
12319             else
12320               result=yes
12321             fi
12322           else
12323             result=$wxUSE_ODCOMBOBOX
12324           fi
12325
12326           { echo "$as_me:$LINENO: result: $result" >&5
12327 echo "${ECHO_T}$result" >&6; }
12328
12329
12330           enablestring=
12331           defaultval=$wxUSE_ALL_FEATURES
12332           if test -z "$defaultval"; then
12333               if test x"$enablestring" = xdisable; then
12334                   defaultval=yes
12335               else
12336                   defaultval=no
12337               fi
12338           fi
12339
12340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12341 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12342           no_cache=0
12343           # Check whether --enable-radiobox was given.
12344 if test "${enable_radiobox+set}" = set; then
12345   enableval=$enable_radiobox;
12346                           if test "$enableval" = yes; then
12347                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12348                           else
12349                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12350                           fi
12351
12352 else
12353
12354                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12355                           if test "x$LINE" != x ; then
12356                             eval "DEFAULT_$LINE"
12357                           else
12358                             no_cache=1
12359                           fi
12360
12361                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12362
12363 fi
12364
12365
12366           eval "$wx_cv_use_radiobox"
12367           if test "$no_cache" != 1; then
12368             echo $wx_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
12369           fi
12370
12371           if test x"$enablestring" = xdisable; then
12372             if test $wxUSE_RADIOBOX = yes; then
12373               result=no
12374             else
12375               result=yes
12376             fi
12377           else
12378             result=$wxUSE_RADIOBOX
12379           fi
12380
12381           { echo "$as_me:$LINENO: result: $result" >&5
12382 echo "${ECHO_T}$result" >&6; }
12383
12384
12385           enablestring=
12386           defaultval=$wxUSE_ALL_FEATURES
12387           if test -z "$defaultval"; then
12388               if test x"$enablestring" = xdisable; then
12389                   defaultval=yes
12390               else
12391                   defaultval=no
12392               fi
12393           fi
12394
12395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12396 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12397           no_cache=0
12398           # Check whether --enable-radiobtn was given.
12399 if test "${enable_radiobtn+set}" = set; then
12400   enableval=$enable_radiobtn;
12401                           if test "$enableval" = yes; then
12402                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12403                           else
12404                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12405                           fi
12406
12407 else
12408
12409                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12410                           if test "x$LINE" != x ; then
12411                             eval "DEFAULT_$LINE"
12412                           else
12413                             no_cache=1
12414                           fi
12415
12416                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12417
12418 fi
12419
12420
12421           eval "$wx_cv_use_radiobtn"
12422           if test "$no_cache" != 1; then
12423             echo $wx_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
12424           fi
12425
12426           if test x"$enablestring" = xdisable; then
12427             if test $wxUSE_RADIOBTN = yes; then
12428               result=no
12429             else
12430               result=yes
12431             fi
12432           else
12433             result=$wxUSE_RADIOBTN
12434           fi
12435
12436           { echo "$as_me:$LINENO: result: $result" >&5
12437 echo "${ECHO_T}$result" >&6; }
12438
12439
12440           enablestring=
12441           defaultval=$wxUSE_ALL_FEATURES
12442           if test -z "$defaultval"; then
12443               if test x"$enablestring" = xdisable; then
12444                   defaultval=yes
12445               else
12446                   defaultval=no
12447               fi
12448           fi
12449
12450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12451 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12452           no_cache=0
12453           # Check whether --enable-sash was given.
12454 if test "${enable_sash+set}" = set; then
12455   enableval=$enable_sash;
12456                           if test "$enableval" = yes; then
12457                             wx_cv_use_sash='wxUSE_SASH=yes'
12458                           else
12459                             wx_cv_use_sash='wxUSE_SASH=no'
12460                           fi
12461
12462 else
12463
12464                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12465                           if test "x$LINE" != x ; then
12466                             eval "DEFAULT_$LINE"
12467                           else
12468                             no_cache=1
12469                           fi
12470
12471                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12472
12473 fi
12474
12475
12476           eval "$wx_cv_use_sash"
12477           if test "$no_cache" != 1; then
12478             echo $wx_cv_use_sash >> ${wx_arg_cache_file}.tmp
12479           fi
12480
12481           if test x"$enablestring" = xdisable; then
12482             if test $wxUSE_SASH = yes; then
12483               result=no
12484             else
12485               result=yes
12486             fi
12487           else
12488             result=$wxUSE_SASH
12489           fi
12490
12491           { echo "$as_me:$LINENO: result: $result" >&5
12492 echo "${ECHO_T}$result" >&6; }
12493
12494
12495           enablestring=
12496           defaultval=$wxUSE_ALL_FEATURES
12497           if test -z "$defaultval"; then
12498               if test x"$enablestring" = xdisable; then
12499                   defaultval=yes
12500               else
12501                   defaultval=no
12502               fi
12503           fi
12504
12505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12506 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12507           no_cache=0
12508           # Check whether --enable-scrollbar was given.
12509 if test "${enable_scrollbar+set}" = set; then
12510   enableval=$enable_scrollbar;
12511                           if test "$enableval" = yes; then
12512                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12513                           else
12514                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12515                           fi
12516
12517 else
12518
12519                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12520                           if test "x$LINE" != x ; then
12521                             eval "DEFAULT_$LINE"
12522                           else
12523                             no_cache=1
12524                           fi
12525
12526                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12527
12528 fi
12529
12530
12531           eval "$wx_cv_use_scrollbar"
12532           if test "$no_cache" != 1; then
12533             echo $wx_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
12534           fi
12535
12536           if test x"$enablestring" = xdisable; then
12537             if test $wxUSE_SCROLLBAR = yes; then
12538               result=no
12539             else
12540               result=yes
12541             fi
12542           else
12543             result=$wxUSE_SCROLLBAR
12544           fi
12545
12546           { echo "$as_me:$LINENO: result: $result" >&5
12547 echo "${ECHO_T}$result" >&6; }
12548
12549
12550           enablestring=
12551           defaultval=$wxUSE_ALL_FEATURES
12552           if test -z "$defaultval"; then
12553               if test x"$enablestring" = xdisable; then
12554                   defaultval=yes
12555               else
12556                   defaultval=no
12557               fi
12558           fi
12559
12560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12561 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12562           no_cache=0
12563           # Check whether --enable-searchctrl was given.
12564 if test "${enable_searchctrl+set}" = set; then
12565   enableval=$enable_searchctrl;
12566                           if test "$enableval" = yes; then
12567                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12568                           else
12569                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12570                           fi
12571
12572 else
12573
12574                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12575                           if test "x$LINE" != x ; then
12576                             eval "DEFAULT_$LINE"
12577                           else
12578                             no_cache=1
12579                           fi
12580
12581                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12582
12583 fi
12584
12585
12586           eval "$wx_cv_use_searchctrl"
12587           if test "$no_cache" != 1; then
12588             echo $wx_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
12589           fi
12590
12591           if test x"$enablestring" = xdisable; then
12592             if test $wxUSE_SEARCHCTRL = yes; then
12593               result=no
12594             else
12595               result=yes
12596             fi
12597           else
12598             result=$wxUSE_SEARCHCTRL
12599           fi
12600
12601           { echo "$as_me:$LINENO: result: $result" >&5
12602 echo "${ECHO_T}$result" >&6; }
12603
12604
12605           enablestring=
12606           defaultval=$wxUSE_ALL_FEATURES
12607           if test -z "$defaultval"; then
12608               if test x"$enablestring" = xdisable; then
12609                   defaultval=yes
12610               else
12611                   defaultval=no
12612               fi
12613           fi
12614
12615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12616 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12617           no_cache=0
12618           # Check whether --enable-slider was given.
12619 if test "${enable_slider+set}" = set; then
12620   enableval=$enable_slider;
12621                           if test "$enableval" = yes; then
12622                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12623                           else
12624                             wx_cv_use_slider='wxUSE_SLIDER=no'
12625                           fi
12626
12627 else
12628
12629                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12630                           if test "x$LINE" != x ; then
12631                             eval "DEFAULT_$LINE"
12632                           else
12633                             no_cache=1
12634                           fi
12635
12636                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12637
12638 fi
12639
12640
12641           eval "$wx_cv_use_slider"
12642           if test "$no_cache" != 1; then
12643             echo $wx_cv_use_slider >> ${wx_arg_cache_file}.tmp
12644           fi
12645
12646           if test x"$enablestring" = xdisable; then
12647             if test $wxUSE_SLIDER = yes; then
12648               result=no
12649             else
12650               result=yes
12651             fi
12652           else
12653             result=$wxUSE_SLIDER
12654           fi
12655
12656           { echo "$as_me:$LINENO: result: $result" >&5
12657 echo "${ECHO_T}$result" >&6; }
12658
12659
12660           enablestring=
12661           defaultval=$wxUSE_ALL_FEATURES
12662           if test -z "$defaultval"; then
12663               if test x"$enablestring" = xdisable; then
12664                   defaultval=yes
12665               else
12666                   defaultval=no
12667               fi
12668           fi
12669
12670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12671 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12672           no_cache=0
12673           # Check whether --enable-spinbtn was given.
12674 if test "${enable_spinbtn+set}" = set; then
12675   enableval=$enable_spinbtn;
12676                           if test "$enableval" = yes; then
12677                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12678                           else
12679                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12680                           fi
12681
12682 else
12683
12684                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12685                           if test "x$LINE" != x ; then
12686                             eval "DEFAULT_$LINE"
12687                           else
12688                             no_cache=1
12689                           fi
12690
12691                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12692
12693 fi
12694
12695
12696           eval "$wx_cv_use_spinbtn"
12697           if test "$no_cache" != 1; then
12698             echo $wx_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
12699           fi
12700
12701           if test x"$enablestring" = xdisable; then
12702             if test $wxUSE_SPINBTN = yes; then
12703               result=no
12704             else
12705               result=yes
12706             fi
12707           else
12708             result=$wxUSE_SPINBTN
12709           fi
12710
12711           { echo "$as_me:$LINENO: result: $result" >&5
12712 echo "${ECHO_T}$result" >&6; }
12713
12714
12715           enablestring=
12716           defaultval=$wxUSE_ALL_FEATURES
12717           if test -z "$defaultval"; then
12718               if test x"$enablestring" = xdisable; then
12719                   defaultval=yes
12720               else
12721                   defaultval=no
12722               fi
12723           fi
12724
12725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12726 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12727           no_cache=0
12728           # Check whether --enable-spinctrl was given.
12729 if test "${enable_spinctrl+set}" = set; then
12730   enableval=$enable_spinctrl;
12731                           if test "$enableval" = yes; then
12732                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12733                           else
12734                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12735                           fi
12736
12737 else
12738
12739                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12740                           if test "x$LINE" != x ; then
12741                             eval "DEFAULT_$LINE"
12742                           else
12743                             no_cache=1
12744                           fi
12745
12746                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12747
12748 fi
12749
12750
12751           eval "$wx_cv_use_spinctrl"
12752           if test "$no_cache" != 1; then
12753             echo $wx_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
12754           fi
12755
12756           if test x"$enablestring" = xdisable; then
12757             if test $wxUSE_SPINCTRL = yes; then
12758               result=no
12759             else
12760               result=yes
12761             fi
12762           else
12763             result=$wxUSE_SPINCTRL
12764           fi
12765
12766           { echo "$as_me:$LINENO: result: $result" >&5
12767 echo "${ECHO_T}$result" >&6; }
12768
12769
12770           enablestring=
12771           defaultval=$wxUSE_ALL_FEATURES
12772           if test -z "$defaultval"; then
12773               if test x"$enablestring" = xdisable; then
12774                   defaultval=yes
12775               else
12776                   defaultval=no
12777               fi
12778           fi
12779
12780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12781 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12782           no_cache=0
12783           # Check whether --enable-splitter was given.
12784 if test "${enable_splitter+set}" = set; then
12785   enableval=$enable_splitter;
12786                           if test "$enableval" = yes; then
12787                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12788                           else
12789                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12790                           fi
12791
12792 else
12793
12794                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12795                           if test "x$LINE" != x ; then
12796                             eval "DEFAULT_$LINE"
12797                           else
12798                             no_cache=1
12799                           fi
12800
12801                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12802
12803 fi
12804
12805
12806           eval "$wx_cv_use_splitter"
12807           if test "$no_cache" != 1; then
12808             echo $wx_cv_use_splitter >> ${wx_arg_cache_file}.tmp
12809           fi
12810
12811           if test x"$enablestring" = xdisable; then
12812             if test $wxUSE_SPLITTER = yes; then
12813               result=no
12814             else
12815               result=yes
12816             fi
12817           else
12818             result=$wxUSE_SPLITTER
12819           fi
12820
12821           { echo "$as_me:$LINENO: result: $result" >&5
12822 echo "${ECHO_T}$result" >&6; }
12823
12824
12825           enablestring=
12826           defaultval=$wxUSE_ALL_FEATURES
12827           if test -z "$defaultval"; then
12828               if test x"$enablestring" = xdisable; then
12829                   defaultval=yes
12830               else
12831                   defaultval=no
12832               fi
12833           fi
12834
12835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12836 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12837           no_cache=0
12838           # Check whether --enable-statbmp was given.
12839 if test "${enable_statbmp+set}" = set; then
12840   enableval=$enable_statbmp;
12841                           if test "$enableval" = yes; then
12842                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12843                           else
12844                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12845                           fi
12846
12847 else
12848
12849                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12850                           if test "x$LINE" != x ; then
12851                             eval "DEFAULT_$LINE"
12852                           else
12853                             no_cache=1
12854                           fi
12855
12856                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12857
12858 fi
12859
12860
12861           eval "$wx_cv_use_statbmp"
12862           if test "$no_cache" != 1; then
12863             echo $wx_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
12864           fi
12865
12866           if test x"$enablestring" = xdisable; then
12867             if test $wxUSE_STATBMP = yes; then
12868               result=no
12869             else
12870               result=yes
12871             fi
12872           else
12873             result=$wxUSE_STATBMP
12874           fi
12875
12876           { echo "$as_me:$LINENO: result: $result" >&5
12877 echo "${ECHO_T}$result" >&6; }
12878
12879
12880           enablestring=
12881           defaultval=$wxUSE_ALL_FEATURES
12882           if test -z "$defaultval"; then
12883               if test x"$enablestring" = xdisable; then
12884                   defaultval=yes
12885               else
12886                   defaultval=no
12887               fi
12888           fi
12889
12890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12891 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12892           no_cache=0
12893           # Check whether --enable-statbox was given.
12894 if test "${enable_statbox+set}" = set; then
12895   enableval=$enable_statbox;
12896                           if test "$enableval" = yes; then
12897                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12898                           else
12899                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12900                           fi
12901
12902 else
12903
12904                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12905                           if test "x$LINE" != x ; then
12906                             eval "DEFAULT_$LINE"
12907                           else
12908                             no_cache=1
12909                           fi
12910
12911                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12912
12913 fi
12914
12915
12916           eval "$wx_cv_use_statbox"
12917           if test "$no_cache" != 1; then
12918             echo $wx_cv_use_statbox >> ${wx_arg_cache_file}.tmp
12919           fi
12920
12921           if test x"$enablestring" = xdisable; then
12922             if test $wxUSE_STATBOX = yes; then
12923               result=no
12924             else
12925               result=yes
12926             fi
12927           else
12928             result=$wxUSE_STATBOX
12929           fi
12930
12931           { echo "$as_me:$LINENO: result: $result" >&5
12932 echo "${ECHO_T}$result" >&6; }
12933
12934
12935           enablestring=
12936           defaultval=$wxUSE_ALL_FEATURES
12937           if test -z "$defaultval"; then
12938               if test x"$enablestring" = xdisable; then
12939                   defaultval=yes
12940               else
12941                   defaultval=no
12942               fi
12943           fi
12944
12945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12946 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12947           no_cache=0
12948           # Check whether --enable-statline was given.
12949 if test "${enable_statline+set}" = set; then
12950   enableval=$enable_statline;
12951                           if test "$enableval" = yes; then
12952                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12953                           else
12954                             wx_cv_use_statline='wxUSE_STATLINE=no'
12955                           fi
12956
12957 else
12958
12959                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12960                           if test "x$LINE" != x ; then
12961                             eval "DEFAULT_$LINE"
12962                           else
12963                             no_cache=1
12964                           fi
12965
12966                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12967
12968 fi
12969
12970
12971           eval "$wx_cv_use_statline"
12972           if test "$no_cache" != 1; then
12973             echo $wx_cv_use_statline >> ${wx_arg_cache_file}.tmp
12974           fi
12975
12976           if test x"$enablestring" = xdisable; then
12977             if test $wxUSE_STATLINE = yes; then
12978               result=no
12979             else
12980               result=yes
12981             fi
12982           else
12983             result=$wxUSE_STATLINE
12984           fi
12985
12986           { echo "$as_me:$LINENO: result: $result" >&5
12987 echo "${ECHO_T}$result" >&6; }
12988
12989
12990           enablestring=
12991           defaultval=$wxUSE_ALL_FEATURES
12992           if test -z "$defaultval"; then
12993               if test x"$enablestring" = xdisable; then
12994                   defaultval=yes
12995               else
12996                   defaultval=no
12997               fi
12998           fi
12999
13000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13001 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13002           no_cache=0
13003           # Check whether --enable-stattext was given.
13004 if test "${enable_stattext+set}" = set; then
13005   enableval=$enable_stattext;
13006                           if test "$enableval" = yes; then
13007                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13008                           else
13009                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13010                           fi
13011
13012 else
13013
13014                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13015                           if test "x$LINE" != x ; then
13016                             eval "DEFAULT_$LINE"
13017                           else
13018                             no_cache=1
13019                           fi
13020
13021                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13022
13023 fi
13024
13025
13026           eval "$wx_cv_use_stattext"
13027           if test "$no_cache" != 1; then
13028             echo $wx_cv_use_stattext >> ${wx_arg_cache_file}.tmp
13029           fi
13030
13031           if test x"$enablestring" = xdisable; then
13032             if test $wxUSE_STATTEXT = yes; then
13033               result=no
13034             else
13035               result=yes
13036             fi
13037           else
13038             result=$wxUSE_STATTEXT
13039           fi
13040
13041           { echo "$as_me:$LINENO: result: $result" >&5
13042 echo "${ECHO_T}$result" >&6; }
13043
13044
13045           enablestring=
13046           defaultval=$wxUSE_ALL_FEATURES
13047           if test -z "$defaultval"; then
13048               if test x"$enablestring" = xdisable; then
13049                   defaultval=yes
13050               else
13051                   defaultval=no
13052               fi
13053           fi
13054
13055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13056 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13057           no_cache=0
13058           # Check whether --enable-statusbar was given.
13059 if test "${enable_statusbar+set}" = set; then
13060   enableval=$enable_statusbar;
13061                           if test "$enableval" = yes; then
13062                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13063                           else
13064                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13065                           fi
13066
13067 else
13068
13069                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13070                           if test "x$LINE" != x ; then
13071                             eval "DEFAULT_$LINE"
13072                           else
13073                             no_cache=1
13074                           fi
13075
13076                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13077
13078 fi
13079
13080
13081           eval "$wx_cv_use_statusbar"
13082           if test "$no_cache" != 1; then
13083             echo $wx_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
13084           fi
13085
13086           if test x"$enablestring" = xdisable; then
13087             if test $wxUSE_STATUSBAR = yes; then
13088               result=no
13089             else
13090               result=yes
13091             fi
13092           else
13093             result=$wxUSE_STATUSBAR
13094           fi
13095
13096           { echo "$as_me:$LINENO: result: $result" >&5
13097 echo "${ECHO_T}$result" >&6; }
13098
13099
13100           enablestring=
13101           defaultval=$wxUSE_ALL_FEATURES
13102           if test -z "$defaultval"; then
13103               if test x"$enablestring" = xdisable; then
13104                   defaultval=yes
13105               else
13106                   defaultval=no
13107               fi
13108           fi
13109
13110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13111 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13112           no_cache=0
13113           # Check whether --enable-tabdialog was given.
13114 if test "${enable_tabdialog+set}" = set; then
13115   enableval=$enable_tabdialog;
13116                           if test "$enableval" = yes; then
13117                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13118                           else
13119                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13120                           fi
13121
13122 else
13123
13124                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13125                           if test "x$LINE" != x ; then
13126                             eval "DEFAULT_$LINE"
13127                           else
13128                             no_cache=1
13129                           fi
13130
13131                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13132
13133 fi
13134
13135
13136           eval "$wx_cv_use_tabdialog"
13137           if test "$no_cache" != 1; then
13138             echo $wx_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
13139           fi
13140
13141           if test x"$enablestring" = xdisable; then
13142             if test $wxUSE_TAB_DIALOG = yes; then
13143               result=no
13144             else
13145               result=yes
13146             fi
13147           else
13148             result=$wxUSE_TAB_DIALOG
13149           fi
13150
13151           { echo "$as_me:$LINENO: result: $result" >&5
13152 echo "${ECHO_T}$result" >&6; }
13153
13154
13155           enablestring=
13156           defaultval=$wxUSE_ALL_FEATURES
13157           if test -z "$defaultval"; then
13158               if test x"$enablestring" = xdisable; then
13159                   defaultval=yes
13160               else
13161                   defaultval=no
13162               fi
13163           fi
13164
13165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13166 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13167           no_cache=0
13168           # Check whether --enable-textctrl was given.
13169 if test "${enable_textctrl+set}" = set; then
13170   enableval=$enable_textctrl;
13171                           if test "$enableval" = yes; then
13172                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13173                           else
13174                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13175                           fi
13176
13177 else
13178
13179                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13180                           if test "x$LINE" != x ; then
13181                             eval "DEFAULT_$LINE"
13182                           else
13183                             no_cache=1
13184                           fi
13185
13186                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13187
13188 fi
13189
13190
13191           eval "$wx_cv_use_textctrl"
13192           if test "$no_cache" != 1; then
13193             echo $wx_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
13194           fi
13195
13196           if test x"$enablestring" = xdisable; then
13197             if test $wxUSE_TEXTCTRL = yes; then
13198               result=no
13199             else
13200               result=yes
13201             fi
13202           else
13203             result=$wxUSE_TEXTCTRL
13204           fi
13205
13206           { echo "$as_me:$LINENO: result: $result" >&5
13207 echo "${ECHO_T}$result" >&6; }
13208
13209
13210           enablestring=
13211           defaultval=$wxUSE_ALL_FEATURES
13212           if test -z "$defaultval"; then
13213               if test x"$enablestring" = xdisable; then
13214                   defaultval=yes
13215               else
13216                   defaultval=no
13217               fi
13218           fi
13219
13220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13221 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13222           no_cache=0
13223           # Check whether --enable-togglebtn was given.
13224 if test "${enable_togglebtn+set}" = set; then
13225   enableval=$enable_togglebtn;
13226                           if test "$enableval" = yes; then
13227                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13228                           else
13229                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13230                           fi
13231
13232 else
13233
13234                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13235                           if test "x$LINE" != x ; then
13236                             eval "DEFAULT_$LINE"
13237                           else
13238                             no_cache=1
13239                           fi
13240
13241                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13242
13243 fi
13244
13245
13246           eval "$wx_cv_use_togglebtn"
13247           if test "$no_cache" != 1; then
13248             echo $wx_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
13249           fi
13250
13251           if test x"$enablestring" = xdisable; then
13252             if test $wxUSE_TOGGLEBTN = yes; then
13253               result=no
13254             else
13255               result=yes
13256             fi
13257           else
13258             result=$wxUSE_TOGGLEBTN
13259           fi
13260
13261           { echo "$as_me:$LINENO: result: $result" >&5
13262 echo "${ECHO_T}$result" >&6; }
13263
13264
13265           enablestring=
13266           defaultval=$wxUSE_ALL_FEATURES
13267           if test -z "$defaultval"; then
13268               if test x"$enablestring" = xdisable; then
13269                   defaultval=yes
13270               else
13271                   defaultval=no
13272               fi
13273           fi
13274
13275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13276 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13277           no_cache=0
13278           # Check whether --enable-toolbar was given.
13279 if test "${enable_toolbar+set}" = set; then
13280   enableval=$enable_toolbar;
13281                           if test "$enableval" = yes; then
13282                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13283                           else
13284                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13285                           fi
13286
13287 else
13288
13289                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13290                           if test "x$LINE" != x ; then
13291                             eval "DEFAULT_$LINE"
13292                           else
13293                             no_cache=1
13294                           fi
13295
13296                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13297
13298 fi
13299
13300
13301           eval "$wx_cv_use_toolbar"
13302           if test "$no_cache" != 1; then
13303             echo $wx_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
13304           fi
13305
13306           if test x"$enablestring" = xdisable; then
13307             if test $wxUSE_TOOLBAR = yes; then
13308               result=no
13309             else
13310               result=yes
13311             fi
13312           else
13313             result=$wxUSE_TOOLBAR
13314           fi
13315
13316           { echo "$as_me:$LINENO: result: $result" >&5
13317 echo "${ECHO_T}$result" >&6; }
13318
13319
13320           enablestring=
13321           defaultval=$wxUSE_ALL_FEATURES
13322           if test -z "$defaultval"; then
13323               if test x"$enablestring" = xdisable; then
13324                   defaultval=yes
13325               else
13326                   defaultval=no
13327               fi
13328           fi
13329
13330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13331 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13332           no_cache=0
13333           # Check whether --enable-tbarnative was given.
13334 if test "${enable_tbarnative+set}" = set; then
13335   enableval=$enable_tbarnative;
13336                           if test "$enableval" = yes; then
13337                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13338                           else
13339                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13340                           fi
13341
13342 else
13343
13344                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13345                           if test "x$LINE" != x ; then
13346                             eval "DEFAULT_$LINE"
13347                           else
13348                             no_cache=1
13349                           fi
13350
13351                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13352
13353 fi
13354
13355
13356           eval "$wx_cv_use_tbarnative"
13357           if test "$no_cache" != 1; then
13358             echo $wx_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
13359           fi
13360
13361           if test x"$enablestring" = xdisable; then
13362             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13363               result=no
13364             else
13365               result=yes
13366             fi
13367           else
13368             result=$wxUSE_TOOLBAR_NATIVE
13369           fi
13370
13371           { echo "$as_me:$LINENO: result: $result" >&5
13372 echo "${ECHO_T}$result" >&6; }
13373
13374
13375           enablestring=
13376           defaultval=$wxUSE_ALL_FEATURES
13377           if test -z "$defaultval"; then
13378               if test x"$enablestring" = xdisable; then
13379                   defaultval=yes
13380               else
13381                   defaultval=no
13382               fi
13383           fi
13384
13385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13386 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13387           no_cache=0
13388           # Check whether --enable-treebook was given.
13389 if test "${enable_treebook+set}" = set; then
13390   enableval=$enable_treebook;
13391                           if test "$enableval" = yes; then
13392                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13393                           else
13394                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13395                           fi
13396
13397 else
13398
13399                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13400                           if test "x$LINE" != x ; then
13401                             eval "DEFAULT_$LINE"
13402                           else
13403                             no_cache=1
13404                           fi
13405
13406                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13407
13408 fi
13409
13410
13411           eval "$wx_cv_use_treebook"
13412           if test "$no_cache" != 1; then
13413             echo $wx_cv_use_treebook >> ${wx_arg_cache_file}.tmp
13414           fi
13415
13416           if test x"$enablestring" = xdisable; then
13417             if test $wxUSE_TREEBOOK = yes; then
13418               result=no
13419             else
13420               result=yes
13421             fi
13422           else
13423             result=$wxUSE_TREEBOOK
13424           fi
13425
13426           { echo "$as_me:$LINENO: result: $result" >&5
13427 echo "${ECHO_T}$result" >&6; }
13428
13429
13430           enablestring=
13431           defaultval=$wxUSE_ALL_FEATURES
13432           if test -z "$defaultval"; then
13433               if test x"$enablestring" = xdisable; then
13434                   defaultval=yes
13435               else
13436                   defaultval=no
13437               fi
13438           fi
13439
13440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13441 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13442           no_cache=0
13443           # Check whether --enable-toolbook was given.
13444 if test "${enable_toolbook+set}" = set; then
13445   enableval=$enable_toolbook;
13446                           if test "$enableval" = yes; then
13447                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13448                           else
13449                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13450                           fi
13451
13452 else
13453
13454                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13455                           if test "x$LINE" != x ; then
13456                             eval "DEFAULT_$LINE"
13457                           else
13458                             no_cache=1
13459                           fi
13460
13461                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13462
13463 fi
13464
13465
13466           eval "$wx_cv_use_toolbook"
13467           if test "$no_cache" != 1; then
13468             echo $wx_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
13469           fi
13470
13471           if test x"$enablestring" = xdisable; then
13472             if test $wxUSE_TOOLBOOK = yes; then
13473               result=no
13474             else
13475               result=yes
13476             fi
13477           else
13478             result=$wxUSE_TOOLBOOK
13479           fi
13480
13481           { echo "$as_me:$LINENO: result: $result" >&5
13482 echo "${ECHO_T}$result" >&6; }
13483
13484
13485           enablestring=
13486           defaultval=$wxUSE_ALL_FEATURES
13487           if test -z "$defaultval"; then
13488               if test x"$enablestring" = xdisable; then
13489                   defaultval=yes
13490               else
13491                   defaultval=no
13492               fi
13493           fi
13494
13495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13496 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13497           no_cache=0
13498           # Check whether --enable-treectrl was given.
13499 if test "${enable_treectrl+set}" = set; then
13500   enableval=$enable_treectrl;
13501                           if test "$enableval" = yes; then
13502                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13503                           else
13504                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13505                           fi
13506
13507 else
13508
13509                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13510                           if test "x$LINE" != x ; then
13511                             eval "DEFAULT_$LINE"
13512                           else
13513                             no_cache=1
13514                           fi
13515
13516                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13517
13518 fi
13519
13520
13521           eval "$wx_cv_use_treectrl"
13522           if test "$no_cache" != 1; then
13523             echo $wx_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
13524           fi
13525
13526           if test x"$enablestring" = xdisable; then
13527             if test $wxUSE_TREECTRL = yes; then
13528               result=no
13529             else
13530               result=yes
13531             fi
13532           else
13533             result=$wxUSE_TREECTRL
13534           fi
13535
13536           { echo "$as_me:$LINENO: result: $result" >&5
13537 echo "${ECHO_T}$result" >&6; }
13538
13539
13540           enablestring=
13541           defaultval=$wxUSE_ALL_FEATURES
13542           if test -z "$defaultval"; then
13543               if test x"$enablestring" = xdisable; then
13544                   defaultval=yes
13545               else
13546                   defaultval=no
13547               fi
13548           fi
13549
13550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13551 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13552           no_cache=0
13553           # Check whether --enable-tipwindow was given.
13554 if test "${enable_tipwindow+set}" = set; then
13555   enableval=$enable_tipwindow;
13556                           if test "$enableval" = yes; then
13557                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13558                           else
13559                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13560                           fi
13561
13562 else
13563
13564                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13565                           if test "x$LINE" != x ; then
13566                             eval "DEFAULT_$LINE"
13567                           else
13568                             no_cache=1
13569                           fi
13570
13571                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13572
13573 fi
13574
13575
13576           eval "$wx_cv_use_tipwindow"
13577           if test "$no_cache" != 1; then
13578             echo $wx_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
13579           fi
13580
13581           if test x"$enablestring" = xdisable; then
13582             if test $wxUSE_TIPWINDOW = yes; then
13583               result=no
13584             else
13585               result=yes
13586             fi
13587           else
13588             result=$wxUSE_TIPWINDOW
13589           fi
13590
13591           { echo "$as_me:$LINENO: result: $result" >&5
13592 echo "${ECHO_T}$result" >&6; }
13593
13594
13595           enablestring=
13596           defaultval=$wxUSE_ALL_FEATURES
13597           if test -z "$defaultval"; then
13598               if test x"$enablestring" = xdisable; then
13599                   defaultval=yes
13600               else
13601                   defaultval=no
13602               fi
13603           fi
13604
13605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13606 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13607           no_cache=0
13608           # Check whether --enable-popupwin was given.
13609 if test "${enable_popupwin+set}" = set; then
13610   enableval=$enable_popupwin;
13611                           if test "$enableval" = yes; then
13612                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13613                           else
13614                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13615                           fi
13616
13617 else
13618
13619                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13620                           if test "x$LINE" != x ; then
13621                             eval "DEFAULT_$LINE"
13622                           else
13623                             no_cache=1
13624                           fi
13625
13626                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13627
13628 fi
13629
13630
13631           eval "$wx_cv_use_popupwin"
13632           if test "$no_cache" != 1; then
13633             echo $wx_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
13634           fi
13635
13636           if test x"$enablestring" = xdisable; then
13637             if test $wxUSE_POPUPWIN = yes; then
13638               result=no
13639             else
13640               result=yes
13641             fi
13642           else
13643             result=$wxUSE_POPUPWIN
13644           fi
13645
13646           { echo "$as_me:$LINENO: result: $result" >&5
13647 echo "${ECHO_T}$result" >&6; }
13648
13649
13650
13651
13652           enablestring=
13653           defaultval=$wxUSE_ALL_FEATURES
13654           if test -z "$defaultval"; then
13655               if test x"$enablestring" = xdisable; then
13656                   defaultval=yes
13657               else
13658                   defaultval=no
13659               fi
13660           fi
13661
13662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13663 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13664           no_cache=0
13665           # Check whether --enable-commondlg was given.
13666 if test "${enable_commondlg+set}" = set; then
13667   enableval=$enable_commondlg;
13668                           if test "$enableval" = yes; then
13669                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13670                           else
13671                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13672                           fi
13673
13674 else
13675
13676                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13677                           if test "x$LINE" != x ; then
13678                             eval "DEFAULT_$LINE"
13679                           else
13680                             no_cache=1
13681                           fi
13682
13683                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13684
13685 fi
13686
13687
13688           eval "$wx_cv_use_commondlg"
13689           if test "$no_cache" != 1; then
13690             echo $wx_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
13691           fi
13692
13693           if test x"$enablestring" = xdisable; then
13694             if test $wxUSE_COMMONDLGS = yes; then
13695               result=no
13696             else
13697               result=yes
13698             fi
13699           else
13700             result=$wxUSE_COMMONDLGS
13701           fi
13702
13703           { echo "$as_me:$LINENO: result: $result" >&5
13704 echo "${ECHO_T}$result" >&6; }
13705
13706
13707           enablestring=
13708           defaultval=$wxUSE_ALL_FEATURES
13709           if test -z "$defaultval"; then
13710               if test x"$enablestring" = xdisable; then
13711                   defaultval=yes
13712               else
13713                   defaultval=no
13714               fi
13715           fi
13716
13717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13718 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13719           no_cache=0
13720           # Check whether --enable-aboutdlg was given.
13721 if test "${enable_aboutdlg+set}" = set; then
13722   enableval=$enable_aboutdlg;
13723                           if test "$enableval" = yes; then
13724                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13725                           else
13726                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13727                           fi
13728
13729 else
13730
13731                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13732                           if test "x$LINE" != x ; then
13733                             eval "DEFAULT_$LINE"
13734                           else
13735                             no_cache=1
13736                           fi
13737
13738                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13739
13740 fi
13741
13742
13743           eval "$wx_cv_use_aboutdlg"
13744           if test "$no_cache" != 1; then
13745             echo $wx_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
13746           fi
13747
13748           if test x"$enablestring" = xdisable; then
13749             if test $wxUSE_ABOUTDLG = yes; then
13750               result=no
13751             else
13752               result=yes
13753             fi
13754           else
13755             result=$wxUSE_ABOUTDLG
13756           fi
13757
13758           { echo "$as_me:$LINENO: result: $result" >&5
13759 echo "${ECHO_T}$result" >&6; }
13760
13761
13762           enablestring=
13763           defaultval=$wxUSE_ALL_FEATURES
13764           if test -z "$defaultval"; then
13765               if test x"$enablestring" = xdisable; then
13766                   defaultval=yes
13767               else
13768                   defaultval=no
13769               fi
13770           fi
13771
13772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13773 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13774           no_cache=0
13775           # Check whether --enable-choicedlg was given.
13776 if test "${enable_choicedlg+set}" = set; then
13777   enableval=$enable_choicedlg;
13778                           if test "$enableval" = yes; then
13779                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13780                           else
13781                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13782                           fi
13783
13784 else
13785
13786                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13787                           if test "x$LINE" != x ; then
13788                             eval "DEFAULT_$LINE"
13789                           else
13790                             no_cache=1
13791                           fi
13792
13793                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13794
13795 fi
13796
13797
13798           eval "$wx_cv_use_choicedlg"
13799           if test "$no_cache" != 1; then
13800             echo $wx_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
13801           fi
13802
13803           if test x"$enablestring" = xdisable; then
13804             if test $wxUSE_CHOICEDLG = yes; then
13805               result=no
13806             else
13807               result=yes
13808             fi
13809           else
13810             result=$wxUSE_CHOICEDLG
13811           fi
13812
13813           { echo "$as_me:$LINENO: result: $result" >&5
13814 echo "${ECHO_T}$result" >&6; }
13815
13816
13817           enablestring=
13818           defaultval=$wxUSE_ALL_FEATURES
13819           if test -z "$defaultval"; then
13820               if test x"$enablestring" = xdisable; then
13821                   defaultval=yes
13822               else
13823                   defaultval=no
13824               fi
13825           fi
13826
13827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13828 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13829           no_cache=0
13830           # Check whether --enable-coldlg was given.
13831 if test "${enable_coldlg+set}" = set; then
13832   enableval=$enable_coldlg;
13833                           if test "$enableval" = yes; then
13834                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13835                           else
13836                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13837                           fi
13838
13839 else
13840
13841                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13842                           if test "x$LINE" != x ; then
13843                             eval "DEFAULT_$LINE"
13844                           else
13845                             no_cache=1
13846                           fi
13847
13848                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13849
13850 fi
13851
13852
13853           eval "$wx_cv_use_coldlg"
13854           if test "$no_cache" != 1; then
13855             echo $wx_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
13856           fi
13857
13858           if test x"$enablestring" = xdisable; then
13859             if test $wxUSE_COLOURDLG = yes; then
13860               result=no
13861             else
13862               result=yes
13863             fi
13864           else
13865             result=$wxUSE_COLOURDLG
13866           fi
13867
13868           { echo "$as_me:$LINENO: result: $result" >&5
13869 echo "${ECHO_T}$result" >&6; }
13870
13871
13872           enablestring=
13873           defaultval=$wxUSE_ALL_FEATURES
13874           if test -z "$defaultval"; then
13875               if test x"$enablestring" = xdisable; then
13876                   defaultval=yes
13877               else
13878                   defaultval=no
13879               fi
13880           fi
13881
13882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13883 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13884           no_cache=0
13885           # Check whether --enable-filedlg was given.
13886 if test "${enable_filedlg+set}" = set; then
13887   enableval=$enable_filedlg;
13888                           if test "$enableval" = yes; then
13889                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13890                           else
13891                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13892                           fi
13893
13894 else
13895
13896                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13897                           if test "x$LINE" != x ; then
13898                             eval "DEFAULT_$LINE"
13899                           else
13900                             no_cache=1
13901                           fi
13902
13903                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13904
13905 fi
13906
13907
13908           eval "$wx_cv_use_filedlg"
13909           if test "$no_cache" != 1; then
13910             echo $wx_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
13911           fi
13912
13913           if test x"$enablestring" = xdisable; then
13914             if test $wxUSE_FILEDLG = yes; then
13915               result=no
13916             else
13917               result=yes
13918             fi
13919           else
13920             result=$wxUSE_FILEDLG
13921           fi
13922
13923           { echo "$as_me:$LINENO: result: $result" >&5
13924 echo "${ECHO_T}$result" >&6; }
13925
13926
13927           enablestring=
13928           defaultval=$wxUSE_ALL_FEATURES
13929           if test -z "$defaultval"; then
13930               if test x"$enablestring" = xdisable; then
13931                   defaultval=yes
13932               else
13933                   defaultval=no
13934               fi
13935           fi
13936
13937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13938 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13939           no_cache=0
13940           # Check whether --enable-finddlg was given.
13941 if test "${enable_finddlg+set}" = set; then
13942   enableval=$enable_finddlg;
13943                           if test "$enableval" = yes; then
13944                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13945                           else
13946                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13947                           fi
13948
13949 else
13950
13951                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
13952                           if test "x$LINE" != x ; then
13953                             eval "DEFAULT_$LINE"
13954                           else
13955                             no_cache=1
13956                           fi
13957
13958                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13959
13960 fi
13961
13962
13963           eval "$wx_cv_use_finddlg"
13964           if test "$no_cache" != 1; then
13965             echo $wx_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
13966           fi
13967
13968           if test x"$enablestring" = xdisable; then
13969             if test $wxUSE_FINDREPLDLG = yes; then
13970               result=no
13971             else
13972               result=yes
13973             fi
13974           else
13975             result=$wxUSE_FINDREPLDLG
13976           fi
13977
13978           { echo "$as_me:$LINENO: result: $result" >&5
13979 echo "${ECHO_T}$result" >&6; }
13980
13981
13982           enablestring=
13983           defaultval=$wxUSE_ALL_FEATURES
13984           if test -z "$defaultval"; then
13985               if test x"$enablestring" = xdisable; then
13986                   defaultval=yes
13987               else
13988                   defaultval=no
13989               fi
13990           fi
13991
13992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13993 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13994           no_cache=0
13995           # Check whether --enable-fontdlg was given.
13996 if test "${enable_fontdlg+set}" = set; then
13997   enableval=$enable_fontdlg;
13998                           if test "$enableval" = yes; then
13999                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14000                           else
14001                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14002                           fi
14003
14004 else
14005
14006                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14007                           if test "x$LINE" != x ; then
14008                             eval "DEFAULT_$LINE"
14009                           else
14010                             no_cache=1
14011                           fi
14012
14013                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14014
14015 fi
14016
14017
14018           eval "$wx_cv_use_fontdlg"
14019           if test "$no_cache" != 1; then
14020             echo $wx_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
14021           fi
14022
14023           if test x"$enablestring" = xdisable; then
14024             if test $wxUSE_FONTDLG = yes; then
14025               result=no
14026             else
14027               result=yes
14028             fi
14029           else
14030             result=$wxUSE_FONTDLG
14031           fi
14032
14033           { echo "$as_me:$LINENO: result: $result" >&5
14034 echo "${ECHO_T}$result" >&6; }
14035
14036
14037           enablestring=
14038           defaultval=$wxUSE_ALL_FEATURES
14039           if test -z "$defaultval"; then
14040               if test x"$enablestring" = xdisable; then
14041                   defaultval=yes
14042               else
14043                   defaultval=no
14044               fi
14045           fi
14046
14047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14048 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14049           no_cache=0
14050           # Check whether --enable-dirdlg was given.
14051 if test "${enable_dirdlg+set}" = set; then
14052   enableval=$enable_dirdlg;
14053                           if test "$enableval" = yes; then
14054                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14055                           else
14056                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14057                           fi
14058
14059 else
14060
14061                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14062                           if test "x$LINE" != x ; then
14063                             eval "DEFAULT_$LINE"
14064                           else
14065                             no_cache=1
14066                           fi
14067
14068                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14069
14070 fi
14071
14072
14073           eval "$wx_cv_use_dirdlg"
14074           if test "$no_cache" != 1; then
14075             echo $wx_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
14076           fi
14077
14078           if test x"$enablestring" = xdisable; then
14079             if test $wxUSE_DIRDLG = yes; then
14080               result=no
14081             else
14082               result=yes
14083             fi
14084           else
14085             result=$wxUSE_DIRDLG
14086           fi
14087
14088           { echo "$as_me:$LINENO: result: $result" >&5
14089 echo "${ECHO_T}$result" >&6; }
14090
14091
14092           enablestring=
14093           defaultval=$wxUSE_ALL_FEATURES
14094           if test -z "$defaultval"; then
14095               if test x"$enablestring" = xdisable; then
14096                   defaultval=yes
14097               else
14098                   defaultval=no
14099               fi
14100           fi
14101
14102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14103 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14104           no_cache=0
14105           # Check whether --enable-msgdlg was given.
14106 if test "${enable_msgdlg+set}" = set; then
14107   enableval=$enable_msgdlg;
14108                           if test "$enableval" = yes; then
14109                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14110                           else
14111                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14112                           fi
14113
14114 else
14115
14116                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14117                           if test "x$LINE" != x ; then
14118                             eval "DEFAULT_$LINE"
14119                           else
14120                             no_cache=1
14121                           fi
14122
14123                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14124
14125 fi
14126
14127
14128           eval "$wx_cv_use_msgdlg"
14129           if test "$no_cache" != 1; then
14130             echo $wx_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
14131           fi
14132
14133           if test x"$enablestring" = xdisable; then
14134             if test $wxUSE_MSGDLG = yes; then
14135               result=no
14136             else
14137               result=yes
14138             fi
14139           else
14140             result=$wxUSE_MSGDLG
14141           fi
14142
14143           { echo "$as_me:$LINENO: result: $result" >&5
14144 echo "${ECHO_T}$result" >&6; }
14145
14146
14147           enablestring=
14148           defaultval=$wxUSE_ALL_FEATURES
14149           if test -z "$defaultval"; then
14150               if test x"$enablestring" = xdisable; then
14151                   defaultval=yes
14152               else
14153                   defaultval=no
14154               fi
14155           fi
14156
14157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14158 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14159           no_cache=0
14160           # Check whether --enable-numberdlg was given.
14161 if test "${enable_numberdlg+set}" = set; then
14162   enableval=$enable_numberdlg;
14163                           if test "$enableval" = yes; then
14164                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14165                           else
14166                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14167                           fi
14168
14169 else
14170
14171                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14172                           if test "x$LINE" != x ; then
14173                             eval "DEFAULT_$LINE"
14174                           else
14175                             no_cache=1
14176                           fi
14177
14178                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14179
14180 fi
14181
14182
14183           eval "$wx_cv_use_numberdlg"
14184           if test "$no_cache" != 1; then
14185             echo $wx_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
14186           fi
14187
14188           if test x"$enablestring" = xdisable; then
14189             if test $wxUSE_NUMBERDLG = yes; then
14190               result=no
14191             else
14192               result=yes
14193             fi
14194           else
14195             result=$wxUSE_NUMBERDLG
14196           fi
14197
14198           { echo "$as_me:$LINENO: result: $result" >&5
14199 echo "${ECHO_T}$result" >&6; }
14200
14201
14202           enablestring=
14203           defaultval=$wxUSE_ALL_FEATURES
14204           if test -z "$defaultval"; then
14205               if test x"$enablestring" = xdisable; then
14206                   defaultval=yes
14207               else
14208                   defaultval=no
14209               fi
14210           fi
14211
14212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14213 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14214           no_cache=0
14215           # Check whether --enable-splash was given.
14216 if test "${enable_splash+set}" = set; then
14217   enableval=$enable_splash;
14218                           if test "$enableval" = yes; then
14219                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14220                           else
14221                             wx_cv_use_splash='wxUSE_SPLASH=no'
14222                           fi
14223
14224 else
14225
14226                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14227                           if test "x$LINE" != x ; then
14228                             eval "DEFAULT_$LINE"
14229                           else
14230                             no_cache=1
14231                           fi
14232
14233                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14234
14235 fi
14236
14237
14238           eval "$wx_cv_use_splash"
14239           if test "$no_cache" != 1; then
14240             echo $wx_cv_use_splash >> ${wx_arg_cache_file}.tmp
14241           fi
14242
14243           if test x"$enablestring" = xdisable; then
14244             if test $wxUSE_SPLASH = yes; then
14245               result=no
14246             else
14247               result=yes
14248             fi
14249           else
14250             result=$wxUSE_SPLASH
14251           fi
14252
14253           { echo "$as_me:$LINENO: result: $result" >&5
14254 echo "${ECHO_T}$result" >&6; }
14255
14256
14257           enablestring=
14258           defaultval=$wxUSE_ALL_FEATURES
14259           if test -z "$defaultval"; then
14260               if test x"$enablestring" = xdisable; then
14261                   defaultval=yes
14262               else
14263                   defaultval=no
14264               fi
14265           fi
14266
14267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14268 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14269           no_cache=0
14270           # Check whether --enable-textdlg was given.
14271 if test "${enable_textdlg+set}" = set; then
14272   enableval=$enable_textdlg;
14273                           if test "$enableval" = yes; then
14274                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14275                           else
14276                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14277                           fi
14278
14279 else
14280
14281                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14282                           if test "x$LINE" != x ; then
14283                             eval "DEFAULT_$LINE"
14284                           else
14285                             no_cache=1
14286                           fi
14287
14288                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14289
14290 fi
14291
14292
14293           eval "$wx_cv_use_textdlg"
14294           if test "$no_cache" != 1; then
14295             echo $wx_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
14296           fi
14297
14298           if test x"$enablestring" = xdisable; then
14299             if test $wxUSE_TEXTDLG = yes; then
14300               result=no
14301             else
14302               result=yes
14303             fi
14304           else
14305             result=$wxUSE_TEXTDLG
14306           fi
14307
14308           { echo "$as_me:$LINENO: result: $result" >&5
14309 echo "${ECHO_T}$result" >&6; }
14310
14311
14312           enablestring=
14313           defaultval=$wxUSE_ALL_FEATURES
14314           if test -z "$defaultval"; then
14315               if test x"$enablestring" = xdisable; then
14316                   defaultval=yes
14317               else
14318                   defaultval=no
14319               fi
14320           fi
14321
14322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14323 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14324           no_cache=0
14325           # Check whether --enable-tipdlg was given.
14326 if test "${enable_tipdlg+set}" = set; then
14327   enableval=$enable_tipdlg;
14328                           if test "$enableval" = yes; then
14329                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14330                           else
14331                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14332                           fi
14333
14334 else
14335
14336                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14337                           if test "x$LINE" != x ; then
14338                             eval "DEFAULT_$LINE"
14339                           else
14340                             no_cache=1
14341                           fi
14342
14343                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14344
14345 fi
14346
14347
14348           eval "$wx_cv_use_tipdlg"
14349           if test "$no_cache" != 1; then
14350             echo $wx_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
14351           fi
14352
14353           if test x"$enablestring" = xdisable; then
14354             if test $wxUSE_STARTUP_TIPS = yes; then
14355               result=no
14356             else
14357               result=yes
14358             fi
14359           else
14360             result=$wxUSE_STARTUP_TIPS
14361           fi
14362
14363           { echo "$as_me:$LINENO: result: $result" >&5
14364 echo "${ECHO_T}$result" >&6; }
14365
14366
14367           enablestring=
14368           defaultval=$wxUSE_ALL_FEATURES
14369           if test -z "$defaultval"; then
14370               if test x"$enablestring" = xdisable; then
14371                   defaultval=yes
14372               else
14373                   defaultval=no
14374               fi
14375           fi
14376
14377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14378 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14379           no_cache=0
14380           # Check whether --enable-progressdlg was given.
14381 if test "${enable_progressdlg+set}" = set; then
14382   enableval=$enable_progressdlg;
14383                           if test "$enableval" = yes; then
14384                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14385                           else
14386                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14387                           fi
14388
14389 else
14390
14391                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14392                           if test "x$LINE" != x ; then
14393                             eval "DEFAULT_$LINE"
14394                           else
14395                             no_cache=1
14396                           fi
14397
14398                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14399
14400 fi
14401
14402
14403           eval "$wx_cv_use_progressdlg"
14404           if test "$no_cache" != 1; then
14405             echo $wx_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
14406           fi
14407
14408           if test x"$enablestring" = xdisable; then
14409             if test $wxUSE_PROGRESSDLG = yes; then
14410               result=no
14411             else
14412               result=yes
14413             fi
14414           else
14415             result=$wxUSE_PROGRESSDLG
14416           fi
14417
14418           { echo "$as_me:$LINENO: result: $result" >&5
14419 echo "${ECHO_T}$result" >&6; }
14420
14421
14422           enablestring=
14423           defaultval=$wxUSE_ALL_FEATURES
14424           if test -z "$defaultval"; then
14425               if test x"$enablestring" = xdisable; then
14426                   defaultval=yes
14427               else
14428                   defaultval=no
14429               fi
14430           fi
14431
14432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14433 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14434           no_cache=0
14435           # Check whether --enable-wizarddlg was given.
14436 if test "${enable_wizarddlg+set}" = set; then
14437   enableval=$enable_wizarddlg;
14438                           if test "$enableval" = yes; then
14439                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14440                           else
14441                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14442                           fi
14443
14444 else
14445
14446                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14447                           if test "x$LINE" != x ; then
14448                             eval "DEFAULT_$LINE"
14449                           else
14450                             no_cache=1
14451                           fi
14452
14453                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14454
14455 fi
14456
14457
14458           eval "$wx_cv_use_wizarddlg"
14459           if test "$no_cache" != 1; then
14460             echo $wx_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
14461           fi
14462
14463           if test x"$enablestring" = xdisable; then
14464             if test $wxUSE_WIZARDDLG = yes; then
14465               result=no
14466             else
14467               result=yes
14468             fi
14469           else
14470             result=$wxUSE_WIZARDDLG
14471           fi
14472
14473           { echo "$as_me:$LINENO: result: $result" >&5
14474 echo "${ECHO_T}$result" >&6; }
14475
14476
14477
14478
14479           enablestring=
14480           defaultval=$wxUSE_ALL_FEATURES
14481           if test -z "$defaultval"; then
14482               if test x"$enablestring" = xdisable; then
14483                   defaultval=yes
14484               else
14485                   defaultval=no
14486               fi
14487           fi
14488
14489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14490 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14491           no_cache=0
14492           # Check whether --enable-menus was given.
14493 if test "${enable_menus+set}" = set; then
14494   enableval=$enable_menus;
14495                           if test "$enableval" = yes; then
14496                             wx_cv_use_menus='wxUSE_MENUS=yes'
14497                           else
14498                             wx_cv_use_menus='wxUSE_MENUS=no'
14499                           fi
14500
14501 else
14502
14503                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14504                           if test "x$LINE" != x ; then
14505                             eval "DEFAULT_$LINE"
14506                           else
14507                             no_cache=1
14508                           fi
14509
14510                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14511
14512 fi
14513
14514
14515           eval "$wx_cv_use_menus"
14516           if test "$no_cache" != 1; then
14517             echo $wx_cv_use_menus >> ${wx_arg_cache_file}.tmp
14518           fi
14519
14520           if test x"$enablestring" = xdisable; then
14521             if test $wxUSE_MENUS = yes; then
14522               result=no
14523             else
14524               result=yes
14525             fi
14526           else
14527             result=$wxUSE_MENUS
14528           fi
14529
14530           { echo "$as_me:$LINENO: result: $result" >&5
14531 echo "${ECHO_T}$result" >&6; }
14532
14533
14534           enablestring=
14535           defaultval=$wxUSE_ALL_FEATURES
14536           if test -z "$defaultval"; then
14537               if test x"$enablestring" = xdisable; then
14538                   defaultval=yes
14539               else
14540                   defaultval=no
14541               fi
14542           fi
14543
14544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14545 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14546           no_cache=0
14547           # Check whether --enable-miniframe was given.
14548 if test "${enable_miniframe+set}" = set; then
14549   enableval=$enable_miniframe;
14550                           if test "$enableval" = yes; then
14551                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14552                           else
14553                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14554                           fi
14555
14556 else
14557
14558                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14559                           if test "x$LINE" != x ; then
14560                             eval "DEFAULT_$LINE"
14561                           else
14562                             no_cache=1
14563                           fi
14564
14565                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14566
14567 fi
14568
14569
14570           eval "$wx_cv_use_miniframe"
14571           if test "$no_cache" != 1; then
14572             echo $wx_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
14573           fi
14574
14575           if test x"$enablestring" = xdisable; then
14576             if test $wxUSE_MINIFRAME = yes; then
14577               result=no
14578             else
14579               result=yes
14580             fi
14581           else
14582             result=$wxUSE_MINIFRAME
14583           fi
14584
14585           { echo "$as_me:$LINENO: result: $result" >&5
14586 echo "${ECHO_T}$result" >&6; }
14587
14588
14589           enablestring=
14590           defaultval=$wxUSE_ALL_FEATURES
14591           if test -z "$defaultval"; then
14592               if test x"$enablestring" = xdisable; then
14593                   defaultval=yes
14594               else
14595                   defaultval=no
14596               fi
14597           fi
14598
14599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14600 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14601           no_cache=0
14602           # Check whether --enable-tooltips was given.
14603 if test "${enable_tooltips+set}" = set; then
14604   enableval=$enable_tooltips;
14605                           if test "$enableval" = yes; then
14606                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14607                           else
14608                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14609                           fi
14610
14611 else
14612
14613                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14614                           if test "x$LINE" != x ; then
14615                             eval "DEFAULT_$LINE"
14616                           else
14617                             no_cache=1
14618                           fi
14619
14620                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14621
14622 fi
14623
14624
14625           eval "$wx_cv_use_tooltips"
14626           if test "$no_cache" != 1; then
14627             echo $wx_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
14628           fi
14629
14630           if test x"$enablestring" = xdisable; then
14631             if test $wxUSE_TOOLTIPS = yes; then
14632               result=no
14633             else
14634               result=yes
14635             fi
14636           else
14637             result=$wxUSE_TOOLTIPS
14638           fi
14639
14640           { echo "$as_me:$LINENO: result: $result" >&5
14641 echo "${ECHO_T}$result" >&6; }
14642
14643
14644           enablestring=
14645           defaultval=$wxUSE_ALL_FEATURES
14646           if test -z "$defaultval"; then
14647               if test x"$enablestring" = xdisable; then
14648                   defaultval=yes
14649               else
14650                   defaultval=no
14651               fi
14652           fi
14653
14654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14655 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14656           no_cache=0
14657           # Check whether --enable-splines was given.
14658 if test "${enable_splines+set}" = set; then
14659   enableval=$enable_splines;
14660                           if test "$enableval" = yes; then
14661                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14662                           else
14663                             wx_cv_use_splines='wxUSE_SPLINES=no'
14664                           fi
14665
14666 else
14667
14668                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14669                           if test "x$LINE" != x ; then
14670                             eval "DEFAULT_$LINE"
14671                           else
14672                             no_cache=1
14673                           fi
14674
14675                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14676
14677 fi
14678
14679
14680           eval "$wx_cv_use_splines"
14681           if test "$no_cache" != 1; then
14682             echo $wx_cv_use_splines >> ${wx_arg_cache_file}.tmp
14683           fi
14684
14685           if test x"$enablestring" = xdisable; then
14686             if test $wxUSE_SPLINES = yes; then
14687               result=no
14688             else
14689               result=yes
14690             fi
14691           else
14692             result=$wxUSE_SPLINES
14693           fi
14694
14695           { echo "$as_me:$LINENO: result: $result" >&5
14696 echo "${ECHO_T}$result" >&6; }
14697
14698
14699           enablestring=
14700           defaultval=$wxUSE_ALL_FEATURES
14701           if test -z "$defaultval"; then
14702               if test x"$enablestring" = xdisable; then
14703                   defaultval=yes
14704               else
14705                   defaultval=no
14706               fi
14707           fi
14708
14709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14710 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14711           no_cache=0
14712           # Check whether --enable-mousewheel was given.
14713 if test "${enable_mousewheel+set}" = set; then
14714   enableval=$enable_mousewheel;
14715                           if test "$enableval" = yes; then
14716                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14717                           else
14718                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14719                           fi
14720
14721 else
14722
14723                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14724                           if test "x$LINE" != x ; then
14725                             eval "DEFAULT_$LINE"
14726                           else
14727                             no_cache=1
14728                           fi
14729
14730                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14731
14732 fi
14733
14734
14735           eval "$wx_cv_use_mousewheel"
14736           if test "$no_cache" != 1; then
14737             echo $wx_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
14738           fi
14739
14740           if test x"$enablestring" = xdisable; then
14741             if test $wxUSE_MOUSEWHEEL = yes; then
14742               result=no
14743             else
14744               result=yes
14745             fi
14746           else
14747             result=$wxUSE_MOUSEWHEEL
14748           fi
14749
14750           { echo "$as_me:$LINENO: result: $result" >&5
14751 echo "${ECHO_T}$result" >&6; }
14752
14753
14754           enablestring=
14755           defaultval=$wxUSE_ALL_FEATURES
14756           if test -z "$defaultval"; then
14757               if test x"$enablestring" = xdisable; then
14758                   defaultval=yes
14759               else
14760                   defaultval=no
14761               fi
14762           fi
14763
14764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14765 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14766           no_cache=0
14767           # Check whether --enable-validators was given.
14768 if test "${enable_validators+set}" = set; then
14769   enableval=$enable_validators;
14770                           if test "$enableval" = yes; then
14771                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14772                           else
14773                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14774                           fi
14775
14776 else
14777
14778                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14779                           if test "x$LINE" != x ; then
14780                             eval "DEFAULT_$LINE"
14781                           else
14782                             no_cache=1
14783                           fi
14784
14785                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14786
14787 fi
14788
14789
14790           eval "$wx_cv_use_validators"
14791           if test "$no_cache" != 1; then
14792             echo $wx_cv_use_validators >> ${wx_arg_cache_file}.tmp
14793           fi
14794
14795           if test x"$enablestring" = xdisable; then
14796             if test $wxUSE_VALIDATORS = yes; then
14797               result=no
14798             else
14799               result=yes
14800             fi
14801           else
14802             result=$wxUSE_VALIDATORS
14803           fi
14804
14805           { echo "$as_me:$LINENO: result: $result" >&5
14806 echo "${ECHO_T}$result" >&6; }
14807
14808
14809           enablestring=
14810           defaultval=$wxUSE_ALL_FEATURES
14811           if test -z "$defaultval"; then
14812               if test x"$enablestring" = xdisable; then
14813                   defaultval=yes
14814               else
14815                   defaultval=no
14816               fi
14817           fi
14818
14819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14820 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14821           no_cache=0
14822           # Check whether --enable-busyinfo was given.
14823 if test "${enable_busyinfo+set}" = set; then
14824   enableval=$enable_busyinfo;
14825                           if test "$enableval" = yes; then
14826                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14827                           else
14828                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14829                           fi
14830
14831 else
14832
14833                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14834                           if test "x$LINE" != x ; then
14835                             eval "DEFAULT_$LINE"
14836                           else
14837                             no_cache=1
14838                           fi
14839
14840                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14841
14842 fi
14843
14844
14845           eval "$wx_cv_use_busyinfo"
14846           if test "$no_cache" != 1; then
14847             echo $wx_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
14848           fi
14849
14850           if test x"$enablestring" = xdisable; then
14851             if test $wxUSE_BUSYINFO = yes; then
14852               result=no
14853             else
14854               result=yes
14855             fi
14856           else
14857             result=$wxUSE_BUSYINFO
14858           fi
14859
14860           { echo "$as_me:$LINENO: result: $result" >&5
14861 echo "${ECHO_T}$result" >&6; }
14862
14863
14864           enablestring=
14865           defaultval=$wxUSE_ALL_FEATURES
14866           if test -z "$defaultval"; then
14867               if test x"$enablestring" = xdisable; then
14868                   defaultval=yes
14869               else
14870                   defaultval=no
14871               fi
14872           fi
14873
14874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14875 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14876           no_cache=0
14877           # Check whether --enable-joystick was given.
14878 if test "${enable_joystick+set}" = set; then
14879   enableval=$enable_joystick;
14880                           if test "$enableval" = yes; then
14881                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14882                           else
14883                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14884                           fi
14885
14886 else
14887
14888                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14889                           if test "x$LINE" != x ; then
14890                             eval "DEFAULT_$LINE"
14891                           else
14892                             no_cache=1
14893                           fi
14894
14895                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14896
14897 fi
14898
14899
14900           eval "$wx_cv_use_joystick"
14901           if test "$no_cache" != 1; then
14902             echo $wx_cv_use_joystick >> ${wx_arg_cache_file}.tmp
14903           fi
14904
14905           if test x"$enablestring" = xdisable; then
14906             if test $wxUSE_JOYSTICK = yes; then
14907               result=no
14908             else
14909               result=yes
14910             fi
14911           else
14912             result=$wxUSE_JOYSTICK
14913           fi
14914
14915           { echo "$as_me:$LINENO: result: $result" >&5
14916 echo "${ECHO_T}$result" >&6; }
14917
14918
14919           enablestring=
14920           defaultval=$wxUSE_ALL_FEATURES
14921           if test -z "$defaultval"; then
14922               if test x"$enablestring" = xdisable; then
14923                   defaultval=yes
14924               else
14925                   defaultval=no
14926               fi
14927           fi
14928
14929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14930 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14931           no_cache=0
14932           # Check whether --enable-metafile was given.
14933 if test "${enable_metafile+set}" = set; then
14934   enableval=$enable_metafile;
14935                           if test "$enableval" = yes; then
14936                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14937                           else
14938                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14939                           fi
14940
14941 else
14942
14943                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
14944                           if test "x$LINE" != x ; then
14945                             eval "DEFAULT_$LINE"
14946                           else
14947                             no_cache=1
14948                           fi
14949
14950                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14951
14952 fi
14953
14954
14955           eval "$wx_cv_use_metafile"
14956           if test "$no_cache" != 1; then
14957             echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
14958           fi
14959
14960           if test x"$enablestring" = xdisable; then
14961             if test $wxUSE_METAFILE = yes; then
14962               result=no
14963             else
14964               result=yes
14965             fi
14966           else
14967             result=$wxUSE_METAFILE
14968           fi
14969
14970           { echo "$as_me:$LINENO: result: $result" >&5
14971 echo "${ECHO_T}$result" >&6; }
14972
14973
14974           enablestring=
14975           defaultval=$wxUSE_ALL_FEATURES
14976           if test -z "$defaultval"; then
14977               if test x"$enablestring" = xdisable; then
14978                   defaultval=yes
14979               else
14980                   defaultval=no
14981               fi
14982           fi
14983
14984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14985 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14986           no_cache=0
14987           # Check whether --enable-dragimage was given.
14988 if test "${enable_dragimage+set}" = set; then
14989   enableval=$enable_dragimage;
14990                           if test "$enableval" = yes; then
14991                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14992                           else
14993                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14994                           fi
14995
14996 else
14997
14998                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
14999                           if test "x$LINE" != x ; then
15000                             eval "DEFAULT_$LINE"
15001                           else
15002                             no_cache=1
15003                           fi
15004
15005                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15006
15007 fi
15008
15009
15010           eval "$wx_cv_use_dragimage"
15011           if test "$no_cache" != 1; then
15012             echo $wx_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
15013           fi
15014
15015           if test x"$enablestring" = xdisable; then
15016             if test $wxUSE_DRAGIMAGE = yes; then
15017               result=no
15018             else
15019               result=yes
15020             fi
15021           else
15022             result=$wxUSE_DRAGIMAGE
15023           fi
15024
15025           { echo "$as_me:$LINENO: result: $result" >&5
15026 echo "${ECHO_T}$result" >&6; }
15027
15028
15029           enablestring=
15030           defaultval=$wxUSE_ALL_FEATURES
15031           if test -z "$defaultval"; then
15032               if test x"$enablestring" = xdisable; then
15033                   defaultval=yes
15034               else
15035                   defaultval=no
15036               fi
15037           fi
15038
15039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15040 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15041           no_cache=0
15042           # Check whether --enable-accessibility was given.
15043 if test "${enable_accessibility+set}" = set; then
15044   enableval=$enable_accessibility;
15045                           if test "$enableval" = yes; then
15046                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15047                           else
15048                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15049                           fi
15050
15051 else
15052
15053                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15054                           if test "x$LINE" != x ; then
15055                             eval "DEFAULT_$LINE"
15056                           else
15057                             no_cache=1
15058                           fi
15059
15060                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15061
15062 fi
15063
15064
15065           eval "$wx_cv_use_accessibility"
15066           if test "$no_cache" != 1; then
15067             echo $wx_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
15068           fi
15069
15070           if test x"$enablestring" = xdisable; then
15071             if test $wxUSE_ACCESSIBILITY = yes; then
15072               result=no
15073             else
15074               result=yes
15075             fi
15076           else
15077             result=$wxUSE_ACCESSIBILITY
15078           fi
15079
15080           { echo "$as_me:$LINENO: result: $result" >&5
15081 echo "${ECHO_T}$result" >&6; }
15082
15083
15084 if test "$wxUSE_MSW" = "1"; then
15085
15086           enablestring=
15087           defaultval=$wxUSE_ALL_FEATURES
15088           if test -z "$defaultval"; then
15089               if test x"$enablestring" = xdisable; then
15090                   defaultval=yes
15091               else
15092                   defaultval=no
15093               fi
15094           fi
15095
15096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15097 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15098           no_cache=0
15099           # Check whether --enable-dccache was given.
15100 if test "${enable_dccache+set}" = set; then
15101   enableval=$enable_dccache;
15102                           if test "$enableval" = yes; then
15103                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15104                           else
15105                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15106                           fi
15107
15108 else
15109
15110                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15111                           if test "x$LINE" != x ; then
15112                             eval "DEFAULT_$LINE"
15113                           else
15114                             no_cache=1
15115                           fi
15116
15117                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15118
15119 fi
15120
15121
15122           eval "$wx_cv_use_dccache"
15123           if test "$no_cache" != 1; then
15124             echo $wx_cv_use_dccache >> ${wx_arg_cache_file}.tmp
15125           fi
15126
15127           if test x"$enablestring" = xdisable; then
15128             if test $wxUSE_DC_CACHEING = yes; then
15129               result=no
15130             else
15131               result=yes
15132             fi
15133           else
15134             result=$wxUSE_DC_CACHEING
15135           fi
15136
15137           { echo "$as_me:$LINENO: result: $result" >&5
15138 echo "${ECHO_T}$result" >&6; }
15139
15140 fi
15141
15142
15143
15144           enablestring=
15145           defaultval=$wxUSE_ALL_FEATURES
15146           if test -z "$defaultval"; then
15147               if test x"$enablestring" = xdisable; then
15148                   defaultval=yes
15149               else
15150                   defaultval=no
15151               fi
15152           fi
15153
15154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15155 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15156           no_cache=0
15157           # Check whether --enable-palette was given.
15158 if test "${enable_palette+set}" = set; then
15159   enableval=$enable_palette;
15160                           if test "$enableval" = yes; then
15161                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15162                           else
15163                             wx_cv_use_palette='wxUSE_PALETTE=no'
15164                           fi
15165
15166 else
15167
15168                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15169                           if test "x$LINE" != x ; then
15170                             eval "DEFAULT_$LINE"
15171                           else
15172                             no_cache=1
15173                           fi
15174
15175                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15176
15177 fi
15178
15179
15180           eval "$wx_cv_use_palette"
15181           if test "$no_cache" != 1; then
15182             echo $wx_cv_use_palette >> ${wx_arg_cache_file}.tmp
15183           fi
15184
15185           if test x"$enablestring" = xdisable; then
15186             if test $wxUSE_PALETTE = yes; then
15187               result=no
15188             else
15189               result=yes
15190             fi
15191           else
15192             result=$wxUSE_PALETTE
15193           fi
15194
15195           { echo "$as_me:$LINENO: result: $result" >&5
15196 echo "${ECHO_T}$result" >&6; }
15197
15198
15199           enablestring=
15200           defaultval=$wxUSE_ALL_FEATURES
15201           if test -z "$defaultval"; then
15202               if test x"$enablestring" = xdisable; then
15203                   defaultval=yes
15204               else
15205                   defaultval=no
15206               fi
15207           fi
15208
15209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15210 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15211           no_cache=0
15212           # Check whether --enable-image was given.
15213 if test "${enable_image+set}" = set; then
15214   enableval=$enable_image;
15215                           if test "$enableval" = yes; then
15216                             wx_cv_use_image='wxUSE_IMAGE=yes'
15217                           else
15218                             wx_cv_use_image='wxUSE_IMAGE=no'
15219                           fi
15220
15221 else
15222
15223                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15224                           if test "x$LINE" != x ; then
15225                             eval "DEFAULT_$LINE"
15226                           else
15227                             no_cache=1
15228                           fi
15229
15230                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15231
15232 fi
15233
15234
15235           eval "$wx_cv_use_image"
15236           if test "$no_cache" != 1; then
15237             echo $wx_cv_use_image >> ${wx_arg_cache_file}.tmp
15238           fi
15239
15240           if test x"$enablestring" = xdisable; then
15241             if test $wxUSE_IMAGE = yes; then
15242               result=no
15243             else
15244               result=yes
15245             fi
15246           else
15247             result=$wxUSE_IMAGE
15248           fi
15249
15250           { echo "$as_me:$LINENO: result: $result" >&5
15251 echo "${ECHO_T}$result" >&6; }
15252
15253
15254           enablestring=
15255           defaultval=$wxUSE_ALL_FEATURES
15256           if test -z "$defaultval"; then
15257               if test x"$enablestring" = xdisable; then
15258                   defaultval=yes
15259               else
15260                   defaultval=no
15261               fi
15262           fi
15263
15264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15265 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15266           no_cache=0
15267           # Check whether --enable-gif was given.
15268 if test "${enable_gif+set}" = set; then
15269   enableval=$enable_gif;
15270                           if test "$enableval" = yes; then
15271                             wx_cv_use_gif='wxUSE_GIF=yes'
15272                           else
15273                             wx_cv_use_gif='wxUSE_GIF=no'
15274                           fi
15275
15276 else
15277
15278                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15279                           if test "x$LINE" != x ; then
15280                             eval "DEFAULT_$LINE"
15281                           else
15282                             no_cache=1
15283                           fi
15284
15285                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15286
15287 fi
15288
15289
15290           eval "$wx_cv_use_gif"
15291           if test "$no_cache" != 1; then
15292             echo $wx_cv_use_gif >> ${wx_arg_cache_file}.tmp
15293           fi
15294
15295           if test x"$enablestring" = xdisable; then
15296             if test $wxUSE_GIF = yes; then
15297               result=no
15298             else
15299               result=yes
15300             fi
15301           else
15302             result=$wxUSE_GIF
15303           fi
15304
15305           { echo "$as_me:$LINENO: result: $result" >&5
15306 echo "${ECHO_T}$result" >&6; }
15307
15308
15309           enablestring=
15310           defaultval=$wxUSE_ALL_FEATURES
15311           if test -z "$defaultval"; then
15312               if test x"$enablestring" = xdisable; then
15313                   defaultval=yes
15314               else
15315                   defaultval=no
15316               fi
15317           fi
15318
15319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15320 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15321           no_cache=0
15322           # Check whether --enable-pcx was given.
15323 if test "${enable_pcx+set}" = set; then
15324   enableval=$enable_pcx;
15325                           if test "$enableval" = yes; then
15326                             wx_cv_use_pcx='wxUSE_PCX=yes'
15327                           else
15328                             wx_cv_use_pcx='wxUSE_PCX=no'
15329                           fi
15330
15331 else
15332
15333                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15334                           if test "x$LINE" != x ; then
15335                             eval "DEFAULT_$LINE"
15336                           else
15337                             no_cache=1
15338                           fi
15339
15340                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15341
15342 fi
15343
15344
15345           eval "$wx_cv_use_pcx"
15346           if test "$no_cache" != 1; then
15347             echo $wx_cv_use_pcx >> ${wx_arg_cache_file}.tmp
15348           fi
15349
15350           if test x"$enablestring" = xdisable; then
15351             if test $wxUSE_PCX = yes; then
15352               result=no
15353             else
15354               result=yes
15355             fi
15356           else
15357             result=$wxUSE_PCX
15358           fi
15359
15360           { echo "$as_me:$LINENO: result: $result" >&5
15361 echo "${ECHO_T}$result" >&6; }
15362
15363
15364           enablestring=
15365           defaultval=$wxUSE_ALL_FEATURES
15366           if test -z "$defaultval"; then
15367               if test x"$enablestring" = xdisable; then
15368                   defaultval=yes
15369               else
15370                   defaultval=no
15371               fi
15372           fi
15373
15374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15375 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15376           no_cache=0
15377           # Check whether --enable-tga was given.
15378 if test "${enable_tga+set}" = set; then
15379   enableval=$enable_tga;
15380                           if test "$enableval" = yes; then
15381                             wx_cv_use_tga='wxUSE_TGA=yes'
15382                           else
15383                             wx_cv_use_tga='wxUSE_TGA=no'
15384                           fi
15385
15386 else
15387
15388                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15389                           if test "x$LINE" != x ; then
15390                             eval "DEFAULT_$LINE"
15391                           else
15392                             no_cache=1
15393                           fi
15394
15395                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15396
15397 fi
15398
15399
15400           eval "$wx_cv_use_tga"
15401           if test "$no_cache" != 1; then
15402             echo $wx_cv_use_tga >> ${wx_arg_cache_file}.tmp
15403           fi
15404
15405           if test x"$enablestring" = xdisable; then
15406             if test $wxUSE_TGA = yes; then
15407               result=no
15408             else
15409               result=yes
15410             fi
15411           else
15412             result=$wxUSE_TGA
15413           fi
15414
15415           { echo "$as_me:$LINENO: result: $result" >&5
15416 echo "${ECHO_T}$result" >&6; }
15417
15418
15419           enablestring=
15420           defaultval=$wxUSE_ALL_FEATURES
15421           if test -z "$defaultval"; then
15422               if test x"$enablestring" = xdisable; then
15423                   defaultval=yes
15424               else
15425                   defaultval=no
15426               fi
15427           fi
15428
15429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15430 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15431           no_cache=0
15432           # Check whether --enable-iff was given.
15433 if test "${enable_iff+set}" = set; then
15434   enableval=$enable_iff;
15435                           if test "$enableval" = yes; then
15436                             wx_cv_use_iff='wxUSE_IFF=yes'
15437                           else
15438                             wx_cv_use_iff='wxUSE_IFF=no'
15439                           fi
15440
15441 else
15442
15443                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15444                           if test "x$LINE" != x ; then
15445                             eval "DEFAULT_$LINE"
15446                           else
15447                             no_cache=1
15448                           fi
15449
15450                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15451
15452 fi
15453
15454
15455           eval "$wx_cv_use_iff"
15456           if test "$no_cache" != 1; then
15457             echo $wx_cv_use_iff >> ${wx_arg_cache_file}.tmp
15458           fi
15459
15460           if test x"$enablestring" = xdisable; then
15461             if test $wxUSE_IFF = yes; then
15462               result=no
15463             else
15464               result=yes
15465             fi
15466           else
15467             result=$wxUSE_IFF
15468           fi
15469
15470           { echo "$as_me:$LINENO: result: $result" >&5
15471 echo "${ECHO_T}$result" >&6; }
15472
15473
15474           enablestring=
15475           defaultval=$wxUSE_ALL_FEATURES
15476           if test -z "$defaultval"; then
15477               if test x"$enablestring" = xdisable; then
15478                   defaultval=yes
15479               else
15480                   defaultval=no
15481               fi
15482           fi
15483
15484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15485 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15486           no_cache=0
15487           # Check whether --enable-pnm was given.
15488 if test "${enable_pnm+set}" = set; then
15489   enableval=$enable_pnm;
15490                           if test "$enableval" = yes; then
15491                             wx_cv_use_pnm='wxUSE_PNM=yes'
15492                           else
15493                             wx_cv_use_pnm='wxUSE_PNM=no'
15494                           fi
15495
15496 else
15497
15498                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15499                           if test "x$LINE" != x ; then
15500                             eval "DEFAULT_$LINE"
15501                           else
15502                             no_cache=1
15503                           fi
15504
15505                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15506
15507 fi
15508
15509
15510           eval "$wx_cv_use_pnm"
15511           if test "$no_cache" != 1; then
15512             echo $wx_cv_use_pnm >> ${wx_arg_cache_file}.tmp
15513           fi
15514
15515           if test x"$enablestring" = xdisable; then
15516             if test $wxUSE_PNM = yes; then
15517               result=no
15518             else
15519               result=yes
15520             fi
15521           else
15522             result=$wxUSE_PNM
15523           fi
15524
15525           { echo "$as_me:$LINENO: result: $result" >&5
15526 echo "${ECHO_T}$result" >&6; }
15527
15528
15529           enablestring=
15530           defaultval=$wxUSE_ALL_FEATURES
15531           if test -z "$defaultval"; then
15532               if test x"$enablestring" = xdisable; then
15533                   defaultval=yes
15534               else
15535                   defaultval=no
15536               fi
15537           fi
15538
15539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15540 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15541           no_cache=0
15542           # Check whether --enable-xpm was given.
15543 if test "${enable_xpm+set}" = set; then
15544   enableval=$enable_xpm;
15545                           if test "$enableval" = yes; then
15546                             wx_cv_use_xpm='wxUSE_XPM=yes'
15547                           else
15548                             wx_cv_use_xpm='wxUSE_XPM=no'
15549                           fi
15550
15551 else
15552
15553                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15554                           if test "x$LINE" != x ; then
15555                             eval "DEFAULT_$LINE"
15556                           else
15557                             no_cache=1
15558                           fi
15559
15560                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15561
15562 fi
15563
15564
15565           eval "$wx_cv_use_xpm"
15566           if test "$no_cache" != 1; then
15567             echo $wx_cv_use_xpm >> ${wx_arg_cache_file}.tmp
15568           fi
15569
15570           if test x"$enablestring" = xdisable; then
15571             if test $wxUSE_XPM = yes; then
15572               result=no
15573             else
15574               result=yes
15575             fi
15576           else
15577             result=$wxUSE_XPM
15578           fi
15579
15580           { echo "$as_me:$LINENO: result: $result" >&5
15581 echo "${ECHO_T}$result" >&6; }
15582
15583
15584           enablestring=
15585           defaultval=$wxUSE_ALL_FEATURES
15586           if test -z "$defaultval"; then
15587               if test x"$enablestring" = xdisable; then
15588                   defaultval=yes
15589               else
15590                   defaultval=no
15591               fi
15592           fi
15593
15594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15595 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15596           no_cache=0
15597           # Check whether --enable-ico_cur was given.
15598 if test "${enable_ico_cur+set}" = set; then
15599   enableval=$enable_ico_cur;
15600                           if test "$enableval" = yes; then
15601                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15602                           else
15603                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15604                           fi
15605
15606 else
15607
15608                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15609                           if test "x$LINE" != x ; then
15610                             eval "DEFAULT_$LINE"
15611                           else
15612                             no_cache=1
15613                           fi
15614
15615                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15616
15617 fi
15618
15619
15620           eval "$wx_cv_use_ico_cur"
15621           if test "$no_cache" != 1; then
15622             echo $wx_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
15623           fi
15624
15625           if test x"$enablestring" = xdisable; then
15626             if test $wxUSE_ICO_CUR = yes; then
15627               result=no
15628             else
15629               result=yes
15630             fi
15631           else
15632             result=$wxUSE_ICO_CUR
15633           fi
15634
15635           { echo "$as_me:$LINENO: result: $result" >&5
15636 echo "${ECHO_T}$result" >&6; }
15637
15638
15639 fi
15640
15641
15642           echo "saving argument cache $wx_arg_cache_file"
15643           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15644
15645
15646
15647 { echo "$as_me:$LINENO: checking for toolkit" >&5
15648 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15649
15650 # In Wine, we need to default to MSW, not GTK or MOTIF
15651 if test "$wxUSE_WINE" = "yes"; then
15652     DEFAULT_DEFAULT_wxUSE_GTK=0
15653     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15654     DEFAULT_DEFAULT_wxUSE_MSW=1
15655     wxUSE_SHARED=no
15656     CC=${CC:-winegcc}
15657     CXX=${CXX:-wineg++}
15658 fi
15659
15660
15661 if test "$wxUSE_GUI" = "yes"; then
15662
15663     if test "$USE_BEOS" = 1; then
15664         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15665 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15666    { (exit 1); exit 1; }; }
15667     fi
15668
15669     if test "$TOOLKIT_GIVEN" = 1; then
15670             for toolkit in `echo $ALL_TOOLKITS`; do
15671         var=wxUSE_$toolkit
15672         eval "value=\$${var}"
15673         if test "x$value" = "xno"; then
15674           eval "$var=0"
15675         elif test "x$value" != "x"; then
15676           eval "$var=1"
15677         fi
15678
15679         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15680           eval "wx${toolkit}_VERSION=$value"
15681         fi
15682       done
15683     else
15684             for toolkit in `echo $ALL_TOOLKITS`; do
15685         if test "$has_toolkit_in_cache" != 1; then
15686           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15687         else
15688           var=DEFAULT_wxUSE_$toolkit
15689
15690           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15691           if test "x$version" != "x"; then
15692             eval "wx${toolkit}_VERSION=$version"
15693           fi
15694         fi
15695         eval "wxUSE_$toolkit=\$${var}"
15696       done
15697     fi
15698
15699             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15700                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15701                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15702
15703         case "${host}" in
15704       *-pc-os2_emx | *-pc-os2-emx )
15705         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15706     esac
15707
15708     case "$NUM_TOOLKITS" in
15709       1)
15710       ;;
15711       0)
15712         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15713 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15714    { (exit 1); exit 1; }; }
15715       ;;
15716       *)
15717         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15718 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15719    { (exit 1); exit 1; }; }
15720     esac
15721
15722     # to be removed when --disable-gtk2 isn't needed
15723     if test "x$wxUSE_GTK2" = "xyes"; then
15724         wxGTK_VERSION=2
15725     elif test "x$wxUSE_GTK2" = "xno"; then
15726         wxGTK_VERSION=1
15727     fi
15728
15729         for toolkit in `echo $ALL_TOOLKITS`; do
15730       var=wxUSE_$toolkit
15731       eval "value=\$${var}"
15732       if test "x$value" != x; then
15733         cache_var=CACHE_$toolkit
15734         eval "cache=\$${cache_var}"
15735         if test "$cache" = 1; then
15736           echo "$var=$value" >> ${wx_arg_cache_file}
15737           eval "version=\$wx${toolkit}_VERSION"
15738           if test "x$version" != "x"; then
15739             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
15740           fi
15741         fi
15742         if test "$value" = 1; then
15743           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
15744           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
15745 echo "${ECHO_T}$toolkit_echo" >&6; }
15746         fi
15747       fi
15748     done
15749 else
15750     if test "x$host_alias" != "x"; then
15751         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
15752 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
15753     else
15754         { echo "$as_me:$LINENO: result: base only" >&5
15755 echo "${ECHO_T}base only" >&6; }
15756     fi
15757 fi
15758
15759
15760 cat >confcache <<\_ACEOF
15761 # This file is a shell script that caches the results of configure
15762 # tests run on this system so they can be shared between configure
15763 # scripts and configure runs, see configure's option --config-cache.
15764 # It is not useful on other systems.  If it contains results you don't
15765 # want to keep, you may remove or edit it.
15766 #
15767 # config.status only pays attention to the cache file if you give it
15768 # the --recheck option to rerun configure.
15769 #
15770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15772 # following values.
15773
15774 _ACEOF
15775
15776 # The following way of writing the cache mishandles newlines in values,
15777 # but we know of no workaround that is simple, portable, and efficient.
15778 # So, we kill variables containing newlines.
15779 # Ultrix sh set writes to stderr and can't be redirected directly,
15780 # and sets the high bit in the cache file unless we assign to the vars.
15781 (
15782   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15783     eval ac_val=\$$ac_var
15784     case $ac_val in #(
15785     *${as_nl}*)
15786       case $ac_var in #(
15787       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15788 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15789       esac
15790       case $ac_var in #(
15791       _ | IFS | as_nl) ;; #(
15792       *) $as_unset $ac_var ;;
15793       esac ;;
15794     esac
15795   done
15796
15797   (set) 2>&1 |
15798     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15799     *${as_nl}ac_space=\ *)
15800       # `set' does not quote correctly, so add quotes (double-quote
15801       # substitution turns \\\\ into \\, and sed turns \\ into \).
15802       sed -n \
15803         "s/'/'\\\\''/g;
15804           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15805       ;; #(
15806     *)
15807       # `set' quotes correctly as required by POSIX, so do not add quotes.
15808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15809       ;;
15810     esac |
15811     sort
15812 ) |
15813   sed '
15814      /^ac_cv_env_/b end
15815      t clear
15816      :clear
15817      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15818      t end
15819      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15820      :end' >>confcache
15821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15822   if test -w "$cache_file"; then
15823     test "x$cache_file" != "x/dev/null" &&
15824       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15825 echo "$as_me: updating cache $cache_file" >&6;}
15826     cat confcache >$cache_file
15827   else
15828     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15829 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15830   fi
15831 fi
15832 rm -f confcache
15833
15834 CFLAGS=${CFLAGS:=}
15835
15836
15837
15838     ac_ext=c
15839 ac_cpp='$CPP $CPPFLAGS'
15840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15843 if test -n "$ac_tool_prefix"; then
15844   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15848 if test "${ac_cv_prog_CC+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   if test -n "$CC"; then
15852   ac_cv_prog_CC="$CC" # Let the user override the test.
15853 else
15854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15855 for as_dir in $PATH
15856 do
15857   IFS=$as_save_IFS
15858   test -z "$as_dir" && as_dir=.
15859   for ac_exec_ext in '' $ac_executable_extensions; do
15860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15861     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15863     break 2
15864   fi
15865 done
15866 done
15867 IFS=$as_save_IFS
15868
15869 fi
15870 fi
15871 CC=$ac_cv_prog_CC
15872 if test -n "$CC"; then
15873   { echo "$as_me:$LINENO: result: $CC" >&5
15874 echo "${ECHO_T}$CC" >&6; }
15875 else
15876   { echo "$as_me:$LINENO: result: no" >&5
15877 echo "${ECHO_T}no" >&6; }
15878 fi
15879
15880
15881 fi
15882 if test -z "$ac_cv_prog_CC"; then
15883   ac_ct_CC=$CC
15884   # Extract the first word of "gcc", so it can be a program name with args.
15885 set dummy gcc; ac_word=$2
15886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   if test -n "$ac_ct_CC"; then
15892   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15893 else
15894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895 for as_dir in $PATH
15896 do
15897   IFS=$as_save_IFS
15898   test -z "$as_dir" && as_dir=.
15899   for ac_exec_ext in '' $ac_executable_extensions; do
15900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15901     ac_cv_prog_ac_ct_CC="gcc"
15902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15903     break 2
15904   fi
15905 done
15906 done
15907 IFS=$as_save_IFS
15908
15909 fi
15910 fi
15911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15912 if test -n "$ac_ct_CC"; then
15913   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15914 echo "${ECHO_T}$ac_ct_CC" >&6; }
15915 else
15916   { echo "$as_me:$LINENO: result: no" >&5
15917 echo "${ECHO_T}no" >&6; }
15918 fi
15919
15920   if test "x$ac_ct_CC" = x; then
15921     CC=""
15922   else
15923     case $cross_compiling:$ac_tool_warned in
15924 yes:)
15925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15926 whose name does not start with the host triplet.  If you think this
15927 configuration is useful to you, please write to autoconf@gnu.org." >&5
15928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15929 whose name does not start with the host triplet.  If you think this
15930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15931 ac_tool_warned=yes ;;
15932 esac
15933     CC=$ac_ct_CC
15934   fi
15935 else
15936   CC="$ac_cv_prog_CC"
15937 fi
15938
15939 if test -z "$CC"; then
15940           if test -n "$ac_tool_prefix"; then
15941     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15942 set dummy ${ac_tool_prefix}cc; ac_word=$2
15943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15945 if test "${ac_cv_prog_CC+set}" = set; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   if test -n "$CC"; then
15949   ac_cv_prog_CC="$CC" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15953 do
15954   IFS=$as_save_IFS
15955   test -z "$as_dir" && as_dir=.
15956   for ac_exec_ext in '' $ac_executable_extensions; do
15957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15958     ac_cv_prog_CC="${ac_tool_prefix}cc"
15959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15960     break 2
15961   fi
15962 done
15963 done
15964 IFS=$as_save_IFS
15965
15966 fi
15967 fi
15968 CC=$ac_cv_prog_CC
15969 if test -n "$CC"; then
15970   { echo "$as_me:$LINENO: result: $CC" >&5
15971 echo "${ECHO_T}$CC" >&6; }
15972 else
15973   { echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6; }
15975 fi
15976
15977
15978   fi
15979 fi
15980 if test -z "$CC"; then
15981   # Extract the first word of "cc", so it can be a program name with args.
15982 set dummy cc; ac_word=$2
15983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15985 if test "${ac_cv_prog_CC+set}" = set; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   if test -n "$CC"; then
15989   ac_cv_prog_CC="$CC" # Let the user override the test.
15990 else
15991   ac_prog_rejected=no
15992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15993 for as_dir in $PATH
15994 do
15995   IFS=$as_save_IFS
15996   test -z "$as_dir" && as_dir=.
15997   for ac_exec_ext in '' $ac_executable_extensions; do
15998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15999     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16000        ac_prog_rejected=yes
16001        continue
16002      fi
16003     ac_cv_prog_CC="cc"
16004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16005     break 2
16006   fi
16007 done
16008 done
16009 IFS=$as_save_IFS
16010
16011 if test $ac_prog_rejected = yes; then
16012   # We found a bogon in the path, so make sure we never use it.
16013   set dummy $ac_cv_prog_CC
16014   shift
16015   if test $# != 0; then
16016     # We chose a different compiler from the bogus one.
16017     # However, it has the same basename, so the bogon will be chosen
16018     # first if we set CC to just the basename; use the full file name.
16019     shift
16020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16021   fi
16022 fi
16023 fi
16024 fi
16025 CC=$ac_cv_prog_CC
16026 if test -n "$CC"; then
16027   { echo "$as_me:$LINENO: result: $CC" >&5
16028 echo "${ECHO_T}$CC" >&6; }
16029 else
16030   { echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6; }
16032 fi
16033
16034
16035 fi
16036 if test -z "$CC"; then
16037   if test -n "$ac_tool_prefix"; then
16038   for ac_prog in cl.exe
16039   do
16040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16044 if test "${ac_cv_prog_CC+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   if test -n "$CC"; then
16048   ac_cv_prog_CC="$CC" # Let the user override the test.
16049 else
16050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051 for as_dir in $PATH
16052 do
16053   IFS=$as_save_IFS
16054   test -z "$as_dir" && as_dir=.
16055   for ac_exec_ext in '' $ac_executable_extensions; do
16056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16059     break 2
16060   fi
16061 done
16062 done
16063 IFS=$as_save_IFS
16064
16065 fi
16066 fi
16067 CC=$ac_cv_prog_CC
16068 if test -n "$CC"; then
16069   { echo "$as_me:$LINENO: result: $CC" >&5
16070 echo "${ECHO_T}$CC" >&6; }
16071 else
16072   { echo "$as_me:$LINENO: result: no" >&5
16073 echo "${ECHO_T}no" >&6; }
16074 fi
16075
16076
16077     test -n "$CC" && break
16078   done
16079 fi
16080 if test -z "$CC"; then
16081   ac_ct_CC=$CC
16082   for ac_prog in cl.exe
16083 do
16084   # Extract the first word of "$ac_prog", so it can be a program name with args.
16085 set dummy $ac_prog; ac_word=$2
16086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091   if test -n "$ac_ct_CC"; then
16092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16093 else
16094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095 for as_dir in $PATH
16096 do
16097   IFS=$as_save_IFS
16098   test -z "$as_dir" && as_dir=.
16099   for ac_exec_ext in '' $ac_executable_extensions; do
16100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16101     ac_cv_prog_ac_ct_CC="$ac_prog"
16102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16103     break 2
16104   fi
16105 done
16106 done
16107 IFS=$as_save_IFS
16108
16109 fi
16110 fi
16111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16112 if test -n "$ac_ct_CC"; then
16113   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16114 echo "${ECHO_T}$ac_ct_CC" >&6; }
16115 else
16116   { echo "$as_me:$LINENO: result: no" >&5
16117 echo "${ECHO_T}no" >&6; }
16118 fi
16119
16120
16121   test -n "$ac_ct_CC" && break
16122 done
16123
16124   if test "x$ac_ct_CC" = x; then
16125     CC=""
16126   else
16127     case $cross_compiling:$ac_tool_warned in
16128 yes:)
16129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16130 whose name does not start with the host triplet.  If you think this
16131 configuration is useful to you, please write to autoconf@gnu.org." >&5
16132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16133 whose name does not start with the host triplet.  If you think this
16134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16135 ac_tool_warned=yes ;;
16136 esac
16137     CC=$ac_ct_CC
16138   fi
16139 fi
16140
16141 fi
16142
16143
16144 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16145 See \`config.log' for more details." >&5
16146 echo "$as_me: error: no acceptable C compiler found in \$PATH
16147 See \`config.log' for more details." >&2;}
16148    { (exit 1); exit 1; }; }
16149
16150 # Provide some information about the compiler.
16151 echo "$as_me:$LINENO: checking for C compiler version" >&5
16152 ac_compiler=`set X $ac_compile; echo $2`
16153 { (ac_try="$ac_compiler --version >&5"
16154 case "(($ac_try" in
16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156   *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159   (eval "$ac_compiler --version >&5") 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }
16163 { (ac_try="$ac_compiler -v >&5"
16164 case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_compiler -v >&5") 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }
16173 { (ac_try="$ac_compiler -V >&5"
16174 case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_compiler -V >&5") 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }
16183
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190
16191 int
16192 main ()
16193 {
16194
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 ac_clean_files_save=$ac_clean_files
16200 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16201 # Try to create an executable without -o first, disregard a.out.
16202 # It will help us diagnose broken compilers, and finding out an intuition
16203 # of exeext.
16204 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16205 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16206 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16207 #
16208 # List of possible output files, starting from the most likely.
16209 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16210 # only as a last resort.  b.out is created by i960 compilers.
16211 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16212 #
16213 # The IRIX 6 linker writes into existing files which may not be
16214 # executable, retaining their permissions.  Remove them first so a
16215 # subsequent execution test works.
16216 ac_rmfiles=
16217 for ac_file in $ac_files
16218 do
16219   case $ac_file in
16220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16221     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16222   esac
16223 done
16224 rm -f $ac_rmfiles
16225
16226 if { (ac_try="$ac_link_default"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_link_default") 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; then
16236   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16238 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16239 # so that the user can short-circuit this test for compilers unknown to
16240 # Autoconf.
16241 for ac_file in $ac_files ''
16242 do
16243   test -f "$ac_file" || continue
16244   case $ac_file in
16245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16246         ;;
16247     [ab].out )
16248         # We found the default executable, but exeext='' is most
16249         # certainly right.
16250         break;;
16251     *.* )
16252         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16253         then :; else
16254            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16255         fi
16256         # We set ac_cv_exeext here because the later test for it is not
16257         # safe: cross compilers may not add the suffix if given an `-o'
16258         # argument, so we may need to know it at that point already.
16259         # Even if this section looks crufty: it has the advantage of
16260         # actually working.
16261         break;;
16262     * )
16263         break;;
16264   esac
16265 done
16266 test "$ac_cv_exeext" = no && ac_cv_exeext=
16267
16268 else
16269   ac_file=''
16270 fi
16271
16272 { echo "$as_me:$LINENO: result: $ac_file" >&5
16273 echo "${ECHO_T}$ac_file" >&6; }
16274 if test -z "$ac_file"; then
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16279 See \`config.log' for more details." >&5
16280 echo "$as_me: error: C compiler cannot create executables
16281 See \`config.log' for more details." >&2;}
16282    { (exit 77); exit 77; }; }
16283 fi
16284
16285 ac_exeext=$ac_cv_exeext
16286
16287 # Check that the compiler produces executables we can run.  If not, either
16288 # the compiler is broken, or we cross compile.
16289 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16290 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16291 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16292 # If not cross compiling, check that we can run a simple program.
16293 if test "$cross_compiling" != yes; then
16294   if { ac_try='./$ac_file'
16295   { (case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_try") 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304     cross_compiling=no
16305   else
16306     if test "$cross_compiling" = maybe; then
16307         cross_compiling=yes
16308     else
16309         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16310 If you meant to cross compile, use \`--host'.
16311 See \`config.log' for more details." >&5
16312 echo "$as_me: error: cannot run C compiled programs.
16313 If you meant to cross compile, use \`--host'.
16314 See \`config.log' for more details." >&2;}
16315    { (exit 1); exit 1; }; }
16316     fi
16317   fi
16318 fi
16319 { echo "$as_me:$LINENO: result: yes" >&5
16320 echo "${ECHO_T}yes" >&6; }
16321
16322 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16323 ac_clean_files=$ac_clean_files_save
16324 # Check that the compiler produces executables we can run.  If not, either
16325 # the compiler is broken, or we cross compile.
16326 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16327 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16328 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16329 echo "${ECHO_T}$cross_compiling" >&6; }
16330
16331 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16332 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16333 if { (ac_try="$ac_link"
16334 case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_link") 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; then
16343   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16344 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16345 # work properly (i.e., refer to `conftest.exe'), while it won't with
16346 # `rm'.
16347 for ac_file in conftest.exe conftest conftest.*; do
16348   test -f "$ac_file" || continue
16349   case $ac_file in
16350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16351     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16352           break;;
16353     * ) break;;
16354   esac
16355 done
16356 else
16357   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16358 See \`config.log' for more details." >&5
16359 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16360 See \`config.log' for more details." >&2;}
16361    { (exit 1); exit 1; }; }
16362 fi
16363
16364 rm -f conftest$ac_cv_exeext
16365 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16366 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16367
16368 rm -f conftest.$ac_ext
16369 EXEEXT=$ac_cv_exeext
16370 ac_exeext=$EXEEXT
16371 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16372 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16373 if test "${ac_cv_objext+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382
16383 int
16384 main ()
16385 {
16386
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.o conftest.obj
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; then
16402   for ac_file in conftest.o conftest.obj conftest.*; do
16403   test -f "$ac_file" || continue;
16404   case $ac_file in
16405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16406     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16407        break;;
16408   esac
16409 done
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16415 See \`config.log' for more details." >&5
16416 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16417 See \`config.log' for more details." >&2;}
16418    { (exit 1); exit 1; }; }
16419 fi
16420
16421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16422 fi
16423 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16424 echo "${ECHO_T}$ac_cv_objext" >&6; }
16425 OBJEXT=$ac_cv_objext
16426 ac_objext=$OBJEXT
16427 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432   cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438
16439 int
16440 main ()
16441 {
16442 #ifndef __GNUC__
16443        choke me
16444 #endif
16445
16446   ;
16447   return 0;
16448 }
16449 _ACEOF
16450 rm -f conftest.$ac_objext
16451 if { (ac_try="$ac_compile"
16452 case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_compile") 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } && {
16464          test -z "$ac_c_werror_flag" ||
16465          test ! -s conftest.err
16466        } && test -s conftest.$ac_objext; then
16467   ac_compiler_gnu=yes
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472         ac_compiler_gnu=no
16473 fi
16474
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16477
16478 fi
16479 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16480 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16481 GCC=`test $ac_compiler_gnu = yes && echo yes`
16482 ac_test_CFLAGS=${CFLAGS+set}
16483 ac_save_CFLAGS=$CFLAGS
16484 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16485 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16486 if test "${ac_cv_prog_cc_g+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   ac_save_c_werror_flag=$ac_c_werror_flag
16490    ac_c_werror_flag=yes
16491    ac_cv_prog_cc_g=no
16492    CFLAGS="-g"
16493    cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h.  */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h.  */
16499
16500 int
16501 main ()
16502 {
16503
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (ac_try="$ac_compile"
16510 case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_compile") 2>conftest.er1
16516   ac_status=$?
16517   grep -v '^ *+' conftest.er1 >conftest.err
16518   rm -f conftest.er1
16519   cat conftest.err >&5
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); } && {
16522          test -z "$ac_c_werror_flag" ||
16523          test ! -s conftest.err
16524        } && test -s conftest.$ac_objext; then
16525   ac_cv_prog_cc_g=yes
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16529
16530         CFLAGS=""
16531       cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537
16538 int
16539 main ()
16540 {
16541
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_compile") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } && {
16560          test -z "$ac_c_werror_flag" ||
16561          test ! -s conftest.err
16562        } && test -s conftest.$ac_objext; then
16563   :
16564 else
16565   echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568         ac_c_werror_flag=$ac_save_c_werror_flag
16569          CFLAGS="-g"
16570          cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576
16577 int
16578 main ()
16579 {
16580
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (ac_try="$ac_compile"
16587 case "(($ac_try" in
16588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589   *) ac_try_echo=$ac_try;;
16590 esac
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592   (eval "$ac_compile") 2>conftest.er1
16593   ac_status=$?
16594   grep -v '^ *+' conftest.er1 >conftest.err
16595   rm -f conftest.er1
16596   cat conftest.err >&5
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } && {
16599          test -z "$ac_c_werror_flag" ||
16600          test ! -s conftest.err
16601        } && test -s conftest.$ac_objext; then
16602   ac_cv_prog_cc_g=yes
16603 else
16604   echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607
16608 fi
16609
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617    ac_c_werror_flag=$ac_save_c_werror_flag
16618 fi
16619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16621 if test "$ac_test_CFLAGS" = set; then
16622   CFLAGS=$ac_save_CFLAGS
16623 elif test $ac_cv_prog_cc_g = yes; then
16624   if test "$GCC" = yes; then
16625     CFLAGS="-g -O2"
16626   else
16627     CFLAGS="-g"
16628   fi
16629 else
16630   if test "$GCC" = yes; then
16631     CFLAGS="-O2"
16632   else
16633     CFLAGS=
16634   fi
16635 fi
16636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16638 if test "${ac_cv_prog_cc_c89+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   ac_cv_prog_cc_c89=no
16642 ac_save_CC=$CC
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649 #include <stdarg.h>
16650 #include <stdio.h>
16651 #include <sys/types.h>
16652 #include <sys/stat.h>
16653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16654 struct buf { int x; };
16655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16656 static char *e (p, i)
16657      char **p;
16658      int i;
16659 {
16660   return p[i];
16661 }
16662 static char *f (char * (*g) (char **, int), char **p, ...)
16663 {
16664   char *s;
16665   va_list v;
16666   va_start (v,p);
16667   s = g (p, va_arg (v,int));
16668   va_end (v);
16669   return s;
16670 }
16671
16672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16673    function prototypes and stuff, but not '\xHH' hex character constants.
16674    These don't provoke an error unfortunately, instead are silently treated
16675    as 'x'.  The following induces an error, until -std is added to get
16676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16677    array size at least.  It's necessary to write '\x00'==0 to get something
16678    that's true only with -std.  */
16679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16680
16681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16682    inside strings and character constants.  */
16683 #define FOO(x) 'x'
16684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16685
16686 int test (int i, double x);
16687 struct s1 {int (*f) (int a);};
16688 struct s2 {int (*f) (double a);};
16689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16690 int argc;
16691 char **argv;
16692 int
16693 main ()
16694 {
16695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16702 do
16703   CC="$ac_save_CC $ac_arg"
16704   rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_compile") 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } && {
16718          test -z "$ac_c_werror_flag" ||
16719          test ! -s conftest.err
16720        } && test -s conftest.$ac_objext; then
16721   ac_cv_prog_cc_c89=$ac_arg
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726
16727 fi
16728
16729 rm -f core conftest.err conftest.$ac_objext
16730   test "x$ac_cv_prog_cc_c89" != "xno" && break
16731 done
16732 rm -f conftest.$ac_ext
16733 CC=$ac_save_CC
16734
16735 fi
16736 # AC_CACHE_VAL
16737 case "x$ac_cv_prog_cc_c89" in
16738   x)
16739     { echo "$as_me:$LINENO: result: none needed" >&5
16740 echo "${ECHO_T}none needed" >&6; } ;;
16741   xno)
16742     { echo "$as_me:$LINENO: result: unsupported" >&5
16743 echo "${ECHO_T}unsupported" >&6; } ;;
16744   *)
16745     CC="$CC $ac_cv_prog_cc_c89"
16746     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16747 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16748 esac
16749
16750
16751 ac_ext=c
16752 ac_cpp='$CPP $CPPFLAGS'
16753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16756
16757
16758
16759
16760     ac_ext=c
16761 ac_cpp='$CPP $CPPFLAGS'
16762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16765
16766     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16767 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16768 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777
16778 int
16779 main ()
16780 {
16781
16782              #ifndef __INTEL_COMPILER
16783                 choke me
16784              #endif
16785
16786   ;
16787   return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_compile") 2>conftest.er1
16798   ac_status=$?
16799   grep -v '^ *+' conftest.er1 >conftest.err
16800   rm -f conftest.er1
16801   cat conftest.err >&5
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } && {
16804          test -z "$ac_c_werror_flag" ||
16805          test ! -s conftest.err
16806        } && test -s conftest.$ac_objext; then
16807   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812         bakefile_cv_c_compiler___INTEL_COMPILER=no
16813
16814 fi
16815
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817
16818
16819 fi
16820 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16821 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16822     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16823         :; INTELCC=yes
16824     else
16825         :;
16826     fi
16827     ac_ext=c
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16832
16833
16834
16835
16836         if test "x$GCC" != "xyes"; then
16837         if test "xCC" = "xC"; then
16838             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16839 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16840 if test "${bakefile_cv_c_exto+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 int
16851 main ()
16852 {
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext conftest.$ac_ext.o
16859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860   (eval $ac_compile) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; then
16864   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16865     case $ac_file in
16866         conftest.$ac_ext.o)
16867             bakefile_cv_c_exto="-ext o"
16868             ;;
16869         *)
16870             ;;
16871     esac
16872 done
16873 else
16874   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16875 See \`config.log' for more details." >&5
16876 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16877 See \`config.log' for more details." >&2;}
16878    { (exit 1); exit 1; }; }
16879
16880 fi
16881
16882 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16883
16884 fi
16885 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16886 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16887 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16888     if test "c" = "c"; then
16889         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16890     fi
16891     if test "c" = "cxx"; then
16892         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16893     fi
16894 fi
16895
16896             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16897                 unset ac_cv_prog_cc_g
16898                 ac_test_CFLAGS=${CFLAGS+set}
16899 ac_save_CFLAGS=$CFLAGS
16900 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16902 if test "${ac_cv_prog_cc_g+set}" = set; then
16903   echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905   ac_save_c_werror_flag=$ac_c_werror_flag
16906    ac_c_werror_flag=yes
16907    ac_cv_prog_cc_g=no
16908    CFLAGS="-g"
16909    cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915
16916 int
16917 main ()
16918 {
16919
16920   ;
16921   return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (ac_try="$ac_compile"
16926 case "(($ac_try" in
16927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928   *) ac_try_echo=$ac_try;;
16929 esac
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931   (eval "$ac_compile") 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && {
16938          test -z "$ac_c_werror_flag" ||
16939          test ! -s conftest.err
16940        } && test -s conftest.$ac_objext; then
16941   ac_cv_prog_cc_g=yes
16942 else
16943   echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16945
16946         CFLAGS=""
16947       cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953
16954 int
16955 main ()
16956 {
16957
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969   (eval "$ac_compile") 2>conftest.er1
16970   ac_status=$?
16971   grep -v '^ *+' conftest.er1 >conftest.err
16972   rm -f conftest.er1
16973   cat conftest.err >&5
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); } && {
16976          test -z "$ac_c_werror_flag" ||
16977          test ! -s conftest.err
16978        } && test -s conftest.$ac_objext; then
16979   :
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984         ac_c_werror_flag=$ac_save_c_werror_flag
16985          CFLAGS="-g"
16986          cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992
16993 int
16994 main ()
16995 {
16996
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext
17002 if { (ac_try="$ac_compile"
17003 case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_compile") 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } && {
17015          test -z "$ac_c_werror_flag" ||
17016          test ! -s conftest.err
17017        } && test -s conftest.$ac_objext; then
17018   ac_cv_prog_cc_g=yes
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023
17024 fi
17025
17026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 fi
17031
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033    ac_c_werror_flag=$ac_save_c_werror_flag
17034 fi
17035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17036 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17037 if test "$ac_test_CFLAGS" = set; then
17038   CFLAGS=$ac_save_CFLAGS
17039 elif test $ac_cv_prog_cc_g = yes; then
17040   if test "$GCC" = yes; then
17041     CFLAGS="-g -O2"
17042   else
17043     CFLAGS="-g"
17044   fi
17045 else
17046   if test "$GCC" = yes; then
17047     CFLAGS="-O2"
17048   else
17049     CFLAGS=
17050   fi
17051 fi
17052             fi
17053         fi
17054
17055                         case `uname -s` in
17056             AIX*)
17057
17058
17059     ac_ext=c
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064
17065     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17066 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17067 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076
17077 int
17078 main ()
17079 {
17080
17081              #ifndef __xlC__
17082                 choke me
17083              #endif
17084
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (ac_try="$ac_compile"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_compile") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest.$ac_objext; then
17106   bakefile_cv_c_compiler___xlC__=yes
17107 else
17108   echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         bakefile_cv_c_compiler___xlC__=no
17112
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116
17117
17118 fi
17119 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17120 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17121     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17122         :; XLCC=yes
17123     else
17124         :;
17125     fi
17126     ac_ext=c
17127 ac_cpp='$CPP $CPPFLAGS'
17128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17131
17132
17133
17134                 ;;
17135
17136             Darwin)
17137
17138
17139     ac_ext=c
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144
17145     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17146 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17147 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h.  */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h.  */
17156
17157 int
17158 main ()
17159 {
17160
17161              #ifndef __MWERKS__
17162                 choke me
17163              #endif
17164
17165   ;
17166   return 0;
17167 }
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_compile") 2>conftest.er1
17177   ac_status=$?
17178   grep -v '^ *+' conftest.er1 >conftest.err
17179   rm -f conftest.er1
17180   cat conftest.err >&5
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } && {
17183          test -z "$ac_c_werror_flag" ||
17184          test ! -s conftest.err
17185        } && test -s conftest.$ac_objext; then
17186   bakefile_cv_c_compiler___MWERKS__=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191         bakefile_cv_c_compiler___MWERKS__=no
17192
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196
17197
17198 fi
17199 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17200 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17201     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17202         :; MWCC=yes
17203     else
17204         :;
17205     fi
17206     ac_ext=c
17207 ac_cpp='$CPP $CPPFLAGS'
17208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17211
17212
17213
17214
17215
17216     ac_ext=c
17217 ac_cpp='$CPP $CPPFLAGS'
17218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17221
17222     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17223 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17224 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233
17234 int
17235 main ()
17236 {
17237
17238              #ifndef __xlC__
17239                 choke me
17240              #endif
17241
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext
17247 if { (ac_try="$ac_compile"
17248 case "(($ac_try" in
17249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250   *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253   (eval "$ac_compile") 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } && {
17260          test -z "$ac_c_werror_flag" ||
17261          test ! -s conftest.err
17262        } && test -s conftest.$ac_objext; then
17263   bakefile_cv_c_compiler___xlC__=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         bakefile_cv_c_compiler___xlC__=no
17269
17270 fi
17271
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273
17274
17275 fi
17276 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17277 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17278     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17279         :; XLCC=yes
17280     else
17281         :;
17282     fi
17283     ac_ext=c
17284 ac_cpp='$CPP $CPPFLAGS'
17285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17288
17289
17290
17291                 ;;
17292
17293             IRIX*)
17294
17295
17296     ac_ext=c
17297 ac_cpp='$CPP $CPPFLAGS'
17298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17301
17302     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17303 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17304 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17305   echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307   cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313
17314 int
17315 main ()
17316 {
17317
17318              #ifndef _SGI_COMPILER_VERSION
17319                 choke me
17320              #endif
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext
17327 if { (ac_try="$ac_compile"
17328 case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_compile") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } && {
17340          test -z "$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        } && test -s conftest.$ac_objext; then
17343   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17349
17350 fi
17351
17352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353
17354
17355 fi
17356 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17357 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17358     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17359         :; SGICC=yes
17360     else
17361         :;
17362     fi
17363     ac_ext=c
17364 ac_cpp='$CPP $CPPFLAGS'
17365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17368
17369
17370
17371                 ;;
17372
17373             Linux*)
17374
17375
17376     ac_ext=c
17377 ac_cpp='$CPP $CPPFLAGS'
17378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17381
17382     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17383 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17384 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17385   echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387   cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393
17394 int
17395 main ()
17396 {
17397
17398              #ifndef __SUNPRO_C
17399                 choke me
17400              #endif
17401
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_compile") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest.$ac_objext; then
17423   bakefile_cv_c_compiler___SUNPRO_C=yes
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428         bakefile_cv_c_compiler___SUNPRO_C=no
17429
17430 fi
17431
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433
17434
17435 fi
17436 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17437 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17438     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17439         :; SUNCC=yes
17440     else
17441         :;
17442     fi
17443     ac_ext=c
17444 ac_cpp='$CPP $CPPFLAGS'
17445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
17449
17450
17451                 ;;
17452
17453             HP-UX*)
17454
17455
17456     ac_ext=c
17457 ac_cpp='$CPP $CPPFLAGS'
17458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17461
17462     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17463 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17464 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467   cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473
17474 int
17475 main ()
17476 {
17477
17478              #ifndef __HP_cc
17479                 choke me
17480              #endif
17481
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (ac_try="$ac_compile"
17488 case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_compile") 2>conftest.er1
17494   ac_status=$?
17495   grep -v '^ *+' conftest.er1 >conftest.err
17496   rm -f conftest.er1
17497   cat conftest.err >&5
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } && {
17500          test -z "$ac_c_werror_flag" ||
17501          test ! -s conftest.err
17502        } && test -s conftest.$ac_objext; then
17503   bakefile_cv_c_compiler___HP_cc=yes
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508         bakefile_cv_c_compiler___HP_cc=no
17509
17510 fi
17511
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513
17514
17515 fi
17516 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17517 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17518     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17519         :; HPCC=yes
17520     else
17521         :;
17522     fi
17523     ac_ext=c
17524 ac_cpp='$CPP $CPPFLAGS'
17525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17528
17529
17530
17531                 ;;
17532
17533             OSF1)
17534
17535
17536     ac_ext=c
17537 ac_cpp='$CPP $CPPFLAGS'
17538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17541
17542     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17543 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17544 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17545   echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547   cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h.  */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h.  */
17553
17554 int
17555 main ()
17556 {
17557
17558              #ifndef __DECC
17559                 choke me
17560              #endif
17561
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
17568 case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_compile") 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } && {
17580          test -z "$ac_c_werror_flag" ||
17581          test ! -s conftest.err
17582        } && test -s conftest.$ac_objext; then
17583   bakefile_cv_c_compiler___DECC=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588         bakefile_cv_c_compiler___DECC=no
17589
17590 fi
17591
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593
17594
17595 fi
17596 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17597 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17598     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17599         :; COMPAQCC=yes
17600     else
17601         :;
17602     fi
17603     ac_ext=c
17604 ac_cpp='$CPP $CPPFLAGS'
17605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608
17609
17610
17611                 ;;
17612
17613             SunOS)
17614
17615
17616     ac_ext=c
17617 ac_cpp='$CPP $CPPFLAGS'
17618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17621
17622     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17623 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17624 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633
17634 int
17635 main ()
17636 {
17637
17638              #ifndef __SUNPRO_C
17639                 choke me
17640              #endif
17641
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext
17647 if { (ac_try="$ac_compile"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_compile") 2>conftest.er1
17654   ac_status=$?
17655   grep -v '^ *+' conftest.er1 >conftest.err
17656   rm -f conftest.er1
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); } && {
17660          test -z "$ac_c_werror_flag" ||
17661          test ! -s conftest.err
17662        } && test -s conftest.$ac_objext; then
17663   bakefile_cv_c_compiler___SUNPRO_C=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         bakefile_cv_c_compiler___SUNPRO_C=no
17669
17670 fi
17671
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673
17674
17675 fi
17676 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17677 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17678     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17679         :; SUNCC=yes
17680     else
17681         :;
17682     fi
17683     ac_ext=c
17684 ac_cpp='$CPP $CPPFLAGS'
17685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17688
17689
17690
17691                 ;;
17692         esac
17693     fi
17694
17695
17696
17697 ac_ext=c
17698 ac_cpp='$CPP $CPPFLAGS'
17699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17702 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17704 # On Suns, sometimes $CPP names a directory.
17705 if test -n "$CPP" && test -d "$CPP"; then
17706   CPP=
17707 fi
17708 if test -z "$CPP"; then
17709   if test "${ac_cv_prog_CPP+set}" = set; then
17710   echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712       # Double quotes because CPP needs to be expanded
17713     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17714     do
17715       ac_preproc_ok=false
17716 for ac_c_preproc_warn_flag in '' yes
17717 do
17718   # Use a header file that comes with gcc, so configuring glibc
17719   # with a fresh cross-compiler works.
17720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721   # <limits.h> exists even on freestanding compilers.
17722   # On the NeXT, cc -E runs the code through the compiler's parser,
17723   # not just through cpp. "Syntax error" is here to catch this case.
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 #ifdef __STDC__
17731 # include <limits.h>
17732 #else
17733 # include <assert.h>
17734 #endif
17735                      Syntax error
17736 _ACEOF
17737 if { (ac_try="$ac_cpp conftest.$ac_ext"
17738 case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17744   ac_status=$?
17745   grep -v '^ *+' conftest.er1 >conftest.err
17746   rm -f conftest.er1
17747   cat conftest.err >&5
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); } >/dev/null && {
17750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17751          test ! -s conftest.err
17752        }; then
17753   :
17754 else
17755   echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758   # Broken: fails on valid input.
17759 continue
17760 fi
17761
17762 rm -f conftest.err conftest.$ac_ext
17763
17764   # OK, works on sane cases.  Now check whether nonexistent headers
17765   # can be detected and how.
17766   cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772 #include <ac_nonexistent.h>
17773 _ACEOF
17774 if { (ac_try="$ac_cpp conftest.$ac_ext"
17775 case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } >/dev/null && {
17787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17788          test ! -s conftest.err
17789        }; then
17790   # Broken: success on invalid input.
17791 continue
17792 else
17793   echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796   # Passes both tests.
17797 ac_preproc_ok=:
17798 break
17799 fi
17800
17801 rm -f conftest.err conftest.$ac_ext
17802
17803 done
17804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17805 rm -f conftest.err conftest.$ac_ext
17806 if $ac_preproc_ok; then
17807   break
17808 fi
17809
17810     done
17811     ac_cv_prog_CPP=$CPP
17812
17813 fi
17814   CPP=$ac_cv_prog_CPP
17815 else
17816   ac_cv_prog_CPP=$CPP
17817 fi
17818 { echo "$as_me:$LINENO: result: $CPP" >&5
17819 echo "${ECHO_T}$CPP" >&6; }
17820 ac_preproc_ok=false
17821 for ac_c_preproc_warn_flag in '' yes
17822 do
17823   # Use a header file that comes with gcc, so configuring glibc
17824   # with a fresh cross-compiler works.
17825   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826   # <limits.h> exists even on freestanding compilers.
17827   # On the NeXT, cc -E runs the code through the compiler's parser,
17828   # not just through cpp. "Syntax error" is here to catch this case.
17829   cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h.  */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h.  */
17835 #ifdef __STDC__
17836 # include <limits.h>
17837 #else
17838 # include <assert.h>
17839 #endif
17840                      Syntax error
17841 _ACEOF
17842 if { (ac_try="$ac_cpp conftest.$ac_ext"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } >/dev/null && {
17855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17856          test ! -s conftest.err
17857        }; then
17858   :
17859 else
17860   echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863   # Broken: fails on valid input.
17864 continue
17865 fi
17866
17867 rm -f conftest.err conftest.$ac_ext
17868
17869   # OK, works on sane cases.  Now check whether nonexistent headers
17870   # can be detected and how.
17871   cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877 #include <ac_nonexistent.h>
17878 _ACEOF
17879 if { (ac_try="$ac_cpp conftest.$ac_ext"
17880 case "(($ac_try" in
17881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882   *) ac_try_echo=$ac_try;;
17883 esac
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17886   ac_status=$?
17887   grep -v '^ *+' conftest.er1 >conftest.err
17888   rm -f conftest.er1
17889   cat conftest.err >&5
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } >/dev/null && {
17892          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17893          test ! -s conftest.err
17894        }; then
17895   # Broken: success on invalid input.
17896 continue
17897 else
17898   echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901   # Passes both tests.
17902 ac_preproc_ok=:
17903 break
17904 fi
17905
17906 rm -f conftest.err conftest.$ac_ext
17907
17908 done
17909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17910 rm -f conftest.err conftest.$ac_ext
17911 if $ac_preproc_ok; then
17912   :
17913 else
17914   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17915 See \`config.log' for more details." >&5
17916 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17917 See \`config.log' for more details." >&2;}
17918    { (exit 1); exit 1; }; }
17919 fi
17920
17921 ac_ext=c
17922 ac_cpp='$CPP $CPPFLAGS'
17923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926
17927
17928 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17929 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17930 if test "${ac_cv_path_GREP+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933   # Extract the first word of "grep ggrep" to use in msg output
17934 if test -z "$GREP"; then
17935 set dummy grep ggrep; ac_prog_name=$2
17936 if test "${ac_cv_path_GREP+set}" = set; then
17937   echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939   ac_path_GREP_found=false
17940 # Loop through the user's path and test for each of PROGNAME-LIST
17941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17943 do
17944   IFS=$as_save_IFS
17945   test -z "$as_dir" && as_dir=.
17946   for ac_prog in grep ggrep; do
17947   for ac_exec_ext in '' $ac_executable_extensions; do
17948     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17949     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17950     # Check for GNU ac_path_GREP and select it if it is found.
17951   # Check for GNU $ac_path_GREP
17952 case `"$ac_path_GREP" --version 2>&1` in
17953 *GNU*)
17954   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17955 *)
17956   ac_count=0
17957   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17958   while :
17959   do
17960     cat "conftest.in" "conftest.in" >"conftest.tmp"
17961     mv "conftest.tmp" "conftest.in"
17962     cp "conftest.in" "conftest.nl"
17963     echo 'GREP' >> "conftest.nl"
17964     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17965     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17966     ac_count=`expr $ac_count + 1`
17967     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17968       # Best one so far, save it but keep looking for a better one
17969       ac_cv_path_GREP="$ac_path_GREP"
17970       ac_path_GREP_max=$ac_count
17971     fi
17972     # 10*(2^10) chars as input seems more than enough
17973     test $ac_count -gt 10 && break
17974   done
17975   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17976 esac
17977
17978
17979     $ac_path_GREP_found && break 3
17980   done
17981 done
17982
17983 done
17984 IFS=$as_save_IFS
17985
17986
17987 fi
17988
17989 GREP="$ac_cv_path_GREP"
17990 if test -z "$GREP"; then
17991   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17993    { (exit 1); exit 1; }; }
17994 fi
17995
17996 else
17997   ac_cv_path_GREP=$GREP
17998 fi
17999
18000
18001 fi
18002 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18003 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18004  GREP="$ac_cv_path_GREP"
18005
18006
18007 { echo "$as_me:$LINENO: checking for egrep" >&5
18008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18009 if test "${ac_cv_path_EGREP+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18013    then ac_cv_path_EGREP="$GREP -E"
18014    else
18015      # Extract the first word of "egrep" to use in msg output
18016 if test -z "$EGREP"; then
18017 set dummy egrep; ac_prog_name=$2
18018 if test "${ac_cv_path_EGREP+set}" = set; then
18019   echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021   ac_path_EGREP_found=false
18022 # Loop through the user's path and test for each of PROGNAME-LIST
18023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18025 do
18026   IFS=$as_save_IFS
18027   test -z "$as_dir" && as_dir=.
18028   for ac_prog in egrep; do
18029   for ac_exec_ext in '' $ac_executable_extensions; do
18030     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18031     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18032     # Check for GNU ac_path_EGREP and select it if it is found.
18033   # Check for GNU $ac_path_EGREP
18034 case `"$ac_path_EGREP" --version 2>&1` in
18035 *GNU*)
18036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18037 *)
18038   ac_count=0
18039   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18040   while :
18041   do
18042     cat "conftest.in" "conftest.in" >"conftest.tmp"
18043     mv "conftest.tmp" "conftest.in"
18044     cp "conftest.in" "conftest.nl"
18045     echo 'EGREP' >> "conftest.nl"
18046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18048     ac_count=`expr $ac_count + 1`
18049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18050       # Best one so far, save it but keep looking for a better one
18051       ac_cv_path_EGREP="$ac_path_EGREP"
18052       ac_path_EGREP_max=$ac_count
18053     fi
18054     # 10*(2^10) chars as input seems more than enough
18055     test $ac_count -gt 10 && break
18056   done
18057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18058 esac
18059
18060
18061     $ac_path_EGREP_found && break 3
18062   done
18063 done
18064
18065 done
18066 IFS=$as_save_IFS
18067
18068
18069 fi
18070
18071 EGREP="$ac_cv_path_EGREP"
18072 if test -z "$EGREP"; then
18073   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18075    { (exit 1); exit 1; }; }
18076 fi
18077
18078 else
18079   ac_cv_path_EGREP=$EGREP
18080 fi
18081
18082
18083    fi
18084 fi
18085 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18086 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18087  EGREP="$ac_cv_path_EGREP"
18088
18089
18090 if test $ac_cv_c_compiler_gnu = yes; then
18091     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18092 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18093 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18094   echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096     ac_pattern="Autoconf.*'x'"
18097   cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103 #include <sgtty.h>
18104 Autoconf TIOCGETP
18105 _ACEOF
18106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18107   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18108   ac_cv_prog_gcc_traditional=yes
18109 else
18110   ac_cv_prog_gcc_traditional=no
18111 fi
18112 rm -f conftest*
18113
18114
18115   if test $ac_cv_prog_gcc_traditional = no; then
18116     cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h.  */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h.  */
18122 #include <termio.h>
18123 Autoconf TCGETA
18124 _ACEOF
18125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18126   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18127   ac_cv_prog_gcc_traditional=yes
18128 fi
18129 rm -f conftest*
18130
18131   fi
18132 fi
18133 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18134 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18135   if test $ac_cv_prog_gcc_traditional = yes; then
18136     CC="$CC -traditional"
18137   fi
18138 fi
18139
18140
18141 CXXFLAGS=${CXXFLAGS:=}
18142
18143
18144
18145     ac_ext=cpp
18146 ac_cpp='$CXXCPP $CPPFLAGS'
18147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18150 if test -z "$CXX"; then
18151   if test -n "$CCC"; then
18152     CXX=$CCC
18153   else
18154     if test -n "$ac_tool_prefix"; then
18155   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18156   do
18157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18161 if test "${ac_cv_prog_CXX+set}" = set; then
18162   echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164   if test -n "$CXX"; then
18165   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18166 else
18167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18168 for as_dir in $PATH
18169 do
18170   IFS=$as_save_IFS
18171   test -z "$as_dir" && as_dir=.
18172   for ac_exec_ext in '' $ac_executable_extensions; do
18173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18174     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18176     break 2
18177   fi
18178 done
18179 done
18180 IFS=$as_save_IFS
18181
18182 fi
18183 fi
18184 CXX=$ac_cv_prog_CXX
18185 if test -n "$CXX"; then
18186   { echo "$as_me:$LINENO: result: $CXX" >&5
18187 echo "${ECHO_T}$CXX" >&6; }
18188 else
18189   { echo "$as_me:$LINENO: result: no" >&5
18190 echo "${ECHO_T}no" >&6; }
18191 fi
18192
18193
18194     test -n "$CXX" && break
18195   done
18196 fi
18197 if test -z "$CXX"; then
18198   ac_ct_CXX=$CXX
18199   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18200 do
18201   # Extract the first word of "$ac_prog", so it can be a program name with args.
18202 set dummy $ac_prog; ac_word=$2
18203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18205 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   if test -n "$ac_ct_CXX"; then
18209   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18210 else
18211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 for as_dir in $PATH
18213 do
18214   IFS=$as_save_IFS
18215   test -z "$as_dir" && as_dir=.
18216   for ac_exec_ext in '' $ac_executable_extensions; do
18217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18218     ac_cv_prog_ac_ct_CXX="$ac_prog"
18219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18220     break 2
18221   fi
18222 done
18223 done
18224 IFS=$as_save_IFS
18225
18226 fi
18227 fi
18228 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18229 if test -n "$ac_ct_CXX"; then
18230   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18231 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18232 else
18233   { echo "$as_me:$LINENO: result: no" >&5
18234 echo "${ECHO_T}no" >&6; }
18235 fi
18236
18237
18238   test -n "$ac_ct_CXX" && break
18239 done
18240
18241   if test "x$ac_ct_CXX" = x; then
18242     CXX="g++"
18243   else
18244     case $cross_compiling:$ac_tool_warned in
18245 yes:)
18246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18247 whose name does not start with the host triplet.  If you think this
18248 configuration is useful to you, please write to autoconf@gnu.org." >&5
18249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18250 whose name does not start with the host triplet.  If you think this
18251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18252 ac_tool_warned=yes ;;
18253 esac
18254     CXX=$ac_ct_CXX
18255   fi
18256 fi
18257
18258   fi
18259 fi
18260 # Provide some information about the compiler.
18261 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18262 ac_compiler=`set X $ac_compile; echo $2`
18263 { (ac_try="$ac_compiler --version >&5"
18264 case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_compiler --version >&5") 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }
18273 { (ac_try="$ac_compiler -v >&5"
18274 case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_compiler -v >&5") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }
18283 { (ac_try="$ac_compiler -V >&5"
18284 case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_compiler -V >&5") 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }
18293
18294 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18295 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18296 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299   cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305
18306 int
18307 main ()
18308 {
18309 #ifndef __GNUC__
18310        choke me
18311 #endif
18312
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (ac_try="$ac_compile"
18319 case "(($ac_try" in
18320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321   *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324   (eval "$ac_compile") 2>conftest.er1
18325   ac_status=$?
18326   grep -v '^ *+' conftest.er1 >conftest.err
18327   rm -f conftest.er1
18328   cat conftest.err >&5
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); } && {
18331          test -z "$ac_cxx_werror_flag" ||
18332          test ! -s conftest.err
18333        } && test -s conftest.$ac_objext; then
18334   ac_compiler_gnu=yes
18335 else
18336   echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339         ac_compiler_gnu=no
18340 fi
18341
18342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18344
18345 fi
18346 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18347 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18348 GXX=`test $ac_compiler_gnu = yes && echo yes`
18349 ac_test_CXXFLAGS=${CXXFLAGS+set}
18350 ac_save_CXXFLAGS=$CXXFLAGS
18351 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18352 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18353 if test "${ac_cv_prog_cxx_g+set}" = set; then
18354   echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18357    ac_cxx_werror_flag=yes
18358    ac_cv_prog_cxx_g=no
18359    CXXFLAGS="-g"
18360    cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366
18367 int
18368 main ()
18369 {
18370
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_compile") 2>conftest.er1
18383   ac_status=$?
18384   grep -v '^ *+' conftest.er1 >conftest.err
18385   rm -f conftest.er1
18386   cat conftest.err >&5
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); } && {
18389          test -z "$ac_cxx_werror_flag" ||
18390          test ! -s conftest.err
18391        } && test -s conftest.$ac_objext; then
18392   ac_cv_prog_cxx_g=yes
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397         CXXFLAGS=""
18398       cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404
18405 int
18406 main ()
18407 {
18408
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext
18414 if { (ac_try="$ac_compile"
18415 case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_compile") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } && {
18427          test -z "$ac_cxx_werror_flag" ||
18428          test ! -s conftest.err
18429        } && test -s conftest.$ac_objext; then
18430   :
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18436          CXXFLAGS="-g"
18437          cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443
18444 int
18445 main ()
18446 {
18447
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_compile") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } && {
18466          test -z "$ac_cxx_werror_flag" ||
18467          test ! -s conftest.err
18468        } && test -s conftest.$ac_objext; then
18469   ac_cv_prog_cxx_g=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18487 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18488 if test "$ac_test_CXXFLAGS" = set; then
18489   CXXFLAGS=$ac_save_CXXFLAGS
18490 elif test $ac_cv_prog_cxx_g = yes; then
18491   if test "$GXX" = yes; then
18492     CXXFLAGS="-g -O2"
18493   else
18494     CXXFLAGS="-g"
18495   fi
18496 else
18497   if test "$GXX" = yes; then
18498     CXXFLAGS="-O2"
18499   else
18500     CXXFLAGS=
18501   fi
18502 fi
18503 ac_ext=c
18504 ac_cpp='$CPP $CPPFLAGS'
18505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508
18509
18510
18511
18512     ac_ext=cpp
18513 ac_cpp='$CXXCPP $CPPFLAGS'
18514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517
18518     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18519 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18520 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 int
18531 main ()
18532 {
18533
18534              #ifndef __INTEL_COMPILER
18535                 choke me
18536              #endif
18537
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext
18543 if { (ac_try="$ac_compile"
18544 case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_compile") 2>conftest.er1
18550   ac_status=$?
18551   grep -v '^ *+' conftest.er1 >conftest.err
18552   rm -f conftest.er1
18553   cat conftest.err >&5
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } && {
18556          test -z "$ac_cxx_werror_flag" ||
18557          test ! -s conftest.err
18558        } && test -s conftest.$ac_objext; then
18559   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18565
18566 fi
18567
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569
18570
18571 fi
18572 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18573 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18574     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18575         :; INTELCXX=yes
18576     else
18577         :;
18578     fi
18579     ac_ext=c
18580 ac_cpp='$CPP $CPPFLAGS'
18581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18584
18585
18586
18587
18588         if test "x$GCXX" != "xyes"; then
18589         if test "xCXX" = "xC"; then
18590             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18591 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18592 if test "${bakefile_cv_c_exto+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601
18602 int
18603 main ()
18604 {
18605
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest.$ac_ext.o
18611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18612   (eval $ac_compile) 2>&5
18613   ac_status=$?
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); }; then
18616   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18617     case $ac_file in
18618         conftest.$ac_ext.o)
18619             bakefile_cv_c_exto="-ext o"
18620             ;;
18621         *)
18622             ;;
18623     esac
18624 done
18625 else
18626   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18627 See \`config.log' for more details." >&5
18628 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18629 See \`config.log' for more details." >&2;}
18630    { (exit 1); exit 1; }; }
18631
18632 fi
18633
18634 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18635
18636 fi
18637 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18638 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18639 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18640     if test "c" = "c"; then
18641         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18642     fi
18643     if test "c" = "cxx"; then
18644         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18645     fi
18646 fi
18647
18648             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18649                 unset ac_cv_prog_cc_g
18650                 ac_test_CFLAGS=${CFLAGS+set}
18651 ac_save_CFLAGS=$CFLAGS
18652 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18654 if test "${ac_cv_prog_cc_g+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   ac_save_c_werror_flag=$ac_c_werror_flag
18658    ac_c_werror_flag=yes
18659    ac_cv_prog_cc_g=no
18660    CFLAGS="-g"
18661    cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 int
18669 main ()
18670 {
18671
18672   ;
18673   return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext
18677 if { (ac_try="$ac_compile"
18678 case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_compile") 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } && {
18690          test -z "$ac_c_werror_flag" ||
18691          test ! -s conftest.err
18692        } && test -s conftest.$ac_objext; then
18693   ac_cv_prog_cc_g=yes
18694 else
18695   echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698         CFLAGS=""
18699       cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h.  */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h.  */
18705
18706 int
18707 main ()
18708 {
18709
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (ac_try="$ac_compile"
18716 case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_compile") 2>conftest.er1
18722   ac_status=$?
18723   grep -v '^ *+' conftest.er1 >conftest.err
18724   rm -f conftest.er1
18725   cat conftest.err >&5
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); } && {
18728          test -z "$ac_c_werror_flag" ||
18729          test ! -s conftest.err
18730        } && test -s conftest.$ac_objext; then
18731   :
18732 else
18733   echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18735
18736         ac_c_werror_flag=$ac_save_c_werror_flag
18737          CFLAGS="-g"
18738          cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744
18745 int
18746 main ()
18747 {
18748
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext
18754 if { (ac_try="$ac_compile"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_compile") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } && {
18767          test -z "$ac_c_werror_flag" ||
18768          test ! -s conftest.err
18769        } && test -s conftest.$ac_objext; then
18770   ac_cv_prog_cc_g=yes
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 fi
18780
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 fi
18783
18784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18785    ac_c_werror_flag=$ac_save_c_werror_flag
18786 fi
18787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18788 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18789 if test "$ac_test_CFLAGS" = set; then
18790   CFLAGS=$ac_save_CFLAGS
18791 elif test $ac_cv_prog_cc_g = yes; then
18792   if test "$GCC" = yes; then
18793     CFLAGS="-g -O2"
18794   else
18795     CFLAGS="-g"
18796   fi
18797 else
18798   if test "$GCC" = yes; then
18799     CFLAGS="-O2"
18800   else
18801     CFLAGS=
18802   fi
18803 fi
18804             fi
18805         fi
18806
18807                         case `uname -s` in
18808             AIX*)
18809
18810
18811     ac_ext=cpp
18812 ac_cpp='$CXXCPP $CPPFLAGS'
18813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18816
18817     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18818 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18819 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828
18829 int
18830 main ()
18831 {
18832
18833              #ifndef __xlC__
18834                 choke me
18835              #endif
18836
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_compile") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && {
18855          test -z "$ac_cxx_werror_flag" ||
18856          test ! -s conftest.err
18857        } && test -s conftest.$ac_objext; then
18858   bakefile_cv_cxx_compiler___xlC__=yes
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863         bakefile_cv_cxx_compiler___xlC__=no
18864
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868
18869
18870 fi
18871 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18872 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18873     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18874         :; XLCXX=yes
18875     else
18876         :;
18877     fi
18878     ac_ext=c
18879 ac_cpp='$CPP $CPPFLAGS'
18880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18883
18884
18885
18886                 ;;
18887
18888             Darwin)
18889
18890
18891     ac_ext=cpp
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18896
18897     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18898 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18899 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908
18909 int
18910 main ()
18911 {
18912
18913              #ifndef __MWERKS__
18914                 choke me
18915              #endif
18916
18917   ;
18918   return 0;
18919 }
18920 _ACEOF
18921 rm -f conftest.$ac_objext
18922 if { (ac_try="$ac_compile"
18923 case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_compile") 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } && {
18935          test -z "$ac_cxx_werror_flag" ||
18936          test ! -s conftest.err
18937        } && test -s conftest.$ac_objext; then
18938   bakefile_cv_cxx_compiler___MWERKS__=yes
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943         bakefile_cv_cxx_compiler___MWERKS__=no
18944
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948
18949
18950 fi
18951 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18952 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18953     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18954         :; MWCXX=yes
18955     else
18956         :;
18957     fi
18958     ac_ext=c
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965
18966
18967
18968     ac_ext=cpp
18969 ac_cpp='$CXXCPP $CPPFLAGS'
18970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973
18974     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18975 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18976 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979   cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985
18986 int
18987 main ()
18988 {
18989
18990              #ifndef __xlC__
18991                 choke me
18992              #endif
18993
18994   ;
18995   return 0;
18996 }
18997 _ACEOF
18998 rm -f conftest.$ac_objext
18999 if { (ac_try="$ac_compile"
19000 case "(($ac_try" in
19001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002   *) ac_try_echo=$ac_try;;
19003 esac
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005   (eval "$ac_compile") 2>conftest.er1
19006   ac_status=$?
19007   grep -v '^ *+' conftest.er1 >conftest.err
19008   rm -f conftest.er1
19009   cat conftest.err >&5
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); } && {
19012          test -z "$ac_cxx_werror_flag" ||
19013          test ! -s conftest.err
19014        } && test -s conftest.$ac_objext; then
19015   bakefile_cv_cxx_compiler___xlC__=yes
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020         bakefile_cv_cxx_compiler___xlC__=no
19021
19022 fi
19023
19024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025
19026
19027 fi
19028 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19029 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19030     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19031         :; XLCXX=yes
19032     else
19033         :;
19034     fi
19035     ac_ext=c
19036 ac_cpp='$CPP $CPPFLAGS'
19037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19040
19041
19042
19043                 ;;
19044
19045             IRIX*)
19046
19047
19048     ac_ext=cpp
19049 ac_cpp='$CXXCPP $CPPFLAGS'
19050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19053
19054     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19055 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19056 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059   cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065
19066 int
19067 main ()
19068 {
19069
19070              #ifndef _SGI_COMPILER_VERSION
19071                 choke me
19072              #endif
19073
19074   ;
19075   return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_compile") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } && {
19092          test -z "$ac_cxx_werror_flag" ||
19093          test ! -s conftest.err
19094        } && test -s conftest.$ac_objext; then
19095   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19101
19102 fi
19103
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105
19106
19107 fi
19108 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19109 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19110     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19111         :; SGICXX=yes
19112     else
19113         :;
19114     fi
19115     ac_ext=c
19116 ac_cpp='$CPP $CPPFLAGS'
19117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19120
19121
19122
19123                 ;;
19124
19125             Linux*)
19126
19127
19128     ac_ext=cpp
19129 ac_cpp='$CXXCPP $CPPFLAGS'
19130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19133
19134     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19135 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19136 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145
19146 int
19147 main ()
19148 {
19149
19150              #ifndef __SUNPRO_CC
19151                 choke me
19152              #endif
19153
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_compile") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } && {
19172          test -z "$ac_cxx_werror_flag" ||
19173          test ! -s conftest.err
19174        } && test -s conftest.$ac_objext; then
19175   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19181
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185
19186
19187 fi
19188 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19189 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19190     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19191         :; SUNCXX=yes
19192     else
19193         :;
19194     fi
19195     ac_ext=c
19196 ac_cpp='$CPP $CPPFLAGS'
19197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19200
19201
19202
19203                 ;;
19204
19205             HP-UX*)
19206
19207
19208     ac_ext=cpp
19209 ac_cpp='$CXXCPP $CPPFLAGS'
19210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19213
19214     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19215 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19216 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19217   echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219   cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225
19226 int
19227 main ()
19228 {
19229
19230              #ifndef __HP_aCC
19231                 choke me
19232              #endif
19233
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
19240 case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_compile") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } && {
19252          test -z "$ac_cxx_werror_flag" ||
19253          test ! -s conftest.err
19254        } && test -s conftest.$ac_objext; then
19255   bakefile_cv_cxx_compiler___HP_aCC=yes
19256 else
19257   echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260         bakefile_cv_cxx_compiler___HP_aCC=no
19261
19262 fi
19263
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265
19266
19267 fi
19268 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19269 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19270     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19271         :; HPCXX=yes
19272     else
19273         :;
19274     fi
19275     ac_ext=c
19276 ac_cpp='$CPP $CPPFLAGS'
19277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19280
19281
19282
19283                 ;;
19284
19285             OSF1)
19286
19287
19288     ac_ext=cpp
19289 ac_cpp='$CXXCPP $CPPFLAGS'
19290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293
19294     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19295 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19296 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299   cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305
19306 int
19307 main ()
19308 {
19309
19310              #ifndef __DECCXX
19311                 choke me
19312              #endif
19313
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_compile") 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } && {
19332          test -z "$ac_cxx_werror_flag" ||
19333          test ! -s conftest.err
19334        } && test -s conftest.$ac_objext; then
19335   bakefile_cv_cxx_compiler___DECCXX=yes
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         bakefile_cv_cxx_compiler___DECCXX=no
19341
19342 fi
19343
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345
19346
19347 fi
19348 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19349 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19350     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19351         :; COMPAQCXX=yes
19352     else
19353         :;
19354     fi
19355     ac_ext=c
19356 ac_cpp='$CPP $CPPFLAGS'
19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360
19361
19362
19363                 ;;
19364
19365             SunOS)
19366
19367
19368     ac_ext=cpp
19369 ac_cpp='$CXXCPP $CPPFLAGS'
19370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19373
19374     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19375 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19376 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379   cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385
19386 int
19387 main ()
19388 {
19389
19390              #ifndef __SUNPRO_CC
19391                 choke me
19392              #endif
19393
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_compile") 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } && {
19412          test -z "$ac_cxx_werror_flag" ||
19413          test ! -s conftest.err
19414        } && test -s conftest.$ac_objext; then
19415   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19416 else
19417   echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19419
19420         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19421
19422 fi
19423
19424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19425
19426
19427 fi
19428 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19429 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19430     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19431         :; SUNCXX=yes
19432     else
19433         :;
19434     fi
19435     ac_ext=c
19436 ac_cpp='$CPP $CPPFLAGS'
19437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19440
19441
19442
19443                 ;;
19444         esac
19445     fi
19446
19447
19448
19449 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19450     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19451 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19452    { (exit 1); exit 1; }; }
19453 fi
19454
19455 if test -n "$ac_tool_prefix"; then
19456   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_prog_RANLIB+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   if test -n "$RANLIB"; then
19464   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19465 else
19466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 for as_dir in $PATH
19468 do
19469   IFS=$as_save_IFS
19470   test -z "$as_dir" && as_dir=.
19471   for ac_exec_ext in '' $ac_executable_extensions; do
19472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19475     break 2
19476   fi
19477 done
19478 done
19479 IFS=$as_save_IFS
19480
19481 fi
19482 fi
19483 RANLIB=$ac_cv_prog_RANLIB
19484 if test -n "$RANLIB"; then
19485   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19486 echo "${ECHO_T}$RANLIB" >&6; }
19487 else
19488   { echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6; }
19490 fi
19491
19492
19493 fi
19494 if test -z "$ac_cv_prog_RANLIB"; then
19495   ac_ct_RANLIB=$RANLIB
19496   # Extract the first word of "ranlib", so it can be a program name with args.
19497 set dummy ranlib; ac_word=$2
19498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19501   echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503   if test -n "$ac_ct_RANLIB"; then
19504   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19505 else
19506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19507 for as_dir in $PATH
19508 do
19509   IFS=$as_save_IFS
19510   test -z "$as_dir" && as_dir=.
19511   for ac_exec_ext in '' $ac_executable_extensions; do
19512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19513     ac_cv_prog_ac_ct_RANLIB="ranlib"
19514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19515     break 2
19516   fi
19517 done
19518 done
19519 IFS=$as_save_IFS
19520
19521 fi
19522 fi
19523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19524 if test -n "$ac_ct_RANLIB"; then
19525   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19527 else
19528   { echo "$as_me:$LINENO: result: no" >&5
19529 echo "${ECHO_T}no" >&6; }
19530 fi
19531
19532   if test "x$ac_ct_RANLIB" = x; then
19533     RANLIB=":"
19534   else
19535     case $cross_compiling:$ac_tool_warned in
19536 yes:)
19537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19538 whose name does not start with the host triplet.  If you think this
19539 configuration is useful to you, please write to autoconf@gnu.org." >&5
19540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19541 whose name does not start with the host triplet.  If you think this
19542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19543 ac_tool_warned=yes ;;
19544 esac
19545     RANLIB=$ac_ct_RANLIB
19546   fi
19547 else
19548   RANLIB="$ac_cv_prog_RANLIB"
19549 fi
19550
19551
19552 if test "x$SUNCXX" != xyes; then
19553     if test -n "$ac_tool_prefix"; then
19554   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19555 set dummy ${ac_tool_prefix}ar; ac_word=$2
19556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19558 if test "${ac_cv_prog_AR+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   if test -n "$AR"; then
19562   ac_cv_prog_AR="$AR" # Let the user override the test.
19563 else
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19566 do
19567   IFS=$as_save_IFS
19568   test -z "$as_dir" && as_dir=.
19569   for ac_exec_ext in '' $ac_executable_extensions; do
19570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19571     ac_cv_prog_AR="${ac_tool_prefix}ar"
19572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19573     break 2
19574   fi
19575 done
19576 done
19577 IFS=$as_save_IFS
19578
19579 fi
19580 fi
19581 AR=$ac_cv_prog_AR
19582 if test -n "$AR"; then
19583   { echo "$as_me:$LINENO: result: $AR" >&5
19584 echo "${ECHO_T}$AR" >&6; }
19585 else
19586   { echo "$as_me:$LINENO: result: no" >&5
19587 echo "${ECHO_T}no" >&6; }
19588 fi
19589
19590
19591 fi
19592 if test -z "$ac_cv_prog_AR"; then
19593   ac_ct_AR=$AR
19594   # Extract the first word of "ar", so it can be a program name with args.
19595 set dummy ar; ac_word=$2
19596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19598 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   if test -n "$ac_ct_AR"; then
19602   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19603 else
19604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 for as_dir in $PATH
19606 do
19607   IFS=$as_save_IFS
19608   test -z "$as_dir" && as_dir=.
19609   for ac_exec_ext in '' $ac_executable_extensions; do
19610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19611     ac_cv_prog_ac_ct_AR="ar"
19612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19613     break 2
19614   fi
19615 done
19616 done
19617 IFS=$as_save_IFS
19618
19619 fi
19620 fi
19621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19622 if test -n "$ac_ct_AR"; then
19623   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19624 echo "${ECHO_T}$ac_ct_AR" >&6; }
19625 else
19626   { echo "$as_me:$LINENO: result: no" >&5
19627 echo "${ECHO_T}no" >&6; }
19628 fi
19629
19630   if test "x$ac_ct_AR" = x; then
19631     AR=""
19632   else
19633     case $cross_compiling:$ac_tool_warned in
19634 yes:)
19635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19636 whose name does not start with the host triplet.  If you think this
19637 configuration is useful to you, please write to autoconf@gnu.org." >&5
19638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19639 whose name does not start with the host triplet.  If you think this
19640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19641 ac_tool_warned=yes ;;
19642 esac
19643     AR=$ac_ct_AR
19644   fi
19645 else
19646   AR="$ac_cv_prog_AR"
19647 fi
19648
19649     if test "x$AR" = "x" ; then
19650         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19651 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19652    { (exit 1); exit 1; }; }
19653     fi
19654 fi
19655
19656 # Find a good install program.  We prefer a C program (faster),
19657 # so one script is as good as another.  But avoid the broken or
19658 # incompatible versions:
19659 # SysV /etc/install, /usr/sbin/install
19660 # SunOS /usr/etc/install
19661 # IRIX /sbin/install
19662 # AIX /bin/install
19663 # AmigaOS /C/install, which installs bootblocks on floppy discs
19664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19667 # OS/2's system install, which has a completely different semantic
19668 # ./install, which can be erroneously created by make from ./install.sh.
19669 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19671 if test -z "$INSTALL"; then
19672 if test "${ac_cv_path_install+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19676 for as_dir in $PATH
19677 do
19678   IFS=$as_save_IFS
19679   test -z "$as_dir" && as_dir=.
19680   # Account for people who put trailing slashes in PATH elements.
19681 case $as_dir/ in
19682   ./ | .// | /cC/* | \
19683   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19684   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19685   /usr/ucb/* ) ;;
19686   *)
19687     # OSF1 and SCO ODT 3.0 have their own names for install.
19688     # Don't use installbsd from OSF since it installs stuff as root
19689     # by default.
19690     for ac_prog in ginstall scoinst install; do
19691       for ac_exec_ext in '' $ac_executable_extensions; do
19692         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19693           if test $ac_prog = install &&
19694             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19695             # AIX install.  It has an incompatible calling convention.
19696             :
19697           elif test $ac_prog = install &&
19698             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19699             # program-specific install script used by HP pwplus--don't use.
19700             :
19701           else
19702             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19703             break 3
19704           fi
19705         fi
19706       done
19707     done
19708     ;;
19709 esac
19710 done
19711 IFS=$as_save_IFS
19712
19713
19714 fi
19715   if test "${ac_cv_path_install+set}" = set; then
19716     INSTALL=$ac_cv_path_install
19717   else
19718     # As a last resort, use the slow shell script.  Don't cache a
19719     # value for INSTALL within a source directory, because that will
19720     # break other packages using the cache if that directory is
19721     # removed, or if the value is a relative name.
19722     INSTALL=$ac_install_sh
19723   fi
19724 fi
19725 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19726 echo "${ECHO_T}$INSTALL" >&6; }
19727
19728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19729 # It thinks the first close brace ends the variable substitution.
19730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19731
19732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19733
19734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19735
19736
19737 case ${INSTALL} in
19738   /* ) # Absolute
19739      ;;
19740   ?:* ) # Drive letter, considered as absolute.
19741      ;;
19742   *)
19743      INSTALL=`pwd`/${INSTALL} ;;
19744 esac
19745
19746
19747 case "${host}" in
19748
19749                 *-*-darwin* )
19750         INSTALL_PROGRAM="cp -fp"
19751         INSTALL_DATA="cp -fp"
19752         ;;
19753     *)
19754         ;;
19755 esac
19756
19757 if test -n "$ac_tool_prefix"; then
19758   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19759 set dummy ${ac_tool_prefix}strip; ac_word=$2
19760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19762 if test "${ac_cv_prog_STRIP+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   if test -n "$STRIP"; then
19766   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19767 else
19768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19769 for as_dir in $PATH
19770 do
19771   IFS=$as_save_IFS
19772   test -z "$as_dir" && as_dir=.
19773   for ac_exec_ext in '' $ac_executable_extensions; do
19774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19775     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777     break 2
19778   fi
19779 done
19780 done
19781 IFS=$as_save_IFS
19782
19783 fi
19784 fi
19785 STRIP=$ac_cv_prog_STRIP
19786 if test -n "$STRIP"; then
19787   { echo "$as_me:$LINENO: result: $STRIP" >&5
19788 echo "${ECHO_T}$STRIP" >&6; }
19789 else
19790   { echo "$as_me:$LINENO: result: no" >&5
19791 echo "${ECHO_T}no" >&6; }
19792 fi
19793
19794
19795 fi
19796 if test -z "$ac_cv_prog_STRIP"; then
19797   ac_ct_STRIP=$STRIP
19798   # Extract the first word of "strip", so it can be a program name with args.
19799 set dummy strip; ac_word=$2
19800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19802 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805   if test -n "$ac_ct_STRIP"; then
19806   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19807 else
19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 for as_dir in $PATH
19810 do
19811   IFS=$as_save_IFS
19812   test -z "$as_dir" && as_dir=.
19813   for ac_exec_ext in '' $ac_executable_extensions; do
19814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19815     ac_cv_prog_ac_ct_STRIP="strip"
19816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19817     break 2
19818   fi
19819 done
19820 done
19821 IFS=$as_save_IFS
19822
19823 fi
19824 fi
19825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19826 if test -n "$ac_ct_STRIP"; then
19827   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19828 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19829 else
19830   { echo "$as_me:$LINENO: result: no" >&5
19831 echo "${ECHO_T}no" >&6; }
19832 fi
19833
19834   if test "x$ac_ct_STRIP" = x; then
19835     STRIP="true"
19836   else
19837     case $cross_compiling:$ac_tool_warned in
19838 yes:)
19839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19840 whose name does not start with the host triplet.  If you think this
19841 configuration is useful to you, please write to autoconf@gnu.org." >&5
19842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19843 whose name does not start with the host triplet.  If you think this
19844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19845 ac_tool_warned=yes ;;
19846 esac
19847     STRIP=$ac_ct_STRIP
19848   fi
19849 else
19850   STRIP="$ac_cv_prog_STRIP"
19851 fi
19852
19853
19854 if test "$wxUSE_WINE" = "yes"; then
19855     if test -n "$ac_tool_prefix"; then
19856   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
19857 set dummy ${ac_tool_prefix}wrc; ac_word=$2
19858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19860 if test "${ac_cv_prog_WINDRES+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   if test -n "$WINDRES"; then
19864   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19865 else
19866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19867 for as_dir in $PATH
19868 do
19869   IFS=$as_save_IFS
19870   test -z "$as_dir" && as_dir=.
19871   for ac_exec_ext in '' $ac_executable_extensions; do
19872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19873     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
19874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19875     break 2
19876   fi
19877 done
19878 done
19879 IFS=$as_save_IFS
19880
19881 fi
19882 fi
19883 WINDRES=$ac_cv_prog_WINDRES
19884 if test -n "$WINDRES"; then
19885   { echo "$as_me:$LINENO: result: $WINDRES" >&5
19886 echo "${ECHO_T}$WINDRES" >&6; }
19887 else
19888   { echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6; }
19890 fi
19891
19892
19893 fi
19894 if test -z "$ac_cv_prog_WINDRES"; then
19895   ac_ct_WINDRES=$WINDRES
19896   # Extract the first word of "wrc", so it can be a program name with args.
19897 set dummy wrc; ac_word=$2
19898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19900 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   if test -n "$ac_ct_WINDRES"; then
19904   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19905 else
19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 for as_dir in $PATH
19908 do
19909   IFS=$as_save_IFS
19910   test -z "$as_dir" && as_dir=.
19911   for ac_exec_ext in '' $ac_executable_extensions; do
19912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19913     ac_cv_prog_ac_ct_WINDRES="wrc"
19914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19915     break 2
19916   fi
19917 done
19918 done
19919 IFS=$as_save_IFS
19920
19921 fi
19922 fi
19923 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19924 if test -n "$ac_ct_WINDRES"; then
19925   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
19926 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
19927 else
19928   { echo "$as_me:$LINENO: result: no" >&5
19929 echo "${ECHO_T}no" >&6; }
19930 fi
19931
19932   if test "x$ac_ct_WINDRES" = x; then
19933     WINDRES=""
19934   else
19935     case $cross_compiling:$ac_tool_warned in
19936 yes:)
19937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19938 whose name does not start with the host triplet.  If you think this
19939 configuration is useful to you, please write to autoconf@gnu.org." >&5
19940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19941 whose name does not start with the host triplet.  If you think this
19942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19943 ac_tool_warned=yes ;;
19944 esac
19945     WINDRES=$ac_ct_WINDRES
19946   fi
19947 else
19948   WINDRES="$ac_cv_prog_WINDRES"
19949 fi
19950
19951     RESCOMP="$WINDRES"
19952 else
19953     case "${host}" in
19954     *-*-cygwin* | *-*-mingw32* )
19955                                 if test -n "$ac_tool_prefix"; then
19956   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19957 set dummy ${ac_tool_prefix}windres; ac_word=$2
19958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19960 if test "${ac_cv_prog_WINDRES+set}" = set; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   if test -n "$WINDRES"; then
19964   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19965 else
19966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19967 for as_dir in $PATH
19968 do
19969   IFS=$as_save_IFS
19970   test -z "$as_dir" && as_dir=.
19971   for ac_exec_ext in '' $ac_executable_extensions; do
19972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19973     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19975     break 2
19976   fi
19977 done
19978 done
19979 IFS=$as_save_IFS
19980
19981 fi
19982 fi
19983 WINDRES=$ac_cv_prog_WINDRES
19984 if test -n "$WINDRES"; then
19985   { echo "$as_me:$LINENO: result: $WINDRES" >&5
19986 echo "${ECHO_T}$WINDRES" >&6; }
19987 else
19988   { echo "$as_me:$LINENO: result: no" >&5
19989 echo "${ECHO_T}no" >&6; }
19990 fi
19991
19992
19993 fi
19994 if test -z "$ac_cv_prog_WINDRES"; then
19995   ac_ct_WINDRES=$WINDRES
19996   # Extract the first word of "windres", so it can be a program name with args.
19997 set dummy windres; ac_word=$2
19998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20000 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   if test -n "$ac_ct_WINDRES"; then
20004   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20005 else
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20008 do
20009   IFS=$as_save_IFS
20010   test -z "$as_dir" && as_dir=.
20011   for ac_exec_ext in '' $ac_executable_extensions; do
20012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20013     ac_cv_prog_ac_ct_WINDRES="windres"
20014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20015     break 2
20016   fi
20017 done
20018 done
20019 IFS=$as_save_IFS
20020
20021 fi
20022 fi
20023 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20024 if test -n "$ac_ct_WINDRES"; then
20025   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20026 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20027 else
20028   { echo "$as_me:$LINENO: result: no" >&5
20029 echo "${ECHO_T}no" >&6; }
20030 fi
20031
20032   if test "x$ac_ct_WINDRES" = x; then
20033     WINDRES=""
20034   else
20035     case $cross_compiling:$ac_tool_warned in
20036 yes:)
20037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20038 whose name does not start with the host triplet.  If you think this
20039 configuration is useful to you, please write to autoconf@gnu.org." >&5
20040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20041 whose name does not start with the host triplet.  If you think this
20042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20043 ac_tool_warned=yes ;;
20044 esac
20045     WINDRES=$ac_ct_WINDRES
20046   fi
20047 else
20048   WINDRES="$ac_cv_prog_WINDRES"
20049 fi
20050
20051         RESCOMP="$WINDRES"
20052         if test -n "$ac_tool_prefix"; then
20053   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20057 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   if test -n "$DLLTOOL"; then
20061   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20062 else
20063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20064 for as_dir in $PATH
20065 do
20066   IFS=$as_save_IFS
20067   test -z "$as_dir" && as_dir=.
20068   for ac_exec_ext in '' $ac_executable_extensions; do
20069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20070     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20072     break 2
20073   fi
20074 done
20075 done
20076 IFS=$as_save_IFS
20077
20078 fi
20079 fi
20080 DLLTOOL=$ac_cv_prog_DLLTOOL
20081 if test -n "$DLLTOOL"; then
20082   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
20083 echo "${ECHO_T}$DLLTOOL" >&6; }
20084 else
20085   { echo "$as_me:$LINENO: result: no" >&5
20086 echo "${ECHO_T}no" >&6; }
20087 fi
20088
20089
20090 fi
20091 if test -z "$ac_cv_prog_DLLTOOL"; then
20092   ac_ct_DLLTOOL=$DLLTOOL
20093   # Extract the first word of "dlltool", so it can be a program name with args.
20094 set dummy dlltool; ac_word=$2
20095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20097 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
20098   echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100   if test -n "$ac_ct_DLLTOOL"; then
20101   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20102 else
20103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20105 do
20106   IFS=$as_save_IFS
20107   test -z "$as_dir" && as_dir=.
20108   for ac_exec_ext in '' $ac_executable_extensions; do
20109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20110     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20112     break 2
20113   fi
20114 done
20115 done
20116 IFS=$as_save_IFS
20117
20118 fi
20119 fi
20120 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20121 if test -n "$ac_ct_DLLTOOL"; then
20122   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
20123 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
20124 else
20125   { echo "$as_me:$LINENO: result: no" >&5
20126 echo "${ECHO_T}no" >&6; }
20127 fi
20128
20129   if test "x$ac_ct_DLLTOOL" = x; then
20130     DLLTOOL=""
20131   else
20132     case $cross_compiling:$ac_tool_warned in
20133 yes:)
20134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20135 whose name does not start with the host triplet.  If you think this
20136 configuration is useful to you, please write to autoconf@gnu.org." >&5
20137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20138 whose name does not start with the host triplet.  If you think this
20139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20140 ac_tool_warned=yes ;;
20141 esac
20142     DLLTOOL=$ac_ct_DLLTOOL
20143   fi
20144 else
20145   DLLTOOL="$ac_cv_prog_DLLTOOL"
20146 fi
20147
20148         ;;
20149     esac
20150 fi
20151
20152 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
20153 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
20154 if test "${wx_cv_prog_makeisgnu+set}" = set; then
20155   echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157
20158     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20159             $EGREP -s GNU > /dev/null); then
20160         wx_cv_prog_makeisgnu="yes"
20161     else
20162         wx_cv_prog_makeisgnu="no"
20163     fi
20164
20165 fi
20166 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
20167 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
20168
20169 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
20170     IF_GNU_MAKE=""
20171 else
20172     IF_GNU_MAKE="#"
20173 fi
20174
20175
20176
20177 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
20178 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
20179 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
20180 if test "${wx_cv_prog_makevpath+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183
20184 cat - << EOF > confMake
20185 check : file
20186         cp \$? \$@
20187         cp \$? final_file
20188 EOF
20189
20190 if test ! -d sub ; then
20191   mkdir sub
20192 fi
20193 echo dummy > sub/file
20194 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
20195 RESULT=$?
20196 rm -f sub/file check final_file confMake
20197 rmdir sub
20198 if test "$RESULT" = 0; then
20199   wx_cv_prog_makevpath="yes"
20200 else
20201   wx_cv_prog_makevpath="no"
20202 fi
20203
20204 fi
20205 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
20206 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
20207
20208 if test "x$wx_cv_prog_makevpath" != "xyes"; then
20209 { { echo "$as_me:$LINENO: error:
20210 You need a make-utility that is able to use the variable
20211 VPATH correctly.
20212 If your version of make does not support VPATH correctly,
20213 please install GNU-make (possibly as gmake), and start
20214 configure with the following command:
20215 export MAKE=gmake; ./configure  for sh-type shells
20216 setenv MAKE gmake; ./configure  for csh-type shells
20217 Also please do remember to use gmake in this case every time
20218 you are trying to compile.
20219 " >&5
20220 echo "$as_me: error:
20221 You need a make-utility that is able to use the variable
20222 VPATH correctly.
20223 If your version of make does not support VPATH correctly,
20224 please install GNU-make (possibly as gmake), and start
20225 configure with the following command:
20226 export MAKE=gmake; ./configure  for sh-type shells
20227 setenv MAKE gmake; ./configure  for csh-type shells
20228 Also please do remember to use gmake in this case every time
20229 you are trying to compile.
20230 " >&2;}
20231    { (exit 1); exit 1; }; }
20232 fi fi
20233 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20234 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20235 LN_S=$as_ln_s
20236 if test "$LN_S" = "ln -s"; then
20237   { echo "$as_me:$LINENO: result: yes" >&5
20238 echo "${ECHO_T}yes" >&6; }
20239 else
20240   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20241 echo "${ECHO_T}no, using $LN_S" >&6; }
20242 fi
20243
20244
20245
20246
20247 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20248     CXXFLAGS="-qunique $CXXFLAGS"
20249 fi
20250
20251 case "${host}" in
20252   powerpc-*-darwin* )
20253     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20254 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20255     cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261
20262 int
20263 main ()
20264 {
20265 #ifndef __POWERPC__
20266         choke me for lack of PowerPC
20267 #endif
20268
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext
20274 if { (ac_try="$ac_compile"
20275 case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280   (eval "$ac_compile") 2>conftest.er1
20281   ac_status=$?
20282   grep -v '^ *+' conftest.er1 >conftest.err
20283   rm -f conftest.er1
20284   cat conftest.err >&5
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } && {
20287          test -z "$ac_c_werror_flag" ||
20288          test ! -s conftest.err
20289        } && test -s conftest.$ac_objext; then
20290   { echo "$as_me:$LINENO: result: yes" >&5
20291 echo "${ECHO_T}yes" >&6; }
20292 else
20293   echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296         { echo "$as_me:$LINENO: result: no" >&5
20297 echo "${ECHO_T}no" >&6; }
20298         cat >>confdefs.h <<\_ACEOF
20299 #define __POWERPC__ 1
20300 _ACEOF
20301
20302
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306   ;;
20307 esac
20308
20309 case "${host}" in
20310   *-*-darwin* )
20311     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20312 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20313     cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319 #include <CoreFoundation/CFBase.h>
20320
20321 int
20322 main ()
20323 {
20324
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_compile") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && {
20343          test -z "$ac_c_werror_flag" ||
20344          test ! -s conftest.err
20345        } && test -s conftest.$ac_objext; then
20346   { echo "$as_me:$LINENO: result: yes" >&5
20347 echo "${ECHO_T}yes" >&6; }
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352         { echo "$as_me:$LINENO: result: no" >&5
20353 echo "${ECHO_T}no" >&6; }
20354         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20355 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20356         cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #define __CF_USE_FRAMEWORK_INCLUDES__
20363 #include <CoreFoundation/CFBase.h>
20364
20365 int
20366 main ()
20367 {
20368
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (ac_try="$ac_compile"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_compile") 2>conftest.er1
20381   ac_status=$?
20382   grep -v '^ *+' conftest.er1 >conftest.err
20383   rm -f conftest.er1
20384   cat conftest.err >&5
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } && {
20387          test -z "$ac_c_werror_flag" ||
20388          test ! -s conftest.err
20389        } && test -s conftest.$ac_objext; then
20390   { echo "$as_me:$LINENO: result: yes" >&5
20391 echo "${ECHO_T}yes" >&6; }
20392                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20398 See \`config.log' for more details." >&5
20399 echo "$as_me: error: no.  CoreFoundation not available.
20400 See \`config.log' for more details." >&2;}
20401    { (exit 1); exit 1; }; }
20402
20403 fi
20404
20405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406
20407
20408 fi
20409
20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20411   ;;
20412 esac
20413
20414 wants_win32=0
20415 doesnt_want_win32=0
20416 case "${host}" in
20417   *-*-cygwin*)
20418       if test "$wxUSE_MSW" = 1 ; then
20419         wants_win32=1
20420       else
20421                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20422 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20423 if test "${wx_cv_nocygwin+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426
20427                 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433
20434 int
20435 main ()
20436 {
20437
20438                         #ifdef __MINGW32__
20439                             choke me
20440                         #endif
20441
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450   *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453   (eval "$ac_compile") 2>conftest.er1
20454   ac_status=$?
20455   grep -v '^ *+' conftest.er1 >conftest.err
20456   rm -f conftest.er1
20457   cat conftest.err >&5
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } && {
20460          test -z "$ac_c_werror_flag" ||
20461          test ! -s conftest.err
20462        } && test -s conftest.$ac_objext; then
20463   wx_cv_nocygwin=no
20464 else
20465   echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20467
20468         wx_cv_nocygwin=yes
20469
20470 fi
20471
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473
20474
20475 fi
20476 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20477 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20478
20479         if test "$wx_cv_nocygwin" = "yes"; then
20480             wants_win32=1
20481         else
20482             doesnt_want_win32=1
20483         fi
20484       fi
20485       if test "$wants_win32" = 1 ; then
20486         BAKEFILE_FORCE_PLATFORM=win32
20487       fi
20488   ;;
20489   *-*-mingw*)
20490       wants_win32=1
20491   ;;
20492 esac
20493
20494 if test "$wxUSE_WINE" = "yes"; then
20495     wants_win32=1
20496     LDFLAGS_GUI="-mwindows"
20497 fi
20498
20499 if test "$wants_win32" = 1 ; then
20500     USE_UNIX=0
20501     USE_WIN32=1
20502     cat >>confdefs.h <<\_ACEOF
20503 #define __WIN32__ 1
20504 _ACEOF
20505
20506     cat >>confdefs.h <<\_ACEOF
20507 #define __WIN95__ 1
20508 _ACEOF
20509
20510     cat >>confdefs.h <<\_ACEOF
20511 #define __WINDOWS__ 1
20512 _ACEOF
20513
20514     cat >>confdefs.h <<\_ACEOF
20515 #define __GNUWIN32__ 1
20516 _ACEOF
20517
20518     cat >>confdefs.h <<\_ACEOF
20519 #define STRICT 1
20520 _ACEOF
20521
20522 fi
20523 if test "$doesnt_want_win32" = 1 ; then
20524     USE_UNIX=1
20525     USE_WIN32=0
20526 fi
20527
20528 if test "$USE_UNIX" = 1 ; then
20529     wxUSE_UNIX=yes
20530     cat >>confdefs.h <<\_ACEOF
20531 #define __UNIX__ 1
20532 _ACEOF
20533
20534 fi
20535
20536 case "${host}" in
20537   *-pc-os2_emx | *-pc-os2-emx )
20538                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20539                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20540 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20541 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20542   echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544   ac_check_lib_save_LIBS=$LIBS
20545 LIBS="-lcExt  $LIBS"
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552
20553 /* Override any GCC internal prototype to avoid an error.
20554    Use char because int might match the return type of a GCC
20555    builtin and then its argument prototype would still apply.  */
20556 #ifdef __cplusplus
20557 extern "C"
20558 #endif
20559 char drand48 ();
20560 int
20561 main ()
20562 {
20563 return drand48 ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_link") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } && {
20582          test -z "$ac_c_werror_flag" ||
20583          test ! -s conftest.err
20584        } && test -s conftest$ac_exeext &&
20585        $as_test_x conftest$ac_exeext; then
20586   ac_cv_lib_cExt_drand48=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         ac_cv_lib_cExt_drand48=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20595       conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20597 fi
20598 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
20599 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
20600 if test $ac_cv_lib_cExt_drand48 = yes; then
20601   LIBS="$LIBS -lcExt"
20602 fi
20603
20604       else
20605                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
20606       fi
20607                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
20608 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
20609 if test "${wx_cv_gccversion+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612
20613           if test "$cross_compiling" = yes; then
20614                 wx_cv_gccversion="EMX2"
20615
20616 else
20617   cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623
20624                   #include <stdio.h>
20625
20626                   int main()
20627                   {
20628                       FILE *f=fopen("conftestval", "w");
20629                       if (!f) exit(1);
20630                       fprintf(f,
20631                   #if (__GNUC__ < 3)
20632                               "EMX2"
20633                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
20634                               "EMX3"
20635                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
20636                               "Innotek5"
20637                   #else
20638                               "Innotek6"
20639                   #endif
20640                       );
20641                       exit(0);
20642                   }
20643
20644 _ACEOF
20645 rm -f conftest$ac_exeext
20646 if { (ac_try="$ac_link"
20647 case "(($ac_try" in
20648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649   *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652   (eval "$ac_link") 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20656   { (case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_try") 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   wx_cv_gccversion=`cat conftestval`
20666 else
20667   echo "$as_me: program exited with status $ac_status" >&5
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ( exit $ac_status )
20672 wx_cv_gccversion="EMX2"
20673 fi
20674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20675 fi
20676
20677
20678
20679 fi
20680 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20681 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20682       if test "$wx_cv_gccversion" = "EMX2"; then
20683           LIBS="$LIBS -lstdcpp"
20684           LDFLAGS="$LDFLAGS -Zsysv-signals"
20685       else
20686           if test "$wx_cv_gccversion" = "EMX3"; then
20687               LIBS="$LIBS -lstdcxx -lgcc"
20688               LDFLAGS="$LDFLAGS -Zsysv-signals"
20689           else
20690               LIBS="$LIBS -lstdc++"
20691           fi
20692       fi
20693       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20694         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20695 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20696         wxUSE_OMF=yes
20697         enable_omf=yes
20698       fi
20699         ;;
20700   *)
20701
20702       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20703 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20704 if test "${ac_cv_string_strcasecmp+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707
20708           cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714
20715               #include <string.h>
20716
20717 int
20718 main ()
20719 {
20720
20721                   strcasecmp("foo", "bar");
20722
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (ac_try="$ac_link"
20729 case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_link") 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } && {
20741          test -z "$ac_c_werror_flag" ||
20742          test ! -s conftest.err
20743        } && test -s conftest$ac_exeext &&
20744        $as_test_x conftest$ac_exeext; then
20745   ac_cv_string_strcasecmp=yes
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750         ac_cv_string_strcasecmp=no
20751
20752 fi
20753
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755       conftest$ac_exeext conftest.$ac_ext
20756
20757 fi
20758 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20759 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20760
20761       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20762           cat >>confdefs.h <<\_ACEOF
20763 #define HAVE_STRCASECMP_IN_STRING_H 1
20764 _ACEOF
20765
20766       else
20767           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20768 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20769 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772
20773               cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779
20780                   #include <strings.h>
20781
20782 int
20783 main ()
20784 {
20785
20786                       strcasecmp("foo", "bar");
20787
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_link") 2>conftest.er1
20800   ac_status=$?
20801   grep -v '^ *+' conftest.er1 >conftest.err
20802   rm -f conftest.er1
20803   cat conftest.err >&5
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); } && {
20806          test -z "$ac_c_werror_flag" ||
20807          test ! -s conftest.err
20808        } && test -s conftest$ac_exeext &&
20809        $as_test_x conftest$ac_exeext; then
20810   ac_cv_strings_strcasecmp=yes
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815         ac_cv_strings_strcasecmp=no
20816
20817 fi
20818
20819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820       conftest$ac_exeext conftest.$ac_ext
20821
20822 fi
20823 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20824 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20825
20826           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20827               cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20829 _ACEOF
20830
20831           else
20832               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20833 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20834    { (exit 1); exit 1; }; }
20835           fi
20836       fi
20837
20838         ;;
20839 esac
20840
20841
20842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20844 if test "${ac_cv_header_stdc+set}" = set; then
20845   echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847   cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 #include <stdlib.h>
20854 #include <stdarg.h>
20855 #include <string.h>
20856 #include <float.h>
20857
20858 int
20859 main ()
20860 {
20861
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_compile") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && {
20880          test -z "$ac_c_werror_flag" ||
20881          test ! -s conftest.err
20882        } && test -s conftest.$ac_objext; then
20883   ac_cv_header_stdc=yes
20884 else
20885   echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888         ac_cv_header_stdc=no
20889 fi
20890
20891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892
20893 if test $ac_cv_header_stdc = yes; then
20894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20895   cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 #include <string.h>
20902
20903 _ACEOF
20904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20905   $EGREP "memchr" >/dev/null 2>&1; then
20906   :
20907 else
20908   ac_cv_header_stdc=no
20909 fi
20910 rm -f conftest*
20911
20912 fi
20913
20914 if test $ac_cv_header_stdc = yes; then
20915   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20916   cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922 #include <stdlib.h>
20923
20924 _ACEOF
20925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20926   $EGREP "free" >/dev/null 2>&1; then
20927   :
20928 else
20929   ac_cv_header_stdc=no
20930 fi
20931 rm -f conftest*
20932
20933 fi
20934
20935 if test $ac_cv_header_stdc = yes; then
20936   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20937   if test "$cross_compiling" = yes; then
20938   :
20939 else
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <ctype.h>
20947 #include <stdlib.h>
20948 #if ((' ' & 0x0FF) == 0x020)
20949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20951 #else
20952 # define ISLOWER(c) \
20953                    (('a' <= (c) && (c) <= 'i') \
20954                      || ('j' <= (c) && (c) <= 'r') \
20955                      || ('s' <= (c) && (c) <= 'z'))
20956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20957 #endif
20958
20959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20960 int
20961 main ()
20962 {
20963   int i;
20964   for (i = 0; i < 256; i++)
20965     if (XOR (islower (i), ISLOWER (i))
20966         || toupper (i) != TOUPPER (i))
20967       return 2;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975   *) ac_try_echo=$ac_try;;
20976 esac
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978   (eval "$ac_link") 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20982   { (case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_try") 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   :
20992 else
20993   echo "$as_me: program exited with status $ac_status" >&5
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 ( exit $ac_status )
20998 ac_cv_header_stdc=no
20999 fi
21000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21001 fi
21002
21003
21004 fi
21005 fi
21006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21008 if test $ac_cv_header_stdc = yes; then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define STDC_HEADERS 1
21012 _ACEOF
21013
21014 fi
21015
21016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21027                   inttypes.h stdint.h unistd.h
21028 do
21029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035   cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 $ac_includes_default
21042
21043 #include <$ac_header>
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_compile") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest.$ac_objext; then
21062   eval "$as_ac_Header=yes"
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067         eval "$as_ac_Header=no"
21068 fi
21069
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 fi
21072 ac_res=`eval echo '${'$as_ac_Header'}'`
21073                { echo "$as_me:$LINENO: result: $ac_res" >&5
21074 echo "${ECHO_T}$ac_res" >&6; }
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076   cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078 _ACEOF
21079
21080 fi
21081
21082 done
21083
21084
21085
21086
21087
21088
21089
21090
21091 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
21092 do
21093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 $ac_includes_default
21106
21107 #include <$ac_header>
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest.$ac_objext; then
21126   eval "$as_ac_Header=yes"
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131         eval "$as_ac_Header=no"
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 fi
21136 ac_res=`eval echo '${'$as_ac_Header'}'`
21137                { echo "$as_me:$LINENO: result: $ac_res" >&5
21138 echo "${ECHO_T}$ac_res" >&6; }
21139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21140   cat >>confdefs.h <<_ACEOF
21141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142 _ACEOF
21143
21144 fi
21145
21146 done
21147
21148
21149 if test "$ac_cv_header_wchar_h" != "yes"; then
21150     { echo "$as_me:$LINENO: checking for wcstr.h" >&5
21151 echo $ECHO_N "checking for wcstr.h... $ECHO_C" >&6; }
21152 if test "${ac_cv_header_wcstr_h+set}" = set; then
21153   echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 $ac_includes_default
21162
21163 #include <wcstr.h>
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_compile") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && {
21179          test -z "$ac_c_werror_flag" ||
21180          test ! -s conftest.err
21181        } && test -s conftest.$ac_objext; then
21182   ac_cv_header_wcstr_h=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187         ac_cv_header_wcstr_h=no
21188 fi
21189
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 fi
21192 { echo "$as_me:$LINENO: result: $ac_cv_header_wcstr_h" >&5
21193 echo "${ECHO_T}$ac_cv_header_wcstr_h" >&6; }
21194
21195
21196 fi
21197
21198 case "${host}" in
21199   *-pc-os2_emx | *-pc-os2-emx )
21200                   if test $ac_cv_header_langinfo_h = "yes" \
21201                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21202                      -o "$wx_cv_gccversion" = "EMX3" \
21203                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21204           LIBS="$LIBS -lintl"
21205       fi
21206   ;;
21207 esac
21208
21209 if test "$USE_UNIX" = 1 ; then
21210     { echo "$as_me:$LINENO: checking for sys/select.h" >&5
21211 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
21212 if test "${ac_cv_header_sys_select_h+set}" = set; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 $ac_includes_default
21222
21223 #include <sys/select.h>
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_c_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   ac_cv_header_sys_select_h=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_cv_header_sys_select_h=no
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 fi
21252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
21253 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
21254
21255
21256 fi
21257
21258
21259 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21260 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21261 if test "${ac_cv_c_const+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270
21271 int
21272 main ()
21273 {
21274 /* FIXME: Include the comments suggested by Paul. */
21275 #ifndef __cplusplus
21276   /* Ultrix mips cc rejects this.  */
21277   typedef int charset[2];
21278   const charset cs;
21279   /* SunOS 4.1.1 cc rejects this.  */
21280   char const *const *pcpcc;
21281   char **ppc;
21282   /* NEC SVR4.0.2 mips cc rejects this.  */
21283   struct point {int x, y;};
21284   static struct point const zero = {0,0};
21285   /* AIX XL C 1.02.0.0 rejects this.
21286      It does not let you subtract one const X* pointer from another in
21287      an arm of an if-expression whose if-part is not a constant
21288      expression */
21289   const char *g = "string";
21290   pcpcc = &g + (g ? g-g : 0);
21291   /* HPUX 7.0 cc rejects these. */
21292   ++pcpcc;
21293   ppc = (char**) pcpcc;
21294   pcpcc = (char const *const *) ppc;
21295   { /* SCO 3.2v4 cc rejects this.  */
21296     char *t;
21297     char const *s = 0 ? (char *) 0 : (char const *) 0;
21298
21299     *t++ = 0;
21300     if (s) return 0;
21301   }
21302   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21303     int x[] = {25, 17};
21304     const int *foo = &x[0];
21305     ++foo;
21306   }
21307   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21308     typedef const int *iptr;
21309     iptr p = 0;
21310     ++p;
21311   }
21312   { /* AIX XL C 1.02.0.0 rejects this saying
21313        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21314     struct s { int j; const int *ap[3]; };
21315     struct s *b; b->j = 5;
21316   }
21317   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21318     const int foo = 10;
21319     if (!foo) return 0;
21320   }
21321   return !cs[0] && !zero.x;
21322 #endif
21323
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_compile") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } && {
21342          test -z "$ac_c_werror_flag" ||
21343          test ! -s conftest.err
21344        } && test -s conftest.$ac_objext; then
21345   ac_cv_c_const=yes
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350         ac_cv_c_const=no
21351 fi
21352
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 fi
21355 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21356 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21357 if test $ac_cv_c_const = no; then
21358
21359 cat >>confdefs.h <<\_ACEOF
21360 #define const
21361 _ACEOF
21362
21363 fi
21364
21365 { echo "$as_me:$LINENO: checking for inline" >&5
21366 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21367 if test "${ac_cv_c_inline+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   ac_cv_c_inline=no
21371 for ac_kw in inline __inline__ __inline; do
21372   cat >conftest.$ac_ext <<_ACEOF
21373 /* confdefs.h.  */
21374 _ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h.  */
21378 #ifndef __cplusplus
21379 typedef int foo_t;
21380 static $ac_kw foo_t static_foo () {return 0; }
21381 $ac_kw foo_t foo () {return 0; }
21382 #endif
21383
21384 _ACEOF
21385 rm -f conftest.$ac_objext
21386 if { (ac_try="$ac_compile"
21387 case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_compile") 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } && {
21399          test -z "$ac_c_werror_flag" ||
21400          test ! -s conftest.err
21401        } && test -s conftest.$ac_objext; then
21402   ac_cv_c_inline=$ac_kw
21403 else
21404   echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407
21408 fi
21409
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411   test "$ac_cv_c_inline" != no && break
21412 done
21413
21414 fi
21415 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21416 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21417
21418
21419 case $ac_cv_c_inline in
21420   inline | yes) ;;
21421   *)
21422     case $ac_cv_c_inline in
21423       no) ac_val=;;
21424       *) ac_val=$ac_cv_c_inline;;
21425     esac
21426     cat >>confdefs.h <<_ACEOF
21427 #ifndef __cplusplus
21428 #define inline $ac_val
21429 #endif
21430 _ACEOF
21431     ;;
21432 esac
21433
21434
21435 { echo "$as_me:$LINENO: checking for short" >&5
21436 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21437 if test "${ac_cv_type_short+set}" = set; then
21438   echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440   cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446 $ac_includes_default
21447 typedef short ac__type_new_;
21448 int
21449 main ()
21450 {
21451 if ((ac__type_new_ *) 0)
21452   return 0;
21453 if (sizeof (ac__type_new_))
21454   return 0;
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_compile") 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } && {
21473          test -z "$ac_c_werror_flag" ||
21474          test ! -s conftest.err
21475        } && test -s conftest.$ac_objext; then
21476   ac_cv_type_short=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         ac_cv_type_short=no
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 fi
21486 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21487 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21488
21489 # The cast to long int works around a bug in the HP C Compiler
21490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21492 # This bug is HP SR number 8606223364.
21493 { echo "$as_me:$LINENO: checking size of short" >&5
21494 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21495 if test "${ac_cv_sizeof_short+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498   if test "$cross_compiling" = yes; then
21499   # Depending upon the size, compute the lo and hi bounds.
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 $ac_includes_default
21507    typedef short ac__type_sizeof_;
21508 int
21509 main ()
21510 {
21511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21512 test_array [0] = 0
21513
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (ac_try="$ac_compile"
21520 case "(($ac_try" in
21521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522   *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525   (eval "$ac_compile") 2>conftest.er1
21526   ac_status=$?
21527   grep -v '^ *+' conftest.er1 >conftest.err
21528   rm -f conftest.er1
21529   cat conftest.err >&5
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } && {
21532          test -z "$ac_c_werror_flag" ||
21533          test ! -s conftest.err
21534        } && test -s conftest.$ac_objext; then
21535   ac_lo=0 ac_mid=0
21536   while :; do
21537     cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 $ac_includes_default
21544    typedef short ac__type_sizeof_;
21545 int
21546 main ()
21547 {
21548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21549 test_array [0] = 0
21550
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559   *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562   (eval "$ac_compile") 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } && {
21569          test -z "$ac_c_werror_flag" ||
21570          test ! -s conftest.err
21571        } && test -s conftest.$ac_objext; then
21572   ac_hi=$ac_mid; break
21573 else
21574   echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577         ac_lo=`expr $ac_mid + 1`
21578                         if test $ac_lo -le $ac_mid; then
21579                           ac_lo= ac_hi=
21580                           break
21581                         fi
21582                         ac_mid=`expr 2 '*' $ac_mid + 1`
21583 fi
21584
21585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586   done
21587 else
21588   echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591         cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 $ac_includes_default
21598    typedef short ac__type_sizeof_;
21599 int
21600 main ()
21601 {
21602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21603 test_array [0] = 0
21604
21605   ;
21606   return 0;
21607 }
21608 _ACEOF
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_compile") 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } && {
21623          test -z "$ac_c_werror_flag" ||
21624          test ! -s conftest.err
21625        } && test -s conftest.$ac_objext; then
21626   ac_hi=-1 ac_mid=-1
21627   while :; do
21628     cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 $ac_includes_default
21635    typedef short ac__type_sizeof_;
21636 int
21637 main ()
21638 {
21639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21640 test_array [0] = 0
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_compile") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && {
21660          test -z "$ac_c_werror_flag" ||
21661          test ! -s conftest.err
21662        } && test -s conftest.$ac_objext; then
21663   ac_lo=$ac_mid; break
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668         ac_hi=`expr '(' $ac_mid ')' - 1`
21669                         if test $ac_mid -le $ac_hi; then
21670                           ac_lo= ac_hi=
21671                           break
21672                         fi
21673                         ac_mid=`expr 2 '*' $ac_mid`
21674 fi
21675
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21677   done
21678 else
21679   echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682         ac_lo= ac_hi=
21683 fi
21684
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 fi
21687
21688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689 # Binary search between lo and hi bounds.
21690 while test "x$ac_lo" != "x$ac_hi"; do
21691   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21692   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 $ac_includes_default
21699    typedef short ac__type_sizeof_;
21700 int
21701 main ()
21702 {
21703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21704 test_array [0] = 0
21705
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_compile") 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && {
21724          test -z "$ac_c_werror_flag" ||
21725          test ! -s conftest.err
21726        } && test -s conftest.$ac_objext; then
21727   ac_hi=$ac_mid
21728 else
21729   echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732         ac_lo=`expr '(' $ac_mid ')' + 1`
21733 fi
21734
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 done
21737 case $ac_lo in
21738 ?*) ac_cv_sizeof_short=$ac_lo;;
21739 '') if test "$ac_cv_type_short" = yes; then
21740      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21741 See \`config.log' for more details." >&5
21742 echo "$as_me: error: cannot compute sizeof (short)
21743 See \`config.log' for more details." >&2;}
21744    { (exit 77); exit 77; }; }
21745    else
21746      ac_cv_sizeof_short=0
21747    fi ;;
21748 esac
21749 else
21750   cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h.  */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h.  */
21756 $ac_includes_default
21757    typedef short ac__type_sizeof_;
21758 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21759 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21760 #include <stdio.h>
21761 #include <stdlib.h>
21762 int
21763 main ()
21764 {
21765
21766   FILE *f = fopen ("conftest.val", "w");
21767   if (! f)
21768     return 1;
21769   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21770     {
21771       long int i = longval ();
21772       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21773         return 1;
21774       fprintf (f, "%ld\n", i);
21775     }
21776   else
21777     {
21778       unsigned long int i = ulongval ();
21779       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21780         return 1;
21781       fprintf (f, "%lu\n", i);
21782     }
21783   return ferror (f) || fclose (f) != 0;
21784
21785   ;
21786   return 0;
21787 }
21788 _ACEOF
21789 rm -f conftest$ac_exeext
21790 if { (ac_try="$ac_link"
21791 case "(($ac_try" in
21792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793   *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796   (eval "$ac_link") 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21800   { (case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_try") 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; }; then
21809   ac_cv_sizeof_short=`cat conftest.val`
21810 else
21811   echo "$as_me: program exited with status $ac_status" >&5
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 ( exit $ac_status )
21816 if test "$ac_cv_type_short" = yes; then
21817      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21818 See \`config.log' for more details." >&5
21819 echo "$as_me: error: cannot compute sizeof (short)
21820 See \`config.log' for more details." >&2;}
21821    { (exit 77); exit 77; }; }
21822    else
21823      ac_cv_sizeof_short=0
21824    fi
21825 fi
21826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21827 fi
21828 rm -f conftest.val
21829 fi
21830 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21831 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21832
21833
21834
21835 cat >>confdefs.h <<_ACEOF
21836 #define SIZEOF_SHORT $ac_cv_sizeof_short
21837 _ACEOF
21838
21839
21840 { echo "$as_me:$LINENO: checking for void *" >&5
21841 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21842 if test "${ac_cv_type_void_p+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 $ac_includes_default
21852 typedef void * ac__type_new_;
21853 int
21854 main ()
21855 {
21856 if ((ac__type_new_ *) 0)
21857   return 0;
21858 if (sizeof (ac__type_new_))
21859   return 0;
21860   ;
21861   return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_compile") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } && {
21878          test -z "$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        } && test -s conftest.$ac_objext; then
21881   ac_cv_type_void_p=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886         ac_cv_type_void_p=no
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 fi
21891 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21892 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21893
21894 # The cast to long int works around a bug in the HP C Compiler
21895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21897 # This bug is HP SR number 8606223364.
21898 { echo "$as_me:$LINENO: checking size of void *" >&5
21899 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21900 if test "${ac_cv_sizeof_void_p+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   if test "$cross_compiling" = yes; then
21904   # Depending upon the size, compute the lo and hi bounds.
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 $ac_includes_default
21912    typedef void * ac__type_sizeof_;
21913 int
21914 main ()
21915 {
21916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21917 test_array [0] = 0
21918
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext
21924 if { (ac_try="$ac_compile"
21925 case "(($ac_try" in
21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927   *) ac_try_echo=$ac_try;;
21928 esac
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930   (eval "$ac_compile") 2>conftest.er1
21931   ac_status=$?
21932   grep -v '^ *+' conftest.er1 >conftest.err
21933   rm -f conftest.er1
21934   cat conftest.err >&5
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); } && {
21937          test -z "$ac_c_werror_flag" ||
21938          test ! -s conftest.err
21939        } && test -s conftest.$ac_objext; then
21940   ac_lo=0 ac_mid=0
21941   while :; do
21942     cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948 $ac_includes_default
21949    typedef void * ac__type_sizeof_;
21950 int
21951 main ()
21952 {
21953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21954 test_array [0] = 0
21955
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 rm -f conftest.$ac_objext
21961 if { (ac_try="$ac_compile"
21962 case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_compile") 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } && {
21974          test -z "$ac_c_werror_flag" ||
21975          test ! -s conftest.err
21976        } && test -s conftest.$ac_objext; then
21977   ac_hi=$ac_mid; break
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982         ac_lo=`expr $ac_mid + 1`
21983                         if test $ac_lo -le $ac_mid; then
21984                           ac_lo= ac_hi=
21985                           break
21986                         fi
21987                         ac_mid=`expr 2 '*' $ac_mid + 1`
21988 fi
21989
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991   done
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996         cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 $ac_includes_default
22003    typedef void * ac__type_sizeof_;
22004 int
22005 main ()
22006 {
22007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22008 test_array [0] = 0
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_compile") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest.$ac_objext; then
22031   ac_hi=-1 ac_mid=-1
22032   while :; do
22033     cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040    typedef void * ac__type_sizeof_;
22041 int
22042 main ()
22043 {
22044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22045 test_array [0] = 0
22046
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_compile") 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } && {
22065          test -z "$ac_c_werror_flag" ||
22066          test ! -s conftest.err
22067        } && test -s conftest.$ac_objext; then
22068   ac_lo=$ac_mid; break
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073         ac_hi=`expr '(' $ac_mid ')' - 1`
22074                         if test $ac_mid -le $ac_hi; then
22075                           ac_lo= ac_hi=
22076                           break
22077                         fi
22078                         ac_mid=`expr 2 '*' $ac_mid`
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082   done
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087         ac_lo= ac_hi=
22088 fi
22089
22090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 fi
22092
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 # Binary search between lo and hi bounds.
22095 while test "x$ac_lo" != "x$ac_hi"; do
22096   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22097   cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 $ac_includes_default
22104    typedef void * ac__type_sizeof_;
22105 int
22106 main ()
22107 {
22108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22109 test_array [0] = 0
22110
22111   ;
22112   return 0;
22113 }
22114 _ACEOF
22115 rm -f conftest.$ac_objext
22116 if { (ac_try="$ac_compile"
22117 case "(($ac_try" in
22118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119   *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122   (eval "$ac_compile") 2>conftest.er1
22123   ac_status=$?
22124   grep -v '^ *+' conftest.er1 >conftest.err
22125   rm -f conftest.er1
22126   cat conftest.err >&5
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); } && {
22129          test -z "$ac_c_werror_flag" ||
22130          test ! -s conftest.err
22131        } && test -s conftest.$ac_objext; then
22132   ac_hi=$ac_mid
22133 else
22134   echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22136
22137         ac_lo=`expr '(' $ac_mid ')' + 1`
22138 fi
22139
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 done
22142 case $ac_lo in
22143 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22144 '') if test "$ac_cv_type_void_p" = yes; then
22145      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22146 See \`config.log' for more details." >&5
22147 echo "$as_me: error: cannot compute sizeof (void *)
22148 See \`config.log' for more details." >&2;}
22149    { (exit 77); exit 77; }; }
22150    else
22151      ac_cv_sizeof_void_p=0
22152    fi ;;
22153 esac
22154 else
22155   cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 $ac_includes_default
22162    typedef void * ac__type_sizeof_;
22163 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22164 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22165 #include <stdio.h>
22166 #include <stdlib.h>
22167 int
22168 main ()
22169 {
22170
22171   FILE *f = fopen ("conftest.val", "w");
22172   if (! f)
22173     return 1;
22174   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22175     {
22176       long int i = longval ();
22177       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22178         return 1;
22179       fprintf (f, "%ld\n", i);
22180     }
22181   else
22182     {
22183       unsigned long int i = ulongval ();
22184       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22185         return 1;
22186       fprintf (f, "%lu\n", i);
22187     }
22188   return ferror (f) || fclose (f) != 0;
22189
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_link") 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205   { (case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_try") 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; }; then
22214   ac_cv_sizeof_void_p=`cat conftest.val`
22215 else
22216   echo "$as_me: program exited with status $ac_status" >&5
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220 ( exit $ac_status )
22221 if test "$ac_cv_type_void_p" = yes; then
22222      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22223 See \`config.log' for more details." >&5
22224 echo "$as_me: error: cannot compute sizeof (void *)
22225 See \`config.log' for more details." >&2;}
22226    { (exit 77); exit 77; }; }
22227    else
22228      ac_cv_sizeof_void_p=0
22229    fi
22230 fi
22231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22232 fi
22233 rm -f conftest.val
22234 fi
22235 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22236 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22237
22238
22239
22240 cat >>confdefs.h <<_ACEOF
22241 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22242 _ACEOF
22243
22244
22245 { echo "$as_me:$LINENO: checking for int" >&5
22246 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22247 if test "${ac_cv_type_int+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 $ac_includes_default
22257 typedef int ac__type_new_;
22258 int
22259 main ()
22260 {
22261 if ((ac__type_new_ *) 0)
22262   return 0;
22263 if (sizeof (ac__type_new_))
22264   return 0;
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_compile") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && {
22283          test -z "$ac_c_werror_flag" ||
22284          test ! -s conftest.err
22285        } && test -s conftest.$ac_objext; then
22286   ac_cv_type_int=yes
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         ac_cv_type_int=no
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 fi
22296 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22297 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22298
22299 # The cast to long int works around a bug in the HP C Compiler
22300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22302 # This bug is HP SR number 8606223364.
22303 { echo "$as_me:$LINENO: checking size of int" >&5
22304 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22305 if test "${ac_cv_sizeof_int+set}" = set; then
22306   echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308   if test "$cross_compiling" = yes; then
22309   # Depending upon the size, compute the lo and hi bounds.
22310 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316 $ac_includes_default
22317    typedef int ac__type_sizeof_;
22318 int
22319 main ()
22320 {
22321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22322 test_array [0] = 0
22323
22324   ;
22325   return 0;
22326 }
22327 _ACEOF
22328 rm -f conftest.$ac_objext
22329 if { (ac_try="$ac_compile"
22330 case "(($ac_try" in
22331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332   *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335   (eval "$ac_compile") 2>conftest.er1
22336   ac_status=$?
22337   grep -v '^ *+' conftest.er1 >conftest.err
22338   rm -f conftest.er1
22339   cat conftest.err >&5
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); } && {
22342          test -z "$ac_c_werror_flag" ||
22343          test ! -s conftest.err
22344        } && test -s conftest.$ac_objext; then
22345   ac_lo=0 ac_mid=0
22346   while :; do
22347     cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 $ac_includes_default
22354    typedef int ac__type_sizeof_;
22355 int
22356 main ()
22357 {
22358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22359 test_array [0] = 0
22360
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_compile") 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && {
22379          test -z "$ac_c_werror_flag" ||
22380          test ! -s conftest.err
22381        } && test -s conftest.$ac_objext; then
22382   ac_hi=$ac_mid; break
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387         ac_lo=`expr $ac_mid + 1`
22388                         if test $ac_lo -le $ac_mid; then
22389                           ac_lo= ac_hi=
22390                           break
22391                         fi
22392                         ac_mid=`expr 2 '*' $ac_mid + 1`
22393 fi
22394
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396   done
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401         cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407 $ac_includes_default
22408    typedef int ac__type_sizeof_;
22409 int
22410 main ()
22411 {
22412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22413 test_array [0] = 0
22414
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_compile") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } && {
22433          test -z "$ac_c_werror_flag" ||
22434          test ! -s conftest.err
22435        } && test -s conftest.$ac_objext; then
22436   ac_hi=-1 ac_mid=-1
22437   while :; do
22438     cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 $ac_includes_default
22445    typedef int ac__type_sizeof_;
22446 int
22447 main ()
22448 {
22449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22450 test_array [0] = 0
22451
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest.$ac_objext; then
22473   ac_lo=$ac_mid; break
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478         ac_hi=`expr '(' $ac_mid ')' - 1`
22479                         if test $ac_mid -le $ac_hi; then
22480                           ac_lo= ac_hi=
22481                           break
22482                         fi
22483                         ac_mid=`expr 2 '*' $ac_mid`
22484 fi
22485
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487   done
22488 else
22489   echo "$as_me: failed program was:" >&5
22490 sed 's/^/| /' conftest.$ac_ext >&5
22491
22492         ac_lo= ac_hi=
22493 fi
22494
22495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22496 fi
22497
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 # Binary search between lo and hi bounds.
22500 while test "x$ac_lo" != "x$ac_hi"; do
22501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22502   cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h.  */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h.  */
22508 $ac_includes_default
22509    typedef int ac__type_sizeof_;
22510 int
22511 main ()
22512 {
22513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22514 test_array [0] = 0
22515
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524   *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527   (eval "$ac_compile") 2>conftest.er1
22528   ac_status=$?
22529   grep -v '^ *+' conftest.er1 >conftest.err
22530   rm -f conftest.er1
22531   cat conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } && {
22534          test -z "$ac_c_werror_flag" ||
22535          test ! -s conftest.err
22536        } && test -s conftest.$ac_objext; then
22537   ac_hi=$ac_mid
22538 else
22539   echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542         ac_lo=`expr '(' $ac_mid ')' + 1`
22543 fi
22544
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 done
22547 case $ac_lo in
22548 ?*) ac_cv_sizeof_int=$ac_lo;;
22549 '') if test "$ac_cv_type_int" = yes; then
22550      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22551 See \`config.log' for more details." >&5
22552 echo "$as_me: error: cannot compute sizeof (int)
22553 See \`config.log' for more details." >&2;}
22554    { (exit 77); exit 77; }; }
22555    else
22556      ac_cv_sizeof_int=0
22557    fi ;;
22558 esac
22559 else
22560   cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 $ac_includes_default
22567    typedef int ac__type_sizeof_;
22568 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22569 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22570 #include <stdio.h>
22571 #include <stdlib.h>
22572 int
22573 main ()
22574 {
22575
22576   FILE *f = fopen ("conftest.val", "w");
22577   if (! f)
22578     return 1;
22579   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22580     {
22581       long int i = longval ();
22582       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22583         return 1;
22584       fprintf (f, "%ld\n", i);
22585     }
22586   else
22587     {
22588       unsigned long int i = ulongval ();
22589       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22590         return 1;
22591       fprintf (f, "%lu\n", i);
22592     }
22593   return ferror (f) || fclose (f) != 0;
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest$ac_exeext
22600 if { (ac_try="$ac_link"
22601 case "(($ac_try" in
22602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603   *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606   (eval "$ac_link") 2>&5
22607   ac_status=$?
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22610   { (case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_try") 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; }; then
22619   ac_cv_sizeof_int=`cat conftest.val`
22620 else
22621   echo "$as_me: program exited with status $ac_status" >&5
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 ( exit $ac_status )
22626 if test "$ac_cv_type_int" = yes; then
22627      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22628 See \`config.log' for more details." >&5
22629 echo "$as_me: error: cannot compute sizeof (int)
22630 See \`config.log' for more details." >&2;}
22631    { (exit 77); exit 77; }; }
22632    else
22633      ac_cv_sizeof_int=0
22634    fi
22635 fi
22636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22637 fi
22638 rm -f conftest.val
22639 fi
22640 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22641 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22642
22643
22644
22645 cat >>confdefs.h <<_ACEOF
22646 #define SIZEOF_INT $ac_cv_sizeof_int
22647 _ACEOF
22648
22649
22650 { echo "$as_me:$LINENO: checking for long" >&5
22651 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22652 if test "${ac_cv_type_long+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661 $ac_includes_default
22662 typedef long ac__type_new_;
22663 int
22664 main ()
22665 {
22666 if ((ac__type_new_ *) 0)
22667   return 0;
22668 if (sizeof (ac__type_new_))
22669   return 0;
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_compile") 2>conftest.er1
22682   ac_status=$?
22683   grep -v '^ *+' conftest.er1 >conftest.err
22684   rm -f conftest.er1
22685   cat conftest.err >&5
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); } && {
22688          test -z "$ac_c_werror_flag" ||
22689          test ! -s conftest.err
22690        } && test -s conftest.$ac_objext; then
22691   ac_cv_type_long=yes
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696         ac_cv_type_long=no
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 fi
22701 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22702 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22703
22704 # The cast to long int works around a bug in the HP C Compiler
22705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22707 # This bug is HP SR number 8606223364.
22708 { echo "$as_me:$LINENO: checking size of long" >&5
22709 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22710 if test "${ac_cv_sizeof_long+set}" = set; then
22711   echo $ECHO_N "(cached) $ECHO_C" >&6
22712 else
22713   if test "$cross_compiling" = yes; then
22714   # Depending upon the size, compute the lo and hi bounds.
22715 cat >conftest.$ac_ext <<_ACEOF
22716 /* confdefs.h.  */
22717 _ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h.  */
22721 $ac_includes_default
22722    typedef long ac__type_sizeof_;
22723 int
22724 main ()
22725 {
22726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22727 test_array [0] = 0
22728
22729   ;
22730   return 0;
22731 }
22732 _ACEOF
22733 rm -f conftest.$ac_objext
22734 if { (ac_try="$ac_compile"
22735 case "(($ac_try" in
22736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737   *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740   (eval "$ac_compile") 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } && {
22747          test -z "$ac_c_werror_flag" ||
22748          test ! -s conftest.err
22749        } && test -s conftest.$ac_objext; then
22750   ac_lo=0 ac_mid=0
22751   while :; do
22752     cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_includes_default
22759    typedef long ac__type_sizeof_;
22760 int
22761 main ()
22762 {
22763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22764 test_array [0] = 0
22765
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (ac_try="$ac_compile"
22772 case "(($ac_try" in
22773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774   *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777   (eval "$ac_compile") 2>conftest.er1
22778   ac_status=$?
22779   grep -v '^ *+' conftest.er1 >conftest.err
22780   rm -f conftest.er1
22781   cat conftest.err >&5
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); } && {
22784          test -z "$ac_c_werror_flag" ||
22785          test ! -s conftest.err
22786        } && test -s conftest.$ac_objext; then
22787   ac_hi=$ac_mid; break
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792         ac_lo=`expr $ac_mid + 1`
22793                         if test $ac_lo -le $ac_mid; then
22794                           ac_lo= ac_hi=
22795                           break
22796                         fi
22797                         ac_mid=`expr 2 '*' $ac_mid + 1`
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801   done
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 $ac_includes_default
22813    typedef long ac__type_sizeof_;
22814 int
22815 main ()
22816 {
22817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22818 test_array [0] = 0
22819
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828   *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831   (eval "$ac_compile") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } && {
22838          test -z "$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        } && test -s conftest.$ac_objext; then
22841   ac_hi=-1 ac_mid=-1
22842   while :; do
22843     cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h.  */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h.  */
22849 $ac_includes_default
22850    typedef long ac__type_sizeof_;
22851 int
22852 main ()
22853 {
22854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22855 test_array [0] = 0
22856
22857   ;
22858   return 0;
22859 }
22860 _ACEOF
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865   *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868   (eval "$ac_compile") 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && {
22875          test -z "$ac_c_werror_flag" ||
22876          test ! -s conftest.err
22877        } && test -s conftest.$ac_objext; then
22878   ac_lo=$ac_mid; break
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883         ac_hi=`expr '(' $ac_mid ')' - 1`
22884                         if test $ac_mid -le $ac_hi; then
22885                           ac_lo= ac_hi=
22886                           break
22887                         fi
22888                         ac_mid=`expr 2 '*' $ac_mid`
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892   done
22893 else
22894   echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         ac_lo= ac_hi=
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 # Binary search between lo and hi bounds.
22905 while test "x$ac_lo" != "x$ac_hi"; do
22906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22907   cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 $ac_includes_default
22914    typedef long ac__type_sizeof_;
22915 int
22916 main ()
22917 {
22918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22919 test_array [0] = 0
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932   (eval "$ac_compile") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_c_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest.$ac_objext; then
22942   ac_hi=$ac_mid
22943 else
22944   echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947         ac_lo=`expr '(' $ac_mid ')' + 1`
22948 fi
22949
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 done
22952 case $ac_lo in
22953 ?*) ac_cv_sizeof_long=$ac_lo;;
22954 '') if test "$ac_cv_type_long" = yes; then
22955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22956 See \`config.log' for more details." >&5
22957 echo "$as_me: error: cannot compute sizeof (long)
22958 See \`config.log' for more details." >&2;}
22959    { (exit 77); exit 77; }; }
22960    else
22961      ac_cv_sizeof_long=0
22962    fi ;;
22963 esac
22964 else
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 $ac_includes_default
22972    typedef long ac__type_sizeof_;
22973 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22974 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22975 #include <stdio.h>
22976 #include <stdlib.h>
22977 int
22978 main ()
22979 {
22980
22981   FILE *f = fopen ("conftest.val", "w");
22982   if (! f)
22983     return 1;
22984   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22985     {
22986       long int i = longval ();
22987       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22988         return 1;
22989       fprintf (f, "%ld\n", i);
22990     }
22991   else
22992     {
22993       unsigned long int i = ulongval ();
22994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22995         return 1;
22996       fprintf (f, "%lu\n", i);
22997     }
22998   return ferror (f) || fclose (f) != 0;
22999
23000   ;
23001   return 0;
23002 }
23003 _ACEOF
23004 rm -f conftest$ac_exeext
23005 if { (ac_try="$ac_link"
23006 case "(($ac_try" in
23007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008   *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011   (eval "$ac_link") 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23015   { (case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_try") 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; }; then
23024   ac_cv_sizeof_long=`cat conftest.val`
23025 else
23026   echo "$as_me: program exited with status $ac_status" >&5
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ( exit $ac_status )
23031 if test "$ac_cv_type_long" = yes; then
23032      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23033 See \`config.log' for more details." >&5
23034 echo "$as_me: error: cannot compute sizeof (long)
23035 See \`config.log' for more details." >&2;}
23036    { (exit 77); exit 77; }; }
23037    else
23038      ac_cv_sizeof_long=0
23039    fi
23040 fi
23041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23042 fi
23043 rm -f conftest.val
23044 fi
23045 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23046 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23047
23048
23049
23050 cat >>confdefs.h <<_ACEOF
23051 #define SIZEOF_LONG $ac_cv_sizeof_long
23052 _ACEOF
23053
23054
23055 { echo "$as_me:$LINENO: checking for size_t" >&5
23056 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23057 if test "${ac_cv_type_size_t+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 $ac_includes_default
23067 typedef size_t ac__type_new_;
23068 int
23069 main ()
23070 {
23071 if ((ac__type_new_ *) 0)
23072   return 0;
23073 if (sizeof (ac__type_new_))
23074   return 0;
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083   *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086   (eval "$ac_compile") 2>conftest.er1
23087   ac_status=$?
23088   grep -v '^ *+' conftest.er1 >conftest.err
23089   rm -f conftest.er1
23090   cat conftest.err >&5
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } && {
23093          test -z "$ac_c_werror_flag" ||
23094          test ! -s conftest.err
23095        } && test -s conftest.$ac_objext; then
23096   ac_cv_type_size_t=yes
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101         ac_cv_type_size_t=no
23102 fi
23103
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 fi
23106 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23107 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23108
23109 # The cast to long int works around a bug in the HP C Compiler
23110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23112 # This bug is HP SR number 8606223364.
23113 { echo "$as_me:$LINENO: checking size of size_t" >&5
23114 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23115 if test "${ac_cv_sizeof_size_t+set}" = set; then
23116   echo $ECHO_N "(cached) $ECHO_C" >&6
23117 else
23118   if test "$cross_compiling" = yes; then
23119   # Depending upon the size, compute the lo and hi bounds.
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 $ac_includes_default
23127    typedef size_t ac__type_sizeof_;
23128 int
23129 main ()
23130 {
23131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23132 test_array [0] = 0
23133
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext
23139 if { (ac_try="$ac_compile"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_compile") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } && {
23152          test -z "$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        } && test -s conftest.$ac_objext; then
23155   ac_lo=0 ac_mid=0
23156   while :; do
23157     cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163 $ac_includes_default
23164    typedef size_t ac__type_sizeof_;
23165 int
23166 main ()
23167 {
23168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23169 test_array [0] = 0
23170
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179   *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182   (eval "$ac_compile") 2>conftest.er1
23183   ac_status=$?
23184   grep -v '^ *+' conftest.er1 >conftest.err
23185   rm -f conftest.er1
23186   cat conftest.err >&5
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); } && {
23189          test -z "$ac_c_werror_flag" ||
23190          test ! -s conftest.err
23191        } && test -s conftest.$ac_objext; then
23192   ac_hi=$ac_mid; break
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197         ac_lo=`expr $ac_mid + 1`
23198                         if test $ac_lo -le $ac_mid; then
23199                           ac_lo= ac_hi=
23200                           break
23201                         fi
23202                         ac_mid=`expr 2 '*' $ac_mid + 1`
23203 fi
23204
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206   done
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211         cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h.  */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h.  */
23217 $ac_includes_default
23218    typedef size_t ac__type_sizeof_;
23219 int
23220 main ()
23221 {
23222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23223 test_array [0] = 0
23224
23225   ;
23226   return 0;
23227 }
23228 _ACEOF
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233   *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236   (eval "$ac_compile") 2>conftest.er1
23237   ac_status=$?
23238   grep -v '^ *+' conftest.er1 >conftest.err
23239   rm -f conftest.er1
23240   cat conftest.err >&5
23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242   (exit $ac_status); } && {
23243          test -z "$ac_c_werror_flag" ||
23244          test ! -s conftest.err
23245        } && test -s conftest.$ac_objext; then
23246   ac_hi=-1 ac_mid=-1
23247   while :; do
23248     cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255    typedef size_t ac__type_sizeof_;
23256 int
23257 main ()
23258 {
23259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23260 test_array [0] = 0
23261
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273   (eval "$ac_compile") 2>conftest.er1
23274   ac_status=$?
23275   grep -v '^ *+' conftest.er1 >conftest.err
23276   rm -f conftest.er1
23277   cat conftest.err >&5
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } && {
23280          test -z "$ac_c_werror_flag" ||
23281          test ! -s conftest.err
23282        } && test -s conftest.$ac_objext; then
23283   ac_lo=$ac_mid; break
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288         ac_hi=`expr '(' $ac_mid ')' - 1`
23289                         if test $ac_mid -le $ac_hi; then
23290                           ac_lo= ac_hi=
23291                           break
23292                         fi
23293                         ac_mid=`expr 2 '*' $ac_mid`
23294 fi
23295
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297   done
23298 else
23299   echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23301
23302         ac_lo= ac_hi=
23303 fi
23304
23305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23306 fi
23307
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 # Binary search between lo and hi bounds.
23310 while test "x$ac_lo" != "x$ac_hi"; do
23311   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23312   cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 $ac_includes_default
23319    typedef size_t ac__type_sizeof_;
23320 int
23321 main ()
23322 {
23323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23324 test_array [0] = 0
23325
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_compile") 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } && {
23344          test -z "$ac_c_werror_flag" ||
23345          test ! -s conftest.err
23346        } && test -s conftest.$ac_objext; then
23347   ac_hi=$ac_mid
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352         ac_lo=`expr '(' $ac_mid ')' + 1`
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 done
23357 case $ac_lo in
23358 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23359 '') if test "$ac_cv_type_size_t" = yes; then
23360      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23361 See \`config.log' for more details." >&5
23362 echo "$as_me: error: cannot compute sizeof (size_t)
23363 See \`config.log' for more details." >&2;}
23364    { (exit 77); exit 77; }; }
23365    else
23366      ac_cv_sizeof_size_t=0
23367    fi ;;
23368 esac
23369 else
23370   cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377    typedef size_t ac__type_sizeof_;
23378 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23379 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23380 #include <stdio.h>
23381 #include <stdlib.h>
23382 int
23383 main ()
23384 {
23385
23386   FILE *f = fopen ("conftest.val", "w");
23387   if (! f)
23388     return 1;
23389   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23390     {
23391       long int i = longval ();
23392       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23393         return 1;
23394       fprintf (f, "%ld\n", i);
23395     }
23396   else
23397     {
23398       unsigned long int i = ulongval ();
23399       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23400         return 1;
23401       fprintf (f, "%lu\n", i);
23402     }
23403   return ferror (f) || fclose (f) != 0;
23404
23405   ;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416   (eval "$ac_link") 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23420   { (case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425   (eval "$ac_try") 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; }; then
23429   ac_cv_sizeof_size_t=`cat conftest.val`
23430 else
23431   echo "$as_me: program exited with status $ac_status" >&5
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 ( exit $ac_status )
23436 if test "$ac_cv_type_size_t" = yes; then
23437      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23438 See \`config.log' for more details." >&5
23439 echo "$as_me: error: cannot compute sizeof (size_t)
23440 See \`config.log' for more details." >&2;}
23441    { (exit 77); exit 77; }; }
23442    else
23443      ac_cv_sizeof_size_t=0
23444    fi
23445 fi
23446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23447 fi
23448 rm -f conftest.val
23449 fi
23450 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23451 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23452
23453
23454
23455 cat >>confdefs.h <<_ACEOF
23456 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23457 _ACEOF
23458
23459
23460
23461 case "${host}" in
23462     arm-*-linux* )
23463         { echo "$as_me:$LINENO: checking for long long" >&5
23464 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23465 if test "${ac_cv_type_long_long+set}" = set; then
23466   echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468   cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474 $ac_includes_default
23475 typedef long long ac__type_new_;
23476 int
23477 main ()
23478 {
23479 if ((ac__type_new_ *) 0)
23480   return 0;
23481 if (sizeof (ac__type_new_))
23482   return 0;
23483   ;
23484   return 0;
23485 }
23486 _ACEOF
23487 rm -f conftest.$ac_objext
23488 if { (ac_try="$ac_compile"
23489 case "(($ac_try" in
23490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491   *) ac_try_echo=$ac_try;;
23492 esac
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494   (eval "$ac_compile") 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } && {
23501          test -z "$ac_c_werror_flag" ||
23502          test ! -s conftest.err
23503        } && test -s conftest.$ac_objext; then
23504   ac_cv_type_long_long=yes
23505 else
23506   echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509         ac_cv_type_long_long=no
23510 fi
23511
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513 fi
23514 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23515 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23516
23517 # The cast to long int works around a bug in the HP C Compiler
23518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23520 # This bug is HP SR number 8606223364.
23521 { echo "$as_me:$LINENO: checking size of long long" >&5
23522 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23523 if test "${ac_cv_sizeof_long_long+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   if test "$cross_compiling" = yes; then
23527   # Depending upon the size, compute the lo and hi bounds.
23528 cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534 $ac_includes_default
23535    typedef long long ac__type_sizeof_;
23536 int
23537 main ()
23538 {
23539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23540 test_array [0] = 0
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_c_werror_flag" ||
23561          test ! -s conftest.err
23562        } && test -s conftest.$ac_objext; then
23563   ac_lo=0 ac_mid=0
23564   while :; do
23565     cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h.  */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h.  */
23571 $ac_includes_default
23572    typedef long long ac__type_sizeof_;
23573 int
23574 main ()
23575 {
23576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23577 test_array [0] = 0
23578
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590   (eval "$ac_compile") 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } && {
23597          test -z "$ac_c_werror_flag" ||
23598          test ! -s conftest.err
23599        } && test -s conftest.$ac_objext; then
23600   ac_hi=$ac_mid; break
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605         ac_lo=`expr $ac_mid + 1`
23606                         if test $ac_lo -le $ac_mid; then
23607                           ac_lo= ac_hi=
23608                           break
23609                         fi
23610                         ac_mid=`expr 2 '*' $ac_mid + 1`
23611 fi
23612
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614   done
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619         cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625 $ac_includes_default
23626    typedef long long ac__type_sizeof_;
23627 int
23628 main ()
23629 {
23630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23631 test_array [0] = 0
23632
23633   ;
23634   return 0;
23635 }
23636 _ACEOF
23637 rm -f conftest.$ac_objext
23638 if { (ac_try="$ac_compile"
23639 case "(($ac_try" in
23640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641   *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644   (eval "$ac_compile") 2>conftest.er1
23645   ac_status=$?
23646   grep -v '^ *+' conftest.er1 >conftest.err
23647   rm -f conftest.er1
23648   cat conftest.err >&5
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } && {
23651          test -z "$ac_c_werror_flag" ||
23652          test ! -s conftest.err
23653        } && test -s conftest.$ac_objext; then
23654   ac_hi=-1 ac_mid=-1
23655   while :; do
23656     cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 $ac_includes_default
23663    typedef long long ac__type_sizeof_;
23664 int
23665 main ()
23666 {
23667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23668 test_array [0] = 0
23669
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext
23675 if { (ac_try="$ac_compile"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_compile") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && {
23688          test -z "$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        } && test -s conftest.$ac_objext; then
23691   ac_lo=$ac_mid; break
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696         ac_hi=`expr '(' $ac_mid ')' - 1`
23697                         if test $ac_mid -le $ac_hi; then
23698                           ac_lo= ac_hi=
23699                           break
23700                         fi
23701                         ac_mid=`expr 2 '*' $ac_mid`
23702 fi
23703
23704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705   done
23706 else
23707   echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710         ac_lo= ac_hi=
23711 fi
23712
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 fi
23715
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717 # Binary search between lo and hi bounds.
23718 while test "x$ac_lo" != "x$ac_hi"; do
23719   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23720   cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 $ac_includes_default
23727    typedef long long ac__type_sizeof_;
23728 int
23729 main ()
23730 {
23731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23732 test_array [0] = 0
23733
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext
23739 if { (ac_try="$ac_compile"
23740 case "(($ac_try" in
23741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742   *) ac_try_echo=$ac_try;;
23743 esac
23744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745   (eval "$ac_compile") 2>conftest.er1
23746   ac_status=$?
23747   grep -v '^ *+' conftest.er1 >conftest.err
23748   rm -f conftest.er1
23749   cat conftest.err >&5
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); } && {
23752          test -z "$ac_c_werror_flag" ||
23753          test ! -s conftest.err
23754        } && test -s conftest.$ac_objext; then
23755   ac_hi=$ac_mid
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760         ac_lo=`expr '(' $ac_mid ')' + 1`
23761 fi
23762
23763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23764 done
23765 case $ac_lo in
23766 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23767 '') if test "$ac_cv_type_long_long" = yes; then
23768      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23769 See \`config.log' for more details." >&5
23770 echo "$as_me: error: cannot compute sizeof (long long)
23771 See \`config.log' for more details." >&2;}
23772    { (exit 77); exit 77; }; }
23773    else
23774      ac_cv_sizeof_long_long=0
23775    fi ;;
23776 esac
23777 else
23778   cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784 $ac_includes_default
23785    typedef long long ac__type_sizeof_;
23786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23788 #include <stdio.h>
23789 #include <stdlib.h>
23790 int
23791 main ()
23792 {
23793
23794   FILE *f = fopen ("conftest.val", "w");
23795   if (! f)
23796     return 1;
23797   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23798     {
23799       long int i = longval ();
23800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23801         return 1;
23802       fprintf (f, "%ld\n", i);
23803     }
23804   else
23805     {
23806       unsigned long int i = ulongval ();
23807       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23808         return 1;
23809       fprintf (f, "%lu\n", i);
23810     }
23811   return ferror (f) || fclose (f) != 0;
23812
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821   *) ac_try_echo=$ac_try;;
23822 esac
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824   (eval "$ac_link") 2>&5
23825   ac_status=$?
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23828   { (case "(($ac_try" in
23829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830   *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833   (eval "$ac_try") 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; }; then
23837   ac_cv_sizeof_long_long=`cat conftest.val`
23838 else
23839   echo "$as_me: program exited with status $ac_status" >&5
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23842
23843 ( exit $ac_status )
23844 if test "$ac_cv_type_long_long" = yes; then
23845      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23846 See \`config.log' for more details." >&5
23847 echo "$as_me: error: cannot compute sizeof (long long)
23848 See \`config.log' for more details." >&2;}
23849    { (exit 77); exit 77; }; }
23850    else
23851      ac_cv_sizeof_long_long=0
23852    fi
23853 fi
23854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23855 fi
23856 rm -f conftest.val
23857 fi
23858 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23859 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23860
23861
23862
23863 cat >>confdefs.h <<_ACEOF
23864 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23865 _ACEOF
23866
23867
23868     ;;
23869     *-hp-hpux* )
23870         { echo "$as_me:$LINENO: checking for long long" >&5
23871 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23872 if test "${ac_cv_type_long_long+set}" = set; then
23873   echo $ECHO_N "(cached) $ECHO_C" >&6
23874 else
23875   cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881 $ac_includes_default
23882 typedef long long ac__type_new_;
23883 int
23884 main ()
23885 {
23886 if ((ac__type_new_ *) 0)
23887   return 0;
23888 if (sizeof (ac__type_new_))
23889   return 0;
23890   ;
23891   return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901   (eval "$ac_compile") 2>conftest.er1
23902   ac_status=$?
23903   grep -v '^ *+' conftest.er1 >conftest.err
23904   rm -f conftest.er1
23905   cat conftest.err >&5
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } && {
23908          test -z "$ac_c_werror_flag" ||
23909          test ! -s conftest.err
23910        } && test -s conftest.$ac_objext; then
23911   ac_cv_type_long_long=yes
23912 else
23913   echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916         ac_cv_type_long_long=no
23917 fi
23918
23919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 fi
23921 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23922 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23923
23924 # The cast to long int works around a bug in the HP C Compiler
23925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23927 # This bug is HP SR number 8606223364.
23928 { echo "$as_me:$LINENO: checking size of long long" >&5
23929 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23930 if test "${ac_cv_sizeof_long_long+set}" = set; then
23931   echo $ECHO_N "(cached) $ECHO_C" >&6
23932 else
23933   if test "$cross_compiling" = yes; then
23934   # Depending upon the size, compute the lo and hi bounds.
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941 $ac_includes_default
23942    typedef long long ac__type_sizeof_;
23943 int
23944 main ()
23945 {
23946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23947 test_array [0] = 0
23948
23949   ;
23950   return 0;
23951 }
23952 _ACEOF
23953 rm -f conftest.$ac_objext
23954 if { (ac_try="$ac_compile"
23955 case "(($ac_try" in
23956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957   *) ac_try_echo=$ac_try;;
23958 esac
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960   (eval "$ac_compile") 2>conftest.er1
23961   ac_status=$?
23962   grep -v '^ *+' conftest.er1 >conftest.err
23963   rm -f conftest.er1
23964   cat conftest.err >&5
23965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966   (exit $ac_status); } && {
23967          test -z "$ac_c_werror_flag" ||
23968          test ! -s conftest.err
23969        } && test -s conftest.$ac_objext; then
23970   ac_lo=0 ac_mid=0
23971   while :; do
23972     cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978 $ac_includes_default
23979    typedef long long ac__type_sizeof_;
23980 int
23981 main ()
23982 {
23983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23984 test_array [0] = 0
23985
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext
23991 if { (ac_try="$ac_compile"
23992 case "(($ac_try" in
23993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994   *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997   (eval "$ac_compile") 2>conftest.er1
23998   ac_status=$?
23999   grep -v '^ *+' conftest.er1 >conftest.err
24000   rm -f conftest.er1
24001   cat conftest.err >&5
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } && {
24004          test -z "$ac_c_werror_flag" ||
24005          test ! -s conftest.err
24006        } && test -s conftest.$ac_objext; then
24007   ac_hi=$ac_mid; break
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012         ac_lo=`expr $ac_mid + 1`
24013                         if test $ac_lo -le $ac_mid; then
24014                           ac_lo= ac_hi=
24015                           break
24016                         fi
24017                         ac_mid=`expr 2 '*' $ac_mid + 1`
24018 fi
24019
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24021   done
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026         cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h.  */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h.  */
24032 $ac_includes_default
24033    typedef long long ac__type_sizeof_;
24034 int
24035 main ()
24036 {
24037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24038 test_array [0] = 0
24039
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 rm -f conftest.$ac_objext
24045 if { (ac_try="$ac_compile"
24046 case "(($ac_try" in
24047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048   *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051   (eval "$ac_compile") 2>conftest.er1
24052   ac_status=$?
24053   grep -v '^ *+' conftest.er1 >conftest.err
24054   rm -f conftest.er1
24055   cat conftest.err >&5
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); } && {
24058          test -z "$ac_c_werror_flag" ||
24059          test ! -s conftest.err
24060        } && test -s conftest.$ac_objext; then
24061   ac_hi=-1 ac_mid=-1
24062   while :; do
24063     cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069 $ac_includes_default
24070    typedef long long ac__type_sizeof_;
24071 int
24072 main ()
24073 {
24074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24075 test_array [0] = 0
24076
24077   ;
24078   return 0;
24079 }
24080 _ACEOF
24081 rm -f conftest.$ac_objext
24082 if { (ac_try="$ac_compile"
24083 case "(($ac_try" in
24084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085   *) ac_try_echo=$ac_try;;
24086 esac
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088   (eval "$ac_compile") 2>conftest.er1
24089   ac_status=$?
24090   grep -v '^ *+' conftest.er1 >conftest.err
24091   rm -f conftest.er1
24092   cat conftest.err >&5
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); } && {
24095          test -z "$ac_c_werror_flag" ||
24096          test ! -s conftest.err
24097        } && test -s conftest.$ac_objext; then
24098   ac_lo=$ac_mid; break
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103         ac_hi=`expr '(' $ac_mid ')' - 1`
24104                         if test $ac_mid -le $ac_hi; then
24105                           ac_lo= ac_hi=
24106                           break
24107                         fi
24108                         ac_mid=`expr 2 '*' $ac_mid`
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112   done
24113 else
24114   echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24116
24117         ac_lo= ac_hi=
24118 fi
24119
24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124 # Binary search between lo and hi bounds.
24125 while test "x$ac_lo" != "x$ac_hi"; do
24126   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24127   cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 $ac_includes_default
24134    typedef long long ac__type_sizeof_;
24135 int
24136 main ()
24137 {
24138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24139 test_array [0] = 0
24140
24141   ;
24142   return 0;
24143 }
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152   (eval "$ac_compile") 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } && {
24159          test -z "$ac_c_werror_flag" ||
24160          test ! -s conftest.err
24161        } && test -s conftest.$ac_objext; then
24162   ac_hi=$ac_mid
24163 else
24164   echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24166
24167         ac_lo=`expr '(' $ac_mid ')' + 1`
24168 fi
24169
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 done
24172 case $ac_lo in
24173 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24174 '') if test "$ac_cv_type_long_long" = yes; then
24175      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24176 See \`config.log' for more details." >&5
24177 echo "$as_me: error: cannot compute sizeof (long long)
24178 See \`config.log' for more details." >&2;}
24179    { (exit 77); exit 77; }; }
24180    else
24181      ac_cv_sizeof_long_long=0
24182    fi ;;
24183 esac
24184 else
24185   cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191 $ac_includes_default
24192    typedef long long ac__type_sizeof_;
24193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24195 #include <stdio.h>
24196 #include <stdlib.h>
24197 int
24198 main ()
24199 {
24200
24201   FILE *f = fopen ("conftest.val", "w");
24202   if (! f)
24203     return 1;
24204   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24205     {
24206       long int i = longval ();
24207       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24208         return 1;
24209       fprintf (f, "%ld\n", i);
24210     }
24211   else
24212     {
24213       unsigned long int i = ulongval ();
24214       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24215         return 1;
24216       fprintf (f, "%lu\n", i);
24217     }
24218   return ferror (f) || fclose (f) != 0;
24219
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest$ac_exeext
24225 if { (ac_try="$ac_link"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_link") 2>&5
24232   ac_status=$?
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24235   { (case "(($ac_try" in
24236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237   *) ac_try_echo=$ac_try;;
24238 esac
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240   (eval "$ac_try") 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); }; }; then
24244   ac_cv_sizeof_long_long=`cat conftest.val`
24245 else
24246   echo "$as_me: program exited with status $ac_status" >&5
24247 echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250 ( exit $ac_status )
24251 if test "$ac_cv_type_long_long" = yes; then
24252      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24253 See \`config.log' for more details." >&5
24254 echo "$as_me: error: cannot compute sizeof (long long)
24255 See \`config.log' for more details." >&2;}
24256    { (exit 77); exit 77; }; }
24257    else
24258      ac_cv_sizeof_long_long=0
24259    fi
24260 fi
24261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24262 fi
24263 rm -f conftest.val
24264 fi
24265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24266 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24267
24268
24269
24270 cat >>confdefs.h <<_ACEOF
24271 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24272 _ACEOF
24273
24274
24275         if test "$ac_cv_sizeof_long_long" != "0"; then
24276                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24277         fi
24278     ;;
24279     * )
24280         { echo "$as_me:$LINENO: checking for long long" >&5
24281 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24282 if test "${ac_cv_type_long_long+set}" = set; then
24283   echo $ECHO_N "(cached) $ECHO_C" >&6
24284 else
24285   cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 $ac_includes_default
24292 typedef long long ac__type_new_;
24293 int
24294 main ()
24295 {
24296 if ((ac__type_new_ *) 0)
24297   return 0;
24298 if (sizeof (ac__type_new_))
24299   return 0;
24300   ;
24301   return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest.$ac_objext
24305 if { (ac_try="$ac_compile"
24306 case "(($ac_try" in
24307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308   *) ac_try_echo=$ac_try;;
24309 esac
24310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24311   (eval "$ac_compile") 2>conftest.er1
24312   ac_status=$?
24313   grep -v '^ *+' conftest.er1 >conftest.err
24314   rm -f conftest.er1
24315   cat conftest.err >&5
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); } && {
24318          test -z "$ac_c_werror_flag" ||
24319          test ! -s conftest.err
24320        } && test -s conftest.$ac_objext; then
24321   ac_cv_type_long_long=yes
24322 else
24323   echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24325
24326         ac_cv_type_long_long=no
24327 fi
24328
24329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24330 fi
24331 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24332 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24333
24334 # The cast to long int works around a bug in the HP C Compiler
24335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24337 # This bug is HP SR number 8606223364.
24338 { echo "$as_me:$LINENO: checking size of long long" >&5
24339 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24340 if test "${ac_cv_sizeof_long_long+set}" = set; then
24341   echo $ECHO_N "(cached) $ECHO_C" >&6
24342 else
24343   if test "$cross_compiling" = yes; then
24344   # Depending upon the size, compute the lo and hi bounds.
24345 cat >conftest.$ac_ext <<_ACEOF
24346 /* confdefs.h.  */
24347 _ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h.  */
24351 $ac_includes_default
24352    typedef long long ac__type_sizeof_;
24353 int
24354 main ()
24355 {
24356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24357 test_array [0] = 0
24358
24359   ;
24360   return 0;
24361 }
24362 _ACEOF
24363 rm -f conftest.$ac_objext
24364 if { (ac_try="$ac_compile"
24365 case "(($ac_try" in
24366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367   *) ac_try_echo=$ac_try;;
24368 esac
24369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24370   (eval "$ac_compile") 2>conftest.er1
24371   ac_status=$?
24372   grep -v '^ *+' conftest.er1 >conftest.err
24373   rm -f conftest.er1
24374   cat conftest.err >&5
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); } && {
24377          test -z "$ac_c_werror_flag" ||
24378          test ! -s conftest.err
24379        } && test -s conftest.$ac_objext; then
24380   ac_lo=0 ac_mid=0
24381   while :; do
24382     cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h.  */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h.  */
24388 $ac_includes_default
24389    typedef long long ac__type_sizeof_;
24390 int
24391 main ()
24392 {
24393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24394 test_array [0] = 0
24395
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_compile") 2>conftest.er1
24408   ac_status=$?
24409   grep -v '^ *+' conftest.er1 >conftest.err
24410   rm -f conftest.er1
24411   cat conftest.err >&5
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } && {
24414          test -z "$ac_c_werror_flag" ||
24415          test ! -s conftest.err
24416        } && test -s conftest.$ac_objext; then
24417   ac_hi=$ac_mid; break
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422         ac_lo=`expr $ac_mid + 1`
24423                         if test $ac_lo -le $ac_mid; then
24424                           ac_lo= ac_hi=
24425                           break
24426                         fi
24427                         ac_mid=`expr 2 '*' $ac_mid + 1`
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431   done
24432 else
24433   echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436         cat >conftest.$ac_ext <<_ACEOF
24437 /* confdefs.h.  */
24438 _ACEOF
24439 cat confdefs.h >>conftest.$ac_ext
24440 cat >>conftest.$ac_ext <<_ACEOF
24441 /* end confdefs.h.  */
24442 $ac_includes_default
24443    typedef long long ac__type_sizeof_;
24444 int
24445 main ()
24446 {
24447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24448 test_array [0] = 0
24449
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461   (eval "$ac_compile") 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } && {
24468          test -z "$ac_c_werror_flag" ||
24469          test ! -s conftest.err
24470        } && test -s conftest.$ac_objext; then
24471   ac_hi=-1 ac_mid=-1
24472   while :; do
24473     cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h.  */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h.  */
24479 $ac_includes_default
24480    typedef long long ac__type_sizeof_;
24481 int
24482 main ()
24483 {
24484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24485 test_array [0] = 0
24486
24487   ;
24488   return 0;
24489 }
24490 _ACEOF
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495   *) ac_try_echo=$ac_try;;
24496 esac
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498   (eval "$ac_compile") 2>conftest.er1
24499   ac_status=$?
24500   grep -v '^ *+' conftest.er1 >conftest.err
24501   rm -f conftest.er1
24502   cat conftest.err >&5
24503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504   (exit $ac_status); } && {
24505          test -z "$ac_c_werror_flag" ||
24506          test ! -s conftest.err
24507        } && test -s conftest.$ac_objext; then
24508   ac_lo=$ac_mid; break
24509 else
24510   echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513         ac_hi=`expr '(' $ac_mid ')' - 1`
24514                         if test $ac_mid -le $ac_hi; then
24515                           ac_lo= ac_hi=
24516                           break
24517                         fi
24518                         ac_mid=`expr 2 '*' $ac_mid`
24519 fi
24520
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522   done
24523 else
24524   echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527         ac_lo= ac_hi=
24528 fi
24529
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 fi
24532
24533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24534 # Binary search between lo and hi bounds.
24535 while test "x$ac_lo" != "x$ac_hi"; do
24536   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24537   cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543 $ac_includes_default
24544    typedef long long ac__type_sizeof_;
24545 int
24546 main ()
24547 {
24548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24549 test_array [0] = 0
24550
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext
24556 if { (ac_try="$ac_compile"
24557 case "(($ac_try" in
24558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559   *) ac_try_echo=$ac_try;;
24560 esac
24561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562   (eval "$ac_compile") 2>conftest.er1
24563   ac_status=$?
24564   grep -v '^ *+' conftest.er1 >conftest.err
24565   rm -f conftest.er1
24566   cat conftest.err >&5
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); } && {
24569          test -z "$ac_c_werror_flag" ||
24570          test ! -s conftest.err
24571        } && test -s conftest.$ac_objext; then
24572   ac_hi=$ac_mid
24573 else
24574   echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24576
24577         ac_lo=`expr '(' $ac_mid ')' + 1`
24578 fi
24579
24580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 done
24582 case $ac_lo in
24583 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24584 '') if test "$ac_cv_type_long_long" = yes; then
24585      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24586 See \`config.log' for more details." >&5
24587 echo "$as_me: error: cannot compute sizeof (long long)
24588 See \`config.log' for more details." >&2;}
24589    { (exit 77); exit 77; }; }
24590    else
24591      ac_cv_sizeof_long_long=0
24592    fi ;;
24593 esac
24594 else
24595   cat >conftest.$ac_ext <<_ACEOF
24596 /* confdefs.h.  */
24597 _ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h.  */
24601 $ac_includes_default
24602    typedef long long ac__type_sizeof_;
24603 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24604 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24605 #include <stdio.h>
24606 #include <stdlib.h>
24607 int
24608 main ()
24609 {
24610
24611   FILE *f = fopen ("conftest.val", "w");
24612   if (! f)
24613     return 1;
24614   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24615     {
24616       long int i = longval ();
24617       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24618         return 1;
24619       fprintf (f, "%ld\n", i);
24620     }
24621   else
24622     {
24623       unsigned long int i = ulongval ();
24624       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24625         return 1;
24626       fprintf (f, "%lu\n", i);
24627     }
24628   return ferror (f) || fclose (f) != 0;
24629
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_link") 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24645   { (case "(($ac_try" in
24646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647   *) ac_try_echo=$ac_try;;
24648 esac
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650   (eval "$ac_try") 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; }; then
24654   ac_cv_sizeof_long_long=`cat conftest.val`
24655 else
24656   echo "$as_me: program exited with status $ac_status" >&5
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660 ( exit $ac_status )
24661 if test "$ac_cv_type_long_long" = yes; then
24662      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24663 See \`config.log' for more details." >&5
24664 echo "$as_me: error: cannot compute sizeof (long long)
24665 See \`config.log' for more details." >&2;}
24666    { (exit 77); exit 77; }; }
24667    else
24668      ac_cv_sizeof_long_long=0
24669    fi
24670 fi
24671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24672 fi
24673 rm -f conftest.val
24674 fi
24675 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24676 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24677
24678
24679
24680 cat >>confdefs.h <<_ACEOF
24681 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24682 _ACEOF
24683
24684
24685 esac
24686
24687 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24688 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24689 if test "${ac_cv_type_wchar_t+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698
24699         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24700         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24701         #  error "fake wchar_t"
24702         #endif
24703         #ifdef HAVE_WCHAR_H
24704         #  ifdef __CYGWIN__
24705         #    include <stddef.h>
24706         #  endif
24707         #  include <wchar.h>
24708         #endif
24709         #ifdef HAVE_STDLIB_H
24710         #  include <stdlib.h>
24711         #endif
24712         #include <stdio.h>
24713
24714
24715
24716 typedef wchar_t ac__type_new_;
24717 int
24718 main ()
24719 {
24720 if ((ac__type_new_ *) 0)
24721   return 0;
24722 if (sizeof (ac__type_new_))
24723   return 0;
24724   ;
24725   return 0;
24726 }
24727 _ACEOF
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_compile") 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } && {
24742          test -z "$ac_c_werror_flag" ||
24743          test ! -s conftest.err
24744        } && test -s conftest.$ac_objext; then
24745   ac_cv_type_wchar_t=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750         ac_cv_type_wchar_t=no
24751 fi
24752
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24756 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24757
24758 # The cast to long int works around a bug in the HP C Compiler
24759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24761 # This bug is HP SR number 8606223364.
24762 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24763 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24764 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24765   echo $ECHO_N "(cached) $ECHO_C" >&6
24766 else
24767   if test "$cross_compiling" = yes; then
24768   # Depending upon the size, compute the lo and hi bounds.
24769 cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775
24776         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24777         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24778         #  error "fake wchar_t"
24779         #endif
24780         #ifdef HAVE_WCHAR_H
24781         #  ifdef __CYGWIN__
24782         #    include <stddef.h>
24783         #  endif
24784         #  include <wchar.h>
24785         #endif
24786         #ifdef HAVE_STDLIB_H
24787         #  include <stdlib.h>
24788         #endif
24789         #include <stdio.h>
24790
24791
24792
24793    typedef wchar_t ac__type_sizeof_;
24794 int
24795 main ()
24796 {
24797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24798 test_array [0] = 0
24799
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest.$ac_objext
24805 if { (ac_try="$ac_compile"
24806 case "(($ac_try" in
24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808   *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811   (eval "$ac_compile") 2>conftest.er1
24812   ac_status=$?
24813   grep -v '^ *+' conftest.er1 >conftest.err
24814   rm -f conftest.er1
24815   cat conftest.err >&5
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } && {
24818          test -z "$ac_c_werror_flag" ||
24819          test ! -s conftest.err
24820        } && test -s conftest.$ac_objext; then
24821   ac_lo=0 ac_mid=0
24822   while :; do
24823     cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24831         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24832         #  error "fake wchar_t"
24833         #endif
24834         #ifdef HAVE_WCHAR_H
24835         #  ifdef __CYGWIN__
24836         #    include <stddef.h>
24837         #  endif
24838         #  include <wchar.h>
24839         #endif
24840         #ifdef HAVE_STDLIB_H
24841         #  include <stdlib.h>
24842         #endif
24843         #include <stdio.h>
24844
24845
24846
24847    typedef wchar_t ac__type_sizeof_;
24848 int
24849 main ()
24850 {
24851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24852 test_array [0] = 0
24853
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_compile") 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } && {
24872          test -z "$ac_c_werror_flag" ||
24873          test ! -s conftest.err
24874        } && test -s conftest.$ac_objext; then
24875   ac_hi=$ac_mid; break
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         ac_lo=`expr $ac_mid + 1`
24881                         if test $ac_lo -le $ac_mid; then
24882                           ac_lo= ac_hi=
24883                           break
24884                         fi
24885                         ac_mid=`expr 2 '*' $ac_mid + 1`
24886 fi
24887
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889   done
24890 else
24891   echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894         cat >conftest.$ac_ext <<_ACEOF
24895 /* confdefs.h.  */
24896 _ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h.  */
24900
24901         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24902         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24903         #  error "fake wchar_t"
24904         #endif
24905         #ifdef HAVE_WCHAR_H
24906         #  ifdef __CYGWIN__
24907         #    include <stddef.h>
24908         #  endif
24909         #  include <wchar.h>
24910         #endif
24911         #ifdef HAVE_STDLIB_H
24912         #  include <stdlib.h>
24913         #endif
24914         #include <stdio.h>
24915
24916
24917
24918    typedef wchar_t ac__type_sizeof_;
24919 int
24920 main ()
24921 {
24922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24923 test_array [0] = 0
24924
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933   *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936   (eval "$ac_compile") 2>conftest.er1
24937   ac_status=$?
24938   grep -v '^ *+' conftest.er1 >conftest.err
24939   rm -f conftest.er1
24940   cat conftest.err >&5
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); } && {
24943          test -z "$ac_c_werror_flag" ||
24944          test ! -s conftest.err
24945        } && test -s conftest.$ac_objext; then
24946   ac_hi=-1 ac_mid=-1
24947   while :; do
24948     cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954
24955         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24956         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24957         #  error "fake wchar_t"
24958         #endif
24959         #ifdef HAVE_WCHAR_H
24960         #  ifdef __CYGWIN__
24961         #    include <stddef.h>
24962         #  endif
24963         #  include <wchar.h>
24964         #endif
24965         #ifdef HAVE_STDLIB_H
24966         #  include <stdlib.h>
24967         #endif
24968         #include <stdio.h>
24969
24970
24971
24972    typedef wchar_t ac__type_sizeof_;
24973 int
24974 main ()
24975 {
24976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24977 test_array [0] = 0
24978
24979   ;
24980   return 0;
24981 }
24982 _ACEOF
24983 rm -f conftest.$ac_objext
24984 if { (ac_try="$ac_compile"
24985 case "(($ac_try" in
24986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987   *) ac_try_echo=$ac_try;;
24988 esac
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990   (eval "$ac_compile") 2>conftest.er1
24991   ac_status=$?
24992   grep -v '^ *+' conftest.er1 >conftest.err
24993   rm -f conftest.er1
24994   cat conftest.err >&5
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } && {
24997          test -z "$ac_c_werror_flag" ||
24998          test ! -s conftest.err
24999        } && test -s conftest.$ac_objext; then
25000   ac_lo=$ac_mid; break
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005         ac_hi=`expr '(' $ac_mid ')' - 1`
25006                         if test $ac_mid -le $ac_hi; then
25007                           ac_lo= ac_hi=
25008                           break
25009                         fi
25010                         ac_mid=`expr 2 '*' $ac_mid`
25011 fi
25012
25013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014   done
25015 else
25016   echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25018
25019         ac_lo= ac_hi=
25020 fi
25021
25022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 # Binary search between lo and hi bounds.
25027 while test "x$ac_lo" != "x$ac_hi"; do
25028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25029   cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035
25036         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25037         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25038         #  error "fake wchar_t"
25039         #endif
25040         #ifdef HAVE_WCHAR_H
25041         #  ifdef __CYGWIN__
25042         #    include <stddef.h>
25043         #  endif
25044         #  include <wchar.h>
25045         #endif
25046         #ifdef HAVE_STDLIB_H
25047         #  include <stdlib.h>
25048         #endif
25049         #include <stdio.h>
25050
25051
25052
25053    typedef wchar_t ac__type_sizeof_;
25054 int
25055 main ()
25056 {
25057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25058 test_array [0] = 0
25059
25060   ;
25061   return 0;
25062 }
25063 _ACEOF
25064 rm -f conftest.$ac_objext
25065 if { (ac_try="$ac_compile"
25066 case "(($ac_try" in
25067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068   *) ac_try_echo=$ac_try;;
25069 esac
25070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25071   (eval "$ac_compile") 2>conftest.er1
25072   ac_status=$?
25073   grep -v '^ *+' conftest.er1 >conftest.err
25074   rm -f conftest.er1
25075   cat conftest.err >&5
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); } && {
25078          test -z "$ac_c_werror_flag" ||
25079          test ! -s conftest.err
25080        } && test -s conftest.$ac_objext; then
25081   ac_hi=$ac_mid
25082 else
25083   echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25085
25086         ac_lo=`expr '(' $ac_mid ')' + 1`
25087 fi
25088
25089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25090 done
25091 case $ac_lo in
25092 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25093 '') if test "$ac_cv_type_wchar_t" = yes; then
25094      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25095 See \`config.log' for more details." >&5
25096 echo "$as_me: error: cannot compute sizeof (wchar_t)
25097 See \`config.log' for more details." >&2;}
25098    { (exit 77); exit 77; }; }
25099    else
25100      ac_cv_sizeof_wchar_t=0
25101    fi ;;
25102 esac
25103 else
25104   cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110
25111         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25112         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25113         #  error "fake wchar_t"
25114         #endif
25115         #ifdef HAVE_WCHAR_H
25116         #  ifdef __CYGWIN__
25117         #    include <stddef.h>
25118         #  endif
25119         #  include <wchar.h>
25120         #endif
25121         #ifdef HAVE_STDLIB_H
25122         #  include <stdlib.h>
25123         #endif
25124         #include <stdio.h>
25125
25126
25127
25128    typedef wchar_t ac__type_sizeof_;
25129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25131 #include <stdio.h>
25132 #include <stdlib.h>
25133 int
25134 main ()
25135 {
25136
25137   FILE *f = fopen ("conftest.val", "w");
25138   if (! f)
25139     return 1;
25140   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25141     {
25142       long int i = longval ();
25143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25144         return 1;
25145       fprintf (f, "%ld\n", i);
25146     }
25147   else
25148     {
25149       unsigned long int i = ulongval ();
25150       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25151         return 1;
25152       fprintf (f, "%lu\n", i);
25153     }
25154   return ferror (f) || fclose (f) != 0;
25155
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 rm -f conftest$ac_exeext
25161 if { (ac_try="$ac_link"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167   (eval "$ac_link") 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25171   { (case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176   (eval "$ac_try") 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   ac_cv_sizeof_wchar_t=`cat conftest.val`
25181 else
25182   echo "$as_me: program exited with status $ac_status" >&5
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186 ( exit $ac_status )
25187 if test "$ac_cv_type_wchar_t" = yes; then
25188      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25189 See \`config.log' for more details." >&5
25190 echo "$as_me: error: cannot compute sizeof (wchar_t)
25191 See \`config.log' for more details." >&2;}
25192    { (exit 77); exit 77; }; }
25193    else
25194      ac_cv_sizeof_wchar_t=0
25195    fi
25196 fi
25197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25198 fi
25199 rm -f conftest.val
25200 fi
25201 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25202 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25203
25204
25205
25206 cat >>confdefs.h <<_ACEOF
25207 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25208 _ACEOF
25209
25210
25211 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25212     wxUSE_WCHAR_T=yes
25213 else
25214     wxUSE_WCHAR_T=no
25215 fi
25216
25217 { echo "$as_me:$LINENO: checking for va_copy" >&5
25218 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25219 if test "${wx_cv_func_va_copy+set}" = set; then
25220   echo $ECHO_N "(cached) $ECHO_C" >&6
25221 else
25222
25223         ac_ext=cpp
25224 ac_cpp='$CXXCPP $CPPFLAGS'
25225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25228
25229         cat >conftest.$ac_ext <<_ACEOF
25230
25231             #include <stdarg.h>
25232             void foo(char *f, ...)
25233             {
25234                 va_list ap1, ap2;
25235                 va_start(ap1, f);
25236                 va_copy(ap2, ap1);
25237                 va_end(ap2);
25238                 va_end(ap1);
25239             }
25240             int main()
25241             {
25242                 foo("hi", 17);
25243                 return 0;
25244             }
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (ac_try="$ac_link"
25248 case "(($ac_try" in
25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250   *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253   (eval "$ac_link") 2>conftest.er1
25254   ac_status=$?
25255   grep -v '^ *+' conftest.er1 >conftest.err
25256   rm -f conftest.er1
25257   cat conftest.err >&5
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); } && {
25260          test -z "$ac_cxx_werror_flag" ||
25261          test ! -s conftest.err
25262        } && test -s conftest$ac_exeext &&
25263        $as_test_x conftest$ac_exeext; then
25264   wx_cv_func_va_copy=yes
25265 else
25266   echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25268
25269         wx_cv_func_va_copy=no
25270
25271 fi
25272
25273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25274       conftest$ac_exeext conftest.$ac_ext
25275         ac_ext=c
25276 ac_cpp='$CPP $CPPFLAGS'
25277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25280
25281
25282
25283 fi
25284 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25285 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25286
25287 if test $wx_cv_func_va_copy = "yes"; then
25288     cat >>confdefs.h <<\_ACEOF
25289 #define HAVE_VA_COPY 1
25290 _ACEOF
25291
25292 else
25293         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25294 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25295 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25296   echo $ECHO_N "(cached) $ECHO_C" >&6
25297 else
25298
25299             if test "$cross_compiling" = yes; then
25300                   wx_cv_type_va_list_lvalue=yes
25301
25302 else
25303   cat >conftest.$ac_ext <<_ACEOF
25304
25305                 #include <stdarg.h>
25306                 int foo(char *f, ...)
25307                 {
25308                     va_list ap1, ap2;
25309                     va_start(ap1, f);
25310                     ap2 = ap1;
25311                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25312                         return 1;
25313                     va_end(ap2);
25314                     va_end(ap1);
25315                     return 0;
25316                 }
25317                 int main()
25318                 {
25319                     return foo("hi", 17);
25320                 }
25321 _ACEOF
25322 rm -f conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326   *) ac_try_echo=$ac_try;;
25327 esac
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329   (eval "$ac_link") 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_try") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; }; then
25342   wx_cv_type_va_list_lvalue=yes
25343 else
25344   echo "$as_me: program exited with status $ac_status" >&5
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348 ( exit $ac_status )
25349 wx_cv_type_va_list_lvalue=no
25350 fi
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25352 fi
25353
25354
25355
25356
25357 fi
25358 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25359 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25360
25361     if test $wx_cv_type_va_list_lvalue != "yes"; then
25362                         cat >>confdefs.h <<\_ACEOF
25363 #define VA_LIST_IS_ARRAY 1
25364 _ACEOF
25365
25366     fi
25367 fi
25368
25369 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25370
25371 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25372 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25373 if test "${wx_cv_have_variadic_macros+set}" = set; then
25374   echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376
25377                         ac_ext=cpp
25378 ac_cpp='$CXXCPP $CPPFLAGS'
25379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25382
25383         cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h.  */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h.  */
25389
25390                     #include <stdio.h>
25391                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25392
25393 int
25394 main ()
25395 {
25396
25397                     test("%s %d %p", "test", 1, 0);
25398
25399
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest.$ac_objext
25405 if { (ac_try="$ac_compile"
25406 case "(($ac_try" in
25407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408   *) ac_try_echo=$ac_try;;
25409 esac
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411   (eval "$ac_compile") 2>conftest.er1
25412   ac_status=$?
25413   grep -v '^ *+' conftest.er1 >conftest.err
25414   rm -f conftest.er1
25415   cat conftest.err >&5
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); } && {
25418          test -z "$ac_cxx_werror_flag" ||
25419          test ! -s conftest.err
25420        } && test -s conftest.$ac_objext; then
25421   wx_cv_have_variadic_macros=yes
25422 else
25423   echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426         wx_cv_have_variadic_macros=no
25427
25428 fi
25429
25430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431         ac_ext=c
25432 ac_cpp='$CPP $CPPFLAGS'
25433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25436
25437
25438
25439 fi
25440 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25441 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25442
25443 if test $wx_cv_have_variadic_macros = "yes"; then
25444     cat >>confdefs.h <<\_ACEOF
25445 #define HAVE_VARIADIC_MACROS 1
25446 _ACEOF
25447
25448 fi
25449
25450 fi
25451 # Check whether --enable-largefile was given.
25452 if test "${enable_largefile+set}" = set; then
25453   enableval=$enable_largefile;
25454 fi
25455
25456 if test "$enable_largefile" != no; then
25457             wx_largefile=no
25458
25459     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25460 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25461 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464
25465           cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 #define _FILE_OFFSET_BITS 64
25472                           #include <sys/types.h>
25473 int
25474 main ()
25475 {
25476 typedef struct {
25477     unsigned int field: sizeof(off_t) == 8;
25478 } wxlf;
25479
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_compile") 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } && {
25498          test -z "$ac_c_werror_flag" ||
25499          test ! -s conftest.err
25500        } && test -s conftest.$ac_objext; then
25501   ac_cv_sys_file_offset_bits=64
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506         ac_cv_sys_file_offset_bits=no
25507 fi
25508
25509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510
25511
25512 fi
25513 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25514 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25515
25516     if test "$ac_cv_sys_file_offset_bits" != no; then
25517         wx_largefile=yes
25518         cat >>confdefs.h <<_ACEOF
25519 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25520 _ACEOF
25521
25522     fi
25523
25524     if test "x$wx_largefile" != "xyes"; then
25525
25526     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25527 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25528 if test "${ac_cv_sys_large_files+set}" = set; then
25529   echo $ECHO_N "(cached) $ECHO_C" >&6
25530 else
25531
25532           cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h.  */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h.  */
25538 #define _LARGE_FILES 1
25539                           #include <sys/types.h>
25540 int
25541 main ()
25542 {
25543 typedef struct {
25544     unsigned int field: sizeof(off_t) == 8;
25545 } wxlf;
25546
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 rm -f conftest.$ac_objext
25552 if { (ac_try="$ac_compile"
25553 case "(($ac_try" in
25554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555   *) ac_try_echo=$ac_try;;
25556 esac
25557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25558   (eval "$ac_compile") 2>conftest.er1
25559   ac_status=$?
25560   grep -v '^ *+' conftest.er1 >conftest.err
25561   rm -f conftest.er1
25562   cat conftest.err >&5
25563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564   (exit $ac_status); } && {
25565          test -z "$ac_c_werror_flag" ||
25566          test ! -s conftest.err
25567        } && test -s conftest.$ac_objext; then
25568   ac_cv_sys_large_files=1
25569 else
25570   echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573         ac_cv_sys_large_files=no
25574 fi
25575
25576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577
25578
25579 fi
25580 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25581 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25582
25583     if test "$ac_cv_sys_large_files" != no; then
25584         wx_largefile=yes
25585         cat >>confdefs.h <<_ACEOF
25586 #define _LARGE_FILES $ac_cv_sys_large_files
25587 _ACEOF
25588
25589     fi
25590
25591     fi
25592
25593     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25594 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25595     if test "x$wx_largefile" = "xyes"; then
25596         cat >>confdefs.h <<\_ACEOF
25597 #define HAVE_LARGEFILE_SUPPORT 1
25598 _ACEOF
25599
25600     fi
25601     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25602 echo "${ECHO_T}$wx_largefile" >&6; }
25603 fi
25604
25605
25606 if test "x$wx_largefile" = "xyes"; then
25607     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25608         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25609
25610                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25611             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25612 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25613 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25614   echo $ECHO_N "(cached) $ECHO_C" >&6
25615 else
25616
25617                     ac_ext=cpp
25618 ac_cpp='$CXXCPP $CPPFLAGS'
25619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25622
25623                     cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h.  */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h.  */
25629
25630 int
25631 main ()
25632 {
25633
25634                             #ifndef __STDC_EXT__
25635                                 choke me
25636                             #endif
25637
25638   ;
25639   return 0;
25640 }
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646   *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649   (eval "$ac_compile") 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } && {
25656          test -z "$ac_cxx_werror_flag" ||
25657          test ! -s conftest.err
25658        } && test -s conftest.$ac_objext; then
25659   wx_cv_STDC_EXT_required=no
25660 else
25661   echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664         wx_cv_STDC_EXT_required=yes
25665
25666 fi
25667
25668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669                     ac_ext=c
25670 ac_cpp='$CPP $CPPFLAGS'
25671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25674
25675
25676
25677 fi
25678 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25679 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25680             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25681                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25682             fi
25683         fi
25684     else
25685         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
25686     fi
25687         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25688 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25689 if test "${ac_cv_sys_largefile_source+set}" = set; then
25690   echo $ECHO_N "(cached) $ECHO_C" >&6
25691 else
25692   while :; do
25693   cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 #include <sys/types.h> /* for off_t */
25700      #include <stdio.h>
25701 int
25702 main ()
25703 {
25704 int (*fp) (FILE *, off_t, int) = fseeko;
25705      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (ac_try="$ac_link"
25712 case "(($ac_try" in
25713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714   *) ac_try_echo=$ac_try;;
25715 esac
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717   (eval "$ac_link") 2>conftest.er1
25718   ac_status=$?
25719   grep -v '^ *+' conftest.er1 >conftest.err
25720   rm -f conftest.er1
25721   cat conftest.err >&5
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); } && {
25724          test -z "$ac_c_werror_flag" ||
25725          test ! -s conftest.err
25726        } && test -s conftest$ac_exeext &&
25727        $as_test_x conftest$ac_exeext; then
25728   ac_cv_sys_largefile_source=no; break
25729 else
25730   echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733
25734 fi
25735
25736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25737       conftest$ac_exeext conftest.$ac_ext
25738   cat >conftest.$ac_ext <<_ACEOF
25739 /* confdefs.h.  */
25740 _ACEOF
25741 cat confdefs.h >>conftest.$ac_ext
25742 cat >>conftest.$ac_ext <<_ACEOF
25743 /* end confdefs.h.  */
25744 #define _LARGEFILE_SOURCE 1
25745 #include <sys/types.h> /* for off_t */
25746      #include <stdio.h>
25747 int
25748 main ()
25749 {
25750 int (*fp) (FILE *, off_t, int) = fseeko;
25751      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25752   ;
25753   return 0;
25754 }
25755 _ACEOF
25756 rm -f conftest.$ac_objext conftest$ac_exeext
25757 if { (ac_try="$ac_link"
25758 case "(($ac_try" in
25759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760   *) ac_try_echo=$ac_try;;
25761 esac
25762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25763   (eval "$ac_link") 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } && {
25770          test -z "$ac_c_werror_flag" ||
25771          test ! -s conftest.err
25772        } && test -s conftest$ac_exeext &&
25773        $as_test_x conftest$ac_exeext; then
25774   ac_cv_sys_largefile_source=1; break
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25783       conftest$ac_exeext conftest.$ac_ext
25784   ac_cv_sys_largefile_source=unknown
25785   break
25786 done
25787 fi
25788 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25789 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25790 case $ac_cv_sys_largefile_source in #(
25791   no | unknown) ;;
25792   *)
25793 cat >>confdefs.h <<_ACEOF
25794 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25795 _ACEOF
25796 ;;
25797 esac
25798 rm -f conftest*
25799
25800 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25801 # in glibc 2.1.3, but that breaks too many other things.
25802 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25803 if test $ac_cv_sys_largefile_source != unknown; then
25804
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_FSEEKO 1
25807 _ACEOF
25808
25809 fi
25810
25811     if test "$ac_cv_sys_largefile_source" != no; then
25812         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25813     fi
25814 fi
25815
25816 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25817 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25818 if test "${ac_cv_c_bigendian+set}" = set; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   ac_cv_c_bigendian=unknown
25822 # See if sys/param.h defines the BYTE_ORDER macro.
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829 #include <sys/types.h>
25830 #include <sys/param.h>
25831 int
25832 main ()
25833 {
25834
25835 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25836  bogus endian macros
25837 #endif
25838   ;
25839   return 0;
25840 }
25841 _ACEOF
25842 rm -f conftest.$ac_objext
25843 if { (ac_try="$ac_compile"
25844 case "(($ac_try" in
25845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846   *) ac_try_echo=$ac_try;;
25847 esac
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849   (eval "$ac_compile") 2>conftest.er1
25850   ac_status=$?
25851   grep -v '^ *+' conftest.er1 >conftest.err
25852   rm -f conftest.er1
25853   cat conftest.err >&5
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); } && {
25856          test -z "$ac_c_werror_flag" ||
25857          test ! -s conftest.err
25858        } && test -s conftest.$ac_objext; then
25859   # It does; now see whether it defined to BIG_ENDIAN or not.
25860 cat >conftest.$ac_ext <<_ACEOF
25861 /* confdefs.h.  */
25862 _ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h.  */
25866 #include <sys/types.h>
25867 #include <sys/param.h>
25868 int
25869 main ()
25870 {
25871
25872 #if BYTE_ORDER != BIG_ENDIAN
25873  not big endian
25874 #endif
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 rm -f conftest.$ac_objext
25880 if { (ac_try="$ac_compile"
25881 case "(($ac_try" in
25882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25883   *) ac_try_echo=$ac_try;;
25884 esac
25885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25886   (eval "$ac_compile") 2>conftest.er1
25887   ac_status=$?
25888   grep -v '^ *+' conftest.er1 >conftest.err
25889   rm -f conftest.er1
25890   cat conftest.err >&5
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } && {
25893          test -z "$ac_c_werror_flag" ||
25894          test ! -s conftest.err
25895        } && test -s conftest.$ac_objext; then
25896   ac_cv_c_bigendian=yes
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901         ac_cv_c_bigendian=no
25902 fi
25903
25904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25905 else
25906   echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25908
25909
25910 fi
25911
25912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913 if test $ac_cv_c_bigendian = unknown; then
25914 if test "$cross_compiling" = yes; then
25915   ac_cv_c_bigendian=unknown
25916 else
25917   cat >conftest.$ac_ext <<_ACEOF
25918 /* confdefs.h.  */
25919 _ACEOF
25920 cat confdefs.h >>conftest.$ac_ext
25921 cat >>conftest.$ac_ext <<_ACEOF
25922 /* end confdefs.h.  */
25923 main () {
25924   /* Are we little or big endian?  From Harbison&Steele.  */
25925   union
25926   {
25927     long l;
25928     char c[sizeof (long)];
25929   } u;
25930   u.l = 1;
25931   exit (u.c[sizeof (long) - 1] == 1);
25932 }
25933 _ACEOF
25934 rm -f conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_link") 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25945   { (case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_try") 2>&5
25951   ac_status=$?
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); }; }; then
25954   ac_cv_c_bigendian=no
25955 else
25956   echo "$as_me: program exited with status $ac_status" >&5
25957 echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25959
25960 ( exit $ac_status )
25961 ac_cv_c_bigendian=yes
25962 fi
25963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25964 fi
25965
25966
25967 fi
25968 fi
25969 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25970 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25971 if test $ac_cv_c_bigendian = unknown; then
25972   { 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
25973 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;}
25974 fi
25975 if test $ac_cv_c_bigendian = yes; then
25976   cat >>confdefs.h <<\_ACEOF
25977 #define WORDS_BIGENDIAN 1
25978 _ACEOF
25979
25980 fi
25981
25982
25983
25984
25985     ac_ext=cpp
25986 ac_cpp='$CXXCPP $CPPFLAGS'
25987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25990
25991
25992     { echo "$as_me:$LINENO: checking for iostream" >&5
25993 echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
25994 if test "${ac_cv_header_iostream+set}" = set; then
25995   echo $ECHO_N "(cached) $ECHO_C" >&6
25996 else
25997   cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h.  */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h.  */
26003
26004
26005 #include <iostream>
26006 _ACEOF
26007 rm -f conftest.$ac_objext
26008 if { (ac_try="$ac_compile"
26009 case "(($ac_try" in
26010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011   *) ac_try_echo=$ac_try;;
26012 esac
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014   (eval "$ac_compile") 2>conftest.er1
26015   ac_status=$?
26016   grep -v '^ *+' conftest.er1 >conftest.err
26017   rm -f conftest.er1
26018   cat conftest.err >&5
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } && {
26021          test -z "$ac_cxx_werror_flag" ||
26022          test ! -s conftest.err
26023        } && test -s conftest.$ac_objext; then
26024   ac_cv_header_iostream=yes
26025 else
26026   echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26028
26029         ac_cv_header_iostream=no
26030 fi
26031
26032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26033 fi
26034 { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
26035 echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
26036
26037
26038
26039     if test "$ac_cv_header_iostream" = "yes" ; then
26040       :
26041     else
26042       cat >>confdefs.h <<\_ACEOF
26043 #define wxUSE_IOSTREAMH 1
26044 _ACEOF
26045
26046     fi
26047
26048     ac_ext=c
26049 ac_cpp='$CPP $CPPFLAGS'
26050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26053
26054
26055
26056
26057   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26058 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26059 if test "${wx_cv_cpp_bool+set}" = set; then
26060   echo $ECHO_N "(cached) $ECHO_C" >&6
26061 else
26062
26063
26064     ac_ext=cpp
26065 ac_cpp='$CXXCPP $CPPFLAGS'
26066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26069
26070
26071     cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077
26078
26079 int
26080 main ()
26081 {
26082
26083         bool b = true;
26084
26085         return 0;
26086
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (ac_try="$ac_compile"
26093 case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098   (eval "$ac_compile") 2>conftest.er1
26099   ac_status=$?
26100   grep -v '^ *+' conftest.er1 >conftest.err
26101   rm -f conftest.er1
26102   cat conftest.err >&5
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); } && {
26105          test -z "$ac_cxx_werror_flag" ||
26106          test ! -s conftest.err
26107        } && test -s conftest.$ac_objext; then
26108
26109         wx_cv_cpp_bool=yes
26110
26111 else
26112   echo "$as_me: failed program was:" >&5
26113 sed 's/^/| /' conftest.$ac_ext >&5
26114
26115
26116         wx_cv_cpp_bool=no
26117
26118
26119 fi
26120
26121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122
26123     ac_ext=c
26124 ac_cpp='$CPP $CPPFLAGS'
26125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26128
26129
26130 fi
26131 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26132 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26133
26134   if test "$wx_cv_cpp_bool" = "yes"; then
26135     cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_BOOL 1
26137 _ACEOF
26138
26139   fi
26140
26141
26142
26143   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26144 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26145 if test "${wx_cv_explicit+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148
26149
26150     ac_ext=cpp
26151 ac_cpp='$CXXCPP $CPPFLAGS'
26152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26155
26156
26157             cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163
26164         class Foo { public: explicit Foo(int) {} };
26165
26166 int
26167 main ()
26168 {
26169
26170         return 0;
26171
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 rm -f conftest.$ac_objext
26177 if { (ac_try="$ac_compile"
26178 case "(($ac_try" in
26179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180   *) ac_try_echo=$ac_try;;
26181 esac
26182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183   (eval "$ac_compile") 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } && {
26190          test -z "$ac_cxx_werror_flag" ||
26191          test ! -s conftest.err
26192        } && test -s conftest.$ac_objext; then
26193
26194         cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200
26201                 class Foo { public: explicit Foo(int) {} };
26202                 static void TakeFoo(const Foo& foo) { }
26203
26204 int
26205 main ()
26206 {
26207
26208                 TakeFoo(17);
26209                 return 0;
26210
26211   ;
26212   return 0;
26213 }
26214 _ACEOF
26215 rm -f conftest.$ac_objext
26216 if { (ac_try="$ac_compile"
26217 case "(($ac_try" in
26218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219   *) ac_try_echo=$ac_try;;
26220 esac
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222   (eval "$ac_compile") 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } && {
26229          test -z "$ac_cxx_werror_flag" ||
26230          test ! -s conftest.err
26231        } && test -s conftest.$ac_objext; then
26232   wx_cv_explicit=no
26233 else
26234   echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26236
26237         wx_cv_explicit=yes
26238
26239 fi
26240
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242
26243 else
26244   echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247         wx_cv_explicit=no
26248
26249 fi
26250
26251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252
26253     ac_ext=c
26254 ac_cpp='$CPP $CPPFLAGS'
26255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26258
26259
26260 fi
26261 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26262 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26263
26264   if test "$wx_cv_explicit" = "yes"; then
26265     cat >>confdefs.h <<\_ACEOF
26266 #define HAVE_EXPLICIT 1
26267 _ACEOF
26268
26269   fi
26270
26271
26272 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26273 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26274 if test "${ac_cv_cxx_const_cast+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277
26278  ac_ext=cpp
26279 ac_cpp='$CXXCPP $CPPFLAGS'
26280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26283
26284  cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290
26291 int
26292 main ()
26293 {
26294 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26295   ;
26296   return 0;
26297 }
26298 _ACEOF
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306   (eval "$ac_compile") 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } && {
26313          test -z "$ac_cxx_werror_flag" ||
26314          test ! -s conftest.err
26315        } && test -s conftest.$ac_objext; then
26316   ac_cv_cxx_const_cast=yes
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321         ac_cv_cxx_const_cast=no
26322 fi
26323
26324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26325  ac_ext=c
26326 ac_cpp='$CPP $CPPFLAGS'
26327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26330
26331
26332 fi
26333 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26334 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26335 if test "$ac_cv_cxx_const_cast" = yes; then
26336
26337 cat >>confdefs.h <<\_ACEOF
26338 #define HAVE_CONST_CAST
26339 _ACEOF
26340
26341 fi
26342
26343 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26344 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26345 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348
26349  ac_ext=cpp
26350 ac_cpp='$CXXCPP $CPPFLAGS'
26351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26354
26355  cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h.  */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h.  */
26361 #include <typeinfo>
26362 class Base { public : Base () {} virtual void f () = 0;};
26363 class Derived : public Base { public : Derived () {} virtual void f () {} };
26364 class Unrelated { public : Unrelated () {} };
26365 int g (Unrelated&) { return 0; }
26366 int
26367 main ()
26368 {
26369
26370 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382   (eval "$ac_compile") 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } && {
26389          test -z "$ac_cxx_werror_flag" ||
26390          test ! -s conftest.err
26391        } && test -s conftest.$ac_objext; then
26392   ac_cv_cxx_reinterpret_cast=yes
26393 else
26394   echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26396
26397         ac_cv_cxx_reinterpret_cast=no
26398 fi
26399
26400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26401  ac_ext=c
26402 ac_cpp='$CPP $CPPFLAGS'
26403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26406
26407
26408 fi
26409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26410 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26411 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26412
26413 cat >>confdefs.h <<\_ACEOF
26414 #define HAVE_REINTERPRET_CAST
26415 _ACEOF
26416
26417 fi
26418
26419 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26420 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26421 if test "${ac_cv_cxx_static_cast+set}" = set; then
26422   echo $ECHO_N "(cached) $ECHO_C" >&6
26423 else
26424
26425  ac_ext=cpp
26426 ac_cpp='$CXXCPP $CPPFLAGS'
26427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26430
26431  cat >conftest.$ac_ext <<_ACEOF
26432 /* confdefs.h.  */
26433 _ACEOF
26434 cat confdefs.h >>conftest.$ac_ext
26435 cat >>conftest.$ac_ext <<_ACEOF
26436 /* end confdefs.h.  */
26437 #include <typeinfo>
26438 class Base { public : Base () {} virtual void f () = 0; };
26439 class Derived : public Base { public : Derived () {} virtual void f () {} };
26440 int g (Derived&) { return 0; }
26441 int
26442 main ()
26443 {
26444
26445 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext
26451 if { (ac_try="$ac_compile"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_compile") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_cxx_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest.$ac_objext; then
26467   ac_cv_cxx_static_cast=yes
26468 else
26469   echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472         ac_cv_cxx_static_cast=no
26473 fi
26474
26475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26476  ac_ext=c
26477 ac_cpp='$CPP $CPPFLAGS'
26478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26481
26482
26483 fi
26484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26485 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26486 if test "$ac_cv_cxx_static_cast" = yes; then
26487
26488 cat >>confdefs.h <<\_ACEOF
26489 #define HAVE_STATIC_CAST
26490 _ACEOF
26491
26492 fi
26493
26494
26495 if test "x$SUNCXX" = xyes; then
26496     CXXFLAGS="-features=tmplife $CXXFLAGS"
26497 fi
26498
26499 if test "x$SUNCC" = xyes; then
26500     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26501 fi
26502
26503 if test "x$SGICC" = "xyes"; then
26504     CFLAGS="-woff 3970 $CFLAGS"
26505 fi
26506 if test "x$SGICXX" = "xyes"; then
26507     CXXFLAGS="-woff 3970 $CXXFLAGS"
26508 fi
26509
26510 if test "x$HPCC" = "xyes"; then
26511                     CFLAGS="+W 2011,2450 $CFLAGS"
26512 fi
26513 if test "x$HPCXX" = "xyes"; then
26514             CXXFLAGS="+W 2340 $CXXFLAGS"
26515 fi
26516
26517 if test "x$COMPAQCXX" = "xyes"; then
26518                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26519 fi
26520
26521 ac_ext=cpp
26522 ac_cpp='$CXXCPP $CPPFLAGS'
26523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26526
26527
26528 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26529     if test "$wxUSE_UNICODE" = "yes"; then
26530         std_string="std::wstring"
26531         char_type="wchar_t"
26532     else
26533         std_string="std::string"
26534         char_type="char"
26535     fi
26536
26537         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26538 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26539 if test "${wx_cv_class_stdstring+set}" = set; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542
26543             cat >conftest.$ac_ext <<_ACEOF
26544 /* confdefs.h.  */
26545 _ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h.  */
26549 #include <string>
26550 int
26551 main ()
26552 {
26553 $std_string foo;
26554   ;
26555   return 0;
26556 }
26557 _ACEOF
26558 rm -f conftest.$ac_objext
26559 if { (ac_try="$ac_compile"
26560 case "(($ac_try" in
26561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562   *) ac_try_echo=$ac_try;;
26563 esac
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565   (eval "$ac_compile") 2>conftest.er1
26566   ac_status=$?
26567   grep -v '^ *+' conftest.er1 >conftest.err
26568   rm -f conftest.er1
26569   cat conftest.err >&5
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); } && {
26572          test -z "$ac_cxx_werror_flag" ||
26573          test ! -s conftest.err
26574        } && test -s conftest.$ac_objext; then
26575   wx_cv_class_stdstring=yes
26576 else
26577   echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26579
26580         wx_cv_class_stdstring=no
26581
26582 fi
26583
26584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26585
26586
26587 fi
26588 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26589 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26590
26591     if test "$wx_cv_class_stdstring" = yes; then
26592         if test "$wxUSE_UNICODE" = "yes"; then
26593             cat >>confdefs.h <<\_ACEOF
26594 #define HAVE_STD_WSTRING 1
26595 _ACEOF
26596
26597         fi
26598                     else
26599         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26600 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26601 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26602   echo $ECHO_N "(cached) $ECHO_C" >&6
26603 else
26604
26605                 cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611
26612                     #ifdef HAVE_WCHAR_H
26613                     #  ifdef __CYGWIN__
26614                     #    include <stddef.h>
26615                     #  endif
26616                     #  include <wchar.h>
26617                     #endif
26618                     #ifdef HAVE_STDLIB_H
26619                     #  include <stdlib.h>
26620                     #endif
26621                     #include <stdio.h>
26622                     #include <string>
26623
26624 int
26625 main ()
26626 {
26627 std::basic_string<$char_type> foo;
26628                      const $char_type* dummy = foo.c_str();
26629   ;
26630   return 0;
26631 }
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637   *) ac_try_echo=$ac_try;;
26638 esac
26639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26640   (eval "$ac_compile") 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } && {
26647          test -z "$ac_cxx_werror_flag" ||
26648          test ! -s conftest.err
26649        } && test -s conftest.$ac_objext; then
26650   wx_cv_class_stdbasicstring=yes
26651 else
26652   echo "$as_me: failed program was:" >&5
26653 sed 's/^/| /' conftest.$ac_ext >&5
26654
26655         wx_cv_class_stdbasicstring=no
26656
26657 fi
26658
26659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660
26661
26662 fi
26663 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26664 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26665
26666         if test "$wx_cv_class_stdbasicstring" != yes; then
26667             if test "$wxUSE_STL" = "yes"; then
26668                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26669 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26670    { (exit 1); exit 1; }; }
26671             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26672                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26673 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26674    { (exit 1); exit 1; }; }
26675             else
26676                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26677 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26678                 wxUSE_STD_STRING=no
26679             fi
26680         fi
26681     fi
26682 fi
26683
26684 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26685     { echo "$as_me:$LINENO: checking for std::istream" >&5
26686 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26687 if test "${ac_cv_type_std__istream+set}" = set; then
26688   echo $ECHO_N "(cached) $ECHO_C" >&6
26689 else
26690   cat >conftest.$ac_ext <<_ACEOF
26691 /* confdefs.h.  */
26692 _ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h.  */
26696 #include <iostream>
26697
26698 typedef std::istream ac__type_new_;
26699 int
26700 main ()
26701 {
26702 if ((ac__type_new_ *) 0)
26703   return 0;
26704 if (sizeof (ac__type_new_))
26705   return 0;
26706   ;
26707   return 0;
26708 }
26709 _ACEOF
26710 rm -f conftest.$ac_objext
26711 if { (ac_try="$ac_compile"
26712 case "(($ac_try" in
26713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26714   *) ac_try_echo=$ac_try;;
26715 esac
26716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26717   (eval "$ac_compile") 2>conftest.er1
26718   ac_status=$?
26719   grep -v '^ *+' conftest.er1 >conftest.err
26720   rm -f conftest.er1
26721   cat conftest.err >&5
26722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723   (exit $ac_status); } && {
26724          test -z "$ac_cxx_werror_flag" ||
26725          test ! -s conftest.err
26726        } && test -s conftest.$ac_objext; then
26727   ac_cv_type_std__istream=yes
26728 else
26729   echo "$as_me: failed program was:" >&5
26730 sed 's/^/| /' conftest.$ac_ext >&5
26731
26732         ac_cv_type_std__istream=no
26733 fi
26734
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 fi
26737 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26738 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26739 if test $ac_cv_type_std__istream = yes; then
26740
26741 cat >>confdefs.h <<_ACEOF
26742 #define HAVE_STD__ISTREAM 1
26743 _ACEOF
26744
26745
26746 else
26747   wxUSE_STD_IOSTREAM=no
26748 fi
26749 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26750 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26751 if test "${ac_cv_type_std__ostream+set}" = set; then
26752   echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754   cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 #include <iostream>
26761
26762 typedef std::ostream ac__type_new_;
26763 int
26764 main ()
26765 {
26766 if ((ac__type_new_ *) 0)
26767   return 0;
26768 if (sizeof (ac__type_new_))
26769   return 0;
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 rm -f conftest.$ac_objext
26775 if { (ac_try="$ac_compile"
26776 case "(($ac_try" in
26777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778   *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781   (eval "$ac_compile") 2>conftest.er1
26782   ac_status=$?
26783   grep -v '^ *+' conftest.er1 >conftest.err
26784   rm -f conftest.er1
26785   cat conftest.err >&5
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); } && {
26788          test -z "$ac_cxx_werror_flag" ||
26789          test ! -s conftest.err
26790        } && test -s conftest.$ac_objext; then
26791   ac_cv_type_std__ostream=yes
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796         ac_cv_type_std__ostream=no
26797 fi
26798
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 fi
26801 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26802 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26803 if test $ac_cv_type_std__ostream = yes; then
26804
26805 cat >>confdefs.h <<_ACEOF
26806 #define HAVE_STD__OSTREAM 1
26807 _ACEOF
26808
26809
26810 else
26811   wxUSE_STD_IOSTREAM=no
26812 fi
26813
26814
26815     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26816         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26817             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26818 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26819    { (exit 1); exit 1; }; }
26820         else
26821             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26822 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26823         fi
26824     fi
26825 fi
26826
26827 if test "$wxUSE_STL" = "yes"; then
26828         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26829 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26830 if test "${wx_cv_lib_stl+set}" = set; then
26831   echo $ECHO_N "(cached) $ECHO_C" >&6
26832 else
26833   cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h.  */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h.  */
26839 #include <string>
26840             #include <functional>
26841             #include <algorithm>
26842             #include <vector>
26843             #include <list>
26844 int
26845 main ()
26846 {
26847 std::vector<int> moo;
26848              std::list<int> foo;
26849              std::vector<int>::iterator it =
26850                  std::find_if(moo.begin(), moo.end(),
26851                               std::bind2nd(std::less<int>(), 3));
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_compile") 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } && {
26870          test -z "$ac_cxx_werror_flag" ||
26871          test ! -s conftest.err
26872        } && test -s conftest.$ac_objext; then
26873   wx_cv_lib_stl=yes
26874 else
26875   echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26877
26878         wx_cv_lib_stl=no
26879
26880 fi
26881
26882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883
26884 fi
26885 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26886 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26887
26888     if test "$wx_cv_lib_stl" != yes; then
26889          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26890 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26891    { (exit 1); exit 1; }; }
26892     fi
26893
26894         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26895 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26896 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905 #include <string>
26906 int
26907 main ()
26908 {
26909 std::string foo, bar;
26910             foo.compare(bar);
26911             foo.compare(1, 1, bar);
26912             foo.compare(1, 1, bar, 1, 1);
26913             foo.compare("");
26914             foo.compare(1, 1, "");
26915             foo.compare(1, 1, "", 2);
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_compile") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } && {
26934          test -z "$ac_cxx_werror_flag" ||
26935          test ! -s conftest.err
26936        } && test -s conftest.$ac_objext; then
26937   wx_cv_func_stdstring_compare=yes
26938 else
26939   echo "$as_me: failed program was:" >&5
26940 sed 's/^/| /' conftest.$ac_ext >&5
26941
26942         wx_cv_func_stdstring_compare=no
26943
26944 fi
26945
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947
26948 fi
26949 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26950 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26951
26952     if test "$wx_cv_func_stdstring_compare" = yes; then
26953         cat >>confdefs.h <<\_ACEOF
26954 #define HAVE_STD_STRING_COMPARE 1
26955 _ACEOF
26956
26957     fi
26958
26959         { echo "$as_me:$LINENO: checking for hash_map" >&5
26960 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26961 if test "${ac_cv_header_hash_map+set}" = set; then
26962   echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964   cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970
26971
26972
26973 #include <hash_map>
26974 _ACEOF
26975 rm -f conftest.$ac_objext
26976 if { (ac_try="$ac_compile"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_compile") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_cxx_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest.$ac_objext; then
26992   ac_cv_header_hash_map=yes
26993 else
26994   echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997         ac_cv_header_hash_map=no
26998 fi
26999
27000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27001 fi
27002 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27003 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27004 if test $ac_cv_header_hash_map = yes; then
27005   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27006 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27007 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27008   echo $ECHO_N "(cached) $ECHO_C" >&6
27009 else
27010   cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 #include <hash_map>
27017                 #include <hash_set>
27018 int
27019 main ()
27020 {
27021 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27022                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27023   ;
27024   return 0;
27025 }
27026 _ACEOF
27027 rm -f conftest.$ac_objext
27028 if { (ac_try="$ac_compile"
27029 case "(($ac_try" in
27030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031   *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034   (eval "$ac_compile") 2>conftest.er1
27035   ac_status=$?
27036   grep -v '^ *+' conftest.er1 >conftest.err
27037   rm -f conftest.er1
27038   cat conftest.err >&5
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } && {
27041          test -z "$ac_cxx_werror_flag" ||
27042          test ! -s conftest.err
27043        } && test -s conftest.$ac_objext; then
27044   wx_cv_class_stdhashmapset=yes
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049         wx_cv_class_stdhashmapset=no
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053
27054
27055 fi
27056 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27057 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27058 fi
27059
27060
27061
27062     if test "$wx_cv_class_stdhashmapset" = yes; then
27063         cat >>confdefs.h <<\_ACEOF
27064 #define HAVE_HASH_MAP 1
27065 _ACEOF
27066
27067         cat >>confdefs.h <<\_ACEOF
27068 #define HAVE_STD_HASH_MAP 1
27069 _ACEOF
27070
27071     fi
27072
27073     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27074 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27075 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27076   echo $ECHO_N "(cached) $ECHO_C" >&6
27077 else
27078   cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085
27086
27087 #include <ext/hash_map>
27088 _ACEOF
27089 rm -f conftest.$ac_objext
27090 if { (ac_try="$ac_compile"
27091 case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_compile") 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } && {
27103          test -z "$ac_cxx_werror_flag" ||
27104          test ! -s conftest.err
27105        } && test -s conftest.$ac_objext; then
27106   ac_cv_header_ext_hash_map=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111         ac_cv_header_ext_hash_map=no
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 fi
27116 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27117 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27118 if test $ac_cv_header_ext_hash_map = yes; then
27119   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27120 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27121 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27122   echo $ECHO_N "(cached) $ECHO_C" >&6
27123 else
27124   cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 #include <ext/hash_map>
27131                 #include <ext/hash_set>
27132 int
27133 main ()
27134 {
27135 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27136                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 rm -f conftest.$ac_objext
27142 if { (ac_try="$ac_compile"
27143 case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148   (eval "$ac_compile") 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } && {
27155          test -z "$ac_cxx_werror_flag" ||
27156          test ! -s conftest.err
27157        } && test -s conftest.$ac_objext; then
27158   wx_cv_class_gnuhashmapset=yes
27159 else
27160   echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27162
27163         wx_cv_class_gnuhashmapset=no
27164 fi
27165
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167
27168
27169 fi
27170 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27171 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27172 fi
27173
27174
27175
27176     if test "$wx_cv_class_gnuhashmapset" = yes; then
27177          cat >>confdefs.h <<\_ACEOF
27178 #define HAVE_EXT_HASH_MAP 1
27179 _ACEOF
27180
27181          cat >>confdefs.h <<\_ACEOF
27182 #define HAVE_GNU_CXX_HASH_MAP 1
27183 _ACEOF
27184
27185     fi
27186 fi
27187
27188 ac_ext=c
27189 ac_cpp='$CPP $CPPFLAGS'
27190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27193
27194
27195
27196 SEARCH_INCLUDE="\
27197     /usr/local/include        \
27198                               \
27199     /usr/Motif-2.1/include    \
27200     /usr/Motif-1.2/include    \
27201     /usr/include/Motif1.2     \
27202                               \
27203     /usr/dt/include           \
27204     /usr/openwin/include      \
27205                               \
27206     /usr/include/Xm           \
27207                               \
27208     /usr/X11R6/include        \
27209     /usr/X11R6.4/include      \
27210     /usr/X11R5/include        \
27211     /usr/X11R4/include        \
27212                               \
27213     /usr/include/X11R6        \
27214     /usr/include/X11R5        \
27215     /usr/include/X11R4        \
27216                               \
27217     /usr/local/X11R6/include  \
27218     /usr/local/X11R5/include  \
27219     /usr/local/X11R4/include  \
27220                               \
27221     /usr/local/include/X11R6  \
27222     /usr/local/include/X11R5  \
27223     /usr/local/include/X11R4  \
27224                               \
27225     /usr/X11/include          \
27226     /usr/include/X11          \
27227     /usr/local/X11/include    \
27228     /usr/local/include/X11    \
27229                               \
27230     /usr/XFree86/include/X11  \
27231     /usr/pkg/include          \
27232                               \
27233     /usr/openwin/share/include"
27234
27235 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27236 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27237
27238 case "${host}" in
27239     *-*-irix6* )
27240         if test "${wx_cv_std_libpath+set}" = set; then
27241   echo $ECHO_N "(cached) $ECHO_C" >&6
27242 else
27243
27244                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27245                     for e in a so sl dylib dll.a; do
27246                         libc="$d/libc.$e"
27247                         if test -f $libc; then
27248                             save_LIBS="$LIBS"
27249                             LIBS="$libc"
27250                             cat >conftest.$ac_ext <<_ACEOF
27251 int main() { return 0; }
27252 _ACEOF
27253 rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (ac_try="$ac_link"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_link") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } && {
27267          test -z "$ac_c_werror_flag" ||
27268          test ! -s conftest.err
27269        } && test -s conftest$ac_exeext &&
27270        $as_test_x conftest$ac_exeext; then
27271   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27272 else
27273   echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27275
27276
27277 fi
27278
27279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27280       conftest$ac_exeext conftest.$ac_ext
27281                             LIBS="$save_LIBS"
27282                             if test "x$wx_cv_std_libpath" != "x"; then
27283                                 break 2
27284                             fi
27285                         fi
27286                     done
27287                 done
27288                 if test "x$wx_cv_std_libpath" = "x"; then
27289                     wx_cv_std_libpath="lib"
27290                 fi
27291
27292
27293 fi
27294
27295         ;;
27296
27297     *-*-solaris2* )
27298                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27299             wx_cv_std_libpath="lib/64"
27300         else
27301             wx_cv_std_libpath="lib"
27302         fi
27303         ;;
27304
27305     *-*-linux* )
27306                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27307                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27308             wx_cv_std_libpath="lib64"
27309         else
27310             wx_cv_std_libpath="lib"
27311         fi
27312         ;;
27313
27314     *)
27315         wx_cv_std_libpath="lib";
27316         ;;
27317 esac
27318
27319 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27320 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27321
27322 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27323
27324 if test "$build" != "$host" -a "$GCC" = yes; then
27325                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27326         cross_root=`dirname $cross_root`
27327         cross_root=`dirname $cross_root`
27328
27329                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27330         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27331         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27332
27333                 if test -z "$PKG_CONFIG_PATH"; then
27334             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27335             export PKG_CONFIG_PATH
27336         fi
27337
27338                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27339
27340 ac_find_includes=
27341 for ac_dir in $SEARCH_INCLUDE /usr/include;
27342   do
27343     if test -f "$ac_dir/X11/Intrinsic.h"; then
27344       ac_find_includes=$ac_dir
27345       break
27346     fi
27347   done
27348
27349             x_includes=$ac_find_includes
27350         fi
27351         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27352
27353   ac_find_libraries=
27354   for ac_dir in $SEARCH_LIB;
27355   do
27356     for ac_extension in a so sl dylib dll.a; do
27357       if test -f "$ac_dir/libXt.$ac_extension"; then
27358         ac_find_libraries=$ac_dir
27359         break 2
27360       fi
27361     done
27362   done
27363
27364             x_libraries=$ac_find_libraries
27365         fi
27366     fi
27367 fi
27368
27369
27370 cat >confcache <<\_ACEOF
27371 # This file is a shell script that caches the results of configure
27372 # tests run on this system so they can be shared between configure
27373 # scripts and configure runs, see configure's option --config-cache.
27374 # It is not useful on other systems.  If it contains results you don't
27375 # want to keep, you may remove or edit it.
27376 #
27377 # config.status only pays attention to the cache file if you give it
27378 # the --recheck option to rerun configure.
27379 #
27380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27382 # following values.
27383
27384 _ACEOF
27385
27386 # The following way of writing the cache mishandles newlines in values,
27387 # but we know of no workaround that is simple, portable, and efficient.
27388 # So, we kill variables containing newlines.
27389 # Ultrix sh set writes to stderr and can't be redirected directly,
27390 # and sets the high bit in the cache file unless we assign to the vars.
27391 (
27392   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27393     eval ac_val=\$$ac_var
27394     case $ac_val in #(
27395     *${as_nl}*)
27396       case $ac_var in #(
27397       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27398 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27399       esac
27400       case $ac_var in #(
27401       _ | IFS | as_nl) ;; #(
27402       *) $as_unset $ac_var ;;
27403       esac ;;
27404     esac
27405   done
27406
27407   (set) 2>&1 |
27408     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27409     *${as_nl}ac_space=\ *)
27410       # `set' does not quote correctly, so add quotes (double-quote
27411       # substitution turns \\\\ into \\, and sed turns \\ into \).
27412       sed -n \
27413         "s/'/'\\\\''/g;
27414           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27415       ;; #(
27416     *)
27417       # `set' quotes correctly as required by POSIX, so do not add quotes.
27418       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27419       ;;
27420     esac |
27421     sort
27422 ) |
27423   sed '
27424      /^ac_cv_env_/b end
27425      t clear
27426      :clear
27427      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27428      t end
27429      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27430      :end' >>confcache
27431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27432   if test -w "$cache_file"; then
27433     test "x$cache_file" != "x/dev/null" &&
27434       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27435 echo "$as_me: updating cache $cache_file" >&6;}
27436     cat confcache >$cache_file
27437   else
27438     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27439 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27440   fi
27441 fi
27442 rm -f confcache
27443
27444 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27445     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27446 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27447 if test "${wx_cv_lib_glibc21+set}" = set; then
27448   echo $ECHO_N "(cached) $ECHO_C" >&6
27449 else
27450
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 #include <features.h>
27458 int
27459 main ()
27460 {
27461
27462                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27463                 not glibc 2.1
27464                 #endif
27465
27466   ;
27467   return 0;
27468 }
27469 _ACEOF
27470 rm -f conftest.$ac_objext
27471 if { (ac_try="$ac_compile"
27472 case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_compile") 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } && {
27484          test -z "$ac_c_werror_flag" ||
27485          test ! -s conftest.err
27486        } && test -s conftest.$ac_objext; then
27487
27488                 wx_cv_lib_glibc21=yes
27489
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494
27495                 wx_cv_lib_glibc21=no
27496
27497
27498 fi
27499
27500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27501
27502 fi
27503 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27504 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27505     if test "$wx_cv_lib_glibc21" = "yes"; then
27506         cat >>confdefs.h <<\_ACEOF
27507 #define wxHAVE_GLIBC2 1
27508 _ACEOF
27509
27510     fi
27511 fi
27512
27513 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27514     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27515         cat >>confdefs.h <<\_ACEOF
27516 #define _GNU_SOURCE 1
27517 _ACEOF
27518
27519     fi
27520 fi
27521
27522 have_cos=0
27523 have_floor=0
27524
27525 for ac_func in cos
27526 do
27527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27531   echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533   cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27541 #define $ac_func innocuous_$ac_func
27542
27543 /* System header to define __stub macros and hopefully few prototypes,
27544     which can conflict with char $ac_func (); below.
27545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27546     <limits.h> exists even on freestanding compilers.  */
27547
27548 #ifdef __STDC__
27549 # include <limits.h>
27550 #else
27551 # include <assert.h>
27552 #endif
27553
27554 #undef $ac_func
27555
27556 /* Override any GCC internal prototype to avoid an error.
27557    Use char because int might match the return type of a GCC
27558    builtin and then its argument prototype would still apply.  */
27559 #ifdef __cplusplus
27560 extern "C"
27561 #endif
27562 char $ac_func ();
27563 /* The GNU C library defines this for functions which it implements
27564     to always fail with ENOSYS.  Some functions are actually named
27565     something starting with __ and the normal name is an alias.  */
27566 #if defined __stub_$ac_func || defined __stub___$ac_func
27567 choke me
27568 #endif
27569
27570 int
27571 main ()
27572 {
27573 return $ac_func ();
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext conftest$ac_exeext
27579 if { (ac_try="$ac_link"
27580 case "(($ac_try" in
27581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582   *) ac_try_echo=$ac_try;;
27583 esac
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585   (eval "$ac_link") 2>conftest.er1
27586   ac_status=$?
27587   grep -v '^ *+' conftest.er1 >conftest.err
27588   rm -f conftest.er1
27589   cat conftest.err >&5
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); } && {
27592          test -z "$ac_c_werror_flag" ||
27593          test ! -s conftest.err
27594        } && test -s conftest$ac_exeext &&
27595        $as_test_x conftest$ac_exeext; then
27596   eval "$as_ac_var=yes"
27597 else
27598   echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27600
27601         eval "$as_ac_var=no"
27602 fi
27603
27604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27605       conftest$ac_exeext conftest.$ac_ext
27606 fi
27607 ac_res=`eval echo '${'$as_ac_var'}'`
27608                { echo "$as_me:$LINENO: result: $ac_res" >&5
27609 echo "${ECHO_T}$ac_res" >&6; }
27610 if test `eval echo '${'$as_ac_var'}'` = yes; then
27611   cat >>confdefs.h <<_ACEOF
27612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27613 _ACEOF
27614  have_cos=1
27615 fi
27616 done
27617
27618
27619 for ac_func in floor
27620 do
27621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h.  */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h.  */
27633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27635 #define $ac_func innocuous_$ac_func
27636
27637 /* System header to define __stub macros and hopefully few prototypes,
27638     which can conflict with char $ac_func (); below.
27639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27640     <limits.h> exists even on freestanding compilers.  */
27641
27642 #ifdef __STDC__
27643 # include <limits.h>
27644 #else
27645 # include <assert.h>
27646 #endif
27647
27648 #undef $ac_func
27649
27650 /* Override any GCC internal prototype to avoid an error.
27651    Use char because int might match the return type of a GCC
27652    builtin and then its argument prototype would still apply.  */
27653 #ifdef __cplusplus
27654 extern "C"
27655 #endif
27656 char $ac_func ();
27657 /* The GNU C library defines this for functions which it implements
27658     to always fail with ENOSYS.  Some functions are actually named
27659     something starting with __ and the normal name is an alias.  */
27660 #if defined __stub_$ac_func || defined __stub___$ac_func
27661 choke me
27662 #endif
27663
27664 int
27665 main ()
27666 {
27667 return $ac_func ();
27668   ;
27669   return 0;
27670 }
27671 _ACEOF
27672 rm -f conftest.$ac_objext conftest$ac_exeext
27673 if { (ac_try="$ac_link"
27674 case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_link") 2>conftest.er1
27680   ac_status=$?
27681   grep -v '^ *+' conftest.er1 >conftest.err
27682   rm -f conftest.er1
27683   cat conftest.err >&5
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); } && {
27686          test -z "$ac_c_werror_flag" ||
27687          test ! -s conftest.err
27688        } && test -s conftest$ac_exeext &&
27689        $as_test_x conftest$ac_exeext; then
27690   eval "$as_ac_var=yes"
27691 else
27692   echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27694
27695         eval "$as_ac_var=no"
27696 fi
27697
27698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27699       conftest$ac_exeext conftest.$ac_ext
27700 fi
27701 ac_res=`eval echo '${'$as_ac_var'}'`
27702                { echo "$as_me:$LINENO: result: $ac_res" >&5
27703 echo "${ECHO_T}$ac_res" >&6; }
27704 if test `eval echo '${'$as_ac_var'}'` = yes; then
27705   cat >>confdefs.h <<_ACEOF
27706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27707 _ACEOF
27708  have_floor=1
27709 fi
27710 done
27711
27712 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27713 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27714 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27715     { echo "$as_me:$LINENO: result: yes" >&5
27716 echo "${ECHO_T}yes" >&6; }
27717 else
27718     { echo "$as_me:$LINENO: result: no" >&5
27719 echo "${ECHO_T}no" >&6; }
27720     LIBS="$LIBS -lm"
27721     # use different functions to avoid configure caching
27722     have_sin=0
27723     have_ceil=0
27724
27725 for ac_func in sin
27726 do
27727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27731   echo $ECHO_N "(cached) $ECHO_C" >&6
27732 else
27733   cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27741 #define $ac_func innocuous_$ac_func
27742
27743 /* System header to define __stub macros and hopefully few prototypes,
27744     which can conflict with char $ac_func (); below.
27745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27746     <limits.h> exists even on freestanding compilers.  */
27747
27748 #ifdef __STDC__
27749 # include <limits.h>
27750 #else
27751 # include <assert.h>
27752 #endif
27753
27754 #undef $ac_func
27755
27756 /* Override any GCC internal prototype to avoid an error.
27757    Use char because int might match the return type of a GCC
27758    builtin and then its argument prototype would still apply.  */
27759 #ifdef __cplusplus
27760 extern "C"
27761 #endif
27762 char $ac_func ();
27763 /* The GNU C library defines this for functions which it implements
27764     to always fail with ENOSYS.  Some functions are actually named
27765     something starting with __ and the normal name is an alias.  */
27766 #if defined __stub_$ac_func || defined __stub___$ac_func
27767 choke me
27768 #endif
27769
27770 int
27771 main ()
27772 {
27773 return $ac_func ();
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (ac_try="$ac_link"
27780 case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785   (eval "$ac_link") 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } && {
27792          test -z "$ac_c_werror_flag" ||
27793          test ! -s conftest.err
27794        } && test -s conftest$ac_exeext &&
27795        $as_test_x conftest$ac_exeext; then
27796   eval "$as_ac_var=yes"
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801         eval "$as_ac_var=no"
27802 fi
27803
27804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27805       conftest$ac_exeext conftest.$ac_ext
27806 fi
27807 ac_res=`eval echo '${'$as_ac_var'}'`
27808                { echo "$as_me:$LINENO: result: $ac_res" >&5
27809 echo "${ECHO_T}$ac_res" >&6; }
27810 if test `eval echo '${'$as_ac_var'}'` = yes; then
27811   cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27813 _ACEOF
27814  have_sin=1
27815 fi
27816 done
27817
27818
27819 for ac_func in ceil
27820 do
27821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27825   echo $ECHO_N "(cached) $ECHO_C" >&6
27826 else
27827   cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27835 #define $ac_func innocuous_$ac_func
27836
27837 /* System header to define __stub macros and hopefully few prototypes,
27838     which can conflict with char $ac_func (); below.
27839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27840     <limits.h> exists even on freestanding compilers.  */
27841
27842 #ifdef __STDC__
27843 # include <limits.h>
27844 #else
27845 # include <assert.h>
27846 #endif
27847
27848 #undef $ac_func
27849
27850 /* Override any GCC internal prototype to avoid an error.
27851    Use char because int might match the return type of a GCC
27852    builtin and then its argument prototype would still apply.  */
27853 #ifdef __cplusplus
27854 extern "C"
27855 #endif
27856 char $ac_func ();
27857 /* The GNU C library defines this for functions which it implements
27858     to always fail with ENOSYS.  Some functions are actually named
27859     something starting with __ and the normal name is an alias.  */
27860 #if defined __stub_$ac_func || defined __stub___$ac_func
27861 choke me
27862 #endif
27863
27864 int
27865 main ()
27866 {
27867 return $ac_func ();
27868   ;
27869   return 0;
27870 }
27871 _ACEOF
27872 rm -f conftest.$ac_objext conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876   *) ac_try_echo=$ac_try;;
27877 esac
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879   (eval "$ac_link") 2>conftest.er1
27880   ac_status=$?
27881   grep -v '^ *+' conftest.er1 >conftest.err
27882   rm -f conftest.er1
27883   cat conftest.err >&5
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); } && {
27886          test -z "$ac_c_werror_flag" ||
27887          test ! -s conftest.err
27888        } && test -s conftest$ac_exeext &&
27889        $as_test_x conftest$ac_exeext; then
27890   eval "$as_ac_var=yes"
27891 else
27892   echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27894
27895         eval "$as_ac_var=no"
27896 fi
27897
27898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27899       conftest$ac_exeext conftest.$ac_ext
27900 fi
27901 ac_res=`eval echo '${'$as_ac_var'}'`
27902                { echo "$as_me:$LINENO: result: $ac_res" >&5
27903 echo "${ECHO_T}$ac_res" >&6; }
27904 if test `eval echo '${'$as_ac_var'}'` = yes; then
27905   cat >>confdefs.h <<_ACEOF
27906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27907 _ACEOF
27908  have_ceil=1
27909 fi
27910 done
27911
27912     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27913 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27914     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27915         { echo "$as_me:$LINENO: result: yes" >&5
27916 echo "${ECHO_T}yes" >&6; }
27917     else
27918         { echo "$as_me:$LINENO: result: no" >&5
27919 echo "${ECHO_T}no" >&6; }
27920         # not sure we should warn the user, crash, etc.
27921     fi
27922 fi
27923
27924 ac_ext=cpp
27925 ac_cpp='$CXXCPP $CPPFLAGS'
27926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27929
27930 if test "wxUSE_UNICODE" = "yes"; then
27931
27932   for wx_func in wcstoull
27933   do
27934     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27935 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27936 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 else
27939
27940         cat >conftest.$ac_ext <<_ACEOF
27941
27942             /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947
27948
27949                 $ac_includes_default
27950
27951 int
27952 main ()
27953 {
27954
27955                 #ifndef $wx_func
27956                   &$wx_func;
27957                 #endif
27958
27959
27960   ;
27961   return 0;
27962 }
27963
27964 _ACEOF
27965 rm -f conftest.$ac_objext conftest$ac_exeext
27966 if { (ac_try="$ac_link"
27967 case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972   (eval "$ac_link") 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } && {
27979          test -z "$ac_cxx_werror_flag" ||
27980          test ! -s conftest.err
27981        } && test -s conftest$ac_exeext &&
27982        $as_test_x conftest$ac_exeext; then
27983   eval wx_cv_func_$wx_func=yes
27984 else
27985   echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988         eval wx_cv_func_$wx_func=no
27989 fi
27990
27991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27992       conftest$ac_exeext conftest.$ac_ext
27993
27994 fi
27995 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27996                { echo "$as_me:$LINENO: result: $ac_res" >&5
27997 echo "${ECHO_T}$ac_res" >&6; }
27998
27999     if eval test \$wx_cv_func_$wx_func = yes
28000     then
28001       cat >>confdefs.h <<_ACEOF
28002 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28003 _ACEOF
28004
28005
28006     else
28007       :
28008
28009     fi
28010   done
28011
28012 else
28013
28014   for wx_func in strtoull
28015   do
28016     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28017 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28018 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28019   echo $ECHO_N "(cached) $ECHO_C" >&6
28020 else
28021
28022         cat >conftest.$ac_ext <<_ACEOF
28023
28024             /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029
28030
28031                 $ac_includes_default
28032
28033 int
28034 main ()
28035 {
28036
28037                 #ifndef $wx_func
28038                   &$wx_func;
28039                 #endif
28040
28041
28042   ;
28043   return 0;
28044 }
28045
28046 _ACEOF
28047 rm -f conftest.$ac_objext conftest$ac_exeext
28048 if { (ac_try="$ac_link"
28049 case "(($ac_try" in
28050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051   *) ac_try_echo=$ac_try;;
28052 esac
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054   (eval "$ac_link") 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } && {
28061          test -z "$ac_cxx_werror_flag" ||
28062          test ! -s conftest.err
28063        } && test -s conftest$ac_exeext &&
28064        $as_test_x conftest$ac_exeext; then
28065   eval wx_cv_func_$wx_func=yes
28066 else
28067   echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28069
28070         eval wx_cv_func_$wx_func=no
28071 fi
28072
28073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28074       conftest$ac_exeext conftest.$ac_ext
28075
28076 fi
28077 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28078                { echo "$as_me:$LINENO: result: $ac_res" >&5
28079 echo "${ECHO_T}$ac_res" >&6; }
28080
28081     if eval test \$wx_cv_func_$wx_func = yes
28082     then
28083       cat >>confdefs.h <<_ACEOF
28084 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28085 _ACEOF
28086
28087
28088     else
28089       :
28090
28091     fi
28092   done
28093
28094 fi
28095 ac_ext=c
28096 ac_cpp='$CPP $CPPFLAGS'
28097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28100
28101
28102
28103
28104 if test "$wxUSE_REGEX" != "no"; then
28105     cat >>confdefs.h <<\_ACEOF
28106 #define wxUSE_REGEX 1
28107 _ACEOF
28108
28109
28110     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28111         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28112 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28113         wxUSE_REGEX=builtin
28114     fi
28115
28116     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28117                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28118 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28119 if test "${ac_cv_header_regex_h+set}" = set; then
28120   echo $ECHO_N "(cached) $ECHO_C" >&6
28121 else
28122   cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128
28129
28130 #include <regex.h>
28131 _ACEOF
28132 rm -f conftest.$ac_objext
28133 if { (ac_try="$ac_compile"
28134 case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_compile") 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } && {
28146          test -z "$ac_c_werror_flag" ||
28147          test ! -s conftest.err
28148        } && test -s conftest.$ac_objext; then
28149   ac_cv_header_regex_h=yes
28150 else
28151   echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154         ac_cv_header_regex_h=no
28155 fi
28156
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28158 fi
28159 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28160 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28161 if test $ac_cv_header_regex_h = yes; then
28162
28163
28164 for ac_func in regcomp re_search
28165 do
28166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28180 #define $ac_func innocuous_$ac_func
28181
28182 /* System header to define __stub macros and hopefully few prototypes,
28183     which can conflict with char $ac_func (); below.
28184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28185     <limits.h> exists even on freestanding compilers.  */
28186
28187 #ifdef __STDC__
28188 # include <limits.h>
28189 #else
28190 # include <assert.h>
28191 #endif
28192
28193 #undef $ac_func
28194
28195 /* Override any GCC internal prototype to avoid an error.
28196    Use char because int might match the return type of a GCC
28197    builtin and then its argument prototype would still apply.  */
28198 #ifdef __cplusplus
28199 extern "C"
28200 #endif
28201 char $ac_func ();
28202 /* The GNU C library defines this for functions which it implements
28203     to always fail with ENOSYS.  Some functions are actually named
28204     something starting with __ and the normal name is an alias.  */
28205 #if defined __stub_$ac_func || defined __stub___$ac_func
28206 choke me
28207 #endif
28208
28209 int
28210 main ()
28211 {
28212 return $ac_func ();
28213   ;
28214   return 0;
28215 }
28216 _ACEOF
28217 rm -f conftest.$ac_objext conftest$ac_exeext
28218 if { (ac_try="$ac_link"
28219 case "(($ac_try" in
28220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221   *) ac_try_echo=$ac_try;;
28222 esac
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224   (eval "$ac_link") 2>conftest.er1
28225   ac_status=$?
28226   grep -v '^ *+' conftest.er1 >conftest.err
28227   rm -f conftest.er1
28228   cat conftest.err >&5
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); } && {
28231          test -z "$ac_c_werror_flag" ||
28232          test ! -s conftest.err
28233        } && test -s conftest$ac_exeext &&
28234        $as_test_x conftest$ac_exeext; then
28235   eval "$as_ac_var=yes"
28236 else
28237   echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28239
28240         eval "$as_ac_var=no"
28241 fi
28242
28243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28244       conftest$ac_exeext conftest.$ac_ext
28245 fi
28246 ac_res=`eval echo '${'$as_ac_var'}'`
28247                { echo "$as_me:$LINENO: result: $ac_res" >&5
28248 echo "${ECHO_T}$ac_res" >&6; }
28249 if test `eval echo '${'$as_ac_var'}'` = yes; then
28250   cat >>confdefs.h <<_ACEOF
28251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28252 _ACEOF
28253
28254 fi
28255 done
28256
28257 fi
28258
28259
28260
28261         if test "x$ac_cv_func_regcomp" != "xyes"; then
28262             if test "$wxUSE_REGEX" = "sys" ; then
28263                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28264 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28265    { (exit 1); exit 1; }; }
28266             else
28267                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28268 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28269                 wxUSE_REGEX=builtin
28270             fi
28271         else
28272                         wxUSE_REGEX=sys
28273                         cat >>confdefs.h <<\_ACEOF
28274 #define WX_NO_REGEX_ADVANCED 1
28275 _ACEOF
28276
28277         fi
28278     fi
28279 fi
28280
28281
28282 ZLIB_LINK=
28283 if test "$wxUSE_ZLIB" != "no" ; then
28284     cat >>confdefs.h <<\_ACEOF
28285 #define wxUSE_ZLIB 1
28286 _ACEOF
28287
28288
28289     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28290                                                 if test "$USE_DARWIN" = 1; then
28291             system_zlib_h_ok="yes"
28292         else
28293                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28294 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28295 if test "${ac_cv_header_zlib_h+set}" = set; then
28296   echo $ECHO_N "(cached) $ECHO_C" >&6
28297 else
28298   if test "$cross_compiling" = yes; then
28299                       unset ac_cv_header_zlib_h
28300
28301 else
28302   cat >conftest.$ac_ext <<_ACEOF
28303 /* confdefs.h.  */
28304 _ACEOF
28305 cat confdefs.h >>conftest.$ac_ext
28306 cat >>conftest.$ac_ext <<_ACEOF
28307 /* end confdefs.h.  */
28308
28309                         #include <zlib.h>
28310                         #include <stdio.h>
28311
28312                         int main()
28313                         {
28314                             FILE *f=fopen("conftestval", "w");
28315                             if (!f) exit(1);
28316                             fprintf(f, "%s",
28317                                     ZLIB_VERSION[0] == '1' &&
28318                                     (ZLIB_VERSION[2] > '1' ||
28319                                     (ZLIB_VERSION[2] == '1' &&
28320                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28321                             exit(0);
28322                         }
28323
28324 _ACEOF
28325 rm -f conftest$ac_exeext
28326 if { (ac_try="$ac_link"
28327 case "(($ac_try" in
28328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329   *) ac_try_echo=$ac_try;;
28330 esac
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332   (eval "$ac_link") 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28336   { (case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341   (eval "$ac_try") 2>&5
28342   ac_status=$?
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); }; }; then
28345   ac_cv_header_zlib_h=`cat conftestval`
28346 else
28347   echo "$as_me: program exited with status $ac_status" >&5
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28350
28351 ( exit $ac_status )
28352 ac_cv_header_zlib_h=no
28353 fi
28354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28355 fi
28356
28357
28358
28359 fi
28360 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28361 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28362                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28363 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28364 if test "${ac_cv_header_zlib_h+set}" = set; then
28365   echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367   cat >conftest.$ac_ext <<_ACEOF
28368 /* confdefs.h.  */
28369 _ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h.  */
28373
28374
28375 #include <zlib.h>
28376 _ACEOF
28377 rm -f conftest.$ac_objext
28378 if { (ac_try="$ac_compile"
28379 case "(($ac_try" in
28380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381   *) ac_try_echo=$ac_try;;
28382 esac
28383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384   (eval "$ac_compile") 2>conftest.er1
28385   ac_status=$?
28386   grep -v '^ *+' conftest.er1 >conftest.err
28387   rm -f conftest.er1
28388   cat conftest.err >&5
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); } && {
28391          test -z "$ac_c_werror_flag" ||
28392          test ! -s conftest.err
28393        } && test -s conftest.$ac_objext; then
28394   ac_cv_header_zlib_h=yes
28395 else
28396   echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28398
28399         ac_cv_header_zlib_h=no
28400 fi
28401
28402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28403 fi
28404 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28405 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28406
28407
28408
28409             system_zlib_h_ok=$ac_cv_header_zlib_h
28410         fi
28411
28412         if test "$system_zlib_h_ok" = "yes"; then
28413             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28414 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28415 if test "${ac_cv_lib_z_deflate+set}" = set; then
28416   echo $ECHO_N "(cached) $ECHO_C" >&6
28417 else
28418   ac_check_lib_save_LIBS=$LIBS
28419 LIBS="-lz  $LIBS"
28420 cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426
28427 /* Override any GCC internal prototype to avoid an error.
28428    Use char because int might match the return type of a GCC
28429    builtin and then its argument prototype would still apply.  */
28430 #ifdef __cplusplus
28431 extern "C"
28432 #endif
28433 char deflate ();
28434 int
28435 main ()
28436 {
28437 return deflate ();
28438   ;
28439   return 0;
28440 }
28441 _ACEOF
28442 rm -f conftest.$ac_objext conftest$ac_exeext
28443 if { (ac_try="$ac_link"
28444 case "(($ac_try" in
28445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446   *) ac_try_echo=$ac_try;;
28447 esac
28448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449   (eval "$ac_link") 2>conftest.er1
28450   ac_status=$?
28451   grep -v '^ *+' conftest.er1 >conftest.err
28452   rm -f conftest.er1
28453   cat conftest.err >&5
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); } && {
28456          test -z "$ac_c_werror_flag" ||
28457          test ! -s conftest.err
28458        } && test -s conftest$ac_exeext &&
28459        $as_test_x conftest$ac_exeext; then
28460   ac_cv_lib_z_deflate=yes
28461 else
28462   echo "$as_me: failed program was:" >&5
28463 sed 's/^/| /' conftest.$ac_ext >&5
28464
28465         ac_cv_lib_z_deflate=no
28466 fi
28467
28468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28469       conftest$ac_exeext conftest.$ac_ext
28470 LIBS=$ac_check_lib_save_LIBS
28471 fi
28472 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28473 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28474 if test $ac_cv_lib_z_deflate = yes; then
28475   ZLIB_LINK=" -lz"
28476 fi
28477
28478         fi
28479
28480         if test "x$ZLIB_LINK" = "x" ; then
28481             if test "$wxUSE_ZLIB" = "sys" ; then
28482                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28483 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28484    { (exit 1); exit 1; }; }
28485             else
28486                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28487 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28488                 wxUSE_ZLIB=builtin
28489             fi
28490         else
28491                         wxUSE_ZLIB=sys
28492         fi
28493     fi
28494 fi
28495
28496
28497 PNG_LINK=
28498 if test "$wxUSE_LIBPNG" != "no" ; then
28499     cat >>confdefs.h <<\_ACEOF
28500 #define wxUSE_LIBPNG 1
28501 _ACEOF
28502
28503
28504     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28505         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28506 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28507         wxUSE_LIBPNG=sys
28508     fi
28509
28510                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28511         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28512 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28513         wxUSE_LIBPNG=builtin
28514     fi
28515
28516     if test "$wxUSE_MGL" != 1 ; then
28517                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28518                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28519 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28520 if test "${ac_cv_header_png_h+set}" = set; then
28521   echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523   if test "$cross_compiling" = yes; then
28524                       unset ac_cv_header_png_h
28525
28526 else
28527   cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h.  */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h.  */
28533
28534                         #include <png.h>
28535                         #include <stdio.h>
28536
28537                         int main()
28538                         {
28539                             FILE *f=fopen("conftestval", "w");
28540                             if (!f) exit(1);
28541                             fprintf(f, "%s",
28542                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28543                             exit(0);
28544                         }
28545
28546 _ACEOF
28547 rm -f conftest$ac_exeext
28548 if { (ac_try="$ac_link"
28549 case "(($ac_try" in
28550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551   *) ac_try_echo=$ac_try;;
28552 esac
28553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28554   (eval "$ac_link") 2>&5
28555   ac_status=$?
28556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558   { (case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563   (eval "$ac_try") 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; }; then
28567   ac_cv_header_png_h=`cat conftestval`
28568 else
28569   echo "$as_me: program exited with status $ac_status" >&5
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573 ( exit $ac_status )
28574 ac_cv_header_png_h=no
28575 fi
28576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28577 fi
28578
28579
28580
28581 fi
28582 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28583 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28584             { echo "$as_me:$LINENO: checking for png.h" >&5
28585 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28586 if test "${ac_cv_header_png_h+set}" = set; then
28587   echo $ECHO_N "(cached) $ECHO_C" >&6
28588 else
28589   cat >conftest.$ac_ext <<_ACEOF
28590 /* confdefs.h.  */
28591 _ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h.  */
28595
28596
28597 #include <png.h>
28598 _ACEOF
28599 rm -f conftest.$ac_objext
28600 if { (ac_try="$ac_compile"
28601 case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_compile") 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } && {
28613          test -z "$ac_c_werror_flag" ||
28614          test ! -s conftest.err
28615        } && test -s conftest.$ac_objext; then
28616   ac_cv_header_png_h=yes
28617 else
28618   echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28620
28621         ac_cv_header_png_h=no
28622 fi
28623
28624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625 fi
28626 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28627 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28628
28629
28630
28631             if test "$ac_cv_header_png_h" = "yes"; then
28632                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
28633 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
28634 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
28635   echo $ECHO_N "(cached) $ECHO_C" >&6
28636 else
28637   ac_check_lib_save_LIBS=$LIBS
28638 LIBS="-lpng -lz -lm $LIBS"
28639 cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645
28646 /* Override any GCC internal prototype to avoid an error.
28647    Use char because int might match the return type of a GCC
28648    builtin and then its argument prototype would still apply.  */
28649 #ifdef __cplusplus
28650 extern "C"
28651 #endif
28652 char png_check_sig ();
28653 int
28654 main ()
28655 {
28656 return png_check_sig ();
28657   ;
28658   return 0;
28659 }
28660 _ACEOF
28661 rm -f conftest.$ac_objext conftest$ac_exeext
28662 if { (ac_try="$ac_link"
28663 case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_link") 2>conftest.er1
28669   ac_status=$?
28670   grep -v '^ *+' conftest.er1 >conftest.err
28671   rm -f conftest.er1
28672   cat conftest.err >&5
28673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674   (exit $ac_status); } && {
28675          test -z "$ac_c_werror_flag" ||
28676          test ! -s conftest.err
28677        } && test -s conftest$ac_exeext &&
28678        $as_test_x conftest$ac_exeext; then
28679   ac_cv_lib_png_png_check_sig=yes
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684         ac_cv_lib_png_png_check_sig=no
28685 fi
28686
28687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28688       conftest$ac_exeext conftest.$ac_ext
28689 LIBS=$ac_check_lib_save_LIBS
28690 fi
28691 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
28692 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
28693 if test $ac_cv_lib_png_png_check_sig = yes; then
28694   PNG_LINK=" -lpng -lz"
28695 fi
28696
28697             fi
28698
28699             if test "x$PNG_LINK" = "x" ; then
28700                 if test "$wxUSE_LIBPNG" = "sys" ; then
28701                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28702 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28703    { (exit 1); exit 1; }; }
28704                 else
28705                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28706 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28707                     wxUSE_LIBPNG=builtin
28708                 fi
28709             else
28710                                 wxUSE_LIBPNG=sys
28711             fi
28712         fi
28713     fi
28714
28715     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
28716 fi
28717
28718
28719 JPEG_LINK=
28720 if test "$wxUSE_LIBJPEG" != "no" ; then
28721     cat >>confdefs.h <<\_ACEOF
28722 #define wxUSE_LIBJPEG 1
28723 _ACEOF
28724
28725
28726     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28727         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28728 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28729         wxUSE_LIBJPEG=sys
28730     fi
28731
28732     if test "$wxUSE_MGL" != 1 ; then
28733                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28734                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28735 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28736             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28737   echo $ECHO_N "(cached) $ECHO_C" >&6
28738 else
28739   cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745
28746                         #undef HAVE_STDLIB_H
28747                         #include <stdio.h>
28748                         #include <jpeglib.h>
28749
28750 int
28751 main ()
28752 {
28753
28754
28755   ;
28756   return 0;
28757 }
28758 _ACEOF
28759 rm -f conftest.$ac_objext
28760 if { (ac_try="$ac_compile"
28761 case "(($ac_try" in
28762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763   *) ac_try_echo=$ac_try;;
28764 esac
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766   (eval "$ac_compile") 2>conftest.er1
28767   ac_status=$?
28768   grep -v '^ *+' conftest.er1 >conftest.err
28769   rm -f conftest.er1
28770   cat conftest.err >&5
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); } && {
28773          test -z "$ac_c_werror_flag" ||
28774          test ! -s conftest.err
28775        } && test -s conftest.$ac_objext; then
28776   ac_cv_header_jpeglib_h=yes
28777 else
28778   echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781         ac_cv_header_jpeglib_h=no
28782
28783 fi
28784
28785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28786
28787 fi
28788
28789             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28791
28792             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28793                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28794 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28795 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28796   echo $ECHO_N "(cached) $ECHO_C" >&6
28797 else
28798   ac_check_lib_save_LIBS=$LIBS
28799 LIBS="-ljpeg  $LIBS"
28800 cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806
28807 /* Override any GCC internal prototype to avoid an error.
28808    Use char because int might match the return type of a GCC
28809    builtin and then its argument prototype would still apply.  */
28810 #ifdef __cplusplus
28811 extern "C"
28812 #endif
28813 char jpeg_read_header ();
28814 int
28815 main ()
28816 {
28817 return jpeg_read_header ();
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (ac_try="$ac_link"
28824 case "(($ac_try" in
28825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826   *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829   (eval "$ac_link") 2>conftest.er1
28830   ac_status=$?
28831   grep -v '^ *+' conftest.er1 >conftest.err
28832   rm -f conftest.er1
28833   cat conftest.err >&5
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); } && {
28836          test -z "$ac_c_werror_flag" ||
28837          test ! -s conftest.err
28838        } && test -s conftest$ac_exeext &&
28839        $as_test_x conftest$ac_exeext; then
28840   ac_cv_lib_jpeg_jpeg_read_header=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845         ac_cv_lib_jpeg_jpeg_read_header=no
28846 fi
28847
28848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28849       conftest$ac_exeext conftest.$ac_ext
28850 LIBS=$ac_check_lib_save_LIBS
28851 fi
28852 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28853 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28854 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28855   JPEG_LINK=" -ljpeg"
28856 fi
28857
28858             fi
28859
28860             if test "x$JPEG_LINK" = "x" ; then
28861                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28862                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28863 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28864    { (exit 1); exit 1; }; }
28865                 else
28866                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28867 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28868                     wxUSE_LIBJPEG=builtin
28869                 fi
28870             else
28871                                 wxUSE_LIBJPEG=sys
28872
28873                 if test "$wxUSE_MSW" = 1; then
28874                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28875 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28876 if test "${ac_cv_type_boolean+set}" = set; then
28877   echo $ECHO_N "(cached) $ECHO_C" >&6
28878 else
28879   cat >conftest.$ac_ext <<_ACEOF
28880 /* confdefs.h.  */
28881 _ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h.  */
28885 #include <windows.h>
28886
28887 typedef boolean ac__type_new_;
28888 int
28889 main ()
28890 {
28891 if ((ac__type_new_ *) 0)
28892   return 0;
28893 if (sizeof (ac__type_new_))
28894   return 0;
28895   ;
28896   return 0;
28897 }
28898 _ACEOF
28899 rm -f conftest.$ac_objext
28900 if { (ac_try="$ac_compile"
28901 case "(($ac_try" in
28902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903   *) ac_try_echo=$ac_try;;
28904 esac
28905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28906   (eval "$ac_compile") 2>conftest.er1
28907   ac_status=$?
28908   grep -v '^ *+' conftest.er1 >conftest.err
28909   rm -f conftest.er1
28910   cat conftest.err >&5
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); } && {
28913          test -z "$ac_c_werror_flag" ||
28914          test ! -s conftest.err
28915        } && test -s conftest.$ac_objext; then
28916   ac_cv_type_boolean=yes
28917 else
28918   echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28920
28921         ac_cv_type_boolean=no
28922 fi
28923
28924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28925 fi
28926 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28927 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28928 if test $ac_cv_type_boolean = yes; then
28929
28930 cat >>confdefs.h <<_ACEOF
28931 #define HAVE_BOOLEAN 1
28932 _ACEOF
28933
28934
28935                             { echo "$as_me:$LINENO: checking for boolean" >&5
28936 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28937 if test "${ac_cv_type_boolean+set}" = set; then
28938   echo $ECHO_N "(cached) $ECHO_C" >&6
28939 else
28940   cat >conftest.$ac_ext <<_ACEOF
28941 /* confdefs.h.  */
28942 _ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h.  */
28946
28947                                     #undef HAVE_BOOLEAN
28948                                     #include <stdio.h>
28949                                     #include <jpeglib.h>
28950
28951
28952 typedef boolean ac__type_new_;
28953 int
28954 main ()
28955 {
28956 if ((ac__type_new_ *) 0)
28957   return 0;
28958 if (sizeof (ac__type_new_))
28959   return 0;
28960   ;
28961   return 0;
28962 }
28963 _ACEOF
28964 rm -f conftest.$ac_objext
28965 if { (ac_try="$ac_compile"
28966 case "(($ac_try" in
28967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968   *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971   (eval "$ac_compile") 2>conftest.er1
28972   ac_status=$?
28973   grep -v '^ *+' conftest.er1 >conftest.err
28974   rm -f conftest.er1
28975   cat conftest.err >&5
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); } && {
28978          test -z "$ac_c_werror_flag" ||
28979          test ! -s conftest.err
28980        } && test -s conftest.$ac_objext; then
28981   ac_cv_type_boolean=yes
28982 else
28983   echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986         ac_cv_type_boolean=no
28987 fi
28988
28989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990 fi
28991 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28992 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28993
28994 # The cast to long int works around a bug in the HP C Compiler
28995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28997 # This bug is HP SR number 8606223364.
28998 { echo "$as_me:$LINENO: checking size of boolean" >&5
28999 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29000 if test "${ac_cv_sizeof_boolean+set}" = set; then
29001   echo $ECHO_N "(cached) $ECHO_C" >&6
29002 else
29003   if test "$cross_compiling" = yes; then
29004   # Depending upon the size, compute the lo and hi bounds.
29005 cat >conftest.$ac_ext <<_ACEOF
29006 /* confdefs.h.  */
29007 _ACEOF
29008 cat confdefs.h >>conftest.$ac_ext
29009 cat >>conftest.$ac_ext <<_ACEOF
29010 /* end confdefs.h.  */
29011
29012                                     #undef HAVE_BOOLEAN
29013                                     #include <stdio.h>
29014                                     #include <jpeglib.h>
29015
29016
29017    typedef boolean ac__type_sizeof_;
29018 int
29019 main ()
29020 {
29021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29022 test_array [0] = 0
29023
29024   ;
29025   return 0;
29026 }
29027 _ACEOF
29028 rm -f conftest.$ac_objext
29029 if { (ac_try="$ac_compile"
29030 case "(($ac_try" in
29031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032   *) ac_try_echo=$ac_try;;
29033 esac
29034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29035   (eval "$ac_compile") 2>conftest.er1
29036   ac_status=$?
29037   grep -v '^ *+' conftest.er1 >conftest.err
29038   rm -f conftest.er1
29039   cat conftest.err >&5
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); } && {
29042          test -z "$ac_c_werror_flag" ||
29043          test ! -s conftest.err
29044        } && test -s conftest.$ac_objext; then
29045   ac_lo=0 ac_mid=0
29046   while :; do
29047     cat >conftest.$ac_ext <<_ACEOF
29048 /* confdefs.h.  */
29049 _ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h.  */
29053
29054                                     #undef HAVE_BOOLEAN
29055                                     #include <stdio.h>
29056                                     #include <jpeglib.h>
29057
29058
29059    typedef boolean ac__type_sizeof_;
29060 int
29061 main ()
29062 {
29063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29064 test_array [0] = 0
29065
29066   ;
29067   return 0;
29068 }
29069 _ACEOF
29070 rm -f conftest.$ac_objext
29071 if { (ac_try="$ac_compile"
29072 case "(($ac_try" in
29073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074   *) ac_try_echo=$ac_try;;
29075 esac
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077   (eval "$ac_compile") 2>conftest.er1
29078   ac_status=$?
29079   grep -v '^ *+' conftest.er1 >conftest.err
29080   rm -f conftest.er1
29081   cat conftest.err >&5
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } && {
29084          test -z "$ac_c_werror_flag" ||
29085          test ! -s conftest.err
29086        } && test -s conftest.$ac_objext; then
29087   ac_hi=$ac_mid; break
29088 else
29089   echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092         ac_lo=`expr $ac_mid + 1`
29093                         if test $ac_lo -le $ac_mid; then
29094                           ac_lo= ac_hi=
29095                           break
29096                         fi
29097                         ac_mid=`expr 2 '*' $ac_mid + 1`
29098 fi
29099
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101   done
29102 else
29103   echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29105
29106         cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112
29113                                     #undef HAVE_BOOLEAN
29114                                     #include <stdio.h>
29115                                     #include <jpeglib.h>
29116
29117
29118    typedef boolean ac__type_sizeof_;
29119 int
29120 main ()
29121 {
29122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29123 test_array [0] = 0
29124
29125   ;
29126   return 0;
29127 }
29128 _ACEOF
29129 rm -f conftest.$ac_objext
29130 if { (ac_try="$ac_compile"
29131 case "(($ac_try" in
29132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133   *) ac_try_echo=$ac_try;;
29134 esac
29135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136   (eval "$ac_compile") 2>conftest.er1
29137   ac_status=$?
29138   grep -v '^ *+' conftest.er1 >conftest.err
29139   rm -f conftest.er1
29140   cat conftest.err >&5
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); } && {
29143          test -z "$ac_c_werror_flag" ||
29144          test ! -s conftest.err
29145        } && test -s conftest.$ac_objext; then
29146   ac_hi=-1 ac_mid=-1
29147   while :; do
29148     cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154
29155                                     #undef HAVE_BOOLEAN
29156                                     #include <stdio.h>
29157                                     #include <jpeglib.h>
29158
29159
29160    typedef boolean ac__type_sizeof_;
29161 int
29162 main ()
29163 {
29164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29165 test_array [0] = 0
29166
29167   ;
29168   return 0;
29169 }
29170 _ACEOF
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_compile") 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } && {
29185          test -z "$ac_c_werror_flag" ||
29186          test ! -s conftest.err
29187        } && test -s conftest.$ac_objext; then
29188   ac_lo=$ac_mid; break
29189 else
29190   echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29192
29193         ac_hi=`expr '(' $ac_mid ')' - 1`
29194                         if test $ac_mid -le $ac_hi; then
29195                           ac_lo= ac_hi=
29196                           break
29197                         fi
29198                         ac_mid=`expr 2 '*' $ac_mid`
29199 fi
29200
29201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202   done
29203 else
29204   echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29206
29207         ac_lo= ac_hi=
29208 fi
29209
29210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29211 fi
29212
29213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214 # Binary search between lo and hi bounds.
29215 while test "x$ac_lo" != "x$ac_hi"; do
29216   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29217   cat >conftest.$ac_ext <<_ACEOF
29218 /* confdefs.h.  */
29219 _ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h.  */
29223
29224                                     #undef HAVE_BOOLEAN
29225                                     #include <stdio.h>
29226                                     #include <jpeglib.h>
29227
29228
29229    typedef boolean ac__type_sizeof_;
29230 int
29231 main ()
29232 {
29233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29234 test_array [0] = 0
29235
29236   ;
29237   return 0;
29238 }
29239 _ACEOF
29240 rm -f conftest.$ac_objext
29241 if { (ac_try="$ac_compile"
29242 case "(($ac_try" in
29243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244   *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247   (eval "$ac_compile") 2>conftest.er1
29248   ac_status=$?
29249   grep -v '^ *+' conftest.er1 >conftest.err
29250   rm -f conftest.er1
29251   cat conftest.err >&5
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); } && {
29254          test -z "$ac_c_werror_flag" ||
29255          test ! -s conftest.err
29256        } && test -s conftest.$ac_objext; then
29257   ac_hi=$ac_mid
29258 else
29259   echo "$as_me: failed program was:" >&5
29260 sed 's/^/| /' conftest.$ac_ext >&5
29261
29262         ac_lo=`expr '(' $ac_mid ')' + 1`
29263 fi
29264
29265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29266 done
29267 case $ac_lo in
29268 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29269 '') if test "$ac_cv_type_boolean" = yes; then
29270      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29271 See \`config.log' for more details." >&5
29272 echo "$as_me: error: cannot compute sizeof (boolean)
29273 See \`config.log' for more details." >&2;}
29274    { (exit 77); exit 77; }; }
29275    else
29276      ac_cv_sizeof_boolean=0
29277    fi ;;
29278 esac
29279 else
29280   cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286
29287                                     #undef HAVE_BOOLEAN
29288                                     #include <stdio.h>
29289                                     #include <jpeglib.h>
29290
29291
29292    typedef boolean ac__type_sizeof_;
29293 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29294 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29295 #include <stdio.h>
29296 #include <stdlib.h>
29297 int
29298 main ()
29299 {
29300
29301   FILE *f = fopen ("conftest.val", "w");
29302   if (! f)
29303     return 1;
29304   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29305     {
29306       long int i = longval ();
29307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29308         return 1;
29309       fprintf (f, "%ld\n", i);
29310     }
29311   else
29312     {
29313       unsigned long int i = ulongval ();
29314       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29315         return 1;
29316       fprintf (f, "%lu\n", i);
29317     }
29318   return ferror (f) || fclose (f) != 0;
29319
29320   ;
29321   return 0;
29322 }
29323 _ACEOF
29324 rm -f conftest$ac_exeext
29325 if { (ac_try="$ac_link"
29326 case "(($ac_try" in
29327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328   *) ac_try_echo=$ac_try;;
29329 esac
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331   (eval "$ac_link") 2>&5
29332   ac_status=$?
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29335   { (case "(($ac_try" in
29336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337   *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340   (eval "$ac_try") 2>&5
29341   ac_status=$?
29342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343   (exit $ac_status); }; }; then
29344   ac_cv_sizeof_boolean=`cat conftest.val`
29345 else
29346   echo "$as_me: program exited with status $ac_status" >&5
29347 echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350 ( exit $ac_status )
29351 if test "$ac_cv_type_boolean" = yes; then
29352      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29353 See \`config.log' for more details." >&5
29354 echo "$as_me: error: cannot compute sizeof (boolean)
29355 See \`config.log' for more details." >&2;}
29356    { (exit 77); exit 77; }; }
29357    else
29358      ac_cv_sizeof_boolean=0
29359    fi
29360 fi
29361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29362 fi
29363 rm -f conftest.val
29364 fi
29365 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29366 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29367
29368
29369
29370 cat >>confdefs.h <<_ACEOF
29371 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29372 _ACEOF
29373
29374
29375                             cat >>confdefs.h <<_ACEOF
29376 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29377 _ACEOF
29378
29379
29380 fi
29381
29382                 fi
29383             fi
29384         fi
29385     fi
29386 fi
29387
29388
29389 TIFF_LINK=
29390 TIFF_PREREQ_LINKS=-lm
29391 if test "$wxUSE_LIBTIFF" != "no" ; then
29392     cat >>confdefs.h <<\_ACEOF
29393 #define wxUSE_LIBTIFF 1
29394 _ACEOF
29395
29396
29397     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29398                         if test "$wxUSE_LIBJPEG" = "sys"; then
29399             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29400         fi
29401         if test "$wxUSE_ZLIB" = "sys"; then
29402             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29403         fi
29404         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29405 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29406 if test "${ac_cv_header_tiffio_h+set}" = set; then
29407   echo $ECHO_N "(cached) $ECHO_C" >&6
29408 else
29409   cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415
29416
29417
29418 #include <tiffio.h>
29419 _ACEOF
29420 rm -f conftest.$ac_objext
29421 if { (ac_try="$ac_compile"
29422 case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_compile") 2>conftest.er1
29428   ac_status=$?
29429   grep -v '^ *+' conftest.er1 >conftest.err
29430   rm -f conftest.er1
29431   cat conftest.err >&5
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } && {
29434          test -z "$ac_c_werror_flag" ||
29435          test ! -s conftest.err
29436        } && test -s conftest.$ac_objext; then
29437   ac_cv_header_tiffio_h=yes
29438 else
29439   echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29441
29442         ac_cv_header_tiffio_h=no
29443 fi
29444
29445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29446 fi
29447 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29448 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29449 if test $ac_cv_header_tiffio_h = yes; then
29450
29451                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29452 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29453 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29454   echo $ECHO_N "(cached) $ECHO_C" >&6
29455 else
29456   ac_check_lib_save_LIBS=$LIBS
29457 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29458 cat >conftest.$ac_ext <<_ACEOF
29459 /* confdefs.h.  */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h.  */
29464
29465 /* Override any GCC internal prototype to avoid an error.
29466    Use char because int might match the return type of a GCC
29467    builtin and then its argument prototype would still apply.  */
29468 #ifdef __cplusplus
29469 extern "C"
29470 #endif
29471 char TIFFError ();
29472 int
29473 main ()
29474 {
29475 return TIFFError ();
29476   ;
29477   return 0;
29478 }
29479 _ACEOF
29480 rm -f conftest.$ac_objext conftest$ac_exeext
29481 if { (ac_try="$ac_link"
29482 case "(($ac_try" in
29483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484   *) ac_try_echo=$ac_try;;
29485 esac
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487   (eval "$ac_link") 2>conftest.er1
29488   ac_status=$?
29489   grep -v '^ *+' conftest.er1 >conftest.err
29490   rm -f conftest.er1
29491   cat conftest.err >&5
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); } && {
29494          test -z "$ac_c_werror_flag" ||
29495          test ! -s conftest.err
29496        } && test -s conftest$ac_exeext &&
29497        $as_test_x conftest$ac_exeext; then
29498   ac_cv_lib_tiff_TIFFError=yes
29499 else
29500   echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29502
29503         ac_cv_lib_tiff_TIFFError=no
29504 fi
29505
29506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29507       conftest$ac_exeext conftest.$ac_ext
29508 LIBS=$ac_check_lib_save_LIBS
29509 fi
29510 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29511 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29512 if test $ac_cv_lib_tiff_TIFFError = yes; then
29513   TIFF_LINK=" -ltiff"
29514 fi
29515
29516
29517 fi
29518
29519
29520
29521         if test "x$TIFF_LINK" = "x" ; then
29522             if test "$wxUSE_LIBTIFF" = "sys" ; then
29523                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29524 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29525    { (exit 1); exit 1; }; }
29526             else
29527                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29528 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29529                 wxUSE_LIBTIFF=builtin
29530             fi
29531         else
29532                         wxUSE_LIBTIFF=sys
29533         fi
29534     fi
29535 fi
29536
29537
29538 if test "$wxUSE_WCHAR_T" != "yes"; then
29539     if test "$wxUSE_EXPAT" != "no"; then
29540         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29541 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29542         wxUSE_EXPAT=no
29543     fi
29544     if test "$wxUSE_XML" != "no"; then
29545         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
29546 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
29547         wxUSE_XML=no
29548     fi
29549 fi
29550
29551 if test "$wxUSE_EXPAT" != "no"; then
29552     wxUSE_XML=yes
29553     cat >>confdefs.h <<\_ACEOF
29554 #define wxUSE_EXPAT 1
29555 _ACEOF
29556
29557     cat >>confdefs.h <<\_ACEOF
29558 #define wxUSE_XML 1
29559 _ACEOF
29560
29561
29562     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29563         { echo "$as_me:$LINENO: checking for expat.h" >&5
29564 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29565 if test "${ac_cv_header_expat_h+set}" = set; then
29566   echo $ECHO_N "(cached) $ECHO_C" >&6
29567 else
29568   cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h.  */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h.  */
29574
29575
29576 #include <expat.h>
29577 _ACEOF
29578 rm -f conftest.$ac_objext
29579 if { (ac_try="$ac_compile"
29580 case "(($ac_try" in
29581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582   *) ac_try_echo=$ac_try;;
29583 esac
29584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29585   (eval "$ac_compile") 2>conftest.er1
29586   ac_status=$?
29587   grep -v '^ *+' conftest.er1 >conftest.err
29588   rm -f conftest.er1
29589   cat conftest.err >&5
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); } && {
29592          test -z "$ac_c_werror_flag" ||
29593          test ! -s conftest.err
29594        } && test -s conftest.$ac_objext; then
29595   ac_cv_header_expat_h=yes
29596 else
29597   echo "$as_me: failed program was:" >&5
29598 sed 's/^/| /' conftest.$ac_ext >&5
29599
29600         ac_cv_header_expat_h=no
29601 fi
29602
29603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29604 fi
29605 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29606 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29607 if test $ac_cv_header_expat_h = yes; then
29608   found_expat_h=1
29609 fi
29610
29611
29612         if test "x$found_expat_h" = "x1"; then
29613                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29614 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29615 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618
29619                 ac_ext=cpp
29620 ac_cpp='$CXXCPP $CPPFLAGS'
29621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29624
29625                 cat >conftest.$ac_ext <<_ACEOF
29626 /* confdefs.h.  */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h.  */
29631 #include <expat.h>
29632 int
29633 main ()
29634 {
29635
29636   ;
29637   return 0;
29638 }
29639 _ACEOF
29640 rm -f conftest.$ac_objext
29641 if { (ac_try="$ac_compile"
29642 case "(($ac_try" in
29643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644   *) ac_try_echo=$ac_try;;
29645 esac
29646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647   (eval "$ac_compile") 2>conftest.er1
29648   ac_status=$?
29649   grep -v '^ *+' conftest.er1 >conftest.err
29650   rm -f conftest.er1
29651   cat conftest.err >&5
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); } && {
29654          test -z "$ac_cxx_werror_flag" ||
29655          test ! -s conftest.err
29656        } && test -s conftest.$ac_objext; then
29657   wx_cv_expat_is_not_broken=yes
29658 else
29659   echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29661
29662         wx_cv_expat_is_not_broken=no
29663
29664 fi
29665
29666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29667                 ac_ext=c
29668 ac_cpp='$CPP $CPPFLAGS'
29669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29672
29673
29674
29675 fi
29676 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29677 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29678             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29679                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29680 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29681 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29682   echo $ECHO_N "(cached) $ECHO_C" >&6
29683 else
29684   ac_check_lib_save_LIBS=$LIBS
29685 LIBS="-lexpat  $LIBS"
29686 cat >conftest.$ac_ext <<_ACEOF
29687 /* confdefs.h.  */
29688 _ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h.  */
29692
29693 /* Override any GCC internal prototype to avoid an error.
29694    Use char because int might match the return type of a GCC
29695    builtin and then its argument prototype would still apply.  */
29696 #ifdef __cplusplus
29697 extern "C"
29698 #endif
29699 char XML_ParserCreate ();
29700 int
29701 main ()
29702 {
29703 return XML_ParserCreate ();
29704   ;
29705   return 0;
29706 }
29707 _ACEOF
29708 rm -f conftest.$ac_objext conftest$ac_exeext
29709 if { (ac_try="$ac_link"
29710 case "(($ac_try" in
29711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712   *) ac_try_echo=$ac_try;;
29713 esac
29714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715   (eval "$ac_link") 2>conftest.er1
29716   ac_status=$?
29717   grep -v '^ *+' conftest.er1 >conftest.err
29718   rm -f conftest.er1
29719   cat conftest.err >&5
29720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721   (exit $ac_status); } && {
29722          test -z "$ac_c_werror_flag" ||
29723          test ! -s conftest.err
29724        } && test -s conftest$ac_exeext &&
29725        $as_test_x conftest$ac_exeext; then
29726   ac_cv_lib_expat_XML_ParserCreate=yes
29727 else
29728   echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731         ac_cv_lib_expat_XML_ParserCreate=no
29732 fi
29733
29734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29735       conftest$ac_exeext conftest.$ac_ext
29736 LIBS=$ac_check_lib_save_LIBS
29737 fi
29738 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29739 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29740 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29741   EXPAT_LINK=" -lexpat"
29742 fi
29743
29744             fi
29745         fi
29746         if test "x$EXPAT_LINK" = "x" ; then
29747             if test "$wxUSE_EXPAT" = "sys" ; then
29748                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29749 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29750    { (exit 1); exit 1; }; }
29751             else
29752                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29753 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29754                 wxUSE_EXPAT=builtin
29755             fi
29756         else
29757                         wxUSE_EXPAT=sys
29758         fi
29759     fi
29760     if test "$wxUSE_EXPAT" = "builtin" ; then
29761                 subdirs="$subdirs src/expat"
29762
29763     fi
29764 fi
29765
29766
29767
29768 if test "$wxUSE_LIBMSPACK" != "no"; then
29769     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29770 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29771 if test "${ac_cv_header_mspack_h+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774   cat >conftest.$ac_ext <<_ACEOF
29775 /* confdefs.h.  */
29776 _ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h.  */
29780
29781
29782 #include <mspack.h>
29783 _ACEOF
29784 rm -f conftest.$ac_objext
29785 if { (ac_try="$ac_compile"
29786 case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_compile") 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } && {
29798          test -z "$ac_c_werror_flag" ||
29799          test ! -s conftest.err
29800        } && test -s conftest.$ac_objext; then
29801   ac_cv_header_mspack_h=yes
29802 else
29803   echo "$as_me: failed program was:" >&5
29804 sed 's/^/| /' conftest.$ac_ext >&5
29805
29806         ac_cv_header_mspack_h=no
29807 fi
29808
29809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29810 fi
29811 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29812 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29813 if test $ac_cv_header_mspack_h = yes; then
29814   found_mspack_h=1
29815 fi
29816
29817
29818     if test "x$found_mspack_h" = "x1"; then
29819         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29820 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29821 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29822   echo $ECHO_N "(cached) $ECHO_C" >&6
29823 else
29824   ac_check_lib_save_LIBS=$LIBS
29825 LIBS="-lmspack  $LIBS"
29826 cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832
29833 /* Override any GCC internal prototype to avoid an error.
29834    Use char because int might match the return type of a GCC
29835    builtin and then its argument prototype would still apply.  */
29836 #ifdef __cplusplus
29837 extern "C"
29838 #endif
29839 char mspack_create_chm_decompressor ();
29840 int
29841 main ()
29842 {
29843 return mspack_create_chm_decompressor ();
29844   ;
29845   return 0;
29846 }
29847 _ACEOF
29848 rm -f conftest.$ac_objext conftest$ac_exeext
29849 if { (ac_try="$ac_link"
29850 case "(($ac_try" in
29851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852   *) ac_try_echo=$ac_try;;
29853 esac
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855   (eval "$ac_link") 2>conftest.er1
29856   ac_status=$?
29857   grep -v '^ *+' conftest.er1 >conftest.err
29858   rm -f conftest.er1
29859   cat conftest.err >&5
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); } && {
29862          test -z "$ac_c_werror_flag" ||
29863          test ! -s conftest.err
29864        } && test -s conftest$ac_exeext &&
29865        $as_test_x conftest$ac_exeext; then
29866   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29872 fi
29873
29874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29875       conftest$ac_exeext conftest.$ac_ext
29876 LIBS=$ac_check_lib_save_LIBS
29877 fi
29878 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29879 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29880 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29881   MSPACK_LINK=" -lmspack"
29882 fi
29883
29884     fi
29885     if test "x$MSPACK_LINK" = "x" ; then
29886         wxUSE_LIBMSPACK=no
29887     fi
29888 fi
29889
29890 if test "$wxUSE_LIBMSPACK" != "no"; then
29891     cat >>confdefs.h <<\_ACEOF
29892 #define wxUSE_LIBMSPACK 1
29893 _ACEOF
29894
29895 fi
29896
29897
29898
29899 AFMINSTALL=
29900 WIN32INSTALL=
29901
29902 TOOLKIT=
29903 TOOLKIT_INCLUDE=
29904 WIDGET_SET=
29905
29906 if test "$USE_WIN32" = 1 ; then
29907     { echo "$as_me:$LINENO: checking for w32api.h" >&5
29908 echo $ECHO_N "checking for w32api.h... $ECHO_C" >&6; }
29909 if test "${ac_cv_header_w32api_h+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912   cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h.  */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h.  */
29918
29919
29920 #include <w32api.h>
29921 _ACEOF
29922 rm -f conftest.$ac_objext
29923 if { (ac_try="$ac_compile"
29924 case "(($ac_try" in
29925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926   *) ac_try_echo=$ac_try;;
29927 esac
29928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29929   (eval "$ac_compile") 2>conftest.er1
29930   ac_status=$?
29931   grep -v '^ *+' conftest.er1 >conftest.err
29932   rm -f conftest.er1
29933   cat conftest.err >&5
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); } && {
29936          test -z "$ac_c_werror_flag" ||
29937          test ! -s conftest.err
29938        } && test -s conftest.$ac_objext; then
29939   ac_cv_header_w32api_h=yes
29940 else
29941   echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29943
29944         ac_cv_header_w32api_h=no
29945 fi
29946
29947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29948 fi
29949 { echo "$as_me:$LINENO: result: $ac_cv_header_w32api_h" >&5
29950 echo "${ECHO_T}$ac_cv_header_w32api_h" >&6; }
29951
29952
29953     { echo "$as_me:$LINENO: checking for windows.h" >&5
29954 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29955 if test "${ac_cv_header_windows_h+set}" = set; then
29956   echo $ECHO_N "(cached) $ECHO_C" >&6
29957 else
29958   cat >conftest.$ac_ext <<_ACEOF
29959 /* confdefs.h.  */
29960 _ACEOF
29961 cat confdefs.h >>conftest.$ac_ext
29962 cat >>conftest.$ac_ext <<_ACEOF
29963 /* end confdefs.h.  */
29964
29965
29966 #include <windows.h>
29967 _ACEOF
29968 rm -f conftest.$ac_objext
29969 if { (ac_try="$ac_compile"
29970 case "(($ac_try" in
29971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972   *) ac_try_echo=$ac_try;;
29973 esac
29974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29975   (eval "$ac_compile") 2>conftest.er1
29976   ac_status=$?
29977   grep -v '^ *+' conftest.er1 >conftest.err
29978   rm -f conftest.er1
29979   cat conftest.err >&5
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); } && {
29982          test -z "$ac_c_werror_flag" ||
29983          test ! -s conftest.err
29984        } && test -s conftest.$ac_objext; then
29985   ac_cv_header_windows_h=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990         ac_cv_header_windows_h=no
29991 fi
29992
29993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29994 fi
29995 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29996 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29997 if test $ac_cv_header_windows_h = yes; then
29998   :
29999 else
30000
30001         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30002 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30003    { (exit 1); exit 1; }; }
30004
30005 fi
30006
30007
30008
30009             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30010
30011     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30012         LIBS="$LIBS -loleacc"
30013     fi
30014
30015     case "${host}" in
30016         *-*-cygwin* )
30017                         LIBS="$LIBS -lkernel32 -luser32"
30018     esac
30019
30020         if test "$wxUSE_ODBC" = "sys" ; then
30021         wxUSE_ODBC = "yes"
30022     fi
30023     if test "$wxUSE_ODBC" = "yes" ; then
30024         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30025         cat >>confdefs.h <<\_ACEOF
30026 #define wxUSE_ODBC 1
30027 _ACEOF
30028
30029     fi
30030
30031         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30032     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30033
30034                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30035
30036         WIN32INSTALL=win32install
30037
30038         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30039 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30040 if test "${ac_cv_header_pbt_h+set}" = set; then
30041   echo $ECHO_N "(cached) $ECHO_C" >&6
30042 else
30043   cat >conftest.$ac_ext <<_ACEOF
30044 /* confdefs.h.  */
30045 _ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h.  */
30049
30050
30051 #include <pbt.h>
30052 _ACEOF
30053 rm -f conftest.$ac_objext
30054 if { (ac_try="$ac_compile"
30055 case "(($ac_try" in
30056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057   *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060   (eval "$ac_compile") 2>conftest.er1
30061   ac_status=$?
30062   grep -v '^ *+' conftest.er1 >conftest.err
30063   rm -f conftest.er1
30064   cat conftest.err >&5
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); } && {
30067          test -z "$ac_c_werror_flag" ||
30068          test ! -s conftest.err
30069        } && test -s conftest.$ac_objext; then
30070   ac_cv_header_pbt_h=yes
30071 else
30072   echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30074
30075         ac_cv_header_pbt_h=no
30076 fi
30077
30078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30079 fi
30080 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30081 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30082 if test $ac_cv_header_pbt_h = yes; then
30083   :
30084 else
30085   cat >>confdefs.h <<\_ACEOF
30086 #define NEED_PBT_H 1
30087 _ACEOF
30088
30089 fi
30090
30091
30092 fi
30093
30094 if test "$wxUSE_GUI" = "yes"; then
30095     USE_GUI=1
30096
30097     GUI_TK_LIBRARY=
30098
30099     WXGTK12=
30100     WXGTK127=
30101     WXGTK20=
30102     WXGPE=
30103
30104     if test "$wxUSE_COCOA" = 1 ; then
30105         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30106             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30107 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30108             wxUSE_PRINTING_ARCHITECTURE=no
30109         fi
30110         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30111             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30112 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30113             wxUSE_DRAG_AND_DROP=no
30114         fi
30115         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30116             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30117 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30118             wxUSE_DRAGIMAGE=no
30119         fi
30120     fi
30121
30122     if test "$wxUSE_MSW" = 1 ; then
30123         TOOLKIT=MSW
30124         GUIDIST=MSW_DIST
30125
30126                 case "${host}" in
30127             *-*-mingw32* )
30128                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30129         esac
30130     fi
30131
30132     if test "$wxUSE_GTK" = 1; then
30133                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30134 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30135
30136         gtk_version_cached=1
30137         if test "${wx_cv_lib_gtk+set}" = set; then
30138   echo $ECHO_N "(cached) $ECHO_C" >&6
30139 else
30140
30141                                                 gtk_version_cached=0
30142                 { echo "$as_me:$LINENO: result: " >&5
30143 echo "${ECHO_T}" >&6; }
30144
30145                                                 GTK_MODULES=
30146                 if test "$wxUSE_THREADS" = "yes"; then
30147                     GTK_MODULES=gthread
30148                 fi
30149
30150                                 wx_cv_lib_gtk=
30151                 if test "x$wxGTK_VERSION" != "x1"
30152                 then
30153                                                                                 case "${host}" in
30154                         *-*-solaris2* )
30155                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30156                                 enable_gtktest=no
30157                             fi
30158                     esac
30159
30160                     # Check whether --enable-gtktest was given.
30161 if test "${enable_gtktest+set}" = set; then
30162   enableval=$enable_gtktest;
30163 else
30164   enable_gtktest=yes
30165 fi
30166
30167
30168   pkg_config_args=gtk+-2.0
30169   for module in . $GTK_MODULES
30170   do
30171       case "$module" in
30172          gthread)
30173              pkg_config_args="$pkg_config_args gthread-2.0"
30174          ;;
30175       esac
30176   done
30177
30178   no_gtk=""
30179
30180   # Extract the first word of "pkg-config", so it can be a program name with args.
30181 set dummy pkg-config; ac_word=$2
30182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30185   echo $ECHO_N "(cached) $ECHO_C" >&6
30186 else
30187   case $PKG_CONFIG in
30188   [\\/]* | ?:[\\/]*)
30189   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30190   ;;
30191   *)
30192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30193 for as_dir in $PATH
30194 do
30195   IFS=$as_save_IFS
30196   test -z "$as_dir" && as_dir=.
30197   for ac_exec_ext in '' $ac_executable_extensions; do
30198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30199     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30201     break 2
30202   fi
30203 done
30204 done
30205 IFS=$as_save_IFS
30206
30207   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30208   ;;
30209 esac
30210 fi
30211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30212 if test -n "$PKG_CONFIG"; then
30213   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30214 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30215 else
30216   { echo "$as_me:$LINENO: result: no" >&5
30217 echo "${ECHO_T}no" >&6; }
30218 fi
30219
30220
30221
30222   if test x$PKG_CONFIG != xno ; then
30223     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30224       :
30225     else
30226       echo "*** pkg-config too old; version 0.7 or better required."
30227       no_gtk=yes
30228       PKG_CONFIG=no
30229     fi
30230   else
30231     no_gtk=yes
30232   fi
30233
30234   min_gtk_version=2.0.0
30235   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30236 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30237
30238   if test x$PKG_CONFIG != xno ; then
30239     ## don't try to run the test against uninstalled libtool libs
30240     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30241           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30242           enable_gtktest=no
30243     fi
30244
30245     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30246           :
30247     else
30248           no_gtk=yes
30249     fi
30250   fi
30251
30252   if test x"$no_gtk" = x ; then
30253     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30254     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30255     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30256            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30257     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30258            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30259     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30260            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30261     if test "x$enable_gtktest" = "xyes" ; then
30262       ac_save_CFLAGS="$CFLAGS"
30263       ac_save_LIBS="$LIBS"
30264       CFLAGS="$CFLAGS $GTK_CFLAGS"
30265       LIBS="$GTK_LIBS $LIBS"
30266       rm -f conf.gtktest
30267       if test "$cross_compiling" = yes; then
30268   echo $ac_n "cross compiling; assumed OK... $ac_c"
30269 else
30270   cat >conftest.$ac_ext <<_ACEOF
30271 /* confdefs.h.  */
30272 _ACEOF
30273 cat confdefs.h >>conftest.$ac_ext
30274 cat >>conftest.$ac_ext <<_ACEOF
30275 /* end confdefs.h.  */
30276
30277 #include <gtk/gtk.h>
30278 #include <stdio.h>
30279 #include <stdlib.h>
30280
30281 int
30282 main ()
30283 {
30284   int major, minor, micro;
30285   char *tmp_version;
30286
30287   system ("touch conf.gtktest");
30288
30289   /* HP/UX 9 (%@#!) writes to sscanf strings */
30290   tmp_version = g_strdup("$min_gtk_version");
30291   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30292      printf("%s, bad version string\n", "$min_gtk_version");
30293      exit(1);
30294    }
30295
30296   if ((gtk_major_version != $gtk_config_major_version) ||
30297       (gtk_minor_version != $gtk_config_minor_version) ||
30298       (gtk_micro_version != $gtk_config_micro_version))
30299     {
30300       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30301              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30302              gtk_major_version, gtk_minor_version, gtk_micro_version);
30303       printf ("*** was found! If pkg-config was correct, then it is best\n");
30304       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30305       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30306       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30307       printf("*** required on your system.\n");
30308       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30309       printf("*** to point to the correct configuration files\n");
30310     }
30311   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30312            (gtk_minor_version != GTK_MINOR_VERSION) ||
30313            (gtk_micro_version != GTK_MICRO_VERSION))
30314     {
30315       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30316              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30317       printf("*** library (version %d.%d.%d)\n",
30318              gtk_major_version, gtk_minor_version, gtk_micro_version);
30319     }
30320   else
30321     {
30322       if ((gtk_major_version > major) ||
30323         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30324         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30325       {
30326         return 0;
30327        }
30328      else
30329       {
30330         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30331                gtk_major_version, gtk_minor_version, gtk_micro_version);
30332         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30333                major, minor, micro);
30334         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30335         printf("***\n");
30336         printf("*** If you have already installed a sufficiently new version, this error\n");
30337         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30338         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30339         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30340         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30341         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30342         printf("*** so that the correct libraries are found at run-time))\n");
30343       }
30344     }
30345   return 1;
30346 }
30347
30348 _ACEOF
30349 rm -f conftest$ac_exeext
30350 if { (ac_try="$ac_link"
30351 case "(($ac_try" in
30352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353   *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356   (eval "$ac_link") 2>&5
30357   ac_status=$?
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30360   { (case "(($ac_try" in
30361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30362   *) ac_try_echo=$ac_try;;
30363 esac
30364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30365   (eval "$ac_try") 2>&5
30366   ac_status=$?
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); }; }; then
30369   :
30370 else
30371   echo "$as_me: program exited with status $ac_status" >&5
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30374
30375 ( exit $ac_status )
30376 no_gtk=yes
30377 fi
30378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30379 fi
30380
30381
30382        CFLAGS="$ac_save_CFLAGS"
30383        LIBS="$ac_save_LIBS"
30384      fi
30385   fi
30386   if test "x$no_gtk" = x ; then
30387      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30388 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30389      wx_cv_lib_gtk=2.0
30390   else
30391      { echo "$as_me:$LINENO: result: no" >&5
30392 echo "${ECHO_T}no" >&6; }
30393      if test "$PKG_CONFIG" = "no" ; then
30394        echo "*** A new enough version of pkg-config was not found."
30395        echo "*** See http://pkgconfig.sourceforge.net"
30396      else
30397        if test -f conf.gtktest ; then
30398         :
30399        else
30400           echo "*** Could not run GTK+ test program, checking why..."
30401           ac_save_CFLAGS="$CFLAGS"
30402           ac_save_LIBS="$LIBS"
30403           CFLAGS="$CFLAGS $GTK_CFLAGS"
30404           LIBS="$LIBS $GTK_LIBS"
30405           cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 #include <gtk/gtk.h>
30413 #include <stdio.h>
30414
30415 int
30416 main ()
30417 {
30418  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30419   ;
30420   return 0;
30421 }
30422 _ACEOF
30423 rm -f conftest.$ac_objext conftest$ac_exeext
30424 if { (ac_try="$ac_link"
30425 case "(($ac_try" in
30426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427   *) ac_try_echo=$ac_try;;
30428 esac
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430   (eval "$ac_link") 2>conftest.er1
30431   ac_status=$?
30432   grep -v '^ *+' conftest.er1 >conftest.err
30433   rm -f conftest.er1
30434   cat conftest.err >&5
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); } && {
30437          test -z "$ac_c_werror_flag" ||
30438          test ! -s conftest.err
30439        } && test -s conftest$ac_exeext &&
30440        $as_test_x conftest$ac_exeext; then
30441    echo "*** The test program compiled, but did not run. This usually means"
30442           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30443           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30444           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30445           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30446           echo "*** is required on your system"
30447           echo "***"
30448           echo "*** If you have an old version installed, it is best to remove it, although"
30449           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30450 else
30451   echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30453
30454          echo "*** The test program failed to compile or link. See the file config.log for the"
30455           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459       conftest$ac_exeext conftest.$ac_ext
30460           CFLAGS="$ac_save_CFLAGS"
30461           LIBS="$ac_save_LIBS"
30462        fi
30463      fi
30464      GTK_CFLAGS=""
30465      GTK_LIBS=""
30466      :
30467   fi
30468
30469
30470   rm -f conf.gtktest
30471
30472
30473                                         case "${host}" in
30474                         *-*-solaris2* )
30475                             if test "$wxUSE_SHARED" != "yes"; then
30476                                 GTK_LIBS="$GTK_LIBS -lX11"
30477                             fi
30478                     esac
30479                 fi
30480
30481                                 if test -z "$wx_cv_lib_gtk"; then
30482                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30483
30484 # Check whether --with-gtk-prefix was given.
30485 if test "${with_gtk_prefix+set}" = set; then
30486   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30487 else
30488   gtk_config_prefix=""
30489 fi
30490
30491
30492 # Check whether --with-gtk-exec-prefix was given.
30493 if test "${with_gtk_exec_prefix+set}" = set; then
30494   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30495 else
30496   gtk_config_exec_prefix=""
30497 fi
30498
30499 # Check whether --enable-gtktest was given.
30500 if test "${enable_gtktest+set}" = set; then
30501   enableval=$enable_gtktest;
30502 else
30503   enable_gtktest=yes
30504 fi
30505
30506
30507   for module in . $GTK_MODULES
30508   do
30509       case "$module" in
30510          gthread)
30511              gtk_config_args="$gtk_config_args gthread"
30512          ;;
30513       esac
30514   done
30515
30516   if test x$gtk_config_exec_prefix != x ; then
30517      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30518      if test x${GTK_CONFIG+set} != xset ; then
30519         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30520      fi
30521   fi
30522   if test x$gtk_config_prefix != x ; then
30523      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30524      if test x${GTK_CONFIG+set} != xset ; then
30525         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30526      fi
30527   fi
30528
30529   # Extract the first word of "gtk-config", so it can be a program name with args.
30530 set dummy gtk-config; ac_word=$2
30531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30533 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30534   echo $ECHO_N "(cached) $ECHO_C" >&6
30535 else
30536   case $GTK_CONFIG in
30537   [\\/]* | ?:[\\/]*)
30538   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30539   ;;
30540   *)
30541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30542 for as_dir in $PATH
30543 do
30544   IFS=$as_save_IFS
30545   test -z "$as_dir" && as_dir=.
30546   for ac_exec_ext in '' $ac_executable_extensions; do
30547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30548     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30550     break 2
30551   fi
30552 done
30553 done
30554 IFS=$as_save_IFS
30555
30556   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30557   ;;
30558 esac
30559 fi
30560 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30561 if test -n "$GTK_CONFIG"; then
30562   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30563 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30564 else
30565   { echo "$as_me:$LINENO: result: no" >&5
30566 echo "${ECHO_T}no" >&6; }
30567 fi
30568
30569
30570   min_gtk_version=1.2.7
30571   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30572 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30573   no_gtk=""
30574   if test "$GTK_CONFIG" = "no" ; then
30575     no_gtk=yes
30576   else
30577     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30578     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30579     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30580            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30581     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30582            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30583     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30584            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30585     if test "x$enable_gtktest" = "xyes" ; then
30586       ac_save_CFLAGS="$CFLAGS"
30587       ac_save_LIBS="$LIBS"
30588       CFLAGS="$CFLAGS $GTK_CFLAGS"
30589       LIBS="$GTK_LIBS $LIBS"
30590       rm -f conf.gtktest
30591       if test "$cross_compiling" = yes; then
30592   echo $ac_n "cross compiling; assumed OK... $ac_c"
30593 else
30594   cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600
30601 #include <gtk/gtk.h>
30602 #include <stdio.h>
30603 #include <stdlib.h>
30604
30605 int
30606 main ()
30607 {
30608   int major, minor, micro;
30609   char *tmp_version;
30610
30611   system ("touch conf.gtktest");
30612
30613   /* HP/UX 9 (%@#!) writes to sscanf strings */
30614   tmp_version = g_strdup("$min_gtk_version");
30615   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30616      printf("%s, bad version string\n", "$min_gtk_version");
30617      exit(1);
30618    }
30619
30620   if ((gtk_major_version != $gtk_config_major_version) ||
30621       (gtk_minor_version != $gtk_config_minor_version) ||
30622       (gtk_micro_version != $gtk_config_micro_version))
30623     {
30624       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30625              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30626              gtk_major_version, gtk_minor_version, gtk_micro_version);
30627       printf ("*** was found! If gtk-config was correct, then it is best\n");
30628       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30629       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30630       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30631       printf("*** required on your system.\n");
30632       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30633       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30634       printf("*** before re-running configure\n");
30635     }
30636 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30637   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30638            (gtk_minor_version != GTK_MINOR_VERSION) ||
30639            (gtk_micro_version != GTK_MICRO_VERSION))
30640     {
30641       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30642              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30643       printf("*** library (version %d.%d.%d)\n",
30644              gtk_major_version, gtk_minor_version, gtk_micro_version);
30645     }
30646 #endif /* defined (GTK_MAJOR_VERSION) ... */
30647   else
30648     {
30649       if ((gtk_major_version > major) ||
30650         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30651         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30652       {
30653         return 0;
30654        }
30655      else
30656       {
30657         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30658                gtk_major_version, gtk_minor_version, gtk_micro_version);
30659         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30660                major, minor, micro);
30661         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30662         printf("***\n");
30663         printf("*** If you have already installed a sufficiently new version, this error\n");
30664         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30665         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30666         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30667         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30668         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30669         printf("*** so that the correct libraries are found at run-time))\n");
30670       }
30671     }
30672   return 1;
30673 }
30674
30675 _ACEOF
30676 rm -f conftest$ac_exeext
30677 if { (ac_try="$ac_link"
30678 case "(($ac_try" in
30679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680   *) ac_try_echo=$ac_try;;
30681 esac
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683   (eval "$ac_link") 2>&5
30684   ac_status=$?
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30687   { (case "(($ac_try" in
30688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689   *) ac_try_echo=$ac_try;;
30690 esac
30691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692   (eval "$ac_try") 2>&5
30693   ac_status=$?
30694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695   (exit $ac_status); }; }; then
30696   :
30697 else
30698   echo "$as_me: program exited with status $ac_status" >&5
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702 ( exit $ac_status )
30703 no_gtk=yes
30704 fi
30705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30706 fi
30707
30708
30709        CFLAGS="$ac_save_CFLAGS"
30710        LIBS="$ac_save_LIBS"
30711      fi
30712   fi
30713   if test "x$no_gtk" = x ; then
30714      { echo "$as_me:$LINENO: result: yes" >&5
30715 echo "${ECHO_T}yes" >&6; }
30716      wx_cv_lib_gtk=1.2.7
30717   else
30718      { echo "$as_me:$LINENO: result: no" >&5
30719 echo "${ECHO_T}no" >&6; }
30720      if test "$GTK_CONFIG" = "no" ; then
30721        echo "*** The gtk-config script installed by GTK could not be found"
30722        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30723        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30724        echo "*** full path to gtk-config."
30725      else
30726        if test -f conf.gtktest ; then
30727         :
30728        else
30729           echo "*** Could not run GTK test program, checking why..."
30730           CFLAGS="$CFLAGS $GTK_CFLAGS"
30731           LIBS="$LIBS $GTK_LIBS"
30732           cat >conftest.$ac_ext <<_ACEOF
30733 /* confdefs.h.  */
30734 _ACEOF
30735 cat confdefs.h >>conftest.$ac_ext
30736 cat >>conftest.$ac_ext <<_ACEOF
30737 /* end confdefs.h.  */
30738
30739 #include <gtk/gtk.h>
30740 #include <stdio.h>
30741
30742 int
30743 main ()
30744 {
30745  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30746   ;
30747   return 0;
30748 }
30749 _ACEOF
30750 rm -f conftest.$ac_objext conftest$ac_exeext
30751 if { (ac_try="$ac_link"
30752 case "(($ac_try" in
30753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754   *) ac_try_echo=$ac_try;;
30755 esac
30756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30757   (eval "$ac_link") 2>conftest.er1
30758   ac_status=$?
30759   grep -v '^ *+' conftest.er1 >conftest.err
30760   rm -f conftest.er1
30761   cat conftest.err >&5
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); } && {
30764          test -z "$ac_c_werror_flag" ||
30765          test ! -s conftest.err
30766        } && test -s conftest$ac_exeext &&
30767        $as_test_x conftest$ac_exeext; then
30768    echo "*** The test program compiled, but did not run. This usually means"
30769           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30770           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30771           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30772           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30773           echo "*** is required on your system"
30774           echo "***"
30775           echo "*** If you have an old version installed, it is best to remove it, although"
30776           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30777           echo "***"
30778           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30779           echo "*** came with the system with the command"
30780           echo "***"
30781           echo "***    rpm --erase --nodeps gtk gtk-devel"
30782 else
30783   echo "$as_me: failed program was:" >&5
30784 sed 's/^/| /' conftest.$ac_ext >&5
30785
30786          echo "*** The test program failed to compile or link. See the file config.log for the"
30787           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30788           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30789           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30790 fi
30791
30792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30793       conftest$ac_exeext conftest.$ac_ext
30794           CFLAGS="$ac_save_CFLAGS"
30795           LIBS="$ac_save_LIBS"
30796        fi
30797      fi
30798      GTK_CFLAGS=""
30799      GTK_LIBS=""
30800      :
30801   fi
30802
30803
30804   rm -f conf.gtktest
30805
30806
30807                         if test -z "$wx_cv_lib_gtk"; then
30808
30809 # Check whether --with-gtk-prefix was given.
30810 if test "${with_gtk_prefix+set}" = set; then
30811   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30812 else
30813   gtk_config_prefix=""
30814 fi
30815
30816
30817 # Check whether --with-gtk-exec-prefix was given.
30818 if test "${with_gtk_exec_prefix+set}" = set; then
30819   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30820 else
30821   gtk_config_exec_prefix=""
30822 fi
30823
30824 # Check whether --enable-gtktest was given.
30825 if test "${enable_gtktest+set}" = set; then
30826   enableval=$enable_gtktest;
30827 else
30828   enable_gtktest=yes
30829 fi
30830
30831
30832   for module in . $GTK_MODULES
30833   do
30834       case "$module" in
30835          gthread)
30836              gtk_config_args="$gtk_config_args gthread"
30837          ;;
30838       esac
30839   done
30840
30841   if test x$gtk_config_exec_prefix != x ; then
30842      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30843      if test x${GTK_CONFIG+set} != xset ; then
30844         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30845      fi
30846   fi
30847   if test x$gtk_config_prefix != x ; then
30848      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30849      if test x${GTK_CONFIG+set} != xset ; then
30850         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30851      fi
30852   fi
30853
30854   # Extract the first word of "gtk-config", so it can be a program name with args.
30855 set dummy gtk-config; ac_word=$2
30856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30858 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30859   echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861   case $GTK_CONFIG in
30862   [\\/]* | ?:[\\/]*)
30863   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30864   ;;
30865   *)
30866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867 for as_dir in $PATH
30868 do
30869   IFS=$as_save_IFS
30870   test -z "$as_dir" && as_dir=.
30871   for ac_exec_ext in '' $ac_executable_extensions; do
30872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30875     break 2
30876   fi
30877 done
30878 done
30879 IFS=$as_save_IFS
30880
30881   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30882   ;;
30883 esac
30884 fi
30885 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30886 if test -n "$GTK_CONFIG"; then
30887   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30888 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30889 else
30890   { echo "$as_me:$LINENO: result: no" >&5
30891 echo "${ECHO_T}no" >&6; }
30892 fi
30893
30894
30895   min_gtk_version=1.2.3
30896   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30897 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30898   no_gtk=""
30899   if test "$GTK_CONFIG" = "no" ; then
30900     no_gtk=yes
30901   else
30902     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30903     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30904     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30905            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30906     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30907            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30908     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30909            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30910     if test "x$enable_gtktest" = "xyes" ; then
30911       ac_save_CFLAGS="$CFLAGS"
30912       ac_save_LIBS="$LIBS"
30913       CFLAGS="$CFLAGS $GTK_CFLAGS"
30914       LIBS="$GTK_LIBS $LIBS"
30915       rm -f conf.gtktest
30916       if test "$cross_compiling" = yes; then
30917   echo $ac_n "cross compiling; assumed OK... $ac_c"
30918 else
30919   cat >conftest.$ac_ext <<_ACEOF
30920 /* confdefs.h.  */
30921 _ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h.  */
30925
30926 #include <gtk/gtk.h>
30927 #include <stdio.h>
30928 #include <stdlib.h>
30929
30930 int
30931 main ()
30932 {
30933   int major, minor, micro;
30934   char *tmp_version;
30935
30936   system ("touch conf.gtktest");
30937
30938   /* HP/UX 9 (%@#!) writes to sscanf strings */
30939   tmp_version = g_strdup("$min_gtk_version");
30940   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30941      printf("%s, bad version string\n", "$min_gtk_version");
30942      exit(1);
30943    }
30944
30945   if ((gtk_major_version != $gtk_config_major_version) ||
30946       (gtk_minor_version != $gtk_config_minor_version) ||
30947       (gtk_micro_version != $gtk_config_micro_version))
30948     {
30949       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30950              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30951              gtk_major_version, gtk_minor_version, gtk_micro_version);
30952       printf ("*** was found! If gtk-config was correct, then it is best\n");
30953       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30954       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30955       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30956       printf("*** required on your system.\n");
30957       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30958       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30959       printf("*** before re-running configure\n");
30960     }
30961 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30962   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30963            (gtk_minor_version != GTK_MINOR_VERSION) ||
30964            (gtk_micro_version != GTK_MICRO_VERSION))
30965     {
30966       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30967              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30968       printf("*** library (version %d.%d.%d)\n",
30969              gtk_major_version, gtk_minor_version, gtk_micro_version);
30970     }
30971 #endif /* defined (GTK_MAJOR_VERSION) ... */
30972   else
30973     {
30974       if ((gtk_major_version > major) ||
30975         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30976         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30977       {
30978         return 0;
30979        }
30980      else
30981       {
30982         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30983                gtk_major_version, gtk_minor_version, gtk_micro_version);
30984         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30985                major, minor, micro);
30986         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30987         printf("***\n");
30988         printf("*** If you have already installed a sufficiently new version, this error\n");
30989         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30990         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30991         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30992         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30993         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30994         printf("*** so that the correct libraries are found at run-time))\n");
30995       }
30996     }
30997   return 1;
30998 }
30999
31000 _ACEOF
31001 rm -f conftest$ac_exeext
31002 if { (ac_try="$ac_link"
31003 case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008   (eval "$ac_link") 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31012   { (case "(($ac_try" in
31013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014   *) ac_try_echo=$ac_try;;
31015 esac
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017   (eval "$ac_try") 2>&5
31018   ac_status=$?
31019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020   (exit $ac_status); }; }; then
31021   :
31022 else
31023   echo "$as_me: program exited with status $ac_status" >&5
31024 echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027 ( exit $ac_status )
31028 no_gtk=yes
31029 fi
31030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31031 fi
31032
31033
31034        CFLAGS="$ac_save_CFLAGS"
31035        LIBS="$ac_save_LIBS"
31036      fi
31037   fi
31038   if test "x$no_gtk" = x ; then
31039      { echo "$as_me:$LINENO: result: yes" >&5
31040 echo "${ECHO_T}yes" >&6; }
31041      wx_cv_lib_gtk=1.2.3
31042   else
31043      { echo "$as_me:$LINENO: result: no" >&5
31044 echo "${ECHO_T}no" >&6; }
31045      if test "$GTK_CONFIG" = "no" ; then
31046        echo "*** The gtk-config script installed by GTK could not be found"
31047        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31048        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31049        echo "*** full path to gtk-config."
31050      else
31051        if test -f conf.gtktest ; then
31052         :
31053        else
31054           echo "*** Could not run GTK test program, checking why..."
31055           CFLAGS="$CFLAGS $GTK_CFLAGS"
31056           LIBS="$LIBS $GTK_LIBS"
31057           cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h.  */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h.  */
31063
31064 #include <gtk/gtk.h>
31065 #include <stdio.h>
31066
31067 int
31068 main ()
31069 {
31070  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31071   ;
31072   return 0;
31073 }
31074 _ACEOF
31075 rm -f conftest.$ac_objext conftest$ac_exeext
31076 if { (ac_try="$ac_link"
31077 case "(($ac_try" in
31078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079   *) ac_try_echo=$ac_try;;
31080 esac
31081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31082   (eval "$ac_link") 2>conftest.er1
31083   ac_status=$?
31084   grep -v '^ *+' conftest.er1 >conftest.err
31085   rm -f conftest.er1
31086   cat conftest.err >&5
31087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088   (exit $ac_status); } && {
31089          test -z "$ac_c_werror_flag" ||
31090          test ! -s conftest.err
31091        } && test -s conftest$ac_exeext &&
31092        $as_test_x conftest$ac_exeext; then
31093    echo "*** The test program compiled, but did not run. This usually means"
31094           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31095           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31096           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31097           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31098           echo "*** is required on your system"
31099           echo "***"
31100           echo "*** If you have an old version installed, it is best to remove it, although"
31101           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31102           echo "***"
31103           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31104           echo "*** came with the system with the command"
31105           echo "***"
31106           echo "***    rpm --erase --nodeps gtk gtk-devel"
31107 else
31108   echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31110
31111          echo "*** The test program failed to compile or link. See the file config.log for the"
31112           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31113           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31114           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31115 fi
31116
31117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31118       conftest$ac_exeext conftest.$ac_ext
31119           CFLAGS="$ac_save_CFLAGS"
31120           LIBS="$ac_save_LIBS"
31121        fi
31122      fi
31123      GTK_CFLAGS=""
31124      GTK_LIBS=""
31125      :
31126   fi
31127
31128
31129   rm -f conf.gtktest
31130
31131                         fi
31132                     fi
31133                 fi
31134
31135                 if test -z "$wx_cv_lib_gtk"; then
31136                                         wx_cv_lib_gtk=none
31137                 else
31138                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31139                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31140                 fi
31141
31142
31143 fi
31144
31145
31146                         if test "$gtk_version_cached" = 1; then
31147             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31148 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31149         fi
31150
31151         case "$wx_cv_lib_gtk" in
31152             2.0)    WXGTK20=1
31153                     TOOLKIT_VERSION=2
31154                     ;;
31155             1.2.7)  WXGTK127=1
31156                     WXGTK12=1
31157                     ;;
31158             1.2.3)  WXGTK12=1
31159                     ;;
31160             *)      { { echo "$as_me:$LINENO: error:
31161 The development files for GTK+ were not found. For GTK+ 2, please
31162 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31163 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31164 and that the version is 1.2.3 or above. Also check that the
31165 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31166 --libs' are in the LD_LIBRARY_PATH or equivalent.
31167                             " >&5
31168 echo "$as_me: error:
31169 The development files for GTK+ were not found. For GTK+ 2, please
31170 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31171 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31172 and that the version is 1.2.3 or above. Also check that the
31173 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31174 --libs' are in the LD_LIBRARY_PATH or equivalent.
31175                             " >&2;}
31176    { (exit 1); exit 1; }; }
31177                     ;;
31178         esac
31179
31180         if test "$WXGTK20" = 1; then
31181             save_CFLAGS="$CFLAGS"
31182             save_LIBS="$LIBS"
31183             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31184             LIBS="$LIBS $wx_cv_libs_gtk"
31185
31186                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31187 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31188 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 else
31191   cat >conftest.$ac_ext <<_ACEOF
31192 /* confdefs.h.  */
31193 _ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h.  */
31197 #include <gtk/gtk.h>
31198
31199 int
31200 main ()
31201 {
31202 #ifndef gtk_icon_size_lookup
31203   (void) gtk_icon_size_lookup;
31204 #endif
31205
31206   ;
31207   return 0;
31208 }
31209 _ACEOF
31210 rm -f conftest.$ac_objext
31211 if { (ac_try="$ac_compile"
31212 case "(($ac_try" in
31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214   *) ac_try_echo=$ac_try;;
31215 esac
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217   (eval "$ac_compile") 2>conftest.er1
31218   ac_status=$?
31219   grep -v '^ *+' conftest.er1 >conftest.err
31220   rm -f conftest.er1
31221   cat conftest.err >&5
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); } && {
31224          test -z "$ac_c_werror_flag" ||
31225          test ! -s conftest.err
31226        } && test -s conftest.$ac_objext; then
31227   ac_cv_have_decl_gtk_icon_size_lookup=yes
31228 else
31229   echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232         ac_cv_have_decl_gtk_icon_size_lookup=no
31233 fi
31234
31235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31236 fi
31237 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31238 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31239 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31240
31241 cat >>confdefs.h <<_ACEOF
31242 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31243 _ACEOF
31244
31245
31246 else
31247   cat >>confdefs.h <<_ACEOF
31248 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31249 _ACEOF
31250
31251 cat >>confdefs.h <<\_ACEOF
31252 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31253 _ACEOF
31254
31255 fi
31256
31257
31258
31259
31260                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31261 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31262             cat >conftest.$ac_ext <<_ACEOF
31263 /* confdefs.h.  */
31264 _ACEOF
31265 cat confdefs.h >>conftest.$ac_ext
31266 cat >>conftest.$ac_ext <<_ACEOF
31267 /* end confdefs.h.  */
31268
31269                             #include <gtk/gtk.h>
31270
31271 int
31272 main ()
31273 {
31274
31275                             #if !GTK_CHECK_VERSION(2,10,0)
31276                             Not GTK+ 2.10
31277                             #endif
31278
31279   ;
31280   return 0;
31281 }
31282 _ACEOF
31283 rm -f conftest.$ac_objext
31284 if { (ac_try="$ac_compile"
31285 case "(($ac_try" in
31286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287   *) ac_try_echo=$ac_try;;
31288 esac
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290   (eval "$ac_compile") 2>conftest.er1
31291   ac_status=$?
31292   grep -v '^ *+' conftest.er1 >conftest.err
31293   rm -f conftest.er1
31294   cat conftest.err >&5
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); } && {
31297          test -z "$ac_c_werror_flag" ||
31298          test ! -s conftest.err
31299        } && test -s conftest.$ac_objext; then
31300
31301                             cat >>confdefs.h <<\_ACEOF
31302 #define __WXGTK210__ 1
31303 _ACEOF
31304
31305                             cat >>confdefs.h <<\_ACEOF
31306 #define __WXGTK26__ 1
31307 _ACEOF
31308
31309                             cat >>confdefs.h <<\_ACEOF
31310 #define __WXGTK24__ 1
31311 _ACEOF
31312
31313                             { echo "$as_me:$LINENO: result: yes" >&5
31314 echo "${ECHO_T}yes" >&6; }
31315                             ac_wxgtk210=1
31316
31317 else
31318   echo "$as_me: failed program was:" >&5
31319 sed 's/^/| /' conftest.$ac_ext >&5
31320
31321
31322                             { echo "$as_me:$LINENO: result: no" >&5
31323 echo "${ECHO_T}no" >&6; }
31324                             ac_wxgtk210=0
31325
31326 fi
31327
31328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31329
31330             if test "$ac_wxgtk210" = 0; then
31331                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31332 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31333                 cat >conftest.$ac_ext <<_ACEOF
31334 /* confdefs.h.  */
31335 _ACEOF
31336 cat confdefs.h >>conftest.$ac_ext
31337 cat >>conftest.$ac_ext <<_ACEOF
31338 /* end confdefs.h.  */
31339
31340                                 #include <gtk/gtk.h>
31341
31342 int
31343 main ()
31344 {
31345
31346                                 #if !GTK_CHECK_VERSION(2,6,0)
31347                                 Not GTK+ 2.6
31348                                 #endif
31349
31350   ;
31351   return 0;
31352 }
31353 _ACEOF
31354 rm -f conftest.$ac_objext
31355 if { (ac_try="$ac_compile"
31356 case "(($ac_try" in
31357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31358   *) ac_try_echo=$ac_try;;
31359 esac
31360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31361   (eval "$ac_compile") 2>conftest.er1
31362   ac_status=$?
31363   grep -v '^ *+' conftest.er1 >conftest.err
31364   rm -f conftest.er1
31365   cat conftest.err >&5
31366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367   (exit $ac_status); } && {
31368          test -z "$ac_c_werror_flag" ||
31369          test ! -s conftest.err
31370        } && test -s conftest.$ac_objext; then
31371
31372                                 cat >>confdefs.h <<\_ACEOF
31373 #define __WXGTK26__ 1
31374 _ACEOF
31375
31376                                 cat >>confdefs.h <<\_ACEOF
31377 #define __WXGTK24__ 1
31378 _ACEOF
31379
31380                                 { echo "$as_me:$LINENO: result: yes" >&5
31381 echo "${ECHO_T}yes" >&6; }
31382                                 ac_wxgtk26=1
31383
31384 else
31385   echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31387
31388
31389                                 { echo "$as_me:$LINENO: result: no" >&5
31390 echo "${ECHO_T}no" >&6; }
31391                                 ac_wxgtk26=0
31392
31393 fi
31394
31395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396             fi
31397
31398             if test "$ac_wxgtk26" = 0; then
31399                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31400 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31401                 cat >conftest.$ac_ext <<_ACEOF
31402 /* confdefs.h.  */
31403 _ACEOF
31404 cat confdefs.h >>conftest.$ac_ext
31405 cat >>conftest.$ac_ext <<_ACEOF
31406 /* end confdefs.h.  */
31407
31408                                 #include <gtk/gtk.h>
31409
31410 int
31411 main ()
31412 {
31413
31414                                 #if !GTK_CHECK_VERSION(2,4,0)
31415                                 Not GTK+ 2.4
31416                                 #endif
31417
31418   ;
31419   return 0;
31420 }
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426   *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429   (eval "$ac_compile") 2>conftest.er1
31430   ac_status=$?
31431   grep -v '^ *+' conftest.er1 >conftest.err
31432   rm -f conftest.er1
31433   cat conftest.err >&5
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } && {
31436          test -z "$ac_c_werror_flag" ||
31437          test ! -s conftest.err
31438        } && test -s conftest.$ac_objext; then
31439
31440                                 cat >>confdefs.h <<\_ACEOF
31441 #define __WXGTK24__ 1
31442 _ACEOF
31443
31444                                 { echo "$as_me:$LINENO: result: yes" >&5
31445 echo "${ECHO_T}yes" >&6; }
31446
31447 else
31448   echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451
31452                                 { echo "$as_me:$LINENO: result: no" >&5
31453 echo "${ECHO_T}no" >&6; }
31454
31455 fi
31456
31457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31458             fi
31459
31460             CFLAGS="$save_CFLAGS"
31461             LIBS="$save_LIBS"
31462         else
31463             if test "$wxUSE_UNICODE" = "yes"; then
31464                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31465 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31466                 wxUSE_UNICODE=no
31467             fi
31468
31469                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31470 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31471 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31472   echo $ECHO_N "(cached) $ECHO_C" >&6
31473 else
31474   ac_check_lib_save_LIBS=$LIBS
31475 LIBS="-lgdk  $LIBS"
31476 cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h.  */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h.  */
31482
31483 /* Override any GCC internal prototype to avoid an error.
31484    Use char because int might match the return type of a GCC
31485    builtin and then its argument prototype would still apply.  */
31486 #ifdef __cplusplus
31487 extern "C"
31488 #endif
31489 char gdk_im_open ();
31490 int
31491 main ()
31492 {
31493 return gdk_im_open ();
31494   ;
31495   return 0;
31496 }
31497 _ACEOF
31498 rm -f conftest.$ac_objext conftest$ac_exeext
31499 if { (ac_try="$ac_link"
31500 case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_link") 2>conftest.er1
31506   ac_status=$?
31507   grep -v '^ *+' conftest.er1 >conftest.err
31508   rm -f conftest.er1
31509   cat conftest.err >&5
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); } && {
31512          test -z "$ac_c_werror_flag" ||
31513          test ! -s conftest.err
31514        } && test -s conftest$ac_exeext &&
31515        $as_test_x conftest$ac_exeext; then
31516   ac_cv_lib_gdk_gdk_im_open=yes
31517 else
31518   echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31520
31521         ac_cv_lib_gdk_gdk_im_open=no
31522 fi
31523
31524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31525       conftest$ac_exeext conftest.$ac_ext
31526 LIBS=$ac_check_lib_save_LIBS
31527 fi
31528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31529 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31530 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31531   cat >>confdefs.h <<\_ACEOF
31532 #define HAVE_XIM 1
31533 _ACEOF
31534
31535 fi
31536
31537
31538                                     if test "$USE_DARWIN" != 1; then
31539
31540 for ac_func in poll
31541 do
31542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31546   echo $ECHO_N "(cached) $ECHO_C" >&6
31547 else
31548   cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h.  */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h.  */
31554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31556 #define $ac_func innocuous_$ac_func
31557
31558 /* System header to define __stub macros and hopefully few prototypes,
31559     which can conflict with char $ac_func (); below.
31560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31561     <limits.h> exists even on freestanding compilers.  */
31562
31563 #ifdef __STDC__
31564 # include <limits.h>
31565 #else
31566 # include <assert.h>
31567 #endif
31568
31569 #undef $ac_func
31570
31571 /* Override any GCC internal prototype to avoid an error.
31572    Use char because int might match the return type of a GCC
31573    builtin and then its argument prototype would still apply.  */
31574 #ifdef __cplusplus
31575 extern "C"
31576 #endif
31577 char $ac_func ();
31578 /* The GNU C library defines this for functions which it implements
31579     to always fail with ENOSYS.  Some functions are actually named
31580     something starting with __ and the normal name is an alias.  */
31581 #if defined __stub_$ac_func || defined __stub___$ac_func
31582 choke me
31583 #endif
31584
31585 int
31586 main ()
31587 {
31588 return $ac_func ();
31589   ;
31590   return 0;
31591 }
31592 _ACEOF
31593 rm -f conftest.$ac_objext conftest$ac_exeext
31594 if { (ac_try="$ac_link"
31595 case "(($ac_try" in
31596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597   *) ac_try_echo=$ac_try;;
31598 esac
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600   (eval "$ac_link") 2>conftest.er1
31601   ac_status=$?
31602   grep -v '^ *+' conftest.er1 >conftest.err
31603   rm -f conftest.er1
31604   cat conftest.err >&5
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); } && {
31607          test -z "$ac_c_werror_flag" ||
31608          test ! -s conftest.err
31609        } && test -s conftest$ac_exeext &&
31610        $as_test_x conftest$ac_exeext; then
31611   eval "$as_ac_var=yes"
31612 else
31613   echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31615
31616         eval "$as_ac_var=no"
31617 fi
31618
31619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31620       conftest$ac_exeext conftest.$ac_ext
31621 fi
31622 ac_res=`eval echo '${'$as_ac_var'}'`
31623                { echo "$as_me:$LINENO: result: $ac_res" >&5
31624 echo "${ECHO_T}$ac_res" >&6; }
31625 if test `eval echo '${'$as_ac_var'}'` = yes; then
31626   cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31628 _ACEOF
31629
31630 fi
31631 done
31632
31633             fi
31634         fi
31635
31636         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31637         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31638
31639         AFMINSTALL=afminstall
31640         TOOLKIT=GTK
31641         GUIDIST=GTK_DIST
31642
31643                 if test "$wxUSE_GPE" = "yes"; then
31644             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31645 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31646
31647   ac_find_libraries=
31648   for ac_dir in $SEARCH_LIB;
31649   do
31650     for ac_extension in a so sl dylib dll.a; do
31651       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31652         ac_find_libraries=$ac_dir
31653         break 2
31654       fi
31655     done
31656   done
31657
31658             if test "$ac_find_libraries" != "" ; then
31659
31660     if test "$ac_find_libraries" = "default location"; then
31661     ac_path_to_link=""
31662   else
31663     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31664     result=$?
31665     if test $result = 0; then
31666       ac_path_to_link=""
31667     else
31668       ac_path_to_link=" -L$ac_find_libraries"
31669     fi
31670   fi
31671
31672                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31673                 WXGPE=1
31674                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31675 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31676             else
31677                 { echo "$as_me:$LINENO: result: not found" >&5
31678 echo "${ECHO_T}not found" >&6; }
31679             fi
31680
31681                                                                                                                     fi
31682     fi
31683
31684     if test "$wxUSE_MGL" = 1; then
31685        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31686 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31687         if test "x$MGL_ROOT" = x ; then
31688             { echo "$as_me:$LINENO: result: not found" >&5
31689 echo "${ECHO_T}not found" >&6; }
31690             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31691 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31692    { (exit 1); exit 1; }; }
31693         else
31694             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31695 echo "${ECHO_T}$MGL_ROOT" >&6; }
31696         fi
31697
31698         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31699 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31700                                 case "${host}" in
31701             *-*-linux* )
31702                                           if test "x$wxUSE_SHARED" = xyes ; then
31703                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31704               else
31705                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31706               fi
31707               ;;
31708             *-pc-msdosdjgpp )
31709               mgl_os_candidates="dos32/dj2"
31710               ;;
31711             *)
31712               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31713 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31714    { (exit 1); exit 1; }; }
31715         esac
31716
31717         mgl_lib_type=""
31718         mgl_os=""
31719
31720         for mgl_os_i in $mgl_os_candidates ; do
31721             if test "x$mgl_os" = x ; then
31722                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31723                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31724                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31725                         mgl_lib_type=debug
31726                         mgl_os=$mgl_os_i
31727                     fi
31728                 fi
31729                 if test "x$mgl_lib_type" = x ; then
31730                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31731                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31732                         mgl_lib_type=release
31733                         mgl_os=$mgl_os_i
31734                     fi
31735                 fi
31736             fi
31737         done
31738
31739         if test "x$mgl_os" = x ; then
31740             { echo "$as_me:$LINENO: result: not found" >&5
31741 echo "${ECHO_T}not found" >&6; }
31742             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31743 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31744    { (exit 1); exit 1; }; }
31745         fi
31746         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31747 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31748
31749         wxUSE_UNIVERSAL="yes"
31750
31751         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31752         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31753
31754         AFMINSTALL=afminstall
31755         TOOLKIT=MGL
31756         GUIDIST=MGL_DIST
31757     fi
31758
31759     if test "$wxUSE_DFB" = 1; then
31760
31761
31762 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31763         if test -n "$ac_tool_prefix"; then
31764   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31765 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31769   echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771   case $PKG_CONFIG in
31772   [\\/]* | ?:[\\/]*)
31773   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31774   ;;
31775   *)
31776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31777 for as_dir in $PATH
31778 do
31779   IFS=$as_save_IFS
31780   test -z "$as_dir" && as_dir=.
31781   for ac_exec_ext in '' $ac_executable_extensions; do
31782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31783     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31785     break 2
31786   fi
31787 done
31788 done
31789 IFS=$as_save_IFS
31790
31791   ;;
31792 esac
31793 fi
31794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31795 if test -n "$PKG_CONFIG"; then
31796   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31797 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31798 else
31799   { echo "$as_me:$LINENO: result: no" >&5
31800 echo "${ECHO_T}no" >&6; }
31801 fi
31802
31803
31804 fi
31805 if test -z "$ac_cv_path_PKG_CONFIG"; then
31806   ac_pt_PKG_CONFIG=$PKG_CONFIG
31807   # Extract the first word of "pkg-config", so it can be a program name with args.
31808 set dummy pkg-config; ac_word=$2
31809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31811 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31812   echo $ECHO_N "(cached) $ECHO_C" >&6
31813 else
31814   case $ac_pt_PKG_CONFIG in
31815   [\\/]* | ?:[\\/]*)
31816   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31817   ;;
31818   *)
31819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31820 for as_dir in $PATH
31821 do
31822   IFS=$as_save_IFS
31823   test -z "$as_dir" && as_dir=.
31824   for ac_exec_ext in '' $ac_executable_extensions; do
31825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31826     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31828     break 2
31829   fi
31830 done
31831 done
31832 IFS=$as_save_IFS
31833
31834   ;;
31835 esac
31836 fi
31837 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31838 if test -n "$ac_pt_PKG_CONFIG"; then
31839   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31840 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31841 else
31842   { echo "$as_me:$LINENO: result: no" >&5
31843 echo "${ECHO_T}no" >&6; }
31844 fi
31845
31846   if test "x$ac_pt_PKG_CONFIG" = x; then
31847     PKG_CONFIG=""
31848   else
31849     case $cross_compiling:$ac_tool_warned in
31850 yes:)
31851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31852 whose name does not start with the host triplet.  If you think this
31853 configuration is useful to you, please write to autoconf@gnu.org." >&5
31854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31855 whose name does not start with the host triplet.  If you think this
31856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31857 ac_tool_warned=yes ;;
31858 esac
31859     PKG_CONFIG=$ac_pt_PKG_CONFIG
31860   fi
31861 else
31862   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31863 fi
31864
31865 fi
31866 if test -n "$PKG_CONFIG"; then
31867         _pkg_min_version=0.9.0
31868         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31869 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31870         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31871                 { echo "$as_me:$LINENO: result: yes" >&5
31872 echo "${ECHO_T}yes" >&6; }
31873         else
31874                 { echo "$as_me:$LINENO: result: no" >&5
31875 echo "${ECHO_T}no" >&6; }
31876                 PKG_CONFIG=""
31877         fi
31878
31879 fi
31880
31881
31882 pkg_failed=no
31883 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31884 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31885
31886 if test -n "$PKG_CONFIG"; then
31887     if test -n "$DIRECTFB_CFLAGS"; then
31888         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31889     else
31890         if test -n "$PKG_CONFIG" && \
31891     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31892   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31893   ac_status=$?
31894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895   (exit $ac_status); }; then
31896   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31897 else
31898   pkg_failed=yes
31899 fi
31900     fi
31901 else
31902         pkg_failed=untried
31903 fi
31904 if test -n "$PKG_CONFIG"; then
31905     if test -n "$DIRECTFB_LIBS"; then
31906         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31907     else
31908         if test -n "$PKG_CONFIG" && \
31909     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31910   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31911   ac_status=$?
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); }; then
31914   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31915 else
31916   pkg_failed=yes
31917 fi
31918     fi
31919 else
31920         pkg_failed=untried
31921 fi
31922
31923
31924
31925 if test $pkg_failed = yes; then
31926
31927 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31928         _pkg_short_errors_supported=yes
31929 else
31930         _pkg_short_errors_supported=no
31931 fi
31932         if test $_pkg_short_errors_supported = yes; then
31933                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31934         else
31935                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31936         fi
31937         # Put the nasty error message in config.log where it belongs
31938         echo "$DIRECTFB_PKG_ERRORS" >&5
31939
31940
31941                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31942 echo "$as_me: error: DirectFB not found." >&2;}
31943    { (exit 1); exit 1; }; }
31944
31945
31946 elif test $pkg_failed = untried; then
31947
31948                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31949 echo "$as_me: error: DirectFB not found." >&2;}
31950    { (exit 1); exit 1; }; }
31951
31952
31953 else
31954         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31955         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31956         { echo "$as_me:$LINENO: result: yes" >&5
31957 echo "${ECHO_T}yes" >&6; }
31958
31959                            wxUSE_UNIVERSAL="yes"
31960                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31961                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31962                            TOOLKIT=DFB
31963                            GUIDIST=DFB_DIST
31964
31965 fi
31966     fi
31967
31968     if test "$wxUSE_MICROWIN" = 1; then
31969         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31970 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31971         if test "x$MICROWINDOWS" = x ; then
31972             { echo "$as_me:$LINENO: result: not found" >&5
31973 echo "${ECHO_T}not found" >&6; }
31974             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31975 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31976    { (exit 1); exit 1; }; }
31977         else
31978             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31979 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31980         fi
31981
31982         if test -f $MICROWINDOWS/lib/libmwin.a; then
31983             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31984 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31985         else
31986             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31987 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31988    { (exit 1); exit 1; }; }
31989         fi
31990
31991         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31992         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31993
31994         wxUSE_UNIVERSAL="yes"
31995
31996         AFMINSTALL=afminstall
31997         TOOLKIT=MICROWIN
31998         GUIDIST=MICROWIN_DIST
31999
32000         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32001     fi
32002
32003         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32004                                 { echo "$as_me:$LINENO: checking for X" >&5
32005 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32006
32007
32008 # Check whether --with-x was given.
32009 if test "${with_x+set}" = set; then
32010   withval=$with_x;
32011 fi
32012
32013 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32014 if test "x$with_x" = xno; then
32015   # The user explicitly disabled X.
32016   have_x=disabled
32017 else
32018   case $x_includes,$x_libraries in #(
32019     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32020 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32021    { (exit 1); exit 1; }; };; #(
32022     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   # One or both of the vars are not set, and there is no cached value.
32026 ac_x_includes=no ac_x_libraries=no
32027 rm -f -r conftest.dir
32028 if mkdir conftest.dir; then
32029   cd conftest.dir
32030   cat >Imakefile <<'_ACEOF'
32031 incroot:
32032         @echo incroot='${INCROOT}'
32033 usrlibdir:
32034         @echo usrlibdir='${USRLIBDIR}'
32035 libdir:
32036         @echo libdir='${LIBDIR}'
32037 _ACEOF
32038   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32039     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32040     for ac_var in incroot usrlibdir libdir; do
32041       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32042     done
32043     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32044     for ac_extension in a so sl; do
32045       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32046          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32047         ac_im_usrlibdir=$ac_im_libdir; break
32048       fi
32049     done
32050     # Screen out bogus values from the imake configuration.  They are
32051     # bogus both because they are the default anyway, and because
32052     # using them would break gcc on systems where it needs fixed includes.
32053     case $ac_im_incroot in
32054         /usr/include) ac_x_includes= ;;
32055         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32056     esac
32057     case $ac_im_usrlibdir in
32058         /usr/lib | /lib) ;;
32059         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32060     esac
32061   fi
32062   cd ..
32063   rm -f -r conftest.dir
32064 fi
32065
32066 # Standard set of common directories for X headers.
32067 # Check X11 before X11Rn because it is often a symlink to the current release.
32068 ac_x_header_dirs='
32069 /usr/X11/include
32070 /usr/X11R6/include
32071 /usr/X11R5/include
32072 /usr/X11R4/include
32073
32074 /usr/include/X11
32075 /usr/include/X11R6
32076 /usr/include/X11R5
32077 /usr/include/X11R4
32078
32079 /usr/local/X11/include
32080 /usr/local/X11R6/include
32081 /usr/local/X11R5/include
32082 /usr/local/X11R4/include
32083
32084 /usr/local/include/X11
32085 /usr/local/include/X11R6
32086 /usr/local/include/X11R5
32087 /usr/local/include/X11R4
32088
32089 /usr/X386/include
32090 /usr/x386/include
32091 /usr/XFree86/include/X11
32092
32093 /usr/include
32094 /usr/local/include
32095 /usr/unsupported/include
32096 /usr/athena/include
32097 /usr/local/x11r5/include
32098 /usr/lpp/Xamples/include
32099
32100 /usr/openwin/include
32101 /usr/openwin/share/include'
32102
32103 if test "$ac_x_includes" = no; then
32104   # Guess where to find include files, by looking for Xlib.h.
32105   # First, try using that file with no special directory specified.
32106   cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h.  */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h.  */
32112 #include <X11/Xlib.h>
32113 _ACEOF
32114 if { (ac_try="$ac_cpp conftest.$ac_ext"
32115 case "(($ac_try" in
32116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117   *) ac_try_echo=$ac_try;;
32118 esac
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32121   ac_status=$?
32122   grep -v '^ *+' conftest.er1 >conftest.err
32123   rm -f conftest.er1
32124   cat conftest.err >&5
32125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126   (exit $ac_status); } >/dev/null && {
32127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32128          test ! -s conftest.err
32129        }; then
32130   # We can compile using X headers with no special include directory.
32131 ac_x_includes=
32132 else
32133   echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32135
32136   for ac_dir in $ac_x_header_dirs; do
32137   if test -r "$ac_dir/X11/Xlib.h"; then
32138     ac_x_includes=$ac_dir
32139     break
32140   fi
32141 done
32142 fi
32143
32144 rm -f conftest.err conftest.$ac_ext
32145 fi # $ac_x_includes = no
32146
32147 if test "$ac_x_libraries" = no; then
32148   # Check for the libraries.
32149   # See if we find them without any special options.
32150   # Don't add to $LIBS permanently.
32151   ac_save_LIBS=$LIBS
32152   LIBS="-lX11 $LIBS"
32153   cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h.  */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h.  */
32159 #include <X11/Xlib.h>
32160 int
32161 main ()
32162 {
32163 XrmInitialize ()
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_link") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } && {
32182          test -z "$ac_c_werror_flag" ||
32183          test ! -s conftest.err
32184        } && test -s conftest$ac_exeext &&
32185        $as_test_x conftest$ac_exeext; then
32186   LIBS=$ac_save_LIBS
32187 # We can link X programs with no special library path.
32188 ac_x_libraries=
32189 else
32190   echo "$as_me: failed program was:" >&5
32191 sed 's/^/| /' conftest.$ac_ext >&5
32192
32193         LIBS=$ac_save_LIBS
32194 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32195 do
32196   # Don't even attempt the hair of trying to link an X program!
32197   for ac_extension in a so sl; do
32198     if test -r "$ac_dir/libX11.$ac_extension"; then
32199       ac_x_libraries=$ac_dir
32200       break 2
32201     fi
32202   done
32203 done
32204 fi
32205
32206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32207       conftest$ac_exeext conftest.$ac_ext
32208 fi # $ac_x_libraries = no
32209
32210 case $ac_x_includes,$ac_x_libraries in #(
32211   no,* | *,no | *\'*)
32212     # Didn't find X, or a directory has "'" in its name.
32213     ac_cv_have_x="have_x=no";; #(
32214   *)
32215     # Record where we found X for the cache.
32216     ac_cv_have_x="have_x=yes\
32217         ac_x_includes='$ac_x_includes'\
32218         ac_x_libraries='$ac_x_libraries'"
32219 esac
32220 fi
32221 ;; #(
32222     *) have_x=yes;;
32223   esac
32224   eval "$ac_cv_have_x"
32225 fi # $with_x != no
32226
32227 if test "$have_x" != yes; then
32228   { echo "$as_me:$LINENO: result: $have_x" >&5
32229 echo "${ECHO_T}$have_x" >&6; }
32230   no_x=yes
32231 else
32232   # If each of the values was on the command line, it overrides each guess.
32233   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32234   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32235   # Update the cache value to reflect the command line values.
32236   ac_cv_have_x="have_x=yes\
32237         ac_x_includes='$x_includes'\
32238         ac_x_libraries='$x_libraries'"
32239   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32240 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32241 fi
32242
32243 if test "$no_x" = yes; then
32244   # Not all programs may use this symbol, but it does not hurt to define it.
32245
32246 cat >>confdefs.h <<\_ACEOF
32247 #define X_DISPLAY_MISSING 1
32248 _ACEOF
32249
32250   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32251 else
32252   if test -n "$x_includes"; then
32253     X_CFLAGS="$X_CFLAGS -I$x_includes"
32254   fi
32255
32256   # It would also be nice to do this for all -L options, not just this one.
32257   if test -n "$x_libraries"; then
32258     X_LIBS="$X_LIBS -L$x_libraries"
32259     # For Solaris; some versions of Sun CC require a space after -R and
32260     # others require no space.  Words are not sufficient . . . .
32261     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32262 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32263     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32264     ac_xsave_c_werror_flag=$ac_c_werror_flag
32265     ac_c_werror_flag=yes
32266     cat >conftest.$ac_ext <<_ACEOF
32267 /* confdefs.h.  */
32268 _ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h.  */
32272
32273 int
32274 main ()
32275 {
32276
32277   ;
32278   return 0;
32279 }
32280 _ACEOF
32281 rm -f conftest.$ac_objext conftest$ac_exeext
32282 if { (ac_try="$ac_link"
32283 case "(($ac_try" in
32284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285   *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288   (eval "$ac_link") 2>conftest.er1
32289   ac_status=$?
32290   grep -v '^ *+' conftest.er1 >conftest.err
32291   rm -f conftest.er1
32292   cat conftest.err >&5
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); } && {
32295          test -z "$ac_c_werror_flag" ||
32296          test ! -s conftest.err
32297        } && test -s conftest$ac_exeext &&
32298        $as_test_x conftest$ac_exeext; then
32299   { echo "$as_me:$LINENO: result: no" >&5
32300 echo "${ECHO_T}no" >&6; }
32301        X_LIBS="$X_LIBS -R$x_libraries"
32302 else
32303   echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32305
32306         LIBS="$ac_xsave_LIBS -R $x_libraries"
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 int
32315 main ()
32316 {
32317
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext conftest$ac_exeext
32323 if { (ac_try="$ac_link"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_link") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_c_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest$ac_exeext &&
32339        $as_test_x conftest$ac_exeext; then
32340   { echo "$as_me:$LINENO: result: yes" >&5
32341 echo "${ECHO_T}yes" >&6; }
32342           X_LIBS="$X_LIBS -R $x_libraries"
32343 else
32344   echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32346
32347         { echo "$as_me:$LINENO: result: neither works" >&5
32348 echo "${ECHO_T}neither works" >&6; }
32349 fi
32350
32351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32352       conftest$ac_exeext conftest.$ac_ext
32353 fi
32354
32355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32356       conftest$ac_exeext conftest.$ac_ext
32357     ac_c_werror_flag=$ac_xsave_c_werror_flag
32358     LIBS=$ac_xsave_LIBS
32359   fi
32360
32361   # Check for system-dependent libraries X programs must link with.
32362   # Do this before checking for the system-independent R6 libraries
32363   # (-lICE), since we may need -lsocket or whatever for X linking.
32364
32365   if test "$ISC" = yes; then
32366     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32367   else
32368     # Martyn Johnson says this is needed for Ultrix, if the X
32369     # libraries were built with DECnet support.  And Karl Berry says
32370     # the Alpha needs dnet_stub (dnet does not exist).
32371     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32372     cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h.  */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h.  */
32378
32379 /* Override any GCC internal prototype to avoid an error.
32380    Use char because int might match the return type of a GCC
32381    builtin and then its argument prototype would still apply.  */
32382 #ifdef __cplusplus
32383 extern "C"
32384 #endif
32385 char XOpenDisplay ();
32386 int
32387 main ()
32388 {
32389 return XOpenDisplay ();
32390   ;
32391   return 0;
32392 }
32393 _ACEOF
32394 rm -f conftest.$ac_objext conftest$ac_exeext
32395 if { (ac_try="$ac_link"
32396 case "(($ac_try" in
32397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398   *) ac_try_echo=$ac_try;;
32399 esac
32400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401   (eval "$ac_link") 2>conftest.er1
32402   ac_status=$?
32403   grep -v '^ *+' conftest.er1 >conftest.err
32404   rm -f conftest.er1
32405   cat conftest.err >&5
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); } && {
32408          test -z "$ac_c_werror_flag" ||
32409          test ! -s conftest.err
32410        } && test -s conftest$ac_exeext &&
32411        $as_test_x conftest$ac_exeext; then
32412   :
32413 else
32414   echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32418 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32419 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32420   echo $ECHO_N "(cached) $ECHO_C" >&6
32421 else
32422   ac_check_lib_save_LIBS=$LIBS
32423 LIBS="-ldnet  $LIBS"
32424 cat >conftest.$ac_ext <<_ACEOF
32425 /* confdefs.h.  */
32426 _ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h.  */
32430
32431 /* Override any GCC internal prototype to avoid an error.
32432    Use char because int might match the return type of a GCC
32433    builtin and then its argument prototype would still apply.  */
32434 #ifdef __cplusplus
32435 extern "C"
32436 #endif
32437 char dnet_ntoa ();
32438 int
32439 main ()
32440 {
32441 return dnet_ntoa ();
32442   ;
32443   return 0;
32444 }
32445 _ACEOF
32446 rm -f conftest.$ac_objext conftest$ac_exeext
32447 if { (ac_try="$ac_link"
32448 case "(($ac_try" in
32449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450   *) ac_try_echo=$ac_try;;
32451 esac
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453   (eval "$ac_link") 2>conftest.er1
32454   ac_status=$?
32455   grep -v '^ *+' conftest.er1 >conftest.err
32456   rm -f conftest.er1
32457   cat conftest.err >&5
32458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459   (exit $ac_status); } && {
32460          test -z "$ac_c_werror_flag" ||
32461          test ! -s conftest.err
32462        } && test -s conftest$ac_exeext &&
32463        $as_test_x conftest$ac_exeext; then
32464   ac_cv_lib_dnet_dnet_ntoa=yes
32465 else
32466   echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32468
32469         ac_cv_lib_dnet_dnet_ntoa=no
32470 fi
32471
32472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32473       conftest$ac_exeext conftest.$ac_ext
32474 LIBS=$ac_check_lib_save_LIBS
32475 fi
32476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32477 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32478 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32479   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32480 fi
32481
32482     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32483       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32484 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32485 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32486   echo $ECHO_N "(cached) $ECHO_C" >&6
32487 else
32488   ac_check_lib_save_LIBS=$LIBS
32489 LIBS="-ldnet_stub  $LIBS"
32490 cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h.  */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h.  */
32496
32497 /* Override any GCC internal prototype to avoid an error.
32498    Use char because int might match the return type of a GCC
32499    builtin and then its argument prototype would still apply.  */
32500 #ifdef __cplusplus
32501 extern "C"
32502 #endif
32503 char dnet_ntoa ();
32504 int
32505 main ()
32506 {
32507 return dnet_ntoa ();
32508   ;
32509   return 0;
32510 }
32511 _ACEOF
32512 rm -f conftest.$ac_objext conftest$ac_exeext
32513 if { (ac_try="$ac_link"
32514 case "(($ac_try" in
32515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516   *) ac_try_echo=$ac_try;;
32517 esac
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519   (eval "$ac_link") 2>conftest.er1
32520   ac_status=$?
32521   grep -v '^ *+' conftest.er1 >conftest.err
32522   rm -f conftest.er1
32523   cat conftest.err >&5
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); } && {
32526          test -z "$ac_c_werror_flag" ||
32527          test ! -s conftest.err
32528        } && test -s conftest$ac_exeext &&
32529        $as_test_x conftest$ac_exeext; then
32530   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32531 else
32532   echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32534
32535         ac_cv_lib_dnet_stub_dnet_ntoa=no
32536 fi
32537
32538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32539       conftest$ac_exeext conftest.$ac_ext
32540 LIBS=$ac_check_lib_save_LIBS
32541 fi
32542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32543 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32544 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32545   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32546 fi
32547
32548     fi
32549 fi
32550
32551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32552       conftest$ac_exeext conftest.$ac_ext
32553     LIBS="$ac_xsave_LIBS"
32554
32555     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32556     # to get the SysV transport functions.
32557     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32558     # needs -lnsl.
32559     # The nsl library prevents programs from opening the X display
32560     # on Irix 5.2, according to T.E. Dickey.
32561     # The functions gethostbyname, getservbyname, and inet_addr are
32562     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32563     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32564 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32565 if test "${ac_cv_func_gethostbyname+set}" = set; then
32566   echo $ECHO_N "(cached) $ECHO_C" >&6
32567 else
32568   cat >conftest.$ac_ext <<_ACEOF
32569 /* confdefs.h.  */
32570 _ACEOF
32571 cat confdefs.h >>conftest.$ac_ext
32572 cat >>conftest.$ac_ext <<_ACEOF
32573 /* end confdefs.h.  */
32574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32576 #define gethostbyname innocuous_gethostbyname
32577
32578 /* System header to define __stub macros and hopefully few prototypes,
32579     which can conflict with char gethostbyname (); below.
32580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32581     <limits.h> exists even on freestanding compilers.  */
32582
32583 #ifdef __STDC__
32584 # include <limits.h>
32585 #else
32586 # include <assert.h>
32587 #endif
32588
32589 #undef gethostbyname
32590
32591 /* Override any GCC internal prototype to avoid an error.
32592    Use char because int might match the return type of a GCC
32593    builtin and then its argument prototype would still apply.  */
32594 #ifdef __cplusplus
32595 extern "C"
32596 #endif
32597 char gethostbyname ();
32598 /* The GNU C library defines this for functions which it implements
32599     to always fail with ENOSYS.  Some functions are actually named
32600     something starting with __ and the normal name is an alias.  */
32601 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32602 choke me
32603 #endif
32604
32605 int
32606 main ()
32607 {
32608 return gethostbyname ();
32609   ;
32610   return 0;
32611 }
32612 _ACEOF
32613 rm -f conftest.$ac_objext conftest$ac_exeext
32614 if { (ac_try="$ac_link"
32615 case "(($ac_try" in
32616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617   *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620   (eval "$ac_link") 2>conftest.er1
32621   ac_status=$?
32622   grep -v '^ *+' conftest.er1 >conftest.err
32623   rm -f conftest.er1
32624   cat conftest.err >&5
32625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626   (exit $ac_status); } && {
32627          test -z "$ac_c_werror_flag" ||
32628          test ! -s conftest.err
32629        } && test -s conftest$ac_exeext &&
32630        $as_test_x conftest$ac_exeext; then
32631   ac_cv_func_gethostbyname=yes
32632 else
32633   echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32635
32636         ac_cv_func_gethostbyname=no
32637 fi
32638
32639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32640       conftest$ac_exeext conftest.$ac_ext
32641 fi
32642 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32643 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32644
32645     if test $ac_cv_func_gethostbyname = no; then
32646       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32647 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32648 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32649   echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651   ac_check_lib_save_LIBS=$LIBS
32652 LIBS="-lnsl  $LIBS"
32653 cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659
32660 /* Override any GCC internal prototype to avoid an error.
32661    Use char because int might match the return type of a GCC
32662    builtin and then its argument prototype would still apply.  */
32663 #ifdef __cplusplus
32664 extern "C"
32665 #endif
32666 char gethostbyname ();
32667 int
32668 main ()
32669 {
32670 return gethostbyname ();
32671   ;
32672   return 0;
32673 }
32674 _ACEOF
32675 rm -f conftest.$ac_objext conftest$ac_exeext
32676 if { (ac_try="$ac_link"
32677 case "(($ac_try" in
32678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679   *) ac_try_echo=$ac_try;;
32680 esac
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682   (eval "$ac_link") 2>conftest.er1
32683   ac_status=$?
32684   grep -v '^ *+' conftest.er1 >conftest.err
32685   rm -f conftest.er1
32686   cat conftest.err >&5
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); } && {
32689          test -z "$ac_c_werror_flag" ||
32690          test ! -s conftest.err
32691        } && test -s conftest$ac_exeext &&
32692        $as_test_x conftest$ac_exeext; then
32693   ac_cv_lib_nsl_gethostbyname=yes
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698         ac_cv_lib_nsl_gethostbyname=no
32699 fi
32700
32701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32702       conftest$ac_exeext conftest.$ac_ext
32703 LIBS=$ac_check_lib_save_LIBS
32704 fi
32705 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32706 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32707 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32708   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32709 fi
32710
32711       if test $ac_cv_lib_nsl_gethostbyname = no; then
32712         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32713 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32714 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32715   echo $ECHO_N "(cached) $ECHO_C" >&6
32716 else
32717   ac_check_lib_save_LIBS=$LIBS
32718 LIBS="-lbsd  $LIBS"
32719 cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h.  */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h.  */
32725
32726 /* Override any GCC internal prototype to avoid an error.
32727    Use char because int might match the return type of a GCC
32728    builtin and then its argument prototype would still apply.  */
32729 #ifdef __cplusplus
32730 extern "C"
32731 #endif
32732 char gethostbyname ();
32733 int
32734 main ()
32735 {
32736 return gethostbyname ();
32737   ;
32738   return 0;
32739 }
32740 _ACEOF
32741 rm -f conftest.$ac_objext conftest$ac_exeext
32742 if { (ac_try="$ac_link"
32743 case "(($ac_try" in
32744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745   *) ac_try_echo=$ac_try;;
32746 esac
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748   (eval "$ac_link") 2>conftest.er1
32749   ac_status=$?
32750   grep -v '^ *+' conftest.er1 >conftest.err
32751   rm -f conftest.er1
32752   cat conftest.err >&5
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); } && {
32755          test -z "$ac_c_werror_flag" ||
32756          test ! -s conftest.err
32757        } && test -s conftest$ac_exeext &&
32758        $as_test_x conftest$ac_exeext; then
32759   ac_cv_lib_bsd_gethostbyname=yes
32760 else
32761   echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.$ac_ext >&5
32763
32764         ac_cv_lib_bsd_gethostbyname=no
32765 fi
32766
32767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32768       conftest$ac_exeext conftest.$ac_ext
32769 LIBS=$ac_check_lib_save_LIBS
32770 fi
32771 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32772 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32773 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32774   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32775 fi
32776
32777       fi
32778     fi
32779
32780     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32781     # socket/setsockopt and other routines are undefined under SCO ODT
32782     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32783     # on later versions), says Simon Leinen: it contains gethostby*
32784     # variants that don't use the name server (or something).  -lsocket
32785     # must be given before -lnsl if both are needed.  We assume that
32786     # if connect needs -lnsl, so does gethostbyname.
32787     { echo "$as_me:$LINENO: checking for connect" >&5
32788 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32789 if test "${ac_cv_func_connect+set}" = set; then
32790   echo $ECHO_N "(cached) $ECHO_C" >&6
32791 else
32792   cat >conftest.$ac_ext <<_ACEOF
32793 /* confdefs.h.  */
32794 _ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h.  */
32798 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32800 #define connect innocuous_connect
32801
32802 /* System header to define __stub macros and hopefully few prototypes,
32803     which can conflict with char connect (); below.
32804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32805     <limits.h> exists even on freestanding compilers.  */
32806
32807 #ifdef __STDC__
32808 # include <limits.h>
32809 #else
32810 # include <assert.h>
32811 #endif
32812
32813 #undef connect
32814
32815 /* Override any GCC internal prototype to avoid an error.
32816    Use char because int might match the return type of a GCC
32817    builtin and then its argument prototype would still apply.  */
32818 #ifdef __cplusplus
32819 extern "C"
32820 #endif
32821 char connect ();
32822 /* The GNU C library defines this for functions which it implements
32823     to always fail with ENOSYS.  Some functions are actually named
32824     something starting with __ and the normal name is an alias.  */
32825 #if defined __stub_connect || defined __stub___connect
32826 choke me
32827 #endif
32828
32829 int
32830 main ()
32831 {
32832 return connect ();
32833   ;
32834   return 0;
32835 }
32836 _ACEOF
32837 rm -f conftest.$ac_objext conftest$ac_exeext
32838 if { (ac_try="$ac_link"
32839 case "(($ac_try" in
32840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32841   *) ac_try_echo=$ac_try;;
32842 esac
32843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32844   (eval "$ac_link") 2>conftest.er1
32845   ac_status=$?
32846   grep -v '^ *+' conftest.er1 >conftest.err
32847   rm -f conftest.er1
32848   cat conftest.err >&5
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); } && {
32851          test -z "$ac_c_werror_flag" ||
32852          test ! -s conftest.err
32853        } && test -s conftest$ac_exeext &&
32854        $as_test_x conftest$ac_exeext; then
32855   ac_cv_func_connect=yes
32856 else
32857   echo "$as_me: failed program was:" >&5
32858 sed 's/^/| /' conftest.$ac_ext >&5
32859
32860         ac_cv_func_connect=no
32861 fi
32862
32863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32864       conftest$ac_exeext conftest.$ac_ext
32865 fi
32866 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32867 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32868
32869     if test $ac_cv_func_connect = no; then
32870       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32871 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32872 if test "${ac_cv_lib_socket_connect+set}" = set; then
32873   echo $ECHO_N "(cached) $ECHO_C" >&6
32874 else
32875   ac_check_lib_save_LIBS=$LIBS
32876 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32877 cat >conftest.$ac_ext <<_ACEOF
32878 /* confdefs.h.  */
32879 _ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h.  */
32883
32884 /* Override any GCC internal prototype to avoid an error.
32885    Use char because int might match the return type of a GCC
32886    builtin and then its argument prototype would still apply.  */
32887 #ifdef __cplusplus
32888 extern "C"
32889 #endif
32890 char connect ();
32891 int
32892 main ()
32893 {
32894 return connect ();
32895   ;
32896   return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext conftest$ac_exeext
32900 if { (ac_try="$ac_link"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_link") 2>conftest.er1
32907   ac_status=$?
32908   grep -v '^ *+' conftest.er1 >conftest.err
32909   rm -f conftest.er1
32910   cat conftest.err >&5
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); } && {
32913          test -z "$ac_c_werror_flag" ||
32914          test ! -s conftest.err
32915        } && test -s conftest$ac_exeext &&
32916        $as_test_x conftest$ac_exeext; then
32917   ac_cv_lib_socket_connect=yes
32918 else
32919   echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922         ac_cv_lib_socket_connect=no
32923 fi
32924
32925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32926       conftest$ac_exeext conftest.$ac_ext
32927 LIBS=$ac_check_lib_save_LIBS
32928 fi
32929 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32930 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32931 if test $ac_cv_lib_socket_connect = yes; then
32932   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32933 fi
32934
32935     fi
32936
32937     # Guillermo Gomez says -lposix is necessary on A/UX.
32938     { echo "$as_me:$LINENO: checking for remove" >&5
32939 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32940 if test "${ac_cv_func_remove+set}" = set; then
32941   echo $ECHO_N "(cached) $ECHO_C" >&6
32942 else
32943   cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h.  */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h.  */
32949 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32951 #define remove innocuous_remove
32952
32953 /* System header to define __stub macros and hopefully few prototypes,
32954     which can conflict with char remove (); below.
32955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32956     <limits.h> exists even on freestanding compilers.  */
32957
32958 #ifdef __STDC__
32959 # include <limits.h>
32960 #else
32961 # include <assert.h>
32962 #endif
32963
32964 #undef remove
32965
32966 /* Override any GCC internal prototype to avoid an error.
32967    Use char because int might match the return type of a GCC
32968    builtin and then its argument prototype would still apply.  */
32969 #ifdef __cplusplus
32970 extern "C"
32971 #endif
32972 char remove ();
32973 /* The GNU C library defines this for functions which it implements
32974     to always fail with ENOSYS.  Some functions are actually named
32975     something starting with __ and the normal name is an alias.  */
32976 #if defined __stub_remove || defined __stub___remove
32977 choke me
32978 #endif
32979
32980 int
32981 main ()
32982 {
32983 return remove ();
32984   ;
32985   return 0;
32986 }
32987 _ACEOF
32988 rm -f conftest.$ac_objext conftest$ac_exeext
32989 if { (ac_try="$ac_link"
32990 case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_link") 2>conftest.er1
32996   ac_status=$?
32997   grep -v '^ *+' conftest.er1 >conftest.err
32998   rm -f conftest.er1
32999   cat conftest.err >&5
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } && {
33002          test -z "$ac_c_werror_flag" ||
33003          test ! -s conftest.err
33004        } && test -s conftest$ac_exeext &&
33005        $as_test_x conftest$ac_exeext; then
33006   ac_cv_func_remove=yes
33007 else
33008   echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33010
33011         ac_cv_func_remove=no
33012 fi
33013
33014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33015       conftest$ac_exeext conftest.$ac_ext
33016 fi
33017 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33018 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33019
33020     if test $ac_cv_func_remove = no; then
33021       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33022 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33023 if test "${ac_cv_lib_posix_remove+set}" = set; then
33024   echo $ECHO_N "(cached) $ECHO_C" >&6
33025 else
33026   ac_check_lib_save_LIBS=$LIBS
33027 LIBS="-lposix  $LIBS"
33028 cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034
33035 /* Override any GCC internal prototype to avoid an error.
33036    Use char because int might match the return type of a GCC
33037    builtin and then its argument prototype would still apply.  */
33038 #ifdef __cplusplus
33039 extern "C"
33040 #endif
33041 char remove ();
33042 int
33043 main ()
33044 {
33045 return remove ();
33046   ;
33047   return 0;
33048 }
33049 _ACEOF
33050 rm -f conftest.$ac_objext conftest$ac_exeext
33051 if { (ac_try="$ac_link"
33052 case "(($ac_try" in
33053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054   *) ac_try_echo=$ac_try;;
33055 esac
33056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057   (eval "$ac_link") 2>conftest.er1
33058   ac_status=$?
33059   grep -v '^ *+' conftest.er1 >conftest.err
33060   rm -f conftest.er1
33061   cat conftest.err >&5
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); } && {
33064          test -z "$ac_c_werror_flag" ||
33065          test ! -s conftest.err
33066        } && test -s conftest$ac_exeext &&
33067        $as_test_x conftest$ac_exeext; then
33068   ac_cv_lib_posix_remove=yes
33069 else
33070   echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33072
33073         ac_cv_lib_posix_remove=no
33074 fi
33075
33076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33077       conftest$ac_exeext conftest.$ac_ext
33078 LIBS=$ac_check_lib_save_LIBS
33079 fi
33080 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33081 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33082 if test $ac_cv_lib_posix_remove = yes; then
33083   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33084 fi
33085
33086     fi
33087
33088     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33089     { echo "$as_me:$LINENO: checking for shmat" >&5
33090 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33091 if test "${ac_cv_func_shmat+set}" = set; then
33092   echo $ECHO_N "(cached) $ECHO_C" >&6
33093 else
33094   cat >conftest.$ac_ext <<_ACEOF
33095 /* confdefs.h.  */
33096 _ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h.  */
33100 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33102 #define shmat innocuous_shmat
33103
33104 /* System header to define __stub macros and hopefully few prototypes,
33105     which can conflict with char shmat (); below.
33106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33107     <limits.h> exists even on freestanding compilers.  */
33108
33109 #ifdef __STDC__
33110 # include <limits.h>
33111 #else
33112 # include <assert.h>
33113 #endif
33114
33115 #undef shmat
33116
33117 /* Override any GCC internal prototype to avoid an error.
33118    Use char because int might match the return type of a GCC
33119    builtin and then its argument prototype would still apply.  */
33120 #ifdef __cplusplus
33121 extern "C"
33122 #endif
33123 char shmat ();
33124 /* The GNU C library defines this for functions which it implements
33125     to always fail with ENOSYS.  Some functions are actually named
33126     something starting with __ and the normal name is an alias.  */
33127 #if defined __stub_shmat || defined __stub___shmat
33128 choke me
33129 #endif
33130
33131 int
33132 main ()
33133 {
33134 return shmat ();
33135   ;
33136   return 0;
33137 }
33138 _ACEOF
33139 rm -f conftest.$ac_objext conftest$ac_exeext
33140 if { (ac_try="$ac_link"
33141 case "(($ac_try" in
33142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143   *) ac_try_echo=$ac_try;;
33144 esac
33145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33146   (eval "$ac_link") 2>conftest.er1
33147   ac_status=$?
33148   grep -v '^ *+' conftest.er1 >conftest.err
33149   rm -f conftest.er1
33150   cat conftest.err >&5
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); } && {
33153          test -z "$ac_c_werror_flag" ||
33154          test ! -s conftest.err
33155        } && test -s conftest$ac_exeext &&
33156        $as_test_x conftest$ac_exeext; then
33157   ac_cv_func_shmat=yes
33158 else
33159   echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33161
33162         ac_cv_func_shmat=no
33163 fi
33164
33165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33166       conftest$ac_exeext conftest.$ac_ext
33167 fi
33168 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33169 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33170
33171     if test $ac_cv_func_shmat = no; then
33172       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33173 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33174 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33175   echo $ECHO_N "(cached) $ECHO_C" >&6
33176 else
33177   ac_check_lib_save_LIBS=$LIBS
33178 LIBS="-lipc  $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
33187    Use char because int might match the return type of a GCC
33188    builtin and then its argument prototype would still apply.  */
33189 #ifdef __cplusplus
33190 extern "C"
33191 #endif
33192 char shmat ();
33193 int
33194 main ()
33195 {
33196 return shmat ();
33197   ;
33198   return 0;
33199 }
33200 _ACEOF
33201 rm -f conftest.$ac_objext conftest$ac_exeext
33202 if { (ac_try="$ac_link"
33203 case "(($ac_try" in
33204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205   *) ac_try_echo=$ac_try;;
33206 esac
33207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33208   (eval "$ac_link") 2>conftest.er1
33209   ac_status=$?
33210   grep -v '^ *+' conftest.er1 >conftest.err
33211   rm -f conftest.er1
33212   cat conftest.err >&5
33213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); } && {
33215          test -z "$ac_c_werror_flag" ||
33216          test ! -s conftest.err
33217        } && test -s conftest$ac_exeext &&
33218        $as_test_x conftest$ac_exeext; then
33219   ac_cv_lib_ipc_shmat=yes
33220 else
33221   echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33223
33224         ac_cv_lib_ipc_shmat=no
33225 fi
33226
33227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33228       conftest$ac_exeext conftest.$ac_ext
33229 LIBS=$ac_check_lib_save_LIBS
33230 fi
33231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33232 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33233 if test $ac_cv_lib_ipc_shmat = yes; then
33234   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33235 fi
33236
33237     fi
33238   fi
33239
33240   # Check for libraries that X11R6 Xt/Xaw programs need.
33241   ac_save_LDFLAGS=$LDFLAGS
33242   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33243   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33244   # check for ICE first), but we must link in the order -lSM -lICE or
33245   # we get undefined symbols.  So assume we have SM if we have ICE.
33246   # These have to be linked with before -lX11, unlike the other
33247   # libraries we check for below, so use a different variable.
33248   # John Interrante, Karl Berry
33249   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33250 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33251 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33252   echo $ECHO_N "(cached) $ECHO_C" >&6
33253 else
33254   ac_check_lib_save_LIBS=$LIBS
33255 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33256 cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262
33263 /* Override any GCC internal prototype to avoid an error.
33264    Use char because int might match the return type of a GCC
33265    builtin and then its argument prototype would still apply.  */
33266 #ifdef __cplusplus
33267 extern "C"
33268 #endif
33269 char IceConnectionNumber ();
33270 int
33271 main ()
33272 {
33273 return IceConnectionNumber ();
33274   ;
33275   return 0;
33276 }
33277 _ACEOF
33278 rm -f conftest.$ac_objext conftest$ac_exeext
33279 if { (ac_try="$ac_link"
33280 case "(($ac_try" in
33281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282   *) ac_try_echo=$ac_try;;
33283 esac
33284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285   (eval "$ac_link") 2>conftest.er1
33286   ac_status=$?
33287   grep -v '^ *+' conftest.er1 >conftest.err
33288   rm -f conftest.er1
33289   cat conftest.err >&5
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); } && {
33292          test -z "$ac_c_werror_flag" ||
33293          test ! -s conftest.err
33294        } && test -s conftest$ac_exeext &&
33295        $as_test_x conftest$ac_exeext; then
33296   ac_cv_lib_ICE_IceConnectionNumber=yes
33297 else
33298   echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33300
33301         ac_cv_lib_ICE_IceConnectionNumber=no
33302 fi
33303
33304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33305       conftest$ac_exeext conftest.$ac_ext
33306 LIBS=$ac_check_lib_save_LIBS
33307 fi
33308 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33309 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33310 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33311   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33312 fi
33313
33314   LDFLAGS=$ac_save_LDFLAGS
33315
33316 fi
33317
33318
33319         if test "$no_x" = "yes"; then
33320           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33321 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33322    { (exit 1); exit 1; }; }
33323         fi
33324
33325                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33326         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33327         AFMINSTALL=afminstall
33328         COMPILED_X_PROGRAM=0
33329
33330     fi
33331
33332     if test "$wxUSE_X11" = 1; then
33333         if test "$wxUSE_NANOX" = "yes"; then
33334             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33335 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33336             if test "x$MICROWIN" = x ; then
33337                 { echo "$as_me:$LINENO: result: not found" >&5
33338 echo "${ECHO_T}not found" >&6; }
33339                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33340 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33341    { (exit 1); exit 1; }; }
33342             else
33343                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33344 echo "${ECHO_T}$MICROWIN" >&6; }
33345                 cat >>confdefs.h <<\_ACEOF
33346 #define wxUSE_NANOX 1
33347 _ACEOF
33348
33349             fi
33350         fi
33351
33352         if test "$wxUSE_UNICODE" = "yes"; then
33353
33354
33355 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33356         if test -n "$ac_tool_prefix"; then
33357   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33358 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33362   echo $ECHO_N "(cached) $ECHO_C" >&6
33363 else
33364   case $PKG_CONFIG in
33365   [\\/]* | ?:[\\/]*)
33366   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33367   ;;
33368   *)
33369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33370 for as_dir in $PATH
33371 do
33372   IFS=$as_save_IFS
33373   test -z "$as_dir" && as_dir=.
33374   for ac_exec_ext in '' $ac_executable_extensions; do
33375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33376     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33378     break 2
33379   fi
33380 done
33381 done
33382 IFS=$as_save_IFS
33383
33384   ;;
33385 esac
33386 fi
33387 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33388 if test -n "$PKG_CONFIG"; then
33389   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33390 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33391 else
33392   { echo "$as_me:$LINENO: result: no" >&5
33393 echo "${ECHO_T}no" >&6; }
33394 fi
33395
33396
33397 fi
33398 if test -z "$ac_cv_path_PKG_CONFIG"; then
33399   ac_pt_PKG_CONFIG=$PKG_CONFIG
33400   # Extract the first word of "pkg-config", so it can be a program name with args.
33401 set dummy pkg-config; ac_word=$2
33402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33404 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33405   echo $ECHO_N "(cached) $ECHO_C" >&6
33406 else
33407   case $ac_pt_PKG_CONFIG in
33408   [\\/]* | ?:[\\/]*)
33409   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33410   ;;
33411   *)
33412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33413 for as_dir in $PATH
33414 do
33415   IFS=$as_save_IFS
33416   test -z "$as_dir" && as_dir=.
33417   for ac_exec_ext in '' $ac_executable_extensions; do
33418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33419     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33421     break 2
33422   fi
33423 done
33424 done
33425 IFS=$as_save_IFS
33426
33427   ;;
33428 esac
33429 fi
33430 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33431 if test -n "$ac_pt_PKG_CONFIG"; then
33432   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33433 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33434 else
33435   { echo "$as_me:$LINENO: result: no" >&5
33436 echo "${ECHO_T}no" >&6; }
33437 fi
33438
33439   if test "x$ac_pt_PKG_CONFIG" = x; then
33440     PKG_CONFIG=""
33441   else
33442     case $cross_compiling:$ac_tool_warned in
33443 yes:)
33444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33445 whose name does not start with the host triplet.  If you think this
33446 configuration is useful to you, please write to autoconf@gnu.org." >&5
33447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33448 whose name does not start with the host triplet.  If you think this
33449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33450 ac_tool_warned=yes ;;
33451 esac
33452     PKG_CONFIG=$ac_pt_PKG_CONFIG
33453   fi
33454 else
33455   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33456 fi
33457
33458 fi
33459 if test -n "$PKG_CONFIG"; then
33460         _pkg_min_version=0.9.0
33461         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33462 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33463         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33464                 { echo "$as_me:$LINENO: result: yes" >&5
33465 echo "${ECHO_T}yes" >&6; }
33466         else
33467                 { echo "$as_me:$LINENO: result: no" >&5
33468 echo "${ECHO_T}no" >&6; }
33469                 PKG_CONFIG=""
33470         fi
33471
33472 fi
33473
33474
33475 pkg_failed=no
33476 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33477 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33478
33479 if test -n "$PKG_CONFIG"; then
33480     if test -n "$PANGOX_CFLAGS"; then
33481         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33482     else
33483         if test -n "$PKG_CONFIG" && \
33484     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33485   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33486   ac_status=$?
33487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488   (exit $ac_status); }; then
33489   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33490 else
33491   pkg_failed=yes
33492 fi
33493     fi
33494 else
33495         pkg_failed=untried
33496 fi
33497 if test -n "$PKG_CONFIG"; then
33498     if test -n "$PANGOX_LIBS"; then
33499         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33500     else
33501         if test -n "$PKG_CONFIG" && \
33502     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33503   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33504   ac_status=$?
33505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506   (exit $ac_status); }; then
33507   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33508 else
33509   pkg_failed=yes
33510 fi
33511     fi
33512 else
33513         pkg_failed=untried
33514 fi
33515
33516
33517
33518 if test $pkg_failed = yes; then
33519
33520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33521         _pkg_short_errors_supported=yes
33522 else
33523         _pkg_short_errors_supported=no
33524 fi
33525         if test $_pkg_short_errors_supported = yes; then
33526                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33527         else
33528                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33529         fi
33530         # Put the nasty error message in config.log where it belongs
33531         echo "$PANGOX_PKG_ERRORS" >&5
33532
33533
33534                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33535 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33536    { (exit 1); exit 1; }; }
33537
33538
33539 elif test $pkg_failed = untried; then
33540
33541                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33542 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33543    { (exit 1); exit 1; }; }
33544
33545
33546 else
33547         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33548         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33549         { echo "$as_me:$LINENO: result: yes" >&5
33550 echo "${ECHO_T}yes" >&6; }
33551
33552                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33553                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33554                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33555
33556 fi
33557
33558 pkg_failed=no
33559 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33560 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33561
33562 if test -n "$PKG_CONFIG"; then
33563     if test -n "$PANGOFT2_CFLAGS"; then
33564         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33565     else
33566         if test -n "$PKG_CONFIG" && \
33567     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33568   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; then
33572   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33573 else
33574   pkg_failed=yes
33575 fi
33576     fi
33577 else
33578         pkg_failed=untried
33579 fi
33580 if test -n "$PKG_CONFIG"; then
33581     if test -n "$PANGOFT2_LIBS"; then
33582         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33583     else
33584         if test -n "$PKG_CONFIG" && \
33585     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33586   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33587   ac_status=$?
33588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589   (exit $ac_status); }; then
33590   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33591 else
33592   pkg_failed=yes
33593 fi
33594     fi
33595 else
33596         pkg_failed=untried
33597 fi
33598
33599
33600
33601 if test $pkg_failed = yes; then
33602
33603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33604         _pkg_short_errors_supported=yes
33605 else
33606         _pkg_short_errors_supported=no
33607 fi
33608         if test $_pkg_short_errors_supported = yes; then
33609                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33610         else
33611                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33612         fi
33613         # Put the nasty error message in config.log where it belongs
33614         echo "$PANGOFT2_PKG_ERRORS" >&5
33615
33616
33617                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33618 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33619                     wxUSE_PRINTING_ARCHITECTURE="no"
33620
33621
33622 elif test $pkg_failed = untried; then
33623
33624                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33625 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33626                     wxUSE_PRINTING_ARCHITECTURE="no"
33627
33628
33629 else
33630         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33631         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33632         { echo "$as_me:$LINENO: result: yes" >&5
33633 echo "${ECHO_T}yes" >&6; }
33634
33635                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33636                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33637                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33638
33639 fi
33640
33641 pkg_failed=no
33642 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33643 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33644
33645 if test -n "$PKG_CONFIG"; then
33646     if test -n "$PANGOXFT_CFLAGS"; then
33647         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33648     else
33649         if test -n "$PKG_CONFIG" && \
33650     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33651   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; then
33655   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33656 else
33657   pkg_failed=yes
33658 fi
33659     fi
33660 else
33661         pkg_failed=untried
33662 fi
33663 if test -n "$PKG_CONFIG"; then
33664     if test -n "$PANGOXFT_LIBS"; then
33665         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33666     else
33667         if test -n "$PKG_CONFIG" && \
33668     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33669   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33670   ac_status=$?
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); }; then
33673   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33674 else
33675   pkg_failed=yes
33676 fi
33677     fi
33678 else
33679         pkg_failed=untried
33680 fi
33681
33682
33683
33684 if test $pkg_failed = yes; then
33685
33686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33687         _pkg_short_errors_supported=yes
33688 else
33689         _pkg_short_errors_supported=no
33690 fi
33691         if test $_pkg_short_errors_supported = yes; then
33692                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33693         else
33694                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33695         fi
33696         # Put the nasty error message in config.log where it belongs
33697         echo "$PANGOXFT_PKG_ERRORS" >&5
33698
33699
33700                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33701 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33702
33703
33704 elif test $pkg_failed = untried; then
33705
33706                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33707 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33708
33709
33710 else
33711         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33712         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33713         { echo "$as_me:$LINENO: result: yes" >&5
33714 echo "${ECHO_T}yes" >&6; }
33715
33716                     cat >>confdefs.h <<\_ACEOF
33717 #define HAVE_PANGO_XFT 1
33718 _ACEOF
33719
33720                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33721                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33722                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33723
33724 fi
33725             save_LIBS="$LIBS"
33726             LIBS="$LIBS $PANGOX_LIBS"
33727
33728 for ac_func in pango_font_family_is_monospace
33729 do
33730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33734   echo $ECHO_N "(cached) $ECHO_C" >&6
33735 else
33736   cat >conftest.$ac_ext <<_ACEOF
33737 /* confdefs.h.  */
33738 _ACEOF
33739 cat confdefs.h >>conftest.$ac_ext
33740 cat >>conftest.$ac_ext <<_ACEOF
33741 /* end confdefs.h.  */
33742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33744 #define $ac_func innocuous_$ac_func
33745
33746 /* System header to define __stub macros and hopefully few prototypes,
33747     which can conflict with char $ac_func (); below.
33748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33749     <limits.h> exists even on freestanding compilers.  */
33750
33751 #ifdef __STDC__
33752 # include <limits.h>
33753 #else
33754 # include <assert.h>
33755 #endif
33756
33757 #undef $ac_func
33758
33759 /* Override any GCC internal prototype to avoid an error.
33760    Use char because int might match the return type of a GCC
33761    builtin and then its argument prototype would still apply.  */
33762 #ifdef __cplusplus
33763 extern "C"
33764 #endif
33765 char $ac_func ();
33766 /* The GNU C library defines this for functions which it implements
33767     to always fail with ENOSYS.  Some functions are actually named
33768     something starting with __ and the normal name is an alias.  */
33769 #if defined __stub_$ac_func || defined __stub___$ac_func
33770 choke me
33771 #endif
33772
33773 int
33774 main ()
33775 {
33776 return $ac_func ();
33777   ;
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (ac_try="$ac_link"
33783 case "(($ac_try" in
33784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785   *) ac_try_echo=$ac_try;;
33786 esac
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788   (eval "$ac_link") 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } && {
33795          test -z "$ac_c_werror_flag" ||
33796          test ! -s conftest.err
33797        } && test -s conftest$ac_exeext &&
33798        $as_test_x conftest$ac_exeext; then
33799   eval "$as_ac_var=yes"
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804         eval "$as_ac_var=no"
33805 fi
33806
33807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33808       conftest$ac_exeext conftest.$ac_ext
33809 fi
33810 ac_res=`eval echo '${'$as_ac_var'}'`
33811                { echo "$as_me:$LINENO: result: $ac_res" >&5
33812 echo "${ECHO_T}$ac_res" >&6; }
33813 if test `eval echo '${'$as_ac_var'}'` = yes; then
33814   cat >>confdefs.h <<_ACEOF
33815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33816 _ACEOF
33817
33818 fi
33819 done
33820
33821             LIBS="$save_LIBS"
33822         fi
33823
33824         wxUSE_UNIVERSAL="yes"
33825
33826         if test "$wxUSE_NANOX" = "yes"; then
33827             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33828             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"
33829             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33830         else
33831             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33832         fi
33833
33834         TOOLKIT=X11
33835         GUIDIST=X11_DIST
33836     fi
33837
33838     if test "$wxUSE_MOTIF" = 1; then
33839         if test "$wxUSE_UNICODE" = "yes"; then
33840             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
33841 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
33842    { (exit 1); exit 1; }; }
33843         fi
33844
33845         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33846 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33847
33848 ac_find_includes=
33849 for ac_dir in $SEARCH_INCLUDE /usr/include;
33850   do
33851     if test -f "$ac_dir/Xm/Xm.h"; then
33852       ac_find_includes=$ac_dir
33853       break
33854     fi
33855   done
33856
33857         if test "$ac_find_includes" != "" ; then
33858             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33859 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33860
33861     if test "x$ac_find_includes" = "x/usr/include"; then
33862     ac_path_to_include=""
33863   else
33864     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33865     result=$?
33866     if test $result = 0; then
33867       ac_path_to_include=""
33868     else
33869       ac_path_to_include=" -I$ac_find_includes"
33870     fi
33871   fi
33872
33873             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33874         else
33875             save_CFLAGS=$CFLAGS
33876             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33877
33878             cat >conftest.$ac_ext <<_ACEOF
33879 /* confdefs.h.  */
33880 _ACEOF
33881 cat confdefs.h >>conftest.$ac_ext
33882 cat >>conftest.$ac_ext <<_ACEOF
33883 /* end confdefs.h.  */
33884
33885                     #include <Xm/Xm.h>
33886
33887 int
33888 main ()
33889 {
33890
33891                     int version;
33892                     version = xmUseVersion;
33893
33894   ;
33895   return 0;
33896 }
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902   *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905   (eval "$ac_compile") 2>conftest.er1
33906   ac_status=$?
33907   grep -v '^ *+' conftest.er1 >conftest.err
33908   rm -f conftest.er1
33909   cat conftest.err >&5
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); } && {
33912          test -z "$ac_c_werror_flag" ||
33913          test ! -s conftest.err
33914        } && test -s conftest.$ac_objext; then
33915
33916                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33917 echo "${ECHO_T}found in default search path" >&6; }
33918                     COMPILED_X_PROGRAM=1
33919
33920 else
33921   echo "$as_me: failed program was:" >&5
33922 sed 's/^/| /' conftest.$ac_ext >&5
33923
33924
33925                     { echo "$as_me:$LINENO: result: no" >&5
33926 echo "${ECHO_T}no" >&6; }
33927                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33928 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33929    { (exit 1); exit 1; }; }
33930
33931
33932 fi
33933
33934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33935
33936             CFLAGS=$save_CFLAGS
33937         fi
33938
33939
33940         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33941 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33942
33943   ac_find_libraries=
33944   for ac_dir in $SEARCH_LIB;
33945   do
33946     for ac_extension in a so sl dylib dll.a; do
33947       if test -f "$ac_dir/libXm.$ac_extension"; then
33948         ac_find_libraries=$ac_dir
33949         break 2
33950       fi
33951     done
33952   done
33953
33954
33955         if test "x$ac_find_libraries" != "x" ; then
33956             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33957 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33958
33959
33960     if test "$ac_find_libraries" = "default location"; then
33961     ac_path_to_link=""
33962   else
33963     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33964     result=$?
33965     if test $result = 0; then
33966       ac_path_to_link=""
33967     else
33968       ac_path_to_link=" -L$ac_find_libraries"
33969     fi
33970   fi
33971
33972             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33973         else
33974                                                 save_CFLAGS=$CFLAGS
33975             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33976             save_LIBS="$LIBS"
33977             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33978
33979             cat >conftest.$ac_ext <<_ACEOF
33980 /* confdefs.h.  */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h.  */
33985
33986                     #include <Xm/Xm.h>
33987
33988 int
33989 main ()
33990 {
33991
33992                     int version;
33993                     version = xmUseVersion;
33994
33995   ;
33996   return 0;
33997 }
33998 _ACEOF
33999 rm -f conftest.$ac_objext conftest$ac_exeext
34000 if { (ac_try="$ac_link"
34001 case "(($ac_try" in
34002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34003   *) ac_try_echo=$ac_try;;
34004 esac
34005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34006   (eval "$ac_link") 2>conftest.er1
34007   ac_status=$?
34008   grep -v '^ *+' conftest.er1 >conftest.err
34009   rm -f conftest.er1
34010   cat conftest.err >&5
34011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012   (exit $ac_status); } && {
34013          test -z "$ac_c_werror_flag" ||
34014          test ! -s conftest.err
34015        } && test -s conftest$ac_exeext &&
34016        $as_test_x conftest$ac_exeext; then
34017
34018                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34019 echo "${ECHO_T}found in default search path" >&6; }
34020                     COMPILED_X_PROGRAM=1
34021
34022 else
34023   echo "$as_me: failed program was:" >&5
34024 sed 's/^/| /' conftest.$ac_ext >&5
34025
34026
34027                     { echo "$as_me:$LINENO: result: no" >&5
34028 echo "${ECHO_T}no" >&6; }
34029                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34030 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34031    { (exit 1); exit 1; }; }
34032
34033
34034 fi
34035
34036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34037       conftest$ac_exeext conftest.$ac_ext
34038
34039             CFLAGS=$save_CFLAGS
34040             LIBS="$save_LIBS"
34041         fi
34042
34043         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34044 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34045         libp_link=""
34046         libsm_ice_link=""
34047         libs_found=0
34048         for libp in "" " -lXp"; do
34049             if test "$libs_found" = "0"; then
34050                 for libsm_ice in "" " -lSM -lICE"; do
34051                     if test "$libs_found" = "0"; then
34052                         save_LIBS="$LIBS"
34053                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34054                         save_CFLAGS=$CFLAGS
34055                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34056
34057                         cat >conftest.$ac_ext <<_ACEOF
34058 /* confdefs.h.  */
34059 _ACEOF
34060 cat confdefs.h >>conftest.$ac_ext
34061 cat >>conftest.$ac_ext <<_ACEOF
34062 /* end confdefs.h.  */
34063
34064                                 #include <Xm/Xm.h>
34065                                 #include <Xm/List.h>
34066
34067 int
34068 main ()
34069 {
34070
34071                                 XmString string = NULL;
34072                                 Widget w = NULL;
34073                                 int position = 0;
34074                                 XmListAddItem(w, string, position);
34075
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (ac_try="$ac_link"
34082 case "(($ac_try" in
34083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084   *) ac_try_echo=$ac_try;;
34085 esac
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087   (eval "$ac_link") 2>conftest.er1
34088   ac_status=$?
34089   grep -v '^ *+' conftest.er1 >conftest.err
34090   rm -f conftest.er1
34091   cat conftest.err >&5
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } && {
34094          test -z "$ac_c_werror_flag" ||
34095          test ! -s conftest.err
34096        } && test -s conftest$ac_exeext &&
34097        $as_test_x conftest$ac_exeext; then
34098
34099                                 libp_link="$libp"
34100                                 libsm_ice_link="$libsm_ice"
34101                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34102 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34103                                 libs_found=1
34104
34105 else
34106   echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34108
34109
34110
34111 fi
34112
34113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34114       conftest$ac_exeext conftest.$ac_ext
34115
34116                         LIBS="$save_LIBS"
34117                         CFLAGS=$save_CFLAGS
34118                     fi
34119                 done
34120             fi
34121         done
34122
34123         if test "$libs_found" = "0"; then
34124             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34125 echo "${ECHO_T}can't find the right libraries" >&6; }
34126             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34127 echo "$as_me: error: can't link a simple motif program" >&2;}
34128    { (exit 1); exit 1; }; }
34129         fi
34130
34131                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34132 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34133 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34134   echo $ECHO_N "(cached) $ECHO_C" >&6
34135 else
34136   ac_check_lib_save_LIBS=$LIBS
34137 LIBS="-lSgm  $LIBS"
34138 cat >conftest.$ac_ext <<_ACEOF
34139 /* confdefs.h.  */
34140 _ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h.  */
34144
34145 /* Override any GCC internal prototype to avoid an error.
34146    Use char because int might match the return type of a GCC
34147    builtin and then its argument prototype would still apply.  */
34148 #ifdef __cplusplus
34149 extern "C"
34150 #endif
34151 char SgCreateList ();
34152 int
34153 main ()
34154 {
34155 return SgCreateList ();
34156   ;
34157   return 0;
34158 }
34159 _ACEOF
34160 rm -f conftest.$ac_objext conftest$ac_exeext
34161 if { (ac_try="$ac_link"
34162 case "(($ac_try" in
34163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164   *) ac_try_echo=$ac_try;;
34165 esac
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167   (eval "$ac_link") 2>conftest.er1
34168   ac_status=$?
34169   grep -v '^ *+' conftest.er1 >conftest.err
34170   rm -f conftest.er1
34171   cat conftest.err >&5
34172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173   (exit $ac_status); } && {
34174          test -z "$ac_c_werror_flag" ||
34175          test ! -s conftest.err
34176        } && test -s conftest$ac_exeext &&
34177        $as_test_x conftest$ac_exeext; then
34178   ac_cv_lib_Sgm_SgCreateList=yes
34179 else
34180   echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34182
34183         ac_cv_lib_Sgm_SgCreateList=no
34184 fi
34185
34186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34187       conftest$ac_exeext conftest.$ac_ext
34188 LIBS=$ac_check_lib_save_LIBS
34189 fi
34190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34191 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34192 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34193   libsgm_link=" -lSgm"
34194 fi
34195
34196
34197         save_CFLAGS=$CFLAGS
34198         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34199
34200         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34201 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34202 if test "${wx_cv_lib_motif2+set}" = set; then
34203   echo $ECHO_N "(cached) $ECHO_C" >&6
34204 else
34205   cat >conftest.$ac_ext <<_ACEOF
34206 /* confdefs.h.  */
34207 _ACEOF
34208 cat confdefs.h >>conftest.$ac_ext
34209 cat >>conftest.$ac_ext <<_ACEOF
34210 /* end confdefs.h.  */
34211
34212                             #include <Xm/Xm.h>
34213
34214 int
34215 main ()
34216 {
34217
34218                             #if XmVersion < 2000
34219                             Not Motif 2
34220                             #endif
34221
34222   ;
34223   return 0;
34224 }
34225 _ACEOF
34226 rm -f conftest.$ac_objext
34227 if { (ac_try="$ac_compile"
34228 case "(($ac_try" in
34229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230   *) ac_try_echo=$ac_try;;
34231 esac
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233   (eval "$ac_compile") 2>conftest.er1
34234   ac_status=$?
34235   grep -v '^ *+' conftest.er1 >conftest.err
34236   rm -f conftest.er1
34237   cat conftest.err >&5
34238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239   (exit $ac_status); } && {
34240          test -z "$ac_c_werror_flag" ||
34241          test ! -s conftest.err
34242        } && test -s conftest.$ac_objext; then
34243   wx_cv_lib_motif2="yes"
34244 else
34245   echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34247
34248         wx_cv_lib_motif2="no"
34249 fi
34250
34251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34252 fi
34253 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34254 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34255         if test "$wx_cv_lib_motif2" = "yes"; then
34256             cat >>confdefs.h <<\_ACEOF
34257 #define __WXMOTIF20__ 1
34258 _ACEOF
34259
34260         else
34261             cat >>confdefs.h <<\_ACEOF
34262 #define __WXMOTIF20__ 0
34263 _ACEOF
34264
34265         fi
34266
34267         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34268 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34269 if test "${wx_cv_lib_lesstif+set}" = set; then
34270   echo $ECHO_N "(cached) $ECHO_C" >&6
34271 else
34272   cat >conftest.$ac_ext <<_ACEOF
34273 /* confdefs.h.  */
34274 _ACEOF
34275 cat confdefs.h >>conftest.$ac_ext
34276 cat >>conftest.$ac_ext <<_ACEOF
34277 /* end confdefs.h.  */
34278
34279                             #include <Xm/Xm.h>
34280
34281 int
34282 main ()
34283 {
34284
34285                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34286                             Not Lesstif
34287                             #endif
34288
34289   ;
34290   return 0;
34291 }
34292 _ACEOF
34293 rm -f conftest.$ac_objext
34294 if { (ac_try="$ac_compile"
34295 case "(($ac_try" in
34296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297   *) ac_try_echo=$ac_try;;
34298 esac
34299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300   (eval "$ac_compile") 2>conftest.er1
34301   ac_status=$?
34302   grep -v '^ *+' conftest.er1 >conftest.err
34303   rm -f conftest.er1
34304   cat conftest.err >&5
34305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306   (exit $ac_status); } && {
34307          test -z "$ac_c_werror_flag" ||
34308          test ! -s conftest.err
34309        } && test -s conftest.$ac_objext; then
34310   wx_cv_lib_lesstif="yes"
34311 else
34312   echo "$as_me: failed program was:" >&5
34313 sed 's/^/| /' conftest.$ac_ext >&5
34314
34315         wx_cv_lib_lesstif="no"
34316 fi
34317
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34319
34320 fi
34321 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34322 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34323         if test "$wx_cv_lib_lesstif" = "yes"; then
34324             cat >>confdefs.h <<\_ACEOF
34325 #define __WXLESSTIF__ 1
34326 _ACEOF
34327
34328         else
34329             cat >>confdefs.h <<\_ACEOF
34330 #define __WXLESSTIF__ 0
34331 _ACEOF
34332
34333         fi
34334
34335         CFLAGS=$save_CFLAGS
34336
34337         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34338         TOOLKIT=MOTIF
34339         GUIDIST=MOTIF_DIST
34340     fi
34341
34342         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34343                 if test "$wxUSE_LIBXPM" = "sys"; then
34344             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34345 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34346
34347   ac_find_libraries=
34348   for ac_dir in $SEARCH_LIB;
34349   do
34350     for ac_extension in a so sl dylib dll.a; do
34351       if test -f "$ac_dir/libXpm.$ac_extension"; then
34352         ac_find_libraries=$ac_dir
34353         break 2
34354       fi
34355     done
34356   done
34357
34358             if test "$ac_find_libraries" != "" ; then
34359
34360     if test "$ac_find_libraries" = "default location"; then
34361     ac_path_to_link=""
34362   else
34363     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34364     result=$?
34365     if test $result = 0; then
34366       ac_path_to_link=""
34367     else
34368       ac_path_to_link=" -L$ac_find_libraries"
34369     fi
34370   fi
34371
34372                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34373                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34374 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34375
34376                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34377 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34378 if test "${wx_cv_x11_xpm_h+set}" = set; then
34379   echo $ECHO_N "(cached) $ECHO_C" >&6
34380 else
34381
34382                         save_CFLAGS=$CFLAGS
34383                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34384
34385                         cat >conftest.$ac_ext <<_ACEOF
34386 /* confdefs.h.  */
34387 _ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h.  */
34391
34392                                 #include <X11/xpm.h>
34393
34394 int
34395 main ()
34396 {
34397
34398                                 int version;
34399                                 version = XpmLibraryVersion();
34400
34401   ;
34402   return 0;
34403 }
34404 _ACEOF
34405 rm -f conftest.$ac_objext
34406 if { (ac_try="$ac_compile"
34407 case "(($ac_try" in
34408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409   *) ac_try_echo=$ac_try;;
34410 esac
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412   (eval "$ac_compile") 2>conftest.er1
34413   ac_status=$?
34414   grep -v '^ *+' conftest.er1 >conftest.err
34415   rm -f conftest.er1
34416   cat conftest.err >&5
34417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418   (exit $ac_status); } && {
34419          test -z "$ac_c_werror_flag" ||
34420          test ! -s conftest.err
34421        } && test -s conftest.$ac_objext; then
34422   wx_cv_x11_xpm_h=yes
34423 else
34424   echo "$as_me: failed program was:" >&5
34425 sed 's/^/| /' conftest.$ac_ext >&5
34426
34427         wx_cv_x11_xpm_h=no
34428
34429 fi
34430
34431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34432
34433                         CFLAGS=$save_CFLAGS
34434
34435
34436 fi
34437 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34438 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34439
34440                 if test $wx_cv_x11_xpm_h = "yes"; then
34441                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34442                     cat >>confdefs.h <<\_ACEOF
34443 #define wxHAVE_LIB_XPM 1
34444 _ACEOF
34445
34446                 else
34447                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34448 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34449                 fi
34450             fi
34451
34452         fi
34453
34454                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34455 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34456 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   ac_check_lib_save_LIBS=$LIBS
34460 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34461 cat >conftest.$ac_ext <<_ACEOF
34462 /* confdefs.h.  */
34463 _ACEOF
34464 cat confdefs.h >>conftest.$ac_ext
34465 cat >>conftest.$ac_ext <<_ACEOF
34466 /* end confdefs.h.  */
34467
34468 /* Override any GCC internal prototype to avoid an error.
34469    Use char because int might match the return type of a GCC
34470    builtin and then its argument prototype would still apply.  */
34471 #ifdef __cplusplus
34472 extern "C"
34473 #endif
34474 char XShapeQueryExtension ();
34475 int
34476 main ()
34477 {
34478 return XShapeQueryExtension ();
34479   ;
34480   return 0;
34481 }
34482 _ACEOF
34483 rm -f conftest.$ac_objext conftest$ac_exeext
34484 if { (ac_try="$ac_link"
34485 case "(($ac_try" in
34486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34487   *) ac_try_echo=$ac_try;;
34488 esac
34489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34490   (eval "$ac_link") 2>conftest.er1
34491   ac_status=$?
34492   grep -v '^ *+' conftest.er1 >conftest.err
34493   rm -f conftest.er1
34494   cat conftest.err >&5
34495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496   (exit $ac_status); } && {
34497          test -z "$ac_c_werror_flag" ||
34498          test ! -s conftest.err
34499        } && test -s conftest$ac_exeext &&
34500        $as_test_x conftest$ac_exeext; then
34501   ac_cv_lib_Xext_XShapeQueryExtension=yes
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506         ac_cv_lib_Xext_XShapeQueryExtension=no
34507 fi
34508
34509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34510       conftest$ac_exeext conftest.$ac_ext
34511 LIBS=$ac_check_lib_save_LIBS
34512 fi
34513 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34514 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34515 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34516
34517                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34518                       wxHAVE_XEXT_LIB=1
34519
34520 fi
34521
34522
34523         if test "$wxHAVE_XEXT_LIB" = 1; then
34524             save_CFLAGS="$CFLAGS"
34525             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34526
34527             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34528 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34529             cat >conftest.$ac_ext <<_ACEOF
34530 /* confdefs.h.  */
34531 _ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h.  */
34535
34536                             #include <X11/Xlib.h>
34537                             #include <X11/extensions/shape.h>
34538
34539 int
34540 main ()
34541 {
34542
34543                             int dummy1, dummy2;
34544                             XShapeQueryExtension((Display*)NULL,
34545                                                  (int*)NULL, (int*)NULL);
34546
34547   ;
34548   return 0;
34549 }
34550 _ACEOF
34551 rm -f conftest.$ac_objext
34552 if { (ac_try="$ac_compile"
34553 case "(($ac_try" in
34554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555   *) ac_try_echo=$ac_try;;
34556 esac
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558   (eval "$ac_compile") 2>conftest.er1
34559   ac_status=$?
34560   grep -v '^ *+' conftest.er1 >conftest.err
34561   rm -f conftest.er1
34562   cat conftest.err >&5
34563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564   (exit $ac_status); } && {
34565          test -z "$ac_c_werror_flag" ||
34566          test ! -s conftest.err
34567        } && test -s conftest.$ac_objext; then
34568
34569                             cat >>confdefs.h <<\_ACEOF
34570 #define HAVE_XSHAPE 1
34571 _ACEOF
34572
34573                             { echo "$as_me:$LINENO: result: found" >&5
34574 echo "${ECHO_T}found" >&6; }
34575
34576 else
34577   echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34579
34580
34581                             { echo "$as_me:$LINENO: result: not found" >&5
34582 echo "${ECHO_T}not found" >&6; }
34583
34584 fi
34585
34586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34587             CFLAGS="$save_CFLAGS"
34588
34589         fi
34590     fi
34591
34592     if test "$wxUSE_MAC" = 1; then
34593         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34594 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34595         if test "$GCC" = yes; then
34596             { echo "$as_me:$LINENO: result: gcc" >&5
34597 echo "${ECHO_T}gcc" >&6; }
34598             CPPFLAGS_PASCAL="-fpascal-strings"
34599         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34600             { echo "$as_me:$LINENO: result: xlc" >&5
34601 echo "${ECHO_T}xlc" >&6; }
34602             CPPFLAGS_PASCAL="-qmacpstr"
34603         else
34604             { echo "$as_me:$LINENO: result: none" >&5
34605 echo "${ECHO_T}none" >&6; }
34606         fi
34607
34608         if test "x$wxUSE_UNIX" = "xyes"; then
34609             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34610         else
34611                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
34612         fi
34613
34614         TOOLKIT=MAC
34615                 GUIDIST=MACX_DIST
34616                         WXBASEPORT="_carbon"
34617     fi
34618
34619     if test "$wxUSE_COCOA" = 1; then
34620         TOOLKIT=COCOA
34621         GUIDIST=COCOA_DIST
34622     fi
34623
34624     if test "$wxUSE_PM" = 1; then
34625         TOOLKIT=PM
34626         GUIDIST=PM_DIST
34627         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34628 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34629 if test "${wx_cv_spbcdata+set}" = set; then
34630   echo $ECHO_N "(cached) $ECHO_C" >&6
34631 else
34632
34633                 cat >conftest.$ac_ext <<_ACEOF
34634 /* confdefs.h.  */
34635 _ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h.  */
34639
34640                         #define INCL_PM
34641                         #include <os2.h>
34642
34643 int
34644 main ()
34645 {
34646
34647                         SPBCDATA test;
34648
34649   ;
34650   return 0;
34651 }
34652 _ACEOF
34653 rm -f conftest.$ac_objext
34654 if { (ac_try="$ac_compile"
34655 case "(($ac_try" in
34656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34657   *) ac_try_echo=$ac_try;;
34658 esac
34659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660   (eval "$ac_compile") 2>conftest.er1
34661   ac_status=$?
34662   grep -v '^ *+' conftest.er1 >conftest.err
34663   rm -f conftest.er1
34664   cat conftest.err >&5
34665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666   (exit $ac_status); } && {
34667          test -z "$ac_c_werror_flag" ||
34668          test ! -s conftest.err
34669        } && test -s conftest.$ac_objext; then
34670   wx_cv_spbcdata=yes
34671 else
34672   echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34674
34675         wx_cv_spbcdata=no
34676
34677 fi
34678
34679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34680
34681
34682 fi
34683 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34684 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34685
34686         if test $wx_cv_spbcdata = "yes"; then
34687             cat >>confdefs.h <<\_ACEOF
34688 #define HAVE_SPBCDATA 1
34689 _ACEOF
34690
34691         fi
34692     fi
34693
34694         if test "$TOOLKIT" = "PM" ; then
34695         TOOLKIT_DIR="os2"
34696     else
34697         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
34698     fi
34699
34700     if test "$wxUSE_UNIVERSAL" = "yes"; then
34701         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34702         WIDGET_SET=univ
34703     fi
34704
34705         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34706     DISTDIR="wx\$(TOOLKIT)"
34707 else
34708     USE_GUI=0
34709
34710             TOOLKIT_DIR="base"
34711
34712         if test "$USE_WIN32" = 1 ; then
34713                         TOOLKIT="MSW"
34714     fi
34715
34716         GUIDIST="BASE_DIST"
34717     DISTDIR="wxBase"
34718 fi
34719
34720
34721
34722 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34723     if test "$TOOLKIT" = "DFB" ; then
34724         wxUSE_UNICODE_UTF8=yes
34725     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
34726         wxUSE_UNICODE_UTF8=yes
34727     elif test "$USE_OS2" = "1" ; then
34728                                 wxUSE_UNICODE_UTF8=yes
34729     else
34730         wxUSE_UNICODE_UTF8=no
34731     fi
34732 fi
34733
34734
34735 if test "$wxUSE_GUI" = "yes"; then
34736     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34737                 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34738 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34739 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34740   echo $ECHO_N "(cached) $ECHO_C" >&6
34741 else
34742   cat >conftest.$ac_ext <<_ACEOF
34743 /* confdefs.h.  */
34744 _ACEOF
34745 cat confdefs.h >>conftest.$ac_ext
34746 cat >>conftest.$ac_ext <<_ACEOF
34747 /* end confdefs.h.  */
34748
34749
34750 #include <X11/Xlib.h>
34751 _ACEOF
34752 rm -f conftest.$ac_objext
34753 if { (ac_try="$ac_compile"
34754 case "(($ac_try" in
34755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34756   *) ac_try_echo=$ac_try;;
34757 esac
34758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34759   (eval "$ac_compile") 2>conftest.er1
34760   ac_status=$?
34761   grep -v '^ *+' conftest.er1 >conftest.err
34762   rm -f conftest.er1
34763   cat conftest.err >&5
34764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765   (exit $ac_status); } && {
34766          test -z "$ac_c_werror_flag" ||
34767          test ! -s conftest.err
34768        } && test -s conftest.$ac_objext; then
34769   ac_cv_header_X11_Xlib_h=yes
34770 else
34771   echo "$as_me: failed program was:" >&5
34772 sed 's/^/| /' conftest.$ac_ext >&5
34773
34774         ac_cv_header_X11_Xlib_h=no
34775 fi
34776
34777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34778 fi
34779 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34780 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34781
34782
34783         { echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
34784 echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6; }
34785 if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
34786   echo $ECHO_N "(cached) $ECHO_C" >&6
34787 else
34788   cat >conftest.$ac_ext <<_ACEOF
34789 /* confdefs.h.  */
34790 _ACEOF
34791 cat confdefs.h >>conftest.$ac_ext
34792 cat >>conftest.$ac_ext <<_ACEOF
34793 /* end confdefs.h.  */
34794
34795                           #if HAVE_X11_XLIB_H
34796                             #include <X11/Xlib.h>
34797                           #endif
34798
34799
34800 #include <X11/XKBlib.h>
34801 _ACEOF
34802 rm -f conftest.$ac_objext
34803 if { (ac_try="$ac_compile"
34804 case "(($ac_try" in
34805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34806   *) ac_try_echo=$ac_try;;
34807 esac
34808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34809   (eval "$ac_compile") 2>conftest.er1
34810   ac_status=$?
34811   grep -v '^ *+' conftest.er1 >conftest.err
34812   rm -f conftest.er1
34813   cat conftest.err >&5
34814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815   (exit $ac_status); } && {
34816          test -z "$ac_c_werror_flag" ||
34817          test ! -s conftest.err
34818        } && test -s conftest.$ac_objext; then
34819   ac_cv_header_X11_XKBlib_h=yes
34820 else
34821   echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34823
34824         ac_cv_header_X11_XKBlib_h=no
34825 fi
34826
34827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34828 fi
34829 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
34830 echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6; }
34831
34832
34833     fi
34834 fi
34835
34836
34837
34838 IODBC_C_SRC=""
34839
34840
34841 if test "$TOOLKIT" != "MSW" ; then
34842
34843     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
34844
34845         { echo "$as_me:$LINENO: checking for sql.h" >&5
34846 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
34847 if test "${ac_cv_header_sql_h+set}" = set; then
34848   echo $ECHO_N "(cached) $ECHO_C" >&6
34849 else
34850   cat >conftest.$ac_ext <<_ACEOF
34851 /* confdefs.h.  */
34852 _ACEOF
34853 cat confdefs.h >>conftest.$ac_ext
34854 cat >>conftest.$ac_ext <<_ACEOF
34855 /* end confdefs.h.  */
34856
34857
34858 #include <sql.h>
34859 _ACEOF
34860 rm -f conftest.$ac_objext
34861 if { (ac_try="$ac_compile"
34862 case "(($ac_try" in
34863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864   *) ac_try_echo=$ac_try;;
34865 esac
34866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867   (eval "$ac_compile") 2>conftest.er1
34868   ac_status=$?
34869   grep -v '^ *+' conftest.er1 >conftest.err
34870   rm -f conftest.er1
34871   cat conftest.err >&5
34872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873   (exit $ac_status); } && {
34874          test -z "$ac_c_werror_flag" ||
34875          test ! -s conftest.err
34876        } && test -s conftest.$ac_objext; then
34877   ac_cv_header_sql_h=yes
34878 else
34879   echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34881
34882         ac_cv_header_sql_h=no
34883 fi
34884
34885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34886 fi
34887 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
34888 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
34889 if test $ac_cv_header_sql_h = yes; then
34890   found_sql_h=1
34891 fi
34892
34893
34894         if test "x$found_sql_h" = "x1" ; then
34895             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
34896 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
34897 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
34898   echo $ECHO_N "(cached) $ECHO_C" >&6
34899 else
34900   ac_check_lib_save_LIBS=$LIBS
34901 LIBS="-liodbc  $LIBS"
34902 cat >conftest.$ac_ext <<_ACEOF
34903 /* confdefs.h.  */
34904 _ACEOF
34905 cat confdefs.h >>conftest.$ac_ext
34906 cat >>conftest.$ac_ext <<_ACEOF
34907 /* end confdefs.h.  */
34908
34909 /* Override any GCC internal prototype to avoid an error.
34910    Use char because int might match the return type of a GCC
34911    builtin and then its argument prototype would still apply.  */
34912 #ifdef __cplusplus
34913 extern "C"
34914 #endif
34915 char SQLAllocEnv ();
34916 int
34917 main ()
34918 {
34919 return SQLAllocEnv ();
34920   ;
34921   return 0;
34922 }
34923 _ACEOF
34924 rm -f conftest.$ac_objext conftest$ac_exeext
34925 if { (ac_try="$ac_link"
34926 case "(($ac_try" in
34927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34928   *) ac_try_echo=$ac_try;;
34929 esac
34930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34931   (eval "$ac_link") 2>conftest.er1
34932   ac_status=$?
34933   grep -v '^ *+' conftest.er1 >conftest.err
34934   rm -f conftest.er1
34935   cat conftest.err >&5
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); } && {
34938          test -z "$ac_c_werror_flag" ||
34939          test ! -s conftest.err
34940        } && test -s conftest$ac_exeext &&
34941        $as_test_x conftest$ac_exeext; then
34942   ac_cv_lib_iodbc_SQLAllocEnv=yes
34943 else
34944   echo "$as_me: failed program was:" >&5
34945 sed 's/^/| /' conftest.$ac_ext >&5
34946
34947         ac_cv_lib_iodbc_SQLAllocEnv=no
34948 fi
34949
34950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34951       conftest$ac_exeext conftest.$ac_ext
34952 LIBS=$ac_check_lib_save_LIBS
34953 fi
34954 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
34955 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
34956 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
34957   ODBC_LINK=" -liodbc"
34958 else
34959
34960                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
34961 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
34962 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
34963   echo $ECHO_N "(cached) $ECHO_C" >&6
34964 else
34965   ac_check_lib_save_LIBS=$LIBS
34966 LIBS="-lunixodbc  $LIBS"
34967 cat >conftest.$ac_ext <<_ACEOF
34968 /* confdefs.h.  */
34969 _ACEOF
34970 cat confdefs.h >>conftest.$ac_ext
34971 cat >>conftest.$ac_ext <<_ACEOF
34972 /* end confdefs.h.  */
34973
34974 /* Override any GCC internal prototype to avoid an error.
34975    Use char because int might match the return type of a GCC
34976    builtin and then its argument prototype would still apply.  */
34977 #ifdef __cplusplus
34978 extern "C"
34979 #endif
34980 char SQLAllocEnv ();
34981 int
34982 main ()
34983 {
34984 return SQLAllocEnv ();
34985   ;
34986   return 0;
34987 }
34988 _ACEOF
34989 rm -f conftest.$ac_objext conftest$ac_exeext
34990 if { (ac_try="$ac_link"
34991 case "(($ac_try" in
34992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993   *) ac_try_echo=$ac_try;;
34994 esac
34995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34996   (eval "$ac_link") 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } && {
35003          test -z "$ac_c_werror_flag" ||
35004          test ! -s conftest.err
35005        } && test -s conftest$ac_exeext &&
35006        $as_test_x conftest$ac_exeext; then
35007   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35008 else
35009   echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35011
35012         ac_cv_lib_unixodbc_SQLAllocEnv=no
35013 fi
35014
35015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35016       conftest$ac_exeext conftest.$ac_ext
35017 LIBS=$ac_check_lib_save_LIBS
35018 fi
35019 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35020 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35021 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35022   ODBC_LINK=" -lunixodbc"
35023 else
35024
35025                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35026 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35027 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35028   echo $ECHO_N "(cached) $ECHO_C" >&6
35029 else
35030   ac_check_lib_save_LIBS=$LIBS
35031 LIBS="-lodbc  $LIBS"
35032 cat >conftest.$ac_ext <<_ACEOF
35033 /* confdefs.h.  */
35034 _ACEOF
35035 cat confdefs.h >>conftest.$ac_ext
35036 cat >>conftest.$ac_ext <<_ACEOF
35037 /* end confdefs.h.  */
35038
35039 /* Override any GCC internal prototype to avoid an error.
35040    Use char because int might match the return type of a GCC
35041    builtin and then its argument prototype would still apply.  */
35042 #ifdef __cplusplus
35043 extern "C"
35044 #endif
35045 char SQLAllocEnv ();
35046 int
35047 main ()
35048 {
35049 return SQLAllocEnv ();
35050   ;
35051   return 0;
35052 }
35053 _ACEOF
35054 rm -f conftest.$ac_objext conftest$ac_exeext
35055 if { (ac_try="$ac_link"
35056 case "(($ac_try" in
35057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35058   *) ac_try_echo=$ac_try;;
35059 esac
35060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35061   (eval "$ac_link") 2>conftest.er1
35062   ac_status=$?
35063   grep -v '^ *+' conftest.er1 >conftest.err
35064   rm -f conftest.er1
35065   cat conftest.err >&5
35066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067   (exit $ac_status); } && {
35068          test -z "$ac_c_werror_flag" ||
35069          test ! -s conftest.err
35070        } && test -s conftest$ac_exeext &&
35071        $as_test_x conftest$ac_exeext; then
35072   ac_cv_lib_odbc_SQLAllocEnv=yes
35073 else
35074   echo "$as_me: failed program was:" >&5
35075 sed 's/^/| /' conftest.$ac_ext >&5
35076
35077         ac_cv_lib_odbc_SQLAllocEnv=no
35078 fi
35079
35080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35081       conftest$ac_exeext conftest.$ac_ext
35082 LIBS=$ac_check_lib_save_LIBS
35083 fi
35084 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35085 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35086 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35087   ODBC_LINK=" -lodbc"
35088 fi
35089
35090
35091 fi
35092
35093
35094 fi
35095
35096         fi
35097         if test "x$ODBC_LINK" = "x" ; then
35098             if test "$wxUSE_ODBC" = "sys" ; then
35099                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35100 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35101    { (exit 1); exit 1; }; }
35102             else
35103                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35104 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35105                 wxUSE_ODBC=builtin
35106             fi
35107         else
35108                         wxUSE_ODBC=sys
35109         fi
35110     fi
35111
35112     if test "$wxUSE_ODBC" = "builtin" ; then
35113         cat >>confdefs.h <<\_ACEOF
35114 #define wxUSE_BUILTIN_IODBC 1
35115 _ACEOF
35116
35117     fi
35118 fi
35119
35120 if test "$wxUSE_ODBC" != "no" ; then
35121     cat >>confdefs.h <<\_ACEOF
35122 #define wxUSE_ODBC 1
35123 _ACEOF
35124
35125     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35126
35127         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35128 fi
35129
35130
35131 if test "$wxUSE_DISPLAY" = "yes"; then
35132     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35133         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35134 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35135
35136   ac_find_libraries=
35137   for ac_dir in $SEARCH_LIB;
35138   do
35139     for ac_extension in a so sl dylib dll.a; do
35140       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35141         ac_find_libraries=$ac_dir
35142         break 2
35143       fi
35144     done
35145   done
35146
35147         if test "$ac_find_libraries" != "" ; then
35148
35149     if test "$ac_find_libraries" = "default location"; then
35150     ac_path_to_link=""
35151   else
35152     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35153     result=$?
35154     if test $result = 0; then
35155       ac_path_to_link=""
35156     else
35157       ac_path_to_link=" -L$ac_find_libraries"
35158     fi
35159   fi
35160
35161             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35162                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35163             fi
35164             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35165             { echo "$as_me:$LINENO: result: yes" >&5
35166 echo "${ECHO_T}yes" >&6; }
35167
35168             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35169 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35170
35171   ac_find_libraries=
35172   for ac_dir in $SEARCH_LIB;
35173   do
35174     for ac_extension in a so sl dylib dll.a; do
35175       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35176         ac_find_libraries=$ac_dir
35177         break 2
35178       fi
35179     done
35180   done
35181
35182             if test "$ac_find_libraries" != "" ; then
35183                 { echo "$as_me:$LINENO: result: yes" >&5
35184 echo "${ECHO_T}yes" >&6; }
35185                 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
35186 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
35187 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
35188   echo $ECHO_N "(cached) $ECHO_C" >&6
35189 else
35190   cat >conftest.$ac_ext <<_ACEOF
35191 /* confdefs.h.  */
35192 _ACEOF
35193 cat confdefs.h >>conftest.$ac_ext
35194 cat >>conftest.$ac_ext <<_ACEOF
35195 /* end confdefs.h.  */
35196
35197                                       #if HAVE_X11_XLIB_H
35198                                         #include <X11/Xlib.h>
35199                                       #endif
35200
35201
35202 #include <X11/extensions/xf86vmode.h>
35203 _ACEOF
35204 rm -f conftest.$ac_objext
35205 if { (ac_try="$ac_compile"
35206 case "(($ac_try" in
35207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35208   *) ac_try_echo=$ac_try;;
35209 esac
35210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35211   (eval "$ac_compile") 2>conftest.er1
35212   ac_status=$?
35213   grep -v '^ *+' conftest.er1 >conftest.err
35214   rm -f conftest.er1
35215   cat conftest.err >&5
35216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217   (exit $ac_status); } && {
35218          test -z "$ac_c_werror_flag" ||
35219          test ! -s conftest.err
35220        } && test -s conftest.$ac_objext; then
35221   ac_cv_header_X11_extensions_xf86vmode_h=yes
35222 else
35223   echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35225
35226         ac_cv_header_X11_extensions_xf86vmode_h=no
35227 fi
35228
35229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35230 fi
35231 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
35232 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
35233 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
35234
35235                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35236
35237 fi
35238
35239
35240             else
35241                 { echo "$as_me:$LINENO: result: no" >&5
35242 echo "${ECHO_T}no" >&6; }
35243             fi
35244
35245         else
35246             { echo "$as_me:$LINENO: result: no" >&5
35247 echo "${ECHO_T}no" >&6; }
35248             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35249 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35250             wxUSE_DISPLAY="no"
35251         fi
35252     elif test "$wxUSE_MSW" = 1; then
35253         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35254 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35255 if test "${ac_cv_header_ddraw_h+set}" = set; then
35256   echo $ECHO_N "(cached) $ECHO_C" >&6
35257 else
35258   cat >conftest.$ac_ext <<_ACEOF
35259 /* confdefs.h.  */
35260 _ACEOF
35261 cat confdefs.h >>conftest.$ac_ext
35262 cat >>conftest.$ac_ext <<_ACEOF
35263 /* end confdefs.h.  */
35264 #include <windows.h>
35265
35266 #include <ddraw.h>
35267 _ACEOF
35268 rm -f conftest.$ac_objext
35269 if { (ac_try="$ac_compile"
35270 case "(($ac_try" in
35271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35272   *) ac_try_echo=$ac_try;;
35273 esac
35274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35275   (eval "$ac_compile") 2>conftest.er1
35276   ac_status=$?
35277   grep -v '^ *+' conftest.er1 >conftest.err
35278   rm -f conftest.er1
35279   cat conftest.err >&5
35280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281   (exit $ac_status); } && {
35282          test -z "$ac_c_werror_flag" ||
35283          test ! -s conftest.err
35284        } && test -s conftest.$ac_objext; then
35285   ac_cv_header_ddraw_h=yes
35286 else
35287   echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290         ac_cv_header_ddraw_h=no
35291 fi
35292
35293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35294 fi
35295 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35296 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35297
35298
35299     fi
35300 fi
35301
35302 if test "$wxUSE_DETECT_SM" = "yes"; then
35303     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35304         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35305 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35306
35307   ac_find_libraries=
35308   for ac_dir in $SEARCH_LIB;
35309   do
35310     for ac_extension in a so sl dylib dll.a; do
35311       if test -f "$ac_dir/libSM.$ac_extension"; then
35312         ac_find_libraries=$ac_dir
35313         break 2
35314       fi
35315     done
35316   done
35317
35318         if test "$ac_find_libraries" != "" ; then
35319
35320     if test "$ac_find_libraries" = "default location"; then
35321     ac_path_to_link=""
35322   else
35323     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35324     result=$?
35325     if test $result = 0; then
35326       ac_path_to_link=""
35327     else
35328       ac_path_to_link=" -L$ac_find_libraries"
35329     fi
35330   fi
35331
35332             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35333                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35334             fi
35335             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35336             { echo "$as_me:$LINENO: result: yes" >&5
35337 echo "${ECHO_T}yes" >&6; }
35338         else
35339             { echo "$as_me:$LINENO: result: no" >&5
35340 echo "${ECHO_T}no" >&6; }
35341             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35342 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35343             wxUSE_DETECT_SM="no"
35344         fi
35345     else
35346         wxUSE_DETECT_SM="no"
35347     fi
35348 fi
35349
35350
35351
35352 USE_OPENGL=0
35353 if test "$wxUSE_OPENGL" = "yes"; then
35354     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35355         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35356 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35357         wxUSE_OPENGL="no"
35358     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35359         OPENGL_LIBS="-framework OpenGL -framework AGL"
35360     elif test "$wxUSE_MSW" = 1; then
35361         OPENGL_LIBS="-lopengl32 -lglu32"
35362     else
35363                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35364 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35365
35366 ac_find_includes=
35367 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35368   do
35369     if test -f "$ac_dir/GL/gl.h"; then
35370       ac_find_includes=$ac_dir
35371       break
35372     fi
35373   done
35374
35375         if test "$ac_find_includes" != "" ; then
35376             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35377 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35378
35379     if test "x$ac_find_includes" = "x/usr/include"; then
35380     ac_path_to_include=""
35381   else
35382     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35383     result=$?
35384     if test $result = 0; then
35385       ac_path_to_include=""
35386     else
35387       ac_path_to_include=" -I$ac_find_includes"
35388     fi
35389   fi
35390
35391             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35392         else
35393             { echo "$as_me:$LINENO: result: not found" >&5
35394 echo "${ECHO_T}not found" >&6; }
35395         fi
35396
35397         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35398 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35399 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35400   echo $ECHO_N "(cached) $ECHO_C" >&6
35401 else
35402   cat >conftest.$ac_ext <<_ACEOF
35403 /* confdefs.h.  */
35404 _ACEOF
35405 cat confdefs.h >>conftest.$ac_ext
35406 cat >>conftest.$ac_ext <<_ACEOF
35407 /* end confdefs.h.  */
35408
35409
35410 #include <GL/gl.h>
35411 _ACEOF
35412 rm -f conftest.$ac_objext
35413 if { (ac_try="$ac_compile"
35414 case "(($ac_try" in
35415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416   *) ac_try_echo=$ac_try;;
35417 esac
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419   (eval "$ac_compile") 2>conftest.er1
35420   ac_status=$?
35421   grep -v '^ *+' conftest.er1 >conftest.err
35422   rm -f conftest.er1
35423   cat conftest.err >&5
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } && {
35426          test -z "$ac_c_werror_flag" ||
35427          test ! -s conftest.err
35428        } && test -s conftest.$ac_objext; then
35429   ac_cv_header_GL_gl_h=yes
35430 else
35431   echo "$as_me: failed program was:" >&5
35432 sed 's/^/| /' conftest.$ac_ext >&5
35433
35434         ac_cv_header_GL_gl_h=no
35435 fi
35436
35437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35438 fi
35439 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35440 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35441 if test $ac_cv_header_GL_gl_h = yes; then
35442
35443             if test "${ac_cv_header_GL_glu_h+set}" = set; then
35444   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35445 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35446 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35447   echo $ECHO_N "(cached) $ECHO_C" >&6
35448 fi
35449 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35450 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35451 else
35452   # Is the header compilable?
35453 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
35454 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
35455 cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 $ac_includes_default
35462 #include <GL/glu.h>
35463 _ACEOF
35464 rm -f conftest.$ac_objext
35465 if { (ac_try="$ac_compile"
35466 case "(($ac_try" in
35467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35468   *) ac_try_echo=$ac_try;;
35469 esac
35470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35471   (eval "$ac_compile") 2>conftest.er1
35472   ac_status=$?
35473   grep -v '^ *+' conftest.er1 >conftest.err
35474   rm -f conftest.er1
35475   cat conftest.err >&5
35476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477   (exit $ac_status); } && {
35478          test -z "$ac_c_werror_flag" ||
35479          test ! -s conftest.err
35480        } && test -s conftest.$ac_objext; then
35481   ac_header_compiler=yes
35482 else
35483   echo "$as_me: failed program was:" >&5
35484 sed 's/^/| /' conftest.$ac_ext >&5
35485
35486         ac_header_compiler=no
35487 fi
35488
35489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35491 echo "${ECHO_T}$ac_header_compiler" >&6; }
35492
35493 # Is the header present?
35494 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
35495 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
35496 cat >conftest.$ac_ext <<_ACEOF
35497 /* confdefs.h.  */
35498 _ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h.  */
35502 #include <GL/glu.h>
35503 _ACEOF
35504 if { (ac_try="$ac_cpp conftest.$ac_ext"
35505 case "(($ac_try" in
35506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507   *) ac_try_echo=$ac_try;;
35508 esac
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } >/dev/null && {
35517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35518          test ! -s conftest.err
35519        }; then
35520   ac_header_preproc=yes
35521 else
35522   echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35524
35525   ac_header_preproc=no
35526 fi
35527
35528 rm -f conftest.err conftest.$ac_ext
35529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35530 echo "${ECHO_T}$ac_header_preproc" >&6; }
35531
35532 # So?  What about this header?
35533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35534   yes:no: )
35535     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
35536 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35537     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
35538 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
35539     ac_header_preproc=yes
35540     ;;
35541   no:yes:* )
35542     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
35543 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
35544     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
35545 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
35546     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
35547 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
35548     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
35549 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35550     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
35551 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
35552     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
35553 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
35554     ( cat <<\_ASBOX
35555 ## ----------------------------------------- ##
35556 ## Report this to wx-dev@lists.wxwidgets.org ##
35557 ## ----------------------------------------- ##
35558 _ASBOX
35559      ) | sed "s/^/$as_me: WARNING:     /" >&2
35560     ;;
35561 esac
35562 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35563 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35564 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35565   echo $ECHO_N "(cached) $ECHO_C" >&6
35566 else
35567   ac_cv_header_GL_glu_h=$ac_header_preproc
35568 fi
35569 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35570 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35571
35572 fi
35573 if test $ac_cv_header_GL_glu_h = yes; then
35574
35575                 found_gl=0
35576
35577                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35578 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35579
35580   ac_find_libraries=
35581   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35582   do
35583     for ac_extension in a so sl dylib dll.a; do
35584       if test -f "$ac_dir/libGL.$ac_extension"; then
35585         ac_find_libraries=$ac_dir
35586         break 2
35587       fi
35588     done
35589   done
35590
35591                 if test "$ac_find_libraries" != "" ; then
35592                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35593 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35594
35595
35596     if test "$ac_find_libraries" = "default location"; then
35597     ac_path_to_link=""
35598   else
35599     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35600     result=$?
35601     if test $result = 0; then
35602       ac_path_to_link=""
35603     else
35604       ac_path_to_link=" -L$ac_find_libraries"
35605     fi
35606   fi
35607
35608                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35609                         LDFLAGS_GL="$ac_path_to_link"
35610                     fi
35611
35612                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35613 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35614
35615   ac_find_libraries=
35616   for ac_dir in $SEARCH_LIB;
35617   do
35618     for ac_extension in a so sl dylib dll.a; do
35619       if test -f "$ac_dir/libGLU.$ac_extension"; then
35620         ac_find_libraries=$ac_dir
35621         break 2
35622       fi
35623     done
35624   done
35625
35626                     if test "$ac_find_libraries" != "" ; then
35627
35628     if test "$ac_find_libraries" = "default location"; then
35629     ac_path_to_link=""
35630   else
35631     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35632     result=$?
35633     if test $result = 0; then
35634       ac_path_to_link=""
35635     else
35636       ac_path_to_link=" -L$ac_find_libraries"
35637     fi
35638   fi
35639
35640                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35641                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35642                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35643                         fi
35644
35645                         found_gl=1
35646                         OPENGL_LIBS="-lGL -lGLU"
35647                         { echo "$as_me:$LINENO: result: yes" >&5
35648 echo "${ECHO_T}yes" >&6; }
35649                     else
35650                         { echo "$as_me:$LINENO: result: no" >&5
35651 echo "${ECHO_T}no" >&6; }
35652                     fi
35653                 else
35654                     { echo "$as_me:$LINENO: result: no" >&5
35655 echo "${ECHO_T}no" >&6; }
35656                 fi
35657
35658                 if test "$found_gl" != 1; then
35659                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35660 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35661
35662   ac_find_libraries=
35663   for ac_dir in $SEARCH_LIB;
35664   do
35665     for ac_extension in a so sl dylib dll.a; do
35666       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35667         ac_find_libraries=$ac_dir
35668         break 2
35669       fi
35670     done
35671   done
35672
35673                     if test "$ac_find_libraries" != "" ; then
35674
35675     if test "$ac_find_libraries" = "default location"; then
35676     ac_path_to_link=""
35677   else
35678     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35679     result=$?
35680     if test $result = 0; then
35681       ac_path_to_link=""
35682     else
35683       ac_path_to_link=" -L$ac_find_libraries"
35684     fi
35685   fi
35686
35687                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35688                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35689                         { echo "$as_me:$LINENO: result: yes" >&5
35690 echo "${ECHO_T}yes" >&6; }
35691                     else
35692                         { echo "$as_me:$LINENO: result: no" >&5
35693 echo "${ECHO_T}no" >&6; }
35694                     fi
35695                 fi
35696
35697 fi
35698
35699
35700
35701 fi
35702
35703
35704
35705         if test "x$OPENGL_LIBS" = "x"; then
35706                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35707 echo "$as_me: error: OpenGL libraries not available" >&2;}
35708    { (exit 1); exit 1; }; }
35709         fi
35710     fi
35711
35712     if test "$wxUSE_OPENGL" = "yes"; then
35713         USE_OPENGL=1
35714         cat >>confdefs.h <<\_ACEOF
35715 #define wxUSE_OPENGL 1
35716 _ACEOF
35717
35718         cat >>confdefs.h <<\_ACEOF
35719 #define wxUSE_GLCANVAS 1
35720 _ACEOF
35721
35722         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35723     fi
35724 fi
35725
35726
35727 if test -n "$TOOLKIT" ; then
35728     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35729 fi
35730
35731
35732
35733 if test "$wxUSE_SHARED" = "yes"; then
35734     case "${host}" in
35735       *-pc-msdosdjgpp )
35736                 wxUSE_SHARED=no
35737         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35738 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35739       ;;
35740     esac
35741 fi
35742
35743 if test "$wxUSE_SHARED" = "yes"; then
35744
35745
35746     case "${host}" in
35747         *-*-cygwin* | *-*-mingw* )
35748                                                                                                 wx_cv_version_script=no
35749             ;;
35750
35751         *)
35752             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35753 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35754 if test "${wx_cv_version_script+set}" = set; then
35755   echo $ECHO_N "(cached) $ECHO_C" >&6
35756 else
35757
35758                 echo "VER_1 { *; };" >conftest.sym
35759                 echo "int main() { return 0; }" >conftest.cpp
35760
35761                 if { ac_try='
35762                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35763                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765   (eval $ac_try) 2>&5
35766   ac_status=$?
35767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768   (exit $ac_status); }; } ; then
35769                   if test -s conftest.stderr ; then
35770                       wx_cv_version_script=no
35771                   else
35772                       wx_cv_version_script=yes
35773                   fi
35774                 else
35775                   wx_cv_version_script=no
35776                 fi
35777
35778                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35779                 then
35780                   echo "struct B { virtual ~B() { } }; \
35781                         struct D : public B { }; \
35782                         void F() { D d; }" > conftest.cpp
35783
35784                   if { ac_try='
35785                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35786                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788   (eval $ac_try) 2>&5
35789   ac_status=$?
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); }; } &&
35792                      { ac_try='
35793                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35794                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796   (eval $ac_try) 2>&5
35797   ac_status=$?
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); }; }
35800                   then
35801                     if { ac_try='
35802                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35803                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35805   (eval $ac_try) 2>&5
35806   ac_status=$?
35807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808   (exit $ac_status); }; }
35809                     then
35810                       wx_cv_version_script=yes
35811                     else
35812                       wx_cv_version_script=no
35813                     fi
35814                   fi
35815                 fi
35816
35817                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35818                 rm -f conftest1.output conftest2.output conftest3.output
35819
35820 fi
35821 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35822 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35823
35824             if test $wx_cv_version_script = yes ; then
35825                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35826             fi
35827             ;;
35828     esac
35829
35830
35831             if test "$wxUSE_VISIBILITY" != "no"; then
35832
35833
35834   if test -n "$GCC"; then
35835     CFLAGS_VISIBILITY="-fvisibility=hidden"
35836     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35837     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35838 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35839     if test "${wx_cv_cc_visibility+set}" = set; then
35840   echo $ECHO_N "(cached) $ECHO_C" >&6
35841 else
35842
35843       wx_save_CXXFLAGS="$CXXFLAGS"
35844       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35845       ac_ext=cpp
35846 ac_cpp='$CXXCPP $CPPFLAGS'
35847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35850
35851       cat >conftest.$ac_ext <<_ACEOF
35852 /* confdefs.h.  */
35853 _ACEOF
35854 cat confdefs.h >>conftest.$ac_ext
35855 cat >>conftest.$ac_ext <<_ACEOF
35856 /* end confdefs.h.  */
35857
35858          /* we need gcc >= 4.0, older versions with visibility support
35859             didn't have class visibility: */
35860          #if defined(__GNUC__) && __GNUC__ < 4
35861          error this gcc is too old;
35862          #endif
35863
35864          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35865          extern __attribute__((__visibility__("default"))) int exportedvar;
35866          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35867          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35868          class __attribute__((__visibility__("default"))) Foo {
35869            Foo() {}
35870          };
35871
35872 int
35873 main ()
35874 {
35875
35876   ;
35877   return 0;
35878 }
35879 _ACEOF
35880 rm -f conftest.$ac_objext
35881 if { (ac_try="$ac_compile"
35882 case "(($ac_try" in
35883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884   *) ac_try_echo=$ac_try;;
35885 esac
35886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887   (eval "$ac_compile") 2>conftest.er1
35888   ac_status=$?
35889   grep -v '^ *+' conftest.er1 >conftest.err
35890   rm -f conftest.er1
35891   cat conftest.err >&5
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } && {
35894          test -z "$ac_cxx_werror_flag" ||
35895          test ! -s conftest.err
35896        } && test -s conftest.$ac_objext; then
35897   wx_cv_cc_visibility=yes
35898 else
35899   echo "$as_me: failed program was:" >&5
35900 sed 's/^/| /' conftest.$ac_ext >&5
35901
35902         wx_cv_cc_visibility=no
35903 fi
35904
35905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35906       ac_ext=c
35907 ac_cpp='$CPP $CPPFLAGS'
35908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35911
35912       CXXFLAGS="$wx_save_CXXFLAGS"
35913 fi
35914
35915     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35916 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35917     if test $wx_cv_cc_visibility = yes; then
35918       cat >>confdefs.h <<\_ACEOF
35919 #define HAVE_VISIBILITY 1
35920 _ACEOF
35921
35922     else
35923       CFLAGS_VISIBILITY=""
35924       CXXFLAGS_VISIBILITY=""
35925     fi
35926
35927
35928   fi
35929
35930     fi
35931
35932         if test "x$SUNCXX" = xyes; then
35933         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35934         WXCONFIG_RPATH="-R\$libdir"
35935     else
35936     case "${host}" in
35937       *-*-linux* | *-*-gnu* )
35938         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35939         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35940         ;;
35941
35942       *-*-solaris2* )
35943
35944                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35945
35946                         saveLdflags="$LDFLAGS"
35947         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35948         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35949 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35950         cat >conftest.$ac_ext <<_ACEOF
35951 /* confdefs.h.  */
35952 _ACEOF
35953 cat confdefs.h >>conftest.$ac_ext
35954 cat >>conftest.$ac_ext <<_ACEOF
35955 /* end confdefs.h.  */
35956
35957 int
35958 main ()
35959 {
35960
35961   ;
35962   return 0;
35963 }
35964 _ACEOF
35965 rm -f conftest.$ac_objext conftest$ac_exeext
35966 if { (ac_try="$ac_link"
35967 case "(($ac_try" in
35968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969   *) ac_try_echo=$ac_try;;
35970 esac
35971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35972   (eval "$ac_link") 2>conftest.er1
35973   ac_status=$?
35974   grep -v '^ *+' conftest.er1 >conftest.err
35975   rm -f conftest.er1
35976   cat conftest.err >&5
35977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978   (exit $ac_status); } && {
35979          test -z "$ac_c_werror_flag" ||
35980          test ! -s conftest.err
35981        } && test -s conftest$ac_exeext &&
35982        $as_test_x conftest$ac_exeext; then
35983
35984                 { echo "$as_me:$LINENO: result: yes" >&5
35985 echo "${ECHO_T}yes" >&6; }
35986                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35987                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35988
35989 else
35990   echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35992
35993
35994                 { echo "$as_me:$LINENO: result: no" >&5
35995 echo "${ECHO_T}no" >&6; }
35996                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35997 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35998                 LDFLAGS="$saveLdflags -Wl,-R,/"
35999                 cat >conftest.$ac_ext <<_ACEOF
36000 /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005
36006 int
36007 main ()
36008 {
36009
36010   ;
36011   return 0;
36012 }
36013 _ACEOF
36014 rm -f conftest.$ac_objext conftest$ac_exeext
36015 if { (ac_try="$ac_link"
36016 case "(($ac_try" in
36017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36018   *) ac_try_echo=$ac_try;;
36019 esac
36020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36021   (eval "$ac_link") 2>conftest.er1
36022   ac_status=$?
36023   grep -v '^ *+' conftest.er1 >conftest.err
36024   rm -f conftest.er1
36025   cat conftest.err >&5
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); } && {
36028          test -z "$ac_c_werror_flag" ||
36029          test ! -s conftest.err
36030        } && test -s conftest$ac_exeext &&
36031        $as_test_x conftest$ac_exeext; then
36032
36033                         { echo "$as_me:$LINENO: result: yes" >&5
36034 echo "${ECHO_T}yes" >&6; }
36035                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36036                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36037
36038 else
36039   echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36041
36042
36043                         { echo "$as_me:$LINENO: result: no" >&5
36044 echo "${ECHO_T}no" >&6; }
36045
36046 fi
36047
36048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36049       conftest$ac_exeext conftest.$ac_ext
36050
36051 fi
36052
36053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36054       conftest$ac_exeext conftest.$ac_ext
36055         LDFLAGS="$saveLdflags"
36056       ;;
36057
36058       *-*-darwin* )
36059         install_name_tool=`which install_name_tool`
36060         if test "$install_name_tool" -a -x "$install_name_tool"; then
36061             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36062             cat <<EOF >change-install-names
36063 #!/bin/sh
36064 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36065 inst_cmd="install_name_tool "
36066 for i in \${libnames} ; do
36067     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36068 done
36069 \${inst_cmd} \${3}
36070 EOF
36071             chmod +x change-install-names
36072         fi
36073       ;;
36074
36075       *-*-cygwin* | *-*-mingw32* )
36076                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36077         ;;
36078
36079       *-*-hpux* )
36080         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36081         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36082         ;;
36083
36084     esac
36085     fi
36086
36087     if test $wxUSE_RPATH = "no"; then
36088         SAMPLES_RPATH_FLAG=''
36089         SAMPLES_RPATH_POSTLINK=''
36090         WXCONFIG_RPATH=''
36091     fi
36092
36093     SHARED=1
36094
36095 else
36096
36097     config_linkage_component="-static"
36098     SHARED=0
36099
36100 fi
36101
36102
36103 UNICODE=0
36104 lib_unicode_suffix=
36105 WX_CHARTYPE="ansi"
36106 if test "$wxUSE_UNICODE" = "yes"; then
36107     lib_unicode_suffix=u
36108     WX_CHARTYPE="unicode"
36109     UNICODE=1
36110 fi
36111
36112 lib_debug_suffix=
36113 WX_DEBUGTYPE="release"
36114 DEBUG_FLAG=0
36115 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36116     lib_debug_suffix=d
36117     WX_DEBUGTYPE="debug"
36118     DEBUG_FLAG=1
36119 fi
36120
36121 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36122 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36123
36124 DEBUG_INFO=0
36125 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36126     DEBUG_INFO=1
36127 fi
36128
36129 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36130
36131 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36132
36133 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36134
36135 if test "$cross_compiling" = "yes"; then
36136     HOST_SUFFIX="-$host_alias"
36137     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36138     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36139 fi
36140
36141 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36142 if test "${TOOLKIT_DIR}" = "os2"; then
36143     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36144 else
36145     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36146 fi
36147
36148
36149
36150 if test "$wxUSE_COCOA" = 1; then
36151
36152     ac_ext=c
36153 ac_cpp='$CPP $CPPFLAGS'
36154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36157
36158 ac_ext=m
36159
36160     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36161 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36162     cat >conftest.$ac_ext <<_ACEOF
36163 /* confdefs.h.  */
36164 _ACEOF
36165 cat confdefs.h >>conftest.$ac_ext
36166 cat >>conftest.$ac_ext <<_ACEOF
36167 /* end confdefs.h.  */
36168 #include <AppKit/NSEvent.h>
36169 #include <CoreFoundation/CoreFoundation.h>
36170
36171 int
36172 main ()
36173 {
36174
36175   ;
36176   return 0;
36177 }
36178 _ACEOF
36179 rm -f conftest.$ac_objext
36180 if { (ac_try="$ac_compile"
36181 case "(($ac_try" in
36182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36183   *) ac_try_echo=$ac_try;;
36184 esac
36185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36186   (eval "$ac_compile") 2>conftest.er1
36187   ac_status=$?
36188   grep -v '^ *+' conftest.er1 >conftest.err
36189   rm -f conftest.er1
36190   cat conftest.err >&5
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); } && {
36193          test -z "$ac_c_werror_flag" ||
36194          test ! -s conftest.err
36195        } && test -s conftest.$ac_objext; then
36196   { echo "$as_me:$LINENO: result: no" >&5
36197 echo "${ECHO_T}no" >&6; }
36198 else
36199   echo "$as_me: failed program was:" >&5
36200 sed 's/^/| /' conftest.$ac_ext >&5
36201
36202         { echo "$as_me:$LINENO: result: yes" >&5
36203 echo "${ECHO_T}yes" >&6; }
36204         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36205 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36206         cat >conftest.$ac_ext <<_ACEOF
36207 /* confdefs.h.  */
36208 _ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h.  */
36212 #define __Point__ 1
36213 #include <AppKit/NSEvent.h>
36214 #include <CoreFoundation/CoreFoundation.h>
36215
36216 int
36217 main ()
36218 {
36219
36220   ;
36221   return 0;
36222 }
36223 _ACEOF
36224 rm -f conftest.$ac_objext
36225 if { (ac_try="$ac_compile"
36226 case "(($ac_try" in
36227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36228   *) ac_try_echo=$ac_try;;
36229 esac
36230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36231   (eval "$ac_compile") 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } && {
36238          test -z "$ac_c_werror_flag" ||
36239          test ! -s conftest.err
36240        } && test -s conftest.$ac_objext; then
36241   { echo "$as_me:$LINENO: result: yes" >&5
36242 echo "${ECHO_T}yes" >&6; }
36243             cat >>confdefs.h <<\_ACEOF
36244 #define __Point__ 1
36245 _ACEOF
36246
36247
36248 else
36249   echo "$as_me: failed program was:" >&5
36250 sed 's/^/| /' conftest.$ac_ext >&5
36251
36252         { { echo "$as_me:$LINENO: error: no
36253 See \`config.log' for more details." >&5
36254 echo "$as_me: error: no
36255 See \`config.log' for more details." >&2;}
36256    { (exit 1); exit 1; }; }
36257
36258 fi
36259
36260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36261
36262 fi
36263
36264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36265     ac_ext=c
36266 ac_cpp='$CPP $CPPFLAGS'
36267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36270
36271 fi
36272
36273 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36274             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36275     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36276
36277         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36278
36279     # Extract the first word of "Rez", so it can be a program name with args.
36280 set dummy Rez; ac_word=$2
36281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36283 if test "${ac_cv_prog_REZ+set}" = set; then
36284   echo $ECHO_N "(cached) $ECHO_C" >&6
36285 else
36286   if test -n "$REZ"; then
36287   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36288 else
36289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36290 for as_dir in $PATH
36291 do
36292   IFS=$as_save_IFS
36293   test -z "$as_dir" && as_dir=.
36294   for ac_exec_ext in '' $ac_executable_extensions; do
36295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36296     ac_cv_prog_REZ="Rez"
36297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36298     break 2
36299   fi
36300 done
36301 done
36302 IFS=$as_save_IFS
36303
36304   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36305 fi
36306 fi
36307 REZ=$ac_cv_prog_REZ
36308 if test -n "$REZ"; then
36309   { echo "$as_me:$LINENO: result: $REZ" >&5
36310 echo "${ECHO_T}$REZ" >&6; }
36311 else
36312   { echo "$as_me:$LINENO: result: no" >&5
36313 echo "${ECHO_T}no" >&6; }
36314 fi
36315
36316
36317     # Extract the first word of "DeRez", so it can be a program name with args.
36318 set dummy DeRez; ac_word=$2
36319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36321 if test "${ac_cv_prog_DEREZ+set}" = set; then
36322   echo $ECHO_N "(cached) $ECHO_C" >&6
36323 else
36324   if test -n "$DEREZ"; then
36325   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36326 else
36327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36328 for as_dir in $PATH
36329 do
36330   IFS=$as_save_IFS
36331   test -z "$as_dir" && as_dir=.
36332   for ac_exec_ext in '' $ac_executable_extensions; do
36333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36334     ac_cv_prog_DEREZ="DeRez"
36335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36336     break 2
36337   fi
36338 done
36339 done
36340 IFS=$as_save_IFS
36341
36342   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36343 fi
36344 fi
36345 DEREZ=$ac_cv_prog_DEREZ
36346 if test -n "$DEREZ"; then
36347   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36348 echo "${ECHO_T}$DEREZ" >&6; }
36349 else
36350   { echo "$as_me:$LINENO: result: no" >&5
36351 echo "${ECHO_T}no" >&6; }
36352 fi
36353
36354
36355     # Extract the first word of "SetFile", so it can be a program name with args.
36356 set dummy SetFile; ac_word=$2
36357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36359 if test "${ac_cv_prog_SETFILE+set}" = set; then
36360   echo $ECHO_N "(cached) $ECHO_C" >&6
36361 else
36362   if test -n "$SETFILE"; then
36363   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36364 else
36365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36366 for as_dir in $PATH
36367 do
36368   IFS=$as_save_IFS
36369   test -z "$as_dir" && as_dir=.
36370   for ac_exec_ext in '' $ac_executable_extensions; do
36371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36372     ac_cv_prog_SETFILE="SetFile"
36373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36374     break 2
36375   fi
36376 done
36377 done
36378 IFS=$as_save_IFS
36379
36380   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36381 fi
36382 fi
36383 SETFILE=$ac_cv_prog_SETFILE
36384 if test -n "$SETFILE"; then
36385   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36386 echo "${ECHO_T}$SETFILE" >&6; }
36387 else
36388   { echo "$as_me:$LINENO: result: no" >&5
36389 echo "${ECHO_T}no" >&6; }
36390 fi
36391
36392
36393
36394     MACSETFILE="\$(SETFILE)"
36395
36396             if test "$wxUSE_MAC" = 1; then
36397         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
36398         RESCOMP="$REZ"
36399         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
36400     else
36401         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
36402         RESCOMP="echo -n \| $REZ"
36403         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
36404     fi
36405
36406 else
36407         MACSETFILE="@true"
36408
36409     if test "$wxUSE_PM" = 1; then
36410         RESCOMP="emxbind"
36411         WXCONFIG_RESFLAGS="-ep"
36412
36413                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
36414     else
36415         POSTLINK_COMMAND="@true"
36416     fi
36417
36418 fi
36419
36420
36421
36422 { echo "$as_me:$LINENO: checking for mode_t" >&5
36423 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36424 if test "${ac_cv_type_mode_t+set}" = set; then
36425   echo $ECHO_N "(cached) $ECHO_C" >&6
36426 else
36427   cat >conftest.$ac_ext <<_ACEOF
36428 /* confdefs.h.  */
36429 _ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h.  */
36433 $ac_includes_default
36434 typedef mode_t ac__type_new_;
36435 int
36436 main ()
36437 {
36438 if ((ac__type_new_ *) 0)
36439   return 0;
36440 if (sizeof (ac__type_new_))
36441   return 0;
36442   ;
36443   return 0;
36444 }
36445 _ACEOF
36446 rm -f conftest.$ac_objext
36447 if { (ac_try="$ac_compile"
36448 case "(($ac_try" in
36449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450   *) ac_try_echo=$ac_try;;
36451 esac
36452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36453   (eval "$ac_compile") 2>conftest.er1
36454   ac_status=$?
36455   grep -v '^ *+' conftest.er1 >conftest.err
36456   rm -f conftest.er1
36457   cat conftest.err >&5
36458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459   (exit $ac_status); } && {
36460          test -z "$ac_c_werror_flag" ||
36461          test ! -s conftest.err
36462        } && test -s conftest.$ac_objext; then
36463   ac_cv_type_mode_t=yes
36464 else
36465   echo "$as_me: failed program was:" >&5
36466 sed 's/^/| /' conftest.$ac_ext >&5
36467
36468         ac_cv_type_mode_t=no
36469 fi
36470
36471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36472 fi
36473 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36474 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36475 if test $ac_cv_type_mode_t = yes; then
36476   :
36477 else
36478
36479 cat >>confdefs.h <<_ACEOF
36480 #define mode_t int
36481 _ACEOF
36482
36483 fi
36484
36485 { echo "$as_me:$LINENO: checking for off_t" >&5
36486 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36487 if test "${ac_cv_type_off_t+set}" = set; then
36488   echo $ECHO_N "(cached) $ECHO_C" >&6
36489 else
36490   cat >conftest.$ac_ext <<_ACEOF
36491 /* confdefs.h.  */
36492 _ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h.  */
36496 $ac_includes_default
36497 typedef off_t ac__type_new_;
36498 int
36499 main ()
36500 {
36501 if ((ac__type_new_ *) 0)
36502   return 0;
36503 if (sizeof (ac__type_new_))
36504   return 0;
36505   ;
36506   return 0;
36507 }
36508 _ACEOF
36509 rm -f conftest.$ac_objext
36510 if { (ac_try="$ac_compile"
36511 case "(($ac_try" in
36512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36513   *) ac_try_echo=$ac_try;;
36514 esac
36515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36516   (eval "$ac_compile") 2>conftest.er1
36517   ac_status=$?
36518   grep -v '^ *+' conftest.er1 >conftest.err
36519   rm -f conftest.er1
36520   cat conftest.err >&5
36521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522   (exit $ac_status); } && {
36523          test -z "$ac_c_werror_flag" ||
36524          test ! -s conftest.err
36525        } && test -s conftest.$ac_objext; then
36526   ac_cv_type_off_t=yes
36527 else
36528   echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531         ac_cv_type_off_t=no
36532 fi
36533
36534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36535 fi
36536 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36537 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36538 if test $ac_cv_type_off_t = yes; then
36539   :
36540 else
36541
36542 cat >>confdefs.h <<_ACEOF
36543 #define off_t long int
36544 _ACEOF
36545
36546 fi
36547
36548 { echo "$as_me:$LINENO: checking for pid_t" >&5
36549 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36550 if test "${ac_cv_type_pid_t+set}" = set; then
36551   echo $ECHO_N "(cached) $ECHO_C" >&6
36552 else
36553   cat >conftest.$ac_ext <<_ACEOF
36554 /* confdefs.h.  */
36555 _ACEOF
36556 cat confdefs.h >>conftest.$ac_ext
36557 cat >>conftest.$ac_ext <<_ACEOF
36558 /* end confdefs.h.  */
36559 $ac_includes_default
36560 typedef pid_t ac__type_new_;
36561 int
36562 main ()
36563 {
36564 if ((ac__type_new_ *) 0)
36565   return 0;
36566 if (sizeof (ac__type_new_))
36567   return 0;
36568   ;
36569   return 0;
36570 }
36571 _ACEOF
36572 rm -f conftest.$ac_objext
36573 if { (ac_try="$ac_compile"
36574 case "(($ac_try" in
36575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36576   *) ac_try_echo=$ac_try;;
36577 esac
36578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36579   (eval "$ac_compile") 2>conftest.er1
36580   ac_status=$?
36581   grep -v '^ *+' conftest.er1 >conftest.err
36582   rm -f conftest.er1
36583   cat conftest.err >&5
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } && {
36586          test -z "$ac_c_werror_flag" ||
36587          test ! -s conftest.err
36588        } && test -s conftest.$ac_objext; then
36589   ac_cv_type_pid_t=yes
36590 else
36591   echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36593
36594         ac_cv_type_pid_t=no
36595 fi
36596
36597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36598 fi
36599 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36600 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36601 if test $ac_cv_type_pid_t = yes; then
36602   :
36603 else
36604
36605 cat >>confdefs.h <<_ACEOF
36606 #define pid_t int
36607 _ACEOF
36608
36609 fi
36610
36611 { echo "$as_me:$LINENO: checking for size_t" >&5
36612 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36613 if test "${ac_cv_type_size_t+set}" = set; then
36614   echo $ECHO_N "(cached) $ECHO_C" >&6
36615 else
36616   cat >conftest.$ac_ext <<_ACEOF
36617 /* confdefs.h.  */
36618 _ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h.  */
36622 $ac_includes_default
36623 typedef size_t ac__type_new_;
36624 int
36625 main ()
36626 {
36627 if ((ac__type_new_ *) 0)
36628   return 0;
36629 if (sizeof (ac__type_new_))
36630   return 0;
36631   ;
36632   return 0;
36633 }
36634 _ACEOF
36635 rm -f conftest.$ac_objext
36636 if { (ac_try="$ac_compile"
36637 case "(($ac_try" in
36638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36639   *) ac_try_echo=$ac_try;;
36640 esac
36641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36642   (eval "$ac_compile") 2>conftest.er1
36643   ac_status=$?
36644   grep -v '^ *+' conftest.er1 >conftest.err
36645   rm -f conftest.er1
36646   cat conftest.err >&5
36647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648   (exit $ac_status); } && {
36649          test -z "$ac_c_werror_flag" ||
36650          test ! -s conftest.err
36651        } && test -s conftest.$ac_objext; then
36652   ac_cv_type_size_t=yes
36653 else
36654   echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36656
36657         ac_cv_type_size_t=no
36658 fi
36659
36660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36661 fi
36662 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36663 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36664 if test $ac_cv_type_size_t = yes; then
36665   :
36666 else
36667
36668 cat >>confdefs.h <<_ACEOF
36669 #define size_t unsigned int
36670 _ACEOF
36671
36672 fi
36673
36674 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36675 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36676 if test "${ac_cv_type_uid_t+set}" = set; then
36677   echo $ECHO_N "(cached) $ECHO_C" >&6
36678 else
36679   cat >conftest.$ac_ext <<_ACEOF
36680 /* confdefs.h.  */
36681 _ACEOF
36682 cat confdefs.h >>conftest.$ac_ext
36683 cat >>conftest.$ac_ext <<_ACEOF
36684 /* end confdefs.h.  */
36685 #include <sys/types.h>
36686
36687 _ACEOF
36688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36689   $EGREP "uid_t" >/dev/null 2>&1; then
36690   ac_cv_type_uid_t=yes
36691 else
36692   ac_cv_type_uid_t=no
36693 fi
36694 rm -f conftest*
36695
36696 fi
36697 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36698 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36699 if test $ac_cv_type_uid_t = no; then
36700
36701 cat >>confdefs.h <<\_ACEOF
36702 #define uid_t int
36703 _ACEOF
36704
36705
36706 cat >>confdefs.h <<\_ACEOF
36707 #define gid_t int
36708 _ACEOF
36709
36710 fi
36711
36712
36713 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36714 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36715 if test "${ac_cv_type_ssize_t+set}" = set; then
36716   echo $ECHO_N "(cached) $ECHO_C" >&6
36717 else
36718   cat >conftest.$ac_ext <<_ACEOF
36719 /* confdefs.h.  */
36720 _ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h.  */
36724 $ac_includes_default
36725 typedef ssize_t ac__type_new_;
36726 int
36727 main ()
36728 {
36729 if ((ac__type_new_ *) 0)
36730   return 0;
36731 if (sizeof (ac__type_new_))
36732   return 0;
36733   ;
36734   return 0;
36735 }
36736 _ACEOF
36737 rm -f conftest.$ac_objext
36738 if { (ac_try="$ac_compile"
36739 case "(($ac_try" in
36740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36741   *) ac_try_echo=$ac_try;;
36742 esac
36743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36744   (eval "$ac_compile") 2>conftest.er1
36745   ac_status=$?
36746   grep -v '^ *+' conftest.er1 >conftest.err
36747   rm -f conftest.er1
36748   cat conftest.err >&5
36749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750   (exit $ac_status); } && {
36751          test -z "$ac_c_werror_flag" ||
36752          test ! -s conftest.err
36753        } && test -s conftest.$ac_objext; then
36754   ac_cv_type_ssize_t=yes
36755 else
36756   echo "$as_me: failed program was:" >&5
36757 sed 's/^/| /' conftest.$ac_ext >&5
36758
36759         ac_cv_type_ssize_t=no
36760 fi
36761
36762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36763 fi
36764 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36765 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36766 if test $ac_cv_type_ssize_t = yes; then
36767
36768 cat >>confdefs.h <<_ACEOF
36769 #define HAVE_SSIZE_T 1
36770 _ACEOF
36771
36772
36773 fi
36774
36775
36776 ac_ext=cpp
36777 ac_cpp='$CXXCPP $CPPFLAGS'
36778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36781  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36782 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36783 if test "${wx_cv_size_t_is_uint+set}" = set; then
36784   echo $ECHO_N "(cached) $ECHO_C" >&6
36785 else
36786
36787                             cat >conftest.$ac_ext <<_ACEOF
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 #include <stddef.h>
36794 int
36795 main ()
36796 {
36797
36798             return 0; }
36799
36800             struct Foo { void foo(size_t); void foo(unsigned int); };
36801
36802             int bar() {
36803
36804   ;
36805   return 0;
36806 }
36807 _ACEOF
36808 rm -f conftest.$ac_objext
36809 if { (ac_try="$ac_compile"
36810 case "(($ac_try" in
36811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36812   *) ac_try_echo=$ac_try;;
36813 esac
36814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36815   (eval "$ac_compile") 2>conftest.er1
36816   ac_status=$?
36817   grep -v '^ *+' conftest.er1 >conftest.err
36818   rm -f conftest.er1
36819   cat conftest.err >&5
36820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821   (exit $ac_status); } && {
36822          test -z "$ac_cxx_werror_flag" ||
36823          test ! -s conftest.err
36824        } && test -s conftest.$ac_objext; then
36825   wx_cv_size_t_is_uint=no
36826 else
36827   echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36829
36830         wx_cv_size_t_is_uint=yes
36831
36832 fi
36833
36834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36835
36836
36837 fi
36838 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36839 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36840
36841 if test "$wx_cv_size_t_is_uint" = "yes"; then
36842     cat >>confdefs.h <<\_ACEOF
36843 #define wxSIZE_T_IS_UINT 1
36844 _ACEOF
36845
36846 else
36847     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36848 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36849 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36850   echo $ECHO_N "(cached) $ECHO_C" >&6
36851 else
36852   cat >conftest.$ac_ext <<_ACEOF
36853 /* confdefs.h.  */
36854 _ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h.  */
36858 #include <stddef.h>
36859 int
36860 main ()
36861 {
36862
36863                 return 0; }
36864
36865                 struct Foo { void foo(size_t); void foo(unsigned long); };
36866
36867                 int bar() {
36868
36869   ;
36870   return 0;
36871 }
36872 _ACEOF
36873 rm -f conftest.$ac_objext
36874 if { (ac_try="$ac_compile"
36875 case "(($ac_try" in
36876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36877   *) ac_try_echo=$ac_try;;
36878 esac
36879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36880   (eval "$ac_compile") 2>conftest.er1
36881   ac_status=$?
36882   grep -v '^ *+' conftest.er1 >conftest.err
36883   rm -f conftest.er1
36884   cat conftest.err >&5
36885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886   (exit $ac_status); } && {
36887          test -z "$ac_cxx_werror_flag" ||
36888          test ! -s conftest.err
36889        } && test -s conftest.$ac_objext; then
36890   wx_cv_size_t_is_ulong=no
36891 else
36892   echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36894
36895         wx_cv_size_t_is_ulong=yes
36896
36897 fi
36898
36899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36900
36901 fi
36902 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36903 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36904
36905     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36906         cat >>confdefs.h <<\_ACEOF
36907 #define wxSIZE_T_IS_ULONG 1
36908 _ACEOF
36909
36910     fi
36911 fi
36912
36913 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36914 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36915 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36916   echo $ECHO_N "(cached) $ECHO_C" >&6
36917 else
36918   cat >conftest.$ac_ext <<_ACEOF
36919 /* confdefs.h.  */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h.  */
36924 #include <wchar.h>
36925 int
36926 main ()
36927 {
36928
36929             return 0; }
36930
36931             struct Foo { void foo(wchar_t);
36932                          void foo(unsigned short);
36933                          void foo(unsigned int);
36934                          void foo(unsigned long); };
36935
36936             int bar() {
36937
36938   ;
36939   return 0;
36940 }
36941 _ACEOF
36942 rm -f conftest.$ac_objext
36943 if { (ac_try="$ac_compile"
36944 case "(($ac_try" in
36945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946   *) ac_try_echo=$ac_try;;
36947 esac
36948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949   (eval "$ac_compile") 2>conftest.er1
36950   ac_status=$?
36951   grep -v '^ *+' conftest.er1 >conftest.err
36952   rm -f conftest.er1
36953   cat conftest.err >&5
36954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955   (exit $ac_status); } && {
36956          test -z "$ac_cxx_werror_flag" ||
36957          test ! -s conftest.err
36958        } && test -s conftest.$ac_objext; then
36959   wx_cv_wchar_t_is_separate_type=yes
36960 else
36961   echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36963
36964         wx_cv_wchar_t_is_separate_type=no
36965
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969
36970 fi
36971 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36972 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36973
36974 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36975     cat >>confdefs.h <<\_ACEOF
36976 #define wxWCHAR_T_IS_REAL_TYPE 1
36977 _ACEOF
36978
36979 else
36980     cat >>confdefs.h <<\_ACEOF
36981 #define wxWCHAR_T_IS_REAL_TYPE 0
36982 _ACEOF
36983
36984 fi
36985
36986 ac_ext=c
36987 ac_cpp='$CPP $CPPFLAGS'
36988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36991
36992
36993 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36994 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36995 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36996   echo $ECHO_N "(cached) $ECHO_C" >&6
36997 else
36998
36999         cat >conftest.$ac_ext <<_ACEOF
37000 /* confdefs.h.  */
37001 _ACEOF
37002 cat confdefs.h >>conftest.$ac_ext
37003 cat >>conftest.$ac_ext <<_ACEOF
37004 /* end confdefs.h.  */
37005 #include <pwd.h>
37006 int
37007 main ()
37008 {
37009
37010                 char *p;
37011                 struct passwd *pw;
37012                 p = pw->pw_gecos;
37013
37014   ;
37015   return 0;
37016 }
37017 _ACEOF
37018 rm -f conftest.$ac_objext
37019 if { (ac_try="$ac_compile"
37020 case "(($ac_try" in
37021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37022   *) ac_try_echo=$ac_try;;
37023 esac
37024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37025   (eval "$ac_compile") 2>conftest.er1
37026   ac_status=$?
37027   grep -v '^ *+' conftest.er1 >conftest.err
37028   rm -f conftest.er1
37029   cat conftest.err >&5
37030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031   (exit $ac_status); } && {
37032          test -z "$ac_c_werror_flag" ||
37033          test ! -s conftest.err
37034        } && test -s conftest.$ac_objext; then
37035
37036                 wx_cv_struct_pw_gecos=yes
37037
37038 else
37039   echo "$as_me: failed program was:" >&5
37040 sed 's/^/| /' conftest.$ac_ext >&5
37041
37042
37043                 wx_cv_struct_pw_gecos=no
37044
37045
37046 fi
37047
37048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37049
37050
37051 fi
37052 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37053 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37054
37055 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37056     cat >>confdefs.h <<\_ACEOF
37057 #define HAVE_PW_GECOS 1
37058 _ACEOF
37059
37060 fi
37061
37062
37063 if test "$wxUSE_WCHAR_T" = "yes"; then
37064     cat >>confdefs.h <<\_ACEOF
37065 #define wxUSE_WCHAR_T 1
37066 _ACEOF
37067
37068
37069         WCSLEN_FOUND=0
37070     WCHAR_LINK=
37071
37072 for ac_func in wcslen
37073 do
37074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37078   echo $ECHO_N "(cached) $ECHO_C" >&6
37079 else
37080   cat >conftest.$ac_ext <<_ACEOF
37081 /* confdefs.h.  */
37082 _ACEOF
37083 cat confdefs.h >>conftest.$ac_ext
37084 cat >>conftest.$ac_ext <<_ACEOF
37085 /* end confdefs.h.  */
37086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37088 #define $ac_func innocuous_$ac_func
37089
37090 /* System header to define __stub macros and hopefully few prototypes,
37091     which can conflict with char $ac_func (); below.
37092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37093     <limits.h> exists even on freestanding compilers.  */
37094
37095 #ifdef __STDC__
37096 # include <limits.h>
37097 #else
37098 # include <assert.h>
37099 #endif
37100
37101 #undef $ac_func
37102
37103 /* Override any GCC internal prototype to avoid an error.
37104    Use char because int might match the return type of a GCC
37105    builtin and then its argument prototype would still apply.  */
37106 #ifdef __cplusplus
37107 extern "C"
37108 #endif
37109 char $ac_func ();
37110 /* The GNU C library defines this for functions which it implements
37111     to always fail with ENOSYS.  Some functions are actually named
37112     something starting with __ and the normal name is an alias.  */
37113 #if defined __stub_$ac_func || defined __stub___$ac_func
37114 choke me
37115 #endif
37116
37117 int
37118 main ()
37119 {
37120 return $ac_func ();
37121   ;
37122   return 0;
37123 }
37124 _ACEOF
37125 rm -f conftest.$ac_objext conftest$ac_exeext
37126 if { (ac_try="$ac_link"
37127 case "(($ac_try" in
37128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37129   *) ac_try_echo=$ac_try;;
37130 esac
37131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37132   (eval "$ac_link") 2>conftest.er1
37133   ac_status=$?
37134   grep -v '^ *+' conftest.er1 >conftest.err
37135   rm -f conftest.er1
37136   cat conftest.err >&5
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); } && {
37139          test -z "$ac_c_werror_flag" ||
37140          test ! -s conftest.err
37141        } && test -s conftest$ac_exeext &&
37142        $as_test_x conftest$ac_exeext; then
37143   eval "$as_ac_var=yes"
37144 else
37145   echo "$as_me: failed program was:" >&5
37146 sed 's/^/| /' conftest.$ac_ext >&5
37147
37148         eval "$as_ac_var=no"
37149 fi
37150
37151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37152       conftest$ac_exeext conftest.$ac_ext
37153 fi
37154 ac_res=`eval echo '${'$as_ac_var'}'`
37155                { echo "$as_me:$LINENO: result: $ac_res" >&5
37156 echo "${ECHO_T}$ac_res" >&6; }
37157 if test `eval echo '${'$as_ac_var'}'` = yes; then
37158   cat >>confdefs.h <<_ACEOF
37159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37160 _ACEOF
37161  WCSLEN_FOUND=1
37162 fi
37163 done
37164
37165
37166     if test "$WCSLEN_FOUND" = 0; then
37167         if test "$TOOLKIT" = "MSW"; then
37168             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37169 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37170 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37171   echo $ECHO_N "(cached) $ECHO_C" >&6
37172 else
37173   ac_check_lib_save_LIBS=$LIBS
37174 LIBS="-lmsvcrt  $LIBS"
37175 cat >conftest.$ac_ext <<_ACEOF
37176 /* confdefs.h.  */
37177 _ACEOF
37178 cat confdefs.h >>conftest.$ac_ext
37179 cat >>conftest.$ac_ext <<_ACEOF
37180 /* end confdefs.h.  */
37181
37182 /* Override any GCC internal prototype to avoid an error.
37183    Use char because int might match the return type of a GCC
37184    builtin and then its argument prototype would still apply.  */
37185 #ifdef __cplusplus
37186 extern "C"
37187 #endif
37188 char wcslen ();
37189 int
37190 main ()
37191 {
37192 return wcslen ();
37193   ;
37194   return 0;
37195 }
37196 _ACEOF
37197 rm -f conftest.$ac_objext conftest$ac_exeext
37198 if { (ac_try="$ac_link"
37199 case "(($ac_try" in
37200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37201   *) ac_try_echo=$ac_try;;
37202 esac
37203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37204   (eval "$ac_link") 2>conftest.er1
37205   ac_status=$?
37206   grep -v '^ *+' conftest.er1 >conftest.err
37207   rm -f conftest.er1
37208   cat conftest.err >&5
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); } && {
37211          test -z "$ac_c_werror_flag" ||
37212          test ! -s conftest.err
37213        } && test -s conftest$ac_exeext &&
37214        $as_test_x conftest$ac_exeext; then
37215   ac_cv_lib_msvcrt_wcslen=yes
37216 else
37217   echo "$as_me: failed program was:" >&5
37218 sed 's/^/| /' conftest.$ac_ext >&5
37219
37220         ac_cv_lib_msvcrt_wcslen=no
37221 fi
37222
37223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37224       conftest$ac_exeext conftest.$ac_ext
37225 LIBS=$ac_check_lib_save_LIBS
37226 fi
37227 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37228 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37229 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37230   WCHAR_OK=1
37231 fi
37232
37233         else
37234             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37235 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37236 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37237   echo $ECHO_N "(cached) $ECHO_C" >&6
37238 else
37239   ac_check_lib_save_LIBS=$LIBS
37240 LIBS="-lw  $LIBS"
37241 cat >conftest.$ac_ext <<_ACEOF
37242 /* confdefs.h.  */
37243 _ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h.  */
37247
37248 /* Override any GCC internal prototype to avoid an error.
37249    Use char because int might match the return type of a GCC
37250    builtin and then its argument prototype would still apply.  */
37251 #ifdef __cplusplus
37252 extern "C"
37253 #endif
37254 char wcslen ();
37255 int
37256 main ()
37257 {
37258 return wcslen ();
37259   ;
37260   return 0;
37261 }
37262 _ACEOF
37263 rm -f conftest.$ac_objext conftest$ac_exeext
37264 if { (ac_try="$ac_link"
37265 case "(($ac_try" in
37266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37267   *) ac_try_echo=$ac_try;;
37268 esac
37269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37270   (eval "$ac_link") 2>conftest.er1
37271   ac_status=$?
37272   grep -v '^ *+' conftest.er1 >conftest.err
37273   rm -f conftest.er1
37274   cat conftest.err >&5
37275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276   (exit $ac_status); } && {
37277          test -z "$ac_c_werror_flag" ||
37278          test ! -s conftest.err
37279        } && test -s conftest$ac_exeext &&
37280        $as_test_x conftest$ac_exeext; then
37281   ac_cv_lib_w_wcslen=yes
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286         ac_cv_lib_w_wcslen=no
37287 fi
37288
37289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37290       conftest$ac_exeext conftest.$ac_ext
37291 LIBS=$ac_check_lib_save_LIBS
37292 fi
37293 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37294 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37295 if test $ac_cv_lib_w_wcslen = yes; then
37296
37297                             WCHAR_LINK=" -lw"
37298                             WCSLEN_FOUND=1
37299
37300 fi
37301
37302         fi
37303     fi
37304
37305     if test "$WCSLEN_FOUND" = 1; then
37306         cat >>confdefs.h <<\_ACEOF
37307 #define HAVE_WCSLEN 1
37308 _ACEOF
37309
37310     fi
37311
37312
37313 for ac_func in wcsdup
37314 do
37315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37319   echo $ECHO_N "(cached) $ECHO_C" >&6
37320 else
37321   cat >conftest.$ac_ext <<_ACEOF
37322 /* confdefs.h.  */
37323 _ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h.  */
37327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37329 #define $ac_func innocuous_$ac_func
37330
37331 /* System header to define __stub macros and hopefully few prototypes,
37332     which can conflict with char $ac_func (); below.
37333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37334     <limits.h> exists even on freestanding compilers.  */
37335
37336 #ifdef __STDC__
37337 # include <limits.h>
37338 #else
37339 # include <assert.h>
37340 #endif
37341
37342 #undef $ac_func
37343
37344 /* Override any GCC internal prototype to avoid an error.
37345    Use char because int might match the return type of a GCC
37346    builtin and then its argument prototype would still apply.  */
37347 #ifdef __cplusplus
37348 extern "C"
37349 #endif
37350 char $ac_func ();
37351 /* The GNU C library defines this for functions which it implements
37352     to always fail with ENOSYS.  Some functions are actually named
37353     something starting with __ and the normal name is an alias.  */
37354 #if defined __stub_$ac_func || defined __stub___$ac_func
37355 choke me
37356 #endif
37357
37358 int
37359 main ()
37360 {
37361 return $ac_func ();
37362   ;
37363   return 0;
37364 }
37365 _ACEOF
37366 rm -f conftest.$ac_objext conftest$ac_exeext
37367 if { (ac_try="$ac_link"
37368 case "(($ac_try" in
37369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37370   *) ac_try_echo=$ac_try;;
37371 esac
37372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37373   (eval "$ac_link") 2>conftest.er1
37374   ac_status=$?
37375   grep -v '^ *+' conftest.er1 >conftest.err
37376   rm -f conftest.er1
37377   cat conftest.err >&5
37378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379   (exit $ac_status); } && {
37380          test -z "$ac_c_werror_flag" ||
37381          test ! -s conftest.err
37382        } && test -s conftest$ac_exeext &&
37383        $as_test_x conftest$ac_exeext; then
37384   eval "$as_ac_var=yes"
37385 else
37386   echo "$as_me: failed program was:" >&5
37387 sed 's/^/| /' conftest.$ac_ext >&5
37388
37389         eval "$as_ac_var=no"
37390 fi
37391
37392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37393       conftest$ac_exeext conftest.$ac_ext
37394 fi
37395 ac_res=`eval echo '${'$as_ac_var'}'`
37396                { echo "$as_me:$LINENO: result: $ac_res" >&5
37397 echo "${ECHO_T}$ac_res" >&6; }
37398 if test `eval echo '${'$as_ac_var'}'` = yes; then
37399   cat >>confdefs.h <<_ACEOF
37400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37401 _ACEOF
37402
37403 fi
37404 done
37405
37406
37407                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37408         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37409     fi
37410
37411                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37412 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37413 if test "${ac_cv_type_mbstate_t+set}" = set; then
37414   echo $ECHO_N "(cached) $ECHO_C" >&6
37415 else
37416   cat >conftest.$ac_ext <<_ACEOF
37417 /* confdefs.h.  */
37418 _ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h.  */
37422 #include <wchar.h>
37423
37424 typedef mbstate_t ac__type_new_;
37425 int
37426 main ()
37427 {
37428 if ((ac__type_new_ *) 0)
37429   return 0;
37430 if (sizeof (ac__type_new_))
37431   return 0;
37432   ;
37433   return 0;
37434 }
37435 _ACEOF
37436 rm -f conftest.$ac_objext
37437 if { (ac_try="$ac_compile"
37438 case "(($ac_try" in
37439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37440   *) ac_try_echo=$ac_try;;
37441 esac
37442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37443   (eval "$ac_compile") 2>conftest.er1
37444   ac_status=$?
37445   grep -v '^ *+' conftest.er1 >conftest.err
37446   rm -f conftest.er1
37447   cat conftest.err >&5
37448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449   (exit $ac_status); } && {
37450          test -z "$ac_c_werror_flag" ||
37451          test ! -s conftest.err
37452        } && test -s conftest.$ac_objext; then
37453   ac_cv_type_mbstate_t=yes
37454 else
37455   echo "$as_me: failed program was:" >&5
37456 sed 's/^/| /' conftest.$ac_ext >&5
37457
37458         ac_cv_type_mbstate_t=no
37459 fi
37460
37461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37462 fi
37463 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37464 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37465 if test $ac_cv_type_mbstate_t = yes; then
37466
37467 cat >>confdefs.h <<_ACEOF
37468 #define HAVE_MBSTATE_T 1
37469 _ACEOF
37470
37471
37472 for ac_func in wcsrtombs
37473 do
37474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37478   echo $ECHO_N "(cached) $ECHO_C" >&6
37479 else
37480   cat >conftest.$ac_ext <<_ACEOF
37481 /* confdefs.h.  */
37482 _ACEOF
37483 cat confdefs.h >>conftest.$ac_ext
37484 cat >>conftest.$ac_ext <<_ACEOF
37485 /* end confdefs.h.  */
37486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37488 #define $ac_func innocuous_$ac_func
37489
37490 /* System header to define __stub macros and hopefully few prototypes,
37491     which can conflict with char $ac_func (); below.
37492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37493     <limits.h> exists even on freestanding compilers.  */
37494
37495 #ifdef __STDC__
37496 # include <limits.h>
37497 #else
37498 # include <assert.h>
37499 #endif
37500
37501 #undef $ac_func
37502
37503 /* Override any GCC internal prototype to avoid an error.
37504    Use char because int might match the return type of a GCC
37505    builtin and then its argument prototype would still apply.  */
37506 #ifdef __cplusplus
37507 extern "C"
37508 #endif
37509 char $ac_func ();
37510 /* The GNU C library defines this for functions which it implements
37511     to always fail with ENOSYS.  Some functions are actually named
37512     something starting with __ and the normal name is an alias.  */
37513 #if defined __stub_$ac_func || defined __stub___$ac_func
37514 choke me
37515 #endif
37516
37517 int
37518 main ()
37519 {
37520 return $ac_func ();
37521   ;
37522   return 0;
37523 }
37524 _ACEOF
37525 rm -f conftest.$ac_objext conftest$ac_exeext
37526 if { (ac_try="$ac_link"
37527 case "(($ac_try" in
37528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37529   *) ac_try_echo=$ac_try;;
37530 esac
37531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37532   (eval "$ac_link") 2>conftest.er1
37533   ac_status=$?
37534   grep -v '^ *+' conftest.er1 >conftest.err
37535   rm -f conftest.er1
37536   cat conftest.err >&5
37537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538   (exit $ac_status); } && {
37539          test -z "$ac_c_werror_flag" ||
37540          test ! -s conftest.err
37541        } && test -s conftest$ac_exeext &&
37542        $as_test_x conftest$ac_exeext; then
37543   eval "$as_ac_var=yes"
37544 else
37545   echo "$as_me: failed program was:" >&5
37546 sed 's/^/| /' conftest.$ac_ext >&5
37547
37548         eval "$as_ac_var=no"
37549 fi
37550
37551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37552       conftest$ac_exeext conftest.$ac_ext
37553 fi
37554 ac_res=`eval echo '${'$as_ac_var'}'`
37555                { echo "$as_me:$LINENO: result: $ac_res" >&5
37556 echo "${ECHO_T}$ac_res" >&6; }
37557 if test `eval echo '${'$as_ac_var'}'` = yes; then
37558   cat >>confdefs.h <<_ACEOF
37559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37560 _ACEOF
37561
37562 fi
37563 done
37564
37565 fi
37566
37567 else
37568     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37569 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37570 fi
37571
37572
37573
37574 for ac_func in snprintf vsnprintf
37575 do
37576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37580   echo $ECHO_N "(cached) $ECHO_C" >&6
37581 else
37582   cat >conftest.$ac_ext <<_ACEOF
37583 /* confdefs.h.  */
37584 _ACEOF
37585 cat confdefs.h >>conftest.$ac_ext
37586 cat >>conftest.$ac_ext <<_ACEOF
37587 /* end confdefs.h.  */
37588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37590 #define $ac_func innocuous_$ac_func
37591
37592 /* System header to define __stub macros and hopefully few prototypes,
37593     which can conflict with char $ac_func (); below.
37594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37595     <limits.h> exists even on freestanding compilers.  */
37596
37597 #ifdef __STDC__
37598 # include <limits.h>
37599 #else
37600 # include <assert.h>
37601 #endif
37602
37603 #undef $ac_func
37604
37605 /* Override any GCC internal prototype to avoid an error.
37606    Use char because int might match the return type of a GCC
37607    builtin and then its argument prototype would still apply.  */
37608 #ifdef __cplusplus
37609 extern "C"
37610 #endif
37611 char $ac_func ();
37612 /* The GNU C library defines this for functions which it implements
37613     to always fail with ENOSYS.  Some functions are actually named
37614     something starting with __ and the normal name is an alias.  */
37615 #if defined __stub_$ac_func || defined __stub___$ac_func
37616 choke me
37617 #endif
37618
37619 int
37620 main ()
37621 {
37622 return $ac_func ();
37623   ;
37624   return 0;
37625 }
37626 _ACEOF
37627 rm -f conftest.$ac_objext conftest$ac_exeext
37628 if { (ac_try="$ac_link"
37629 case "(($ac_try" in
37630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37631   *) ac_try_echo=$ac_try;;
37632 esac
37633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37634   (eval "$ac_link") 2>conftest.er1
37635   ac_status=$?
37636   grep -v '^ *+' conftest.er1 >conftest.err
37637   rm -f conftest.er1
37638   cat conftest.err >&5
37639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640   (exit $ac_status); } && {
37641          test -z "$ac_c_werror_flag" ||
37642          test ! -s conftest.err
37643        } && test -s conftest$ac_exeext &&
37644        $as_test_x conftest$ac_exeext; then
37645   eval "$as_ac_var=yes"
37646 else
37647   echo "$as_me: failed program was:" >&5
37648 sed 's/^/| /' conftest.$ac_ext >&5
37649
37650         eval "$as_ac_var=no"
37651 fi
37652
37653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37654       conftest$ac_exeext conftest.$ac_ext
37655 fi
37656 ac_res=`eval echo '${'$as_ac_var'}'`
37657                { echo "$as_me:$LINENO: result: $ac_res" >&5
37658 echo "${ECHO_T}$ac_res" >&6; }
37659 if test `eval echo '${'$as_ac_var'}'` = yes; then
37660   cat >>confdefs.h <<_ACEOF
37661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37662 _ACEOF
37663
37664 fi
37665 done
37666
37667
37668 if test "$ac_cv_func_vsnprintf" = "yes"; then
37669         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37670 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37671 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37672   echo $ECHO_N "(cached) $ECHO_C" >&6
37673 else
37674
37675                                                             cat >conftest.$ac_ext <<_ACEOF
37676 /* confdefs.h.  */
37677 _ACEOF
37678 cat confdefs.h >>conftest.$ac_ext
37679 cat >>conftest.$ac_ext <<_ACEOF
37680 /* end confdefs.h.  */
37681
37682                     #include <stdio.h>
37683                     #include <stdarg.h>
37684                     #ifdef __MSL__
37685                     #if __MSL__ >= 0x6000
37686                     namespace std {}
37687                     using namespace std;
37688                     #endif
37689                     #endif
37690
37691 int
37692 main ()
37693 {
37694
37695                     char *buf;
37696                     va_list ap;
37697                     vsnprintf(buf, 10u, "%s", ap);
37698
37699   ;
37700   return 0;
37701 }
37702 _ACEOF
37703 rm -f conftest.$ac_objext
37704 if { (ac_try="$ac_compile"
37705 case "(($ac_try" in
37706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37707   *) ac_try_echo=$ac_try;;
37708 esac
37709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37710   (eval "$ac_compile") 2>conftest.er1
37711   ac_status=$?
37712   grep -v '^ *+' conftest.er1 >conftest.err
37713   rm -f conftest.er1
37714   cat conftest.err >&5
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); } && {
37717          test -z "$ac_c_werror_flag" ||
37718          test ! -s conftest.err
37719        } && test -s conftest.$ac_objext; then
37720   wx_cv_func_vsnprintf_decl=yes
37721 else
37722   echo "$as_me: failed program was:" >&5
37723 sed 's/^/| /' conftest.$ac_ext >&5
37724
37725         wx_cv_func_vsnprintf_decl=no
37726
37727 fi
37728
37729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37730
37731
37732 fi
37733 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37734 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37735
37736     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37737         cat >>confdefs.h <<\_ACEOF
37738 #define HAVE_VSNPRINTF_DECL 1
37739 _ACEOF
37740
37741
37742                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37743 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37744 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37745   echo $ECHO_N "(cached) $ECHO_C" >&6
37746 else
37747
37748                 cat >conftest.$ac_ext <<_ACEOF
37749 /* confdefs.h.  */
37750 _ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h.  */
37754
37755                         #include <stdio.h>
37756                         #include <stdarg.h>
37757                         #ifdef __MSL__
37758                         #if __MSL__ >= 0x6000
37759                         namespace std {}
37760                         using namespace std;
37761                         #endif
37762                         #endif
37763
37764 int
37765 main ()
37766 {
37767
37768                         char *buf;
37769                         va_list ap;
37770                         const char *fmt = "%s";
37771                         vsnprintf(buf, 10u, fmt, ap);
37772
37773   ;
37774   return 0;
37775 }
37776 _ACEOF
37777 rm -f conftest.$ac_objext
37778 if { (ac_try="$ac_compile"
37779 case "(($ac_try" in
37780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37781   *) ac_try_echo=$ac_try;;
37782 esac
37783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37784   (eval "$ac_compile") 2>conftest.er1
37785   ac_status=$?
37786   grep -v '^ *+' conftest.er1 >conftest.err
37787   rm -f conftest.er1
37788   cat conftest.err >&5
37789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790   (exit $ac_status); } && {
37791          test -z "$ac_c_werror_flag" ||
37792          test ! -s conftest.err
37793        } && test -s conftest.$ac_objext; then
37794   wx_cv_func_broken_vsnprintf_decl=no
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799         wx_cv_func_broken_vsnprintf_decl=yes
37800
37801 fi
37802
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804
37805
37806 fi
37807 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37808 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37809
37810         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37811             cat >>confdefs.h <<\_ACEOF
37812 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37813 _ACEOF
37814
37815         fi
37816     fi
37817 fi
37818
37819 if test "$ac_cv_func_snprintf" = "yes"; then
37820     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37821 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37822 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37823   echo $ECHO_N "(cached) $ECHO_C" >&6
37824 else
37825
37826             cat >conftest.$ac_ext <<_ACEOF
37827 /* confdefs.h.  */
37828 _ACEOF
37829 cat confdefs.h >>conftest.$ac_ext
37830 cat >>conftest.$ac_ext <<_ACEOF
37831 /* end confdefs.h.  */
37832
37833                     #include <stdio.h>
37834                     #include <stdarg.h>
37835                     #ifdef __MSL__
37836                     #if __MSL__ >= 0x6000
37837                     namespace std {}
37838                     using namespace std;
37839                     #endif
37840                     #endif
37841
37842 int
37843 main ()
37844 {
37845
37846                     char *buf;
37847                     snprintf(buf, 10u, "%s", "wx");
37848
37849   ;
37850   return 0;
37851 }
37852 _ACEOF
37853 rm -f conftest.$ac_objext
37854 if { (ac_try="$ac_compile"
37855 case "(($ac_try" in
37856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37857   *) ac_try_echo=$ac_try;;
37858 esac
37859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37860   (eval "$ac_compile") 2>conftest.er1
37861   ac_status=$?
37862   grep -v '^ *+' conftest.er1 >conftest.err
37863   rm -f conftest.er1
37864   cat conftest.err >&5
37865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866   (exit $ac_status); } && {
37867          test -z "$ac_c_werror_flag" ||
37868          test ! -s conftest.err
37869        } && test -s conftest.$ac_objext; then
37870   wx_cv_func_snprintf_decl=yes
37871 else
37872   echo "$as_me: failed program was:" >&5
37873 sed 's/^/| /' conftest.$ac_ext >&5
37874
37875         wx_cv_func_snprintf_decl=no
37876
37877 fi
37878
37879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37880
37881
37882 fi
37883 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37884 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37885
37886     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37887         cat >>confdefs.h <<\_ACEOF
37888 #define HAVE_SNPRINTF_DECL 1
37889 _ACEOF
37890
37891
37892                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
37893 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
37894 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
37895   echo $ECHO_N "(cached) $ECHO_C" >&6
37896 else
37897
37898                 cat >conftest.$ac_ext <<_ACEOF
37899 /* confdefs.h.  */
37900 _ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h.  */
37904
37905                         #include <stdio.h>
37906                         #include <stdarg.h>
37907                         #ifdef __MSL__
37908                         #if __MSL__ >= 0x6000
37909                         namespace std {}
37910                         using namespace std;
37911                         #endif
37912                         #endif
37913
37914 int
37915 main ()
37916 {
37917
37918                         char *buf;
37919                         const char *fmt = "%s";
37920                         snprintf(buf, 10u, fmt, "wx");
37921
37922   ;
37923   return 0;
37924 }
37925 _ACEOF
37926 rm -f conftest.$ac_objext
37927 if { (ac_try="$ac_compile"
37928 case "(($ac_try" in
37929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37930   *) ac_try_echo=$ac_try;;
37931 esac
37932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37933   (eval "$ac_compile") 2>conftest.er1
37934   ac_status=$?
37935   grep -v '^ *+' conftest.er1 >conftest.err
37936   rm -f conftest.er1
37937   cat conftest.err >&5
37938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939   (exit $ac_status); } && {
37940          test -z "$ac_c_werror_flag" ||
37941          test ! -s conftest.err
37942        } && test -s conftest.$ac_objext; then
37943   wx_cv_func_broken_snprintf_decl=no
37944 else
37945   echo "$as_me: failed program was:" >&5
37946 sed 's/^/| /' conftest.$ac_ext >&5
37947
37948         wx_cv_func_broken_snprintf_decl=yes
37949
37950 fi
37951
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37953
37954
37955 fi
37956 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
37957 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
37958
37959         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
37960             cat >>confdefs.h <<\_ACEOF
37961 #define HAVE_BROKEN_SNPRINTF_DECL 1
37962 _ACEOF
37963
37964         fi
37965     fi
37966
37967     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37968
37969                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37970 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37971 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37972   echo $ECHO_N "(cached) $ECHO_C" >&6
37973 else
37974
37975                 if test "$cross_compiling" = yes; then
37976
37977                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37978 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37979 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37980 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37981                         wx_cv_func_snprintf_pos_params=no
37982
37983
37984 else
37985   cat >conftest.$ac_ext <<_ACEOF
37986 /* confdefs.h.  */
37987 _ACEOF
37988 cat confdefs.h >>conftest.$ac_ext
37989 cat >>conftest.$ac_ext <<_ACEOF
37990 /* end confdefs.h.  */
37991
37992                         #include <stdio.h>
37993
37994                         int main (void)
37995                         {
37996                             char buffer[128];
37997                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37998                             if (strcmp ("2 3 1", buffer) == 0)
37999                                 exit (0);
38000                             exit (1);
38001                         }
38002
38003 _ACEOF
38004 rm -f conftest$ac_exeext
38005 if { (ac_try="$ac_link"
38006 case "(($ac_try" in
38007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38008   *) ac_try_echo=$ac_try;;
38009 esac
38010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38011   (eval "$ac_link") 2>&5
38012   ac_status=$?
38013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38015   { (case "(($ac_try" in
38016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38017   *) ac_try_echo=$ac_try;;
38018 esac
38019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38020   (eval "$ac_try") 2>&5
38021   ac_status=$?
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); }; }; then
38024   wx_cv_func_snprintf_pos_params=no
38025 else
38026   echo "$as_me: program exited with status $ac_status" >&5
38027 echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030 ( exit $ac_status )
38031 wx_cv_func_snprintf_pos_params=yes
38032 fi
38033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38034 fi
38035
38036
38037
38038
38039 fi
38040 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38041 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38042
38043         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38044             cat >>confdefs.h <<\_ACEOF
38045 #define HAVE_UNIX98_PRINTF 1
38046 _ACEOF
38047
38048         fi
38049     fi
38050 fi
38051
38052 if test "$wxUSE_UNICODE" = yes; then
38053
38054
38055 for ac_func in swprintf
38056 do
38057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38061   echo $ECHO_N "(cached) $ECHO_C" >&6
38062 else
38063   cat >conftest.$ac_ext <<_ACEOF
38064 /* confdefs.h.  */
38065 _ACEOF
38066 cat confdefs.h >>conftest.$ac_ext
38067 cat >>conftest.$ac_ext <<_ACEOF
38068 /* end confdefs.h.  */
38069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38071 #define $ac_func innocuous_$ac_func
38072
38073 /* System header to define __stub macros and hopefully few prototypes,
38074     which can conflict with char $ac_func (); below.
38075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38076     <limits.h> exists even on freestanding compilers.  */
38077
38078 #ifdef __STDC__
38079 # include <limits.h>
38080 #else
38081 # include <assert.h>
38082 #endif
38083
38084 #undef $ac_func
38085
38086 /* Override any GCC internal prototype to avoid an error.
38087    Use char because int might match the return type of a GCC
38088    builtin and then its argument prototype would still apply.  */
38089 #ifdef __cplusplus
38090 extern "C"
38091 #endif
38092 char $ac_func ();
38093 /* The GNU C library defines this for functions which it implements
38094     to always fail with ENOSYS.  Some functions are actually named
38095     something starting with __ and the normal name is an alias.  */
38096 #if defined __stub_$ac_func || defined __stub___$ac_func
38097 choke me
38098 #endif
38099
38100 int
38101 main ()
38102 {
38103 return $ac_func ();
38104   ;
38105   return 0;
38106 }
38107 _ACEOF
38108 rm -f conftest.$ac_objext conftest$ac_exeext
38109 if { (ac_try="$ac_link"
38110 case "(($ac_try" in
38111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38112   *) ac_try_echo=$ac_try;;
38113 esac
38114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38115   (eval "$ac_link") 2>conftest.er1
38116   ac_status=$?
38117   grep -v '^ *+' conftest.er1 >conftest.err
38118   rm -f conftest.er1
38119   cat conftest.err >&5
38120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121   (exit $ac_status); } && {
38122          test -z "$ac_c_werror_flag" ||
38123          test ! -s conftest.err
38124        } && test -s conftest$ac_exeext &&
38125        $as_test_x conftest$ac_exeext; then
38126   eval "$as_ac_var=yes"
38127 else
38128   echo "$as_me: failed program was:" >&5
38129 sed 's/^/| /' conftest.$ac_ext >&5
38130
38131         eval "$as_ac_var=no"
38132 fi
38133
38134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38135       conftest$ac_exeext conftest.$ac_ext
38136 fi
38137 ac_res=`eval echo '${'$as_ac_var'}'`
38138                { echo "$as_me:$LINENO: result: $ac_res" >&5
38139 echo "${ECHO_T}$ac_res" >&6; }
38140 if test `eval echo '${'$as_ac_var'}'` = yes; then
38141   cat >>confdefs.h <<_ACEOF
38142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38143 _ACEOF
38144
38145 fi
38146 done
38147
38148
38149     if test "$ac_cv_func_swprintf" = "yes"; then
38150         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38151 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38152 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38153   echo $ECHO_N "(cached) $ECHO_C" >&6
38154 else
38155
38156                 cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162
38163                         #include <stdio.h>
38164                         #include <stdarg.h>
38165                         #include <wchar.h>
38166
38167 int
38168 main ()
38169 {
38170
38171                         wchar_t *buf;
38172                         const wchar_t *fmt = L"test";
38173                         swprintf(buf, 10u, fmt);
38174
38175   ;
38176   return 0;
38177 }
38178 _ACEOF
38179 rm -f conftest.$ac_objext
38180 if { (ac_try="$ac_compile"
38181 case "(($ac_try" in
38182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38183   *) ac_try_echo=$ac_try;;
38184 esac
38185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38186   (eval "$ac_compile") 2>conftest.er1
38187   ac_status=$?
38188   grep -v '^ *+' conftest.er1 >conftest.err
38189   rm -f conftest.er1
38190   cat conftest.err >&5
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); } && {
38193          test -z "$ac_c_werror_flag" ||
38194          test ! -s conftest.err
38195        } && test -s conftest.$ac_objext; then
38196   wx_cv_func_broken_swprintf_decl=no
38197 else
38198   echo "$as_me: failed program was:" >&5
38199 sed 's/^/| /' conftest.$ac_ext >&5
38200
38201         wx_cv_func_broken_swprintf_decl=yes
38202
38203 fi
38204
38205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38206
38207
38208 fi
38209 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38210 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38211
38212         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38213             cat >>confdefs.h <<\_ACEOF
38214 #define HAVE_BROKEN_SWPRINTF_DECL 1
38215 _ACEOF
38216
38217         fi
38218     fi
38219
38220             wchar_headers="#include <stdio.h>
38221 #include <wchar.h>"
38222     case "${host}" in
38223         *-*-solaris2* )
38224             { echo "$as_me:$LINENO: checking for widec.h" >&5
38225 echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; }
38226 if test "${ac_cv_header_widec_h+set}" = set; then
38227   echo $ECHO_N "(cached) $ECHO_C" >&6
38228 else
38229   cat >conftest.$ac_ext <<_ACEOF
38230 /* confdefs.h.  */
38231 _ACEOF
38232 cat confdefs.h >>conftest.$ac_ext
38233 cat >>conftest.$ac_ext <<_ACEOF
38234 /* end confdefs.h.  */
38235 $ac_includes_default
38236
38237 #include <widec.h>
38238 _ACEOF
38239 rm -f conftest.$ac_objext
38240 if { (ac_try="$ac_compile"
38241 case "(($ac_try" in
38242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38243   *) ac_try_echo=$ac_try;;
38244 esac
38245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38246   (eval "$ac_compile") 2>conftest.er1
38247   ac_status=$?
38248   grep -v '^ *+' conftest.er1 >conftest.err
38249   rm -f conftest.er1
38250   cat conftest.err >&5
38251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252   (exit $ac_status); } && {
38253          test -z "$ac_c_werror_flag" ||
38254          test ! -s conftest.err
38255        } && test -s conftest.$ac_objext; then
38256   ac_cv_header_widec_h=yes
38257 else
38258   echo "$as_me: failed program was:" >&5
38259 sed 's/^/| /' conftest.$ac_ext >&5
38260
38261         ac_cv_header_widec_h=no
38262 fi
38263
38264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38265 fi
38266 { echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
38267 echo "${ECHO_T}$ac_cv_header_widec_h" >&6; }
38268
38269
38270             if test "$ac_cv_header_widec_h" = "yes"; then
38271                 wchar_headers="$wchar_headers
38272 #include <widec.h>"
38273             fi
38274     esac
38275
38276
38277   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38278   do
38279     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38280 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38281 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38282   echo $ECHO_N "(cached) $ECHO_C" >&6
38283 else
38284
38285         cat >conftest.$ac_ext <<_ACEOF
38286
38287             /* confdefs.h.  */
38288 _ACEOF
38289 cat confdefs.h >>conftest.$ac_ext
38290 cat >>conftest.$ac_ext <<_ACEOF
38291 /* end confdefs.h.  */
38292
38293                 $wchar_headers
38294                 $ac_includes_default
38295
38296 int
38297 main ()
38298 {
38299
38300                 #ifndef $wx_func
38301                   &$wx_func;
38302                 #endif
38303
38304
38305   ;
38306   return 0;
38307 }
38308
38309 _ACEOF
38310 rm -f conftest.$ac_objext conftest$ac_exeext
38311 if { (ac_try="$ac_link"
38312 case "(($ac_try" in
38313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314   *) ac_try_echo=$ac_try;;
38315 esac
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317   (eval "$ac_link") 2>conftest.er1
38318   ac_status=$?
38319   grep -v '^ *+' conftest.er1 >conftest.err
38320   rm -f conftest.er1
38321   cat conftest.err >&5
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); } && {
38324          test -z "$ac_c_werror_flag" ||
38325          test ! -s conftest.err
38326        } && test -s conftest$ac_exeext &&
38327        $as_test_x conftest$ac_exeext; then
38328   eval wx_cv_func_$wx_func=yes
38329 else
38330   echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38332
38333         eval wx_cv_func_$wx_func=no
38334 fi
38335
38336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38337       conftest$ac_exeext conftest.$ac_ext
38338
38339 fi
38340 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38341                { echo "$as_me:$LINENO: result: $ac_res" >&5
38342 echo "${ECHO_T}$ac_res" >&6; }
38343
38344     if eval test \$wx_cv_func_$wx_func = yes
38345     then
38346       cat >>confdefs.h <<_ACEOF
38347 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38348 _ACEOF
38349
38350
38351     else
38352       :
38353
38354     fi
38355   done
38356
38357
38358                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38359 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38360     cat >conftest.$ac_ext <<_ACEOF
38361 /* confdefs.h.  */
38362 _ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h.  */
38366 #include <wchar.h>
38367 int
38368 main ()
38369 {
38370 &_vsnwprintf;
38371   ;
38372   return 0;
38373 }
38374 _ACEOF
38375 rm -f conftest.$ac_objext
38376 if { (ac_try="$ac_compile"
38377 case "(($ac_try" in
38378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379   *) ac_try_echo=$ac_try;;
38380 esac
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382   (eval "$ac_compile") 2>conftest.er1
38383   ac_status=$?
38384   grep -v '^ *+' conftest.er1 >conftest.err
38385   rm -f conftest.er1
38386   cat conftest.err >&5
38387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388   (exit $ac_status); } && {
38389          test -z "$ac_c_werror_flag" ||
38390          test ! -s conftest.err
38391        } && test -s conftest.$ac_objext; then
38392   { echo "$as_me:$LINENO: result: yes" >&5
38393 echo "${ECHO_T}yes" >&6; }
38394                     cat >>confdefs.h <<\_ACEOF
38395 #define HAVE__VSNWPRINTF 1
38396 _ACEOF
38397
38398 else
38399   echo "$as_me: failed program was:" >&5
38400 sed 's/^/| /' conftest.$ac_ext >&5
38401
38402         { echo "$as_me:$LINENO: result: no" >&5
38403 echo "${ECHO_T}no" >&6; }
38404 fi
38405
38406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38407 fi
38408
38409 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
38410
38411   for wx_func in fnmatch
38412   do
38413     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38414 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38415 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38416   echo $ECHO_N "(cached) $ECHO_C" >&6
38417 else
38418
38419         cat >conftest.$ac_ext <<_ACEOF
38420
38421             /* confdefs.h.  */
38422 _ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h.  */
38426
38427                 #include <fnmatch.h>
38428                 $ac_includes_default
38429
38430 int
38431 main ()
38432 {
38433
38434                 #ifndef $wx_func
38435                   &$wx_func;
38436                 #endif
38437
38438
38439   ;
38440   return 0;
38441 }
38442
38443 _ACEOF
38444 rm -f conftest.$ac_objext conftest$ac_exeext
38445 if { (ac_try="$ac_link"
38446 case "(($ac_try" in
38447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38448   *) ac_try_echo=$ac_try;;
38449 esac
38450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38451   (eval "$ac_link") 2>conftest.er1
38452   ac_status=$?
38453   grep -v '^ *+' conftest.er1 >conftest.err
38454   rm -f conftest.er1
38455   cat conftest.err >&5
38456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457   (exit $ac_status); } && {
38458          test -z "$ac_c_werror_flag" ||
38459          test ! -s conftest.err
38460        } && test -s conftest$ac_exeext &&
38461        $as_test_x conftest$ac_exeext; then
38462   eval wx_cv_func_$wx_func=yes
38463 else
38464   echo "$as_me: failed program was:" >&5
38465 sed 's/^/| /' conftest.$ac_ext >&5
38466
38467         eval wx_cv_func_$wx_func=no
38468 fi
38469
38470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38471       conftest$ac_exeext conftest.$ac_ext
38472
38473 fi
38474 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38475                { echo "$as_me:$LINENO: result: $ac_res" >&5
38476 echo "${ECHO_T}$ac_res" >&6; }
38477
38478     if eval test \$wx_cv_func_$wx_func = yes
38479     then
38480       cat >>confdefs.h <<_ACEOF
38481 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38482 _ACEOF
38483
38484
38485     else
38486       :
38487
38488     fi
38489   done
38490
38491 fi
38492
38493 if test "$wxUSE_FILE" = "yes"; then
38494
38495   for wx_func in fsync
38496   do
38497     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38498 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38499 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38500   echo $ECHO_N "(cached) $ECHO_C" >&6
38501 else
38502
38503         cat >conftest.$ac_ext <<_ACEOF
38504
38505             /* confdefs.h.  */
38506 _ACEOF
38507 cat confdefs.h >>conftest.$ac_ext
38508 cat >>conftest.$ac_ext <<_ACEOF
38509 /* end confdefs.h.  */
38510
38511
38512                 $ac_includes_default
38513
38514 int
38515 main ()
38516 {
38517
38518                 #ifndef $wx_func
38519                   &$wx_func;
38520                 #endif
38521
38522
38523   ;
38524   return 0;
38525 }
38526
38527 _ACEOF
38528 rm -f conftest.$ac_objext conftest$ac_exeext
38529 if { (ac_try="$ac_link"
38530 case "(($ac_try" in
38531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38532   *) ac_try_echo=$ac_try;;
38533 esac
38534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38535   (eval "$ac_link") 2>conftest.er1
38536   ac_status=$?
38537   grep -v '^ *+' conftest.er1 >conftest.err
38538   rm -f conftest.er1
38539   cat conftest.err >&5
38540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541   (exit $ac_status); } && {
38542          test -z "$ac_c_werror_flag" ||
38543          test ! -s conftest.err
38544        } && test -s conftest$ac_exeext &&
38545        $as_test_x conftest$ac_exeext; then
38546   eval wx_cv_func_$wx_func=yes
38547 else
38548   echo "$as_me: failed program was:" >&5
38549 sed 's/^/| /' conftest.$ac_ext >&5
38550
38551         eval wx_cv_func_$wx_func=no
38552 fi
38553
38554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38555       conftest$ac_exeext conftest.$ac_ext
38556
38557 fi
38558 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38559                { echo "$as_me:$LINENO: result: $ac_res" >&5
38560 echo "${ECHO_T}$ac_res" >&6; }
38561
38562     if eval test \$wx_cv_func_$wx_func = yes
38563     then
38564       cat >>confdefs.h <<_ACEOF
38565 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38566 _ACEOF
38567
38568
38569     else
38570       :
38571
38572     fi
38573   done
38574
38575 fi
38576
38577 ac_ext=cpp
38578 ac_cpp='$CXXCPP $CPPFLAGS'
38579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38582
38583
38584   for wx_func in round
38585   do
38586     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38587 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38588 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38589   echo $ECHO_N "(cached) $ECHO_C" >&6
38590 else
38591
38592         cat >conftest.$ac_ext <<_ACEOF
38593
38594             /* confdefs.h.  */
38595 _ACEOF
38596 cat confdefs.h >>conftest.$ac_ext
38597 cat >>conftest.$ac_ext <<_ACEOF
38598 /* end confdefs.h.  */
38599
38600                 #include <math.h>
38601                 $ac_includes_default
38602
38603 int
38604 main ()
38605 {
38606
38607                 #ifndef $wx_func
38608                   &$wx_func;
38609                 #endif
38610
38611
38612   ;
38613   return 0;
38614 }
38615
38616 _ACEOF
38617 rm -f conftest.$ac_objext conftest$ac_exeext
38618 if { (ac_try="$ac_link"
38619 case "(($ac_try" in
38620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621   *) ac_try_echo=$ac_try;;
38622 esac
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624   (eval "$ac_link") 2>conftest.er1
38625   ac_status=$?
38626   grep -v '^ *+' conftest.er1 >conftest.err
38627   rm -f conftest.er1
38628   cat conftest.err >&5
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); } && {
38631          test -z "$ac_cxx_werror_flag" ||
38632          test ! -s conftest.err
38633        } && test -s conftest$ac_exeext &&
38634        $as_test_x conftest$ac_exeext; then
38635   eval wx_cv_func_$wx_func=yes
38636 else
38637   echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38639
38640         eval wx_cv_func_$wx_func=no
38641 fi
38642
38643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38644       conftest$ac_exeext conftest.$ac_ext
38645
38646 fi
38647 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38648                { echo "$as_me:$LINENO: result: $ac_res" >&5
38649 echo "${ECHO_T}$ac_res" >&6; }
38650
38651     if eval test \$wx_cv_func_$wx_func = yes
38652     then
38653       cat >>confdefs.h <<_ACEOF
38654 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38655 _ACEOF
38656
38657
38658     else
38659       :
38660
38661     fi
38662   done
38663
38664 ac_ext=c
38665 ac_cpp='$CPP $CPPFLAGS'
38666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38669
38670
38671 if test "$TOOLKIT" != "MSW"; then
38672
38673
38674
38675
38676
38677 # Check whether --with-libiconv-prefix was given.
38678 if test "${with_libiconv_prefix+set}" = set; then
38679   withval=$with_libiconv_prefix;
38680     for dir in `echo "$withval" | tr : ' '`; do
38681       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38682       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38683     done
38684
38685 fi
38686
38687
38688   { echo "$as_me:$LINENO: checking for iconv" >&5
38689 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38690 if test "${am_cv_func_iconv+set}" = set; then
38691   echo $ECHO_N "(cached) $ECHO_C" >&6
38692 else
38693
38694     am_cv_func_iconv="no, consider installing GNU libiconv"
38695     am_cv_lib_iconv=no
38696     cat >conftest.$ac_ext <<_ACEOF
38697 /* confdefs.h.  */
38698 _ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h.  */
38702 #include <stdlib.h>
38703 #include <iconv.h>
38704 int
38705 main ()
38706 {
38707 iconv_t cd = iconv_open("","");
38708        iconv(cd,NULL,NULL,NULL,NULL);
38709        iconv_close(cd);
38710   ;
38711   return 0;
38712 }
38713 _ACEOF
38714 rm -f conftest.$ac_objext conftest$ac_exeext
38715 if { (ac_try="$ac_link"
38716 case "(($ac_try" in
38717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38718   *) ac_try_echo=$ac_try;;
38719 esac
38720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38721   (eval "$ac_link") 2>conftest.er1
38722   ac_status=$?
38723   grep -v '^ *+' conftest.er1 >conftest.err
38724   rm -f conftest.er1
38725   cat conftest.err >&5
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); } && {
38728          test -z "$ac_c_werror_flag" ||
38729          test ! -s conftest.err
38730        } && test -s conftest$ac_exeext &&
38731        $as_test_x conftest$ac_exeext; then
38732   am_cv_func_iconv=yes
38733 else
38734   echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38736
38737
38738 fi
38739
38740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38741       conftest$ac_exeext conftest.$ac_ext
38742     if test "$am_cv_func_iconv" != yes; then
38743       am_save_LIBS="$LIBS"
38744       LIBS="$LIBS -liconv"
38745       cat >conftest.$ac_ext <<_ACEOF
38746 /* confdefs.h.  */
38747 _ACEOF
38748 cat confdefs.h >>conftest.$ac_ext
38749 cat >>conftest.$ac_ext <<_ACEOF
38750 /* end confdefs.h.  */
38751 #include <stdlib.h>
38752 #include <iconv.h>
38753 int
38754 main ()
38755 {
38756 iconv_t cd = iconv_open("","");
38757          iconv(cd,NULL,NULL,NULL,NULL);
38758          iconv_close(cd);
38759   ;
38760   return 0;
38761 }
38762 _ACEOF
38763 rm -f conftest.$ac_objext conftest$ac_exeext
38764 if { (ac_try="$ac_link"
38765 case "(($ac_try" in
38766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38767   *) ac_try_echo=$ac_try;;
38768 esac
38769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38770   (eval "$ac_link") 2>conftest.er1
38771   ac_status=$?
38772   grep -v '^ *+' conftest.er1 >conftest.err
38773   rm -f conftest.er1
38774   cat conftest.err >&5
38775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776   (exit $ac_status); } && {
38777          test -z "$ac_c_werror_flag" ||
38778          test ! -s conftest.err
38779        } && test -s conftest$ac_exeext &&
38780        $as_test_x conftest$ac_exeext; then
38781   am_cv_lib_iconv=yes
38782         am_cv_func_iconv=yes
38783 else
38784   echo "$as_me: failed program was:" >&5
38785 sed 's/^/| /' conftest.$ac_ext >&5
38786
38787
38788 fi
38789
38790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38791       conftest$ac_exeext conftest.$ac_ext
38792       LIBS="$am_save_LIBS"
38793     fi
38794
38795 fi
38796 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38797 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38798   if test "$am_cv_func_iconv" = yes; then
38799
38800 cat >>confdefs.h <<\_ACEOF
38801 #define HAVE_ICONV 1
38802 _ACEOF
38803
38804     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38805 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38806 if test "${wx_cv_func_iconv_const+set}" = set; then
38807   echo $ECHO_N "(cached) $ECHO_C" >&6
38808 else
38809   cat >conftest.$ac_ext <<_ACEOF
38810 /* confdefs.h.  */
38811 _ACEOF
38812 cat confdefs.h >>conftest.$ac_ext
38813 cat >>conftest.$ac_ext <<_ACEOF
38814 /* end confdefs.h.  */
38815
38816 #include <stdlib.h>
38817 #include <iconv.h>
38818 extern
38819 #ifdef __cplusplus
38820 "C"
38821 #endif
38822 #if defined(__STDC__) || defined(__cplusplus)
38823 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38824 #else
38825 size_t iconv();
38826 #endif
38827
38828 int
38829 main ()
38830 {
38831
38832   ;
38833   return 0;
38834 }
38835 _ACEOF
38836 rm -f conftest.$ac_objext
38837 if { (ac_try="$ac_compile"
38838 case "(($ac_try" in
38839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38840   *) ac_try_echo=$ac_try;;
38841 esac
38842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38843   (eval "$ac_compile") 2>conftest.er1
38844   ac_status=$?
38845   grep -v '^ *+' conftest.er1 >conftest.err
38846   rm -f conftest.er1
38847   cat conftest.err >&5
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); } && {
38850          test -z "$ac_c_werror_flag" ||
38851          test ! -s conftest.err
38852        } && test -s conftest.$ac_objext; then
38853   wx_cv_func_iconv_const="no"
38854 else
38855   echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38857
38858         wx_cv_func_iconv_const="yes"
38859
38860 fi
38861
38862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38863
38864 fi
38865 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38866 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38867
38868     iconv_const=
38869     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38870         iconv_const="const"
38871     fi
38872
38873
38874 cat >>confdefs.h <<_ACEOF
38875 #define ICONV_CONST $iconv_const
38876 _ACEOF
38877
38878   fi
38879   LIBICONV=
38880   if test "$am_cv_lib_iconv" = yes; then
38881     LIBICONV="-liconv"
38882   fi
38883
38884
38885 LIBS="$LIBICONV $LIBS"
38886
38887 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38888
38889 for ac_func in sigaction
38890 do
38891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38895   echo $ECHO_N "(cached) $ECHO_C" >&6
38896 else
38897   cat >conftest.$ac_ext <<_ACEOF
38898 /* confdefs.h.  */
38899 _ACEOF
38900 cat confdefs.h >>conftest.$ac_ext
38901 cat >>conftest.$ac_ext <<_ACEOF
38902 /* end confdefs.h.  */
38903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38905 #define $ac_func innocuous_$ac_func
38906
38907 /* System header to define __stub macros and hopefully few prototypes,
38908     which can conflict with char $ac_func (); below.
38909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38910     <limits.h> exists even on freestanding compilers.  */
38911
38912 #ifdef __STDC__
38913 # include <limits.h>
38914 #else
38915 # include <assert.h>
38916 #endif
38917
38918 #undef $ac_func
38919
38920 /* Override any GCC internal prototype to avoid an error.
38921    Use char because int might match the return type of a GCC
38922    builtin and then its argument prototype would still apply.  */
38923 #ifdef __cplusplus
38924 extern "C"
38925 #endif
38926 char $ac_func ();
38927 /* The GNU C library defines this for functions which it implements
38928     to always fail with ENOSYS.  Some functions are actually named
38929     something starting with __ and the normal name is an alias.  */
38930 #if defined __stub_$ac_func || defined __stub___$ac_func
38931 choke me
38932 #endif
38933
38934 int
38935 main ()
38936 {
38937 return $ac_func ();
38938   ;
38939   return 0;
38940 }
38941 _ACEOF
38942 rm -f conftest.$ac_objext conftest$ac_exeext
38943 if { (ac_try="$ac_link"
38944 case "(($ac_try" in
38945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38946   *) ac_try_echo=$ac_try;;
38947 esac
38948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38949   (eval "$ac_link") 2>conftest.er1
38950   ac_status=$?
38951   grep -v '^ *+' conftest.er1 >conftest.err
38952   rm -f conftest.er1
38953   cat conftest.err >&5
38954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955   (exit $ac_status); } && {
38956          test -z "$ac_c_werror_flag" ||
38957          test ! -s conftest.err
38958        } && test -s conftest$ac_exeext &&
38959        $as_test_x conftest$ac_exeext; then
38960   eval "$as_ac_var=yes"
38961 else
38962   echo "$as_me: failed program was:" >&5
38963 sed 's/^/| /' conftest.$ac_ext >&5
38964
38965         eval "$as_ac_var=no"
38966 fi
38967
38968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38969       conftest$ac_exeext conftest.$ac_ext
38970 fi
38971 ac_res=`eval echo '${'$as_ac_var'}'`
38972                { echo "$as_me:$LINENO: result: $ac_res" >&5
38973 echo "${ECHO_T}$ac_res" >&6; }
38974 if test `eval echo '${'$as_ac_var'}'` = yes; then
38975   cat >>confdefs.h <<_ACEOF
38976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38977 _ACEOF
38978
38979 fi
38980 done
38981
38982
38983     if test "$ac_cv_func_sigaction" = "no"; then
38984         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38985 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38986         wxUSE_ON_FATAL_EXCEPTION=no
38987     fi
38988
38989     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38990       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38991 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38992 if test "${wx_cv_type_sa_handler+set}" = set; then
38993   echo $ECHO_N "(cached) $ECHO_C" >&6
38994 else
38995
38996                 ac_ext=cpp
38997 ac_cpp='$CXXCPP $CPPFLAGS'
38998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39001
39002         cat >conftest.$ac_ext <<_ACEOF
39003 /* confdefs.h.  */
39004 _ACEOF
39005 cat confdefs.h >>conftest.$ac_ext
39006 cat >>conftest.$ac_ext <<_ACEOF
39007 /* end confdefs.h.  */
39008 #include <signal.h>
39009 int
39010 main ()
39011 {
39012
39013                         extern void testSigHandler(int);
39014
39015                         struct sigaction sa;
39016                         sa.sa_handler = testSigHandler;
39017
39018   ;
39019   return 0;
39020 }
39021 _ACEOF
39022 rm -f conftest.$ac_objext
39023 if { (ac_try="$ac_compile"
39024 case "(($ac_try" in
39025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39026   *) ac_try_echo=$ac_try;;
39027 esac
39028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39029   (eval "$ac_compile") 2>conftest.er1
39030   ac_status=$?
39031   grep -v '^ *+' conftest.er1 >conftest.err
39032   rm -f conftest.er1
39033   cat conftest.err >&5
39034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035   (exit $ac_status); } && {
39036          test -z "$ac_cxx_werror_flag" ||
39037          test ! -s conftest.err
39038        } && test -s conftest.$ac_objext; then
39039
39040                         wx_cv_type_sa_handler=int
39041
39042 else
39043   echo "$as_me: failed program was:" >&5
39044 sed 's/^/| /' conftest.$ac_ext >&5
39045
39046
39047                         wx_cv_type_sa_handler=void
39048
39049 fi
39050
39051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39052         ac_ext=c
39053 ac_cpp='$CPP $CPPFLAGS'
39054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39057
39058
39059 fi
39060 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39061 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39062
39063       cat >>confdefs.h <<_ACEOF
39064 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39065 _ACEOF
39066
39067     fi
39068 fi
39069
39070 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39071     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39072 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39073 if test "${wx_cv_func_backtrace+set}" = set; then
39074   echo $ECHO_N "(cached) $ECHO_C" >&6
39075 else
39076
39077             ac_ext=cpp
39078 ac_cpp='$CXXCPP $CPPFLAGS'
39079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39082
39083             cat >conftest.$ac_ext <<_ACEOF
39084 /* confdefs.h.  */
39085 _ACEOF
39086 cat confdefs.h >>conftest.$ac_ext
39087 cat >>conftest.$ac_ext <<_ACEOF
39088 /* end confdefs.h.  */
39089 #include <execinfo.h>
39090 int
39091 main ()
39092 {
39093
39094                     void *trace[1];
39095                     char **messages;
39096
39097                     backtrace(trace, 1);
39098                     messages = backtrace_symbols(trace, 1);
39099
39100   ;
39101   return 0;
39102 }
39103 _ACEOF
39104 rm -f conftest.$ac_objext
39105 if { (ac_try="$ac_compile"
39106 case "(($ac_try" in
39107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39108   *) ac_try_echo=$ac_try;;
39109 esac
39110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39111   (eval "$ac_compile") 2>conftest.er1
39112   ac_status=$?
39113   grep -v '^ *+' conftest.er1 >conftest.err
39114   rm -f conftest.er1
39115   cat conftest.err >&5
39116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117   (exit $ac_status); } && {
39118          test -z "$ac_cxx_werror_flag" ||
39119          test ! -s conftest.err
39120        } && test -s conftest.$ac_objext; then
39121   wx_cv_func_backtrace=yes
39122 else
39123   echo "$as_me: failed program was:" >&5
39124 sed 's/^/| /' conftest.$ac_ext >&5
39125
39126         wx_cv_func_backtrace=no
39127
39128 fi
39129
39130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39131             ac_ext=c
39132 ac_cpp='$CPP $CPPFLAGS'
39133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39136
39137
39138
39139 fi
39140 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39141 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39142
39143
39144     if test "$wx_cv_func_backtrace" = "no"; then
39145         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39146 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39147         wxUSE_STACKWALKER=no
39148     else
39149         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39150 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39151 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39152   echo $ECHO_N "(cached) $ECHO_C" >&6
39153 else
39154
39155                 ac_ext=cpp
39156 ac_cpp='$CXXCPP $CPPFLAGS'
39157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39160
39161                 cat >conftest.$ac_ext <<_ACEOF
39162 /* confdefs.h.  */
39163 _ACEOF
39164 cat confdefs.h >>conftest.$ac_ext
39165 cat >>conftest.$ac_ext <<_ACEOF
39166 /* end confdefs.h.  */
39167 #include <cxxabi.h>
39168 int
39169 main ()
39170 {
39171
39172                         int rc;
39173                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39174
39175   ;
39176   return 0;
39177 }
39178 _ACEOF
39179 rm -f conftest.$ac_objext conftest$ac_exeext
39180 if { (ac_try="$ac_link"
39181 case "(($ac_try" in
39182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183   *) ac_try_echo=$ac_try;;
39184 esac
39185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39186   (eval "$ac_link") 2>conftest.er1
39187   ac_status=$?
39188   grep -v '^ *+' conftest.er1 >conftest.err
39189   rm -f conftest.er1
39190   cat conftest.err >&5
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); } && {
39193          test -z "$ac_cxx_werror_flag" ||
39194          test ! -s conftest.err
39195        } && test -s conftest$ac_exeext &&
39196        $as_test_x conftest$ac_exeext; then
39197   wx_cv_func_cxa_demangle=yes
39198 else
39199   echo "$as_me: failed program was:" >&5
39200 sed 's/^/| /' conftest.$ac_ext >&5
39201
39202         wx_cv_func_cxa_demangle=no
39203
39204 fi
39205
39206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39207       conftest$ac_exeext conftest.$ac_ext
39208                 ac_ext=c
39209 ac_cpp='$CPP $CPPFLAGS'
39210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39213
39214
39215
39216 fi
39217 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39218 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39219
39220         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39221             cat >>confdefs.h <<\_ACEOF
39222 #define HAVE_CXA_DEMANGLE 1
39223 _ACEOF
39224
39225         fi
39226     fi
39227 fi
39228
39229 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39230     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39231 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39232     wxUSE_STACKWALKER=no
39233 fi
39234
39235
39236
39237
39238 for ac_func in mkstemp mktemp
39239 do
39240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39244   echo $ECHO_N "(cached) $ECHO_C" >&6
39245 else
39246   cat >conftest.$ac_ext <<_ACEOF
39247 /* confdefs.h.  */
39248 _ACEOF
39249 cat confdefs.h >>conftest.$ac_ext
39250 cat >>conftest.$ac_ext <<_ACEOF
39251 /* end confdefs.h.  */
39252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39254 #define $ac_func innocuous_$ac_func
39255
39256 /* System header to define __stub macros and hopefully few prototypes,
39257     which can conflict with char $ac_func (); below.
39258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39259     <limits.h> exists even on freestanding compilers.  */
39260
39261 #ifdef __STDC__
39262 # include <limits.h>
39263 #else
39264 # include <assert.h>
39265 #endif
39266
39267 #undef $ac_func
39268
39269 /* Override any GCC internal prototype to avoid an error.
39270    Use char because int might match the return type of a GCC
39271    builtin and then its argument prototype would still apply.  */
39272 #ifdef __cplusplus
39273 extern "C"
39274 #endif
39275 char $ac_func ();
39276 /* The GNU C library defines this for functions which it implements
39277     to always fail with ENOSYS.  Some functions are actually named
39278     something starting with __ and the normal name is an alias.  */
39279 #if defined __stub_$ac_func || defined __stub___$ac_func
39280 choke me
39281 #endif
39282
39283 int
39284 main ()
39285 {
39286 return $ac_func ();
39287   ;
39288   return 0;
39289 }
39290 _ACEOF
39291 rm -f conftest.$ac_objext conftest$ac_exeext
39292 if { (ac_try="$ac_link"
39293 case "(($ac_try" in
39294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39295   *) ac_try_echo=$ac_try;;
39296 esac
39297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39298   (eval "$ac_link") 2>conftest.er1
39299   ac_status=$?
39300   grep -v '^ *+' conftest.er1 >conftest.err
39301   rm -f conftest.er1
39302   cat conftest.err >&5
39303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304   (exit $ac_status); } && {
39305          test -z "$ac_c_werror_flag" ||
39306          test ! -s conftest.err
39307        } && test -s conftest$ac_exeext &&
39308        $as_test_x conftest$ac_exeext; then
39309   eval "$as_ac_var=yes"
39310 else
39311   echo "$as_me: failed program was:" >&5
39312 sed 's/^/| /' conftest.$ac_ext >&5
39313
39314         eval "$as_ac_var=no"
39315 fi
39316
39317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39318       conftest$ac_exeext conftest.$ac_ext
39319 fi
39320 ac_res=`eval echo '${'$as_ac_var'}'`
39321                { echo "$as_me:$LINENO: result: $ac_res" >&5
39322 echo "${ECHO_T}$ac_res" >&6; }
39323 if test `eval echo '${'$as_ac_var'}'` = yes; then
39324   cat >>confdefs.h <<_ACEOF
39325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39326 _ACEOF
39327  break
39328 fi
39329 done
39330
39331
39332 { echo "$as_me:$LINENO: checking for statfs" >&5
39333 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39334 if test "${wx_cv_func_statfs+set}" = set; then
39335   echo $ECHO_N "(cached) $ECHO_C" >&6
39336 else
39337   cat >conftest.$ac_ext <<_ACEOF
39338 /* confdefs.h.  */
39339 _ACEOF
39340 cat confdefs.h >>conftest.$ac_ext
39341 cat >>conftest.$ac_ext <<_ACEOF
39342 /* end confdefs.h.  */
39343
39344              #if defined(__BSD__)
39345              #include <sys/param.h>
39346              #include <sys/mount.h>
39347              #else
39348              #include <sys/vfs.h>
39349              #endif
39350
39351 int
39352 main ()
39353 {
39354
39355              long l;
39356              struct statfs fs;
39357              statfs("/", &fs);
39358              l = fs.f_bsize;
39359              l += fs.f_blocks;
39360              l += fs.f_bavail;
39361
39362   ;
39363   return 0;
39364 }
39365 _ACEOF
39366 rm -f conftest.$ac_objext
39367 if { (ac_try="$ac_compile"
39368 case "(($ac_try" in
39369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39370   *) ac_try_echo=$ac_try;;
39371 esac
39372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39373   (eval "$ac_compile") 2>conftest.er1
39374   ac_status=$?
39375   grep -v '^ *+' conftest.er1 >conftest.err
39376   rm -f conftest.er1
39377   cat conftest.err >&5
39378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379   (exit $ac_status); } && {
39380          test -z "$ac_c_werror_flag" ||
39381          test ! -s conftest.err
39382        } && test -s conftest.$ac_objext; then
39383   wx_cv_func_statfs=yes
39384 else
39385   echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39387
39388         wx_cv_func_statfs=no
39389
39390 fi
39391
39392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39393
39394 fi
39395 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39396 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39397
39398 if test "$wx_cv_func_statfs" = "yes"; then
39399         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39400 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39401 if test "${wx_cv_func_statfs_decl+set}" = set; then
39402   echo $ECHO_N "(cached) $ECHO_C" >&6
39403 else
39404   ac_ext=cpp
39405 ac_cpp='$CXXCPP $CPPFLAGS'
39406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39409
39410         cat >conftest.$ac_ext <<_ACEOF
39411 /* confdefs.h.  */
39412 _ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h.  */
39416
39417                  #if defined(__BSD__)
39418                  #include <sys/param.h>
39419                  #include <sys/mount.h>
39420                  #else
39421                  #include <sys/vfs.h>
39422                  #endif
39423
39424 int
39425 main ()
39426 {
39427
39428                 struct statfs fs;
39429                 statfs("", &fs);
39430
39431   ;
39432   return 0;
39433 }
39434 _ACEOF
39435 rm -f conftest.$ac_objext
39436 if { (ac_try="$ac_compile"
39437 case "(($ac_try" in
39438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39439   *) ac_try_echo=$ac_try;;
39440 esac
39441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39442   (eval "$ac_compile") 2>conftest.er1
39443   ac_status=$?
39444   grep -v '^ *+' conftest.er1 >conftest.err
39445   rm -f conftest.er1
39446   cat conftest.err >&5
39447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448   (exit $ac_status); } && {
39449          test -z "$ac_cxx_werror_flag" ||
39450          test ! -s conftest.err
39451        } && test -s conftest.$ac_objext; then
39452   wx_cv_func_statfs_decl=yes
39453 else
39454   echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39456
39457         wx_cv_func_statfs_decl=no
39458
39459 fi
39460
39461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39462         ac_ext=c
39463 ac_cpp='$CPP $CPPFLAGS'
39464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39467
39468
39469 fi
39470 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39471 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39472
39473     if test "$wx_cv_func_statfs_decl" = "yes"; then
39474         cat >>confdefs.h <<\_ACEOF
39475 #define HAVE_STATFS_DECL 1
39476 _ACEOF
39477
39478     fi
39479
39480     wx_cv_type_statvfs_t="struct statfs"
39481     cat >>confdefs.h <<\_ACEOF
39482 #define HAVE_STATFS 1
39483 _ACEOF
39484
39485 else
39486     { echo "$as_me:$LINENO: checking for statvfs" >&5
39487 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39488 if test "${wx_cv_func_statvfs+set}" = set; then
39489   echo $ECHO_N "(cached) $ECHO_C" >&6
39490 else
39491   cat >conftest.$ac_ext <<_ACEOF
39492 /* confdefs.h.  */
39493 _ACEOF
39494 cat confdefs.h >>conftest.$ac_ext
39495 cat >>conftest.$ac_ext <<_ACEOF
39496 /* end confdefs.h.  */
39497
39498                 #include <stddef.h>
39499                 #include <sys/statvfs.h>
39500
39501 int
39502 main ()
39503 {
39504
39505                 statvfs("/", NULL);
39506
39507   ;
39508   return 0;
39509 }
39510 _ACEOF
39511 rm -f conftest.$ac_objext
39512 if { (ac_try="$ac_compile"
39513 case "(($ac_try" in
39514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39515   *) ac_try_echo=$ac_try;;
39516 esac
39517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39518   (eval "$ac_compile") 2>conftest.er1
39519   ac_status=$?
39520   grep -v '^ *+' conftest.er1 >conftest.err
39521   rm -f conftest.er1
39522   cat conftest.err >&5
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); } && {
39525          test -z "$ac_c_werror_flag" ||
39526          test ! -s conftest.err
39527        } && test -s conftest.$ac_objext; then
39528   wx_cv_func_statvfs=yes
39529 else
39530   echo "$as_me: failed program was:" >&5
39531 sed 's/^/| /' conftest.$ac_ext >&5
39532
39533         wx_cv_func_statvfs=no
39534
39535 fi
39536
39537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39538
39539 fi
39540 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39541 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39542
39543     if test "$wx_cv_func_statvfs" = "yes"; then
39544                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39545 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39546 if test "${wx_cv_type_statvfs_t+set}" = set; then
39547   echo $ECHO_N "(cached) $ECHO_C" >&6
39548 else
39549   ac_ext=cpp
39550 ac_cpp='$CXXCPP $CPPFLAGS'
39551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39554
39555             cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561
39562                     #include <sys/statvfs.h>
39563
39564 int
39565 main ()
39566 {
39567
39568                     long l;
39569                     statvfs_t fs;
39570                     statvfs("/", &fs);
39571                     l = fs.f_bsize;
39572                     l += fs.f_blocks;
39573                     l += fs.f_bavail;
39574
39575   ;
39576   return 0;
39577 }
39578 _ACEOF
39579 rm -f conftest.$ac_objext
39580 if { (ac_try="$ac_compile"
39581 case "(($ac_try" in
39582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39583   *) ac_try_echo=$ac_try;;
39584 esac
39585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39586   (eval "$ac_compile") 2>conftest.er1
39587   ac_status=$?
39588   grep -v '^ *+' conftest.er1 >conftest.err
39589   rm -f conftest.er1
39590   cat conftest.err >&5
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); } && {
39593          test -z "$ac_cxx_werror_flag" ||
39594          test ! -s conftest.err
39595        } && test -s conftest.$ac_objext; then
39596   wx_cv_type_statvfs_t=statvfs_t
39597 else
39598   echo "$as_me: failed program was:" >&5
39599 sed 's/^/| /' conftest.$ac_ext >&5
39600
39601
39602                     cat >conftest.$ac_ext <<_ACEOF
39603 /* confdefs.h.  */
39604 _ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h.  */
39608
39609                             #include <sys/statvfs.h>
39610
39611 int
39612 main ()
39613 {
39614
39615                             long l;
39616                             struct statvfs fs;
39617                             statvfs("/", &fs);
39618                             l = fs.f_bsize;
39619                             l += fs.f_blocks;
39620                             l += fs.f_bavail;
39621
39622   ;
39623   return 0;
39624 }
39625 _ACEOF
39626 rm -f conftest.$ac_objext
39627 if { (ac_try="$ac_compile"
39628 case "(($ac_try" in
39629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39630   *) ac_try_echo=$ac_try;;
39631 esac
39632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39633   (eval "$ac_compile") 2>conftest.er1
39634   ac_status=$?
39635   grep -v '^ *+' conftest.er1 >conftest.err
39636   rm -f conftest.er1
39637   cat conftest.err >&5
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); } && {
39640          test -z "$ac_cxx_werror_flag" ||
39641          test ! -s conftest.err
39642        } && test -s conftest.$ac_objext; then
39643   wx_cv_type_statvfs_t="struct statvfs"
39644 else
39645   echo "$as_me: failed program was:" >&5
39646 sed 's/^/| /' conftest.$ac_ext >&5
39647
39648         wx_cv_type_statvfs_t="unknown"
39649
39650 fi
39651
39652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39653
39654
39655 fi
39656
39657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39658             ac_ext=c
39659 ac_cpp='$CPP $CPPFLAGS'
39660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39663
39664
39665 fi
39666 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39667 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39668
39669         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39670             cat >>confdefs.h <<\_ACEOF
39671 #define HAVE_STATVFS 1
39672 _ACEOF
39673
39674         fi
39675     else
39676                 wx_cv_type_statvfs_t="unknown"
39677     fi
39678 fi
39679
39680 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39681     cat >>confdefs.h <<_ACEOF
39682 #define WX_STATFS_T $wx_cv_type_statvfs_t
39683 _ACEOF
39684
39685 else
39686     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39687 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39688 fi
39689
39690 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39691
39692
39693 for ac_func in fcntl flock
39694 do
39695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39699   echo $ECHO_N "(cached) $ECHO_C" >&6
39700 else
39701   cat >conftest.$ac_ext <<_ACEOF
39702 /* confdefs.h.  */
39703 _ACEOF
39704 cat confdefs.h >>conftest.$ac_ext
39705 cat >>conftest.$ac_ext <<_ACEOF
39706 /* end confdefs.h.  */
39707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39709 #define $ac_func innocuous_$ac_func
39710
39711 /* System header to define __stub macros and hopefully few prototypes,
39712     which can conflict with char $ac_func (); below.
39713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39714     <limits.h> exists even on freestanding compilers.  */
39715
39716 #ifdef __STDC__
39717 # include <limits.h>
39718 #else
39719 # include <assert.h>
39720 #endif
39721
39722 #undef $ac_func
39723
39724 /* Override any GCC internal prototype to avoid an error.
39725    Use char because int might match the return type of a GCC
39726    builtin and then its argument prototype would still apply.  */
39727 #ifdef __cplusplus
39728 extern "C"
39729 #endif
39730 char $ac_func ();
39731 /* The GNU C library defines this for functions which it implements
39732     to always fail with ENOSYS.  Some functions are actually named
39733     something starting with __ and the normal name is an alias.  */
39734 #if defined __stub_$ac_func || defined __stub___$ac_func
39735 choke me
39736 #endif
39737
39738 int
39739 main ()
39740 {
39741 return $ac_func ();
39742   ;
39743   return 0;
39744 }
39745 _ACEOF
39746 rm -f conftest.$ac_objext conftest$ac_exeext
39747 if { (ac_try="$ac_link"
39748 case "(($ac_try" in
39749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39750   *) ac_try_echo=$ac_try;;
39751 esac
39752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39753   (eval "$ac_link") 2>conftest.er1
39754   ac_status=$?
39755   grep -v '^ *+' conftest.er1 >conftest.err
39756   rm -f conftest.er1
39757   cat conftest.err >&5
39758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759   (exit $ac_status); } && {
39760          test -z "$ac_c_werror_flag" ||
39761          test ! -s conftest.err
39762        } && test -s conftest$ac_exeext &&
39763        $as_test_x conftest$ac_exeext; then
39764   eval "$as_ac_var=yes"
39765 else
39766   echo "$as_me: failed program was:" >&5
39767 sed 's/^/| /' conftest.$ac_ext >&5
39768
39769         eval "$as_ac_var=no"
39770 fi
39771
39772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39773       conftest$ac_exeext conftest.$ac_ext
39774 fi
39775 ac_res=`eval echo '${'$as_ac_var'}'`
39776                { echo "$as_me:$LINENO: result: $ac_res" >&5
39777 echo "${ECHO_T}$ac_res" >&6; }
39778 if test `eval echo '${'$as_ac_var'}'` = yes; then
39779   cat >>confdefs.h <<_ACEOF
39780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39781 _ACEOF
39782  break
39783 fi
39784 done
39785
39786
39787     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39788         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39789 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39790         wxUSE_SNGLINST_CHECKER=no
39791     fi
39792 fi
39793
39794
39795 for ac_func in timegm
39796 do
39797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39801   echo $ECHO_N "(cached) $ECHO_C" >&6
39802 else
39803   cat >conftest.$ac_ext <<_ACEOF
39804 /* confdefs.h.  */
39805 _ACEOF
39806 cat confdefs.h >>conftest.$ac_ext
39807 cat >>conftest.$ac_ext <<_ACEOF
39808 /* end confdefs.h.  */
39809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39811 #define $ac_func innocuous_$ac_func
39812
39813 /* System header to define __stub macros and hopefully few prototypes,
39814     which can conflict with char $ac_func (); below.
39815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39816     <limits.h> exists even on freestanding compilers.  */
39817
39818 #ifdef __STDC__
39819 # include <limits.h>
39820 #else
39821 # include <assert.h>
39822 #endif
39823
39824 #undef $ac_func
39825
39826 /* Override any GCC internal prototype to avoid an error.
39827    Use char because int might match the return type of a GCC
39828    builtin and then its argument prototype would still apply.  */
39829 #ifdef __cplusplus
39830 extern "C"
39831 #endif
39832 char $ac_func ();
39833 /* The GNU C library defines this for functions which it implements
39834     to always fail with ENOSYS.  Some functions are actually named
39835     something starting with __ and the normal name is an alias.  */
39836 #if defined __stub_$ac_func || defined __stub___$ac_func
39837 choke me
39838 #endif
39839
39840 int
39841 main ()
39842 {
39843 return $ac_func ();
39844   ;
39845   return 0;
39846 }
39847 _ACEOF
39848 rm -f conftest.$ac_objext conftest$ac_exeext
39849 if { (ac_try="$ac_link"
39850 case "(($ac_try" in
39851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39852   *) ac_try_echo=$ac_try;;
39853 esac
39854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39855   (eval "$ac_link") 2>conftest.er1
39856   ac_status=$?
39857   grep -v '^ *+' conftest.er1 >conftest.err
39858   rm -f conftest.er1
39859   cat conftest.err >&5
39860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861   (exit $ac_status); } && {
39862          test -z "$ac_c_werror_flag" ||
39863          test ! -s conftest.err
39864        } && test -s conftest$ac_exeext &&
39865        $as_test_x conftest$ac_exeext; then
39866   eval "$as_ac_var=yes"
39867 else
39868   echo "$as_me: failed program was:" >&5
39869 sed 's/^/| /' conftest.$ac_ext >&5
39870
39871         eval "$as_ac_var=no"
39872 fi
39873
39874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39875       conftest$ac_exeext conftest.$ac_ext
39876 fi
39877 ac_res=`eval echo '${'$as_ac_var'}'`
39878                { echo "$as_me:$LINENO: result: $ac_res" >&5
39879 echo "${ECHO_T}$ac_res" >&6; }
39880 if test `eval echo '${'$as_ac_var'}'` = yes; then
39881   cat >>confdefs.h <<_ACEOF
39882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39883 _ACEOF
39884
39885 fi
39886 done
39887
39888
39889
39890
39891 for ac_func in putenv setenv
39892 do
39893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39897   echo $ECHO_N "(cached) $ECHO_C" >&6
39898 else
39899   cat >conftest.$ac_ext <<_ACEOF
39900 /* confdefs.h.  */
39901 _ACEOF
39902 cat confdefs.h >>conftest.$ac_ext
39903 cat >>conftest.$ac_ext <<_ACEOF
39904 /* end confdefs.h.  */
39905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39907 #define $ac_func innocuous_$ac_func
39908
39909 /* System header to define __stub macros and hopefully few prototypes,
39910     which can conflict with char $ac_func (); below.
39911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39912     <limits.h> exists even on freestanding compilers.  */
39913
39914 #ifdef __STDC__
39915 # include <limits.h>
39916 #else
39917 # include <assert.h>
39918 #endif
39919
39920 #undef $ac_func
39921
39922 /* Override any GCC internal prototype to avoid an error.
39923    Use char because int might match the return type of a GCC
39924    builtin and then its argument prototype would still apply.  */
39925 #ifdef __cplusplus
39926 extern "C"
39927 #endif
39928 char $ac_func ();
39929 /* The GNU C library defines this for functions which it implements
39930     to always fail with ENOSYS.  Some functions are actually named
39931     something starting with __ and the normal name is an alias.  */
39932 #if defined __stub_$ac_func || defined __stub___$ac_func
39933 choke me
39934 #endif
39935
39936 int
39937 main ()
39938 {
39939 return $ac_func ();
39940   ;
39941   return 0;
39942 }
39943 _ACEOF
39944 rm -f conftest.$ac_objext conftest$ac_exeext
39945 if { (ac_try="$ac_link"
39946 case "(($ac_try" in
39947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39948   *) ac_try_echo=$ac_try;;
39949 esac
39950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39951   (eval "$ac_link") 2>conftest.er1
39952   ac_status=$?
39953   grep -v '^ *+' conftest.er1 >conftest.err
39954   rm -f conftest.er1
39955   cat conftest.err >&5
39956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957   (exit $ac_status); } && {
39958          test -z "$ac_c_werror_flag" ||
39959          test ! -s conftest.err
39960        } && test -s conftest$ac_exeext &&
39961        $as_test_x conftest$ac_exeext; then
39962   eval "$as_ac_var=yes"
39963 else
39964   echo "$as_me: failed program was:" >&5
39965 sed 's/^/| /' conftest.$ac_ext >&5
39966
39967         eval "$as_ac_var=no"
39968 fi
39969
39970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39971       conftest$ac_exeext conftest.$ac_ext
39972 fi
39973 ac_res=`eval echo '${'$as_ac_var'}'`
39974                { echo "$as_me:$LINENO: result: $ac_res" >&5
39975 echo "${ECHO_T}$ac_res" >&6; }
39976 if test `eval echo '${'$as_ac_var'}'` = yes; then
39977   cat >>confdefs.h <<_ACEOF
39978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39979 _ACEOF
39980  break
39981 fi
39982 done
39983
39984
39985 HAVE_SOME_SLEEP_FUNC=0
39986 if test "$USE_BEOS" = 1; then
39987             cat >>confdefs.h <<\_ACEOF
39988 #define HAVE_SLEEP 1
39989 _ACEOF
39990
39991     HAVE_SOME_SLEEP_FUNC=1
39992 fi
39993
39994 if test "$USE_DARWIN" = 1; then
39995             cat >>confdefs.h <<\_ACEOF
39996 #define HAVE_USLEEP 1
39997 _ACEOF
39998
39999     HAVE_SOME_SLEEP_FUNC=1
40000 fi
40001
40002 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40003         POSIX4_LINK=
40004
40005 for ac_func in nanosleep
40006 do
40007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40011   echo $ECHO_N "(cached) $ECHO_C" >&6
40012 else
40013   cat >conftest.$ac_ext <<_ACEOF
40014 /* confdefs.h.  */
40015 _ACEOF
40016 cat confdefs.h >>conftest.$ac_ext
40017 cat >>conftest.$ac_ext <<_ACEOF
40018 /* end confdefs.h.  */
40019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40021 #define $ac_func innocuous_$ac_func
40022
40023 /* System header to define __stub macros and hopefully few prototypes,
40024     which can conflict with char $ac_func (); below.
40025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40026     <limits.h> exists even on freestanding compilers.  */
40027
40028 #ifdef __STDC__
40029 # include <limits.h>
40030 #else
40031 # include <assert.h>
40032 #endif
40033
40034 #undef $ac_func
40035
40036 /* Override any GCC internal prototype to avoid an error.
40037    Use char because int might match the return type of a GCC
40038    builtin and then its argument prototype would still apply.  */
40039 #ifdef __cplusplus
40040 extern "C"
40041 #endif
40042 char $ac_func ();
40043 /* The GNU C library defines this for functions which it implements
40044     to always fail with ENOSYS.  Some functions are actually named
40045     something starting with __ and the normal name is an alias.  */
40046 #if defined __stub_$ac_func || defined __stub___$ac_func
40047 choke me
40048 #endif
40049
40050 int
40051 main ()
40052 {
40053 return $ac_func ();
40054   ;
40055   return 0;
40056 }
40057 _ACEOF
40058 rm -f conftest.$ac_objext conftest$ac_exeext
40059 if { (ac_try="$ac_link"
40060 case "(($ac_try" in
40061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062   *) ac_try_echo=$ac_try;;
40063 esac
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065   (eval "$ac_link") 2>conftest.er1
40066   ac_status=$?
40067   grep -v '^ *+' conftest.er1 >conftest.err
40068   rm -f conftest.er1
40069   cat conftest.err >&5
40070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071   (exit $ac_status); } && {
40072          test -z "$ac_c_werror_flag" ||
40073          test ! -s conftest.err
40074        } && test -s conftest$ac_exeext &&
40075        $as_test_x conftest$ac_exeext; then
40076   eval "$as_ac_var=yes"
40077 else
40078   echo "$as_me: failed program was:" >&5
40079 sed 's/^/| /' conftest.$ac_ext >&5
40080
40081         eval "$as_ac_var=no"
40082 fi
40083
40084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40085       conftest$ac_exeext conftest.$ac_ext
40086 fi
40087 ac_res=`eval echo '${'$as_ac_var'}'`
40088                { echo "$as_me:$LINENO: result: $ac_res" >&5
40089 echo "${ECHO_T}$ac_res" >&6; }
40090 if test `eval echo '${'$as_ac_var'}'` = yes; then
40091   cat >>confdefs.h <<_ACEOF
40092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40093 _ACEOF
40094  cat >>confdefs.h <<\_ACEOF
40095 #define HAVE_NANOSLEEP 1
40096 _ACEOF
40097
40098 else
40099
40100             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40101 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40102 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40103   echo $ECHO_N "(cached) $ECHO_C" >&6
40104 else
40105   ac_check_lib_save_LIBS=$LIBS
40106 LIBS="-lposix4  $LIBS"
40107 cat >conftest.$ac_ext <<_ACEOF
40108 /* confdefs.h.  */
40109 _ACEOF
40110 cat confdefs.h >>conftest.$ac_ext
40111 cat >>conftest.$ac_ext <<_ACEOF
40112 /* end confdefs.h.  */
40113
40114 /* Override any GCC internal prototype to avoid an error.
40115    Use char because int might match the return type of a GCC
40116    builtin and then its argument prototype would still apply.  */
40117 #ifdef __cplusplus
40118 extern "C"
40119 #endif
40120 char nanosleep ();
40121 int
40122 main ()
40123 {
40124 return nanosleep ();
40125   ;
40126   return 0;
40127 }
40128 _ACEOF
40129 rm -f conftest.$ac_objext conftest$ac_exeext
40130 if { (ac_try="$ac_link"
40131 case "(($ac_try" in
40132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40133   *) ac_try_echo=$ac_try;;
40134 esac
40135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40136   (eval "$ac_link") 2>conftest.er1
40137   ac_status=$?
40138   grep -v '^ *+' conftest.er1 >conftest.err
40139   rm -f conftest.er1
40140   cat conftest.err >&5
40141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142   (exit $ac_status); } && {
40143          test -z "$ac_c_werror_flag" ||
40144          test ! -s conftest.err
40145        } && test -s conftest$ac_exeext &&
40146        $as_test_x conftest$ac_exeext; then
40147   ac_cv_lib_posix4_nanosleep=yes
40148 else
40149   echo "$as_me: failed program was:" >&5
40150 sed 's/^/| /' conftest.$ac_ext >&5
40151
40152         ac_cv_lib_posix4_nanosleep=no
40153 fi
40154
40155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40156       conftest$ac_exeext conftest.$ac_ext
40157 LIBS=$ac_check_lib_save_LIBS
40158 fi
40159 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40160 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40161 if test $ac_cv_lib_posix4_nanosleep = yes; then
40162
40163                     cat >>confdefs.h <<\_ACEOF
40164 #define HAVE_NANOSLEEP 1
40165 _ACEOF
40166
40167                     POSIX4_LINK=" -lposix4"
40168
40169 else
40170
40171
40172   for wx_func in usleep
40173   do
40174     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40175 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40176 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40177   echo $ECHO_N "(cached) $ECHO_C" >&6
40178 else
40179
40180         cat >conftest.$ac_ext <<_ACEOF
40181
40182             /* confdefs.h.  */
40183 _ACEOF
40184 cat confdefs.h >>conftest.$ac_ext
40185 cat >>conftest.$ac_ext <<_ACEOF
40186 /* end confdefs.h.  */
40187
40188
40189                 $ac_includes_default
40190
40191 int
40192 main ()
40193 {
40194
40195                 #ifndef $wx_func
40196                   &$wx_func;
40197                 #endif
40198
40199
40200   ;
40201   return 0;
40202 }
40203
40204 _ACEOF
40205 rm -f conftest.$ac_objext conftest$ac_exeext
40206 if { (ac_try="$ac_link"
40207 case "(($ac_try" in
40208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40209   *) ac_try_echo=$ac_try;;
40210 esac
40211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40212   (eval "$ac_link") 2>conftest.er1
40213   ac_status=$?
40214   grep -v '^ *+' conftest.er1 >conftest.err
40215   rm -f conftest.er1
40216   cat conftest.err >&5
40217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40218   (exit $ac_status); } && {
40219          test -z "$ac_c_werror_flag" ||
40220          test ! -s conftest.err
40221        } && test -s conftest$ac_exeext &&
40222        $as_test_x conftest$ac_exeext; then
40223   eval wx_cv_func_$wx_func=yes
40224 else
40225   echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40227
40228         eval wx_cv_func_$wx_func=no
40229 fi
40230
40231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40232       conftest$ac_exeext conftest.$ac_ext
40233
40234 fi
40235 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40236                { echo "$as_me:$LINENO: result: $ac_res" >&5
40237 echo "${ECHO_T}$ac_res" >&6; }
40238
40239     if eval test \$wx_cv_func_$wx_func = yes
40240     then
40241       cat >>confdefs.h <<_ACEOF
40242 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40243 _ACEOF
40244
40245
40246     else
40247       :
40248       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40249 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40250
40251     fi
40252   done
40253
40254
40255
40256 fi
40257
40258
40259
40260 fi
40261 done
40262
40263 fi
40264
40265
40266   for wx_func in uname
40267   do
40268     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40269 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40270 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40271   echo $ECHO_N "(cached) $ECHO_C" >&6
40272 else
40273
40274         cat >conftest.$ac_ext <<_ACEOF
40275
40276             /* confdefs.h.  */
40277 _ACEOF
40278 cat confdefs.h >>conftest.$ac_ext
40279 cat >>conftest.$ac_ext <<_ACEOF
40280 /* end confdefs.h.  */
40281
40282                 #include <sys/utsname.h>
40283                 $ac_includes_default
40284
40285 int
40286 main ()
40287 {
40288
40289                 #ifndef $wx_func
40290                   &$wx_func;
40291                 #endif
40292
40293
40294   ;
40295   return 0;
40296 }
40297
40298 _ACEOF
40299 rm -f conftest.$ac_objext conftest$ac_exeext
40300 if { (ac_try="$ac_link"
40301 case "(($ac_try" in
40302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303   *) ac_try_echo=$ac_try;;
40304 esac
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306   (eval "$ac_link") 2>conftest.er1
40307   ac_status=$?
40308   grep -v '^ *+' conftest.er1 >conftest.err
40309   rm -f conftest.er1
40310   cat conftest.err >&5
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); } && {
40313          test -z "$ac_c_werror_flag" ||
40314          test ! -s conftest.err
40315        } && test -s conftest$ac_exeext &&
40316        $as_test_x conftest$ac_exeext; then
40317   eval wx_cv_func_$wx_func=yes
40318 else
40319   echo "$as_me: failed program was:" >&5
40320 sed 's/^/| /' conftest.$ac_ext >&5
40321
40322         eval wx_cv_func_$wx_func=no
40323 fi
40324
40325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40326       conftest$ac_exeext conftest.$ac_ext
40327
40328 fi
40329 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40330                { echo "$as_me:$LINENO: result: $ac_res" >&5
40331 echo "${ECHO_T}$ac_res" >&6; }
40332
40333     if eval test \$wx_cv_func_$wx_func = yes
40334     then
40335       cat >>confdefs.h <<_ACEOF
40336 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40337 _ACEOF
40338
40339
40340     else
40341       :
40342
40343     fi
40344   done
40345
40346 if test "$wx_cv_func_uname" != yes; then
40347
40348   for wx_func in gethostname
40349   do
40350     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40351 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40352 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40353   echo $ECHO_N "(cached) $ECHO_C" >&6
40354 else
40355
40356         cat >conftest.$ac_ext <<_ACEOF
40357
40358             /* confdefs.h.  */
40359 _ACEOF
40360 cat confdefs.h >>conftest.$ac_ext
40361 cat >>conftest.$ac_ext <<_ACEOF
40362 /* end confdefs.h.  */
40363
40364
40365                 $ac_includes_default
40366
40367 int
40368 main ()
40369 {
40370
40371                 #ifndef $wx_func
40372                   &$wx_func;
40373                 #endif
40374
40375
40376   ;
40377   return 0;
40378 }
40379
40380 _ACEOF
40381 rm -f conftest.$ac_objext conftest$ac_exeext
40382 if { (ac_try="$ac_link"
40383 case "(($ac_try" in
40384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40385   *) ac_try_echo=$ac_try;;
40386 esac
40387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40388   (eval "$ac_link") 2>conftest.er1
40389   ac_status=$?
40390   grep -v '^ *+' conftest.er1 >conftest.err
40391   rm -f conftest.er1
40392   cat conftest.err >&5
40393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40394   (exit $ac_status); } && {
40395          test -z "$ac_c_werror_flag" ||
40396          test ! -s conftest.err
40397        } && test -s conftest$ac_exeext &&
40398        $as_test_x conftest$ac_exeext; then
40399   eval wx_cv_func_$wx_func=yes
40400 else
40401   echo "$as_me: failed program was:" >&5
40402 sed 's/^/| /' conftest.$ac_ext >&5
40403
40404         eval wx_cv_func_$wx_func=no
40405 fi
40406
40407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40408       conftest$ac_exeext conftest.$ac_ext
40409
40410 fi
40411 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40412                { echo "$as_me:$LINENO: result: $ac_res" >&5
40413 echo "${ECHO_T}$ac_res" >&6; }
40414
40415     if eval test \$wx_cv_func_$wx_func = yes
40416     then
40417       cat >>confdefs.h <<_ACEOF
40418 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40419 _ACEOF
40420
40421
40422     else
40423       :
40424
40425     fi
40426   done
40427
40428 fi
40429
40430
40431   for wx_func in strtok_r
40432   do
40433     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40434 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40435 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40436   echo $ECHO_N "(cached) $ECHO_C" >&6
40437 else
40438
40439         cat >conftest.$ac_ext <<_ACEOF
40440
40441             /* confdefs.h.  */
40442 _ACEOF
40443 cat confdefs.h >>conftest.$ac_ext
40444 cat >>conftest.$ac_ext <<_ACEOF
40445 /* end confdefs.h.  */
40446
40447                 #define _REENTRANT
40448                 $ac_includes_default
40449
40450 int
40451 main ()
40452 {
40453
40454                 #ifndef $wx_func
40455                   &$wx_func;
40456                 #endif
40457
40458
40459   ;
40460   return 0;
40461 }
40462
40463 _ACEOF
40464 rm -f conftest.$ac_objext conftest$ac_exeext
40465 if { (ac_try="$ac_link"
40466 case "(($ac_try" in
40467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40468   *) ac_try_echo=$ac_try;;
40469 esac
40470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40471   (eval "$ac_link") 2>conftest.er1
40472   ac_status=$?
40473   grep -v '^ *+' conftest.er1 >conftest.err
40474   rm -f conftest.er1
40475   cat conftest.err >&5
40476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477   (exit $ac_status); } && {
40478          test -z "$ac_c_werror_flag" ||
40479          test ! -s conftest.err
40480        } && test -s conftest$ac_exeext &&
40481        $as_test_x conftest$ac_exeext; then
40482   eval wx_cv_func_$wx_func=yes
40483 else
40484   echo "$as_me: failed program was:" >&5
40485 sed 's/^/| /' conftest.$ac_ext >&5
40486
40487         eval wx_cv_func_$wx_func=no
40488 fi
40489
40490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40491       conftest$ac_exeext conftest.$ac_ext
40492
40493 fi
40494 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40495                { echo "$as_me:$LINENO: result: $ac_res" >&5
40496 echo "${ECHO_T}$ac_res" >&6; }
40497
40498     if eval test \$wx_cv_func_$wx_func = yes
40499     then
40500       cat >>confdefs.h <<_ACEOF
40501 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40502 _ACEOF
40503
40504
40505     else
40506       :
40507
40508     fi
40509   done
40510
40511
40512 INET_LINK=
40513
40514 for ac_func in inet_addr
40515 do
40516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40520   echo $ECHO_N "(cached) $ECHO_C" >&6
40521 else
40522   cat >conftest.$ac_ext <<_ACEOF
40523 /* confdefs.h.  */
40524 _ACEOF
40525 cat confdefs.h >>conftest.$ac_ext
40526 cat >>conftest.$ac_ext <<_ACEOF
40527 /* end confdefs.h.  */
40528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40530 #define $ac_func innocuous_$ac_func
40531
40532 /* System header to define __stub macros and hopefully few prototypes,
40533     which can conflict with char $ac_func (); below.
40534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40535     <limits.h> exists even on freestanding compilers.  */
40536
40537 #ifdef __STDC__
40538 # include <limits.h>
40539 #else
40540 # include <assert.h>
40541 #endif
40542
40543 #undef $ac_func
40544
40545 /* Override any GCC internal prototype to avoid an error.
40546    Use char because int might match the return type of a GCC
40547    builtin and then its argument prototype would still apply.  */
40548 #ifdef __cplusplus
40549 extern "C"
40550 #endif
40551 char $ac_func ();
40552 /* The GNU C library defines this for functions which it implements
40553     to always fail with ENOSYS.  Some functions are actually named
40554     something starting with __ and the normal name is an alias.  */
40555 #if defined __stub_$ac_func || defined __stub___$ac_func
40556 choke me
40557 #endif
40558
40559 int
40560 main ()
40561 {
40562 return $ac_func ();
40563   ;
40564   return 0;
40565 }
40566 _ACEOF
40567 rm -f conftest.$ac_objext conftest$ac_exeext
40568 if { (ac_try="$ac_link"
40569 case "(($ac_try" in
40570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40571   *) ac_try_echo=$ac_try;;
40572 esac
40573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40574   (eval "$ac_link") 2>conftest.er1
40575   ac_status=$?
40576   grep -v '^ *+' conftest.er1 >conftest.err
40577   rm -f conftest.er1
40578   cat conftest.err >&5
40579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580   (exit $ac_status); } && {
40581          test -z "$ac_c_werror_flag" ||
40582          test ! -s conftest.err
40583        } && test -s conftest$ac_exeext &&
40584        $as_test_x conftest$ac_exeext; then
40585   eval "$as_ac_var=yes"
40586 else
40587   echo "$as_me: failed program was:" >&5
40588 sed 's/^/| /' conftest.$ac_ext >&5
40589
40590         eval "$as_ac_var=no"
40591 fi
40592
40593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40594       conftest$ac_exeext conftest.$ac_ext
40595 fi
40596 ac_res=`eval echo '${'$as_ac_var'}'`
40597                { echo "$as_me:$LINENO: result: $ac_res" >&5
40598 echo "${ECHO_T}$ac_res" >&6; }
40599 if test `eval echo '${'$as_ac_var'}'` = yes; then
40600   cat >>confdefs.h <<_ACEOF
40601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40602 _ACEOF
40603  cat >>confdefs.h <<\_ACEOF
40604 #define HAVE_INET_ADDR 1
40605 _ACEOF
40606
40607 else
40608
40609         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40610 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40611 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40612   echo $ECHO_N "(cached) $ECHO_C" >&6
40613 else
40614   ac_check_lib_save_LIBS=$LIBS
40615 LIBS="-lnsl  $LIBS"
40616 cat >conftest.$ac_ext <<_ACEOF
40617 /* confdefs.h.  */
40618 _ACEOF
40619 cat confdefs.h >>conftest.$ac_ext
40620 cat >>conftest.$ac_ext <<_ACEOF
40621 /* end confdefs.h.  */
40622
40623 /* Override any GCC internal prototype to avoid an error.
40624    Use char because int might match the return type of a GCC
40625    builtin and then its argument prototype would still apply.  */
40626 #ifdef __cplusplus
40627 extern "C"
40628 #endif
40629 char inet_addr ();
40630 int
40631 main ()
40632 {
40633 return inet_addr ();
40634   ;
40635   return 0;
40636 }
40637 _ACEOF
40638 rm -f conftest.$ac_objext conftest$ac_exeext
40639 if { (ac_try="$ac_link"
40640 case "(($ac_try" in
40641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40642   *) ac_try_echo=$ac_try;;
40643 esac
40644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40645   (eval "$ac_link") 2>conftest.er1
40646   ac_status=$?
40647   grep -v '^ *+' conftest.er1 >conftest.err
40648   rm -f conftest.er1
40649   cat conftest.err >&5
40650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40651   (exit $ac_status); } && {
40652          test -z "$ac_c_werror_flag" ||
40653          test ! -s conftest.err
40654        } && test -s conftest$ac_exeext &&
40655        $as_test_x conftest$ac_exeext; then
40656   ac_cv_lib_nsl_inet_addr=yes
40657 else
40658   echo "$as_me: failed program was:" >&5
40659 sed 's/^/| /' conftest.$ac_ext >&5
40660
40661         ac_cv_lib_nsl_inet_addr=no
40662 fi
40663
40664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40665       conftest$ac_exeext conftest.$ac_ext
40666 LIBS=$ac_check_lib_save_LIBS
40667 fi
40668 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40669 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40670 if test $ac_cv_lib_nsl_inet_addr = yes; then
40671   INET_LINK="nsl"
40672 else
40673
40674                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40675 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40676 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40677   echo $ECHO_N "(cached) $ECHO_C" >&6
40678 else
40679   ac_check_lib_save_LIBS=$LIBS
40680 LIBS="-lresolv  $LIBS"
40681 cat >conftest.$ac_ext <<_ACEOF
40682 /* confdefs.h.  */
40683 _ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h.  */
40687
40688 /* Override any GCC internal prototype to avoid an error.
40689    Use char because int might match the return type of a GCC
40690    builtin and then its argument prototype would still apply.  */
40691 #ifdef __cplusplus
40692 extern "C"
40693 #endif
40694 char inet_addr ();
40695 int
40696 main ()
40697 {
40698 return inet_addr ();
40699   ;
40700   return 0;
40701 }
40702 _ACEOF
40703 rm -f conftest.$ac_objext conftest$ac_exeext
40704 if { (ac_try="$ac_link"
40705 case "(($ac_try" in
40706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40707   *) ac_try_echo=$ac_try;;
40708 esac
40709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40710   (eval "$ac_link") 2>conftest.er1
40711   ac_status=$?
40712   grep -v '^ *+' conftest.er1 >conftest.err
40713   rm -f conftest.er1
40714   cat conftest.err >&5
40715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716   (exit $ac_status); } && {
40717          test -z "$ac_c_werror_flag" ||
40718          test ! -s conftest.err
40719        } && test -s conftest$ac_exeext &&
40720        $as_test_x conftest$ac_exeext; then
40721   ac_cv_lib_resolv_inet_addr=yes
40722 else
40723   echo "$as_me: failed program was:" >&5
40724 sed 's/^/| /' conftest.$ac_ext >&5
40725
40726         ac_cv_lib_resolv_inet_addr=no
40727 fi
40728
40729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40730       conftest$ac_exeext conftest.$ac_ext
40731 LIBS=$ac_check_lib_save_LIBS
40732 fi
40733 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40734 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40735 if test $ac_cv_lib_resolv_inet_addr = yes; then
40736   INET_LINK="resolv"
40737 else
40738
40739                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40740 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40741 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40742   echo $ECHO_N "(cached) $ECHO_C" >&6
40743 else
40744   ac_check_lib_save_LIBS=$LIBS
40745 LIBS="-lsocket  $LIBS"
40746 cat >conftest.$ac_ext <<_ACEOF
40747 /* confdefs.h.  */
40748 _ACEOF
40749 cat confdefs.h >>conftest.$ac_ext
40750 cat >>conftest.$ac_ext <<_ACEOF
40751 /* end confdefs.h.  */
40752
40753 /* Override any GCC internal prototype to avoid an error.
40754    Use char because int might match the return type of a GCC
40755    builtin and then its argument prototype would still apply.  */
40756 #ifdef __cplusplus
40757 extern "C"
40758 #endif
40759 char inet_addr ();
40760 int
40761 main ()
40762 {
40763 return inet_addr ();
40764   ;
40765   return 0;
40766 }
40767 _ACEOF
40768 rm -f conftest.$ac_objext conftest$ac_exeext
40769 if { (ac_try="$ac_link"
40770 case "(($ac_try" in
40771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40772   *) ac_try_echo=$ac_try;;
40773 esac
40774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40775   (eval "$ac_link") 2>conftest.er1
40776   ac_status=$?
40777   grep -v '^ *+' conftest.er1 >conftest.err
40778   rm -f conftest.er1
40779   cat conftest.err >&5
40780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40781   (exit $ac_status); } && {
40782          test -z "$ac_c_werror_flag" ||
40783          test ! -s conftest.err
40784        } && test -s conftest$ac_exeext &&
40785        $as_test_x conftest$ac_exeext; then
40786   ac_cv_lib_socket_inet_addr=yes
40787 else
40788   echo "$as_me: failed program was:" >&5
40789 sed 's/^/| /' conftest.$ac_ext >&5
40790
40791         ac_cv_lib_socket_inet_addr=no
40792 fi
40793
40794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40795       conftest$ac_exeext conftest.$ac_ext
40796 LIBS=$ac_check_lib_save_LIBS
40797 fi
40798 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40799 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40800 if test $ac_cv_lib_socket_inet_addr = yes; then
40801   INET_LINK="socket"
40802
40803 fi
40804
40805
40806
40807 fi
40808
40809
40810
40811 fi
40812
40813
40814
40815 fi
40816 done
40817
40818
40819
40820 for ac_func in inet_aton
40821 do
40822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40826   echo $ECHO_N "(cached) $ECHO_C" >&6
40827 else
40828   cat >conftest.$ac_ext <<_ACEOF
40829 /* confdefs.h.  */
40830 _ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h.  */
40834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40836 #define $ac_func innocuous_$ac_func
40837
40838 /* System header to define __stub macros and hopefully few prototypes,
40839     which can conflict with char $ac_func (); below.
40840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40841     <limits.h> exists even on freestanding compilers.  */
40842
40843 #ifdef __STDC__
40844 # include <limits.h>
40845 #else
40846 # include <assert.h>
40847 #endif
40848
40849 #undef $ac_func
40850
40851 /* Override any GCC internal prototype to avoid an error.
40852    Use char because int might match the return type of a GCC
40853    builtin and then its argument prototype would still apply.  */
40854 #ifdef __cplusplus
40855 extern "C"
40856 #endif
40857 char $ac_func ();
40858 /* The GNU C library defines this for functions which it implements
40859     to always fail with ENOSYS.  Some functions are actually named
40860     something starting with __ and the normal name is an alias.  */
40861 #if defined __stub_$ac_func || defined __stub___$ac_func
40862 choke me
40863 #endif
40864
40865 int
40866 main ()
40867 {
40868 return $ac_func ();
40869   ;
40870   return 0;
40871 }
40872 _ACEOF
40873 rm -f conftest.$ac_objext conftest$ac_exeext
40874 if { (ac_try="$ac_link"
40875 case "(($ac_try" in
40876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40877   *) ac_try_echo=$ac_try;;
40878 esac
40879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40880   (eval "$ac_link") 2>conftest.er1
40881   ac_status=$?
40882   grep -v '^ *+' conftest.er1 >conftest.err
40883   rm -f conftest.er1
40884   cat conftest.err >&5
40885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886   (exit $ac_status); } && {
40887          test -z "$ac_c_werror_flag" ||
40888          test ! -s conftest.err
40889        } && test -s conftest$ac_exeext &&
40890        $as_test_x conftest$ac_exeext; then
40891   eval "$as_ac_var=yes"
40892 else
40893   echo "$as_me: failed program was:" >&5
40894 sed 's/^/| /' conftest.$ac_ext >&5
40895
40896         eval "$as_ac_var=no"
40897 fi
40898
40899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40900       conftest$ac_exeext conftest.$ac_ext
40901 fi
40902 ac_res=`eval echo '${'$as_ac_var'}'`
40903                { echo "$as_me:$LINENO: result: $ac_res" >&5
40904 echo "${ECHO_T}$ac_res" >&6; }
40905 if test `eval echo '${'$as_ac_var'}'` = yes; then
40906   cat >>confdefs.h <<_ACEOF
40907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40908 _ACEOF
40909  cat >>confdefs.h <<\_ACEOF
40910 #define HAVE_INET_ATON 1
40911 _ACEOF
40912
40913 else
40914
40915                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40916 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40917 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40918 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40919   echo $ECHO_N "(cached) $ECHO_C" >&6
40920 else
40921   ac_check_lib_save_LIBS=$LIBS
40922 LIBS="-l$INET_LINK  $LIBS"
40923 cat >conftest.$ac_ext <<_ACEOF
40924 /* confdefs.h.  */
40925 _ACEOF
40926 cat confdefs.h >>conftest.$ac_ext
40927 cat >>conftest.$ac_ext <<_ACEOF
40928 /* end confdefs.h.  */
40929
40930 /* Override any GCC internal prototype to avoid an error.
40931    Use char because int might match the return type of a GCC
40932    builtin and then its argument prototype would still apply.  */
40933 #ifdef __cplusplus
40934 extern "C"
40935 #endif
40936 char inet_aton ();
40937 int
40938 main ()
40939 {
40940 return inet_aton ();
40941   ;
40942   return 0;
40943 }
40944 _ACEOF
40945 rm -f conftest.$ac_objext conftest$ac_exeext
40946 if { (ac_try="$ac_link"
40947 case "(($ac_try" in
40948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40949   *) ac_try_echo=$ac_try;;
40950 esac
40951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40952   (eval "$ac_link") 2>conftest.er1
40953   ac_status=$?
40954   grep -v '^ *+' conftest.er1 >conftest.err
40955   rm -f conftest.er1
40956   cat conftest.err >&5
40957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958   (exit $ac_status); } && {
40959          test -z "$ac_c_werror_flag" ||
40960          test ! -s conftest.err
40961        } && test -s conftest$ac_exeext &&
40962        $as_test_x conftest$ac_exeext; then
40963   eval "$as_ac_Lib=yes"
40964 else
40965   echo "$as_me: failed program was:" >&5
40966 sed 's/^/| /' conftest.$ac_ext >&5
40967
40968         eval "$as_ac_Lib=no"
40969 fi
40970
40971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40972       conftest$ac_exeext conftest.$ac_ext
40973 LIBS=$ac_check_lib_save_LIBS
40974 fi
40975 ac_res=`eval echo '${'$as_ac_Lib'}'`
40976                { echo "$as_me:$LINENO: result: $ac_res" >&5
40977 echo "${ECHO_T}$ac_res" >&6; }
40978 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40979   cat >>confdefs.h <<\_ACEOF
40980 #define HAVE_INET_ATON 1
40981 _ACEOF
40982
40983 fi
40984
40985
40986 fi
40987 done
40988
40989
40990 if test "x$INET_LINK" != "x"; then
40991     cat >>confdefs.h <<\_ACEOF
40992 #define HAVE_INET_ADDR 1
40993 _ACEOF
40994
40995     INET_LINK=" -l$INET_LINK"
40996 fi
40997
40998
40999   for wx_func in fdopen
41000   do
41001     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41002 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41003 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41004   echo $ECHO_N "(cached) $ECHO_C" >&6
41005 else
41006
41007         cat >conftest.$ac_ext <<_ACEOF
41008
41009             /* confdefs.h.  */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h.  */
41014
41015
41016                 $ac_includes_default
41017
41018 int
41019 main ()
41020 {
41021
41022                 #ifndef $wx_func
41023                   &$wx_func;
41024                 #endif
41025
41026
41027   ;
41028   return 0;
41029 }
41030
41031 _ACEOF
41032 rm -f conftest.$ac_objext conftest$ac_exeext
41033 if { (ac_try="$ac_link"
41034 case "(($ac_try" in
41035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41036   *) ac_try_echo=$ac_try;;
41037 esac
41038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41039   (eval "$ac_link") 2>conftest.er1
41040   ac_status=$?
41041   grep -v '^ *+' conftest.er1 >conftest.err
41042   rm -f conftest.er1
41043   cat conftest.err >&5
41044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41045   (exit $ac_status); } && {
41046          test -z "$ac_c_werror_flag" ||
41047          test ! -s conftest.err
41048        } && test -s conftest$ac_exeext &&
41049        $as_test_x conftest$ac_exeext; then
41050   eval wx_cv_func_$wx_func=yes
41051 else
41052   echo "$as_me: failed program was:" >&5
41053 sed 's/^/| /' conftest.$ac_ext >&5
41054
41055         eval wx_cv_func_$wx_func=no
41056 fi
41057
41058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41059       conftest$ac_exeext conftest.$ac_ext
41060
41061 fi
41062 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41063                { echo "$as_me:$LINENO: result: $ac_res" >&5
41064 echo "${ECHO_T}$ac_res" >&6; }
41065
41066     if eval test \$wx_cv_func_$wx_func = yes
41067     then
41068       cat >>confdefs.h <<_ACEOF
41069 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41070 _ACEOF
41071
41072
41073     else
41074       :
41075
41076     fi
41077   done
41078
41079
41080 fi
41081
41082
41083
41084 cat >confcache <<\_ACEOF
41085 # This file is a shell script that caches the results of configure
41086 # tests run on this system so they can be shared between configure
41087 # scripts and configure runs, see configure's option --config-cache.
41088 # It is not useful on other systems.  If it contains results you don't
41089 # want to keep, you may remove or edit it.
41090 #
41091 # config.status only pays attention to the cache file if you give it
41092 # the --recheck option to rerun configure.
41093 #
41094 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41096 # following values.
41097
41098 _ACEOF
41099
41100 # The following way of writing the cache mishandles newlines in values,
41101 # but we know of no workaround that is simple, portable, and efficient.
41102 # So, we kill variables containing newlines.
41103 # Ultrix sh set writes to stderr and can't be redirected directly,
41104 # and sets the high bit in the cache file unless we assign to the vars.
41105 (
41106   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41107     eval ac_val=\$$ac_var
41108     case $ac_val in #(
41109     *${as_nl}*)
41110       case $ac_var in #(
41111       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41112 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41113       esac
41114       case $ac_var in #(
41115       _ | IFS | as_nl) ;; #(
41116       *) $as_unset $ac_var ;;
41117       esac ;;
41118     esac
41119   done
41120
41121   (set) 2>&1 |
41122     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41123     *${as_nl}ac_space=\ *)
41124       # `set' does not quote correctly, so add quotes (double-quote
41125       # substitution turns \\\\ into \\, and sed turns \\ into \).
41126       sed -n \
41127         "s/'/'\\\\''/g;
41128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41129       ;; #(
41130     *)
41131       # `set' quotes correctly as required by POSIX, so do not add quotes.
41132       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41133       ;;
41134     esac |
41135     sort
41136 ) |
41137   sed '
41138      /^ac_cv_env_/b end
41139      t clear
41140      :clear
41141      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41142      t end
41143      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41144      :end' >>confcache
41145 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41146   if test -w "$cache_file"; then
41147     test "x$cache_file" != "x/dev/null" &&
41148       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41149 echo "$as_me: updating cache $cache_file" >&6;}
41150     cat confcache >$cache_file
41151   else
41152     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41153 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41154   fi
41155 fi
41156 rm -f confcache
41157
41158
41159 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41160
41161
41162     THREADS_LINK=
41163     THREADS_CFLAGS=
41164
41165     if test "$wxUSE_THREADS" = "yes" ; then
41166         if test "$USE_BEOS" = 1; then
41167             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41168 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41169             wxUSE_THREADS="no"
41170         fi
41171     fi
41172
41173     if test "$wxUSE_THREADS" = "yes" ; then
41174
41175
41176                                 THREAD_OPTS="-pthread"
41177         if test "x$SUNCXX" = xyes; then
41178             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41179         fi
41180
41181         case "${host}" in
41182           *-*-solaris2* | *-*-sunos4* )
41183                 if test "x$GCC" = "xyes"; then
41184                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41185                 fi
41186                 ;;
41187           *-*-freebsd*)
41188                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41189                 ;;
41190           *-*-darwin* | *-*-cygwin* )
41191                                                 THREAD_OPTS=""
41192                 ;;
41193           *-*-aix*)
41194                                 THREAD_OPTS="pthreads"
41195                 ;;
41196           *-hp-hpux* )
41197                 if test "x$GCC" = "xyes"; then
41198                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41199                         THREAD_OPTS=""
41200                 else
41201                                                             THREAD_OPTS="-mt"
41202                 fi
41203                 ;;
41204
41205           *-*-irix* )
41206                                                                 if test "x$GCC" = "xyes"; then
41207                     THREAD_OPTS=""
41208                 fi
41209                 ;;
41210
41211           *-*-*UnixWare*)
41212                                 if test "x$GCC" != "xyes"; then
41213                     THREAD_OPTS="-Ethread"
41214                 fi
41215                 ;;
41216         esac
41217
41218                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41219
41220                 THREADS_OK=no
41221         for flag in $THREAD_OPTS; do
41222             case $flag in
41223                 none)
41224                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41225 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41226                     ;;
41227
41228                 -*)
41229                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41230 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41231                     THREADS_CFLAGS="$flag"
41232                     ;;
41233
41234                 *)
41235                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41236 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41237                     THREADS_LINK="-l$flag"
41238                     ;;
41239               esac
41240
41241               save_LIBS="$LIBS"
41242               save_CFLAGS="$CFLAGS"
41243               LIBS="$THREADS_LINK $LIBS"
41244               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41245
41246               cat >conftest.$ac_ext <<_ACEOF
41247 /* confdefs.h.  */
41248 _ACEOF
41249 cat confdefs.h >>conftest.$ac_ext
41250 cat >>conftest.$ac_ext <<_ACEOF
41251 /* end confdefs.h.  */
41252 #include <pthread.h>
41253 int
41254 main ()
41255 {
41256 pthread_create(0,0,0,0);
41257   ;
41258   return 0;
41259 }
41260 _ACEOF
41261 rm -f conftest.$ac_objext conftest$ac_exeext
41262 if { (ac_try="$ac_link"
41263 case "(($ac_try" in
41264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41265   *) ac_try_echo=$ac_try;;
41266 esac
41267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41268   (eval "$ac_link") 2>conftest.er1
41269   ac_status=$?
41270   grep -v '^ *+' conftest.er1 >conftest.err
41271   rm -f conftest.er1
41272   cat conftest.err >&5
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); } && {
41275          test -z "$ac_c_werror_flag" ||
41276          test ! -s conftest.err
41277        } && test -s conftest$ac_exeext &&
41278        $as_test_x conftest$ac_exeext; then
41279   THREADS_OK=yes
41280 else
41281   echo "$as_me: failed program was:" >&5
41282 sed 's/^/| /' conftest.$ac_ext >&5
41283
41284
41285 fi
41286
41287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41288       conftest$ac_exeext conftest.$ac_ext
41289
41290               LIBS="$save_LIBS"
41291               CFLAGS="$save_CFLAGS"
41292
41293               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41294 echo "${ECHO_T}$THREADS_OK" >&6; }
41295               if test "x$THREADS_OK" = "xyes"; then
41296                       break;
41297               fi
41298
41299               THREADS_LINK=""
41300               THREADS_CFLAGS=""
41301       done
41302
41303       if test "x$THREADS_OK" != "xyes"; then
41304           wxUSE_THREADS=no
41305           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41306 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41307       else
41308                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41309           LIBS="$THREADS_LINK $LIBS"
41310
41311           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41312 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41313           flag=no
41314           case "${host}" in
41315             *-aix*)
41316                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41317                 flag="-D_THREAD_SAFE"
41318                 ;;
41319             *-freebsd*)
41320                 flag="-D_THREAD_SAFE"
41321                 ;;
41322             *-hp-hpux* )
41323                 flag="-D_REENTRANT"
41324                 if test "x$GCC" != "xyes"; then
41325                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41326                 fi
41327                 ;;
41328             *solaris* | alpha*-osf*)
41329                 flag="-D_REENTRANT"
41330                 ;;
41331           esac
41332           { echo "$as_me:$LINENO: result: ${flag}" >&5
41333 echo "${ECHO_T}${flag}" >&6; }
41334           if test "x$flag" != xno; then
41335               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41336           fi
41337
41338                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41339       fi
41340     fi
41341
41342         if test "$wxUSE_THREADS" = "yes" ; then
41343
41344 for ac_func in thr_setconcurrency
41345 do
41346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41350   echo $ECHO_N "(cached) $ECHO_C" >&6
41351 else
41352   cat >conftest.$ac_ext <<_ACEOF
41353 /* confdefs.h.  */
41354 _ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h.  */
41358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41360 #define $ac_func innocuous_$ac_func
41361
41362 /* System header to define __stub macros and hopefully few prototypes,
41363     which can conflict with char $ac_func (); below.
41364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41365     <limits.h> exists even on freestanding compilers.  */
41366
41367 #ifdef __STDC__
41368 # include <limits.h>
41369 #else
41370 # include <assert.h>
41371 #endif
41372
41373 #undef $ac_func
41374
41375 /* Override any GCC internal prototype to avoid an error.
41376    Use char because int might match the return type of a GCC
41377    builtin and then its argument prototype would still apply.  */
41378 #ifdef __cplusplus
41379 extern "C"
41380 #endif
41381 char $ac_func ();
41382 /* The GNU C library defines this for functions which it implements
41383     to always fail with ENOSYS.  Some functions are actually named
41384     something starting with __ and the normal name is an alias.  */
41385 #if defined __stub_$ac_func || defined __stub___$ac_func
41386 choke me
41387 #endif
41388
41389 int
41390 main ()
41391 {
41392 return $ac_func ();
41393   ;
41394   return 0;
41395 }
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401   *) ac_try_echo=$ac_try;;
41402 esac
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404   (eval "$ac_link") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest$ac_exeext &&
41414        $as_test_x conftest$ac_exeext; then
41415   eval "$as_ac_var=yes"
41416 else
41417   echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420         eval "$as_ac_var=no"
41421 fi
41422
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424       conftest$ac_exeext conftest.$ac_ext
41425 fi
41426 ac_res=`eval echo '${'$as_ac_var'}'`
41427                { echo "$as_me:$LINENO: result: $ac_res" >&5
41428 echo "${ECHO_T}$ac_res" >&6; }
41429 if test `eval echo '${'$as_ac_var'}'` = yes; then
41430   cat >>confdefs.h <<_ACEOF
41431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41432 _ACEOF
41433
41434 fi
41435 done
41436
41437
41438                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41439 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41440 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 else
41443
41444                                 ac_ext=cpp
41445 ac_cpp='$CXXCPP $CPPFLAGS'
41446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41449
41450         cat >conftest.$ac_ext <<_ACEOF
41451 /* confdefs.h.  */
41452 _ACEOF
41453 cat confdefs.h >>conftest.$ac_ext
41454 cat >>conftest.$ac_ext <<_ACEOF
41455 /* end confdefs.h.  */
41456 #include <pthread.h>
41457                void ThreadCleanupFunc(void *p);
41458
41459 int
41460 main ()
41461 {
41462
41463                 void *p;
41464                 pthread_cleanup_push(ThreadCleanupFunc, p);
41465                 pthread_cleanup_pop(0);
41466
41467   ;
41468   return 0;
41469 }
41470 _ACEOF
41471 rm -f conftest.$ac_objext
41472 if { (ac_try="$ac_compile"
41473 case "(($ac_try" in
41474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41475   *) ac_try_echo=$ac_try;;
41476 esac
41477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41478   (eval "$ac_compile") 2>conftest.er1
41479   ac_status=$?
41480   grep -v '^ *+' conftest.er1 >conftest.err
41481   rm -f conftest.er1
41482   cat conftest.err >&5
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); } && {
41485          test -z "$ac_cxx_werror_flag" ||
41486          test ! -s conftest.err
41487        } && test -s conftest.$ac_objext; then
41488
41489                wx_cv_func_pthread_cleanup=yes
41490
41491 else
41492   echo "$as_me: failed program was:" >&5
41493 sed 's/^/| /' conftest.$ac_ext >&5
41494
41495
41496                wx_cv_func_pthread_cleanup=no
41497
41498
41499 fi
41500
41501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41502         ac_ext=c
41503 ac_cpp='$CPP $CPPFLAGS'
41504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41507
41508
41509 fi
41510 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41511 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41512       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41513         cat >>confdefs.h <<\_ACEOF
41514 #define wxHAVE_PTHREAD_CLEANUP 1
41515 _ACEOF
41516
41517       fi
41518
41519       { echo "$as_me:$LINENO: checking for sched.h" >&5
41520 echo $ECHO_N "checking for sched.h... $ECHO_C" >&6; }
41521 if test "${ac_cv_header_sched_h+set}" = set; then
41522   echo $ECHO_N "(cached) $ECHO_C" >&6
41523 else
41524   cat >conftest.$ac_ext <<_ACEOF
41525 /* confdefs.h.  */
41526 _ACEOF
41527 cat confdefs.h >>conftest.$ac_ext
41528 cat >>conftest.$ac_ext <<_ACEOF
41529 /* end confdefs.h.  */
41530 $ac_includes_default
41531
41532 #include <sched.h>
41533 _ACEOF
41534 rm -f conftest.$ac_objext
41535 if { (ac_try="$ac_compile"
41536 case "(($ac_try" in
41537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41538   *) ac_try_echo=$ac_try;;
41539 esac
41540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41541   (eval "$ac_compile") 2>conftest.er1
41542   ac_status=$?
41543   grep -v '^ *+' conftest.er1 >conftest.err
41544   rm -f conftest.er1
41545   cat conftest.err >&5
41546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547   (exit $ac_status); } && {
41548          test -z "$ac_c_werror_flag" ||
41549          test ! -s conftest.err
41550        } && test -s conftest.$ac_objext; then
41551   ac_cv_header_sched_h=yes
41552 else
41553   echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41555
41556         ac_cv_header_sched_h=no
41557 fi
41558
41559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41560 fi
41561 { echo "$as_me:$LINENO: result: $ac_cv_header_sched_h" >&5
41562 echo "${ECHO_T}$ac_cv_header_sched_h" >&6; }
41563
41564
41565       if test "$ac_cv_header_sched_h" = "yes"; then
41566           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41567 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41568 if test "${ac_cv_func_sched_yield+set}" = set; then
41569   echo $ECHO_N "(cached) $ECHO_C" >&6
41570 else
41571   cat >conftest.$ac_ext <<_ACEOF
41572 /* confdefs.h.  */
41573 _ACEOF
41574 cat confdefs.h >>conftest.$ac_ext
41575 cat >>conftest.$ac_ext <<_ACEOF
41576 /* end confdefs.h.  */
41577 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41579 #define sched_yield innocuous_sched_yield
41580
41581 /* System header to define __stub macros and hopefully few prototypes,
41582     which can conflict with char sched_yield (); below.
41583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41584     <limits.h> exists even on freestanding compilers.  */
41585
41586 #ifdef __STDC__
41587 # include <limits.h>
41588 #else
41589 # include <assert.h>
41590 #endif
41591
41592 #undef sched_yield
41593
41594 /* Override any GCC internal prototype to avoid an error.
41595    Use char because int might match the return type of a GCC
41596    builtin and then its argument prototype would still apply.  */
41597 #ifdef __cplusplus
41598 extern "C"
41599 #endif
41600 char sched_yield ();
41601 /* The GNU C library defines this for functions which it implements
41602     to always fail with ENOSYS.  Some functions are actually named
41603     something starting with __ and the normal name is an alias.  */
41604 #if defined __stub_sched_yield || defined __stub___sched_yield
41605 choke me
41606 #endif
41607
41608 int
41609 main ()
41610 {
41611 return sched_yield ();
41612   ;
41613   return 0;
41614 }
41615 _ACEOF
41616 rm -f conftest.$ac_objext conftest$ac_exeext
41617 if { (ac_try="$ac_link"
41618 case "(($ac_try" in
41619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41620   *) ac_try_echo=$ac_try;;
41621 esac
41622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41623   (eval "$ac_link") 2>conftest.er1
41624   ac_status=$?
41625   grep -v '^ *+' conftest.er1 >conftest.err
41626   rm -f conftest.er1
41627   cat conftest.err >&5
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); } && {
41630          test -z "$ac_c_werror_flag" ||
41631          test ! -s conftest.err
41632        } && test -s conftest$ac_exeext &&
41633        $as_test_x conftest$ac_exeext; then
41634   ac_cv_func_sched_yield=yes
41635 else
41636   echo "$as_me: failed program was:" >&5
41637 sed 's/^/| /' conftest.$ac_ext >&5
41638
41639         ac_cv_func_sched_yield=no
41640 fi
41641
41642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41643       conftest$ac_exeext conftest.$ac_ext
41644 fi
41645 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41646 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41647 if test $ac_cv_func_sched_yield = yes; then
41648   cat >>confdefs.h <<\_ACEOF
41649 #define HAVE_SCHED_YIELD 1
41650 _ACEOF
41651
41652 else
41653
41654                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41655 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41656 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41657   echo $ECHO_N "(cached) $ECHO_C" >&6
41658 else
41659   ac_check_lib_save_LIBS=$LIBS
41660 LIBS="-lposix4  $LIBS"
41661 cat >conftest.$ac_ext <<_ACEOF
41662 /* confdefs.h.  */
41663 _ACEOF
41664 cat confdefs.h >>conftest.$ac_ext
41665 cat >>conftest.$ac_ext <<_ACEOF
41666 /* end confdefs.h.  */
41667
41668 /* Override any GCC internal prototype to avoid an error.
41669    Use char because int might match the return type of a GCC
41670    builtin and then its argument prototype would still apply.  */
41671 #ifdef __cplusplus
41672 extern "C"
41673 #endif
41674 char sched_yield ();
41675 int
41676 main ()
41677 {
41678 return sched_yield ();
41679   ;
41680   return 0;
41681 }
41682 _ACEOF
41683 rm -f conftest.$ac_objext conftest$ac_exeext
41684 if { (ac_try="$ac_link"
41685 case "(($ac_try" in
41686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41687   *) ac_try_echo=$ac_try;;
41688 esac
41689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41690   (eval "$ac_link") 2>conftest.er1
41691   ac_status=$?
41692   grep -v '^ *+' conftest.er1 >conftest.err
41693   rm -f conftest.er1
41694   cat conftest.err >&5
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); } && {
41697          test -z "$ac_c_werror_flag" ||
41698          test ! -s conftest.err
41699        } && test -s conftest$ac_exeext &&
41700        $as_test_x conftest$ac_exeext; then
41701   ac_cv_lib_posix4_sched_yield=yes
41702 else
41703   echo "$as_me: failed program was:" >&5
41704 sed 's/^/| /' conftest.$ac_ext >&5
41705
41706         ac_cv_lib_posix4_sched_yield=no
41707 fi
41708
41709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41710       conftest$ac_exeext conftest.$ac_ext
41711 LIBS=$ac_check_lib_save_LIBS
41712 fi
41713 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41714 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41715 if test $ac_cv_lib_posix4_sched_yield = yes; then
41716   cat >>confdefs.h <<\_ACEOF
41717 #define HAVE_SCHED_YIELD 1
41718 _ACEOF
41719  POSIX4_LINK=" -lposix4"
41720 else
41721   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41722 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41723
41724 fi
41725
41726
41727
41728 fi
41729
41730       fi
41731
41732                                           HAVE_PRIOR_FUNCS=0
41733       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41734 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41735 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41736   echo $ECHO_N "(cached) $ECHO_C" >&6
41737 else
41738   cat >conftest.$ac_ext <<_ACEOF
41739 /* confdefs.h.  */
41740 _ACEOF
41741 cat confdefs.h >>conftest.$ac_ext
41742 cat >>conftest.$ac_ext <<_ACEOF
41743 /* end confdefs.h.  */
41744 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41746 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41747
41748 /* System header to define __stub macros and hopefully few prototypes,
41749     which can conflict with char pthread_attr_getschedpolicy (); below.
41750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41751     <limits.h> exists even on freestanding compilers.  */
41752
41753 #ifdef __STDC__
41754 # include <limits.h>
41755 #else
41756 # include <assert.h>
41757 #endif
41758
41759 #undef pthread_attr_getschedpolicy
41760
41761 /* Override any GCC internal prototype to avoid an error.
41762    Use char because int might match the return type of a GCC
41763    builtin and then its argument prototype would still apply.  */
41764 #ifdef __cplusplus
41765 extern "C"
41766 #endif
41767 char pthread_attr_getschedpolicy ();
41768 /* The GNU C library defines this for functions which it implements
41769     to always fail with ENOSYS.  Some functions are actually named
41770     something starting with __ and the normal name is an alias.  */
41771 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41772 choke me
41773 #endif
41774
41775 int
41776 main ()
41777 {
41778 return pthread_attr_getschedpolicy ();
41779   ;
41780   return 0;
41781 }
41782 _ACEOF
41783 rm -f conftest.$ac_objext conftest$ac_exeext
41784 if { (ac_try="$ac_link"
41785 case "(($ac_try" in
41786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41787   *) ac_try_echo=$ac_try;;
41788 esac
41789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41790   (eval "$ac_link") 2>conftest.er1
41791   ac_status=$?
41792   grep -v '^ *+' conftest.er1 >conftest.err
41793   rm -f conftest.er1
41794   cat conftest.err >&5
41795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41796   (exit $ac_status); } && {
41797          test -z "$ac_c_werror_flag" ||
41798          test ! -s conftest.err
41799        } && test -s conftest$ac_exeext &&
41800        $as_test_x conftest$ac_exeext; then
41801   ac_cv_func_pthread_attr_getschedpolicy=yes
41802 else
41803   echo "$as_me: failed program was:" >&5
41804 sed 's/^/| /' conftest.$ac_ext >&5
41805
41806         ac_cv_func_pthread_attr_getschedpolicy=no
41807 fi
41808
41809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41810       conftest$ac_exeext conftest.$ac_ext
41811 fi
41812 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41813 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41814 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41815   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41816 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41817 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41818   echo $ECHO_N "(cached) $ECHO_C" >&6
41819 else
41820   cat >conftest.$ac_ext <<_ACEOF
41821 /* confdefs.h.  */
41822 _ACEOF
41823 cat confdefs.h >>conftest.$ac_ext
41824 cat >>conftest.$ac_ext <<_ACEOF
41825 /* end confdefs.h.  */
41826 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41828 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41829
41830 /* System header to define __stub macros and hopefully few prototypes,
41831     which can conflict with char pthread_attr_setschedparam (); below.
41832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41833     <limits.h> exists even on freestanding compilers.  */
41834
41835 #ifdef __STDC__
41836 # include <limits.h>
41837 #else
41838 # include <assert.h>
41839 #endif
41840
41841 #undef pthread_attr_setschedparam
41842
41843 /* Override any GCC internal prototype to avoid an error.
41844    Use char because int might match the return type of a GCC
41845    builtin and then its argument prototype would still apply.  */
41846 #ifdef __cplusplus
41847 extern "C"
41848 #endif
41849 char pthread_attr_setschedparam ();
41850 /* The GNU C library defines this for functions which it implements
41851     to always fail with ENOSYS.  Some functions are actually named
41852     something starting with __ and the normal name is an alias.  */
41853 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41854 choke me
41855 #endif
41856
41857 int
41858 main ()
41859 {
41860 return pthread_attr_setschedparam ();
41861   ;
41862   return 0;
41863 }
41864 _ACEOF
41865 rm -f conftest.$ac_objext conftest$ac_exeext
41866 if { (ac_try="$ac_link"
41867 case "(($ac_try" in
41868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41869   *) ac_try_echo=$ac_try;;
41870 esac
41871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41872   (eval "$ac_link") 2>conftest.er1
41873   ac_status=$?
41874   grep -v '^ *+' conftest.er1 >conftest.err
41875   rm -f conftest.er1
41876   cat conftest.err >&5
41877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41878   (exit $ac_status); } && {
41879          test -z "$ac_c_werror_flag" ||
41880          test ! -s conftest.err
41881        } && test -s conftest$ac_exeext &&
41882        $as_test_x conftest$ac_exeext; then
41883   ac_cv_func_pthread_attr_setschedparam=yes
41884 else
41885   echo "$as_me: failed program was:" >&5
41886 sed 's/^/| /' conftest.$ac_ext >&5
41887
41888         ac_cv_func_pthread_attr_setschedparam=no
41889 fi
41890
41891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41892       conftest$ac_exeext conftest.$ac_ext
41893 fi
41894 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41895 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41896 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41897   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41898 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41899 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41900   echo $ECHO_N "(cached) $ECHO_C" >&6
41901 else
41902   cat >conftest.$ac_ext <<_ACEOF
41903 /* confdefs.h.  */
41904 _ACEOF
41905 cat confdefs.h >>conftest.$ac_ext
41906 cat >>conftest.$ac_ext <<_ACEOF
41907 /* end confdefs.h.  */
41908 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41910 #define sched_get_priority_max innocuous_sched_get_priority_max
41911
41912 /* System header to define __stub macros and hopefully few prototypes,
41913     which can conflict with char sched_get_priority_max (); below.
41914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41915     <limits.h> exists even on freestanding compilers.  */
41916
41917 #ifdef __STDC__
41918 # include <limits.h>
41919 #else
41920 # include <assert.h>
41921 #endif
41922
41923 #undef sched_get_priority_max
41924
41925 /* Override any GCC internal prototype to avoid an error.
41926    Use char because int might match the return type of a GCC
41927    builtin and then its argument prototype would still apply.  */
41928 #ifdef __cplusplus
41929 extern "C"
41930 #endif
41931 char sched_get_priority_max ();
41932 /* The GNU C library defines this for functions which it implements
41933     to always fail with ENOSYS.  Some functions are actually named
41934     something starting with __ and the normal name is an alias.  */
41935 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41936 choke me
41937 #endif
41938
41939 int
41940 main ()
41941 {
41942 return sched_get_priority_max ();
41943   ;
41944   return 0;
41945 }
41946 _ACEOF
41947 rm -f conftest.$ac_objext conftest$ac_exeext
41948 if { (ac_try="$ac_link"
41949 case "(($ac_try" in
41950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41951   *) ac_try_echo=$ac_try;;
41952 esac
41953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41954   (eval "$ac_link") 2>conftest.er1
41955   ac_status=$?
41956   grep -v '^ *+' conftest.er1 >conftest.err
41957   rm -f conftest.er1
41958   cat conftest.err >&5
41959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41960   (exit $ac_status); } && {
41961          test -z "$ac_c_werror_flag" ||
41962          test ! -s conftest.err
41963        } && test -s conftest$ac_exeext &&
41964        $as_test_x conftest$ac_exeext; then
41965   ac_cv_func_sched_get_priority_max=yes
41966 else
41967   echo "$as_me: failed program was:" >&5
41968 sed 's/^/| /' conftest.$ac_ext >&5
41969
41970         ac_cv_func_sched_get_priority_max=no
41971 fi
41972
41973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41974       conftest$ac_exeext conftest.$ac_ext
41975 fi
41976 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41977 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41978 if test $ac_cv_func_sched_get_priority_max = yes; then
41979   HAVE_PRIOR_FUNCS=1
41980 else
41981   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41982 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41983 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41984   echo $ECHO_N "(cached) $ECHO_C" >&6
41985 else
41986   ac_check_lib_save_LIBS=$LIBS
41987 LIBS="-lposix4  $LIBS"
41988 cat >conftest.$ac_ext <<_ACEOF
41989 /* confdefs.h.  */
41990 _ACEOF
41991 cat confdefs.h >>conftest.$ac_ext
41992 cat >>conftest.$ac_ext <<_ACEOF
41993 /* end confdefs.h.  */
41994
41995 /* Override any GCC internal prototype to avoid an error.
41996    Use char because int might match the return type of a GCC
41997    builtin and then its argument prototype would still apply.  */
41998 #ifdef __cplusplus
41999 extern "C"
42000 #endif
42001 char sched_get_priority_max ();
42002 int
42003 main ()
42004 {
42005 return sched_get_priority_max ();
42006   ;
42007   return 0;
42008 }
42009 _ACEOF
42010 rm -f conftest.$ac_objext conftest$ac_exeext
42011 if { (ac_try="$ac_link"
42012 case "(($ac_try" in
42013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42014   *) ac_try_echo=$ac_try;;
42015 esac
42016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42017   (eval "$ac_link") 2>conftest.er1
42018   ac_status=$?
42019   grep -v '^ *+' conftest.er1 >conftest.err
42020   rm -f conftest.er1
42021   cat conftest.err >&5
42022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023   (exit $ac_status); } && {
42024          test -z "$ac_c_werror_flag" ||
42025          test ! -s conftest.err
42026        } && test -s conftest$ac_exeext &&
42027        $as_test_x conftest$ac_exeext; then
42028   ac_cv_lib_posix4_sched_get_priority_max=yes
42029 else
42030   echo "$as_me: failed program was:" >&5
42031 sed 's/^/| /' conftest.$ac_ext >&5
42032
42033         ac_cv_lib_posix4_sched_get_priority_max=no
42034 fi
42035
42036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42037       conftest$ac_exeext conftest.$ac_ext
42038 LIBS=$ac_check_lib_save_LIBS
42039 fi
42040 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42041 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42042 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42043
42044                                 HAVE_PRIOR_FUNCS=1
42045                                 POSIX4_LINK=" -lposix4"
42046
42047 fi
42048
42049
42050 fi
42051
42052
42053 fi
42054
42055
42056 fi
42057
42058
42059       if test "$HAVE_PRIOR_FUNCS" = 1; then
42060         cat >>confdefs.h <<\_ACEOF
42061 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42062 _ACEOF
42063
42064       else
42065         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42066 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42067       fi
42068
42069       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42070 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42071 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42072   echo $ECHO_N "(cached) $ECHO_C" >&6
42073 else
42074   cat >conftest.$ac_ext <<_ACEOF
42075 /* confdefs.h.  */
42076 _ACEOF
42077 cat confdefs.h >>conftest.$ac_ext
42078 cat >>conftest.$ac_ext <<_ACEOF
42079 /* end confdefs.h.  */
42080 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42082 #define pthread_cancel innocuous_pthread_cancel
42083
42084 /* System header to define __stub macros and hopefully few prototypes,
42085     which can conflict with char pthread_cancel (); below.
42086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42087     <limits.h> exists even on freestanding compilers.  */
42088
42089 #ifdef __STDC__
42090 # include <limits.h>
42091 #else
42092 # include <assert.h>
42093 #endif
42094
42095 #undef pthread_cancel
42096
42097 /* Override any GCC internal prototype to avoid an error.
42098    Use char because int might match the return type of a GCC
42099    builtin and then its argument prototype would still apply.  */
42100 #ifdef __cplusplus
42101 extern "C"
42102 #endif
42103 char pthread_cancel ();
42104 /* The GNU C library defines this for functions which it implements
42105     to always fail with ENOSYS.  Some functions are actually named
42106     something starting with __ and the normal name is an alias.  */
42107 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42108 choke me
42109 #endif
42110
42111 int
42112 main ()
42113 {
42114 return pthread_cancel ();
42115   ;
42116   return 0;
42117 }
42118 _ACEOF
42119 rm -f conftest.$ac_objext conftest$ac_exeext
42120 if { (ac_try="$ac_link"
42121 case "(($ac_try" in
42122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42123   *) ac_try_echo=$ac_try;;
42124 esac
42125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42126   (eval "$ac_link") 2>conftest.er1
42127   ac_status=$?
42128   grep -v '^ *+' conftest.er1 >conftest.err
42129   rm -f conftest.er1
42130   cat conftest.err >&5
42131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132   (exit $ac_status); } && {
42133          test -z "$ac_c_werror_flag" ||
42134          test ! -s conftest.err
42135        } && test -s conftest$ac_exeext &&
42136        $as_test_x conftest$ac_exeext; then
42137   ac_cv_func_pthread_cancel=yes
42138 else
42139   echo "$as_me: failed program was:" >&5
42140 sed 's/^/| /' conftest.$ac_ext >&5
42141
42142         ac_cv_func_pthread_cancel=no
42143 fi
42144
42145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42146       conftest$ac_exeext conftest.$ac_ext
42147 fi
42148 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42149 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42150 if test $ac_cv_func_pthread_cancel = yes; then
42151   cat >>confdefs.h <<\_ACEOF
42152 #define HAVE_PTHREAD_CANCEL 1
42153 _ACEOF
42154
42155 else
42156   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42157 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42158 fi
42159
42160
42161       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42162 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42163 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42164   echo $ECHO_N "(cached) $ECHO_C" >&6
42165 else
42166   cat >conftest.$ac_ext <<_ACEOF
42167 /* confdefs.h.  */
42168 _ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h.  */
42172 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42174 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42175
42176 /* System header to define __stub macros and hopefully few prototypes,
42177     which can conflict with char pthread_mutex_timedlock (); below.
42178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42179     <limits.h> exists even on freestanding compilers.  */
42180
42181 #ifdef __STDC__
42182 # include <limits.h>
42183 #else
42184 # include <assert.h>
42185 #endif
42186
42187 #undef pthread_mutex_timedlock
42188
42189 /* Override any GCC internal prototype to avoid an error.
42190    Use char because int might match the return type of a GCC
42191    builtin and then its argument prototype would still apply.  */
42192 #ifdef __cplusplus
42193 extern "C"
42194 #endif
42195 char pthread_mutex_timedlock ();
42196 /* The GNU C library defines this for functions which it implements
42197     to always fail with ENOSYS.  Some functions are actually named
42198     something starting with __ and the normal name is an alias.  */
42199 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42200 choke me
42201 #endif
42202
42203 int
42204 main ()
42205 {
42206 return pthread_mutex_timedlock ();
42207   ;
42208   return 0;
42209 }
42210 _ACEOF
42211 rm -f conftest.$ac_objext conftest$ac_exeext
42212 if { (ac_try="$ac_link"
42213 case "(($ac_try" in
42214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42215   *) ac_try_echo=$ac_try;;
42216 esac
42217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42218   (eval "$ac_link") 2>conftest.er1
42219   ac_status=$?
42220   grep -v '^ *+' conftest.er1 >conftest.err
42221   rm -f conftest.er1
42222   cat conftest.err >&5
42223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224   (exit $ac_status); } && {
42225          test -z "$ac_c_werror_flag" ||
42226          test ! -s conftest.err
42227        } && test -s conftest$ac_exeext &&
42228        $as_test_x conftest$ac_exeext; then
42229   ac_cv_func_pthread_mutex_timedlock=yes
42230 else
42231   echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42233
42234         ac_cv_func_pthread_mutex_timedlock=no
42235 fi
42236
42237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42238       conftest$ac_exeext conftest.$ac_ext
42239 fi
42240 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42241 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42242 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42243   cat >>confdefs.h <<\_ACEOF
42244 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42245 _ACEOF
42246
42247 else
42248   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42249 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42250 fi
42251
42252
42253       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42254 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42255 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42256   echo $ECHO_N "(cached) $ECHO_C" >&6
42257 else
42258   cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h.  */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h.  */
42264 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42266 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42267
42268 /* System header to define __stub macros and hopefully few prototypes,
42269     which can conflict with char pthread_attr_setstacksize (); below.
42270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42271     <limits.h> exists even on freestanding compilers.  */
42272
42273 #ifdef __STDC__
42274 # include <limits.h>
42275 #else
42276 # include <assert.h>
42277 #endif
42278
42279 #undef pthread_attr_setstacksize
42280
42281 /* Override any GCC internal prototype to avoid an error.
42282    Use char because int might match the return type of a GCC
42283    builtin and then its argument prototype would still apply.  */
42284 #ifdef __cplusplus
42285 extern "C"
42286 #endif
42287 char pthread_attr_setstacksize ();
42288 /* The GNU C library defines this for functions which it implements
42289     to always fail with ENOSYS.  Some functions are actually named
42290     something starting with __ and the normal name is an alias.  */
42291 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42292 choke me
42293 #endif
42294
42295 int
42296 main ()
42297 {
42298 return pthread_attr_setstacksize ();
42299   ;
42300   return 0;
42301 }
42302 _ACEOF
42303 rm -f conftest.$ac_objext conftest$ac_exeext
42304 if { (ac_try="$ac_link"
42305 case "(($ac_try" in
42306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42307   *) ac_try_echo=$ac_try;;
42308 esac
42309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42310   (eval "$ac_link") 2>conftest.er1
42311   ac_status=$?
42312   grep -v '^ *+' conftest.er1 >conftest.err
42313   rm -f conftest.er1
42314   cat conftest.err >&5
42315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316   (exit $ac_status); } && {
42317          test -z "$ac_c_werror_flag" ||
42318          test ! -s conftest.err
42319        } && test -s conftest$ac_exeext &&
42320        $as_test_x conftest$ac_exeext; then
42321   ac_cv_func_pthread_attr_setstacksize=yes
42322 else
42323   echo "$as_me: failed program was:" >&5
42324 sed 's/^/| /' conftest.$ac_ext >&5
42325
42326         ac_cv_func_pthread_attr_setstacksize=no
42327 fi
42328
42329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42330       conftest$ac_exeext conftest.$ac_ext
42331 fi
42332 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42333 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42334 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42335   cat >>confdefs.h <<\_ACEOF
42336 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42337 _ACEOF
42338
42339 fi
42340
42341
42342
42343       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42344 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42345 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348
42349         cat >conftest.$ac_ext <<_ACEOF
42350 /* confdefs.h.  */
42351 _ACEOF
42352 cat confdefs.h >>conftest.$ac_ext
42353 cat >>conftest.$ac_ext <<_ACEOF
42354 /* end confdefs.h.  */
42355 #include <pthread.h>
42356 int
42357 main ()
42358 {
42359
42360                pthread_mutexattr_t attr;
42361                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42362
42363   ;
42364   return 0;
42365 }
42366 _ACEOF
42367 rm -f conftest.$ac_objext
42368 if { (ac_try="$ac_compile"
42369 case "(($ac_try" in
42370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42371   *) ac_try_echo=$ac_try;;
42372 esac
42373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42374   (eval "$ac_compile") 2>conftest.er1
42375   ac_status=$?
42376   grep -v '^ *+' conftest.er1 >conftest.err
42377   rm -f conftest.er1
42378   cat conftest.err >&5
42379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380   (exit $ac_status); } && {
42381          test -z "$ac_c_werror_flag" ||
42382          test ! -s conftest.err
42383        } && test -s conftest.$ac_objext; then
42384   wx_cv_type_pthread_mutexattr_t=yes
42385 else
42386   echo "$as_me: failed program was:" >&5
42387 sed 's/^/| /' conftest.$ac_ext >&5
42388
42389         wx_cv_type_pthread_mutexattr_t=no
42390
42391 fi
42392
42393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42394
42395 fi
42396 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42397 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42398
42399       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42400         cat >>confdefs.h <<\_ACEOF
42401 #define HAVE_PTHREAD_MUTEXATTR_T 1
42402 _ACEOF
42403
42404
42405                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42406 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42407 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42408   echo $ECHO_N "(cached) $ECHO_C" >&6
42409 else
42410
42411                        cat >conftest.$ac_ext <<_ACEOF
42412 /* confdefs.h.  */
42413 _ACEOF
42414 cat confdefs.h >>conftest.$ac_ext
42415 cat >>conftest.$ac_ext <<_ACEOF
42416 /* end confdefs.h.  */
42417 #include <pthread.h>
42418 int
42419 main ()
42420 {
42421
42422                                pthread_mutexattr_t attr;
42423                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42424
42425   ;
42426   return 0;
42427 }
42428 _ACEOF
42429 rm -f conftest.$ac_objext
42430 if { (ac_try="$ac_compile"
42431 case "(($ac_try" in
42432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42433   *) ac_try_echo=$ac_try;;
42434 esac
42435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42436   (eval "$ac_compile") 2>conftest.er1
42437   ac_status=$?
42438   grep -v '^ *+' conftest.er1 >conftest.err
42439   rm -f conftest.er1
42440   cat conftest.err >&5
42441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442   (exit $ac_status); } && {
42443          test -z "$ac_c_werror_flag" ||
42444          test ! -s conftest.err
42445        } && test -s conftest.$ac_objext; then
42446   wx_cv_func_pthread_mutexattr_settype_decl=yes
42447 else
42448   echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42450
42451         wx_cv_func_pthread_mutexattr_settype_decl=no
42452
42453 fi
42454
42455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42456
42457 fi
42458 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42459 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42460         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42461             cat >>confdefs.h <<\_ACEOF
42462 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42463 _ACEOF
42464
42465         fi
42466       else
42467                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42468 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42469 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42470   echo $ECHO_N "(cached) $ECHO_C" >&6
42471 else
42472
42473             cat >conftest.$ac_ext <<_ACEOF
42474 /* confdefs.h.  */
42475 _ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h.  */
42479 #include <pthread.h>
42480 int
42481 main ()
42482 {
42483
42484                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42485
42486   ;
42487   return 0;
42488 }
42489 _ACEOF
42490 rm -f conftest.$ac_objext
42491 if { (ac_try="$ac_compile"
42492 case "(($ac_try" in
42493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42494   *) ac_try_echo=$ac_try;;
42495 esac
42496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42497   (eval "$ac_compile") 2>conftest.er1
42498   ac_status=$?
42499   grep -v '^ *+' conftest.er1 >conftest.err
42500   rm -f conftest.er1
42501   cat conftest.err >&5
42502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503   (exit $ac_status); } && {
42504          test -z "$ac_c_werror_flag" ||
42505          test ! -s conftest.err
42506        } && test -s conftest.$ac_objext; then
42507
42508                     wx_cv_type_pthread_rec_mutex_init=yes
42509
42510 else
42511   echo "$as_me: failed program was:" >&5
42512 sed 's/^/| /' conftest.$ac_ext >&5
42513
42514
42515                     wx_cv_type_pthread_rec_mutex_init=no
42516
42517
42518 fi
42519
42520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42521
42522 fi
42523 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42524 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42525         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42526           cat >>confdefs.h <<\_ACEOF
42527 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42528 _ACEOF
42529
42530         else
42531                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42532 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42533         fi
42534       fi
42535     fi
42536
42537 else
42538     if test "$wxUSE_THREADS" = "yes" ; then
42539       case "${host}" in
42540         *-*-mingw32* )
42541                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42542 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42543 if test "${wx_cv_cflags_mthread+set}" = set; then
42544   echo $ECHO_N "(cached) $ECHO_C" >&6
42545 else
42546
42547                     CFLAGS_OLD="$CFLAGS"
42548                     CFLAGS="-mthreads $CFLAGS"
42549                     cat >conftest.$ac_ext <<_ACEOF
42550 /* confdefs.h.  */
42551 _ACEOF
42552 cat confdefs.h >>conftest.$ac_ext
42553 cat >>conftest.$ac_ext <<_ACEOF
42554 /* end confdefs.h.  */
42555
42556 int
42557 main ()
42558 {
42559
42560   ;
42561   return 0;
42562 }
42563 _ACEOF
42564 rm -f conftest.$ac_objext
42565 if { (ac_try="$ac_compile"
42566 case "(($ac_try" in
42567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42568   *) ac_try_echo=$ac_try;;
42569 esac
42570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42571   (eval "$ac_compile") 2>conftest.er1
42572   ac_status=$?
42573   grep -v '^ *+' conftest.er1 >conftest.err
42574   rm -f conftest.er1
42575   cat conftest.err >&5
42576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577   (exit $ac_status); } && {
42578          test -z "$ac_c_werror_flag" ||
42579          test ! -s conftest.err
42580        } && test -s conftest.$ac_objext; then
42581   wx_cv_cflags_mthread=yes
42582 else
42583   echo "$as_me: failed program was:" >&5
42584 sed 's/^/| /' conftest.$ac_ext >&5
42585
42586         wx_cv_cflags_mthread=no
42587
42588 fi
42589
42590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42591
42592
42593 fi
42594 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42595 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42596
42597             if test "$wx_cv_cflags_mthread" = "yes"; then
42598                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42599                 LDFLAGS="$LDFLAGS -mthreads"
42600             else
42601                                 CFLAGS="$CFLAGS_OLD"
42602             fi
42603         ;;
42604         *-pc-os2*emx )
42605             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42606             LDFLAGS="$LDFLAGS -Zmt"
42607         ;;
42608       esac
42609     fi
42610 fi
42611
42612 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42613 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42614 if test "${ac_cv_func_localtime_r+set}" = set; then
42615   echo $ECHO_N "(cached) $ECHO_C" >&6
42616 else
42617   cat >conftest.$ac_ext <<_ACEOF
42618 /* confdefs.h.  */
42619 _ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h.  */
42623 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42625 #define localtime_r innocuous_localtime_r
42626
42627 /* System header to define __stub macros and hopefully few prototypes,
42628     which can conflict with char localtime_r (); below.
42629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42630     <limits.h> exists even on freestanding compilers.  */
42631
42632 #ifdef __STDC__
42633 # include <limits.h>
42634 #else
42635 # include <assert.h>
42636 #endif
42637
42638 #undef localtime_r
42639
42640 /* Override any GCC internal prototype to avoid an error.
42641    Use char because int might match the return type of a GCC
42642    builtin and then its argument prototype would still apply.  */
42643 #ifdef __cplusplus
42644 extern "C"
42645 #endif
42646 char localtime_r ();
42647 /* The GNU C library defines this for functions which it implements
42648     to always fail with ENOSYS.  Some functions are actually named
42649     something starting with __ and the normal name is an alias.  */
42650 #if defined __stub_localtime_r || defined __stub___localtime_r
42651 choke me
42652 #endif
42653
42654 int
42655 main ()
42656 {
42657 return localtime_r ();
42658   ;
42659   return 0;
42660 }
42661 _ACEOF
42662 rm -f conftest.$ac_objext conftest$ac_exeext
42663 if { (ac_try="$ac_link"
42664 case "(($ac_try" in
42665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42666   *) ac_try_echo=$ac_try;;
42667 esac
42668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42669   (eval "$ac_link") 2>conftest.er1
42670   ac_status=$?
42671   grep -v '^ *+' conftest.er1 >conftest.err
42672   rm -f conftest.er1
42673   cat conftest.err >&5
42674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675   (exit $ac_status); } && {
42676          test -z "$ac_c_werror_flag" ||
42677          test ! -s conftest.err
42678        } && test -s conftest$ac_exeext &&
42679        $as_test_x conftest$ac_exeext; then
42680   ac_cv_func_localtime_r=yes
42681 else
42682   echo "$as_me: failed program was:" >&5
42683 sed 's/^/| /' conftest.$ac_ext >&5
42684
42685         ac_cv_func_localtime_r=no
42686 fi
42687
42688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42689       conftest$ac_exeext conftest.$ac_ext
42690 fi
42691 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42692 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42693 if test $ac_cv_func_localtime_r = yes; then
42694    cat >>confdefs.h <<\_ACEOF
42695 #define HAVE_LOCALTIME_R 1
42696 _ACEOF
42697
42698 fi
42699
42700 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42701 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42702 if test "${ac_cv_func_gmtime_r+set}" = set; then
42703   echo $ECHO_N "(cached) $ECHO_C" >&6
42704 else
42705   cat >conftest.$ac_ext <<_ACEOF
42706 /* confdefs.h.  */
42707 _ACEOF
42708 cat confdefs.h >>conftest.$ac_ext
42709 cat >>conftest.$ac_ext <<_ACEOF
42710 /* end confdefs.h.  */
42711 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42713 #define gmtime_r innocuous_gmtime_r
42714
42715 /* System header to define __stub macros and hopefully few prototypes,
42716     which can conflict with char gmtime_r (); below.
42717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42718     <limits.h> exists even on freestanding compilers.  */
42719
42720 #ifdef __STDC__
42721 # include <limits.h>
42722 #else
42723 # include <assert.h>
42724 #endif
42725
42726 #undef gmtime_r
42727
42728 /* Override any GCC internal prototype to avoid an error.
42729    Use char because int might match the return type of a GCC
42730    builtin and then its argument prototype would still apply.  */
42731 #ifdef __cplusplus
42732 extern "C"
42733 #endif
42734 char gmtime_r ();
42735 /* The GNU C library defines this for functions which it implements
42736     to always fail with ENOSYS.  Some functions are actually named
42737     something starting with __ and the normal name is an alias.  */
42738 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42739 choke me
42740 #endif
42741
42742 int
42743 main ()
42744 {
42745 return gmtime_r ();
42746   ;
42747   return 0;
42748 }
42749 _ACEOF
42750 rm -f conftest.$ac_objext conftest$ac_exeext
42751 if { (ac_try="$ac_link"
42752 case "(($ac_try" in
42753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42754   *) ac_try_echo=$ac_try;;
42755 esac
42756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42757   (eval "$ac_link") 2>conftest.er1
42758   ac_status=$?
42759   grep -v '^ *+' conftest.er1 >conftest.err
42760   rm -f conftest.er1
42761   cat conftest.err >&5
42762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42763   (exit $ac_status); } && {
42764          test -z "$ac_c_werror_flag" ||
42765          test ! -s conftest.err
42766        } && test -s conftest$ac_exeext &&
42767        $as_test_x conftest$ac_exeext; then
42768   ac_cv_func_gmtime_r=yes
42769 else
42770   echo "$as_me: failed program was:" >&5
42771 sed 's/^/| /' conftest.$ac_ext >&5
42772
42773         ac_cv_func_gmtime_r=no
42774 fi
42775
42776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42777       conftest$ac_exeext conftest.$ac_ext
42778 fi
42779 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42780 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42781 if test $ac_cv_func_gmtime_r = yes; then
42782    cat >>confdefs.h <<\_ACEOF
42783 #define HAVE_GMTIME_R 1
42784 _ACEOF
42785
42786 fi
42787
42788 { echo "$as_me:$LINENO: checking for readdir_r" >&5
42789 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
42790 if test "${ac_cv_func_readdir_r+set}" = set; then
42791   echo $ECHO_N "(cached) $ECHO_C" >&6
42792 else
42793   cat >conftest.$ac_ext <<_ACEOF
42794 /* confdefs.h.  */
42795 _ACEOF
42796 cat confdefs.h >>conftest.$ac_ext
42797 cat >>conftest.$ac_ext <<_ACEOF
42798 /* end confdefs.h.  */
42799 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
42800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42801 #define readdir_r innocuous_readdir_r
42802
42803 /* System header to define __stub macros and hopefully few prototypes,
42804     which can conflict with char readdir_r (); below.
42805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42806     <limits.h> exists even on freestanding compilers.  */
42807
42808 #ifdef __STDC__
42809 # include <limits.h>
42810 #else
42811 # include <assert.h>
42812 #endif
42813
42814 #undef readdir_r
42815
42816 /* Override any GCC internal prototype to avoid an error.
42817    Use char because int might match the return type of a GCC
42818    builtin and then its argument prototype would still apply.  */
42819 #ifdef __cplusplus
42820 extern "C"
42821 #endif
42822 char readdir_r ();
42823 /* The GNU C library defines this for functions which it implements
42824     to always fail with ENOSYS.  Some functions are actually named
42825     something starting with __ and the normal name is an alias.  */
42826 #if defined __stub_readdir_r || defined __stub___readdir_r
42827 choke me
42828 #endif
42829
42830 int
42831 main ()
42832 {
42833 return readdir_r ();
42834   ;
42835   return 0;
42836 }
42837 _ACEOF
42838 rm -f conftest.$ac_objext conftest$ac_exeext
42839 if { (ac_try="$ac_link"
42840 case "(($ac_try" in
42841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42842   *) ac_try_echo=$ac_try;;
42843 esac
42844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42845   (eval "$ac_link") 2>conftest.er1
42846   ac_status=$?
42847   grep -v '^ *+' conftest.er1 >conftest.err
42848   rm -f conftest.er1
42849   cat conftest.err >&5
42850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851   (exit $ac_status); } && {
42852          test -z "$ac_c_werror_flag" ||
42853          test ! -s conftest.err
42854        } && test -s conftest$ac_exeext &&
42855        $as_test_x conftest$ac_exeext; then
42856   ac_cv_func_readdir_r=yes
42857 else
42858   echo "$as_me: failed program was:" >&5
42859 sed 's/^/| /' conftest.$ac_ext >&5
42860
42861         ac_cv_func_readdir_r=no
42862 fi
42863
42864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42865       conftest$ac_exeext conftest.$ac_ext
42866 fi
42867 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
42868 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
42869 if test $ac_cv_func_readdir_r = yes; then
42870    cat >>confdefs.h <<\_ACEOF
42871 #define HAVE_READDIR_R 1
42872 _ACEOF
42873
42874 fi
42875
42876
42877
42878
42879     ac_ext=c
42880 ac_cpp='$CPP $CPPFLAGS'
42881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42884
42885     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42886 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42887
42888     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42889   echo $ECHO_N "(cached) $ECHO_C" >&6
42890 else
42891
42892
42893 ################################################################
42894
42895 ac_cv_func_which_gethostbyname_r=unknown
42896
42897 #
42898 # ONE ARGUMENT (sanity check)
42899 #
42900
42901 # This should fail, as there is no variant of gethostbyname_r() that takes
42902 # a single argument. If it actually compiles, then we can assume that
42903 # netdb.h is not declaring the function, and the compiler is thereby
42904 # assuming an implicit prototype. In which case, we're out of luck.
42905 #
42906 cat >conftest.$ac_ext <<_ACEOF
42907 /* confdefs.h.  */
42908 _ACEOF
42909 cat confdefs.h >>conftest.$ac_ext
42910 cat >>conftest.$ac_ext <<_ACEOF
42911 /* end confdefs.h.  */
42912 #include <netdb.h>
42913 int
42914 main ()
42915 {
42916
42917             char *name = "www.gnu.org";
42918             (void)gethostbyname_r(name) /* ; */
42919
42920   ;
42921   return 0;
42922 }
42923 _ACEOF
42924 rm -f conftest.$ac_objext
42925 if { (ac_try="$ac_compile"
42926 case "(($ac_try" in
42927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42928   *) ac_try_echo=$ac_try;;
42929 esac
42930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42931   (eval "$ac_compile") 2>conftest.er1
42932   ac_status=$?
42933   grep -v '^ *+' conftest.er1 >conftest.err
42934   rm -f conftest.er1
42935   cat conftest.err >&5
42936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42937   (exit $ac_status); } && {
42938          test -z "$ac_c_werror_flag" ||
42939          test ! -s conftest.err
42940        } && test -s conftest.$ac_objext; then
42941   ac_cv_func_which_gethostbyname_r=no
42942 else
42943   echo "$as_me: failed program was:" >&5
42944 sed 's/^/| /' conftest.$ac_ext >&5
42945
42946
42947 fi
42948
42949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42950
42951 #
42952 # SIX ARGUMENTS
42953 # (e.g. Linux)
42954 #
42955
42956 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42957
42958 cat >conftest.$ac_ext <<_ACEOF
42959 /* confdefs.h.  */
42960 _ACEOF
42961 cat confdefs.h >>conftest.$ac_ext
42962 cat >>conftest.$ac_ext <<_ACEOF
42963 /* end confdefs.h.  */
42964 #include <netdb.h>
42965 int
42966 main ()
42967 {
42968
42969             char *name = "www.gnu.org";
42970             struct hostent ret, *retp;
42971             char buf[1024];
42972             int buflen = 1024;
42973             int my_h_errno;
42974             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42975
42976   ;
42977   return 0;
42978 }
42979 _ACEOF
42980 rm -f conftest.$ac_objext
42981 if { (ac_try="$ac_compile"
42982 case "(($ac_try" in
42983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42984   *) ac_try_echo=$ac_try;;
42985 esac
42986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42987   (eval "$ac_compile") 2>conftest.er1
42988   ac_status=$?
42989   grep -v '^ *+' conftest.er1 >conftest.err
42990   rm -f conftest.er1
42991   cat conftest.err >&5
42992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42993   (exit $ac_status); } && {
42994          test -z "$ac_c_werror_flag" ||
42995          test ! -s conftest.err
42996        } && test -s conftest.$ac_objext; then
42997   ac_cv_func_which_gethostbyname_r=six
42998 else
42999   echo "$as_me: failed program was:" >&5
43000 sed 's/^/| /' conftest.$ac_ext >&5
43001
43002
43003 fi
43004
43005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43006
43007 fi
43008
43009 #
43010 # FIVE ARGUMENTS
43011 # (e.g. Solaris)
43012 #
43013
43014 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43015
43016 cat >conftest.$ac_ext <<_ACEOF
43017 /* confdefs.h.  */
43018 _ACEOF
43019 cat confdefs.h >>conftest.$ac_ext
43020 cat >>conftest.$ac_ext <<_ACEOF
43021 /* end confdefs.h.  */
43022 #include <netdb.h>
43023 int
43024 main ()
43025 {
43026
43027             char *name = "www.gnu.org";
43028             struct hostent ret;
43029             char buf[1024];
43030             int buflen = 1024;
43031             int my_h_errno;
43032             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43033
43034   ;
43035   return 0;
43036 }
43037 _ACEOF
43038 rm -f conftest.$ac_objext
43039 if { (ac_try="$ac_compile"
43040 case "(($ac_try" in
43041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43042   *) ac_try_echo=$ac_try;;
43043 esac
43044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43045   (eval "$ac_compile") 2>conftest.er1
43046   ac_status=$?
43047   grep -v '^ *+' conftest.er1 >conftest.err
43048   rm -f conftest.er1
43049   cat conftest.err >&5
43050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43051   (exit $ac_status); } && {
43052          test -z "$ac_c_werror_flag" ||
43053          test ! -s conftest.err
43054        } && test -s conftest.$ac_objext; then
43055   ac_cv_func_which_gethostbyname_r=five
43056 else
43057   echo "$as_me: failed program was:" >&5
43058 sed 's/^/| /' conftest.$ac_ext >&5
43059
43060
43061 fi
43062
43063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43064
43065 fi
43066
43067 #
43068 # THREE ARGUMENTS
43069 # (e.g. AIX, HP-UX, Tru64)
43070 #
43071
43072 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43073
43074 cat >conftest.$ac_ext <<_ACEOF
43075 /* confdefs.h.  */
43076 _ACEOF
43077 cat confdefs.h >>conftest.$ac_ext
43078 cat >>conftest.$ac_ext <<_ACEOF
43079 /* end confdefs.h.  */
43080 #include <netdb.h>
43081 int
43082 main ()
43083 {
43084
43085             char *name = "www.gnu.org";
43086             struct hostent ret;
43087             struct hostent_data data;
43088             (void)gethostbyname_r(name, &ret, &data) /* ; */
43089
43090   ;
43091   return 0;
43092 }
43093 _ACEOF
43094 rm -f conftest.$ac_objext
43095 if { (ac_try="$ac_compile"
43096 case "(($ac_try" in
43097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43098   *) ac_try_echo=$ac_try;;
43099 esac
43100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43101   (eval "$ac_compile") 2>conftest.er1
43102   ac_status=$?
43103   grep -v '^ *+' conftest.er1 >conftest.err
43104   rm -f conftest.er1
43105   cat conftest.err >&5
43106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43107   (exit $ac_status); } && {
43108          test -z "$ac_c_werror_flag" ||
43109          test ! -s conftest.err
43110        } && test -s conftest.$ac_objext; then
43111   ac_cv_func_which_gethostbyname_r=three
43112 else
43113   echo "$as_me: failed program was:" >&5
43114 sed 's/^/| /' conftest.$ac_ext >&5
43115
43116
43117 fi
43118
43119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43120
43121 fi
43122
43123 ################################################################
43124
43125
43126 fi
43127
43128 case "$ac_cv_func_which_gethostbyname_r" in
43129     three)
43130     { echo "$as_me:$LINENO: result: three" >&5
43131 echo "${ECHO_T}three" >&6; }
43132     cat >>confdefs.h <<\_ACEOF
43133 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43134 _ACEOF
43135
43136     ;;
43137
43138     five)
43139     { echo "$as_me:$LINENO: result: five" >&5
43140 echo "${ECHO_T}five" >&6; }
43141     cat >>confdefs.h <<\_ACEOF
43142 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43143 _ACEOF
43144
43145     ;;
43146
43147     six)
43148     { echo "$as_me:$LINENO: result: six" >&5
43149 echo "${ECHO_T}six" >&6; }
43150     cat >>confdefs.h <<\_ACEOF
43151 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43152 _ACEOF
43153
43154     ;;
43155
43156     no)
43157     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43158 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43159     ;;
43160
43161     unknown)
43162     { echo "$as_me:$LINENO: result: can't tell" >&5
43163 echo "${ECHO_T}can't tell" >&6; }
43164     ;;
43165
43166     *)
43167     { { echo "$as_me:$LINENO: error: internal error" >&5
43168 echo "$as_me: error: internal error" >&2;}
43169    { (exit 1); exit 1; }; }
43170     ;;
43171 esac
43172
43173 ac_ext=c
43174 ac_cpp='$CPP $CPPFLAGS'
43175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43178
43179
43180
43181       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43182               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43183           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43185 if test "${ac_cv_func_gethostbyname+set}" = set; then
43186   echo $ECHO_N "(cached) $ECHO_C" >&6
43187 else
43188   cat >conftest.$ac_ext <<_ACEOF
43189 /* confdefs.h.  */
43190 _ACEOF
43191 cat confdefs.h >>conftest.$ac_ext
43192 cat >>conftest.$ac_ext <<_ACEOF
43193 /* end confdefs.h.  */
43194 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43196 #define gethostbyname innocuous_gethostbyname
43197
43198 /* System header to define __stub macros and hopefully few prototypes,
43199     which can conflict with char gethostbyname (); below.
43200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43201     <limits.h> exists even on freestanding compilers.  */
43202
43203 #ifdef __STDC__
43204 # include <limits.h>
43205 #else
43206 # include <assert.h>
43207 #endif
43208
43209 #undef gethostbyname
43210
43211 /* Override any GCC internal prototype to avoid an error.
43212    Use char because int might match the return type of a GCC
43213    builtin and then its argument prototype would still apply.  */
43214 #ifdef __cplusplus
43215 extern "C"
43216 #endif
43217 char gethostbyname ();
43218 /* The GNU C library defines this for functions which it implements
43219     to always fail with ENOSYS.  Some functions are actually named
43220     something starting with __ and the normal name is an alias.  */
43221 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43222 choke me
43223 #endif
43224
43225 int
43226 main ()
43227 {
43228 return gethostbyname ();
43229   ;
43230   return 0;
43231 }
43232 _ACEOF
43233 rm -f conftest.$ac_objext conftest$ac_exeext
43234 if { (ac_try="$ac_link"
43235 case "(($ac_try" in
43236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43237   *) ac_try_echo=$ac_try;;
43238 esac
43239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43240   (eval "$ac_link") 2>conftest.er1
43241   ac_status=$?
43242   grep -v '^ *+' conftest.er1 >conftest.err
43243   rm -f conftest.er1
43244   cat conftest.err >&5
43245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246   (exit $ac_status); } && {
43247          test -z "$ac_c_werror_flag" ||
43248          test ! -s conftest.err
43249        } && test -s conftest$ac_exeext &&
43250        $as_test_x conftest$ac_exeext; then
43251   ac_cv_func_gethostbyname=yes
43252 else
43253   echo "$as_me: failed program was:" >&5
43254 sed 's/^/| /' conftest.$ac_ext >&5
43255
43256         ac_cv_func_gethostbyname=no
43257 fi
43258
43259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43260       conftest$ac_exeext conftest.$ac_ext
43261 fi
43262 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43263 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43264 if test $ac_cv_func_gethostbyname = yes; then
43265    cat >>confdefs.h <<\_ACEOF
43266 #define HAVE_GETHOSTBYNAME 1
43267 _ACEOF
43268
43269 fi
43270
43271       fi
43272
43273 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43274 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43275 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43276   echo $ECHO_N "(cached) $ECHO_C" >&6
43277 else
43278
43279                 ac_ext=cpp
43280 ac_cpp='$CXXCPP $CPPFLAGS'
43281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43284
43285
43286         cat >conftest.$ac_ext <<_ACEOF
43287 /* confdefs.h.  */
43288 _ACEOF
43289 cat confdefs.h >>conftest.$ac_ext
43290 cat >>conftest.$ac_ext <<_ACEOF
43291 /* end confdefs.h.  */
43292 #include <netdb.h>
43293 int
43294 main ()
43295 {
43296
43297                 char *name;
43298                 char *proto;
43299                 struct servent *se, *res;
43300                 char buffer[2048];
43301                 int buflen = 2048;
43302                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43303
43304   ;
43305   return 0;
43306 }
43307 _ACEOF
43308 rm -f conftest.$ac_objext
43309 if { (ac_try="$ac_compile"
43310 case "(($ac_try" in
43311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43312   *) ac_try_echo=$ac_try;;
43313 esac
43314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43315   (eval "$ac_compile") 2>conftest.er1
43316   ac_status=$?
43317   grep -v '^ *+' conftest.er1 >conftest.err
43318   rm -f conftest.er1
43319   cat conftest.err >&5
43320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43321   (exit $ac_status); } && {
43322          test -z "$ac_cxx_werror_flag" ||
43323          test ! -s conftest.err
43324        } && test -s conftest.$ac_objext; then
43325   ac_cv_func_which_getservbyname_r=six
43326 else
43327   echo "$as_me: failed program was:" >&5
43328 sed 's/^/| /' conftest.$ac_ext >&5
43329
43330
43331                 cat >conftest.$ac_ext <<_ACEOF
43332 /* confdefs.h.  */
43333 _ACEOF
43334 cat confdefs.h >>conftest.$ac_ext
43335 cat >>conftest.$ac_ext <<_ACEOF
43336 /* end confdefs.h.  */
43337 #include <netdb.h>
43338 int
43339 main ()
43340 {
43341
43342                         char *name;
43343                         char *proto;
43344                         struct servent *se;
43345                         char buffer[2048];
43346                         int buflen = 2048;
43347                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43348
43349   ;
43350   return 0;
43351 }
43352 _ACEOF
43353 rm -f conftest.$ac_objext
43354 if { (ac_try="$ac_compile"
43355 case "(($ac_try" in
43356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43357   *) ac_try_echo=$ac_try;;
43358 esac
43359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43360   (eval "$ac_compile") 2>conftest.er1
43361   ac_status=$?
43362   grep -v '^ *+' conftest.er1 >conftest.err
43363   rm -f conftest.er1
43364   cat conftest.err >&5
43365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366   (exit $ac_status); } && {
43367          test -z "$ac_cxx_werror_flag" ||
43368          test ! -s conftest.err
43369        } && test -s conftest.$ac_objext; then
43370   ac_cv_func_which_getservbyname_r=five
43371 else
43372   echo "$as_me: failed program was:" >&5
43373 sed 's/^/| /' conftest.$ac_ext >&5
43374
43375
43376                         cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382 #include <netdb.h>
43383 int
43384 main ()
43385 {
43386
43387                                 char *name;
43388                                 char *proto;
43389                                 struct servent *se;
43390                                 struct servent_data data;
43391                                 (void) getservbyname_r(name, proto, se, &data);
43392
43393   ;
43394   return 0;
43395 }
43396 _ACEOF
43397 rm -f conftest.$ac_objext
43398 if { (ac_try="$ac_compile"
43399 case "(($ac_try" in
43400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43401   *) ac_try_echo=$ac_try;;
43402 esac
43403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43404   (eval "$ac_compile") 2>conftest.er1
43405   ac_status=$?
43406   grep -v '^ *+' conftest.er1 >conftest.err
43407   rm -f conftest.er1
43408   cat conftest.err >&5
43409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410   (exit $ac_status); } && {
43411          test -z "$ac_cxx_werror_flag" ||
43412          test ! -s conftest.err
43413        } && test -s conftest.$ac_objext; then
43414   ac_cv_func_which_getservbyname_r=four
43415 else
43416   echo "$as_me: failed program was:" >&5
43417 sed 's/^/| /' conftest.$ac_ext >&5
43418
43419         ac_cv_func_which_getservbyname_r=no
43420
43421 fi
43422
43423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43424
43425
43426 fi
43427
43428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43429
43430
43431 fi
43432
43433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43434         ac_ext=c
43435 ac_cpp='$CPP $CPPFLAGS'
43436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43439
43440
43441
43442 fi
43443 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43444 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43445
43446 if test $ac_cv_func_which_getservbyname_r = six; then
43447   cat >>confdefs.h <<\_ACEOF
43448 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43449 _ACEOF
43450
43451 elif test $ac_cv_func_which_getservbyname_r = five; then
43452   cat >>confdefs.h <<\_ACEOF
43453 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43454 _ACEOF
43455
43456 elif test $ac_cv_func_which_getservbyname_r = four; then
43457   cat >>confdefs.h <<\_ACEOF
43458 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43459 _ACEOF
43460
43461 fi
43462
43463
43464       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43465               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43466
43467 for ac_func in getservbyname
43468 do
43469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43473   echo $ECHO_N "(cached) $ECHO_C" >&6
43474 else
43475   cat >conftest.$ac_ext <<_ACEOF
43476 /* confdefs.h.  */
43477 _ACEOF
43478 cat confdefs.h >>conftest.$ac_ext
43479 cat >>conftest.$ac_ext <<_ACEOF
43480 /* end confdefs.h.  */
43481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43483 #define $ac_func innocuous_$ac_func
43484
43485 /* System header to define __stub macros and hopefully few prototypes,
43486     which can conflict with char $ac_func (); below.
43487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43488     <limits.h> exists even on freestanding compilers.  */
43489
43490 #ifdef __STDC__
43491 # include <limits.h>
43492 #else
43493 # include <assert.h>
43494 #endif
43495
43496 #undef $ac_func
43497
43498 /* Override any GCC internal prototype to avoid an error.
43499    Use char because int might match the return type of a GCC
43500    builtin and then its argument prototype would still apply.  */
43501 #ifdef __cplusplus
43502 extern "C"
43503 #endif
43504 char $ac_func ();
43505 /* The GNU C library defines this for functions which it implements
43506     to always fail with ENOSYS.  Some functions are actually named
43507     something starting with __ and the normal name is an alias.  */
43508 #if defined __stub_$ac_func || defined __stub___$ac_func
43509 choke me
43510 #endif
43511
43512 int
43513 main ()
43514 {
43515 return $ac_func ();
43516   ;
43517   return 0;
43518 }
43519 _ACEOF
43520 rm -f conftest.$ac_objext conftest$ac_exeext
43521 if { (ac_try="$ac_link"
43522 case "(($ac_try" in
43523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524   *) ac_try_echo=$ac_try;;
43525 esac
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527   (eval "$ac_link") 2>conftest.er1
43528   ac_status=$?
43529   grep -v '^ *+' conftest.er1 >conftest.err
43530   rm -f conftest.er1
43531   cat conftest.err >&5
43532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533   (exit $ac_status); } && {
43534          test -z "$ac_c_werror_flag" ||
43535          test ! -s conftest.err
43536        } && test -s conftest$ac_exeext &&
43537        $as_test_x conftest$ac_exeext; then
43538   eval "$as_ac_var=yes"
43539 else
43540   echo "$as_me: failed program was:" >&5
43541 sed 's/^/| /' conftest.$ac_ext >&5
43542
43543         eval "$as_ac_var=no"
43544 fi
43545
43546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43547       conftest$ac_exeext conftest.$ac_ext
43548 fi
43549 ac_res=`eval echo '${'$as_ac_var'}'`
43550                { echo "$as_me:$LINENO: result: $ac_res" >&5
43551 echo "${ECHO_T}$ac_res" >&6; }
43552 if test `eval echo '${'$as_ac_var'}'` = yes; then
43553   cat >>confdefs.h <<_ACEOF
43554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43555 _ACEOF
43556   cat >>confdefs.h <<\_ACEOF
43557 #define HAVE_GETSERVBYNAME 1
43558 _ACEOF
43559
43560 fi
43561 done
43562
43563       fi
43564
43565 if test "$wxUSE_THREADS" = "yes"; then
43566   cat >>confdefs.h <<\_ACEOF
43567 #define wxUSE_THREADS 1
43568 _ACEOF
43569
43570
43571   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43572 else
43573       if test "$wx_cv_func_strtok_r" = "yes"; then
43574     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43575 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43576     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43577         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43578         { echo "$as_me:$LINENO: result: yes" >&5
43579 echo "${ECHO_T}yes" >&6; }
43580     else
43581         { echo "$as_me:$LINENO: result: no" >&5
43582 echo "${ECHO_T}no" >&6; }
43583     fi
43584   fi
43585 fi
43586
43587 if test "$WXGTK20" = 1 ; then
43588   cat >>confdefs.h <<_ACEOF
43589 #define __WXGTK20__ $WXGTK20
43590 _ACEOF
43591
43592   WXGTK12=1
43593 fi
43594
43595 if test "$WXGTK12" = 1 ; then
43596   cat >>confdefs.h <<_ACEOF
43597 #define __WXGTK12__ $WXGTK12
43598 _ACEOF
43599
43600 fi
43601
43602 if test "$WXGTK127" = 1 ; then
43603   cat >>confdefs.h <<_ACEOF
43604 #define __WXGTK127__ $WXGTK127
43605 _ACEOF
43606
43607 fi
43608
43609 if test "$WXGPE" = 1 ; then
43610   cat >>confdefs.h <<_ACEOF
43611 #define __WXGPE__ $WXGPE
43612 _ACEOF
43613
43614 fi
43615
43616 DEBUG_CFLAGS=
43617 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43618     DEBUG_CFLAGS="-g"
43619     wxUSE_OPTIMISE=no
43620 fi
43621
43622 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43623     wxUSE_DEBUG_INFO=yes
43624     if test "$GCC" = yes; then
43625         DEBUG_CFLAGS="-ggdb"
43626     fi
43627 fi
43628
43629 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43630     cat >>confdefs.h <<\_ACEOF
43631 #define WXDEBUG 1
43632 _ACEOF
43633
43634     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43635 else
43636     if test "$wxUSE_GTK" = 1 ; then
43637         if test "x$wxGTK_VERSION" = "x1" ; then
43638             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43639         fi
43640     fi
43641 fi
43642
43643 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43644     cat >>confdefs.h <<\_ACEOF
43645 #define wxUSE_MEMORY_TRACING 1
43646 _ACEOF
43647
43648     cat >>confdefs.h <<\_ACEOF
43649 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43650 _ACEOF
43651
43652     cat >>confdefs.h <<\_ACEOF
43653 #define wxUSE_DEBUG_NEW_ALWAYS 1
43654 _ACEOF
43655
43656     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43657 fi
43658
43659 if test "$wxUSE_DMALLOC" = "yes" ; then
43660     DMALLOC_LIBS="-ldmallocthcxx"
43661 fi
43662
43663 PROFILE_FLAGS=
43664 if test "$wxUSE_PROFILE" = "yes" ; then
43665     PROFILE_FLAGS=" -pg"
43666 fi
43667
43668 if test "$GCC" = "yes" ; then
43669     if test "$wxUSE_NO_RTTI" = "yes" ; then
43670         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43671     fi
43672     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43673         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43674     fi
43675     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43676         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43677     fi
43678
43679                                                 case "${host}" in
43680       powerpc*-*-aix* )
43681         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43682         ;;
43683       *-hppa* )
43684         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43685         ;;
43686     esac
43687 fi
43688
43689 OPTIMISE_CFLAGS=
43690 if test "$wxUSE_OPTIMISE" = "no" ; then
43691     if test "$GCC" = yes ; then
43692                         OPTIMISE_CFLAGS="-O0"
43693     fi
43694 else
43695     if test "$GCC" = yes ; then
43696         case "${host}" in
43697             *-pc-os2_emx | *-pc-os2-emx )
43698                                                 OPTIMISE_CFLAGS="-O2"
43699             ;;
43700             *)
43701                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43702             ;;
43703         esac
43704     else
43705         OPTIMISE_CFLAGS="-O"
43706     fi
43707 fi
43708
43709
43710 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43711     cat >>confdefs.h <<\_ACEOF
43712 #define WXWIN_COMPATIBILITY_2_6 1
43713 _ACEOF
43714
43715
43716     WXWIN_COMPATIBILITY_2_8="yes"
43717 fi
43718
43719 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43720     cat >>confdefs.h <<\_ACEOF
43721 #define WXWIN_COMPATIBILITY_2_8 1
43722 _ACEOF
43723
43724 fi
43725
43726
43727 if test "$wxUSE_GUI" = "yes"; then
43728     cat >>confdefs.h <<\_ACEOF
43729 #define wxUSE_GUI 1
43730 _ACEOF
43731
43732
43733                                             fi
43734
43735
43736 if test "$wxUSE_UNIX" = "yes"; then
43737   cat >>confdefs.h <<\_ACEOF
43738 #define wxUSE_UNIX 1
43739 _ACEOF
43740
43741 fi
43742
43743
43744 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43745
43746     HAVE_DL_FUNCS=0
43747     HAVE_SHL_FUNCS=0
43748     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43749         if test "$USE_DARWIN" = 1; then
43750                         HAVE_DL_FUNCS=1
43751         elif test "$USE_DOS" = 1; then
43752             HAVE_DL_FUNCS=0
43753         else
43754
43755 for ac_func in dlopen
43756 do
43757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43761   echo $ECHO_N "(cached) $ECHO_C" >&6
43762 else
43763   cat >conftest.$ac_ext <<_ACEOF
43764 /* confdefs.h.  */
43765 _ACEOF
43766 cat confdefs.h >>conftest.$ac_ext
43767 cat >>conftest.$ac_ext <<_ACEOF
43768 /* end confdefs.h.  */
43769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43771 #define $ac_func innocuous_$ac_func
43772
43773 /* System header to define __stub macros and hopefully few prototypes,
43774     which can conflict with char $ac_func (); below.
43775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43776     <limits.h> exists even on freestanding compilers.  */
43777
43778 #ifdef __STDC__
43779 # include <limits.h>
43780 #else
43781 # include <assert.h>
43782 #endif
43783
43784 #undef $ac_func
43785
43786 /* Override any GCC internal prototype to avoid an error.
43787    Use char because int might match the return type of a GCC
43788    builtin and then its argument prototype would still apply.  */
43789 #ifdef __cplusplus
43790 extern "C"
43791 #endif
43792 char $ac_func ();
43793 /* The GNU C library defines this for functions which it implements
43794     to always fail with ENOSYS.  Some functions are actually named
43795     something starting with __ and the normal name is an alias.  */
43796 #if defined __stub_$ac_func || defined __stub___$ac_func
43797 choke me
43798 #endif
43799
43800 int
43801 main ()
43802 {
43803 return $ac_func ();
43804   ;
43805   return 0;
43806 }
43807 _ACEOF
43808 rm -f conftest.$ac_objext conftest$ac_exeext
43809 if { (ac_try="$ac_link"
43810 case "(($ac_try" in
43811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43812   *) ac_try_echo=$ac_try;;
43813 esac
43814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43815   (eval "$ac_link") 2>conftest.er1
43816   ac_status=$?
43817   grep -v '^ *+' conftest.er1 >conftest.err
43818   rm -f conftest.er1
43819   cat conftest.err >&5
43820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43821   (exit $ac_status); } && {
43822          test -z "$ac_c_werror_flag" ||
43823          test ! -s conftest.err
43824        } && test -s conftest$ac_exeext &&
43825        $as_test_x conftest$ac_exeext; then
43826   eval "$as_ac_var=yes"
43827 else
43828   echo "$as_me: failed program was:" >&5
43829 sed 's/^/| /' conftest.$ac_ext >&5
43830
43831         eval "$as_ac_var=no"
43832 fi
43833
43834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43835       conftest$ac_exeext conftest.$ac_ext
43836 fi
43837 ac_res=`eval echo '${'$as_ac_var'}'`
43838                { echo "$as_me:$LINENO: result: $ac_res" >&5
43839 echo "${ECHO_T}$ac_res" >&6; }
43840 if test `eval echo '${'$as_ac_var'}'` = yes; then
43841   cat >>confdefs.h <<_ACEOF
43842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43843 _ACEOF
43844
43845                 cat >>confdefs.h <<\_ACEOF
43846 #define HAVE_DLOPEN 1
43847 _ACEOF
43848
43849                 HAVE_DL_FUNCS=1
43850
43851 else
43852
43853                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43856   echo $ECHO_N "(cached) $ECHO_C" >&6
43857 else
43858   ac_check_lib_save_LIBS=$LIBS
43859 LIBS="-ldl  $LIBS"
43860 cat >conftest.$ac_ext <<_ACEOF
43861 /* confdefs.h.  */
43862 _ACEOF
43863 cat confdefs.h >>conftest.$ac_ext
43864 cat >>conftest.$ac_ext <<_ACEOF
43865 /* end confdefs.h.  */
43866
43867 /* Override any GCC internal prototype to avoid an error.
43868    Use char because int might match the return type of a GCC
43869    builtin and then its argument prototype would still apply.  */
43870 #ifdef __cplusplus
43871 extern "C"
43872 #endif
43873 char dlopen ();
43874 int
43875 main ()
43876 {
43877 return dlopen ();
43878   ;
43879   return 0;
43880 }
43881 _ACEOF
43882 rm -f conftest.$ac_objext conftest$ac_exeext
43883 if { (ac_try="$ac_link"
43884 case "(($ac_try" in
43885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43886   *) ac_try_echo=$ac_try;;
43887 esac
43888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43889   (eval "$ac_link") 2>conftest.er1
43890   ac_status=$?
43891   grep -v '^ *+' conftest.er1 >conftest.err
43892   rm -f conftest.er1
43893   cat conftest.err >&5
43894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895   (exit $ac_status); } && {
43896          test -z "$ac_c_werror_flag" ||
43897          test ! -s conftest.err
43898        } && test -s conftest$ac_exeext &&
43899        $as_test_x conftest$ac_exeext; then
43900   ac_cv_lib_dl_dlopen=yes
43901 else
43902   echo "$as_me: failed program was:" >&5
43903 sed 's/^/| /' conftest.$ac_ext >&5
43904
43905         ac_cv_lib_dl_dlopen=no
43906 fi
43907
43908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43909       conftest$ac_exeext conftest.$ac_ext
43910 LIBS=$ac_check_lib_save_LIBS
43911 fi
43912 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43913 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43914 if test $ac_cv_lib_dl_dlopen = yes; then
43915
43916                                 cat >>confdefs.h <<\_ACEOF
43917 #define HAVE_DLOPEN 1
43918 _ACEOF
43919
43920                                 HAVE_DL_FUNCS=1
43921                                 DL_LINK=" -ldl$DL_LINK"
43922
43923 else
43924
43925
43926 for ac_func in shl_load
43927 do
43928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43932   echo $ECHO_N "(cached) $ECHO_C" >&6
43933 else
43934   cat >conftest.$ac_ext <<_ACEOF
43935 /* confdefs.h.  */
43936 _ACEOF
43937 cat confdefs.h >>conftest.$ac_ext
43938 cat >>conftest.$ac_ext <<_ACEOF
43939 /* end confdefs.h.  */
43940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43942 #define $ac_func innocuous_$ac_func
43943
43944 /* System header to define __stub macros and hopefully few prototypes,
43945     which can conflict with char $ac_func (); below.
43946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43947     <limits.h> exists even on freestanding compilers.  */
43948
43949 #ifdef __STDC__
43950 # include <limits.h>
43951 #else
43952 # include <assert.h>
43953 #endif
43954
43955 #undef $ac_func
43956
43957 /* Override any GCC internal prototype to avoid an error.
43958    Use char because int might match the return type of a GCC
43959    builtin and then its argument prototype would still apply.  */
43960 #ifdef __cplusplus
43961 extern "C"
43962 #endif
43963 char $ac_func ();
43964 /* The GNU C library defines this for functions which it implements
43965     to always fail with ENOSYS.  Some functions are actually named
43966     something starting with __ and the normal name is an alias.  */
43967 #if defined __stub_$ac_func || defined __stub___$ac_func
43968 choke me
43969 #endif
43970
43971 int
43972 main ()
43973 {
43974 return $ac_func ();
43975   ;
43976   return 0;
43977 }
43978 _ACEOF
43979 rm -f conftest.$ac_objext conftest$ac_exeext
43980 if { (ac_try="$ac_link"
43981 case "(($ac_try" in
43982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43983   *) ac_try_echo=$ac_try;;
43984 esac
43985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43986   (eval "$ac_link") 2>conftest.er1
43987   ac_status=$?
43988   grep -v '^ *+' conftest.er1 >conftest.err
43989   rm -f conftest.er1
43990   cat conftest.err >&5
43991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992   (exit $ac_status); } && {
43993          test -z "$ac_c_werror_flag" ||
43994          test ! -s conftest.err
43995        } && test -s conftest$ac_exeext &&
43996        $as_test_x conftest$ac_exeext; then
43997   eval "$as_ac_var=yes"
43998 else
43999   echo "$as_me: failed program was:" >&5
44000 sed 's/^/| /' conftest.$ac_ext >&5
44001
44002         eval "$as_ac_var=no"
44003 fi
44004
44005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44006       conftest$ac_exeext conftest.$ac_ext
44007 fi
44008 ac_res=`eval echo '${'$as_ac_var'}'`
44009                { echo "$as_me:$LINENO: result: $ac_res" >&5
44010 echo "${ECHO_T}$ac_res" >&6; }
44011 if test `eval echo '${'$as_ac_var'}'` = yes; then
44012   cat >>confdefs.h <<_ACEOF
44013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44014 _ACEOF
44015
44016                                                 cat >>confdefs.h <<\_ACEOF
44017 #define HAVE_SHL_LOAD 1
44018 _ACEOF
44019
44020                                                 HAVE_SHL_FUNCS=1
44021
44022 else
44023
44024                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44025 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44026 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44027   echo $ECHO_N "(cached) $ECHO_C" >&6
44028 else
44029   ac_check_lib_save_LIBS=$LIBS
44030 LIBS="-lshl_load  $LIBS"
44031 cat >conftest.$ac_ext <<_ACEOF
44032 /* confdefs.h.  */
44033 _ACEOF
44034 cat confdefs.h >>conftest.$ac_ext
44035 cat >>conftest.$ac_ext <<_ACEOF
44036 /* end confdefs.h.  */
44037
44038 /* Override any GCC internal prototype to avoid an error.
44039    Use char because int might match the return type of a GCC
44040    builtin and then its argument prototype would still apply.  */
44041 #ifdef __cplusplus
44042 extern "C"
44043 #endif
44044 char dld ();
44045 int
44046 main ()
44047 {
44048 return dld ();
44049   ;
44050   return 0;
44051 }
44052 _ACEOF
44053 rm -f conftest.$ac_objext conftest$ac_exeext
44054 if { (ac_try="$ac_link"
44055 case "(($ac_try" in
44056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44057   *) ac_try_echo=$ac_try;;
44058 esac
44059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44060   (eval "$ac_link") 2>conftest.er1
44061   ac_status=$?
44062   grep -v '^ *+' conftest.er1 >conftest.err
44063   rm -f conftest.er1
44064   cat conftest.err >&5
44065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066   (exit $ac_status); } && {
44067          test -z "$ac_c_werror_flag" ||
44068          test ! -s conftest.err
44069        } && test -s conftest$ac_exeext &&
44070        $as_test_x conftest$ac_exeext; then
44071   ac_cv_lib_shl_load_dld=yes
44072 else
44073   echo "$as_me: failed program was:" >&5
44074 sed 's/^/| /' conftest.$ac_ext >&5
44075
44076         ac_cv_lib_shl_load_dld=no
44077 fi
44078
44079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44080       conftest$ac_exeext conftest.$ac_ext
44081 LIBS=$ac_check_lib_save_LIBS
44082 fi
44083 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44084 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44085 if test $ac_cv_lib_shl_load_dld = yes; then
44086
44087                                                                 HAVE_SHL_FUNCS=1
44088                                                                 DL_LINK=" -ldld$DL_LINK"
44089
44090 fi
44091
44092
44093 fi
44094 done
44095
44096
44097 fi
44098
44099
44100 fi
44101 done
44102
44103
44104                 if test "$HAVE_DL_FUNCS" = 1; then
44105
44106 for ac_func in dlerror
44107 do
44108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44112   echo $ECHO_N "(cached) $ECHO_C" >&6
44113 else
44114   cat >conftest.$ac_ext <<_ACEOF
44115 /* confdefs.h.  */
44116 _ACEOF
44117 cat confdefs.h >>conftest.$ac_ext
44118 cat >>conftest.$ac_ext <<_ACEOF
44119 /* end confdefs.h.  */
44120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44122 #define $ac_func innocuous_$ac_func
44123
44124 /* System header to define __stub macros and hopefully few prototypes,
44125     which can conflict with char $ac_func (); below.
44126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44127     <limits.h> exists even on freestanding compilers.  */
44128
44129 #ifdef __STDC__
44130 # include <limits.h>
44131 #else
44132 # include <assert.h>
44133 #endif
44134
44135 #undef $ac_func
44136
44137 /* Override any GCC internal prototype to avoid an error.
44138    Use char because int might match the return type of a GCC
44139    builtin and then its argument prototype would still apply.  */
44140 #ifdef __cplusplus
44141 extern "C"
44142 #endif
44143 char $ac_func ();
44144 /* The GNU C library defines this for functions which it implements
44145     to always fail with ENOSYS.  Some functions are actually named
44146     something starting with __ and the normal name is an alias.  */
44147 #if defined __stub_$ac_func || defined __stub___$ac_func
44148 choke me
44149 #endif
44150
44151 int
44152 main ()
44153 {
44154 return $ac_func ();
44155   ;
44156   return 0;
44157 }
44158 _ACEOF
44159 rm -f conftest.$ac_objext conftest$ac_exeext
44160 if { (ac_try="$ac_link"
44161 case "(($ac_try" in
44162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44163   *) ac_try_echo=$ac_try;;
44164 esac
44165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44166   (eval "$ac_link") 2>conftest.er1
44167   ac_status=$?
44168   grep -v '^ *+' conftest.er1 >conftest.err
44169   rm -f conftest.er1
44170   cat conftest.err >&5
44171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172   (exit $ac_status); } && {
44173          test -z "$ac_c_werror_flag" ||
44174          test ! -s conftest.err
44175        } && test -s conftest$ac_exeext &&
44176        $as_test_x conftest$ac_exeext; then
44177   eval "$as_ac_var=yes"
44178 else
44179   echo "$as_me: failed program was:" >&5
44180 sed 's/^/| /' conftest.$ac_ext >&5
44181
44182         eval "$as_ac_var=no"
44183 fi
44184
44185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44186       conftest$ac_exeext conftest.$ac_ext
44187 fi
44188 ac_res=`eval echo '${'$as_ac_var'}'`
44189                { echo "$as_me:$LINENO: result: $ac_res" >&5
44190 echo "${ECHO_T}$ac_res" >&6; }
44191 if test `eval echo '${'$as_ac_var'}'` = yes; then
44192   cat >>confdefs.h <<_ACEOF
44193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44194 _ACEOF
44195  cat >>confdefs.h <<\_ACEOF
44196 #define HAVE_DLERROR 1
44197 _ACEOF
44198
44199 else
44200
44201                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44202 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44203 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44204   echo $ECHO_N "(cached) $ECHO_C" >&6
44205 else
44206   ac_check_lib_save_LIBS=$LIBS
44207 LIBS="-ldl  $LIBS"
44208 cat >conftest.$ac_ext <<_ACEOF
44209 /* confdefs.h.  */
44210 _ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h.  */
44214
44215 /* Override any GCC internal prototype to avoid an error.
44216    Use char because int might match the return type of a GCC
44217    builtin and then its argument prototype would still apply.  */
44218 #ifdef __cplusplus
44219 extern "C"
44220 #endif
44221 char dlerror ();
44222 int
44223 main ()
44224 {
44225 return dlerror ();
44226   ;
44227   return 0;
44228 }
44229 _ACEOF
44230 rm -f conftest.$ac_objext conftest$ac_exeext
44231 if { (ac_try="$ac_link"
44232 case "(($ac_try" in
44233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44234   *) ac_try_echo=$ac_try;;
44235 esac
44236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44237   (eval "$ac_link") 2>conftest.er1
44238   ac_status=$?
44239   grep -v '^ *+' conftest.er1 >conftest.err
44240   rm -f conftest.er1
44241   cat conftest.err >&5
44242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44243   (exit $ac_status); } && {
44244          test -z "$ac_c_werror_flag" ||
44245          test ! -s conftest.err
44246        } && test -s conftest$ac_exeext &&
44247        $as_test_x conftest$ac_exeext; then
44248   ac_cv_lib_dl_dlerror=yes
44249 else
44250   echo "$as_me: failed program was:" >&5
44251 sed 's/^/| /' conftest.$ac_ext >&5
44252
44253         ac_cv_lib_dl_dlerror=no
44254 fi
44255
44256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44257       conftest$ac_exeext conftest.$ac_ext
44258 LIBS=$ac_check_lib_save_LIBS
44259 fi
44260 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44261 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44262 if test $ac_cv_lib_dl_dlerror = yes; then
44263   cat >>confdefs.h <<\_ACEOF
44264 #define HAVE_DLERROR 1
44265 _ACEOF
44266
44267 fi
44268
44269
44270
44271 fi
44272 done
44273
44274         fi
44275         fi
44276
44277         if test "$HAVE_DL_FUNCS" = 0; then
44278             if test "$HAVE_SHL_FUNCS" = 0; then
44279               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44280                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44281 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44282                   wxUSE_DYNAMIC_LOADER=no
44283                   wxUSE_DYNLIB_CLASS=no
44284               else
44285                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44286 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44287               fi
44288             fi
44289         fi
44290     fi
44291 fi
44292
44293 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44294     cat >>confdefs.h <<\_ACEOF
44295 #define wxUSE_DYNAMIC_LOADER 1
44296 _ACEOF
44297
44298 fi
44299 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44300     cat >>confdefs.h <<\_ACEOF
44301 #define wxUSE_DYNLIB_CLASS 1
44302 _ACEOF
44303
44304 fi
44305
44306
44307
44308 if test "$wxUSE_PLUGINS" = "yes" ; then
44309     if test "$wxUSE_SHARED" = "no" ; then
44310         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44311 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44312         wxUSE_PLUGINS=no
44313     fi
44314     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44315         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44316 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44317         wxUSE_PLUGINS=no
44318     fi
44319     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44320         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44321 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44322         wxUSE_PLUGINS=no
44323     fi
44324     if test "$wxUSE_PLUGINS" = "yes" ; then
44325         cat >>confdefs.h <<\_ACEOF
44326 #define wxUSE_PLUGINS 1
44327 _ACEOF
44328
44329     fi
44330 fi
44331
44332
44333 if test "$wxUSE_STL" = "yes"; then
44334   cat >>confdefs.h <<\_ACEOF
44335 #define wxUSE_STL 1
44336 _ACEOF
44337
44338 fi
44339
44340 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44341   cat >>confdefs.h <<\_ACEOF
44342 #define wxUSE_EXTENDED_RTTI 1
44343 _ACEOF
44344
44345 fi
44346
44347 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44348   cat >>confdefs.h <<\_ACEOF
44349 #define wxUSE_APPLE_IEEE 1
44350 _ACEOF
44351
44352 fi
44353
44354 if test "$wxUSE_TIMER" = "yes"; then
44355   cat >>confdefs.h <<\_ACEOF
44356 #define wxUSE_TIMER 1
44357 _ACEOF
44358
44359 fi
44360
44361 if test "$USE_UNIX" = "1" ; then
44362         if test "$wxUSE_MGL" != 1; then
44363                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44364 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44365 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44366   echo $ECHO_N "(cached) $ECHO_C" >&6
44367 else
44368
44369             cat >conftest.$ac_ext <<_ACEOF
44370 /* confdefs.h.  */
44371 _ACEOF
44372 cat confdefs.h >>conftest.$ac_ext
44373 cat >>conftest.$ac_ext <<_ACEOF
44374 /* end confdefs.h.  */
44375
44376                     #include <sys/ioctl.h>
44377                     #include <sys/soundcard.h>
44378
44379 int
44380 main ()
44381 {
44382
44383                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44384
44385   ;
44386   return 0;
44387 }
44388 _ACEOF
44389 rm -f conftest.$ac_objext conftest$ac_exeext
44390 if { (ac_try="$ac_link"
44391 case "(($ac_try" in
44392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44393   *) ac_try_echo=$ac_try;;
44394 esac
44395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44396   (eval "$ac_link") 2>conftest.er1
44397   ac_status=$?
44398   grep -v '^ *+' conftest.er1 >conftest.err
44399   rm -f conftest.er1
44400   cat conftest.err >&5
44401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402   (exit $ac_status); } && {
44403          test -z "$ac_c_werror_flag" ||
44404          test ! -s conftest.err
44405        } && test -s conftest$ac_exeext &&
44406        $as_test_x conftest$ac_exeext; then
44407   ac_cv_header_sys_soundcard=yes
44408 else
44409   echo "$as_me: failed program was:" >&5
44410 sed 's/^/| /' conftest.$ac_ext >&5
44411
44412
44413                     saveLibs="$LIBS"
44414                     LIBS="$saveLibs -lossaudio"
44415                     cat >conftest.$ac_ext <<_ACEOF
44416 /* confdefs.h.  */
44417 _ACEOF
44418 cat confdefs.h >>conftest.$ac_ext
44419 cat >>conftest.$ac_ext <<_ACEOF
44420 /* end confdefs.h.  */
44421
44422                             #include <sys/ioctl.h>
44423                             #include <sys/soundcard.h>
44424
44425 int
44426 main ()
44427 {
44428
44429                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44430
44431   ;
44432   return 0;
44433 }
44434 _ACEOF
44435 rm -f conftest.$ac_objext conftest$ac_exeext
44436 if { (ac_try="$ac_link"
44437 case "(($ac_try" in
44438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44439   *) ac_try_echo=$ac_try;;
44440 esac
44441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44442   (eval "$ac_link") 2>conftest.er1
44443   ac_status=$?
44444   grep -v '^ *+' conftest.er1 >conftest.err
44445   rm -f conftest.er1
44446   cat conftest.err >&5
44447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448   (exit $ac_status); } && {
44449          test -z "$ac_c_werror_flag" ||
44450          test ! -s conftest.err
44451        } && test -s conftest$ac_exeext &&
44452        $as_test_x conftest$ac_exeext; then
44453   ac_cv_header_sys_soundcard=yes
44454 else
44455   echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44457
44458
44459                             LIBS="$saveLibs"
44460                             ac_cv_header_sys_soundcard=no
44461
44462
44463 fi
44464
44465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44466       conftest$ac_exeext conftest.$ac_ext
44467
44468
44469 fi
44470
44471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44472       conftest$ac_exeext conftest.$ac_ext
44473
44474 fi
44475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44476 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44477     fi
44478
44479     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44480         cat >>confdefs.h <<\_ACEOF
44481 #define HAVE_SYS_SOUNDCARD_H 1
44482 _ACEOF
44483
44484     fi
44485 fi
44486
44487 WITH_PLUGIN_SDL=0
44488 if test "$wxUSE_SOUND" = "yes"; then
44489   if test "$USE_UNIX" = "1" ; then
44490     if test "$wxUSE_LIBSDL" != "no"; then
44491
44492 # Check whether --with-sdl-prefix was given.
44493 if test "${with_sdl_prefix+set}" = set; then
44494   withval=$with_sdl_prefix; sdl_prefix="$withval"
44495 else
44496   sdl_prefix=""
44497 fi
44498
44499
44500 # Check whether --with-sdl-exec-prefix was given.
44501 if test "${with_sdl_exec_prefix+set}" = set; then
44502   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44503 else
44504   sdl_exec_prefix=""
44505 fi
44506
44507 # Check whether --enable-sdltest was given.
44508 if test "${enable_sdltest+set}" = set; then
44509   enableval=$enable_sdltest;
44510 else
44511   enable_sdltest=yes
44512 fi
44513
44514
44515   if test x$sdl_exec_prefix != x ; then
44516     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44517     if test x${SDL_CONFIG+set} != xset ; then
44518       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44519     fi
44520   fi
44521   if test x$sdl_prefix != x ; then
44522     sdl_args="$sdl_args --prefix=$sdl_prefix"
44523     if test x${SDL_CONFIG+set} != xset ; then
44524       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44525     fi
44526   fi
44527
44528   if test "x$prefix" != xNONE; then
44529     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44530   fi
44531   # Extract the first word of "sdl-config", so it can be a program name with args.
44532 set dummy sdl-config; ac_word=$2
44533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44535 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44536   echo $ECHO_N "(cached) $ECHO_C" >&6
44537 else
44538   case $SDL_CONFIG in
44539   [\\/]* | ?:[\\/]*)
44540   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44541   ;;
44542   *)
44543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44544 for as_dir in $PATH
44545 do
44546   IFS=$as_save_IFS
44547   test -z "$as_dir" && as_dir=.
44548   for ac_exec_ext in '' $ac_executable_extensions; do
44549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44550     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44552     break 2
44553   fi
44554 done
44555 done
44556 IFS=$as_save_IFS
44557
44558   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44559   ;;
44560 esac
44561 fi
44562 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44563 if test -n "$SDL_CONFIG"; then
44564   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44565 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44566 else
44567   { echo "$as_me:$LINENO: result: no" >&5
44568 echo "${ECHO_T}no" >&6; }
44569 fi
44570
44571
44572   min_sdl_version=1.2.0
44573   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44574 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44575   no_sdl=""
44576   if test "$SDL_CONFIG" = "no" ; then
44577     no_sdl=yes
44578   else
44579     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44580     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44581
44582     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44583            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44584     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44585            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44586     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44587            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44588     if test "x$enable_sdltest" = "xyes" ; then
44589       ac_save_CFLAGS="$CFLAGS"
44590       ac_save_CXXFLAGS="$CXXFLAGS"
44591       ac_save_LIBS="$LIBS"
44592       CFLAGS="$CFLAGS $SDL_CFLAGS"
44593       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44594       LIBS="$LIBS $SDL_LIBS"
44595       rm -f conf.sdltest
44596       if test "$cross_compiling" = yes; then
44597   echo $ac_n "cross compiling; assumed OK... $ac_c"
44598 else
44599   cat >conftest.$ac_ext <<_ACEOF
44600 /* confdefs.h.  */
44601 _ACEOF
44602 cat confdefs.h >>conftest.$ac_ext
44603 cat >>conftest.$ac_ext <<_ACEOF
44604 /* end confdefs.h.  */
44605
44606 #include <stdio.h>
44607 #include <stdlib.h>
44608 #include <string.h>
44609 #include "SDL.h"
44610
44611 char*
44612 my_strdup (char *str)
44613 {
44614   char *new_str;
44615
44616   if (str)
44617     {
44618       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44619       strcpy (new_str, str);
44620     }
44621   else
44622     new_str = NULL;
44623
44624   return new_str;
44625 }
44626
44627 int main (int argc, char *argv[])
44628 {
44629   int major, minor, micro;
44630   char *tmp_version;
44631
44632   /* This hangs on some systems (?)
44633   system ("touch conf.sdltest");
44634   */
44635   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44636
44637   /* HP/UX 9 (%@#!) writes to sscanf strings */
44638   tmp_version = my_strdup("$min_sdl_version");
44639   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44640      printf("%s, bad version string\n", "$min_sdl_version");
44641      exit(1);
44642    }
44643
44644    if (($sdl_major_version > major) ||
44645       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44646       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44647     {
44648       return 0;
44649     }
44650   else
44651     {
44652       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44653       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44654       printf("*** best to upgrade to the required version.\n");
44655       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44656       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44657       printf("*** config.cache before re-running configure\n");
44658       return 1;
44659     }
44660 }
44661
44662
44663 _ACEOF
44664 rm -f conftest$ac_exeext
44665 if { (ac_try="$ac_link"
44666 case "(($ac_try" in
44667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44668   *) ac_try_echo=$ac_try;;
44669 esac
44670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44671   (eval "$ac_link") 2>&5
44672   ac_status=$?
44673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44675   { (case "(($ac_try" in
44676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44677   *) ac_try_echo=$ac_try;;
44678 esac
44679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44680   (eval "$ac_try") 2>&5
44681   ac_status=$?
44682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683   (exit $ac_status); }; }; then
44684   :
44685 else
44686   echo "$as_me: program exited with status $ac_status" >&5
44687 echo "$as_me: failed program was:" >&5
44688 sed 's/^/| /' conftest.$ac_ext >&5
44689
44690 ( exit $ac_status )
44691 no_sdl=yes
44692 fi
44693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44694 fi
44695
44696
44697        CFLAGS="$ac_save_CFLAGS"
44698        CXXFLAGS="$ac_save_CXXFLAGS"
44699        LIBS="$ac_save_LIBS"
44700      fi
44701   fi
44702   if test "x$no_sdl" = x ; then
44703      { echo "$as_me:$LINENO: result: yes" >&5
44704 echo "${ECHO_T}yes" >&6; }
44705
44706                     EXTRALIBS_SDL="$SDL_LIBS"
44707                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44708                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44709                     cat >>confdefs.h <<\_ACEOF
44710 #define wxUSE_LIBSDL 1
44711 _ACEOF
44712
44713
44714   else
44715      { echo "$as_me:$LINENO: result: no" >&5
44716 echo "${ECHO_T}no" >&6; }
44717      if test "$SDL_CONFIG" = "no" ; then
44718        echo "*** The sdl-config script installed by SDL could not be found"
44719        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44720        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44721        echo "*** full path to sdl-config."
44722      else
44723        if test -f conf.sdltest ; then
44724         :
44725        else
44726           echo "*** Could not run SDL test program, checking why..."
44727           CFLAGS="$CFLAGS $SDL_CFLAGS"
44728           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44729           LIBS="$LIBS $SDL_LIBS"
44730           cat >conftest.$ac_ext <<_ACEOF
44731 /* confdefs.h.  */
44732 _ACEOF
44733 cat confdefs.h >>conftest.$ac_ext
44734 cat >>conftest.$ac_ext <<_ACEOF
44735 /* end confdefs.h.  */
44736
44737 #include <stdio.h>
44738 #include "SDL.h"
44739
44740 int main(int argc, char *argv[])
44741 { return 0; }
44742 #undef  main
44743 #define main K_and_R_C_main
44744
44745 int
44746 main ()
44747 {
44748  return 0;
44749   ;
44750   return 0;
44751 }
44752 _ACEOF
44753 rm -f conftest.$ac_objext conftest$ac_exeext
44754 if { (ac_try="$ac_link"
44755 case "(($ac_try" in
44756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44757   *) ac_try_echo=$ac_try;;
44758 esac
44759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44760   (eval "$ac_link") 2>conftest.er1
44761   ac_status=$?
44762   grep -v '^ *+' conftest.er1 >conftest.err
44763   rm -f conftest.er1
44764   cat conftest.err >&5
44765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766   (exit $ac_status); } && {
44767          test -z "$ac_c_werror_flag" ||
44768          test ! -s conftest.err
44769        } && test -s conftest$ac_exeext &&
44770        $as_test_x conftest$ac_exeext; then
44771    echo "*** The test program compiled, but did not run. This usually means"
44772           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44773           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44774           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44775           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44776           echo "*** is required on your system"
44777           echo "***"
44778           echo "*** If you have an old version installed, it is best to remove it, although"
44779           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44780 else
44781   echo "$as_me: failed program was:" >&5
44782 sed 's/^/| /' conftest.$ac_ext >&5
44783
44784          echo "*** The test program failed to compile or link. See the file config.log for the"
44785           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44786           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44787           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44788 fi
44789
44790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44791       conftest$ac_exeext conftest.$ac_ext
44792           CFLAGS="$ac_save_CFLAGS"
44793           CXXFLAGS="$ac_save_CXXFLAGS"
44794           LIBS="$ac_save_LIBS"
44795        fi
44796      fi
44797      SDL_CFLAGS=""
44798      SDL_LIBS=""
44799      wxUSE_LIBSDL="no"
44800   fi
44801
44802
44803   rm -f conf.sdltest
44804
44805       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44806         WITH_PLUGIN_SDL=1
44807       fi
44808     fi
44809   else
44810         if test "$wxUSE_MGL" = 1; then
44811         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44812 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44813         wxUSE_SOUND="no"
44814     fi
44815   fi
44816 fi
44817
44818 if test "$wxUSE_SOUND" = "yes"; then
44819   cat >>confdefs.h <<\_ACEOF
44820 #define wxUSE_SOUND 1
44821 _ACEOF
44822
44823   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44824 fi
44825
44826 if test "$WXGTK20" = 1; then
44827
44828
44829 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44830         if test -n "$ac_tool_prefix"; then
44831   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44832 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44836   echo $ECHO_N "(cached) $ECHO_C" >&6
44837 else
44838   case $PKG_CONFIG in
44839   [\\/]* | ?:[\\/]*)
44840   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44841   ;;
44842   *)
44843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44844 for as_dir in $PATH
44845 do
44846   IFS=$as_save_IFS
44847   test -z "$as_dir" && as_dir=.
44848   for ac_exec_ext in '' $ac_executable_extensions; do
44849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44850     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44852     break 2
44853   fi
44854 done
44855 done
44856 IFS=$as_save_IFS
44857
44858   ;;
44859 esac
44860 fi
44861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44862 if test -n "$PKG_CONFIG"; then
44863   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44864 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44865 else
44866   { echo "$as_me:$LINENO: result: no" >&5
44867 echo "${ECHO_T}no" >&6; }
44868 fi
44869
44870
44871 fi
44872 if test -z "$ac_cv_path_PKG_CONFIG"; then
44873   ac_pt_PKG_CONFIG=$PKG_CONFIG
44874   # Extract the first word of "pkg-config", so it can be a program name with args.
44875 set dummy pkg-config; ac_word=$2
44876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44878 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44879   echo $ECHO_N "(cached) $ECHO_C" >&6
44880 else
44881   case $ac_pt_PKG_CONFIG in
44882   [\\/]* | ?:[\\/]*)
44883   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44884   ;;
44885   *)
44886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44887 for as_dir in $PATH
44888 do
44889   IFS=$as_save_IFS
44890   test -z "$as_dir" && as_dir=.
44891   for ac_exec_ext in '' $ac_executable_extensions; do
44892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44893     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44895     break 2
44896   fi
44897 done
44898 done
44899 IFS=$as_save_IFS
44900
44901   ;;
44902 esac
44903 fi
44904 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44905 if test -n "$ac_pt_PKG_CONFIG"; then
44906   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44907 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44908 else
44909   { echo "$as_me:$LINENO: result: no" >&5
44910 echo "${ECHO_T}no" >&6; }
44911 fi
44912
44913   if test "x$ac_pt_PKG_CONFIG" = x; then
44914     PKG_CONFIG=""
44915   else
44916     case $cross_compiling:$ac_tool_warned in
44917 yes:)
44918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44919 whose name does not start with the host triplet.  If you think this
44920 configuration is useful to you, please write to autoconf@gnu.org." >&5
44921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44922 whose name does not start with the host triplet.  If you think this
44923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44924 ac_tool_warned=yes ;;
44925 esac
44926     PKG_CONFIG=$ac_pt_PKG_CONFIG
44927   fi
44928 else
44929   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44930 fi
44931
44932 fi
44933 if test -n "$PKG_CONFIG"; then
44934         _pkg_min_version=0.9.0
44935         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44936 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44937         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44938                 { echo "$as_me:$LINENO: result: yes" >&5
44939 echo "${ECHO_T}yes" >&6; }
44940         else
44941                 { echo "$as_me:$LINENO: result: no" >&5
44942 echo "${ECHO_T}no" >&6; }
44943                 PKG_CONFIG=""
44944         fi
44945
44946 fi
44947
44948     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44949         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44950
44951
44952 pkg_failed=no
44953 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44954 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44955
44956 if test -n "$PKG_CONFIG"; then
44957     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44958         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44959     else
44960         if test -n "$PKG_CONFIG" && \
44961     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44962   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44963   ac_status=$?
44964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965   (exit $ac_status); }; then
44966   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44967 else
44968   pkg_failed=yes
44969 fi
44970     fi
44971 else
44972         pkg_failed=untried
44973 fi
44974 if test -n "$PKG_CONFIG"; then
44975     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44976         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44977     else
44978         if test -n "$PKG_CONFIG" && \
44979     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44980   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44981   ac_status=$?
44982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44983   (exit $ac_status); }; then
44984   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44985 else
44986   pkg_failed=yes
44987 fi
44988     fi
44989 else
44990         pkg_failed=untried
44991 fi
44992
44993
44994
44995 if test $pkg_failed = yes; then
44996
44997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44998         _pkg_short_errors_supported=yes
44999 else
45000         _pkg_short_errors_supported=no
45001 fi
45002         if test $_pkg_short_errors_supported = yes; then
45003                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45004         else
45005                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45006         fi
45007         # Put the nasty error message in config.log where it belongs
45008         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45009
45010
45011                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45012 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45013                         wxUSE_LIBGNOMEPRINT="no"
45014
45015
45016 elif test $pkg_failed = untried; then
45017
45018                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45019 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45020                         wxUSE_LIBGNOMEPRINT="no"
45021
45022
45023 else
45024         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45025         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45026         { echo "$as_me:$LINENO: result: yes" >&5
45027 echo "${ECHO_T}yes" >&6; }
45028
45029                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45030                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45031                         cat >>confdefs.h <<\_ACEOF
45032 #define wxUSE_LIBGNOMEPRINT 1
45033 _ACEOF
45034
45035
45036 fi
45037         fi
45038     fi
45039
45040     if test "$wxUSE_MIMETYPE" = "yes" ; then
45041         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45042
45043
45044 pkg_failed=no
45045 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45046 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45047
45048 if test -n "$PKG_CONFIG"; then
45049     if test -n "$GNOMEVFS_CFLAGS"; then
45050         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45051     else
45052         if test -n "$PKG_CONFIG" && \
45053     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45054   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45055   ac_status=$?
45056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45057   (exit $ac_status); }; then
45058   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45059 else
45060   pkg_failed=yes
45061 fi
45062     fi
45063 else
45064         pkg_failed=untried
45065 fi
45066 if test -n "$PKG_CONFIG"; then
45067     if test -n "$GNOMEVFS_LIBS"; then
45068         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45069     else
45070         if test -n "$PKG_CONFIG" && \
45071     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45072   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45073   ac_status=$?
45074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075   (exit $ac_status); }; then
45076   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45077 else
45078   pkg_failed=yes
45079 fi
45080     fi
45081 else
45082         pkg_failed=untried
45083 fi
45084
45085
45086
45087 if test $pkg_failed = yes; then
45088
45089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45090         _pkg_short_errors_supported=yes
45091 else
45092         _pkg_short_errors_supported=no
45093 fi
45094         if test $_pkg_short_errors_supported = yes; then
45095                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45096         else
45097                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45098         fi
45099         # Put the nasty error message in config.log where it belongs
45100         echo "$GNOMEVFS_PKG_ERRORS" >&5
45101
45102
45103                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45104 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45105                         wxUSE_LIBGNOMEVFS="no"
45106
45107
45108 elif test $pkg_failed = untried; then
45109
45110                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45111 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45112                         wxUSE_LIBGNOMEVFS="no"
45113
45114
45115 else
45116         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45117         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45118         { echo "$as_me:$LINENO: result: yes" >&5
45119 echo "${ECHO_T}yes" >&6; }
45120
45121                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45122                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45123                         cat >>confdefs.h <<\_ACEOF
45124 #define wxUSE_LIBGNOMEVFS 1
45125 _ACEOF
45126
45127
45128 fi
45129         fi
45130     fi
45131
45132     if test "$wxUSE_LIBHILDON" = "yes" ; then
45133
45134 pkg_failed=no
45135 { echo "$as_me:$LINENO: checking for HILDON" >&5
45136 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45137
45138 if test -n "$PKG_CONFIG"; then
45139     if test -n "$HILDON_CFLAGS"; then
45140         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45141     else
45142         if test -n "$PKG_CONFIG" && \
45143     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45144   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45145   ac_status=$?
45146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45147   (exit $ac_status); }; then
45148   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45149 else
45150   pkg_failed=yes
45151 fi
45152     fi
45153 else
45154         pkg_failed=untried
45155 fi
45156 if test -n "$PKG_CONFIG"; then
45157     if test -n "$HILDON_LIBS"; then
45158         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45159     else
45160         if test -n "$PKG_CONFIG" && \
45161     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45162   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45163   ac_status=$?
45164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45165   (exit $ac_status); }; then
45166   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45167 else
45168   pkg_failed=yes
45169 fi
45170     fi
45171 else
45172         pkg_failed=untried
45173 fi
45174
45175
45176
45177 if test $pkg_failed = yes; then
45178
45179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45180         _pkg_short_errors_supported=yes
45181 else
45182         _pkg_short_errors_supported=no
45183 fi
45184         if test $_pkg_short_errors_supported = yes; then
45185                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45186         else
45187                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45188         fi
45189         # Put the nasty error message in config.log where it belongs
45190         echo "$HILDON_PKG_ERRORS" >&5
45191
45192
45193                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45194 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45195                         wxUSE_LIBHILDON="no"
45196
45197
45198 elif test $pkg_failed = untried; then
45199
45200                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45201 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45202                         wxUSE_LIBHILDON="no"
45203
45204
45205 else
45206         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45207         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45208         { echo "$as_me:$LINENO: result: yes" >&5
45209 echo "${ECHO_T}yes" >&6; }
45210
45211                 EXTRALIBS_HILDON="$HILDON_LIBS"
45212                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45213                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45214                 cat >>confdefs.h <<\_ACEOF
45215 #define wxUSE_LIBHILDON 1
45216 _ACEOF
45217
45218
45219 fi
45220     fi
45221 fi
45222
45223 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45224   cat >>confdefs.h <<\_ACEOF
45225 #define wxUSE_CMDLINE_PARSER 1
45226 _ACEOF
45227
45228 fi
45229
45230 if test "$wxUSE_STOPWATCH" = "yes"; then
45231   cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_STOPWATCH 1
45233 _ACEOF
45234
45235 fi
45236
45237 if test "$wxUSE_DATETIME" = "yes"; then
45238   cat >>confdefs.h <<\_ACEOF
45239 #define wxUSE_DATETIME 1
45240 _ACEOF
45241
45242 fi
45243
45244 if test "$wxUSE_FILE" = "yes"; then
45245   cat >>confdefs.h <<\_ACEOF
45246 #define wxUSE_FILE 1
45247 _ACEOF
45248
45249 fi
45250
45251 if test "$wxUSE_FFILE" = "yes"; then
45252   cat >>confdefs.h <<\_ACEOF
45253 #define wxUSE_FFILE 1
45254 _ACEOF
45255
45256 fi
45257
45258 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45259   if test "$wxUSE_STREAMS" != yes; then
45260     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45261 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45262     wxUSE_ARCHIVE_STREAMS=no
45263   else
45264     cat >>confdefs.h <<\_ACEOF
45265 #define wxUSE_ARCHIVE_STREAMS 1
45266 _ACEOF
45267
45268   fi
45269 fi
45270
45271 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45272   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45273     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45274 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45275   elif test "$wxUSE_ZLIB" = "no"; then
45276     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45277 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45278   else
45279     cat >>confdefs.h <<\_ACEOF
45280 #define wxUSE_ZIPSTREAM 1
45281 _ACEOF
45282
45283   fi
45284 fi
45285
45286 if test "$wxUSE_TARSTREAM" = "yes"; then
45287   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45288     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45289 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45290   else
45291     cat >>confdefs.h <<\_ACEOF
45292 #define wxUSE_TARSTREAM 1
45293 _ACEOF
45294
45295   fi
45296 fi
45297
45298 if test "$wxUSE_FILESYSTEM" = "yes"; then
45299   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45300     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45301 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45302     wxUSE_FILESYSTEM=no
45303   else
45304     cat >>confdefs.h <<\_ACEOF
45305 #define wxUSE_FILESYSTEM 1
45306 _ACEOF
45307
45308   fi
45309 fi
45310
45311 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45312   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45313     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45314 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45315   else
45316     cat >>confdefs.h <<\_ACEOF
45317 #define wxUSE_FS_ARCHIVE 1
45318 _ACEOF
45319
45320   fi
45321 fi
45322
45323 if test "$wxUSE_FS_ZIP" = "yes"; then
45324   if test "$wxUSE_FS_ARCHIVE" != yes; then
45325     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45326 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45327   else
45328     cat >>confdefs.h <<\_ACEOF
45329 #define wxUSE_FS_ZIP 1
45330 _ACEOF
45331
45332   fi
45333 fi
45334
45335 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45336   if test "$USE_UNIX" != 1; then
45337     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45338 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45339     wxUSE_ON_FATAL_EXCEPTION=no
45340   else
45341     cat >>confdefs.h <<\_ACEOF
45342 #define wxUSE_ON_FATAL_EXCEPTION 1
45343 _ACEOF
45344
45345   fi
45346 fi
45347
45348 if test "$wxUSE_STACKWALKER" = "yes"; then
45349     cat >>confdefs.h <<\_ACEOF
45350 #define wxUSE_STACKWALKER 1
45351 _ACEOF
45352
45353 fi
45354
45355 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45356     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45357         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45358 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45359         wxUSE_DEBUGREPORT=no
45360     else
45361         cat >>confdefs.h <<\_ACEOF
45362 #define wxUSE_DEBUGREPORT 1
45363 _ACEOF
45364
45365         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45366             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45367         fi
45368     fi
45369 fi
45370
45371 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45372   cat >>confdefs.h <<\_ACEOF
45373 #define wxUSE_SNGLINST_CHECKER 1
45374 _ACEOF
45375
45376 fi
45377
45378 if test "$wxUSE_BUSYINFO" = "yes"; then
45379   cat >>confdefs.h <<\_ACEOF
45380 #define wxUSE_BUSYINFO 1
45381 _ACEOF
45382
45383 fi
45384
45385 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45386   cat >>confdefs.h <<\_ACEOF
45387 #define wxUSE_STD_IOSTREAM 1
45388 _ACEOF
45389
45390 fi
45391
45392 if test "$wxUSE_STD_STRING" = "yes"; then
45393   cat >>confdefs.h <<\_ACEOF
45394 #define wxUSE_STD_STRING 1
45395 _ACEOF
45396
45397 fi
45398
45399 if test "$wxUSE_STDPATHS" = "yes"; then
45400   cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_STDPATHS 1
45402 _ACEOF
45403
45404 fi
45405
45406 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45407     cat >>confdefs.h <<\_ACEOF
45408 #define wxUSE_TEXTBUFFER 1
45409 _ACEOF
45410
45411 fi
45412
45413 if test "$wxUSE_TEXTFILE" = "yes"; then
45414   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45415     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45416 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45417   else
45418     cat >>confdefs.h <<\_ACEOF
45419 #define wxUSE_TEXTFILE 1
45420 _ACEOF
45421
45422   fi
45423 fi
45424
45425 if test "$wxUSE_CONFIG" = "yes" ; then
45426   if test "$wxUSE_TEXTFILE" != "yes"; then
45427     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45428 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45429   else
45430     cat >>confdefs.h <<\_ACEOF
45431 #define wxUSE_CONFIG 1
45432 _ACEOF
45433
45434     cat >>confdefs.h <<\_ACEOF
45435 #define wxUSE_CONFIG_NATIVE 1
45436 _ACEOF
45437
45438     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45439   fi
45440 fi
45441
45442 if test "$wxUSE_INTL" = "yes" ; then
45443   if test "$wxUSE_FILE" != "yes"; then
45444     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45445 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45446   else
45447     cat >>confdefs.h <<\_ACEOF
45448 #define wxUSE_INTL 1
45449 _ACEOF
45450
45451     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45452     GUIDIST="$GUIDIST INTL_DIST"
45453   fi
45454 fi
45455
45456 if test "$wxUSE_LOG" = "yes"; then
45457   cat >>confdefs.h <<\_ACEOF
45458 #define wxUSE_LOG 1
45459 _ACEOF
45460
45461
45462     if test "$wxUSE_LOGGUI" = "yes"; then
45463       cat >>confdefs.h <<\_ACEOF
45464 #define wxUSE_LOGGUI 1
45465 _ACEOF
45466
45467     fi
45468
45469     if test "$wxUSE_LOGWINDOW" = "yes"; then
45470       cat >>confdefs.h <<\_ACEOF
45471 #define wxUSE_LOGWINDOW 1
45472 _ACEOF
45473
45474     fi
45475
45476     if test "$wxUSE_LOGDIALOG" = "yes"; then
45477       cat >>confdefs.h <<\_ACEOF
45478 #define wxUSE_LOG_DIALOG 1
45479 _ACEOF
45480
45481     fi
45482
45483         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45484 fi
45485
45486 if test "$wxUSE_LONGLONG" = "yes"; then
45487   cat >>confdefs.h <<\_ACEOF
45488 #define wxUSE_LONGLONG 1
45489 _ACEOF
45490
45491 fi
45492
45493 if test "$wxUSE_GEOMETRY" = "yes"; then
45494   cat >>confdefs.h <<\_ACEOF
45495 #define wxUSE_GEOMETRY 1
45496 _ACEOF
45497
45498 fi
45499
45500 if test "$wxUSE_BASE64" = "yes"; then
45501   cat >>confdefs.h <<\_ACEOF
45502 #define wxUSE_BASE64 1
45503 _ACEOF
45504
45505 fi
45506
45507 if test "$wxUSE_STREAMS" = "yes" ; then
45508   cat >>confdefs.h <<\_ACEOF
45509 #define wxUSE_STREAMS 1
45510 _ACEOF
45511
45512 fi
45513
45514 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45515   cat >>confdefs.h <<\_ACEOF
45516 #define wxUSE_PRINTF_POS_PARAMS 1
45517 _ACEOF
45518
45519 fi
45520
45521 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45522   cat >>confdefs.h <<\_ACEOF
45523 #define wxUSE_OBJC_UNIQUIFYING 1
45524 _ACEOF
45525
45526 fi
45527
45528
45529 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45530     cat >>confdefs.h <<\_ACEOF
45531 #define wxUSE_CONSOLE_EVENTLOOP 1
45532 _ACEOF
45533
45534
45535     if test "$wxUSE_UNIX" = "yes"; then
45536         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45537             cat >>confdefs.h <<\_ACEOF
45538 #define wxUSE_SELECT_DISPATCHER 1
45539 _ACEOF
45540
45541         fi
45542
45543         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45544
45545 for ac_header in sys/epoll.h
45546 do
45547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45552   echo $ECHO_N "(cached) $ECHO_C" >&6
45553 fi
45554 ac_res=`eval echo '${'$as_ac_Header'}'`
45555                { echo "$as_me:$LINENO: result: $ac_res" >&5
45556 echo "${ECHO_T}$ac_res" >&6; }
45557 else
45558   # Is the header compilable?
45559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45561 cat >conftest.$ac_ext <<_ACEOF
45562 /* confdefs.h.  */
45563 _ACEOF
45564 cat confdefs.h >>conftest.$ac_ext
45565 cat >>conftest.$ac_ext <<_ACEOF
45566 /* end confdefs.h.  */
45567 $ac_includes_default
45568 #include <$ac_header>
45569 _ACEOF
45570 rm -f conftest.$ac_objext
45571 if { (ac_try="$ac_compile"
45572 case "(($ac_try" in
45573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45574   *) ac_try_echo=$ac_try;;
45575 esac
45576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45577   (eval "$ac_compile") 2>conftest.er1
45578   ac_status=$?
45579   grep -v '^ *+' conftest.er1 >conftest.err
45580   rm -f conftest.er1
45581   cat conftest.err >&5
45582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45583   (exit $ac_status); } && {
45584          test -z "$ac_c_werror_flag" ||
45585          test ! -s conftest.err
45586        } && test -s conftest.$ac_objext; then
45587   ac_header_compiler=yes
45588 else
45589   echo "$as_me: failed program was:" >&5
45590 sed 's/^/| /' conftest.$ac_ext >&5
45591
45592         ac_header_compiler=no
45593 fi
45594
45595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45597 echo "${ECHO_T}$ac_header_compiler" >&6; }
45598
45599 # Is the header present?
45600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45602 cat >conftest.$ac_ext <<_ACEOF
45603 /* confdefs.h.  */
45604 _ACEOF
45605 cat confdefs.h >>conftest.$ac_ext
45606 cat >>conftest.$ac_ext <<_ACEOF
45607 /* end confdefs.h.  */
45608 #include <$ac_header>
45609 _ACEOF
45610 if { (ac_try="$ac_cpp conftest.$ac_ext"
45611 case "(($ac_try" in
45612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45613   *) ac_try_echo=$ac_try;;
45614 esac
45615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45617   ac_status=$?
45618   grep -v '^ *+' conftest.er1 >conftest.err
45619   rm -f conftest.er1
45620   cat conftest.err >&5
45621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45622   (exit $ac_status); } >/dev/null && {
45623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45624          test ! -s conftest.err
45625        }; then
45626   ac_header_preproc=yes
45627 else
45628   echo "$as_me: failed program was:" >&5
45629 sed 's/^/| /' conftest.$ac_ext >&5
45630
45631   ac_header_preproc=no
45632 fi
45633
45634 rm -f conftest.err conftest.$ac_ext
45635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45636 echo "${ECHO_T}$ac_header_preproc" >&6; }
45637
45638 # So?  What about this header?
45639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45640   yes:no: )
45641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45645     ac_header_preproc=yes
45646     ;;
45647   no:yes:* )
45648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45660     ( cat <<\_ASBOX
45661 ## ----------------------------------------- ##
45662 ## Report this to wx-dev@lists.wxwidgets.org ##
45663 ## ----------------------------------------- ##
45664 _ASBOX
45665      ) | sed "s/^/$as_me: WARNING:     /" >&2
45666     ;;
45667 esac
45668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45671   echo $ECHO_N "(cached) $ECHO_C" >&6
45672 else
45673   eval "$as_ac_Header=\$ac_header_preproc"
45674 fi
45675 ac_res=`eval echo '${'$as_ac_Header'}'`
45676                { echo "$as_me:$LINENO: result: $ac_res" >&5
45677 echo "${ECHO_T}$ac_res" >&6; }
45678
45679 fi
45680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45681   cat >>confdefs.h <<_ACEOF
45682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45683 _ACEOF
45684
45685 fi
45686
45687 done
45688
45689             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45690                 cat >>confdefs.h <<\_ACEOF
45691 #define wxUSE_EPOLL_DISPATCHER 1
45692 _ACEOF
45693
45694             else
45695                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45696 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45697             fi
45698         fi
45699     fi
45700 fi
45701
45702
45703
45704
45705 for ac_func in gettimeofday ftime
45706 do
45707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45711   echo $ECHO_N "(cached) $ECHO_C" >&6
45712 else
45713   cat >conftest.$ac_ext <<_ACEOF
45714 /* confdefs.h.  */
45715 _ACEOF
45716 cat confdefs.h >>conftest.$ac_ext
45717 cat >>conftest.$ac_ext <<_ACEOF
45718 /* end confdefs.h.  */
45719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45721 #define $ac_func innocuous_$ac_func
45722
45723 /* System header to define __stub macros and hopefully few prototypes,
45724     which can conflict with char $ac_func (); below.
45725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45726     <limits.h> exists even on freestanding compilers.  */
45727
45728 #ifdef __STDC__
45729 # include <limits.h>
45730 #else
45731 # include <assert.h>
45732 #endif
45733
45734 #undef $ac_func
45735
45736 /* Override any GCC internal prototype to avoid an error.
45737    Use char because int might match the return type of a GCC
45738    builtin and then its argument prototype would still apply.  */
45739 #ifdef __cplusplus
45740 extern "C"
45741 #endif
45742 char $ac_func ();
45743 /* The GNU C library defines this for functions which it implements
45744     to always fail with ENOSYS.  Some functions are actually named
45745     something starting with __ and the normal name is an alias.  */
45746 #if defined __stub_$ac_func || defined __stub___$ac_func
45747 choke me
45748 #endif
45749
45750 int
45751 main ()
45752 {
45753 return $ac_func ();
45754   ;
45755   return 0;
45756 }
45757 _ACEOF
45758 rm -f conftest.$ac_objext conftest$ac_exeext
45759 if { (ac_try="$ac_link"
45760 case "(($ac_try" in
45761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45762   *) ac_try_echo=$ac_try;;
45763 esac
45764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45765   (eval "$ac_link") 2>conftest.er1
45766   ac_status=$?
45767   grep -v '^ *+' conftest.er1 >conftest.err
45768   rm -f conftest.er1
45769   cat conftest.err >&5
45770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771   (exit $ac_status); } && {
45772          test -z "$ac_c_werror_flag" ||
45773          test ! -s conftest.err
45774        } && test -s conftest$ac_exeext &&
45775        $as_test_x conftest$ac_exeext; then
45776   eval "$as_ac_var=yes"
45777 else
45778   echo "$as_me: failed program was:" >&5
45779 sed 's/^/| /' conftest.$ac_ext >&5
45780
45781         eval "$as_ac_var=no"
45782 fi
45783
45784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45785       conftest$ac_exeext conftest.$ac_ext
45786 fi
45787 ac_res=`eval echo '${'$as_ac_var'}'`
45788                { echo "$as_me:$LINENO: result: $ac_res" >&5
45789 echo "${ECHO_T}$ac_res" >&6; }
45790 if test `eval echo '${'$as_ac_var'}'` = yes; then
45791   cat >>confdefs.h <<_ACEOF
45792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45793 _ACEOF
45794  break
45795 fi
45796 done
45797
45798
45799 if test "$ac_cv_func_gettimeofday" = "yes"; then
45800     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45801 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45802 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45803   echo $ECHO_N "(cached) $ECHO_C" >&6
45804 else
45805
45806                 cat >conftest.$ac_ext <<_ACEOF
45807 /* confdefs.h.  */
45808 _ACEOF
45809 cat confdefs.h >>conftest.$ac_ext
45810 cat >>conftest.$ac_ext <<_ACEOF
45811 /* end confdefs.h.  */
45812
45813                 #include <sys/time.h>
45814                 #include <unistd.h>
45815
45816 int
45817 main ()
45818 {
45819
45820                 struct timeval tv;
45821                 gettimeofday(&tv, NULL);
45822
45823   ;
45824   return 0;
45825 }
45826 _ACEOF
45827 rm -f conftest.$ac_objext
45828 if { (ac_try="$ac_compile"
45829 case "(($ac_try" in
45830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45831   *) ac_try_echo=$ac_try;;
45832 esac
45833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45834   (eval "$ac_compile") 2>conftest.er1
45835   ac_status=$?
45836   grep -v '^ *+' conftest.er1 >conftest.err
45837   rm -f conftest.er1
45838   cat conftest.err >&5
45839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45840   (exit $ac_status); } && {
45841          test -z "$ac_c_werror_flag" ||
45842          test ! -s conftest.err
45843        } && test -s conftest.$ac_objext; then
45844   wx_cv_func_gettimeofday_has_2_args=yes
45845 else
45846   echo "$as_me: failed program was:" >&5
45847 sed 's/^/| /' conftest.$ac_ext >&5
45848
45849         cat >conftest.$ac_ext <<_ACEOF
45850 /* confdefs.h.  */
45851 _ACEOF
45852 cat confdefs.h >>conftest.$ac_ext
45853 cat >>conftest.$ac_ext <<_ACEOF
45854 /* end confdefs.h.  */
45855
45856                     #include <sys/time.h>
45857                     #include <unistd.h>
45858
45859 int
45860 main ()
45861 {
45862
45863                     struct timeval tv;
45864                     gettimeofday(&tv);
45865
45866   ;
45867   return 0;
45868 }
45869 _ACEOF
45870 rm -f conftest.$ac_objext
45871 if { (ac_try="$ac_compile"
45872 case "(($ac_try" in
45873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45874   *) ac_try_echo=$ac_try;;
45875 esac
45876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45877   (eval "$ac_compile") 2>conftest.er1
45878   ac_status=$?
45879   grep -v '^ *+' conftest.er1 >conftest.err
45880   rm -f conftest.er1
45881   cat conftest.err >&5
45882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883   (exit $ac_status); } && {
45884          test -z "$ac_c_werror_flag" ||
45885          test ! -s conftest.err
45886        } && test -s conftest.$ac_objext; then
45887   wx_cv_func_gettimeofday_has_2_args=no
45888 else
45889   echo "$as_me: failed program was:" >&5
45890 sed 's/^/| /' conftest.$ac_ext >&5
45891
45892
45893                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45894 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45895                     wx_cv_func_gettimeofday_has_2_args=unknown
45896
45897
45898 fi
45899
45900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45901
45902 fi
45903
45904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45905
45906 fi
45907 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45908 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45909
45910     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45911         cat >>confdefs.h <<\_ACEOF
45912 #define WX_GETTIMEOFDAY_NO_TZ 1
45913 _ACEOF
45914
45915     fi
45916 fi
45917
45918 if test "$wxUSE_DATETIME" = "yes"; then
45919         { echo "$as_me:$LINENO: checking for strptime" >&5
45920 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
45921 if test "${ac_cv_func_strptime+set}" = set; then
45922   echo $ECHO_N "(cached) $ECHO_C" >&6
45923 else
45924   cat >conftest.$ac_ext <<_ACEOF
45925 /* confdefs.h.  */
45926 _ACEOF
45927 cat confdefs.h >>conftest.$ac_ext
45928 cat >>conftest.$ac_ext <<_ACEOF
45929 /* end confdefs.h.  */
45930 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
45931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45932 #define strptime innocuous_strptime
45933
45934 /* System header to define __stub macros and hopefully few prototypes,
45935     which can conflict with char strptime (); below.
45936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45937     <limits.h> exists even on freestanding compilers.  */
45938
45939 #ifdef __STDC__
45940 # include <limits.h>
45941 #else
45942 # include <assert.h>
45943 #endif
45944
45945 #undef strptime
45946
45947 /* Override any GCC internal prototype to avoid an error.
45948    Use char because int might match the return type of a GCC
45949    builtin and then its argument prototype would still apply.  */
45950 #ifdef __cplusplus
45951 extern "C"
45952 #endif
45953 char strptime ();
45954 /* The GNU C library defines this for functions which it implements
45955     to always fail with ENOSYS.  Some functions are actually named
45956     something starting with __ and the normal name is an alias.  */
45957 #if defined __stub_strptime || defined __stub___strptime
45958 choke me
45959 #endif
45960
45961 int
45962 main ()
45963 {
45964 return strptime ();
45965   ;
45966   return 0;
45967 }
45968 _ACEOF
45969 rm -f conftest.$ac_objext conftest$ac_exeext
45970 if { (ac_try="$ac_link"
45971 case "(($ac_try" in
45972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45973   *) ac_try_echo=$ac_try;;
45974 esac
45975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45976   (eval "$ac_link") 2>conftest.er1
45977   ac_status=$?
45978   grep -v '^ *+' conftest.er1 >conftest.err
45979   rm -f conftest.er1
45980   cat conftest.err >&5
45981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45982   (exit $ac_status); } && {
45983          test -z "$ac_c_werror_flag" ||
45984          test ! -s conftest.err
45985        } && test -s conftest$ac_exeext &&
45986        $as_test_x conftest$ac_exeext; then
45987   ac_cv_func_strptime=yes
45988 else
45989   echo "$as_me: failed program was:" >&5
45990 sed 's/^/| /' conftest.$ac_ext >&5
45991
45992         ac_cv_func_strptime=no
45993 fi
45994
45995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45996       conftest$ac_exeext conftest.$ac_ext
45997 fi
45998 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
45999 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46000
46001     if test "$ac_cv_func_strptime" = "yes"; then
46002         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46003 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46004 if test "${wx_cv_func_strptime_decl+set}" = set; then
46005   echo $ECHO_N "(cached) $ECHO_C" >&6
46006 else
46007
46008                 ac_ext=cpp
46009 ac_cpp='$CXXCPP $CPPFLAGS'
46010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46013
46014                 cat >conftest.$ac_ext <<_ACEOF
46015 /* confdefs.h.  */
46016 _ACEOF
46017 cat confdefs.h >>conftest.$ac_ext
46018 cat >>conftest.$ac_ext <<_ACEOF
46019 /* end confdefs.h.  */
46020
46021                         #include <time.h>
46022
46023 int
46024 main ()
46025 {
46026
46027                         struct tm t;
46028                         strptime("foo", "bar", &t);
46029
46030   ;
46031   return 0;
46032 }
46033 _ACEOF
46034 rm -f conftest.$ac_objext
46035 if { (ac_try="$ac_compile"
46036 case "(($ac_try" in
46037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46038   *) ac_try_echo=$ac_try;;
46039 esac
46040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46041   (eval "$ac_compile") 2>conftest.er1
46042   ac_status=$?
46043   grep -v '^ *+' conftest.er1 >conftest.err
46044   rm -f conftest.er1
46045   cat conftest.err >&5
46046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047   (exit $ac_status); } && {
46048          test -z "$ac_cxx_werror_flag" ||
46049          test ! -s conftest.err
46050        } && test -s conftest.$ac_objext; then
46051   wx_cv_func_strptime_decl=yes
46052 else
46053   echo "$as_me: failed program was:" >&5
46054 sed 's/^/| /' conftest.$ac_ext >&5
46055
46056         wx_cv_func_strptime_decl=no
46057
46058 fi
46059
46060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46061                 ac_ext=c
46062 ac_cpp='$CPP $CPPFLAGS'
46063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46066
46067
46068
46069 fi
46070 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46071 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46072     fi
46073     if test "$wx_cv_func_strptime_decl" = "yes"; then
46074         cat >>confdefs.h <<\_ACEOF
46075 #define HAVE_STRPTIME_DECL 1
46076 _ACEOF
46077
46078     else
46079         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46080     fi
46081     if test "$ac_cv_func_strptime" = "yes"; then
46082                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46083 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46084 if test "${wx_cv_func_strptime_ok+set}" = set; then
46085   echo $ECHO_N "(cached) $ECHO_C" >&6
46086 else
46087   if test "$cross_compiling" = yes; then
46088                   wx_cv_func_strptime_ok=no
46089
46090 else
46091   cat >conftest.$ac_ext <<_ACEOF
46092
46093                     #include <stdlib.h>
46094                     #include <time.h>
46095                     #include "confdefs.h"
46096
46097                     $wx_strptime_decl
46098
46099                     int main()
46100                     {
46101                         struct tm t;
46102                         return !!strptime("", "%x", &t);
46103                     }
46104
46105 _ACEOF
46106 rm -f conftest$ac_exeext
46107 if { (ac_try="$ac_link"
46108 case "(($ac_try" in
46109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46110   *) ac_try_echo=$ac_try;;
46111 esac
46112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46113   (eval "$ac_link") 2>&5
46114   ac_status=$?
46115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46117   { (case "(($ac_try" in
46118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46119   *) ac_try_echo=$ac_try;;
46120 esac
46121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46122   (eval "$ac_try") 2>&5
46123   ac_status=$?
46124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125   (exit $ac_status); }; }; then
46126   wx_cv_func_strptime_ok=yes
46127 else
46128   echo "$as_me: program exited with status $ac_status" >&5
46129 echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46131
46132 ( exit $ac_status )
46133 wx_cv_func_strptime_ok=no
46134 fi
46135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46136 fi
46137
46138
46139
46140 fi
46141 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46142 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46143
46144         if test "$wx_cv_func_strptime_ok" = "yes"; then
46145             cat >>confdefs.h <<\_ACEOF
46146 #define HAVE_STRPTIME 1
46147 _ACEOF
46148
46149         fi
46150     fi
46151
46152             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46153 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46154 if test "${wx_cv_var_timezone+set}" = set; then
46155   echo $ECHO_N "(cached) $ECHO_C" >&6
46156 else
46157
46158                         ac_ext=cpp
46159 ac_cpp='$CXXCPP $CPPFLAGS'
46160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46163
46164                         cat >conftest.$ac_ext <<_ACEOF
46165 /* confdefs.h.  */
46166 _ACEOF
46167 cat confdefs.h >>conftest.$ac_ext
46168 cat >>conftest.$ac_ext <<_ACEOF
46169 /* end confdefs.h.  */
46170
46171                                 #include <time.h>
46172
46173 int
46174 main ()
46175 {
46176
46177                                 int tz;
46178                                 tz = timezone;
46179
46180   ;
46181   return 0;
46182 }
46183 _ACEOF
46184 rm -f conftest.$ac_objext
46185 if { (ac_try="$ac_compile"
46186 case "(($ac_try" in
46187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46188   *) ac_try_echo=$ac_try;;
46189 esac
46190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46191   (eval "$ac_compile") 2>conftest.er1
46192   ac_status=$?
46193   grep -v '^ *+' conftest.er1 >conftest.err
46194   rm -f conftest.er1
46195   cat conftest.err >&5
46196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46197   (exit $ac_status); } && {
46198          test -z "$ac_cxx_werror_flag" ||
46199          test ! -s conftest.err
46200        } && test -s conftest.$ac_objext; then
46201
46202                                 wx_cv_var_timezone=timezone
46203
46204 else
46205   echo "$as_me: failed program was:" >&5
46206 sed 's/^/| /' conftest.$ac_ext >&5
46207
46208
46209                                 cat >conftest.$ac_ext <<_ACEOF
46210 /* confdefs.h.  */
46211 _ACEOF
46212 cat confdefs.h >>conftest.$ac_ext
46213 cat >>conftest.$ac_ext <<_ACEOF
46214 /* end confdefs.h.  */
46215
46216                                         #include <time.h>
46217
46218 int
46219 main ()
46220 {
46221
46222                                         int tz;
46223                                         tz = _timezone;
46224
46225   ;
46226   return 0;
46227 }
46228 _ACEOF
46229 rm -f conftest.$ac_objext
46230 if { (ac_try="$ac_compile"
46231 case "(($ac_try" in
46232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46233   *) ac_try_echo=$ac_try;;
46234 esac
46235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46236   (eval "$ac_compile") 2>conftest.er1
46237   ac_status=$?
46238   grep -v '^ *+' conftest.er1 >conftest.err
46239   rm -f conftest.er1
46240   cat conftest.err >&5
46241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46242   (exit $ac_status); } && {
46243          test -z "$ac_cxx_werror_flag" ||
46244          test ! -s conftest.err
46245        } && test -s conftest.$ac_objext; then
46246
46247                                         wx_cv_var_timezone=_timezone
46248
46249 else
46250   echo "$as_me: failed program was:" >&5
46251 sed 's/^/| /' conftest.$ac_ext >&5
46252
46253
46254                                         cat >conftest.$ac_ext <<_ACEOF
46255 /* confdefs.h.  */
46256 _ACEOF
46257 cat confdefs.h >>conftest.$ac_ext
46258 cat >>conftest.$ac_ext <<_ACEOF
46259 /* end confdefs.h.  */
46260
46261                                                 #include <time.h>
46262
46263 int
46264 main ()
46265 {
46266
46267                                                 int tz;
46268                                                 tz = __timezone;
46269
46270   ;
46271   return 0;
46272 }
46273 _ACEOF
46274 rm -f conftest.$ac_objext
46275 if { (ac_try="$ac_compile"
46276 case "(($ac_try" in
46277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46278   *) ac_try_echo=$ac_try;;
46279 esac
46280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46281   (eval "$ac_compile") 2>conftest.er1
46282   ac_status=$?
46283   grep -v '^ *+' conftest.er1 >conftest.err
46284   rm -f conftest.er1
46285   cat conftest.err >&5
46286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287   (exit $ac_status); } && {
46288          test -z "$ac_cxx_werror_flag" ||
46289          test ! -s conftest.err
46290        } && test -s conftest.$ac_objext; then
46291
46292                                                 wx_cv_var_timezone=__timezone
46293
46294 else
46295   echo "$as_me: failed program was:" >&5
46296 sed 's/^/| /' conftest.$ac_ext >&5
46297
46298
46299                                                 if test "$USE_DOS" = 0 ; then
46300                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46301 echo "$as_me: WARNING: no timezone variable" >&2;}
46302                                                 fi
46303
46304
46305 fi
46306
46307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46308
46309
46310 fi
46311
46312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46313
46314
46315 fi
46316
46317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46318                         ac_ext=c
46319 ac_cpp='$CPP $CPPFLAGS'
46320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46323
46324
46325
46326 fi
46327 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46328 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46329
46330         if test "x$wx_cv_var_timezone" != x ; then
46331         cat >>confdefs.h <<_ACEOF
46332 #define WX_TIMEZONE $wx_cv_var_timezone
46333 _ACEOF
46334
46335     fi
46336
46337
46338 for ac_func in localtime
46339 do
46340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46344   echo $ECHO_N "(cached) $ECHO_C" >&6
46345 else
46346   cat >conftest.$ac_ext <<_ACEOF
46347 /* confdefs.h.  */
46348 _ACEOF
46349 cat confdefs.h >>conftest.$ac_ext
46350 cat >>conftest.$ac_ext <<_ACEOF
46351 /* end confdefs.h.  */
46352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46354 #define $ac_func innocuous_$ac_func
46355
46356 /* System header to define __stub macros and hopefully few prototypes,
46357     which can conflict with char $ac_func (); below.
46358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46359     <limits.h> exists even on freestanding compilers.  */
46360
46361 #ifdef __STDC__
46362 # include <limits.h>
46363 #else
46364 # include <assert.h>
46365 #endif
46366
46367 #undef $ac_func
46368
46369 /* Override any GCC internal prototype to avoid an error.
46370    Use char because int might match the return type of a GCC
46371    builtin and then its argument prototype would still apply.  */
46372 #ifdef __cplusplus
46373 extern "C"
46374 #endif
46375 char $ac_func ();
46376 /* The GNU C library defines this for functions which it implements
46377     to always fail with ENOSYS.  Some functions are actually named
46378     something starting with __ and the normal name is an alias.  */
46379 #if defined __stub_$ac_func || defined __stub___$ac_func
46380 choke me
46381 #endif
46382
46383 int
46384 main ()
46385 {
46386 return $ac_func ();
46387   ;
46388   return 0;
46389 }
46390 _ACEOF
46391 rm -f conftest.$ac_objext conftest$ac_exeext
46392 if { (ac_try="$ac_link"
46393 case "(($ac_try" in
46394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46395   *) ac_try_echo=$ac_try;;
46396 esac
46397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46398   (eval "$ac_link") 2>conftest.er1
46399   ac_status=$?
46400   grep -v '^ *+' conftest.er1 >conftest.err
46401   rm -f conftest.er1
46402   cat conftest.err >&5
46403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46404   (exit $ac_status); } && {
46405          test -z "$ac_c_werror_flag" ||
46406          test ! -s conftest.err
46407        } && test -s conftest$ac_exeext &&
46408        $as_test_x conftest$ac_exeext; then
46409   eval "$as_ac_var=yes"
46410 else
46411   echo "$as_me: failed program was:" >&5
46412 sed 's/^/| /' conftest.$ac_ext >&5
46413
46414         eval "$as_ac_var=no"
46415 fi
46416
46417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46418       conftest$ac_exeext conftest.$ac_ext
46419 fi
46420 ac_res=`eval echo '${'$as_ac_var'}'`
46421                { echo "$as_me:$LINENO: result: $ac_res" >&5
46422 echo "${ECHO_T}$ac_res" >&6; }
46423 if test `eval echo '${'$as_ac_var'}'` = yes; then
46424   cat >>confdefs.h <<_ACEOF
46425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46426 _ACEOF
46427
46428 fi
46429 done
46430
46431
46432     if test "$ac_cv_func_localtime" = "yes"; then
46433         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46434 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46435 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46436   echo $ECHO_N "(cached) $ECHO_C" >&6
46437 else
46438
46439             cat >conftest.$ac_ext <<_ACEOF
46440 /* confdefs.h.  */
46441 _ACEOF
46442 cat confdefs.h >>conftest.$ac_ext
46443 cat >>conftest.$ac_ext <<_ACEOF
46444 /* end confdefs.h.  */
46445
46446                     #include <time.h>
46447
46448 int
46449 main ()
46450 {
46451
46452                     struct tm tm;
46453                     tm.tm_gmtoff++;
46454
46455   ;
46456   return 0;
46457 }
46458 _ACEOF
46459 rm -f conftest.$ac_objext
46460 if { (ac_try="$ac_compile"
46461 case "(($ac_try" in
46462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46463   *) ac_try_echo=$ac_try;;
46464 esac
46465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46466   (eval "$ac_compile") 2>conftest.er1
46467   ac_status=$?
46468   grep -v '^ *+' conftest.er1 >conftest.err
46469   rm -f conftest.er1
46470   cat conftest.err >&5
46471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46472   (exit $ac_status); } && {
46473          test -z "$ac_c_werror_flag" ||
46474          test ! -s conftest.err
46475        } && test -s conftest.$ac_objext; then
46476
46477                     wx_cv_struct_tm_has_gmtoff=yes
46478
46479 else
46480   echo "$as_me: failed program was:" >&5
46481 sed 's/^/| /' conftest.$ac_ext >&5
46482
46483         wx_cv_struct_tm_has_gmtoff=no
46484
46485 fi
46486
46487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46488
46489 fi
46490 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46491 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46492     fi
46493
46494     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46495         cat >>confdefs.h <<\_ACEOF
46496 #define WX_GMTOFF_IN_TM 1
46497 _ACEOF
46498
46499     fi
46500
46501     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46502 fi
46503
46504
46505 if test "$wxUSE_SOCKETS" = "yes"; then
46506     if test "$wxUSE_MGL" = "1"; then
46507         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46508 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46509         wxUSE_SOCKETS="no"
46510     fi
46511 fi
46512
46513 if test "$wxUSE_SOCKETS" = "yes"; then
46514         if test "$TOOLKIT" != "MSW"; then
46515                 { echo "$as_me:$LINENO: checking for socket" >&5
46516 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46517 if test "${ac_cv_func_socket+set}" = set; then
46518   echo $ECHO_N "(cached) $ECHO_C" >&6
46519 else
46520   cat >conftest.$ac_ext <<_ACEOF
46521 /* confdefs.h.  */
46522 _ACEOF
46523 cat confdefs.h >>conftest.$ac_ext
46524 cat >>conftest.$ac_ext <<_ACEOF
46525 /* end confdefs.h.  */
46526 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46528 #define socket innocuous_socket
46529
46530 /* System header to define __stub macros and hopefully few prototypes,
46531     which can conflict with char socket (); below.
46532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46533     <limits.h> exists even on freestanding compilers.  */
46534
46535 #ifdef __STDC__
46536 # include <limits.h>
46537 #else
46538 # include <assert.h>
46539 #endif
46540
46541 #undef socket
46542
46543 /* Override any GCC internal prototype to avoid an error.
46544    Use char because int might match the return type of a GCC
46545    builtin and then its argument prototype would still apply.  */
46546 #ifdef __cplusplus
46547 extern "C"
46548 #endif
46549 char socket ();
46550 /* The GNU C library defines this for functions which it implements
46551     to always fail with ENOSYS.  Some functions are actually named
46552     something starting with __ and the normal name is an alias.  */
46553 #if defined __stub_socket || defined __stub___socket
46554 choke me
46555 #endif
46556
46557 int
46558 main ()
46559 {
46560 return socket ();
46561   ;
46562   return 0;
46563 }
46564 _ACEOF
46565 rm -f conftest.$ac_objext conftest$ac_exeext
46566 if { (ac_try="$ac_link"
46567 case "(($ac_try" in
46568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46569   *) ac_try_echo=$ac_try;;
46570 esac
46571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46572   (eval "$ac_link") 2>conftest.er1
46573   ac_status=$?
46574   grep -v '^ *+' conftest.er1 >conftest.err
46575   rm -f conftest.er1
46576   cat conftest.err >&5
46577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578   (exit $ac_status); } && {
46579          test -z "$ac_c_werror_flag" ||
46580          test ! -s conftest.err
46581        } && test -s conftest$ac_exeext &&
46582        $as_test_x conftest$ac_exeext; then
46583   ac_cv_func_socket=yes
46584 else
46585   echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46587
46588         ac_cv_func_socket=no
46589 fi
46590
46591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46592       conftest$ac_exeext conftest.$ac_ext
46593 fi
46594 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46595 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46596 if test $ac_cv_func_socket = yes; then
46597   :
46598 else
46599
46600                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46601 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46602 if test "${ac_cv_lib_socket_socket+set}" = set; then
46603   echo $ECHO_N "(cached) $ECHO_C" >&6
46604 else
46605   ac_check_lib_save_LIBS=$LIBS
46606 LIBS="-lsocket  $LIBS"
46607 cat >conftest.$ac_ext <<_ACEOF
46608 /* confdefs.h.  */
46609 _ACEOF
46610 cat confdefs.h >>conftest.$ac_ext
46611 cat >>conftest.$ac_ext <<_ACEOF
46612 /* end confdefs.h.  */
46613
46614 /* Override any GCC internal prototype to avoid an error.
46615    Use char because int might match the return type of a GCC
46616    builtin and then its argument prototype would still apply.  */
46617 #ifdef __cplusplus
46618 extern "C"
46619 #endif
46620 char socket ();
46621 int
46622 main ()
46623 {
46624 return socket ();
46625   ;
46626   return 0;
46627 }
46628 _ACEOF
46629 rm -f conftest.$ac_objext conftest$ac_exeext
46630 if { (ac_try="$ac_link"
46631 case "(($ac_try" in
46632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46633   *) ac_try_echo=$ac_try;;
46634 esac
46635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46636   (eval "$ac_link") 2>conftest.er1
46637   ac_status=$?
46638   grep -v '^ *+' conftest.er1 >conftest.err
46639   rm -f conftest.er1
46640   cat conftest.err >&5
46641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46642   (exit $ac_status); } && {
46643          test -z "$ac_c_werror_flag" ||
46644          test ! -s conftest.err
46645        } && test -s conftest$ac_exeext &&
46646        $as_test_x conftest$ac_exeext; then
46647   ac_cv_lib_socket_socket=yes
46648 else
46649   echo "$as_me: failed program was:" >&5
46650 sed 's/^/| /' conftest.$ac_ext >&5
46651
46652         ac_cv_lib_socket_socket=no
46653 fi
46654
46655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46656       conftest$ac_exeext conftest.$ac_ext
46657 LIBS=$ac_check_lib_save_LIBS
46658 fi
46659 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46660 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46661 if test $ac_cv_lib_socket_socket = yes; then
46662   if test "$INET_LINK" != " -lsocket"; then
46663                         INET_LINK="$INET_LINK -lsocket"
46664                     fi
46665 else
46666
46667                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46668 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46669                         wxUSE_SOCKETS=no
46670
46671
46672 fi
46673
46674
46675
46676 fi
46677
46678     fi
46679 fi
46680
46681 if test "$wxUSE_SOCKETS" = "yes" ; then
46682                 if test "$TOOLKIT" != "MSW"; then
46683                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46684 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46685 if test "${wx_cv_type_getsockname3+set}" = set; then
46686   echo $ECHO_N "(cached) $ECHO_C" >&6
46687 else
46688
46689                 ac_ext=cpp
46690 ac_cpp='$CXXCPP $CPPFLAGS'
46691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46694
46695                 cat >conftest.$ac_ext <<_ACEOF
46696 /* confdefs.h.  */
46697 _ACEOF
46698 cat confdefs.h >>conftest.$ac_ext
46699 cat >>conftest.$ac_ext <<_ACEOF
46700 /* end confdefs.h.  */
46701
46702                         #include <sys/types.h>
46703                         #include <sys/socket.h>
46704
46705 int
46706 main ()
46707 {
46708
46709                         socklen_t len;
46710                         getsockname(0, 0, &len);
46711
46712   ;
46713   return 0;
46714 }
46715 _ACEOF
46716 rm -f conftest.$ac_objext
46717 if { (ac_try="$ac_compile"
46718 case "(($ac_try" in
46719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46720   *) ac_try_echo=$ac_try;;
46721 esac
46722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46723   (eval "$ac_compile") 2>conftest.er1
46724   ac_status=$?
46725   grep -v '^ *+' conftest.er1 >conftest.err
46726   rm -f conftest.er1
46727   cat conftest.err >&5
46728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729   (exit $ac_status); } && {
46730          test -z "$ac_cxx_werror_flag" ||
46731          test ! -s conftest.err
46732        } && test -s conftest.$ac_objext; then
46733   wx_cv_type_getsockname3=socklen_t
46734 else
46735   echo "$as_me: failed program was:" >&5
46736 sed 's/^/| /' conftest.$ac_ext >&5
46737
46738
46739                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46740                         if test "$GCC" = yes ; then
46741                             CFLAGS="-Werror $CFLAGS"
46742                         fi
46743
46744                         cat >conftest.$ac_ext <<_ACEOF
46745 /* confdefs.h.  */
46746 _ACEOF
46747 cat confdefs.h >>conftest.$ac_ext
46748 cat >>conftest.$ac_ext <<_ACEOF
46749 /* end confdefs.h.  */
46750
46751                                 #include <sys/types.h>
46752                                 #include <sys/socket.h>
46753
46754 int
46755 main ()
46756 {
46757
46758                                 size_t len;
46759                                 getsockname(0, 0, &len);
46760
46761   ;
46762   return 0;
46763 }
46764 _ACEOF
46765 rm -f conftest.$ac_objext
46766 if { (ac_try="$ac_compile"
46767 case "(($ac_try" in
46768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46769   *) ac_try_echo=$ac_try;;
46770 esac
46771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46772   (eval "$ac_compile") 2>conftest.er1
46773   ac_status=$?
46774   grep -v '^ *+' conftest.er1 >conftest.err
46775   rm -f conftest.er1
46776   cat conftest.err >&5
46777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46778   (exit $ac_status); } && {
46779          test -z "$ac_cxx_werror_flag" ||
46780          test ! -s conftest.err
46781        } && test -s conftest.$ac_objext; then
46782   wx_cv_type_getsockname3=size_t
46783 else
46784   echo "$as_me: failed program was:" >&5
46785 sed 's/^/| /' conftest.$ac_ext >&5
46786
46787         cat >conftest.$ac_ext <<_ACEOF
46788 /* confdefs.h.  */
46789 _ACEOF
46790 cat confdefs.h >>conftest.$ac_ext
46791 cat >>conftest.$ac_ext <<_ACEOF
46792 /* end confdefs.h.  */
46793
46794                                     #include <sys/types.h>
46795                                     #include <sys/socket.h>
46796
46797 int
46798 main ()
46799 {
46800
46801                                     int len;
46802                                     getsockname(0, 0, &len);
46803
46804   ;
46805   return 0;
46806 }
46807 _ACEOF
46808 rm -f conftest.$ac_objext
46809 if { (ac_try="$ac_compile"
46810 case "(($ac_try" in
46811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46812   *) ac_try_echo=$ac_try;;
46813 esac
46814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46815   (eval "$ac_compile") 2>conftest.er1
46816   ac_status=$?
46817   grep -v '^ *+' conftest.er1 >conftest.err
46818   rm -f conftest.er1
46819   cat conftest.err >&5
46820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46821   (exit $ac_status); } && {
46822          test -z "$ac_cxx_werror_flag" ||
46823          test ! -s conftest.err
46824        } && test -s conftest.$ac_objext; then
46825   wx_cv_type_getsockname3=int
46826 else
46827   echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46829
46830         wx_cv_type_getsockname3=unknown
46831
46832 fi
46833
46834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46835
46836 fi
46837
46838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46839
46840                         CFLAGS="$CFLAGS_OLD"
46841
46842
46843 fi
46844
46845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46846                 ac_ext=c
46847 ac_cpp='$CPP $CPPFLAGS'
46848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46851
46852
46853 fi
46854 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46855 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46856
46857         if test "$wx_cv_type_getsockname3" = "unknown"; then
46858             wxUSE_SOCKETS=no
46859             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46860 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46861         else
46862             cat >>confdefs.h <<_ACEOF
46863 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46864 _ACEOF
46865
46866         fi
46867                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46868 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46869 if test "${wx_cv_type_getsockopt5+set}" = set; then
46870   echo $ECHO_N "(cached) $ECHO_C" >&6
46871 else
46872
46873                                                                                                 ac_ext=cpp
46874 ac_cpp='$CXXCPP $CPPFLAGS'
46875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46878
46879                 cat >conftest.$ac_ext <<_ACEOF
46880 /* confdefs.h.  */
46881 _ACEOF
46882 cat confdefs.h >>conftest.$ac_ext
46883 cat >>conftest.$ac_ext <<_ACEOF
46884 /* end confdefs.h.  */
46885
46886                         #include <sys/types.h>
46887                         #include <sys/socket.h>
46888
46889 int
46890 main ()
46891 {
46892
46893                         socklen_t len;
46894                         getsockopt(0, 0, 0, 0, &len);
46895
46896   ;
46897   return 0;
46898 }
46899 _ACEOF
46900 rm -f conftest.$ac_objext
46901 if { (ac_try="$ac_compile"
46902 case "(($ac_try" in
46903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46904   *) ac_try_echo=$ac_try;;
46905 esac
46906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46907   (eval "$ac_compile") 2>conftest.er1
46908   ac_status=$?
46909   grep -v '^ *+' conftest.er1 >conftest.err
46910   rm -f conftest.er1
46911   cat conftest.err >&5
46912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46913   (exit $ac_status); } && {
46914          test -z "$ac_cxx_werror_flag" ||
46915          test ! -s conftest.err
46916        } && test -s conftest.$ac_objext; then
46917   wx_cv_type_getsockopt5=socklen_t
46918 else
46919   echo "$as_me: failed program was:" >&5
46920 sed 's/^/| /' conftest.$ac_ext >&5
46921
46922
46923                         cat >conftest.$ac_ext <<_ACEOF
46924 /* confdefs.h.  */
46925 _ACEOF
46926 cat confdefs.h >>conftest.$ac_ext
46927 cat >>conftest.$ac_ext <<_ACEOF
46928 /* end confdefs.h.  */
46929
46930                                 #include <sys/types.h>
46931                                 #include <sys/socket.h>
46932
46933 int
46934 main ()
46935 {
46936
46937                                 size_t len;
46938                                 getsockopt(0, 0, 0, 0, &len);
46939
46940   ;
46941   return 0;
46942 }
46943 _ACEOF
46944 rm -f conftest.$ac_objext
46945 if { (ac_try="$ac_compile"
46946 case "(($ac_try" in
46947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46948   *) ac_try_echo=$ac_try;;
46949 esac
46950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46951   (eval "$ac_compile") 2>conftest.er1
46952   ac_status=$?
46953   grep -v '^ *+' conftest.er1 >conftest.err
46954   rm -f conftest.er1
46955   cat conftest.err >&5
46956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46957   (exit $ac_status); } && {
46958          test -z "$ac_cxx_werror_flag" ||
46959          test ! -s conftest.err
46960        } && test -s conftest.$ac_objext; then
46961   wx_cv_type_getsockopt5=size_t
46962 else
46963   echo "$as_me: failed program was:" >&5
46964 sed 's/^/| /' conftest.$ac_ext >&5
46965
46966         cat >conftest.$ac_ext <<_ACEOF
46967 /* confdefs.h.  */
46968 _ACEOF
46969 cat confdefs.h >>conftest.$ac_ext
46970 cat >>conftest.$ac_ext <<_ACEOF
46971 /* end confdefs.h.  */
46972
46973                                     #include <sys/types.h>
46974                                     #include <sys/socket.h>
46975
46976 int
46977 main ()
46978 {
46979
46980                                     int len;
46981                                     getsockopt(0, 0, 0, 0, &len);
46982
46983   ;
46984   return 0;
46985 }
46986 _ACEOF
46987 rm -f conftest.$ac_objext
46988 if { (ac_try="$ac_compile"
46989 case "(($ac_try" in
46990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46991   *) ac_try_echo=$ac_try;;
46992 esac
46993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46994   (eval "$ac_compile") 2>conftest.er1
46995   ac_status=$?
46996   grep -v '^ *+' conftest.er1 >conftest.err
46997   rm -f conftest.er1
46998   cat conftest.err >&5
46999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47000   (exit $ac_status); } && {
47001          test -z "$ac_cxx_werror_flag" ||
47002          test ! -s conftest.err
47003        } && test -s conftest.$ac_objext; then
47004   wx_cv_type_getsockopt5=int
47005 else
47006   echo "$as_me: failed program was:" >&5
47007 sed 's/^/| /' conftest.$ac_ext >&5
47008
47009         wx_cv_type_getsockopt5=unknown
47010
47011 fi
47012
47013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47014
47015 fi
47016
47017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47018
47019
47020 fi
47021
47022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47023                 ac_ext=c
47024 ac_cpp='$CPP $CPPFLAGS'
47025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47028
47029
47030 fi
47031 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47032 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47033
47034         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47035             wxUSE_SOCKETS=no
47036             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47037 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47038         else
47039             cat >>confdefs.h <<_ACEOF
47040 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47041 _ACEOF
47042
47043         fi
47044     fi
47045 fi
47046
47047 if test "$wxUSE_SOCKETS" = "yes" ; then
47048     cat >>confdefs.h <<\_ACEOF
47049 #define wxUSE_SOCKETS 1
47050 _ACEOF
47051
47052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47053 fi
47054
47055 if test "$wxUSE_PROTOCOL" = "yes"; then
47056     if test "$wxUSE_SOCKETS" != "yes"; then
47057         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47058 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47059         wxUSE_PROTOCOL=no
47060     fi
47061 fi
47062
47063 if test "$wxUSE_PROTOCOL" = "yes"; then
47064     cat >>confdefs.h <<\_ACEOF
47065 #define wxUSE_PROTOCOL 1
47066 _ACEOF
47067
47068
47069     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47070         cat >>confdefs.h <<\_ACEOF
47071 #define wxUSE_PROTOCOL_HTTP 1
47072 _ACEOF
47073
47074     fi
47075     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47076         cat >>confdefs.h <<\_ACEOF
47077 #define wxUSE_PROTOCOL_FTP 1
47078 _ACEOF
47079
47080     fi
47081     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47082         cat >>confdefs.h <<\_ACEOF
47083 #define wxUSE_PROTOCOL_FILE 1
47084 _ACEOF
47085
47086     fi
47087 else
47088     if test "$wxUSE_FS_INET" = "yes"; then
47089         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47090 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47091         wxUSE_FS_INET="no"
47092     fi
47093 fi
47094
47095 if test "$wxUSE_URL" = "yes"; then
47096     if test "$wxUSE_PROTOCOL" != "yes"; then
47097         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47098 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47099         wxUSE_URL=no
47100     fi
47101     if test "$wxUSE_URL" = "yes"; then
47102         cat >>confdefs.h <<\_ACEOF
47103 #define wxUSE_URL 1
47104 _ACEOF
47105
47106     fi
47107 fi
47108
47109 if test "$wxUSE_VARIANT" = "yes"; then
47110     cat >>confdefs.h <<\_ACEOF
47111 #define wxUSE_VARIANT 1
47112 _ACEOF
47113
47114 fi
47115
47116 if test "$wxUSE_FS_INET" = "yes"; then
47117   cat >>confdefs.h <<\_ACEOF
47118 #define wxUSE_FS_INET 1
47119 _ACEOF
47120
47121 fi
47122
47123
47124 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47125     wxUSE_JOYSTICK=no
47126
47127         if test "$TOOLKIT" = "MSW"; then
47128         wxUSE_JOYSTICK=yes
47129
47130         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47131         if test "$USE_DARWIN" = 1; then
47132                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47133 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47134             ac_ext=cpp
47135 ac_cpp='$CXXCPP $CPPFLAGS'
47136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47139
47140             cat >conftest.$ac_ext <<_ACEOF
47141 /* confdefs.h.  */
47142 _ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h.  */
47146  #include <IOKit/hid/IOHIDLib.h>
47147 int
47148 main ()
47149 {
47150  IOHIDQueueInterface *qi = NULL;
47151                               IOHIDCallbackFunction cb = NULL;
47152                               qi->setEventCallout(NULL, cb, NULL, NULL);
47153   ;
47154   return 0;
47155 }
47156 _ACEOF
47157 rm -f conftest.$ac_objext
47158 if { (ac_try="$ac_compile"
47159 case "(($ac_try" in
47160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47161   *) ac_try_echo=$ac_try;;
47162 esac
47163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47164   (eval "$ac_compile") 2>conftest.er1
47165   ac_status=$?
47166   grep -v '^ *+' conftest.er1 >conftest.err
47167   rm -f conftest.er1
47168   cat conftest.err >&5
47169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47170   (exit $ac_status); } && {
47171          test -z "$ac_cxx_werror_flag" ||
47172          test ! -s conftest.err
47173        } && test -s conftest.$ac_objext; then
47174    wxUSE_JOYSTICK=yes
47175
47176 else
47177   echo "$as_me: failed program was:" >&5
47178 sed 's/^/| /' conftest.$ac_ext >&5
47179
47180
47181 fi
47182
47183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47184             ac_ext=c
47185 ac_cpp='$CPP $CPPFLAGS'
47186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47189
47190             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47191 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47192         fi
47193
47194         else
47195                 if test "$wxUSE_MGL" != "1"; then
47196                                                                                     { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
47197 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
47198 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
47199   echo $ECHO_N "(cached) $ECHO_C" >&6
47200 else
47201   cat >conftest.$ac_ext <<_ACEOF
47202 /* confdefs.h.  */
47203 _ACEOF
47204 cat confdefs.h >>conftest.$ac_ext
47205 cat >>conftest.$ac_ext <<_ACEOF
47206 /* end confdefs.h.  */
47207 $ac_includes_default
47208
47209 #include <linux/joystick.h>
47210 _ACEOF
47211 rm -f conftest.$ac_objext
47212 if { (ac_try="$ac_compile"
47213 case "(($ac_try" in
47214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47215   *) ac_try_echo=$ac_try;;
47216 esac
47217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47218   (eval "$ac_compile") 2>conftest.er1
47219   ac_status=$?
47220   grep -v '^ *+' conftest.er1 >conftest.err
47221   rm -f conftest.er1
47222   cat conftest.err >&5
47223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47224   (exit $ac_status); } && {
47225          test -z "$ac_c_werror_flag" ||
47226          test ! -s conftest.err
47227        } && test -s conftest.$ac_objext; then
47228   ac_cv_header_linux_joystick_h=yes
47229 else
47230   echo "$as_me: failed program was:" >&5
47231 sed 's/^/| /' conftest.$ac_ext >&5
47232
47233         ac_cv_header_linux_joystick_h=no
47234 fi
47235
47236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47237 fi
47238 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
47239 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
47240 if test $ac_cv_header_linux_joystick_h = yes; then
47241   wxUSE_JOYSTICK=yes
47242 fi
47243
47244
47245         fi
47246     fi
47247
47248     if test "$wxUSE_JOYSTICK" = "yes"; then
47249         cat >>confdefs.h <<\_ACEOF
47250 #define wxUSE_JOYSTICK 1
47251 _ACEOF
47252
47253         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47254     else
47255         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47256 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47257     fi
47258 fi
47259
47260
47261
47262 if test "$wxUSE_FONTMAP" = "yes" ; then
47263   cat >>confdefs.h <<\_ACEOF
47264 #define wxUSE_FONTMAP 1
47265 _ACEOF
47266
47267 fi
47268
47269 if test "$wxUSE_UNICODE" = "yes" ; then
47270   cat >>confdefs.h <<\_ACEOF
47271 #define wxUSE_UNICODE 1
47272 _ACEOF
47273
47274
47275   if test "$USE_WIN32" != 1; then
47276       wxUSE_UNICODE_MSLU=no
47277   fi
47278
47279   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47280         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47281 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47282 if test "${ac_cv_lib_unicows_main+set}" = set; then
47283   echo $ECHO_N "(cached) $ECHO_C" >&6
47284 else
47285   ac_check_lib_save_LIBS=$LIBS
47286 LIBS="-lunicows  $LIBS"
47287 cat >conftest.$ac_ext <<_ACEOF
47288 /* confdefs.h.  */
47289 _ACEOF
47290 cat confdefs.h >>conftest.$ac_ext
47291 cat >>conftest.$ac_ext <<_ACEOF
47292 /* end confdefs.h.  */
47293
47294
47295 int
47296 main ()
47297 {
47298 return main ();
47299   ;
47300   return 0;
47301 }
47302 _ACEOF
47303 rm -f conftest.$ac_objext conftest$ac_exeext
47304 if { (ac_try="$ac_link"
47305 case "(($ac_try" in
47306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47307   *) ac_try_echo=$ac_try;;
47308 esac
47309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47310   (eval "$ac_link") 2>conftest.er1
47311   ac_status=$?
47312   grep -v '^ *+' conftest.er1 >conftest.err
47313   rm -f conftest.er1
47314   cat conftest.err >&5
47315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316   (exit $ac_status); } && {
47317          test -z "$ac_c_werror_flag" ||
47318          test ! -s conftest.err
47319        } && test -s conftest$ac_exeext &&
47320        $as_test_x conftest$ac_exeext; then
47321   ac_cv_lib_unicows_main=yes
47322 else
47323   echo "$as_me: failed program was:" >&5
47324 sed 's/^/| /' conftest.$ac_ext >&5
47325
47326         ac_cv_lib_unicows_main=no
47327 fi
47328
47329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47330       conftest$ac_exeext conftest.$ac_ext
47331 LIBS=$ac_check_lib_save_LIBS
47332 fi
47333 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47334 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47335 if test $ac_cv_lib_unicows_main = yes; then
47336
47337                 cat >>confdefs.h <<\_ACEOF
47338 #define wxUSE_UNICODE_MSLU 1
47339 _ACEOF
47340
47341
47342 else
47343
47344                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47345                              Applications will only run on Windows NT/2000/XP!" >&5
47346 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47347                              Applications will only run on Windows NT/2000/XP!" >&2;}
47348                 wxUSE_UNICODE_MSLU=no
47349
47350 fi
47351
47352     fi
47353 fi
47354
47355 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47356     cat >>confdefs.h <<\_ACEOF
47357 #define wxUSE_UNICODE_UTF8 1
47358 _ACEOF
47359
47360
47361     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47362         cat >>confdefs.h <<\_ACEOF
47363 #define wxUSE_UTF8_LOCALE_ONLY 1
47364 _ACEOF
47365
47366     fi
47367 fi
47368
47369 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
47370   cat >>confdefs.h <<\_ACEOF
47371 #define wxUSE_EXPERIMENTAL_PRINTF 1
47372 _ACEOF
47373
47374 fi
47375
47376
47377 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47378     cat >>confdefs.h <<\_ACEOF
47379 #define wxUSE_CONSTRAINTS 1
47380 _ACEOF
47381
47382     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47383 fi
47384
47385 if test "$wxUSE_MDI" = "yes"; then
47386     cat >>confdefs.h <<\_ACEOF
47387 #define wxUSE_MDI 1
47388 _ACEOF
47389
47390
47391     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47392         cat >>confdefs.h <<\_ACEOF
47393 #define wxUSE_MDI_ARCHITECTURE 1
47394 _ACEOF
47395
47396         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47397     fi
47398 fi
47399
47400 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47401     cat >>confdefs.h <<\_ACEOF
47402 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47403 _ACEOF
47404
47405     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47406     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47407         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47408     fi
47409 fi
47410
47411 if test "$wxUSE_HELP" = "yes"; then
47412     cat >>confdefs.h <<\_ACEOF
47413 #define wxUSE_HELP 1
47414 _ACEOF
47415
47416     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47417
47418     if test "$wxUSE_MSW" = 1; then
47419       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47420         cat >>confdefs.h <<\_ACEOF
47421 #define wxUSE_MS_HTML_HELP 1
47422 _ACEOF
47423
47424       fi
47425     fi
47426
47427     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47428       if test "$wxUSE_HTML" = "yes"; then
47429         cat >>confdefs.h <<\_ACEOF
47430 #define wxUSE_WXHTML_HELP 1
47431 _ACEOF
47432
47433       else
47434         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47435 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47436         wxUSE_WXHTML_HELP=no
47437       fi
47438     fi
47439 fi
47440
47441 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47442     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47443         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47444 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47445     else
47446         cat >>confdefs.h <<\_ACEOF
47447 #define wxUSE_PRINTING_ARCHITECTURE 1
47448 _ACEOF
47449
47450     fi
47451     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47452 fi
47453
47454 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47455   cat >>confdefs.h <<\_ACEOF
47456 #define wxUSE_POSTSCRIPT 1
47457 _ACEOF
47458
47459 fi
47460
47461 cat >>confdefs.h <<\_ACEOF
47462 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47463 _ACEOF
47464
47465
47466 cat >>confdefs.h <<\_ACEOF
47467 #define wxUSE_NORMALIZED_PS_FONTS 1
47468 _ACEOF
47469
47470
47471 if test "$wxUSE_SVG" = "yes"; then
47472     cat >>confdefs.h <<\_ACEOF
47473 #define wxUSE_SVG 1
47474 _ACEOF
47475
47476 fi
47477
47478
47479 if test "$wxUSE_METAFILE" = "yes"; then
47480     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47481         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47482 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47483         wxUSE_METAFILE=no
47484     fi
47485 fi
47486
47487
47488 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47489                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47490                           -o "$wxUSE_OLE"     = "yes" \
47491                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47492     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47493 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47494 if test "${ac_cv_header_ole2_h+set}" = set; then
47495   echo $ECHO_N "(cached) $ECHO_C" >&6
47496 else
47497   cat >conftest.$ac_ext <<_ACEOF
47498 /* confdefs.h.  */
47499 _ACEOF
47500 cat confdefs.h >>conftest.$ac_ext
47501 cat >>conftest.$ac_ext <<_ACEOF
47502 /* end confdefs.h.  */
47503
47504
47505 #include <ole2.h>
47506 _ACEOF
47507 rm -f conftest.$ac_objext
47508 if { (ac_try="$ac_compile"
47509 case "(($ac_try" in
47510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47511   *) ac_try_echo=$ac_try;;
47512 esac
47513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47514   (eval "$ac_compile") 2>conftest.er1
47515   ac_status=$?
47516   grep -v '^ *+' conftest.er1 >conftest.err
47517   rm -f conftest.er1
47518   cat conftest.err >&5
47519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520   (exit $ac_status); } && {
47521          test -z "$ac_c_werror_flag" ||
47522          test ! -s conftest.err
47523        } && test -s conftest.$ac_objext; then
47524   ac_cv_header_ole2_h=yes
47525 else
47526   echo "$as_me: failed program was:" >&5
47527 sed 's/^/| /' conftest.$ac_ext >&5
47528
47529         ac_cv_header_ole2_h=no
47530 fi
47531
47532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47533 fi
47534 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47535 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47536
47537
47538
47539     if test "$ac_cv_header_ole2_h" = "yes" ; then
47540         if test "$GCC" = yes ; then
47541             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47542 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47543             cat >conftest.$ac_ext <<_ACEOF
47544 /* confdefs.h.  */
47545 _ACEOF
47546 cat confdefs.h >>conftest.$ac_ext
47547 cat >>conftest.$ac_ext <<_ACEOF
47548 /* end confdefs.h.  */
47549 #include <windows.h>
47550                             #include <ole2.h>
47551 int
47552 main ()
47553 {
47554
47555   ;
47556   return 0;
47557 }
47558 _ACEOF
47559 rm -f conftest.$ac_objext
47560 if { (ac_try="$ac_compile"
47561 case "(($ac_try" in
47562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47563   *) ac_try_echo=$ac_try;;
47564 esac
47565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47566   (eval "$ac_compile") 2>conftest.er1
47567   ac_status=$?
47568   grep -v '^ *+' conftest.er1 >conftest.err
47569   rm -f conftest.er1
47570   cat conftest.err >&5
47571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47572   (exit $ac_status); } && {
47573          test -z "$ac_c_werror_flag" ||
47574          test ! -s conftest.err
47575        } && test -s conftest.$ac_objext; then
47576   { echo "$as_me:$LINENO: result: no" >&5
47577 echo "${ECHO_T}no" >&6; }
47578 else
47579   echo "$as_me: failed program was:" >&5
47580 sed 's/^/| /' conftest.$ac_ext >&5
47581
47582         { echo "$as_me:$LINENO: result: yes" >&5
47583 echo "${ECHO_T}yes" >&6; }
47584                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47585 fi
47586
47587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47588             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47589             if test "$wxUSE_OLE" = "yes" ; then
47590                 cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_OLE 1
47592 _ACEOF
47593
47594                 cat >>confdefs.h <<\_ACEOF
47595 #define wxUSE_OLE_AUTOMATION 1
47596 _ACEOF
47597
47598                 cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_ACTIVEX 1
47600 _ACEOF
47601
47602                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47603             fi
47604         fi
47605
47606                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47607             cat >>confdefs.h <<\_ACEOF
47608 #define wxUSE_DATAOBJ 1
47609 _ACEOF
47610
47611         fi
47612     else
47613         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47614 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47615
47616         wxUSE_CLIPBOARD=no
47617         wxUSE_DRAG_AND_DROP=no
47618         wxUSE_DATAOBJ=no
47619         wxUSE_OLE=no
47620     fi
47621
47622     if test "$wxUSE_METAFILE" = "yes"; then
47623         cat >>confdefs.h <<\_ACEOF
47624 #define wxUSE_METAFILE 1
47625 _ACEOF
47626
47627
47628                 cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_ENH_METAFILE 1
47630 _ACEOF
47631
47632     fi
47633 fi
47634
47635 if test "$wxUSE_IPC" = "yes"; then
47636     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47637         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47638 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47639         wxUSE_IPC=no
47640     fi
47641
47642     if test "$wxUSE_IPC" = "yes"; then
47643         cat >>confdefs.h <<\_ACEOF
47644 #define wxUSE_IPC 1
47645 _ACEOF
47646
47647         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47648     fi
47649 fi
47650
47651 if test "$wxUSE_DATAOBJ" = "yes"; then
47652     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47653         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47654 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47655         wxUSE_DATAOBJ=no
47656     else
47657         cat >>confdefs.h <<\_ACEOF
47658 #define wxUSE_DATAOBJ 1
47659 _ACEOF
47660
47661     fi
47662 else
47663     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47664 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47665     wxUSE_CLIPBOARD=no
47666     wxUSE_DRAG_AND_DROP=no
47667 fi
47668
47669 if test "$wxUSE_CLIPBOARD" = "yes"; then
47670     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47671         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47672 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47673         wxUSE_CLIPBOARD=no
47674     fi
47675
47676     if test "$wxUSE_CLIPBOARD" = "yes"; then
47677         cat >>confdefs.h <<\_ACEOF
47678 #define wxUSE_CLIPBOARD 1
47679 _ACEOF
47680
47681     fi
47682 fi
47683
47684 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47685     if test "$wxUSE_GTK" = 1; then
47686         if test "$WXGTK12" != 1; then
47687             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47688 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47689             wxUSE_DRAG_AND_DROP=no
47690         fi
47691     fi
47692
47693     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47694             "$wxUSE_DFB" = 1; then
47695         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47696 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47697         wxUSE_DRAG_AND_DROP=no
47698     fi
47699
47700     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47701         cat >>confdefs.h <<\_ACEOF
47702 #define wxUSE_DRAG_AND_DROP 1
47703 _ACEOF
47704
47705     fi
47706
47707 fi
47708
47709 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47710     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47711 fi
47712
47713 if test "$wxUSE_SPLINES" = "yes" ; then
47714   cat >>confdefs.h <<\_ACEOF
47715 #define wxUSE_SPLINES 1
47716 _ACEOF
47717
47718 fi
47719
47720 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47721   cat >>confdefs.h <<\_ACEOF
47722 #define wxUSE_MOUSEWHEEL 1
47723 _ACEOF
47724
47725 fi
47726
47727
47728 USES_CONTROLS=0
47729 if test "$wxUSE_CONTROLS" = "yes"; then
47730   USES_CONTROLS=1
47731 fi
47732
47733 if test "$wxUSE_ACCEL" = "yes"; then
47734   cat >>confdefs.h <<\_ACEOF
47735 #define wxUSE_ACCEL 1
47736 _ACEOF
47737
47738   USES_CONTROLS=1
47739 fi
47740
47741 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47742   cat >>confdefs.h <<\_ACEOF
47743 #define wxUSE_ANIMATIONCTRL 1
47744 _ACEOF
47745
47746   USES_CONTROLS=1
47747   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47748 fi
47749
47750 if test "$wxUSE_BUTTON" = "yes"; then
47751   cat >>confdefs.h <<\_ACEOF
47752 #define wxUSE_BUTTON 1
47753 _ACEOF
47754
47755   USES_CONTROLS=1
47756 fi
47757
47758 if test "$wxUSE_BMPBUTTON" = "yes"; then
47759   cat >>confdefs.h <<\_ACEOF
47760 #define wxUSE_BMPBUTTON 1
47761 _ACEOF
47762
47763   USES_CONTROLS=1
47764 fi
47765
47766 if test "$wxUSE_CALCTRL" = "yes"; then
47767   cat >>confdefs.h <<\_ACEOF
47768 #define wxUSE_CALENDARCTRL 1
47769 _ACEOF
47770
47771   USES_CONTROLS=1
47772   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47773 fi
47774
47775 if test "$wxUSE_CARET" = "yes"; then
47776   cat >>confdefs.h <<\_ACEOF
47777 #define wxUSE_CARET 1
47778 _ACEOF
47779
47780   USES_CONTROLS=1
47781   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47782 fi
47783
47784 if test "$wxUSE_COLLPANE" = "yes"; then
47785     cat >>confdefs.h <<\_ACEOF
47786 #define wxUSE_COLLPANE 1
47787 _ACEOF
47788
47789     USES_CONTROLS=1
47790     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47791 fi
47792
47793 if test "$wxUSE_COMBOBOX" = "yes"; then
47794   cat >>confdefs.h <<\_ACEOF
47795 #define wxUSE_COMBOBOX 1
47796 _ACEOF
47797
47798   USES_CONTROLS=1
47799 fi
47800
47801 if test "$wxUSE_COMBOCTRL" = "yes"; then
47802   cat >>confdefs.h <<\_ACEOF
47803 #define wxUSE_COMBOCTRL 1
47804 _ACEOF
47805
47806   USES_CONTROLS=1
47807 fi
47808
47809 if test "$wxUSE_CHOICE" = "yes"; then
47810   cat >>confdefs.h <<\_ACEOF
47811 #define wxUSE_CHOICE 1
47812 _ACEOF
47813
47814   USES_CONTROLS=1
47815 fi
47816
47817 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47818     cat >>confdefs.h <<\_ACEOF
47819 #define wxUSE_CHOICEBOOK 1
47820 _ACEOF
47821
47822     USES_CONTROLS=1
47823 fi
47824
47825 if test "$wxUSE_CHECKBOX" = "yes"; then
47826   cat >>confdefs.h <<\_ACEOF
47827 #define wxUSE_CHECKBOX 1
47828 _ACEOF
47829
47830   USES_CONTROLS=1
47831 fi
47832
47833 if test "$wxUSE_CHECKLST" = "yes"; then
47834   cat >>confdefs.h <<\_ACEOF
47835 #define wxUSE_CHECKLISTBOX 1
47836 _ACEOF
47837
47838   USES_CONTROLS=1
47839   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
47840 fi
47841
47842 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47843   cat >>confdefs.h <<\_ACEOF
47844 #define wxUSE_COLOURPICKERCTRL 1
47845 _ACEOF
47846
47847   USES_CONTROLS=1
47848 fi
47849
47850 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47851   cat >>confdefs.h <<\_ACEOF
47852 #define wxUSE_DATEPICKCTRL 1
47853 _ACEOF
47854
47855   USES_CONTROLS=1
47856 fi
47857
47858 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47859   cat >>confdefs.h <<\_ACEOF
47860 #define wxUSE_DIRPICKERCTRL 1
47861 _ACEOF
47862
47863   USES_CONTROLS=1
47864 fi
47865
47866 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47867   cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_FILEPICKERCTRL 1
47869 _ACEOF
47870
47871   USES_CONTROLS=1
47872 fi
47873
47874 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47875   cat >>confdefs.h <<\_ACEOF
47876 #define wxUSE_FONTPICKERCTRL 1
47877 _ACEOF
47878
47879   USES_CONTROLS=1
47880 fi
47881
47882 if test "$wxUSE_DISPLAY" = "yes"; then
47883     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47884         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47885 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47886         wxUSE_DISPLAY=no
47887     else
47888         cat >>confdefs.h <<\_ACEOF
47889 #define wxUSE_DISPLAY 1
47890 _ACEOF
47891
47892         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
47893     fi
47894 fi
47895
47896 if test "$wxUSE_DETECT_SM" = "yes"; then
47897     cat >>confdefs.h <<\_ACEOF
47898 #define wxUSE_DETECT_SM 1
47899 _ACEOF
47900
47901 fi
47902
47903 if test "$wxUSE_GAUGE" = "yes"; then
47904   cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_GAUGE 1
47906 _ACEOF
47907
47908   USES_CONTROLS=1
47909 fi
47910
47911 if test "$wxUSE_GRID" = "yes"; then
47912   cat >>confdefs.h <<\_ACEOF
47913 #define wxUSE_GRID 1
47914 _ACEOF
47915
47916   USES_CONTROLS=1
47917   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47918 fi
47919
47920 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47921   cat >>confdefs.h <<\_ACEOF
47922 #define wxUSE_HYPERLINKCTRL 1
47923 _ACEOF
47924
47925   USES_CONTROLS=1
47926 fi
47927
47928 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47929   cat >>confdefs.h <<\_ACEOF
47930 #define wxUSE_BITMAPCOMBOBOX 1
47931 _ACEOF
47932
47933   USES_CONTROLS=1
47934 fi
47935
47936 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47937   cat >>confdefs.h <<\_ACEOF
47938 #define wxUSE_DATAVIEWCTRL 1
47939 _ACEOF
47940
47941   USES_CONTROLS=1
47942   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47943 fi
47944
47945 if test "$wxUSE_IMAGLIST" = "yes"; then
47946     cat >>confdefs.h <<\_ACEOF
47947 #define wxUSE_IMAGLIST 1
47948 _ACEOF
47949
47950 fi
47951
47952 if test "$wxUSE_LISTBOOK" = "yes"; then
47953     cat >>confdefs.h <<\_ACEOF
47954 #define wxUSE_LISTBOOK 1
47955 _ACEOF
47956
47957     USES_CONTROLS=1
47958 fi
47959
47960 if test "$wxUSE_LISTBOX" = "yes"; then
47961     cat >>confdefs.h <<\_ACEOF
47962 #define wxUSE_LISTBOX 1
47963 _ACEOF
47964
47965     USES_CONTROLS=1
47966     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
47967 fi
47968
47969 if test "$wxUSE_LISTCTRL" = "yes"; then
47970     if test "$wxUSE_IMAGLIST" = "yes"; then
47971         cat >>confdefs.h <<\_ACEOF
47972 #define wxUSE_LISTCTRL 1
47973 _ACEOF
47974
47975         USES_CONTROLS=1
47976         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47977     else
47978         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47979 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47980     fi
47981 fi
47982
47983 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47984     cat >>confdefs.h <<\_ACEOF
47985 #define wxUSE_EDITABLELISTBOX 1
47986 _ACEOF
47987
47988     USES_CONTROLS=1
47989     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
47990 fi
47991
47992 if test "$wxUSE_NOTEBOOK" = "yes"; then
47993     cat >>confdefs.h <<\_ACEOF
47994 #define wxUSE_NOTEBOOK 1
47995 _ACEOF
47996
47997     USES_CONTROLS=1
47998     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47999 fi
48000
48001 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48002   cat >>confdefs.h <<\_ACEOF
48003 #define wxUSE_ODCOMBOBOX 1
48004 _ACEOF
48005
48006   USES_CONTROLS=1
48007   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48008 fi
48009
48010
48011 if test "$wxUSE_RADIOBOX" = "yes"; then
48012     cat >>confdefs.h <<\_ACEOF
48013 #define wxUSE_RADIOBOX 1
48014 _ACEOF
48015
48016     USES_CONTROLS=1
48017 fi
48018
48019 if test "$wxUSE_RADIOBTN" = "yes"; then
48020     cat >>confdefs.h <<\_ACEOF
48021 #define wxUSE_RADIOBTN 1
48022 _ACEOF
48023
48024     USES_CONTROLS=1
48025 fi
48026
48027 if test "$wxUSE_SASH" = "yes"; then
48028     cat >>confdefs.h <<\_ACEOF
48029 #define wxUSE_SASH 1
48030 _ACEOF
48031
48032     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48033 fi
48034
48035 if test "$wxUSE_SCROLLBAR" = "yes"; then
48036     cat >>confdefs.h <<\_ACEOF
48037 #define wxUSE_SCROLLBAR 1
48038 _ACEOF
48039
48040     USES_CONTROLS=1
48041     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48042 fi
48043
48044 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48045     cat >>confdefs.h <<\_ACEOF
48046 #define wxUSE_SEARCHCTRL 1
48047 _ACEOF
48048
48049     USES_CONTROLS=1
48050 fi
48051
48052 if test "$wxUSE_SLIDER" = "yes"; then
48053     cat >>confdefs.h <<\_ACEOF
48054 #define wxUSE_SLIDER 1
48055 _ACEOF
48056
48057     USES_CONTROLS=1
48058 fi
48059
48060 if test "$wxUSE_SPINBTN" = "yes"; then
48061     cat >>confdefs.h <<\_ACEOF
48062 #define wxUSE_SPINBTN 1
48063 _ACEOF
48064
48065     USES_CONTROLS=1
48066 fi
48067
48068 if test "$wxUSE_SPINCTRL" = "yes"; then
48069     cat >>confdefs.h <<\_ACEOF
48070 #define wxUSE_SPINCTRL 1
48071 _ACEOF
48072
48073     USES_CONTROLS=1
48074 fi
48075
48076 if test "$wxUSE_SPLITTER" = "yes"; then
48077     cat >>confdefs.h <<\_ACEOF
48078 #define wxUSE_SPLITTER 1
48079 _ACEOF
48080
48081     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48082 fi
48083
48084 if test "$wxUSE_STATBMP" = "yes"; then
48085     cat >>confdefs.h <<\_ACEOF
48086 #define wxUSE_STATBMP 1
48087 _ACEOF
48088
48089     USES_CONTROLS=1
48090 fi
48091
48092 if test "$wxUSE_STATBOX" = "yes"; then
48093     cat >>confdefs.h <<\_ACEOF
48094 #define wxUSE_STATBOX 1
48095 _ACEOF
48096
48097     USES_CONTROLS=1
48098 fi
48099
48100 if test "$wxUSE_STATTEXT" = "yes"; then
48101     cat >>confdefs.h <<\_ACEOF
48102 #define wxUSE_STATTEXT 1
48103 _ACEOF
48104
48105     USES_CONTROLS=1
48106 fi
48107
48108 if test "$wxUSE_STATLINE" = "yes"; then
48109     cat >>confdefs.h <<\_ACEOF
48110 #define wxUSE_STATLINE 1
48111 _ACEOF
48112
48113     USES_CONTROLS=1
48114 fi
48115
48116 if test "$wxUSE_STATUSBAR" = "yes"; then
48117         cat >>confdefs.h <<\_ACEOF
48118 #define wxUSE_NATIVE_STATUSBAR 1
48119 _ACEOF
48120
48121     cat >>confdefs.h <<\_ACEOF
48122 #define wxUSE_STATUSBAR 1
48123 _ACEOF
48124
48125     USES_CONTROLS=1
48126
48127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48128 fi
48129
48130 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48131     cat >>confdefs.h <<\_ACEOF
48132 #define wxUSE_TAB_DIALOG 1
48133 _ACEOF
48134
48135 fi
48136
48137 if test "$wxUSE_TEXTCTRL" = "yes"; then
48138     cat >>confdefs.h <<\_ACEOF
48139 #define wxUSE_TEXTCTRL 1
48140 _ACEOF
48141
48142     USES_CONTROLS=1
48143     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48144 fi
48145
48146 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48147     if test "$wxUSE_COCOA" = 1 ; then
48148         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48149 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48150         wxUSE_TOGGLEBTN=no
48151     fi
48152
48153     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48154         cat >>confdefs.h <<\_ACEOF
48155 #define wxUSE_TOGGLEBTN 1
48156 _ACEOF
48157
48158         USES_CONTROLS=1
48159     fi
48160 fi
48161
48162 if test "$wxUSE_TOOLBAR" = "yes"; then
48163     cat >>confdefs.h <<\_ACEOF
48164 #define wxUSE_TOOLBAR 1
48165 _ACEOF
48166
48167     USES_CONTROLS=1
48168
48169     if test "$wxUSE_UNIVERSAL" = "yes"; then
48170         wxUSE_TOOLBAR_NATIVE="no"
48171     else
48172         wxUSE_TOOLBAR_NATIVE="yes"
48173         cat >>confdefs.h <<\_ACEOF
48174 #define wxUSE_TOOLBAR_NATIVE 1
48175 _ACEOF
48176
48177     fi
48178
48179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48180 fi
48181
48182 if test "$wxUSE_TOOLTIPS" = "yes"; then
48183     if test "$wxUSE_MOTIF" = 1; then
48184         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48185 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48186     else
48187         if test "$wxUSE_UNIVERSAL" = "yes"; then
48188             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48189 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48190         else
48191             cat >>confdefs.h <<\_ACEOF
48192 #define wxUSE_TOOLTIPS 1
48193 _ACEOF
48194
48195         fi
48196     fi
48197 fi
48198
48199 if test "$wxUSE_TREEBOOK" = "yes"; then
48200     cat >>confdefs.h <<\_ACEOF
48201 #define wxUSE_TREEBOOK 1
48202 _ACEOF
48203
48204     USES_CONTROLS=1
48205 fi
48206
48207 if test "$wxUSE_TOOLBOOK" = "yes"; then
48208     cat >>confdefs.h <<\_ACEOF
48209 #define wxUSE_TOOLBOOK 1
48210 _ACEOF
48211
48212     USES_CONTROLS=1
48213 fi
48214
48215 if test "$wxUSE_TREECTRL" = "yes"; then
48216     if test "$wxUSE_IMAGLIST" = "yes"; then
48217         cat >>confdefs.h <<\_ACEOF
48218 #define wxUSE_TREECTRL 1
48219 _ACEOF
48220
48221         USES_CONTROLS=1
48222         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48223     else
48224         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48225 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48226     fi
48227 fi
48228
48229 if test "$wxUSE_POPUPWIN" = "yes"; then
48230     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48231         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48232 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48233     else
48234         if test "$wxUSE_PM" = 1; then
48235             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48236 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48237         else
48238             cat >>confdefs.h <<\_ACEOF
48239 #define wxUSE_POPUPWIN 1
48240 _ACEOF
48241
48242             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48243
48244             USES_CONTROLS=1
48245         fi
48246     fi
48247 fi
48248
48249 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48250     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48251         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48252 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48253     else
48254         cat >>confdefs.h <<\_ACEOF
48255 #define wxUSE_DIALUP_MANAGER 1
48256 _ACEOF
48257
48258         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48259     fi
48260 fi
48261
48262 if test "$wxUSE_TIPWINDOW" = "yes"; then
48263     if test "$wxUSE_PM" = 1; then
48264         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48265 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48266     else
48267         cat >>confdefs.h <<\_ACEOF
48268 #define wxUSE_TIPWINDOW 1
48269 _ACEOF
48270
48271     fi
48272 fi
48273
48274 if test "$USES_CONTROLS" = 1; then
48275     cat >>confdefs.h <<\_ACEOF
48276 #define wxUSE_CONTROLS 1
48277 _ACEOF
48278
48279 fi
48280
48281
48282 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48283     cat >>confdefs.h <<\_ACEOF
48284 #define wxUSE_ACCESSIBILITY 1
48285 _ACEOF
48286
48287     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48288 fi
48289
48290 if test "$wxUSE_DC_CACHEING" = "yes"; then
48291     cat >>confdefs.h <<\_ACEOF
48292 #define wxUSE_DC_CACHEING 1
48293 _ACEOF
48294
48295 fi
48296
48297 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48298     cat >>confdefs.h <<\_ACEOF
48299 #define wxUSE_DRAGIMAGE 1
48300 _ACEOF
48301
48302     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48303 fi
48304
48305 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48306     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48307         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48308 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48309     else
48310         cat >>confdefs.h <<\_ACEOF
48311 #define wxUSE_EXCEPTIONS 1
48312 _ACEOF
48313
48314         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48315     fi
48316 fi
48317
48318 USE_HTML=0
48319 if test "$wxUSE_HTML" = "yes"; then
48320     cat >>confdefs.h <<\_ACEOF
48321 #define wxUSE_HTML 1
48322 _ACEOF
48323
48324     USE_HTML=1
48325     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48326     if test "$wxUSE_MAC" = 1; then
48327         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48328     fi
48329 fi
48330 if test "$wxUSE_WEBKIT" = "yes"; then
48331     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48332         old_CPPFLAGS="$CPPFLAGS"
48333         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48334         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48335 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48336 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48337   echo $ECHO_N "(cached) $ECHO_C" >&6
48338 else
48339   cat >conftest.$ac_ext <<_ACEOF
48340 /* confdefs.h.  */
48341 _ACEOF
48342 cat confdefs.h >>conftest.$ac_ext
48343 cat >>conftest.$ac_ext <<_ACEOF
48344 /* end confdefs.h.  */
48345
48346                            #include <Carbon/Carbon.h>
48347                            #include <WebKit/WebKit.h>
48348
48349
48350 #include <WebKit/HIWebView.h>
48351 _ACEOF
48352 rm -f conftest.$ac_objext
48353 if { (ac_try="$ac_compile"
48354 case "(($ac_try" in
48355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48356   *) ac_try_echo=$ac_try;;
48357 esac
48358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48359   (eval "$ac_compile") 2>conftest.er1
48360   ac_status=$?
48361   grep -v '^ *+' conftest.er1 >conftest.err
48362   rm -f conftest.er1
48363   cat conftest.err >&5
48364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48365   (exit $ac_status); } && {
48366          test -z "$ac_c_werror_flag" ||
48367          test ! -s conftest.err
48368        } && test -s conftest.$ac_objext; then
48369   ac_cv_header_WebKit_HIWebView_h=yes
48370 else
48371   echo "$as_me: failed program was:" >&5
48372 sed 's/^/| /' conftest.$ac_ext >&5
48373
48374         ac_cv_header_WebKit_HIWebView_h=no
48375 fi
48376
48377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48378 fi
48379 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48380 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48381 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48382
48383                            cat >>confdefs.h <<\_ACEOF
48384 #define wxUSE_WEBKIT 1
48385 _ACEOF
48386
48387                            WEBKIT_LINK="-framework WebKit"
48388
48389 else
48390
48391                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48392 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48393                            wxUSE_WEBKIT=no
48394
48395 fi
48396
48397
48398         CPPFLAGS="$old_CPPFLAGS"
48399     elif test "$wxUSE_COCOA" = 1; then
48400         cat >>confdefs.h <<\_ACEOF
48401 #define wxUSE_WEBKIT 1
48402 _ACEOF
48403
48404     else
48405         wxUSE_WEBKIT=no
48406     fi
48407 fi
48408
48409 USE_XRC=0
48410 if test "$wxUSE_XRC" = "yes"; then
48411     if test "$wxUSE_XML" != "yes"; then
48412         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48413 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48414         wxUSE_XRC=no
48415     else
48416         cat >>confdefs.h <<\_ACEOF
48417 #define wxUSE_XRC 1
48418 _ACEOF
48419
48420         USE_XRC=1
48421         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48422     fi
48423 fi
48424
48425 USE_AUI=0
48426 if test "$wxUSE_AUI" = "yes"; then
48427    cat >>confdefs.h <<\_ACEOF
48428 #define wxUSE_AUI 1
48429 _ACEOF
48430
48431    USE_AUI=1
48432    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48433 fi
48434
48435 USE_STC=0
48436 if test "$wxUSE_STC" = "yes"; then
48437    cat >>confdefs.h <<\_ACEOF
48438 #define wxUSE_STC 1
48439 _ACEOF
48440
48441    USE_STC=1
48442    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48443 fi
48444
48445 if test "$wxUSE_MENUS" = "yes"; then
48446     cat >>confdefs.h <<\_ACEOF
48447 #define wxUSE_MENUS 1
48448 _ACEOF
48449
48450     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48451 fi
48452
48453 if test "$wxUSE_METAFILE" = "yes"; then
48454     cat >>confdefs.h <<\_ACEOF
48455 #define wxUSE_METAFILE 1
48456 _ACEOF
48457
48458 fi
48459
48460 if test "$wxUSE_MIMETYPE" = "yes"; then
48461     cat >>confdefs.h <<\_ACEOF
48462 #define wxUSE_MIMETYPE 1
48463 _ACEOF
48464
48465 fi
48466
48467 if test "$wxUSE_MINIFRAME" = "yes"; then
48468     cat >>confdefs.h <<\_ACEOF
48469 #define wxUSE_MINIFRAME 1
48470 _ACEOF
48471
48472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
48473 fi
48474
48475 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48476     cat >>confdefs.h <<\_ACEOF
48477 #define wxUSE_SYSTEM_OPTIONS 1
48478 _ACEOF
48479
48480     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
48481         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
48482         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48483     fi
48484 fi
48485
48486
48487 if test "$wxUSE_VALIDATORS" = "yes"; then
48488     cat >>confdefs.h <<\_ACEOF
48489 #define wxUSE_VALIDATORS 1
48490 _ACEOF
48491
48492     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48493 fi
48494
48495 if test "$wxUSE_PALETTE" = "yes" ; then
48496     if test "$wxUSE_DFB" = 1; then
48497         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48498 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48499         wxUSE_PALETTE=no
48500     else
48501         cat >>confdefs.h <<\_ACEOF
48502 #define wxUSE_PALETTE 1
48503 _ACEOF
48504
48505     fi
48506 fi
48507
48508 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48509     LIBS=" -lunicows $LIBS"
48510 fi
48511
48512 USE_RICHTEXT=0
48513 if test "$wxUSE_RICHTEXT" = "yes"; then
48514     cat >>confdefs.h <<\_ACEOF
48515 #define wxUSE_RICHTEXT 1
48516 _ACEOF
48517
48518     USE_RICHTEXT=1
48519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48520 fi
48521
48522
48523 if test "$wxUSE_IMAGE" = "yes" ; then
48524     cat >>confdefs.h <<\_ACEOF
48525 #define wxUSE_IMAGE 1
48526 _ACEOF
48527
48528
48529     if test "$wxUSE_GIF" = "yes" ; then
48530       cat >>confdefs.h <<\_ACEOF
48531 #define wxUSE_GIF 1
48532 _ACEOF
48533
48534     fi
48535
48536     if test "$wxUSE_PCX" = "yes" ; then
48537       cat >>confdefs.h <<\_ACEOF
48538 #define wxUSE_PCX 1
48539 _ACEOF
48540
48541     fi
48542
48543     if test "$wxUSE_TGA" = "yes" ; then
48544       cat >>confdefs.h <<\_ACEOF
48545 #define wxUSE_TGA 1
48546 _ACEOF
48547
48548     fi
48549
48550     if test "$wxUSE_IFF" = "yes" ; then
48551       cat >>confdefs.h <<\_ACEOF
48552 #define wxUSE_IFF 1
48553 _ACEOF
48554
48555     fi
48556
48557     if test "$wxUSE_PNM" = "yes" ; then
48558       cat >>confdefs.h <<\_ACEOF
48559 #define wxUSE_PNM 1
48560 _ACEOF
48561
48562     fi
48563
48564     if test "$wxUSE_XPM" = "yes" ; then
48565       cat >>confdefs.h <<\_ACEOF
48566 #define wxUSE_XPM 1
48567 _ACEOF
48568
48569     fi
48570
48571     if test "$wxUSE_ICO_CUR" = "yes" ; then
48572       cat >>confdefs.h <<\_ACEOF
48573 #define wxUSE_ICO_CUR 1
48574 _ACEOF
48575
48576     fi
48577 fi
48578
48579
48580 if test "$wxUSE_ABOUTDLG" = "yes"; then
48581     cat >>confdefs.h <<\_ACEOF
48582 #define wxUSE_ABOUTDLG 1
48583 _ACEOF
48584
48585 fi
48586
48587 if test "$wxUSE_CHOICEDLG" = "yes"; then
48588     cat >>confdefs.h <<\_ACEOF
48589 #define wxUSE_CHOICEDLG 1
48590 _ACEOF
48591
48592 fi
48593
48594 if test "$wxUSE_COLOURDLG" = "yes"; then
48595     cat >>confdefs.h <<\_ACEOF
48596 #define wxUSE_COLOURDLG 1
48597 _ACEOF
48598
48599 fi
48600
48601 if test "$wxUSE_FILEDLG" = "yes"; then
48602     cat >>confdefs.h <<\_ACEOF
48603 #define wxUSE_FILEDLG 1
48604 _ACEOF
48605
48606 fi
48607
48608 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48609     cat >>confdefs.h <<\_ACEOF
48610 #define wxUSE_FINDREPLDLG 1
48611 _ACEOF
48612
48613 fi
48614
48615 if test "$wxUSE_FONTDLG" = "yes"; then
48616     cat >>confdefs.h <<\_ACEOF
48617 #define wxUSE_FONTDLG 1
48618 _ACEOF
48619
48620 fi
48621
48622 if test "$wxUSE_DIRDLG" = "yes"; then
48623     if test "$wxUSE_TREECTRL" != "yes"; then
48624         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48625 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48626     else
48627         cat >>confdefs.h <<\_ACEOF
48628 #define wxUSE_DIRDLG 1
48629 _ACEOF
48630
48631     fi
48632 fi
48633
48634 if test "$wxUSE_MSGDLG" = "yes"; then
48635     cat >>confdefs.h <<\_ACEOF
48636 #define wxUSE_MSGDLG 1
48637 _ACEOF
48638
48639 fi
48640
48641 if test "$wxUSE_NUMBERDLG" = "yes"; then
48642     cat >>confdefs.h <<\_ACEOF
48643 #define wxUSE_NUMBERDLG 1
48644 _ACEOF
48645
48646 fi
48647
48648 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48649     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48650        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48651 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48652     else
48653         cat >>confdefs.h <<\_ACEOF
48654 #define wxUSE_PROGRESSDLG 1
48655 _ACEOF
48656
48657     fi
48658 fi
48659
48660 if test "$wxUSE_SPLASH" = "yes"; then
48661     cat >>confdefs.h <<\_ACEOF
48662 #define wxUSE_SPLASH 1
48663 _ACEOF
48664
48665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48666 fi
48667
48668 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48669     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48670        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48671 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48672     else
48673         cat >>confdefs.h <<\_ACEOF
48674 #define wxUSE_STARTUP_TIPS 1
48675 _ACEOF
48676
48677     fi
48678 fi
48679
48680 if test "$wxUSE_TEXTDLG" = "yes"; then
48681     cat >>confdefs.h <<\_ACEOF
48682 #define wxUSE_TEXTDLG 1
48683 _ACEOF
48684
48685 fi
48686
48687 if test "$wxUSE_WIZARDDLG" = "yes"; then
48688     cat >>confdefs.h <<\_ACEOF
48689 #define wxUSE_WIZARDDLG 1
48690 _ACEOF
48691
48692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48693 fi
48694
48695
48696 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48697    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48698       cat >>confdefs.h <<\_ACEOF
48699 #define wxUSE_GRAPHICS_CONTEXT 1
48700 _ACEOF
48701
48702    elif test "$wxUSE_GTK" != 1; then
48703             cat >>confdefs.h <<\_ACEOF
48704 #define wxUSE_GRAPHICS_CONTEXT 1
48705 _ACEOF
48706
48707    else
48708
48709 pkg_failed=no
48710 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48711 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48712
48713 if test -n "$PKG_CONFIG"; then
48714     if test -n "$CAIRO_CFLAGS"; then
48715         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48716     else
48717         if test -n "$PKG_CONFIG" && \
48718     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48719   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48720   ac_status=$?
48721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48722   (exit $ac_status); }; then
48723   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48724 else
48725   pkg_failed=yes
48726 fi
48727     fi
48728 else
48729         pkg_failed=untried
48730 fi
48731 if test -n "$PKG_CONFIG"; then
48732     if test -n "$CAIRO_LIBS"; then
48733         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48734     else
48735         if test -n "$PKG_CONFIG" && \
48736     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48737   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48738   ac_status=$?
48739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48740   (exit $ac_status); }; then
48741   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48742 else
48743   pkg_failed=yes
48744 fi
48745     fi
48746 else
48747         pkg_failed=untried
48748 fi
48749
48750
48751
48752 if test $pkg_failed = yes; then
48753
48754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48755         _pkg_short_errors_supported=yes
48756 else
48757         _pkg_short_errors_supported=no
48758 fi
48759         if test $_pkg_short_errors_supported = yes; then
48760                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48761         else
48762                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48763         fi
48764         # Put the nasty error message in config.log where it belongs
48765         echo "$CAIRO_PKG_ERRORS" >&5
48766
48767         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48768 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48769
48770 elif test $pkg_failed = untried; then
48771         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48772 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48773
48774 else
48775         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48776         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48777         { echo "$as_me:$LINENO: result: yes" >&5
48778 echo "${ECHO_T}yes" >&6; }
48779         cat >>confdefs.h <<\_ACEOF
48780 #define wxUSE_GRAPHICS_CONTEXT 1
48781 _ACEOF
48782
48783 fi
48784    fi
48785 fi
48786
48787
48788 USE_MEDIA=0
48789
48790 if test "$wxUSE_MEDIACTRL" = "yes"; then
48791     USE_MEDIA=1
48792
48793                 if test "$wxUSE_GTK" = 1; then
48794         wxUSE_GSTREAMER="no"
48795
48796                                                                 GST_VERSION_MAJOR=0
48797         GST_VERSION_MINOR=10
48798         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48799
48800         if test "$wxUSE_GSTREAMER8" = "no"; then
48801
48802 pkg_failed=no
48803 { echo "$as_me:$LINENO: checking for GST" >&5
48804 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48805
48806 if test -n "$PKG_CONFIG"; then
48807     if test -n "$GST_CFLAGS"; then
48808         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48809     else
48810         if test -n "$PKG_CONFIG" && \
48811     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48812   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48813   ac_status=$?
48814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48815   (exit $ac_status); }; then
48816   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48817 else
48818   pkg_failed=yes
48819 fi
48820     fi
48821 else
48822         pkg_failed=untried
48823 fi
48824 if test -n "$PKG_CONFIG"; then
48825     if test -n "$GST_LIBS"; then
48826         pkg_cv_GST_LIBS="$GST_LIBS"
48827     else
48828         if test -n "$PKG_CONFIG" && \
48829     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48830   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48831   ac_status=$?
48832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48833   (exit $ac_status); }; then
48834   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48835 else
48836   pkg_failed=yes
48837 fi
48838     fi
48839 else
48840         pkg_failed=untried
48841 fi
48842
48843
48844
48845 if test $pkg_failed = yes; then
48846
48847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48848         _pkg_short_errors_supported=yes
48849 else
48850         _pkg_short_errors_supported=no
48851 fi
48852         if test $_pkg_short_errors_supported = yes; then
48853                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48854         else
48855                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48856         fi
48857         # Put the nasty error message in config.log where it belongs
48858         echo "$GST_PKG_ERRORS" >&5
48859
48860
48861                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48862 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48863                     GST_VERSION_MINOR=8
48864
48865
48866 elif test $pkg_failed = untried; then
48867
48868                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48869 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48870                     GST_VERSION_MINOR=8
48871
48872
48873 else
48874         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48875         GST_LIBS=$pkg_cv_GST_LIBS
48876         { echo "$as_me:$LINENO: result: yes" >&5
48877 echo "${ECHO_T}yes" >&6; }
48878
48879                     wxUSE_GSTREAMER="yes"
48880                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48881
48882 fi
48883         else
48884                         GST_VERSION_MINOR=8
48885         fi
48886
48887         if test $GST_VERSION_MINOR = "8"; then
48888             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48889
48890 pkg_failed=no
48891 { echo "$as_me:$LINENO: checking for GST" >&5
48892 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48893
48894 if test -n "$PKG_CONFIG"; then
48895     if test -n "$GST_CFLAGS"; then
48896         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48897     else
48898         if test -n "$PKG_CONFIG" && \
48899     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48900   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48901   ac_status=$?
48902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48903   (exit $ac_status); }; then
48904   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48905 else
48906   pkg_failed=yes
48907 fi
48908     fi
48909 else
48910         pkg_failed=untried
48911 fi
48912 if test -n "$PKG_CONFIG"; then
48913     if test -n "$GST_LIBS"; then
48914         pkg_cv_GST_LIBS="$GST_LIBS"
48915     else
48916         if test -n "$PKG_CONFIG" && \
48917     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48918   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48919   ac_status=$?
48920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48921   (exit $ac_status); }; then
48922   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48923 else
48924   pkg_failed=yes
48925 fi
48926     fi
48927 else
48928         pkg_failed=untried
48929 fi
48930
48931
48932
48933 if test $pkg_failed = yes; then
48934
48935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48936         _pkg_short_errors_supported=yes
48937 else
48938         _pkg_short_errors_supported=no
48939 fi
48940         if test $_pkg_short_errors_supported = yes; then
48941                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48942         else
48943                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48944         fi
48945         # Put the nasty error message in config.log where it belongs
48946         echo "$GST_PKG_ERRORS" >&5
48947
48948
48949                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48950 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48951
48952 elif test $pkg_failed = untried; then
48953
48954                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48955 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48956
48957 else
48958         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48959         GST_LIBS=$pkg_cv_GST_LIBS
48960         { echo "$as_me:$LINENO: result: yes" >&5
48961 echo "${ECHO_T}yes" >&6; }
48962         wxUSE_GSTREAMER="yes"
48963 fi
48964         fi
48965
48966
48967         if test "$wxUSE_GSTREAMER" = "yes"; then
48968             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48969             LIBS="$GST_LIBS $LIBS"
48970
48971             cat >>confdefs.h <<\_ACEOF
48972 #define wxUSE_GSTREAMER 1
48973 _ACEOF
48974
48975         else
48976             USE_MEDIA=0
48977         fi
48978     fi
48979
48980     if test $USE_MEDIA = 1; then
48981         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48982         cat >>confdefs.h <<\_ACEOF
48983 #define wxUSE_MEDIACTRL 1
48984 _ACEOF
48985
48986     fi
48987 fi
48988
48989
48990 if test "$cross_compiling" = "yes"; then
48991         OSINFO="\"$host\""
48992 else
48993         OSINFO=`uname -s -r -m`
48994     OSINFO="\"$OSINFO\""
48995 fi
48996
48997 cat >>confdefs.h <<_ACEOF
48998 #define WXWIN_OS_DESCRIPTION $OSINFO
48999 _ACEOF
49000
49001
49002
49003 if test "x$prefix" != "xNONE"; then
49004     wxPREFIX=$prefix
49005 else
49006     wxPREFIX=$ac_default_prefix
49007 fi
49008
49009 cat >>confdefs.h <<_ACEOF
49010 #define wxINSTALL_PREFIX "$wxPREFIX"
49011 _ACEOF
49012
49013
49014
49015
49016 STD_BASE_LIBS="base"
49017 STD_GUI_LIBS=""
49018 BUILT_WX_LIBS="base"
49019 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49020
49021 if test "$wxUSE_SOCKETS" = "yes" ; then
49022     STD_BASE_LIBS="net $STD_BASE_LIBS"
49023     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49024 fi
49025 if test "$wxUSE_ODBC" != "no" ; then
49026     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49027 fi
49028 if test "$wxUSE_XML" = "yes" ; then
49029     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49030     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49031 fi
49032
49033 if test "$wxUSE_GUI" = "yes"; then
49034     STD_GUI_LIBS="adv core"
49035     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49036
49037     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49038         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49039         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49040     fi
49041     if test "$wxUSE_ODBC" != "no" ; then
49042         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49043     fi
49044     if test "$wxUSE_HTML" = "yes" ; then
49045         STD_GUI_LIBS="html $STD_GUI_LIBS"
49046         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49047     fi
49048     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49049         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49050     fi
49051     if test "$wxUSE_OPENGL" = "yes" ; then
49052         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49053     fi
49054     if test "$wxUSE_AUI" = "yes" ; then
49055         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49056     fi
49057     if test "$wxUSE_STC" = "yes" ; then
49058         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49059     fi
49060     if test "$wxUSE_XRC" = "yes" ; then
49061         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49062         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49063     fi
49064 fi
49065
49066
49067
49068
49069
49070
49071
49072
49073 if test "$wxUSE_MAC" = 1 ; then
49074     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49075         if test "$USE_DARWIN" = 1; then
49076             LDFLAGS="$LDFLAGS -framework QuickTime"
49077         else
49078             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49079         fi
49080     fi
49081     if test "$USE_DARWIN" = 1; then
49082         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49083     else
49084         LDFLAGS="$LDFLAGS -lCarbonLib"
49085     fi
49086 fi
49087 if test "$wxUSE_COCOA" = 1 ; then
49088     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49089     if test "$wxUSE_MEDIACTRL" = "yes"; then
49090         LDFLAGS="$LDFLAGS -framework QuickTime"
49091     fi
49092 fi
49093 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49094     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49095 fi
49096
49097 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49098
49099 if test "$wxUSE_GUI" = "yes"; then
49100
49101
49102         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49103                      dynamic erase event exec font image minimal mobile \
49104                      mobile/wxedit mobile/styles propsize render \
49105                      rotate shaped svg taborder vscroll widgets"
49106
49107     if test "$wxUSE_MONOLITHIC" != "yes"; then
49108         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49109     fi
49110     if test "$TOOLKIT" = "MSW"; then
49111         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49112         if test "$wxUSE_UNIVERSAL" != "yes"; then
49113             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49114         fi
49115     fi
49116     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49117         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49118     fi
49119 else
49120     SAMPLES_SUBDIRS="console"
49121 fi
49122
49123
49124 if test "x$INTELCC" = "xyes" ; then
49125                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49126 elif test "$GCC" = yes ; then
49127     CWARNINGS="-Wall -Wundef"
49128 fi
49129
49130 if test "x$INTELCXX" = "xyes" ; then
49131                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49132 elif test "$GXX" = yes ; then
49133         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49134 fi
49135
49136
49137 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49138 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49139
49140
49141 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49142  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49143  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49144  $CPPFLAGS `
49145
49146 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49147 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49148 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49149
49150 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49151
49152
49153 if test "x$MWCC" = "xyes"; then
49154
49155             CC="$CC -cwd source -I-"
49156     CXX="$CXX -cwd source -I-"
49157 fi
49158
49159
49160 LIBS=`echo $LIBS`
49161 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49162 EXTRALIBS_XML="$EXPAT_LINK"
49163 EXTRALIBS_HTML="$MSPACK_LINK"
49164 EXTRALIBS_ODBC="$ODBC_LINK"
49165 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49166 if test "$wxUSE_GUI" = "yes"; then
49167     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49168 fi
49169 if test "$wxUSE_OPENGL" = "yes"; then
49170     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49171 fi
49172
49173 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49174
49175 WXCONFIG_LIBS="$LIBS"
49176
49177 if test "$wxUSE_REGEX" = "builtin" ; then
49178     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49179 fi
49180 if test "$wxUSE_EXPAT" = "builtin" ; then
49181     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49182 fi
49183 if test "$wxUSE_ODBC" = "builtin" ; then
49184     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49185 fi
49186 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49187     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49188 fi
49189 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49190     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49191 fi
49192 if test "$wxUSE_LIBPNG" = "builtin" ; then
49193     wxconfig_3rdparty="png $wxconfig_3rdparty"
49194 fi
49195 if test "$wxUSE_ZLIB" = "builtin" ; then
49196     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49197 fi
49198
49199 for i in $wxconfig_3rdparty ; do
49200     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49201 done
49202
49203
49204 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49205     WXUNIV=1
49206
49207     case "$wxUNIV_THEMES" in
49208         ''|all)
49209             cat >>confdefs.h <<\_ACEOF
49210 #define wxUSE_ALL_THEMES 1
49211 _ACEOF
49212
49213             ;;
49214
49215         *)
49216             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49217                 cat >>confdefs.h <<_ACEOF
49218 #define wxUSE_THEME_$t 1
49219 _ACEOF
49220
49221             done
49222     esac
49223 else
49224     WXUNIV=0
49225 fi
49226
49227
49228
49229
49230
49231
49232
49233
49234
49235 if test $wxUSE_MONOLITHIC = "yes" ; then
49236     MONOLITHIC=1
49237 else
49238     MONOLITHIC=0
49239 fi
49240
49241 if test $wxUSE_PLUGINS = "yes" ; then
49242     USE_PLUGINS=1
49243 else
49244     USE_PLUGINS=0
49245 fi
49246
49247 if test $wxUSE_ODBC != "no" ; then
49248     USE_ODBC=1
49249 else
49250     USE_ODBC=0
49251 fi
49252
49253 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49254     USE_QA=1
49255 else
49256     USE_QA=0
49257 fi
49258
49259 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49260     OFFICIAL_BUILD=1
49261 else
49262     OFFICIAL_BUILD=0
49263 fi
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49291
49292
49293
49294
49295
49296
49297
49298
49299 case "$TOOLKIT" in
49300     GTK)
49301         TOOLKIT_DESC="GTK+"
49302         if test "$WXGTK20" = 1; then
49303             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49304             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49305                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49306             fi
49307             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49308                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49309             fi
49310             if test "$wxUSE_LIBHILDON" = "yes"; then
49311                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49312             fi
49313
49314             if test "$TOOLKIT_EXTRA" != ""; then
49315                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49316             fi
49317         fi
49318         ;;
49319
49320     ?*)
49321         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49322         ;;
49323
49324     *)
49325         TOOLKIT_DESC="base only"
49326         ;;
49327 esac
49328
49329 if test "$wxUSE_WINE" = "yes"; then
49330     BAKEFILE_FORCE_PLATFORM=win32
49331 fi
49332
49333 if test "$wxUSE_MAC" = 1 ; then
49334     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
49335                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
49336             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
49337         else
49338                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
49339         fi
49340         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
49341         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
49342         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
49343         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
49344         bk_use_pch=no
49345     fi
49346     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
49347     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
49348 fi
49349
49350 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49351 then
49352     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49353 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49354 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49355   echo $ECHO_N "(cached) $ECHO_C" >&6
49356 else
49357
49358             echo '#include <stdio.h>
49359                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49360
49361             echo '#include "conftest.h"
49362                   int main()
49363                   {
49364                      printf("%ls", test_var);
49365                      return 0;
49366                   }' > conftest.cpp
49367
49368             wx_cv_gcc_pch_bug="pch not supported"
49369
49370             if $CXX conftest.h >/dev/null 2>&1
49371             then
49372                 wx_cv_gcc_pch_bug=
49373
49374                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49375                 then
49376                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49377                         grep awidetest >/dev/null
49378                     then
49379                         wx_cv_gcc_pch_bug=no
49380                     else
49381                         wx_cv_gcc_pch_bug=yes
49382                     fi
49383                 fi
49384             fi
49385
49386             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49387
49388 fi
49389 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49390 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49391
49392     if test "$wx_cv_gcc_pch_bug" = yes; then
49393                         bk_use_pch=no
49394     fi
49395 fi
49396
49397
49398
49399
49400     if test "x$BAKEFILE_HOST" = "x"; then
49401                if test "x${host}" = "x" ; then
49402                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49403 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49404    { (exit 1); exit 1; }; }
49405                fi
49406
49407         BAKEFILE_HOST="${host}"
49408     fi
49409
49410     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49411
49412     if test -n "$ac_tool_prefix"; then
49413   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49417 if test "${ac_cv_prog_RANLIB+set}" = set; then
49418   echo $ECHO_N "(cached) $ECHO_C" >&6
49419 else
49420   if test -n "$RANLIB"; then
49421   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49422 else
49423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49424 for as_dir in $PATH
49425 do
49426   IFS=$as_save_IFS
49427   test -z "$as_dir" && as_dir=.
49428   for ac_exec_ext in '' $ac_executable_extensions; do
49429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49430     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49432     break 2
49433   fi
49434 done
49435 done
49436 IFS=$as_save_IFS
49437
49438 fi
49439 fi
49440 RANLIB=$ac_cv_prog_RANLIB
49441 if test -n "$RANLIB"; then
49442   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49443 echo "${ECHO_T}$RANLIB" >&6; }
49444 else
49445   { echo "$as_me:$LINENO: result: no" >&5
49446 echo "${ECHO_T}no" >&6; }
49447 fi
49448
49449
49450 fi
49451 if test -z "$ac_cv_prog_RANLIB"; then
49452   ac_ct_RANLIB=$RANLIB
49453   # Extract the first word of "ranlib", so it can be a program name with args.
49454 set dummy ranlib; ac_word=$2
49455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49458   echo $ECHO_N "(cached) $ECHO_C" >&6
49459 else
49460   if test -n "$ac_ct_RANLIB"; then
49461   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49462 else
49463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49464 for as_dir in $PATH
49465 do
49466   IFS=$as_save_IFS
49467   test -z "$as_dir" && as_dir=.
49468   for ac_exec_ext in '' $ac_executable_extensions; do
49469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49470     ac_cv_prog_ac_ct_RANLIB="ranlib"
49471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49472     break 2
49473   fi
49474 done
49475 done
49476 IFS=$as_save_IFS
49477
49478 fi
49479 fi
49480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49481 if test -n "$ac_ct_RANLIB"; then
49482   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49483 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49484 else
49485   { echo "$as_me:$LINENO: result: no" >&5
49486 echo "${ECHO_T}no" >&6; }
49487 fi
49488
49489   if test "x$ac_ct_RANLIB" = x; then
49490     RANLIB=":"
49491   else
49492     case $cross_compiling:$ac_tool_warned in
49493 yes:)
49494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49495 whose name does not start with the host triplet.  If you think this
49496 configuration is useful to you, please write to autoconf@gnu.org." >&5
49497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49498 whose name does not start with the host triplet.  If you think this
49499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49500 ac_tool_warned=yes ;;
49501 esac
49502     RANLIB=$ac_ct_RANLIB
49503   fi
49504 else
49505   RANLIB="$ac_cv_prog_RANLIB"
49506 fi
49507
49508     # Find a good install program.  We prefer a C program (faster),
49509 # so one script is as good as another.  But avoid the broken or
49510 # incompatible versions:
49511 # SysV /etc/install, /usr/sbin/install
49512 # SunOS /usr/etc/install
49513 # IRIX /sbin/install
49514 # AIX /bin/install
49515 # AmigaOS /C/install, which installs bootblocks on floppy discs
49516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49519 # OS/2's system install, which has a completely different semantic
49520 # ./install, which can be erroneously created by make from ./install.sh.
49521 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49522 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49523 if test -z "$INSTALL"; then
49524 if test "${ac_cv_path_install+set}" = set; then
49525   echo $ECHO_N "(cached) $ECHO_C" >&6
49526 else
49527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49528 for as_dir in $PATH
49529 do
49530   IFS=$as_save_IFS
49531   test -z "$as_dir" && as_dir=.
49532   # Account for people who put trailing slashes in PATH elements.
49533 case $as_dir/ in
49534   ./ | .// | /cC/* | \
49535   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49536   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49537   /usr/ucb/* ) ;;
49538   *)
49539     # OSF1 and SCO ODT 3.0 have their own names for install.
49540     # Don't use installbsd from OSF since it installs stuff as root
49541     # by default.
49542     for ac_prog in ginstall scoinst install; do
49543       for ac_exec_ext in '' $ac_executable_extensions; do
49544         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49545           if test $ac_prog = install &&
49546             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49547             # AIX install.  It has an incompatible calling convention.
49548             :
49549           elif test $ac_prog = install &&
49550             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49551             # program-specific install script used by HP pwplus--don't use.
49552             :
49553           else
49554             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49555             break 3
49556           fi
49557         fi
49558       done
49559     done
49560     ;;
49561 esac
49562 done
49563 IFS=$as_save_IFS
49564
49565
49566 fi
49567   if test "${ac_cv_path_install+set}" = set; then
49568     INSTALL=$ac_cv_path_install
49569   else
49570     # As a last resort, use the slow shell script.  Don't cache a
49571     # value for INSTALL within a source directory, because that will
49572     # break other packages using the cache if that directory is
49573     # removed, or if the value is a relative name.
49574     INSTALL=$ac_install_sh
49575   fi
49576 fi
49577 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49578 echo "${ECHO_T}$INSTALL" >&6; }
49579
49580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49581 # It thinks the first close brace ends the variable substitution.
49582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49583
49584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49585
49586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49587
49588     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49589 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49590 LN_S=$as_ln_s
49591 if test "$LN_S" = "ln -s"; then
49592   { echo "$as_me:$LINENO: result: yes" >&5
49593 echo "${ECHO_T}yes" >&6; }
49594 else
49595   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49596 echo "${ECHO_T}no, using $LN_S" >&6; }
49597 fi
49598
49599
49600     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49601 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49602 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49603 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49604   echo $ECHO_N "(cached) $ECHO_C" >&6
49605 else
49606   cat >conftest.make <<\_ACEOF
49607 SHELL = /bin/sh
49608 all:
49609         @echo '@@@%%%=$(MAKE)=@@@%%%'
49610 _ACEOF
49611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49613   *@@@%%%=?*=@@@%%%*)
49614     eval ac_cv_prog_make_${ac_make}_set=yes;;
49615   *)
49616     eval ac_cv_prog_make_${ac_make}_set=no;;
49617 esac
49618 rm -f conftest.make
49619 fi
49620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49621   { echo "$as_me:$LINENO: result: yes" >&5
49622 echo "${ECHO_T}yes" >&6; }
49623   SET_MAKE=
49624 else
49625   { echo "$as_me:$LINENO: result: no" >&5
49626 echo "${ECHO_T}no" >&6; }
49627   SET_MAKE="MAKE=${MAKE-make}"
49628 fi
49629
49630
49631
49632     if test "x$SUNCXX" = "xyes"; then
49633                                 AR=$CXX
49634         AROPTIONS="-xar -o"
49635
49636     elif test "x$SGICC" = "xyes"; then
49637                 AR=$CXX
49638         AROPTIONS="-ar -o"
49639
49640     else
49641         if test -n "$ac_tool_prefix"; then
49642   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49643 set dummy ${ac_tool_prefix}ar; ac_word=$2
49644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49646 if test "${ac_cv_prog_AR+set}" = set; then
49647   echo $ECHO_N "(cached) $ECHO_C" >&6
49648 else
49649   if test -n "$AR"; then
49650   ac_cv_prog_AR="$AR" # Let the user override the test.
49651 else
49652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49653 for as_dir in $PATH
49654 do
49655   IFS=$as_save_IFS
49656   test -z "$as_dir" && as_dir=.
49657   for ac_exec_ext in '' $ac_executable_extensions; do
49658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49659     ac_cv_prog_AR="${ac_tool_prefix}ar"
49660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49661     break 2
49662   fi
49663 done
49664 done
49665 IFS=$as_save_IFS
49666
49667 fi
49668 fi
49669 AR=$ac_cv_prog_AR
49670 if test -n "$AR"; then
49671   { echo "$as_me:$LINENO: result: $AR" >&5
49672 echo "${ECHO_T}$AR" >&6; }
49673 else
49674   { echo "$as_me:$LINENO: result: no" >&5
49675 echo "${ECHO_T}no" >&6; }
49676 fi
49677
49678
49679 fi
49680 if test -z "$ac_cv_prog_AR"; then
49681   ac_ct_AR=$AR
49682   # Extract the first word of "ar", so it can be a program name with args.
49683 set dummy ar; ac_word=$2
49684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49686 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49687   echo $ECHO_N "(cached) $ECHO_C" >&6
49688 else
49689   if test -n "$ac_ct_AR"; then
49690   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49691 else
49692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49693 for as_dir in $PATH
49694 do
49695   IFS=$as_save_IFS
49696   test -z "$as_dir" && as_dir=.
49697   for ac_exec_ext in '' $ac_executable_extensions; do
49698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49699     ac_cv_prog_ac_ct_AR="ar"
49700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49701     break 2
49702   fi
49703 done
49704 done
49705 IFS=$as_save_IFS
49706
49707 fi
49708 fi
49709 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49710 if test -n "$ac_ct_AR"; then
49711   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49712 echo "${ECHO_T}$ac_ct_AR" >&6; }
49713 else
49714   { echo "$as_me:$LINENO: result: no" >&5
49715 echo "${ECHO_T}no" >&6; }
49716 fi
49717
49718   if test "x$ac_ct_AR" = x; then
49719     AR="ar"
49720   else
49721     case $cross_compiling:$ac_tool_warned in
49722 yes:)
49723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49724 whose name does not start with the host triplet.  If you think this
49725 configuration is useful to you, please write to autoconf@gnu.org." >&5
49726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49727 whose name does not start with the host triplet.  If you think this
49728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49729 ac_tool_warned=yes ;;
49730 esac
49731     AR=$ac_ct_AR
49732   fi
49733 else
49734   AR="$ac_cv_prog_AR"
49735 fi
49736
49737         AROPTIONS=rcu
49738     fi
49739
49740
49741     if test -n "$ac_tool_prefix"; then
49742   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49743 set dummy ${ac_tool_prefix}strip; ac_word=$2
49744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49746 if test "${ac_cv_prog_STRIP+set}" = set; then
49747   echo $ECHO_N "(cached) $ECHO_C" >&6
49748 else
49749   if test -n "$STRIP"; then
49750   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49751 else
49752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49753 for as_dir in $PATH
49754 do
49755   IFS=$as_save_IFS
49756   test -z "$as_dir" && as_dir=.
49757   for ac_exec_ext in '' $ac_executable_extensions; do
49758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49759     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49761     break 2
49762   fi
49763 done
49764 done
49765 IFS=$as_save_IFS
49766
49767 fi
49768 fi
49769 STRIP=$ac_cv_prog_STRIP
49770 if test -n "$STRIP"; then
49771   { echo "$as_me:$LINENO: result: $STRIP" >&5
49772 echo "${ECHO_T}$STRIP" >&6; }
49773 else
49774   { echo "$as_me:$LINENO: result: no" >&5
49775 echo "${ECHO_T}no" >&6; }
49776 fi
49777
49778
49779 fi
49780 if test -z "$ac_cv_prog_STRIP"; then
49781   ac_ct_STRIP=$STRIP
49782   # Extract the first word of "strip", so it can be a program name with args.
49783 set dummy strip; ac_word=$2
49784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49787   echo $ECHO_N "(cached) $ECHO_C" >&6
49788 else
49789   if test -n "$ac_ct_STRIP"; then
49790   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49791 else
49792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49793 for as_dir in $PATH
49794 do
49795   IFS=$as_save_IFS
49796   test -z "$as_dir" && as_dir=.
49797   for ac_exec_ext in '' $ac_executable_extensions; do
49798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49799     ac_cv_prog_ac_ct_STRIP="strip"
49800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49801     break 2
49802   fi
49803 done
49804 done
49805 IFS=$as_save_IFS
49806
49807 fi
49808 fi
49809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49810 if test -n "$ac_ct_STRIP"; then
49811   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49812 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49813 else
49814   { echo "$as_me:$LINENO: result: no" >&5
49815 echo "${ECHO_T}no" >&6; }
49816 fi
49817
49818   if test "x$ac_ct_STRIP" = x; then
49819     STRIP=":"
49820   else
49821     case $cross_compiling:$ac_tool_warned in
49822 yes:)
49823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49824 whose name does not start with the host triplet.  If you think this
49825 configuration is useful to you, please write to autoconf@gnu.org." >&5
49826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49827 whose name does not start with the host triplet.  If you think this
49828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49829 ac_tool_warned=yes ;;
49830 esac
49831     STRIP=$ac_ct_STRIP
49832   fi
49833 else
49834   STRIP="$ac_cv_prog_STRIP"
49835 fi
49836
49837     if test -n "$ac_tool_prefix"; then
49838   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49839 set dummy ${ac_tool_prefix}nm; ac_word=$2
49840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49842 if test "${ac_cv_prog_NM+set}" = set; then
49843   echo $ECHO_N "(cached) $ECHO_C" >&6
49844 else
49845   if test -n "$NM"; then
49846   ac_cv_prog_NM="$NM" # Let the user override the test.
49847 else
49848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49849 for as_dir in $PATH
49850 do
49851   IFS=$as_save_IFS
49852   test -z "$as_dir" && as_dir=.
49853   for ac_exec_ext in '' $ac_executable_extensions; do
49854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49855     ac_cv_prog_NM="${ac_tool_prefix}nm"
49856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49857     break 2
49858   fi
49859 done
49860 done
49861 IFS=$as_save_IFS
49862
49863 fi
49864 fi
49865 NM=$ac_cv_prog_NM
49866 if test -n "$NM"; then
49867   { echo "$as_me:$LINENO: result: $NM" >&5
49868 echo "${ECHO_T}$NM" >&6; }
49869 else
49870   { echo "$as_me:$LINENO: result: no" >&5
49871 echo "${ECHO_T}no" >&6; }
49872 fi
49873
49874
49875 fi
49876 if test -z "$ac_cv_prog_NM"; then
49877   ac_ct_NM=$NM
49878   # Extract the first word of "nm", so it can be a program name with args.
49879 set dummy nm; ac_word=$2
49880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49882 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49883   echo $ECHO_N "(cached) $ECHO_C" >&6
49884 else
49885   if test -n "$ac_ct_NM"; then
49886   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49887 else
49888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49889 for as_dir in $PATH
49890 do
49891   IFS=$as_save_IFS
49892   test -z "$as_dir" && as_dir=.
49893   for ac_exec_ext in '' $ac_executable_extensions; do
49894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49895     ac_cv_prog_ac_ct_NM="nm"
49896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49897     break 2
49898   fi
49899 done
49900 done
49901 IFS=$as_save_IFS
49902
49903 fi
49904 fi
49905 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49906 if test -n "$ac_ct_NM"; then
49907   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49908 echo "${ECHO_T}$ac_ct_NM" >&6; }
49909 else
49910   { echo "$as_me:$LINENO: result: no" >&5
49911 echo "${ECHO_T}no" >&6; }
49912 fi
49913
49914   if test "x$ac_ct_NM" = x; then
49915     NM=":"
49916   else
49917     case $cross_compiling:$ac_tool_warned in
49918 yes:)
49919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49920 whose name does not start with the host triplet.  If you think this
49921 configuration is useful to you, please write to autoconf@gnu.org." >&5
49922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49923 whose name does not start with the host triplet.  If you think this
49924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49925 ac_tool_warned=yes ;;
49926 esac
49927     NM=$ac_ct_NM
49928   fi
49929 else
49930   NM="$ac_cv_prog_NM"
49931 fi
49932
49933
49934     case ${BAKEFILE_HOST} in
49935         *-hp-hpux* )
49936                                     INSTALL_DIR="mkdir -p"
49937             ;;
49938         * )
49939                                     INSTALL_DIR='$(INSTALL) -d'
49940             ;;
49941     esac
49942
49943
49944     LDFLAGS_GUI=
49945     case ${BAKEFILE_HOST} in
49946         *-*-cygwin* | *-*-mingw32* )
49947         LDFLAGS_GUI="-mwindows"
49948     esac
49949
49950
49951     fi
49952
49953         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49954 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49955 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49956   echo $ECHO_N "(cached) $ECHO_C" >&6
49957 else
49958
49959         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49960                 egrep -s GNU > /dev/null); then
49961             bakefile_cv_prog_makeisgnu="yes"
49962         else
49963             bakefile_cv_prog_makeisgnu="no"
49964         fi
49965
49966 fi
49967 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49968 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49969
49970     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49971         IF_GNU_MAKE=""
49972     else
49973         IF_GNU_MAKE="#"
49974     fi
49975
49976
49977
49978     PLATFORM_UNIX=0
49979     PLATFORM_WIN32=0
49980     PLATFORM_MSDOS=0
49981     PLATFORM_MAC=0
49982     PLATFORM_MACOS=0
49983     PLATFORM_MACOSX=0
49984     PLATFORM_OS2=0
49985     PLATFORM_BEOS=0
49986
49987     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49988         case "${BAKEFILE_HOST}" in
49989             *-*-mingw32* )
49990                 PLATFORM_WIN32=1
49991             ;;
49992             *-pc-msdosdjgpp )
49993                 PLATFORM_MSDOS=1
49994             ;;
49995             *-pc-os2_emx | *-pc-os2-emx )
49996                 PLATFORM_OS2=1
49997             ;;
49998             *-*-darwin* )
49999                 PLATFORM_MAC=1
50000                 PLATFORM_MACOSX=1
50001             ;;
50002             *-*-beos* )
50003                 PLATFORM_BEOS=1
50004             ;;
50005             powerpc-apple-macos* )
50006                 PLATFORM_MAC=1
50007                 PLATFORM_MACOS=1
50008             ;;
50009             * )
50010                 PLATFORM_UNIX=1
50011             ;;
50012         esac
50013     else
50014         case "$BAKEFILE_FORCE_PLATFORM" in
50015             win32 )
50016                 PLATFORM_WIN32=1
50017             ;;
50018             msdos )
50019                 PLATFORM_MSDOS=1
50020             ;;
50021             os2 )
50022                 PLATFORM_OS2=1
50023             ;;
50024             darwin )
50025                 PLATFORM_MAC=1
50026                 PLATFORM_MACOSX=1
50027             ;;
50028             unix )
50029                 PLATFORM_UNIX=1
50030             ;;
50031             beos )
50032                 PLATFORM_BEOS=1
50033             ;;
50034             * )
50035                                             ;;
50036         esac
50037     fi
50038
50039
50040
50041
50042
50043
50044
50045
50046
50047
50048
50049     # Check whether --enable-omf was given.
50050 if test "${enable_omf+set}" = set; then
50051   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50052 fi
50053
50054
50055     case "${BAKEFILE_HOST}" in
50056       *-*-darwin* )
50057                         if test "x$GCC" = "xyes"; then
50058             CFLAGS="$CFLAGS -fno-common"
50059             CXXFLAGS="$CXXFLAGS -fno-common"
50060         fi
50061         if test "x$XLCC" = "xyes"; then
50062             CFLAGS="$CFLAGS -qnocommon"
50063             CXXFLAGS="$CXXFLAGS -qnocommon"
50064         fi
50065         ;;
50066
50067       *-pc-os2_emx | *-pc-os2-emx )
50068         if test "x$bk_os2_use_omf" = "xyes" ; then
50069             AR=emxomfar
50070             RANLIB=:
50071             LDFLAGS="-Zomf $LDFLAGS"
50072             CFLAGS="-Zomf $CFLAGS"
50073             CXXFLAGS="-Zomf $CXXFLAGS"
50074             OS2_LIBEXT="lib"
50075         else
50076             OS2_LIBEXT="a"
50077         fi
50078         ;;
50079
50080       i*86-*-beos* )
50081         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50082         ;;
50083     esac
50084
50085
50086     SO_SUFFIX="so"
50087     SO_SUFFIX_MODULE="so"
50088     EXEEXT=""
50089     LIBPREFIX="lib"
50090     LIBEXT=".a"
50091     DLLPREFIX="lib"
50092     DLLPREFIX_MODULE=""
50093     DLLIMP_SUFFIX=""
50094     dlldir="$libdir"
50095
50096     case "${BAKEFILE_HOST}" in
50097         *-hp-hpux* )
50098             SO_SUFFIX="sl"
50099             SO_SUFFIX_MODULE="sl"
50100         ;;
50101         *-*-aix* )
50102                                                                         SO_SUFFIX="a"
50103             SO_SUFFIX_MODULE="a"
50104         ;;
50105         *-*-cygwin* )
50106             SO_SUFFIX="dll"
50107             SO_SUFFIX_MODULE="dll"
50108             DLLIMP_SUFFIX="dll.a"
50109             EXEEXT=".exe"
50110             DLLPREFIX="cyg"
50111             dlldir="$bindir"
50112         ;;
50113         *-*-mingw32* )
50114             SO_SUFFIX="dll"
50115             SO_SUFFIX_MODULE="dll"
50116             DLLIMP_SUFFIX="dll.a"
50117             EXEEXT=".exe"
50118             DLLPREFIX=""
50119             dlldir="$bindir"
50120         ;;
50121         *-pc-msdosdjgpp )
50122             EXEEXT=".exe"
50123             DLLPREFIX=""
50124             dlldir="$bindir"
50125         ;;
50126         *-pc-os2_emx | *-pc-os2-emx )
50127             SO_SUFFIX="dll"
50128             SO_SUFFIX_MODULE="dll"
50129             DLLIMP_SUFFIX=$OS2_LIBEXT
50130             EXEEXT=".exe"
50131             DLLPREFIX=""
50132             LIBPREFIX=""
50133             LIBEXT=".$OS2_LIBEXT"
50134             dlldir="$bindir"
50135         ;;
50136         *-*-darwin* )
50137             SO_SUFFIX="dylib"
50138             SO_SUFFIX_MODULE="bundle"
50139         ;;
50140     esac
50141
50142     if test "x$DLLIMP_SUFFIX" = "x" ; then
50143         DLLIMP_SUFFIX="$SO_SUFFIX"
50144     fi
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
50157         PIC_FLAG=""
50158     if test "x$GCC" = "xyes"; then
50159                 PIC_FLAG="-fPIC"
50160     fi
50161
50162         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50163     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50164     WINDOWS_IMPLIB=0
50165
50166     case "${BAKEFILE_HOST}" in
50167       *-hp-hpux* )
50168                 if test "x$GCC" != "xyes"; then
50169                         LDFLAGS="$LDFLAGS -L/usr/lib"
50170
50171             SHARED_LD_CC="${CC} -b -o"
50172             SHARED_LD_CXX="${CXX} -b -o"
50173             PIC_FLAG="+Z"
50174         fi
50175       ;;
50176
50177       *-*-linux* )
50178         if test "$INTELCC" = "yes"; then
50179             PIC_FLAG="-KPIC"
50180         elif test "x$SUNCXX" = "xyes"; then
50181             SHARED_LD_CC="${CC} -G -o"
50182             SHARED_LD_CXX="${CXX} -G -o"
50183             PIC_FLAG="-KPIC"
50184         fi
50185       ;;
50186
50187       *-*-solaris2* )
50188         if test "x$SUNCXX" = xyes ; then
50189             SHARED_LD_CC="${CC} -G -o"
50190             SHARED_LD_CXX="${CXX} -G -o"
50191             PIC_FLAG="-KPIC"
50192         fi
50193       ;;
50194
50195       *-*-darwin* )
50196
50197 D='$'
50198 cat <<EOF >shared-ld-sh
50199 #!/bin/sh
50200 #-----------------------------------------------------------------------------
50201 #-- Name:        distrib/mac/shared-ld-sh
50202 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50203 #-- Author:      Gilles Depeyrot
50204 #-- Copyright:   (c) 2002 Gilles Depeyrot
50205 #-- Licence:     any use permitted
50206 #-----------------------------------------------------------------------------
50207
50208 verbose=0
50209 args=""
50210 objects=""
50211 linking_flag="-dynamiclib"
50212 ldargs="-r -keep_private_externs -nostdlib"
50213
50214 while test ${D}# -gt 0; do
50215     case ${D}1 in
50216
50217        -v)
50218         verbose=1
50219         ;;
50220
50221        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50222         # collect these options and values
50223         args="${D}{args} ${D}1 ${D}2"
50224         shift
50225         ;;
50226
50227        -s|-Wl,*)
50228         # collect these load args
50229         ldargs="${D}{ldargs} ${D}1"
50230         ;;
50231
50232        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50233         # collect these options
50234         args="${D}{args} ${D}1"
50235         ;;
50236
50237        -dynamiclib|-bundle)
50238         linking_flag="${D}1"
50239         ;;
50240
50241        -*)
50242         echo "shared-ld: unhandled option '${D}1'"
50243         exit 1
50244         ;;
50245
50246         *.o | *.a | *.dylib)
50247         # collect object files
50248         objects="${D}{objects} ${D}1"
50249         ;;
50250
50251         *)
50252         echo "shared-ld: unhandled argument '${D}1'"
50253         exit 1
50254         ;;
50255
50256     esac
50257     shift
50258 done
50259
50260 status=0
50261
50262 #
50263 # Link one module containing all the others
50264 #
50265 if test ${D}{verbose} = 1; then
50266     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50267 fi
50268 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50269 status=${D}?
50270
50271 #
50272 # Link the shared library from the single module created, but only if the
50273 # previous command didn't fail:
50274 #
50275 if test ${D}{status} = 0; then
50276     if test ${D}{verbose} = 1; then
50277         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50278     fi
50279     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50280     status=${D}?
50281 fi
50282
50283 #
50284 # Remove intermediate module
50285 #
50286 rm -f master.${D}${D}.o
50287
50288 exit ${D}status
50289 EOF
50290
50291         chmod +x shared-ld-sh
50292
50293         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50294         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50295
50296
50297                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50298 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50299 if test "${bakefile_cv_gcc31+set}" = set; then
50300   echo $ECHO_N "(cached) $ECHO_C" >&6
50301 else
50302
50303            cat >conftest.$ac_ext <<_ACEOF
50304 /* confdefs.h.  */
50305 _ACEOF
50306 cat confdefs.h >>conftest.$ac_ext
50307 cat >>conftest.$ac_ext <<_ACEOF
50308 /* end confdefs.h.  */
50309
50310 int
50311 main ()
50312 {
50313
50314                    #if (__GNUC__ < 3) || \
50315                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50316                        This is old gcc
50317                    #endif
50318
50319   ;
50320   return 0;
50321 }
50322 _ACEOF
50323 rm -f conftest.$ac_objext
50324 if { (ac_try="$ac_compile"
50325 case "(($ac_try" in
50326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50327   *) ac_try_echo=$ac_try;;
50328 esac
50329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50330   (eval "$ac_compile") 2>conftest.er1
50331   ac_status=$?
50332   grep -v '^ *+' conftest.er1 >conftest.err
50333   rm -f conftest.er1
50334   cat conftest.err >&5
50335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50336   (exit $ac_status); } && {
50337          test -z "$ac_c_werror_flag" ||
50338          test ! -s conftest.err
50339        } && test -s conftest.$ac_objext; then
50340
50341                    bakefile_cv_gcc31=yes
50342
50343 else
50344   echo "$as_me: failed program was:" >&5
50345 sed 's/^/| /' conftest.$ac_ext >&5
50346
50347
50348                    bakefile_cv_gcc31=no
50349
50350
50351 fi
50352
50353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50354
50355 fi
50356 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50357 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50358         if test "$bakefile_cv_gcc31" = "no"; then
50359                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50360             SHARED_LD_CXX="$SHARED_LD_CC"
50361         else
50362                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50363             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50364         fi
50365
50366         if test "x$GCC" == "xyes"; then
50367             PIC_FLAG="-dynamic -fPIC"
50368         fi
50369         if test "x$XLCC" = "xyes"; then
50370             PIC_FLAG="-dynamic -DPIC"
50371         fi
50372       ;;
50373
50374       *-*-aix* )
50375         if test "x$GCC" = "xyes"; then
50376                                                             PIC_FLAG=""
50377
50378                                                                                     case "${BAKEFILE_HOST}" in
50379                 *-*-aix5* )
50380                     LD_EXPFULL="-Wl,-bexpfull"
50381                     ;;
50382             esac
50383
50384             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50385             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50386         else
50387                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50388 set dummy makeC++SharedLib; ac_word=$2
50389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50391 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50392   echo $ECHO_N "(cached) $ECHO_C" >&6
50393 else
50394   if test -n "$AIX_CXX_LD"; then
50395   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50396 else
50397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50398 for as_dir in $PATH
50399 do
50400   IFS=$as_save_IFS
50401   test -z "$as_dir" && as_dir=.
50402   for ac_exec_ext in '' $ac_executable_extensions; do
50403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50404     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50406     break 2
50407   fi
50408 done
50409 done
50410 IFS=$as_save_IFS
50411
50412   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50413 fi
50414 fi
50415 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50416 if test -n "$AIX_CXX_LD"; then
50417   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50418 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50419 else
50420   { echo "$as_me:$LINENO: result: no" >&5
50421 echo "${ECHO_T}no" >&6; }
50422 fi
50423
50424
50425             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50426             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50427         fi
50428       ;;
50429
50430       *-*-beos* )
50431                         SHARED_LD_CC="${LD} -nostart -o"
50432         SHARED_LD_CXX="${LD} -nostart -o"
50433       ;;
50434
50435       *-*-irix* )
50436                 if test "x$GCC" != "xyes"; then
50437             PIC_FLAG="-KPIC"
50438         fi
50439       ;;
50440
50441       *-*-cygwin* | *-*-mingw32* )
50442         PIC_FLAG=""
50443         SHARED_LD_CC="\$(CC) -shared -o"
50444         SHARED_LD_CXX="\$(CXX) -shared -o"
50445         WINDOWS_IMPLIB=1
50446       ;;
50447
50448       *-pc-os2_emx | *-pc-os2-emx )
50449         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50450         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50451         PIC_FLAG=""
50452
50453 D='$'
50454 cat <<EOF >dllar.sh
50455 #!/bin/sh
50456 #
50457 # dllar - a tool to build both a .dll and an .a file
50458 # from a set of object (.o) files for EMX/OS2.
50459 #
50460 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50461 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50462 #
50463 #  This script will accept a set of files on the command line.
50464 #  All the public symbols from the .o files will be exported into
50465 #  a .DEF file, then linker will be run (through gcc) against them to
50466 #  build a shared library consisting of all given .o files. All libraries
50467 #  (.a) will be first decompressed into component .o files then act as
50468 #  described above. You can optionally give a description (-d "description")
50469 #  which will be put into .DLL. To see the list of accepted options (as well
50470 #  as command-line format) simply run this program without options. The .DLL
50471 #  is built to be imported by name (there is no guarantee that new versions
50472 #  of the library you build will have same ordinals for same symbols).
50473 #
50474 #  dllar is free software; you can redistribute it and/or modify
50475 #  it under the terms of the GNU General Public License as published by
50476 #  the Free Software Foundation; either version 2, or (at your option)
50477 #  any later version.
50478 #
50479 #  dllar is distributed in the hope that it will be useful,
50480 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50481 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50482 #  GNU General Public License for more details.
50483 #
50484 #  You should have received a copy of the GNU General Public License
50485 #  along with dllar; see the file COPYING.  If not, write to the Free
50486 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50487 #  02111-1307, USA.
50488
50489 # To successfuly run this program you will need:
50490 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50491 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50492 #  - gcc
50493 #    (used to build the .dll)
50494 #  - emxexp
50495 #    (used to create .def file from .o files)
50496 #  - emximp
50497 #    (used to create .a file from .def file)
50498 #  - GNU text utilites (cat, sort, uniq)
50499 #    used to process emxexp output
50500 #  - GNU file utilities (mv, rm)
50501 #  - GNU sed
50502 #  - lxlite (optional, see flag below)
50503 #    (used for general .dll cleanup)
50504 #
50505
50506 flag_USE_LXLITE=1;
50507
50508 #
50509 # helper functions
50510 # basnam, variant of basename, which does _not_ remove the path, _iff_
50511 #                              second argument (suffix to remove) is given
50512 basnam(){
50513     case ${D}# in
50514     1)
50515         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50516         ;;
50517     2)
50518         echo ${D}1 | sed 's/'${D}2'${D}//'
50519         ;;
50520     *)
50521         echo "error in basnam ${D}*"
50522         exit 8
50523         ;;
50524     esac
50525 }
50526
50527 # Cleanup temporary files and output
50528 CleanUp() {
50529     cd ${D}curDir
50530     for i in ${D}inputFiles ; do
50531         case ${D}i in
50532         *!)
50533             rm -rf \`basnam ${D}i !\`
50534             ;;
50535         *)
50536             ;;
50537         esac
50538     done
50539
50540     # Kill result in case of failure as there is just to many stupid make/nmake
50541     # things out there which doesn't do this.
50542     if [ ${D}# -eq 0 ]; then
50543         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50544     fi
50545 }
50546
50547 # Print usage and exit script with rc=1.
50548 PrintHelp() {
50549  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50550  echo '       [-name-mangler-script script.sh]'
50551  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50552  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50553  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50554  echo '       [*.o] [*.a]'
50555  echo '*> "output_file" should have no extension.'
50556  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50557  echo '   The import library name is derived from this and is set to "name".a,'
50558  echo '   unless overridden by -import'
50559  echo '*> "importlib_name" should have no extension.'
50560  echo '   If it has the .o, or .a extension, it is automatically removed.'
50561  echo '   This name is used as the import library name and may be longer and'
50562  echo '   more descriptive than the DLL name which has to follow the old '
50563  echo '   8.3 convention of FAT.'
50564  echo '*> "script.sh may be given to override the output_file name by a'
50565  echo '   different name. It is mainly useful if the regular make process'
50566  echo '   of some package does not take into account OS/2 restriction of'
50567  echo '   DLL name lengths. It takes the importlib name as input and is'
50568  echo '   supposed to procude a shorter name as output. The script should'
50569  echo '   expect to get importlib_name without extension and should produce'
50570  echo '   a (max.) 8 letter name without extension.'
50571  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50572  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50573  echo '   These flags will be put at the start of GCC command line.'
50574  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50575  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50576  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50577  echo '   If the last character of a symbol is "*", all symbols beginning'
50578  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50579  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50580  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50581  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50582  echo '   C runtime DLLs.'
50583  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50584  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50585  echo '   unchanged to GCC at the end of command line.'
50586  echo '*> If you create a DLL from a library and you do not specify -o,'
50587  echo '   the basename for DLL and import library will be set to library name,'
50588  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50589  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50590  echo '   library will be renamed into gcc_s.a.'
50591  echo '--------'
50592  echo 'Example:'
50593  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50594  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50595  CleanUp
50596  exit 1
50597 }
50598
50599 # Execute a command.
50600 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50601 # @Uses    Whatever CleanUp() uses.
50602 doCommand() {
50603     echo "${D}*"
50604     eval ${D}*
50605     rcCmd=${D}?
50606
50607     if [ ${D}rcCmd -ne 0 ]; then
50608         echo "command failed, exit code="${D}rcCmd
50609         CleanUp
50610         exit ${D}rcCmd
50611     fi
50612 }
50613
50614 # main routine
50615 # setup globals
50616 cmdLine=${D}*
50617 outFile=""
50618 outimpFile=""
50619 inputFiles=""
50620 renameScript=""
50621 description=""
50622 CC=gcc.exe
50623 CFLAGS="-s -Zcrtdll"
50624 EXTRA_CFLAGS=""
50625 EXPORT_BY_ORDINALS=0
50626 exclude_symbols=""
50627 library_flags=""
50628 curDir=\`pwd\`
50629 curDirS=curDir
50630 case ${D}curDirS in
50631 */)
50632   ;;
50633 *)
50634   curDirS=${D}{curDirS}"/"
50635   ;;
50636 esac
50637 # Parse commandline
50638 libsToLink=0
50639 omfLinking=0
50640 while [ ${D}1 ]; do
50641     case ${D}1 in
50642     -ord*)
50643         EXPORT_BY_ORDINALS=1;
50644         ;;
50645     -o*)
50646         shift
50647         outFile=${D}1
50648         ;;
50649     -i*)
50650         shift
50651         outimpFile=${D}1
50652         ;;
50653     -name-mangler-script)
50654         shift
50655         renameScript=${D}1
50656         ;;
50657     -d*)
50658         shift
50659         description=${D}1
50660         ;;
50661     -f*)
50662         shift
50663         CFLAGS=${D}1
50664         ;;
50665     -c*)
50666         shift
50667         CC=${D}1
50668         ;;
50669     -h*)
50670         PrintHelp
50671         ;;
50672     -ex*)
50673         shift
50674         exclude_symbols=${D}{exclude_symbols}${D}1" "
50675         ;;
50676     -libf*)
50677         shift
50678         library_flags=${D}{library_flags}${D}1" "
50679         ;;
50680     -nocrt*)
50681         CFLAGS="-s"
50682         ;;
50683     -nolxl*)
50684         flag_USE_LXLITE=0
50685         ;;
50686     -* | /*)
50687         case ${D}1 in
50688         -L* | -l*)
50689             libsToLink=1
50690             ;;
50691         -Zomf)
50692             omfLinking=1
50693             ;;
50694         *)
50695             ;;
50696         esac
50697         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50698         ;;
50699     *.dll)
50700         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50701         if [ ${D}omfLinking -eq 1 ]; then
50702             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50703         else
50704             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50705         fi
50706         ;;
50707     *)
50708         found=0;
50709         if [ ${D}libsToLink -ne 0 ]; then
50710             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50711         else
50712             for file in ${D}1 ; do
50713                 if [ -f ${D}file ]; then
50714                     inputFiles="${D}{inputFiles} ${D}file"
50715                     found=1
50716                 fi
50717             done
50718             if [ ${D}found -eq 0 ]; then
50719                 echo "ERROR: No file(s) found: "${D}1
50720                 exit 8
50721             fi
50722         fi
50723       ;;
50724     esac
50725     shift
50726 done # iterate cmdline words
50727
50728 #
50729 if [ -z "${D}inputFiles" ]; then
50730     echo "dllar: no input files"
50731     PrintHelp
50732 fi
50733
50734 # Now extract all .o files from .a files
50735 newInputFiles=""
50736 for file in ${D}inputFiles ; do
50737     case ${D}file in
50738     *.a | *.lib)
50739         case ${D}file in
50740         *.a)
50741             suffix=".a"
50742             AR="ar"
50743             ;;
50744         *.lib)
50745             suffix=".lib"
50746             AR="emxomfar"
50747             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50748             ;;
50749         *)
50750             ;;
50751         esac
50752         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50753         mkdir ${D}dirname
50754         if [ ${D}? -ne 0 ]; then
50755             echo "Failed to create subdirectory ./${D}dirname"
50756             CleanUp
50757             exit 8;
50758         fi
50759         # Append '!' to indicate archive
50760         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50761         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50762         cd ${D}curDir
50763         found=0;
50764         for subfile in ${D}dirname/*.o* ; do
50765             if [ -f ${D}subfile ]; then
50766                 found=1
50767                 if [ -s ${D}subfile ]; then
50768                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50769                     newInputFiles="${D}newInputFiles ${D}subfile"
50770                 fi
50771             fi
50772         done
50773         if [ ${D}found -eq 0 ]; then
50774             echo "WARNING: there are no files in archive \\'${D}file\\'"
50775         fi
50776         ;;
50777     *)
50778         newInputFiles="${D}{newInputFiles} ${D}file"
50779         ;;
50780     esac
50781 done
50782 inputFiles="${D}newInputFiles"
50783
50784 # Output filename(s).
50785 do_backup=0;
50786 if [ -z ${D}outFile ]; then
50787     do_backup=1;
50788     set outFile ${D}inputFiles; outFile=${D}2
50789 fi
50790
50791 # If it is an archive, remove the '!' and the '_%' suffixes
50792 case ${D}outFile in
50793 *_%!)
50794     outFile=\`basnam ${D}outFile _%!\`
50795     ;;
50796 *)
50797     ;;
50798 esac
50799 case ${D}outFile in
50800 *.dll)
50801     outFile=\`basnam ${D}outFile .dll\`
50802     ;;
50803 *.DLL)
50804     outFile=\`basnam ${D}outFile .DLL\`
50805     ;;
50806 *.o)
50807     outFile=\`basnam ${D}outFile .o\`
50808     ;;
50809 *.obj)
50810     outFile=\`basnam ${D}outFile .obj\`
50811     ;;
50812 *.a)
50813     outFile=\`basnam ${D}outFile .a\`
50814     ;;
50815 *.lib)
50816     outFile=\`basnam ${D}outFile .lib\`
50817     ;;
50818 *)
50819     ;;
50820 esac
50821 case ${D}outimpFile in
50822 *.a)
50823     outimpFile=\`basnam ${D}outimpFile .a\`
50824     ;;
50825 *.lib)
50826     outimpFile=\`basnam ${D}outimpFile .lib\`
50827     ;;
50828 *)
50829     ;;
50830 esac
50831 if [ -z ${D}outimpFile ]; then
50832     outimpFile=${D}outFile
50833 fi
50834 defFile="${D}{outFile}.def"
50835 arcFile="${D}{outimpFile}.a"
50836 arcFile2="${D}{outimpFile}.lib"
50837
50838 #create ${D}dllFile as something matching 8.3 restrictions,
50839 if [ -z ${D}renameScript ] ; then
50840     dllFile="${D}outFile"
50841 else
50842     dllFile=\`${D}renameScript ${D}outimpFile\`
50843 fi
50844
50845 if [ ${D}do_backup -ne 0 ] ; then
50846     if [ -f ${D}arcFile ] ; then
50847         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50848     fi
50849     if [ -f ${D}arcFile2 ] ; then
50850         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50851     fi
50852 fi
50853
50854 # Extract public symbols from all the object files.
50855 tmpdefFile=${D}{defFile}_%
50856 rm -f ${D}tmpdefFile
50857 for file in ${D}inputFiles ; do
50858     case ${D}file in
50859     *!)
50860         ;;
50861     *)
50862         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50863         ;;
50864     esac
50865 done
50866
50867 # Create the def file.
50868 rm -f ${D}defFile
50869 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50870 dllFile="${D}{dllFile}.dll"
50871 if [ ! -z ${D}description ]; then
50872     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50873 fi
50874 echo "EXPORTS" >> ${D}defFile
50875
50876 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50877 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50878
50879 # Checks if the export is ok or not.
50880 for word in ${D}exclude_symbols; do
50881     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50882     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50883 done
50884
50885
50886 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50887     sed "=" < ${D}tmpdefFile | \\
50888     sed '
50889       N
50890       : loop
50891       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50892       t loop
50893     ' > ${D}{tmpdefFile}%
50894     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50895 else
50896     rm -f ${D}{tmpdefFile}%
50897 fi
50898 cat ${D}tmpdefFile >> ${D}defFile
50899 rm -f ${D}tmpdefFile
50900
50901 # Do linking, create implib, and apply lxlite.
50902 gccCmdl="";
50903 for file in ${D}inputFiles ; do
50904     case ${D}file in
50905     *!)
50906         ;;
50907     *)
50908         gccCmdl="${D}gccCmdl ${D}file"
50909         ;;
50910     esac
50911 done
50912 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50913 touch "${D}{outFile}.dll"
50914
50915 doCommand "emximp -o ${D}arcFile ${D}defFile"
50916 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50917     add_flags="";
50918     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50919         add_flags="-ynd"
50920     fi
50921     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50922 fi
50923 doCommand "emxomf -s -l ${D}arcFile"
50924
50925 # Successful exit.
50926 CleanUp 1
50927 exit 0
50928 EOF
50929
50930         chmod +x dllar.sh
50931       ;;
50932
50933       powerpc-apple-macos* | \
50934       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50935       *-*-mirbsd* | \
50936       *-*-sunos4* | \
50937       *-*-osf* | \
50938       *-*-dgux5* | \
50939       *-*-sysv5* | \
50940       *-pc-msdosdjgpp )
50941               ;;
50942
50943       *)
50944         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50945 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50946    { (exit 1); exit 1; }; }
50947     esac
50948
50949     if test "x$PIC_FLAG" != "x" ; then
50950         PIC_FLAG="$PIC_FLAG -DPIC"
50951     fi
50952
50953     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50954         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50955     fi
50956     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50957         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50958     fi
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968     USE_SOVERSION=0
50969     USE_SOVERLINUX=0
50970     USE_SOVERSOLARIS=0
50971     USE_SOVERCYGWIN=0
50972     USE_SOSYMLINKS=0
50973     USE_MACVERSION=0
50974     SONAME_FLAG=
50975
50976     case "${BAKEFILE_HOST}" in
50977       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
50978         if test "x$SUNCXX" = "xyes"; then
50979             SONAME_FLAG="-h "
50980         else
50981             SONAME_FLAG="-Wl,-soname,"
50982         fi
50983         USE_SOVERSION=1
50984         USE_SOVERLINUX=1
50985         USE_SOSYMLINKS=1
50986       ;;
50987
50988       *-*-solaris2* )
50989         SONAME_FLAG="-h "
50990         USE_SOVERSION=1
50991         USE_SOVERSOLARIS=1
50992         USE_SOSYMLINKS=1
50993       ;;
50994
50995       *-*-darwin* )
50996         USE_MACVERSION=1
50997         USE_SOVERSION=1
50998         USE_SOSYMLINKS=1
50999       ;;
51000
51001       *-*-cygwin* )
51002         USE_SOVERSION=1
51003         USE_SOVERCYGWIN=1
51004       ;;
51005     esac
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015
51016     # Check whether --enable-dependency-tracking was given.
51017 if test "${enable_dependency_tracking+set}" = set; then
51018   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51019 fi
51020
51021
51022     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51023 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51024
51025     BK_DEPS=""
51026     if test "x$bk_use_trackdeps" = "xno" ; then
51027         DEPS_TRACKING=0
51028         { echo "$as_me:$LINENO: result: disabled" >&5
51029 echo "${ECHO_T}disabled" >&6; }
51030     else
51031         DEPS_TRACKING=1
51032
51033         if test "x$GCC" = "xyes"; then
51034             DEPSMODE=gcc
51035             case "${BAKEFILE_HOST}" in
51036                 *-*-darwin* )
51037                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51038                 ;;
51039                 * )
51040                     DEPSFLAG="-MMD"
51041                 ;;
51042             esac
51043             { echo "$as_me:$LINENO: result: gcc" >&5
51044 echo "${ECHO_T}gcc" >&6; }
51045         elif test "x$MWCC" = "xyes"; then
51046             DEPSMODE=mwcc
51047             DEPSFLAG="-MM"
51048             { echo "$as_me:$LINENO: result: mwcc" >&5
51049 echo "${ECHO_T}mwcc" >&6; }
51050         elif test "x$SUNCC" = "xyes"; then
51051             DEPSMODE=unixcc
51052             DEPSFLAG="-xM1"
51053             { echo "$as_me:$LINENO: result: Sun cc" >&5
51054 echo "${ECHO_T}Sun cc" >&6; }
51055         elif test "x$SGICC" = "xyes"; then
51056             DEPSMODE=unixcc
51057             DEPSFLAG="-M"
51058             { echo "$as_me:$LINENO: result: SGI cc" >&5
51059 echo "${ECHO_T}SGI cc" >&6; }
51060         elif test "x$HPCC" = "xyes"; then
51061             DEPSMODE=unixcc
51062             DEPSFLAG="+make"
51063             { echo "$as_me:$LINENO: result: HP cc" >&5
51064 echo "${ECHO_T}HP cc" >&6; }
51065         elif test "x$COMPAQCC" = "xyes"; then
51066             DEPSMODE=gcc
51067             DEPSFLAG="-MD"
51068             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51069 echo "${ECHO_T}Compaq cc" >&6; }
51070         else
51071             DEPS_TRACKING=0
51072             { echo "$as_me:$LINENO: result: none" >&5
51073 echo "${ECHO_T}none" >&6; }
51074         fi
51075
51076         if test $DEPS_TRACKING = 1 ; then
51077
51078 D='$'
51079 cat <<EOF >bk-deps
51080 #!/bin/sh
51081
51082 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51083 # script. It is used to track C/C++ files dependencies in portable way.
51084 #
51085 # Permission is given to use this file in any way.
51086
51087 DEPSMODE=${DEPSMODE}
51088 DEPSDIR=.deps
51089 DEPSFLAG="${DEPSFLAG}"
51090
51091 mkdir -p ${D}DEPSDIR
51092
51093 if test ${D}DEPSMODE = gcc ; then
51094     ${D}* ${D}{DEPSFLAG}
51095     status=${D}?
51096     if test ${D}{status} != 0 ; then
51097         exit ${D}{status}
51098     fi
51099     # move created file to the location we want it in:
51100     while test ${D}# -gt 0; do
51101         case "${D}1" in
51102             -o )
51103                 shift
51104                 objfile=${D}1
51105             ;;
51106             -* )
51107             ;;
51108             * )
51109                 srcfile=${D}1
51110             ;;
51111         esac
51112         shift
51113     done
51114     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51115     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51116     if test -f ${D}depfile ; then
51117         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51118         rm -f ${D}depfile
51119     else
51120         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51121         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51122         if test ! -f ${D}depfile ; then
51123             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51124             depfile="${D}objfile.d"
51125         fi
51126         if test -f ${D}depfile ; then
51127             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51128             rm -f ${D}depfile
51129         fi
51130     fi
51131     exit 0
51132 elif test ${D}DEPSMODE = mwcc ; then
51133     ${D}* || exit ${D}?
51134     # Run mwcc again with -MM and redirect into the dep file we want
51135     # NOTE: We can't use shift here because we need ${D}* to be valid
51136     prevarg=
51137     for arg in ${D}* ; do
51138         if test "${D}prevarg" = "-o"; then
51139             objfile=${D}arg
51140         else
51141             case "${D}arg" in
51142                 -* )
51143                 ;;
51144                 * )
51145                     srcfile=${D}arg
51146                 ;;
51147             esac
51148         fi
51149         prevarg="${D}arg"
51150     done
51151     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51152     exit 0
51153 elif test ${D}DEPSMODE = unixcc; then
51154     ${D}* || exit ${D}?
51155     # Run compiler again with deps flag and redirect into the dep file.
51156     # It doesn't work if the '-o FILE' option is used, but without it the
51157     # dependency file will contain the wrong name for the object. So it is
51158     # removed from the command line, and the dep file is fixed with sed.
51159     cmd=""
51160     while test ${D}# -gt 0; do
51161         case "${D}1" in
51162             -o )
51163                 shift
51164                 objfile=${D}1
51165             ;;
51166             * )
51167                 eval arg${D}#=\\${D}1
51168                 cmd="${D}cmd \\${D}arg${D}#"
51169             ;;
51170         esac
51171         shift
51172     done
51173     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51174     exit 0
51175 else
51176     ${D}*
51177     exit ${D}?
51178 fi
51179 EOF
51180
51181             chmod +x bk-deps
51182                                     BK_DEPS="`pwd`/bk-deps"
51183         fi
51184     fi
51185
51186
51187
51188
51189
51190     case ${BAKEFILE_HOST} in
51191         *-*-cygwin* | *-*-mingw32* )
51192                         if test -n "$ac_tool_prefix"; then
51193   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51194 set dummy ${ac_tool_prefix}windres; ac_word=$2
51195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51197 if test "${ac_cv_prog_WINDRES+set}" = set; then
51198   echo $ECHO_N "(cached) $ECHO_C" >&6
51199 else
51200   if test -n "$WINDRES"; then
51201   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51202 else
51203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51204 for as_dir in $PATH
51205 do
51206   IFS=$as_save_IFS
51207   test -z "$as_dir" && as_dir=.
51208   for ac_exec_ext in '' $ac_executable_extensions; do
51209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51210     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51212     break 2
51213   fi
51214 done
51215 done
51216 IFS=$as_save_IFS
51217
51218 fi
51219 fi
51220 WINDRES=$ac_cv_prog_WINDRES
51221 if test -n "$WINDRES"; then
51222   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51223 echo "${ECHO_T}$WINDRES" >&6; }
51224 else
51225   { echo "$as_me:$LINENO: result: no" >&5
51226 echo "${ECHO_T}no" >&6; }
51227 fi
51228
51229
51230 fi
51231 if test -z "$ac_cv_prog_WINDRES"; then
51232   ac_ct_WINDRES=$WINDRES
51233   # Extract the first word of "windres", so it can be a program name with args.
51234 set dummy windres; ac_word=$2
51235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51237 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51238   echo $ECHO_N "(cached) $ECHO_C" >&6
51239 else
51240   if test -n "$ac_ct_WINDRES"; then
51241   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51242 else
51243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51244 for as_dir in $PATH
51245 do
51246   IFS=$as_save_IFS
51247   test -z "$as_dir" && as_dir=.
51248   for ac_exec_ext in '' $ac_executable_extensions; do
51249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51250     ac_cv_prog_ac_ct_WINDRES="windres"
51251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51252     break 2
51253   fi
51254 done
51255 done
51256 IFS=$as_save_IFS
51257
51258 fi
51259 fi
51260 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51261 if test -n "$ac_ct_WINDRES"; then
51262   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51263 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51264 else
51265   { echo "$as_me:$LINENO: result: no" >&5
51266 echo "${ECHO_T}no" >&6; }
51267 fi
51268
51269   if test "x$ac_ct_WINDRES" = x; then
51270     WINDRES=""
51271   else
51272     case $cross_compiling:$ac_tool_warned in
51273 yes:)
51274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51275 whose name does not start with the host triplet.  If you think this
51276 configuration is useful to you, please write to autoconf@gnu.org." >&5
51277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51278 whose name does not start with the host triplet.  If you think this
51279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51280 ac_tool_warned=yes ;;
51281 esac
51282     WINDRES=$ac_ct_WINDRES
51283   fi
51284 else
51285   WINDRES="$ac_cv_prog_WINDRES"
51286 fi
51287
51288          ;;
51289
51290       *-*-darwin* | powerpc-apple-macos* )
51291             # Extract the first word of "Rez", so it can be a program name with args.
51292 set dummy Rez; ac_word=$2
51293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51295 if test "${ac_cv_prog_REZ+set}" = set; then
51296   echo $ECHO_N "(cached) $ECHO_C" >&6
51297 else
51298   if test -n "$REZ"; then
51299   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51300 else
51301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51302 for as_dir in $PATH
51303 do
51304   IFS=$as_save_IFS
51305   test -z "$as_dir" && as_dir=.
51306   for ac_exec_ext in '' $ac_executable_extensions; do
51307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51308     ac_cv_prog_REZ="Rez"
51309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51310     break 2
51311   fi
51312 done
51313 done
51314 IFS=$as_save_IFS
51315
51316   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51317 fi
51318 fi
51319 REZ=$ac_cv_prog_REZ
51320 if test -n "$REZ"; then
51321   { echo "$as_me:$LINENO: result: $REZ" >&5
51322 echo "${ECHO_T}$REZ" >&6; }
51323 else
51324   { echo "$as_me:$LINENO: result: no" >&5
51325 echo "${ECHO_T}no" >&6; }
51326 fi
51327
51328
51329             # Extract the first word of "SetFile", so it can be a program name with args.
51330 set dummy SetFile; ac_word=$2
51331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51333 if test "${ac_cv_prog_SETFILE+set}" = set; then
51334   echo $ECHO_N "(cached) $ECHO_C" >&6
51335 else
51336   if test -n "$SETFILE"; then
51337   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51338 else
51339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51340 for as_dir in $PATH
51341 do
51342   IFS=$as_save_IFS
51343   test -z "$as_dir" && as_dir=.
51344   for ac_exec_ext in '' $ac_executable_extensions; do
51345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51346     ac_cv_prog_SETFILE="SetFile"
51347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51348     break 2
51349   fi
51350 done
51351 done
51352 IFS=$as_save_IFS
51353
51354   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51355 fi
51356 fi
51357 SETFILE=$ac_cv_prog_SETFILE
51358 if test -n "$SETFILE"; then
51359   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51360 echo "${ECHO_T}$SETFILE" >&6; }
51361 else
51362   { echo "$as_me:$LINENO: result: no" >&5
51363 echo "${ECHO_T}no" >&6; }
51364 fi
51365
51366
51367         ;;
51368     esac
51369
51370
51371
51372
51373
51374
51375     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51376
51377
51378 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51379
51380
51381
51382     # Check whether --enable-precomp-headers was given.
51383 if test "${enable_precomp_headers+set}" = set; then
51384   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51385 fi
51386
51387
51388     GCC_PCH=0
51389     ICC_PCH=0
51390     USE_PCH=0
51391     BK_MAKE_PCH=""
51392
51393     case ${BAKEFILE_HOST} in
51394         *-*-cygwin* )
51395                                                 bk_use_pch="no"
51396             ;;
51397     esac
51398
51399     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51400         if test "x$GCC" = "xyes"; then
51401                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51402 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51403             cat >conftest.$ac_ext <<_ACEOF
51404 /* confdefs.h.  */
51405 _ACEOF
51406 cat confdefs.h >>conftest.$ac_ext
51407 cat >>conftest.$ac_ext <<_ACEOF
51408 /* end confdefs.h.  */
51409
51410 int
51411 main ()
51412 {
51413
51414                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51415                         There is no PCH support
51416                     #endif
51417                     #if (__GNUC__ < 3)
51418                         There is no PCH support
51419                     #endif
51420                     #if (__GNUC__ == 3) && \
51421                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51422                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51423                        ( defined(__INTEL_COMPILER) )
51424                         There is no PCH support
51425                     #endif
51426
51427   ;
51428   return 0;
51429 }
51430 _ACEOF
51431 rm -f conftest.$ac_objext
51432 if { (ac_try="$ac_compile"
51433 case "(($ac_try" in
51434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51435   *) ac_try_echo=$ac_try;;
51436 esac
51437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51438   (eval "$ac_compile") 2>conftest.er1
51439   ac_status=$?
51440   grep -v '^ *+' conftest.er1 >conftest.err
51441   rm -f conftest.er1
51442   cat conftest.err >&5
51443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51444   (exit $ac_status); } && {
51445          test -z "$ac_c_werror_flag" ||
51446          test ! -s conftest.err
51447        } && test -s conftest.$ac_objext; then
51448
51449                     { echo "$as_me:$LINENO: result: yes" >&5
51450 echo "${ECHO_T}yes" >&6; }
51451                     GCC_PCH=1
51452
51453 else
51454   echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51456
51457
51458                     cat >conftest.$ac_ext <<_ACEOF
51459 /* confdefs.h.  */
51460 _ACEOF
51461 cat confdefs.h >>conftest.$ac_ext
51462 cat >>conftest.$ac_ext <<_ACEOF
51463 /* end confdefs.h.  */
51464
51465 int
51466 main ()
51467 {
51468
51469                             #if !defined(__INTEL_COMPILER) || \
51470                                 (__INTEL_COMPILER < 800)
51471                                 There is no PCH support
51472                             #endif
51473
51474   ;
51475   return 0;
51476 }
51477 _ACEOF
51478 rm -f conftest.$ac_objext
51479 if { (ac_try="$ac_compile"
51480 case "(($ac_try" in
51481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51482   *) ac_try_echo=$ac_try;;
51483 esac
51484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51485   (eval "$ac_compile") 2>conftest.er1
51486   ac_status=$?
51487   grep -v '^ *+' conftest.er1 >conftest.err
51488   rm -f conftest.er1
51489   cat conftest.err >&5
51490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51491   (exit $ac_status); } && {
51492          test -z "$ac_c_werror_flag" ||
51493          test ! -s conftest.err
51494        } && test -s conftest.$ac_objext; then
51495
51496                             { echo "$as_me:$LINENO: result: yes" >&5
51497 echo "${ECHO_T}yes" >&6; }
51498                             ICC_PCH=1
51499
51500 else
51501   echo "$as_me: failed program was:" >&5
51502 sed 's/^/| /' conftest.$ac_ext >&5
51503
51504
51505                             { echo "$as_me:$LINENO: result: no" >&5
51506 echo "${ECHO_T}no" >&6; }
51507
51508 fi
51509
51510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51511
51512 fi
51513
51514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51515             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51516                 USE_PCH=1
51517
51518 D='$'
51519 cat <<EOF >bk-make-pch
51520 #!/bin/sh
51521
51522 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51523 # script. It is used to generated precompiled headers.
51524 #
51525 # Permission is given to use this file in any way.
51526
51527 outfile="${D}{1}"
51528 header="${D}{2}"
51529 shift
51530 shift
51531
51532 compiler=""
51533 headerfile=""
51534
51535 while test ${D}{#} -gt 0; do
51536     add_to_cmdline=1
51537     case "${D}{1}" in
51538         -I* )
51539             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51540             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51541                 headerfile="${D}{incdir}/${D}{header}"
51542             fi
51543         ;;
51544         -use-pch|-use_pch )
51545             shift
51546             add_to_cmdline=0
51547         ;;
51548     esac
51549     if test ${D}add_to_cmdline = 1 ; then
51550         compiler="${D}{compiler} ${D}{1}"
51551     fi
51552     shift
51553 done
51554
51555 if test "x${D}{headerfile}" = "x" ; then
51556     echo "error: can't find header ${D}{header} in include paths" >&2
51557 else
51558     if test -f ${D}{outfile} ; then
51559         rm -f ${D}{outfile}
51560     else
51561         mkdir -p \`dirname ${D}{outfile}\`
51562     fi
51563     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51564     mkdir -p .deps
51565     if test "x${GCC_PCH}" = "x1" ; then
51566         # can do this because gcc is >= 3.4:
51567         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51568     elif test "x${ICC_PCH}" = "x1" ; then
51569         filename=pch_gen-${D}${D}
51570         file=${D}{filename}.c
51571         dfile=${D}{filename}.d
51572         cat > ${D}file <<EOT
51573 #include "${D}header"
51574 EOT
51575         # using -MF icc complains about differing command lines in creation/use
51576         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51577           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51578           rm -f ${D}file ${D}dfile ${D}{filename}.o
51579     fi
51580     exit ${D}{?}
51581 fi
51582 EOF
51583
51584                 chmod +x bk-make-pch
51585                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51586             fi
51587         fi
51588     fi
51589
51590
51591
51592
51593
51594     COND_BUILD_DEBUG="#"
51595     if test "x$BUILD" = "xdebug" ; then
51596         COND_BUILD_DEBUG=""
51597     fi
51598
51599     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51600     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51601         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51602     fi
51603
51604     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51605     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51606         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51607     fi
51608
51609     COND_BUILD_DEBUG_UNICODE_0="#"
51610     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51611         COND_BUILD_DEBUG_UNICODE_0=""
51612     fi
51613
51614     COND_BUILD_DEBUG_UNICODE_1="#"
51615     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51616         COND_BUILD_DEBUG_UNICODE_1=""
51617     fi
51618
51619     COND_BUILD_RELEASE="#"
51620     if test "x$BUILD" = "xrelease" ; then
51621         COND_BUILD_RELEASE=""
51622     fi
51623
51624     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51625     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51626         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51627     fi
51628
51629     COND_BUILD_RELEASE_UNICODE_0="#"
51630     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51631         COND_BUILD_RELEASE_UNICODE_0=""
51632     fi
51633
51634     COND_BUILD_RELEASE_UNICODE_1="#"
51635     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51636         COND_BUILD_RELEASE_UNICODE_1=""
51637     fi
51638
51639     COND_DEBUG_FLAG_1="#"
51640     if test "x$DEBUG_FLAG" = "x1" ; then
51641         COND_DEBUG_FLAG_1=""
51642     fi
51643
51644     COND_DEBUG_INFO_0="#"
51645     if test "x$DEBUG_INFO" = "x0" ; then
51646         COND_DEBUG_INFO_0=""
51647     fi
51648
51649     COND_DEBUG_INFO_1="#"
51650     if test "x$DEBUG_INFO" = "x1" ; then
51651         COND_DEBUG_INFO_1=""
51652     fi
51653
51654     COND_DEPS_TRACKING_0="#"
51655     if test "x$DEPS_TRACKING" = "x0" ; then
51656         COND_DEPS_TRACKING_0=""
51657     fi
51658
51659     COND_DEPS_TRACKING_1="#"
51660     if test "x$DEPS_TRACKING" = "x1" ; then
51661         COND_DEPS_TRACKING_1=""
51662     fi
51663
51664     COND_GCC_PCH_1="#"
51665     if test "x$GCC_PCH" = "x1" ; then
51666         COND_GCC_PCH_1=""
51667     fi
51668
51669     COND_ICC_PCH_1="#"
51670     if test "x$ICC_PCH" = "x1" ; then
51671         COND_ICC_PCH_1=""
51672     fi
51673
51674     COND_MONOLITHIC_0="#"
51675     if test "x$MONOLITHIC" = "x0" ; then
51676         COND_MONOLITHIC_0=""
51677     fi
51678
51679     COND_MONOLITHIC_0_SHARED_0="#"
51680     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51681         COND_MONOLITHIC_0_SHARED_0=""
51682     fi
51683
51684     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51685     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51686         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51687     fi
51688
51689     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51690     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51691         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51692     fi
51693
51694     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51695     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51696         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51697     fi
51698
51699     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51700     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51701         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51702     fi
51703
51704     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
51705     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51706         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
51707     fi
51708
51709     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51710     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51711         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51712     fi
51713
51714     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
51715     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
51716         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
51717     fi
51718
51719     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51720     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51721         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51722     fi
51723
51724     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51725     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51726         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51727     fi
51728
51729     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51730     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51731         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51732     fi
51733
51734     COND_MONOLITHIC_0_SHARED_1="#"
51735     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51736         COND_MONOLITHIC_0_SHARED_1=""
51737     fi
51738
51739     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51740     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51741         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51742     fi
51743
51744     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51745     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51746         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51747     fi
51748
51749     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51750     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51751         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51752     fi
51753
51754     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51755     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51756         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51757     fi
51758
51759     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
51760     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51761         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
51762     fi
51763
51764     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51765     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51766         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51767     fi
51768
51769     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
51770     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
51771         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
51772     fi
51773
51774     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51775     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51776         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51777     fi
51778
51779     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51780     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51781         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51782     fi
51783
51784     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51785     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51786         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51787     fi
51788
51789     COND_MONOLITHIC_0_USE_AUI_1="#"
51790     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51791         COND_MONOLITHIC_0_USE_AUI_1=""
51792     fi
51793
51794     COND_MONOLITHIC_0_USE_GUI_1="#"
51795     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51796         COND_MONOLITHIC_0_USE_GUI_1=""
51797     fi
51798
51799     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51800     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51801         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51802     fi
51803
51804     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
51805     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51806         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
51807     fi
51808
51809     COND_MONOLITHIC_0_USE_HTML_1="#"
51810     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51811         COND_MONOLITHIC_0_USE_HTML_1=""
51812     fi
51813
51814     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51815     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51816         COND_MONOLITHIC_0_USE_MEDIA_1=""
51817     fi
51818
51819     COND_MONOLITHIC_0_USE_ODBC_1="#"
51820     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
51821         COND_MONOLITHIC_0_USE_ODBC_1=""
51822     fi
51823
51824     COND_MONOLITHIC_0_USE_QA_1="#"
51825     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51826         COND_MONOLITHIC_0_USE_QA_1=""
51827     fi
51828
51829     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51830     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51831         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51832     fi
51833
51834     COND_MONOLITHIC_0_USE_STC_1="#"
51835     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51836         COND_MONOLITHIC_0_USE_STC_1=""
51837     fi
51838
51839     COND_MONOLITHIC_0_USE_XRC_1="#"
51840     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51841         COND_MONOLITHIC_0_USE_XRC_1=""
51842     fi
51843
51844     COND_MONOLITHIC_1="#"
51845     if test "x$MONOLITHIC" = "x1" ; then
51846         COND_MONOLITHIC_1=""
51847     fi
51848
51849     COND_MONOLITHIC_1_SHARED_0="#"
51850     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51851         COND_MONOLITHIC_1_SHARED_0=""
51852     fi
51853
51854     COND_MONOLITHIC_1_SHARED_1="#"
51855     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51856         COND_MONOLITHIC_1_SHARED_1=""
51857     fi
51858
51859     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51860     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51861         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51862     fi
51863
51864     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51865     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51866         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51867     fi
51868
51869     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51870     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51871         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51872     fi
51873
51874     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51875     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51876         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51877     fi
51878
51879     COND_PLATFORM_MACOSX_1="#"
51880     if test "x$PLATFORM_MACOSX" = "x1" ; then
51881         COND_PLATFORM_MACOSX_1=""
51882     fi
51883
51884     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
51885     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
51886         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
51887     fi
51888
51889     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
51890     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
51891         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
51892     fi
51893
51894     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
51895     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
51896         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
51897     fi
51898
51899     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
51900     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
51901         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
51902     fi
51903
51904     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
51905     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51906         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
51907     fi
51908
51909     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
51910     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
51911         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
51912     fi
51913
51914     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
51915     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
51916         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
51917     fi
51918
51919     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51920     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51921         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51922     fi
51923
51924     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51925     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51926         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51927     fi
51928
51929     COND_PLATFORM_MACOS_1="#"
51930     if test "x$PLATFORM_MACOS" = "x1" ; then
51931         COND_PLATFORM_MACOS_1=""
51932     fi
51933
51934     COND_PLATFORM_MAC_1="#"
51935     if test "x$PLATFORM_MAC" = "x1" ; then
51936         COND_PLATFORM_MAC_1=""
51937     fi
51938
51939     COND_PLATFORM_MSDOS_0="#"
51940     if test "x$PLATFORM_MSDOS" = "x0" ; then
51941         COND_PLATFORM_MSDOS_0=""
51942     fi
51943
51944     COND_PLATFORM_MSDOS_1="#"
51945     if test "x$PLATFORM_MSDOS" = "x1" ; then
51946         COND_PLATFORM_MSDOS_1=""
51947     fi
51948
51949     COND_PLATFORM_OS2_1="#"
51950     if test "x$PLATFORM_OS2" = "x1" ; then
51951         COND_PLATFORM_OS2_1=""
51952     fi
51953
51954     COND_PLATFORM_UNIX_0="#"
51955     if test "x$PLATFORM_UNIX" = "x0" ; then
51956         COND_PLATFORM_UNIX_0=""
51957     fi
51958
51959     COND_PLATFORM_UNIX_1="#"
51960     if test "x$PLATFORM_UNIX" = "x1" ; then
51961         COND_PLATFORM_UNIX_1=""
51962     fi
51963
51964     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51965     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51966         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51967     fi
51968
51969     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51970     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51971         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51972     fi
51973
51974     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51975     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51976         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51977     fi
51978
51979     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51980     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51981         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51982     fi
51983
51984     COND_PLATFORM_WIN32_0="#"
51985     if test "x$PLATFORM_WIN32" = "x0" ; then
51986         COND_PLATFORM_WIN32_0=""
51987     fi
51988
51989     COND_PLATFORM_WIN32_1="#"
51990     if test "x$PLATFORM_WIN32" = "x1" ; then
51991         COND_PLATFORM_WIN32_1=""
51992     fi
51993
51994     COND_SHARED_0="#"
51995     if test "x$SHARED" = "x0" ; then
51996         COND_SHARED_0=""
51997     fi
51998
51999     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52000     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52001         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52002     fi
52003
52004     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52005     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52006         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52007     fi
52008
52009     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52010     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52011         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52012     fi
52013
52014     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52015     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52016         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52017     fi
52018
52019     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52020     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52021         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52022     fi
52023
52024     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52025     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52026         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52027     fi
52028
52029     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52030     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52031         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52032     fi
52033
52034     COND_SHARED_0_USE_STC_1="#"
52035     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52036         COND_SHARED_0_USE_STC_1=""
52037     fi
52038
52039     COND_SHARED_0_USE_XRC_1="#"
52040     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52041         COND_SHARED_0_USE_XRC_1=""
52042     fi
52043
52044     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52045     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52046         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52047     fi
52048
52049     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52050     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52051         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52052     fi
52053
52054     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52055     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52056         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52057     fi
52058
52059     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52060     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52061         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52062     fi
52063
52064     COND_SHARED_1="#"
52065     if test "x$SHARED" = "x1" ; then
52066         COND_SHARED_1=""
52067     fi
52068
52069     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52070     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52071         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52072     fi
52073
52074     COND_SHARED_1_USE_XRC_1="#"
52075     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52076         COND_SHARED_1_USE_XRC_1=""
52077     fi
52078
52079     COND_TOOLKIT_="#"
52080     if test "x$TOOLKIT" = "x" ; then
52081         COND_TOOLKIT_=""
52082     fi
52083
52084     COND_TOOLKIT_COCOA="#"
52085     if test "x$TOOLKIT" = "xCOCOA" ; then
52086         COND_TOOLKIT_COCOA=""
52087     fi
52088
52089     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52090     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52091         COND_TOOLKIT_COCOA_USE_GUI_1=""
52092     fi
52093
52094     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52095     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52096         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52097     fi
52098
52099     COND_TOOLKIT_DFB="#"
52100     if test "x$TOOLKIT" = "xDFB" ; then
52101         COND_TOOLKIT_DFB=""
52102     fi
52103
52104     COND_TOOLKIT_DFB_USE_GUI_1="#"
52105     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52106         COND_TOOLKIT_DFB_USE_GUI_1=""
52107     fi
52108
52109     COND_TOOLKIT_GTK="#"
52110     if test "x$TOOLKIT" = "xGTK" ; then
52111         COND_TOOLKIT_GTK=""
52112     fi
52113
52114     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52115     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52116         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52117     fi
52118
52119     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52120     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52121         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52122     fi
52123
52124     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52125     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52126         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52127     fi
52128
52129     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52130     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52131         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52132     fi
52133
52134     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52135     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52136         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52137     fi
52138
52139     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52140     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52141         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52142     fi
52143
52144     COND_TOOLKIT_GTK_USE_GUI_1="#"
52145     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52146         COND_TOOLKIT_GTK_USE_GUI_1=""
52147     fi
52148
52149     COND_TOOLKIT_MAC="#"
52150     if test "x$TOOLKIT" = "xMAC" ; then
52151         COND_TOOLKIT_MAC=""
52152     fi
52153
52154     COND_TOOLKIT_MAC_USE_GUI_1="#"
52155     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52156         COND_TOOLKIT_MAC_USE_GUI_1=""
52157     fi
52158
52159     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52160     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52161         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52162     fi
52163
52164     COND_TOOLKIT_MGL="#"
52165     if test "x$TOOLKIT" = "xMGL" ; then
52166         COND_TOOLKIT_MGL=""
52167     fi
52168
52169     COND_TOOLKIT_MGL_USE_GUI_1="#"
52170     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52171         COND_TOOLKIT_MGL_USE_GUI_1=""
52172     fi
52173
52174     COND_TOOLKIT_MOTIF="#"
52175     if test "x$TOOLKIT" = "xMOTIF" ; then
52176         COND_TOOLKIT_MOTIF=""
52177     fi
52178
52179     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52180     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52181         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52182     fi
52183
52184     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52185     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52186         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52187     fi
52188
52189     COND_TOOLKIT_MSW="#"
52190     if test "x$TOOLKIT" = "xMSW" ; then
52191         COND_TOOLKIT_MSW=""
52192     fi
52193
52194     COND_TOOLKIT_MSW_USE_GUI_1="#"
52195     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52196         COND_TOOLKIT_MSW_USE_GUI_1=""
52197     fi
52198
52199     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52200     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52201         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52202     fi
52203
52204     COND_TOOLKIT_MSW_WXUNIV_0="#"
52205     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52206         COND_TOOLKIT_MSW_WXUNIV_0=""
52207     fi
52208
52209     COND_TOOLKIT_PM="#"
52210     if test "x$TOOLKIT" = "xPM" ; then
52211         COND_TOOLKIT_PM=""
52212     fi
52213
52214     COND_TOOLKIT_PM_USE_GUI_1="#"
52215     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52216         COND_TOOLKIT_PM_USE_GUI_1=""
52217     fi
52218
52219     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52220     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52221         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52222     fi
52223
52224     COND_TOOLKIT_WINCE="#"
52225     if test "x$TOOLKIT" = "xWINCE" ; then
52226         COND_TOOLKIT_WINCE=""
52227     fi
52228
52229     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52230     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52231         COND_TOOLKIT_WINCE_USE_GUI_1=""
52232     fi
52233
52234     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52235     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52236         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52237     fi
52238
52239     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52240     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52241         COND_TOOLKIT_WINCE_WXUNIV_0=""
52242     fi
52243
52244     COND_TOOLKIT_X11="#"
52245     if test "x$TOOLKIT" = "xX11" ; then
52246         COND_TOOLKIT_X11=""
52247     fi
52248
52249     COND_TOOLKIT_X11_USE_GUI_1="#"
52250     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52251         COND_TOOLKIT_X11_USE_GUI_1=""
52252     fi
52253
52254     COND_UNICODE_1="#"
52255     if test "x$UNICODE" = "x1" ; then
52256         COND_UNICODE_1=""
52257     fi
52258
52259     COND_USE_EXCEPTIONS_0="#"
52260     if test "x$USE_EXCEPTIONS" = "x0" ; then
52261         COND_USE_EXCEPTIONS_0=""
52262     fi
52263
52264     COND_USE_EXCEPTIONS_1="#"
52265     if test "x$USE_EXCEPTIONS" = "x1" ; then
52266         COND_USE_EXCEPTIONS_1=""
52267     fi
52268
52269     COND_USE_GUI_0="#"
52270     if test "x$USE_GUI" = "x0" ; then
52271         COND_USE_GUI_0=""
52272     fi
52273
52274     COND_USE_GUI_1="#"
52275     if test "x$USE_GUI" = "x1" ; then
52276         COND_USE_GUI_1=""
52277     fi
52278
52279     COND_USE_GUI_1_USE_OPENGL_1="#"
52280     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52281         COND_USE_GUI_1_USE_OPENGL_1=""
52282     fi
52283
52284     COND_USE_GUI_1_WXUNIV_0="#"
52285     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52286         COND_USE_GUI_1_WXUNIV_0=""
52287     fi
52288
52289     COND_USE_GUI_1_WXUNIV_1="#"
52290     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52291         COND_USE_GUI_1_WXUNIV_1=""
52292     fi
52293
52294     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52295     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52296         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52297     fi
52298
52299     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52300     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52301         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52302     fi
52303
52304     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52305     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52306         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52307     fi
52308
52309     COND_USE_ODBC_1="#"
52310     if test "x$USE_ODBC" = "x1" ; then
52311         COND_USE_ODBC_1=""
52312     fi
52313
52314     COND_USE_OPENGL_1="#"
52315     if test "x$USE_OPENGL" = "x1" ; then
52316         COND_USE_OPENGL_1=""
52317     fi
52318
52319     COND_USE_PCH_1="#"
52320     if test "x$USE_PCH" = "x1" ; then
52321         COND_USE_PCH_1=""
52322     fi
52323
52324     COND_USE_PLUGINS_0="#"
52325     if test "x$USE_PLUGINS" = "x0" ; then
52326         COND_USE_PLUGINS_0=""
52327     fi
52328
52329     COND_USE_RTTI_0="#"
52330     if test "x$USE_RTTI" = "x0" ; then
52331         COND_USE_RTTI_0=""
52332     fi
52333
52334     COND_USE_RTTI_1="#"
52335     if test "x$USE_RTTI" = "x1" ; then
52336         COND_USE_RTTI_1=""
52337     fi
52338
52339     COND_USE_SOSYMLINKS_1="#"
52340     if test "x$USE_SOSYMLINKS" = "x1" ; then
52341         COND_USE_SOSYMLINKS_1=""
52342     fi
52343
52344     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52345     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52346         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52347     fi
52348
52349     COND_USE_SOVERLINUX_1="#"
52350     if test "x$USE_SOVERLINUX" = "x1" ; then
52351         COND_USE_SOVERLINUX_1=""
52352     fi
52353
52354     COND_USE_SOVERSION_0="#"
52355     if test "x$USE_SOVERSION" = "x0" ; then
52356         COND_USE_SOVERSION_0=""
52357     fi
52358
52359     COND_USE_SOVERSOLARIS_1="#"
52360     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52361         COND_USE_SOVERSOLARIS_1=""
52362     fi
52363
52364     COND_USE_STC_1="#"
52365     if test "x$USE_STC" = "x1" ; then
52366         COND_USE_STC_1=""
52367     fi
52368
52369     COND_USE_THREADS_0="#"
52370     if test "x$USE_THREADS" = "x0" ; then
52371         COND_USE_THREADS_0=""
52372     fi
52373
52374     COND_USE_THREADS_1="#"
52375     if test "x$USE_THREADS" = "x1" ; then
52376         COND_USE_THREADS_1=""
52377     fi
52378
52379     COND_USE_XRC_1="#"
52380     if test "x$USE_XRC" = "x1" ; then
52381         COND_USE_XRC_1=""
52382     fi
52383
52384     COND_WINDOWS_IMPLIB_1="#"
52385     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52386         COND_WINDOWS_IMPLIB_1=""
52387     fi
52388
52389     COND_WITH_PLUGIN_SDL_1="#"
52390     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52391         COND_WITH_PLUGIN_SDL_1=""
52392     fi
52393
52394     COND_WXUNIV_0="#"
52395     if test "x$WXUNIV" = "x0" ; then
52396         COND_WXUNIV_0=""
52397     fi
52398
52399     COND_WXUNIV_1="#"
52400     if test "x$WXUNIV" = "x1" ; then
52401         COND_WXUNIV_1=""
52402     fi
52403
52404     COND_WXUSE_EXPAT_BUILTIN="#"
52405     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52406         COND_WXUSE_EXPAT_BUILTIN=""
52407     fi
52408
52409     COND_WXUSE_LIBJPEG_BUILTIN="#"
52410     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52411         COND_WXUSE_LIBJPEG_BUILTIN=""
52412     fi
52413
52414     COND_WXUSE_LIBPNG_BUILTIN="#"
52415     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52416         COND_WXUSE_LIBPNG_BUILTIN=""
52417     fi
52418
52419     COND_WXUSE_LIBTIFF_BUILTIN="#"
52420     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52421         COND_WXUSE_LIBTIFF_BUILTIN=""
52422     fi
52423
52424     COND_WXUSE_ODBC_BUILTIN="#"
52425     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52426         COND_WXUSE_ODBC_BUILTIN=""
52427     fi
52428
52429     COND_WXUSE_REGEX_BUILTIN="#"
52430     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52431         COND_WXUSE_REGEX_BUILTIN=""
52432     fi
52433
52434     COND_WXUSE_ZLIB_BUILTIN="#"
52435     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52436         COND_WXUSE_ZLIB_BUILTIN=""
52437     fi
52438
52439
52440
52441     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52442         { { 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
52443 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;}
52444    { (exit 1); exit 1; }; }
52445     fi
52446
52447     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52448         { { 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
52449 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;}
52450    { (exit 1); exit 1; }; }
52451     fi
52452
52453
52454 if test $GCC_PCH = 1
52455 then
52456     if test "$wx_cv_gcc_pch_bug" = yes; then
52457         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52458 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52459         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52460 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52461         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52462 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52463     fi
52464
52465     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52466 fi
52467
52468
52469 if test "$wxUSE_MAC" = 1 ; then
52470     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52471         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52472         mv temp bk-deps
52473         chmod +x bk-deps
52474     fi
52475 fi
52476
52477 if test "$wxUSE_SHARED" = "yes"; then
52478
52479                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
52480     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
52481
52482                 case "${host}" in
52483       *-pc-os2_emx | *-pc-os2-emx )
52484         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52485         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52486         cp -p ${srcdir}/src/os2/dllnames.sh .
52487         cp -p ${srcdir}/src/os2/dllar.sh .
52488       ;;
52489     esac
52490 else
52491
52492         EXE_LINKER="$CXX -o"
52493
52494 fi
52495 if test "$wxUSE_OMF" = "yes"; then
52496     case "${host}" in
52497       *-pc-os2_emx | *-pc-os2-emx )
52498         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52499         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52500         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52501       ;;
52502     esac
52503 fi
52504
52505 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52506
52507
52508 case "${host}" in
52509     *-*-solaris2* )
52510                         if "$GCC" = yes; then
52511             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52512             LIBS=`echo $LIBS | sed 's/-mt//'`
52513             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52514         fi
52515         ;;
52516
52517     *-*-linux* )
52518                         if test "x$SUNCXX" = xyes; then
52519             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52520             LIBS=`echo $LIBS | sed 's/-pthread//'`
52521             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52522         fi
52523         ;;
52524 esac
52525
52526 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52527 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52528
52529 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52530
52531
52532
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52592 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52593 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52594 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52595   echo $ECHO_N "(cached) $ECHO_C" >&6
52596 else
52597   cat >conftest.make <<\_ACEOF
52598 SHELL = /bin/sh
52599 all:
52600         @echo '@@@%%%=$(MAKE)=@@@%%%'
52601 _ACEOF
52602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52604   *@@@%%%=?*=@@@%%%*)
52605     eval ac_cv_prog_make_${ac_make}_set=yes;;
52606   *)
52607     eval ac_cv_prog_make_${ac_make}_set=no;;
52608 esac
52609 rm -f conftest.make
52610 fi
52611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52612   { echo "$as_me:$LINENO: result: yes" >&5
52613 echo "${ECHO_T}yes" >&6; }
52614   SET_MAKE=
52615 else
52616   { echo "$as_me:$LINENO: result: no" >&5
52617 echo "${ECHO_T}no" >&6; }
52618   SET_MAKE="MAKE=${MAKE-make}"
52619 fi
52620
52621
52622
52623 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52624
52625
52626 if test "$USE_WIN32" = 1; then
52627     ac_config_commands="$ac_config_commands
52628             rcdefs.h
52629         "
52630
52631 fi
52632
52633 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52634
52635
52636 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52637
52638
52639 if test "$wx_cv_version_script" = "yes"; then
52640     ac_config_files="$ac_config_files version-script"
52641
52642 fi
52643 ac_config_files="$ac_config_files Makefile"
52644
52645
52646 ac_config_commands="$ac_config_commands wx-config"
52647
52648
52649
52650 if test "$wxWITH_SUBDIRS" != "no"; then
52651 if test "$wxUSE_GUI" = "yes"; then
52652     SUBDIRS="samples demos utils"
52653 else         SUBDIRS="samples utils"
52654 fi
52655
52656
52657
52658 # Check whether --with-cppunit-prefix was given.
52659 if test "${with_cppunit_prefix+set}" = set; then
52660   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52661 else
52662   cppunit_config_prefix=""
52663 fi
52664
52665
52666 # Check whether --with-cppunit-exec-prefix was given.
52667 if test "${with_cppunit_exec_prefix+set}" = set; then
52668   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52669 else
52670   cppunit_config_exec_prefix=""
52671 fi
52672
52673
52674   if test x$cppunit_config_exec_prefix != x ; then
52675      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52676      if test x${CPPUNIT_CONFIG+set} != xset ; then
52677         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52678      fi
52679   fi
52680   if test x$cppunit_config_prefix != x ; then
52681      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52682      if test x${CPPUNIT_CONFIG+set} != xset ; then
52683         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52684      fi
52685   fi
52686
52687   # Extract the first word of "cppunit-config", so it can be a program name with args.
52688 set dummy cppunit-config; ac_word=$2
52689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52691 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52692   echo $ECHO_N "(cached) $ECHO_C" >&6
52693 else
52694   case $CPPUNIT_CONFIG in
52695   [\\/]* | ?:[\\/]*)
52696   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52697   ;;
52698   *)
52699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52700 for as_dir in $PATH
52701 do
52702   IFS=$as_save_IFS
52703   test -z "$as_dir" && as_dir=.
52704   for ac_exec_ext in '' $ac_executable_extensions; do
52705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52706     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52708     break 2
52709   fi
52710 done
52711 done
52712 IFS=$as_save_IFS
52713
52714   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52715   ;;
52716 esac
52717 fi
52718 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52719 if test -n "$CPPUNIT_CONFIG"; then
52720   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52721 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52722 else
52723   { echo "$as_me:$LINENO: result: no" >&5
52724 echo "${ECHO_T}no" >&6; }
52725 fi
52726
52727
52728   cppunit_version_min=1.8.0
52729
52730   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52731 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52732   no_cppunit=""
52733   if test "$CPPUNIT_CONFIG" = "no" ; then
52734     { echo "$as_me:$LINENO: result: no" >&5
52735 echo "${ECHO_T}no" >&6; }
52736     no_cppunit=yes
52737   else
52738     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52739     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52740     cppunit_version=`$CPPUNIT_CONFIG --version`
52741
52742     cppunit_major_version=`echo $cppunit_version | \
52743            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52744     cppunit_minor_version=`echo $cppunit_version | \
52745            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52746     cppunit_micro_version=`echo $cppunit_version | \
52747            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52748
52749     cppunit_major_min=`echo $cppunit_version_min | \
52750            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52751     cppunit_minor_min=`echo $cppunit_version_min | \
52752            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52753     cppunit_micro_min=`echo $cppunit_version_min | \
52754            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52755
52756     cppunit_version_proper=`expr \
52757         $cppunit_major_version \> $cppunit_major_min \| \
52758         $cppunit_major_version \= $cppunit_major_min \& \
52759         $cppunit_minor_version \> $cppunit_minor_min \| \
52760         $cppunit_major_version \= $cppunit_major_min \& \
52761         $cppunit_minor_version \= $cppunit_minor_min \& \
52762         $cppunit_micro_version \>= $cppunit_micro_min `
52763
52764     if test "$cppunit_version_proper" = "1" ; then
52765       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52766 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52767     else
52768       { echo "$as_me:$LINENO: result: no" >&5
52769 echo "${ECHO_T}no" >&6; }
52770       no_cppunit=yes
52771     fi
52772   fi
52773
52774   if test "x$no_cppunit" = x ; then
52775      SUBDIRS="$SUBDIRS tests"
52776   else
52777      CPPUNIT_CFLAGS=""
52778      CPPUNIT_LIBS=""
52779      :
52780   fi
52781
52782
52783
52784
52785
52786 for subdir in `echo $SUBDIRS`; do
52787     if test -d ${srcdir}/${subdir} ; then
52788         if test "$wxUSE_GUI" = "yes"; then
52789             if test ${subdir} = "samples"; then
52790                                                 makefiles="samples/Makefile.in $makefiles"
52791                 for sample in `echo $SAMPLES_SUBDIRS`; do
52792                     if test -d $srcdir/samples/$sample; then
52793                         makefiles="samples/$sample/Makefile.in $makefiles"
52794                     fi
52795                 done
52796             else
52797                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
52798                 eval "disabled=\$$disabled_var"
52799                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52800                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52801             fi
52802         else                                     if test ${subdir} = "samples"; then
52803                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52804             elif test ${subdir} = "utils"; then
52805                 makefiles=""
52806                 for util in HelpGen tex2rtf ; do
52807                     if test -d $srcdir/utils/$util ; then
52808                         makefiles="utils/$util/Makefile.in \
52809                                    utils/$util/src/Makefile.in \
52810                                    $makefiles"
52811                     fi
52812                 done
52813             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52814             fi
52815         fi
52816
52817         for mkin in $makefiles ; do
52818             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52819             ac_config_files="$ac_config_files $mk"
52820
52821         done
52822     fi
52823 done
52824 fi
52825 cat >confcache <<\_ACEOF
52826 # This file is a shell script that caches the results of configure
52827 # tests run on this system so they can be shared between configure
52828 # scripts and configure runs, see configure's option --config-cache.
52829 # It is not useful on other systems.  If it contains results you don't
52830 # want to keep, you may remove or edit it.
52831 #
52832 # config.status only pays attention to the cache file if you give it
52833 # the --recheck option to rerun configure.
52834 #
52835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52837 # following values.
52838
52839 _ACEOF
52840
52841 # The following way of writing the cache mishandles newlines in values,
52842 # but we know of no workaround that is simple, portable, and efficient.
52843 # So, we kill variables containing newlines.
52844 # Ultrix sh set writes to stderr and can't be redirected directly,
52845 # and sets the high bit in the cache file unless we assign to the vars.
52846 (
52847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52848     eval ac_val=\$$ac_var
52849     case $ac_val in #(
52850     *${as_nl}*)
52851       case $ac_var in #(
52852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52854       esac
52855       case $ac_var in #(
52856       _ | IFS | as_nl) ;; #(
52857       *) $as_unset $ac_var ;;
52858       esac ;;
52859     esac
52860   done
52861
52862   (set) 2>&1 |
52863     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52864     *${as_nl}ac_space=\ *)
52865       # `set' does not quote correctly, so add quotes (double-quote
52866       # substitution turns \\\\ into \\, and sed turns \\ into \).
52867       sed -n \
52868         "s/'/'\\\\''/g;
52869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52870       ;; #(
52871     *)
52872       # `set' quotes correctly as required by POSIX, so do not add quotes.
52873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52874       ;;
52875     esac |
52876     sort
52877 ) |
52878   sed '
52879      /^ac_cv_env_/b end
52880      t clear
52881      :clear
52882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52883      t end
52884      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52885      :end' >>confcache
52886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52887   if test -w "$cache_file"; then
52888     test "x$cache_file" != "x/dev/null" &&
52889       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52890 echo "$as_me: updating cache $cache_file" >&6;}
52891     cat confcache >$cache_file
52892   else
52893     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52895   fi
52896 fi
52897 rm -f confcache
52898
52899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52900 # Let make expand exec_prefix.
52901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52902
52903 DEFS=-DHAVE_CONFIG_H
52904
52905 ac_libobjs=
52906 ac_ltlibobjs=
52907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52908   # 1. Remove the extension, and $U if already installed.
52909   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52910   ac_i=`echo "$ac_i" | sed "$ac_script"`
52911   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52912   #    will be set to the directory where LIBOBJS objects are built.
52913   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52914   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52915 done
52916 LIBOBJS=$ac_libobjs
52917
52918 LTLIBOBJS=$ac_ltlibobjs
52919
52920
52921
52922 : ${CONFIG_STATUS=./config.status}
52923 ac_clean_files_save=$ac_clean_files
52924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52925 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52926 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52927 cat >$CONFIG_STATUS <<_ACEOF
52928 #! $SHELL
52929 # Generated by $as_me.
52930 # Run this file to recreate the current configuration.
52931 # Compiler output produced by configure, useful for debugging
52932 # configure, is in config.log if it exists.
52933
52934 debug=false
52935 ac_cs_recheck=false
52936 ac_cs_silent=false
52937 SHELL=\${CONFIG_SHELL-$SHELL}
52938 _ACEOF
52939
52940 cat >>$CONFIG_STATUS <<\_ACEOF
52941 ## --------------------- ##
52942 ## M4sh Initialization.  ##
52943 ## --------------------- ##
52944
52945 # Be more Bourne compatible
52946 DUALCASE=1; export DUALCASE # for MKS sh
52947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52948   emulate sh
52949   NULLCMD=:
52950   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52951   # is contrary to our usage.  Disable this feature.
52952   alias -g '${1+"$@"}'='"$@"'
52953   setopt NO_GLOB_SUBST
52954 else
52955   case `(set -o) 2>/dev/null` in
52956   *posix*) set -o posix ;;
52957 esac
52958
52959 fi
52960
52961
52962
52963
52964 # PATH needs CR
52965 # Avoid depending upon Character Ranges.
52966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52969 as_cr_digits='0123456789'
52970 as_cr_alnum=$as_cr_Letters$as_cr_digits
52971
52972 # The user is always right.
52973 if test "${PATH_SEPARATOR+set}" != set; then
52974   echo "#! /bin/sh" >conf$$.sh
52975   echo  "exit 0"   >>conf$$.sh
52976   chmod +x conf$$.sh
52977   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52978     PATH_SEPARATOR=';'
52979   else
52980     PATH_SEPARATOR=:
52981   fi
52982   rm -f conf$$.sh
52983 fi
52984
52985 # Support unset when possible.
52986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52987   as_unset=unset
52988 else
52989   as_unset=false
52990 fi
52991
52992
52993 # IFS
52994 # We need space, tab and new line, in precisely that order.  Quoting is
52995 # there to prevent editors from complaining about space-tab.
52996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52997 # splitting by setting IFS to empty value.)
52998 as_nl='
52999 '
53000 IFS=" ""        $as_nl"
53001
53002 # Find who we are.  Look in the path if we contain no directory separator.
53003 case $0 in
53004   *[\\/]* ) as_myself=$0 ;;
53005   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53006 for as_dir in $PATH
53007 do
53008   IFS=$as_save_IFS
53009   test -z "$as_dir" && as_dir=.
53010   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53011 done
53012 IFS=$as_save_IFS
53013
53014      ;;
53015 esac
53016 # We did not find ourselves, most probably we were run as `sh COMMAND'
53017 # in which case we are not to be found in the path.
53018 if test "x$as_myself" = x; then
53019   as_myself=$0
53020 fi
53021 if test ! -f "$as_myself"; then
53022   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53023   { (exit 1); exit 1; }
53024 fi
53025
53026 # Work around bugs in pre-3.0 UWIN ksh.
53027 for as_var in ENV MAIL MAILPATH
53028 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53029 done
53030 PS1='$ '
53031 PS2='> '
53032 PS4='+ '
53033
53034 # NLS nuisances.
53035 for as_var in \
53036   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53037   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53038   LC_TELEPHONE LC_TIME
53039 do
53040   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53041     eval $as_var=C; export $as_var
53042   else
53043     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53044   fi
53045 done
53046
53047 # Required to use basename.
53048 if expr a : '\(a\)' >/dev/null 2>&1 &&
53049    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53050   as_expr=expr
53051 else
53052   as_expr=false
53053 fi
53054
53055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53056   as_basename=basename
53057 else
53058   as_basename=false
53059 fi
53060
53061
53062 # Name of the executable.
53063 as_me=`$as_basename -- "$0" ||
53064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53065          X"$0" : 'X\(//\)$' \| \
53066          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53067 echo X/"$0" |
53068     sed '/^.*\/\([^/][^/]*\)\/*$/{
53069             s//\1/
53070             q
53071           }
53072           /^X\/\(\/\/\)$/{
53073             s//\1/
53074             q
53075           }
53076           /^X\/\(\/\).*/{
53077             s//\1/
53078             q
53079           }
53080           s/.*/./; q'`
53081
53082 # CDPATH.
53083 $as_unset CDPATH
53084
53085
53086
53087   as_lineno_1=$LINENO
53088   as_lineno_2=$LINENO
53089   test "x$as_lineno_1" != "x$as_lineno_2" &&
53090   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53091
53092   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53093   # uniformly replaced by the line number.  The first 'sed' inserts a
53094   # line-number line after each line using $LINENO; the second 'sed'
53095   # does the real work.  The second script uses 'N' to pair each
53096   # line-number line with the line containing $LINENO, and appends
53097   # trailing '-' during substitution so that $LINENO is not a special
53098   # case at line end.
53099   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53100   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53101   # E. McMahon (1931-1989) for sed's syntax.  :-)
53102   sed -n '
53103     p
53104     /[$]LINENO/=
53105   ' <$as_myself |
53106     sed '
53107       s/[$]LINENO.*/&-/
53108       t lineno
53109       b
53110       :lineno
53111       N
53112       :loop
53113       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53114       t loop
53115       s/-\n.*//
53116     ' >$as_me.lineno &&
53117   chmod +x "$as_me.lineno" ||
53118     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53119    { (exit 1); exit 1; }; }
53120
53121   # Don't try to exec as it changes $[0], causing all sort of problems
53122   # (the dirname of $[0] is not the place where we might find the
53123   # original and so on.  Autoconf is especially sensitive to this).
53124   . "./$as_me.lineno"
53125   # Exit status is that of the last command.
53126   exit
53127 }
53128
53129
53130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53131   as_dirname=dirname
53132 else
53133   as_dirname=false
53134 fi
53135
53136 ECHO_C= ECHO_N= ECHO_T=
53137 case `echo -n x` in
53138 -n*)
53139   case `echo 'x\c'` in
53140   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53141   *)   ECHO_C='\c';;
53142   esac;;
53143 *)
53144   ECHO_N='-n';;
53145 esac
53146
53147 if expr a : '\(a\)' >/dev/null 2>&1 &&
53148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53149   as_expr=expr
53150 else
53151   as_expr=false
53152 fi
53153
53154 rm -f conf$$ conf$$.exe conf$$.file
53155 if test -d conf$$.dir; then
53156   rm -f conf$$.dir/conf$$.file
53157 else
53158   rm -f conf$$.dir
53159   mkdir conf$$.dir
53160 fi
53161 echo >conf$$.file
53162 if ln -s conf$$.file conf$$ 2>/dev/null; then
53163   as_ln_s='ln -s'
53164   # ... but there are two gotchas:
53165   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53166   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53167   # In both cases, we have to default to `cp -p'.
53168   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53169     as_ln_s='cp -p'
53170 elif ln conf$$.file conf$$ 2>/dev/null; then
53171   as_ln_s=ln
53172 else
53173   as_ln_s='cp -p'
53174 fi
53175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53176 rmdir conf$$.dir 2>/dev/null
53177
53178 if mkdir -p . 2>/dev/null; then
53179   as_mkdir_p=:
53180 else
53181   test -d ./-p && rmdir ./-p
53182   as_mkdir_p=false
53183 fi
53184
53185 if test -x / >/dev/null 2>&1; then
53186   as_test_x='test -x'
53187 else
53188   if ls -dL / >/dev/null 2>&1; then
53189     as_ls_L_option=L
53190   else
53191     as_ls_L_option=
53192   fi
53193   as_test_x='
53194     eval sh -c '\''
53195       if test -d "$1"; then
53196         test -d "$1/.";
53197       else
53198         case $1 in
53199         -*)set "./$1";;
53200         esac;
53201         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53202         ???[sx]*):;;*)false;;esac;fi
53203     '\'' sh
53204   '
53205 fi
53206 as_executable_p=$as_test_x
53207
53208 # Sed expression to map a string onto a valid CPP name.
53209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53210
53211 # Sed expression to map a string onto a valid variable name.
53212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53213
53214
53215 exec 6>&1
53216
53217 # Save the log message, to keep $[0] and so on meaningful, and to
53218 # report actual input values of CONFIG_FILES etc. instead of their
53219 # values after options handling.
53220 ac_log="
53221 This file was extended by wxWidgets $as_me 2.9.0, which was
53222 generated by GNU Autoconf 2.61.  Invocation command line was
53223
53224   CONFIG_FILES    = $CONFIG_FILES
53225   CONFIG_HEADERS  = $CONFIG_HEADERS
53226   CONFIG_LINKS    = $CONFIG_LINKS
53227   CONFIG_COMMANDS = $CONFIG_COMMANDS
53228   $ $0 $@
53229
53230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53231 "
53232
53233 _ACEOF
53234
53235 cat >>$CONFIG_STATUS <<_ACEOF
53236 # Files that config.status was made for.
53237 config_files="$ac_config_files"
53238 config_headers="$ac_config_headers"
53239 config_commands="$ac_config_commands"
53240
53241 _ACEOF
53242
53243 cat >>$CONFIG_STATUS <<\_ACEOF
53244 ac_cs_usage="\
53245 \`$as_me' instantiates files from templates according to the
53246 current configuration.
53247
53248 Usage: $0 [OPTIONS] [FILE]...
53249
53250   -h, --help       print this help, then exit
53251   -V, --version    print version number and configuration settings, then exit
53252   -q, --quiet      do not print progress messages
53253   -d, --debug      don't remove temporary files
53254       --recheck    update $as_me by reconfiguring in the same conditions
53255   --file=FILE[:TEMPLATE]
53256                    instantiate the configuration file FILE
53257   --header=FILE[:TEMPLATE]
53258                    instantiate the configuration header FILE
53259
53260 Configuration files:
53261 $config_files
53262
53263 Configuration headers:
53264 $config_headers
53265
53266 Configuration commands:
53267 $config_commands
53268
53269 Report bugs to <bug-autoconf@gnu.org>."
53270
53271 _ACEOF
53272 cat >>$CONFIG_STATUS <<_ACEOF
53273 ac_cs_version="\\
53274 wxWidgets config.status 2.9.0
53275 configured by $0, generated by GNU Autoconf 2.61,
53276   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53277
53278 Copyright (C) 2006 Free Software Foundation, Inc.
53279 This config.status script is free software; the Free Software Foundation
53280 gives unlimited permission to copy, distribute and modify it."
53281
53282 ac_pwd='$ac_pwd'
53283 srcdir='$srcdir'
53284 INSTALL='$INSTALL'
53285 _ACEOF
53286
53287 cat >>$CONFIG_STATUS <<\_ACEOF
53288 # If no file are specified by the user, then we need to provide default
53289 # value.  By we need to know if files were specified by the user.
53290 ac_need_defaults=:
53291 while test $# != 0
53292 do
53293   case $1 in
53294   --*=*)
53295     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53296     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53297     ac_shift=:
53298     ;;
53299   *)
53300     ac_option=$1
53301     ac_optarg=$2
53302     ac_shift=shift
53303     ;;
53304   esac
53305
53306   case $ac_option in
53307   # Handling of the options.
53308   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53309     ac_cs_recheck=: ;;
53310   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53311     echo "$ac_cs_version"; exit ;;
53312   --debug | --debu | --deb | --de | --d | -d )
53313     debug=: ;;
53314   --file | --fil | --fi | --f )
53315     $ac_shift
53316     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53317     ac_need_defaults=false;;
53318   --header | --heade | --head | --hea )
53319     $ac_shift
53320     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53321     ac_need_defaults=false;;
53322   --he | --h)
53323     # Conflict between --help and --header
53324     { echo "$as_me: error: ambiguous option: $1
53325 Try \`$0 --help' for more information." >&2
53326    { (exit 1); exit 1; }; };;
53327   --help | --hel | -h )
53328     echo "$ac_cs_usage"; exit ;;
53329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53331     ac_cs_silent=: ;;
53332
53333   # This is an error.
53334   -*) { echo "$as_me: error: unrecognized option: $1
53335 Try \`$0 --help' for more information." >&2
53336    { (exit 1); exit 1; }; } ;;
53337
53338   *) ac_config_targets="$ac_config_targets $1"
53339      ac_need_defaults=false ;;
53340
53341   esac
53342   shift
53343 done
53344
53345 ac_configure_extra_args=
53346
53347 if $ac_cs_silent; then
53348   exec 6>/dev/null
53349   ac_configure_extra_args="$ac_configure_extra_args --silent"
53350 fi
53351
53352 _ACEOF
53353 cat >>$CONFIG_STATUS <<_ACEOF
53354 if \$ac_cs_recheck; then
53355   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53356   CONFIG_SHELL=$SHELL
53357   export CONFIG_SHELL
53358   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53359 fi
53360
53361 _ACEOF
53362 cat >>$CONFIG_STATUS <<\_ACEOF
53363 exec 5>>config.log
53364 {
53365   echo
53366   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53367 ## Running $as_me. ##
53368 _ASBOX
53369   echo "$ac_log"
53370 } >&5
53371
53372 _ACEOF
53373 cat >>$CONFIG_STATUS <<_ACEOF
53374 #
53375 # INIT-COMMANDS
53376 #
53377
53378             CPP="$CPP"
53379             infile="$srcdir/include/wx/msw/genrcdefs.h"
53380             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53381
53382
53383  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53384  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53385  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53386                      LN_S="${LN_S}"
53387
53388
53389 _ACEOF
53390
53391 cat >>$CONFIG_STATUS <<\_ACEOF
53392
53393 # Handling of arguments.
53394 for ac_config_target in $ac_config_targets
53395 do
53396   case $ac_config_target in
53397     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53398     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53399     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53400     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53401     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53402     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53403     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53404     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53405
53406   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53408    { (exit 1); exit 1; }; };;
53409   esac
53410 done
53411
53412
53413 # If the user did not use the arguments to specify the items to instantiate,
53414 # then the envvar interface is used.  Set only those that are not.
53415 # We use the long form for the default assignment because of an extremely
53416 # bizarre bug on SunOS 4.1.3.
53417 if $ac_need_defaults; then
53418   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53419   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53420   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53421 fi
53422
53423 # Have a temporary directory for convenience.  Make it in the build tree
53424 # simply because there is no reason against having it here, and in addition,
53425 # creating and moving files from /tmp can sometimes cause problems.
53426 # Hook for its removal unless debugging.
53427 # Note that there is a small window in which the directory will not be cleaned:
53428 # after its creation but before its name has been assigned to `$tmp'.
53429 $debug ||
53430 {
53431   tmp=
53432   trap 'exit_status=$?
53433   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53434 ' 0
53435   trap '{ (exit 1); exit 1; }' 1 2 13 15
53436 }
53437 # Create a (secure) tmp directory for tmp files.
53438
53439 {
53440   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53441   test -n "$tmp" && test -d "$tmp"
53442 }  ||
53443 {
53444   tmp=./conf$$-$RANDOM
53445   (umask 077 && mkdir "$tmp")
53446 } ||
53447 {
53448    echo "$me: cannot create a temporary directory in ." >&2
53449    { (exit 1); exit 1; }
53450 }
53451
53452 #
53453 # Set up the sed scripts for CONFIG_FILES section.
53454 #
53455
53456 # No need to generate the scripts if there are no CONFIG_FILES.
53457 # This happens for instance when ./config.status config.h
53458 if test -n "$CONFIG_FILES"; then
53459
53460 _ACEOF
53461
53462
53463
53464 ac_delim='%!_!# '
53465 for ac_last_try in false false false false false :; do
53466   cat >conf$$subs.sed <<_ACEOF
53467 SHELL!$SHELL$ac_delim
53468 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53469 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53470 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53471 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53472 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53473 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53474 exec_prefix!$exec_prefix$ac_delim
53475 prefix!$prefix$ac_delim
53476 program_transform_name!$program_transform_name$ac_delim
53477 bindir!$bindir$ac_delim
53478 sbindir!$sbindir$ac_delim
53479 libexecdir!$libexecdir$ac_delim
53480 datarootdir!$datarootdir$ac_delim
53481 datadir!$datadir$ac_delim
53482 sysconfdir!$sysconfdir$ac_delim
53483 sharedstatedir!$sharedstatedir$ac_delim
53484 localstatedir!$localstatedir$ac_delim
53485 includedir!$includedir$ac_delim
53486 oldincludedir!$oldincludedir$ac_delim
53487 docdir!$docdir$ac_delim
53488 infodir!$infodir$ac_delim
53489 htmldir!$htmldir$ac_delim
53490 dvidir!$dvidir$ac_delim
53491 pdfdir!$pdfdir$ac_delim
53492 psdir!$psdir$ac_delim
53493 libdir!$libdir$ac_delim
53494 localedir!$localedir$ac_delim
53495 mandir!$mandir$ac_delim
53496 DEFS!$DEFS$ac_delim
53497 ECHO_C!$ECHO_C$ac_delim
53498 ECHO_N!$ECHO_N$ac_delim
53499 ECHO_T!$ECHO_T$ac_delim
53500 LIBS!$LIBS$ac_delim
53501 build_alias!$build_alias$ac_delim
53502 host_alias!$host_alias$ac_delim
53503 target_alias!$target_alias$ac_delim
53504 build!$build$ac_delim
53505 build_cpu!$build_cpu$ac_delim
53506 build_vendor!$build_vendor$ac_delim
53507 build_os!$build_os$ac_delim
53508 host!$host$ac_delim
53509 host_cpu!$host_cpu$ac_delim
53510 host_vendor!$host_vendor$ac_delim
53511 host_os!$host_os$ac_delim
53512 target!$target$ac_delim
53513 target_cpu!$target_cpu$ac_delim
53514 target_vendor!$target_vendor$ac_delim
53515 target_os!$target_os$ac_delim
53516 wx_top_builddir!$wx_top_builddir$ac_delim
53517 CC!$CC$ac_delim
53518 CFLAGS!$CFLAGS$ac_delim
53519 LDFLAGS!$LDFLAGS$ac_delim
53520 CPPFLAGS!$CPPFLAGS$ac_delim
53521 ac_ct_CC!$ac_ct_CC$ac_delim
53522 EXEEXT!$EXEEXT$ac_delim
53523 OBJEXT!$OBJEXT$ac_delim
53524 CPP!$CPP$ac_delim
53525 GREP!$GREP$ac_delim
53526 EGREP!$EGREP$ac_delim
53527 CXX!$CXX$ac_delim
53528 CXXFLAGS!$CXXFLAGS$ac_delim
53529 ac_ct_CXX!$ac_ct_CXX$ac_delim
53530 RANLIB!$RANLIB$ac_delim
53531 AR!$AR$ac_delim
53532 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53533 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53534 INSTALL_DATA!$INSTALL_DATA$ac_delim
53535 STRIP!$STRIP$ac_delim
53536 WINDRES!$WINDRES$ac_delim
53537 DLLTOOL!$DLLTOOL$ac_delim
53538 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53539 LN_S!$LN_S$ac_delim
53540 subdirs!$subdirs$ac_delim
53541 PKG_CONFIG!$PKG_CONFIG$ac_delim
53542 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53543 GTK_LIBS!$GTK_LIBS$ac_delim
53544 GTK_CONFIG!$GTK_CONFIG$ac_delim
53545 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53546 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53547 XMKMF!$XMKMF$ac_delim
53548 X_CFLAGS!$X_CFLAGS$ac_delim
53549 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53550 X_LIBS!$X_LIBS$ac_delim
53551 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53552 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53553 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53554 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53555 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53556 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53557 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53558 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53559 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53560 REZ!$REZ$ac_delim
53561 DEREZ!$DEREZ$ac_delim
53562 SETFILE!$SETFILE$ac_delim
53563 LIBICONV!$LIBICONV$ac_delim
53564 _ACEOF
53565
53566   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53567     break
53568   elif $ac_last_try; then
53569     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53570 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53571    { (exit 1); exit 1; }; }
53572   else
53573     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53574   fi
53575 done
53576
53577 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53578 if test -n "$ac_eof"; then
53579   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53580   ac_eof=`expr $ac_eof + 1`
53581 fi
53582
53583 cat >>$CONFIG_STATUS <<_ACEOF
53584 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53586 _ACEOF
53587 sed '
53588 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53589 s/^/s,@/; s/!/@,|#_!!_#|/
53590 :n
53591 t n
53592 s/'"$ac_delim"'$/,g/; t
53593 s/$/\\/; p
53594 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53595 ' >>$CONFIG_STATUS <conf$$subs.sed
53596 rm -f conf$$subs.sed
53597 cat >>$CONFIG_STATUS <<_ACEOF
53598 CEOF$ac_eof
53599 _ACEOF
53600
53601
53602 ac_delim='%!_!# '
53603 for ac_last_try in false false false false false :; do
53604   cat >conf$$subs.sed <<_ACEOF
53605 SDL_CONFIG!$SDL_CONFIG$ac_delim
53606 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53607 SDL_LIBS!$SDL_LIBS$ac_delim
53608 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53609 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53610 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53611 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53612 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53613 HILDON_LIBS!$HILDON_LIBS$ac_delim
53614 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53615 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53616 GST_CFLAGS!$GST_CFLAGS$ac_delim
53617 GST_LIBS!$GST_LIBS$ac_delim
53618 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53619 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53620 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53621 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53622 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53623 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53624 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53625 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
53626 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53627 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53628 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53629 VENDOR!$VENDOR$ac_delim
53630 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53631 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53632 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53633 WXUNIV!$WXUNIV$ac_delim
53634 MONOLITHIC!$MONOLITHIC$ac_delim
53635 USE_PLUGINS!$USE_PLUGINS$ac_delim
53636 CXXWARNINGS!$CXXWARNINGS$ac_delim
53637 EXTRALIBS!$EXTRALIBS$ac_delim
53638 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53639 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53640 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
53641 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53642 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53643 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53644 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53645 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53646 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53647 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53648 UNICODE!$UNICODE$ac_delim
53649 BUILD!$BUILD$ac_delim
53650 DEBUG_INFO!$DEBUG_INFO$ac_delim
53651 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53652 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53653 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53654 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53655 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53656 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53657 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53658 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53659 SET_MAKE!$SET_MAKE$ac_delim
53660 MAKE_SET!$MAKE_SET$ac_delim
53661 AROPTIONS!$AROPTIONS$ac_delim
53662 NM!$NM$ac_delim
53663 INSTALL_DIR!$INSTALL_DIR$ac_delim
53664 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53665 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53666 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53667 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53668 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53669 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53670 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53671 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53672 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53673 SO_SUFFIX!$SO_SUFFIX$ac_delim
53674 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53675 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53676 LIBPREFIX!$LIBPREFIX$ac_delim
53677 LIBEXT!$LIBEXT$ac_delim
53678 DLLPREFIX!$DLLPREFIX$ac_delim
53679 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53680 dlldir!$dlldir$ac_delim
53681 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53682 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53683 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53684 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53685 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53686 PIC_FLAG!$PIC_FLAG$ac_delim
53687 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53688 USE_SOVERSION!$USE_SOVERSION$ac_delim
53689 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53690 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53691 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53692 USE_MACVERSION!$USE_MACVERSION$ac_delim
53693 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53694 SONAME_FLAG!$SONAME_FLAG$ac_delim
53695 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53696 BK_DEPS!$BK_DEPS$ac_delim
53697 GCC_PCH!$GCC_PCH$ac_delim
53698 ICC_PCH!$ICC_PCH$ac_delim
53699 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53700 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53701 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53702 _ACEOF
53703
53704   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53705     break
53706   elif $ac_last_try; then
53707     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53708 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53709    { (exit 1); exit 1; }; }
53710   else
53711     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53712   fi
53713 done
53714
53715 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53716 if test -n "$ac_eof"; then
53717   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53718   ac_eof=`expr $ac_eof + 1`
53719 fi
53720
53721 cat >>$CONFIG_STATUS <<_ACEOF
53722 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53724 _ACEOF
53725 sed '
53726 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53727 s/^/s,@/; s/!/@,|#_!!_#|/
53728 :n
53729 t n
53730 s/'"$ac_delim"'$/,g/; t
53731 s/$/\\/; p
53732 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53733 ' >>$CONFIG_STATUS <conf$$subs.sed
53734 rm -f conf$$subs.sed
53735 cat >>$CONFIG_STATUS <<_ACEOF
53736 CEOF$ac_eof
53737 _ACEOF
53738
53739
53740 ac_delim='%!_!# '
53741 for ac_last_try in false false false false false :; do
53742   cat >conf$$subs.sed <<_ACEOF
53743 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53744 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53745 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53746 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53747 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53748 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53749 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53750 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53751 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53752 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53753 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53754 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53755 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53756 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53757 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53758 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53759 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53760 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53761 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53762 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53763 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
53764 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53765 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
53766 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53767 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53768 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53769 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53770 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53771 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53772 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53773 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53774 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
53775 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53776 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
53777 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53778 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53779 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53780 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53781 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53782 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53783 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
53784 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53785 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53786 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
53787 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53788 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53789 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53790 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53791 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53792 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53793 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53794 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53795 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53796 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53797 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53798 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53799 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53800 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53801 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53802 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53803 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53804 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53805 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53806 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53807 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53808 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53809 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53810 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53811 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53812 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53813 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53814 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53815 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53816 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53817 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53818 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53819 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53820 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53821 COND_SHARED_0!$COND_SHARED_0$ac_delim
53822 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53823 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53824 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53825 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53826 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53827 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53828 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53829 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53830 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
53831 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
53832 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
53833 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
53834 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
53835 COND_SHARED_1!$COND_SHARED_1$ac_delim
53836 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53837 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
53838 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53839 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53840 _ACEOF
53841
53842   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53843     break
53844   elif $ac_last_try; then
53845     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53847    { (exit 1); exit 1; }; }
53848   else
53849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53850   fi
53851 done
53852
53853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53854 if test -n "$ac_eof"; then
53855   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53856   ac_eof=`expr $ac_eof + 1`
53857 fi
53858
53859 cat >>$CONFIG_STATUS <<_ACEOF
53860 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53862 _ACEOF
53863 sed '
53864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53865 s/^/s,@/; s/!/@,|#_!!_#|/
53866 :n
53867 t n
53868 s/'"$ac_delim"'$/,g/; t
53869 s/$/\\/; p
53870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53871 ' >>$CONFIG_STATUS <conf$$subs.sed
53872 rm -f conf$$subs.sed
53873 cat >>$CONFIG_STATUS <<_ACEOF
53874 CEOF$ac_eof
53875 _ACEOF
53876
53877
53878 ac_delim='%!_!# '
53879 for ac_last_try in false false false false false :; do
53880   cat >conf$$subs.sed <<_ACEOF
53881 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53882 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53883 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53884 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53885 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53886 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53887 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53888 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53889 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53890 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53891 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53892 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53893 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53894 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
53895 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
53896 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53897 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53898 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53899 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53900 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53901 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53902 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53903 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53904 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53905 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53906 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53907 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53908 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53909 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53910 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53911 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53912 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53913 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53914 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53915 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53916 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53917 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53918 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53919 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53920 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53921 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53922 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53923 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53924 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53925 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
53926 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53927 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53928 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53929 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53930 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53931 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
53932 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53933 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53934 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53935 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53936 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53937 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53938 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53939 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53940 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53941 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53942 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53943 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53944 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53945 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53946 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53947 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53948 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
53949 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53950 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53951 SHARED!$SHARED$ac_delim
53952 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53953 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53954 USE_GUI!$USE_GUI$ac_delim
53955 AFMINSTALL!$AFMINSTALL$ac_delim
53956 WIN32INSTALL!$WIN32INSTALL$ac_delim
53957 TOOLKIT!$TOOLKIT$ac_delim
53958 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53959 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53960 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53961 cross_compiling!$cross_compiling$ac_delim
53962 WIDGET_SET!$WIDGET_SET$ac_delim
53963 WX_RELEASE!$WX_RELEASE$ac_delim
53964 WX_VERSION!$WX_VERSION$ac_delim
53965 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53966 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53967 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
53968 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53969 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53970 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53971 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53972 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53973 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53974 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53975 EXE_LINKER!$EXE_LINKER$ac_delim
53976 GUIDIST!$GUIDIST$ac_delim
53977 DISTDIR!$DISTDIR$ac_delim
53978 _ACEOF
53979
53980   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53981     break
53982   elif $ac_last_try; then
53983     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53984 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53985    { (exit 1); exit 1; }; }
53986   else
53987     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53988   fi
53989 done
53990
53991 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53992 if test -n "$ac_eof"; then
53993   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53994   ac_eof=`expr $ac_eof + 1`
53995 fi
53996
53997 cat >>$CONFIG_STATUS <<_ACEOF
53998 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54000 _ACEOF
54001 sed '
54002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54003 s/^/s,@/; s/!/@,|#_!!_#|/
54004 :n
54005 t n
54006 s/'"$ac_delim"'$/,g/; t
54007 s/$/\\/; p
54008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54009 ' >>$CONFIG_STATUS <conf$$subs.sed
54010 rm -f conf$$subs.sed
54011 cat >>$CONFIG_STATUS <<_ACEOF
54012 CEOF$ac_eof
54013 _ACEOF
54014
54015
54016 ac_delim='%!_!# '
54017 for ac_last_try in false false false false false :; do
54018   cat >conf$$subs.sed <<_ACEOF
54019 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54020 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54021 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54022 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54023 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54024 RESCOMP!$RESCOMP$ac_delim
54025 RESFLAGS!$RESFLAGS$ac_delim
54026 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54027 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54028 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54029 LIBWXMACRES!$LIBWXMACRES$ac_delim
54030 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54031 MACSETFILE!$MACSETFILE$ac_delim
54032 GCC!$GCC$ac_delim
54033 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54034 LIBOBJS!$LIBOBJS$ac_delim
54035 LTLIBOBJS!$LTLIBOBJS$ac_delim
54036 _ACEOF
54037
54038   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54039     break
54040   elif $ac_last_try; then
54041     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54043    { (exit 1); exit 1; }; }
54044   else
54045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54046   fi
54047 done
54048
54049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54050 if test -n "$ac_eof"; then
54051   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54052   ac_eof=`expr $ac_eof + 1`
54053 fi
54054
54055 cat >>$CONFIG_STATUS <<_ACEOF
54056 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54058 _ACEOF
54059 sed '
54060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54061 s/^/s,@/; s/!/@,|#_!!_#|/
54062 :n
54063 t n
54064 s/'"$ac_delim"'$/,g/; t
54065 s/$/\\/; p
54066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54067 ' >>$CONFIG_STATUS <conf$$subs.sed
54068 rm -f conf$$subs.sed
54069 cat >>$CONFIG_STATUS <<_ACEOF
54070 :end
54071 s/|#_!!_#|//g
54072 CEOF$ac_eof
54073 _ACEOF
54074
54075
54076 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54077 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54078 # trailing colons and then remove the whole line if VPATH becomes empty
54079 # (actually we leave an empty line to preserve line numbers).
54080 if test "x$srcdir" = x.; then
54081   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54082 s/:*\$(srcdir):*/:/
54083 s/:*\${srcdir}:*/:/
54084 s/:*@srcdir@:*/:/
54085 s/^\([^=]*=[     ]*\):*/\1/
54086 s/:*$//
54087 s/^[^=]*=[       ]*$//
54088 }'
54089 fi
54090
54091 cat >>$CONFIG_STATUS <<\_ACEOF
54092 fi # test -n "$CONFIG_FILES"
54093
54094
54095 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54096 do
54097   case $ac_tag in
54098   :[FHLC]) ac_mode=$ac_tag; continue;;
54099   esac
54100   case $ac_mode$ac_tag in
54101   :[FHL]*:*);;
54102   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54103 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54104    { (exit 1); exit 1; }; };;
54105   :[FH]-) ac_tag=-:-;;
54106   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54107   esac
54108   ac_save_IFS=$IFS
54109   IFS=:
54110   set x $ac_tag
54111   IFS=$ac_save_IFS
54112   shift
54113   ac_file=$1
54114   shift
54115
54116   case $ac_mode in
54117   :L) ac_source=$1;;
54118   :[FH])
54119     ac_file_inputs=
54120     for ac_f
54121     do
54122       case $ac_f in
54123       -) ac_f="$tmp/stdin";;
54124       *) # Look for the file first in the build tree, then in the source tree
54125          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54126          # because $ac_f cannot contain `:'.
54127          test -f "$ac_f" ||
54128            case $ac_f in
54129            [\\/$]*) false;;
54130            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54131            esac ||
54132            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54133 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54134    { (exit 1); exit 1; }; };;
54135       esac
54136       ac_file_inputs="$ac_file_inputs $ac_f"
54137     done
54138
54139     # Let's still pretend it is `configure' which instantiates (i.e., don't
54140     # use $as_me), people would be surprised to read:
54141     #    /* config.h.  Generated by config.status.  */
54142     configure_input="Generated from "`IFS=:
54143           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54144     if test x"$ac_file" != x-; then
54145       configure_input="$ac_file.  $configure_input"
54146       { echo "$as_me:$LINENO: creating $ac_file" >&5
54147 echo "$as_me: creating $ac_file" >&6;}
54148     fi
54149
54150     case $ac_tag in
54151     *:-:* | *:-) cat >"$tmp/stdin";;
54152     esac
54153     ;;
54154   esac
54155
54156   ac_dir=`$as_dirname -- "$ac_file" ||
54157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54158          X"$ac_file" : 'X\(//\)[^/]' \| \
54159          X"$ac_file" : 'X\(//\)$' \| \
54160          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54161 echo X"$ac_file" |
54162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54163             s//\1/
54164             q
54165           }
54166           /^X\(\/\/\)[^/].*/{
54167             s//\1/
54168             q
54169           }
54170           /^X\(\/\/\)$/{
54171             s//\1/
54172             q
54173           }
54174           /^X\(\/\).*/{
54175             s//\1/
54176             q
54177           }
54178           s/.*/./; q'`
54179   { as_dir="$ac_dir"
54180   case $as_dir in #(
54181   -*) as_dir=./$as_dir;;
54182   esac
54183   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54184     as_dirs=
54185     while :; do
54186       case $as_dir in #(
54187       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54188       *) as_qdir=$as_dir;;
54189       esac
54190       as_dirs="'$as_qdir' $as_dirs"
54191       as_dir=`$as_dirname -- "$as_dir" ||
54192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54193          X"$as_dir" : 'X\(//\)[^/]' \| \
54194          X"$as_dir" : 'X\(//\)$' \| \
54195          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54196 echo X"$as_dir" |
54197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54198             s//\1/
54199             q
54200           }
54201           /^X\(\/\/\)[^/].*/{
54202             s//\1/
54203             q
54204           }
54205           /^X\(\/\/\)$/{
54206             s//\1/
54207             q
54208           }
54209           /^X\(\/\).*/{
54210             s//\1/
54211             q
54212           }
54213           s/.*/./; q'`
54214       test -d "$as_dir" && break
54215     done
54216     test -z "$as_dirs" || eval "mkdir $as_dirs"
54217   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54218 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54219    { (exit 1); exit 1; }; }; }
54220   ac_builddir=.
54221
54222 case "$ac_dir" in
54223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54224 *)
54225   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54226   # A ".." for each directory in $ac_dir_suffix.
54227   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54228   case $ac_top_builddir_sub in
54229   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54230   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54231   esac ;;
54232 esac
54233 ac_abs_top_builddir=$ac_pwd
54234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54235 # for backward compatibility:
54236 ac_top_builddir=$ac_top_build_prefix
54237
54238 case $srcdir in
54239   .)  # We are building in place.
54240     ac_srcdir=.
54241     ac_top_srcdir=$ac_top_builddir_sub
54242     ac_abs_top_srcdir=$ac_pwd ;;
54243   [\\/]* | ?:[\\/]* )  # Absolute name.
54244     ac_srcdir=$srcdir$ac_dir_suffix;
54245     ac_top_srcdir=$srcdir
54246     ac_abs_top_srcdir=$srcdir ;;
54247   *) # Relative name.
54248     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54249     ac_top_srcdir=$ac_top_build_prefix$srcdir
54250     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54251 esac
54252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54253
54254
54255   case $ac_mode in
54256   :F)
54257   #
54258   # CONFIG_FILE
54259   #
54260
54261   case $INSTALL in
54262   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54263   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54264   esac
54265 _ACEOF
54266
54267 cat >>$CONFIG_STATUS <<\_ACEOF
54268 # If the template does not know about datarootdir, expand it.
54269 # FIXME: This hack should be removed a few years after 2.60.
54270 ac_datarootdir_hack=; ac_datarootdir_seen=
54271
54272 case `sed -n '/datarootdir/ {
54273   p
54274   q
54275 }
54276 /@datadir@/p
54277 /@docdir@/p
54278 /@infodir@/p
54279 /@localedir@/p
54280 /@mandir@/p
54281 ' $ac_file_inputs` in
54282 *datarootdir*) ac_datarootdir_seen=yes;;
54283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54284   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54285 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54286 _ACEOF
54287 cat >>$CONFIG_STATUS <<_ACEOF
54288   ac_datarootdir_hack='
54289   s&@datadir@&$datadir&g
54290   s&@docdir@&$docdir&g
54291   s&@infodir@&$infodir&g
54292   s&@localedir@&$localedir&g
54293   s&@mandir@&$mandir&g
54294     s&\\\${datarootdir}&$datarootdir&g' ;;
54295 esac
54296 _ACEOF
54297
54298 # Neutralize VPATH when `$srcdir' = `.'.
54299 # Shell code in configure.ac might set extrasub.
54300 # FIXME: do we really want to maintain this feature?
54301 cat >>$CONFIG_STATUS <<_ACEOF
54302   sed "$ac_vpsub
54303 $extrasub
54304 _ACEOF
54305 cat >>$CONFIG_STATUS <<\_ACEOF
54306 :t
54307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54308 s&@configure_input@&$configure_input&;t t
54309 s&@top_builddir@&$ac_top_builddir_sub&;t t
54310 s&@srcdir@&$ac_srcdir&;t t
54311 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54312 s&@top_srcdir@&$ac_top_srcdir&;t t
54313 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54314 s&@builddir@&$ac_builddir&;t t
54315 s&@abs_builddir@&$ac_abs_builddir&;t t
54316 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54317 s&@INSTALL@&$ac_INSTALL&;t t
54318 $ac_datarootdir_hack
54319 " $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
54320
54321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54322   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54323   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54324   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54325 which seems to be undefined.  Please make sure it is defined." >&5
54326 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54327 which seems to be undefined.  Please make sure it is defined." >&2;}
54328
54329   rm -f "$tmp/stdin"
54330   case $ac_file in
54331   -) cat "$tmp/out"; rm -f "$tmp/out";;
54332   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54333   esac
54334  ;;
54335   :H)
54336   #
54337   # CONFIG_HEADER
54338   #
54339 _ACEOF
54340
54341 # Transform confdefs.h into a sed script `conftest.defines', that
54342 # substitutes the proper values into config.h.in to produce config.h.
54343 rm -f conftest.defines conftest.tail
54344 # First, append a space to every undef/define line, to ease matching.
54345 echo 's/$/ /' >conftest.defines
54346 # Then, protect against being on the right side of a sed subst, or in
54347 # an unquoted here document, in config.status.  If some macros were
54348 # called several times there might be several #defines for the same
54349 # symbol, which is useless.  But do not sort them, since the last
54350 # AC_DEFINE must be honored.
54351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54352 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54353 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54354 # PARAMS is the parameter list in the macro definition--in most cases, it's
54355 # just an empty string.
54356 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54357 ac_dB='\\)[      (].*,\\1define\\2'
54358 ac_dC=' '
54359 ac_dD=' ,'
54360
54361 uniq confdefs.h |
54362   sed -n '
54363         t rset
54364         :rset
54365         s/^[     ]*#[    ]*define[       ][      ]*//
54366         t ok
54367         d
54368         :ok
54369         s/[\\&,]/\\&/g
54370         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54371         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54372   ' >>conftest.defines
54373
54374 # Remove the space that was appended to ease matching.
54375 # Then replace #undef with comments.  This is necessary, for
54376 # example, in the case of _POSIX_SOURCE, which is predefined and required
54377 # on some systems where configure will not decide to define it.
54378 # (The regexp can be short, since the line contains either #define or #undef.)
54379 echo 's/ $//
54380 s,^[     #]*u.*,/* & */,' >>conftest.defines
54381
54382 # Break up conftest.defines:
54383 ac_max_sed_lines=50
54384
54385 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54386 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54387 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54388 # et cetera.
54389 ac_in='$ac_file_inputs'
54390 ac_out='"$tmp/out1"'
54391 ac_nxt='"$tmp/out2"'
54392
54393 while :
54394 do
54395   # Write a here document:
54396     cat >>$CONFIG_STATUS <<_ACEOF
54397     # First, check the format of the line:
54398     cat >"\$tmp/defines.sed" <<\\CEOF
54399 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54400 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54401 b
54402 :def
54403 _ACEOF
54404   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54405   echo 'CEOF
54406     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54407   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54408   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54409   grep . conftest.tail >/dev/null || break
54410   rm -f conftest.defines
54411   mv conftest.tail conftest.defines
54412 done
54413 rm -f conftest.defines conftest.tail
54414
54415 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54416 cat >>$CONFIG_STATUS <<\_ACEOF
54417   if test x"$ac_file" != x-; then
54418     echo "/* $configure_input  */" >"$tmp/config.h"
54419     cat "$ac_result" >>"$tmp/config.h"
54420     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54421       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54422 echo "$as_me: $ac_file is unchanged" >&6;}
54423     else
54424       rm -f $ac_file
54425       mv "$tmp/config.h" $ac_file
54426     fi
54427   else
54428     echo "/* $configure_input  */"
54429     cat "$ac_result"
54430   fi
54431   rm -f "$tmp/out12"
54432  ;;
54433
54434   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54435 echo "$as_me: executing $ac_file commands" >&6;}
54436  ;;
54437   esac
54438
54439
54440   case $ac_file$ac_mode in
54441     "rcdefs.h":C)
54442             mkdir -p $outdir &&
54443             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54444          ;;
54445     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54446     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54447     "wx-config":C)  rm -f wx-config
54448                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54449                     ;;
54450
54451   esac
54452 done # for ac_tag
54453
54454
54455 { (exit 0); exit 0; }
54456 _ACEOF
54457 chmod +x $CONFIG_STATUS
54458 ac_clean_files=$ac_clean_files_save
54459
54460
54461 # configure is writing to config.log, and then calls config.status.
54462 # config.status does its own redirection, appending to config.log.
54463 # Unfortunately, on DOS this fails, as config.log is still kept open
54464 # by configure, so config.status won't be able to write to it; its
54465 # output is simply discarded.  So we exec the FD to /dev/null,
54466 # effectively closing config.log, so it can be properly (re)opened and
54467 # appended to by config.status.  When coming back to configure, we
54468 # need to make the FD available again.
54469 if test "$no_create" != yes; then
54470   ac_cs_success=:
54471   ac_config_status_args=
54472   test "$silent" = yes &&
54473     ac_config_status_args="$ac_config_status_args --quiet"
54474   exec 5>/dev/null
54475   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54476   exec 5>>config.log
54477   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54478   # would make configure fail if this is the last instruction.
54479   $ac_cs_success || { (exit 1); exit 1; }
54480 fi
54481
54482 #
54483 # CONFIG_SUBDIRS section.
54484 #
54485 if test "$no_recursion" != yes; then
54486
54487   # Remove --cache-file and --srcdir arguments so they do not pile up.
54488   ac_sub_configure_args=
54489   ac_prev=
54490   eval "set x $ac_configure_args"
54491   shift
54492   for ac_arg
54493   do
54494     if test -n "$ac_prev"; then
54495       ac_prev=
54496       continue
54497     fi
54498     case $ac_arg in
54499     -cache-file | --cache-file | --cache-fil | --cache-fi \
54500     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54501       ac_prev=cache_file ;;
54502     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54503     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54504     | --c=*)
54505       ;;
54506     --config-cache | -C)
54507       ;;
54508     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54509       ac_prev=srcdir ;;
54510     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54511       ;;
54512     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54513       ac_prev=prefix ;;
54514     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54515       ;;
54516     *)
54517       case $ac_arg in
54518       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54519       esac
54520       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54521     esac
54522   done
54523
54524   # Always prepend --prefix to ensure using the same prefix
54525   # in subdir configurations.
54526   ac_arg="--prefix=$prefix"
54527   case $ac_arg in
54528   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54529   esac
54530   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54531
54532   # Pass --silent
54533   if test "$silent" = yes; then
54534     ac_sub_configure_args="--silent $ac_sub_configure_args"
54535   fi
54536
54537   ac_popdir=`pwd`
54538   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54539
54540     # Do not complain, so a configure script can configure whichever
54541     # parts of a large source tree are present.
54542     test -d "$srcdir/$ac_dir" || continue
54543
54544     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54545     echo "$as_me:$LINENO: $ac_msg" >&5
54546     echo "$ac_msg" >&6
54547     { as_dir="$ac_dir"
54548   case $as_dir in #(
54549   -*) as_dir=./$as_dir;;
54550   esac
54551   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54552     as_dirs=
54553     while :; do
54554       case $as_dir in #(
54555       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54556       *) as_qdir=$as_dir;;
54557       esac
54558       as_dirs="'$as_qdir' $as_dirs"
54559       as_dir=`$as_dirname -- "$as_dir" ||
54560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54561          X"$as_dir" : 'X\(//\)[^/]' \| \
54562          X"$as_dir" : 'X\(//\)$' \| \
54563          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54564 echo X"$as_dir" |
54565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54566             s//\1/
54567             q
54568           }
54569           /^X\(\/\/\)[^/].*/{
54570             s//\1/
54571             q
54572           }
54573           /^X\(\/\/\)$/{
54574             s//\1/
54575             q
54576           }
54577           /^X\(\/\).*/{
54578             s//\1/
54579             q
54580           }
54581           s/.*/./; q'`
54582       test -d "$as_dir" && break
54583     done
54584     test -z "$as_dirs" || eval "mkdir $as_dirs"
54585   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54586 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54587    { (exit 1); exit 1; }; }; }
54588     ac_builddir=.
54589
54590 case "$ac_dir" in
54591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54592 *)
54593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54594   # A ".." for each directory in $ac_dir_suffix.
54595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54596   case $ac_top_builddir_sub in
54597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54599   esac ;;
54600 esac
54601 ac_abs_top_builddir=$ac_pwd
54602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54603 # for backward compatibility:
54604 ac_top_builddir=$ac_top_build_prefix
54605
54606 case $srcdir in
54607   .)  # We are building in place.
54608     ac_srcdir=.
54609     ac_top_srcdir=$ac_top_builddir_sub
54610     ac_abs_top_srcdir=$ac_pwd ;;
54611   [\\/]* | ?:[\\/]* )  # Absolute name.
54612     ac_srcdir=$srcdir$ac_dir_suffix;
54613     ac_top_srcdir=$srcdir
54614     ac_abs_top_srcdir=$srcdir ;;
54615   *) # Relative name.
54616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54617     ac_top_srcdir=$ac_top_build_prefix$srcdir
54618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54619 esac
54620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54621
54622
54623     cd "$ac_dir"
54624
54625     # Check for guested configure; otherwise get Cygnus style configure.
54626     if test -f "$ac_srcdir/configure.gnu"; then
54627       ac_sub_configure=$ac_srcdir/configure.gnu
54628     elif test -f "$ac_srcdir/configure"; then
54629       ac_sub_configure=$ac_srcdir/configure
54630     elif test -f "$ac_srcdir/configure.in"; then
54631       # This should be Cygnus configure.
54632       ac_sub_configure=$ac_aux_dir/configure
54633     else
54634       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54635 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54636       ac_sub_configure=
54637     fi
54638
54639     # The recursion is here.
54640     if test -n "$ac_sub_configure"; then
54641       # Make the cache file name correct relative to the subdirectory.
54642       case $cache_file in
54643       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54644       *) # Relative name.
54645         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54646       esac
54647
54648       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54649 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54650       # The eval makes quoting arguments work.
54651       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54652            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54653         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54654 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54655    { (exit 1); exit 1; }; }
54656     fi
54657
54658     cd "$ac_popdir"
54659   done
54660 fi
54661
54662
54663 echo
54664 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54665 echo ""
54666 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54667 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54668
54669 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54670 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54671 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
54672 if test "$wxUSE_UNICODE" = "yes"; then
54673     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54674         echo " (using UTF-8)"
54675     else
54676         echo " (using wchar_t)"
54677     fi
54678 else
54679     echo
54680 fi
54681
54682 echo "  What level of wxWidgets compatibility should be enabled?"
54683 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54684 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54685
54686 echo "  Which libraries should wxWidgets use?"
54687 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54688 echo "                                       png                ${wxUSE_LIBPNG-none}"
54689 echo "                                       regex              ${wxUSE_REGEX}"
54690 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54691 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54692 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54693 fi
54694 echo "                                       zlib               ${wxUSE_ZLIB}"
54695 echo "                                       odbc               ${wxUSE_ODBC}"
54696 echo "                                       expat              ${wxUSE_EXPAT}"
54697 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54698 echo "                                       sdl                ${wxUSE_LIBSDL}"
54699
54700 echo ""
54701