Disable the use of UTF-8 by default in Unix builds.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.4.
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.4'
579 PACKAGE_STRING='wxWidgets 2.9.4'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 Xinerama_CFLAGS
700 Xinerama_LIBS
701 Xxf86vm_CFLAGS
702 Xxf86vm_LIBS
703 SM_CFLAGS
704 SM_LIBS
705 GL_CFLAGS
706 GL_LIBS
707 GLU_CFLAGS
708 GLU_LIBS
709 MesaGL_CFLAGS
710 MesaGL_LIBS
711 CFLAGS_VISIBILITY
712 CXXFLAGS_VISIBILITY
713 LIBICONV
714 GXX_VERSION
715 SDL_CONFIG
716 SDL_CFLAGS
717 SDL_LIBS
718 GTKPRINT_CFLAGS
719 GTKPRINT_LIBS
720 LIBGNOMEPRINTUI_CFLAGS
721 LIBGNOMEPRINTUI_LIBS
722 GNOMEVFS_CFLAGS
723 GNOMEVFS_LIBS
724 HILDON_CFLAGS
725 HILDON_LIBS
726 HILDON2_CFLAGS
727 HILDON2_LIBS
728 PYTHON
729 COND_PYTHON
730 WEBKIT_CFLAGS
731 WEBKIT_LIBS
732 CAIRO_CFLAGS
733 CAIRO_LIBS
734 GST_CFLAGS
735 GST_LIBS
736 ALL_WX_LIBS
737 BUILT_WX_LIBS
738 STD_BASE_LIBS
739 STD_GUI_LIBS
740 wxUSE_ZLIB
741 wxUSE_REGEX
742 wxUSE_EXPAT
743 wxUSE_LIBJPEG
744 wxUSE_LIBPNG
745 wxUSE_LIBTIFF
746 VENDOR
747 OFFICIAL_BUILD
748 WX_FLAVOUR
749 WX_LIB_FLAVOUR
750 WXUNIV
751 MONOLITHIC
752 USE_PLUGINS
753 CXXWARNINGS
754 EXTRALIBS
755 EXTRALIBS_XML
756 EXTRALIBS_HTML
757 EXTRALIBS_MEDIA
758 EXTRALIBS_GUI
759 EXTRALIBS_OPENGL
760 EXTRALIBS_SDL
761 EXTRALIBS_STC
762 WITH_PLUGIN_SDL
763 EXTRALIBS_GTKPRINT
764 EXTRALIBS_GNOMEPRINT
765 EXTRALIBS_GNOMEVFS
766 EXTRALIBS_HILDON
767 UNICODE
768 DEBUG_INFO
769 DEBUG_FLAG
770 TOOLKIT_LOWERCASE
771 TOOLKIT_VERSION
772 DYLIB_RPATH_INSTALL
773 DYLIB_RPATH_POSTLINK
774 SAMPLES_RPATH_FLAG
775 HEADER_PAD_OPTION
776 HOST_SUFFIX
777 CPPUNIT_CFLAGS
778 CPPUNIT_LIBS
779 RANLIB
780 INSTALL_PROGRAM
781 INSTALL_SCRIPT
782 INSTALL_DATA
783 LN_S
784 SET_MAKE
785 MAKE_SET
786 AROPTIONS
787 STRIP
788 NM
789 INSTALL_DIR
790 LDFLAGS_GUI
791 IF_GNU_MAKE
792 PLATFORM_UNIX
793 PLATFORM_WIN32
794 PLATFORM_MSDOS
795 PLATFORM_MAC
796 PLATFORM_MACOS
797 PLATFORM_MACOSX
798 PLATFORM_OS2
799 PLATFORM_BEOS
800 SO_SUFFIX
801 SO_SUFFIX_MODULE
802 DLLIMP_SUFFIX
803 LIBPREFIX
804 LIBEXT
805 DLLPREFIX
806 DLLPREFIX_MODULE
807 dlldir
808 AIX_CXX_LD
809 SHARED_LD_CC
810 SHARED_LD_CXX
811 SHARED_LD_MODULE_CC
812 SHARED_LD_MODULE_CXX
813 PIC_FLAG
814 WINDOWS_IMPLIB
815 USE_SOVERSION
816 USE_SOVERLINUX
817 USE_SOVERSOLARIS
818 USE_SOVERCYGWIN
819 USE_MACVERSION
820 USE_SOTWOSYMLINKS
821 SONAME_FLAG
822 DEPS_TRACKING
823 BK_DEPS
824 WINDRES
825 REZ
826 SETFILE
827 OBJCXXFLAGS
828 GCC_PCH
829 ICC_PCH
830 ICC_PCH_CREATE_SWITCH
831 ICC_PCH_USE_SWITCH
832 BK_MAKE_PCH
833 COND_BUILD_DEBUG
834 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
835 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
836 COND_BUILD_DEBUG_UNICODE_0
837 COND_BUILD_DEBUG_UNICODE_1
838 COND_BUILD_RELEASE
839 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
840 COND_BUILD_RELEASE_UNICODE_0
841 COND_BUILD_RELEASE_UNICODE_1
842 COND_BUILD_debug
843 COND_BUILD_debug_DEBUG_FLAG_default
844 COND_BUILD_debug_DEBUG_INFO_default
845 COND_BUILD_debug_UNICODE_0
846 COND_BUILD_debug_UNICODE_1
847 COND_BUILD_release
848 COND_BUILD_release_DEBUG_INFO_default
849 COND_BUILD_release_UNICODE_0
850 COND_BUILD_release_UNICODE_1
851 COND_DEBUG_FLAG_0
852 COND_DEBUG_FLAG_1
853 COND_DEBUG_INFO_0
854 COND_DEBUG_INFO_1
855 COND_DEPS_TRACKING_0
856 COND_DEPS_TRACKING_1
857 COND_GCC_PCH_1
858 COND_ICC_PCH_1
859 COND_MONOLITHIC_0
860 COND_MONOLITHIC_0_SHARED_0
861 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
862 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
863 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
865 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1
867 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
868 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
869 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
870 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
871 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
872 COND_MONOLITHIC_0_SHARED_1
873 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
874 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
875 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
876 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
877 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
878 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1
879 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
880 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
881 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
882 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
883 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
884 COND_MONOLITHIC_0_USE_AUI_1
885 COND_MONOLITHIC_0_USE_GUI_1
886 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
887 COND_MONOLITHIC_0_USE_HTML_1
888 COND_MONOLITHIC_0_USE_MEDIA_1
889 COND_MONOLITHIC_0_USE_PROPGRID_1
890 COND_MONOLITHIC_0_USE_QA_1
891 COND_MONOLITHIC_0_USE_RIBBON_1
892 COND_MONOLITHIC_0_USE_RICHTEXT_1
893 COND_MONOLITHIC_0_USE_STC_1
894 COND_MONOLITHIC_0_USE_WEBVIEW_1
895 COND_MONOLITHIC_0_USE_XRC_1
896 COND_MONOLITHIC_1
897 COND_MONOLITHIC_1_SHARED_0
898 COND_MONOLITHIC_1_SHARED_1
899 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
900 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
901 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
902 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
903 COND_PLATFORM_MACOSX_1
904 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
905 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
906 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
907 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
908 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
909 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
910 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
911 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
912 COND_PLATFORM_MACOSX_1_USE_GUI_1
913 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
914 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
915 COND_PLATFORM_MACOS_1
916 COND_PLATFORM_MAC_0
917 COND_PLATFORM_MAC_1
918 COND_PLATFORM_MSDOS_0
919 COND_PLATFORM_MSDOS_1
920 COND_PLATFORM_OS2_1
921 COND_PLATFORM_UNIX_0
922 COND_PLATFORM_UNIX_1
923 COND_PLATFORM_UNIX_1_USE_GUI_1
924 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
925 COND_PLATFORM_WIN32_0
926 COND_PLATFORM_WIN32_1
927 COND_PLATFORM_WIN32_1_SHARED_0
928 COND_SHARED_0
929 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
930 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
931 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
932 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
933 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
934 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
935 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
936 COND_SHARED_0_USE_STC_1
937 COND_SHARED_0_wxUSE_EXPAT_builtin
938 COND_SHARED_0_wxUSE_REGEX_builtin
939 COND_SHARED_0_wxUSE_ZLIB_builtin
940 COND_SHARED_1
941 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
942 COND_TOOLKIT_
943 COND_TOOLKIT_COCOA
944 COND_TOOLKIT_COCOA_USE_GUI_1
945 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
946 COND_TOOLKIT_DFB
947 COND_TOOLKIT_DFB_USE_GUI_1
948 COND_TOOLKIT_GTK
949 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
950 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
951 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
952 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
954 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
955 COND_TOOLKIT_GTK_USE_GUI_1
956 COND_TOOLKIT_MAC
957 COND_TOOLKIT_MOTIF
958 COND_TOOLKIT_MOTIF_USE_GUI_1
959 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
960 COND_TOOLKIT_MSW
961 COND_TOOLKIT_MSW_USE_GUI_1
962 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
963 COND_TOOLKIT_MSW_WXUNIV_0
964 COND_TOOLKIT_OSX_CARBON
965 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
966 COND_TOOLKIT_OSX_COCOA
967 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
968 COND_TOOLKIT_OSX_IPHONE
969 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
970 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
971 COND_TOOLKIT_PM
972 COND_TOOLKIT_PM_USE_GUI_1
973 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
974 COND_TOOLKIT_WINCE
975 COND_TOOLKIT_WINCE_USE_GUI_1
976 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
977 COND_TOOLKIT_WINCE_WXUNIV_0
978 COND_TOOLKIT_X11
979 COND_TOOLKIT_X11_USE_GUI_1
980 COND_UNICODE_1
981 COND_USE_CAIRO_1
982 COND_USE_EXCEPTIONS_0
983 COND_USE_EXCEPTIONS_1
984 COND_USE_GUI_0
985 COND_USE_GUI_1
986 COND_USE_GUI_1_USE_OPENGL_1
987 COND_USE_GUI_1_WXUNIV_0
988 COND_USE_GUI_1_WXUNIV_1
989 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
990 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
991 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
992 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
993 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
994 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
995 COND_USE_OPENGL_1
996 COND_USE_PCH_1
997 COND_USE_PLUGINS_0
998 COND_USE_RTTI_0
999 COND_USE_RTTI_1
1000 COND_USE_SOTWOSYMLINKS_1
1001 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
1002 COND_USE_SOVERLINUX_1
1003 COND_USE_SOVERSION_0
1004 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
1005 COND_USE_SOVERSOLARIS_1
1006 COND_USE_STC_1
1007 COND_USE_THREADS_0
1008 COND_USE_THREADS_1
1009 COND_USE_XRC_1
1010 COND_WINDOWS_IMPLIB_1
1011 COND_WITH_PLUGIN_SDL_1
1012 COND_WXUNIV_0
1013 COND_WXUNIV_1
1014 COND_WXUSE_EXPAT_BUILTIN
1015 COND_WXUSE_LIBJPEG_BUILTIN
1016 COND_WXUSE_LIBPNG_BUILTIN
1017 COND_WXUSE_LIBTIFF_BUILTIN
1018 COND_WXUSE_REGEX_BUILTIN
1019 COND_WXUSE_ZLIB_BUILTIN
1020 COND_wxUSE_EXPAT_builtin
1021 COND_wxUSE_LIBJPEG_builtin
1022 COND_wxUSE_LIBPNG_builtin
1023 COND_wxUSE_LIBTIFF_builtin
1024 COND_wxUSE_REGEX_builtin
1025 COND_wxUSE_ZLIB_builtin
1026 DEREZ
1027 SHARED
1028 WX_LIBRARY_BASENAME_NOGUI
1029 WX_LIBRARY_BASENAME_GUI
1030 USE_GUI
1031 AFMINSTALL
1032 WIN32INSTALL
1033 TOOLKIT
1034 TOOLKIT_DIR
1035 TOOLCHAIN_NAME
1036 TOOLCHAIN_FULLNAME
1037 cross_compiling
1038 WIDGET_SET
1039 WX_RELEASE
1040 WX_VERSION
1041 WX_SUBVERSION
1042 WX_CHARTYPE
1043 WXCONFIG_CPPFLAGS
1044 WXCONFIG_CFLAGS
1045 WXCONFIG_CXXFLAGS
1046 WXCONFIG_LIBS
1047 WXCONFIG_RPATH
1048 WXCONFIG_LDFLAGS
1049 WXCONFIG_LDFLAGS_GUI
1050 WXCONFIG_RESFLAGS
1051 GUIDIST
1052 DISTDIR
1053 SAMPLES_SUBDIRS
1054 LDFLAGS_GL
1055 OPENGL_LIBS
1056 DMALLOC_LIBS
1057 WX_VERSION_TAG
1058 RESCOMP
1059 RESFLAGS
1060 RESPROGRAMOBJ
1061 WX_RESOURCES_MACOSX_ASCII
1062 WX_RESOURCES_MACOSX_DATA
1063 LIBWXMACRES
1064 POSTLINK_COMMAND
1065 MACSETFILE
1066 GCC
1067 DLLTOOL
1068 CPPUNIT_CONFIG
1069 LIBOBJS
1070 LTLIBOBJS'
1071 ac_subst_files=''
1072       ac_precious_vars='build_alias
1073 host_alias
1074 target_alias
1075 CC
1076 CFLAGS
1077 LDFLAGS
1078 LIBS
1079 CPPFLAGS
1080 CPP
1081 CXX
1082 CXXFLAGS
1083 CCC
1084 CXXCPP
1085 PKG_CONFIG
1086 DIRECTFB_CFLAGS
1087 DIRECTFB_LIBS
1088 XMKMF
1089 PANGOX_CFLAGS
1090 PANGOX_LIBS
1091 PANGOFT2_CFLAGS
1092 PANGOFT2_LIBS
1093 PANGOXFT_CFLAGS
1094 PANGOXFT_LIBS
1095 Xinerama_CFLAGS
1096 Xinerama_LIBS
1097 Xxf86vm_CFLAGS
1098 Xxf86vm_LIBS
1099 SM_CFLAGS
1100 SM_LIBS
1101 GL_CFLAGS
1102 GL_LIBS
1103 GLU_CFLAGS
1104 GLU_LIBS
1105 MesaGL_CFLAGS
1106 MesaGL_LIBS
1107 GTKPRINT_CFLAGS
1108 GTKPRINT_LIBS
1109 LIBGNOMEPRINTUI_CFLAGS
1110 LIBGNOMEPRINTUI_LIBS
1111 GNOMEVFS_CFLAGS
1112 GNOMEVFS_LIBS
1113 HILDON_CFLAGS
1114 HILDON_LIBS
1115 HILDON2_CFLAGS
1116 HILDON2_LIBS
1117 WEBKIT_CFLAGS
1118 WEBKIT_LIBS
1119 CAIRO_CFLAGS
1120 CAIRO_LIBS
1121 GST_CFLAGS
1122 GST_LIBS'
1123 ac_subdirs_all='src/tiff
1124 src/expat'
1125
1126 # Initialize some variables set by options.
1127 ac_init_help=
1128 ac_init_version=false
1129 # The variables have the same names as the options, with
1130 # dashes changed to underlines.
1131 cache_file=/dev/null
1132 exec_prefix=NONE
1133 no_create=
1134 no_recursion=
1135 prefix=NONE
1136 program_prefix=NONE
1137 program_suffix=NONE
1138 program_transform_name=s,x,x,
1139 silent=
1140 site=
1141 srcdir=
1142 verbose=
1143 x_includes=NONE
1144 x_libraries=NONE
1145
1146 # Installation directory options.
1147 # These are left unexpanded so users can "make install exec_prefix=/foo"
1148 # and all the variables that are supposed to be based on exec_prefix
1149 # by default will actually change.
1150 # Use braces instead of parens because sh, perl, etc. also accept them.
1151 # (The list follows the same order as the GNU Coding Standards.)
1152 bindir='${exec_prefix}/bin'
1153 sbindir='${exec_prefix}/sbin'
1154 libexecdir='${exec_prefix}/libexec'
1155 datarootdir='${prefix}/share'
1156 datadir='${datarootdir}'
1157 sysconfdir='${prefix}/etc'
1158 sharedstatedir='${prefix}/com'
1159 localstatedir='${prefix}/var'
1160 includedir='${prefix}/include'
1161 oldincludedir='/usr/include'
1162 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1163 infodir='${datarootdir}/info'
1164 htmldir='${docdir}'
1165 dvidir='${docdir}'
1166 pdfdir='${docdir}'
1167 psdir='${docdir}'
1168 libdir='${exec_prefix}/lib'
1169 localedir='${datarootdir}/locale'
1170 mandir='${datarootdir}/man'
1171
1172 ac_prev=
1173 ac_dashdash=
1174 for ac_option
1175 do
1176   # If the previous option needs an argument, assign it.
1177   if test -n "$ac_prev"; then
1178     eval $ac_prev=\$ac_option
1179     ac_prev=
1180     continue
1181   fi
1182
1183   case $ac_option in
1184   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1185   *)    ac_optarg=yes ;;
1186   esac
1187
1188   # Accept the important Cygnus configure options, so we can diagnose typos.
1189
1190   case $ac_dashdash$ac_option in
1191   --)
1192     ac_dashdash=yes ;;
1193
1194   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1195     ac_prev=bindir ;;
1196   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1197     bindir=$ac_optarg ;;
1198
1199   -build | --build | --buil | --bui | --bu)
1200     ac_prev=build_alias ;;
1201   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1202     build_alias=$ac_optarg ;;
1203
1204   -cache-file | --cache-file | --cache-fil | --cache-fi \
1205   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1206     ac_prev=cache_file ;;
1207   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1208   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1209     cache_file=$ac_optarg ;;
1210
1211   --config-cache | -C)
1212     cache_file=config.cache ;;
1213
1214   -datadir | --datadir | --datadi | --datad)
1215     ac_prev=datadir ;;
1216   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1217     datadir=$ac_optarg ;;
1218
1219   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1220   | --dataroo | --dataro | --datar)
1221     ac_prev=datarootdir ;;
1222   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1223   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1224     datarootdir=$ac_optarg ;;
1225
1226   -disable-* | --disable-*)
1227     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1233     eval enable_$ac_feature=no ;;
1234
1235   -docdir | --docdir | --docdi | --doc | --do)
1236     ac_prev=docdir ;;
1237   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1238     docdir=$ac_optarg ;;
1239
1240   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1241     ac_prev=dvidir ;;
1242   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1243     dvidir=$ac_optarg ;;
1244
1245   -enable-* | --enable-*)
1246     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1250    { (exit 1); exit 1; }; }
1251     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1252     eval enable_$ac_feature=\$ac_optarg ;;
1253
1254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1256   | --exec | --exe | --ex)
1257     ac_prev=exec_prefix ;;
1258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1260   | --exec=* | --exe=* | --ex=*)
1261     exec_prefix=$ac_optarg ;;
1262
1263   -gas | --gas | --ga | --g)
1264     # Obsolete; use --with-gas.
1265     with_gas=yes ;;
1266
1267   -help | --help | --hel | --he | -h)
1268     ac_init_help=long ;;
1269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1270     ac_init_help=recursive ;;
1271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1272     ac_init_help=short ;;
1273
1274   -host | --host | --hos | --ho)
1275     ac_prev=host_alias ;;
1276   -host=* | --host=* | --hos=* | --ho=*)
1277     host_alias=$ac_optarg ;;
1278
1279   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1280     ac_prev=htmldir ;;
1281   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1282   | --ht=*)
1283     htmldir=$ac_optarg ;;
1284
1285   -includedir | --includedir | --includedi | --included | --include \
1286   | --includ | --inclu | --incl | --inc)
1287     ac_prev=includedir ;;
1288   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1289   | --includ=* | --inclu=* | --incl=* | --inc=*)
1290     includedir=$ac_optarg ;;
1291
1292   -infodir | --infodir | --infodi | --infod | --info | --inf)
1293     ac_prev=infodir ;;
1294   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1295     infodir=$ac_optarg ;;
1296
1297   -libdir | --libdir | --libdi | --libd)
1298     ac_prev=libdir ;;
1299   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1300     libdir=$ac_optarg ;;
1301
1302   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1303   | --libexe | --libex | --libe)
1304     ac_prev=libexecdir ;;
1305   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1306   | --libexe=* | --libex=* | --libe=*)
1307     libexecdir=$ac_optarg ;;
1308
1309   -localedir | --localedir | --localedi | --localed | --locale)
1310     ac_prev=localedir ;;
1311   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1312     localedir=$ac_optarg ;;
1313
1314   -localstatedir | --localstatedir | --localstatedi | --localstated \
1315   | --localstate | --localstat | --localsta | --localst | --locals)
1316     ac_prev=localstatedir ;;
1317   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1318   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1319     localstatedir=$ac_optarg ;;
1320
1321   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1322     ac_prev=mandir ;;
1323   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1324     mandir=$ac_optarg ;;
1325
1326   -nfp | --nfp | --nf)
1327     # Obsolete; use --without-fp.
1328     with_fp=no ;;
1329
1330   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1331   | --no-cr | --no-c | -n)
1332     no_create=yes ;;
1333
1334   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1335   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1336     no_recursion=yes ;;
1337
1338   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1339   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1340   | --oldin | --oldi | --old | --ol | --o)
1341     ac_prev=oldincludedir ;;
1342   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1343   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1344   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1345     oldincludedir=$ac_optarg ;;
1346
1347   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1348     ac_prev=prefix ;;
1349   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1350     prefix=$ac_optarg ;;
1351
1352   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1353   | --program-pre | --program-pr | --program-p)
1354     ac_prev=program_prefix ;;
1355   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1356   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1357     program_prefix=$ac_optarg ;;
1358
1359   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1360   | --program-suf | --program-su | --program-s)
1361     ac_prev=program_suffix ;;
1362   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1363   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1364     program_suffix=$ac_optarg ;;
1365
1366   -program-transform-name | --program-transform-name \
1367   | --program-transform-nam | --program-transform-na \
1368   | --program-transform-n | --program-transform- \
1369   | --program-transform | --program-transfor \
1370   | --program-transfo | --program-transf \
1371   | --program-trans | --program-tran \
1372   | --progr-tra | --program-tr | --program-t)
1373     ac_prev=program_transform_name ;;
1374   -program-transform-name=* | --program-transform-name=* \
1375   | --program-transform-nam=* | --program-transform-na=* \
1376   | --program-transform-n=* | --program-transform-=* \
1377   | --program-transform=* | --program-transfor=* \
1378   | --program-transfo=* | --program-transf=* \
1379   | --program-trans=* | --program-tran=* \
1380   | --progr-tra=* | --program-tr=* | --program-t=*)
1381     program_transform_name=$ac_optarg ;;
1382
1383   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1384     ac_prev=pdfdir ;;
1385   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1386     pdfdir=$ac_optarg ;;
1387
1388   -psdir | --psdir | --psdi | --psd | --ps)
1389     ac_prev=psdir ;;
1390   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1391     psdir=$ac_optarg ;;
1392
1393   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394   | -silent | --silent | --silen | --sile | --sil)
1395     silent=yes ;;
1396
1397   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1398     ac_prev=sbindir ;;
1399   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1400   | --sbi=* | --sb=*)
1401     sbindir=$ac_optarg ;;
1402
1403   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1404   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1405   | --sharedst | --shareds | --shared | --share | --shar \
1406   | --sha | --sh)
1407     ac_prev=sharedstatedir ;;
1408   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1409   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1410   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1411   | --sha=* | --sh=*)
1412     sharedstatedir=$ac_optarg ;;
1413
1414   -site | --site | --sit)
1415     ac_prev=site ;;
1416   -site=* | --site=* | --sit=*)
1417     site=$ac_optarg ;;
1418
1419   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1420     ac_prev=srcdir ;;
1421   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1422     srcdir=$ac_optarg ;;
1423
1424   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1425   | --syscon | --sysco | --sysc | --sys | --sy)
1426     ac_prev=sysconfdir ;;
1427   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1428   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1429     sysconfdir=$ac_optarg ;;
1430
1431   -target | --target | --targe | --targ | --tar | --ta | --t)
1432     ac_prev=target_alias ;;
1433   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1434     target_alias=$ac_optarg ;;
1435
1436   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1437     verbose=yes ;;
1438
1439   -version | --version | --versio | --versi | --vers | -V)
1440     ac_init_version=: ;;
1441
1442   -with-* | --with-*)
1443     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1444     # Reject names that are not valid shell variable names.
1445     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446       { echo "$as_me: error: invalid package name: $ac_package" >&2
1447    { (exit 1); exit 1; }; }
1448     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1449     eval with_$ac_package=\$ac_optarg ;;
1450
1451   -without-* | --without-*)
1452     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1453     # Reject names that are not valid shell variable names.
1454     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1455       { echo "$as_me: error: invalid package name: $ac_package" >&2
1456    { (exit 1); exit 1; }; }
1457     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1458     eval with_$ac_package=no ;;
1459
1460   --x)
1461     # Obsolete; use --with-x.
1462     with_x=yes ;;
1463
1464   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1465   | --x-incl | --x-inc | --x-in | --x-i)
1466     ac_prev=x_includes ;;
1467   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1468   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1469     x_includes=$ac_optarg ;;
1470
1471   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1472   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1473     ac_prev=x_libraries ;;
1474   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1475   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1476     x_libraries=$ac_optarg ;;
1477
1478   -*) { echo "$as_me: error: unrecognized option: $ac_option
1479 Try \`$0 --help' for more information." >&2
1480    { (exit 1); exit 1; }; }
1481     ;;
1482
1483   *=*)
1484     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1485     # Reject names that are not valid shell variable names.
1486     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1487       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1488    { (exit 1); exit 1; }; }
1489     eval $ac_envvar=\$ac_optarg
1490     export $ac_envvar ;;
1491
1492   *)
1493     # FIXME: should be removed in autoconf 3.0.
1494     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1495     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1497     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1498     ;;
1499
1500   esac
1501 done
1502
1503 if test -n "$ac_prev"; then
1504   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1505   { echo "$as_me: error: missing argument to $ac_option" >&2
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 # Be sure to have absolute directory names.
1510 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1511                 datadir sysconfdir sharedstatedir localstatedir includedir \
1512                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1513                 libdir localedir mandir
1514 do
1515   eval ac_val=\$$ac_var
1516   case $ac_val in
1517     [\\/$]* | ?:[\\/]* )  continue;;
1518     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1519   esac
1520   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1521    { (exit 1); exit 1; }; }
1522 done
1523
1524 # There might be people who depend on the old broken behavior: `$host'
1525 # used to hold the argument of --host etc.
1526 # FIXME: To remove some day.
1527 build=$build_alias
1528 host=$host_alias
1529 target=$target_alias
1530
1531 # FIXME: To remove some day.
1532 if test "x$host_alias" != x; then
1533   if test "x$build_alias" = x; then
1534     cross_compiling=maybe
1535     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1536     If a cross compiler is detected then cross compile mode will be used." >&2
1537   elif test "x$build_alias" != "x$host_alias"; then
1538     cross_compiling=yes
1539   fi
1540 fi
1541
1542 ac_tool_prefix=
1543 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544
1545 test "$silent" = yes && exec 6>/dev/null
1546
1547
1548 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di=`ls -di .` &&
1550 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551   { echo "$as_me: error: Working directory cannot be determined" >&2
1552    { (exit 1); exit 1; }; }
1553 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1554   { echo "$as_me: error: pwd does not report name of working directory" >&2
1555    { (exit 1); exit 1; }; }
1556
1557
1558 # Find the source files, if location was not specified.
1559 if test -z "$srcdir"; then
1560   ac_srcdir_defaulted=yes
1561   # Try the directory containing this script, then the parent directory.
1562   ac_confdir=`$as_dirname -- "$0" ||
1563 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1564          X"$0" : 'X\(//\)[^/]' \| \
1565          X"$0" : 'X\(//\)$' \| \
1566          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1567 echo X"$0" |
1568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1569             s//\1/
1570             q
1571           }
1572           /^X\(\/\/\)[^/].*/{
1573             s//\1/
1574             q
1575           }
1576           /^X\(\/\/\)$/{
1577             s//\1/
1578             q
1579           }
1580           /^X\(\/\).*/{
1581             s//\1/
1582             q
1583           }
1584           s/.*/./; q'`
1585   srcdir=$ac_confdir
1586   if test ! -r "$srcdir/$ac_unique_file"; then
1587     srcdir=..
1588   fi
1589 else
1590   ac_srcdir_defaulted=no
1591 fi
1592 if test ! -r "$srcdir/$ac_unique_file"; then
1593   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1594   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1595    { (exit 1); exit 1; }; }
1596 fi
1597 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1598 ac_abs_confdir=`(
1599         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1600    { (exit 1); exit 1; }; }
1601         pwd)`
1602 # When building in place, set srcdir=.
1603 if test "$ac_abs_confdir" = "$ac_pwd"; then
1604   srcdir=.
1605 fi
1606 # Remove unnecessary trailing slashes from srcdir.
1607 # Double slashes in file names in object file debugging info
1608 # mess up M-x gdb in Emacs.
1609 case $srcdir in
1610 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1611 esac
1612 for ac_var in $ac_precious_vars; do
1613   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1614   eval ac_env_${ac_var}_value=\$${ac_var}
1615   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1616   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1617 done
1618
1619 #
1620 # Report the --help message.
1621 #
1622 if test "$ac_init_help" = "long"; then
1623   # Omit some internal or obsolete options to make the list less imposing.
1624   # This message is too long to be a string in the A/UX 3.1 sh.
1625   cat <<_ACEOF
1626 \`configure' configures wxWidgets 2.9.4 to adapt to many kinds of systems.
1627
1628 Usage: $0 [OPTION]... [VAR=VALUE]...
1629
1630 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1631 VAR=VALUE.  See below for descriptions of some of the useful variables.
1632
1633 Defaults for the options are specified in brackets.
1634
1635 Configuration:
1636   -h, --help              display this help and exit
1637       --help=short        display options specific to this package
1638       --help=recursive    display the short help of all the included packages
1639   -V, --version           display version information and exit
1640   -q, --quiet, --silent   do not print \`checking...' messages
1641       --cache-file=FILE   cache test results in FILE [disabled]
1642   -C, --config-cache      alias for \`--cache-file=config.cache'
1643   -n, --no-create         do not create output files
1644       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1645
1646 Installation directories:
1647   --prefix=PREFIX         install architecture-independent files in PREFIX
1648                           [$ac_default_prefix]
1649   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1650                           [PREFIX]
1651
1652 By default, \`make install' will install all the files in
1653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1655 for instance \`--prefix=\$HOME'.
1656
1657 For better control, use the options below.
1658
1659 Fine tuning of the installation directories:
1660   --bindir=DIR           user executables [EPREFIX/bin]
1661   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1662   --libexecdir=DIR       program executables [EPREFIX/libexec]
1663   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1664   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1665   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1666   --libdir=DIR           object code libraries [EPREFIX/lib]
1667   --includedir=DIR       C header files [PREFIX/include]
1668   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1669   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1670   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1671   --infodir=DIR          info documentation [DATAROOTDIR/info]
1672   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1673   --mandir=DIR           man documentation [DATAROOTDIR/man]
1674   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1675   --htmldir=DIR          html documentation [DOCDIR]
1676   --dvidir=DIR           dvi documentation [DOCDIR]
1677   --pdfdir=DIR           pdf documentation [DOCDIR]
1678   --psdir=DIR            ps documentation [DOCDIR]
1679 _ACEOF
1680
1681   cat <<\_ACEOF
1682
1683 X features:
1684   --x-includes=DIR    X include files are in DIR
1685   --x-libraries=DIR   X library files are in DIR
1686
1687 System types:
1688   --build=BUILD     configure for building on BUILD [guessed]
1689   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1690 _ACEOF
1691 fi
1692
1693 if test -n "$ac_init_help"; then
1694   case $ac_init_help in
1695      short | recursive ) echo "Configuration of wxWidgets 2.9.4:";;
1696    esac
1697   cat <<\_ACEOF
1698
1699 Optional Features:
1700   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1701   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1702   --disable-gui           don't build GUI parts of the library
1703   --enable-monolithic     build wxWidgets as single library
1704   --enable-plugins        build parts of wxWidgets as loadable components
1705   --enable-official_build official build of wxWidgets (win32 DLL only)
1706   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1707   --disable-all-features  disable all optional features to build minimal library
1708   --enable-universal      use wxWidgets GUI controls instead of native ones
1709   --enable-nanox          use NanoX
1710   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1711   --enable-gpe            use GNOME PDA Environment features if possible
1712   --enable-debug          build library for debugging
1713   --disable-debug_flag    disable all debugging support
1714   --enable-debug_info     generate debug information
1715   --enable-debug_gdb      create code with extra GDB debugging information
1716   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1717   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1718   --disable-shared        create static library instead of shared
1719   --enable-stl            use standard C++ classes for everything
1720   --enable-std_containers use standard C++ container classes
1721   --enable-std_iostreams  use standard C++ stream classes
1722   --enable-std_string     use standard C++ string classes
1723  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1724   --disable-unicode       compile without Unicode support
1725   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1726   --enable-utf8           use UTF-8 representation for strings (Unix only)
1727   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1728   --enable-extended_rtti  use extended RTTI (XTI)
1729   --enable-omf            use OMF object format
1730   --disable-optimise      compile without optimisations
1731   --enable-profile        create code with profiling information
1732   --enable-no_rtti        create code without RTTI information
1733   --enable-no_exceptions  create code without C++ exceptions handling
1734   --enable-permissive     compile code disregarding strict ANSI
1735   --enable-no_deps        create code without dependency information
1736   --disable-vararg_macros don't use vararg macros, even if they are supported
1737   --enable-universal_binary=archs create universal binary for the specified (or all supported) architectures
1738   --enable-macosx_arch=ARCH  build for just the specified architecture
1739   --enable-compat26       enable wxWidgets 2.6 compatibility
1740   --disable-compat28      disable wxWidgets 2.8 compatibility
1741   --disable-rpath         disable use of rpath for uninstalled builds
1742   --enable-objc_uniquifying enable Objective-C class name uniquifying
1743   --disable-visibility    disable use of ELF symbols visibility even if supported
1744   --disable-tls           disable use of compiler TLS support
1745   --enable-intl           use internationalization system
1746   --enable-xlocale        use x-locale support (requires wxLocale)
1747   --enable-config         use wxConfig (and derived) classes
1748   --enable-protocols      use wxProtocol and derived classes
1749   --enable-ftp            use wxFTP (requires wxProtocol
1750   --enable-http           use wxHTTP (requires wxProtocol
1751   --enable-fileproto      use wxFileProto class (requires wxProtocol
1752   --enable-sockets        use socket/network classes
1753   --enable-ipv6           enable IPv6 support in wxSocket
1754   --enable-ole            use OLE classes (Win32 only)
1755   --enable-dataobj        use data object classes
1756   --enable-ipc            use interprocess communication (wxSocket etc.)
1757   --enable-baseevtloop    use event loop in console programs too
1758   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1759   --enable-selectloop     use wxSelectDispatcher class
1760   --enable-any            use wxAny class
1761   --enable-apple_ieee     use the Apple IEEE codec
1762   --enable-arcstream      use wxArchive streams
1763   --enable-base64         use base64 encoding/decoding functions
1764   --enable-backtrace      use wxStackWalker class for getting backtraces
1765   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1766   --enable-cmdline        use wxCmdLineParser class
1767   --enable-datetime       use wxDateTime class
1768   --enable-debugreport    use wxDebugReport class
1769   --enable-dialupman      use dialup network classes
1770   --enable-dynlib         use wxLibrary class for DLL loading
1771   --enable-dynamicloader  use (new) wxDynamicLibrary class
1772   --enable-exceptions     build exception-safe library
1773   --enable-ffile          use wxFFile class
1774   --enable-file           use wxFile class
1775   --enable-filehistory    use wxFileHistory class
1776   --enable-filesystem     use virtual file systems classes
1777   --enable-fontenum       use wxFontEnumerator class
1778   --enable-fontmap        use font encodings conversion classes
1779   --enable-fs_archive     use virtual archive filesystems
1780   --enable-fs_inet        use virtual HTTP/FTP filesystems
1781   --enable-fs_zip         now replaced by fs_archive
1782   --enable-fswatcher      use wxFileSystemWatcher class
1783   --enable-geometry       use geometry class
1784   --enable-log            use logging system
1785   --enable-longlong       use wxLongLong class
1786   --enable-mimetype       use wxMimeTypesManager
1787   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1788   --enable-snglinst       use wxSingleInstanceChecker class
1789   --enable-sound          use wxSound class
1790   --enable-stdpaths       use wxStandardPaths class
1791   --enable-stopwatch      use wxStopWatch class
1792   --enable-streams        use wxStream etc classes
1793   --enable-sysoptions     use wxSystemOptions
1794   --enable-tarstream      use wxTar streams
1795   --enable-textbuf        use wxTextBuffer class
1796   --enable-textfile       use wxTextFile class
1797   --enable-timer          use wxTimer class
1798   --enable-variant        use wxVariant class
1799   --enable-zipstream      use wxZip streams
1800   --enable-url            use wxURL class
1801   --enable-protocol       use wxProtocol class
1802   --enable-protocol-http  HTTP support in wxProtocol
1803   --enable-protocol-ftp   FTP support in wxProtocol
1804   --enable-protocol-file  FILE support in wxProtocol
1805   --enable-threads        use threads
1806   --enable-iniconf        use wxIniConfig (Win32 only)
1807   --enable-regkey         use wxRegKey class (Win32 only)
1808   --enable-docview        use document view architecture
1809   --enable-help           use help subsystem
1810   --enable-mshtmlhelp     use MS HTML Help (win32)
1811   --enable-html           use wxHTML sub-library
1812   --enable-htmlhelp       use wxHTML-based help
1813   --enable-xrc            use XRC resources sub-library
1814   --enable-aui            use AUI docking library
1815   --enable-propgrid       use wxPropertyGrid library
1816   --enable-ribbon         use wxRibbon library
1817   --enable-stc            use wxStyledTextCtrl library
1818   --enable-constraints    use layout-constraints system
1819   --enable-loggui         use standard GUI logger
1820   --enable-logwin         use wxLogWindow
1821   --enable-logdialog      use wxLogDialog
1822   --enable-mdi            use multiple document interface architecture
1823   --enable-mdidoc         use docview architecture with MDI
1824   --enable-mediactrl      use wxMediaCtrl class
1825   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1826   --enable-richtext       use wxRichTextCtrl
1827   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1828   --enable-printarch      use printing architecture
1829   --enable-svg            use wxSVGFileDC device context
1830   --enable-webkit         use wxWebKitCtrl (Mac-only, use wxWebView instead)
1831   --enable-webview        use wxWebView library
1832   --enable-graphics_ctx   use graphics context 2D drawing API
1833   --enable-clipboard      use wxClipboard class
1834   --enable-dnd            use Drag'n'Drop classes
1835   --disable-controls      disable compilation of all standard controls
1836   --enable-markup         support wxControl::SetLabelMarkup
1837   --enable-accel          use accelerators
1838   --enable-animatectrl    use wxAnimationCtrl class
1839   --enable-bannerwindow   use wxBannerWindow class
1840   --enable-artstd         use standard XPM icons in wxArtProvider
1841   --enable-arttango       use Tango icons in wxArtProvider
1842   --enable-bmpbutton      use wxBitmapButton class
1843   --enable-bmpcombobox    use wxBitmapComboBox class
1844   --enable-button         use wxButton class
1845   --enable-calendar       use wxCalendarCtrl class
1846   --enable-caret          use wxCaret class
1847   --enable-checkbox       use wxCheckBox class
1848   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1849   --enable-choice         use wxChoice class
1850   --enable-choicebook     use wxChoicebook class
1851   --enable-collpane       use wxCollapsiblePane class
1852   --enable-colourpicker   use wxColourPickerCtrl class
1853   --enable-combobox       use wxComboBox class
1854   --enable-comboctrl      use wxComboCtrl class
1855   --enable-commandlinkbutton      use wxCommmandLinkButton class
1856   --enable-dataviewctrl   use wxDataViewCtrl class
1857   --enable-datepick       use wxDatePickerCtrl class
1858   --enable-detect_sm      use code to detect X11 session manager
1859   --enable-dirpicker      use wxDirPickerCtrl class
1860   --enable-display        use wxDisplay class
1861   --enable-editablebox    use wxEditableListBox class
1862   --enable-filectrl       use wxFileCtrl class
1863   --enable-filepicker     use wxFilePickerCtrl class
1864   --enable-fontpicker     use wxFontPickerCtrl class
1865   --enable-gauge          use wxGauge class
1866   --enable-grid           use wxGrid class
1867   --enable-headerctrl     use wxHeaderCtrl class
1868   --enable-hyperlink      use wxHyperlinkCtrl class
1869   --enable-imaglist       use wxImageList class
1870   --enable-infobar        use wxInfoBar class
1871   --enable-listbook       use wxListbook class
1872   --enable-listbox        use wxListBox class
1873   --enable-listctrl       use wxListCtrl class
1874   --enable-notebook       use wxNotebook class
1875   --enable-notifmsg       use wxNotificationMessage class
1876   --enable-odcombobox     use wxOwnerDrawnComboBox class
1877   --enable-popupwin       use wxPopUpWindow class
1878   --enable-radiobox       use wxRadioBox class
1879   --enable-radiobtn       use wxRadioButton class
1880   --enable-richmsgdlg     use wxRichMessageDialog class
1881   --enable-richtooltip    use wxRichToolTip class
1882   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1883   --enable-sash           use wxSashWindow class
1884   --enable-scrollbar      use wxScrollBar class and scrollable windows
1885   --enable-searchctrl     use wxSearchCtrl class
1886   --enable-slider         use wxSlider class
1887   --enable-spinbtn        use wxSpinButton class
1888   --enable-spinctrl       use wxSpinCtrl class
1889   --enable-splitter       use wxSplitterWindow class
1890   --enable-statbmp        use wxStaticBitmap class
1891   --enable-statbox        use wxStaticBox class
1892   --enable-statline       use wxStaticLine class
1893   --enable-stattext       use wxStaticText class
1894   --enable-statusbar      use wxStatusBar class
1895   --enable-taskbaricon    use wxTaskBarIcon class
1896   --enable-tbarnative     use native wxToolBar class
1897   --enable-textctrl       use wxTextCtrl class
1898   --enable-timepick       use wxTimePickerCtrl class
1899   --enable-tipwindow      use wxTipWindow class
1900   --enable-togglebtn      use wxToggleButton class
1901   --enable-toolbar        use wxToolBar class
1902   --enable-toolbook       use wxToolbook class
1903   --enable-treebook       use wxTreebook class
1904   --enable-treectrl       use wxTreeCtrl class
1905   --enable-treelist       use wxTreeListCtrl class
1906   --enable-commondlg      use all common dialogs
1907   --enable-aboutdlg       use wxAboutBox
1908   --enable-choicedlg      use wxChoiceDialog
1909   --enable-coldlg         use wxColourDialog
1910   --enable-filedlg        use wxFileDialog
1911   --enable-finddlg        use wxFindReplaceDialog
1912   --enable-fontdlg        use wxFontDialog
1913   --enable-dirdlg         use wxDirDialog
1914   --enable-msgdlg         use wxMessageDialog
1915   --enable-numberdlg      use wxNumberEntryDialog
1916   --enable-splash         use wxSplashScreen
1917   --enable-textdlg        use wxTextDialog
1918   --enable-tipdlg         use startup tips
1919   --enable-progressdlg    use wxProgressDialog
1920   --enable-wizarddlg      use wxWizard
1921   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1922   --enable-miniframe      use wxMiniFrame class
1923   --enable-tooltips       use wxToolTip class
1924   --enable-splines        use spline drawing code
1925   --enable-mousewheel     use mousewheel
1926   --enable-validators     use wxValidator and derived classes
1927   --enable-busyinfo       use wxBusyInfo
1928   --enable-hotkey         use wxWindow::RegisterHotKey()
1929   --enable-joystick       use wxJoystick
1930   --enable-metafiles      use wxMetaFile
1931   --enable-dragimage      use wxDragImage
1932   --enable-accessibility  enable accessibility support
1933   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1934   --enable-dctransform    use wxDC::SetTransformMatrix and related
1935   --enable-webview-webkit use wxWebView WebKit backend
1936   --enable-palette        use wxPalette class
1937   --enable-image          use wxImage class
1938   --enable-gif            use gif images (GIF file format)
1939   --enable-pcx            use pcx images (PCX file format)
1940   --enable-tga            use tga images (TGA file format)
1941   --enable-iff            use iff images (IFF file format)
1942   --enable-pnm            use pnm images (PNM file format)
1943   --enable-xpm            use xpm images (XPM file format)
1944   --enable-ico_cur        use Windows ICO and CUR formats
1945   --enable-dccache        cache temporary wxDC objects (Win32 only)
1946   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1947   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1948   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1949   --enable-wxdib          use wxDIB class (Win32 only)
1950   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1951   --enable-autoidman      use automatic ids management
1952   --disable-largefile     omit support for large files
1953   --disable-gtktest       do not try to compile and run a test GTK+ program
1954   --disable-gtktest       Do not try to compile and run a test GTK program
1955   --disable-sdltest       Do not try to compile and run a test SDL program
1956   --enable-omf            use OMF object format (OS/2)
1957   --disable-dependency-tracking
1958                           don't use dependency tracking even if the compiler
1959                           can
1960   --disable-precomp-headers
1961                           don't use precompiled headers even if compiler can
1962
1963 Optional Packages:
1964   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1965   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1966   --without-subdirs       don't generate makefiles for samples/demos/...
1967   --with-flavour=NAME     specify a name to identify this build
1968   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1969   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1970   --with-motif            use Motif/Lesstif
1971   --with-osx_carbon       use Mac OS X (Carbon)
1972   --with-osx_cocoa        use Mac OS X (Cocoa)
1973   --with-osx_iphone       use iPhone OS X port
1974   --with-osx              use Mac OS X (default port, currently Carbon)
1975   --with-carbon           same as --with-osx_carbon
1976   --with-cocoa            same as --with-osx_cocoa
1977   --with-iphone           same as --with-osx_iphone
1978   --with-mac              same as --with-osx
1979   --with-old_cocoa        use old, deprecated, Cocoa port
1980   --with-wine             use Wine
1981   --with-msw              use MS-Windows
1982   --with-pm               use OS/2 Presentation Manager
1983   --with-directfb         use DirectFB
1984   --with-microwin         use MicroWindows
1985   --with-x11              use X11
1986   --with-libpng           use libpng (PNG image format)
1987   --with-libjpeg          use libjpeg (JPEG file format)
1988   --with-libtiff          use libtiff (TIFF file format)
1989   --with-libxpm           use libxpm (XPM file format)
1990   --with-libiconv         use libiconv (character conversion)
1991   --with-libmspack        use libmspack (CHM help files loading)
1992   --without-gtkprint      don't use GTK printing support
1993   --without-gnomeprint    don't use GNOME printing libraries
1994   --with-gnomevfs         use GNOME VFS for associating MIME types
1995   --with-hildon           use Hildon framework for Nokia 770/800/810
1996   --with-opengl           use OpenGL (or Mesa)
1997   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1998   --with-sdl              use SDL for audio on Unix
1999   --with-regex            enable support for wxRegEx class
2000   --with-zlib             use zlib for LZW compression
2001   --with-expat            enable XML support using expat parser
2002   --with-macosx-sdk=PATH  use an OS X SDK at PATH
2003   --with-macosx-version-min=VER   build binaries which require at least this OS X version
2004   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
2005   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
2006   --with-x                use the X Window System
2007   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
2008   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2009   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2010   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2011   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2012
2013 Some influential environment variables:
2014   CC          C compiler command
2015   CFLAGS      C compiler flags
2016   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2017               nonstandard directory <lib dir>
2018   LIBS        libraries to pass to the linker, e.g. -l<library>
2019   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2020               you have headers in a nonstandard directory <include dir>
2021   CPP         C preprocessor
2022   CXX         C++ compiler command
2023   CXXFLAGS    C++ compiler flags
2024   CXXCPP      C++ preprocessor
2025   PKG_CONFIG  path to pkg-config utility
2026   DIRECTFB_CFLAGS
2027               C compiler flags for DIRECTFB, overriding pkg-config
2028   DIRECTFB_LIBS
2029               linker flags for DIRECTFB, overriding pkg-config
2030   XMKMF       Path to xmkmf, Makefile generator for X Window System
2031   PANGOX_CFLAGS
2032               C compiler flags for PANGOX, overriding pkg-config
2033   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2034   PANGOFT2_CFLAGS
2035               C compiler flags for PANGOFT2, overriding pkg-config
2036   PANGOFT2_LIBS
2037               linker flags for PANGOFT2, overriding pkg-config
2038   PANGOXFT_CFLAGS
2039               C compiler flags for PANGOXFT, overriding pkg-config
2040   PANGOXFT_LIBS
2041               linker flags for PANGOXFT, overriding pkg-config
2042   Xinerama_CFLAGS
2043               C compiler flags for Xinerama, overriding pkg-config
2044   Xinerama_LIBS
2045               linker flags for Xinerama, overriding pkg-config
2046   Xxf86vm_CFLAGS
2047               C compiler flags for Xxf86vm, overriding pkg-config
2048   Xxf86vm_LIBS
2049               linker flags for Xxf86vm, overriding pkg-config
2050   SM_CFLAGS   C compiler flags for SM, overriding pkg-config
2051   SM_LIBS     linker flags for SM, overriding pkg-config
2052   GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2053   GL_LIBS     linker flags for GL, overriding pkg-config
2054   GLU_CFLAGS  C compiler flags for GLU, overriding pkg-config
2055   GLU_LIBS    linker flags for GLU, overriding pkg-config
2056   MesaGL_CFLAGS
2057               C compiler flags for MesaGL, overriding pkg-config
2058   MesaGL_LIBS linker flags for MesaGL, overriding pkg-config
2059   GTKPRINT_CFLAGS
2060               C compiler flags for GTKPRINT, overriding pkg-config
2061   GTKPRINT_LIBS
2062               linker flags for GTKPRINT, overriding pkg-config
2063   LIBGNOMEPRINTUI_CFLAGS
2064               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2065   LIBGNOMEPRINTUI_LIBS
2066               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2067   GNOMEVFS_CFLAGS
2068               C compiler flags for GNOMEVFS, overriding pkg-config
2069   GNOMEVFS_LIBS
2070               linker flags for GNOMEVFS, overriding pkg-config
2071   HILDON_CFLAGS
2072               C compiler flags for HILDON, overriding pkg-config
2073   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2074   HILDON2_CFLAGS
2075               C compiler flags for HILDON2, overriding pkg-config
2076   HILDON2_LIBS
2077               linker flags for HILDON2, overriding pkg-config
2078   WEBKIT_CFLAGS
2079               C compiler flags for WEBKIT, overriding pkg-config
2080   WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
2081   CAIRO_CFLAGS
2082               C compiler flags for CAIRO, overriding pkg-config
2083   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2084   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2085   GST_LIBS    linker flags for GST, overriding pkg-config
2086
2087 Use these variables to override the choices made by `configure' or to help
2088 it to find libraries and programs with nonstandard names/locations.
2089
2090 Report bugs to <wx-dev@lists.wxwidgets.org>.
2091 _ACEOF
2092 ac_status=$?
2093 fi
2094
2095 if test "$ac_init_help" = "recursive"; then
2096   # If there are subdirs, report their specific --help.
2097   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2098     test -d "$ac_dir" || continue
2099     ac_builddir=.
2100
2101 case "$ac_dir" in
2102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103 *)
2104   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2105   # A ".." for each directory in $ac_dir_suffix.
2106   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2107   case $ac_top_builddir_sub in
2108   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110   esac ;;
2111 esac
2112 ac_abs_top_builddir=$ac_pwd
2113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114 # for backward compatibility:
2115 ac_top_builddir=$ac_top_build_prefix
2116
2117 case $srcdir in
2118   .)  # We are building in place.
2119     ac_srcdir=.
2120     ac_top_srcdir=$ac_top_builddir_sub
2121     ac_abs_top_srcdir=$ac_pwd ;;
2122   [\\/]* | ?:[\\/]* )  # Absolute name.
2123     ac_srcdir=$srcdir$ac_dir_suffix;
2124     ac_top_srcdir=$srcdir
2125     ac_abs_top_srcdir=$srcdir ;;
2126   *) # Relative name.
2127     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128     ac_top_srcdir=$ac_top_build_prefix$srcdir
2129     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130 esac
2131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132
2133     cd "$ac_dir" || { ac_status=$?; continue; }
2134     # Check for guested configure.
2135     if test -f "$ac_srcdir/configure.gnu"; then
2136       echo &&
2137       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138     elif test -f "$ac_srcdir/configure"; then
2139       echo &&
2140       $SHELL "$ac_srcdir/configure" --help=recursive
2141     else
2142       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143     fi || ac_status=$?
2144     cd "$ac_pwd" || { ac_status=$?; break; }
2145   done
2146 fi
2147
2148 test -n "$ac_init_help" && exit $ac_status
2149 if $ac_init_version; then
2150   cat <<\_ACEOF
2151 wxWidgets configure 2.9.4
2152 generated by GNU Autoconf 2.61
2153
2154 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2155 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2156 This configure script is free software; the Free Software Foundation
2157 gives unlimited permission to copy, distribute and modify it.
2158 _ACEOF
2159   exit
2160 fi
2161 cat >config.log <<_ACEOF
2162 This file contains any messages produced by compilers while
2163 running configure, to aid debugging if configure makes a mistake.
2164
2165 It was created by wxWidgets $as_me 2.9.4, which was
2166 generated by GNU Autoconf 2.61.  Invocation command line was
2167
2168   $ $0 $@
2169
2170 _ACEOF
2171 exec 5>>config.log
2172 {
2173 cat <<_ASUNAME
2174 ## --------- ##
2175 ## Platform. ##
2176 ## --------- ##
2177
2178 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2179 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2180 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2181 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2182 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183
2184 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2185 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2186
2187 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2188 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2189 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2190 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2191 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2192 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2193 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2194
2195 _ASUNAME
2196
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200   IFS=$as_save_IFS
2201   test -z "$as_dir" && as_dir=.
2202   echo "PATH: $as_dir"
2203 done
2204 IFS=$as_save_IFS
2205
2206 } >&5
2207
2208 cat >&5 <<_ACEOF
2209
2210
2211 ## ----------- ##
2212 ## Core tests. ##
2213 ## ----------- ##
2214
2215 _ACEOF
2216
2217
2218 # Keep a trace of the command line.
2219 # Strip out --no-create and --no-recursion so they do not pile up.
2220 # Strip out --silent because we don't want to record it for future runs.
2221 # Also quote any args containing shell meta-characters.
2222 # Make two passes to allow for proper duplicate-argument suppression.
2223 ac_configure_args=
2224 ac_configure_args0=
2225 ac_configure_args1=
2226 ac_must_keep_next=false
2227 for ac_pass in 1 2
2228 do
2229   for ac_arg
2230   do
2231     case $ac_arg in
2232     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2233     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2234     | -silent | --silent | --silen | --sile | --sil)
2235       continue ;;
2236     *\'*)
2237       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238     esac
2239     case $ac_pass in
2240     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2241     2)
2242       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2243       if test $ac_must_keep_next = true; then
2244         ac_must_keep_next=false # Got value, back to normal.
2245       else
2246         case $ac_arg in
2247           *=* | --config-cache | -C | -disable-* | --disable-* \
2248           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2249           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2250           | -with-* | --with-* | -without-* | --without-* | --x)
2251             case "$ac_configure_args0 " in
2252               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253             esac
2254             ;;
2255           -* ) ac_must_keep_next=true ;;
2256         esac
2257       fi
2258       ac_configure_args="$ac_configure_args '$ac_arg'"
2259       ;;
2260     esac
2261   done
2262 done
2263 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2264 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2265
2266 # When interrupted or exit'd, cleanup temporary files, and complete
2267 # config.log.  We remove comments because anyway the quotes in there
2268 # would cause problems or look ugly.
2269 # WARNING: Use '\'' to represent an apostrophe within the trap.
2270 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2271 trap 'exit_status=$?
2272   # Save into config.log some information that might help in debugging.
2273   {
2274     echo
2275
2276     cat <<\_ASBOX
2277 ## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##
2280 _ASBOX
2281     echo
2282     # The following way of writing the cache mishandles newlines in values,
2283 (
2284   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2285     eval ac_val=\$$ac_var
2286     case $ac_val in #(
2287     *${as_nl}*)
2288       case $ac_var in #(
2289       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2290 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2291       esac
2292       case $ac_var in #(
2293       _ | IFS | as_nl) ;; #(
2294       *) $as_unset $ac_var ;;
2295       esac ;;
2296     esac
2297   done
2298   (set) 2>&1 |
2299     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300     *${as_nl}ac_space=\ *)
2301       sed -n \
2302         "s/'\''/'\''\\\\'\'''\''/g;
2303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304       ;; #(
2305     *)
2306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307       ;;
2308     esac |
2309     sort
2310 )
2311     echo
2312
2313     cat <<\_ASBOX
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2317 _ASBOX
2318     echo
2319     for ac_var in $ac_subst_vars
2320     do
2321       eval ac_val=\$$ac_var
2322       case $ac_val in
2323       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324       esac
2325       echo "$ac_var='\''$ac_val'\''"
2326     done | sort
2327     echo
2328
2329     if test -n "$ac_subst_files"; then
2330       cat <<\_ASBOX
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2334 _ASBOX
2335       echo
2336       for ac_var in $ac_subst_files
2337       do
2338         eval ac_val=\$$ac_var
2339         case $ac_val in
2340         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341         esac
2342         echo "$ac_var='\''$ac_val'\''"
2343       done | sort
2344       echo
2345     fi
2346
2347     if test -s confdefs.h; then
2348       cat <<\_ASBOX
2349 ## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##
2352 _ASBOX
2353       echo
2354       cat confdefs.h
2355       echo
2356     fi
2357     test "$ac_signal" != 0 &&
2358       echo "$as_me: caught signal $ac_signal"
2359     echo "$as_me: exit $exit_status"
2360   } >&5
2361   rm -f core *.core core.conftest.* &&
2362     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363     exit $exit_status
2364 ' 0
2365 for ac_signal in 1 2 13 15; do
2366   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2367 done
2368 ac_signal=0
2369
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2372
2373 # Predefined preprocessor variables.
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 _ACEOF
2378
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2383
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2388
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 _ACEOF
2393
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 _ACEOF
2398
2399
2400 # Let the site file select an alternate cache file if it wants to.
2401 # Prefer explicitly selected file to automatically selected ones.
2402 if test -n "$CONFIG_SITE"; then
2403   set x "$CONFIG_SITE"
2404 elif test "x$prefix" != xNONE; then
2405   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2406 else
2407   set x "$ac_default_prefix/share/config.site" \
2408         "$ac_default_prefix/etc/config.site"
2409 fi
2410 shift
2411 for ac_site_file
2412 do
2413   if test -r "$ac_site_file"; then
2414     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2415 echo "$as_me: loading site script $ac_site_file" >&6;}
2416     sed 's/^/| /' "$ac_site_file" >&5
2417     . "$ac_site_file"
2418   fi
2419 done
2420
2421 if test -r "$cache_file"; then
2422   # Some versions of bash will fail to source /dev/null (special
2423   # files actually), so we avoid doing that.
2424   if test -f "$cache_file"; then
2425     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2426 echo "$as_me: loading cache $cache_file" >&6;}
2427     case $cache_file in
2428       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2429       *)                      . "./$cache_file";;
2430     esac
2431   fi
2432 else
2433   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2434 echo "$as_me: creating cache $cache_file" >&6;}
2435   >$cache_file
2436 fi
2437
2438 # Check that the precious variables saved in the cache have kept the same
2439 # value.
2440 ac_cache_corrupted=false
2441 for ac_var in $ac_precious_vars; do
2442   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2443   eval ac_new_set=\$ac_env_${ac_var}_set
2444   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2445   eval ac_new_val=\$ac_env_${ac_var}_value
2446   case $ac_old_set,$ac_new_set in
2447     set,)
2448       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2449 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2450       ac_cache_corrupted=: ;;
2451     ,set)
2452       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2453 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2454       ac_cache_corrupted=: ;;
2455     ,);;
2456     *)
2457       if test "x$ac_old_val" != "x$ac_new_val"; then
2458         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2461 echo "$as_me:   former value:  $ac_old_val" >&2;}
2462         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2463 echo "$as_me:   current value: $ac_new_val" >&2;}
2464         ac_cache_corrupted=:
2465       fi;;
2466   esac
2467   # Pass precious variables to config.status.
2468   if test "$ac_new_set" = set; then
2469     case $ac_new_val in
2470     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471     *) ac_arg=$ac_var=$ac_new_val ;;
2472     esac
2473     case " $ac_configure_args " in
2474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2476     esac
2477   fi
2478 done
2479 if $ac_cache_corrupted; then
2480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2484    { (exit 1); exit 1; }; }
2485 fi
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511 ac_ext=c
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516
2517
2518
2519
2520
2521 ac_aux_dir=
2522 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2523   if test -f "$ac_dir/install-sh"; then
2524     ac_aux_dir=$ac_dir
2525     ac_install_sh="$ac_aux_dir/install-sh -c"
2526     break
2527   elif test -f "$ac_dir/install.sh"; then
2528     ac_aux_dir=$ac_dir
2529     ac_install_sh="$ac_aux_dir/install.sh -c"
2530     break
2531   elif test -f "$ac_dir/shtool"; then
2532     ac_aux_dir=$ac_dir
2533     ac_install_sh="$ac_aux_dir/shtool install -c"
2534     break
2535   fi
2536 done
2537 if test -z "$ac_aux_dir"; then
2538   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2539 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2540    { (exit 1); exit 1; }; }
2541 fi
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2550
2551
2552 # Make sure we can run config.sub.
2553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2554   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2555 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2556    { (exit 1); exit 1; }; }
2557
2558 { echo "$as_me:$LINENO: checking build system type" >&5
2559 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2560 if test "${ac_cv_build+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   ac_build_alias=$build_alias
2564 test "x$ac_build_alias" = x &&
2565   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566 test "x$ac_build_alias" = x &&
2567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2569    { (exit 1); exit 1; }; }
2570 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2571   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2572 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2573    { (exit 1); exit 1; }; }
2574
2575 fi
2576 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2577 echo "${ECHO_T}$ac_cv_build" >&6; }
2578 case $ac_cv_build in
2579 *-*-*) ;;
2580 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2581 echo "$as_me: error: invalid value of canonical build" >&2;}
2582    { (exit 1); exit 1; }; };;
2583 esac
2584 build=$ac_cv_build
2585 ac_save_IFS=$IFS; IFS='-'
2586 set x $ac_cv_build
2587 shift
2588 build_cpu=$1
2589 build_vendor=$2
2590 shift; shift
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2593 build_os=$*
2594 IFS=$ac_save_IFS
2595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2596
2597
2598 { echo "$as_me:$LINENO: checking host system type" >&5
2599 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2600 if test "${ac_cv_host+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test "x$host_alias" = x; then
2604   ac_cv_host=$ac_cv_build
2605 else
2606   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2607     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2608 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2609    { (exit 1); exit 1; }; }
2610 fi
2611
2612 fi
2613 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2614 echo "${ECHO_T}$ac_cv_host" >&6; }
2615 case $ac_cv_host in
2616 *-*-*) ;;
2617 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2618 echo "$as_me: error: invalid value of canonical host" >&2;}
2619    { (exit 1); exit 1; }; };;
2620 esac
2621 host=$ac_cv_host
2622 ac_save_IFS=$IFS; IFS='-'
2623 set x $ac_cv_host
2624 shift
2625 host_cpu=$1
2626 host_vendor=$2
2627 shift; shift
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2630 host_os=$*
2631 IFS=$ac_save_IFS
2632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2633
2634
2635
2636 if test "$cross_compiling" != "no"; then
2637     HOST_PREFIX="${host_alias}-"
2638     HOST_SUFFIX="-$host_alias"
2639 else
2640     HOST_PREFIX=
2641     HOST_SUFFIX=
2642 fi
2643
2644
2645 wx_major_version_number=2
2646 wx_minor_version_number=9
2647 wx_release_number=4
2648 wx_subrelease_number=0
2649
2650 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2651 WX_VERSION=$WX_RELEASE.$wx_release_number
2652 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2653
2654 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2655
2656
2657 wx_top_builddir="`pwd`"
2658
2659
2660
2661
2662 USE_UNIX=1
2663 USE_OS2=0
2664 USE_WIN32=0
2665 USE_DOS=0
2666 USE_BEOS=0
2667 USE_MAC=0
2668
2669 USE_AIX=
2670 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2671 USE_GNU=                            USE_HPUX=
2672 USE_LINUX=
2673 USE_NETBSD=
2674 USE_OPENBSD=
2675 USE_OSF=                            USE_SGI=
2676 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2677 USE_ULTRIX=
2678 USE_UNIXWARE=
2679
2680 USE_ALPHA=
2681
2682 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2683
2684 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MICROWIN MOTIF MSW PM X11 DFB"
2685
2686 DEFAULT_wxUSE_OLD_COCOA=0
2687 DEFAULT_wxUSE_GTK=0
2688 DEFAULT_wxUSE_OSX_CARBON=0
2689 DEFAULT_wxUSE_OSX_COCOA=0
2690 DEFAULT_wxUSE_OSX_IPHONE=0
2691 DEFAULT_wxUSE_MICROWIN=0
2692 DEFAULT_wxUSE_MOTIF=0
2693 DEFAULT_wxUSE_MSW=0
2694 DEFAULT_wxUSE_PM=0
2695 DEFAULT_wxUSE_X11=0
2696 DEFAULT_wxUSE_DFB=0
2697
2698 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2699 DEFAULT_DEFAULT_wxUSE_GTK=0
2700 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2701 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2702 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2703 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2704 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2705 DEFAULT_DEFAULT_wxUSE_MSW=0
2706 DEFAULT_DEFAULT_wxUSE_PM=0
2707 DEFAULT_DEFAULT_wxUSE_X11=0
2708 DEFAULT_DEFAULT_wxUSE_DFB=0
2709
2710 PROGRAM_EXT=
2711 SAMPLES_RPATH_FLAG=
2712 DYLIB_RPATH_INSTALL=
2713 DYLIB_RPATH_POSTLINK=
2714
2715 DEFAULT_STD_FLAG=yes
2716
2717 case "${host}" in
2718   *-hp-hpux* )
2719     USE_HPUX=1
2720     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2721     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __HPUX__ 1
2724 _ACEOF
2725
2726
2727             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2728   ;;
2729   *-*-linux* )
2730     USE_LINUX=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __LINUX__ 1
2733 _ACEOF
2734
2735     TMP=`uname -m`
2736     if test "x$TMP" = "xalpha"; then
2737       USE_ALPHA=1
2738       cat >>confdefs.h <<\_ACEOF
2739 #define __ALPHA__ 1
2740 _ACEOF
2741
2742     fi
2743     DEFAULT_DEFAULT_wxUSE_GTK=1
2744   ;;
2745   *-*-gnu* | *-*-k*bsd*-gnu )
2746     USE_GNU=1
2747     TMP=`uname -m`
2748     if test "x$TMP" = "xalpha"; then
2749       USE_ALPHA=1
2750       cat >>confdefs.h <<\_ACEOF
2751 #define __ALPHA__ 1
2752 _ACEOF
2753
2754     fi
2755     DEFAULT_DEFAULT_wxUSE_GTK=1
2756   ;;
2757   *-*-irix5* | *-*-irix6* )
2758     USE_SGI=1
2759     USE_SVR4=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __SGI__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SVR4__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769   ;;
2770   *-*-qnx*)
2771     USE_QNX=1
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __QNX__ 1
2774 _ACEOF
2775
2776     DEFAULT_DEFAULT_wxUSE_X11=1
2777   ;;
2778   *-*-solaris2* )
2779     USE_SUN=1
2780     USE_SOLARIS=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SUN__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SOLARIS__ 1
2788 _ACEOF
2789
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __SVR4__ 1
2792 _ACEOF
2793
2794     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2795     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2796   ;;
2797   *-*-sunos4* )
2798     USE_SUN=1
2799     USE_SUNOS=1
2800     USE_BSD=1
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SUN__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SUNOS__ 1
2807 _ACEOF
2808
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __BSD__ 1
2811 _ACEOF
2812
2813     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2814   ;;
2815   *-*-freebsd*)
2816     USE_BSD=1
2817     USE_FREEBSD=1
2818     cat >>confdefs.h <<\_ACEOF
2819 #define __FREEBSD__ 1
2820 _ACEOF
2821
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __BSD__ 1
2824 _ACEOF
2825
2826     DEFAULT_DEFAULT_wxUSE_GTK=1
2827   ;;
2828   *-*-openbsd*|*-*-mirbsd*)
2829     USE_BSD=1
2830     USE_OPENBSD=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __OPENBSD__ 1
2833 _ACEOF
2834
2835     cat >>confdefs.h <<\_ACEOF
2836 #define __BSD__ 1
2837 _ACEOF
2838
2839     DEFAULT_DEFAULT_wxUSE_GTK=1
2840   ;;
2841   *-*-netbsd*)
2842     USE_BSD=1
2843     USE_NETBSD=1
2844     cat >>confdefs.h <<\_ACEOF
2845 #define __NETBSD__ 1
2846 _ACEOF
2847
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __BSD__ 1
2850 _ACEOF
2851
2852     DEFAULT_DEFAULT_wxUSE_GTK=1
2853     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2854
2855             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2856   ;;
2857   *-*-osf* )
2858     USE_ALPHA=1
2859     USE_OSF=1
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __ALPHA__ 1
2862 _ACEOF
2863
2864     cat >>confdefs.h <<\_ACEOF
2865 #define __OSF__ 1
2866 _ACEOF
2867
2868     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2869     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2870   ;;
2871   *-*-dgux5* )
2872     USE_ALPHA=1
2873     USE_SVR4=1
2874     cat >>confdefs.h <<\_ACEOF
2875 #define __ALPHA__ 1
2876 _ACEOF
2877
2878     cat >>confdefs.h <<\_ACEOF
2879 #define __SVR4__ 1
2880 _ACEOF
2881
2882     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2883   ;;
2884   *-*-sysv5* )
2885     USE_SYSV=1
2886     USE_SVR4=1
2887     cat >>confdefs.h <<\_ACEOF
2888 #define __SYSV__ 1
2889 _ACEOF
2890
2891     cat >>confdefs.h <<\_ACEOF
2892 #define __SVR4__ 1
2893 _ACEOF
2894
2895     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2896   ;;
2897   *-*-aix* )
2898     USE_AIX=1
2899     USE_SYSV=1
2900     USE_SVR4=1
2901     cat >>confdefs.h <<\_ACEOF
2902 #define __AIX__ 1
2903 _ACEOF
2904
2905     cat >>confdefs.h <<\_ACEOF
2906 #define __SYSV__ 1
2907 _ACEOF
2908
2909     cat >>confdefs.h <<\_ACEOF
2910 #define __SVR4__ 1
2911 _ACEOF
2912
2913     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2914   ;;
2915
2916   *-*-*UnixWare*)
2917     USE_SYSV=1
2918     USE_SVR4=1
2919     USE_UNIXWARE=1
2920     cat >>confdefs.h <<\_ACEOF
2921 #define __UNIXWARE__ 1
2922 _ACEOF
2923
2924   ;;
2925
2926   *-*-cygwin* | *-*-mingw32* )
2927                 PROGRAM_EXT=".exe"
2928     DEFAULT_DEFAULT_wxUSE_MSW=1
2929   ;;
2930
2931   *-pc-msdosdjgpp )
2932     USE_UNIX=0
2933     USE_DOS=1
2934     cat >>confdefs.h <<\_ACEOF
2935 #define __DOS__ 1
2936 _ACEOF
2937
2938     PROGRAM_EXT=".exe"
2939   ;;
2940
2941   *-pc-os2_emx | *-pc-os2-emx )
2942     cat >>confdefs.h <<\_ACEOF
2943 #define __EMX__ 1
2944 _ACEOF
2945
2946     USE_OS2=1
2947     cat >>confdefs.h <<\_ACEOF
2948 #define __OS2__ 1
2949 _ACEOF
2950
2951     PROGRAM_EXT=".exe"
2952     DEFAULT_DEFAULT_wxUSE_PM=1
2953         CXX=gcc
2954     LDFLAGS="$LDFLAGS -Zcrtdll"
2955                         ac_executable_extensions=".exe"
2956     export ac_executable_extensions
2957             ac_save_IFS="$IFS"
2958     IFS='\\'
2959     ac_TEMP_PATH=
2960     for ac_dir in $PATH; do
2961       IFS=$ac_save_IFS
2962       if test -z "$ac_TEMP_PATH"; then
2963         ac_TEMP_PATH="$ac_dir"
2964       else
2965         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2966       fi
2967     done
2968     export PATH="$ac_TEMP_PATH"
2969     unset ac_TEMP_PATH
2970     DEFAULT_STD_FLAG=no
2971   ;;
2972
2973   arm-apple-darwin*)
2974         USE_BSD=1
2975     USE_DARWIN=1
2976     cat >>confdefs.h <<\_ACEOF
2977 #define __BSD__ 1
2978 _ACEOF
2979
2980     cat >>confdefs.h <<\_ACEOF
2981 #define __DARWIN__ 1
2982 _ACEOF
2983
2984     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2985   ;;
2986
2987   *-*-darwin* )
2988         USE_BSD=1
2989     USE_DARWIN=1
2990     cat >>confdefs.h <<\_ACEOF
2991 #define __BSD__ 1
2992 _ACEOF
2993
2994     cat >>confdefs.h <<\_ACEOF
2995 #define __DARWIN__ 1
2996 _ACEOF
2997
2998     cat >>confdefs.h <<\_ACEOF
2999 #define TARGET_CARBON 1
3000 _ACEOF
3001
3002     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
3003   ;;
3004
3005   *-*-beos* )
3006         USE_BEOS=1
3007     cat >>confdefs.h <<\_ACEOF
3008 #define __BEOS__ 1
3009 _ACEOF
3010
3011   ;;
3012
3013   *)
3014     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
3015 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
3016     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
3017 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
3018
3019     DEFAULT_DEFAULT_wxUSE_X11=1
3020     DEFAULT_wxUSE_SHARED=no
3021 esac
3022
3023
3024
3025 DEFAULT_wxUSE_ALL_FEATURES=yes
3026
3027 DEFAULT_wxUSE_STD_CONTAINERS=no
3028 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3029 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3030
3031 DEFAULT_wxUSE_DMALLOC=no
3032 DEFAULT_wxUSE_LIBGNOMEVFS=no
3033 DEFAULT_wxUSE_LIBHILDON=no
3034 DEFAULT_wxUSE_LIBHILDON2=no
3035 DEFAULT_wxUSE_LIBMSPACK=no
3036 DEFAULT_wxUSE_LIBSDL=no
3037
3038 DEFAULT_wxUSE_ACCESSIBILITY=no
3039 DEFAULT_wxUSE_IPV6=no
3040 DEFAULT_wxUSE_GSTREAMER8=no
3041 DEFAULT_wxUSE_UNICODE_UTF8=no
3042 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3043
3044 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3045 DEFAULT_wxUSE_OPENGL=auto
3046 DEFAULT_wxUSE_MEDIACTRL=auto
3047 DEFAULT_wxUSE_COMPILER_TLS=auto
3048 DEFAULT_wxUSE_HOTKEY=auto
3049 DEFAULT_wxUSE_METAFILE=auto
3050
3051 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3052 DEFAULT_wxUSE_MAC_ARCH=no
3053
3054 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3055
3056 DEFAULT_wxUSE_GTK2=yes
3057
3058 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3059
3060
3061
3062
3063
3064           enablestring=disable
3065           defaultval=
3066           if test -z "$defaultval"; then
3067               if test x"$enablestring" = xdisable; then
3068                   defaultval=yes
3069               else
3070                   defaultval=no
3071               fi
3072           fi
3073
3074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3075 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3076           # Check whether --enable-gui was given.
3077 if test "${enable_gui+set}" = set; then
3078   enableval=$enable_gui;
3079                           if test "$enableval" = yes; then
3080                             wx_cv_use_gui='wxUSE_GUI=yes'
3081                           else
3082                             wx_cv_use_gui='wxUSE_GUI=no'
3083                           fi
3084
3085 else
3086
3087                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3088
3089 fi
3090
3091
3092           eval "$wx_cv_use_gui"
3093
3094           if test x"$enablestring" = xdisable; then
3095             if test $wxUSE_GUI = no; then
3096               result=yes
3097             else
3098               result=no
3099             fi
3100           else
3101             result=$wxUSE_GUI
3102           fi
3103
3104           { echo "$as_me:$LINENO: result: $result" >&5
3105 echo "${ECHO_T}$result" >&6; }
3106
3107
3108           enablestring=
3109           defaultval=
3110           if test -z "$defaultval"; then
3111               if test x"$enablestring" = xdisable; then
3112                   defaultval=yes
3113               else
3114                   defaultval=no
3115               fi
3116           fi
3117
3118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3119 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3120           # Check whether --enable-monolithic was given.
3121 if test "${enable_monolithic+set}" = set; then
3122   enableval=$enable_monolithic;
3123                           if test "$enableval" = yes; then
3124                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3125                           else
3126                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3127                           fi
3128
3129 else
3130
3131                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3132
3133 fi
3134
3135
3136           eval "$wx_cv_use_monolithic"
3137
3138           if test x"$enablestring" = xdisable; then
3139             if test $wxUSE_MONOLITHIC = no; then
3140               result=yes
3141             else
3142               result=no
3143             fi
3144           else
3145             result=$wxUSE_MONOLITHIC
3146           fi
3147
3148           { echo "$as_me:$LINENO: result: $result" >&5
3149 echo "${ECHO_T}$result" >&6; }
3150
3151
3152           enablestring=
3153           defaultval=
3154           if test -z "$defaultval"; then
3155               if test x"$enablestring" = xdisable; then
3156                   defaultval=yes
3157               else
3158                   defaultval=no
3159               fi
3160           fi
3161
3162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3163 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3164           # Check whether --enable-plugins was given.
3165 if test "${enable_plugins+set}" = set; then
3166   enableval=$enable_plugins;
3167                           if test "$enableval" = yes; then
3168                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3169                           else
3170                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3171                           fi
3172
3173 else
3174
3175                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3176
3177 fi
3178
3179
3180           eval "$wx_cv_use_plugins"
3181
3182           if test x"$enablestring" = xdisable; then
3183             if test $wxUSE_PLUGINS = no; then
3184               result=yes
3185             else
3186               result=no
3187             fi
3188           else
3189             result=$wxUSE_PLUGINS
3190           fi
3191
3192           { echo "$as_me:$LINENO: result: $result" >&5
3193 echo "${ECHO_T}$result" >&6; }
3194
3195
3196           withstring=without
3197           defaultval=$wxUSE_ALL_FEATURES
3198           if test -z "$defaultval"; then
3199               if test x"$withstring" = xwithout; then
3200                   defaultval=yes
3201               else
3202                   defaultval=no
3203               fi
3204           fi
3205           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3206 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3207
3208 # Check whether --with-subdirs was given.
3209 if test "${with_subdirs+set}" = set; then
3210   withval=$with_subdirs;
3211                         if test "$withval" = yes; then
3212                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3213                         else
3214                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3215                         fi
3216
3217 else
3218
3219                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3220
3221 fi
3222
3223
3224           eval "$wx_cv_use_subdirs"
3225
3226           if test x"$withstring" = xwithout; then
3227             if test $wxWITH_SUBDIRS = yes; then
3228               result=no
3229             else
3230               result=yes
3231             fi
3232           else
3233             result=$wxWITH_SUBDIRS
3234           fi
3235
3236           { echo "$as_me:$LINENO: result: $result" >&5
3237 echo "${ECHO_T}$result" >&6; }
3238
3239
3240 # Check whether --with-flavour was given.
3241 if test "${with_flavour+set}" = set; then
3242   withval=$with_flavour; WX_FLAVOUR="$withval"
3243 fi
3244
3245
3246           enablestring=
3247           defaultval=
3248           if test -z "$defaultval"; then
3249               if test x"$enablestring" = xdisable; then
3250                   defaultval=yes
3251               else
3252                   defaultval=no
3253               fi
3254           fi
3255
3256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3257 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3258           # Check whether --enable-official_build was given.
3259 if test "${enable_official_build+set}" = set; then
3260   enableval=$enable_official_build;
3261                           if test "$enableval" = yes; then
3262                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3263                           else
3264                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3265                           fi
3266
3267 else
3268
3269                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3270
3271 fi
3272
3273
3274           eval "$wx_cv_use_official_build"
3275
3276           if test x"$enablestring" = xdisable; then
3277             if test $wxUSE_OFFICIAL_BUILD = no; then
3278               result=yes
3279             else
3280               result=no
3281             fi
3282           else
3283             result=$wxUSE_OFFICIAL_BUILD
3284           fi
3285
3286           { echo "$as_me:$LINENO: result: $result" >&5
3287 echo "${ECHO_T}$result" >&6; }
3288
3289 # Check whether --enable-vendor was given.
3290 if test "${enable_vendor+set}" = set; then
3291   enableval=$enable_vendor; VENDOR="$enableval"
3292 fi
3293
3294 if test "x$VENDOR" = "x"; then
3295     VENDOR="custom"
3296 fi
3297
3298
3299           enablestring=disable
3300           defaultval=
3301           if test -z "$defaultval"; then
3302               if test x"$enablestring" = xdisable; then
3303                   defaultval=yes
3304               else
3305                   defaultval=no
3306               fi
3307           fi
3308
3309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3310 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3311           # Check whether --enable-all-features was given.
3312 if test "${enable_all_features+set}" = set; then
3313   enableval=$enable_all_features;
3314                           if test "$enableval" = yes; then
3315                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3316                           else
3317                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3318                           fi
3319
3320 else
3321
3322                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3323
3324 fi
3325
3326
3327           eval "$wx_cv_use_all_features"
3328
3329           if test x"$enablestring" = xdisable; then
3330             if test $wxUSE_ALL_FEATURES = no; then
3331               result=yes
3332             else
3333               result=no
3334             fi
3335           else
3336             result=$wxUSE_ALL_FEATURES
3337           fi
3338
3339           { echo "$as_me:$LINENO: result: $result" >&5
3340 echo "${ECHO_T}$result" >&6; }
3341
3342
3343 if test "$wxUSE_ALL_FEATURES" = "no"; then
3344                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3345     DEFAULT_wxUSE_MEDIACTRL=no
3346 fi
3347
3348
3349 if test "$wxUSE_GUI" = "yes"; then
3350
3351
3352           enablestring=
3353           defaultval=
3354           if test -z "$defaultval"; then
3355               if test x"$enablestring" = xdisable; then
3356                   defaultval=yes
3357               else
3358                   defaultval=no
3359               fi
3360           fi
3361
3362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3363 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3364           # Check whether --enable-universal was given.
3365 if test "${enable_universal+set}" = set; then
3366   enableval=$enable_universal;
3367                           if test "$enableval" = yes; then
3368                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3369                           else
3370                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3371                           fi
3372
3373 else
3374
3375                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3376
3377 fi
3378
3379
3380           eval "$wx_cv_use_universal"
3381
3382           if test x"$enablestring" = xdisable; then
3383             if test $wxUSE_UNIVERSAL = no; then
3384               result=yes
3385             else
3386               result=no
3387             fi
3388           else
3389             result=$wxUSE_UNIVERSAL
3390           fi
3391
3392           { echo "$as_me:$LINENO: result: $result" >&5
3393 echo "${ECHO_T}$result" >&6; }
3394
3395 if test "$wxUSE_UNIVERSAL" = "yes"; then
3396
3397 # Check whether --with-themes was given.
3398 if test "${with_themes+set}" = set; then
3399   withval=$with_themes; wxUNIV_THEMES="$withval"
3400 fi
3401
3402 fi
3403
3404
3405 # Check whether --with-gtk was given.
3406 if test "${with_gtk+set}" = set; then
3407   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3408 fi
3409
3410
3411 # Check whether --with-motif was given.
3412 if test "${with_motif+set}" = set; then
3413   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3414 fi
3415
3416
3417 # Check whether --with-osx_carbon was given.
3418 if test "${with_osx_carbon+set}" = set; then
3419   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3420 fi
3421
3422
3423 # Check whether --with-osx_cocoa was given.
3424 if test "${with_osx_cocoa+set}" = set; then
3425   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3426 fi
3427
3428
3429 # Check whether --with-osx_iphone was given.
3430 if test "${with_osx_iphone+set}" = set; then
3431   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3432 fi
3433
3434
3435 # Check whether --with-osx was given.
3436 if test "${with_osx+set}" = set; then
3437   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3438 fi
3439
3440
3441 # Check whether --with-carbon was given.
3442 if test "${with_carbon+set}" = set; then
3443   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3444 fi
3445
3446
3447 # Check whether --with-cocoa was given.
3448 if test "${with_cocoa+set}" = set; then
3449   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3450 fi
3451
3452
3453 # Check whether --with-iphone was given.
3454 if test "${with_iphone+set}" = set; then
3455   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3456 fi
3457
3458
3459 # Check whether --with-mac was given.
3460 if test "${with_mac+set}" = set; then
3461   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3462 fi
3463
3464
3465 # Check whether --with-old_cocoa was given.
3466 if test "${with_old_cocoa+set}" = set; then
3467   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3468 fi
3469
3470
3471 # Check whether --with-wine was given.
3472 if test "${with_wine+set}" = set; then
3473   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3474 fi
3475
3476
3477 # Check whether --with-msw was given.
3478 if test "${with_msw+set}" = set; then
3479   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3480 fi
3481
3482
3483 # Check whether --with-pm was given.
3484 if test "${with_pm+set}" = set; then
3485   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3486 fi
3487
3488
3489 # Check whether --with-directfb was given.
3490 if test "${with_directfb+set}" = set; then
3491   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3492 fi
3493
3494
3495 # Check whether --with-microwin was given.
3496 if test "${with_microwin+set}" = set; then
3497   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3498 fi
3499
3500
3501 # Check whether --with-x11 was given.
3502 if test "${with_x11+set}" = set; then
3503   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3504 fi
3505
3506
3507           enablestring=
3508           defaultval=
3509           if test -z "$defaultval"; then
3510               if test x"$enablestring" = xdisable; then
3511                   defaultval=yes
3512               else
3513                   defaultval=no
3514               fi
3515           fi
3516
3517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3518 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3519           # Check whether --enable-nanox was given.
3520 if test "${enable_nanox+set}" = set; then
3521   enableval=$enable_nanox;
3522                           if test "$enableval" = yes; then
3523                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3524                           else
3525                             wx_cv_use_nanox='wxUSE_NANOX=no'
3526                           fi
3527
3528 else
3529
3530                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3531
3532 fi
3533
3534
3535           eval "$wx_cv_use_nanox"
3536
3537           if test x"$enablestring" = xdisable; then
3538             if test $wxUSE_NANOX = no; then
3539               result=yes
3540             else
3541               result=no
3542             fi
3543           else
3544             result=$wxUSE_NANOX
3545           fi
3546
3547           { echo "$as_me:$LINENO: result: $result" >&5
3548 echo "${ECHO_T}$result" >&6; }
3549
3550
3551 # Check whether --enable-gtk2 was given.
3552 if test "${enable_gtk2+set}" = set; then
3553   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3554 fi
3555
3556
3557           enablestring=
3558           defaultval=
3559           if test -z "$defaultval"; then
3560               if test x"$enablestring" = xdisable; then
3561                   defaultval=yes
3562               else
3563                   defaultval=no
3564               fi
3565           fi
3566
3567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3568 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3569           # Check whether --enable-gpe was given.
3570 if test "${enable_gpe+set}" = set; then
3571   enableval=$enable_gpe;
3572                           if test "$enableval" = yes; then
3573                             wx_cv_use_gpe='wxUSE_GPE=yes'
3574                           else
3575                             wx_cv_use_gpe='wxUSE_GPE=no'
3576                           fi
3577
3578 else
3579
3580                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3581
3582 fi
3583
3584
3585           eval "$wx_cv_use_gpe"
3586
3587           if test x"$enablestring" = xdisable; then
3588             if test $wxUSE_GPE = no; then
3589               result=yes
3590             else
3591               result=no
3592             fi
3593           else
3594             result=$wxUSE_GPE
3595           fi
3596
3597           { echo "$as_me:$LINENO: result: $result" >&5
3598 echo "${ECHO_T}$result" >&6; }
3599
3600
3601
3602 { echo "$as_me:$LINENO: checking for toolkit" >&5
3603 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3604
3605
3606
3607 # In Wine, we need to default to MSW, not GTK or MOTIF
3608 if test "$wxUSE_WINE" = "yes"; then
3609     DEFAULT_DEFAULT_wxUSE_GTK=0
3610     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3611     DEFAULT_DEFAULT_wxUSE_MSW=1
3612     wxUSE_SHARED=no
3613     CC=${CC:-winegcc}
3614     CXX=${CXX:-wineg++}
3615 fi
3616
3617
3618 if test "$wxUSE_GUI" = "yes"; then
3619
3620     if test "$USE_BEOS" = 1; then
3621         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3622 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3623    { (exit 1); exit 1; }; }
3624     fi
3625
3626     if test "$TOOLKIT_GIVEN" = 1; then
3627             for toolkit in $ALL_TOOLKITS; do
3628         var=wxUSE_$toolkit
3629         eval "value=\$${var}"
3630         if test "x$value" = "xno"; then
3631           eval "$var=0"
3632         elif test "x$value" != "x"; then
3633           eval "$var=1"
3634         fi
3635
3636         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3637           eval "wx${toolkit}_VERSION=$value"
3638         fi
3639       done
3640     else
3641             for toolkit in $ALL_TOOLKITS; do
3642         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3643         eval "wxUSE_$toolkit=\$${var}"
3644       done
3645     fi
3646
3647             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3648                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_DFB:-0} \
3649                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3650
3651         case "${host}" in
3652       *-pc-os2_emx | *-pc-os2-emx )
3653         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3654     esac
3655
3656     case "$NUM_TOOLKITS" in
3657       1)
3658       ;;
3659       0)
3660         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3661 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3662    { (exit 1); exit 1; }; }
3663       ;;
3664       *)
3665         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3666 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3667    { (exit 1); exit 1; }; }
3668     esac
3669
3670     # to be removed when --disable-gtk2 isn't needed
3671     if test "x$wxUSE_GTK2" = "xyes"; then
3672         wxGTK_VERSION=2
3673         wxUSE_GTK1=0
3674     elif test "x$wxUSE_GTK2" = "xno"; then
3675         wxGTK_VERSION=1
3676         wxUSE_GTK1=1
3677     fi
3678
3679     for toolkit in $ALL_TOOLKITS; do
3680         var=wxUSE_$toolkit
3681         eval "value=\$${var}"
3682         if test "$value" = 1; then
3683           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3684           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3685 echo "${ECHO_T}$toolkit_echo" >&6; }
3686         fi
3687     done
3688 else
3689     if test "x$host_alias" != "x"; then
3690         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3691 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3692     else
3693         { echo "$as_me:$LINENO: result: base only" >&5
3694 echo "${ECHO_T}base only" >&6; }
3695     fi
3696 fi
3697
3698 wxUSE_MAC=0
3699 if test "$wxUSE_OSX_CARBON" = 1 \
3700        -o "$wxUSE_OSX_COCOA" = 1 \
3701        -o "$wxUSE_OSX_IPHONE" = 1; then
3702     wxUSE_MAC=1
3703 fi
3704
3705
3706
3707           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3708 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3709
3710 # Check whether --with-libpng was given.
3711 if test "${with_libpng+set}" = set; then
3712   withval=$with_libpng;
3713                         if test "$withval" = yes; then
3714                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3715                         elif test "$withval" = no; then
3716                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3717                         elif test "$withval" = sys; then
3718                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3719                         elif test "$withval" = builtin; then
3720                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3721                         else
3722                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3723 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3724    { (exit 1); exit 1; }; }
3725                         fi
3726
3727 else
3728
3729                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3730
3731 fi
3732
3733
3734           eval "$wx_cv_use_libpng"
3735
3736           if test "$wxUSE_LIBPNG" = yes; then
3737             { echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6; }
3739           elif test "$wxUSE_LIBPNG" = no; then
3740             { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3742           elif test "$wxUSE_LIBPNG" = sys; then
3743             { echo "$as_me:$LINENO: result: system version" >&5
3744 echo "${ECHO_T}system version" >&6; }
3745           elif test "$wxUSE_LIBPNG" = builtin; then
3746             { echo "$as_me:$LINENO: result: builtin version" >&5
3747 echo "${ECHO_T}builtin version" >&6; }
3748           else
3749             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3750 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3751    { (exit 1); exit 1; }; }
3752           fi
3753
3754
3755           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3756 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3757
3758 # Check whether --with-libjpeg was given.
3759 if test "${with_libjpeg+set}" = set; then
3760   withval=$with_libjpeg;
3761                         if test "$withval" = yes; then
3762                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3763                         elif test "$withval" = no; then
3764                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3765                         elif test "$withval" = sys; then
3766                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3767                         elif test "$withval" = builtin; then
3768                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3769                         else
3770                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3771 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3772    { (exit 1); exit 1; }; }
3773                         fi
3774
3775 else
3776
3777                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3778
3779 fi
3780
3781
3782           eval "$wx_cv_use_libjpeg"
3783
3784           if test "$wxUSE_LIBJPEG" = yes; then
3785             { echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6; }
3787           elif test "$wxUSE_LIBJPEG" = no; then
3788             { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3790           elif test "$wxUSE_LIBJPEG" = sys; then
3791             { echo "$as_me:$LINENO: result: system version" >&5
3792 echo "${ECHO_T}system version" >&6; }
3793           elif test "$wxUSE_LIBJPEG" = builtin; then
3794             { echo "$as_me:$LINENO: result: builtin version" >&5
3795 echo "${ECHO_T}builtin version" >&6; }
3796           else
3797             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3798 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3799    { (exit 1); exit 1; }; }
3800           fi
3801
3802
3803           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3804 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3805
3806 # Check whether --with-libtiff was given.
3807 if test "${with_libtiff+set}" = set; then
3808   withval=$with_libtiff;
3809                         if test "$withval" = yes; then
3810                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3811                         elif test "$withval" = no; then
3812                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3813                         elif test "$withval" = sys; then
3814                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3815                         elif test "$withval" = builtin; then
3816                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3817                         else
3818                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3819 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3820    { (exit 1); exit 1; }; }
3821                         fi
3822
3823 else
3824
3825                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3826
3827 fi
3828
3829
3830           eval "$wx_cv_use_libtiff"
3831
3832           if test "$wxUSE_LIBTIFF" = yes; then
3833             { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835           elif test "$wxUSE_LIBTIFF" = no; then
3836             { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3838           elif test "$wxUSE_LIBTIFF" = sys; then
3839             { echo "$as_me:$LINENO: result: system version" >&5
3840 echo "${ECHO_T}system version" >&6; }
3841           elif test "$wxUSE_LIBTIFF" = builtin; then
3842             { echo "$as_me:$LINENO: result: builtin version" >&5
3843 echo "${ECHO_T}builtin version" >&6; }
3844           else
3845             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3846 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3847    { (exit 1); exit 1; }; }
3848           fi
3849
3850
3851           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3852 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3853
3854 # Check whether --with-libxpm was given.
3855 if test "${with_libxpm+set}" = set; then
3856   withval=$with_libxpm;
3857                         if test "$withval" = yes; then
3858                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3859                         elif test "$withval" = no; then
3860                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3861                         elif test "$withval" = sys; then
3862                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3863                         elif test "$withval" = builtin; then
3864                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3865                         else
3866                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3867 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3868    { (exit 1); exit 1; }; }
3869                         fi
3870
3871 else
3872
3873                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3874
3875 fi
3876
3877
3878           eval "$wx_cv_use_libxpm"
3879
3880           if test "$wxUSE_LIBXPM" = yes; then
3881             { echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6; }
3883           elif test "$wxUSE_LIBXPM" = no; then
3884             { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3886           elif test "$wxUSE_LIBXPM" = sys; then
3887             { echo "$as_me:$LINENO: result: system version" >&5
3888 echo "${ECHO_T}system version" >&6; }
3889           elif test "$wxUSE_LIBXPM" = builtin; then
3890             { echo "$as_me:$LINENO: result: builtin version" >&5
3891 echo "${ECHO_T}builtin version" >&6; }
3892           else
3893             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3894 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3895    { (exit 1); exit 1; }; }
3896           fi
3897
3898
3899           withstring=
3900           defaultval=$wxUSE_ALL_FEATURES
3901           if test -z "$defaultval"; then
3902               if test x"$withstring" = xwithout; then
3903                   defaultval=yes
3904               else
3905                   defaultval=no
3906               fi
3907           fi
3908           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3909 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3910
3911 # Check whether --with-libiconv was given.
3912 if test "${with_libiconv+set}" = set; then
3913   withval=$with_libiconv;
3914                         if test "$withval" = yes; then
3915                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3916                         else
3917                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3918                         fi
3919
3920 else
3921
3922                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3923
3924 fi
3925
3926
3927           eval "$wx_cv_use_libiconv"
3928
3929           if test x"$withstring" = xwithout; then
3930             if test $wxUSE_LIBICONV = yes; then
3931               result=no
3932             else
3933               result=yes
3934             fi
3935           else
3936             result=$wxUSE_LIBICONV
3937           fi
3938
3939           { echo "$as_me:$LINENO: result: $result" >&5
3940 echo "${ECHO_T}$result" >&6; }
3941
3942
3943           withstring=
3944           defaultval=$wxUSE_ALL_FEATURES
3945           if test -z "$defaultval"; then
3946               if test x"$withstring" = xwithout; then
3947                   defaultval=yes
3948               else
3949                   defaultval=no
3950               fi
3951           fi
3952           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3953 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3954
3955 # Check whether --with-libmspack was given.
3956 if test "${with_libmspack+set}" = set; then
3957   withval=$with_libmspack;
3958                         if test "$withval" = yes; then
3959                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3960                         else
3961                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3962                         fi
3963
3964 else
3965
3966                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3967
3968 fi
3969
3970
3971           eval "$wx_cv_use_libmspack"
3972
3973           if test x"$withstring" = xwithout; then
3974             if test $wxUSE_LIBMSPACK = yes; then
3975               result=no
3976             else
3977               result=yes
3978             fi
3979           else
3980             result=$wxUSE_LIBMSPACK
3981           fi
3982
3983           { echo "$as_me:$LINENO: result: $result" >&5
3984 echo "${ECHO_T}$result" >&6; }
3985
3986
3987           withstring=without
3988           defaultval=$wxUSE_ALL_FEATURES
3989           if test -z "$defaultval"; then
3990               if test x"$withstring" = xwithout; then
3991                   defaultval=yes
3992               else
3993                   defaultval=no
3994               fi
3995           fi
3996           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3997 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3998
3999 # Check whether --with-gtkprint was given.
4000 if test "${with_gtkprint+set}" = set; then
4001   withval=$with_gtkprint;
4002                         if test "$withval" = yes; then
4003                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
4004                         else
4005                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
4006                         fi
4007
4008 else
4009
4010                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
4011
4012 fi
4013
4014
4015           eval "$wx_cv_use_gtkprint"
4016
4017           if test x"$withstring" = xwithout; then
4018             if test $wxUSE_GTKPRINT = yes; then
4019               result=no
4020             else
4021               result=yes
4022             fi
4023           else
4024             result=$wxUSE_GTKPRINT
4025           fi
4026
4027           { echo "$as_me:$LINENO: result: $result" >&5
4028 echo "${ECHO_T}$result" >&6; }
4029
4030
4031           withstring=without
4032           defaultval=$wxUSE_ALL_FEATURES
4033           if test -z "$defaultval"; then
4034               if test x"$withstring" = xwithout; then
4035                   defaultval=yes
4036               else
4037                   defaultval=no
4038               fi
4039           fi
4040           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4041 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4042
4043 # Check whether --with-gnomeprint was given.
4044 if test "${with_gnomeprint+set}" = set; then
4045   withval=$with_gnomeprint;
4046                         if test "$withval" = yes; then
4047                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4048                         else
4049                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4050                         fi
4051
4052 else
4053
4054                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4055
4056 fi
4057
4058
4059           eval "$wx_cv_use_gnomeprint"
4060
4061           if test x"$withstring" = xwithout; then
4062             if test $wxUSE_LIBGNOMEPRINT = yes; then
4063               result=no
4064             else
4065               result=yes
4066             fi
4067           else
4068             result=$wxUSE_LIBGNOMEPRINT
4069           fi
4070
4071           { echo "$as_me:$LINENO: result: $result" >&5
4072 echo "${ECHO_T}$result" >&6; }
4073
4074
4075           withstring=
4076           defaultval=$wxUSE_ALL_FEATURES
4077           if test -z "$defaultval"; then
4078               if test x"$withstring" = xwithout; then
4079                   defaultval=yes
4080               else
4081                   defaultval=no
4082               fi
4083           fi
4084           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4085 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4086
4087 # Check whether --with-gnomevfs was given.
4088 if test "${with_gnomevfs+set}" = set; then
4089   withval=$with_gnomevfs;
4090                         if test "$withval" = yes; then
4091                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4092                         else
4093                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4094                         fi
4095
4096 else
4097
4098                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4099
4100 fi
4101
4102
4103           eval "$wx_cv_use_gnomevfs"
4104
4105           if test x"$withstring" = xwithout; then
4106             if test $wxUSE_LIBGNOMEVFS = yes; then
4107               result=no
4108             else
4109               result=yes
4110             fi
4111           else
4112             result=$wxUSE_LIBGNOMEVFS
4113           fi
4114
4115           { echo "$as_me:$LINENO: result: $result" >&5
4116 echo "${ECHO_T}$result" >&6; }
4117
4118
4119           withstring=
4120           defaultval=$wxUSE_ALL_FEATURES
4121           if test -z "$defaultval"; then
4122               if test x"$withstring" = xwithout; then
4123                   defaultval=yes
4124               else
4125                   defaultval=no
4126               fi
4127           fi
4128           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4129 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4130
4131 # Check whether --with-hildon was given.
4132 if test "${with_hildon+set}" = set; then
4133   withval=$with_hildon;
4134                         if test "$withval" = yes; then
4135                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4136                         else
4137                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4138                         fi
4139
4140 else
4141
4142                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4143
4144 fi
4145
4146
4147           eval "$wx_cv_use_hildon"
4148
4149           if test x"$withstring" = xwithout; then
4150             if test $wxUSE_LIBHILDON = yes; then
4151               result=no
4152             else
4153               result=yes
4154             fi
4155           else
4156             result=$wxUSE_LIBHILDON
4157           fi
4158
4159           { echo "$as_me:$LINENO: result: $result" >&5
4160 echo "${ECHO_T}$result" >&6; }
4161
4162
4163           withstring=
4164           defaultval=$wxUSE_ALL_FEATURES
4165           if test -z "$defaultval"; then
4166               if test x"$withstring" = xwithout; then
4167                   defaultval=yes
4168               else
4169                   defaultval=no
4170               fi
4171           fi
4172           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4173 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4174
4175 # Check whether --with-opengl was given.
4176 if test "${with_opengl+set}" = set; then
4177   withval=$with_opengl;
4178                         if test "$withval" = yes; then
4179                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4180                         else
4181                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4182                         fi
4183
4184 else
4185
4186                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4187
4188 fi
4189
4190
4191           eval "$wx_cv_use_opengl"
4192
4193           if test x"$withstring" = xwithout; then
4194             if test $wxUSE_OPENGL = yes; then
4195               result=no
4196             else
4197               result=yes
4198             fi
4199           else
4200             result=$wxUSE_OPENGL
4201           fi
4202
4203           { echo "$as_me:$LINENO: result: $result" >&5
4204 echo "${ECHO_T}$result" >&6; }
4205
4206
4207 fi
4208
4209
4210           withstring=
4211           defaultval=$wxUSE_ALL_FEATURES
4212           if test -z "$defaultval"; then
4213               if test x"$withstring" = xwithout; then
4214                   defaultval=yes
4215               else
4216                   defaultval=no
4217               fi
4218           fi
4219           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4220 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4221
4222 # Check whether --with-dmalloc was given.
4223 if test "${with_dmalloc+set}" = set; then
4224   withval=$with_dmalloc;
4225                         if test "$withval" = yes; then
4226                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4227                         else
4228                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4229                         fi
4230
4231 else
4232
4233                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4234
4235 fi
4236
4237
4238           eval "$wx_cv_use_dmalloc"
4239
4240           if test x"$withstring" = xwithout; then
4241             if test $wxUSE_DMALLOC = yes; then
4242               result=no
4243             else
4244               result=yes
4245             fi
4246           else
4247             result=$wxUSE_DMALLOC
4248           fi
4249
4250           { echo "$as_me:$LINENO: result: $result" >&5
4251 echo "${ECHO_T}$result" >&6; }
4252
4253
4254           withstring=
4255           defaultval=$wxUSE_ALL_FEATURES
4256           if test -z "$defaultval"; then
4257               if test x"$withstring" = xwithout; then
4258                   defaultval=yes
4259               else
4260                   defaultval=no
4261               fi
4262           fi
4263           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4264 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4265
4266 # Check whether --with-sdl was given.
4267 if test "${with_sdl+set}" = set; then
4268   withval=$with_sdl;
4269                         if test "$withval" = yes; then
4270                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4271                         else
4272                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4273                         fi
4274
4275 else
4276
4277                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4278
4279 fi
4280
4281
4282           eval "$wx_cv_use_sdl"
4283
4284           if test x"$withstring" = xwithout; then
4285             if test $wxUSE_LIBSDL = yes; then
4286               result=no
4287             else
4288               result=yes
4289             fi
4290           else
4291             result=$wxUSE_LIBSDL
4292           fi
4293
4294           { echo "$as_me:$LINENO: result: $result" >&5
4295 echo "${ECHO_T}$result" >&6; }
4296
4297
4298           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4299 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4300
4301 # Check whether --with-regex was given.
4302 if test "${with_regex+set}" = set; then
4303   withval=$with_regex;
4304                         if test "$withval" = yes; then
4305                           wx_cv_use_regex='wxUSE_REGEX=yes'
4306                         elif test "$withval" = no; then
4307                           wx_cv_use_regex='wxUSE_REGEX=no'
4308                         elif test "$withval" = sys; then
4309                           wx_cv_use_regex='wxUSE_REGEX=sys'
4310                         elif test "$withval" = builtin; then
4311                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4312                         else
4313                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4314 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4315    { (exit 1); exit 1; }; }
4316                         fi
4317
4318 else
4319
4320                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4321
4322 fi
4323
4324
4325           eval "$wx_cv_use_regex"
4326
4327           if test "$wxUSE_REGEX" = yes; then
4328             { echo "$as_me:$LINENO: result: yes" >&5
4329 echo "${ECHO_T}yes" >&6; }
4330           elif test "$wxUSE_REGEX" = no; then
4331             { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4333           elif test "$wxUSE_REGEX" = sys; then
4334             { echo "$as_me:$LINENO: result: system version" >&5
4335 echo "${ECHO_T}system version" >&6; }
4336           elif test "$wxUSE_REGEX" = builtin; then
4337             { echo "$as_me:$LINENO: result: builtin version" >&5
4338 echo "${ECHO_T}builtin version" >&6; }
4339           else
4340             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4341 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4342    { (exit 1); exit 1; }; }
4343           fi
4344
4345
4346           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4347 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4348
4349 # Check whether --with-zlib was given.
4350 if test "${with_zlib+set}" = set; then
4351   withval=$with_zlib;
4352                         if test "$withval" = yes; then
4353                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4354                         elif test "$withval" = no; then
4355                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4356                         elif test "$withval" = sys; then
4357                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4358                         elif test "$withval" = builtin; then
4359                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4360                         else
4361                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4362 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4363    { (exit 1); exit 1; }; }
4364                         fi
4365
4366 else
4367
4368                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4369
4370 fi
4371
4372
4373           eval "$wx_cv_use_zlib"
4374
4375           if test "$wxUSE_ZLIB" = yes; then
4376             { echo "$as_me:$LINENO: result: yes" >&5
4377 echo "${ECHO_T}yes" >&6; }
4378           elif test "$wxUSE_ZLIB" = no; then
4379             { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4381           elif test "$wxUSE_ZLIB" = sys; then
4382             { echo "$as_me:$LINENO: result: system version" >&5
4383 echo "${ECHO_T}system version" >&6; }
4384           elif test "$wxUSE_ZLIB" = builtin; then
4385             { echo "$as_me:$LINENO: result: builtin version" >&5
4386 echo "${ECHO_T}builtin version" >&6; }
4387           else
4388             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4389 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4390    { (exit 1); exit 1; }; }
4391           fi
4392
4393
4394           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4395 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4396
4397 # Check whether --with-expat was given.
4398 if test "${with_expat+set}" = set; then
4399   withval=$with_expat;
4400                         if test "$withval" = yes; then
4401                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4402                         elif test "$withval" = no; then
4403                           wx_cv_use_expat='wxUSE_EXPAT=no'
4404                         elif test "$withval" = sys; then
4405                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4406                         elif test "$withval" = builtin; then
4407                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4408                         else
4409                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4410 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4411    { (exit 1); exit 1; }; }
4412                         fi
4413
4414 else
4415
4416                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4417
4418 fi
4419
4420
4421           eval "$wx_cv_use_expat"
4422
4423           if test "$wxUSE_EXPAT" = yes; then
4424             { echo "$as_me:$LINENO: result: yes" >&5
4425 echo "${ECHO_T}yes" >&6; }
4426           elif test "$wxUSE_EXPAT" = no; then
4427             { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429           elif test "$wxUSE_EXPAT" = sys; then
4430             { echo "$as_me:$LINENO: result: system version" >&5
4431 echo "${ECHO_T}system version" >&6; }
4432           elif test "$wxUSE_EXPAT" = builtin; then
4433             { echo "$as_me:$LINENO: result: builtin version" >&5
4434 echo "${ECHO_T}builtin version" >&6; }
4435           else
4436             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4437 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4438    { (exit 1); exit 1; }; }
4439           fi
4440
4441
4442 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4443 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4444
4445 # Check whether --with-macosx-sdk was given.
4446 if test "${with_macosx_sdk+set}" = set; then
4447   withval=$with_macosx_sdk;
4448         wxUSE_MACOSX_SDK=$withval
4449         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4450
4451 fi
4452
4453 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4454 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4455
4456 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4457 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4458
4459 # Check whether --with-macosx-version-min was given.
4460 if test "${with_macosx_version_min+set}" = set; then
4461   withval=$with_macosx_version_min;
4462         wxUSE_MACOSX_VERSION_MIN=$withval
4463         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4464
4465 fi
4466
4467 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4468 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4469
4470
4471 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4472 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4473 # Check whether --enable-debug was given.
4474 if test "${enable_debug+set}" = set; then
4475   enableval=$enable_debug;
4476         if test "$enableval" = yes; then
4477             wxUSE_DEBUG=yes
4478         elif test "$enableval" = no; then
4479             wxUSE_DEBUG=no
4480         elif test "$enableval" = max; then
4481             wxUSE_DEBUG=yes
4482             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4483         else
4484             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4485 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4486    { (exit 1); exit 1; }; }
4487         fi
4488
4489 else
4490   wxUSE_DEBUG=default
4491
4492 fi
4493
4494 { echo "$as_me:$LINENO: result: ${enable_debug-default}" >&5
4495 echo "${ECHO_T}${enable_debug-default}" >&6; }
4496
4497 case "$wxUSE_DEBUG" in
4498     yes)
4499                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4500         DEFAULT_wxUSE_DEBUG_INFO=yes
4501
4502                         DEFAULT_wxUSE_OPTIMISE=no
4503         ;;
4504
4505     no)
4506                         DEFAULT_wxUSE_DEBUG_FLAG=no
4507         DEFAULT_wxUSE_DEBUG_INFO=no
4508         ;;
4509
4510     default)
4511                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4512         DEFAULT_wxUSE_DEBUG_INFO=no
4513         ;;
4514 esac
4515
4516
4517           enablestring=disable
4518           defaultval=
4519           if test -z "$defaultval"; then
4520               if test x"$enablestring" = xdisable; then
4521                   defaultval=yes
4522               else
4523                   defaultval=no
4524               fi
4525           fi
4526
4527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4528 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4529           # Check whether --enable-debug_flag was given.
4530 if test "${enable_debug_flag+set}" = set; then
4531   enableval=$enable_debug_flag;
4532                           if test "$enableval" = yes; then
4533                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4534                           else
4535                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4536                           fi
4537
4538 else
4539
4540                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4541
4542 fi
4543
4544
4545           eval "$wx_cv_use_debug_flag"
4546
4547           if test x"$enablestring" = xdisable; then
4548             if test $wxUSE_DEBUG_FLAG = no; then
4549               result=yes
4550             else
4551               result=no
4552             fi
4553           else
4554             result=$wxUSE_DEBUG_FLAG
4555           fi
4556
4557           { echo "$as_me:$LINENO: result: $result" >&5
4558 echo "${ECHO_T}$result" >&6; }
4559
4560
4561           enablestring=
4562           defaultval=
4563           if test -z "$defaultval"; then
4564               if test x"$enablestring" = xdisable; then
4565                   defaultval=yes
4566               else
4567                   defaultval=no
4568               fi
4569           fi
4570
4571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4572 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4573           # Check whether --enable-debug_info was given.
4574 if test "${enable_debug_info+set}" = set; then
4575   enableval=$enable_debug_info;
4576                           if test "$enableval" = yes; then
4577                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4578                           else
4579                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4580                           fi
4581
4582 else
4583
4584                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4585
4586 fi
4587
4588
4589           eval "$wx_cv_use_debug_info"
4590
4591           if test x"$enablestring" = xdisable; then
4592             if test $wxUSE_DEBUG_INFO = no; then
4593               result=yes
4594             else
4595               result=no
4596             fi
4597           else
4598             result=$wxUSE_DEBUG_INFO
4599           fi
4600
4601           { echo "$as_me:$LINENO: result: $result" >&5
4602 echo "${ECHO_T}$result" >&6; }
4603
4604
4605
4606
4607           enablestring=
4608           defaultval=
4609           if test -z "$defaultval"; then
4610               if test x"$enablestring" = xdisable; then
4611                   defaultval=yes
4612               else
4613                   defaultval=no
4614               fi
4615           fi
4616
4617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4618 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4619           # Check whether --enable-debug_gdb was given.
4620 if test "${enable_debug_gdb+set}" = set; then
4621   enableval=$enable_debug_gdb;
4622                           if test "$enableval" = yes; then
4623                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4624                           else
4625                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4626                           fi
4627
4628 else
4629
4630                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4631
4632 fi
4633
4634
4635           eval "$wx_cv_use_debug_gdb"
4636
4637           if test x"$enablestring" = xdisable; then
4638             if test $wxUSE_DEBUG_GDB = no; then
4639               result=yes
4640             else
4641               result=no
4642             fi
4643           else
4644             result=$wxUSE_DEBUG_GDB
4645           fi
4646
4647           { echo "$as_me:$LINENO: result: $result" >&5
4648 echo "${ECHO_T}$result" >&6; }
4649
4650
4651           enablestring=
4652           defaultval=
4653           if test -z "$defaultval"; then
4654               if test x"$enablestring" = xdisable; then
4655                   defaultval=yes
4656               else
4657                   defaultval=no
4658               fi
4659           fi
4660
4661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4662 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4663           # Check whether --enable-debug_cntxt was given.
4664 if test "${enable_debug_cntxt+set}" = set; then
4665   enableval=$enable_debug_cntxt;
4666                           if test "$enableval" = yes; then
4667                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4668                           else
4669                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4670                           fi
4671
4672 else
4673
4674                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4675
4676 fi
4677
4678
4679           eval "$wx_cv_use_debug_cntxt"
4680
4681           if test x"$enablestring" = xdisable; then
4682             if test $wxUSE_DEBUG_CONTEXT = no; then
4683               result=yes
4684             else
4685               result=no
4686             fi
4687           else
4688             result=$wxUSE_DEBUG_CONTEXT
4689           fi
4690
4691           { echo "$as_me:$LINENO: result: $result" >&5
4692 echo "${ECHO_T}$result" >&6; }
4693
4694
4695           enablestring=
4696           defaultval=
4697           if test -z "$defaultval"; then
4698               if test x"$enablestring" = xdisable; then
4699                   defaultval=yes
4700               else
4701                   defaultval=no
4702               fi
4703           fi
4704
4705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4706 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4707           # Check whether --enable-mem_tracing was given.
4708 if test "${enable_mem_tracing+set}" = set; then
4709   enableval=$enable_mem_tracing;
4710                           if test "$enableval" = yes; then
4711                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4712                           else
4713                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4714                           fi
4715
4716 else
4717
4718                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4719
4720 fi
4721
4722
4723           eval "$wx_cv_use_mem_tracing"
4724
4725           if test x"$enablestring" = xdisable; then
4726             if test $wxUSE_MEM_TRACING = no; then
4727               result=yes
4728             else
4729               result=no
4730             fi
4731           else
4732             result=$wxUSE_MEM_TRACING
4733           fi
4734
4735           { echo "$as_me:$LINENO: result: $result" >&5
4736 echo "${ECHO_T}$result" >&6; }
4737
4738
4739
4740
4741           enablestring=disable
4742           defaultval=
4743           if test -z "$defaultval"; then
4744               if test x"$enablestring" = xdisable; then
4745                   defaultval=yes
4746               else
4747                   defaultval=no
4748               fi
4749           fi
4750
4751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4752 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4753           # Check whether --enable-shared was given.
4754 if test "${enable_shared+set}" = set; then
4755   enableval=$enable_shared;
4756                           if test "$enableval" = yes; then
4757                             wx_cv_use_shared='wxUSE_SHARED=yes'
4758                           else
4759                             wx_cv_use_shared='wxUSE_SHARED=no'
4760                           fi
4761
4762 else
4763
4764                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4765
4766 fi
4767
4768
4769           eval "$wx_cv_use_shared"
4770
4771           if test x"$enablestring" = xdisable; then
4772             if test $wxUSE_SHARED = no; then
4773               result=yes
4774             else
4775               result=no
4776             fi
4777           else
4778             result=$wxUSE_SHARED
4779           fi
4780
4781           { echo "$as_me:$LINENO: result: $result" >&5
4782 echo "${ECHO_T}$result" >&6; }
4783
4784
4785           enablestring=
4786           defaultval=
4787           if test -z "$defaultval"; then
4788               if test x"$enablestring" = xdisable; then
4789                   defaultval=yes
4790               else
4791                   defaultval=no
4792               fi
4793           fi
4794
4795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4796 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4797           # Check whether --enable-stl was given.
4798 if test "${enable_stl+set}" = set; then
4799   enableval=$enable_stl;
4800                           if test "$enableval" = yes; then
4801                             wx_cv_use_stl='wxUSE_STL=yes'
4802                           else
4803                             wx_cv_use_stl='wxUSE_STL=no'
4804                           fi
4805
4806 else
4807
4808                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4809
4810 fi
4811
4812
4813           eval "$wx_cv_use_stl"
4814
4815           if test x"$enablestring" = xdisable; then
4816             if test $wxUSE_STL = no; then
4817               result=yes
4818             else
4819               result=no
4820             fi
4821           else
4822             result=$wxUSE_STL
4823           fi
4824
4825           { echo "$as_me:$LINENO: result: $result" >&5
4826 echo "${ECHO_T}$result" >&6; }
4827
4828 if test "$wxUSE_STL" = "yes"; then
4829     DEFAULT_wxUSE_STD_CONTAINERS=yes
4830     DEFAULT_wxUSE_STD_IOSTREAM=yes
4831     DEFAULT_wxUSE_STD_STRING=yes
4832 fi
4833
4834           enablestring=
4835           defaultval=
4836           if test -z "$defaultval"; then
4837               if test x"$enablestring" = xdisable; then
4838                   defaultval=yes
4839               else
4840                   defaultval=no
4841               fi
4842           fi
4843
4844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4845 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4846           # Check whether --enable-std_containers was given.
4847 if test "${enable_std_containers+set}" = set; then
4848   enableval=$enable_std_containers;
4849                           if test "$enableval" = yes; then
4850                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4851                           else
4852                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4853                           fi
4854
4855 else
4856
4857                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4858
4859 fi
4860
4861
4862           eval "$wx_cv_use_std_containers"
4863
4864           if test x"$enablestring" = xdisable; then
4865             if test $wxUSE_STD_CONTAINERS = no; then
4866               result=yes
4867             else
4868               result=no
4869             fi
4870           else
4871             result=$wxUSE_STD_CONTAINERS
4872           fi
4873
4874           { echo "$as_me:$LINENO: result: $result" >&5
4875 echo "${ECHO_T}$result" >&6; }
4876
4877
4878           enablestring=
4879           defaultval=
4880           if test -z "$defaultval"; then
4881               if test x"$enablestring" = xdisable; then
4882                   defaultval=yes
4883               else
4884                   defaultval=no
4885               fi
4886           fi
4887
4888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4889 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4890           # Check whether --enable-std_iostreams was given.
4891 if test "${enable_std_iostreams+set}" = set; then
4892   enableval=$enable_std_iostreams;
4893                           if test "$enableval" = yes; then
4894                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4895                           else
4896                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4897                           fi
4898
4899 else
4900
4901                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4902
4903 fi
4904
4905
4906           eval "$wx_cv_use_std_iostreams"
4907
4908           if test x"$enablestring" = xdisable; then
4909             if test $wxUSE_STD_IOSTREAM = no; then
4910               result=yes
4911             else
4912               result=no
4913             fi
4914           else
4915             result=$wxUSE_STD_IOSTREAM
4916           fi
4917
4918           { echo "$as_me:$LINENO: result: $result" >&5
4919 echo "${ECHO_T}$result" >&6; }
4920
4921
4922           enablestring=
4923           defaultval=
4924           if test -z "$defaultval"; then
4925               if test x"$enablestring" = xdisable; then
4926                   defaultval=yes
4927               else
4928                   defaultval=no
4929               fi
4930           fi
4931
4932           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4933 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4934           # Check whether --enable-std_string was given.
4935 if test "${enable_std_string+set}" = set; then
4936   enableval=$enable_std_string;
4937                           if test "$enableval" = yes; then
4938                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4939                           else
4940                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4941                           fi
4942
4943 else
4944
4945                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4946
4947 fi
4948
4949
4950           eval "$wx_cv_use_std_string"
4951
4952           if test x"$enablestring" = xdisable; then
4953             if test $wxUSE_STD_STRING = no; then
4954               result=yes
4955             else
4956               result=no
4957             fi
4958           else
4959             result=$wxUSE_STD_STRING
4960           fi
4961
4962           { echo "$as_me:$LINENO: result: $result" >&5
4963 echo "${ECHO_T}$result" >&6; }
4964
4965
4966           enablestring=
4967           defaultval=
4968           if test -z "$defaultval"; then
4969               if test x"$enablestring" = xdisable; then
4970                   defaultval=yes
4971               else
4972                   defaultval=no
4973               fi
4974           fi
4975
4976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4977 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4978           # Check whether --enable-std_string_conv_in_wxstring was given.
4979 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4980   enableval=$enable_std_string_conv_in_wxstring;
4981                           if test "$enableval" = yes; then
4982                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4983                           else
4984                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4985                           fi
4986
4987 else
4988
4989                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4990
4991 fi
4992
4993
4994           eval "$wx_cv_use_std_string_conv_in_wxstring"
4995
4996           if test x"$enablestring" = xdisable; then
4997             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4998               result=yes
4999             else
5000               result=no
5001             fi
5002           else
5003             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
5004           fi
5005
5006           { echo "$as_me:$LINENO: result: $result" >&5
5007 echo "${ECHO_T}$result" >&6; }
5008
5009
5010           enablestring=disable
5011           defaultval=
5012           if test -z "$defaultval"; then
5013               if test x"$enablestring" = xdisable; then
5014                   defaultval=yes
5015               else
5016                   defaultval=no
5017               fi
5018           fi
5019
5020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5021 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
5022           # Check whether --enable-unicode was given.
5023 if test "${enable_unicode+set}" = set; then
5024   enableval=$enable_unicode;
5025                           if test "$enableval" = yes; then
5026                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
5027                           else
5028                             wx_cv_use_unicode='wxUSE_UNICODE=no'
5029                           fi
5030
5031 else
5032
5033                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
5034
5035 fi
5036
5037
5038           eval "$wx_cv_use_unicode"
5039
5040           if test x"$enablestring" = xdisable; then
5041             if test $wxUSE_UNICODE = no; then
5042               result=yes
5043             else
5044               result=no
5045             fi
5046           else
5047             result=$wxUSE_UNICODE
5048           fi
5049
5050           { echo "$as_me:$LINENO: result: $result" >&5
5051 echo "${ECHO_T}$result" >&6; }
5052
5053
5054           enablestring=
5055           defaultval=
5056           if test -z "$defaultval"; then
5057               if test x"$enablestring" = xdisable; then
5058                   defaultval=yes
5059               else
5060                   defaultval=no
5061               fi
5062           fi
5063
5064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5065 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5066           # Check whether --enable-mslu was given.
5067 if test "${enable_mslu+set}" = set; then
5068   enableval=$enable_mslu;
5069                           if test "$enableval" = yes; then
5070                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5071                           else
5072                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5073                           fi
5074
5075 else
5076
5077                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5078
5079 fi
5080
5081
5082           eval "$wx_cv_use_mslu"
5083
5084           if test x"$enablestring" = xdisable; then
5085             if test $wxUSE_UNICODE_MSLU = no; then
5086               result=yes
5087             else
5088               result=no
5089             fi
5090           else
5091             result=$wxUSE_UNICODE_MSLU
5092           fi
5093
5094           { echo "$as_me:$LINENO: result: $result" >&5
5095 echo "${ECHO_T}$result" >&6; }
5096
5097
5098           enablestring=
5099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5100 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5101           # Check whether --enable-utf8 was given.
5102 if test "${enable_utf8+set}" = set; then
5103   enableval=$enable_utf8;
5104                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5105
5106 else
5107
5108                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5109
5110 fi
5111
5112
5113           eval "$wx_cv_use_utf8"
5114
5115           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5116 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5117
5118
5119           enablestring=
5120           defaultval=
5121           if test -z "$defaultval"; then
5122               if test x"$enablestring" = xdisable; then
5123                   defaultval=yes
5124               else
5125                   defaultval=no
5126               fi
5127           fi
5128
5129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5130 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5131           # Check whether --enable-utf8only was given.
5132 if test "${enable_utf8only+set}" = set; then
5133   enableval=$enable_utf8only;
5134                           if test "$enableval" = yes; then
5135                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5136                           else
5137                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5138                           fi
5139
5140 else
5141
5142                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5143
5144 fi
5145
5146
5147           eval "$wx_cv_use_utf8only"
5148
5149           if test x"$enablestring" = xdisable; then
5150             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5151               result=yes
5152             else
5153               result=no
5154             fi
5155           else
5156             result=$wxUSE_UNICODE_UTF8_LOCALE
5157           fi
5158
5159           { echo "$as_me:$LINENO: result: $result" >&5
5160 echo "${ECHO_T}$result" >&6; }
5161
5162
5163           enablestring=
5164           defaultval=
5165           if test -z "$defaultval"; then
5166               if test x"$enablestring" = xdisable; then
5167                   defaultval=yes
5168               else
5169                   defaultval=no
5170               fi
5171           fi
5172
5173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5174 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5175           # Check whether --enable-extended_rtti was given.
5176 if test "${enable_extended_rtti+set}" = set; then
5177   enableval=$enable_extended_rtti;
5178                           if test "$enableval" = yes; then
5179                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5180                           else
5181                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5182                           fi
5183
5184 else
5185
5186                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5187
5188 fi
5189
5190
5191           eval "$wx_cv_use_extended_rtti"
5192
5193           if test x"$enablestring" = xdisable; then
5194             if test $wxUSE_EXTENDED_RTTI = no; then
5195               result=yes
5196             else
5197               result=no
5198             fi
5199           else
5200             result=$wxUSE_EXTENDED_RTTI
5201           fi
5202
5203           { echo "$as_me:$LINENO: result: $result" >&5
5204 echo "${ECHO_T}$result" >&6; }
5205
5206 if test "$USE_OS2" = 1; then
5207     DEFAULT_wxUSE_OMF=no
5208
5209           enablestring=
5210           defaultval=
5211           if test -z "$defaultval"; then
5212               if test x"$enablestring" = xdisable; then
5213                   defaultval=yes
5214               else
5215                   defaultval=no
5216               fi
5217           fi
5218
5219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5220 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5221           # Check whether --enable-omf was given.
5222 if test "${enable_omf+set}" = set; then
5223   enableval=$enable_omf;
5224                           if test "$enableval" = yes; then
5225                             wx_cv_use_omf='wxUSE_OMF=yes'
5226                           else
5227                             wx_cv_use_omf='wxUSE_OMF=no'
5228                           fi
5229
5230 else
5231
5232                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5233
5234 fi
5235
5236
5237           eval "$wx_cv_use_omf"
5238
5239           if test x"$enablestring" = xdisable; then
5240             if test $wxUSE_OMF = no; then
5241               result=yes
5242             else
5243               result=no
5244             fi
5245           else
5246             result=$wxUSE_OMF
5247           fi
5248
5249           { echo "$as_me:$LINENO: result: $result" >&5
5250 echo "${ECHO_T}$result" >&6; }
5251
5252 fi
5253
5254
5255           enablestring=disable
5256           defaultval=
5257           if test -z "$defaultval"; then
5258               if test x"$enablestring" = xdisable; then
5259                   defaultval=yes
5260               else
5261                   defaultval=no
5262               fi
5263           fi
5264
5265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5266 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5267           # Check whether --enable-optimise was given.
5268 if test "${enable_optimise+set}" = set; then
5269   enableval=$enable_optimise;
5270                           if test "$enableval" = yes; then
5271                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5272                           else
5273                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5274                           fi
5275
5276 else
5277
5278                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5279
5280 fi
5281
5282
5283           eval "$wx_cv_use_optimise"
5284
5285           if test x"$enablestring" = xdisable; then
5286             if test $wxUSE_OPTIMISE = no; then
5287               result=yes
5288             else
5289               result=no
5290             fi
5291           else
5292             result=$wxUSE_OPTIMISE
5293           fi
5294
5295           { echo "$as_me:$LINENO: result: $result" >&5
5296 echo "${ECHO_T}$result" >&6; }
5297
5298
5299
5300           enablestring=
5301           defaultval=
5302           if test -z "$defaultval"; then
5303               if test x"$enablestring" = xdisable; then
5304                   defaultval=yes
5305               else
5306                   defaultval=no
5307               fi
5308           fi
5309
5310           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5311 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5312           # Check whether --enable-profile was given.
5313 if test "${enable_profile+set}" = set; then
5314   enableval=$enable_profile;
5315                           if test "$enableval" = yes; then
5316                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5317                           else
5318                             wx_cv_use_profile='wxUSE_PROFILE=no'
5319                           fi
5320
5321 else
5322
5323                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5324
5325 fi
5326
5327
5328           eval "$wx_cv_use_profile"
5329
5330           if test x"$enablestring" = xdisable; then
5331             if test $wxUSE_PROFILE = no; then
5332               result=yes
5333             else
5334               result=no
5335             fi
5336           else
5337             result=$wxUSE_PROFILE
5338           fi
5339
5340           { echo "$as_me:$LINENO: result: $result" >&5
5341 echo "${ECHO_T}$result" >&6; }
5342
5343
5344           enablestring=
5345           defaultval=
5346           if test -z "$defaultval"; then
5347               if test x"$enablestring" = xdisable; then
5348                   defaultval=yes
5349               else
5350                   defaultval=no
5351               fi
5352           fi
5353
5354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5355 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5356           # Check whether --enable-no_rtti was given.
5357 if test "${enable_no_rtti+set}" = set; then
5358   enableval=$enable_no_rtti;
5359                           if test "$enableval" = yes; then
5360                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5361                           else
5362                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5363                           fi
5364
5365 else
5366
5367                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5368
5369 fi
5370
5371
5372           eval "$wx_cv_use_no_rtti"
5373
5374           if test x"$enablestring" = xdisable; then
5375             if test $wxUSE_NO_RTTI = no; then
5376               result=yes
5377             else
5378               result=no
5379             fi
5380           else
5381             result=$wxUSE_NO_RTTI
5382           fi
5383
5384           { echo "$as_me:$LINENO: result: $result" >&5
5385 echo "${ECHO_T}$result" >&6; }
5386
5387
5388           enablestring=
5389           defaultval=
5390           if test -z "$defaultval"; then
5391               if test x"$enablestring" = xdisable; then
5392                   defaultval=yes
5393               else
5394                   defaultval=no
5395               fi
5396           fi
5397
5398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5399 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5400           # Check whether --enable-no_exceptions was given.
5401 if test "${enable_no_exceptions+set}" = set; then
5402   enableval=$enable_no_exceptions;
5403                           if test "$enableval" = yes; then
5404                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5405                           else
5406                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5407                           fi
5408
5409 else
5410
5411                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5412
5413 fi
5414
5415
5416           eval "$wx_cv_use_no_exceptions"
5417
5418           if test x"$enablestring" = xdisable; then
5419             if test $wxUSE_NO_EXCEPTIONS = no; then
5420               result=yes
5421             else
5422               result=no
5423             fi
5424           else
5425             result=$wxUSE_NO_EXCEPTIONS
5426           fi
5427
5428           { echo "$as_me:$LINENO: result: $result" >&5
5429 echo "${ECHO_T}$result" >&6; }
5430
5431
5432           enablestring=
5433           defaultval=
5434           if test -z "$defaultval"; then
5435               if test x"$enablestring" = xdisable; then
5436                   defaultval=yes
5437               else
5438                   defaultval=no
5439               fi
5440           fi
5441
5442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5443 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5444           # Check whether --enable-permissive was given.
5445 if test "${enable_permissive+set}" = set; then
5446   enableval=$enable_permissive;
5447                           if test "$enableval" = yes; then
5448                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5449                           else
5450                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5451                           fi
5452
5453 else
5454
5455                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5456
5457 fi
5458
5459
5460           eval "$wx_cv_use_permissive"
5461
5462           if test x"$enablestring" = xdisable; then
5463             if test $wxUSE_PERMISSIVE = no; then
5464               result=yes
5465             else
5466               result=no
5467             fi
5468           else
5469             result=$wxUSE_PERMISSIVE
5470           fi
5471
5472           { echo "$as_me:$LINENO: result: $result" >&5
5473 echo "${ECHO_T}$result" >&6; }
5474
5475
5476           enablestring=
5477           defaultval=
5478           if test -z "$defaultval"; then
5479               if test x"$enablestring" = xdisable; then
5480                   defaultval=yes
5481               else
5482                   defaultval=no
5483               fi
5484           fi
5485
5486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5487 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5488           # Check whether --enable-no_deps was given.
5489 if test "${enable_no_deps+set}" = set; then
5490   enableval=$enable_no_deps;
5491                           if test "$enableval" = yes; then
5492                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5493                           else
5494                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5495                           fi
5496
5497 else
5498
5499                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5500
5501 fi
5502
5503
5504           eval "$wx_cv_use_no_deps"
5505
5506           if test x"$enablestring" = xdisable; then
5507             if test $wxUSE_NO_DEPS = no; then
5508               result=yes
5509             else
5510               result=no
5511             fi
5512           else
5513             result=$wxUSE_NO_DEPS
5514           fi
5515
5516           { echo "$as_me:$LINENO: result: $result" >&5
5517 echo "${ECHO_T}$result" >&6; }
5518
5519
5520           enablestring=disable
5521           defaultval=
5522           if test -z "$defaultval"; then
5523               if test x"$enablestring" = xdisable; then
5524                   defaultval=yes
5525               else
5526                   defaultval=no
5527               fi
5528           fi
5529
5530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5531 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5532           # Check whether --enable-vararg_macros was given.
5533 if test "${enable_vararg_macros+set}" = set; then
5534   enableval=$enable_vararg_macros;
5535                           if test "$enableval" = yes; then
5536                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5537                           else
5538                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5539                           fi
5540
5541 else
5542
5543                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5544
5545 fi
5546
5547
5548           eval "$wx_cv_use_vararg_macros"
5549
5550           if test x"$enablestring" = xdisable; then
5551             if test $wxUSE_VARARG_MACROS = no; then
5552               result=yes
5553             else
5554               result=no
5555             fi
5556           else
5557             result=$wxUSE_VARARG_MACROS
5558           fi
5559
5560           { echo "$as_me:$LINENO: result: $result" >&5
5561 echo "${ECHO_T}$result" >&6; }
5562
5563
5564
5565           enablestring=
5566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5567 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5568           # Check whether --enable-universal_binary was given.
5569 if test "${enable_universal_binary+set}" = set; then
5570   enableval=$enable_universal_binary;
5571                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5572
5573 else
5574
5575                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5576
5577 fi
5578
5579
5580           eval "$wx_cv_use_universal_binary"
5581
5582           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5583 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5584
5585
5586           enablestring=
5587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5589           # Check whether --enable-macosx_arch was given.
5590 if test "${enable_macosx_arch+set}" = set; then
5591   enableval=$enable_macosx_arch;
5592                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5593
5594 else
5595
5596                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5597
5598 fi
5599
5600
5601           eval "$wx_cv_use_macosx_arch"
5602
5603           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5604 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5605
5606
5607
5608           enablestring=
5609           defaultval=
5610           if test -z "$defaultval"; then
5611               if test x"$enablestring" = xdisable; then
5612                   defaultval=yes
5613               else
5614                   defaultval=no
5615               fi
5616           fi
5617
5618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5619 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5620           # Check whether --enable-compat26 was given.
5621 if test "${enable_compat26+set}" = set; then
5622   enableval=$enable_compat26;
5623                           if test "$enableval" = yes; then
5624                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5625                           else
5626                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5627                           fi
5628
5629 else
5630
5631                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5632
5633 fi
5634
5635
5636           eval "$wx_cv_use_compat26"
5637
5638           if test x"$enablestring" = xdisable; then
5639             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5640               result=yes
5641             else
5642               result=no
5643             fi
5644           else
5645             result=$WXWIN_COMPATIBILITY_2_6
5646           fi
5647
5648           { echo "$as_me:$LINENO: result: $result" >&5
5649 echo "${ECHO_T}$result" >&6; }
5650
5651
5652           enablestring=disable
5653           defaultval=
5654           if test -z "$defaultval"; then
5655               if test x"$enablestring" = xdisable; then
5656                   defaultval=yes
5657               else
5658                   defaultval=no
5659               fi
5660           fi
5661
5662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5663 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5664           # Check whether --enable-compat28 was given.
5665 if test "${enable_compat28+set}" = set; then
5666   enableval=$enable_compat28;
5667                           if test "$enableval" = yes; then
5668                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5669                           else
5670                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5671                           fi
5672
5673 else
5674
5675                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5676
5677 fi
5678
5679
5680           eval "$wx_cv_use_compat28"
5681
5682           if test x"$enablestring" = xdisable; then
5683             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5684               result=yes
5685             else
5686               result=no
5687             fi
5688           else
5689             result=$WXWIN_COMPATIBILITY_2_8
5690           fi
5691
5692           { echo "$as_me:$LINENO: result: $result" >&5
5693 echo "${ECHO_T}$result" >&6; }
5694
5695
5696
5697           enablestring=disable
5698           defaultval=
5699           if test -z "$defaultval"; then
5700               if test x"$enablestring" = xdisable; then
5701                   defaultval=yes
5702               else
5703                   defaultval=no
5704               fi
5705           fi
5706
5707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5708 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5709           # Check whether --enable-rpath was given.
5710 if test "${enable_rpath+set}" = set; then
5711   enableval=$enable_rpath;
5712                           if test "$enableval" = yes; then
5713                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5714                           else
5715                             wx_cv_use_rpath='wxUSE_RPATH=no'
5716                           fi
5717
5718 else
5719
5720                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5721
5722 fi
5723
5724
5725           eval "$wx_cv_use_rpath"
5726
5727           if test x"$enablestring" = xdisable; then
5728             if test $wxUSE_RPATH = no; then
5729               result=yes
5730             else
5731               result=no
5732             fi
5733           else
5734             result=$wxUSE_RPATH
5735           fi
5736
5737           { echo "$as_me:$LINENO: result: $result" >&5
5738 echo "${ECHO_T}$result" >&6; }
5739
5740
5741
5742           enablestring=
5743           defaultval=
5744           if test -z "$defaultval"; then
5745               if test x"$enablestring" = xdisable; then
5746                   defaultval=yes
5747               else
5748                   defaultval=no
5749               fi
5750           fi
5751
5752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5753 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5754           # Check whether --enable-objc_uniquifying was given.
5755 if test "${enable_objc_uniquifying+set}" = set; then
5756   enableval=$enable_objc_uniquifying;
5757                           if test "$enableval" = yes; then
5758                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5759                           else
5760                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5761                           fi
5762
5763 else
5764
5765                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5766
5767 fi
5768
5769
5770           eval "$wx_cv_use_objc_uniquifying"
5771
5772           if test x"$enablestring" = xdisable; then
5773             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5774               result=yes
5775             else
5776               result=no
5777             fi
5778           else
5779             result=$wxUSE_OBJC_UNIQUIFYING
5780           fi
5781
5782           { echo "$as_me:$LINENO: result: $result" >&5
5783 echo "${ECHO_T}$result" >&6; }
5784
5785
5786
5787           enablestring=disable
5788           defaultval=
5789           if test -z "$defaultval"; then
5790               if test x"$enablestring" = xdisable; then
5791                   defaultval=yes
5792               else
5793                   defaultval=no
5794               fi
5795           fi
5796
5797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5798 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5799           # Check whether --enable-visibility was given.
5800 if test "${enable_visibility+set}" = set; then
5801   enableval=$enable_visibility;
5802                           if test "$enableval" = yes; then
5803                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5804                           else
5805                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5806                           fi
5807
5808 else
5809
5810                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5811
5812 fi
5813
5814
5815           eval "$wx_cv_use_visibility"
5816
5817           if test x"$enablestring" = xdisable; then
5818             if test $wxUSE_VISIBILITY = no; then
5819               result=yes
5820             else
5821               result=no
5822             fi
5823           else
5824             result=$wxUSE_VISIBILITY
5825           fi
5826
5827           { echo "$as_me:$LINENO: result: $result" >&5
5828 echo "${ECHO_T}$result" >&6; }
5829
5830
5831           enablestring=disable
5832           defaultval=
5833           if test -z "$defaultval"; then
5834               if test x"$enablestring" = xdisable; then
5835                   defaultval=yes
5836               else
5837                   defaultval=no
5838               fi
5839           fi
5840
5841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5842 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5843           # Check whether --enable-tls was given.
5844 if test "${enable_tls+set}" = set; then
5845   enableval=$enable_tls;
5846                           if test "$enableval" = yes; then
5847                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5848                           else
5849                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5850                           fi
5851
5852 else
5853
5854                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5855
5856 fi
5857
5858
5859           eval "$wx_cv_use_tls"
5860
5861           if test x"$enablestring" = xdisable; then
5862             if test $wxUSE_COMPILER_TLS = no; then
5863               result=yes
5864             else
5865               result=no
5866             fi
5867           else
5868             result=$wxUSE_COMPILER_TLS
5869           fi
5870
5871           { echo "$as_me:$LINENO: result: $result" >&5
5872 echo "${ECHO_T}$result" >&6; }
5873
5874
5875
5876
5877           enablestring=
5878           defaultval=$wxUSE_ALL_FEATURES
5879           if test -z "$defaultval"; then
5880               if test x"$enablestring" = xdisable; then
5881                   defaultval=yes
5882               else
5883                   defaultval=no
5884               fi
5885           fi
5886
5887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5888 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5889           # Check whether --enable-intl was given.
5890 if test "${enable_intl+set}" = set; then
5891   enableval=$enable_intl;
5892                           if test "$enableval" = yes; then
5893                             wx_cv_use_intl='wxUSE_INTL=yes'
5894                           else
5895                             wx_cv_use_intl='wxUSE_INTL=no'
5896                           fi
5897
5898 else
5899
5900                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5901
5902 fi
5903
5904
5905           eval "$wx_cv_use_intl"
5906
5907           if test x"$enablestring" = xdisable; then
5908             if test $wxUSE_INTL = no; then
5909               result=yes
5910             else
5911               result=no
5912             fi
5913           else
5914             result=$wxUSE_INTL
5915           fi
5916
5917           { echo "$as_me:$LINENO: result: $result" >&5
5918 echo "${ECHO_T}$result" >&6; }
5919
5920
5921           enablestring=
5922           defaultval=$wxUSE_ALL_FEATURES
5923           if test -z "$defaultval"; then
5924               if test x"$enablestring" = xdisable; then
5925                   defaultval=yes
5926               else
5927                   defaultval=no
5928               fi
5929           fi
5930
5931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5932 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5933           # Check whether --enable-xlocale was given.
5934 if test "${enable_xlocale+set}" = set; then
5935   enableval=$enable_xlocale;
5936                           if test "$enableval" = yes; then
5937                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5938                           else
5939                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5940                           fi
5941
5942 else
5943
5944                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5945
5946 fi
5947
5948
5949           eval "$wx_cv_use_xlocale"
5950
5951           if test x"$enablestring" = xdisable; then
5952             if test $wxUSE_XLOCALE = no; then
5953               result=yes
5954             else
5955               result=no
5956             fi
5957           else
5958             result=$wxUSE_XLOCALE
5959           fi
5960
5961           { echo "$as_me:$LINENO: result: $result" >&5
5962 echo "${ECHO_T}$result" >&6; }
5963
5964
5965           enablestring=
5966           defaultval=$wxUSE_ALL_FEATURES
5967           if test -z "$defaultval"; then
5968               if test x"$enablestring" = xdisable; then
5969                   defaultval=yes
5970               else
5971                   defaultval=no
5972               fi
5973           fi
5974
5975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5976 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5977           # Check whether --enable-config was given.
5978 if test "${enable_config+set}" = set; then
5979   enableval=$enable_config;
5980                           if test "$enableval" = yes; then
5981                             wx_cv_use_config='wxUSE_CONFIG=yes'
5982                           else
5983                             wx_cv_use_config='wxUSE_CONFIG=no'
5984                           fi
5985
5986 else
5987
5988                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5989
5990 fi
5991
5992
5993           eval "$wx_cv_use_config"
5994
5995           if test x"$enablestring" = xdisable; then
5996             if test $wxUSE_CONFIG = no; then
5997               result=yes
5998             else
5999               result=no
6000             fi
6001           else
6002             result=$wxUSE_CONFIG
6003           fi
6004
6005           { echo "$as_me:$LINENO: result: $result" >&5
6006 echo "${ECHO_T}$result" >&6; }
6007
6008
6009
6010           enablestring=
6011           defaultval=$wxUSE_ALL_FEATURES
6012           if test -z "$defaultval"; then
6013               if test x"$enablestring" = xdisable; then
6014                   defaultval=yes
6015               else
6016                   defaultval=no
6017               fi
6018           fi
6019
6020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6021 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6022           # Check whether --enable-protocols was given.
6023 if test "${enable_protocols+set}" = set; then
6024   enableval=$enable_protocols;
6025                           if test "$enableval" = yes; then
6026                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6027                           else
6028                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6029                           fi
6030
6031 else
6032
6033                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6034
6035 fi
6036
6037
6038           eval "$wx_cv_use_protocols"
6039
6040           if test x"$enablestring" = xdisable; then
6041             if test $wxUSE_PROTOCOL = no; then
6042               result=yes
6043             else
6044               result=no
6045             fi
6046           else
6047             result=$wxUSE_PROTOCOL
6048           fi
6049
6050           { echo "$as_me:$LINENO: result: $result" >&5
6051 echo "${ECHO_T}$result" >&6; }
6052
6053
6054           enablestring=
6055           defaultval=$wxUSE_ALL_FEATURES
6056           if test -z "$defaultval"; then
6057               if test x"$enablestring" = xdisable; then
6058                   defaultval=yes
6059               else
6060                   defaultval=no
6061               fi
6062           fi
6063
6064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6065 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6066           # Check whether --enable-ftp was given.
6067 if test "${enable_ftp+set}" = set; then
6068   enableval=$enable_ftp;
6069                           if test "$enableval" = yes; then
6070                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6071                           else
6072                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6073                           fi
6074
6075 else
6076
6077                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6078
6079 fi
6080
6081
6082           eval "$wx_cv_use_ftp"
6083
6084           if test x"$enablestring" = xdisable; then
6085             if test $wxUSE_PROTOCOL_FTP = no; then
6086               result=yes
6087             else
6088               result=no
6089             fi
6090           else
6091             result=$wxUSE_PROTOCOL_FTP
6092           fi
6093
6094           { echo "$as_me:$LINENO: result: $result" >&5
6095 echo "${ECHO_T}$result" >&6; }
6096
6097
6098           enablestring=
6099           defaultval=$wxUSE_ALL_FEATURES
6100           if test -z "$defaultval"; then
6101               if test x"$enablestring" = xdisable; then
6102                   defaultval=yes
6103               else
6104                   defaultval=no
6105               fi
6106           fi
6107
6108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6109 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6110           # Check whether --enable-http was given.
6111 if test "${enable_http+set}" = set; then
6112   enableval=$enable_http;
6113                           if test "$enableval" = yes; then
6114                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6115                           else
6116                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6117                           fi
6118
6119 else
6120
6121                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6122
6123 fi
6124
6125
6126           eval "$wx_cv_use_http"
6127
6128           if test x"$enablestring" = xdisable; then
6129             if test $wxUSE_PROTOCOL_HTTP = no; then
6130               result=yes
6131             else
6132               result=no
6133             fi
6134           else
6135             result=$wxUSE_PROTOCOL_HTTP
6136           fi
6137
6138           { echo "$as_me:$LINENO: result: $result" >&5
6139 echo "${ECHO_T}$result" >&6; }
6140
6141
6142           enablestring=
6143           defaultval=$wxUSE_ALL_FEATURES
6144           if test -z "$defaultval"; then
6145               if test x"$enablestring" = xdisable; then
6146                   defaultval=yes
6147               else
6148                   defaultval=no
6149               fi
6150           fi
6151
6152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6153 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6154           # Check whether --enable-fileproto was given.
6155 if test "${enable_fileproto+set}" = set; then
6156   enableval=$enable_fileproto;
6157                           if test "$enableval" = yes; then
6158                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6159                           else
6160                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6161                           fi
6162
6163 else
6164
6165                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6166
6167 fi
6168
6169
6170           eval "$wx_cv_use_fileproto"
6171
6172           if test x"$enablestring" = xdisable; then
6173             if test $wxUSE_PROTOCOL_FILE = no; then
6174               result=yes
6175             else
6176               result=no
6177             fi
6178           else
6179             result=$wxUSE_PROTOCOL_FILE
6180           fi
6181
6182           { echo "$as_me:$LINENO: result: $result" >&5
6183 echo "${ECHO_T}$result" >&6; }
6184
6185
6186           enablestring=
6187           defaultval=$wxUSE_ALL_FEATURES
6188           if test -z "$defaultval"; then
6189               if test x"$enablestring" = xdisable; then
6190                   defaultval=yes
6191               else
6192                   defaultval=no
6193               fi
6194           fi
6195
6196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6197 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6198           # Check whether --enable-sockets was given.
6199 if test "${enable_sockets+set}" = set; then
6200   enableval=$enable_sockets;
6201                           if test "$enableval" = yes; then
6202                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6203                           else
6204                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6205                           fi
6206
6207 else
6208
6209                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6210
6211 fi
6212
6213
6214           eval "$wx_cv_use_sockets"
6215
6216           if test x"$enablestring" = xdisable; then
6217             if test $wxUSE_SOCKETS = no; then
6218               result=yes
6219             else
6220               result=no
6221             fi
6222           else
6223             result=$wxUSE_SOCKETS
6224           fi
6225
6226           { echo "$as_me:$LINENO: result: $result" >&5
6227 echo "${ECHO_T}$result" >&6; }
6228
6229
6230           enablestring=
6231           defaultval=$wxUSE_ALL_FEATURES
6232           if test -z "$defaultval"; then
6233               if test x"$enablestring" = xdisable; then
6234                   defaultval=yes
6235               else
6236                   defaultval=no
6237               fi
6238           fi
6239
6240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6241 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6242           # Check whether --enable-ipv6 was given.
6243 if test "${enable_ipv6+set}" = set; then
6244   enableval=$enable_ipv6;
6245                           if test "$enableval" = yes; then
6246                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6247                           else
6248                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6249                           fi
6250
6251 else
6252
6253                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6254
6255 fi
6256
6257
6258           eval "$wx_cv_use_ipv6"
6259
6260           if test x"$enablestring" = xdisable; then
6261             if test $wxUSE_IPV6 = no; then
6262               result=yes
6263             else
6264               result=no
6265             fi
6266           else
6267             result=$wxUSE_IPV6
6268           fi
6269
6270           { echo "$as_me:$LINENO: result: $result" >&5
6271 echo "${ECHO_T}$result" >&6; }
6272
6273
6274           enablestring=
6275           defaultval=$wxUSE_ALL_FEATURES
6276           if test -z "$defaultval"; then
6277               if test x"$enablestring" = xdisable; then
6278                   defaultval=yes
6279               else
6280                   defaultval=no
6281               fi
6282           fi
6283
6284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6286           # Check whether --enable-ole was given.
6287 if test "${enable_ole+set}" = set; then
6288   enableval=$enable_ole;
6289                           if test "$enableval" = yes; then
6290                             wx_cv_use_ole='wxUSE_OLE=yes'
6291                           else
6292                             wx_cv_use_ole='wxUSE_OLE=no'
6293                           fi
6294
6295 else
6296
6297                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6298
6299 fi
6300
6301
6302           eval "$wx_cv_use_ole"
6303
6304           if test x"$enablestring" = xdisable; then
6305             if test $wxUSE_OLE = no; then
6306               result=yes
6307             else
6308               result=no
6309             fi
6310           else
6311             result=$wxUSE_OLE
6312           fi
6313
6314           { echo "$as_me:$LINENO: result: $result" >&5
6315 echo "${ECHO_T}$result" >&6; }
6316
6317
6318           enablestring=
6319           defaultval=$wxUSE_ALL_FEATURES
6320           if test -z "$defaultval"; then
6321               if test x"$enablestring" = xdisable; then
6322                   defaultval=yes
6323               else
6324                   defaultval=no
6325               fi
6326           fi
6327
6328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6329 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6330           # Check whether --enable-dataobj was given.
6331 if test "${enable_dataobj+set}" = set; then
6332   enableval=$enable_dataobj;
6333                           if test "$enableval" = yes; then
6334                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6335                           else
6336                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6337                           fi
6338
6339 else
6340
6341                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6342
6343 fi
6344
6345
6346           eval "$wx_cv_use_dataobj"
6347
6348           if test x"$enablestring" = xdisable; then
6349             if test $wxUSE_DATAOBJ = no; then
6350               result=yes
6351             else
6352               result=no
6353             fi
6354           else
6355             result=$wxUSE_DATAOBJ
6356           fi
6357
6358           { echo "$as_me:$LINENO: result: $result" >&5
6359 echo "${ECHO_T}$result" >&6; }
6360
6361
6362
6363           enablestring=
6364           defaultval=$wxUSE_ALL_FEATURES
6365           if test -z "$defaultval"; then
6366               if test x"$enablestring" = xdisable; then
6367                   defaultval=yes
6368               else
6369                   defaultval=no
6370               fi
6371           fi
6372
6373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6374 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6375           # Check whether --enable-ipc was given.
6376 if test "${enable_ipc+set}" = set; then
6377   enableval=$enable_ipc;
6378                           if test "$enableval" = yes; then
6379                             wx_cv_use_ipc='wxUSE_IPC=yes'
6380                           else
6381                             wx_cv_use_ipc='wxUSE_IPC=no'
6382                           fi
6383
6384 else
6385
6386                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6387
6388 fi
6389
6390
6391           eval "$wx_cv_use_ipc"
6392
6393           if test x"$enablestring" = xdisable; then
6394             if test $wxUSE_IPC = no; then
6395               result=yes
6396             else
6397               result=no
6398             fi
6399           else
6400             result=$wxUSE_IPC
6401           fi
6402
6403           { echo "$as_me:$LINENO: result: $result" >&5
6404 echo "${ECHO_T}$result" >&6; }
6405
6406
6407
6408           enablestring=
6409           defaultval=$wxUSE_ALL_FEATURES
6410           if test -z "$defaultval"; then
6411               if test x"$enablestring" = xdisable; then
6412                   defaultval=yes
6413               else
6414                   defaultval=no
6415               fi
6416           fi
6417
6418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6419 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6420           # Check whether --enable-baseevtloop was given.
6421 if test "${enable_baseevtloop+set}" = set; then
6422   enableval=$enable_baseevtloop;
6423                           if test "$enableval" = yes; then
6424                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6425                           else
6426                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6427                           fi
6428
6429 else
6430
6431                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6432
6433 fi
6434
6435
6436           eval "$wx_cv_use_baseevtloop"
6437
6438           if test x"$enablestring" = xdisable; then
6439             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6440               result=yes
6441             else
6442               result=no
6443             fi
6444           else
6445             result=$wxUSE_CONSOLE_EVENTLOOP
6446           fi
6447
6448           { echo "$as_me:$LINENO: result: $result" >&5
6449 echo "${ECHO_T}$result" >&6; }
6450
6451
6452           enablestring=
6453           defaultval=$wxUSE_ALL_FEATURES
6454           if test -z "$defaultval"; then
6455               if test x"$enablestring" = xdisable; then
6456                   defaultval=yes
6457               else
6458                   defaultval=no
6459               fi
6460           fi
6461
6462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6463 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6464           # Check whether --enable-epollloop was given.
6465 if test "${enable_epollloop+set}" = set; then
6466   enableval=$enable_epollloop;
6467                           if test "$enableval" = yes; then
6468                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6469                           else
6470                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6471                           fi
6472
6473 else
6474
6475                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6476
6477 fi
6478
6479
6480           eval "$wx_cv_use_epollloop"
6481
6482           if test x"$enablestring" = xdisable; then
6483             if test $wxUSE_EPOLL_DISPATCHER = no; then
6484               result=yes
6485             else
6486               result=no
6487             fi
6488           else
6489             result=$wxUSE_EPOLL_DISPATCHER
6490           fi
6491
6492           { echo "$as_me:$LINENO: result: $result" >&5
6493 echo "${ECHO_T}$result" >&6; }
6494
6495
6496           enablestring=
6497           defaultval=$wxUSE_ALL_FEATURES
6498           if test -z "$defaultval"; then
6499               if test x"$enablestring" = xdisable; then
6500                   defaultval=yes
6501               else
6502                   defaultval=no
6503               fi
6504           fi
6505
6506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6507 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6508           # Check whether --enable-selectloop was given.
6509 if test "${enable_selectloop+set}" = set; then
6510   enableval=$enable_selectloop;
6511                           if test "$enableval" = yes; then
6512                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6513                           else
6514                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6515                           fi
6516
6517 else
6518
6519                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6520
6521 fi
6522
6523
6524           eval "$wx_cv_use_selectloop"
6525
6526           if test x"$enablestring" = xdisable; then
6527             if test $wxUSE_SELECT_DISPATCHER = no; then
6528               result=yes
6529             else
6530               result=no
6531             fi
6532           else
6533             result=$wxUSE_SELECT_DISPATCHER
6534           fi
6535
6536           { echo "$as_me:$LINENO: result: $result" >&5
6537 echo "${ECHO_T}$result" >&6; }
6538
6539
6540
6541           enablestring=
6542           defaultval=$wxUSE_ALL_FEATURES
6543           if test -z "$defaultval"; then
6544               if test x"$enablestring" = xdisable; then
6545                   defaultval=yes
6546               else
6547                   defaultval=no
6548               fi
6549           fi
6550
6551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6552 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6553           # Check whether --enable-any was given.
6554 if test "${enable_any+set}" = set; then
6555   enableval=$enable_any;
6556                           if test "$enableval" = yes; then
6557                             wx_cv_use_any='wxUSE_ANY=yes'
6558                           else
6559                             wx_cv_use_any='wxUSE_ANY=no'
6560                           fi
6561
6562 else
6563
6564                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6565
6566 fi
6567
6568
6569           eval "$wx_cv_use_any"
6570
6571           if test x"$enablestring" = xdisable; then
6572             if test $wxUSE_ANY = no; then
6573               result=yes
6574             else
6575               result=no
6576             fi
6577           else
6578             result=$wxUSE_ANY
6579           fi
6580
6581           { echo "$as_me:$LINENO: result: $result" >&5
6582 echo "${ECHO_T}$result" >&6; }
6583
6584
6585           enablestring=
6586           defaultval=$wxUSE_ALL_FEATURES
6587           if test -z "$defaultval"; then
6588               if test x"$enablestring" = xdisable; then
6589                   defaultval=yes
6590               else
6591                   defaultval=no
6592               fi
6593           fi
6594
6595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6597           # Check whether --enable-apple_ieee was given.
6598 if test "${enable_apple_ieee+set}" = set; then
6599   enableval=$enable_apple_ieee;
6600                           if test "$enableval" = yes; then
6601                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6602                           else
6603                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6604                           fi
6605
6606 else
6607
6608                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6609
6610 fi
6611
6612
6613           eval "$wx_cv_use_apple_ieee"
6614
6615           if test x"$enablestring" = xdisable; then
6616             if test $wxUSE_APPLE_IEEE = no; then
6617               result=yes
6618             else
6619               result=no
6620             fi
6621           else
6622             result=$wxUSE_APPLE_IEEE
6623           fi
6624
6625           { echo "$as_me:$LINENO: result: $result" >&5
6626 echo "${ECHO_T}$result" >&6; }
6627
6628
6629           enablestring=
6630           defaultval=$wxUSE_ALL_FEATURES
6631           if test -z "$defaultval"; then
6632               if test x"$enablestring" = xdisable; then
6633                   defaultval=yes
6634               else
6635                   defaultval=no
6636               fi
6637           fi
6638
6639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6640 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6641           # Check whether --enable-arcstream was given.
6642 if test "${enable_arcstream+set}" = set; then
6643   enableval=$enable_arcstream;
6644                           if test "$enableval" = yes; then
6645                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6646                           else
6647                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6648                           fi
6649
6650 else
6651
6652                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6653
6654 fi
6655
6656
6657           eval "$wx_cv_use_arcstream"
6658
6659           if test x"$enablestring" = xdisable; then
6660             if test $wxUSE_ARCHIVE_STREAMS = no; then
6661               result=yes
6662             else
6663               result=no
6664             fi
6665           else
6666             result=$wxUSE_ARCHIVE_STREAMS
6667           fi
6668
6669           { echo "$as_me:$LINENO: result: $result" >&5
6670 echo "${ECHO_T}$result" >&6; }
6671
6672
6673           enablestring=
6674           defaultval=$wxUSE_ALL_FEATURES
6675           if test -z "$defaultval"; then
6676               if test x"$enablestring" = xdisable; then
6677                   defaultval=yes
6678               else
6679                   defaultval=no
6680               fi
6681           fi
6682
6683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6684 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6685           # Check whether --enable-base64 was given.
6686 if test "${enable_base64+set}" = set; then
6687   enableval=$enable_base64;
6688                           if test "$enableval" = yes; then
6689                             wx_cv_use_base64='wxUSE_BASE64=yes'
6690                           else
6691                             wx_cv_use_base64='wxUSE_BASE64=no'
6692                           fi
6693
6694 else
6695
6696                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6697
6698 fi
6699
6700
6701           eval "$wx_cv_use_base64"
6702
6703           if test x"$enablestring" = xdisable; then
6704             if test $wxUSE_BASE64 = no; then
6705               result=yes
6706             else
6707               result=no
6708             fi
6709           else
6710             result=$wxUSE_BASE64
6711           fi
6712
6713           { echo "$as_me:$LINENO: result: $result" >&5
6714 echo "${ECHO_T}$result" >&6; }
6715
6716
6717           enablestring=
6718           defaultval=$wxUSE_ALL_FEATURES
6719           if test -z "$defaultval"; then
6720               if test x"$enablestring" = xdisable; then
6721                   defaultval=yes
6722               else
6723                   defaultval=no
6724               fi
6725           fi
6726
6727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6728 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6729           # Check whether --enable-backtrace was given.
6730 if test "${enable_backtrace+set}" = set; then
6731   enableval=$enable_backtrace;
6732                           if test "$enableval" = yes; then
6733                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6734                           else
6735                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6736                           fi
6737
6738 else
6739
6740                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6741
6742 fi
6743
6744
6745           eval "$wx_cv_use_backtrace"
6746
6747           if test x"$enablestring" = xdisable; then
6748             if test $wxUSE_STACKWALKER = no; then
6749               result=yes
6750             else
6751               result=no
6752             fi
6753           else
6754             result=$wxUSE_STACKWALKER
6755           fi
6756
6757           { echo "$as_me:$LINENO: result: $result" >&5
6758 echo "${ECHO_T}$result" >&6; }
6759
6760
6761           enablestring=
6762           defaultval=$wxUSE_ALL_FEATURES
6763           if test -z "$defaultval"; then
6764               if test x"$enablestring" = xdisable; then
6765                   defaultval=yes
6766               else
6767                   defaultval=no
6768               fi
6769           fi
6770
6771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6772 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6773           # Check whether --enable-catch_segvs was given.
6774 if test "${enable_catch_segvs+set}" = set; then
6775   enableval=$enable_catch_segvs;
6776                           if test "$enableval" = yes; then
6777                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6778                           else
6779                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6780                           fi
6781
6782 else
6783
6784                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6785
6786 fi
6787
6788
6789           eval "$wx_cv_use_catch_segvs"
6790
6791           if test x"$enablestring" = xdisable; then
6792             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6793               result=yes
6794             else
6795               result=no
6796             fi
6797           else
6798             result=$wxUSE_ON_FATAL_EXCEPTION
6799           fi
6800
6801           { echo "$as_me:$LINENO: result: $result" >&5
6802 echo "${ECHO_T}$result" >&6; }
6803
6804
6805           enablestring=
6806           defaultval=$wxUSE_ALL_FEATURES
6807           if test -z "$defaultval"; then
6808               if test x"$enablestring" = xdisable; then
6809                   defaultval=yes
6810               else
6811                   defaultval=no
6812               fi
6813           fi
6814
6815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6816 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6817           # Check whether --enable-cmdline was given.
6818 if test "${enable_cmdline+set}" = set; then
6819   enableval=$enable_cmdline;
6820                           if test "$enableval" = yes; then
6821                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6822                           else
6823                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6824                           fi
6825
6826 else
6827
6828                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6829
6830 fi
6831
6832
6833           eval "$wx_cv_use_cmdline"
6834
6835           if test x"$enablestring" = xdisable; then
6836             if test $wxUSE_CMDLINE_PARSER = no; then
6837               result=yes
6838             else
6839               result=no
6840             fi
6841           else
6842             result=$wxUSE_CMDLINE_PARSER
6843           fi
6844
6845           { echo "$as_me:$LINENO: result: $result" >&5
6846 echo "${ECHO_T}$result" >&6; }
6847
6848
6849           enablestring=
6850           defaultval=$wxUSE_ALL_FEATURES
6851           if test -z "$defaultval"; then
6852               if test x"$enablestring" = xdisable; then
6853                   defaultval=yes
6854               else
6855                   defaultval=no
6856               fi
6857           fi
6858
6859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6860 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6861           # Check whether --enable-datetime was given.
6862 if test "${enable_datetime+set}" = set; then
6863   enableval=$enable_datetime;
6864                           if test "$enableval" = yes; then
6865                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6866                           else
6867                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6868                           fi
6869
6870 else
6871
6872                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6873
6874 fi
6875
6876
6877           eval "$wx_cv_use_datetime"
6878
6879           if test x"$enablestring" = xdisable; then
6880             if test $wxUSE_DATETIME = no; then
6881               result=yes
6882             else
6883               result=no
6884             fi
6885           else
6886             result=$wxUSE_DATETIME
6887           fi
6888
6889           { echo "$as_me:$LINENO: result: $result" >&5
6890 echo "${ECHO_T}$result" >&6; }
6891
6892
6893           enablestring=
6894           defaultval=$wxUSE_ALL_FEATURES
6895           if test -z "$defaultval"; then
6896               if test x"$enablestring" = xdisable; then
6897                   defaultval=yes
6898               else
6899                   defaultval=no
6900               fi
6901           fi
6902
6903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6904 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6905           # Check whether --enable-debugreport was given.
6906 if test "${enable_debugreport+set}" = set; then
6907   enableval=$enable_debugreport;
6908                           if test "$enableval" = yes; then
6909                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6910                           else
6911                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6912                           fi
6913
6914 else
6915
6916                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6917
6918 fi
6919
6920
6921           eval "$wx_cv_use_debugreport"
6922
6923           if test x"$enablestring" = xdisable; then
6924             if test $wxUSE_DEBUGREPORT = no; then
6925               result=yes
6926             else
6927               result=no
6928             fi
6929           else
6930             result=$wxUSE_DEBUGREPORT
6931           fi
6932
6933           { echo "$as_me:$LINENO: result: $result" >&5
6934 echo "${ECHO_T}$result" >&6; }
6935
6936
6937           enablestring=
6938           defaultval=$wxUSE_ALL_FEATURES
6939           if test -z "$defaultval"; then
6940               if test x"$enablestring" = xdisable; then
6941                   defaultval=yes
6942               else
6943                   defaultval=no
6944               fi
6945           fi
6946
6947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6948 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6949           # Check whether --enable-dialupman was given.
6950 if test "${enable_dialupman+set}" = set; then
6951   enableval=$enable_dialupman;
6952                           if test "$enableval" = yes; then
6953                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6954                           else
6955                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6956                           fi
6957
6958 else
6959
6960                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6961
6962 fi
6963
6964
6965           eval "$wx_cv_use_dialupman"
6966
6967           if test x"$enablestring" = xdisable; then
6968             if test $wxUSE_DIALUP_MANAGER = no; then
6969               result=yes
6970             else
6971               result=no
6972             fi
6973           else
6974             result=$wxUSE_DIALUP_MANAGER
6975           fi
6976
6977           { echo "$as_me:$LINENO: result: $result" >&5
6978 echo "${ECHO_T}$result" >&6; }
6979
6980
6981           enablestring=
6982           defaultval=$wxUSE_ALL_FEATURES
6983           if test -z "$defaultval"; then
6984               if test x"$enablestring" = xdisable; then
6985                   defaultval=yes
6986               else
6987                   defaultval=no
6988               fi
6989           fi
6990
6991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6992 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6993           # Check whether --enable-dynlib was given.
6994 if test "${enable_dynlib+set}" = set; then
6995   enableval=$enable_dynlib;
6996                           if test "$enableval" = yes; then
6997                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6998                           else
6999                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7000                           fi
7001
7002 else
7003
7004                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7005
7006 fi
7007
7008
7009           eval "$wx_cv_use_dynlib"
7010
7011           if test x"$enablestring" = xdisable; then
7012             if test $wxUSE_DYNLIB_CLASS = no; then
7013               result=yes
7014             else
7015               result=no
7016             fi
7017           else
7018             result=$wxUSE_DYNLIB_CLASS
7019           fi
7020
7021           { echo "$as_me:$LINENO: result: $result" >&5
7022 echo "${ECHO_T}$result" >&6; }
7023
7024
7025           enablestring=
7026           defaultval=$wxUSE_ALL_FEATURES
7027           if test -z "$defaultval"; then
7028               if test x"$enablestring" = xdisable; then
7029                   defaultval=yes
7030               else
7031                   defaultval=no
7032               fi
7033           fi
7034
7035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7036 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7037           # Check whether --enable-dynamicloader was given.
7038 if test "${enable_dynamicloader+set}" = set; then
7039   enableval=$enable_dynamicloader;
7040                           if test "$enableval" = yes; then
7041                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7042                           else
7043                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7044                           fi
7045
7046 else
7047
7048                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7049
7050 fi
7051
7052
7053           eval "$wx_cv_use_dynamicloader"
7054
7055           if test x"$enablestring" = xdisable; then
7056             if test $wxUSE_DYNAMIC_LOADER = no; then
7057               result=yes
7058             else
7059               result=no
7060             fi
7061           else
7062             result=$wxUSE_DYNAMIC_LOADER
7063           fi
7064
7065           { echo "$as_me:$LINENO: result: $result" >&5
7066 echo "${ECHO_T}$result" >&6; }
7067
7068
7069           enablestring=
7070           defaultval=$wxUSE_ALL_FEATURES
7071           if test -z "$defaultval"; then
7072               if test x"$enablestring" = xdisable; then
7073                   defaultval=yes
7074               else
7075                   defaultval=no
7076               fi
7077           fi
7078
7079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7080 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7081           # Check whether --enable-exceptions was given.
7082 if test "${enable_exceptions+set}" = set; then
7083   enableval=$enable_exceptions;
7084                           if test "$enableval" = yes; then
7085                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7086                           else
7087                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7088                           fi
7089
7090 else
7091
7092                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7093
7094 fi
7095
7096
7097           eval "$wx_cv_use_exceptions"
7098
7099           if test x"$enablestring" = xdisable; then
7100             if test $wxUSE_EXCEPTIONS = no; then
7101               result=yes
7102             else
7103               result=no
7104             fi
7105           else
7106             result=$wxUSE_EXCEPTIONS
7107           fi
7108
7109           { echo "$as_me:$LINENO: result: $result" >&5
7110 echo "${ECHO_T}$result" >&6; }
7111
7112
7113           enablestring=
7114           defaultval=$wxUSE_ALL_FEATURES
7115           if test -z "$defaultval"; then
7116               if test x"$enablestring" = xdisable; then
7117                   defaultval=yes
7118               else
7119                   defaultval=no
7120               fi
7121           fi
7122
7123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7124 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7125           # Check whether --enable-ffile was given.
7126 if test "${enable_ffile+set}" = set; then
7127   enableval=$enable_ffile;
7128                           if test "$enableval" = yes; then
7129                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7130                           else
7131                             wx_cv_use_ffile='wxUSE_FFILE=no'
7132                           fi
7133
7134 else
7135
7136                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7137
7138 fi
7139
7140
7141           eval "$wx_cv_use_ffile"
7142
7143           if test x"$enablestring" = xdisable; then
7144             if test $wxUSE_FFILE = no; then
7145               result=yes
7146             else
7147               result=no
7148             fi
7149           else
7150             result=$wxUSE_FFILE
7151           fi
7152
7153           { echo "$as_me:$LINENO: result: $result" >&5
7154 echo "${ECHO_T}$result" >&6; }
7155
7156
7157           enablestring=
7158           defaultval=$wxUSE_ALL_FEATURES
7159           if test -z "$defaultval"; then
7160               if test x"$enablestring" = xdisable; then
7161                   defaultval=yes
7162               else
7163                   defaultval=no
7164               fi
7165           fi
7166
7167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7168 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7169           # Check whether --enable-file was given.
7170 if test "${enable_file+set}" = set; then
7171   enableval=$enable_file;
7172                           if test "$enableval" = yes; then
7173                             wx_cv_use_file='wxUSE_FILE=yes'
7174                           else
7175                             wx_cv_use_file='wxUSE_FILE=no'
7176                           fi
7177
7178 else
7179
7180                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7181
7182 fi
7183
7184
7185           eval "$wx_cv_use_file"
7186
7187           if test x"$enablestring" = xdisable; then
7188             if test $wxUSE_FILE = no; then
7189               result=yes
7190             else
7191               result=no
7192             fi
7193           else
7194             result=$wxUSE_FILE
7195           fi
7196
7197           { echo "$as_me:$LINENO: result: $result" >&5
7198 echo "${ECHO_T}$result" >&6; }
7199
7200
7201           enablestring=
7202           defaultval=$wxUSE_ALL_FEATURES
7203           if test -z "$defaultval"; then
7204               if test x"$enablestring" = xdisable; then
7205                   defaultval=yes
7206               else
7207                   defaultval=no
7208               fi
7209           fi
7210
7211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7212 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7213           # Check whether --enable-filehistory was given.
7214 if test "${enable_filehistory+set}" = set; then
7215   enableval=$enable_filehistory;
7216                           if test "$enableval" = yes; then
7217                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7218                           else
7219                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7220                           fi
7221
7222 else
7223
7224                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7225
7226 fi
7227
7228
7229           eval "$wx_cv_use_filehistory"
7230
7231           if test x"$enablestring" = xdisable; then
7232             if test $wxUSE_FILE_HISTORY = no; then
7233               result=yes
7234             else
7235               result=no
7236             fi
7237           else
7238             result=$wxUSE_FILE_HISTORY
7239           fi
7240
7241           { echo "$as_me:$LINENO: result: $result" >&5
7242 echo "${ECHO_T}$result" >&6; }
7243
7244
7245           enablestring=
7246           defaultval=$wxUSE_ALL_FEATURES
7247           if test -z "$defaultval"; then
7248               if test x"$enablestring" = xdisable; then
7249                   defaultval=yes
7250               else
7251                   defaultval=no
7252               fi
7253           fi
7254
7255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7256 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7257           # Check whether --enable-filesystem was given.
7258 if test "${enable_filesystem+set}" = set; then
7259   enableval=$enable_filesystem;
7260                           if test "$enableval" = yes; then
7261                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7262                           else
7263                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7264                           fi
7265
7266 else
7267
7268                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7269
7270 fi
7271
7272
7273           eval "$wx_cv_use_filesystem"
7274
7275           if test x"$enablestring" = xdisable; then
7276             if test $wxUSE_FILESYSTEM = no; then
7277               result=yes
7278             else
7279               result=no
7280             fi
7281           else
7282             result=$wxUSE_FILESYSTEM
7283           fi
7284
7285           { echo "$as_me:$LINENO: result: $result" >&5
7286 echo "${ECHO_T}$result" >&6; }
7287
7288
7289           enablestring=
7290           defaultval=$wxUSE_ALL_FEATURES
7291           if test -z "$defaultval"; then
7292               if test x"$enablestring" = xdisable; then
7293                   defaultval=yes
7294               else
7295                   defaultval=no
7296               fi
7297           fi
7298
7299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7300 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7301           # Check whether --enable-fontenum was given.
7302 if test "${enable_fontenum+set}" = set; then
7303   enableval=$enable_fontenum;
7304                           if test "$enableval" = yes; then
7305                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7306                           else
7307                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7308                           fi
7309
7310 else
7311
7312                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7313
7314 fi
7315
7316
7317           eval "$wx_cv_use_fontenum"
7318
7319           if test x"$enablestring" = xdisable; then
7320             if test $wxUSE_FONTENUM = no; then
7321               result=yes
7322             else
7323               result=no
7324             fi
7325           else
7326             result=$wxUSE_FONTENUM
7327           fi
7328
7329           { echo "$as_me:$LINENO: result: $result" >&5
7330 echo "${ECHO_T}$result" >&6; }
7331
7332
7333           enablestring=
7334           defaultval=$wxUSE_ALL_FEATURES
7335           if test -z "$defaultval"; then
7336               if test x"$enablestring" = xdisable; then
7337                   defaultval=yes
7338               else
7339                   defaultval=no
7340               fi
7341           fi
7342
7343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7344 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7345           # Check whether --enable-fontmap was given.
7346 if test "${enable_fontmap+set}" = set; then
7347   enableval=$enable_fontmap;
7348                           if test "$enableval" = yes; then
7349                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7350                           else
7351                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7352                           fi
7353
7354 else
7355
7356                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7357
7358 fi
7359
7360
7361           eval "$wx_cv_use_fontmap"
7362
7363           if test x"$enablestring" = xdisable; then
7364             if test $wxUSE_FONTMAP = no; then
7365               result=yes
7366             else
7367               result=no
7368             fi
7369           else
7370             result=$wxUSE_FONTMAP
7371           fi
7372
7373           { echo "$as_me:$LINENO: result: $result" >&5
7374 echo "${ECHO_T}$result" >&6; }
7375
7376
7377           enablestring=
7378           defaultval=$wxUSE_ALL_FEATURES
7379           if test -z "$defaultval"; then
7380               if test x"$enablestring" = xdisable; then
7381                   defaultval=yes
7382               else
7383                   defaultval=no
7384               fi
7385           fi
7386
7387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7388 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7389           # Check whether --enable-fs_archive was given.
7390 if test "${enable_fs_archive+set}" = set; then
7391   enableval=$enable_fs_archive;
7392                           if test "$enableval" = yes; then
7393                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7394                           else
7395                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7396                           fi
7397
7398 else
7399
7400                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7401
7402 fi
7403
7404
7405           eval "$wx_cv_use_fs_archive"
7406
7407           if test x"$enablestring" = xdisable; then
7408             if test $wxUSE_FS_ARCHIVE = no; then
7409               result=yes
7410             else
7411               result=no
7412             fi
7413           else
7414             result=$wxUSE_FS_ARCHIVE
7415           fi
7416
7417           { echo "$as_me:$LINENO: result: $result" >&5
7418 echo "${ECHO_T}$result" >&6; }
7419
7420
7421           enablestring=
7422           defaultval=$wxUSE_ALL_FEATURES
7423           if test -z "$defaultval"; then
7424               if test x"$enablestring" = xdisable; then
7425                   defaultval=yes
7426               else
7427                   defaultval=no
7428               fi
7429           fi
7430
7431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7432 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7433           # Check whether --enable-fs_inet was given.
7434 if test "${enable_fs_inet+set}" = set; then
7435   enableval=$enable_fs_inet;
7436                           if test "$enableval" = yes; then
7437                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7438                           else
7439                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7440                           fi
7441
7442 else
7443
7444                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7445
7446 fi
7447
7448
7449           eval "$wx_cv_use_fs_inet"
7450
7451           if test x"$enablestring" = xdisable; then
7452             if test $wxUSE_FS_INET = no; then
7453               result=yes
7454             else
7455               result=no
7456             fi
7457           else
7458             result=$wxUSE_FS_INET
7459           fi
7460
7461           { echo "$as_me:$LINENO: result: $result" >&5
7462 echo "${ECHO_T}$result" >&6; }
7463
7464
7465           enablestring=
7466           defaultval=$wxUSE_ALL_FEATURES
7467           if test -z "$defaultval"; then
7468               if test x"$enablestring" = xdisable; then
7469                   defaultval=yes
7470               else
7471                   defaultval=no
7472               fi
7473           fi
7474
7475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7477           # Check whether --enable-fs_zip was given.
7478 if test "${enable_fs_zip+set}" = set; then
7479   enableval=$enable_fs_zip;
7480                           if test "$enableval" = yes; then
7481                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7482                           else
7483                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7484                           fi
7485
7486 else
7487
7488                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7489
7490 fi
7491
7492
7493           eval "$wx_cv_use_fs_zip"
7494
7495           if test x"$enablestring" = xdisable; then
7496             if test $wxUSE_FS_ZIP = no; then
7497               result=yes
7498             else
7499               result=no
7500             fi
7501           else
7502             result=$wxUSE_FS_ZIP
7503           fi
7504
7505           { echo "$as_me:$LINENO: result: $result" >&5
7506 echo "${ECHO_T}$result" >&6; }
7507
7508
7509           enablestring=
7510           defaultval=$wxUSE_ALL_FEATURES
7511           if test -z "$defaultval"; then
7512               if test x"$enablestring" = xdisable; then
7513                   defaultval=yes
7514               else
7515                   defaultval=no
7516               fi
7517           fi
7518
7519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7520 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7521           # Check whether --enable-fswatcher was given.
7522 if test "${enable_fswatcher+set}" = set; then
7523   enableval=$enable_fswatcher;
7524                           if test "$enableval" = yes; then
7525                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7526                           else
7527                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7528                           fi
7529
7530 else
7531
7532                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7533
7534 fi
7535
7536
7537           eval "$wx_cv_use_fswatcher"
7538
7539           if test x"$enablestring" = xdisable; then
7540             if test $wxUSE_FSWATCHER = no; then
7541               result=yes
7542             else
7543               result=no
7544             fi
7545           else
7546             result=$wxUSE_FSWATCHER
7547           fi
7548
7549           { echo "$as_me:$LINENO: result: $result" >&5
7550 echo "${ECHO_T}$result" >&6; }
7551
7552
7553           enablestring=
7554           defaultval=$wxUSE_ALL_FEATURES
7555           if test -z "$defaultval"; then
7556               if test x"$enablestring" = xdisable; then
7557                   defaultval=yes
7558               else
7559                   defaultval=no
7560               fi
7561           fi
7562
7563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7564 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7565           # Check whether --enable-geometry was given.
7566 if test "${enable_geometry+set}" = set; then
7567   enableval=$enable_geometry;
7568                           if test "$enableval" = yes; then
7569                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7570                           else
7571                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7572                           fi
7573
7574 else
7575
7576                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7577
7578 fi
7579
7580
7581           eval "$wx_cv_use_geometry"
7582
7583           if test x"$enablestring" = xdisable; then
7584             if test $wxUSE_GEOMETRY = no; then
7585               result=yes
7586             else
7587               result=no
7588             fi
7589           else
7590             result=$wxUSE_GEOMETRY
7591           fi
7592
7593           { echo "$as_me:$LINENO: result: $result" >&5
7594 echo "${ECHO_T}$result" >&6; }
7595
7596
7597           enablestring=
7598           defaultval=$wxUSE_ALL_FEATURES
7599           if test -z "$defaultval"; then
7600               if test x"$enablestring" = xdisable; then
7601                   defaultval=yes
7602               else
7603                   defaultval=no
7604               fi
7605           fi
7606
7607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7608 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7609           # Check whether --enable-log was given.
7610 if test "${enable_log+set}" = set; then
7611   enableval=$enable_log;
7612                           if test "$enableval" = yes; then
7613                             wx_cv_use_log='wxUSE_LOG=yes'
7614                           else
7615                             wx_cv_use_log='wxUSE_LOG=no'
7616                           fi
7617
7618 else
7619
7620                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7621
7622 fi
7623
7624
7625           eval "$wx_cv_use_log"
7626
7627           if test x"$enablestring" = xdisable; then
7628             if test $wxUSE_LOG = no; then
7629               result=yes
7630             else
7631               result=no
7632             fi
7633           else
7634             result=$wxUSE_LOG
7635           fi
7636
7637           { echo "$as_me:$LINENO: result: $result" >&5
7638 echo "${ECHO_T}$result" >&6; }
7639
7640
7641           enablestring=
7642           defaultval=$wxUSE_ALL_FEATURES
7643           if test -z "$defaultval"; then
7644               if test x"$enablestring" = xdisable; then
7645                   defaultval=yes
7646               else
7647                   defaultval=no
7648               fi
7649           fi
7650
7651           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7652 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7653           # Check whether --enable-longlong was given.
7654 if test "${enable_longlong+set}" = set; then
7655   enableval=$enable_longlong;
7656                           if test "$enableval" = yes; then
7657                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7658                           else
7659                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7660                           fi
7661
7662 else
7663
7664                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7665
7666 fi
7667
7668
7669           eval "$wx_cv_use_longlong"
7670
7671           if test x"$enablestring" = xdisable; then
7672             if test $wxUSE_LONGLONG = no; then
7673               result=yes
7674             else
7675               result=no
7676             fi
7677           else
7678             result=$wxUSE_LONGLONG
7679           fi
7680
7681           { echo "$as_me:$LINENO: result: $result" >&5
7682 echo "${ECHO_T}$result" >&6; }
7683
7684
7685           enablestring=
7686           defaultval=$wxUSE_ALL_FEATURES
7687           if test -z "$defaultval"; then
7688               if test x"$enablestring" = xdisable; then
7689                   defaultval=yes
7690               else
7691                   defaultval=no
7692               fi
7693           fi
7694
7695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7696 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7697           # Check whether --enable-mimetype was given.
7698 if test "${enable_mimetype+set}" = set; then
7699   enableval=$enable_mimetype;
7700                           if test "$enableval" = yes; then
7701                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7702                           else
7703                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7704                           fi
7705
7706 else
7707
7708                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7709
7710 fi
7711
7712
7713           eval "$wx_cv_use_mimetype"
7714
7715           if test x"$enablestring" = xdisable; then
7716             if test $wxUSE_MIMETYPE = no; then
7717               result=yes
7718             else
7719               result=no
7720             fi
7721           else
7722             result=$wxUSE_MIMETYPE
7723           fi
7724
7725           { echo "$as_me:$LINENO: result: $result" >&5
7726 echo "${ECHO_T}$result" >&6; }
7727
7728
7729           enablestring=
7730           defaultval=$wxUSE_ALL_FEATURES
7731           if test -z "$defaultval"; then
7732               if test x"$enablestring" = xdisable; then
7733                   defaultval=yes
7734               else
7735                   defaultval=no
7736               fi
7737           fi
7738
7739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7740 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7741           # Check whether --enable-printfposparam was given.
7742 if test "${enable_printfposparam+set}" = set; then
7743   enableval=$enable_printfposparam;
7744                           if test "$enableval" = yes; then
7745                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7746                           else
7747                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7748                           fi
7749
7750 else
7751
7752                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7753
7754 fi
7755
7756
7757           eval "$wx_cv_use_printfposparam"
7758
7759           if test x"$enablestring" = xdisable; then
7760             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7761               result=yes
7762             else
7763               result=no
7764             fi
7765           else
7766             result=$wxUSE_PRINTF_POS_PARAMS
7767           fi
7768
7769           { echo "$as_me:$LINENO: result: $result" >&5
7770 echo "${ECHO_T}$result" >&6; }
7771
7772
7773           enablestring=
7774           defaultval=$wxUSE_ALL_FEATURES
7775           if test -z "$defaultval"; then
7776               if test x"$enablestring" = xdisable; then
7777                   defaultval=yes
7778               else
7779                   defaultval=no
7780               fi
7781           fi
7782
7783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7784 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7785           # Check whether --enable-snglinst was given.
7786 if test "${enable_snglinst+set}" = set; then
7787   enableval=$enable_snglinst;
7788                           if test "$enableval" = yes; then
7789                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7790                           else
7791                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7792                           fi
7793
7794 else
7795
7796                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7797
7798 fi
7799
7800
7801           eval "$wx_cv_use_snglinst"
7802
7803           if test x"$enablestring" = xdisable; then
7804             if test $wxUSE_SNGLINST_CHECKER = no; then
7805               result=yes
7806             else
7807               result=no
7808             fi
7809           else
7810             result=$wxUSE_SNGLINST_CHECKER
7811           fi
7812
7813           { echo "$as_me:$LINENO: result: $result" >&5
7814 echo "${ECHO_T}$result" >&6; }
7815
7816
7817           enablestring=
7818           defaultval=$wxUSE_ALL_FEATURES
7819           if test -z "$defaultval"; then
7820               if test x"$enablestring" = xdisable; then
7821                   defaultval=yes
7822               else
7823                   defaultval=no
7824               fi
7825           fi
7826
7827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7828 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7829           # Check whether --enable-sound was given.
7830 if test "${enable_sound+set}" = set; then
7831   enableval=$enable_sound;
7832                           if test "$enableval" = yes; then
7833                             wx_cv_use_sound='wxUSE_SOUND=yes'
7834                           else
7835                             wx_cv_use_sound='wxUSE_SOUND=no'
7836                           fi
7837
7838 else
7839
7840                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7841
7842 fi
7843
7844
7845           eval "$wx_cv_use_sound"
7846
7847           if test x"$enablestring" = xdisable; then
7848             if test $wxUSE_SOUND = no; then
7849               result=yes
7850             else
7851               result=no
7852             fi
7853           else
7854             result=$wxUSE_SOUND
7855           fi
7856
7857           { echo "$as_me:$LINENO: result: $result" >&5
7858 echo "${ECHO_T}$result" >&6; }
7859
7860
7861           enablestring=
7862           defaultval=$wxUSE_ALL_FEATURES
7863           if test -z "$defaultval"; then
7864               if test x"$enablestring" = xdisable; then
7865                   defaultval=yes
7866               else
7867                   defaultval=no
7868               fi
7869           fi
7870
7871           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7872 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7873           # Check whether --enable-stdpaths was given.
7874 if test "${enable_stdpaths+set}" = set; then
7875   enableval=$enable_stdpaths;
7876                           if test "$enableval" = yes; then
7877                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7878                           else
7879                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7880                           fi
7881
7882 else
7883
7884                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7885
7886 fi
7887
7888
7889           eval "$wx_cv_use_stdpaths"
7890
7891           if test x"$enablestring" = xdisable; then
7892             if test $wxUSE_STDPATHS = no; then
7893               result=yes
7894             else
7895               result=no
7896             fi
7897           else
7898             result=$wxUSE_STDPATHS
7899           fi
7900
7901           { echo "$as_me:$LINENO: result: $result" >&5
7902 echo "${ECHO_T}$result" >&6; }
7903
7904
7905           enablestring=
7906           defaultval=$wxUSE_ALL_FEATURES
7907           if test -z "$defaultval"; then
7908               if test x"$enablestring" = xdisable; then
7909                   defaultval=yes
7910               else
7911                   defaultval=no
7912               fi
7913           fi
7914
7915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7916 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7917           # Check whether --enable-stopwatch was given.
7918 if test "${enable_stopwatch+set}" = set; then
7919   enableval=$enable_stopwatch;
7920                           if test "$enableval" = yes; then
7921                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7922                           else
7923                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7924                           fi
7925
7926 else
7927
7928                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7929
7930 fi
7931
7932
7933           eval "$wx_cv_use_stopwatch"
7934
7935           if test x"$enablestring" = xdisable; then
7936             if test $wxUSE_STOPWATCH = no; then
7937               result=yes
7938             else
7939               result=no
7940             fi
7941           else
7942             result=$wxUSE_STOPWATCH
7943           fi
7944
7945           { echo "$as_me:$LINENO: result: $result" >&5
7946 echo "${ECHO_T}$result" >&6; }
7947
7948
7949           enablestring=
7950           defaultval=$wxUSE_ALL_FEATURES
7951           if test -z "$defaultval"; then
7952               if test x"$enablestring" = xdisable; then
7953                   defaultval=yes
7954               else
7955                   defaultval=no
7956               fi
7957           fi
7958
7959           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7960 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7961           # Check whether --enable-streams was given.
7962 if test "${enable_streams+set}" = set; then
7963   enableval=$enable_streams;
7964                           if test "$enableval" = yes; then
7965                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7966                           else
7967                             wx_cv_use_streams='wxUSE_STREAMS=no'
7968                           fi
7969
7970 else
7971
7972                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7973
7974 fi
7975
7976
7977           eval "$wx_cv_use_streams"
7978
7979           if test x"$enablestring" = xdisable; then
7980             if test $wxUSE_STREAMS = no; then
7981               result=yes
7982             else
7983               result=no
7984             fi
7985           else
7986             result=$wxUSE_STREAMS
7987           fi
7988
7989           { echo "$as_me:$LINENO: result: $result" >&5
7990 echo "${ECHO_T}$result" >&6; }
7991
7992
7993           enablestring=
7994           defaultval=$wxUSE_ALL_FEATURES
7995           if test -z "$defaultval"; then
7996               if test x"$enablestring" = xdisable; then
7997                   defaultval=yes
7998               else
7999                   defaultval=no
8000               fi
8001           fi
8002
8003           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
8004 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
8005           # Check whether --enable-sysoptions was given.
8006 if test "${enable_sysoptions+set}" = set; then
8007   enableval=$enable_sysoptions;
8008                           if test "$enableval" = yes; then
8009                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
8010                           else
8011                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
8012                           fi
8013
8014 else
8015
8016                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8017
8018 fi
8019
8020
8021           eval "$wx_cv_use_sysoptions"
8022
8023           if test x"$enablestring" = xdisable; then
8024             if test $wxUSE_SYSTEM_OPTIONS = no; then
8025               result=yes
8026             else
8027               result=no
8028             fi
8029           else
8030             result=$wxUSE_SYSTEM_OPTIONS
8031           fi
8032
8033           { echo "$as_me:$LINENO: result: $result" >&5
8034 echo "${ECHO_T}$result" >&6; }
8035
8036
8037           enablestring=
8038           defaultval=$wxUSE_ALL_FEATURES
8039           if test -z "$defaultval"; then
8040               if test x"$enablestring" = xdisable; then
8041                   defaultval=yes
8042               else
8043                   defaultval=no
8044               fi
8045           fi
8046
8047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8048 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8049           # Check whether --enable-tarstream was given.
8050 if test "${enable_tarstream+set}" = set; then
8051   enableval=$enable_tarstream;
8052                           if test "$enableval" = yes; then
8053                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8054                           else
8055                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8056                           fi
8057
8058 else
8059
8060                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8061
8062 fi
8063
8064
8065           eval "$wx_cv_use_tarstream"
8066
8067           if test x"$enablestring" = xdisable; then
8068             if test $wxUSE_TARSTREAM = no; then
8069               result=yes
8070             else
8071               result=no
8072             fi
8073           else
8074             result=$wxUSE_TARSTREAM
8075           fi
8076
8077           { echo "$as_me:$LINENO: result: $result" >&5
8078 echo "${ECHO_T}$result" >&6; }
8079
8080
8081           enablestring=
8082           defaultval=$wxUSE_ALL_FEATURES
8083           if test -z "$defaultval"; then
8084               if test x"$enablestring" = xdisable; then
8085                   defaultval=yes
8086               else
8087                   defaultval=no
8088               fi
8089           fi
8090
8091           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8092 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8093           # Check whether --enable-textbuf was given.
8094 if test "${enable_textbuf+set}" = set; then
8095   enableval=$enable_textbuf;
8096                           if test "$enableval" = yes; then
8097                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8098                           else
8099                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8100                           fi
8101
8102 else
8103
8104                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8105
8106 fi
8107
8108
8109           eval "$wx_cv_use_textbuf"
8110
8111           if test x"$enablestring" = xdisable; then
8112             if test $wxUSE_TEXTBUFFER = no; then
8113               result=yes
8114             else
8115               result=no
8116             fi
8117           else
8118             result=$wxUSE_TEXTBUFFER
8119           fi
8120
8121           { echo "$as_me:$LINENO: result: $result" >&5
8122 echo "${ECHO_T}$result" >&6; }
8123
8124
8125           enablestring=
8126           defaultval=$wxUSE_ALL_FEATURES
8127           if test -z "$defaultval"; then
8128               if test x"$enablestring" = xdisable; then
8129                   defaultval=yes
8130               else
8131                   defaultval=no
8132               fi
8133           fi
8134
8135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8136 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8137           # Check whether --enable-textfile was given.
8138 if test "${enable_textfile+set}" = set; then
8139   enableval=$enable_textfile;
8140                           if test "$enableval" = yes; then
8141                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8142                           else
8143                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8144                           fi
8145
8146 else
8147
8148                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8149
8150 fi
8151
8152
8153           eval "$wx_cv_use_textfile"
8154
8155           if test x"$enablestring" = xdisable; then
8156             if test $wxUSE_TEXTFILE = no; then
8157               result=yes
8158             else
8159               result=no
8160             fi
8161           else
8162             result=$wxUSE_TEXTFILE
8163           fi
8164
8165           { echo "$as_me:$LINENO: result: $result" >&5
8166 echo "${ECHO_T}$result" >&6; }
8167
8168
8169           enablestring=
8170           defaultval=$wxUSE_ALL_FEATURES
8171           if test -z "$defaultval"; then
8172               if test x"$enablestring" = xdisable; then
8173                   defaultval=yes
8174               else
8175                   defaultval=no
8176               fi
8177           fi
8178
8179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8180 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8181           # Check whether --enable-timer was given.
8182 if test "${enable_timer+set}" = set; then
8183   enableval=$enable_timer;
8184                           if test "$enableval" = yes; then
8185                             wx_cv_use_timer='wxUSE_TIMER=yes'
8186                           else
8187                             wx_cv_use_timer='wxUSE_TIMER=no'
8188                           fi
8189
8190 else
8191
8192                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8193
8194 fi
8195
8196
8197           eval "$wx_cv_use_timer"
8198
8199           if test x"$enablestring" = xdisable; then
8200             if test $wxUSE_TIMER = no; then
8201               result=yes
8202             else
8203               result=no
8204             fi
8205           else
8206             result=$wxUSE_TIMER
8207           fi
8208
8209           { echo "$as_me:$LINENO: result: $result" >&5
8210 echo "${ECHO_T}$result" >&6; }
8211
8212
8213           enablestring=
8214           defaultval=$wxUSE_ALL_FEATURES
8215           if test -z "$defaultval"; then
8216               if test x"$enablestring" = xdisable; then
8217                   defaultval=yes
8218               else
8219                   defaultval=no
8220               fi
8221           fi
8222
8223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8224 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8225           # Check whether --enable-variant was given.
8226 if test "${enable_variant+set}" = set; then
8227   enableval=$enable_variant;
8228                           if test "$enableval" = yes; then
8229                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8230                           else
8231                             wx_cv_use_variant='wxUSE_VARIANT=no'
8232                           fi
8233
8234 else
8235
8236                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8237
8238 fi
8239
8240
8241           eval "$wx_cv_use_variant"
8242
8243           if test x"$enablestring" = xdisable; then
8244             if test $wxUSE_VARIANT = no; then
8245               result=yes
8246             else
8247               result=no
8248             fi
8249           else
8250             result=$wxUSE_VARIANT
8251           fi
8252
8253           { echo "$as_me:$LINENO: result: $result" >&5
8254 echo "${ECHO_T}$result" >&6; }
8255
8256
8257           enablestring=
8258           defaultval=$wxUSE_ALL_FEATURES
8259           if test -z "$defaultval"; then
8260               if test x"$enablestring" = xdisable; then
8261                   defaultval=yes
8262               else
8263                   defaultval=no
8264               fi
8265           fi
8266
8267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8268 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8269           # Check whether --enable-zipstream was given.
8270 if test "${enable_zipstream+set}" = set; then
8271   enableval=$enable_zipstream;
8272                           if test "$enableval" = yes; then
8273                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8274                           else
8275                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8276                           fi
8277
8278 else
8279
8280                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8281
8282 fi
8283
8284
8285           eval "$wx_cv_use_zipstream"
8286
8287           if test x"$enablestring" = xdisable; then
8288             if test $wxUSE_ZIPSTREAM = no; then
8289               result=yes
8290             else
8291               result=no
8292             fi
8293           else
8294             result=$wxUSE_ZIPSTREAM
8295           fi
8296
8297           { echo "$as_me:$LINENO: result: $result" >&5
8298 echo "${ECHO_T}$result" >&6; }
8299
8300
8301
8302           enablestring=
8303           defaultval=$wxUSE_ALL_FEATURES
8304           if test -z "$defaultval"; then
8305               if test x"$enablestring" = xdisable; then
8306                   defaultval=yes
8307               else
8308                   defaultval=no
8309               fi
8310           fi
8311
8312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8313 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8314           # Check whether --enable-url was given.
8315 if test "${enable_url+set}" = set; then
8316   enableval=$enable_url;
8317                           if test "$enableval" = yes; then
8318                             wx_cv_use_url='wxUSE_URL=yes'
8319                           else
8320                             wx_cv_use_url='wxUSE_URL=no'
8321                           fi
8322
8323 else
8324
8325                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8326
8327 fi
8328
8329
8330           eval "$wx_cv_use_url"
8331
8332           if test x"$enablestring" = xdisable; then
8333             if test $wxUSE_URL = no; then
8334               result=yes
8335             else
8336               result=no
8337             fi
8338           else
8339             result=$wxUSE_URL
8340           fi
8341
8342           { echo "$as_me:$LINENO: result: $result" >&5
8343 echo "${ECHO_T}$result" >&6; }
8344
8345
8346           enablestring=
8347           defaultval=$wxUSE_ALL_FEATURES
8348           if test -z "$defaultval"; then
8349               if test x"$enablestring" = xdisable; then
8350                   defaultval=yes
8351               else
8352                   defaultval=no
8353               fi
8354           fi
8355
8356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8357 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8358           # Check whether --enable-protocol was given.
8359 if test "${enable_protocol+set}" = set; then
8360   enableval=$enable_protocol;
8361                           if test "$enableval" = yes; then
8362                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8363                           else
8364                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8365                           fi
8366
8367 else
8368
8369                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8370
8371 fi
8372
8373
8374           eval "$wx_cv_use_protocol"
8375
8376           if test x"$enablestring" = xdisable; then
8377             if test $wxUSE_PROTOCOL = no; then
8378               result=yes
8379             else
8380               result=no
8381             fi
8382           else
8383             result=$wxUSE_PROTOCOL
8384           fi
8385
8386           { echo "$as_me:$LINENO: result: $result" >&5
8387 echo "${ECHO_T}$result" >&6; }
8388
8389
8390           enablestring=
8391           defaultval=$wxUSE_ALL_FEATURES
8392           if test -z "$defaultval"; then
8393               if test x"$enablestring" = xdisable; then
8394                   defaultval=yes
8395               else
8396                   defaultval=no
8397               fi
8398           fi
8399
8400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8401 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8402           # Check whether --enable-protocol_http was given.
8403 if test "${enable_protocol_http+set}" = set; then
8404   enableval=$enable_protocol_http;
8405                           if test "$enableval" = yes; then
8406                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8407                           else
8408                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8409                           fi
8410
8411 else
8412
8413                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8414
8415 fi
8416
8417
8418           eval "$wx_cv_use_protocol_http"
8419
8420           if test x"$enablestring" = xdisable; then
8421             if test $wxUSE_PROTOCOL_HTTP = no; then
8422               result=yes
8423             else
8424               result=no
8425             fi
8426           else
8427             result=$wxUSE_PROTOCOL_HTTP
8428           fi
8429
8430           { echo "$as_me:$LINENO: result: $result" >&5
8431 echo "${ECHO_T}$result" >&6; }
8432
8433
8434           enablestring=
8435           defaultval=$wxUSE_ALL_FEATURES
8436           if test -z "$defaultval"; then
8437               if test x"$enablestring" = xdisable; then
8438                   defaultval=yes
8439               else
8440                   defaultval=no
8441               fi
8442           fi
8443
8444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8445 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8446           # Check whether --enable-protocol_ftp was given.
8447 if test "${enable_protocol_ftp+set}" = set; then
8448   enableval=$enable_protocol_ftp;
8449                           if test "$enableval" = yes; then
8450                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8451                           else
8452                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8453                           fi
8454
8455 else
8456
8457                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8458
8459 fi
8460
8461
8462           eval "$wx_cv_use_protocol_ftp"
8463
8464           if test x"$enablestring" = xdisable; then
8465             if test $wxUSE_PROTOCOL_FTP = no; then
8466               result=yes
8467             else
8468               result=no
8469             fi
8470           else
8471             result=$wxUSE_PROTOCOL_FTP
8472           fi
8473
8474           { echo "$as_me:$LINENO: result: $result" >&5
8475 echo "${ECHO_T}$result" >&6; }
8476
8477
8478           enablestring=
8479           defaultval=$wxUSE_ALL_FEATURES
8480           if test -z "$defaultval"; then
8481               if test x"$enablestring" = xdisable; then
8482                   defaultval=yes
8483               else
8484                   defaultval=no
8485               fi
8486           fi
8487
8488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8489 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8490           # Check whether --enable-protocol_file was given.
8491 if test "${enable_protocol_file+set}" = set; then
8492   enableval=$enable_protocol_file;
8493                           if test "$enableval" = yes; then
8494                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8495                           else
8496                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8497                           fi
8498
8499 else
8500
8501                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8502
8503 fi
8504
8505
8506           eval "$wx_cv_use_protocol_file"
8507
8508           if test x"$enablestring" = xdisable; then
8509             if test $wxUSE_PROTOCOL_FILE = no; then
8510               result=yes
8511             else
8512               result=no
8513             fi
8514           else
8515             result=$wxUSE_PROTOCOL_FILE
8516           fi
8517
8518           { echo "$as_me:$LINENO: result: $result" >&5
8519 echo "${ECHO_T}$result" >&6; }
8520
8521
8522
8523           enablestring=
8524           defaultval=$wxUSE_ALL_FEATURES
8525           if test -z "$defaultval"; then
8526               if test x"$enablestring" = xdisable; then
8527                   defaultval=yes
8528               else
8529                   defaultval=no
8530               fi
8531           fi
8532
8533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8534 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8535           # Check whether --enable-threads was given.
8536 if test "${enable_threads+set}" = set; then
8537   enableval=$enable_threads;
8538                           if test "$enableval" = yes; then
8539                             wx_cv_use_threads='wxUSE_THREADS=yes'
8540                           else
8541                             wx_cv_use_threads='wxUSE_THREADS=no'
8542                           fi
8543
8544 else
8545
8546                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8547
8548 fi
8549
8550
8551           eval "$wx_cv_use_threads"
8552
8553           if test x"$enablestring" = xdisable; then
8554             if test $wxUSE_THREADS = no; then
8555               result=yes
8556             else
8557               result=no
8558             fi
8559           else
8560             result=$wxUSE_THREADS
8561           fi
8562
8563           { echo "$as_me:$LINENO: result: $result" >&5
8564 echo "${ECHO_T}$result" >&6; }
8565
8566
8567
8568           enablestring=
8569           defaultval=
8570           if test -z "$defaultval"; then
8571               if test x"$enablestring" = xdisable; then
8572                   defaultval=yes
8573               else
8574                   defaultval=no
8575               fi
8576           fi
8577
8578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8579 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8580           # Check whether --enable-iniconf was given.
8581 if test "${enable_iniconf+set}" = set; then
8582   enableval=$enable_iniconf;
8583                           if test "$enableval" = yes; then
8584                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8585                           else
8586                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8587                           fi
8588
8589 else
8590
8591                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8592
8593 fi
8594
8595
8596           eval "$wx_cv_use_iniconf"
8597
8598           if test x"$enablestring" = xdisable; then
8599             if test $wxUSE_INICONF = no; then
8600               result=yes
8601             else
8602               result=no
8603             fi
8604           else
8605             result=$wxUSE_INICONF
8606           fi
8607
8608           { echo "$as_me:$LINENO: result: $result" >&5
8609 echo "${ECHO_T}$result" >&6; }
8610
8611
8612           enablestring=
8613           defaultval=$wxUSE_ALL_FEATURES
8614           if test -z "$defaultval"; then
8615               if test x"$enablestring" = xdisable; then
8616                   defaultval=yes
8617               else
8618                   defaultval=no
8619               fi
8620           fi
8621
8622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8623 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8624           # Check whether --enable-regkey was given.
8625 if test "${enable_regkey+set}" = set; then
8626   enableval=$enable_regkey;
8627                           if test "$enableval" = yes; then
8628                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8629                           else
8630                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8631                           fi
8632
8633 else
8634
8635                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8636
8637 fi
8638
8639
8640           eval "$wx_cv_use_regkey"
8641
8642           if test x"$enablestring" = xdisable; then
8643             if test $wxUSE_REGKEY = no; then
8644               result=yes
8645             else
8646               result=no
8647             fi
8648           else
8649             result=$wxUSE_REGKEY
8650           fi
8651
8652           { echo "$as_me:$LINENO: result: $result" >&5
8653 echo "${ECHO_T}$result" >&6; }
8654
8655
8656 if test "$wxUSE_GUI" = "yes"; then
8657
8658
8659
8660           enablestring=
8661           defaultval=$wxUSE_ALL_FEATURES
8662           if test -z "$defaultval"; then
8663               if test x"$enablestring" = xdisable; then
8664                   defaultval=yes
8665               else
8666                   defaultval=no
8667               fi
8668           fi
8669
8670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8671 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8672           # Check whether --enable-docview was given.
8673 if test "${enable_docview+set}" = set; then
8674   enableval=$enable_docview;
8675                           if test "$enableval" = yes; then
8676                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8677                           else
8678                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8679                           fi
8680
8681 else
8682
8683                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8684
8685 fi
8686
8687
8688           eval "$wx_cv_use_docview"
8689
8690           if test x"$enablestring" = xdisable; then
8691             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8692               result=yes
8693             else
8694               result=no
8695             fi
8696           else
8697             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8698           fi
8699
8700           { echo "$as_me:$LINENO: result: $result" >&5
8701 echo "${ECHO_T}$result" >&6; }
8702
8703
8704           enablestring=
8705           defaultval=$wxUSE_ALL_FEATURES
8706           if test -z "$defaultval"; then
8707               if test x"$enablestring" = xdisable; then
8708                   defaultval=yes
8709               else
8710                   defaultval=no
8711               fi
8712           fi
8713
8714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8715 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8716           # Check whether --enable-help was given.
8717 if test "${enable_help+set}" = set; then
8718   enableval=$enable_help;
8719                           if test "$enableval" = yes; then
8720                             wx_cv_use_help='wxUSE_HELP=yes'
8721                           else
8722                             wx_cv_use_help='wxUSE_HELP=no'
8723                           fi
8724
8725 else
8726
8727                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8728
8729 fi
8730
8731
8732           eval "$wx_cv_use_help"
8733
8734           if test x"$enablestring" = xdisable; then
8735             if test $wxUSE_HELP = no; then
8736               result=yes
8737             else
8738               result=no
8739             fi
8740           else
8741             result=$wxUSE_HELP
8742           fi
8743
8744           { echo "$as_me:$LINENO: result: $result" >&5
8745 echo "${ECHO_T}$result" >&6; }
8746
8747
8748           enablestring=
8749           defaultval=$wxUSE_ALL_FEATURES
8750           if test -z "$defaultval"; then
8751               if test x"$enablestring" = xdisable; then
8752                   defaultval=yes
8753               else
8754                   defaultval=no
8755               fi
8756           fi
8757
8758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8759 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8760           # Check whether --enable-mshtmlhelp was given.
8761 if test "${enable_mshtmlhelp+set}" = set; then
8762   enableval=$enable_mshtmlhelp;
8763                           if test "$enableval" = yes; then
8764                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8765                           else
8766                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8767                           fi
8768
8769 else
8770
8771                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8772
8773 fi
8774
8775
8776           eval "$wx_cv_use_mshtmlhelp"
8777
8778           if test x"$enablestring" = xdisable; then
8779             if test $wxUSE_MS_HTML_HELP = no; then
8780               result=yes
8781             else
8782               result=no
8783             fi
8784           else
8785             result=$wxUSE_MS_HTML_HELP
8786           fi
8787
8788           { echo "$as_me:$LINENO: result: $result" >&5
8789 echo "${ECHO_T}$result" >&6; }
8790
8791
8792           enablestring=
8793           defaultval=$wxUSE_ALL_FEATURES
8794           if test -z "$defaultval"; then
8795               if test x"$enablestring" = xdisable; then
8796                   defaultval=yes
8797               else
8798                   defaultval=no
8799               fi
8800           fi
8801
8802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8803 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8804           # Check whether --enable-html was given.
8805 if test "${enable_html+set}" = set; then
8806   enableval=$enable_html;
8807                           if test "$enableval" = yes; then
8808                             wx_cv_use_html='wxUSE_HTML=yes'
8809                           else
8810                             wx_cv_use_html='wxUSE_HTML=no'
8811                           fi
8812
8813 else
8814
8815                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8816
8817 fi
8818
8819
8820           eval "$wx_cv_use_html"
8821
8822           if test x"$enablestring" = xdisable; then
8823             if test $wxUSE_HTML = no; then
8824               result=yes
8825             else
8826               result=no
8827             fi
8828           else
8829             result=$wxUSE_HTML
8830           fi
8831
8832           { echo "$as_me:$LINENO: result: $result" >&5
8833 echo "${ECHO_T}$result" >&6; }
8834
8835
8836           enablestring=
8837           defaultval=$wxUSE_ALL_FEATURES
8838           if test -z "$defaultval"; then
8839               if test x"$enablestring" = xdisable; then
8840                   defaultval=yes
8841               else
8842                   defaultval=no
8843               fi
8844           fi
8845
8846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8847 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8848           # Check whether --enable-htmlhelp was given.
8849 if test "${enable_htmlhelp+set}" = set; then
8850   enableval=$enable_htmlhelp;
8851                           if test "$enableval" = yes; then
8852                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8853                           else
8854                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8855                           fi
8856
8857 else
8858
8859                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8860
8861 fi
8862
8863
8864           eval "$wx_cv_use_htmlhelp"
8865
8866           if test x"$enablestring" = xdisable; then
8867             if test $wxUSE_WXHTML_HELP = no; then
8868               result=yes
8869             else
8870               result=no
8871             fi
8872           else
8873             result=$wxUSE_WXHTML_HELP
8874           fi
8875
8876           { echo "$as_me:$LINENO: result: $result" >&5
8877 echo "${ECHO_T}$result" >&6; }
8878
8879
8880           enablestring=
8881           defaultval=$wxUSE_ALL_FEATURES
8882           if test -z "$defaultval"; then
8883               if test x"$enablestring" = xdisable; then
8884                   defaultval=yes
8885               else
8886                   defaultval=no
8887               fi
8888           fi
8889
8890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8891 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8892           # Check whether --enable-xrc was given.
8893 if test "${enable_xrc+set}" = set; then
8894   enableval=$enable_xrc;
8895                           if test "$enableval" = yes; then
8896                             wx_cv_use_xrc='wxUSE_XRC=yes'
8897                           else
8898                             wx_cv_use_xrc='wxUSE_XRC=no'
8899                           fi
8900
8901 else
8902
8903                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8904
8905 fi
8906
8907
8908           eval "$wx_cv_use_xrc"
8909
8910           if test x"$enablestring" = xdisable; then
8911             if test $wxUSE_XRC = no; then
8912               result=yes
8913             else
8914               result=no
8915             fi
8916           else
8917             result=$wxUSE_XRC
8918           fi
8919
8920           { echo "$as_me:$LINENO: result: $result" >&5
8921 echo "${ECHO_T}$result" >&6; }
8922
8923
8924           enablestring=
8925           defaultval=$wxUSE_ALL_FEATURES
8926           if test -z "$defaultval"; then
8927               if test x"$enablestring" = xdisable; then
8928                   defaultval=yes
8929               else
8930                   defaultval=no
8931               fi
8932           fi
8933
8934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8936           # Check whether --enable-aui was given.
8937 if test "${enable_aui+set}" = set; then
8938   enableval=$enable_aui;
8939                           if test "$enableval" = yes; then
8940                             wx_cv_use_aui='wxUSE_AUI=yes'
8941                           else
8942                             wx_cv_use_aui='wxUSE_AUI=no'
8943                           fi
8944
8945 else
8946
8947                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8948
8949 fi
8950
8951
8952           eval "$wx_cv_use_aui"
8953
8954           if test x"$enablestring" = xdisable; then
8955             if test $wxUSE_AUI = no; then
8956               result=yes
8957             else
8958               result=no
8959             fi
8960           else
8961             result=$wxUSE_AUI
8962           fi
8963
8964           { echo "$as_me:$LINENO: result: $result" >&5
8965 echo "${ECHO_T}$result" >&6; }
8966
8967
8968           enablestring=
8969           defaultval=$wxUSE_ALL_FEATURES
8970           if test -z "$defaultval"; then
8971               if test x"$enablestring" = xdisable; then
8972                   defaultval=yes
8973               else
8974                   defaultval=no
8975               fi
8976           fi
8977
8978           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8979 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8980           # Check whether --enable-propgrid was given.
8981 if test "${enable_propgrid+set}" = set; then
8982   enableval=$enable_propgrid;
8983                           if test "$enableval" = yes; then
8984                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8985                           else
8986                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8987                           fi
8988
8989 else
8990
8991                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8992
8993 fi
8994
8995
8996           eval "$wx_cv_use_propgrid"
8997
8998           if test x"$enablestring" = xdisable; then
8999             if test $wxUSE_PROPGRID = no; then
9000               result=yes
9001             else
9002               result=no
9003             fi
9004           else
9005             result=$wxUSE_PROPGRID
9006           fi
9007
9008           { echo "$as_me:$LINENO: result: $result" >&5
9009 echo "${ECHO_T}$result" >&6; }
9010
9011
9012           enablestring=
9013           defaultval=$wxUSE_ALL_FEATURES
9014           if test -z "$defaultval"; then
9015               if test x"$enablestring" = xdisable; then
9016                   defaultval=yes
9017               else
9018                   defaultval=no
9019               fi
9020           fi
9021
9022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
9023 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
9024           # Check whether --enable-ribbon was given.
9025 if test "${enable_ribbon+set}" = set; then
9026   enableval=$enable_ribbon;
9027                           if test "$enableval" = yes; then
9028                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
9029                           else
9030                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
9031                           fi
9032
9033 else
9034
9035                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9036
9037 fi
9038
9039
9040           eval "$wx_cv_use_ribbon"
9041
9042           if test x"$enablestring" = xdisable; then
9043             if test $wxUSE_RIBBON = no; then
9044               result=yes
9045             else
9046               result=no
9047             fi
9048           else
9049             result=$wxUSE_RIBBON
9050           fi
9051
9052           { echo "$as_me:$LINENO: result: $result" >&5
9053 echo "${ECHO_T}$result" >&6; }
9054
9055
9056           enablestring=
9057           defaultval=$wxUSE_ALL_FEATURES
9058           if test -z "$defaultval"; then
9059               if test x"$enablestring" = xdisable; then
9060                   defaultval=yes
9061               else
9062                   defaultval=no
9063               fi
9064           fi
9065
9066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9067 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9068           # Check whether --enable-stc was given.
9069 if test "${enable_stc+set}" = set; then
9070   enableval=$enable_stc;
9071                           if test "$enableval" = yes; then
9072                             wx_cv_use_stc='wxUSE_STC=yes'
9073                           else
9074                             wx_cv_use_stc='wxUSE_STC=no'
9075                           fi
9076
9077 else
9078
9079                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9080
9081 fi
9082
9083
9084           eval "$wx_cv_use_stc"
9085
9086           if test x"$enablestring" = xdisable; then
9087             if test $wxUSE_STC = no; then
9088               result=yes
9089             else
9090               result=no
9091             fi
9092           else
9093             result=$wxUSE_STC
9094           fi
9095
9096           { echo "$as_me:$LINENO: result: $result" >&5
9097 echo "${ECHO_T}$result" >&6; }
9098
9099
9100           enablestring=
9101           defaultval=$wxUSE_ALL_FEATURES
9102           if test -z "$defaultval"; then
9103               if test x"$enablestring" = xdisable; then
9104                   defaultval=yes
9105               else
9106                   defaultval=no
9107               fi
9108           fi
9109
9110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9111 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9112           # Check whether --enable-constraints was given.
9113 if test "${enable_constraints+set}" = set; then
9114   enableval=$enable_constraints;
9115                           if test "$enableval" = yes; then
9116                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9117                           else
9118                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9119                           fi
9120
9121 else
9122
9123                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9124
9125 fi
9126
9127
9128           eval "$wx_cv_use_constraints"
9129
9130           if test x"$enablestring" = xdisable; then
9131             if test $wxUSE_CONSTRAINTS = no; then
9132               result=yes
9133             else
9134               result=no
9135             fi
9136           else
9137             result=$wxUSE_CONSTRAINTS
9138           fi
9139
9140           { echo "$as_me:$LINENO: result: $result" >&5
9141 echo "${ECHO_T}$result" >&6; }
9142
9143
9144           enablestring=
9145           defaultval=$wxUSE_ALL_FEATURES
9146           if test -z "$defaultval"; then
9147               if test x"$enablestring" = xdisable; then
9148                   defaultval=yes
9149               else
9150                   defaultval=no
9151               fi
9152           fi
9153
9154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9155 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9156           # Check whether --enable-loggui was given.
9157 if test "${enable_loggui+set}" = set; then
9158   enableval=$enable_loggui;
9159                           if test "$enableval" = yes; then
9160                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9161                           else
9162                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9163                           fi
9164
9165 else
9166
9167                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9168
9169 fi
9170
9171
9172           eval "$wx_cv_use_loggui"
9173
9174           if test x"$enablestring" = xdisable; then
9175             if test $wxUSE_LOGGUI = no; then
9176               result=yes
9177             else
9178               result=no
9179             fi
9180           else
9181             result=$wxUSE_LOGGUI
9182           fi
9183
9184           { echo "$as_me:$LINENO: result: $result" >&5
9185 echo "${ECHO_T}$result" >&6; }
9186
9187
9188           enablestring=
9189           defaultval=$wxUSE_ALL_FEATURES
9190           if test -z "$defaultval"; then
9191               if test x"$enablestring" = xdisable; then
9192                   defaultval=yes
9193               else
9194                   defaultval=no
9195               fi
9196           fi
9197
9198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9199 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9200           # Check whether --enable-logwin was given.
9201 if test "${enable_logwin+set}" = set; then
9202   enableval=$enable_logwin;
9203                           if test "$enableval" = yes; then
9204                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9205                           else
9206                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9207                           fi
9208
9209 else
9210
9211                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9212
9213 fi
9214
9215
9216           eval "$wx_cv_use_logwin"
9217
9218           if test x"$enablestring" = xdisable; then
9219             if test $wxUSE_LOGWINDOW = no; then
9220               result=yes
9221             else
9222               result=no
9223             fi
9224           else
9225             result=$wxUSE_LOGWINDOW
9226           fi
9227
9228           { echo "$as_me:$LINENO: result: $result" >&5
9229 echo "${ECHO_T}$result" >&6; }
9230
9231
9232           enablestring=
9233           defaultval=$wxUSE_ALL_FEATURES
9234           if test -z "$defaultval"; then
9235               if test x"$enablestring" = xdisable; then
9236                   defaultval=yes
9237               else
9238                   defaultval=no
9239               fi
9240           fi
9241
9242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9243 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9244           # Check whether --enable-logdialog was given.
9245 if test "${enable_logdialog+set}" = set; then
9246   enableval=$enable_logdialog;
9247                           if test "$enableval" = yes; then
9248                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9249                           else
9250                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9251                           fi
9252
9253 else
9254
9255                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9256
9257 fi
9258
9259
9260           eval "$wx_cv_use_logdialog"
9261
9262           if test x"$enablestring" = xdisable; then
9263             if test $wxUSE_LOGDIALOG = no; then
9264               result=yes
9265             else
9266               result=no
9267             fi
9268           else
9269             result=$wxUSE_LOGDIALOG
9270           fi
9271
9272           { echo "$as_me:$LINENO: result: $result" >&5
9273 echo "${ECHO_T}$result" >&6; }
9274
9275
9276           enablestring=
9277           defaultval=$wxUSE_ALL_FEATURES
9278           if test -z "$defaultval"; then
9279               if test x"$enablestring" = xdisable; then
9280                   defaultval=yes
9281               else
9282                   defaultval=no
9283               fi
9284           fi
9285
9286           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9287 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9288           # Check whether --enable-mdi was given.
9289 if test "${enable_mdi+set}" = set; then
9290   enableval=$enable_mdi;
9291                           if test "$enableval" = yes; then
9292                             wx_cv_use_mdi='wxUSE_MDI=yes'
9293                           else
9294                             wx_cv_use_mdi='wxUSE_MDI=no'
9295                           fi
9296
9297 else
9298
9299                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9300
9301 fi
9302
9303
9304           eval "$wx_cv_use_mdi"
9305
9306           if test x"$enablestring" = xdisable; then
9307             if test $wxUSE_MDI = no; then
9308               result=yes
9309             else
9310               result=no
9311             fi
9312           else
9313             result=$wxUSE_MDI
9314           fi
9315
9316           { echo "$as_me:$LINENO: result: $result" >&5
9317 echo "${ECHO_T}$result" >&6; }
9318
9319
9320           enablestring=
9321           defaultval=$wxUSE_ALL_FEATURES
9322           if test -z "$defaultval"; then
9323               if test x"$enablestring" = xdisable; then
9324                   defaultval=yes
9325               else
9326                   defaultval=no
9327               fi
9328           fi
9329
9330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9331 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9332           # Check whether --enable-mdidoc was given.
9333 if test "${enable_mdidoc+set}" = set; then
9334   enableval=$enable_mdidoc;
9335                           if test "$enableval" = yes; then
9336                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9337                           else
9338                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9339                           fi
9340
9341 else
9342
9343                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9344
9345 fi
9346
9347
9348           eval "$wx_cv_use_mdidoc"
9349
9350           if test x"$enablestring" = xdisable; then
9351             if test $wxUSE_MDI_ARCHITECTURE = no; then
9352               result=yes
9353             else
9354               result=no
9355             fi
9356           else
9357             result=$wxUSE_MDI_ARCHITECTURE
9358           fi
9359
9360           { echo "$as_me:$LINENO: result: $result" >&5
9361 echo "${ECHO_T}$result" >&6; }
9362
9363
9364           enablestring=
9365           defaultval=$wxUSE_ALL_FEATURES
9366           if test -z "$defaultval"; then
9367               if test x"$enablestring" = xdisable; then
9368                   defaultval=yes
9369               else
9370                   defaultval=no
9371               fi
9372           fi
9373
9374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9375 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9376           # Check whether --enable-mediactrl was given.
9377 if test "${enable_mediactrl+set}" = set; then
9378   enableval=$enable_mediactrl;
9379                           if test "$enableval" = yes; then
9380                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9381                           else
9382                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9383                           fi
9384
9385 else
9386
9387                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9388
9389 fi
9390
9391
9392           eval "$wx_cv_use_mediactrl"
9393
9394           if test x"$enablestring" = xdisable; then
9395             if test $wxUSE_MEDIACTRL = no; then
9396               result=yes
9397             else
9398               result=no
9399             fi
9400           else
9401             result=$wxUSE_MEDIACTRL
9402           fi
9403
9404           { echo "$as_me:$LINENO: result: $result" >&5
9405 echo "${ECHO_T}$result" >&6; }
9406
9407
9408           enablestring=
9409           defaultval=$wxUSE_ALL_FEATURES
9410           if test -z "$defaultval"; then
9411               if test x"$enablestring" = xdisable; then
9412                   defaultval=yes
9413               else
9414                   defaultval=no
9415               fi
9416           fi
9417
9418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9419 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9420           # Check whether --enable-gstreamer8 was given.
9421 if test "${enable_gstreamer8+set}" = set; then
9422   enableval=$enable_gstreamer8;
9423                           if test "$enableval" = yes; then
9424                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9425                           else
9426                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9427                           fi
9428
9429 else
9430
9431                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9432
9433 fi
9434
9435
9436           eval "$wx_cv_use_gstreamer8"
9437
9438           if test x"$enablestring" = xdisable; then
9439             if test $wxUSE_GSTREAMER8 = no; then
9440               result=yes
9441             else
9442               result=no
9443             fi
9444           else
9445             result=$wxUSE_GSTREAMER8
9446           fi
9447
9448           { echo "$as_me:$LINENO: result: $result" >&5
9449 echo "${ECHO_T}$result" >&6; }
9450
9451
9452           enablestring=
9453           defaultval=$wxUSE_ALL_FEATURES
9454           if test -z "$defaultval"; then
9455               if test x"$enablestring" = xdisable; then
9456                   defaultval=yes
9457               else
9458                   defaultval=no
9459               fi
9460           fi
9461
9462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9463 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9464           # Check whether --enable-richtext was given.
9465 if test "${enable_richtext+set}" = set; then
9466   enableval=$enable_richtext;
9467                           if test "$enableval" = yes; then
9468                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9469                           else
9470                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9471                           fi
9472
9473 else
9474
9475                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9476
9477 fi
9478
9479
9480           eval "$wx_cv_use_richtext"
9481
9482           if test x"$enablestring" = xdisable; then
9483             if test $wxUSE_RICHTEXT = no; then
9484               result=yes
9485             else
9486               result=no
9487             fi
9488           else
9489             result=$wxUSE_RICHTEXT
9490           fi
9491
9492           { echo "$as_me:$LINENO: result: $result" >&5
9493 echo "${ECHO_T}$result" >&6; }
9494
9495
9496           enablestring=
9497           defaultval=$wxUSE_ALL_FEATURES
9498           if test -z "$defaultval"; then
9499               if test x"$enablestring" = xdisable; then
9500                   defaultval=yes
9501               else
9502                   defaultval=no
9503               fi
9504           fi
9505
9506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9507 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9508           # Check whether --enable-postscript was given.
9509 if test "${enable_postscript+set}" = set; then
9510   enableval=$enable_postscript;
9511                           if test "$enableval" = yes; then
9512                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9513                           else
9514                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9515                           fi
9516
9517 else
9518
9519                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9520
9521 fi
9522
9523
9524           eval "$wx_cv_use_postscript"
9525
9526           if test x"$enablestring" = xdisable; then
9527             if test $wxUSE_POSTSCRIPT = no; then
9528               result=yes
9529             else
9530               result=no
9531             fi
9532           else
9533             result=$wxUSE_POSTSCRIPT
9534           fi
9535
9536           { echo "$as_me:$LINENO: result: $result" >&5
9537 echo "${ECHO_T}$result" >&6; }
9538
9539
9540           enablestring=
9541           defaultval=$wxUSE_ALL_FEATURES
9542           if test -z "$defaultval"; then
9543               if test x"$enablestring" = xdisable; then
9544                   defaultval=yes
9545               else
9546                   defaultval=no
9547               fi
9548           fi
9549
9550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9551 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9552           # Check whether --enable-printarch was given.
9553 if test "${enable_printarch+set}" = set; then
9554   enableval=$enable_printarch;
9555                           if test "$enableval" = yes; then
9556                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9557                           else
9558                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9559                           fi
9560
9561 else
9562
9563                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9564
9565 fi
9566
9567
9568           eval "$wx_cv_use_printarch"
9569
9570           if test x"$enablestring" = xdisable; then
9571             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9572               result=yes
9573             else
9574               result=no
9575             fi
9576           else
9577             result=$wxUSE_PRINTING_ARCHITECTURE
9578           fi
9579
9580           { echo "$as_me:$LINENO: result: $result" >&5
9581 echo "${ECHO_T}$result" >&6; }
9582
9583
9584           enablestring=
9585           defaultval=$wxUSE_ALL_FEATURES
9586           if test -z "$defaultval"; then
9587               if test x"$enablestring" = xdisable; then
9588                   defaultval=yes
9589               else
9590                   defaultval=no
9591               fi
9592           fi
9593
9594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9595 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9596           # Check whether --enable-svg was given.
9597 if test "${enable_svg+set}" = set; then
9598   enableval=$enable_svg;
9599                           if test "$enableval" = yes; then
9600                             wx_cv_use_svg='wxUSE_SVG=yes'
9601                           else
9602                             wx_cv_use_svg='wxUSE_SVG=no'
9603                           fi
9604
9605 else
9606
9607                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9608
9609 fi
9610
9611
9612           eval "$wx_cv_use_svg"
9613
9614           if test x"$enablestring" = xdisable; then
9615             if test $wxUSE_SVG = no; then
9616               result=yes
9617             else
9618               result=no
9619             fi
9620           else
9621             result=$wxUSE_SVG
9622           fi
9623
9624           { echo "$as_me:$LINENO: result: $result" >&5
9625 echo "${ECHO_T}$result" >&6; }
9626
9627
9628           enablestring=
9629           defaultval=$wxUSE_ALL_FEATURES
9630           if test -z "$defaultval"; then
9631               if test x"$enablestring" = xdisable; then
9632                   defaultval=yes
9633               else
9634                   defaultval=no
9635               fi
9636           fi
9637
9638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9639 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9640           # Check whether --enable-webkit was given.
9641 if test "${enable_webkit+set}" = set; then
9642   enableval=$enable_webkit;
9643                           if test "$enableval" = yes; then
9644                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9645                           else
9646                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9647                           fi
9648
9649 else
9650
9651                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9652
9653 fi
9654
9655
9656           eval "$wx_cv_use_webkit"
9657
9658           if test x"$enablestring" = xdisable; then
9659             if test $wxUSE_WEBKIT = no; then
9660               result=yes
9661             else
9662               result=no
9663             fi
9664           else
9665             result=$wxUSE_WEBKIT
9666           fi
9667
9668           { echo "$as_me:$LINENO: result: $result" >&5
9669 echo "${ECHO_T}$result" >&6; }
9670
9671
9672           enablestring=
9673           defaultval=$wxUSE_ALL_FEATURES
9674           if test -z "$defaultval"; then
9675               if test x"$enablestring" = xdisable; then
9676                   defaultval=yes
9677               else
9678                   defaultval=no
9679               fi
9680           fi
9681
9682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9683 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9684           # Check whether --enable-webview was given.
9685 if test "${enable_webview+set}" = set; then
9686   enableval=$enable_webview;
9687                           if test "$enableval" = yes; then
9688                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9689                           else
9690                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9691                           fi
9692
9693 else
9694
9695                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9696
9697 fi
9698
9699
9700           eval "$wx_cv_use_webview"
9701
9702           if test x"$enablestring" = xdisable; then
9703             if test $wxUSE_WEBVIEW = no; then
9704               result=yes
9705             else
9706               result=no
9707             fi
9708           else
9709             result=$wxUSE_WEBVIEW
9710           fi
9711
9712           { echo "$as_me:$LINENO: result: $result" >&5
9713 echo "${ECHO_T}$result" >&6; }
9714
9715
9716 if test "$wxUSE_MAC" != 1; then
9717
9718           enablestring=
9719           defaultval=$wxUSE_ALL_FEATURES
9720           if test -z "$defaultval"; then
9721               if test x"$enablestring" = xdisable; then
9722                   defaultval=yes
9723               else
9724                   defaultval=no
9725               fi
9726           fi
9727
9728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9729 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9730           # Check whether --enable-graphics_ctx was given.
9731 if test "${enable_graphics_ctx+set}" = set; then
9732   enableval=$enable_graphics_ctx;
9733                           if test "$enableval" = yes; then
9734                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9735                           else
9736                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9737                           fi
9738
9739 else
9740
9741                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9742
9743 fi
9744
9745
9746           eval "$wx_cv_use_graphics_ctx"
9747
9748           if test x"$enablestring" = xdisable; then
9749             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9750               result=yes
9751             else
9752               result=no
9753             fi
9754           else
9755             result=$wxUSE_GRAPHICS_CONTEXT
9756           fi
9757
9758           { echo "$as_me:$LINENO: result: $result" >&5
9759 echo "${ECHO_T}$result" >&6; }
9760
9761 fi
9762
9763
9764
9765           enablestring=
9766           defaultval=$wxUSE_ALL_FEATURES
9767           if test -z "$defaultval"; then
9768               if test x"$enablestring" = xdisable; then
9769                   defaultval=yes
9770               else
9771                   defaultval=no
9772               fi
9773           fi
9774
9775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9776 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9777           # Check whether --enable-clipboard was given.
9778 if test "${enable_clipboard+set}" = set; then
9779   enableval=$enable_clipboard;
9780                           if test "$enableval" = yes; then
9781                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9782                           else
9783                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9784                           fi
9785
9786 else
9787
9788                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9789
9790 fi
9791
9792
9793           eval "$wx_cv_use_clipboard"
9794
9795           if test x"$enablestring" = xdisable; then
9796             if test $wxUSE_CLIPBOARD = no; then
9797               result=yes
9798             else
9799               result=no
9800             fi
9801           else
9802             result=$wxUSE_CLIPBOARD
9803           fi
9804
9805           { echo "$as_me:$LINENO: result: $result" >&5
9806 echo "${ECHO_T}$result" >&6; }
9807
9808
9809           enablestring=
9810           defaultval=$wxUSE_ALL_FEATURES
9811           if test -z "$defaultval"; then
9812               if test x"$enablestring" = xdisable; then
9813                   defaultval=yes
9814               else
9815                   defaultval=no
9816               fi
9817           fi
9818
9819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9820 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9821           # Check whether --enable-dnd was given.
9822 if test "${enable_dnd+set}" = set; then
9823   enableval=$enable_dnd;
9824                           if test "$enableval" = yes; then
9825                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9826                           else
9827                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9828                           fi
9829
9830 else
9831
9832                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9833
9834 fi
9835
9836
9837           eval "$wx_cv_use_dnd"
9838
9839           if test x"$enablestring" = xdisable; then
9840             if test $wxUSE_DRAG_AND_DROP = no; then
9841               result=yes
9842             else
9843               result=no
9844             fi
9845           else
9846             result=$wxUSE_DRAG_AND_DROP
9847           fi
9848
9849           { echo "$as_me:$LINENO: result: $result" >&5
9850 echo "${ECHO_T}$result" >&6; }
9851
9852
9853
9854 DEFAULT_wxUSE_CONTROLS=none
9855
9856           enablestring=disable
9857           defaultval=
9858           if test -z "$defaultval"; then
9859               if test x"$enablestring" = xdisable; then
9860                   defaultval=yes
9861               else
9862                   defaultval=no
9863               fi
9864           fi
9865
9866           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9867 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9868           # Check whether --enable-controls was given.
9869 if test "${enable_controls+set}" = set; then
9870   enableval=$enable_controls;
9871                           if test "$enableval" = yes; then
9872                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9873                           else
9874                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9875                           fi
9876
9877 else
9878
9879                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9880
9881 fi
9882
9883
9884           eval "$wx_cv_use_controls"
9885
9886           if test x"$enablestring" = xdisable; then
9887             if test $wxUSE_CONTROLS = no; then
9888               result=yes
9889             else
9890               result=no
9891             fi
9892           else
9893             result=$wxUSE_CONTROLS
9894           fi
9895
9896           { echo "$as_me:$LINENO: result: $result" >&5
9897 echo "${ECHO_T}$result" >&6; }
9898
9899
9900 if test "$wxUSE_CONTROLS" = "no"; then
9901     DEFAULT_wxUSE_ACCEL=no
9902     DEFAULT_wxUSE_ANIMATIONCTRL=no
9903     DEFAULT_wxUSE_BANNERWINDOW=no
9904     DEFAULT_wxUSE_BMPBUTTON=no
9905     DEFAULT_wxUSE_BUTTON=no
9906     DEFAULT_wxUSE_CALCTRL=no
9907     DEFAULT_wxUSE_CARET=no
9908     DEFAULT_wxUSE_CHECKBOX=no
9909     DEFAULT_wxUSE_CHECKLISTBOX=no
9910     DEFAULT_wxUSE_CHOICE=no
9911     DEFAULT_wxUSE_CHOICEBOOK=no
9912     DEFAULT_wxUSE_COLLPANE=no
9913     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9914     DEFAULT_wxUSE_COMBOBOX=no
9915     DEFAULT_wxUSE_COMBOBOX=no
9916     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9917     DEFAULT_wxUSE_DATAVIEWCTRL=no
9918     DEFAULT_wxUSE_DATEPICKCTRL=no
9919     DEFAULT_wxUSE_DETECT_SM=no
9920     DEFAULT_wxUSE_DIRPICKERCTRL=no
9921     DEFAULT_wxUSE_DISPLAY=no
9922     DEFAULT_wxUSE_FILECTRL=no
9923     DEFAULT_wxUSE_FILEPICKERCTRL=no
9924     DEFAULT_wxUSE_FONTPICKERCTRL=no
9925     DEFAULT_wxUSE_GAUGE=no
9926     DEFAULT_wxUSE_GRID=no
9927     DEFAULT_wxUSE_HEADERCTRL=no
9928     DEFAULT_wxUSE_HYPERLINKCTRL=no
9929     DEFAULT_wxUSE_IMAGLIST=no
9930     DEFAULT_wxUSE_LISTBOOK=no
9931     DEFAULT_wxUSE_LISTBOX=no
9932     DEFAULT_wxUSE_LISTCTRL=no
9933     DEFAULT_wxUSE_MARKUP=no
9934     DEFAULT_wxUSE_NOTEBOOK=no
9935     DEFAULT_wxUSE_POPUPWIN=no
9936     DEFAULT_wxUSE_RADIOBOX=no
9937     DEFAULT_wxUSE_RADIOBTN=no
9938     DEFAULT_wxUSE_RICHMSGDLG=no
9939     DEFAULT_wxUSE_RICHTOOLTIP=no
9940     DEFAULT_wxUSE_REARRANGECTRL=no
9941     DEFAULT_wxUSE_SASH=no
9942     DEFAULT_wxUSE_SCROLLBAR=no
9943     DEFAULT_wxUSE_SEARCHCTRL=no
9944     DEFAULT_wxUSE_SLIDER=no
9945     DEFAULT_wxUSE_SPINBTN=no
9946     DEFAULT_wxUSE_SPINCTRL=no
9947     DEFAULT_wxUSE_SPLITTER=no
9948     DEFAULT_wxUSE_STATBMP=no
9949     DEFAULT_wxUSE_STATBOX=no
9950     DEFAULT_wxUSE_STATLINE=no
9951     DEFAULT_wxUSE_STATUSBAR=no
9952     DEFAULT_wxUSE_TIMEPICKCTRL=no
9953     DEFAULT_wxUSE_TIPWINDOW=no
9954     DEFAULT_wxUSE_TOGGLEBTN=no
9955     DEFAULT_wxUSE_TOOLBAR=no
9956     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9957     DEFAULT_wxUSE_TOOLBOOK=no
9958     DEFAULT_wxUSE_TOOLTIPS=no
9959     DEFAULT_wxUSE_TREEBOOK=no
9960     DEFAULT_wxUSE_TREECTRL=no
9961     DEFAULT_wxUSE_TREELISTCTRL=no
9962 fi
9963
9964
9965           enablestring=
9966           defaultval=$wxUSE_ALL_FEATURES
9967           if test -z "$defaultval"; then
9968               if test x"$enablestring" = xdisable; then
9969                   defaultval=yes
9970               else
9971                   defaultval=no
9972               fi
9973           fi
9974
9975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9976 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9977           # Check whether --enable-markup was given.
9978 if test "${enable_markup+set}" = set; then
9979   enableval=$enable_markup;
9980                           if test "$enableval" = yes; then
9981                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9982                           else
9983                             wx_cv_use_markup='wxUSE_MARKUP=no'
9984                           fi
9985
9986 else
9987
9988                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9989
9990 fi
9991
9992
9993           eval "$wx_cv_use_markup"
9994
9995           if test x"$enablestring" = xdisable; then
9996             if test $wxUSE_MARKUP = no; then
9997               result=yes
9998             else
9999               result=no
10000             fi
10001           else
10002             result=$wxUSE_MARKUP
10003           fi
10004
10005           { echo "$as_me:$LINENO: result: $result" >&5
10006 echo "${ECHO_T}$result" >&6; }
10007
10008
10009
10010           enablestring=
10011           defaultval=$wxUSE_ALL_FEATURES
10012           if test -z "$defaultval"; then
10013               if test x"$enablestring" = xdisable; then
10014                   defaultval=yes
10015               else
10016                   defaultval=no
10017               fi
10018           fi
10019
10020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10021 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10022           # Check whether --enable-accel was given.
10023 if test "${enable_accel+set}" = set; then
10024   enableval=$enable_accel;
10025                           if test "$enableval" = yes; then
10026                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10027                           else
10028                             wx_cv_use_accel='wxUSE_ACCEL=no'
10029                           fi
10030
10031 else
10032
10033                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10034
10035 fi
10036
10037
10038           eval "$wx_cv_use_accel"
10039
10040           if test x"$enablestring" = xdisable; then
10041             if test $wxUSE_ACCEL = no; then
10042               result=yes
10043             else
10044               result=no
10045             fi
10046           else
10047             result=$wxUSE_ACCEL
10048           fi
10049
10050           { echo "$as_me:$LINENO: result: $result" >&5
10051 echo "${ECHO_T}$result" >&6; }
10052
10053
10054           enablestring=
10055           defaultval=$wxUSE_ALL_FEATURES
10056           if test -z "$defaultval"; then
10057               if test x"$enablestring" = xdisable; then
10058                   defaultval=yes
10059               else
10060                   defaultval=no
10061               fi
10062           fi
10063
10064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10065 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10066           # Check whether --enable-animatectrl was given.
10067 if test "${enable_animatectrl+set}" = set; then
10068   enableval=$enable_animatectrl;
10069                           if test "$enableval" = yes; then
10070                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10071                           else
10072                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10073                           fi
10074
10075 else
10076
10077                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10078
10079 fi
10080
10081
10082           eval "$wx_cv_use_animatectrl"
10083
10084           if test x"$enablestring" = xdisable; then
10085             if test $wxUSE_ANIMATIONCTRL = no; then
10086               result=yes
10087             else
10088               result=no
10089             fi
10090           else
10091             result=$wxUSE_ANIMATIONCTRL
10092           fi
10093
10094           { echo "$as_me:$LINENO: result: $result" >&5
10095 echo "${ECHO_T}$result" >&6; }
10096
10097
10098           enablestring=
10099           defaultval=$wxUSE_ALL_FEATURES
10100           if test -z "$defaultval"; then
10101               if test x"$enablestring" = xdisable; then
10102                   defaultval=yes
10103               else
10104                   defaultval=no
10105               fi
10106           fi
10107
10108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10109 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10110           # Check whether --enable-bannerwindow was given.
10111 if test "${enable_bannerwindow+set}" = set; then
10112   enableval=$enable_bannerwindow;
10113                           if test "$enableval" = yes; then
10114                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10115                           else
10116                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10117                           fi
10118
10119 else
10120
10121                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10122
10123 fi
10124
10125
10126           eval "$wx_cv_use_bannerwindow"
10127
10128           if test x"$enablestring" = xdisable; then
10129             if test $wxUSE_BANNERWINDOW = no; then
10130               result=yes
10131             else
10132               result=no
10133             fi
10134           else
10135             result=$wxUSE_BANNERWINDOW
10136           fi
10137
10138           { echo "$as_me:$LINENO: result: $result" >&5
10139 echo "${ECHO_T}$result" >&6; }
10140
10141
10142           enablestring=
10143           defaultval=$wxUSE_ALL_FEATURES
10144           if test -z "$defaultval"; then
10145               if test x"$enablestring" = xdisable; then
10146                   defaultval=yes
10147               else
10148                   defaultval=no
10149               fi
10150           fi
10151
10152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10153 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10154           # Check whether --enable-artstd was given.
10155 if test "${enable_artstd+set}" = set; then
10156   enableval=$enable_artstd;
10157                           if test "$enableval" = yes; then
10158                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10159                           else
10160                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10161                           fi
10162
10163 else
10164
10165                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10166
10167 fi
10168
10169
10170           eval "$wx_cv_use_artstd"
10171
10172           if test x"$enablestring" = xdisable; then
10173             if test $wxUSE_ARTPROVIDER_STD = no; then
10174               result=yes
10175             else
10176               result=no
10177             fi
10178           else
10179             result=$wxUSE_ARTPROVIDER_STD
10180           fi
10181
10182           { echo "$as_me:$LINENO: result: $result" >&5
10183 echo "${ECHO_T}$result" >&6; }
10184
10185
10186           enablestring=
10187           defaultval=$wxUSE_ALL_FEATURES
10188           if test -z "$defaultval"; then
10189               if test x"$enablestring" = xdisable; then
10190                   defaultval=yes
10191               else
10192                   defaultval=no
10193               fi
10194           fi
10195
10196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10197 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10198           # Check whether --enable-arttango was given.
10199 if test "${enable_arttango+set}" = set; then
10200   enableval=$enable_arttango;
10201                           if test "$enableval" = yes; then
10202                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10203                           else
10204                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10205                           fi
10206
10207 else
10208
10209                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10210
10211 fi
10212
10213
10214           eval "$wx_cv_use_arttango"
10215
10216           if test x"$enablestring" = xdisable; then
10217             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10218               result=yes
10219             else
10220               result=no
10221             fi
10222           else
10223             result=$wxUSE_ARTPROVIDER_TANGO
10224           fi
10225
10226           { echo "$as_me:$LINENO: result: $result" >&5
10227 echo "${ECHO_T}$result" >&6; }
10228
10229
10230           enablestring=
10231           defaultval=$wxUSE_ALL_FEATURES
10232           if test -z "$defaultval"; then
10233               if test x"$enablestring" = xdisable; then
10234                   defaultval=yes
10235               else
10236                   defaultval=no
10237               fi
10238           fi
10239
10240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10241 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10242           # Check whether --enable-bmpbutton was given.
10243 if test "${enable_bmpbutton+set}" = set; then
10244   enableval=$enable_bmpbutton;
10245                           if test "$enableval" = yes; then
10246                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10247                           else
10248                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10249                           fi
10250
10251 else
10252
10253                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10254
10255 fi
10256
10257
10258           eval "$wx_cv_use_bmpbutton"
10259
10260           if test x"$enablestring" = xdisable; then
10261             if test $wxUSE_BMPBUTTON = no; then
10262               result=yes
10263             else
10264               result=no
10265             fi
10266           else
10267             result=$wxUSE_BMPBUTTON
10268           fi
10269
10270           { echo "$as_me:$LINENO: result: $result" >&5
10271 echo "${ECHO_T}$result" >&6; }
10272
10273
10274           enablestring=
10275           defaultval=$wxUSE_ALL_FEATURES
10276           if test -z "$defaultval"; then
10277               if test x"$enablestring" = xdisable; then
10278                   defaultval=yes
10279               else
10280                   defaultval=no
10281               fi
10282           fi
10283
10284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10285 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10286           # Check whether --enable-bmpcombobox was given.
10287 if test "${enable_bmpcombobox+set}" = set; then
10288   enableval=$enable_bmpcombobox;
10289                           if test "$enableval" = yes; then
10290                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10291                           else
10292                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10293                           fi
10294
10295 else
10296
10297                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10298
10299 fi
10300
10301
10302           eval "$wx_cv_use_bmpcombobox"
10303
10304           if test x"$enablestring" = xdisable; then
10305             if test $wxUSE_BITMAPCOMBOBOX = no; then
10306               result=yes
10307             else
10308               result=no
10309             fi
10310           else
10311             result=$wxUSE_BITMAPCOMBOBOX
10312           fi
10313
10314           { echo "$as_me:$LINENO: result: $result" >&5
10315 echo "${ECHO_T}$result" >&6; }
10316
10317
10318           enablestring=
10319           defaultval=$wxUSE_ALL_FEATURES
10320           if test -z "$defaultval"; then
10321               if test x"$enablestring" = xdisable; then
10322                   defaultval=yes
10323               else
10324                   defaultval=no
10325               fi
10326           fi
10327
10328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10329 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10330           # Check whether --enable-button was given.
10331 if test "${enable_button+set}" = set; then
10332   enableval=$enable_button;
10333                           if test "$enableval" = yes; then
10334                             wx_cv_use_button='wxUSE_BUTTON=yes'
10335                           else
10336                             wx_cv_use_button='wxUSE_BUTTON=no'
10337                           fi
10338
10339 else
10340
10341                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10342
10343 fi
10344
10345
10346           eval "$wx_cv_use_button"
10347
10348           if test x"$enablestring" = xdisable; then
10349             if test $wxUSE_BUTTON = no; then
10350               result=yes
10351             else
10352               result=no
10353             fi
10354           else
10355             result=$wxUSE_BUTTON
10356           fi
10357
10358           { echo "$as_me:$LINENO: result: $result" >&5
10359 echo "${ECHO_T}$result" >&6; }
10360
10361
10362           enablestring=
10363           defaultval=$wxUSE_ALL_FEATURES
10364           if test -z "$defaultval"; then
10365               if test x"$enablestring" = xdisable; then
10366                   defaultval=yes
10367               else
10368                   defaultval=no
10369               fi
10370           fi
10371
10372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10373 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10374           # Check whether --enable-calendar was given.
10375 if test "${enable_calendar+set}" = set; then
10376   enableval=$enable_calendar;
10377                           if test "$enableval" = yes; then
10378                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10379                           else
10380                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10381                           fi
10382
10383 else
10384
10385                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10386
10387 fi
10388
10389
10390           eval "$wx_cv_use_calendar"
10391
10392           if test x"$enablestring" = xdisable; then
10393             if test $wxUSE_CALCTRL = no; then
10394               result=yes
10395             else
10396               result=no
10397             fi
10398           else
10399             result=$wxUSE_CALCTRL
10400           fi
10401
10402           { echo "$as_me:$LINENO: result: $result" >&5
10403 echo "${ECHO_T}$result" >&6; }
10404
10405
10406           enablestring=
10407           defaultval=$wxUSE_ALL_FEATURES
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}-caret" >&5
10417 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10418           # Check whether --enable-caret was given.
10419 if test "${enable_caret+set}" = set; then
10420   enableval=$enable_caret;
10421                           if test "$enableval" = yes; then
10422                             wx_cv_use_caret='wxUSE_CARET=yes'
10423                           else
10424                             wx_cv_use_caret='wxUSE_CARET=no'
10425                           fi
10426
10427 else
10428
10429                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10430
10431 fi
10432
10433
10434           eval "$wx_cv_use_caret"
10435
10436           if test x"$enablestring" = xdisable; then
10437             if test $wxUSE_CARET = no; then
10438               result=yes
10439             else
10440               result=no
10441             fi
10442           else
10443             result=$wxUSE_CARET
10444           fi
10445
10446           { echo "$as_me:$LINENO: result: $result" >&5
10447 echo "${ECHO_T}$result" >&6; }
10448
10449
10450           enablestring=
10451           defaultval=$wxUSE_ALL_FEATURES
10452           if test -z "$defaultval"; then
10453               if test x"$enablestring" = xdisable; then
10454                   defaultval=yes
10455               else
10456                   defaultval=no
10457               fi
10458           fi
10459
10460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10461 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10462           # Check whether --enable-checkbox was given.
10463 if test "${enable_checkbox+set}" = set; then
10464   enableval=$enable_checkbox;
10465                           if test "$enableval" = yes; then
10466                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10467                           else
10468                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10469                           fi
10470
10471 else
10472
10473                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10474
10475 fi
10476
10477
10478           eval "$wx_cv_use_checkbox"
10479
10480           if test x"$enablestring" = xdisable; then
10481             if test $wxUSE_CHECKBOX = no; then
10482               result=yes
10483             else
10484               result=no
10485             fi
10486           else
10487             result=$wxUSE_CHECKBOX
10488           fi
10489
10490           { echo "$as_me:$LINENO: result: $result" >&5
10491 echo "${ECHO_T}$result" >&6; }
10492
10493
10494           enablestring=
10495           defaultval=$wxUSE_ALL_FEATURES
10496           if test -z "$defaultval"; then
10497               if test x"$enablestring" = xdisable; then
10498                   defaultval=yes
10499               else
10500                   defaultval=no
10501               fi
10502           fi
10503
10504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10505 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10506           # Check whether --enable-checklst was given.
10507 if test "${enable_checklst+set}" = set; then
10508   enableval=$enable_checklst;
10509                           if test "$enableval" = yes; then
10510                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10511                           else
10512                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10513                           fi
10514
10515 else
10516
10517                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10518
10519 fi
10520
10521
10522           eval "$wx_cv_use_checklst"
10523
10524           if test x"$enablestring" = xdisable; then
10525             if test $wxUSE_CHECKLST = no; then
10526               result=yes
10527             else
10528               result=no
10529             fi
10530           else
10531             result=$wxUSE_CHECKLST
10532           fi
10533
10534           { echo "$as_me:$LINENO: result: $result" >&5
10535 echo "${ECHO_T}$result" >&6; }
10536
10537
10538           enablestring=
10539           defaultval=$wxUSE_ALL_FEATURES
10540           if test -z "$defaultval"; then
10541               if test x"$enablestring" = xdisable; then
10542                   defaultval=yes
10543               else
10544                   defaultval=no
10545               fi
10546           fi
10547
10548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10549 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10550           # Check whether --enable-choice was given.
10551 if test "${enable_choice+set}" = set; then
10552   enableval=$enable_choice;
10553                           if test "$enableval" = yes; then
10554                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10555                           else
10556                             wx_cv_use_choice='wxUSE_CHOICE=no'
10557                           fi
10558
10559 else
10560
10561                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10562
10563 fi
10564
10565
10566           eval "$wx_cv_use_choice"
10567
10568           if test x"$enablestring" = xdisable; then
10569             if test $wxUSE_CHOICE = no; then
10570               result=yes
10571             else
10572               result=no
10573             fi
10574           else
10575             result=$wxUSE_CHOICE
10576           fi
10577
10578           { echo "$as_me:$LINENO: result: $result" >&5
10579 echo "${ECHO_T}$result" >&6; }
10580
10581
10582           enablestring=
10583           defaultval=$wxUSE_ALL_FEATURES
10584           if test -z "$defaultval"; then
10585               if test x"$enablestring" = xdisable; then
10586                   defaultval=yes
10587               else
10588                   defaultval=no
10589               fi
10590           fi
10591
10592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10593 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10594           # Check whether --enable-choicebook was given.
10595 if test "${enable_choicebook+set}" = set; then
10596   enableval=$enable_choicebook;
10597                           if test "$enableval" = yes; then
10598                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10599                           else
10600                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10601                           fi
10602
10603 else
10604
10605                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10606
10607 fi
10608
10609
10610           eval "$wx_cv_use_choicebook"
10611
10612           if test x"$enablestring" = xdisable; then
10613             if test $wxUSE_CHOICEBOOK = no; then
10614               result=yes
10615             else
10616               result=no
10617             fi
10618           else
10619             result=$wxUSE_CHOICEBOOK
10620           fi
10621
10622           { echo "$as_me:$LINENO: result: $result" >&5
10623 echo "${ECHO_T}$result" >&6; }
10624
10625
10626           enablestring=
10627           defaultval=$wxUSE_ALL_FEATURES
10628           if test -z "$defaultval"; then
10629               if test x"$enablestring" = xdisable; then
10630                   defaultval=yes
10631               else
10632                   defaultval=no
10633               fi
10634           fi
10635
10636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10637 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10638           # Check whether --enable-collpane was given.
10639 if test "${enable_collpane+set}" = set; then
10640   enableval=$enable_collpane;
10641                           if test "$enableval" = yes; then
10642                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10643                           else
10644                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10645                           fi
10646
10647 else
10648
10649                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10650
10651 fi
10652
10653
10654           eval "$wx_cv_use_collpane"
10655
10656           if test x"$enablestring" = xdisable; then
10657             if test $wxUSE_COLLPANE = no; then
10658               result=yes
10659             else
10660               result=no
10661             fi
10662           else
10663             result=$wxUSE_COLLPANE
10664           fi
10665
10666           { echo "$as_me:$LINENO: result: $result" >&5
10667 echo "${ECHO_T}$result" >&6; }
10668
10669
10670           enablestring=
10671           defaultval=$wxUSE_ALL_FEATURES
10672           if test -z "$defaultval"; then
10673               if test x"$enablestring" = xdisable; then
10674                   defaultval=yes
10675               else
10676                   defaultval=no
10677               fi
10678           fi
10679
10680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10681 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10682           # Check whether --enable-colourpicker was given.
10683 if test "${enable_colourpicker+set}" = set; then
10684   enableval=$enable_colourpicker;
10685                           if test "$enableval" = yes; then
10686                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10687                           else
10688                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10689                           fi
10690
10691 else
10692
10693                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10694
10695 fi
10696
10697
10698           eval "$wx_cv_use_colourpicker"
10699
10700           if test x"$enablestring" = xdisable; then
10701             if test $wxUSE_COLOURPICKERCTRL = no; then
10702               result=yes
10703             else
10704               result=no
10705             fi
10706           else
10707             result=$wxUSE_COLOURPICKERCTRL
10708           fi
10709
10710           { echo "$as_me:$LINENO: result: $result" >&5
10711 echo "${ECHO_T}$result" >&6; }
10712
10713
10714           enablestring=
10715           defaultval=$wxUSE_ALL_FEATURES
10716           if test -z "$defaultval"; then
10717               if test x"$enablestring" = xdisable; then
10718                   defaultval=yes
10719               else
10720                   defaultval=no
10721               fi
10722           fi
10723
10724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10725 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10726           # Check whether --enable-combobox was given.
10727 if test "${enable_combobox+set}" = set; then
10728   enableval=$enable_combobox;
10729                           if test "$enableval" = yes; then
10730                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10731                           else
10732                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10733                           fi
10734
10735 else
10736
10737                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10738
10739 fi
10740
10741
10742           eval "$wx_cv_use_combobox"
10743
10744           if test x"$enablestring" = xdisable; then
10745             if test $wxUSE_COMBOBOX = no; then
10746               result=yes
10747             else
10748               result=no
10749             fi
10750           else
10751             result=$wxUSE_COMBOBOX
10752           fi
10753
10754           { echo "$as_me:$LINENO: result: $result" >&5
10755 echo "${ECHO_T}$result" >&6; }
10756
10757
10758           enablestring=
10759           defaultval=$wxUSE_ALL_FEATURES
10760           if test -z "$defaultval"; then
10761               if test x"$enablestring" = xdisable; then
10762                   defaultval=yes
10763               else
10764                   defaultval=no
10765               fi
10766           fi
10767
10768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10769 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10770           # Check whether --enable-comboctrl was given.
10771 if test "${enable_comboctrl+set}" = set; then
10772   enableval=$enable_comboctrl;
10773                           if test "$enableval" = yes; then
10774                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10775                           else
10776                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10777                           fi
10778
10779 else
10780
10781                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10782
10783 fi
10784
10785
10786           eval "$wx_cv_use_comboctrl"
10787
10788           if test x"$enablestring" = xdisable; then
10789             if test $wxUSE_COMBOCTRL = no; then
10790               result=yes
10791             else
10792               result=no
10793             fi
10794           else
10795             result=$wxUSE_COMBOCTRL
10796           fi
10797
10798           { echo "$as_me:$LINENO: result: $result" >&5
10799 echo "${ECHO_T}$result" >&6; }
10800
10801
10802           enablestring=
10803           defaultval=$wxUSE_ALL_FEATURES
10804           if test -z "$defaultval"; then
10805               if test x"$enablestring" = xdisable; then
10806                   defaultval=yes
10807               else
10808                   defaultval=no
10809               fi
10810           fi
10811
10812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10813 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10814           # Check whether --enable-commandlinkbutton was given.
10815 if test "${enable_commandlinkbutton+set}" = set; then
10816   enableval=$enable_commandlinkbutton;
10817                           if test "$enableval" = yes; then
10818                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10819                           else
10820                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10821                           fi
10822
10823 else
10824
10825                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10826
10827 fi
10828
10829
10830           eval "$wx_cv_use_commandlinkbutton"
10831
10832           if test x"$enablestring" = xdisable; then
10833             if test $wxUSE_COMMANDLINKBUTTON = no; then
10834               result=yes
10835             else
10836               result=no
10837             fi
10838           else
10839             result=$wxUSE_COMMANDLINKBUTTON
10840           fi
10841
10842           { echo "$as_me:$LINENO: result: $result" >&5
10843 echo "${ECHO_T}$result" >&6; }
10844
10845
10846           enablestring=
10847           defaultval=$wxUSE_ALL_FEATURES
10848           if test -z "$defaultval"; then
10849               if test x"$enablestring" = xdisable; then
10850                   defaultval=yes
10851               else
10852                   defaultval=no
10853               fi
10854           fi
10855
10856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10857 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10858           # Check whether --enable-dataviewctrl was given.
10859 if test "${enable_dataviewctrl+set}" = set; then
10860   enableval=$enable_dataviewctrl;
10861                           if test "$enableval" = yes; then
10862                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10863                           else
10864                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10865                           fi
10866
10867 else
10868
10869                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10870
10871 fi
10872
10873
10874           eval "$wx_cv_use_dataviewctrl"
10875
10876           if test x"$enablestring" = xdisable; then
10877             if test $wxUSE_DATAVIEWCTRL = no; then
10878               result=yes
10879             else
10880               result=no
10881             fi
10882           else
10883             result=$wxUSE_DATAVIEWCTRL
10884           fi
10885
10886           { echo "$as_me:$LINENO: result: $result" >&5
10887 echo "${ECHO_T}$result" >&6; }
10888
10889
10890           enablestring=
10891           defaultval=$wxUSE_ALL_FEATURES
10892           if test -z "$defaultval"; then
10893               if test x"$enablestring" = xdisable; then
10894                   defaultval=yes
10895               else
10896                   defaultval=no
10897               fi
10898           fi
10899
10900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10901 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10902           # Check whether --enable-datepick was given.
10903 if test "${enable_datepick+set}" = set; then
10904   enableval=$enable_datepick;
10905                           if test "$enableval" = yes; then
10906                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10907                           else
10908                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10909                           fi
10910
10911 else
10912
10913                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10914
10915 fi
10916
10917
10918           eval "$wx_cv_use_datepick"
10919
10920           if test x"$enablestring" = xdisable; then
10921             if test $wxUSE_DATEPICKCTRL = no; then
10922               result=yes
10923             else
10924               result=no
10925             fi
10926           else
10927             result=$wxUSE_DATEPICKCTRL
10928           fi
10929
10930           { echo "$as_me:$LINENO: result: $result" >&5
10931 echo "${ECHO_T}$result" >&6; }
10932
10933
10934           enablestring=
10935           defaultval=$wxUSE_ALL_FEATURES
10936           if test -z "$defaultval"; then
10937               if test x"$enablestring" = xdisable; then
10938                   defaultval=yes
10939               else
10940                   defaultval=no
10941               fi
10942           fi
10943
10944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10945 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10946           # Check whether --enable-detect_sm was given.
10947 if test "${enable_detect_sm+set}" = set; then
10948   enableval=$enable_detect_sm;
10949                           if test "$enableval" = yes; then
10950                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10951                           else
10952                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10953                           fi
10954
10955 else
10956
10957                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10958
10959 fi
10960
10961
10962           eval "$wx_cv_use_detect_sm"
10963
10964           if test x"$enablestring" = xdisable; then
10965             if test $wxUSE_DETECT_SM = no; then
10966               result=yes
10967             else
10968               result=no
10969             fi
10970           else
10971             result=$wxUSE_DETECT_SM
10972           fi
10973
10974           { echo "$as_me:$LINENO: result: $result" >&5
10975 echo "${ECHO_T}$result" >&6; }
10976
10977
10978           enablestring=
10979           defaultval=$wxUSE_ALL_FEATURES
10980           if test -z "$defaultval"; then
10981               if test x"$enablestring" = xdisable; then
10982                   defaultval=yes
10983               else
10984                   defaultval=no
10985               fi
10986           fi
10987
10988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10989 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10990           # Check whether --enable-dirpicker was given.
10991 if test "${enable_dirpicker+set}" = set; then
10992   enableval=$enable_dirpicker;
10993                           if test "$enableval" = yes; then
10994                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10995                           else
10996                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10997                           fi
10998
10999 else
11000
11001                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11002
11003 fi
11004
11005
11006           eval "$wx_cv_use_dirpicker"
11007
11008           if test x"$enablestring" = xdisable; then
11009             if test $wxUSE_DIRPICKERCTRL = no; then
11010               result=yes
11011             else
11012               result=no
11013             fi
11014           else
11015             result=$wxUSE_DIRPICKERCTRL
11016           fi
11017
11018           { echo "$as_me:$LINENO: result: $result" >&5
11019 echo "${ECHO_T}$result" >&6; }
11020
11021
11022           enablestring=
11023           defaultval=$wxUSE_ALL_FEATURES
11024           if test -z "$defaultval"; then
11025               if test x"$enablestring" = xdisable; then
11026                   defaultval=yes
11027               else
11028                   defaultval=no
11029               fi
11030           fi
11031
11032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11033 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11034           # Check whether --enable-display was given.
11035 if test "${enable_display+set}" = set; then
11036   enableval=$enable_display;
11037                           if test "$enableval" = yes; then
11038                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11039                           else
11040                             wx_cv_use_display='wxUSE_DISPLAY=no'
11041                           fi
11042
11043 else
11044
11045                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11046
11047 fi
11048
11049
11050           eval "$wx_cv_use_display"
11051
11052           if test x"$enablestring" = xdisable; then
11053             if test $wxUSE_DISPLAY = no; then
11054               result=yes
11055             else
11056               result=no
11057             fi
11058           else
11059             result=$wxUSE_DISPLAY
11060           fi
11061
11062           { echo "$as_me:$LINENO: result: $result" >&5
11063 echo "${ECHO_T}$result" >&6; }
11064
11065
11066           enablestring=
11067           defaultval=$wxUSE_ALL_FEATURES
11068           if test -z "$defaultval"; then
11069               if test x"$enablestring" = xdisable; then
11070                   defaultval=yes
11071               else
11072                   defaultval=no
11073               fi
11074           fi
11075
11076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11077 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11078           # Check whether --enable-editablebox was given.
11079 if test "${enable_editablebox+set}" = set; then
11080   enableval=$enable_editablebox;
11081                           if test "$enableval" = yes; then
11082                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11083                           else
11084                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11085                           fi
11086
11087 else
11088
11089                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11090
11091 fi
11092
11093
11094           eval "$wx_cv_use_editablebox"
11095
11096           if test x"$enablestring" = xdisable; then
11097             if test $wxUSE_EDITABLELISTBOX = no; then
11098               result=yes
11099             else
11100               result=no
11101             fi
11102           else
11103             result=$wxUSE_EDITABLELISTBOX
11104           fi
11105
11106           { echo "$as_me:$LINENO: result: $result" >&5
11107 echo "${ECHO_T}$result" >&6; }
11108
11109
11110           enablestring=
11111           defaultval=$wxUSE_ALL_FEATURES
11112           if test -z "$defaultval"; then
11113               if test x"$enablestring" = xdisable; then
11114                   defaultval=yes
11115               else
11116                   defaultval=no
11117               fi
11118           fi
11119
11120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11121 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11122           # Check whether --enable-filectrl was given.
11123 if test "${enable_filectrl+set}" = set; then
11124   enableval=$enable_filectrl;
11125                           if test "$enableval" = yes; then
11126                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11127                           else
11128                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11129                           fi
11130
11131 else
11132
11133                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11134
11135 fi
11136
11137
11138           eval "$wx_cv_use_filectrl"
11139
11140           if test x"$enablestring" = xdisable; then
11141             if test $wxUSE_FILECTRL = no; then
11142               result=yes
11143             else
11144               result=no
11145             fi
11146           else
11147             result=$wxUSE_FILECTRL
11148           fi
11149
11150           { echo "$as_me:$LINENO: result: $result" >&5
11151 echo "${ECHO_T}$result" >&6; }
11152
11153
11154           enablestring=
11155           defaultval=$wxUSE_ALL_FEATURES
11156           if test -z "$defaultval"; then
11157               if test x"$enablestring" = xdisable; then
11158                   defaultval=yes
11159               else
11160                   defaultval=no
11161               fi
11162           fi
11163
11164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11165 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11166           # Check whether --enable-filepicker was given.
11167 if test "${enable_filepicker+set}" = set; then
11168   enableval=$enable_filepicker;
11169                           if test "$enableval" = yes; then
11170                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11171                           else
11172                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11173                           fi
11174
11175 else
11176
11177                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11178
11179 fi
11180
11181
11182           eval "$wx_cv_use_filepicker"
11183
11184           if test x"$enablestring" = xdisable; then
11185             if test $wxUSE_FILEPICKERCTRL = no; then
11186               result=yes
11187             else
11188               result=no
11189             fi
11190           else
11191             result=$wxUSE_FILEPICKERCTRL
11192           fi
11193
11194           { echo "$as_me:$LINENO: result: $result" >&5
11195 echo "${ECHO_T}$result" >&6; }
11196
11197
11198           enablestring=
11199           defaultval=$wxUSE_ALL_FEATURES
11200           if test -z "$defaultval"; then
11201               if test x"$enablestring" = xdisable; then
11202                   defaultval=yes
11203               else
11204                   defaultval=no
11205               fi
11206           fi
11207
11208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11209 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11210           # Check whether --enable-fontpicker was given.
11211 if test "${enable_fontpicker+set}" = set; then
11212   enableval=$enable_fontpicker;
11213                           if test "$enableval" = yes; then
11214                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11215                           else
11216                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11217                           fi
11218
11219 else
11220
11221                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11222
11223 fi
11224
11225
11226           eval "$wx_cv_use_fontpicker"
11227
11228           if test x"$enablestring" = xdisable; then
11229             if test $wxUSE_FONTPICKERCTRL = no; then
11230               result=yes
11231             else
11232               result=no
11233             fi
11234           else
11235             result=$wxUSE_FONTPICKERCTRL
11236           fi
11237
11238           { echo "$as_me:$LINENO: result: $result" >&5
11239 echo "${ECHO_T}$result" >&6; }
11240
11241
11242           enablestring=
11243           defaultval=$wxUSE_ALL_FEATURES
11244           if test -z "$defaultval"; then
11245               if test x"$enablestring" = xdisable; then
11246                   defaultval=yes
11247               else
11248                   defaultval=no
11249               fi
11250           fi
11251
11252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11253 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11254           # Check whether --enable-gauge was given.
11255 if test "${enable_gauge+set}" = set; then
11256   enableval=$enable_gauge;
11257                           if test "$enableval" = yes; then
11258                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11259                           else
11260                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11261                           fi
11262
11263 else
11264
11265                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11266
11267 fi
11268
11269
11270           eval "$wx_cv_use_gauge"
11271
11272           if test x"$enablestring" = xdisable; then
11273             if test $wxUSE_GAUGE = no; then
11274               result=yes
11275             else
11276               result=no
11277             fi
11278           else
11279             result=$wxUSE_GAUGE
11280           fi
11281
11282           { echo "$as_me:$LINENO: result: $result" >&5
11283 echo "${ECHO_T}$result" >&6; }
11284
11285
11286           enablestring=
11287           defaultval=$wxUSE_ALL_FEATURES
11288           if test -z "$defaultval"; then
11289               if test x"$enablestring" = xdisable; then
11290                   defaultval=yes
11291               else
11292                   defaultval=no
11293               fi
11294           fi
11295
11296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11297 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11298           # Check whether --enable-grid was given.
11299 if test "${enable_grid+set}" = set; then
11300   enableval=$enable_grid;
11301                           if test "$enableval" = yes; then
11302                             wx_cv_use_grid='wxUSE_GRID=yes'
11303                           else
11304                             wx_cv_use_grid='wxUSE_GRID=no'
11305                           fi
11306
11307 else
11308
11309                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11310
11311 fi
11312
11313
11314           eval "$wx_cv_use_grid"
11315
11316           if test x"$enablestring" = xdisable; then
11317             if test $wxUSE_GRID = no; then
11318               result=yes
11319             else
11320               result=no
11321             fi
11322           else
11323             result=$wxUSE_GRID
11324           fi
11325
11326           { echo "$as_me:$LINENO: result: $result" >&5
11327 echo "${ECHO_T}$result" >&6; }
11328
11329
11330           enablestring=
11331           defaultval=$wxUSE_ALL_FEATURES
11332           if test -z "$defaultval"; then
11333               if test x"$enablestring" = xdisable; then
11334                   defaultval=yes
11335               else
11336                   defaultval=no
11337               fi
11338           fi
11339
11340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11341 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11342           # Check whether --enable-headerctrl was given.
11343 if test "${enable_headerctrl+set}" = set; then
11344   enableval=$enable_headerctrl;
11345                           if test "$enableval" = yes; then
11346                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11347                           else
11348                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11349                           fi
11350
11351 else
11352
11353                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11354
11355 fi
11356
11357
11358           eval "$wx_cv_use_headerctrl"
11359
11360           if test x"$enablestring" = xdisable; then
11361             if test $wxUSE_HEADERCTRL = no; then
11362               result=yes
11363             else
11364               result=no
11365             fi
11366           else
11367             result=$wxUSE_HEADERCTRL
11368           fi
11369
11370           { echo "$as_me:$LINENO: result: $result" >&5
11371 echo "${ECHO_T}$result" >&6; }
11372
11373
11374           enablestring=
11375           defaultval=$wxUSE_ALL_FEATURES
11376           if test -z "$defaultval"; then
11377               if test x"$enablestring" = xdisable; then
11378                   defaultval=yes
11379               else
11380                   defaultval=no
11381               fi
11382           fi
11383
11384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11385 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11386           # Check whether --enable-hyperlink was given.
11387 if test "${enable_hyperlink+set}" = set; then
11388   enableval=$enable_hyperlink;
11389                           if test "$enableval" = yes; then
11390                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11391                           else
11392                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11393                           fi
11394
11395 else
11396
11397                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11398
11399 fi
11400
11401
11402           eval "$wx_cv_use_hyperlink"
11403
11404           if test x"$enablestring" = xdisable; then
11405             if test $wxUSE_HYPERLINKCTRL = no; then
11406               result=yes
11407             else
11408               result=no
11409             fi
11410           else
11411             result=$wxUSE_HYPERLINKCTRL
11412           fi
11413
11414           { echo "$as_me:$LINENO: result: $result" >&5
11415 echo "${ECHO_T}$result" >&6; }
11416
11417
11418           enablestring=
11419           defaultval=$wxUSE_ALL_FEATURES
11420           if test -z "$defaultval"; then
11421               if test x"$enablestring" = xdisable; then
11422                   defaultval=yes
11423               else
11424                   defaultval=no
11425               fi
11426           fi
11427
11428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11429 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11430           # Check whether --enable-imaglist was given.
11431 if test "${enable_imaglist+set}" = set; then
11432   enableval=$enable_imaglist;
11433                           if test "$enableval" = yes; then
11434                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11435                           else
11436                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11437                           fi
11438
11439 else
11440
11441                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11442
11443 fi
11444
11445
11446           eval "$wx_cv_use_imaglist"
11447
11448           if test x"$enablestring" = xdisable; then
11449             if test $wxUSE_IMAGLIST = no; then
11450               result=yes
11451             else
11452               result=no
11453             fi
11454           else
11455             result=$wxUSE_IMAGLIST
11456           fi
11457
11458           { echo "$as_me:$LINENO: result: $result" >&5
11459 echo "${ECHO_T}$result" >&6; }
11460
11461
11462           enablestring=
11463           defaultval=$wxUSE_ALL_FEATURES
11464           if test -z "$defaultval"; then
11465               if test x"$enablestring" = xdisable; then
11466                   defaultval=yes
11467               else
11468                   defaultval=no
11469               fi
11470           fi
11471
11472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11473 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11474           # Check whether --enable-infobar was given.
11475 if test "${enable_infobar+set}" = set; then
11476   enableval=$enable_infobar;
11477                           if test "$enableval" = yes; then
11478                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11479                           else
11480                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11481                           fi
11482
11483 else
11484
11485                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11486
11487 fi
11488
11489
11490           eval "$wx_cv_use_infobar"
11491
11492           if test x"$enablestring" = xdisable; then
11493             if test $wxUSE_INFOBAR = no; then
11494               result=yes
11495             else
11496               result=no
11497             fi
11498           else
11499             result=$wxUSE_INFOBAR
11500           fi
11501
11502           { echo "$as_me:$LINENO: result: $result" >&5
11503 echo "${ECHO_T}$result" >&6; }
11504
11505
11506           enablestring=
11507           defaultval=$wxUSE_ALL_FEATURES
11508           if test -z "$defaultval"; then
11509               if test x"$enablestring" = xdisable; then
11510                   defaultval=yes
11511               else
11512                   defaultval=no
11513               fi
11514           fi
11515
11516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11517 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11518           # Check whether --enable-listbook was given.
11519 if test "${enable_listbook+set}" = set; then
11520   enableval=$enable_listbook;
11521                           if test "$enableval" = yes; then
11522                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11523                           else
11524                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11525                           fi
11526
11527 else
11528
11529                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11530
11531 fi
11532
11533
11534           eval "$wx_cv_use_listbook"
11535
11536           if test x"$enablestring" = xdisable; then
11537             if test $wxUSE_LISTBOOK = no; then
11538               result=yes
11539             else
11540               result=no
11541             fi
11542           else
11543             result=$wxUSE_LISTBOOK
11544           fi
11545
11546           { echo "$as_me:$LINENO: result: $result" >&5
11547 echo "${ECHO_T}$result" >&6; }
11548
11549
11550           enablestring=
11551           defaultval=$wxUSE_ALL_FEATURES
11552           if test -z "$defaultval"; then
11553               if test x"$enablestring" = xdisable; then
11554                   defaultval=yes
11555               else
11556                   defaultval=no
11557               fi
11558           fi
11559
11560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11561 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11562           # Check whether --enable-listbox was given.
11563 if test "${enable_listbox+set}" = set; then
11564   enableval=$enable_listbox;
11565                           if test "$enableval" = yes; then
11566                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11567                           else
11568                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11569                           fi
11570
11571 else
11572
11573                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11574
11575 fi
11576
11577
11578           eval "$wx_cv_use_listbox"
11579
11580           if test x"$enablestring" = xdisable; then
11581             if test $wxUSE_LISTBOX = no; then
11582               result=yes
11583             else
11584               result=no
11585             fi
11586           else
11587             result=$wxUSE_LISTBOX
11588           fi
11589
11590           { echo "$as_me:$LINENO: result: $result" >&5
11591 echo "${ECHO_T}$result" >&6; }
11592
11593
11594           enablestring=
11595           defaultval=$wxUSE_ALL_FEATURES
11596           if test -z "$defaultval"; then
11597               if test x"$enablestring" = xdisable; then
11598                   defaultval=yes
11599               else
11600                   defaultval=no
11601               fi
11602           fi
11603
11604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11605 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11606           # Check whether --enable-listctrl was given.
11607 if test "${enable_listctrl+set}" = set; then
11608   enableval=$enable_listctrl;
11609                           if test "$enableval" = yes; then
11610                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11611                           else
11612                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11613                           fi
11614
11615 else
11616
11617                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11618
11619 fi
11620
11621
11622           eval "$wx_cv_use_listctrl"
11623
11624           if test x"$enablestring" = xdisable; then
11625             if test $wxUSE_LISTCTRL = no; then
11626               result=yes
11627             else
11628               result=no
11629             fi
11630           else
11631             result=$wxUSE_LISTCTRL
11632           fi
11633
11634           { echo "$as_me:$LINENO: result: $result" >&5
11635 echo "${ECHO_T}$result" >&6; }
11636
11637
11638           enablestring=
11639           defaultval=$wxUSE_ALL_FEATURES
11640           if test -z "$defaultval"; then
11641               if test x"$enablestring" = xdisable; then
11642                   defaultval=yes
11643               else
11644                   defaultval=no
11645               fi
11646           fi
11647
11648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11649 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11650           # Check whether --enable-notebook was given.
11651 if test "${enable_notebook+set}" = set; then
11652   enableval=$enable_notebook;
11653                           if test "$enableval" = yes; then
11654                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11655                           else
11656                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11657                           fi
11658
11659 else
11660
11661                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11662
11663 fi
11664
11665
11666           eval "$wx_cv_use_notebook"
11667
11668           if test x"$enablestring" = xdisable; then
11669             if test $wxUSE_NOTEBOOK = no; then
11670               result=yes
11671             else
11672               result=no
11673             fi
11674           else
11675             result=$wxUSE_NOTEBOOK
11676           fi
11677
11678           { echo "$as_me:$LINENO: result: $result" >&5
11679 echo "${ECHO_T}$result" >&6; }
11680
11681
11682           enablestring=
11683           defaultval=$wxUSE_ALL_FEATURES
11684           if test -z "$defaultval"; then
11685               if test x"$enablestring" = xdisable; then
11686                   defaultval=yes
11687               else
11688                   defaultval=no
11689               fi
11690           fi
11691
11692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11693 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11694           # Check whether --enable-notifmsg was given.
11695 if test "${enable_notifmsg+set}" = set; then
11696   enableval=$enable_notifmsg;
11697                           if test "$enableval" = yes; then
11698                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11699                           else
11700                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11701                           fi
11702
11703 else
11704
11705                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11706
11707 fi
11708
11709
11710           eval "$wx_cv_use_notifmsg"
11711
11712           if test x"$enablestring" = xdisable; then
11713             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11714               result=yes
11715             else
11716               result=no
11717             fi
11718           else
11719             result=$wxUSE_NOTIFICATION_MESSAGE
11720           fi
11721
11722           { echo "$as_me:$LINENO: result: $result" >&5
11723 echo "${ECHO_T}$result" >&6; }
11724
11725
11726           enablestring=
11727           defaultval=$wxUSE_ALL_FEATURES
11728           if test -z "$defaultval"; then
11729               if test x"$enablestring" = xdisable; then
11730                   defaultval=yes
11731               else
11732                   defaultval=no
11733               fi
11734           fi
11735
11736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11737 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11738           # Check whether --enable-odcombobox was given.
11739 if test "${enable_odcombobox+set}" = set; then
11740   enableval=$enable_odcombobox;
11741                           if test "$enableval" = yes; then
11742                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11743                           else
11744                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11745                           fi
11746
11747 else
11748
11749                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11750
11751 fi
11752
11753
11754           eval "$wx_cv_use_odcombobox"
11755
11756           if test x"$enablestring" = xdisable; then
11757             if test $wxUSE_ODCOMBOBOX = no; then
11758               result=yes
11759             else
11760               result=no
11761             fi
11762           else
11763             result=$wxUSE_ODCOMBOBOX
11764           fi
11765
11766           { echo "$as_me:$LINENO: result: $result" >&5
11767 echo "${ECHO_T}$result" >&6; }
11768
11769
11770           enablestring=
11771           defaultval=$wxUSE_ALL_FEATURES
11772           if test -z "$defaultval"; then
11773               if test x"$enablestring" = xdisable; then
11774                   defaultval=yes
11775               else
11776                   defaultval=no
11777               fi
11778           fi
11779
11780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11781 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11782           # Check whether --enable-popupwin was given.
11783 if test "${enable_popupwin+set}" = set; then
11784   enableval=$enable_popupwin;
11785                           if test "$enableval" = yes; then
11786                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11787                           else
11788                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11789                           fi
11790
11791 else
11792
11793                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11794
11795 fi
11796
11797
11798           eval "$wx_cv_use_popupwin"
11799
11800           if test x"$enablestring" = xdisable; then
11801             if test $wxUSE_POPUPWIN = no; then
11802               result=yes
11803             else
11804               result=no
11805             fi
11806           else
11807             result=$wxUSE_POPUPWIN
11808           fi
11809
11810           { echo "$as_me:$LINENO: result: $result" >&5
11811 echo "${ECHO_T}$result" >&6; }
11812
11813
11814           enablestring=
11815           defaultval=$wxUSE_ALL_FEATURES
11816           if test -z "$defaultval"; then
11817               if test x"$enablestring" = xdisable; then
11818                   defaultval=yes
11819               else
11820                   defaultval=no
11821               fi
11822           fi
11823
11824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11825 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11826           # Check whether --enable-radiobox was given.
11827 if test "${enable_radiobox+set}" = set; then
11828   enableval=$enable_radiobox;
11829                           if test "$enableval" = yes; then
11830                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11831                           else
11832                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11833                           fi
11834
11835 else
11836
11837                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11838
11839 fi
11840
11841
11842           eval "$wx_cv_use_radiobox"
11843
11844           if test x"$enablestring" = xdisable; then
11845             if test $wxUSE_RADIOBOX = no; then
11846               result=yes
11847             else
11848               result=no
11849             fi
11850           else
11851             result=$wxUSE_RADIOBOX
11852           fi
11853
11854           { echo "$as_me:$LINENO: result: $result" >&5
11855 echo "${ECHO_T}$result" >&6; }
11856
11857
11858           enablestring=
11859           defaultval=$wxUSE_ALL_FEATURES
11860           if test -z "$defaultval"; then
11861               if test x"$enablestring" = xdisable; then
11862                   defaultval=yes
11863               else
11864                   defaultval=no
11865               fi
11866           fi
11867
11868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11869 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11870           # Check whether --enable-radiobtn was given.
11871 if test "${enable_radiobtn+set}" = set; then
11872   enableval=$enable_radiobtn;
11873                           if test "$enableval" = yes; then
11874                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11875                           else
11876                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11877                           fi
11878
11879 else
11880
11881                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11882
11883 fi
11884
11885
11886           eval "$wx_cv_use_radiobtn"
11887
11888           if test x"$enablestring" = xdisable; then
11889             if test $wxUSE_RADIOBTN = no; then
11890               result=yes
11891             else
11892               result=no
11893             fi
11894           else
11895             result=$wxUSE_RADIOBTN
11896           fi
11897
11898           { echo "$as_me:$LINENO: result: $result" >&5
11899 echo "${ECHO_T}$result" >&6; }
11900
11901
11902           enablestring=
11903           defaultval=$wxUSE_ALL_FEATURES
11904           if test -z "$defaultval"; then
11905               if test x"$enablestring" = xdisable; then
11906                   defaultval=yes
11907               else
11908                   defaultval=no
11909               fi
11910           fi
11911
11912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11913 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11914           # Check whether --enable-richmsgdlg was given.
11915 if test "${enable_richmsgdlg+set}" = set; then
11916   enableval=$enable_richmsgdlg;
11917                           if test "$enableval" = yes; then
11918                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11919                           else
11920                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11921                           fi
11922
11923 else
11924
11925                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11926
11927 fi
11928
11929
11930           eval "$wx_cv_use_richmsgdlg"
11931
11932           if test x"$enablestring" = xdisable; then
11933             if test $wxUSE_RICHMSGDLG = no; then
11934               result=yes
11935             else
11936               result=no
11937             fi
11938           else
11939             result=$wxUSE_RICHMSGDLG
11940           fi
11941
11942           { echo "$as_me:$LINENO: result: $result" >&5
11943 echo "${ECHO_T}$result" >&6; }
11944
11945
11946           enablestring=
11947           defaultval=$wxUSE_ALL_FEATURES
11948           if test -z "$defaultval"; then
11949               if test x"$enablestring" = xdisable; then
11950                   defaultval=yes
11951               else
11952                   defaultval=no
11953               fi
11954           fi
11955
11956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
11957 echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
11958           # Check whether --enable-richtooltip was given.
11959 if test "${enable_richtooltip+set}" = set; then
11960   enableval=$enable_richtooltip;
11961                           if test "$enableval" = yes; then
11962                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
11963                           else
11964                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
11965                           fi
11966
11967 else
11968
11969                           wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
11970
11971 fi
11972
11973
11974           eval "$wx_cv_use_richtooltip"
11975
11976           if test x"$enablestring" = xdisable; then
11977             if test $wxUSE_RICHTOOLTIP = no; then
11978               result=yes
11979             else
11980               result=no
11981             fi
11982           else
11983             result=$wxUSE_RICHTOOLTIP
11984           fi
11985
11986           { echo "$as_me:$LINENO: result: $result" >&5
11987 echo "${ECHO_T}$result" >&6; }
11988
11989
11990           enablestring=
11991           defaultval=$wxUSE_ALL_FEATURES
11992           if test -z "$defaultval"; then
11993               if test x"$enablestring" = xdisable; then
11994                   defaultval=yes
11995               else
11996                   defaultval=no
11997               fi
11998           fi
11999
12000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
12001 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
12002           # Check whether --enable-rearrangectrl was given.
12003 if test "${enable_rearrangectrl+set}" = set; then
12004   enableval=$enable_rearrangectrl;
12005                           if test "$enableval" = yes; then
12006                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
12007                           else
12008                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
12009                           fi
12010
12011 else
12012
12013                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
12014
12015 fi
12016
12017
12018           eval "$wx_cv_use_rearrangectrl"
12019
12020           if test x"$enablestring" = xdisable; then
12021             if test $wxUSE_REARRANGECTRL = no; then
12022               result=yes
12023             else
12024               result=no
12025             fi
12026           else
12027             result=$wxUSE_REARRANGECTRL
12028           fi
12029
12030           { echo "$as_me:$LINENO: result: $result" >&5
12031 echo "${ECHO_T}$result" >&6; }
12032
12033
12034           enablestring=
12035           defaultval=$wxUSE_ALL_FEATURES
12036           if test -z "$defaultval"; then
12037               if test x"$enablestring" = xdisable; then
12038                   defaultval=yes
12039               else
12040                   defaultval=no
12041               fi
12042           fi
12043
12044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12045 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12046           # Check whether --enable-sash was given.
12047 if test "${enable_sash+set}" = set; then
12048   enableval=$enable_sash;
12049                           if test "$enableval" = yes; then
12050                             wx_cv_use_sash='wxUSE_SASH=yes'
12051                           else
12052                             wx_cv_use_sash='wxUSE_SASH=no'
12053                           fi
12054
12055 else
12056
12057                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12058
12059 fi
12060
12061
12062           eval "$wx_cv_use_sash"
12063
12064           if test x"$enablestring" = xdisable; then
12065             if test $wxUSE_SASH = no; then
12066               result=yes
12067             else
12068               result=no
12069             fi
12070           else
12071             result=$wxUSE_SASH
12072           fi
12073
12074           { echo "$as_me:$LINENO: result: $result" >&5
12075 echo "${ECHO_T}$result" >&6; }
12076
12077
12078           enablestring=
12079           defaultval=$wxUSE_ALL_FEATURES
12080           if test -z "$defaultval"; then
12081               if test x"$enablestring" = xdisable; then
12082                   defaultval=yes
12083               else
12084                   defaultval=no
12085               fi
12086           fi
12087
12088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12089 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12090           # Check whether --enable-scrollbar was given.
12091 if test "${enable_scrollbar+set}" = set; then
12092   enableval=$enable_scrollbar;
12093                           if test "$enableval" = yes; then
12094                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12095                           else
12096                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12097                           fi
12098
12099 else
12100
12101                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12102
12103 fi
12104
12105
12106           eval "$wx_cv_use_scrollbar"
12107
12108           if test x"$enablestring" = xdisable; then
12109             if test $wxUSE_SCROLLBAR = no; then
12110               result=yes
12111             else
12112               result=no
12113             fi
12114           else
12115             result=$wxUSE_SCROLLBAR
12116           fi
12117
12118           { echo "$as_me:$LINENO: result: $result" >&5
12119 echo "${ECHO_T}$result" >&6; }
12120
12121
12122           enablestring=
12123           defaultval=$wxUSE_ALL_FEATURES
12124           if test -z "$defaultval"; then
12125               if test x"$enablestring" = xdisable; then
12126                   defaultval=yes
12127               else
12128                   defaultval=no
12129               fi
12130           fi
12131
12132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12133 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12134           # Check whether --enable-searchctrl was given.
12135 if test "${enable_searchctrl+set}" = set; then
12136   enableval=$enable_searchctrl;
12137                           if test "$enableval" = yes; then
12138                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12139                           else
12140                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12141                           fi
12142
12143 else
12144
12145                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12146
12147 fi
12148
12149
12150           eval "$wx_cv_use_searchctrl"
12151
12152           if test x"$enablestring" = xdisable; then
12153             if test $wxUSE_SEARCHCTRL = no; then
12154               result=yes
12155             else
12156               result=no
12157             fi
12158           else
12159             result=$wxUSE_SEARCHCTRL
12160           fi
12161
12162           { echo "$as_me:$LINENO: result: $result" >&5
12163 echo "${ECHO_T}$result" >&6; }
12164
12165
12166           enablestring=
12167           defaultval=$wxUSE_ALL_FEATURES
12168           if test -z "$defaultval"; then
12169               if test x"$enablestring" = xdisable; then
12170                   defaultval=yes
12171               else
12172                   defaultval=no
12173               fi
12174           fi
12175
12176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12177 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12178           # Check whether --enable-slider was given.
12179 if test "${enable_slider+set}" = set; then
12180   enableval=$enable_slider;
12181                           if test "$enableval" = yes; then
12182                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12183                           else
12184                             wx_cv_use_slider='wxUSE_SLIDER=no'
12185                           fi
12186
12187 else
12188
12189                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12190
12191 fi
12192
12193
12194           eval "$wx_cv_use_slider"
12195
12196           if test x"$enablestring" = xdisable; then
12197             if test $wxUSE_SLIDER = no; then
12198               result=yes
12199             else
12200               result=no
12201             fi
12202           else
12203             result=$wxUSE_SLIDER
12204           fi
12205
12206           { echo "$as_me:$LINENO: result: $result" >&5
12207 echo "${ECHO_T}$result" >&6; }
12208
12209
12210           enablestring=
12211           defaultval=$wxUSE_ALL_FEATURES
12212           if test -z "$defaultval"; then
12213               if test x"$enablestring" = xdisable; then
12214                   defaultval=yes
12215               else
12216                   defaultval=no
12217               fi
12218           fi
12219
12220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12221 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12222           # Check whether --enable-spinbtn was given.
12223 if test "${enable_spinbtn+set}" = set; then
12224   enableval=$enable_spinbtn;
12225                           if test "$enableval" = yes; then
12226                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12227                           else
12228                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12229                           fi
12230
12231 else
12232
12233                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12234
12235 fi
12236
12237
12238           eval "$wx_cv_use_spinbtn"
12239
12240           if test x"$enablestring" = xdisable; then
12241             if test $wxUSE_SPINBTN = no; then
12242               result=yes
12243             else
12244               result=no
12245             fi
12246           else
12247             result=$wxUSE_SPINBTN
12248           fi
12249
12250           { echo "$as_me:$LINENO: result: $result" >&5
12251 echo "${ECHO_T}$result" >&6; }
12252
12253
12254           enablestring=
12255           defaultval=$wxUSE_ALL_FEATURES
12256           if test -z "$defaultval"; then
12257               if test x"$enablestring" = xdisable; then
12258                   defaultval=yes
12259               else
12260                   defaultval=no
12261               fi
12262           fi
12263
12264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12265 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12266           # Check whether --enable-spinctrl was given.
12267 if test "${enable_spinctrl+set}" = set; then
12268   enableval=$enable_spinctrl;
12269                           if test "$enableval" = yes; then
12270                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12271                           else
12272                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12273                           fi
12274
12275 else
12276
12277                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12278
12279 fi
12280
12281
12282           eval "$wx_cv_use_spinctrl"
12283
12284           if test x"$enablestring" = xdisable; then
12285             if test $wxUSE_SPINCTRL = no; then
12286               result=yes
12287             else
12288               result=no
12289             fi
12290           else
12291             result=$wxUSE_SPINCTRL
12292           fi
12293
12294           { echo "$as_me:$LINENO: result: $result" >&5
12295 echo "${ECHO_T}$result" >&6; }
12296
12297
12298           enablestring=
12299           defaultval=$wxUSE_ALL_FEATURES
12300           if test -z "$defaultval"; then
12301               if test x"$enablestring" = xdisable; then
12302                   defaultval=yes
12303               else
12304                   defaultval=no
12305               fi
12306           fi
12307
12308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12309 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12310           # Check whether --enable-splitter was given.
12311 if test "${enable_splitter+set}" = set; then
12312   enableval=$enable_splitter;
12313                           if test "$enableval" = yes; then
12314                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12315                           else
12316                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12317                           fi
12318
12319 else
12320
12321                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12322
12323 fi
12324
12325
12326           eval "$wx_cv_use_splitter"
12327
12328           if test x"$enablestring" = xdisable; then
12329             if test $wxUSE_SPLITTER = no; then
12330               result=yes
12331             else
12332               result=no
12333             fi
12334           else
12335             result=$wxUSE_SPLITTER
12336           fi
12337
12338           { echo "$as_me:$LINENO: result: $result" >&5
12339 echo "${ECHO_T}$result" >&6; }
12340
12341
12342           enablestring=
12343           defaultval=$wxUSE_ALL_FEATURES
12344           if test -z "$defaultval"; then
12345               if test x"$enablestring" = xdisable; then
12346                   defaultval=yes
12347               else
12348                   defaultval=no
12349               fi
12350           fi
12351
12352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12353 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12354           # Check whether --enable-statbmp was given.
12355 if test "${enable_statbmp+set}" = set; then
12356   enableval=$enable_statbmp;
12357                           if test "$enableval" = yes; then
12358                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12359                           else
12360                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12361                           fi
12362
12363 else
12364
12365                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12366
12367 fi
12368
12369
12370           eval "$wx_cv_use_statbmp"
12371
12372           if test x"$enablestring" = xdisable; then
12373             if test $wxUSE_STATBMP = no; then
12374               result=yes
12375             else
12376               result=no
12377             fi
12378           else
12379             result=$wxUSE_STATBMP
12380           fi
12381
12382           { echo "$as_me:$LINENO: result: $result" >&5
12383 echo "${ECHO_T}$result" >&6; }
12384
12385
12386           enablestring=
12387           defaultval=$wxUSE_ALL_FEATURES
12388           if test -z "$defaultval"; then
12389               if test x"$enablestring" = xdisable; then
12390                   defaultval=yes
12391               else
12392                   defaultval=no
12393               fi
12394           fi
12395
12396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12397 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12398           # Check whether --enable-statbox was given.
12399 if test "${enable_statbox+set}" = set; then
12400   enableval=$enable_statbox;
12401                           if test "$enableval" = yes; then
12402                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12403                           else
12404                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12405                           fi
12406
12407 else
12408
12409                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12410
12411 fi
12412
12413
12414           eval "$wx_cv_use_statbox"
12415
12416           if test x"$enablestring" = xdisable; then
12417             if test $wxUSE_STATBOX = no; then
12418               result=yes
12419             else
12420               result=no
12421             fi
12422           else
12423             result=$wxUSE_STATBOX
12424           fi
12425
12426           { echo "$as_me:$LINENO: result: $result" >&5
12427 echo "${ECHO_T}$result" >&6; }
12428
12429
12430           enablestring=
12431           defaultval=$wxUSE_ALL_FEATURES
12432           if test -z "$defaultval"; then
12433               if test x"$enablestring" = xdisable; then
12434                   defaultval=yes
12435               else
12436                   defaultval=no
12437               fi
12438           fi
12439
12440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12441 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12442           # Check whether --enable-statline was given.
12443 if test "${enable_statline+set}" = set; then
12444   enableval=$enable_statline;
12445                           if test "$enableval" = yes; then
12446                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12447                           else
12448                             wx_cv_use_statline='wxUSE_STATLINE=no'
12449                           fi
12450
12451 else
12452
12453                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12454
12455 fi
12456
12457
12458           eval "$wx_cv_use_statline"
12459
12460           if test x"$enablestring" = xdisable; then
12461             if test $wxUSE_STATLINE = no; then
12462               result=yes
12463             else
12464               result=no
12465             fi
12466           else
12467             result=$wxUSE_STATLINE
12468           fi
12469
12470           { echo "$as_me:$LINENO: result: $result" >&5
12471 echo "${ECHO_T}$result" >&6; }
12472
12473
12474           enablestring=
12475           defaultval=$wxUSE_ALL_FEATURES
12476           if test -z "$defaultval"; then
12477               if test x"$enablestring" = xdisable; then
12478                   defaultval=yes
12479               else
12480                   defaultval=no
12481               fi
12482           fi
12483
12484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12485 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12486           # Check whether --enable-stattext was given.
12487 if test "${enable_stattext+set}" = set; then
12488   enableval=$enable_stattext;
12489                           if test "$enableval" = yes; then
12490                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12491                           else
12492                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12493                           fi
12494
12495 else
12496
12497                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12498
12499 fi
12500
12501
12502           eval "$wx_cv_use_stattext"
12503
12504           if test x"$enablestring" = xdisable; then
12505             if test $wxUSE_STATTEXT = no; then
12506               result=yes
12507             else
12508               result=no
12509             fi
12510           else
12511             result=$wxUSE_STATTEXT
12512           fi
12513
12514           { echo "$as_me:$LINENO: result: $result" >&5
12515 echo "${ECHO_T}$result" >&6; }
12516
12517
12518           enablestring=
12519           defaultval=$wxUSE_ALL_FEATURES
12520           if test -z "$defaultval"; then
12521               if test x"$enablestring" = xdisable; then
12522                   defaultval=yes
12523               else
12524                   defaultval=no
12525               fi
12526           fi
12527
12528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12529 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12530           # Check whether --enable-statusbar was given.
12531 if test "${enable_statusbar+set}" = set; then
12532   enableval=$enable_statusbar;
12533                           if test "$enableval" = yes; then
12534                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12535                           else
12536                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12537                           fi
12538
12539 else
12540
12541                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12542
12543 fi
12544
12545
12546           eval "$wx_cv_use_statusbar"
12547
12548           if test x"$enablestring" = xdisable; then
12549             if test $wxUSE_STATUSBAR = no; then
12550               result=yes
12551             else
12552               result=no
12553             fi
12554           else
12555             result=$wxUSE_STATUSBAR
12556           fi
12557
12558           { echo "$as_me:$LINENO: result: $result" >&5
12559 echo "${ECHO_T}$result" >&6; }
12560
12561
12562           enablestring=
12563           defaultval=$wxUSE_ALL_FEATURES
12564           if test -z "$defaultval"; then
12565               if test x"$enablestring" = xdisable; then
12566                   defaultval=yes
12567               else
12568                   defaultval=no
12569               fi
12570           fi
12571
12572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12573 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12574           # Check whether --enable-taskbaricon was given.
12575 if test "${enable_taskbaricon+set}" = set; then
12576   enableval=$enable_taskbaricon;
12577                           if test "$enableval" = yes; then
12578                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12579                           else
12580                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12581                           fi
12582
12583 else
12584
12585                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12586
12587 fi
12588
12589
12590           eval "$wx_cv_use_taskbaricon"
12591
12592           if test x"$enablestring" = xdisable; then
12593             if test $wxUSE_TASKBARICON = no; then
12594               result=yes
12595             else
12596               result=no
12597             fi
12598           else
12599             result=$wxUSE_TASKBARICON
12600           fi
12601
12602           { echo "$as_me:$LINENO: result: $result" >&5
12603 echo "${ECHO_T}$result" >&6; }
12604
12605
12606           enablestring=
12607           defaultval=$wxUSE_ALL_FEATURES
12608           if test -z "$defaultval"; then
12609               if test x"$enablestring" = xdisable; then
12610                   defaultval=yes
12611               else
12612                   defaultval=no
12613               fi
12614           fi
12615
12616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12617 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12618           # Check whether --enable-tbarnative was given.
12619 if test "${enable_tbarnative+set}" = set; then
12620   enableval=$enable_tbarnative;
12621                           if test "$enableval" = yes; then
12622                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12623                           else
12624                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12625                           fi
12626
12627 else
12628
12629                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12630
12631 fi
12632
12633
12634           eval "$wx_cv_use_tbarnative"
12635
12636           if test x"$enablestring" = xdisable; then
12637             if test $wxUSE_TOOLBAR_NATIVE = no; then
12638               result=yes
12639             else
12640               result=no
12641             fi
12642           else
12643             result=$wxUSE_TOOLBAR_NATIVE
12644           fi
12645
12646           { echo "$as_me:$LINENO: result: $result" >&5
12647 echo "${ECHO_T}$result" >&6; }
12648
12649
12650           enablestring=
12651           defaultval=$wxUSE_ALL_FEATURES
12652           if test -z "$defaultval"; then
12653               if test x"$enablestring" = xdisable; then
12654                   defaultval=yes
12655               else
12656                   defaultval=no
12657               fi
12658           fi
12659
12660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12661 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12662           # Check whether --enable-textctrl was given.
12663 if test "${enable_textctrl+set}" = set; then
12664   enableval=$enable_textctrl;
12665                           if test "$enableval" = yes; then
12666                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12667                           else
12668                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12669                           fi
12670
12671 else
12672
12673                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12674
12675 fi
12676
12677
12678           eval "$wx_cv_use_textctrl"
12679
12680           if test x"$enablestring" = xdisable; then
12681             if test $wxUSE_TEXTCTRL = no; then
12682               result=yes
12683             else
12684               result=no
12685             fi
12686           else
12687             result=$wxUSE_TEXTCTRL
12688           fi
12689
12690           { echo "$as_me:$LINENO: result: $result" >&5
12691 echo "${ECHO_T}$result" >&6; }
12692
12693
12694           enablestring=
12695           defaultval=$wxUSE_ALL_FEATURES
12696           if test -z "$defaultval"; then
12697               if test x"$enablestring" = xdisable; then
12698                   defaultval=yes
12699               else
12700                   defaultval=no
12701               fi
12702           fi
12703
12704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12705 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12706           # Check whether --enable-datepick was given.
12707 if test "${enable_datepick+set}" = set; then
12708   enableval=$enable_datepick;
12709                           if test "$enableval" = yes; then
12710                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12711                           else
12712                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12713                           fi
12714
12715 else
12716
12717                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12718
12719 fi
12720
12721
12722           eval "$wx_cv_use_datepick"
12723
12724           if test x"$enablestring" = xdisable; then
12725             if test $wxUSE_TIMEPICKCTRL = no; then
12726               result=yes
12727             else
12728               result=no
12729             fi
12730           else
12731             result=$wxUSE_TIMEPICKCTRL
12732           fi
12733
12734           { echo "$as_me:$LINENO: result: $result" >&5
12735 echo "${ECHO_T}$result" >&6; }
12736
12737
12738           enablestring=
12739           defaultval=$wxUSE_ALL_FEATURES
12740           if test -z "$defaultval"; then
12741               if test x"$enablestring" = xdisable; then
12742                   defaultval=yes
12743               else
12744                   defaultval=no
12745               fi
12746           fi
12747
12748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12749 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12750           # Check whether --enable-tipwindow was given.
12751 if test "${enable_tipwindow+set}" = set; then
12752   enableval=$enable_tipwindow;
12753                           if test "$enableval" = yes; then
12754                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12755                           else
12756                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12757                           fi
12758
12759 else
12760
12761                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12762
12763 fi
12764
12765
12766           eval "$wx_cv_use_tipwindow"
12767
12768           if test x"$enablestring" = xdisable; then
12769             if test $wxUSE_TIPWINDOW = no; then
12770               result=yes
12771             else
12772               result=no
12773             fi
12774           else
12775             result=$wxUSE_TIPWINDOW
12776           fi
12777
12778           { echo "$as_me:$LINENO: result: $result" >&5
12779 echo "${ECHO_T}$result" >&6; }
12780
12781
12782           enablestring=
12783           defaultval=$wxUSE_ALL_FEATURES
12784           if test -z "$defaultval"; then
12785               if test x"$enablestring" = xdisable; then
12786                   defaultval=yes
12787               else
12788                   defaultval=no
12789               fi
12790           fi
12791
12792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12793 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12794           # Check whether --enable-togglebtn was given.
12795 if test "${enable_togglebtn+set}" = set; then
12796   enableval=$enable_togglebtn;
12797                           if test "$enableval" = yes; then
12798                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12799                           else
12800                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12801                           fi
12802
12803 else
12804
12805                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12806
12807 fi
12808
12809
12810           eval "$wx_cv_use_togglebtn"
12811
12812           if test x"$enablestring" = xdisable; then
12813             if test $wxUSE_TOGGLEBTN = no; then
12814               result=yes
12815             else
12816               result=no
12817             fi
12818           else
12819             result=$wxUSE_TOGGLEBTN
12820           fi
12821
12822           { echo "$as_me:$LINENO: result: $result" >&5
12823 echo "${ECHO_T}$result" >&6; }
12824
12825
12826           enablestring=
12827           defaultval=$wxUSE_ALL_FEATURES
12828           if test -z "$defaultval"; then
12829               if test x"$enablestring" = xdisable; then
12830                   defaultval=yes
12831               else
12832                   defaultval=no
12833               fi
12834           fi
12835
12836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12837 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12838           # Check whether --enable-toolbar was given.
12839 if test "${enable_toolbar+set}" = set; then
12840   enableval=$enable_toolbar;
12841                           if test "$enableval" = yes; then
12842                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12843                           else
12844                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12845                           fi
12846
12847 else
12848
12849                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12850
12851 fi
12852
12853
12854           eval "$wx_cv_use_toolbar"
12855
12856           if test x"$enablestring" = xdisable; then
12857             if test $wxUSE_TOOLBAR = no; then
12858               result=yes
12859             else
12860               result=no
12861             fi
12862           else
12863             result=$wxUSE_TOOLBAR
12864           fi
12865
12866           { echo "$as_me:$LINENO: result: $result" >&5
12867 echo "${ECHO_T}$result" >&6; }
12868
12869
12870           enablestring=
12871           defaultval=$wxUSE_ALL_FEATURES
12872           if test -z "$defaultval"; then
12873               if test x"$enablestring" = xdisable; then
12874                   defaultval=yes
12875               else
12876                   defaultval=no
12877               fi
12878           fi
12879
12880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12881 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12882           # Check whether --enable-toolbook was given.
12883 if test "${enable_toolbook+set}" = set; then
12884   enableval=$enable_toolbook;
12885                           if test "$enableval" = yes; then
12886                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12887                           else
12888                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12889                           fi
12890
12891 else
12892
12893                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12894
12895 fi
12896
12897
12898           eval "$wx_cv_use_toolbook"
12899
12900           if test x"$enablestring" = xdisable; then
12901             if test $wxUSE_TOOLBOOK = no; then
12902               result=yes
12903             else
12904               result=no
12905             fi
12906           else
12907             result=$wxUSE_TOOLBOOK
12908           fi
12909
12910           { echo "$as_me:$LINENO: result: $result" >&5
12911 echo "${ECHO_T}$result" >&6; }
12912
12913
12914           enablestring=
12915           defaultval=$wxUSE_ALL_FEATURES
12916           if test -z "$defaultval"; then
12917               if test x"$enablestring" = xdisable; then
12918                   defaultval=yes
12919               else
12920                   defaultval=no
12921               fi
12922           fi
12923
12924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12925 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12926           # Check whether --enable-treebook was given.
12927 if test "${enable_treebook+set}" = set; then
12928   enableval=$enable_treebook;
12929                           if test "$enableval" = yes; then
12930                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12931                           else
12932                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12933                           fi
12934
12935 else
12936
12937                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12938
12939 fi
12940
12941
12942           eval "$wx_cv_use_treebook"
12943
12944           if test x"$enablestring" = xdisable; then
12945             if test $wxUSE_TREEBOOK = no; then
12946               result=yes
12947             else
12948               result=no
12949             fi
12950           else
12951             result=$wxUSE_TREEBOOK
12952           fi
12953
12954           { echo "$as_me:$LINENO: result: $result" >&5
12955 echo "${ECHO_T}$result" >&6; }
12956
12957
12958           enablestring=
12959           defaultval=$wxUSE_ALL_FEATURES
12960           if test -z "$defaultval"; then
12961               if test x"$enablestring" = xdisable; then
12962                   defaultval=yes
12963               else
12964                   defaultval=no
12965               fi
12966           fi
12967
12968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12969 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12970           # Check whether --enable-treectrl was given.
12971 if test "${enable_treectrl+set}" = set; then
12972   enableval=$enable_treectrl;
12973                           if test "$enableval" = yes; then
12974                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12975                           else
12976                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12977                           fi
12978
12979 else
12980
12981                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12982
12983 fi
12984
12985
12986           eval "$wx_cv_use_treectrl"
12987
12988           if test x"$enablestring" = xdisable; then
12989             if test $wxUSE_TREECTRL = no; then
12990               result=yes
12991             else
12992               result=no
12993             fi
12994           else
12995             result=$wxUSE_TREECTRL
12996           fi
12997
12998           { echo "$as_me:$LINENO: result: $result" >&5
12999 echo "${ECHO_T}$result" >&6; }
13000
13001
13002           enablestring=
13003           defaultval=$wxUSE_ALL_FEATURES
13004           if test -z "$defaultval"; then
13005               if test x"$enablestring" = xdisable; then
13006                   defaultval=yes
13007               else
13008                   defaultval=no
13009               fi
13010           fi
13011
13012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
13013 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
13014           # Check whether --enable-treelist was given.
13015 if test "${enable_treelist+set}" = set; then
13016   enableval=$enable_treelist;
13017                           if test "$enableval" = yes; then
13018                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
13019                           else
13020                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
13021                           fi
13022
13023 else
13024
13025                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
13026
13027 fi
13028
13029
13030           eval "$wx_cv_use_treelist"
13031
13032           if test x"$enablestring" = xdisable; then
13033             if test $wxUSE_TREELISTCTRL = no; then
13034               result=yes
13035             else
13036               result=no
13037             fi
13038           else
13039             result=$wxUSE_TREELISTCTRL
13040           fi
13041
13042           { echo "$as_me:$LINENO: result: $result" >&5
13043 echo "${ECHO_T}$result" >&6; }
13044
13045
13046
13047
13048           enablestring=
13049           defaultval=$wxUSE_ALL_FEATURES
13050           if test -z "$defaultval"; then
13051               if test x"$enablestring" = xdisable; then
13052                   defaultval=yes
13053               else
13054                   defaultval=no
13055               fi
13056           fi
13057
13058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13059 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13060           # Check whether --enable-commondlg was given.
13061 if test "${enable_commondlg+set}" = set; then
13062   enableval=$enable_commondlg;
13063                           if test "$enableval" = yes; then
13064                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13065                           else
13066                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13067                           fi
13068
13069 else
13070
13071                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13072
13073 fi
13074
13075
13076           eval "$wx_cv_use_commondlg"
13077
13078           if test x"$enablestring" = xdisable; then
13079             if test $wxUSE_COMMONDLGS = no; then
13080               result=yes
13081             else
13082               result=no
13083             fi
13084           else
13085             result=$wxUSE_COMMONDLGS
13086           fi
13087
13088           { echo "$as_me:$LINENO: result: $result" >&5
13089 echo "${ECHO_T}$result" >&6; }
13090
13091
13092           enablestring=
13093           defaultval=$wxUSE_ALL_FEATURES
13094           if test -z "$defaultval"; then
13095               if test x"$enablestring" = xdisable; then
13096                   defaultval=yes
13097               else
13098                   defaultval=no
13099               fi
13100           fi
13101
13102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13103 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13104           # Check whether --enable-aboutdlg was given.
13105 if test "${enable_aboutdlg+set}" = set; then
13106   enableval=$enable_aboutdlg;
13107                           if test "$enableval" = yes; then
13108                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13109                           else
13110                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13111                           fi
13112
13113 else
13114
13115                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13116
13117 fi
13118
13119
13120           eval "$wx_cv_use_aboutdlg"
13121
13122           if test x"$enablestring" = xdisable; then
13123             if test $wxUSE_ABOUTDLG = no; then
13124               result=yes
13125             else
13126               result=no
13127             fi
13128           else
13129             result=$wxUSE_ABOUTDLG
13130           fi
13131
13132           { echo "$as_me:$LINENO: result: $result" >&5
13133 echo "${ECHO_T}$result" >&6; }
13134
13135
13136           enablestring=
13137           defaultval=$wxUSE_ALL_FEATURES
13138           if test -z "$defaultval"; then
13139               if test x"$enablestring" = xdisable; then
13140                   defaultval=yes
13141               else
13142                   defaultval=no
13143               fi
13144           fi
13145
13146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13147 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13148           # Check whether --enable-choicedlg was given.
13149 if test "${enable_choicedlg+set}" = set; then
13150   enableval=$enable_choicedlg;
13151                           if test "$enableval" = yes; then
13152                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13153                           else
13154                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13155                           fi
13156
13157 else
13158
13159                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13160
13161 fi
13162
13163
13164           eval "$wx_cv_use_choicedlg"
13165
13166           if test x"$enablestring" = xdisable; then
13167             if test $wxUSE_CHOICEDLG = no; then
13168               result=yes
13169             else
13170               result=no
13171             fi
13172           else
13173             result=$wxUSE_CHOICEDLG
13174           fi
13175
13176           { echo "$as_me:$LINENO: result: $result" >&5
13177 echo "${ECHO_T}$result" >&6; }
13178
13179
13180           enablestring=
13181           defaultval=$wxUSE_ALL_FEATURES
13182           if test -z "$defaultval"; then
13183               if test x"$enablestring" = xdisable; then
13184                   defaultval=yes
13185               else
13186                   defaultval=no
13187               fi
13188           fi
13189
13190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13191 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13192           # Check whether --enable-coldlg was given.
13193 if test "${enable_coldlg+set}" = set; then
13194   enableval=$enable_coldlg;
13195                           if test "$enableval" = yes; then
13196                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13197                           else
13198                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13199                           fi
13200
13201 else
13202
13203                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13204
13205 fi
13206
13207
13208           eval "$wx_cv_use_coldlg"
13209
13210           if test x"$enablestring" = xdisable; then
13211             if test $wxUSE_COLOURDLG = no; then
13212               result=yes
13213             else
13214               result=no
13215             fi
13216           else
13217             result=$wxUSE_COLOURDLG
13218           fi
13219
13220           { echo "$as_me:$LINENO: result: $result" >&5
13221 echo "${ECHO_T}$result" >&6; }
13222
13223
13224           enablestring=
13225           defaultval=$wxUSE_ALL_FEATURES
13226           if test -z "$defaultval"; then
13227               if test x"$enablestring" = xdisable; then
13228                   defaultval=yes
13229               else
13230                   defaultval=no
13231               fi
13232           fi
13233
13234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13235 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13236           # Check whether --enable-filedlg was given.
13237 if test "${enable_filedlg+set}" = set; then
13238   enableval=$enable_filedlg;
13239                           if test "$enableval" = yes; then
13240                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13241                           else
13242                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13243                           fi
13244
13245 else
13246
13247                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13248
13249 fi
13250
13251
13252           eval "$wx_cv_use_filedlg"
13253
13254           if test x"$enablestring" = xdisable; then
13255             if test $wxUSE_FILEDLG = no; then
13256               result=yes
13257             else
13258               result=no
13259             fi
13260           else
13261             result=$wxUSE_FILEDLG
13262           fi
13263
13264           { echo "$as_me:$LINENO: result: $result" >&5
13265 echo "${ECHO_T}$result" >&6; }
13266
13267
13268           enablestring=
13269           defaultval=$wxUSE_ALL_FEATURES
13270           if test -z "$defaultval"; then
13271               if test x"$enablestring" = xdisable; then
13272                   defaultval=yes
13273               else
13274                   defaultval=no
13275               fi
13276           fi
13277
13278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13279 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13280           # Check whether --enable-finddlg was given.
13281 if test "${enable_finddlg+set}" = set; then
13282   enableval=$enable_finddlg;
13283                           if test "$enableval" = yes; then
13284                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13285                           else
13286                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13287                           fi
13288
13289 else
13290
13291                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13292
13293 fi
13294
13295
13296           eval "$wx_cv_use_finddlg"
13297
13298           if test x"$enablestring" = xdisable; then
13299             if test $wxUSE_FINDREPLDLG = no; then
13300               result=yes
13301             else
13302               result=no
13303             fi
13304           else
13305             result=$wxUSE_FINDREPLDLG
13306           fi
13307
13308           { echo "$as_me:$LINENO: result: $result" >&5
13309 echo "${ECHO_T}$result" >&6; }
13310
13311
13312           enablestring=
13313           defaultval=$wxUSE_ALL_FEATURES
13314           if test -z "$defaultval"; then
13315               if test x"$enablestring" = xdisable; then
13316                   defaultval=yes
13317               else
13318                   defaultval=no
13319               fi
13320           fi
13321
13322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13323 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13324           # Check whether --enable-fontdlg was given.
13325 if test "${enable_fontdlg+set}" = set; then
13326   enableval=$enable_fontdlg;
13327                           if test "$enableval" = yes; then
13328                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13329                           else
13330                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13331                           fi
13332
13333 else
13334
13335                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13336
13337 fi
13338
13339
13340           eval "$wx_cv_use_fontdlg"
13341
13342           if test x"$enablestring" = xdisable; then
13343             if test $wxUSE_FONTDLG = no; then
13344               result=yes
13345             else
13346               result=no
13347             fi
13348           else
13349             result=$wxUSE_FONTDLG
13350           fi
13351
13352           { echo "$as_me:$LINENO: result: $result" >&5
13353 echo "${ECHO_T}$result" >&6; }
13354
13355
13356           enablestring=
13357           defaultval=$wxUSE_ALL_FEATURES
13358           if test -z "$defaultval"; then
13359               if test x"$enablestring" = xdisable; then
13360                   defaultval=yes
13361               else
13362                   defaultval=no
13363               fi
13364           fi
13365
13366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13367 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13368           # Check whether --enable-dirdlg was given.
13369 if test "${enable_dirdlg+set}" = set; then
13370   enableval=$enable_dirdlg;
13371                           if test "$enableval" = yes; then
13372                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13373                           else
13374                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13375                           fi
13376
13377 else
13378
13379                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13380
13381 fi
13382
13383
13384           eval "$wx_cv_use_dirdlg"
13385
13386           if test x"$enablestring" = xdisable; then
13387             if test $wxUSE_DIRDLG = no; then
13388               result=yes
13389             else
13390               result=no
13391             fi
13392           else
13393             result=$wxUSE_DIRDLG
13394           fi
13395
13396           { echo "$as_me:$LINENO: result: $result" >&5
13397 echo "${ECHO_T}$result" >&6; }
13398
13399
13400           enablestring=
13401           defaultval=$wxUSE_ALL_FEATURES
13402           if test -z "$defaultval"; then
13403               if test x"$enablestring" = xdisable; then
13404                   defaultval=yes
13405               else
13406                   defaultval=no
13407               fi
13408           fi
13409
13410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13411 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13412           # Check whether --enable-msgdlg was given.
13413 if test "${enable_msgdlg+set}" = set; then
13414   enableval=$enable_msgdlg;
13415                           if test "$enableval" = yes; then
13416                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13417                           else
13418                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13419                           fi
13420
13421 else
13422
13423                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13424
13425 fi
13426
13427
13428           eval "$wx_cv_use_msgdlg"
13429
13430           if test x"$enablestring" = xdisable; then
13431             if test $wxUSE_MSGDLG = no; then
13432               result=yes
13433             else
13434               result=no
13435             fi
13436           else
13437             result=$wxUSE_MSGDLG
13438           fi
13439
13440           { echo "$as_me:$LINENO: result: $result" >&5
13441 echo "${ECHO_T}$result" >&6; }
13442
13443
13444           enablestring=
13445           defaultval=$wxUSE_ALL_FEATURES
13446           if test -z "$defaultval"; then
13447               if test x"$enablestring" = xdisable; then
13448                   defaultval=yes
13449               else
13450                   defaultval=no
13451               fi
13452           fi
13453
13454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13455 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13456           # Check whether --enable-numberdlg was given.
13457 if test "${enable_numberdlg+set}" = set; then
13458   enableval=$enable_numberdlg;
13459                           if test "$enableval" = yes; then
13460                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13461                           else
13462                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13463                           fi
13464
13465 else
13466
13467                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13468
13469 fi
13470
13471
13472           eval "$wx_cv_use_numberdlg"
13473
13474           if test x"$enablestring" = xdisable; then
13475             if test $wxUSE_NUMBERDLG = no; then
13476               result=yes
13477             else
13478               result=no
13479             fi
13480           else
13481             result=$wxUSE_NUMBERDLG
13482           fi
13483
13484           { echo "$as_me:$LINENO: result: $result" >&5
13485 echo "${ECHO_T}$result" >&6; }
13486
13487
13488           enablestring=
13489           defaultval=$wxUSE_ALL_FEATURES
13490           if test -z "$defaultval"; then
13491               if test x"$enablestring" = xdisable; then
13492                   defaultval=yes
13493               else
13494                   defaultval=no
13495               fi
13496           fi
13497
13498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13499 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13500           # Check whether --enable-splash was given.
13501 if test "${enable_splash+set}" = set; then
13502   enableval=$enable_splash;
13503                           if test "$enableval" = yes; then
13504                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13505                           else
13506                             wx_cv_use_splash='wxUSE_SPLASH=no'
13507                           fi
13508
13509 else
13510
13511                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13512
13513 fi
13514
13515
13516           eval "$wx_cv_use_splash"
13517
13518           if test x"$enablestring" = xdisable; then
13519             if test $wxUSE_SPLASH = no; then
13520               result=yes
13521             else
13522               result=no
13523             fi
13524           else
13525             result=$wxUSE_SPLASH
13526           fi
13527
13528           { echo "$as_me:$LINENO: result: $result" >&5
13529 echo "${ECHO_T}$result" >&6; }
13530
13531
13532           enablestring=
13533           defaultval=$wxUSE_ALL_FEATURES
13534           if test -z "$defaultval"; then
13535               if test x"$enablestring" = xdisable; then
13536                   defaultval=yes
13537               else
13538                   defaultval=no
13539               fi
13540           fi
13541
13542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13543 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13544           # Check whether --enable-textdlg was given.
13545 if test "${enable_textdlg+set}" = set; then
13546   enableval=$enable_textdlg;
13547                           if test "$enableval" = yes; then
13548                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13549                           else
13550                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13551                           fi
13552
13553 else
13554
13555                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13556
13557 fi
13558
13559
13560           eval "$wx_cv_use_textdlg"
13561
13562           if test x"$enablestring" = xdisable; then
13563             if test $wxUSE_TEXTDLG = no; then
13564               result=yes
13565             else
13566               result=no
13567             fi
13568           else
13569             result=$wxUSE_TEXTDLG
13570           fi
13571
13572           { echo "$as_me:$LINENO: result: $result" >&5
13573 echo "${ECHO_T}$result" >&6; }
13574
13575
13576           enablestring=
13577           defaultval=$wxUSE_ALL_FEATURES
13578           if test -z "$defaultval"; then
13579               if test x"$enablestring" = xdisable; then
13580                   defaultval=yes
13581               else
13582                   defaultval=no
13583               fi
13584           fi
13585
13586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13587 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13588           # Check whether --enable-tipdlg was given.
13589 if test "${enable_tipdlg+set}" = set; then
13590   enableval=$enable_tipdlg;
13591                           if test "$enableval" = yes; then
13592                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13593                           else
13594                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13595                           fi
13596
13597 else
13598
13599                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13600
13601 fi
13602
13603
13604           eval "$wx_cv_use_tipdlg"
13605
13606           if test x"$enablestring" = xdisable; then
13607             if test $wxUSE_STARTUP_TIPS = no; then
13608               result=yes
13609             else
13610               result=no
13611             fi
13612           else
13613             result=$wxUSE_STARTUP_TIPS
13614           fi
13615
13616           { echo "$as_me:$LINENO: result: $result" >&5
13617 echo "${ECHO_T}$result" >&6; }
13618
13619
13620           enablestring=
13621           defaultval=$wxUSE_ALL_FEATURES
13622           if test -z "$defaultval"; then
13623               if test x"$enablestring" = xdisable; then
13624                   defaultval=yes
13625               else
13626                   defaultval=no
13627               fi
13628           fi
13629
13630           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13631 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13632           # Check whether --enable-progressdlg was given.
13633 if test "${enable_progressdlg+set}" = set; then
13634   enableval=$enable_progressdlg;
13635                           if test "$enableval" = yes; then
13636                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13637                           else
13638                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13639                           fi
13640
13641 else
13642
13643                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13644
13645 fi
13646
13647
13648           eval "$wx_cv_use_progressdlg"
13649
13650           if test x"$enablestring" = xdisable; then
13651             if test $wxUSE_PROGRESSDLG = no; then
13652               result=yes
13653             else
13654               result=no
13655             fi
13656           else
13657             result=$wxUSE_PROGRESSDLG
13658           fi
13659
13660           { echo "$as_me:$LINENO: result: $result" >&5
13661 echo "${ECHO_T}$result" >&6; }
13662
13663
13664           enablestring=
13665           defaultval=$wxUSE_ALL_FEATURES
13666           if test -z "$defaultval"; then
13667               if test x"$enablestring" = xdisable; then
13668                   defaultval=yes
13669               else
13670                   defaultval=no
13671               fi
13672           fi
13673
13674           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13675 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13676           # Check whether --enable-wizarddlg was given.
13677 if test "${enable_wizarddlg+set}" = set; then
13678   enableval=$enable_wizarddlg;
13679                           if test "$enableval" = yes; then
13680                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13681                           else
13682                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13683                           fi
13684
13685 else
13686
13687                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13688
13689 fi
13690
13691
13692           eval "$wx_cv_use_wizarddlg"
13693
13694           if test x"$enablestring" = xdisable; then
13695             if test $wxUSE_WIZARDDLG = no; then
13696               result=yes
13697             else
13698               result=no
13699             fi
13700           else
13701             result=$wxUSE_WIZARDDLG
13702           fi
13703
13704           { echo "$as_me:$LINENO: result: $result" >&5
13705 echo "${ECHO_T}$result" >&6; }
13706
13707
13708
13709
13710           enablestring=
13711           defaultval=$wxUSE_ALL_FEATURES
13712           if test -z "$defaultval"; then
13713               if test x"$enablestring" = xdisable; then
13714                   defaultval=yes
13715               else
13716                   defaultval=no
13717               fi
13718           fi
13719
13720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13721 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13722           # Check whether --enable-menus was given.
13723 if test "${enable_menus+set}" = set; then
13724   enableval=$enable_menus;
13725                           if test "$enableval" = yes; then
13726                             wx_cv_use_menus='wxUSE_MENUS=yes'
13727                           else
13728                             wx_cv_use_menus='wxUSE_MENUS=no'
13729                           fi
13730
13731 else
13732
13733                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13734
13735 fi
13736
13737
13738           eval "$wx_cv_use_menus"
13739
13740           if test x"$enablestring" = xdisable; then
13741             if test $wxUSE_MENUS = no; then
13742               result=yes
13743             else
13744               result=no
13745             fi
13746           else
13747             result=$wxUSE_MENUS
13748           fi
13749
13750           { echo "$as_me:$LINENO: result: $result" >&5
13751 echo "${ECHO_T}$result" >&6; }
13752
13753
13754           enablestring=
13755           defaultval=$wxUSE_ALL_FEATURES
13756           if test -z "$defaultval"; then
13757               if test x"$enablestring" = xdisable; then
13758                   defaultval=yes
13759               else
13760                   defaultval=no
13761               fi
13762           fi
13763
13764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13765 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13766           # Check whether --enable-miniframe was given.
13767 if test "${enable_miniframe+set}" = set; then
13768   enableval=$enable_miniframe;
13769                           if test "$enableval" = yes; then
13770                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13771                           else
13772                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13773                           fi
13774
13775 else
13776
13777                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13778
13779 fi
13780
13781
13782           eval "$wx_cv_use_miniframe"
13783
13784           if test x"$enablestring" = xdisable; then
13785             if test $wxUSE_MINIFRAME = no; then
13786               result=yes
13787             else
13788               result=no
13789             fi
13790           else
13791             result=$wxUSE_MINIFRAME
13792           fi
13793
13794           { echo "$as_me:$LINENO: result: $result" >&5
13795 echo "${ECHO_T}$result" >&6; }
13796
13797
13798           enablestring=
13799           defaultval=$wxUSE_ALL_FEATURES
13800           if test -z "$defaultval"; then
13801               if test x"$enablestring" = xdisable; then
13802                   defaultval=yes
13803               else
13804                   defaultval=no
13805               fi
13806           fi
13807
13808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13809 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13810           # Check whether --enable-tooltips was given.
13811 if test "${enable_tooltips+set}" = set; then
13812   enableval=$enable_tooltips;
13813                           if test "$enableval" = yes; then
13814                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13815                           else
13816                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13817                           fi
13818
13819 else
13820
13821                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13822
13823 fi
13824
13825
13826           eval "$wx_cv_use_tooltips"
13827
13828           if test x"$enablestring" = xdisable; then
13829             if test $wxUSE_TOOLTIPS = no; then
13830               result=yes
13831             else
13832               result=no
13833             fi
13834           else
13835             result=$wxUSE_TOOLTIPS
13836           fi
13837
13838           { echo "$as_me:$LINENO: result: $result" >&5
13839 echo "${ECHO_T}$result" >&6; }
13840
13841
13842           enablestring=
13843           defaultval=$wxUSE_ALL_FEATURES
13844           if test -z "$defaultval"; then
13845               if test x"$enablestring" = xdisable; then
13846                   defaultval=yes
13847               else
13848                   defaultval=no
13849               fi
13850           fi
13851
13852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13853 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13854           # Check whether --enable-splines was given.
13855 if test "${enable_splines+set}" = set; then
13856   enableval=$enable_splines;
13857                           if test "$enableval" = yes; then
13858                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13859                           else
13860                             wx_cv_use_splines='wxUSE_SPLINES=no'
13861                           fi
13862
13863 else
13864
13865                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13866
13867 fi
13868
13869
13870           eval "$wx_cv_use_splines"
13871
13872           if test x"$enablestring" = xdisable; then
13873             if test $wxUSE_SPLINES = no; then
13874               result=yes
13875             else
13876               result=no
13877             fi
13878           else
13879             result=$wxUSE_SPLINES
13880           fi
13881
13882           { echo "$as_me:$LINENO: result: $result" >&5
13883 echo "${ECHO_T}$result" >&6; }
13884
13885
13886           enablestring=
13887           defaultval=$wxUSE_ALL_FEATURES
13888           if test -z "$defaultval"; then
13889               if test x"$enablestring" = xdisable; then
13890                   defaultval=yes
13891               else
13892                   defaultval=no
13893               fi
13894           fi
13895
13896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13897 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13898           # Check whether --enable-mousewheel was given.
13899 if test "${enable_mousewheel+set}" = set; then
13900   enableval=$enable_mousewheel;
13901                           if test "$enableval" = yes; then
13902                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13903                           else
13904                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13905                           fi
13906
13907 else
13908
13909                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13910
13911 fi
13912
13913
13914           eval "$wx_cv_use_mousewheel"
13915
13916           if test x"$enablestring" = xdisable; then
13917             if test $wxUSE_MOUSEWHEEL = no; then
13918               result=yes
13919             else
13920               result=no
13921             fi
13922           else
13923             result=$wxUSE_MOUSEWHEEL
13924           fi
13925
13926           { echo "$as_me:$LINENO: result: $result" >&5
13927 echo "${ECHO_T}$result" >&6; }
13928
13929
13930           enablestring=
13931           defaultval=$wxUSE_ALL_FEATURES
13932           if test -z "$defaultval"; then
13933               if test x"$enablestring" = xdisable; then
13934                   defaultval=yes
13935               else
13936                   defaultval=no
13937               fi
13938           fi
13939
13940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13941 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13942           # Check whether --enable-validators was given.
13943 if test "${enable_validators+set}" = set; then
13944   enableval=$enable_validators;
13945                           if test "$enableval" = yes; then
13946                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13947                           else
13948                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13949                           fi
13950
13951 else
13952
13953                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13954
13955 fi
13956
13957
13958           eval "$wx_cv_use_validators"
13959
13960           if test x"$enablestring" = xdisable; then
13961             if test $wxUSE_VALIDATORS = no; then
13962               result=yes
13963             else
13964               result=no
13965             fi
13966           else
13967             result=$wxUSE_VALIDATORS
13968           fi
13969
13970           { echo "$as_me:$LINENO: result: $result" >&5
13971 echo "${ECHO_T}$result" >&6; }
13972
13973
13974           enablestring=
13975           defaultval=$wxUSE_ALL_FEATURES
13976           if test -z "$defaultval"; then
13977               if test x"$enablestring" = xdisable; then
13978                   defaultval=yes
13979               else
13980                   defaultval=no
13981               fi
13982           fi
13983
13984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13985 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13986           # Check whether --enable-busyinfo was given.
13987 if test "${enable_busyinfo+set}" = set; then
13988   enableval=$enable_busyinfo;
13989                           if test "$enableval" = yes; then
13990                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13991                           else
13992                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13993                           fi
13994
13995 else
13996
13997                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13998
13999 fi
14000
14001
14002           eval "$wx_cv_use_busyinfo"
14003
14004           if test x"$enablestring" = xdisable; then
14005             if test $wxUSE_BUSYINFO = no; then
14006               result=yes
14007             else
14008               result=no
14009             fi
14010           else
14011             result=$wxUSE_BUSYINFO
14012           fi
14013
14014           { echo "$as_me:$LINENO: result: $result" >&5
14015 echo "${ECHO_T}$result" >&6; }
14016
14017
14018           enablestring=
14019           defaultval=$wxUSE_ALL_FEATURES
14020           if test -z "$defaultval"; then
14021               if test x"$enablestring" = xdisable; then
14022                   defaultval=yes
14023               else
14024                   defaultval=no
14025               fi
14026           fi
14027
14028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
14029 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
14030           # Check whether --enable-hotkey was given.
14031 if test "${enable_hotkey+set}" = set; then
14032   enableval=$enable_hotkey;
14033                           if test "$enableval" = yes; then
14034                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
14035                           else
14036                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
14037                           fi
14038
14039 else
14040
14041                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
14042
14043 fi
14044
14045
14046           eval "$wx_cv_use_hotkey"
14047
14048           if test x"$enablestring" = xdisable; then
14049             if test $wxUSE_HOTKEY = no; then
14050               result=yes
14051             else
14052               result=no
14053             fi
14054           else
14055             result=$wxUSE_HOTKEY
14056           fi
14057
14058           { echo "$as_me:$LINENO: result: $result" >&5
14059 echo "${ECHO_T}$result" >&6; }
14060
14061
14062           enablestring=
14063           defaultval=$wxUSE_ALL_FEATURES
14064           if test -z "$defaultval"; then
14065               if test x"$enablestring" = xdisable; then
14066                   defaultval=yes
14067               else
14068                   defaultval=no
14069               fi
14070           fi
14071
14072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14073 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14074           # Check whether --enable-joystick was given.
14075 if test "${enable_joystick+set}" = set; then
14076   enableval=$enable_joystick;
14077                           if test "$enableval" = yes; then
14078                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14079                           else
14080                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14081                           fi
14082
14083 else
14084
14085                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14086
14087 fi
14088
14089
14090           eval "$wx_cv_use_joystick"
14091
14092           if test x"$enablestring" = xdisable; then
14093             if test $wxUSE_JOYSTICK = no; then
14094               result=yes
14095             else
14096               result=no
14097             fi
14098           else
14099             result=$wxUSE_JOYSTICK
14100           fi
14101
14102           { echo "$as_me:$LINENO: result: $result" >&5
14103 echo "${ECHO_T}$result" >&6; }
14104
14105
14106           enablestring=
14107           defaultval=$wxUSE_ALL_FEATURES
14108           if test -z "$defaultval"; then
14109               if test x"$enablestring" = xdisable; then
14110                   defaultval=yes
14111               else
14112                   defaultval=no
14113               fi
14114           fi
14115
14116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14117 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14118           # Check whether --enable-metafile was given.
14119 if test "${enable_metafile+set}" = set; then
14120   enableval=$enable_metafile;
14121                           if test "$enableval" = yes; then
14122                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14123                           else
14124                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14125                           fi
14126
14127 else
14128
14129                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14130
14131 fi
14132
14133
14134           eval "$wx_cv_use_metafile"
14135
14136           if test x"$enablestring" = xdisable; then
14137             if test $wxUSE_METAFILE = no; then
14138               result=yes
14139             else
14140               result=no
14141             fi
14142           else
14143             result=$wxUSE_METAFILE
14144           fi
14145
14146           { echo "$as_me:$LINENO: result: $result" >&5
14147 echo "${ECHO_T}$result" >&6; }
14148
14149
14150           enablestring=
14151           defaultval=$wxUSE_ALL_FEATURES
14152           if test -z "$defaultval"; then
14153               if test x"$enablestring" = xdisable; then
14154                   defaultval=yes
14155               else
14156                   defaultval=no
14157               fi
14158           fi
14159
14160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14161 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14162           # Check whether --enable-dragimage was given.
14163 if test "${enable_dragimage+set}" = set; then
14164   enableval=$enable_dragimage;
14165                           if test "$enableval" = yes; then
14166                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14167                           else
14168                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14169                           fi
14170
14171 else
14172
14173                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14174
14175 fi
14176
14177
14178           eval "$wx_cv_use_dragimage"
14179
14180           if test x"$enablestring" = xdisable; then
14181             if test $wxUSE_DRAGIMAGE = no; then
14182               result=yes
14183             else
14184               result=no
14185             fi
14186           else
14187             result=$wxUSE_DRAGIMAGE
14188           fi
14189
14190           { echo "$as_me:$LINENO: result: $result" >&5
14191 echo "${ECHO_T}$result" >&6; }
14192
14193
14194           enablestring=
14195           defaultval=$wxUSE_ALL_FEATURES
14196           if test -z "$defaultval"; then
14197               if test x"$enablestring" = xdisable; then
14198                   defaultval=yes
14199               else
14200                   defaultval=no
14201               fi
14202           fi
14203
14204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14205 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14206           # Check whether --enable-accessibility was given.
14207 if test "${enable_accessibility+set}" = set; then
14208   enableval=$enable_accessibility;
14209                           if test "$enableval" = yes; then
14210                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14211                           else
14212                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14213                           fi
14214
14215 else
14216
14217                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14218
14219 fi
14220
14221
14222           eval "$wx_cv_use_accessibility"
14223
14224           if test x"$enablestring" = xdisable; then
14225             if test $wxUSE_ACCESSIBILITY = no; then
14226               result=yes
14227             else
14228               result=no
14229             fi
14230           else
14231             result=$wxUSE_ACCESSIBILITY
14232           fi
14233
14234           { echo "$as_me:$LINENO: result: $result" >&5
14235 echo "${ECHO_T}$result" >&6; }
14236
14237
14238           enablestring=
14239           defaultval=$wxUSE_ALL_FEATURES
14240           if test -z "$defaultval"; then
14241               if test x"$enablestring" = xdisable; then
14242                   defaultval=yes
14243               else
14244                   defaultval=no
14245               fi
14246           fi
14247
14248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14249 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14250           # Check whether --enable-uiactionsim was given.
14251 if test "${enable_uiactionsim+set}" = set; then
14252   enableval=$enable_uiactionsim;
14253                           if test "$enableval" = yes; then
14254                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14255                           else
14256                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14257                           fi
14258
14259 else
14260
14261                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14262
14263 fi
14264
14265
14266           eval "$wx_cv_use_uiactionsim"
14267
14268           if test x"$enablestring" = xdisable; then
14269             if test $wxUSE_UIACTIONSIMULATOR = no; then
14270               result=yes
14271             else
14272               result=no
14273             fi
14274           else
14275             result=$wxUSE_UIACTIONSIMULATOR
14276           fi
14277
14278           { echo "$as_me:$LINENO: result: $result" >&5
14279 echo "${ECHO_T}$result" >&6; }
14280
14281
14282           enablestring=
14283           defaultval=$wxUSE_ALL_FEATURES
14284           if test -z "$defaultval"; then
14285               if test x"$enablestring" = xdisable; then
14286                   defaultval=yes
14287               else
14288                   defaultval=no
14289               fi
14290           fi
14291
14292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14293 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14294           # Check whether --enable-dctransform was given.
14295 if test "${enable_dctransform+set}" = set; then
14296   enableval=$enable_dctransform;
14297                           if test "$enableval" = yes; then
14298                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14299                           else
14300                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14301                           fi
14302
14303 else
14304
14305                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14306
14307 fi
14308
14309
14310           eval "$wx_cv_use_dctransform"
14311
14312           if test x"$enablestring" = xdisable; then
14313             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14314               result=yes
14315             else
14316               result=no
14317             fi
14318           else
14319             result=$wxUSE_DC_TRANSFORM_MATRIX
14320           fi
14321
14322           { echo "$as_me:$LINENO: result: $result" >&5
14323 echo "${ECHO_T}$result" >&6; }
14324
14325
14326           enablestring=
14327           defaultval=$wxUSE_ALL_FEATURES
14328           if test -z "$defaultval"; then
14329               if test x"$enablestring" = xdisable; then
14330                   defaultval=yes
14331               else
14332                   defaultval=no
14333               fi
14334           fi
14335
14336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14337 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14338           # Check whether --enable-webviewwebkit was given.
14339 if test "${enable_webviewwebkit+set}" = set; then
14340   enableval=$enable_webviewwebkit;
14341                           if test "$enableval" = yes; then
14342                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14343                           else
14344                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14345                           fi
14346
14347 else
14348
14349                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14350
14351 fi
14352
14353
14354           eval "$wx_cv_use_webviewwebkit"
14355
14356           if test x"$enablestring" = xdisable; then
14357             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14358               result=yes
14359             else
14360               result=no
14361             fi
14362           else
14363             result=$wxUSE_WEBVIEW_WEBKIT
14364           fi
14365
14366           { echo "$as_me:$LINENO: result: $result" >&5
14367 echo "${ECHO_T}$result" >&6; }
14368
14369
14370
14371
14372           enablestring=
14373           defaultval=$wxUSE_ALL_FEATURES
14374           if test -z "$defaultval"; then
14375               if test x"$enablestring" = xdisable; then
14376                   defaultval=yes
14377               else
14378                   defaultval=no
14379               fi
14380           fi
14381
14382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14383 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14384           # Check whether --enable-palette was given.
14385 if test "${enable_palette+set}" = set; then
14386   enableval=$enable_palette;
14387                           if test "$enableval" = yes; then
14388                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14389                           else
14390                             wx_cv_use_palette='wxUSE_PALETTE=no'
14391                           fi
14392
14393 else
14394
14395                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14396
14397 fi
14398
14399
14400           eval "$wx_cv_use_palette"
14401
14402           if test x"$enablestring" = xdisable; then
14403             if test $wxUSE_PALETTE = no; then
14404               result=yes
14405             else
14406               result=no
14407             fi
14408           else
14409             result=$wxUSE_PALETTE
14410           fi
14411
14412           { echo "$as_me:$LINENO: result: $result" >&5
14413 echo "${ECHO_T}$result" >&6; }
14414
14415
14416           enablestring=
14417           defaultval=$wxUSE_ALL_FEATURES
14418           if test -z "$defaultval"; then
14419               if test x"$enablestring" = xdisable; then
14420                   defaultval=yes
14421               else
14422                   defaultval=no
14423               fi
14424           fi
14425
14426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14427 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14428           # Check whether --enable-image was given.
14429 if test "${enable_image+set}" = set; then
14430   enableval=$enable_image;
14431                           if test "$enableval" = yes; then
14432                             wx_cv_use_image='wxUSE_IMAGE=yes'
14433                           else
14434                             wx_cv_use_image='wxUSE_IMAGE=no'
14435                           fi
14436
14437 else
14438
14439                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14440
14441 fi
14442
14443
14444           eval "$wx_cv_use_image"
14445
14446           if test x"$enablestring" = xdisable; then
14447             if test $wxUSE_IMAGE = no; then
14448               result=yes
14449             else
14450               result=no
14451             fi
14452           else
14453             result=$wxUSE_IMAGE
14454           fi
14455
14456           { echo "$as_me:$LINENO: result: $result" >&5
14457 echo "${ECHO_T}$result" >&6; }
14458
14459
14460           enablestring=
14461           defaultval=$wxUSE_ALL_FEATURES
14462           if test -z "$defaultval"; then
14463               if test x"$enablestring" = xdisable; then
14464                   defaultval=yes
14465               else
14466                   defaultval=no
14467               fi
14468           fi
14469
14470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14471 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14472           # Check whether --enable-gif was given.
14473 if test "${enable_gif+set}" = set; then
14474   enableval=$enable_gif;
14475                           if test "$enableval" = yes; then
14476                             wx_cv_use_gif='wxUSE_GIF=yes'
14477                           else
14478                             wx_cv_use_gif='wxUSE_GIF=no'
14479                           fi
14480
14481 else
14482
14483                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14484
14485 fi
14486
14487
14488           eval "$wx_cv_use_gif"
14489
14490           if test x"$enablestring" = xdisable; then
14491             if test $wxUSE_GIF = no; then
14492               result=yes
14493             else
14494               result=no
14495             fi
14496           else
14497             result=$wxUSE_GIF
14498           fi
14499
14500           { echo "$as_me:$LINENO: result: $result" >&5
14501 echo "${ECHO_T}$result" >&6; }
14502
14503
14504           enablestring=
14505           defaultval=$wxUSE_ALL_FEATURES
14506           if test -z "$defaultval"; then
14507               if test x"$enablestring" = xdisable; then
14508                   defaultval=yes
14509               else
14510                   defaultval=no
14511               fi
14512           fi
14513
14514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14515 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14516           # Check whether --enable-pcx was given.
14517 if test "${enable_pcx+set}" = set; then
14518   enableval=$enable_pcx;
14519                           if test "$enableval" = yes; then
14520                             wx_cv_use_pcx='wxUSE_PCX=yes'
14521                           else
14522                             wx_cv_use_pcx='wxUSE_PCX=no'
14523                           fi
14524
14525 else
14526
14527                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14528
14529 fi
14530
14531
14532           eval "$wx_cv_use_pcx"
14533
14534           if test x"$enablestring" = xdisable; then
14535             if test $wxUSE_PCX = no; then
14536               result=yes
14537             else
14538               result=no
14539             fi
14540           else
14541             result=$wxUSE_PCX
14542           fi
14543
14544           { echo "$as_me:$LINENO: result: $result" >&5
14545 echo "${ECHO_T}$result" >&6; }
14546
14547
14548           enablestring=
14549           defaultval=$wxUSE_ALL_FEATURES
14550           if test -z "$defaultval"; then
14551               if test x"$enablestring" = xdisable; then
14552                   defaultval=yes
14553               else
14554                   defaultval=no
14555               fi
14556           fi
14557
14558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14559 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14560           # Check whether --enable-tga was given.
14561 if test "${enable_tga+set}" = set; then
14562   enableval=$enable_tga;
14563                           if test "$enableval" = yes; then
14564                             wx_cv_use_tga='wxUSE_TGA=yes'
14565                           else
14566                             wx_cv_use_tga='wxUSE_TGA=no'
14567                           fi
14568
14569 else
14570
14571                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14572
14573 fi
14574
14575
14576           eval "$wx_cv_use_tga"
14577
14578           if test x"$enablestring" = xdisable; then
14579             if test $wxUSE_TGA = no; then
14580               result=yes
14581             else
14582               result=no
14583             fi
14584           else
14585             result=$wxUSE_TGA
14586           fi
14587
14588           { echo "$as_me:$LINENO: result: $result" >&5
14589 echo "${ECHO_T}$result" >&6; }
14590
14591
14592           enablestring=
14593           defaultval=$wxUSE_ALL_FEATURES
14594           if test -z "$defaultval"; then
14595               if test x"$enablestring" = xdisable; then
14596                   defaultval=yes
14597               else
14598                   defaultval=no
14599               fi
14600           fi
14601
14602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14603 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14604           # Check whether --enable-iff was given.
14605 if test "${enable_iff+set}" = set; then
14606   enableval=$enable_iff;
14607                           if test "$enableval" = yes; then
14608                             wx_cv_use_iff='wxUSE_IFF=yes'
14609                           else
14610                             wx_cv_use_iff='wxUSE_IFF=no'
14611                           fi
14612
14613 else
14614
14615                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14616
14617 fi
14618
14619
14620           eval "$wx_cv_use_iff"
14621
14622           if test x"$enablestring" = xdisable; then
14623             if test $wxUSE_IFF = no; then
14624               result=yes
14625             else
14626               result=no
14627             fi
14628           else
14629             result=$wxUSE_IFF
14630           fi
14631
14632           { echo "$as_me:$LINENO: result: $result" >&5
14633 echo "${ECHO_T}$result" >&6; }
14634
14635
14636           enablestring=
14637           defaultval=$wxUSE_ALL_FEATURES
14638           if test -z "$defaultval"; then
14639               if test x"$enablestring" = xdisable; then
14640                   defaultval=yes
14641               else
14642                   defaultval=no
14643               fi
14644           fi
14645
14646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14647 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14648           # Check whether --enable-pnm was given.
14649 if test "${enable_pnm+set}" = set; then
14650   enableval=$enable_pnm;
14651                           if test "$enableval" = yes; then
14652                             wx_cv_use_pnm='wxUSE_PNM=yes'
14653                           else
14654                             wx_cv_use_pnm='wxUSE_PNM=no'
14655                           fi
14656
14657 else
14658
14659                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14660
14661 fi
14662
14663
14664           eval "$wx_cv_use_pnm"
14665
14666           if test x"$enablestring" = xdisable; then
14667             if test $wxUSE_PNM = no; then
14668               result=yes
14669             else
14670               result=no
14671             fi
14672           else
14673             result=$wxUSE_PNM
14674           fi
14675
14676           { echo "$as_me:$LINENO: result: $result" >&5
14677 echo "${ECHO_T}$result" >&6; }
14678
14679
14680           enablestring=
14681           defaultval=$wxUSE_ALL_FEATURES
14682           if test -z "$defaultval"; then
14683               if test x"$enablestring" = xdisable; then
14684                   defaultval=yes
14685               else
14686                   defaultval=no
14687               fi
14688           fi
14689
14690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14691 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14692           # Check whether --enable-xpm was given.
14693 if test "${enable_xpm+set}" = set; then
14694   enableval=$enable_xpm;
14695                           if test "$enableval" = yes; then
14696                             wx_cv_use_xpm='wxUSE_XPM=yes'
14697                           else
14698                             wx_cv_use_xpm='wxUSE_XPM=no'
14699                           fi
14700
14701 else
14702
14703                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14704
14705 fi
14706
14707
14708           eval "$wx_cv_use_xpm"
14709
14710           if test x"$enablestring" = xdisable; then
14711             if test $wxUSE_XPM = no; then
14712               result=yes
14713             else
14714               result=no
14715             fi
14716           else
14717             result=$wxUSE_XPM
14718           fi
14719
14720           { echo "$as_me:$LINENO: result: $result" >&5
14721 echo "${ECHO_T}$result" >&6; }
14722
14723
14724           enablestring=
14725           defaultval=$wxUSE_ALL_FEATURES
14726           if test -z "$defaultval"; then
14727               if test x"$enablestring" = xdisable; then
14728                   defaultval=yes
14729               else
14730                   defaultval=no
14731               fi
14732           fi
14733
14734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14735 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14736           # Check whether --enable-ico_cur was given.
14737 if test "${enable_ico_cur+set}" = set; then
14738   enableval=$enable_ico_cur;
14739                           if test "$enableval" = yes; then
14740                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14741                           else
14742                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14743                           fi
14744
14745 else
14746
14747                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14748
14749 fi
14750
14751
14752           eval "$wx_cv_use_ico_cur"
14753
14754           if test x"$enablestring" = xdisable; then
14755             if test $wxUSE_ICO_CUR = no; then
14756               result=yes
14757             else
14758               result=no
14759             fi
14760           else
14761             result=$wxUSE_ICO_CUR
14762           fi
14763
14764           { echo "$as_me:$LINENO: result: $result" >&5
14765 echo "${ECHO_T}$result" >&6; }
14766
14767
14768
14769
14770           enablestring=
14771           defaultval=$wxUSE_ALL_FEATURES
14772           if test -z "$defaultval"; then
14773               if test x"$enablestring" = xdisable; then
14774                   defaultval=yes
14775               else
14776                   defaultval=no
14777               fi
14778           fi
14779
14780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14781 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14782           # Check whether --enable-dccache was given.
14783 if test "${enable_dccache+set}" = set; then
14784   enableval=$enable_dccache;
14785                           if test "$enableval" = yes; then
14786                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14787                           else
14788                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14789                           fi
14790
14791 else
14792
14793                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14794
14795 fi
14796
14797
14798           eval "$wx_cv_use_dccache"
14799
14800           if test x"$enablestring" = xdisable; then
14801             if test $wxUSE_DC_CACHEING = no; then
14802               result=yes
14803             else
14804               result=no
14805             fi
14806           else
14807             result=$wxUSE_DC_CACHEING
14808           fi
14809
14810           { echo "$as_me:$LINENO: result: $result" >&5
14811 echo "${ECHO_T}$result" >&6; }
14812
14813
14814           enablestring=
14815           defaultval=$wxUSE_ALL_FEATURES
14816           if test -z "$defaultval"; then
14817               if test x"$enablestring" = xdisable; then
14818                   defaultval=yes
14819               else
14820                   defaultval=no
14821               fi
14822           fi
14823
14824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14825 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14826           # Check whether --enable-ps-in-msw was given.
14827 if test "${enable_ps_in_msw+set}" = set; then
14828   enableval=$enable_ps_in_msw;
14829                           if test "$enableval" = yes; then
14830                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14831                           else
14832                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14833                           fi
14834
14835 else
14836
14837                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14838
14839 fi
14840
14841
14842           eval "$wx_cv_use_ps_in_msw"
14843
14844           if test x"$enablestring" = xdisable; then
14845             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14846               result=yes
14847             else
14848               result=no
14849             fi
14850           else
14851             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14852           fi
14853
14854           { echo "$as_me:$LINENO: result: $result" >&5
14855 echo "${ECHO_T}$result" >&6; }
14856
14857
14858           enablestring=
14859           defaultval=$wxUSE_ALL_FEATURES
14860           if test -z "$defaultval"; then
14861               if test x"$enablestring" = xdisable; then
14862                   defaultval=yes
14863               else
14864                   defaultval=no
14865               fi
14866           fi
14867
14868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14869 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14870           # Check whether --enable-ownerdrawn was given.
14871 if test "${enable_ownerdrawn+set}" = set; then
14872   enableval=$enable_ownerdrawn;
14873                           if test "$enableval" = yes; then
14874                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14875                           else
14876                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14877                           fi
14878
14879 else
14880
14881                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14882
14883 fi
14884
14885
14886           eval "$wx_cv_use_ownerdrawn"
14887
14888           if test x"$enablestring" = xdisable; then
14889             if test $wxUSE_OWNER_DRAWN = no; then
14890               result=yes
14891             else
14892               result=no
14893             fi
14894           else
14895             result=$wxUSE_OWNER_DRAWN
14896           fi
14897
14898           { echo "$as_me:$LINENO: result: $result" >&5
14899 echo "${ECHO_T}$result" >&6; }
14900
14901
14902           enablestring=
14903           defaultval=$wxUSE_ALL_FEATURES
14904           if test -z "$defaultval"; then
14905               if test x"$enablestring" = xdisable; then
14906                   defaultval=yes
14907               else
14908                   defaultval=no
14909               fi
14910           fi
14911
14912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14913 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14914           # Check whether --enable-uxtheme was given.
14915 if test "${enable_uxtheme+set}" = set; then
14916   enableval=$enable_uxtheme;
14917                           if test "$enableval" = yes; then
14918                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14919                           else
14920                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14921                           fi
14922
14923 else
14924
14925                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14926
14927 fi
14928
14929
14930           eval "$wx_cv_use_uxtheme"
14931
14932           if test x"$enablestring" = xdisable; then
14933             if test $wxUSE_UXTHEME = no; then
14934               result=yes
14935             else
14936               result=no
14937             fi
14938           else
14939             result=$wxUSE_UXTHEME
14940           fi
14941
14942           { echo "$as_me:$LINENO: result: $result" >&5
14943 echo "${ECHO_T}$result" >&6; }
14944
14945
14946           enablestring=
14947           defaultval=$wxUSE_ALL_FEATURES
14948           if test -z "$defaultval"; then
14949               if test x"$enablestring" = xdisable; then
14950                   defaultval=yes
14951               else
14952                   defaultval=no
14953               fi
14954           fi
14955
14956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14957 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14958           # Check whether --enable-wxdib was given.
14959 if test "${enable_wxdib+set}" = set; then
14960   enableval=$enable_wxdib;
14961                           if test "$enableval" = yes; then
14962                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14963                           else
14964                             wx_cv_use_wxdib='wxUSE_DIB=no'
14965                           fi
14966
14967 else
14968
14969                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14970
14971 fi
14972
14973
14974           eval "$wx_cv_use_wxdib"
14975
14976           if test x"$enablestring" = xdisable; then
14977             if test $wxUSE_DIB = no; then
14978               result=yes
14979             else
14980               result=no
14981             fi
14982           else
14983             result=$wxUSE_DIB
14984           fi
14985
14986           { echo "$as_me:$LINENO: result: $result" >&5
14987 echo "${ECHO_T}$result" >&6; }
14988
14989
14990           enablestring=
14991           defaultval=$wxUSE_ALL_FEATURES
14992           if test -z "$defaultval"; then
14993               if test x"$enablestring" = xdisable; then
14994                   defaultval=yes
14995               else
14996                   defaultval=no
14997               fi
14998           fi
14999
15000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
15001 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
15002           # Check whether --enable-webviewie was given.
15003 if test "${enable_webviewie+set}" = set; then
15004   enableval=$enable_webviewie;
15005                           if test "$enableval" = yes; then
15006                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
15007                           else
15008                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
15009                           fi
15010
15011 else
15012
15013                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
15014
15015 fi
15016
15017
15018           eval "$wx_cv_use_webviewie"
15019
15020           if test x"$enablestring" = xdisable; then
15021             if test $wxUSE_WEBVIEW_IE = no; then
15022               result=yes
15023             else
15024               result=no
15025             fi
15026           else
15027             result=$wxUSE_WEBVIEW_IE
15028           fi
15029
15030           { echo "$as_me:$LINENO: result: $result" >&5
15031 echo "${ECHO_T}$result" >&6; }
15032
15033
15034 if test "$wxUSE_MSW" != 1; then
15035     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
15036 fi
15037
15038
15039           enablestring=
15040           defaultval=$wxUSE_ALL_FEATURES
15041           if test -z "$defaultval"; then
15042               if test x"$enablestring" = xdisable; then
15043                   defaultval=yes
15044               else
15045                   defaultval=no
15046               fi
15047           fi
15048
15049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
15050 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
15051           # Check whether --enable-autoidman was given.
15052 if test "${enable_autoidman+set}" = set; then
15053   enableval=$enable_autoidman;
15054                           if test "$enableval" = yes; then
15055                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
15056                           else
15057                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
15058                           fi
15059
15060 else
15061
15062                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
15063
15064 fi
15065
15066
15067           eval "$wx_cv_use_autoidman"
15068
15069           if test x"$enablestring" = xdisable; then
15070             if test $wxUSE_AUTOID_MANAGEMENT = no; then
15071               result=yes
15072             else
15073               result=no
15074             fi
15075           else
15076             result=$wxUSE_AUTOID_MANAGEMENT
15077           fi
15078
15079           { echo "$as_me:$LINENO: result: $result" >&5
15080 echo "${ECHO_T}$result" >&6; }
15081
15082
15083 fi
15084
15085
15086 cat >confcache <<\_ACEOF
15087 # This file is a shell script that caches the results of configure
15088 # tests run on this system so they can be shared between configure
15089 # scripts and configure runs, see configure's option --config-cache.
15090 # It is not useful on other systems.  If it contains results you don't
15091 # want to keep, you may remove or edit it.
15092 #
15093 # config.status only pays attention to the cache file if you give it
15094 # the --recheck option to rerun configure.
15095 #
15096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15098 # following values.
15099
15100 _ACEOF
15101
15102 # The following way of writing the cache mishandles newlines in values,
15103 # but we know of no workaround that is simple, portable, and efficient.
15104 # So, we kill variables containing newlines.
15105 # Ultrix sh set writes to stderr and can't be redirected directly,
15106 # and sets the high bit in the cache file unless we assign to the vars.
15107 (
15108   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15109     eval ac_val=\$$ac_var
15110     case $ac_val in #(
15111     *${as_nl}*)
15112       case $ac_var in #(
15113       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15114 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15115       esac
15116       case $ac_var in #(
15117       _ | IFS | as_nl) ;; #(
15118       *) $as_unset $ac_var ;;
15119       esac ;;
15120     esac
15121   done
15122
15123   (set) 2>&1 |
15124     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15125     *${as_nl}ac_space=\ *)
15126       # `set' does not quote correctly, so add quotes (double-quote
15127       # substitution turns \\\\ into \\, and sed turns \\ into \).
15128       sed -n \
15129         "s/'/'\\\\''/g;
15130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15131       ;; #(
15132     *)
15133       # `set' quotes correctly as required by POSIX, so do not add quotes.
15134       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15135       ;;
15136     esac |
15137     sort
15138 ) |
15139   sed '
15140      /^ac_cv_env_/b end
15141      t clear
15142      :clear
15143      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15144      t end
15145      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15146      :end' >>confcache
15147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15148   if test -w "$cache_file"; then
15149     test "x$cache_file" != "x/dev/null" &&
15150       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15151 echo "$as_me: updating cache $cache_file" >&6;}
15152     cat confcache >$cache_file
15153   else
15154     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15155 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15156   fi
15157 fi
15158 rm -f confcache
15159
15160 CFLAGS=${CFLAGS:=}
15161 ac_ext=c
15162 ac_cpp='$CPP $CPPFLAGS'
15163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15166 if test -n "$ac_tool_prefix"; then
15167   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15171 if test "${ac_cv_prog_CC+set}" = set; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   if test -n "$CC"; then
15175   ac_cv_prog_CC="$CC" # Let the user override the test.
15176 else
15177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 for as_dir in $PATH
15179 do
15180   IFS=$as_save_IFS
15181   test -z "$as_dir" && as_dir=.
15182   for ac_exec_ext in '' $ac_executable_extensions; do
15183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15184     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15186     break 2
15187   fi
15188 done
15189 done
15190 IFS=$as_save_IFS
15191
15192 fi
15193 fi
15194 CC=$ac_cv_prog_CC
15195 if test -n "$CC"; then
15196   { echo "$as_me:$LINENO: result: $CC" >&5
15197 echo "${ECHO_T}$CC" >&6; }
15198 else
15199   { echo "$as_me:$LINENO: result: no" >&5
15200 echo "${ECHO_T}no" >&6; }
15201 fi
15202
15203
15204 fi
15205 if test -z "$ac_cv_prog_CC"; then
15206   ac_ct_CC=$CC
15207   # Extract the first word of "gcc", so it can be a program name with args.
15208 set dummy gcc; ac_word=$2
15209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   if test -n "$ac_ct_CC"; then
15215   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15216 else
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $PATH
15219 do
15220   IFS=$as_save_IFS
15221   test -z "$as_dir" && as_dir=.
15222   for ac_exec_ext in '' $ac_executable_extensions; do
15223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15224     ac_cv_prog_ac_ct_CC="gcc"
15225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15226     break 2
15227   fi
15228 done
15229 done
15230 IFS=$as_save_IFS
15231
15232 fi
15233 fi
15234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15235 if test -n "$ac_ct_CC"; then
15236   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15237 echo "${ECHO_T}$ac_ct_CC" >&6; }
15238 else
15239   { echo "$as_me:$LINENO: result: no" >&5
15240 echo "${ECHO_T}no" >&6; }
15241 fi
15242
15243   if test "x$ac_ct_CC" = x; then
15244     CC=""
15245   else
15246     case $cross_compiling:$ac_tool_warned in
15247 yes:)
15248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15249 whose name does not start with the host triplet.  If you think this
15250 configuration is useful to you, please write to autoconf@gnu.org." >&5
15251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15252 whose name does not start with the host triplet.  If you think this
15253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15254 ac_tool_warned=yes ;;
15255 esac
15256     CC=$ac_ct_CC
15257   fi
15258 else
15259   CC="$ac_cv_prog_CC"
15260 fi
15261
15262 if test -z "$CC"; then
15263           if test -n "$ac_tool_prefix"; then
15264     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15265 set dummy ${ac_tool_prefix}cc; ac_word=$2
15266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15268 if test "${ac_cv_prog_CC+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   if test -n "$CC"; then
15272   ac_cv_prog_CC="$CC" # Let the user override the test.
15273 else
15274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15275 for as_dir in $PATH
15276 do
15277   IFS=$as_save_IFS
15278   test -z "$as_dir" && as_dir=.
15279   for ac_exec_ext in '' $ac_executable_extensions; do
15280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15281     ac_cv_prog_CC="${ac_tool_prefix}cc"
15282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15283     break 2
15284   fi
15285 done
15286 done
15287 IFS=$as_save_IFS
15288
15289 fi
15290 fi
15291 CC=$ac_cv_prog_CC
15292 if test -n "$CC"; then
15293   { echo "$as_me:$LINENO: result: $CC" >&5
15294 echo "${ECHO_T}$CC" >&6; }
15295 else
15296   { echo "$as_me:$LINENO: result: no" >&5
15297 echo "${ECHO_T}no" >&6; }
15298 fi
15299
15300
15301   fi
15302 fi
15303 if test -z "$CC"; then
15304   # Extract the first word of "cc", so it can be a program name with args.
15305 set dummy cc; ac_word=$2
15306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15308 if test "${ac_cv_prog_CC+set}" = set; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   if test -n "$CC"; then
15312   ac_cv_prog_CC="$CC" # Let the user override the test.
15313 else
15314   ac_prog_rejected=no
15315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15316 for as_dir in $PATH
15317 do
15318   IFS=$as_save_IFS
15319   test -z "$as_dir" && as_dir=.
15320   for ac_exec_ext in '' $ac_executable_extensions; do
15321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15322     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15323        ac_prog_rejected=yes
15324        continue
15325      fi
15326     ac_cv_prog_CC="cc"
15327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15328     break 2
15329   fi
15330 done
15331 done
15332 IFS=$as_save_IFS
15333
15334 if test $ac_prog_rejected = yes; then
15335   # We found a bogon in the path, so make sure we never use it.
15336   set dummy $ac_cv_prog_CC
15337   shift
15338   if test $# != 0; then
15339     # We chose a different compiler from the bogus one.
15340     # However, it has the same basename, so the bogon will be chosen
15341     # first if we set CC to just the basename; use the full file name.
15342     shift
15343     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15344   fi
15345 fi
15346 fi
15347 fi
15348 CC=$ac_cv_prog_CC
15349 if test -n "$CC"; then
15350   { echo "$as_me:$LINENO: result: $CC" >&5
15351 echo "${ECHO_T}$CC" >&6; }
15352 else
15353   { echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6; }
15355 fi
15356
15357
15358 fi
15359 if test -z "$CC"; then
15360   if test -n "$ac_tool_prefix"; then
15361   for ac_prog in cl.exe
15362   do
15363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15367 if test "${ac_cv_prog_CC+set}" = set; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   if test -n "$CC"; then
15371   ac_cv_prog_CC="$CC" # Let the user override the test.
15372 else
15373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374 for as_dir in $PATH
15375 do
15376   IFS=$as_save_IFS
15377   test -z "$as_dir" && as_dir=.
15378   for ac_exec_ext in '' $ac_executable_extensions; do
15379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15380     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15382     break 2
15383   fi
15384 done
15385 done
15386 IFS=$as_save_IFS
15387
15388 fi
15389 fi
15390 CC=$ac_cv_prog_CC
15391 if test -n "$CC"; then
15392   { echo "$as_me:$LINENO: result: $CC" >&5
15393 echo "${ECHO_T}$CC" >&6; }
15394 else
15395   { echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6; }
15397 fi
15398
15399
15400     test -n "$CC" && break
15401   done
15402 fi
15403 if test -z "$CC"; then
15404   ac_ct_CC=$CC
15405   for ac_prog in cl.exe
15406 do
15407   # Extract the first word of "$ac_prog", so it can be a program name with args.
15408 set dummy $ac_prog; ac_word=$2
15409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15412   echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414   if test -n "$ac_ct_CC"; then
15415   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15416 else
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15419 do
15420   IFS=$as_save_IFS
15421   test -z "$as_dir" && as_dir=.
15422   for ac_exec_ext in '' $ac_executable_extensions; do
15423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15424     ac_cv_prog_ac_ct_CC="$ac_prog"
15425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15426     break 2
15427   fi
15428 done
15429 done
15430 IFS=$as_save_IFS
15431
15432 fi
15433 fi
15434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15435 if test -n "$ac_ct_CC"; then
15436   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15437 echo "${ECHO_T}$ac_ct_CC" >&6; }
15438 else
15439   { echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6; }
15441 fi
15442
15443
15444   test -n "$ac_ct_CC" && break
15445 done
15446
15447   if test "x$ac_ct_CC" = x; then
15448     CC=""
15449   else
15450     case $cross_compiling:$ac_tool_warned in
15451 yes:)
15452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15453 whose name does not start with the host triplet.  If you think this
15454 configuration is useful to you, please write to autoconf@gnu.org." >&5
15455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15456 whose name does not start with the host triplet.  If you think this
15457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15458 ac_tool_warned=yes ;;
15459 esac
15460     CC=$ac_ct_CC
15461   fi
15462 fi
15463
15464 fi
15465
15466
15467 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15468 See \`config.log' for more details." >&5
15469 echo "$as_me: error: no acceptable C compiler found in \$PATH
15470 See \`config.log' for more details." >&2;}
15471    { (exit 1); exit 1; }; }
15472
15473 # Provide some information about the compiler.
15474 echo "$as_me:$LINENO: checking for C compiler version" >&5
15475 ac_compiler=`set X $ac_compile; echo $2`
15476 { (ac_try="$ac_compiler --version >&5"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_compiler --version >&5") 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }
15486 { (ac_try="$ac_compiler -v >&5"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_compiler -v >&5") 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }
15496 { (ac_try="$ac_compiler -V >&5"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_compiler -V >&5") 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }
15506
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513
15514 int
15515 main ()
15516 {
15517
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 ac_clean_files_save=$ac_clean_files
15523 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15524 # Try to create an executable without -o first, disregard a.out.
15525 # It will help us diagnose broken compilers, and finding out an intuition
15526 # of exeext.
15527 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15528 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15529 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15530 #
15531 # List of possible output files, starting from the most likely.
15532 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15533 # only as a last resort.  b.out is created by i960 compilers.
15534 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15535 #
15536 # The IRIX 6 linker writes into existing files which may not be
15537 # executable, retaining their permissions.  Remove them first so a
15538 # subsequent execution test works.
15539 ac_rmfiles=
15540 for ac_file in $ac_files
15541 do
15542   case $ac_file in
15543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15544     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15545   esac
15546 done
15547 rm -f $ac_rmfiles
15548
15549 if { (ac_try="$ac_link_default"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_link_default") 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; then
15559   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15561 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15562 # so that the user can short-circuit this test for compilers unknown to
15563 # Autoconf.
15564 for ac_file in $ac_files ''
15565 do
15566   test -f "$ac_file" || continue
15567   case $ac_file in
15568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15569         ;;
15570     [ab].out )
15571         # We found the default executable, but exeext='' is most
15572         # certainly right.
15573         break;;
15574     *.* )
15575         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15576         then :; else
15577            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15578         fi
15579         # We set ac_cv_exeext here because the later test for it is not
15580         # safe: cross compilers may not add the suffix if given an `-o'
15581         # argument, so we may need to know it at that point already.
15582         # Even if this section looks crufty: it has the advantage of
15583         # actually working.
15584         break;;
15585     * )
15586         break;;
15587   esac
15588 done
15589 test "$ac_cv_exeext" = no && ac_cv_exeext=
15590
15591 else
15592   ac_file=''
15593 fi
15594
15595 { echo "$as_me:$LINENO: result: $ac_file" >&5
15596 echo "${ECHO_T}$ac_file" >&6; }
15597 if test -z "$ac_file"; then
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15602 See \`config.log' for more details." >&5
15603 echo "$as_me: error: C compiler cannot create executables
15604 See \`config.log' for more details." >&2;}
15605    { (exit 77); exit 77; }; }
15606 fi
15607
15608 ac_exeext=$ac_cv_exeext
15609
15610 # Check that the compiler produces executables we can run.  If not, either
15611 # the compiler is broken, or we cross compile.
15612 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15613 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15614 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15615 # If not cross compiling, check that we can run a simple program.
15616 if test "$cross_compiling" != yes; then
15617   if { ac_try='./$ac_file'
15618   { (case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_try") 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }; then
15627     cross_compiling=no
15628   else
15629     if test "$cross_compiling" = maybe; then
15630         cross_compiling=yes
15631     else
15632         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15633 If you meant to cross compile, use \`--host'.
15634 See \`config.log' for more details." >&5
15635 echo "$as_me: error: cannot run C compiled programs.
15636 If you meant to cross compile, use \`--host'.
15637 See \`config.log' for more details." >&2;}
15638    { (exit 1); exit 1; }; }
15639     fi
15640   fi
15641 fi
15642 { echo "$as_me:$LINENO: result: yes" >&5
15643 echo "${ECHO_T}yes" >&6; }
15644
15645 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15646 ac_clean_files=$ac_clean_files_save
15647 # Check that the compiler produces executables we can run.  If not, either
15648 # the compiler is broken, or we cross compile.
15649 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15650 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15651 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15652 echo "${ECHO_T}$cross_compiling" >&6; }
15653
15654 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15655 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662   (eval "$ac_link") 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; then
15666   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15667 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15668 # work properly (i.e., refer to `conftest.exe'), while it won't with
15669 # `rm'.
15670 for ac_file in conftest.exe conftest conftest.*; do
15671   test -f "$ac_file" || continue
15672   case $ac_file in
15673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15674     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15675           break;;
15676     * ) break;;
15677   esac
15678 done
15679 else
15680   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15681 See \`config.log' for more details." >&5
15682 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15683 See \`config.log' for more details." >&2;}
15684    { (exit 1); exit 1; }; }
15685 fi
15686
15687 rm -f conftest$ac_cv_exeext
15688 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15689 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15690
15691 rm -f conftest.$ac_ext
15692 EXEEXT=$ac_cv_exeext
15693 ac_exeext=$EXEEXT
15694 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15695 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15696 if test "${ac_cv_objext+set}" = set; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h.  */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h.  */
15705
15706 int
15707 main ()
15708 {
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.o conftest.obj
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_compile") 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; then
15725   for ac_file in conftest.o conftest.obj conftest.*; do
15726   test -f "$ac_file" || continue;
15727   case $ac_file in
15728     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15729     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15730        break;;
15731   esac
15732 done
15733 else
15734   echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15738 See \`config.log' for more details." >&5
15739 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15740 See \`config.log' for more details." >&2;}
15741    { (exit 1); exit 1; }; }
15742 fi
15743
15744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15745 fi
15746 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15747 echo "${ECHO_T}$ac_cv_objext" >&6; }
15748 OBJEXT=$ac_cv_objext
15749 ac_objext=$OBJEXT
15750 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15751 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15752 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761
15762 int
15763 main ()
15764 {
15765 #ifndef __GNUC__
15766        choke me
15767 #endif
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (ac_try="$ac_compile"
15775 case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_compile") 2>conftest.er1
15781   ac_status=$?
15782   grep -v '^ *+' conftest.er1 >conftest.err
15783   rm -f conftest.er1
15784   cat conftest.err >&5
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } && {
15787          test -z "$ac_c_werror_flag" ||
15788          test ! -s conftest.err
15789        } && test -s conftest.$ac_objext; then
15790   ac_compiler_gnu=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795         ac_compiler_gnu=no
15796 fi
15797
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15800
15801 fi
15802 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15804 GCC=`test $ac_compiler_gnu = yes && echo yes`
15805 ac_test_CFLAGS=${CFLAGS+set}
15806 ac_save_CFLAGS=$CFLAGS
15807 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15808 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15809 if test "${ac_cv_prog_cc_g+set}" = set; then
15810   echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812   ac_save_c_werror_flag=$ac_c_werror_flag
15813    ac_c_werror_flag=yes
15814    ac_cv_prog_cc_g=no
15815    CFLAGS="-g"
15816    cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822
15823 int
15824 main ()
15825 {
15826
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_compile") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && {
15845          test -z "$ac_c_werror_flag" ||
15846          test ! -s conftest.err
15847        } && test -s conftest.$ac_objext; then
15848   ac_cv_prog_cc_g=yes
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         CFLAGS=""
15854       cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860
15861 int
15862 main ()
15863 {
15864
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (ac_try="$ac_compile"
15871 case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_compile") 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } && {
15883          test -z "$ac_c_werror_flag" ||
15884          test ! -s conftest.err
15885        } && test -s conftest.$ac_objext; then
15886   :
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891         ac_c_werror_flag=$ac_save_c_werror_flag
15892          CFLAGS="-g"
15893          cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899
15900 int
15901 main ()
15902 {
15903
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (ac_try="$ac_compile"
15910 case "(($ac_try" in
15911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912   *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915   (eval "$ac_compile") 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } && {
15922          test -z "$ac_c_werror_flag" ||
15923          test ! -s conftest.err
15924        } && test -s conftest.$ac_objext; then
15925   ac_cv_prog_cc_g=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930
15931 fi
15932
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 fi
15938
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940    ac_c_werror_flag=$ac_save_c_werror_flag
15941 fi
15942 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15944 if test "$ac_test_CFLAGS" = set; then
15945   CFLAGS=$ac_save_CFLAGS
15946 elif test $ac_cv_prog_cc_g = yes; then
15947   if test "$GCC" = yes; then
15948     CFLAGS="-g -O2"
15949   else
15950     CFLAGS="-g"
15951   fi
15952 else
15953   if test "$GCC" = yes; then
15954     CFLAGS="-O2"
15955   else
15956     CFLAGS=
15957   fi
15958 fi
15959 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15960 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15961 if test "${ac_cv_prog_cc_c89+set}" = set; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964   ac_cv_prog_cc_c89=no
15965 ac_save_CC=$CC
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h.  */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h.  */
15972 #include <stdarg.h>
15973 #include <stdio.h>
15974 #include <sys/types.h>
15975 #include <sys/stat.h>
15976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15977 struct buf { int x; };
15978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15979 static char *e (p, i)
15980      char **p;
15981      int i;
15982 {
15983   return p[i];
15984 }
15985 static char *f (char * (*g) (char **, int), char **p, ...)
15986 {
15987   char *s;
15988   va_list v;
15989   va_start (v,p);
15990   s = g (p, va_arg (v,int));
15991   va_end (v);
15992   return s;
15993 }
15994
15995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15996    function prototypes and stuff, but not '\xHH' hex character constants.
15997    These don't provoke an error unfortunately, instead are silently treated
15998    as 'x'.  The following induces an error, until -std is added to get
15999    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16000    array size at least.  It's necessary to write '\x00'==0 to get something
16001    that's true only with -std.  */
16002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16003
16004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16005    inside strings and character constants.  */
16006 #define FOO(x) 'x'
16007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16008
16009 int test (int i, double x);
16010 struct s1 {int (*f) (int a);};
16011 struct s2 {int (*f) (double a);};
16012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16013 int argc;
16014 char **argv;
16015 int
16016 main ()
16017 {
16018 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16024         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16025 do
16026   CC="$ac_save_CC $ac_arg"
16027   rm -f conftest.$ac_objext
16028 if { (ac_try="$ac_compile"
16029 case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_compile") 2>conftest.er1
16035   ac_status=$?
16036   grep -v '^ *+' conftest.er1 >conftest.err
16037   rm -f conftest.er1
16038   cat conftest.err >&5
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); } && {
16041          test -z "$ac_c_werror_flag" ||
16042          test ! -s conftest.err
16043        } && test -s conftest.$ac_objext; then
16044   ac_cv_prog_cc_c89=$ac_arg
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049
16050 fi
16051
16052 rm -f core conftest.err conftest.$ac_objext
16053   test "x$ac_cv_prog_cc_c89" != "xno" && break
16054 done
16055 rm -f conftest.$ac_ext
16056 CC=$ac_save_CC
16057
16058 fi
16059 # AC_CACHE_VAL
16060 case "x$ac_cv_prog_cc_c89" in
16061   x)
16062     { echo "$as_me:$LINENO: result: none needed" >&5
16063 echo "${ECHO_T}none needed" >&6; } ;;
16064   xno)
16065     { echo "$as_me:$LINENO: result: unsupported" >&5
16066 echo "${ECHO_T}unsupported" >&6; } ;;
16067   *)
16068     CC="$CC $ac_cv_prog_cc_c89"
16069     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16070 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16071 esac
16072
16073
16074 ac_ext=c
16075 ac_cpp='$CPP $CPPFLAGS'
16076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16079
16080
16081
16082
16083
16084
16085
16086
16087     ac_ext=c
16088 ac_cpp='$CPP $CPPFLAGS'
16089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16092
16093     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16094 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16095 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104
16105 int
16106 main ()
16107 {
16108
16109              #ifndef __INTEL_COMPILER
16110                 choke me
16111              #endif
16112
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_compile") 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } && {
16131          test -z "$ac_c_werror_flag" ||
16132          test ! -s conftest.err
16133        } && test -s conftest.$ac_objext; then
16134   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         bakefile_cv_c_compiler___INTEL_COMPILER=no
16140
16141 fi
16142
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144
16145
16146 fi
16147 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16148 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16149     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16150         :; INTELCC=yes
16151     else
16152         :;
16153     fi
16154     ac_ext=c
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16159
16160
16161
16162
16163         if test "$INTELCC" = "yes"; then
16164
16165
16166     ac_ext=c
16167 ac_cpp='$CPP $CPPFLAGS'
16168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16171
16172     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16173 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16174 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177   cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183
16184 int
16185 main ()
16186 {
16187
16188              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16189                 choke me
16190              #endif
16191
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_compile") 2>conftest.er1
16204   ac_status=$?
16205   grep -v '^ *+' conftest.er1 >conftest.err
16206   rm -f conftest.er1
16207   cat conftest.err >&5
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } && {
16210          test -z "$ac_c_werror_flag" ||
16211          test ! -s conftest.err
16212        } && test -s conftest.$ac_objext; then
16213   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16219
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223
16224
16225 fi
16226 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16227 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16228     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16229         :; INTELCC8=yes
16230     else
16231         :;
16232     fi
16233     ac_ext=c
16234 ac_cpp='$CPP $CPPFLAGS'
16235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16238
16239
16240
16241
16242
16243     ac_ext=c
16244 ac_cpp='$CPP $CPPFLAGS'
16245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16248
16249     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16250 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16251 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260
16261 int
16262 main ()
16263 {
16264
16265              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16266                 choke me
16267              #endif
16268
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest.$ac_objext
16274 if { (ac_try="$ac_compile"
16275 case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_compile") 2>conftest.er1
16281   ac_status=$?
16282   grep -v '^ *+' conftest.er1 >conftest.err
16283   rm -f conftest.er1
16284   cat conftest.err >&5
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } && {
16287          test -z "$ac_c_werror_flag" ||
16288          test ! -s conftest.err
16289        } && test -s conftest.$ac_objext; then
16290   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16291 else
16292   echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16296
16297 fi
16298
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300
16301
16302 fi
16303 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16304 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16305     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16306         :; INTELCC10=yes
16307     else
16308         :;
16309     fi
16310     ac_ext=c
16311 ac_cpp='$CPP $CPPFLAGS'
16312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16315
16316
16317
16318     fi
16319
16320         if test "x$GCC" != "xyes"; then
16321         if test "xCC" = "xC"; then
16322             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16323 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16324 if test "${bakefile_cv_c_exto+set}" = set; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333
16334 int
16335 main ()
16336 {
16337
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest.$ac_ext.o
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344   (eval $ac_compile) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; then
16348   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16349     case $ac_file in
16350         conftest.$ac_ext.o)
16351             bakefile_cv_c_exto="-ext o"
16352             ;;
16353         *)
16354             ;;
16355     esac
16356 done
16357 else
16358   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16359 See \`config.log' for more details." >&5
16360 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16361 See \`config.log' for more details." >&2;}
16362    { (exit 1); exit 1; }; }
16363
16364 fi
16365
16366 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16367
16368 fi
16369 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16370 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16371 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16372     if test "c" = "c"; then
16373         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16374     fi
16375     if test "c" = "cxx"; then
16376         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16377     fi
16378 fi
16379
16380             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16381                 unset ac_cv_prog_cc_g
16382                 ac_test_CFLAGS=${CFLAGS+set}
16383 ac_save_CFLAGS=$CFLAGS
16384 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16385 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16386 if test "${ac_cv_prog_cc_g+set}" = set; then
16387   echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389   ac_save_c_werror_flag=$ac_c_werror_flag
16390    ac_c_werror_flag=yes
16391    ac_cv_prog_cc_g=no
16392    CFLAGS="-g"
16393    cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399
16400 int
16401 main ()
16402 {
16403
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_compile") 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } && {
16422          test -z "$ac_c_werror_flag" ||
16423          test ! -s conftest.err
16424        } && test -s conftest.$ac_objext; then
16425   ac_cv_prog_cc_g=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         CFLAGS=""
16431       cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437
16438 int
16439 main ()
16440 {
16441
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext
16447 if { (ac_try="$ac_compile"
16448 case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_compile") 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } && {
16460          test -z "$ac_c_werror_flag" ||
16461          test ! -s conftest.err
16462        } && test -s conftest.$ac_objext; then
16463   :
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468         ac_c_werror_flag=$ac_save_c_werror_flag
16469          CFLAGS="-g"
16470          cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476
16477 int
16478 main ()
16479 {
16480
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_c_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest.$ac_objext; then
16502   ac_cv_prog_cc_g=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517    ac_c_werror_flag=$ac_save_c_werror_flag
16518 fi
16519 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16520 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16521 if test "$ac_test_CFLAGS" = set; then
16522   CFLAGS=$ac_save_CFLAGS
16523 elif test $ac_cv_prog_cc_g = yes; then
16524   if test "$GCC" = yes; then
16525     CFLAGS="-g -O2"
16526   else
16527     CFLAGS="-g"
16528   fi
16529 else
16530   if test "$GCC" = yes; then
16531     CFLAGS="-O2"
16532   else
16533     CFLAGS=
16534   fi
16535 fi
16536             fi
16537         fi
16538
16539                         case `uname -s` in
16540             AIX*)
16541
16542
16543     ac_ext=c
16544 ac_cpp='$CPP $CPPFLAGS'
16545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16548
16549     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16550 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16551 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560
16561 int
16562 main ()
16563 {
16564
16565              #ifndef __xlC__
16566                 choke me
16567              #endif
16568
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext
16574 if { (ac_try="$ac_compile"
16575 case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_compile") 2>conftest.er1
16581   ac_status=$?
16582   grep -v '^ *+' conftest.er1 >conftest.err
16583   rm -f conftest.er1
16584   cat conftest.err >&5
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); } && {
16587          test -z "$ac_c_werror_flag" ||
16588          test ! -s conftest.err
16589        } && test -s conftest.$ac_objext; then
16590   bakefile_cv_c_compiler___xlC__=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595         bakefile_cv_c_compiler___xlC__=no
16596
16597 fi
16598
16599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600
16601
16602 fi
16603 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16604 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16605     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16606         :; XLCC=yes
16607     else
16608         :;
16609     fi
16610     ac_ext=c
16611 ac_cpp='$CPP $CPPFLAGS'
16612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16615
16616
16617
16618                 ;;
16619
16620             Darwin)
16621
16622
16623     ac_ext=c
16624 ac_cpp='$CPP $CPPFLAGS'
16625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16628
16629     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16630 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16631 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640
16641 int
16642 main ()
16643 {
16644
16645              #ifndef __MWERKS__
16646                 choke me
16647              #endif
16648
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (ac_try="$ac_compile"
16655 case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_compile") 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } && {
16667          test -z "$ac_c_werror_flag" ||
16668          test ! -s conftest.err
16669        } && test -s conftest.$ac_objext; then
16670   bakefile_cv_c_compiler___MWERKS__=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675         bakefile_cv_c_compiler___MWERKS__=no
16676
16677 fi
16678
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680
16681
16682 fi
16683 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16684 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16685     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16686         :; MWCC=yes
16687     else
16688         :;
16689     fi
16690     ac_ext=c
16691 ac_cpp='$CPP $CPPFLAGS'
16692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16695
16696
16697
16698                 if test "$MWCC" != "yes"; then
16699
16700
16701     ac_ext=c
16702 ac_cpp='$CPP $CPPFLAGS'
16703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16706
16707     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16708 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16709 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h.  */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h.  */
16718
16719 int
16720 main ()
16721 {
16722
16723              #ifndef __xlC__
16724                 choke me
16725              #endif
16726
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_c_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   bakefile_cv_c_compiler___xlC__=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         bakefile_cv_c_compiler___xlC__=no
16754
16755 fi
16756
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758
16759
16760 fi
16761 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16762 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16763     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16764         :; XLCC=yes
16765     else
16766         :;
16767     fi
16768     ac_ext=c
16769 ac_cpp='$CPP $CPPFLAGS'
16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773
16774
16775
16776                 fi
16777                 ;;
16778
16779             IRIX*)
16780
16781
16782     ac_ext=c
16783 ac_cpp='$CPP $CPPFLAGS'
16784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16787
16788     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16789 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16790 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799
16800 int
16801 main ()
16802 {
16803
16804              #ifndef _SGI_COMPILER_VERSION
16805                 choke me
16806              #endif
16807
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (ac_try="$ac_compile"
16814 case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_compile") 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } && {
16826          test -z "$ac_c_werror_flag" ||
16827          test ! -s conftest.err
16828        } && test -s conftest.$ac_objext; then
16829   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16835
16836 fi
16837
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839
16840
16841 fi
16842 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16843 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16844     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16845         :; SGICC=yes
16846     else
16847         :;
16848     fi
16849     ac_ext=c
16850 ac_cpp='$CPP $CPPFLAGS'
16851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16854
16855
16856
16857                 ;;
16858
16859             Linux*)
16860                                                 if test "$INTELCC" != "yes"; then
16861
16862
16863     ac_ext=c
16864 ac_cpp='$CPP $CPPFLAGS'
16865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16868
16869     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16870 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16871 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880
16881 int
16882 main ()
16883 {
16884
16885              #ifndef __SUNPRO_C
16886                 choke me
16887              #endif
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_compile") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_c_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest.$ac_objext; then
16910   bakefile_cv_c_compiler___SUNPRO_C=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         bakefile_cv_c_compiler___SUNPRO_C=no
16916
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920
16921
16922 fi
16923 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16924 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16925     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16926         :; SUNCC=yes
16927     else
16928         :;
16929     fi
16930     ac_ext=c
16931 ac_cpp='$CPP $CPPFLAGS'
16932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16935
16936
16937
16938                 fi
16939                 ;;
16940
16941             HP-UX*)
16942
16943
16944     ac_ext=c
16945 ac_cpp='$CPP $CPPFLAGS'
16946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16949
16950     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16951 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16952 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 int
16963 main ()
16964 {
16965
16966              #ifndef __HP_cc
16967                 choke me
16968              #endif
16969
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_compile") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } && {
16988          test -z "$ac_c_werror_flag" ||
16989          test ! -s conftest.err
16990        } && test -s conftest.$ac_objext; then
16991   bakefile_cv_c_compiler___HP_cc=yes
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996         bakefile_cv_c_compiler___HP_cc=no
16997
16998 fi
16999
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001
17002
17003 fi
17004 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17005 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17006     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17007         :; HPCC=yes
17008     else
17009         :;
17010     fi
17011     ac_ext=c
17012 ac_cpp='$CPP $CPPFLAGS'
17013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17016
17017
17018
17019                 ;;
17020
17021             OSF1)
17022
17023
17024     ac_ext=c
17025 ac_cpp='$CPP $CPPFLAGS'
17026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17029
17030     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17031 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17032 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041
17042 int
17043 main ()
17044 {
17045
17046              #ifndef __DECC
17047                 choke me
17048              #endif
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_compile") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } && {
17068          test -z "$ac_c_werror_flag" ||
17069          test ! -s conftest.err
17070        } && test -s conftest.$ac_objext; then
17071   bakefile_cv_c_compiler___DECC=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         bakefile_cv_c_compiler___DECC=no
17077
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081
17082
17083 fi
17084 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17085 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17086     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17087         :; COMPAQCC=yes
17088     else
17089         :;
17090     fi
17091     ac_ext=c
17092 ac_cpp='$CPP $CPPFLAGS'
17093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17096
17097
17098
17099                 ;;
17100
17101             SunOS)
17102
17103
17104     ac_ext=c
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109
17110     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17111 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17112 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17113   echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115   cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h.  */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h.  */
17121
17122 int
17123 main ()
17124 {
17125
17126              #ifndef __SUNPRO_C
17127                 choke me
17128              #endif
17129
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext
17135 if { (ac_try="$ac_compile"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_compile") 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } && {
17148          test -z "$ac_c_werror_flag" ||
17149          test ! -s conftest.err
17150        } && test -s conftest.$ac_objext; then
17151   bakefile_cv_c_compiler___SUNPRO_C=yes
17152 else
17153   echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156         bakefile_cv_c_compiler___SUNPRO_C=no
17157
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161
17162
17163 fi
17164 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17165 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17166     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17167         :; SUNCC=yes
17168     else
17169         :;
17170     fi
17171     ac_ext=c
17172 ac_cpp='$CPP $CPPFLAGS'
17173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17176
17177
17178
17179                 ;;
17180         esac
17181     fi
17182
17183
17184
17185 ac_ext=c
17186 ac_cpp='$CPP $CPPFLAGS'
17187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17190 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17191 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17192 # On Suns, sometimes $CPP names a directory.
17193 if test -n "$CPP" && test -d "$CPP"; then
17194   CPP=
17195 fi
17196 if test -z "$CPP"; then
17197   if test "${ac_cv_prog_CPP+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200       # Double quotes because CPP needs to be expanded
17201     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17202     do
17203       ac_preproc_ok=false
17204 for ac_c_preproc_warn_flag in '' yes
17205 do
17206   # Use a header file that comes with gcc, so configuring glibc
17207   # with a fresh cross-compiler works.
17208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209   # <limits.h> exists even on freestanding compilers.
17210   # On the NeXT, cc -E runs the code through the compiler's parser,
17211   # not just through cpp. "Syntax error" is here to catch this case.
17212   cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218 #ifdef __STDC__
17219 # include <limits.h>
17220 #else
17221 # include <assert.h>
17222 #endif
17223                      Syntax error
17224 _ACEOF
17225 if { (ac_try="$ac_cpp conftest.$ac_ext"
17226 case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } >/dev/null && {
17238          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17239          test ! -s conftest.err
17240        }; then
17241   :
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246   # Broken: fails on valid input.
17247 continue
17248 fi
17249
17250 rm -f conftest.err conftest.$ac_ext
17251
17252   # OK, works on sane cases.  Now check whether nonexistent headers
17253   # can be detected and how.
17254   cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 #include <ac_nonexistent.h>
17261 _ACEOF
17262 if { (ac_try="$ac_cpp conftest.$ac_ext"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } >/dev/null && {
17275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        }; then
17278   # Broken: success on invalid input.
17279 continue
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284   # Passes both tests.
17285 ac_preproc_ok=:
17286 break
17287 fi
17288
17289 rm -f conftest.err conftest.$ac_ext
17290
17291 done
17292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17293 rm -f conftest.err conftest.$ac_ext
17294 if $ac_preproc_ok; then
17295   break
17296 fi
17297
17298     done
17299     ac_cv_prog_CPP=$CPP
17300
17301 fi
17302   CPP=$ac_cv_prog_CPP
17303 else
17304   ac_cv_prog_CPP=$CPP
17305 fi
17306 { echo "$as_me:$LINENO: result: $CPP" >&5
17307 echo "${ECHO_T}$CPP" >&6; }
17308 ac_preproc_ok=false
17309 for ac_c_preproc_warn_flag in '' yes
17310 do
17311   # Use a header file that comes with gcc, so configuring glibc
17312   # with a fresh cross-compiler works.
17313   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314   # <limits.h> exists even on freestanding compilers.
17315   # On the NeXT, cc -E runs the code through the compiler's parser,
17316   # not just through cpp. "Syntax error" is here to catch this case.
17317   cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17328                      Syntax error
17329 _ACEOF
17330 if { (ac_try="$ac_cpp conftest.$ac_ext"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } >/dev/null && {
17343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        }; then
17346   :
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351   # Broken: fails on valid input.
17352 continue
17353 fi
17354
17355 rm -f conftest.err conftest.$ac_ext
17356
17357   # OK, works on sane cases.  Now check whether nonexistent headers
17358   # can be detected and how.
17359   cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 #include <ac_nonexistent.h>
17366 _ACEOF
17367 if { (ac_try="$ac_cpp conftest.$ac_ext"
17368 case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } >/dev/null && {
17380          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17381          test ! -s conftest.err
17382        }; then
17383   # Broken: success on invalid input.
17384 continue
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389   # Passes both tests.
17390 ac_preproc_ok=:
17391 break
17392 fi
17393
17394 rm -f conftest.err conftest.$ac_ext
17395
17396 done
17397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17398 rm -f conftest.err conftest.$ac_ext
17399 if $ac_preproc_ok; then
17400   :
17401 else
17402   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17403 See \`config.log' for more details." >&5
17404 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17405 See \`config.log' for more details." >&2;}
17406    { (exit 1); exit 1; }; }
17407 fi
17408
17409 ac_ext=c
17410 ac_cpp='$CPP $CPPFLAGS'
17411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17414
17415
17416 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17417 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17418 if test "${ac_cv_path_GREP+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   # Extract the first word of "grep ggrep" to use in msg output
17422 if test -z "$GREP"; then
17423 set dummy grep ggrep; ac_prog_name=$2
17424 if test "${ac_cv_path_GREP+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   ac_path_GREP_found=false
17428 # Loop through the user's path and test for each of PROGNAME-LIST
17429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17431 do
17432   IFS=$as_save_IFS
17433   test -z "$as_dir" && as_dir=.
17434   for ac_prog in grep ggrep; do
17435   for ac_exec_ext in '' $ac_executable_extensions; do
17436     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17437     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17438     # Check for GNU ac_path_GREP and select it if it is found.
17439   # Check for GNU $ac_path_GREP
17440 case `"$ac_path_GREP" --version 2>&1` in
17441 *GNU*)
17442   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17443 *)
17444   ac_count=0
17445   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17446   while :
17447   do
17448     cat "conftest.in" "conftest.in" >"conftest.tmp"
17449     mv "conftest.tmp" "conftest.in"
17450     cp "conftest.in" "conftest.nl"
17451     echo 'GREP' >> "conftest.nl"
17452     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17453     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17454     ac_count=`expr $ac_count + 1`
17455     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17456       # Best one so far, save it but keep looking for a better one
17457       ac_cv_path_GREP="$ac_path_GREP"
17458       ac_path_GREP_max=$ac_count
17459     fi
17460     # 10*(2^10) chars as input seems more than enough
17461     test $ac_count -gt 10 && break
17462   done
17463   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17464 esac
17465
17466
17467     $ac_path_GREP_found && break 3
17468   done
17469 done
17470
17471 done
17472 IFS=$as_save_IFS
17473
17474
17475 fi
17476
17477 GREP="$ac_cv_path_GREP"
17478 if test -z "$GREP"; then
17479   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17480 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17481    { (exit 1); exit 1; }; }
17482 fi
17483
17484 else
17485   ac_cv_path_GREP=$GREP
17486 fi
17487
17488
17489 fi
17490 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17491 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17492  GREP="$ac_cv_path_GREP"
17493
17494
17495 { echo "$as_me:$LINENO: checking for egrep" >&5
17496 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17497 if test "${ac_cv_path_EGREP+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17501    then ac_cv_path_EGREP="$GREP -E"
17502    else
17503      # Extract the first word of "egrep" to use in msg output
17504 if test -z "$EGREP"; then
17505 set dummy egrep; ac_prog_name=$2
17506 if test "${ac_cv_path_EGREP+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   ac_path_EGREP_found=false
17510 # Loop through the user's path and test for each of PROGNAME-LIST
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17513 do
17514   IFS=$as_save_IFS
17515   test -z "$as_dir" && as_dir=.
17516   for ac_prog in egrep; do
17517   for ac_exec_ext in '' $ac_executable_extensions; do
17518     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17519     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17520     # Check for GNU ac_path_EGREP and select it if it is found.
17521   # Check for GNU $ac_path_EGREP
17522 case `"$ac_path_EGREP" --version 2>&1` in
17523 *GNU*)
17524   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17525 *)
17526   ac_count=0
17527   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17528   while :
17529   do
17530     cat "conftest.in" "conftest.in" >"conftest.tmp"
17531     mv "conftest.tmp" "conftest.in"
17532     cp "conftest.in" "conftest.nl"
17533     echo 'EGREP' >> "conftest.nl"
17534     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17536     ac_count=`expr $ac_count + 1`
17537     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17538       # Best one so far, save it but keep looking for a better one
17539       ac_cv_path_EGREP="$ac_path_EGREP"
17540       ac_path_EGREP_max=$ac_count
17541     fi
17542     # 10*(2^10) chars as input seems more than enough
17543     test $ac_count -gt 10 && break
17544   done
17545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17546 esac
17547
17548
17549     $ac_path_EGREP_found && break 3
17550   done
17551 done
17552
17553 done
17554 IFS=$as_save_IFS
17555
17556
17557 fi
17558
17559 EGREP="$ac_cv_path_EGREP"
17560 if test -z "$EGREP"; then
17561   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17562 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17563    { (exit 1); exit 1; }; }
17564 fi
17565
17566 else
17567   ac_cv_path_EGREP=$EGREP
17568 fi
17569
17570
17571    fi
17572 fi
17573 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17574 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17575  EGREP="$ac_cv_path_EGREP"
17576
17577
17578 if test $ac_cv_c_compiler_gnu = yes; then
17579     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17580 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17581 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584     ac_pattern="Autoconf.*'x'"
17585   cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 #include <sgtty.h>
17592 Autoconf TIOCGETP
17593 _ACEOF
17594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17595   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17596   ac_cv_prog_gcc_traditional=yes
17597 else
17598   ac_cv_prog_gcc_traditional=no
17599 fi
17600 rm -f conftest*
17601
17602
17603   if test $ac_cv_prog_gcc_traditional = no; then
17604     cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 #include <termio.h>
17611 Autoconf TCGETA
17612 _ACEOF
17613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17614   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17615   ac_cv_prog_gcc_traditional=yes
17616 fi
17617 rm -f conftest*
17618
17619   fi
17620 fi
17621 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17622 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17623   if test $ac_cv_prog_gcc_traditional = yes; then
17624     CC="$CC -traditional"
17625   fi
17626 fi
17627
17628
17629 CXXFLAGS=${CXXFLAGS:=}
17630 ac_ext=cpp
17631 ac_cpp='$CXXCPP $CPPFLAGS'
17632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17635 if test -z "$CXX"; then
17636   if test -n "$CCC"; then
17637     CXX=$CCC
17638   else
17639     if test -n "$ac_tool_prefix"; then
17640   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17641   do
17642     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17646 if test "${ac_cv_prog_CXX+set}" = set; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649   if test -n "$CXX"; then
17650   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17651 else
17652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17653 for as_dir in $PATH
17654 do
17655   IFS=$as_save_IFS
17656   test -z "$as_dir" && as_dir=.
17657   for ac_exec_ext in '' $ac_executable_extensions; do
17658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17659     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17661     break 2
17662   fi
17663 done
17664 done
17665 IFS=$as_save_IFS
17666
17667 fi
17668 fi
17669 CXX=$ac_cv_prog_CXX
17670 if test -n "$CXX"; then
17671   { echo "$as_me:$LINENO: result: $CXX" >&5
17672 echo "${ECHO_T}$CXX" >&6; }
17673 else
17674   { echo "$as_me:$LINENO: result: no" >&5
17675 echo "${ECHO_T}no" >&6; }
17676 fi
17677
17678
17679     test -n "$CXX" && break
17680   done
17681 fi
17682 if test -z "$CXX"; then
17683   ac_ct_CXX=$CXX
17684   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17685 do
17686   # Extract the first word of "$ac_prog", so it can be a program name with args.
17687 set dummy $ac_prog; ac_word=$2
17688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17690 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   if test -n "$ac_ct_CXX"; then
17694   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17695 else
17696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17697 for as_dir in $PATH
17698 do
17699   IFS=$as_save_IFS
17700   test -z "$as_dir" && as_dir=.
17701   for ac_exec_ext in '' $ac_executable_extensions; do
17702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17703     ac_cv_prog_ac_ct_CXX="$ac_prog"
17704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17705     break 2
17706   fi
17707 done
17708 done
17709 IFS=$as_save_IFS
17710
17711 fi
17712 fi
17713 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17714 if test -n "$ac_ct_CXX"; then
17715   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17716 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17717 else
17718   { echo "$as_me:$LINENO: result: no" >&5
17719 echo "${ECHO_T}no" >&6; }
17720 fi
17721
17722
17723   test -n "$ac_ct_CXX" && break
17724 done
17725
17726   if test "x$ac_ct_CXX" = x; then
17727     CXX="g++"
17728   else
17729     case $cross_compiling:$ac_tool_warned in
17730 yes:)
17731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17732 whose name does not start with the host triplet.  If you think this
17733 configuration is useful to you, please write to autoconf@gnu.org." >&5
17734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17735 whose name does not start with the host triplet.  If you think this
17736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17737 ac_tool_warned=yes ;;
17738 esac
17739     CXX=$ac_ct_CXX
17740   fi
17741 fi
17742
17743   fi
17744 fi
17745 # Provide some information about the compiler.
17746 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17747 ac_compiler=`set X $ac_compile; echo $2`
17748 { (ac_try="$ac_compiler --version >&5"
17749 case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754   (eval "$ac_compiler --version >&5") 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }
17758 { (ac_try="$ac_compiler -v >&5"
17759 case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_compiler -v >&5") 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }
17768 { (ac_try="$ac_compiler -V >&5"
17769 case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_compiler -V >&5") 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }
17778
17779 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h.  */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h.  */
17790
17791 int
17792 main ()
17793 {
17794 #ifndef __GNUC__
17795        choke me
17796 #endif
17797
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_compile") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } && {
17816          test -z "$ac_cxx_werror_flag" ||
17817          test ! -s conftest.err
17818        } && test -s conftest.$ac_objext; then
17819   ac_compiler_gnu=yes
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824         ac_compiler_gnu=no
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17829
17830 fi
17831 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17832 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17833 GXX=`test $ac_compiler_gnu = yes && echo yes`
17834 ac_test_CXXFLAGS=${CXXFLAGS+set}
17835 ac_save_CXXFLAGS=$CXXFLAGS
17836 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17837 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17838 if test "${ac_cv_prog_cxx_g+set}" = set; then
17839   echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17842    ac_cxx_werror_flag=yes
17843    ac_cv_prog_cxx_g=no
17844    CXXFLAGS="-g"
17845    cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851
17852 int
17853 main ()
17854 {
17855
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864   *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867   (eval "$ac_compile") 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } && {
17874          test -z "$ac_cxx_werror_flag" ||
17875          test ! -s conftest.err
17876        } && test -s conftest.$ac_objext; then
17877   ac_cv_prog_cxx_g=yes
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882         CXXFLAGS=""
17883       cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889
17890 int
17891 main ()
17892 {
17893
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_compile") 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } && {
17912          test -z "$ac_cxx_werror_flag" ||
17913          test ! -s conftest.err
17914        } && test -s conftest.$ac_objext; then
17915   :
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17921          CXXFLAGS="-g"
17922          cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 int
17930 main ()
17931 {
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_compile") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && {
17951          test -z "$ac_cxx_werror_flag" ||
17952          test ! -s conftest.err
17953        } && test -s conftest.$ac_objext; then
17954   ac_cv_prog_cxx_g=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 fi
17964
17965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17970 fi
17971 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17972 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17973 if test "$ac_test_CXXFLAGS" = set; then
17974   CXXFLAGS=$ac_save_CXXFLAGS
17975 elif test $ac_cv_prog_cxx_g = yes; then
17976   if test "$GXX" = yes; then
17977     CXXFLAGS="-g -O2"
17978   else
17979     CXXFLAGS="-g"
17980   fi
17981 else
17982   if test "$GXX" = yes; then
17983     CXXFLAGS="-O2"
17984   else
17985     CXXFLAGS=
17986   fi
17987 fi
17988 ac_ext=c
17989 ac_cpp='$CPP $CPPFLAGS'
17990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993
17994
17995
17996
17997
17998
17999
18000
18001     ac_ext=cpp
18002 ac_cpp='$CXXCPP $CPPFLAGS'
18003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18006
18007     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18008 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18009 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018
18019 int
18020 main ()
18021 {
18022
18023              #ifndef __INTEL_COMPILER
18024                 choke me
18025              #endif
18026
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext
18032 if { (ac_try="$ac_compile"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_compile") 2>conftest.er1
18039   ac_status=$?
18040   grep -v '^ *+' conftest.er1 >conftest.err
18041   rm -f conftest.er1
18042   cat conftest.err >&5
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); } && {
18045          test -z "$ac_cxx_werror_flag" ||
18046          test ! -s conftest.err
18047        } && test -s conftest.$ac_objext; then
18048   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18049 else
18050   echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18052
18053         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18054
18055 fi
18056
18057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18058
18059
18060 fi
18061 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18062 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18063     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18064         :; INTELCXX=yes
18065     else
18066         :;
18067     fi
18068     ac_ext=c
18069 ac_cpp='$CPP $CPPFLAGS'
18070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073
18074
18075
18076
18077         if test "$INTELCXX" = "yes"; then
18078
18079
18080     ac_ext=cpp
18081 ac_cpp='$CXXCPP $CPPFLAGS'
18082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18085
18086     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18087 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18088 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097
18098 int
18099 main ()
18100 {
18101
18102              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18103                 choke me
18104              #endif
18105
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117   (eval "$ac_compile") 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } && {
18124          test -z "$ac_cxx_werror_flag" ||
18125          test ! -s conftest.err
18126        } && test -s conftest.$ac_objext; then
18127   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18133
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137
18138
18139 fi
18140 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18141 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18142     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18143         :; INTELCXX8=yes
18144     else
18145         :;
18146     fi
18147     ac_ext=c
18148 ac_cpp='$CPP $CPPFLAGS'
18149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153
18154
18155
18156
18157     ac_ext=cpp
18158 ac_cpp='$CXXCPP $CPPFLAGS'
18159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18162
18163     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18164 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18165 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18166   echo $ECHO_N "(cached) $ECHO_C" >&6
18167 else
18168   cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174
18175 int
18176 main ()
18177 {
18178
18179              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18180                 choke me
18181              #endif
18182
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_compile") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } && {
18201          test -z "$ac_cxx_werror_flag" ||
18202          test ! -s conftest.err
18203        } && test -s conftest.$ac_objext; then
18204   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18205 else
18206   echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18208
18209         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18210
18211 fi
18212
18213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214
18215
18216 fi
18217 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18218 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18219     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18220         :; INTELCXX10=yes
18221     else
18222         :;
18223     fi
18224     ac_ext=c
18225 ac_cpp='$CPP $CPPFLAGS'
18226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18229
18230
18231
18232     fi
18233
18234         if test "x$GCXX" != "xyes"; then
18235         if test "xCXX" = "xC"; then
18236             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18237 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18238 if test "${bakefile_cv_c_exto+set}" = set; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241   cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247
18248 int
18249 main ()
18250 {
18251
18252   ;
18253   return 0;
18254 }
18255 _ACEOF
18256 rm -f conftest.$ac_objext conftest.$ac_ext.o
18257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258   (eval $ac_compile) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; then
18262   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18263     case $ac_file in
18264         conftest.$ac_ext.o)
18265             bakefile_cv_c_exto="-ext o"
18266             ;;
18267         *)
18268             ;;
18269     esac
18270 done
18271 else
18272   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18273 See \`config.log' for more details." >&5
18274 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18275 See \`config.log' for more details." >&2;}
18276    { (exit 1); exit 1; }; }
18277
18278 fi
18279
18280 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18281
18282 fi
18283 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18284 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18285 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18286     if test "c" = "c"; then
18287         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18288     fi
18289     if test "c" = "cxx"; then
18290         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18291     fi
18292 fi
18293
18294             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18295                 unset ac_cv_prog_cc_g
18296                 ac_test_CFLAGS=${CFLAGS+set}
18297 ac_save_CFLAGS=$CFLAGS
18298 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18299 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18300 if test "${ac_cv_prog_cc_g+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_save_c_werror_flag=$ac_c_werror_flag
18304    ac_c_werror_flag=yes
18305    ac_cv_prog_cc_g=no
18306    CFLAGS="-g"
18307    cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313
18314 int
18315 main ()
18316 {
18317
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_compile") 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } && {
18336          test -z "$ac_c_werror_flag" ||
18337          test ! -s conftest.err
18338        } && test -s conftest.$ac_objext; then
18339   ac_cv_prog_cc_g=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         CFLAGS=""
18345       cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351
18352 int
18353 main ()
18354 {
18355
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (ac_try="$ac_compile"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_compile") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } && {
18374          test -z "$ac_c_werror_flag" ||
18375          test ! -s conftest.err
18376        } && test -s conftest.$ac_objext; then
18377   :
18378 else
18379   echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382         ac_c_werror_flag=$ac_save_c_werror_flag
18383          CFLAGS="-g"
18384          cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h.  */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h.  */
18390
18391 int
18392 main ()
18393 {
18394
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_compile") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } && {
18413          test -z "$ac_c_werror_flag" ||
18414          test ! -s conftest.err
18415        } && test -s conftest.$ac_objext; then
18416   ac_cv_prog_cc_g=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421
18422 fi
18423
18424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 fi
18429
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431    ac_c_werror_flag=$ac_save_c_werror_flag
18432 fi
18433 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18435 if test "$ac_test_CFLAGS" = set; then
18436   CFLAGS=$ac_save_CFLAGS
18437 elif test $ac_cv_prog_cc_g = yes; then
18438   if test "$GCC" = yes; then
18439     CFLAGS="-g -O2"
18440   else
18441     CFLAGS="-g"
18442   fi
18443 else
18444   if test "$GCC" = yes; then
18445     CFLAGS="-O2"
18446   else
18447     CFLAGS=
18448   fi
18449 fi
18450             fi
18451         fi
18452
18453                         case `uname -s` in
18454             AIX*)
18455
18456
18457     ac_ext=cpp
18458 ac_cpp='$CXXCPP $CPPFLAGS'
18459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
18463     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18464 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18465 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h.  */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h.  */
18474
18475 int
18476 main ()
18477 {
18478
18479              #ifndef __xlC__
18480                 choke me
18481              #endif
18482
18483   ;
18484   return 0;
18485 }
18486 _ACEOF
18487 rm -f conftest.$ac_objext
18488 if { (ac_try="$ac_compile"
18489 case "(($ac_try" in
18490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491   *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494   (eval "$ac_compile") 2>conftest.er1
18495   ac_status=$?
18496   grep -v '^ *+' conftest.er1 >conftest.err
18497   rm -f conftest.er1
18498   cat conftest.err >&5
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); } && {
18501          test -z "$ac_cxx_werror_flag" ||
18502          test ! -s conftest.err
18503        } && test -s conftest.$ac_objext; then
18504   bakefile_cv_cxx_compiler___xlC__=yes
18505 else
18506   echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509         bakefile_cv_cxx_compiler___xlC__=no
18510
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514
18515
18516 fi
18517 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18518 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18519     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18520         :; XLCXX=yes
18521     else
18522         :;
18523     fi
18524     ac_ext=c
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530
18531
18532                 ;;
18533
18534             Darwin)
18535
18536
18537     ac_ext=cpp
18538 ac_cpp='$CXXCPP $CPPFLAGS'
18539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18542
18543     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18544 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18545 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h.  */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h.  */
18554
18555 int
18556 main ()
18557 {
18558
18559              #ifndef __MWERKS__
18560                 choke me
18561              #endif
18562
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (ac_try="$ac_compile"
18569 case "(($ac_try" in
18570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571   *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574   (eval "$ac_compile") 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } && {
18581          test -z "$ac_cxx_werror_flag" ||
18582          test ! -s conftest.err
18583        } && test -s conftest.$ac_objext; then
18584   bakefile_cv_cxx_compiler___MWERKS__=yes
18585 else
18586   echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589         bakefile_cv_cxx_compiler___MWERKS__=no
18590
18591 fi
18592
18593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594
18595
18596 fi
18597 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18598 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18599     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18600         :; MWCXX=yes
18601     else
18602         :;
18603     fi
18604     ac_ext=c
18605 ac_cpp='$CPP $CPPFLAGS'
18606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18609
18610
18611
18612                 if test "$MWCXX" != "yes"; then
18613
18614
18615     ac_ext=cpp
18616 ac_cpp='$CXXCPP $CPPFLAGS'
18617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18620
18621     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18622 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18623 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 int
18634 main ()
18635 {
18636
18637              #ifndef __xlC__
18638                 choke me
18639              #endif
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_compile") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } && {
18659          test -z "$ac_cxx_werror_flag" ||
18660          test ! -s conftest.err
18661        } && test -s conftest.$ac_objext; then
18662   bakefile_cv_cxx_compiler___xlC__=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         bakefile_cv_cxx_compiler___xlC__=no
18668
18669 fi
18670
18671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18672
18673
18674 fi
18675 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18676 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18677     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18678         :; XLCXX=yes
18679     else
18680         :;
18681     fi
18682     ac_ext=c
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18687
18688
18689
18690                 fi
18691                 ;;
18692
18693             IRIX*)
18694
18695
18696     ac_ext=cpp
18697 ac_cpp='$CXXCPP $CPPFLAGS'
18698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18701
18702     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18703 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18704 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713
18714 int
18715 main ()
18716 {
18717
18718              #ifndef _SGI_COMPILER_VERSION
18719                 choke me
18720              #endif
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (ac_try="$ac_compile"
18728 case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_compile") 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } && {
18740          test -z "$ac_cxx_werror_flag" ||
18741          test ! -s conftest.err
18742        } && test -s conftest.$ac_objext; then
18743   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18744 else
18745   echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18749
18750 fi
18751
18752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18753
18754
18755 fi
18756 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18757 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18758     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18759         :; SGICXX=yes
18760     else
18761         :;
18762     fi
18763     ac_ext=c
18764 ac_cpp='$CPP $CPPFLAGS'
18765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18768
18769
18770
18771                 ;;
18772
18773             Linux*)
18774                                                 if test "$INTELCXX" != "yes"; then
18775
18776
18777     ac_ext=cpp
18778 ac_cpp='$CXXCPP $CPPFLAGS'
18779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18782
18783     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18784 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18785 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18786   echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788   cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794
18795 int
18796 main ()
18797 {
18798
18799              #ifndef __SUNPRO_CC
18800                 choke me
18801              #endif
18802
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (ac_try="$ac_compile"
18809 case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_compile") 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } && {
18821          test -z "$ac_cxx_werror_flag" ||
18822          test ! -s conftest.err
18823        } && test -s conftest.$ac_objext; then
18824   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18830
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834
18835
18836 fi
18837 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18838 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18839     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18840         :; SUNCXX=yes
18841     else
18842         :;
18843     fi
18844     ac_ext=c
18845 ac_cpp='$CPP $CPPFLAGS'
18846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18849
18850
18851
18852                 fi
18853                 ;;
18854
18855             HP-UX*)
18856
18857
18858     ac_ext=cpp
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18863
18864     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18865 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18866 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875
18876 int
18877 main ()
18878 {
18879
18880              #ifndef __HP_aCC
18881                 choke me
18882              #endif
18883
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_compile") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } && {
18902          test -z "$ac_cxx_werror_flag" ||
18903          test ! -s conftest.err
18904        } && test -s conftest.$ac_objext; then
18905   bakefile_cv_cxx_compiler___HP_aCC=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910         bakefile_cv_cxx_compiler___HP_aCC=no
18911
18912 fi
18913
18914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915
18916
18917 fi
18918 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18919 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18920     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18921         :; HPCXX=yes
18922     else
18923         :;
18924     fi
18925     ac_ext=c
18926 ac_cpp='$CPP $CPPFLAGS'
18927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18930
18931
18932
18933                 ;;
18934
18935             OSF1)
18936
18937
18938     ac_ext=cpp
18939 ac_cpp='$CXXCPP $CPPFLAGS'
18940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18943
18944     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18945 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18946 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955
18956 int
18957 main ()
18958 {
18959
18960              #ifndef __DECCXX
18961                 choke me
18962              #endif
18963
18964   ;
18965   return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext
18969 if { (ac_try="$ac_compile"
18970 case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_compile") 2>conftest.er1
18976   ac_status=$?
18977   grep -v '^ *+' conftest.er1 >conftest.err
18978   rm -f conftest.er1
18979   cat conftest.err >&5
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); } && {
18982          test -z "$ac_cxx_werror_flag" ||
18983          test ! -s conftest.err
18984        } && test -s conftest.$ac_objext; then
18985   bakefile_cv_cxx_compiler___DECCXX=yes
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990         bakefile_cv_cxx_compiler___DECCXX=no
18991
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995
18996
18997 fi
18998 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18999 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19000     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19001         :; COMPAQCXX=yes
19002     else
19003         :;
19004     fi
19005     ac_ext=c
19006 ac_cpp='$CPP $CPPFLAGS'
19007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19010
19011
19012
19013                 ;;
19014
19015             SunOS)
19016
19017
19018     ac_ext=cpp
19019 ac_cpp='$CXXCPP $CPPFLAGS'
19020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19023
19024     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19025 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19026 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029   cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h.  */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h.  */
19035
19036 int
19037 main ()
19038 {
19039
19040              #ifndef __SUNPRO_CC
19041                 choke me
19042              #endif
19043
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_compile") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && {
19062          test -z "$ac_cxx_werror_flag" ||
19063          test ! -s conftest.err
19064        } && test -s conftest.$ac_objext; then
19065   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19066 else
19067   echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19071
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075
19076
19077 fi
19078 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19079 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19080     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19081         :; SUNCXX=yes
19082     else
19083         :;
19084     fi
19085     ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091
19092
19093                 ;;
19094         esac
19095     fi
19096
19097
19098
19099 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19100     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19101 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19102    { (exit 1); exit 1; }; }
19103 fi
19104
19105 if test "x$SUNCXX" != xyes; then
19106     if test -n "$ac_tool_prefix"; then
19107   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19108 set dummy ${ac_tool_prefix}ar; ac_word=$2
19109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19111 if test "${ac_cv_prog_AR+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   if test -n "$AR"; then
19115   ac_cv_prog_AR="$AR" # Let the user override the test.
19116 else
19117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19118 for as_dir in $PATH
19119 do
19120   IFS=$as_save_IFS
19121   test -z "$as_dir" && as_dir=.
19122   for ac_exec_ext in '' $ac_executable_extensions; do
19123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19124     ac_cv_prog_AR="${ac_tool_prefix}ar"
19125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19126     break 2
19127   fi
19128 done
19129 done
19130 IFS=$as_save_IFS
19131
19132 fi
19133 fi
19134 AR=$ac_cv_prog_AR
19135 if test -n "$AR"; then
19136   { echo "$as_me:$LINENO: result: $AR" >&5
19137 echo "${ECHO_T}$AR" >&6; }
19138 else
19139   { echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6; }
19141 fi
19142
19143
19144 fi
19145 if test -z "$ac_cv_prog_AR"; then
19146   ac_ct_AR=$AR
19147   # Extract the first word of "ar", so it can be a program name with args.
19148 set dummy ar; ac_word=$2
19149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19151 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   if test -n "$ac_ct_AR"; then
19155   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19156 else
19157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19158 for as_dir in $PATH
19159 do
19160   IFS=$as_save_IFS
19161   test -z "$as_dir" && as_dir=.
19162   for ac_exec_ext in '' $ac_executable_extensions; do
19163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19164     ac_cv_prog_ac_ct_AR="ar"
19165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19166     break 2
19167   fi
19168 done
19169 done
19170 IFS=$as_save_IFS
19171
19172 fi
19173 fi
19174 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19175 if test -n "$ac_ct_AR"; then
19176   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19177 echo "${ECHO_T}$ac_ct_AR" >&6; }
19178 else
19179   { echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6; }
19181 fi
19182
19183   if test "x$ac_ct_AR" = x; then
19184     AR=""
19185   else
19186     case $cross_compiling:$ac_tool_warned in
19187 yes:)
19188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19189 whose name does not start with the host triplet.  If you think this
19190 configuration is useful to you, please write to autoconf@gnu.org." >&5
19191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19192 whose name does not start with the host triplet.  If you think this
19193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19194 ac_tool_warned=yes ;;
19195 esac
19196     AR=$ac_ct_AR
19197   fi
19198 else
19199   AR="$ac_cv_prog_AR"
19200 fi
19201
19202     if test "x$AR" = "x" ; then
19203         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19204 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19205    { (exit 1); exit 1; }; }
19206     fi
19207 fi
19208
19209
19210 if test "$wxUSE_MAC" = 1; then
19211
19212 retest_macosx_linking=no
19213
19214 OSX_ARCH_OPTS=""
19215
19216 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19217     if test "x$wxUSE_MAC_ARCH" != xno; then
19218         { echo "$as_me:$LINENO: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&5
19219 echo "$as_me: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&2;}
19220     fi
19221
19222     if test "x$wxUSE_UNIVERSAL_BINARY" != xyes; then
19223         OSX_ARCH_OPTS=$wxUSE_UNIVERSAL_BINARY
19224     else         OSX_ARCH_OPTS="ppc,i386"
19225         if test "$wxUSE_OSX_COCOA" = 1; then
19226             OSX_ARCH_OPTS="$OSX_ARCH_OPTS,x86_64"
19227         fi
19228     fi
19229
19230     { echo "$as_me:$LINENO: checking for architectures to use in universal binary" >&5
19231 echo $ECHO_N "checking for architectures to use in universal binary... $ECHO_C" >&6; }
19232     { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19233 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19234
19235                                                         retest_macosx_linking=yes
19236
19237                     { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19238 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19239     bk_use_pch=no
19240 else
19241     if test "x$wxUSE_MAC_ARCH" != xno; then
19242         OSX_ARCH_OPTS=$wxUSE_MAC_ARCH
19243     fi
19244 fi
19245
19246 if test "x$OSX_ARCH_OPTS" != "x"; then
19247     OSX_ARCH_OPTS=`echo $OSX_ARCH_OPTS | sed -e 's/^/-arch /' -e 's/,/ -arch /g'`
19248
19249     CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19250     CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19251     OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19252     OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19253     LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19254 fi
19255
19256 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19257     wxUSE_MACOSX_SDK=
19258 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19259     # TODO: Search for most recent SDK and use it.
19260     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19261 fi
19262
19263
19264 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19265     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19266 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19267     if ! test -d "$wxUSE_MACOSX_SDK"; then
19268         { { echo "$as_me:$LINENO: error: not found
19269 See \`config.log' for more details." >&5
19270 echo "$as_me: error: not found
19271 See \`config.log' for more details." >&2;}
19272    { (exit 1); exit 1; }; }
19273     else
19274         { echo "$as_me:$LINENO: result: exists" >&5
19275 echo "${ECHO_T}exists" >&6; }
19276     fi
19277         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19278     retest_macosx_linking=yes
19279             fi
19280
19281 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19282     wxUSE_MACOSX_VERSION_MIN=
19283 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19284     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19285         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19286 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19287
19288         MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19289
19290         # If that failed, try again with the new key
19291         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19292
19293             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19294
19295         fi
19296
19297         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19298             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19299             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19300 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19301         else
19302             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19303 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19304             wxUSE_MACOSX_VERSION_MIN=
19305         fi
19306     else
19307         wxUSE_MACOSX_VERSION_MIN=
19308     fi
19309 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19310     for ac_prog in sw_vers
19311 do
19312   # Extract the first word of "$ac_prog", so it can be a program name with args.
19313 set dummy $ac_prog; ac_word=$2
19314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19316 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   if test -n "$OSX_SW_VERS"; then
19320   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19321 else
19322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19323 for as_dir in $PATH
19324 do
19325   IFS=$as_save_IFS
19326   test -z "$as_dir" && as_dir=.
19327   for ac_exec_ext in '' $ac_executable_extensions; do
19328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19329     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19331     break 2
19332   fi
19333 done
19334 done
19335 IFS=$as_save_IFS
19336
19337 fi
19338 fi
19339 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19340 if test -n "$OSX_SW_VERS"; then
19341   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19342 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19343 else
19344   { echo "$as_me:$LINENO: result: no" >&5
19345 echo "${ECHO_T}no" >&6; }
19346 fi
19347
19348
19349   test -n "$OSX_SW_VERS" && break
19350 done
19351
19352     if test "$OSX_SW_VERS" != ""; then
19353         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19354     else
19355                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19356 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19357         OSX_VERSION="10.4"
19358     fi
19359
19360     case "$OSX_VERSION" in
19361         10.4* )
19362             wxUSE_MACOSX_VERSION_MIN=10.4
19363             ;;
19364
19365         * )
19366             if test "$wxUSE_OSX_CARBON" = 1; then
19367                 # otherwise configure stops on leopard for universal_binary
19368                 wxUSE_MACOSX_VERSION_MIN=10.4
19369             else
19370                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19371                 wxUSE_MACOSX_VERSION_MIN=10.5
19372             fi
19373             ;;
19374     esac
19375 fi
19376
19377 NEEDS_GCC40="no"
19378 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19379     NEEDS_GCC40="yes"
19380 fi
19381
19382 if test "$wxUSE_OSX_CARBON" = 1; then
19383     NEEDS_GCC40="yes"
19384 fi
19385
19386 if test "x$NEEDS_GCC40" == "xyes"; then
19387     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19388     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19389     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19390     if test "x$CC" = "xgcc"; then
19391         CCVERSION=`$CC --version | grep 4.[2-9].`
19392         if test "x$CCVERSION" != "x"; then
19393             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19394             CC="gcc-4.0"
19395         fi
19396     fi
19397
19398     if test "x$CXX" = "xg++"; then
19399         CCVERSION=`$CXX --version | grep 4.[2-9].`
19400         if test "x$CCVERSION" != "x"; then
19401             CXX="g++-4.0"
19402         fi
19403     fi
19404 fi
19405
19406 if test "x$MACOSX_SDK_OPTS" != "x"; then
19407     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19408     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19409     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19410 fi
19411
19412 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19413     if test "$wxUSE_OSX_IPHONE" = 1; then
19414         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19415     else
19416         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19417     fi
19418     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19419     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19420     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19421     retest_macosx_linking=yes
19422 fi
19423
19424 if test "x$retest_macosx_linking" = "xyes"; then
19425     ac_ext=c
19426 ac_cpp='$CPP $CPPFLAGS'
19427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19430
19431     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19432 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19433     cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439
19440 int
19441 main ()
19442 {
19443
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_link") 2>conftest.er1
19456   ac_status=$?
19457   grep -v '^ *+' conftest.er1 >conftest.err
19458   rm -f conftest.er1
19459   cat conftest.err >&5
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } && {
19462          test -z "$ac_c_werror_flag" ||
19463          test ! -s conftest.err
19464        } && test -s conftest$ac_exeext &&
19465        $as_test_x conftest$ac_exeext; then
19466   { echo "$as_me:$LINENO: result: yes" >&5
19467 echo "${ECHO_T}yes" >&6; }
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19473 See \`config.log' for more details." >&5
19474 echo "$as_me: error: no.  Try a different SDK
19475 See \`config.log' for more details." >&2;}
19476    { (exit 1); exit 1; }; }; exit 1
19477 fi
19478
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480       conftest$ac_exeext conftest.$ac_ext
19481     ac_ext=c
19482 ac_cpp='$CPP $CPPFLAGS'
19483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486
19487
19488     ac_ext=cpp
19489 ac_cpp='$CXXCPP $CPPFLAGS'
19490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493
19494     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19495 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19496     cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502
19503 int
19504 main ()
19505 {
19506
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518   (eval "$ac_link") 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } && {
19525          test -z "$ac_cxx_werror_flag" ||
19526          test ! -s conftest.err
19527        } && test -s conftest$ac_exeext &&
19528        $as_test_x conftest$ac_exeext; then
19529   { echo "$as_me:$LINENO: result: yes" >&5
19530 echo "${ECHO_T}yes" >&6; }
19531 else
19532   echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19536 See \`config.log' for more details." >&5
19537 echo "$as_me: error: no.  Try a different SDK
19538 See \`config.log' for more details." >&2;}
19539    { (exit 1); exit 1; }; }; exit 1
19540 fi
19541
19542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19543       conftest$ac_exeext conftest.$ac_ext
19544     ac_ext=c
19545 ac_cpp='$CPP $CPPFLAGS'
19546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549
19550 fi
19551
19552 fi
19553 case "${host}" in
19554
19555                 *-*-darwin* )
19556         INSTALL_PROGRAM="cp -fp"
19557         INSTALL_DATA="cp -fp"
19558         ;;
19559     *)
19560         ;;
19561 esac
19562
19563
19564 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19565                     cat >>confdefs.h <<\_ACEOF
19566 #define _GNU_SOURCE 1
19567 _ACEOF
19568
19569
19570             GNU_SOURCE_FLAG="-D_GNU_SOURCE"
19571     CFLAGS="$GNU_SOURCE_FLAG $CFLAGS"
19572 fi
19573
19574 if test "x$USE_AIX" = "x1"; then
19575             if test "x$XLCXX" = "xyes"; then
19576         CXXFLAGS="-qunique $CXXFLAGS"
19577     fi
19578
19579                                 CPPFLAGS="-D_LINUX_SOURCE_COMPAT $CPPFLAGS"
19580 fi
19581
19582 case "${host}" in
19583   powerpc-*-darwin* )
19584     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19585 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19586     cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592
19593 int
19594 main ()
19595 {
19596 #ifndef __POWERPC__
19597         choke me for lack of PowerPC
19598 #endif
19599
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_compile") 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } && {
19618          test -z "$ac_c_werror_flag" ||
19619          test ! -s conftest.err
19620        } && test -s conftest.$ac_objext; then
19621   { echo "$as_me:$LINENO: result: yes" >&5
19622 echo "${ECHO_T}yes" >&6; }
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627         { echo "$as_me:$LINENO: result: no" >&5
19628 echo "${ECHO_T}no" >&6; }
19629         cat >>confdefs.h <<\_ACEOF
19630 #define __POWERPC__ 1
19631 _ACEOF
19632
19633
19634 fi
19635
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637   ;;
19638 esac
19639
19640 case "${host}" in
19641   *-*-darwin* )
19642     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19643 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19644     cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 #include <CoreFoundation/CFBase.h>
19651
19652 int
19653 main ()
19654 {
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && {
19674          test -z "$ac_c_werror_flag" ||
19675          test ! -s conftest.err
19676        } && test -s conftest.$ac_objext; then
19677   { echo "$as_me:$LINENO: result: yes" >&5
19678 echo "${ECHO_T}yes" >&6; }
19679 else
19680   echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683         { echo "$as_me:$LINENO: result: no" >&5
19684 echo "${ECHO_T}no" >&6; }
19685         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19686 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19687         cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 #define __CF_USE_FRAMEWORK_INCLUDES__
19694 #include <CoreFoundation/CFBase.h>
19695
19696 int
19697 main ()
19698 {
19699
19700   ;
19701   return 0;
19702 }
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (ac_try="$ac_compile"
19706 case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_compile") 2>conftest.er1
19712   ac_status=$?
19713   grep -v '^ *+' conftest.er1 >conftest.err
19714   rm -f conftest.er1
19715   cat conftest.err >&5
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } && {
19718          test -z "$ac_c_werror_flag" ||
19719          test ! -s conftest.err
19720        } && test -s conftest.$ac_objext; then
19721   { echo "$as_me:$LINENO: result: yes" >&5
19722 echo "${ECHO_T}yes" >&6; }
19723                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19729 See \`config.log' for more details." >&5
19730 echo "$as_me: error: no.  CoreFoundation not available.
19731 See \`config.log' for more details." >&2;}
19732    { (exit 1); exit 1; }; }
19733
19734 fi
19735
19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737
19738
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742   ;;
19743 esac
19744
19745 wants_win32=0
19746 doesnt_want_win32=0
19747 case "${host}" in
19748   *-*-cygwin*)
19749       if test "$wxUSE_MSW" = 1 ; then
19750         wants_win32=1
19751       else
19752                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19753 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19754 if test "${wx_cv_nocygwin+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757
19758                 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764
19765 int
19766 main ()
19767 {
19768
19769                         #ifdef __MINGW32__
19770                             choke me
19771                         #endif
19772
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } && {
19791          test -z "$ac_c_werror_flag" ||
19792          test ! -s conftest.err
19793        } && test -s conftest.$ac_objext; then
19794   wx_cv_nocygwin=no
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         wx_cv_nocygwin=yes
19800
19801 fi
19802
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19808 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19809
19810         if test "$wx_cv_nocygwin" = "yes"; then
19811             wants_win32=1
19812         else
19813             doesnt_want_win32=1
19814         fi
19815       fi
19816       if test "$wants_win32" = 1 ; then
19817         BAKEFILE_FORCE_PLATFORM=win32
19818       fi
19819   ;;
19820   *-*-mingw*)
19821       wants_win32=1
19822   ;;
19823 esac
19824
19825 if test "$wxUSE_WINE" = "yes"; then
19826     wants_win32=1
19827     LDFLAGS_GUI="-mwindows"
19828 fi
19829
19830 if test "$wants_win32" = 1 ; then
19831     USE_UNIX=0
19832     USE_WIN32=1
19833     cat >>confdefs.h <<\_ACEOF
19834 #define __WIN32__ 1
19835 _ACEOF
19836
19837     cat >>confdefs.h <<\_ACEOF
19838 #define __WIN95__ 1
19839 _ACEOF
19840
19841     cat >>confdefs.h <<\_ACEOF
19842 #define __WINDOWS__ 1
19843 _ACEOF
19844
19845     cat >>confdefs.h <<\_ACEOF
19846 #define __GNUWIN32__ 1
19847 _ACEOF
19848
19849     cat >>confdefs.h <<\_ACEOF
19850 #define STRICT 1
19851 _ACEOF
19852
19853 fi
19854 if test "$doesnt_want_win32" = 1 ; then
19855     USE_UNIX=1
19856     USE_WIN32=0
19857 fi
19858
19859 if test "$USE_UNIX" = 1 ; then
19860     wxUSE_UNIX=yes
19861     cat >>confdefs.h <<\_ACEOF
19862 #define __UNIX__ 1
19863 _ACEOF
19864
19865 fi
19866
19867 case "${host}" in
19868   *-pc-os2_emx | *-pc-os2-emx )
19869                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19870                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19871 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19872 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875   ac_check_lib_save_LIBS=$LIBS
19876 LIBS="-lcExt  $LIBS"
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883
19884 /* Override any GCC internal prototype to avoid an error.
19885    Use char because int might match the return type of a GCC
19886    builtin and then its argument prototype would still apply.  */
19887 #ifdef __cplusplus
19888 extern "C"
19889 #endif
19890 char drand48 ();
19891 int
19892 main ()
19893 {
19894 return drand48 ();
19895   ;
19896   return 0;
19897 }
19898 _ACEOF
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (ac_try="$ac_link"
19901 case "(($ac_try" in
19902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903   *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906   (eval "$ac_link") 2>conftest.er1
19907   ac_status=$?
19908   grep -v '^ *+' conftest.er1 >conftest.err
19909   rm -f conftest.er1
19910   cat conftest.err >&5
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); } && {
19913          test -z "$ac_c_werror_flag" ||
19914          test ! -s conftest.err
19915        } && test -s conftest$ac_exeext &&
19916        $as_test_x conftest$ac_exeext; then
19917   ac_cv_lib_cExt_drand48=yes
19918 else
19919   echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922         ac_cv_lib_cExt_drand48=no
19923 fi
19924
19925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19926       conftest$ac_exeext conftest.$ac_ext
19927 LIBS=$ac_check_lib_save_LIBS
19928 fi
19929 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19930 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19931 if test $ac_cv_lib_cExt_drand48 = yes; then
19932   LIBS="$LIBS -lcExt"
19933 fi
19934
19935       else
19936                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19937       fi
19938                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19939 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19940 if test "${wx_cv_gccversion+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943
19944           if test "$cross_compiling" = yes; then
19945                 wx_cv_gccversion="EMX2"
19946
19947 else
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954
19955                   #include <stdio.h>
19956
19957                   int main()
19958                   {
19959                       FILE *f=fopen("conftestval", "w");
19960                       if (!f) exit(1);
19961                       fprintf(f,
19962                   #if (__GNUC__ < 3)
19963                               "EMX2"
19964                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19965                               "EMX3"
19966                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19967                               "Innotek5"
19968                   #else
19969                               "Innotek6"
19970                   #endif
19971                       );
19972                       exit(0);
19973                   }
19974
19975 _ACEOF
19976 rm -f conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_link") 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19987   { (case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992   (eval "$ac_try") 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; }; then
19996   wx_cv_gccversion=`cat conftestval`
19997 else
19998   echo "$as_me: program exited with status $ac_status" >&5
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ( exit $ac_status )
20003 wx_cv_gccversion="EMX2"
20004 fi
20005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20006 fi
20007
20008
20009
20010 fi
20011 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20012 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20013       if test "$wx_cv_gccversion" = "EMX2"; then
20014           LIBS="$LIBS -lstdcpp"
20015           LDFLAGS="$LDFLAGS -Zsysv-signals"
20016       else
20017           if test "$wx_cv_gccversion" = "EMX3"; then
20018               LIBS="$LIBS -lstdcxx -lgcc"
20019               LDFLAGS="$LDFLAGS -Zsysv-signals"
20020           else
20021               LIBS="$LIBS -lstdc++"
20022           fi
20023       fi
20024       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20025         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20026 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20027         wxUSE_OMF=yes
20028         enable_omf=yes
20029       fi
20030         ;;
20031   *)
20032
20033       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20034 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20035 if test "${ac_cv_string_strcasecmp+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038
20039           cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045
20046               #include <string.h>
20047
20048 int
20049 main ()
20050 {
20051
20052                   strcasecmp("foo", "bar");
20053
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext conftest$ac_exeext
20059 if { (ac_try="$ac_link"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_link") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } && {
20072          test -z "$ac_c_werror_flag" ||
20073          test ! -s conftest.err
20074        } && test -s conftest$ac_exeext &&
20075        $as_test_x conftest$ac_exeext; then
20076   ac_cv_string_strcasecmp=yes
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         ac_cv_string_strcasecmp=no
20082
20083 fi
20084
20085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20086       conftest$ac_exeext conftest.$ac_ext
20087
20088 fi
20089 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20090 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20091
20092       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20093           cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_STRCASECMP_IN_STRING_H 1
20095 _ACEOF
20096
20097       else
20098           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20099 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20100 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103
20104               cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110
20111                   #include <strings.h>
20112
20113 int
20114 main ()
20115 {
20116
20117                       strcasecmp("foo", "bar");
20118
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127   *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130   (eval "$ac_link") 2>conftest.er1
20131   ac_status=$?
20132   grep -v '^ *+' conftest.er1 >conftest.err
20133   rm -f conftest.er1
20134   cat conftest.err >&5
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } && {
20137          test -z "$ac_c_werror_flag" ||
20138          test ! -s conftest.err
20139        } && test -s conftest$ac_exeext &&
20140        $as_test_x conftest$ac_exeext; then
20141   ac_cv_strings_strcasecmp=yes
20142 else
20143   echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146         ac_cv_strings_strcasecmp=no
20147
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151       conftest$ac_exeext conftest.$ac_ext
20152
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20155 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20156
20157           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20158               cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20160 _ACEOF
20161
20162           else
20163               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20164 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20165    { (exit 1); exit 1; }; }
20166           fi
20167       fi
20168
20169         ;;
20170 esac
20171
20172
20173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20175 if test "${ac_cv_header_stdc+set}" = set; then
20176   echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178   cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 #include <stdlib.h>
20185 #include <stdarg.h>
20186 #include <string.h>
20187 #include <float.h>
20188
20189 int
20190 main ()
20191 {
20192
20193   ;
20194   return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (ac_try="$ac_compile"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_compile") 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } && {
20211          test -z "$ac_c_werror_flag" ||
20212          test ! -s conftest.err
20213        } && test -s conftest.$ac_objext; then
20214   ac_cv_header_stdc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219         ac_cv_header_stdc=no
20220 fi
20221
20222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223
20224 if test $ac_cv_header_stdc = yes; then
20225   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20226   cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h.  */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h.  */
20232 #include <string.h>
20233
20234 _ACEOF
20235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20236   $EGREP "memchr" >/dev/null 2>&1; then
20237   :
20238 else
20239   ac_cv_header_stdc=no
20240 fi
20241 rm -f conftest*
20242
20243 fi
20244
20245 if test $ac_cv_header_stdc = yes; then
20246   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 #include <stdlib.h>
20254
20255 _ACEOF
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257   $EGREP "free" >/dev/null 2>&1; then
20258   :
20259 else
20260   ac_cv_header_stdc=no
20261 fi
20262 rm -f conftest*
20263
20264 fi
20265
20266 if test $ac_cv_header_stdc = yes; then
20267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20268   if test "$cross_compiling" = yes; then
20269   :
20270 else
20271   cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 #include <ctype.h>
20278 #include <stdlib.h>
20279 #if ((' ' & 0x0FF) == 0x020)
20280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20282 #else
20283 # define ISLOWER(c) \
20284                    (('a' <= (c) && (c) <= 'i') \
20285                      || ('j' <= (c) && (c) <= 'r') \
20286                      || ('s' <= (c) && (c) <= 'z'))
20287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20288 #endif
20289
20290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20291 int
20292 main ()
20293 {
20294   int i;
20295   for (i = 0; i < 256; i++)
20296     if (XOR (islower (i), ISLOWER (i))
20297         || toupper (i) != TOUPPER (i))
20298       return 2;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_link") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313   { (case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_try") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   :
20323 else
20324   echo "$as_me: program exited with status $ac_status" >&5
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ( exit $ac_status )
20329 ac_cv_header_stdc=no
20330 fi
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20332 fi
20333
20334
20335 fi
20336 fi
20337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20339 if test $ac_cv_header_stdc = yes; then
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define STDC_HEADERS 1
20343 _ACEOF
20344
20345 fi
20346
20347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20358                   inttypes.h stdint.h unistd.h
20359 do
20360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 $ac_includes_default
20373
20374 #include <$ac_header>
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380   *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383   (eval "$ac_compile") 2>conftest.er1
20384   ac_status=$?
20385   grep -v '^ *+' conftest.er1 >conftest.err
20386   rm -f conftest.er1
20387   cat conftest.err >&5
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } && {
20390          test -z "$ac_c_werror_flag" ||
20391          test ! -s conftest.err
20392        } && test -s conftest.$ac_objext; then
20393   eval "$as_ac_Header=yes"
20394 else
20395   echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20397
20398         eval "$as_ac_Header=no"
20399 fi
20400
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402 fi
20403 ac_res=`eval echo '${'$as_ac_Header'}'`
20404                { echo "$as_me:$LINENO: result: $ac_res" >&5
20405 echo "${ECHO_T}$ac_res" >&6; }
20406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20407   cat >>confdefs.h <<_ACEOF
20408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20409 _ACEOF
20410
20411 fi
20412
20413 done
20414
20415
20416
20417
20418 for ac_header in langinfo.h wchar.h
20419 do
20420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 $ac_includes_default
20433
20434 #include <$ac_header>
20435 _ACEOF
20436 rm -f conftest.$ac_objext
20437 if { (ac_try="$ac_compile"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_compile") 2>conftest.er1
20444   ac_status=$?
20445   grep -v '^ *+' conftest.er1 >conftest.err
20446   rm -f conftest.er1
20447   cat conftest.err >&5
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); } && {
20450          test -z "$ac_c_werror_flag" ||
20451          test ! -s conftest.err
20452        } && test -s conftest.$ac_objext; then
20453   eval "$as_ac_Header=yes"
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458         eval "$as_ac_Header=no"
20459 fi
20460
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 fi
20463 ac_res=`eval echo '${'$as_ac_Header'}'`
20464                { echo "$as_me:$LINENO: result: $ac_res" >&5
20465 echo "${ECHO_T}$ac_res" >&6; }
20466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20467   cat >>confdefs.h <<_ACEOF
20468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20469 _ACEOF
20470
20471 fi
20472
20473 done
20474
20475
20476 if test "$ac_cv_header_wchar_h" != "yes"; then
20477
20478 for ac_header in wcstr.h
20479 do
20480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 $ac_includes_default
20493
20494 #include <$ac_header>
20495 _ACEOF
20496 rm -f conftest.$ac_objext
20497 if { (ac_try="$ac_compile"
20498 case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_compile") 2>conftest.er1
20504   ac_status=$?
20505   grep -v '^ *+' conftest.er1 >conftest.err
20506   rm -f conftest.er1
20507   cat conftest.err >&5
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } && {
20510          test -z "$ac_c_werror_flag" ||
20511          test ! -s conftest.err
20512        } && test -s conftest.$ac_objext; then
20513   eval "$as_ac_Header=yes"
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518         eval "$as_ac_Header=no"
20519 fi
20520
20521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 fi
20523 ac_res=`eval echo '${'$as_ac_Header'}'`
20524                { echo "$as_me:$LINENO: result: $ac_res" >&5
20525 echo "${ECHO_T}$ac_res" >&6; }
20526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20527   cat >>confdefs.h <<_ACEOF
20528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20529 _ACEOF
20530
20531 fi
20532
20533 done
20534
20535 fi
20536
20537 case "${host}" in
20538   *-pc-os2_emx | *-pc-os2-emx )
20539                   if test $ac_cv_header_langinfo_h = "yes" \
20540                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20541                      -o "$wx_cv_gccversion" = "EMX3" \
20542                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20543           LIBS="$LIBS -lintl"
20544       fi
20545   ;;
20546 esac
20547
20548 if test "$USE_UNIX" = 1 ; then
20549
20550 for ac_header in sys/select.h
20551 do
20552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20556   echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558   cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564 $ac_includes_default
20565
20566 #include <$ac_header>
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20585   eval "$as_ac_Header=yes"
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         eval "$as_ac_Header=no"
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 ac_res=`eval echo '${'$as_ac_Header'}'`
20596                { echo "$as_me:$LINENO: result: $ac_res" >&5
20597 echo "${ECHO_T}$ac_res" >&6; }
20598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20599   cat >>confdefs.h <<_ACEOF
20600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20601 _ACEOF
20602
20603 fi
20604
20605 done
20606
20607 fi
20608
20609
20610 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20611 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20612 if test "${ac_cv_c_const+set}" = set; then
20613   echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615   cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621
20622 int
20623 main ()
20624 {
20625 /* FIXME: Include the comments suggested by Paul. */
20626 #ifndef __cplusplus
20627   /* Ultrix mips cc rejects this.  */
20628   typedef int charset[2];
20629   const charset cs;
20630   /* SunOS 4.1.1 cc rejects this.  */
20631   char const *const *pcpcc;
20632   char **ppc;
20633   /* NEC SVR4.0.2 mips cc rejects this.  */
20634   struct point {int x, y;};
20635   static struct point const zero = {0,0};
20636   /* AIX XL C 1.02.0.0 rejects this.
20637      It does not let you subtract one const X* pointer from another in
20638      an arm of an if-expression whose if-part is not a constant
20639      expression */
20640   const char *g = "string";
20641   pcpcc = &g + (g ? g-g : 0);
20642   /* HPUX 7.0 cc rejects these. */
20643   ++pcpcc;
20644   ppc = (char**) pcpcc;
20645   pcpcc = (char const *const *) ppc;
20646   { /* SCO 3.2v4 cc rejects this.  */
20647     char *t;
20648     char const *s = 0 ? (char *) 0 : (char const *) 0;
20649
20650     *t++ = 0;
20651     if (s) return 0;
20652   }
20653   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20654     int x[] = {25, 17};
20655     const int *foo = &x[0];
20656     ++foo;
20657   }
20658   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20659     typedef const int *iptr;
20660     iptr p = 0;
20661     ++p;
20662   }
20663   { /* AIX XL C 1.02.0.0 rejects this saying
20664        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20665     struct s { int j; const int *ap[3]; };
20666     struct s *b; b->j = 5;
20667   }
20668   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20669     const int foo = 10;
20670     if (!foo) return 0;
20671   }
20672   return !cs[0] && !zero.x;
20673 #endif
20674
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_compile") 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } && {
20693          test -z "$ac_c_werror_flag" ||
20694          test ! -s conftest.err
20695        } && test -s conftest.$ac_objext; then
20696   ac_cv_c_const=yes
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701         ac_cv_c_const=no
20702 fi
20703
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 fi
20706 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20707 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20708 if test $ac_cv_c_const = no; then
20709
20710 cat >>confdefs.h <<\_ACEOF
20711 #define const
20712 _ACEOF
20713
20714 fi
20715
20716 { echo "$as_me:$LINENO: checking for inline" >&5
20717 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20718 if test "${ac_cv_c_inline+set}" = set; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   ac_cv_c_inline=no
20722 for ac_kw in inline __inline__ __inline; do
20723   cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 #ifndef __cplusplus
20730 typedef int foo_t;
20731 static $ac_kw foo_t static_foo () {return 0; }
20732 $ac_kw foo_t foo () {return 0; }
20733 #endif
20734
20735 _ACEOF
20736 rm -f conftest.$ac_objext
20737 if { (ac_try="$ac_compile"
20738 case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_compile") 2>conftest.er1
20744   ac_status=$?
20745   grep -v '^ *+' conftest.er1 >conftest.err
20746   rm -f conftest.er1
20747   cat conftest.err >&5
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } && {
20750          test -z "$ac_c_werror_flag" ||
20751          test ! -s conftest.err
20752        } && test -s conftest.$ac_objext; then
20753   ac_cv_c_inline=$ac_kw
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762   test "$ac_cv_c_inline" != no && break
20763 done
20764
20765 fi
20766 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20767 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20768
20769
20770 case $ac_cv_c_inline in
20771   inline | yes) ;;
20772   *)
20773     case $ac_cv_c_inline in
20774       no) ac_val=;;
20775       *) ac_val=$ac_cv_c_inline;;
20776     esac
20777     cat >>confdefs.h <<_ACEOF
20778 #ifndef __cplusplus
20779 #define inline $ac_val
20780 #endif
20781 _ACEOF
20782     ;;
20783 esac
20784
20785
20786 { echo "$as_me:$LINENO: checking for short" >&5
20787 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20788 if test "${ac_cv_type_short+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 $ac_includes_default
20798 typedef short ac__type_new_;
20799 int
20800 main ()
20801 {
20802 if ((ac__type_new_ *) 0)
20803   return 0;
20804 if (sizeof (ac__type_new_))
20805   return 0;
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (ac_try="$ac_compile"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_compile") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_c_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest.$ac_objext; then
20827   ac_cv_type_short=yes
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         ac_cv_type_short=no
20833 fi
20834
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 fi
20837 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20838 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20839
20840 # The cast to long int works around a bug in the HP C Compiler
20841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20843 # This bug is HP SR number 8606223364.
20844 { echo "$as_me:$LINENO: checking size of short" >&5
20845 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20846 if test "${ac_cv_sizeof_short+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   if test "$cross_compiling" = yes; then
20850   # Depending upon the size, compute the lo and hi bounds.
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 $ac_includes_default
20858    typedef short ac__type_sizeof_;
20859 int
20860 main ()
20861 {
20862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20863 test_array [0] = 0
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_lo=0 ac_mid=0
20887   while :; do
20888     cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 $ac_includes_default
20895    typedef short ac__type_sizeof_;
20896 int
20897 main ()
20898 {
20899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20900 test_array [0] = 0
20901
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
20908 case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_compile") 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } && {
20920          test -z "$ac_c_werror_flag" ||
20921          test ! -s conftest.err
20922        } && test -s conftest.$ac_objext; then
20923   ac_hi=$ac_mid; break
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928         ac_lo=`expr $ac_mid + 1`
20929                         if test $ac_lo -le $ac_mid; then
20930                           ac_lo= ac_hi=
20931                           break
20932                         fi
20933                         ac_mid=`expr 2 '*' $ac_mid + 1`
20934 fi
20935
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937   done
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 $ac_includes_default
20949    typedef short ac__type_sizeof_;
20950 int
20951 main ()
20952 {
20953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20954 test_array [0] = 0
20955
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_compile") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && {
20974          test -z "$ac_c_werror_flag" ||
20975          test ! -s conftest.err
20976        } && test -s conftest.$ac_objext; then
20977   ac_hi=-1 ac_mid=-1
20978   while :; do
20979     cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 $ac_includes_default
20986    typedef short ac__type_sizeof_;
20987 int
20988 main ()
20989 {
20990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20991 test_array [0] = 0
20992
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_compile") 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } && {
21011          test -z "$ac_c_werror_flag" ||
21012          test ! -s conftest.err
21013        } && test -s conftest.$ac_objext; then
21014   ac_lo=$ac_mid; break
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019         ac_hi=`expr '(' $ac_mid ')' - 1`
21020                         if test $ac_mid -le $ac_hi; then
21021                           ac_lo= ac_hi=
21022                           break
21023                         fi
21024                         ac_mid=`expr 2 '*' $ac_mid`
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028   done
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033         ac_lo= ac_hi=
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 fi
21038
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 # Binary search between lo and hi bounds.
21041 while test "x$ac_lo" != "x$ac_hi"; do
21042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 $ac_includes_default
21050    typedef short ac__type_sizeof_;
21051 int
21052 main ()
21053 {
21054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21055 test_array [0] = 0
21056
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068   (eval "$ac_compile") 2>conftest.er1
21069   ac_status=$?
21070   grep -v '^ *+' conftest.er1 >conftest.err
21071   rm -f conftest.er1
21072   cat conftest.err >&5
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); } && {
21075          test -z "$ac_c_werror_flag" ||
21076          test ! -s conftest.err
21077        } && test -s conftest.$ac_objext; then
21078   ac_hi=$ac_mid
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083         ac_lo=`expr '(' $ac_mid ')' + 1`
21084 fi
21085
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 done
21088 case $ac_lo in
21089 ?*) ac_cv_sizeof_short=$ac_lo;;
21090 '') if test "$ac_cv_type_short" = yes; then
21091      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21092 See \`config.log' for more details." >&5
21093 echo "$as_me: error: cannot compute sizeof (short)
21094 See \`config.log' for more details." >&2;}
21095    { (exit 77); exit 77; }; }
21096    else
21097      ac_cv_sizeof_short=0
21098    fi ;;
21099 esac
21100 else
21101   cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 $ac_includes_default
21108    typedef short ac__type_sizeof_;
21109 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21110 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21111 #include <stdio.h>
21112 #include <stdlib.h>
21113 int
21114 main ()
21115 {
21116
21117   FILE *f = fopen ("conftest.val", "w");
21118   if (! f)
21119     return 1;
21120   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21121     {
21122       long int i = longval ();
21123       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21124         return 1;
21125       fprintf (f, "%ld\n", i);
21126     }
21127   else
21128     {
21129       unsigned long int i = ulongval ();
21130       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21131         return 1;
21132       fprintf (f, "%lu\n", i);
21133     }
21134   return ferror (f) || fclose (f) != 0;
21135
21136   ;
21137   return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest$ac_exeext
21141 if { (ac_try="$ac_link"
21142 case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_link") 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21151   { (case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_try") 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_cv_sizeof_short=`cat conftest.val`
21161 else
21162   echo "$as_me: program exited with status $ac_status" >&5
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166 ( exit $ac_status )
21167 if test "$ac_cv_type_short" = yes; then
21168      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21169 See \`config.log' for more details." >&5
21170 echo "$as_me: error: cannot compute sizeof (short)
21171 See \`config.log' for more details." >&2;}
21172    { (exit 77); exit 77; }; }
21173    else
21174      ac_cv_sizeof_short=0
21175    fi
21176 fi
21177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21178 fi
21179 rm -f conftest.val
21180 fi
21181 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21182 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21183
21184
21185
21186 cat >>confdefs.h <<_ACEOF
21187 #define SIZEOF_SHORT $ac_cv_sizeof_short
21188 _ACEOF
21189
21190
21191 { echo "$as_me:$LINENO: checking for void *" >&5
21192 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21193 if test "${ac_cv_type_void_p+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 $ac_includes_default
21203 typedef void * ac__type_new_;
21204 int
21205 main ()
21206 {
21207 if ((ac__type_new_ *) 0)
21208   return 0;
21209 if (sizeof (ac__type_new_))
21210   return 0;
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_cv_type_void_p=yes
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_cv_type_void_p=no
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241 fi
21242 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21243 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21244
21245 # The cast to long int works around a bug in the HP C Compiler
21246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21248 # This bug is HP SR number 8606223364.
21249 { echo "$as_me:$LINENO: checking size of void *" >&5
21250 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21251 if test "${ac_cv_sizeof_void_p+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   if test "$cross_compiling" = yes; then
21255   # Depending upon the size, compute the lo and hi bounds.
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 $ac_includes_default
21263    typedef void * ac__type_sizeof_;
21264 int
21265 main ()
21266 {
21267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21268 test_array [0] = 0
21269
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_compile") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && {
21288          test -z "$ac_c_werror_flag" ||
21289          test ! -s conftest.err
21290        } && test -s conftest.$ac_objext; then
21291   ac_lo=0 ac_mid=0
21292   while :; do
21293     cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 $ac_includes_default
21300    typedef void * ac__type_sizeof_;
21301 int
21302 main ()
21303 {
21304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21305 test_array [0] = 0
21306
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315   *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318   (eval "$ac_compile") 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } && {
21325          test -z "$ac_c_werror_flag" ||
21326          test ! -s conftest.err
21327        } && test -s conftest.$ac_objext; then
21328   ac_hi=$ac_mid; break
21329 else
21330   echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333         ac_lo=`expr $ac_mid + 1`
21334                         if test $ac_lo -le $ac_mid; then
21335                           ac_lo= ac_hi=
21336                           break
21337                         fi
21338                         ac_mid=`expr 2 '*' $ac_mid + 1`
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342   done
21343 else
21344   echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347         cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h.  */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h.  */
21353 $ac_includes_default
21354    typedef void * ac__type_sizeof_;
21355 int
21356 main ()
21357 {
21358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21359 test_array [0] = 0
21360
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369   *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372   (eval "$ac_compile") 2>conftest.er1
21373   ac_status=$?
21374   grep -v '^ *+' conftest.er1 >conftest.err
21375   rm -f conftest.er1
21376   cat conftest.err >&5
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); } && {
21379          test -z "$ac_c_werror_flag" ||
21380          test ! -s conftest.err
21381        } && test -s conftest.$ac_objext; then
21382   ac_hi=-1 ac_mid=-1
21383   while :; do
21384     cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390 $ac_includes_default
21391    typedef void * ac__type_sizeof_;
21392 int
21393 main ()
21394 {
21395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21396 test_array [0] = 0
21397
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_compile") 2>conftest.er1
21410   ac_status=$?
21411   grep -v '^ *+' conftest.er1 >conftest.err
21412   rm -f conftest.er1
21413   cat conftest.err >&5
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); } && {
21416          test -z "$ac_c_werror_flag" ||
21417          test ! -s conftest.err
21418        } && test -s conftest.$ac_objext; then
21419   ac_lo=$ac_mid; break
21420 else
21421   echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424         ac_hi=`expr '(' $ac_mid ')' - 1`
21425                         if test $ac_mid -le $ac_hi; then
21426                           ac_lo= ac_hi=
21427                           break
21428                         fi
21429                         ac_mid=`expr 2 '*' $ac_mid`
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433   done
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438         ac_lo= ac_hi=
21439 fi
21440
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 fi
21443
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 # Binary search between lo and hi bounds.
21446 while test "x$ac_lo" != "x$ac_hi"; do
21447   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21448   cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 $ac_includes_default
21455    typedef void * ac__type_sizeof_;
21456 int
21457 main ()
21458 {
21459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21460 test_array [0] = 0
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_compile") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && {
21480          test -z "$ac_c_werror_flag" ||
21481          test ! -s conftest.err
21482        } && test -s conftest.$ac_objext; then
21483   ac_hi=$ac_mid
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488         ac_lo=`expr '(' $ac_mid ')' + 1`
21489 fi
21490
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21492 done
21493 case $ac_lo in
21494 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21495 '') if test "$ac_cv_type_void_p" = yes; then
21496      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21497 See \`config.log' for more details." >&5
21498 echo "$as_me: error: cannot compute sizeof (void *)
21499 See \`config.log' for more details." >&2;}
21500    { (exit 77); exit 77; }; }
21501    else
21502      ac_cv_sizeof_void_p=0
21503    fi ;;
21504 esac
21505 else
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 $ac_includes_default
21513    typedef void * ac__type_sizeof_;
21514 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21515 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21516 #include <stdio.h>
21517 #include <stdlib.h>
21518 int
21519 main ()
21520 {
21521
21522   FILE *f = fopen ("conftest.val", "w");
21523   if (! f)
21524     return 1;
21525   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21526     {
21527       long int i = longval ();
21528       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21529         return 1;
21530       fprintf (f, "%ld\n", i);
21531     }
21532   else
21533     {
21534       unsigned long int i = ulongval ();
21535       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21536         return 1;
21537       fprintf (f, "%lu\n", i);
21538     }
21539   return ferror (f) || fclose (f) != 0;
21540
21541   ;
21542   return 0;
21543 }
21544 _ACEOF
21545 rm -f conftest$ac_exeext
21546 if { (ac_try="$ac_link"
21547 case "(($ac_try" in
21548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549   *) ac_try_echo=$ac_try;;
21550 esac
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552   (eval "$ac_link") 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21556   { (case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561   (eval "$ac_try") 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_cv_sizeof_void_p=`cat conftest.val`
21566 else
21567   echo "$as_me: program exited with status $ac_status" >&5
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571 ( exit $ac_status )
21572 if test "$ac_cv_type_void_p" = yes; then
21573      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21574 See \`config.log' for more details." >&5
21575 echo "$as_me: error: cannot compute sizeof (void *)
21576 See \`config.log' for more details." >&2;}
21577    { (exit 77); exit 77; }; }
21578    else
21579      ac_cv_sizeof_void_p=0
21580    fi
21581 fi
21582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21583 fi
21584 rm -f conftest.val
21585 fi
21586 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21587 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21588
21589
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21593 _ACEOF
21594
21595
21596 { echo "$as_me:$LINENO: checking for int" >&5
21597 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21598 if test "${ac_cv_type_int+set}" = set; then
21599   echo $ECHO_N "(cached) $ECHO_C" >&6
21600 else
21601   cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607 $ac_includes_default
21608 typedef int ac__type_new_;
21609 int
21610 main ()
21611 {
21612 if ((ac__type_new_ *) 0)
21613   return 0;
21614 if (sizeof (ac__type_new_))
21615   return 0;
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext
21621 if { (ac_try="$ac_compile"
21622 case "(($ac_try" in
21623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624   *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627   (eval "$ac_compile") 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } && {
21634          test -z "$ac_c_werror_flag" ||
21635          test ! -s conftest.err
21636        } && test -s conftest.$ac_objext; then
21637   ac_cv_type_int=yes
21638 else
21639   echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642         ac_cv_type_int=no
21643 fi
21644
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21646 fi
21647 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21648 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21649
21650 # The cast to long int works around a bug in the HP C Compiler
21651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21653 # This bug is HP SR number 8606223364.
21654 { echo "$as_me:$LINENO: checking size of int" >&5
21655 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21656 if test "${ac_cv_sizeof_int+set}" = set; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659   if test "$cross_compiling" = yes; then
21660   # Depending upon the size, compute the lo and hi bounds.
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 $ac_includes_default
21668    typedef int ac__type_sizeof_;
21669 int
21670 main ()
21671 {
21672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21673 test_array [0] = 0
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683   *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686   (eval "$ac_compile") 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } && {
21693          test -z "$ac_c_werror_flag" ||
21694          test ! -s conftest.err
21695        } && test -s conftest.$ac_objext; then
21696   ac_lo=0 ac_mid=0
21697   while :; do
21698     cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 $ac_includes_default
21705    typedef int ac__type_sizeof_;
21706 int
21707 main ()
21708 {
21709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21710 test_array [0] = 0
21711
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (ac_try="$ac_compile"
21718 case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723   (eval "$ac_compile") 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } && {
21730          test -z "$ac_c_werror_flag" ||
21731          test ! -s conftest.err
21732        } && test -s conftest.$ac_objext; then
21733   ac_hi=$ac_mid; break
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738         ac_lo=`expr $ac_mid + 1`
21739                         if test $ac_lo -le $ac_mid; then
21740                           ac_lo= ac_hi=
21741                           break
21742                         fi
21743                         ac_mid=`expr 2 '*' $ac_mid + 1`
21744 fi
21745
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747   done
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752         cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758 $ac_includes_default
21759    typedef int ac__type_sizeof_;
21760 int
21761 main ()
21762 {
21763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21764 test_array [0] = 0
21765
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext
21771 if { (ac_try="$ac_compile"
21772 case "(($ac_try" in
21773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774   *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777   (eval "$ac_compile") 2>conftest.er1
21778   ac_status=$?
21779   grep -v '^ *+' conftest.er1 >conftest.err
21780   rm -f conftest.er1
21781   cat conftest.err >&5
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); } && {
21784          test -z "$ac_c_werror_flag" ||
21785          test ! -s conftest.err
21786        } && test -s conftest.$ac_objext; then
21787   ac_hi=-1 ac_mid=-1
21788   while :; do
21789     cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795 $ac_includes_default
21796    typedef int ac__type_sizeof_;
21797 int
21798 main ()
21799 {
21800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21801 test_array [0] = 0
21802
21803   ;
21804   return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest.$ac_objext
21808 if { (ac_try="$ac_compile"
21809 case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_compile") 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } && {
21821          test -z "$ac_c_werror_flag" ||
21822          test ! -s conftest.err
21823        } && test -s conftest.$ac_objext; then
21824   ac_lo=$ac_mid; break
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         ac_hi=`expr '(' $ac_mid ')' - 1`
21830                         if test $ac_mid -le $ac_hi; then
21831                           ac_lo= ac_hi=
21832                           break
21833                         fi
21834                         ac_mid=`expr 2 '*' $ac_mid`
21835 fi
21836
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838   done
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843         ac_lo= ac_hi=
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 fi
21848
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 # Binary search between lo and hi bounds.
21851 while test "x$ac_lo" != "x$ac_hi"; do
21852   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21853   cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 $ac_includes_default
21860    typedef int ac__type_sizeof_;
21861 int
21862 main ()
21863 {
21864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21865 test_array [0] = 0
21866
21867   ;
21868   return 0;
21869 }
21870 _ACEOF
21871 rm -f conftest.$ac_objext
21872 if { (ac_try="$ac_compile"
21873 case "(($ac_try" in
21874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875   *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878   (eval "$ac_compile") 2>conftest.er1
21879   ac_status=$?
21880   grep -v '^ *+' conftest.er1 >conftest.err
21881   rm -f conftest.er1
21882   cat conftest.err >&5
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } && {
21885          test -z "$ac_c_werror_flag" ||
21886          test ! -s conftest.err
21887        } && test -s conftest.$ac_objext; then
21888   ac_hi=$ac_mid
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893         ac_lo=`expr '(' $ac_mid ')' + 1`
21894 fi
21895
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 done
21898 case $ac_lo in
21899 ?*) ac_cv_sizeof_int=$ac_lo;;
21900 '') if test "$ac_cv_type_int" = yes; then
21901      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21902 See \`config.log' for more details." >&5
21903 echo "$as_me: error: cannot compute sizeof (int)
21904 See \`config.log' for more details." >&2;}
21905    { (exit 77); exit 77; }; }
21906    else
21907      ac_cv_sizeof_int=0
21908    fi ;;
21909 esac
21910 else
21911   cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 $ac_includes_default
21918    typedef int ac__type_sizeof_;
21919 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21920 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21921 #include <stdio.h>
21922 #include <stdlib.h>
21923 int
21924 main ()
21925 {
21926
21927   FILE *f = fopen ("conftest.val", "w");
21928   if (! f)
21929     return 1;
21930   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21931     {
21932       long int i = longval ();
21933       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21934         return 1;
21935       fprintf (f, "%ld\n", i);
21936     }
21937   else
21938     {
21939       unsigned long int i = ulongval ();
21940       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21941         return 1;
21942       fprintf (f, "%lu\n", i);
21943     }
21944   return ferror (f) || fclose (f) != 0;
21945
21946   ;
21947   return 0;
21948 }
21949 _ACEOF
21950 rm -f conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_link") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21961   { (case "(($ac_try" in
21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963   *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966   (eval "$ac_try") 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ac_cv_sizeof_int=`cat conftest.val`
21971 else
21972   echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ( exit $ac_status )
21977 if test "$ac_cv_type_int" = yes; then
21978      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21979 See \`config.log' for more details." >&5
21980 echo "$as_me: error: cannot compute sizeof (int)
21981 See \`config.log' for more details." >&2;}
21982    { (exit 77); exit 77; }; }
21983    else
21984      ac_cv_sizeof_int=0
21985    fi
21986 fi
21987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21988 fi
21989 rm -f conftest.val
21990 fi
21991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21992 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21993
21994
21995
21996 cat >>confdefs.h <<_ACEOF
21997 #define SIZEOF_INT $ac_cv_sizeof_int
21998 _ACEOF
21999
22000
22001 { echo "$as_me:$LINENO: checking for long" >&5
22002 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22003 if test "${ac_cv_type_long+set}" = set; then
22004   echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006   cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 $ac_includes_default
22013 typedef long ac__type_new_;
22014 int
22015 main ()
22016 {
22017 if ((ac__type_new_ *) 0)
22018   return 0;
22019 if (sizeof (ac__type_new_))
22020   return 0;
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_compile") 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } && {
22039          test -z "$ac_c_werror_flag" ||
22040          test ! -s conftest.err
22041        } && test -s conftest.$ac_objext; then
22042   ac_cv_type_long=yes
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047         ac_cv_type_long=no
22048 fi
22049
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 fi
22052 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22053 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22054
22055 # The cast to long int works around a bug in the HP C Compiler
22056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22058 # This bug is HP SR number 8606223364.
22059 { echo "$as_me:$LINENO: checking size of long" >&5
22060 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22061 if test "${ac_cv_sizeof_long+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064   if test "$cross_compiling" = yes; then
22065   # Depending upon the size, compute the lo and hi bounds.
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 $ac_includes_default
22073    typedef long ac__type_sizeof_;
22074 int
22075 main ()
22076 {
22077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22078 test_array [0] = 0
22079
22080   ;
22081   return 0;
22082 }
22083 _ACEOF
22084 rm -f conftest.$ac_objext
22085 if { (ac_try="$ac_compile"
22086 case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_compile") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && {
22098          test -z "$ac_c_werror_flag" ||
22099          test ! -s conftest.err
22100        } && test -s conftest.$ac_objext; then
22101   ac_lo=0 ac_mid=0
22102   while :; do
22103     cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109 $ac_includes_default
22110    typedef long ac__type_sizeof_;
22111 int
22112 main ()
22113 {
22114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22115 test_array [0] = 0
22116
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_compile") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } && {
22135          test -z "$ac_c_werror_flag" ||
22136          test ! -s conftest.err
22137        } && test -s conftest.$ac_objext; then
22138   ac_hi=$ac_mid; break
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143         ac_lo=`expr $ac_mid + 1`
22144                         if test $ac_lo -le $ac_mid; then
22145                           ac_lo= ac_hi=
22146                           break
22147                         fi
22148                         ac_mid=`expr 2 '*' $ac_mid + 1`
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152   done
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157         cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 $ac_includes_default
22164    typedef long ac__type_sizeof_;
22165 int
22166 main ()
22167 {
22168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22169 test_array [0] = 0
22170
22171   ;
22172   return 0;
22173 }
22174 _ACEOF
22175 rm -f conftest.$ac_objext
22176 if { (ac_try="$ac_compile"
22177 case "(($ac_try" in
22178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22179   *) ac_try_echo=$ac_try;;
22180 esac
22181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22182   (eval "$ac_compile") 2>conftest.er1
22183   ac_status=$?
22184   grep -v '^ *+' conftest.er1 >conftest.err
22185   rm -f conftest.er1
22186   cat conftest.err >&5
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); } && {
22189          test -z "$ac_c_werror_flag" ||
22190          test ! -s conftest.err
22191        } && test -s conftest.$ac_objext; then
22192   ac_hi=-1 ac_mid=-1
22193   while :; do
22194     cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h.  */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h.  */
22200 $ac_includes_default
22201    typedef long ac__type_sizeof_;
22202 int
22203 main ()
22204 {
22205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22206 test_array [0] = 0
22207
22208   ;
22209   return 0;
22210 }
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216   *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219   (eval "$ac_compile") 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } && {
22226          test -z "$ac_c_werror_flag" ||
22227          test ! -s conftest.err
22228        } && test -s conftest.$ac_objext; then
22229   ac_lo=$ac_mid; break
22230 else
22231   echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234         ac_hi=`expr '(' $ac_mid ')' - 1`
22235                         if test $ac_mid -le $ac_hi; then
22236                           ac_lo= ac_hi=
22237                           break
22238                         fi
22239                         ac_mid=`expr 2 '*' $ac_mid`
22240 fi
22241
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243   done
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248         ac_lo= ac_hi=
22249 fi
22250
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 # Binary search between lo and hi bounds.
22256 while test "x$ac_lo" != "x$ac_hi"; do
22257   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22258   cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h.  */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h.  */
22264 $ac_includes_default
22265    typedef long ac__type_sizeof_;
22266 int
22267 main ()
22268 {
22269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22270 test_array [0] = 0
22271
22272   ;
22273   return 0;
22274 }
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_compile") 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } && {
22290          test -z "$ac_c_werror_flag" ||
22291          test ! -s conftest.err
22292        } && test -s conftest.$ac_objext; then
22293   ac_hi=$ac_mid
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298         ac_lo=`expr '(' $ac_mid ')' + 1`
22299 fi
22300
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 done
22303 case $ac_lo in
22304 ?*) ac_cv_sizeof_long=$ac_lo;;
22305 '') if test "$ac_cv_type_long" = yes; then
22306      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22307 See \`config.log' for more details." >&5
22308 echo "$as_me: error: cannot compute sizeof (long)
22309 See \`config.log' for more details." >&2;}
22310    { (exit 77); exit 77; }; }
22311    else
22312      ac_cv_sizeof_long=0
22313    fi ;;
22314 esac
22315 else
22316   cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322 $ac_includes_default
22323    typedef long ac__type_sizeof_;
22324 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22325 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22326 #include <stdio.h>
22327 #include <stdlib.h>
22328 int
22329 main ()
22330 {
22331
22332   FILE *f = fopen ("conftest.val", "w");
22333   if (! f)
22334     return 1;
22335   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22336     {
22337       long int i = longval ();
22338       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22339         return 1;
22340       fprintf (f, "%ld\n", i);
22341     }
22342   else
22343     {
22344       unsigned long int i = ulongval ();
22345       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22346         return 1;
22347       fprintf (f, "%lu\n", i);
22348     }
22349   return ferror (f) || fclose (f) != 0;
22350
22351   ;
22352   return 0;
22353 }
22354 _ACEOF
22355 rm -f conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359   *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362   (eval "$ac_link") 2>&5
22363   ac_status=$?
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22366   { (case "(($ac_try" in
22367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368   *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371   (eval "$ac_try") 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; }; then
22375   ac_cv_sizeof_long=`cat conftest.val`
22376 else
22377   echo "$as_me: program exited with status $ac_status" >&5
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381 ( exit $ac_status )
22382 if test "$ac_cv_type_long" = yes; then
22383      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22384 See \`config.log' for more details." >&5
22385 echo "$as_me: error: cannot compute sizeof (long)
22386 See \`config.log' for more details." >&2;}
22387    { (exit 77); exit 77; }; }
22388    else
22389      ac_cv_sizeof_long=0
22390    fi
22391 fi
22392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22393 fi
22394 rm -f conftest.val
22395 fi
22396 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22397 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22398
22399
22400
22401 cat >>confdefs.h <<_ACEOF
22402 #define SIZEOF_LONG $ac_cv_sizeof_long
22403 _ACEOF
22404
22405
22406 { echo "$as_me:$LINENO: checking for size_t" >&5
22407 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22408 if test "${ac_cv_type_size_t+set}" = set; then
22409   echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411   cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417 $ac_includes_default
22418 typedef size_t ac__type_new_;
22419 int
22420 main ()
22421 {
22422 if ((ac__type_new_ *) 0)
22423   return 0;
22424 if (sizeof (ac__type_new_))
22425   return 0;
22426   ;
22427   return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434   *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437   (eval "$ac_compile") 2>conftest.er1
22438   ac_status=$?
22439   grep -v '^ *+' conftest.er1 >conftest.err
22440   rm -f conftest.er1
22441   cat conftest.err >&5
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } && {
22444          test -z "$ac_c_werror_flag" ||
22445          test ! -s conftest.err
22446        } && test -s conftest.$ac_objext; then
22447   ac_cv_type_size_t=yes
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         ac_cv_type_size_t=no
22453 fi
22454
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 fi
22457 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22458 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22459
22460 # The cast to long int works around a bug in the HP C Compiler
22461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22463 # This bug is HP SR number 8606223364.
22464 { echo "$as_me:$LINENO: checking size of size_t" >&5
22465 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22466 if test "${ac_cv_sizeof_size_t+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469   if test "$cross_compiling" = yes; then
22470   # Depending upon the size, compute the lo and hi bounds.
22471 cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h.  */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h.  */
22477 $ac_includes_default
22478    typedef size_t ac__type_sizeof_;
22479 int
22480 main ()
22481 {
22482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22483 test_array [0] = 0
22484
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext
22490 if { (ac_try="$ac_compile"
22491 case "(($ac_try" in
22492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493   *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496   (eval "$ac_compile") 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } && {
22503          test -z "$ac_c_werror_flag" ||
22504          test ! -s conftest.err
22505        } && test -s conftest.$ac_objext; then
22506   ac_lo=0 ac_mid=0
22507   while :; do
22508     cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 $ac_includes_default
22515    typedef size_t ac__type_sizeof_;
22516 int
22517 main ()
22518 {
22519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22520 test_array [0] = 0
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } && {
22540          test -z "$ac_c_werror_flag" ||
22541          test ! -s conftest.err
22542        } && test -s conftest.$ac_objext; then
22543   ac_hi=$ac_mid; break
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         ac_lo=`expr $ac_mid + 1`
22549                         if test $ac_lo -le $ac_mid; then
22550                           ac_lo= ac_hi=
22551                           break
22552                         fi
22553                         ac_mid=`expr 2 '*' $ac_mid + 1`
22554 fi
22555
22556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557   done
22558 else
22559   echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562         cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 $ac_includes_default
22569    typedef size_t ac__type_sizeof_;
22570 int
22571 main ()
22572 {
22573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22574 test_array [0] = 0
22575
22576   ;
22577   return 0;
22578 }
22579 _ACEOF
22580 rm -f conftest.$ac_objext
22581 if { (ac_try="$ac_compile"
22582 case "(($ac_try" in
22583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584   *) ac_try_echo=$ac_try;;
22585 esac
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587   (eval "$ac_compile") 2>conftest.er1
22588   ac_status=$?
22589   grep -v '^ *+' conftest.er1 >conftest.err
22590   rm -f conftest.er1
22591   cat conftest.err >&5
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } && {
22594          test -z "$ac_c_werror_flag" ||
22595          test ! -s conftest.err
22596        } && test -s conftest.$ac_objext; then
22597   ac_hi=-1 ac_mid=-1
22598   while :; do
22599     cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 $ac_includes_default
22606    typedef size_t ac__type_sizeof_;
22607 int
22608 main ()
22609 {
22610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22611 test_array [0] = 0
22612
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_compile") 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } && {
22631          test -z "$ac_c_werror_flag" ||
22632          test ! -s conftest.err
22633        } && test -s conftest.$ac_objext; then
22634   ac_lo=$ac_mid; break
22635 else
22636   echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639         ac_hi=`expr '(' $ac_mid ')' - 1`
22640                         if test $ac_mid -le $ac_hi; then
22641                           ac_lo= ac_hi=
22642                           break
22643                         fi
22644                         ac_mid=`expr 2 '*' $ac_mid`
22645 fi
22646
22647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22648   done
22649 else
22650   echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22652
22653         ac_lo= ac_hi=
22654 fi
22655
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 fi
22658
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 # Binary search between lo and hi bounds.
22661 while test "x$ac_lo" != "x$ac_hi"; do
22662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22663   cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 $ac_includes_default
22670    typedef size_t ac__type_sizeof_;
22671 int
22672 main ()
22673 {
22674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22675 test_array [0] = 0
22676
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_compile") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest.$ac_objext; then
22698   ac_hi=$ac_mid
22699 else
22700   echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703         ac_lo=`expr '(' $ac_mid ')' + 1`
22704 fi
22705
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 done
22708 case $ac_lo in
22709 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22710 '') if test "$ac_cv_type_size_t" = yes; then
22711      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22712 See \`config.log' for more details." >&5
22713 echo "$as_me: error: cannot compute sizeof (size_t)
22714 See \`config.log' for more details." >&2;}
22715    { (exit 77); exit 77; }; }
22716    else
22717      ac_cv_sizeof_size_t=0
22718    fi ;;
22719 esac
22720 else
22721   cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 $ac_includes_default
22728    typedef size_t ac__type_sizeof_;
22729 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22730 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22731 #include <stdio.h>
22732 #include <stdlib.h>
22733 int
22734 main ()
22735 {
22736
22737   FILE *f = fopen ("conftest.val", "w");
22738   if (! f)
22739     return 1;
22740   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22741     {
22742       long int i = longval ();
22743       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22744         return 1;
22745       fprintf (f, "%ld\n", i);
22746     }
22747   else
22748     {
22749       unsigned long int i = ulongval ();
22750       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22751         return 1;
22752       fprintf (f, "%lu\n", i);
22753     }
22754   return ferror (f) || fclose (f) != 0;
22755
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest$ac_exeext
22761 if { (ac_try="$ac_link"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767   (eval "$ac_link") 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22771   { (case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_try") 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; }; then
22780   ac_cv_sizeof_size_t=`cat conftest.val`
22781 else
22782   echo "$as_me: program exited with status $ac_status" >&5
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786 ( exit $ac_status )
22787 if test "$ac_cv_type_size_t" = yes; then
22788      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22789 See \`config.log' for more details." >&5
22790 echo "$as_me: error: cannot compute sizeof (size_t)
22791 See \`config.log' for more details." >&2;}
22792    { (exit 77); exit 77; }; }
22793    else
22794      ac_cv_sizeof_size_t=0
22795    fi
22796 fi
22797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22798 fi
22799 rm -f conftest.val
22800 fi
22801 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22802 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22803
22804
22805
22806 cat >>confdefs.h <<_ACEOF
22807 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22808 _ACEOF
22809
22810
22811
22812 case "${host}" in
22813     arm-*-linux* )
22814         { echo "$as_me:$LINENO: checking for long long" >&5
22815 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22816 if test "${ac_cv_type_long_long+set}" = set; then
22817   echo $ECHO_N "(cached) $ECHO_C" >&6
22818 else
22819   cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825 $ac_includes_default
22826 typedef long long ac__type_new_;
22827 int
22828 main ()
22829 {
22830 if ((ac__type_new_ *) 0)
22831   return 0;
22832 if (sizeof (ac__type_new_))
22833   return 0;
22834   ;
22835   return 0;
22836 }
22837 _ACEOF
22838 rm -f conftest.$ac_objext
22839 if { (ac_try="$ac_compile"
22840 case "(($ac_try" in
22841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842   *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845   (eval "$ac_compile") 2>conftest.er1
22846   ac_status=$?
22847   grep -v '^ *+' conftest.er1 >conftest.err
22848   rm -f conftest.er1
22849   cat conftest.err >&5
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); } && {
22852          test -z "$ac_c_werror_flag" ||
22853          test ! -s conftest.err
22854        } && test -s conftest.$ac_objext; then
22855   ac_cv_type_long_long=yes
22856 else
22857   echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22859
22860         ac_cv_type_long_long=no
22861 fi
22862
22863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 fi
22865 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22866 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22867
22868 # The cast to long int works around a bug in the HP C Compiler
22869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22871 # This bug is HP SR number 8606223364.
22872 { echo "$as_me:$LINENO: checking size of long long" >&5
22873 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22874 if test "${ac_cv_sizeof_long_long+set}" = set; then
22875   echo $ECHO_N "(cached) $ECHO_C" >&6
22876 else
22877   if test "$cross_compiling" = yes; then
22878   # Depending upon the size, compute the lo and hi bounds.
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885 $ac_includes_default
22886    typedef long long ac__type_sizeof_;
22887 int
22888 main ()
22889 {
22890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22891 test_array [0] = 0
22892
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext
22898 if { (ac_try="$ac_compile"
22899 case "(($ac_try" in
22900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901   *) ac_try_echo=$ac_try;;
22902 esac
22903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904   (eval "$ac_compile") 2>conftest.er1
22905   ac_status=$?
22906   grep -v '^ *+' conftest.er1 >conftest.err
22907   rm -f conftest.er1
22908   cat conftest.err >&5
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); } && {
22911          test -z "$ac_c_werror_flag" ||
22912          test ! -s conftest.err
22913        } && test -s conftest.$ac_objext; then
22914   ac_lo=0 ac_mid=0
22915   while :; do
22916     cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 $ac_includes_default
22923    typedef long long ac__type_sizeof_;
22924 int
22925 main ()
22926 {
22927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22928 test_array [0] = 0
22929
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_compile") 2>conftest.er1
22942   ac_status=$?
22943   grep -v '^ *+' conftest.er1 >conftest.err
22944   rm -f conftest.er1
22945   cat conftest.err >&5
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); } && {
22948          test -z "$ac_c_werror_flag" ||
22949          test ! -s conftest.err
22950        } && test -s conftest.$ac_objext; then
22951   ac_hi=$ac_mid; break
22952 else
22953   echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956         ac_lo=`expr $ac_mid + 1`
22957                         if test $ac_lo -le $ac_mid; then
22958                           ac_lo= ac_hi=
22959                           break
22960                         fi
22961                         ac_mid=`expr 2 '*' $ac_mid + 1`
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965   done
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976 $ac_includes_default
22977    typedef long long ac__type_sizeof_;
22978 int
22979 main ()
22980 {
22981 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22982 test_array [0] = 0
22983
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest.$ac_objext; then
23005   ac_hi=-1 ac_mid=-1
23006   while :; do
23007     cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013 $ac_includes_default
23014    typedef long long ac__type_sizeof_;
23015 int
23016 main ()
23017 {
23018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23019 test_array [0] = 0
23020
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (ac_try="$ac_compile"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032   (eval "$ac_compile") 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } && {
23039          test -z "$ac_c_werror_flag" ||
23040          test ! -s conftest.err
23041        } && test -s conftest.$ac_objext; then
23042   ac_lo=$ac_mid; break
23043 else
23044   echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047         ac_hi=`expr '(' $ac_mid ')' - 1`
23048                         if test $ac_mid -le $ac_hi; then
23049                           ac_lo= ac_hi=
23050                           break
23051                         fi
23052                         ac_mid=`expr 2 '*' $ac_mid`
23053 fi
23054
23055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056   done
23057 else
23058   echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061         ac_lo= ac_hi=
23062 fi
23063
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 fi
23066
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 # Binary search between lo and hi bounds.
23069 while test "x$ac_lo" != "x$ac_hi"; do
23070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23071   cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h.  */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h.  */
23077 $ac_includes_default
23078    typedef long long ac__type_sizeof_;
23079 int
23080 main ()
23081 {
23082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23083 test_array [0] = 0
23084
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest.$ac_objext
23090 if { (ac_try="$ac_compile"
23091 case "(($ac_try" in
23092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23093   *) ac_try_echo=$ac_try;;
23094 esac
23095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23096   (eval "$ac_compile") 2>conftest.er1
23097   ac_status=$?
23098   grep -v '^ *+' conftest.er1 >conftest.err
23099   rm -f conftest.er1
23100   cat conftest.err >&5
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); } && {
23103          test -z "$ac_c_werror_flag" ||
23104          test ! -s conftest.err
23105        } && test -s conftest.$ac_objext; then
23106   ac_hi=$ac_mid
23107 else
23108   echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111         ac_lo=`expr '(' $ac_mid ')' + 1`
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 done
23116 case $ac_lo in
23117 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23118 '') if test "$ac_cv_type_long_long" = yes; then
23119      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23120 See \`config.log' for more details." >&5
23121 echo "$as_me: error: cannot compute sizeof (long long)
23122 See \`config.log' for more details." >&2;}
23123    { (exit 77); exit 77; }; }
23124    else
23125      ac_cv_sizeof_long_long=0
23126    fi ;;
23127 esac
23128 else
23129   cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h.  */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h.  */
23135 $ac_includes_default
23136    typedef long long ac__type_sizeof_;
23137 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23138 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23139 #include <stdio.h>
23140 #include <stdlib.h>
23141 int
23142 main ()
23143 {
23144
23145   FILE *f = fopen ("conftest.val", "w");
23146   if (! f)
23147     return 1;
23148   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23149     {
23150       long int i = longval ();
23151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23152         return 1;
23153       fprintf (f, "%ld\n", i);
23154     }
23155   else
23156     {
23157       unsigned long int i = ulongval ();
23158       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23159         return 1;
23160       fprintf (f, "%lu\n", i);
23161     }
23162   return ferror (f) || fclose (f) != 0;
23163
23164   ;
23165   return 0;
23166 }
23167 _ACEOF
23168 rm -f conftest$ac_exeext
23169 if { (ac_try="$ac_link"
23170 case "(($ac_try" in
23171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172   *) ac_try_echo=$ac_try;;
23173 esac
23174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23175   (eval "$ac_link") 2>&5
23176   ac_status=$?
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23179   { (case "(($ac_try" in
23180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181   *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184   (eval "$ac_try") 2>&5
23185   ac_status=$?
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); }; }; then
23188   ac_cv_sizeof_long_long=`cat conftest.val`
23189 else
23190   echo "$as_me: program exited with status $ac_status" >&5
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 ( exit $ac_status )
23195 if test "$ac_cv_type_long_long" = yes; then
23196      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23197 See \`config.log' for more details." >&5
23198 echo "$as_me: error: cannot compute sizeof (long long)
23199 See \`config.log' for more details." >&2;}
23200    { (exit 77); exit 77; }; }
23201    else
23202      ac_cv_sizeof_long_long=0
23203    fi
23204 fi
23205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23206 fi
23207 rm -f conftest.val
23208 fi
23209 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23210 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23211
23212
23213
23214 cat >>confdefs.h <<_ACEOF
23215 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23216 _ACEOF
23217
23218
23219     ;;
23220     *-hp-hpux* )
23221         { echo "$as_me:$LINENO: checking for long long" >&5
23222 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23223 if test "${ac_cv_type_long_long+set}" = set; then
23224   echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226   cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232 $ac_includes_default
23233 typedef long long ac__type_new_;
23234 int
23235 main ()
23236 {
23237 if ((ac__type_new_ *) 0)
23238   return 0;
23239 if (sizeof (ac__type_new_))
23240   return 0;
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext
23246 if { (ac_try="$ac_compile"
23247 case "(($ac_try" in
23248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249   *) ac_try_echo=$ac_try;;
23250 esac
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252   (eval "$ac_compile") 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } && {
23259          test -z "$ac_c_werror_flag" ||
23260          test ! -s conftest.err
23261        } && test -s conftest.$ac_objext; then
23262   ac_cv_type_long_long=yes
23263 else
23264   echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267         ac_cv_type_long_long=no
23268 fi
23269
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 fi
23272 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23273 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23274
23275 # The cast to long int works around a bug in the HP C Compiler
23276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278 # This bug is HP SR number 8606223364.
23279 { echo "$as_me:$LINENO: checking size of long long" >&5
23280 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23281 if test "${ac_cv_sizeof_long_long+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284   if test "$cross_compiling" = yes; then
23285   # Depending upon the size, compute the lo and hi bounds.
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h.  */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h.  */
23292 $ac_includes_default
23293    typedef long long ac__type_sizeof_;
23294 int
23295 main ()
23296 {
23297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23298 test_array [0] = 0
23299
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308   *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311   (eval "$ac_compile") 2>conftest.er1
23312   ac_status=$?
23313   grep -v '^ *+' conftest.er1 >conftest.err
23314   rm -f conftest.er1
23315   cat conftest.err >&5
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); } && {
23318          test -z "$ac_c_werror_flag" ||
23319          test ! -s conftest.err
23320        } && test -s conftest.$ac_objext; then
23321   ac_lo=0 ac_mid=0
23322   while :; do
23323     cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h.  */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h.  */
23329 $ac_includes_default
23330    typedef long long ac__type_sizeof_;
23331 int
23332 main ()
23333 {
23334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23335 test_array [0] = 0
23336
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348   (eval "$ac_compile") 2>conftest.er1
23349   ac_status=$?
23350   grep -v '^ *+' conftest.er1 >conftest.err
23351   rm -f conftest.er1
23352   cat conftest.err >&5
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); } && {
23355          test -z "$ac_c_werror_flag" ||
23356          test ! -s conftest.err
23357        } && test -s conftest.$ac_objext; then
23358   ac_hi=$ac_mid; break
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ac_lo=`expr $ac_mid + 1`
23364                         if test $ac_lo -le $ac_mid; then
23365                           ac_lo= ac_hi=
23366                           break
23367                         fi
23368                         ac_mid=`expr 2 '*' $ac_mid + 1`
23369 fi
23370
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372   done
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377         cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 $ac_includes_default
23384    typedef long long ac__type_sizeof_;
23385 int
23386 main ()
23387 {
23388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23389 test_array [0] = 0
23390
23391   ;
23392   return 0;
23393 }
23394 _ACEOF
23395 rm -f conftest.$ac_objext
23396 if { (ac_try="$ac_compile"
23397 case "(($ac_try" in
23398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399   *) ac_try_echo=$ac_try;;
23400 esac
23401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402   (eval "$ac_compile") 2>conftest.er1
23403   ac_status=$?
23404   grep -v '^ *+' conftest.er1 >conftest.err
23405   rm -f conftest.er1
23406   cat conftest.err >&5
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } && {
23409          test -z "$ac_c_werror_flag" ||
23410          test ! -s conftest.err
23411        } && test -s conftest.$ac_objext; then
23412   ac_hi=-1 ac_mid=-1
23413   while :; do
23414     cat >conftest.$ac_ext <<_ACEOF
23415 /* confdefs.h.  */
23416 _ACEOF
23417 cat confdefs.h >>conftest.$ac_ext
23418 cat >>conftest.$ac_ext <<_ACEOF
23419 /* end confdefs.h.  */
23420 $ac_includes_default
23421    typedef long long ac__type_sizeof_;
23422 int
23423 main ()
23424 {
23425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23426 test_array [0] = 0
23427
23428   ;
23429   return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext
23433 if { (ac_try="$ac_compile"
23434 case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_compile") 2>conftest.er1
23440   ac_status=$?
23441   grep -v '^ *+' conftest.er1 >conftest.err
23442   rm -f conftest.er1
23443   cat conftest.err >&5
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); } && {
23446          test -z "$ac_c_werror_flag" ||
23447          test ! -s conftest.err
23448        } && test -s conftest.$ac_objext; then
23449   ac_lo=$ac_mid; break
23450 else
23451   echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454         ac_hi=`expr '(' $ac_mid ')' - 1`
23455                         if test $ac_mid -le $ac_hi; then
23456                           ac_lo= ac_hi=
23457                           break
23458                         fi
23459                         ac_mid=`expr 2 '*' $ac_mid`
23460 fi
23461
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463   done
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468         ac_lo= ac_hi=
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 fi
23473
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475 # Binary search between lo and hi bounds.
23476 while test "x$ac_lo" != "x$ac_hi"; do
23477   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23478   cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h.  */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h.  */
23484 $ac_includes_default
23485    typedef long long ac__type_sizeof_;
23486 int
23487 main ()
23488 {
23489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23490 test_array [0] = 0
23491
23492   ;
23493   return 0;
23494 }
23495 _ACEOF
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500   *) ac_try_echo=$ac_try;;
23501 esac
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503   (eval "$ac_compile") 2>conftest.er1
23504   ac_status=$?
23505   grep -v '^ *+' conftest.er1 >conftest.err
23506   rm -f conftest.er1
23507   cat conftest.err >&5
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); } && {
23510          test -z "$ac_c_werror_flag" ||
23511          test ! -s conftest.err
23512        } && test -s conftest.$ac_objext; then
23513   ac_hi=$ac_mid
23514 else
23515   echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518         ac_lo=`expr '(' $ac_mid ')' + 1`
23519 fi
23520
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 done
23523 case $ac_lo in
23524 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23525 '') if test "$ac_cv_type_long_long" = yes; then
23526      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23527 See \`config.log' for more details." >&5
23528 echo "$as_me: error: cannot compute sizeof (long long)
23529 See \`config.log' for more details." >&2;}
23530    { (exit 77); exit 77; }; }
23531    else
23532      ac_cv_sizeof_long_long=0
23533    fi ;;
23534 esac
23535 else
23536   cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h.  */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h.  */
23542 $ac_includes_default
23543    typedef long long ac__type_sizeof_;
23544 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23545 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23546 #include <stdio.h>
23547 #include <stdlib.h>
23548 int
23549 main ()
23550 {
23551
23552   FILE *f = fopen ("conftest.val", "w");
23553   if (! f)
23554     return 1;
23555   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23556     {
23557       long int i = longval ();
23558       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23559         return 1;
23560       fprintf (f, "%ld\n", i);
23561     }
23562   else
23563     {
23564       unsigned long int i = ulongval ();
23565       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23566         return 1;
23567       fprintf (f, "%lu\n", i);
23568     }
23569   return ferror (f) || fclose (f) != 0;
23570
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 rm -f conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579   *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582   (eval "$ac_link") 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23586   { (case "(($ac_try" in
23587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588   *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591   (eval "$ac_try") 2>&5
23592   ac_status=$?
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); }; }; then
23595   ac_cv_sizeof_long_long=`cat conftest.val`
23596 else
23597   echo "$as_me: program exited with status $ac_status" >&5
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 ( exit $ac_status )
23602 if test "$ac_cv_type_long_long" = yes; then
23603      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23604 See \`config.log' for more details." >&5
23605 echo "$as_me: error: cannot compute sizeof (long long)
23606 See \`config.log' for more details." >&2;}
23607    { (exit 77); exit 77; }; }
23608    else
23609      ac_cv_sizeof_long_long=0
23610    fi
23611 fi
23612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23613 fi
23614 rm -f conftest.val
23615 fi
23616 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23617 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23618
23619
23620
23621 cat >>confdefs.h <<_ACEOF
23622 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23623 _ACEOF
23624
23625
23626         if test "$ac_cv_sizeof_long_long" != 0; then
23627                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23628         fi
23629     ;;
23630     * )
23631         { echo "$as_me:$LINENO: checking for long long" >&5
23632 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23633 if test "${ac_cv_type_long_long+set}" = set; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636   cat >conftest.$ac_ext <<_ACEOF
23637 /* confdefs.h.  */
23638 _ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h.  */
23642 $ac_includes_default
23643 typedef long long ac__type_new_;
23644 int
23645 main ()
23646 {
23647 if ((ac__type_new_ *) 0)
23648   return 0;
23649 if (sizeof (ac__type_new_))
23650   return 0;
23651   ;
23652   return 0;
23653 }
23654 _ACEOF
23655 rm -f conftest.$ac_objext
23656 if { (ac_try="$ac_compile"
23657 case "(($ac_try" in
23658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659   *) ac_try_echo=$ac_try;;
23660 esac
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662   (eval "$ac_compile") 2>conftest.er1
23663   ac_status=$?
23664   grep -v '^ *+' conftest.er1 >conftest.err
23665   rm -f conftest.er1
23666   cat conftest.err >&5
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); } && {
23669          test -z "$ac_c_werror_flag" ||
23670          test ! -s conftest.err
23671        } && test -s conftest.$ac_objext; then
23672   ac_cv_type_long_long=yes
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677         ac_cv_type_long_long=no
23678 fi
23679
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 fi
23682 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23683 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23684
23685 # The cast to long int works around a bug in the HP C Compiler
23686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23688 # This bug is HP SR number 8606223364.
23689 { echo "$as_me:$LINENO: checking size of long long" >&5
23690 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23691 if test "${ac_cv_sizeof_long_long+set}" = set; then
23692   echo $ECHO_N "(cached) $ECHO_C" >&6
23693 else
23694   if test "$cross_compiling" = yes; then
23695   # Depending upon the size, compute the lo and hi bounds.
23696 cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702 $ac_includes_default
23703    typedef long long ac__type_sizeof_;
23704 int
23705 main ()
23706 {
23707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23708 test_array [0] = 0
23709
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721   (eval "$ac_compile") 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } && {
23728          test -z "$ac_c_werror_flag" ||
23729          test ! -s conftest.err
23730        } && test -s conftest.$ac_objext; then
23731   ac_lo=0 ac_mid=0
23732   while :; do
23733     cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739 $ac_includes_default
23740    typedef long long ac__type_sizeof_;
23741 int
23742 main ()
23743 {
23744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23745 test_array [0] = 0
23746
23747   ;
23748   return 0;
23749 }
23750 _ACEOF
23751 rm -f conftest.$ac_objext
23752 if { (ac_try="$ac_compile"
23753 case "(($ac_try" in
23754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755   *) ac_try_echo=$ac_try;;
23756 esac
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758   (eval "$ac_compile") 2>conftest.er1
23759   ac_status=$?
23760   grep -v '^ *+' conftest.er1 >conftest.err
23761   rm -f conftest.er1
23762   cat conftest.err >&5
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); } && {
23765          test -z "$ac_c_werror_flag" ||
23766          test ! -s conftest.err
23767        } && test -s conftest.$ac_objext; then
23768   ac_hi=$ac_mid; break
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773         ac_lo=`expr $ac_mid + 1`
23774                         if test $ac_lo -le $ac_mid; then
23775                           ac_lo= ac_hi=
23776                           break
23777                         fi
23778                         ac_mid=`expr 2 '*' $ac_mid + 1`
23779 fi
23780
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782   done
23783 else
23784   echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787         cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h.  */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h.  */
23793 $ac_includes_default
23794    typedef long long ac__type_sizeof_;
23795 int
23796 main ()
23797 {
23798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23799 test_array [0] = 0
23800
23801   ;
23802   return 0;
23803 }
23804 _ACEOF
23805 rm -f conftest.$ac_objext
23806 if { (ac_try="$ac_compile"
23807 case "(($ac_try" in
23808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809   *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812   (eval "$ac_compile") 2>conftest.er1
23813   ac_status=$?
23814   grep -v '^ *+' conftest.er1 >conftest.err
23815   rm -f conftest.er1
23816   cat conftest.err >&5
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); } && {
23819          test -z "$ac_c_werror_flag" ||
23820          test ! -s conftest.err
23821        } && test -s conftest.$ac_objext; then
23822   ac_hi=-1 ac_mid=-1
23823   while :; do
23824     cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h.  */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h.  */
23830 $ac_includes_default
23831    typedef long long ac__type_sizeof_;
23832 int
23833 main ()
23834 {
23835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23836 test_array [0] = 0
23837
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846   *) ac_try_echo=$ac_try;;
23847 esac
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849   (eval "$ac_compile") 2>conftest.er1
23850   ac_status=$?
23851   grep -v '^ *+' conftest.er1 >conftest.err
23852   rm -f conftest.er1
23853   cat conftest.err >&5
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); } && {
23856          test -z "$ac_c_werror_flag" ||
23857          test ! -s conftest.err
23858        } && test -s conftest.$ac_objext; then
23859   ac_lo=$ac_mid; break
23860 else
23861   echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23863
23864         ac_hi=`expr '(' $ac_mid ')' - 1`
23865                         if test $ac_mid -le $ac_hi; then
23866                           ac_lo= ac_hi=
23867                           break
23868                         fi
23869                         ac_mid=`expr 2 '*' $ac_mid`
23870 fi
23871
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873   done
23874 else
23875   echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23877
23878         ac_lo= ac_hi=
23879 fi
23880
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882 fi
23883
23884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885 # Binary search between lo and hi bounds.
23886 while test "x$ac_lo" != "x$ac_hi"; do
23887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895    typedef long long ac__type_sizeof_;
23896 int
23897 main ()
23898 {
23899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23900 test_array [0] = 0
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest.$ac_objext
23907 if { (ac_try="$ac_compile"
23908 case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_compile") 2>conftest.er1
23914   ac_status=$?
23915   grep -v '^ *+' conftest.er1 >conftest.err
23916   rm -f conftest.er1
23917   cat conftest.err >&5
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); } && {
23920          test -z "$ac_c_werror_flag" ||
23921          test ! -s conftest.err
23922        } && test -s conftest.$ac_objext; then
23923   ac_hi=$ac_mid
23924 else
23925   echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928         ac_lo=`expr '(' $ac_mid ')' + 1`
23929 fi
23930
23931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23932 done
23933 case $ac_lo in
23934 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23935 '') if test "$ac_cv_type_long_long" = yes; then
23936      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23937 See \`config.log' for more details." >&5
23938 echo "$as_me: error: cannot compute sizeof (long long)
23939 See \`config.log' for more details." >&2;}
23940    { (exit 77); exit 77; }; }
23941    else
23942      ac_cv_sizeof_long_long=0
23943    fi ;;
23944 esac
23945 else
23946   cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952 $ac_includes_default
23953    typedef long long ac__type_sizeof_;
23954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23956 #include <stdio.h>
23957 #include <stdlib.h>
23958 int
23959 main ()
23960 {
23961
23962   FILE *f = fopen ("conftest.val", "w");
23963   if (! f)
23964     return 1;
23965   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23966     {
23967       long int i = longval ();
23968       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23969         return 1;
23970       fprintf (f, "%ld\n", i);
23971     }
23972   else
23973     {
23974       unsigned long int i = ulongval ();
23975       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23976         return 1;
23977       fprintf (f, "%lu\n", i);
23978     }
23979   return ferror (f) || fclose (f) != 0;
23980
23981   ;
23982   return 0;
23983 }
23984 _ACEOF
23985 rm -f conftest$ac_exeext
23986 if { (ac_try="$ac_link"
23987 case "(($ac_try" in
23988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989   *) ac_try_echo=$ac_try;;
23990 esac
23991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23992   (eval "$ac_link") 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23996   { (case "(($ac_try" in
23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998   *) ac_try_echo=$ac_try;;
23999 esac
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001   (eval "$ac_try") 2>&5
24002   ac_status=$?
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); }; }; then
24005   ac_cv_sizeof_long_long=`cat conftest.val`
24006 else
24007   echo "$as_me: program exited with status $ac_status" >&5
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011 ( exit $ac_status )
24012 if test "$ac_cv_type_long_long" = yes; then
24013      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24014 See \`config.log' for more details." >&5
24015 echo "$as_me: error: cannot compute sizeof (long long)
24016 See \`config.log' for more details." >&2;}
24017    { (exit 77); exit 77; }; }
24018    else
24019      ac_cv_sizeof_long_long=0
24020    fi
24021 fi
24022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24023 fi
24024 rm -f conftest.val
24025 fi
24026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24027 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24028
24029
24030
24031 cat >>confdefs.h <<_ACEOF
24032 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24033 _ACEOF
24034
24035
24036 esac
24037
24038 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24039 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24040 if test "${ac_cv_type_wchar_t+set}" = set; then
24041   echo $ECHO_N "(cached) $ECHO_C" >&6
24042 else
24043   cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h.  */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h.  */
24049
24050         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24051         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24052         #  error "fake wchar_t"
24053         #endif
24054         #ifdef HAVE_WCHAR_H
24055         #  ifdef __CYGWIN__
24056         #    include <stddef.h>
24057         #  endif
24058         #  include <wchar.h>
24059         #endif
24060         #ifdef HAVE_STDLIB_H
24061         #  include <stdlib.h>
24062         #endif
24063         #include <stdio.h>
24064
24065
24066
24067 typedef wchar_t ac__type_new_;
24068 int
24069 main ()
24070 {
24071 if ((ac__type_new_ *) 0)
24072   return 0;
24073 if (sizeof (ac__type_new_))
24074   return 0;
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086   (eval "$ac_compile") 2>conftest.er1
24087   ac_status=$?
24088   grep -v '^ *+' conftest.er1 >conftest.err
24089   rm -f conftest.er1
24090   cat conftest.err >&5
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); } && {
24093          test -z "$ac_c_werror_flag" ||
24094          test ! -s conftest.err
24095        } && test -s conftest.$ac_objext; then
24096   ac_cv_type_wchar_t=yes
24097 else
24098   echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24100
24101         ac_cv_type_wchar_t=no
24102 fi
24103
24104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24105 fi
24106 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24107 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24108
24109 # The cast to long int works around a bug in the HP C Compiler
24110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24112 # This bug is HP SR number 8606223364.
24113 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24114 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24115 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   if test "$cross_compiling" = yes; then
24119   # Depending upon the size, compute the lo and hi bounds.
24120 cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h.  */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h.  */
24126
24127         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24128         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24129         #  error "fake wchar_t"
24130         #endif
24131         #ifdef HAVE_WCHAR_H
24132         #  ifdef __CYGWIN__
24133         #    include <stddef.h>
24134         #  endif
24135         #  include <wchar.h>
24136         #endif
24137         #ifdef HAVE_STDLIB_H
24138         #  include <stdlib.h>
24139         #endif
24140         #include <stdio.h>
24141
24142
24143
24144    typedef wchar_t ac__type_sizeof_;
24145 int
24146 main ()
24147 {
24148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24149 test_array [0] = 0
24150
24151   ;
24152   return 0;
24153 }
24154 _ACEOF
24155 rm -f conftest.$ac_objext
24156 if { (ac_try="$ac_compile"
24157 case "(($ac_try" in
24158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159   *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162   (eval "$ac_compile") 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
24166   cat conftest.err >&5
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } && {
24169          test -z "$ac_c_werror_flag" ||
24170          test ! -s conftest.err
24171        } && test -s conftest.$ac_objext; then
24172   ac_lo=0 ac_mid=0
24173   while :; do
24174     cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180
24181         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24182         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24183         #  error "fake wchar_t"
24184         #endif
24185         #ifdef HAVE_WCHAR_H
24186         #  ifdef __CYGWIN__
24187         #    include <stddef.h>
24188         #  endif
24189         #  include <wchar.h>
24190         #endif
24191         #ifdef HAVE_STDLIB_H
24192         #  include <stdlib.h>
24193         #endif
24194         #include <stdio.h>
24195
24196
24197
24198    typedef wchar_t ac__type_sizeof_;
24199 int
24200 main ()
24201 {
24202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24203 test_array [0] = 0
24204
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext
24210 if { (ac_try="$ac_compile"
24211 case "(($ac_try" in
24212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213   *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216   (eval "$ac_compile") 2>conftest.er1
24217   ac_status=$?
24218   grep -v '^ *+' conftest.er1 >conftest.err
24219   rm -f conftest.er1
24220   cat conftest.err >&5
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } && {
24223          test -z "$ac_c_werror_flag" ||
24224          test ! -s conftest.err
24225        } && test -s conftest.$ac_objext; then
24226   ac_hi=$ac_mid; break
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231         ac_lo=`expr $ac_mid + 1`
24232                         if test $ac_lo -le $ac_mid; then
24233                           ac_lo= ac_hi=
24234                           break
24235                         fi
24236                         ac_mid=`expr 2 '*' $ac_mid + 1`
24237 fi
24238
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240   done
24241 else
24242   echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245         cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251
24252         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24253         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24254         #  error "fake wchar_t"
24255         #endif
24256         #ifdef HAVE_WCHAR_H
24257         #  ifdef __CYGWIN__
24258         #    include <stddef.h>
24259         #  endif
24260         #  include <wchar.h>
24261         #endif
24262         #ifdef HAVE_STDLIB_H
24263         #  include <stdlib.h>
24264         #endif
24265         #include <stdio.h>
24266
24267
24268
24269    typedef wchar_t ac__type_sizeof_;
24270 int
24271 main ()
24272 {
24273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24274 test_array [0] = 0
24275
24276   ;
24277   return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest.$ac_objext
24281 if { (ac_try="$ac_compile"
24282 case "(($ac_try" in
24283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284   *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287   (eval "$ac_compile") 2>conftest.er1
24288   ac_status=$?
24289   grep -v '^ *+' conftest.er1 >conftest.err
24290   rm -f conftest.er1
24291   cat conftest.err >&5
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); } && {
24294          test -z "$ac_c_werror_flag" ||
24295          test ! -s conftest.err
24296        } && test -s conftest.$ac_objext; then
24297   ac_hi=-1 ac_mid=-1
24298   while :; do
24299     cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h.  */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h.  */
24305
24306         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24307         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24308         #  error "fake wchar_t"
24309         #endif
24310         #ifdef HAVE_WCHAR_H
24311         #  ifdef __CYGWIN__
24312         #    include <stddef.h>
24313         #  endif
24314         #  include <wchar.h>
24315         #endif
24316         #ifdef HAVE_STDLIB_H
24317         #  include <stdlib.h>
24318         #endif
24319         #include <stdio.h>
24320
24321
24322
24323    typedef wchar_t ac__type_sizeof_;
24324 int
24325 main ()
24326 {
24327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24328 test_array [0] = 0
24329
24330   ;
24331   return 0;
24332 }
24333 _ACEOF
24334 rm -f conftest.$ac_objext
24335 if { (ac_try="$ac_compile"
24336 case "(($ac_try" in
24337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338   *) ac_try_echo=$ac_try;;
24339 esac
24340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24341   (eval "$ac_compile") 2>conftest.er1
24342   ac_status=$?
24343   grep -v '^ *+' conftest.er1 >conftest.err
24344   rm -f conftest.er1
24345   cat conftest.err >&5
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); } && {
24348          test -z "$ac_c_werror_flag" ||
24349          test ! -s conftest.err
24350        } && test -s conftest.$ac_objext; then
24351   ac_lo=$ac_mid; break
24352 else
24353   echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356         ac_hi=`expr '(' $ac_mid ')' - 1`
24357                         if test $ac_mid -le $ac_hi; then
24358                           ac_lo= ac_hi=
24359                           break
24360                         fi
24361                         ac_mid=`expr 2 '*' $ac_mid`
24362 fi
24363
24364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24365   done
24366 else
24367   echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370         ac_lo= ac_hi=
24371 fi
24372
24373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374 fi
24375
24376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24377 # Binary search between lo and hi bounds.
24378 while test "x$ac_lo" != "x$ac_hi"; do
24379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24380   cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h.  */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h.  */
24386
24387         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24388         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24389         #  error "fake wchar_t"
24390         #endif
24391         #ifdef HAVE_WCHAR_H
24392         #  ifdef __CYGWIN__
24393         #    include <stddef.h>
24394         #  endif
24395         #  include <wchar.h>
24396         #endif
24397         #ifdef HAVE_STDLIB_H
24398         #  include <stdlib.h>
24399         #endif
24400         #include <stdio.h>
24401
24402
24403
24404    typedef wchar_t ac__type_sizeof_;
24405 int
24406 main ()
24407 {
24408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24409 test_array [0] = 0
24410
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422   (eval "$ac_compile") 2>conftest.er1
24423   ac_status=$?
24424   grep -v '^ *+' conftest.er1 >conftest.err
24425   rm -f conftest.er1
24426   cat conftest.err >&5
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && {
24429          test -z "$ac_c_werror_flag" ||
24430          test ! -s conftest.err
24431        } && test -s conftest.$ac_objext; then
24432   ac_hi=$ac_mid
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437         ac_lo=`expr '(' $ac_mid ')' + 1`
24438 fi
24439
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441 done
24442 case $ac_lo in
24443 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24444 '') if test "$ac_cv_type_wchar_t" = yes; then
24445      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24446 See \`config.log' for more details." >&5
24447 echo "$as_me: error: cannot compute sizeof (wchar_t)
24448 See \`config.log' for more details." >&2;}
24449    { (exit 77); exit 77; }; }
24450    else
24451      ac_cv_sizeof_wchar_t=0
24452    fi ;;
24453 esac
24454 else
24455   cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h.  */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h.  */
24461
24462         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24463         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24464         #  error "fake wchar_t"
24465         #endif
24466         #ifdef HAVE_WCHAR_H
24467         #  ifdef __CYGWIN__
24468         #    include <stddef.h>
24469         #  endif
24470         #  include <wchar.h>
24471         #endif
24472         #ifdef HAVE_STDLIB_H
24473         #  include <stdlib.h>
24474         #endif
24475         #include <stdio.h>
24476
24477
24478
24479    typedef wchar_t ac__type_sizeof_;
24480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24482 #include <stdio.h>
24483 #include <stdlib.h>
24484 int
24485 main ()
24486 {
24487
24488   FILE *f = fopen ("conftest.val", "w");
24489   if (! f)
24490     return 1;
24491   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24492     {
24493       long int i = longval ();
24494       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24495         return 1;
24496       fprintf (f, "%ld\n", i);
24497     }
24498   else
24499     {
24500       unsigned long int i = ulongval ();
24501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24502         return 1;
24503       fprintf (f, "%lu\n", i);
24504     }
24505   return ferror (f) || fclose (f) != 0;
24506
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515   *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518   (eval "$ac_link") 2>&5
24519   ac_status=$?
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24522   { (case "(($ac_try" in
24523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524   *) ac_try_echo=$ac_try;;
24525 esac
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527   (eval "$ac_try") 2>&5
24528   ac_status=$?
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); }; }; then
24531   ac_cv_sizeof_wchar_t=`cat conftest.val`
24532 else
24533   echo "$as_me: program exited with status $ac_status" >&5
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537 ( exit $ac_status )
24538 if test "$ac_cv_type_wchar_t" = yes; then
24539      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24540 See \`config.log' for more details." >&5
24541 echo "$as_me: error: cannot compute sizeof (wchar_t)
24542 See \`config.log' for more details." >&2;}
24543    { (exit 77); exit 77; }; }
24544    else
24545      ac_cv_sizeof_wchar_t=0
24546    fi
24547 fi
24548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24549 fi
24550 rm -f conftest.val
24551 fi
24552 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24553 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24554
24555
24556
24557 cat >>confdefs.h <<_ACEOF
24558 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24559 _ACEOF
24560
24561
24562 if test "$ac_cv_sizeof_wchar_t" = 0; then
24563     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24564 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24565    { (exit 1); exit 1; }; }
24566 fi
24567 cat >>confdefs.h <<\_ACEOF
24568 #define wxUSE_WCHAR_T 1
24569 _ACEOF
24570
24571
24572 { echo "$as_me:$LINENO: checking for va_copy" >&5
24573 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24574 if test "${wx_cv_func_va_copy+set}" = set; then
24575   echo $ECHO_N "(cached) $ECHO_C" >&6
24576 else
24577
24578         ac_ext=cpp
24579 ac_cpp='$CXXCPP $CPPFLAGS'
24580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24583
24584         cat >conftest.$ac_ext <<_ACEOF
24585
24586             /* confdefs.h.  */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h.  */
24591
24592                 #include <stdarg.h>
24593                 void foo(char *f, ...)
24594                 {
24595                     va_list ap1, ap2;
24596                     va_start(ap1, f);
24597                     va_copy(ap2, ap1);
24598                     va_end(ap2);
24599                     va_end(ap1);
24600                 }
24601                 int main()
24602                 {
24603                     foo("hi", 17);
24604                     return 0;
24605                 }
24606
24607 _ACEOF
24608 rm -f conftest.$ac_objext conftest$ac_exeext
24609 if { (ac_try="$ac_link"
24610 case "(($ac_try" in
24611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612   *) ac_try_echo=$ac_try;;
24613 esac
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615   (eval "$ac_link") 2>conftest.er1
24616   ac_status=$?
24617   grep -v '^ *+' conftest.er1 >conftest.err
24618   rm -f conftest.er1
24619   cat conftest.err >&5
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } && {
24622          test -z "$ac_cxx_werror_flag" ||
24623          test ! -s conftest.err
24624        } && test -s conftest$ac_exeext &&
24625        $as_test_x conftest$ac_exeext; then
24626   wx_cv_func_va_copy=yes
24627 else
24628   echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24630
24631         wx_cv_func_va_copy=no
24632
24633 fi
24634
24635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24636       conftest$ac_exeext conftest.$ac_ext
24637         ac_ext=c
24638 ac_cpp='$CPP $CPPFLAGS'
24639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24642
24643
24644
24645 fi
24646 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24647 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24648
24649 if test $wx_cv_func_va_copy = "yes"; then
24650     cat >>confdefs.h <<\_ACEOF
24651 #define HAVE_VA_COPY 1
24652 _ACEOF
24653
24654 else
24655         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24656 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24657 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24658   echo $ECHO_N "(cached) $ECHO_C" >&6
24659 else
24660
24661             if test "$cross_compiling" = yes; then
24662                   wx_cv_type_va_list_lvalue=yes
24663
24664 else
24665   cat >conftest.$ac_ext <<_ACEOF
24666
24667                 /* confdefs.h.  */
24668 _ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h.  */
24672
24673                     #include <stdarg.h>
24674                     int foo(char *f, ...)
24675                     {
24676                         va_list ap1, ap2;
24677                         va_start(ap1, f);
24678                         ap2 = ap1;
24679                         if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24680                             return 1;
24681                         va_end(ap2);
24682                         va_end(ap1);
24683                         return 0;
24684                     }
24685                     int main()
24686                     {
24687                         return foo("hi", 17);
24688                     }
24689
24690 _ACEOF
24691 rm -f conftest$ac_exeext
24692 if { (ac_try="$ac_link"
24693 case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_link") 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24702   { (case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_try") 2>&5
24708   ac_status=$?
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); }; }; then
24711   wx_cv_type_va_list_lvalue=yes
24712 else
24713   echo "$as_me: program exited with status $ac_status" >&5
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24716
24717 ( exit $ac_status )
24718 wx_cv_type_va_list_lvalue=no
24719 fi
24720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24721 fi
24722
24723
24724
24725
24726 fi
24727 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24728 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24729
24730     if test $wx_cv_type_va_list_lvalue != "yes"; then
24731                         cat >>confdefs.h <<\_ACEOF
24732 #define VA_LIST_IS_ARRAY 1
24733 _ACEOF
24734
24735     fi
24736 fi
24737
24738 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24739
24740 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24741 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24742 if test "${wx_cv_have_variadic_macros+set}" = set; then
24743   echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745
24746                         ac_ext=cpp
24747 ac_cpp='$CXXCPP $CPPFLAGS'
24748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24751
24752         cat >conftest.$ac_ext <<_ACEOF
24753
24754             /* confdefs.h.  */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h.  */
24759
24760                     #include <stdio.h>
24761                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24762
24763 int
24764 main ()
24765 {
24766
24767                     test("%s %d %p", "test", 1, 0);
24768
24769
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext
24775 if { (ac_try="$ac_compile"
24776 case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_compile") 2>conftest.er1
24782   ac_status=$?
24783   grep -v '^ *+' conftest.er1 >conftest.err
24784   rm -f conftest.er1
24785   cat conftest.err >&5
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); } && {
24788          test -z "$ac_cxx_werror_flag" ||
24789          test ! -s conftest.err
24790        } && test -s conftest.$ac_objext; then
24791   wx_cv_have_variadic_macros=yes
24792 else
24793   echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796         wx_cv_have_variadic_macros=no
24797
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801         ac_ext=c
24802 ac_cpp='$CPP $CPPFLAGS'
24803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24806
24807
24808
24809 fi
24810 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24811 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24812
24813 if test $wx_cv_have_variadic_macros = "yes"; then
24814     cat >>confdefs.h <<\_ACEOF
24815 #define HAVE_VARIADIC_MACROS 1
24816 _ACEOF
24817
24818 fi
24819
24820 fi
24821
24822 LARGEFILE_CPPFLAGS=
24823 # Check whether --enable-largefile was given.
24824 if test "${enable_largefile+set}" = set; then
24825   enableval=$enable_largefile;
24826 fi
24827
24828 if test "$enable_largefile" != no; then
24829             wx_largefile=no
24830
24831     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24832 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24833 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24834   echo $ECHO_N "(cached) $ECHO_C" >&6
24835 else
24836
24837           cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h.  */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h.  */
24843 #define _FILE_OFFSET_BITS 64
24844                           #include <sys/types.h>
24845 int
24846 main ()
24847 {
24848 typedef struct {
24849     unsigned int field: sizeof(off_t) == 8;
24850 } wxlf;
24851
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860   *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863   (eval "$ac_compile") 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } && {
24870          test -z "$ac_c_werror_flag" ||
24871          test ! -s conftest.err
24872        } && test -s conftest.$ac_objext; then
24873   ac_cv_sys_file_offset_bits=64
24874 else
24875   echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878         ac_cv_sys_file_offset_bits=no
24879 fi
24880
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882
24883
24884 fi
24885 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24886 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24887
24888     if test "$ac_cv_sys_file_offset_bits" != no; then
24889         wx_largefile=yes
24890         cat >>confdefs.h <<_ACEOF
24891 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24892 _ACEOF
24893
24894     fi
24895
24896     if test "x$wx_largefile" != "xyes"; then
24897
24898     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24899 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24900 if test "${ac_cv_sys_large_files+set}" = set; then
24901   echo $ECHO_N "(cached) $ECHO_C" >&6
24902 else
24903
24904           cat >conftest.$ac_ext <<_ACEOF
24905 /* confdefs.h.  */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h.  */
24910 #define _LARGE_FILES 1
24911                           #include <sys/types.h>
24912 int
24913 main ()
24914 {
24915 typedef struct {
24916     unsigned int field: sizeof(off_t) == 8;
24917 } wxlf;
24918
24919   ;
24920   return 0;
24921 }
24922 _ACEOF
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927   *) ac_try_echo=$ac_try;;
24928 esac
24929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24930   (eval "$ac_compile") 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } && {
24937          test -z "$ac_c_werror_flag" ||
24938          test ! -s conftest.err
24939        } && test -s conftest.$ac_objext; then
24940   ac_cv_sys_large_files=1
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         ac_cv_sys_large_files=no
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949
24950
24951 fi
24952 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24953 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24954
24955     if test "$ac_cv_sys_large_files" != no; then
24956         wx_largefile=yes
24957         cat >>confdefs.h <<_ACEOF
24958 #define _LARGE_FILES $ac_cv_sys_large_files
24959 _ACEOF
24960
24961     fi
24962
24963     fi
24964
24965     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24966 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24967     if test "x$wx_largefile" = "xyes"; then
24968         cat >>confdefs.h <<\_ACEOF
24969 #define HAVE_LARGEFILE_SUPPORT 1
24970 _ACEOF
24971
24972     fi
24973     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24974 echo "${ECHO_T}$wx_largefile" >&6; }
24975 fi
24976
24977 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24978     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24979 elif test "$ac_cv_sys_large_files" = 1; then
24980     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24981 fi
24982
24983 if test -n "$LARGEFILE_CPPFLAGS"; then
24984     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24985
24986                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24987         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24988 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24989 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992
24993                 ac_ext=cpp
24994 ac_cpp='$CXXCPP $CPPFLAGS'
24995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24998
24999                 cat >conftest.$ac_ext <<_ACEOF
25000 /* confdefs.h.  */
25001 _ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h.  */
25005
25006 int
25007 main ()
25008 {
25009
25010                         #ifndef __STDC_EXT__
25011                             choke me
25012                         #endif
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_compile") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_cxx_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest.$ac_objext; then
25035   wx_cv_STDC_EXT_required=no
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         wx_cv_STDC_EXT_required=yes
25041
25042 fi
25043
25044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25045                 ac_ext=c
25046 ac_cpp='$CPP $CPPFLAGS'
25047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25050
25051
25052
25053 fi
25054 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25055 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25056         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25057             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25058         fi
25059     fi
25060 fi
25061
25062 ac_ext=cpp
25063 ac_cpp='$CXXCPP $CPPFLAGS'
25064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25067
25068 old_CPPFLAGS="$CPPFLAGS"
25069 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25070 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25071 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25072 if test "${ac_cv_sys_largefile_source+set}" = set; then
25073   echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075   while :; do
25076   cat >conftest.$ac_ext <<_ACEOF
25077 /* confdefs.h.  */
25078 _ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h.  */
25082 #include <sys/types.h> /* for off_t */
25083      #include <stdio.h>
25084 int
25085 main ()
25086 {
25087 int (*fp) (FILE *, off_t, int) = fseeko;
25088      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100   (eval "$ac_link") 2>conftest.er1
25101   ac_status=$?
25102   grep -v '^ *+' conftest.er1 >conftest.err
25103   rm -f conftest.er1
25104   cat conftest.err >&5
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); } && {
25107          test -z "$ac_cxx_werror_flag" ||
25108          test ! -s conftest.err
25109        } && test -s conftest$ac_exeext &&
25110        $as_test_x conftest$ac_exeext; then
25111   ac_cv_sys_largefile_source=no; break
25112 else
25113   echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25115
25116
25117 fi
25118
25119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25120       conftest$ac_exeext conftest.$ac_ext
25121   cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h.  */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h.  */
25127 #define _LARGEFILE_SOURCE 1
25128 #include <sys/types.h> /* for off_t */
25129      #include <stdio.h>
25130 int
25131 main ()
25132 {
25133 int (*fp) (FILE *, off_t, int) = fseeko;
25134      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 rm -f conftest.$ac_objext conftest$ac_exeext
25140 if { (ac_try="$ac_link"
25141 case "(($ac_try" in
25142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25143   *) ac_try_echo=$ac_try;;
25144 esac
25145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25146   (eval "$ac_link") 2>conftest.er1
25147   ac_status=$?
25148   grep -v '^ *+' conftest.er1 >conftest.err
25149   rm -f conftest.er1
25150   cat conftest.err >&5
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); } && {
25153          test -z "$ac_cxx_werror_flag" ||
25154          test ! -s conftest.err
25155        } && test -s conftest$ac_exeext &&
25156        $as_test_x conftest$ac_exeext; then
25157   ac_cv_sys_largefile_source=1; break
25158 else
25159   echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25161
25162
25163 fi
25164
25165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25166       conftest$ac_exeext conftest.$ac_ext
25167   ac_cv_sys_largefile_source=unknown
25168   break
25169 done
25170 fi
25171 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25172 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25173 case $ac_cv_sys_largefile_source in #(
25174   no | unknown) ;;
25175   *)
25176 cat >>confdefs.h <<_ACEOF
25177 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25178 _ACEOF
25179 ;;
25180 esac
25181 rm -f conftest*
25182
25183 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25184 # in glibc 2.1.3, but that breaks too many other things.
25185 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25186 if test $ac_cv_sys_largefile_source != unknown; then
25187
25188 cat >>confdefs.h <<\_ACEOF
25189 #define HAVE_FSEEKO 1
25190 _ACEOF
25191
25192 fi
25193
25194 CPPFLAGS="$old_CPPFLAGS"
25195 ac_ext=c
25196 ac_cpp='$CPP $CPPFLAGS'
25197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25200
25201 if test "$ac_cv_sys_largefile_source" != no; then
25202     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25203 fi
25204
25205 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25207 if test "${ac_cv_c_bigendian+set}" = set; then
25208   echo $ECHO_N "(cached) $ECHO_C" >&6
25209 else
25210   ac_cv_c_bigendian=unknown
25211 # See if sys/param.h defines the BYTE_ORDER macro.
25212 cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218 #include <sys/types.h>
25219 #include <sys/param.h>
25220 int
25221 main ()
25222 {
25223
25224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25225  bogus endian macros
25226 #endif
25227   ;
25228   return 0;
25229 }
25230 _ACEOF
25231 rm -f conftest.$ac_objext
25232 if { (ac_try="$ac_compile"
25233 case "(($ac_try" in
25234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235   *) ac_try_echo=$ac_try;;
25236 esac
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238   (eval "$ac_compile") 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } && {
25245          test -z "$ac_c_werror_flag" ||
25246          test ! -s conftest.err
25247        } && test -s conftest.$ac_objext; then
25248   # It does; now see whether it defined to BIG_ENDIAN or not.
25249 cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255 #include <sys/types.h>
25256 #include <sys/param.h>
25257 int
25258 main ()
25259 {
25260
25261 #if BYTE_ORDER != BIG_ENDIAN
25262  not big endian
25263 #endif
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 rm -f conftest.$ac_objext
25269 if { (ac_try="$ac_compile"
25270 case "(($ac_try" in
25271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272   *) ac_try_echo=$ac_try;;
25273 esac
25274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25275   (eval "$ac_compile") 2>conftest.er1
25276   ac_status=$?
25277   grep -v '^ *+' conftest.er1 >conftest.err
25278   rm -f conftest.er1
25279   cat conftest.err >&5
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } && {
25282          test -z "$ac_c_werror_flag" ||
25283          test ! -s conftest.err
25284        } && test -s conftest.$ac_objext; then
25285   ac_cv_c_bigendian=yes
25286 else
25287   echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290         ac_cv_c_bigendian=no
25291 fi
25292
25293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298
25299 fi
25300
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25302 if test $ac_cv_c_bigendian = unknown; then
25303 if test "$cross_compiling" = yes; then
25304   ac_cv_c_bigendian=unknown
25305 else
25306   cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 main () {
25313   /* Are we little or big endian?  From Harbison&Steele.  */
25314   union
25315   {
25316     long l;
25317     char c[sizeof (long)];
25318   } u;
25319   u.l = 1;
25320   exit (u.c[sizeof (long) - 1] == 1);
25321 }
25322 _ACEOF
25323 rm -f conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327   *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330   (eval "$ac_link") 2>&5
25331   ac_status=$?
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25334   { (case "(($ac_try" in
25335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336   *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339   (eval "$ac_try") 2>&5
25340   ac_status=$?
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); }; }; then
25343   ac_cv_c_bigendian=no
25344 else
25345   echo "$as_me: program exited with status $ac_status" >&5
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 ( exit $ac_status )
25350 ac_cv_c_bigendian=yes
25351 fi
25352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25353 fi
25354
25355
25356 fi
25357 fi
25358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25360 if test $ac_cv_c_bigendian = unknown; then
25361   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
25362 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
25363 fi
25364 if test $ac_cv_c_bigendian = yes; then
25365   cat >>confdefs.h <<\_ACEOF
25366 #define WORDS_BIGENDIAN 1
25367 _ACEOF
25368
25369 fi
25370
25371
25372
25373
25374     ac_ext=cpp
25375 ac_cpp='$CXXCPP $CPPFLAGS'
25376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25379
25380
25381
25382 for ac_header in iostream
25383 do
25384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25388   echo $ECHO_N "(cached) $ECHO_C" >&6
25389 else
25390   cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396
25397
25398 #include <$ac_header>
25399 _ACEOF
25400 rm -f conftest.$ac_objext
25401 if { (ac_try="$ac_compile"
25402 case "(($ac_try" in
25403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404   *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407   (eval "$ac_compile") 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } && {
25414          test -z "$ac_cxx_werror_flag" ||
25415          test ! -s conftest.err
25416        } && test -s conftest.$ac_objext; then
25417   eval "$as_ac_Header=yes"
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422         eval "$as_ac_Header=no"
25423 fi
25424
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 fi
25427 ac_res=`eval echo '${'$as_ac_Header'}'`
25428                { echo "$as_me:$LINENO: result: $ac_res" >&5
25429 echo "${ECHO_T}$ac_res" >&6; }
25430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25431   cat >>confdefs.h <<_ACEOF
25432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25433 _ACEOF
25434
25435 fi
25436
25437 done
25438
25439
25440     if test "$ac_cv_header_iostream" = "yes" ; then
25441       :
25442     else
25443       cat >>confdefs.h <<\_ACEOF
25444 #define wxUSE_IOSTREAMH 1
25445 _ACEOF
25446
25447     fi
25448
25449     ac_ext=c
25450 ac_cpp='$CPP $CPPFLAGS'
25451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25454
25455
25456
25457
25458   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25459 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25460 if test "${wx_cv_explicit+set}" = set; then
25461   echo $ECHO_N "(cached) $ECHO_C" >&6
25462 else
25463
25464
25465     ac_ext=cpp
25466 ac_cpp='$CXXCPP $CPPFLAGS'
25467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25470
25471
25472             cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478
25479         class Foo { public: explicit Foo(int) {} };
25480
25481 int
25482 main ()
25483 {
25484
25485         return 0;
25486
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest.$ac_objext
25492 if { (ac_try="$ac_compile"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_compile") 2>conftest.er1
25499   ac_status=$?
25500   grep -v '^ *+' conftest.er1 >conftest.err
25501   rm -f conftest.er1
25502   cat conftest.err >&5
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } && {
25505          test -z "$ac_cxx_werror_flag" ||
25506          test ! -s conftest.err
25507        } && test -s conftest.$ac_objext; then
25508
25509         cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515
25516                 class Foo { public: explicit Foo(int) {} };
25517                 static void TakeFoo(const Foo& foo) { }
25518
25519 int
25520 main ()
25521 {
25522
25523                 TakeFoo(17);
25524                 return 0;
25525
25526   ;
25527   return 0;
25528 }
25529 _ACEOF
25530 rm -f conftest.$ac_objext
25531 if { (ac_try="$ac_compile"
25532 case "(($ac_try" in
25533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534   *) ac_try_echo=$ac_try;;
25535 esac
25536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537   (eval "$ac_compile") 2>conftest.er1
25538   ac_status=$?
25539   grep -v '^ *+' conftest.er1 >conftest.err
25540   rm -f conftest.er1
25541   cat conftest.err >&5
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } && {
25544          test -z "$ac_cxx_werror_flag" ||
25545          test ! -s conftest.err
25546        } && test -s conftest.$ac_objext; then
25547   wx_cv_explicit=no
25548 else
25549   echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552         wx_cv_explicit=yes
25553
25554 fi
25555
25556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562         wx_cv_explicit=no
25563
25564 fi
25565
25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567
25568     ac_ext=c
25569 ac_cpp='$CPP $CPPFLAGS'
25570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25573
25574
25575 fi
25576 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25577 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25578
25579   if test "$wx_cv_explicit" = "yes"; then
25580     cat >>confdefs.h <<\_ACEOF
25581 #define HAVE_EXPLICIT 1
25582 _ACEOF
25583
25584   fi
25585
25586
25587 if test "x$SUNCXX" = xyes; then
25588     CXXFLAGS="-features=tmplife $GNU_SOURCE_FLAG $CXXFLAGS"
25589 fi
25590
25591 if test "x$SUNCC" = xyes; then
25592     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25593 fi
25594
25595 if test "x$SGICC" = "xyes"; then
25596     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25597 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25598 if test "${wx_cv_prog_sgicc744+set}" = set; then
25599   echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601
25602             cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608
25609 int
25610 main ()
25611 {
25612
25613                     #if _SGI_COMPILER_VERSION >= 744
25614                     chock me: mipsPro is 7.4.4 or later
25615                     #endif
25616
25617   ;
25618   return 0;
25619 }
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   wx_cv_prog_sgicc744=no
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         wx_cv_prog_sgicc744=yes
25644
25645 fi
25646
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648
25649
25650 fi
25651 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25652 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25653
25654     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25655         CFLAGS="-woff 3970 $CFLAGS"
25656     fi
25657 fi
25658 if test "x$SGICXX" = "xyes"; then
25659     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25660 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25661 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25662   echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664
25665             ac_ext=cpp
25666 ac_cpp='$CXXCPP $CPPFLAGS'
25667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25670
25671             cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h.  */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h.  */
25677
25678 int
25679 main ()
25680 {
25681
25682                     #if _SGI_COMPILER_VERSION >= 744
25683                     chock me: mipsPro is 7.4.4 or later
25684                     #endif
25685
25686   ;
25687   return 0;
25688 }
25689 _ACEOF
25690 rm -f conftest.$ac_objext
25691 if { (ac_try="$ac_compile"
25692 case "(($ac_try" in
25693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25694   *) ac_try_echo=$ac_try;;
25695 esac
25696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25697   (eval "$ac_compile") 2>conftest.er1
25698   ac_status=$?
25699   grep -v '^ *+' conftest.er1 >conftest.err
25700   rm -f conftest.er1
25701   cat conftest.err >&5
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); } && {
25704          test -z "$ac_cxx_werror_flag" ||
25705          test ! -s conftest.err
25706        } && test -s conftest.$ac_objext; then
25707   wx_cv_prog_sgicxx744=no
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712         wx_cv_prog_sgicxx744=yes
25713
25714 fi
25715
25716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717             ac_ext=c
25718 ac_cpp='$CPP $CPPFLAGS'
25719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25722
25723
25724
25725 fi
25726 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25727 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25728
25729     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25730         CXXFLAGS="-woff 3970 $CXXFLAGS"
25731     fi
25732 fi
25733
25734 if test "x$HPCC" = "xyes"; then
25735                     CFLAGS="+W 2011,2450 $CFLAGS"
25736 fi
25737 if test "x$HPCXX" = "xyes"; then
25738                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25739 fi
25740
25741 if test "x$COMPAQCXX" = "xyes"; then
25742                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25743 fi
25744
25745 ac_ext=cpp
25746 ac_cpp='$CXXCPP $CPPFLAGS'
25747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25750
25751
25752 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25753     if test "$wxUSE_UNICODE" = "yes"; then
25754         std_string="std::wstring"
25755         char_type="wchar_t"
25756     else
25757         std_string="std::string"
25758         char_type="char"
25759     fi
25760
25761         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25762 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25763 if test "${wx_cv_class_stdstring+set}" = set; then
25764   echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25766
25767             cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h.  */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h.  */
25773 #include <string>
25774 int
25775 main ()
25776 {
25777 $std_string foo;
25778   ;
25779   return 0;
25780 }
25781 _ACEOF
25782 rm -f conftest.$ac_objext
25783 if { (ac_try="$ac_compile"
25784 case "(($ac_try" in
25785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786   *) ac_try_echo=$ac_try;;
25787 esac
25788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789   (eval "$ac_compile") 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } && {
25796          test -z "$ac_cxx_werror_flag" ||
25797          test ! -s conftest.err
25798        } && test -s conftest.$ac_objext; then
25799   wx_cv_class_stdstring=yes
25800 else
25801   echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25803
25804         wx_cv_class_stdstring=no
25805
25806 fi
25807
25808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25809
25810
25811 fi
25812 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25813 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25814
25815     if test "$wx_cv_class_stdstring" = yes; then
25816         if test "$wxUSE_UNICODE" = "yes"; then
25817             cat >>confdefs.h <<\_ACEOF
25818 #define HAVE_STD_WSTRING 1
25819 _ACEOF
25820
25821         fi
25822                     else
25823         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25824 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25825 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25826   echo $ECHO_N "(cached) $ECHO_C" >&6
25827 else
25828
25829                 cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h.  */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h.  */
25835
25836                     #ifdef HAVE_WCHAR_H
25837                     #  ifdef __CYGWIN__
25838                     #    include <stddef.h>
25839                     #  endif
25840                     #  include <wchar.h>
25841                     #endif
25842                     #ifdef HAVE_STDLIB_H
25843                     #  include <stdlib.h>
25844                     #endif
25845                     #include <stdio.h>
25846                     #include <string>
25847
25848 int
25849 main ()
25850 {
25851 std::basic_string<$char_type> foo;
25852                      const $char_type* dummy = foo.c_str();
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25864   (eval "$ac_compile") 2>conftest.er1
25865   ac_status=$?
25866   grep -v '^ *+' conftest.er1 >conftest.err
25867   rm -f conftest.er1
25868   cat conftest.err >&5
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); } && {
25871          test -z "$ac_cxx_werror_flag" ||
25872          test ! -s conftest.err
25873        } && test -s conftest.$ac_objext; then
25874   wx_cv_class_stdbasicstring=yes
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879         wx_cv_class_stdbasicstring=no
25880
25881 fi
25882
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884
25885
25886 fi
25887 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25888 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25889
25890         if test "$wx_cv_class_stdbasicstring" != yes; then
25891             if test "$wxUSE_STL" = "yes"; then
25892                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25893 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25894    { (exit 1); exit 1; }; }
25895             elif test "$wxUSE_STD_STRING" = "yes"; then
25896                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25897 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25898    { (exit 1); exit 1; }; }
25899             else
25900                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25901 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25902                 wxUSE_STD_STRING=no
25903             fi
25904         fi
25905     fi
25906 fi
25907
25908 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25909     { echo "$as_me:$LINENO: checking for std::istream" >&5
25910 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25911 if test "${ac_cv_type_std__istream+set}" = set; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 else
25914   cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 #include <iostream>
25921
25922 typedef std::istream ac__type_new_;
25923 int
25924 main ()
25925 {
25926 if ((ac__type_new_ *) 0)
25927   return 0;
25928 if (sizeof (ac__type_new_))
25929   return 0;
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext
25935 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } && {
25948          test -z "$ac_cxx_werror_flag" ||
25949          test ! -s conftest.err
25950        } && test -s conftest.$ac_objext; then
25951   ac_cv_type_std__istream=yes
25952 else
25953   echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956         ac_cv_type_std__istream=no
25957 fi
25958
25959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 fi
25961 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25962 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25963 if test $ac_cv_type_std__istream = yes; then
25964
25965 cat >>confdefs.h <<_ACEOF
25966 #define HAVE_STD__ISTREAM 1
25967 _ACEOF
25968
25969
25970 else
25971   wxUSE_STD_IOSTREAM=no
25972 fi
25973 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25974 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25975 if test "${ac_cv_type_std__ostream+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 #include <iostream>
25985
25986 typedef std::ostream ac__type_new_;
25987 int
25988 main ()
25989 {
25990 if ((ac__type_new_ *) 0)
25991   return 0;
25992 if (sizeof (ac__type_new_))
25993   return 0;
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext
25999 if { (ac_try="$ac_compile"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_compile") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } && {
26012          test -z "$ac_cxx_werror_flag" ||
26013          test ! -s conftest.err
26014        } && test -s conftest.$ac_objext; then
26015   ac_cv_type_std__ostream=yes
26016 else
26017   echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26019
26020         ac_cv_type_std__ostream=no
26021 fi
26022
26023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26024 fi
26025 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26026 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26027 if test $ac_cv_type_std__ostream = yes; then
26028
26029 cat >>confdefs.h <<_ACEOF
26030 #define HAVE_STD__OSTREAM 1
26031 _ACEOF
26032
26033
26034 else
26035   wxUSE_STD_IOSTREAM=no
26036 fi
26037
26038
26039     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26040         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26041             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26042 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26043    { (exit 1); exit 1; }; }
26044         else
26045             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26046 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26047         fi
26048     fi
26049 fi
26050
26051 if test "$wxUSE_STL" = "yes"; then
26052         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26053 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26054 if test "${wx_cv_lib_stl+set}" = set; then
26055   echo $ECHO_N "(cached) $ECHO_C" >&6
26056 else
26057   cat >conftest.$ac_ext <<_ACEOF
26058 /* confdefs.h.  */
26059 _ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h.  */
26063 #include <string>
26064             #include <functional>
26065             #include <algorithm>
26066             #include <vector>
26067             #include <list>
26068 int
26069 main ()
26070 {
26071 std::vector<int> moo;
26072              std::list<int> foo;
26073              std::vector<int>::iterator it =
26074                  std::find_if(moo.begin(), moo.end(),
26075                               std::bind2nd(std::less<int>(), 3));
26076   ;
26077   return 0;
26078 }
26079 _ACEOF
26080 rm -f conftest.$ac_objext
26081 if { (ac_try="$ac_compile"
26082 case "(($ac_try" in
26083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26084   *) ac_try_echo=$ac_try;;
26085 esac
26086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26087   (eval "$ac_compile") 2>conftest.er1
26088   ac_status=$?
26089   grep -v '^ *+' conftest.er1 >conftest.err
26090   rm -f conftest.er1
26091   cat conftest.err >&5
26092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093   (exit $ac_status); } && {
26094          test -z "$ac_cxx_werror_flag" ||
26095          test ! -s conftest.err
26096        } && test -s conftest.$ac_objext; then
26097   wx_cv_lib_stl=yes
26098 else
26099   echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102         wx_cv_lib_stl=no
26103
26104 fi
26105
26106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107
26108 fi
26109 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26110 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26111
26112     if test "$wx_cv_lib_stl" != yes; then
26113          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26114 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26115    { (exit 1); exit 1; }; }
26116     fi
26117
26118         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26119 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26120 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123   cat >conftest.$ac_ext <<_ACEOF
26124 /* confdefs.h.  */
26125 _ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h.  */
26129 #include <string>
26130 int
26131 main ()
26132 {
26133 std::string foo, bar;
26134             foo.compare(bar);
26135             foo.compare(1, 1, bar);
26136             foo.compare(1, 1, bar, 1, 1);
26137             foo.compare("");
26138             foo.compare(1, 1, "");
26139             foo.compare(1, 1, "", 2);
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } && {
26158          test -z "$ac_cxx_werror_flag" ||
26159          test ! -s conftest.err
26160        } && test -s conftest.$ac_objext; then
26161   wx_cv_func_stdstring_compare=yes
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166         wx_cv_func_stdstring_compare=no
26167
26168 fi
26169
26170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171
26172 fi
26173 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26174 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26175
26176     if test "$wx_cv_func_stdstring_compare" = yes; then
26177         cat >>confdefs.h <<\_ACEOF
26178 #define HAVE_STD_STRING_COMPARE 1
26179 _ACEOF
26180
26181     fi
26182
26183     if test "$wx_cv_class_gnuhashmapset" = yes; then
26184          cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_EXT_HASH_MAP 1
26186 _ACEOF
26187
26188          cat >>confdefs.h <<\_ACEOF
26189 #define HAVE_GNU_CXX_HASH_MAP 1
26190 _ACEOF
26191
26192     fi
26193
26194     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26195 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26196 if test "${ac_cv_header_unordered_map+set}" = set; then
26197   echo $ECHO_N "(cached) $ECHO_C" >&6
26198 else
26199   cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h.  */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h.  */
26205
26206
26207
26208 #include <unordered_map>
26209 _ACEOF
26210 rm -f conftest.$ac_objext
26211 if { (ac_try="$ac_compile"
26212 case "(($ac_try" in
26213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26214   *) ac_try_echo=$ac_try;;
26215 esac
26216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26217   (eval "$ac_compile") 2>conftest.er1
26218   ac_status=$?
26219   grep -v '^ *+' conftest.er1 >conftest.err
26220   rm -f conftest.er1
26221   cat conftest.err >&5
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); } && {
26224          test -z "$ac_cxx_werror_flag" ||
26225          test ! -s conftest.err
26226        } && test -s conftest.$ac_objext; then
26227   ac_cv_header_unordered_map=yes
26228 else
26229   echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26231
26232         ac_cv_header_unordered_map=no
26233 fi
26234
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 fi
26237 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26238 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26239 if test $ac_cv_header_unordered_map = yes; then
26240   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26241 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26242 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245   cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 #include <unordered_map>
26252                 #include <unordered_set>
26253 int
26254 main ()
26255 {
26256 std::unordered_map<double*, char*> test1;
26257                  std::unordered_set<char*> test2;
26258   ;
26259   return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269   (eval "$ac_compile") 2>conftest.er1
26270   ac_status=$?
26271   grep -v '^ *+' conftest.er1 >conftest.err
26272   rm -f conftest.er1
26273   cat conftest.err >&5
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); } && {
26276          test -z "$ac_cxx_werror_flag" ||
26277          test ! -s conftest.err
26278        } && test -s conftest.$ac_objext; then
26279   wx_cv_class_stdunorderedmapset=yes
26280 else
26281   echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26283
26284         wx_cv_class_stdunorderedmapset=no
26285 fi
26286
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288
26289
26290 fi
26291 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26292 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26293 fi
26294
26295
26296
26297     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26298          cat >>confdefs.h <<\_ACEOF
26299 #define HAVE_STD_UNORDERED_MAP 1
26300 _ACEOF
26301
26302          cat >>confdefs.h <<\_ACEOF
26303 #define HAVE_STD_UNORDERED_SET 1
26304 _ACEOF
26305
26306     else
26307         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26308 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26309 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312   cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318
26319
26320
26321 #include <tr1/unordered_map>
26322 _ACEOF
26323 rm -f conftest.$ac_objext
26324 if { (ac_try="$ac_compile"
26325 case "(($ac_try" in
26326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327   *) ac_try_echo=$ac_try;;
26328 esac
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330   (eval "$ac_compile") 2>conftest.er1
26331   ac_status=$?
26332   grep -v '^ *+' conftest.er1 >conftest.err
26333   rm -f conftest.er1
26334   cat conftest.err >&5
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); } && {
26337          test -z "$ac_cxx_werror_flag" ||
26338          test ! -s conftest.err
26339        } && test -s conftest.$ac_objext; then
26340   ac_cv_header_tr1_unordered_map=yes
26341 else
26342   echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26344
26345         ac_cv_header_tr1_unordered_map=no
26346 fi
26347
26348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26349 fi
26350 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26351 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26352 if test $ac_cv_header_tr1_unordered_map = yes; then
26353   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26354 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26355 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26356   echo $ECHO_N "(cached) $ECHO_C" >&6
26357 else
26358   cat >conftest.$ac_ext <<_ACEOF
26359 /* confdefs.h.  */
26360 _ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h.  */
26364 #include <tr1/unordered_map>
26365                     #include <tr1/unordered_set>
26366 int
26367 main ()
26368 {
26369 std::tr1::unordered_map<double*, char*> test1;
26370                      std::tr1::unordered_set<char*> test2;
26371             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26372             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26373             #endif
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382   *) ac_try_echo=$ac_try;;
26383 esac
26384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26385   (eval "$ac_compile") 2>conftest.er1
26386   ac_status=$?
26387   grep -v '^ *+' conftest.er1 >conftest.err
26388   rm -f conftest.er1
26389   cat conftest.err >&5
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); } && {
26392          test -z "$ac_cxx_werror_flag" ||
26393          test ! -s conftest.err
26394        } && test -s conftest.$ac_objext; then
26395   wx_cv_class_tr1unorderedmapset=yes
26396 else
26397   echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26399
26400         wx_cv_class_tr1unorderedmapset=no
26401 fi
26402
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404
26405
26406 fi
26407 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26408 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26409 fi
26410
26411
26412
26413         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26414             cat >>confdefs.h <<\_ACEOF
26415 #define HAVE_TR1_UNORDERED_MAP 1
26416 _ACEOF
26417
26418             cat >>confdefs.h <<\_ACEOF
26419 #define HAVE_TR1_UNORDERED_SET 1
26420 _ACEOF
26421
26422         else
26423                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26424 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26425 if test "${ac_cv_header_hash_map+set}" = set; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428   cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h.  */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h.  */
26434
26435
26436
26437 #include <hash_map>
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443   *) ac_try_echo=$ac_try;;
26444 esac
26445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26446   (eval "$ac_compile") 2>conftest.er1
26447   ac_status=$?
26448   grep -v '^ *+' conftest.er1 >conftest.err
26449   rm -f conftest.er1
26450   cat conftest.err >&5
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); } && {
26453          test -z "$ac_cxx_werror_flag" ||
26454          test ! -s conftest.err
26455        } && test -s conftest.$ac_objext; then
26456   ac_cv_header_hash_map=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_cv_header_hash_map=no
26462 fi
26463
26464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26465 fi
26466 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26467 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26468 if test $ac_cv_header_hash_map = yes; then
26469   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26470 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26471 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26472   echo $ECHO_N "(cached) $ECHO_C" >&6
26473 else
26474   cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480 #include <hash_map>
26481                         #include <hash_set>
26482 int
26483 main ()
26484 {
26485 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26486                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26487   ;
26488   return 0;
26489 }
26490 _ACEOF
26491 rm -f conftest.$ac_objext
26492 if { (ac_try="$ac_compile"
26493 case "(($ac_try" in
26494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26495   *) ac_try_echo=$ac_try;;
26496 esac
26497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26498   (eval "$ac_compile") 2>conftest.er1
26499   ac_status=$?
26500   grep -v '^ *+' conftest.er1 >conftest.err
26501   rm -f conftest.er1
26502   cat conftest.err >&5
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); } && {
26505          test -z "$ac_cxx_werror_flag" ||
26506          test ! -s conftest.err
26507        } && test -s conftest.$ac_objext; then
26508   wx_cv_class_stdhashmapset=yes
26509 else
26510   echo "$as_me: failed program was:" >&5
26511 sed 's/^/| /' conftest.$ac_ext >&5
26512
26513         wx_cv_class_stdhashmapset=no
26514 fi
26515
26516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517
26518
26519 fi
26520 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26521 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26522 fi
26523
26524
26525
26526             if test "$wx_cv_class_stdhashmapset" = yes; then
26527                 cat >>confdefs.h <<\_ACEOF
26528 #define HAVE_HASH_MAP 1
26529 _ACEOF
26530
26531                 cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_STD_HASH_MAP 1
26533 _ACEOF
26534
26535             fi
26536
26537             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26538 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26539 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542   cat >conftest.$ac_ext <<_ACEOF
26543 /* confdefs.h.  */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h.  */
26548
26549
26550
26551 #include <ext/hash_map>
26552 _ACEOF
26553 rm -f conftest.$ac_objext
26554 if { (ac_try="$ac_compile"
26555 case "(($ac_try" in
26556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557   *) ac_try_echo=$ac_try;;
26558 esac
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560   (eval "$ac_compile") 2>conftest.er1
26561   ac_status=$?
26562   grep -v '^ *+' conftest.er1 >conftest.err
26563   rm -f conftest.er1
26564   cat conftest.err >&5
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); } && {
26567          test -z "$ac_cxx_werror_flag" ||
26568          test ! -s conftest.err
26569        } && test -s conftest.$ac_objext; then
26570   ac_cv_header_ext_hash_map=yes
26571 else
26572   echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26574
26575         ac_cv_header_ext_hash_map=no
26576 fi
26577
26578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 fi
26580 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26581 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26582 if test $ac_cv_header_ext_hash_map = yes; then
26583   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26584 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26585 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   cat >conftest.$ac_ext <<_ACEOF
26589 /* confdefs.h.  */
26590 _ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h.  */
26594 #include <ext/hash_map>
26595                         #include <ext/hash_set>
26596 int
26597 main ()
26598 {
26599 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26600                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26601   ;
26602   return 0;
26603 }
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (ac_try="$ac_compile"
26607 case "(($ac_try" in
26608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609   *) ac_try_echo=$ac_try;;
26610 esac
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612   (eval "$ac_compile") 2>conftest.er1
26613   ac_status=$?
26614   grep -v '^ *+' conftest.er1 >conftest.err
26615   rm -f conftest.er1
26616   cat conftest.err >&5
26617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618   (exit $ac_status); } && {
26619          test -z "$ac_cxx_werror_flag" ||
26620          test ! -s conftest.err
26621        } && test -s conftest.$ac_objext; then
26622   wx_cv_class_gnuhashmapset=yes
26623 else
26624   echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26626
26627         wx_cv_class_gnuhashmapset=no
26628 fi
26629
26630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26631
26632
26633 fi
26634 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26635 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26636 fi
26637
26638
26639
26640         fi
26641     fi
26642 fi
26643
26644 ac_ext=cpp
26645 ac_cpp='$CXXCPP $CPPFLAGS'
26646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26649 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26650 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26651 if test -z "$CXXCPP"; then
26652   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26653   echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655       # Double quotes because CXXCPP needs to be expanded
26656     for CXXCPP in "$CXX -E" "/lib/cpp"
26657     do
26658       ac_preproc_ok=false
26659 for ac_cxx_preproc_warn_flag in '' yes
26660 do
26661   # Use a header file that comes with gcc, so configuring glibc
26662   # with a fresh cross-compiler works.
26663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26664   # <limits.h> exists even on freestanding compilers.
26665   # On the NeXT, cc -E runs the code through the compiler's parser,
26666   # not just through cpp. "Syntax error" is here to catch this case.
26667   cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673 #ifdef __STDC__
26674 # include <limits.h>
26675 #else
26676 # include <assert.h>
26677 #endif
26678                      Syntax error
26679 _ACEOF
26680 if { (ac_try="$ac_cpp conftest.$ac_ext"
26681 case "(($ac_try" in
26682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683   *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26687   ac_status=$?
26688   grep -v '^ *+' conftest.er1 >conftest.err
26689   rm -f conftest.er1
26690   cat conftest.err >&5
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } >/dev/null && {
26693          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26694          test ! -s conftest.err
26695        }; then
26696   :
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701   # Broken: fails on valid input.
26702 continue
26703 fi
26704
26705 rm -f conftest.err conftest.$ac_ext
26706
26707   # OK, works on sane cases.  Now check whether nonexistent headers
26708   # can be detected and how.
26709   cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 #include <ac_nonexistent.h>
26716 _ACEOF
26717 if { (ac_try="$ac_cpp conftest.$ac_ext"
26718 case "(($ac_try" in
26719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720   *) ac_try_echo=$ac_try;;
26721 esac
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26724   ac_status=$?
26725   grep -v '^ *+' conftest.er1 >conftest.err
26726   rm -f conftest.er1
26727   cat conftest.err >&5
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); } >/dev/null && {
26730          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26731          test ! -s conftest.err
26732        }; then
26733   # Broken: success on invalid input.
26734 continue
26735 else
26736   echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26738
26739   # Passes both tests.
26740 ac_preproc_ok=:
26741 break
26742 fi
26743
26744 rm -f conftest.err conftest.$ac_ext
26745
26746 done
26747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26748 rm -f conftest.err conftest.$ac_ext
26749 if $ac_preproc_ok; then
26750   break
26751 fi
26752
26753     done
26754     ac_cv_prog_CXXCPP=$CXXCPP
26755
26756 fi
26757   CXXCPP=$ac_cv_prog_CXXCPP
26758 else
26759   ac_cv_prog_CXXCPP=$CXXCPP
26760 fi
26761 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26762 echo "${ECHO_T}$CXXCPP" >&6; }
26763 ac_preproc_ok=false
26764 for ac_cxx_preproc_warn_flag in '' yes
26765 do
26766   # Use a header file that comes with gcc, so configuring glibc
26767   # with a fresh cross-compiler works.
26768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26769   # <limits.h> exists even on freestanding compilers.
26770   # On the NeXT, cc -E runs the code through the compiler's parser,
26771   # not just through cpp. "Syntax error" is here to catch this case.
26772   cat >conftest.$ac_ext <<_ACEOF
26773 /* confdefs.h.  */
26774 _ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h.  */
26778 #ifdef __STDC__
26779 # include <limits.h>
26780 #else
26781 # include <assert.h>
26782 #endif
26783                      Syntax error
26784 _ACEOF
26785 if { (ac_try="$ac_cpp conftest.$ac_ext"
26786 case "(($ac_try" in
26787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788   *) ac_try_echo=$ac_try;;
26789 esac
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26792   ac_status=$?
26793   grep -v '^ *+' conftest.er1 >conftest.err
26794   rm -f conftest.er1
26795   cat conftest.err >&5
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); } >/dev/null && {
26798          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26799          test ! -s conftest.err
26800        }; then
26801   :
26802 else
26803   echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26805
26806   # Broken: fails on valid input.
26807 continue
26808 fi
26809
26810 rm -f conftest.err conftest.$ac_ext
26811
26812   # OK, works on sane cases.  Now check whether nonexistent headers
26813   # can be detected and how.
26814   cat >conftest.$ac_ext <<_ACEOF
26815 /* confdefs.h.  */
26816 _ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h.  */
26820 #include <ac_nonexistent.h>
26821 _ACEOF
26822 if { (ac_try="$ac_cpp conftest.$ac_ext"
26823 case "(($ac_try" in
26824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825   *) ac_try_echo=$ac_try;;
26826 esac
26827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26829   ac_status=$?
26830   grep -v '^ *+' conftest.er1 >conftest.err
26831   rm -f conftest.er1
26832   cat conftest.err >&5
26833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834   (exit $ac_status); } >/dev/null && {
26835          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26836          test ! -s conftest.err
26837        }; then
26838   # Broken: success on invalid input.
26839 continue
26840 else
26841   echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26843
26844   # Passes both tests.
26845 ac_preproc_ok=:
26846 break
26847 fi
26848
26849 rm -f conftest.err conftest.$ac_ext
26850
26851 done
26852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26853 rm -f conftest.err conftest.$ac_ext
26854 if $ac_preproc_ok; then
26855   :
26856 else
26857   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26858 See \`config.log' for more details." >&5
26859 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26860 See \`config.log' for more details." >&2;}
26861    { (exit 1); exit 1; }; }
26862 fi
26863
26864 ac_ext=cpp
26865 ac_cpp='$CXXCPP $CPPFLAGS'
26866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26869
26870
26871
26872
26873 for ac_header in type_traits tr1/type_traits
26874 do
26875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26877   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26880   echo $ECHO_N "(cached) $ECHO_C" >&6
26881 fi
26882 ac_res=`eval echo '${'$as_ac_Header'}'`
26883                { echo "$as_me:$LINENO: result: $ac_res" >&5
26884 echo "${ECHO_T}$ac_res" >&6; }
26885 else
26886   # Is the header compilable?
26887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26889 cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895 $ac_includes_default
26896 #include <$ac_header>
26897 _ACEOF
26898 rm -f conftest.$ac_objext
26899 if { (ac_try="$ac_compile"
26900 case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_compile") 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } && {
26912          test -z "$ac_cxx_werror_flag" ||
26913          test ! -s conftest.err
26914        } && test -s conftest.$ac_objext; then
26915   ac_header_compiler=yes
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920         ac_header_compiler=no
26921 fi
26922
26923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26925 echo "${ECHO_T}$ac_header_compiler" >&6; }
26926
26927 # Is the header present?
26928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h.  */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h.  */
26936 #include <$ac_header>
26937 _ACEOF
26938 if { (ac_try="$ac_cpp conftest.$ac_ext"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } >/dev/null && {
26951          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26952          test ! -s conftest.err
26953        }; then
26954   ac_header_preproc=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959   ac_header_preproc=no
26960 fi
26961
26962 rm -f conftest.err conftest.$ac_ext
26963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26964 echo "${ECHO_T}$ac_header_preproc" >&6; }
26965
26966 # So?  What about this header?
26967 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26968   yes:no: )
26969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26973     ac_header_preproc=yes
26974     ;;
26975   no:yes:* )
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26988     ( cat <<\_ASBOX
26989 ## ----------------------------------------- ##
26990 ## Report this to wx-dev@lists.wxwidgets.org ##
26991 ## ----------------------------------------- ##
26992 _ASBOX
26993      ) | sed "s/^/$as_me: WARNING:     /" >&2
26994     ;;
26995 esac
26996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26999   echo $ECHO_N "(cached) $ECHO_C" >&6
27000 else
27001   eval "$as_ac_Header=\$ac_header_preproc"
27002 fi
27003 ac_res=`eval echo '${'$as_ac_Header'}'`
27004                { echo "$as_me:$LINENO: result: $ac_res" >&5
27005 echo "${ECHO_T}$ac_res" >&6; }
27006
27007 fi
27008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27009   cat >>confdefs.h <<_ACEOF
27010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27011 _ACEOF
27012
27013 fi
27014
27015 done
27016
27017
27018
27019
27020   if test -n "$GCC"; then
27021     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
27022 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
27023     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27024   echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026
27027       cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h.  */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h.  */
27033
27034 int
27035 main ()
27036 {
27037
27038           unsigned int value=0;
27039           /* wxAtomicInc doesn't use return value here */
27040           __sync_fetch_and_add(&value, 2);
27041           __sync_sub_and_fetch(&value, 1);
27042           /* but wxAtomicDec does, so mimic that: */
27043           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
27044
27045   ;
27046   return 0;
27047 }
27048 _ACEOF
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (ac_try="$ac_link"
27051 case "(($ac_try" in
27052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053   *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056   (eval "$ac_link") 2>conftest.er1
27057   ac_status=$?
27058   grep -v '^ *+' conftest.er1 >conftest.err
27059   rm -f conftest.er1
27060   cat conftest.err >&5
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } && {
27063          test -z "$ac_cxx_werror_flag" ||
27064          test ! -s conftest.err
27065        } && test -s conftest$ac_exeext &&
27066        $as_test_x conftest$ac_exeext; then
27067   wx_cv_cc_gcc_atomic_builtins=yes
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072         wx_cv_cc_gcc_atomic_builtins=no
27073 fi
27074
27075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27076       conftest$ac_exeext conftest.$ac_ext
27077
27078 fi
27079
27080     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27081 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27082     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27083       cat >>confdefs.h <<\_ACEOF
27084 #define HAVE_GCC_ATOMIC_BUILTINS 1
27085 _ACEOF
27086
27087     fi
27088   fi
27089
27090
27091 ac_ext=c
27092 ac_cpp='$CPP $CPPFLAGS'
27093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27096
27097
27098
27099 SEARCH_INCLUDE="\
27100     /usr/local/include        \
27101     /usr/local/X11/include    \
27102     /usr/local/include/X11    \
27103     /usr/local/X11R7/include  \
27104     /usr/local/X11R6/include  \
27105     /usr/local/include/X11R7  \
27106     /usr/local/include/X11R6  \
27107                               \
27108     /usr/Motif-2.1/include    \
27109     /usr/Motif-1.2/include    \
27110     /usr/include/Motif1.2     \
27111                               \
27112     /usr/dt/include           \
27113     /usr/openwin/include      \
27114                               \
27115     /usr/include/Xm           \
27116                               \
27117     /usr/X11R7/include        \
27118     /usr/X11R6/include        \
27119     /usr/X11R6.4/include      \
27120                               \
27121     /usr/include/X11R7        \
27122     /usr/include/X11R6        \
27123                               \
27124     /usr/X11/include          \
27125     /usr/include/X11          \
27126                               \
27127     /usr/XFree86/include/X11  \
27128     /usr/pkg/include          \
27129                               \
27130     /usr/local/X1R5/include  \
27131     /usr/local/include/X11R5  \
27132     /usr/X11R5/include        \
27133     /usr/include/X11R5        \
27134                               \
27135     /usr/local/X11R4/include  \
27136     /usr/local/include/X11R4  \
27137     /usr/X11R4/include        \
27138     /usr/include/X11R4        \
27139                               \
27140     /usr/openwin/share/include"
27141
27142 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27143 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27144
27145 case "${host}" in
27146     *-*-irix6* )
27147         if test "${wx_cv_std_libpath+set}" = set; then
27148   echo $ECHO_N "(cached) $ECHO_C" >&6
27149 else
27150
27151                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27152                     for e in a so sl dylib dll.a; do
27153                         libc="$d/libc.$e"
27154                         if test -f $libc; then
27155                             save_LIBS="$LIBS"
27156                             LIBS="$libc"
27157                             cat >conftest.$ac_ext <<_ACEOF
27158
27159                                     /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 int main() { return 0; }
27165
27166 _ACEOF
27167 rm -f conftest.$ac_objext conftest$ac_exeext
27168 if { (ac_try="$ac_link"
27169 case "(($ac_try" in
27170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171   *) ac_try_echo=$ac_try;;
27172 esac
27173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27174   (eval "$ac_link") 2>conftest.er1
27175   ac_status=$?
27176   grep -v '^ *+' conftest.er1 >conftest.err
27177   rm -f conftest.er1
27178   cat conftest.err >&5
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } && {
27181          test -z "$ac_c_werror_flag" ||
27182          test ! -s conftest.err
27183        } && test -s conftest$ac_exeext &&
27184        $as_test_x conftest$ac_exeext; then
27185   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27186 else
27187   echo "$as_me: failed program was:" >&5
27188 sed 's/^/| /' conftest.$ac_ext >&5
27189
27190
27191 fi
27192
27193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27194       conftest$ac_exeext conftest.$ac_ext
27195                             LIBS="$save_LIBS"
27196                             if test "x$wx_cv_std_libpath" != "x"; then
27197                                 break 2
27198                             fi
27199                         fi
27200                     done
27201                 done
27202
27203
27204 fi
27205
27206         ;;
27207
27208     *-*-solaris2* )
27209                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27210             wx_cv_std_libpath="lib/64"
27211         fi
27212         ;;
27213
27214     *-*-linux* )
27215                                         if test "$ac_cv_sizeof_void_p" = 8; then
27216             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27217                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27218             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27219                 wx_cv_std_libpath="lib64"
27220             fi
27221         else
27222             case "${host}" in
27223                 i*86-*-linux* )
27224                     if test -d '/usr/lib/i386-linux-gnu'; then
27225                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27226                     fi
27227             esac
27228         fi
27229
27230                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27231             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27232         fi
27233         ;;
27234 esac
27235
27236 if test -z "$wx_cv_std_libpath"; then
27237     wx_cv_std_libpath="lib"
27238 fi
27239
27240 if test -z "$wx_cv_std_libfullpath"; then
27241     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27242 fi
27243
27244
27245 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27246 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27247
27248 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27249
27250 if test "$build" != "$host" -a "$GCC" = yes; then
27251                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27252         cross_root=`dirname $cross_root`
27253         cross_root=`dirname $cross_root`
27254
27255                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27256         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27257         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27258
27259                 if test -z "$PKG_CONFIG_PATH"; then
27260             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27261             export PKG_CONFIG_PATH
27262         fi
27263
27264                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27265
27266 ac_find_includes=
27267 for ac_dir in $SEARCH_INCLUDE /usr/include
27268   do
27269     if test -f "$ac_dir/X11/Intrinsic.h"; then
27270       ac_find_includes=$ac_dir
27271       break
27272     fi
27273   done
27274
27275             x_includes=$ac_find_includes
27276         fi
27277         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27278
27279   ac_find_libraries=
27280   for ac_dir in  $SEARCH_LIB
27281   do
27282     for ac_extension in a so sl dylib dll.a; do
27283       if test -f "$ac_dir/libXt.$ac_extension"; then
27284         ac_find_libraries=$ac_dir
27285         break 2
27286       fi
27287     done
27288   done
27289
27290             x_libraries=$ac_find_libraries
27291         fi
27292     fi
27293 fi
27294
27295
27296 cat >confcache <<\_ACEOF
27297 # This file is a shell script that caches the results of configure
27298 # tests run on this system so they can be shared between configure
27299 # scripts and configure runs, see configure's option --config-cache.
27300 # It is not useful on other systems.  If it contains results you don't
27301 # want to keep, you may remove or edit it.
27302 #
27303 # config.status only pays attention to the cache file if you give it
27304 # the --recheck option to rerun configure.
27305 #
27306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27308 # following values.
27309
27310 _ACEOF
27311
27312 # The following way of writing the cache mishandles newlines in values,
27313 # but we know of no workaround that is simple, portable, and efficient.
27314 # So, we kill variables containing newlines.
27315 # Ultrix sh set writes to stderr and can't be redirected directly,
27316 # and sets the high bit in the cache file unless we assign to the vars.
27317 (
27318   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27319     eval ac_val=\$$ac_var
27320     case $ac_val in #(
27321     *${as_nl}*)
27322       case $ac_var in #(
27323       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27324 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27325       esac
27326       case $ac_var in #(
27327       _ | IFS | as_nl) ;; #(
27328       *) $as_unset $ac_var ;;
27329       esac ;;
27330     esac
27331   done
27332
27333   (set) 2>&1 |
27334     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27335     *${as_nl}ac_space=\ *)
27336       # `set' does not quote correctly, so add quotes (double-quote
27337       # substitution turns \\\\ into \\, and sed turns \\ into \).
27338       sed -n \
27339         "s/'/'\\\\''/g;
27340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27341       ;; #(
27342     *)
27343       # `set' quotes correctly as required by POSIX, so do not add quotes.
27344       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27345       ;;
27346     esac |
27347     sort
27348 ) |
27349   sed '
27350      /^ac_cv_env_/b end
27351      t clear
27352      :clear
27353      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27354      t end
27355      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27356      :end' >>confcache
27357 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27358   if test -w "$cache_file"; then
27359     test "x$cache_file" != "x/dev/null" &&
27360       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27361 echo "$as_me: updating cache $cache_file" >&6;}
27362     cat confcache >$cache_file
27363   else
27364     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27365 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27366   fi
27367 fi
27368 rm -f confcache
27369
27370 have_cos=0
27371 have_floor=0
27372
27373 for ac_func in cos
27374 do
27375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27379   echo $ECHO_N "(cached) $ECHO_C" >&6
27380 else
27381   cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h.  */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h.  */
27387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27389 #define $ac_func innocuous_$ac_func
27390
27391 /* System header to define __stub macros and hopefully few prototypes,
27392     which can conflict with char $ac_func (); below.
27393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27394     <limits.h> exists even on freestanding compilers.  */
27395
27396 #ifdef __STDC__
27397 # include <limits.h>
27398 #else
27399 # include <assert.h>
27400 #endif
27401
27402 #undef $ac_func
27403
27404 /* Override any GCC internal prototype to avoid an error.
27405    Use char because int might match the return type of a GCC
27406    builtin and then its argument prototype would still apply.  */
27407 #ifdef __cplusplus
27408 extern "C"
27409 #endif
27410 char $ac_func ();
27411 /* The GNU C library defines this for functions which it implements
27412     to always fail with ENOSYS.  Some functions are actually named
27413     something starting with __ and the normal name is an alias.  */
27414 #if defined __stub_$ac_func || defined __stub___$ac_func
27415 choke me
27416 #endif
27417
27418 int
27419 main ()
27420 {
27421 return $ac_func ();
27422   ;
27423   return 0;
27424 }
27425 _ACEOF
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (ac_try="$ac_link"
27428 case "(($ac_try" in
27429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430   *) ac_try_echo=$ac_try;;
27431 esac
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433   (eval "$ac_link") 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } && {
27440          test -z "$ac_c_werror_flag" ||
27441          test ! -s conftest.err
27442        } && test -s conftest$ac_exeext &&
27443        $as_test_x conftest$ac_exeext; then
27444   eval "$as_ac_var=yes"
27445 else
27446   echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27448
27449         eval "$as_ac_var=no"
27450 fi
27451
27452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27453       conftest$ac_exeext conftest.$ac_ext
27454 fi
27455 ac_res=`eval echo '${'$as_ac_var'}'`
27456                { echo "$as_me:$LINENO: result: $ac_res" >&5
27457 echo "${ECHO_T}$ac_res" >&6; }
27458 if test `eval echo '${'$as_ac_var'}'` = yes; then
27459   cat >>confdefs.h <<_ACEOF
27460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27461 _ACEOF
27462  have_cos=1
27463 fi
27464 done
27465
27466
27467 for ac_func in floor
27468 do
27469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27473   echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475   cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h.  */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h.  */
27481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27483 #define $ac_func innocuous_$ac_func
27484
27485 /* System header to define __stub macros and hopefully few prototypes,
27486     which can conflict with char $ac_func (); below.
27487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27488     <limits.h> exists even on freestanding compilers.  */
27489
27490 #ifdef __STDC__
27491 # include <limits.h>
27492 #else
27493 # include <assert.h>
27494 #endif
27495
27496 #undef $ac_func
27497
27498 /* Override any GCC internal prototype to avoid an error.
27499    Use char because int might match the return type of a GCC
27500    builtin and then its argument prototype would still apply.  */
27501 #ifdef __cplusplus
27502 extern "C"
27503 #endif
27504 char $ac_func ();
27505 /* The GNU C library defines this for functions which it implements
27506     to always fail with ENOSYS.  Some functions are actually named
27507     something starting with __ and the normal name is an alias.  */
27508 #if defined __stub_$ac_func || defined __stub___$ac_func
27509 choke me
27510 #endif
27511
27512 int
27513 main ()
27514 {
27515 return $ac_func ();
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 rm -f conftest.$ac_objext conftest$ac_exeext
27521 if { (ac_try="$ac_link"
27522 case "(($ac_try" in
27523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524   *) ac_try_echo=$ac_try;;
27525 esac
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527   (eval "$ac_link") 2>conftest.er1
27528   ac_status=$?
27529   grep -v '^ *+' conftest.er1 >conftest.err
27530   rm -f conftest.er1
27531   cat conftest.err >&5
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); } && {
27534          test -z "$ac_c_werror_flag" ||
27535          test ! -s conftest.err
27536        } && test -s conftest$ac_exeext &&
27537        $as_test_x conftest$ac_exeext; then
27538   eval "$as_ac_var=yes"
27539 else
27540   echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27542
27543         eval "$as_ac_var=no"
27544 fi
27545
27546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27547       conftest$ac_exeext conftest.$ac_ext
27548 fi
27549 ac_res=`eval echo '${'$as_ac_var'}'`
27550                { echo "$as_me:$LINENO: result: $ac_res" >&5
27551 echo "${ECHO_T}$ac_res" >&6; }
27552 if test `eval echo '${'$as_ac_var'}'` = yes; then
27553   cat >>confdefs.h <<_ACEOF
27554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27555 _ACEOF
27556  have_floor=1
27557 fi
27558 done
27559
27560 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27561 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27562 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27563     { echo "$as_me:$LINENO: result: yes" >&5
27564 echo "${ECHO_T}yes" >&6; }
27565 else
27566     { echo "$as_me:$LINENO: result: no" >&5
27567 echo "${ECHO_T}no" >&6; }
27568     LIBS="$LIBS -lm"
27569     # use different functions to avoid configure caching
27570     have_sin=0
27571     have_ceil=0
27572
27573 for ac_func in sin
27574 do
27575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27579   echo $ECHO_N "(cached) $ECHO_C" >&6
27580 else
27581   cat >conftest.$ac_ext <<_ACEOF
27582 /* confdefs.h.  */
27583 _ACEOF
27584 cat confdefs.h >>conftest.$ac_ext
27585 cat >>conftest.$ac_ext <<_ACEOF
27586 /* end confdefs.h.  */
27587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27589 #define $ac_func innocuous_$ac_func
27590
27591 /* System header to define __stub macros and hopefully few prototypes,
27592     which can conflict with char $ac_func (); below.
27593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27594     <limits.h> exists even on freestanding compilers.  */
27595
27596 #ifdef __STDC__
27597 # include <limits.h>
27598 #else
27599 # include <assert.h>
27600 #endif
27601
27602 #undef $ac_func
27603
27604 /* Override any GCC internal prototype to avoid an error.
27605    Use char because int might match the return type of a GCC
27606    builtin and then its argument prototype would still apply.  */
27607 #ifdef __cplusplus
27608 extern "C"
27609 #endif
27610 char $ac_func ();
27611 /* The GNU C library defines this for functions which it implements
27612     to always fail with ENOSYS.  Some functions are actually named
27613     something starting with __ and the normal name is an alias.  */
27614 #if defined __stub_$ac_func || defined __stub___$ac_func
27615 choke me
27616 #endif
27617
27618 int
27619 main ()
27620 {
27621 return $ac_func ();
27622   ;
27623   return 0;
27624 }
27625 _ACEOF
27626 rm -f conftest.$ac_objext conftest$ac_exeext
27627 if { (ac_try="$ac_link"
27628 case "(($ac_try" in
27629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630   *) ac_try_echo=$ac_try;;
27631 esac
27632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633   (eval "$ac_link") 2>conftest.er1
27634   ac_status=$?
27635   grep -v '^ *+' conftest.er1 >conftest.err
27636   rm -f conftest.er1
27637   cat conftest.err >&5
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); } && {
27640          test -z "$ac_c_werror_flag" ||
27641          test ! -s conftest.err
27642        } && test -s conftest$ac_exeext &&
27643        $as_test_x conftest$ac_exeext; then
27644   eval "$as_ac_var=yes"
27645 else
27646   echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649         eval "$as_ac_var=no"
27650 fi
27651
27652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27653       conftest$ac_exeext conftest.$ac_ext
27654 fi
27655 ac_res=`eval echo '${'$as_ac_var'}'`
27656                { echo "$as_me:$LINENO: result: $ac_res" >&5
27657 echo "${ECHO_T}$ac_res" >&6; }
27658 if test `eval echo '${'$as_ac_var'}'` = yes; then
27659   cat >>confdefs.h <<_ACEOF
27660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27661 _ACEOF
27662  have_sin=1
27663 fi
27664 done
27665
27666
27667 for ac_func in ceil
27668 do
27669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27683 #define $ac_func innocuous_$ac_func
27684
27685 /* System header to define __stub macros and hopefully few prototypes,
27686     which can conflict with char $ac_func (); below.
27687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27688     <limits.h> exists even on freestanding compilers.  */
27689
27690 #ifdef __STDC__
27691 # include <limits.h>
27692 #else
27693 # include <assert.h>
27694 #endif
27695
27696 #undef $ac_func
27697
27698 /* Override any GCC internal prototype to avoid an error.
27699    Use char because int might match the return type of a GCC
27700    builtin and then its argument prototype would still apply.  */
27701 #ifdef __cplusplus
27702 extern "C"
27703 #endif
27704 char $ac_func ();
27705 /* The GNU C library defines this for functions which it implements
27706     to always fail with ENOSYS.  Some functions are actually named
27707     something starting with __ and the normal name is an alias.  */
27708 #if defined __stub_$ac_func || defined __stub___$ac_func
27709 choke me
27710 #endif
27711
27712 int
27713 main ()
27714 {
27715 return $ac_func ();
27716   ;
27717   return 0;
27718 }
27719 _ACEOF
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_link") 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } && {
27734          test -z "$ac_c_werror_flag" ||
27735          test ! -s conftest.err
27736        } && test -s conftest$ac_exeext &&
27737        $as_test_x conftest$ac_exeext; then
27738   eval "$as_ac_var=yes"
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743         eval "$as_ac_var=no"
27744 fi
27745
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747       conftest$ac_exeext conftest.$ac_ext
27748 fi
27749 ac_res=`eval echo '${'$as_ac_var'}'`
27750                { echo "$as_me:$LINENO: result: $ac_res" >&5
27751 echo "${ECHO_T}$ac_res" >&6; }
27752 if test `eval echo '${'$as_ac_var'}'` = yes; then
27753   cat >>confdefs.h <<_ACEOF
27754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27755 _ACEOF
27756  have_ceil=1
27757 fi
27758 done
27759
27760     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27761 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27762     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27763         { echo "$as_me:$LINENO: result: yes" >&5
27764 echo "${ECHO_T}yes" >&6; }
27765     else
27766         { echo "$as_me:$LINENO: result: no" >&5
27767 echo "${ECHO_T}no" >&6; }
27768         # not sure we should warn the user, crash, etc.
27769     fi
27770 fi
27771
27772 ac_ext=cpp
27773 ac_cpp='$CXXCPP $CPPFLAGS'
27774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27777
27778 if test "wxUSE_UNICODE" = "yes"; then
27779
27780   for wx_func in wcstoull
27781   do
27782     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27783 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27784 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27785   echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27787
27788         cat >conftest.$ac_ext <<_ACEOF
27789
27790             /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795
27796
27797                 $ac_includes_default
27798
27799 int
27800 main ()
27801 {
27802
27803                 #ifndef $wx_func
27804                   &$wx_func;
27805                 #endif
27806
27807
27808   ;
27809   return 0;
27810 }
27811
27812 _ACEOF
27813 rm -f conftest.$ac_objext conftest$ac_exeext
27814 if { (ac_try="$ac_link"
27815 case "(($ac_try" in
27816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817   *) ac_try_echo=$ac_try;;
27818 esac
27819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27820   (eval "$ac_link") 2>conftest.er1
27821   ac_status=$?
27822   grep -v '^ *+' conftest.er1 >conftest.err
27823   rm -f conftest.er1
27824   cat conftest.err >&5
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } && {
27827          test -z "$ac_cxx_werror_flag" ||
27828          test ! -s conftest.err
27829        } && test -s conftest$ac_exeext &&
27830        $as_test_x conftest$ac_exeext; then
27831   eval wx_cv_func_$wx_func=yes
27832 else
27833   echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27835
27836         eval wx_cv_func_$wx_func=no
27837 fi
27838
27839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27840       conftest$ac_exeext conftest.$ac_ext
27841
27842 fi
27843 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27844                { echo "$as_me:$LINENO: result: $ac_res" >&5
27845 echo "${ECHO_T}$ac_res" >&6; }
27846
27847     if eval test \$wx_cv_func_$wx_func = yes
27848     then
27849       cat >>confdefs.h <<_ACEOF
27850 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27851 _ACEOF
27852
27853
27854     else
27855       :
27856
27857     fi
27858   done
27859
27860 else
27861
27862   for wx_func in strtoull
27863   do
27864     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27865 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27866 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27867   echo $ECHO_N "(cached) $ECHO_C" >&6
27868 else
27869
27870         cat >conftest.$ac_ext <<_ACEOF
27871
27872             /* confdefs.h.  */
27873 _ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h.  */
27877
27878
27879                 $ac_includes_default
27880
27881 int
27882 main ()
27883 {
27884
27885                 #ifndef $wx_func
27886                   &$wx_func;
27887                 #endif
27888
27889
27890   ;
27891   return 0;
27892 }
27893
27894 _ACEOF
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (ac_try="$ac_link"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_link") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } && {
27909          test -z "$ac_cxx_werror_flag" ||
27910          test ! -s conftest.err
27911        } && test -s conftest$ac_exeext &&
27912        $as_test_x conftest$ac_exeext; then
27913   eval wx_cv_func_$wx_func=yes
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918         eval wx_cv_func_$wx_func=no
27919 fi
27920
27921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27922       conftest$ac_exeext conftest.$ac_ext
27923
27924 fi
27925 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27926                { echo "$as_me:$LINENO: result: $ac_res" >&5
27927 echo "${ECHO_T}$ac_res" >&6; }
27928
27929     if eval test \$wx_cv_func_$wx_func = yes
27930     then
27931       cat >>confdefs.h <<_ACEOF
27932 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27933 _ACEOF
27934
27935
27936     else
27937       :
27938
27939     fi
27940   done
27941
27942 fi
27943 ac_ext=c
27944 ac_cpp='$CPP $CPPFLAGS'
27945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27948
27949
27950
27951
27952 if test "$wxUSE_REGEX" != "no"; then
27953     cat >>confdefs.h <<\_ACEOF
27954 #define wxUSE_REGEX 1
27955 _ACEOF
27956
27957
27958     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27959         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27960 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27961         wxUSE_REGEX=builtin
27962     fi
27963
27964     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27965                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27966 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27967 if test "${ac_cv_header_regex_h+set}" = set; then
27968   echo $ECHO_N "(cached) $ECHO_C" >&6
27969 else
27970   cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976
27977
27978 #include <regex.h>
27979 _ACEOF
27980 rm -f conftest.$ac_objext
27981 if { (ac_try="$ac_compile"
27982 case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_compile") 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } && {
27994          test -z "$ac_c_werror_flag" ||
27995          test ! -s conftest.err
27996        } && test -s conftest.$ac_objext; then
27997   ac_cv_header_regex_h=yes
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002         ac_cv_header_regex_h=no
28003 fi
28004
28005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28006 fi
28007 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28008 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28009 if test $ac_cv_header_regex_h = yes; then
28010
28011
28012 for ac_func in regcomp re_search
28013 do
28014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h.  */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h.  */
28026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28028 #define $ac_func innocuous_$ac_func
28029
28030 /* System header to define __stub macros and hopefully few prototypes,
28031     which can conflict with char $ac_func (); below.
28032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28033     <limits.h> exists even on freestanding compilers.  */
28034
28035 #ifdef __STDC__
28036 # include <limits.h>
28037 #else
28038 # include <assert.h>
28039 #endif
28040
28041 #undef $ac_func
28042
28043 /* Override any GCC internal prototype to avoid an error.
28044    Use char because int might match the return type of a GCC
28045    builtin and then its argument prototype would still apply.  */
28046 #ifdef __cplusplus
28047 extern "C"
28048 #endif
28049 char $ac_func ();
28050 /* The GNU C library defines this for functions which it implements
28051     to always fail with ENOSYS.  Some functions are actually named
28052     something starting with __ and the normal name is an alias.  */
28053 #if defined __stub_$ac_func || defined __stub___$ac_func
28054 choke me
28055 #endif
28056
28057 int
28058 main ()
28059 {
28060 return $ac_func ();
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 rm -f conftest.$ac_objext conftest$ac_exeext
28066 if { (ac_try="$ac_link"
28067 case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_link") 2>conftest.er1
28073   ac_status=$?
28074   grep -v '^ *+' conftest.er1 >conftest.err
28075   rm -f conftest.er1
28076   cat conftest.err >&5
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); } && {
28079          test -z "$ac_c_werror_flag" ||
28080          test ! -s conftest.err
28081        } && test -s conftest$ac_exeext &&
28082        $as_test_x conftest$ac_exeext; then
28083   eval "$as_ac_var=yes"
28084 else
28085   echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088         eval "$as_ac_var=no"
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28092       conftest$ac_exeext conftest.$ac_ext
28093 fi
28094 ac_res=`eval echo '${'$as_ac_var'}'`
28095                { echo "$as_me:$LINENO: result: $ac_res" >&5
28096 echo "${ECHO_T}$ac_res" >&6; }
28097 if test `eval echo '${'$as_ac_var'}'` = yes; then
28098   cat >>confdefs.h <<_ACEOF
28099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28100 _ACEOF
28101
28102 fi
28103 done
28104
28105 fi
28106
28107
28108
28109         if test "x$ac_cv_func_regcomp" != "xyes"; then
28110             if test "$wxUSE_REGEX" = "sys" ; then
28111                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28112 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28113    { (exit 1); exit 1; }; }
28114             else
28115                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28116 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28117                 wxUSE_REGEX=builtin
28118             fi
28119         else
28120                         wxUSE_REGEX=sys
28121                         cat >>confdefs.h <<\_ACEOF
28122 #define WX_NO_REGEX_ADVANCED 1
28123 _ACEOF
28124
28125         fi
28126     fi
28127 fi
28128
28129
28130 ZLIB_LINK=
28131 if test "$wxUSE_ZLIB" != "no" ; then
28132     cat >>confdefs.h <<\_ACEOF
28133 #define wxUSE_ZLIB 1
28134 _ACEOF
28135
28136
28137     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28138                                                 if test "$USE_DARWIN" = 1; then
28139             system_zlib_h_ok="yes"
28140         else
28141                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28142 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28143 if test "${ac_cv_header_zlib_h+set}" = set; then
28144   echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146   if test "$cross_compiling" = yes; then
28147                       unset ac_cv_header_zlib_h
28148
28149 else
28150   cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h.  */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h.  */
28156
28157                         #include <zlib.h>
28158                         #include <stdio.h>
28159
28160                         int main()
28161                         {
28162                             FILE *f=fopen("conftestval", "w");
28163                             if (!f) exit(1);
28164                             fprintf(f, "%s",
28165                                     ZLIB_VERSION[0] == '1' &&
28166                                     (ZLIB_VERSION[2] > '1' ||
28167                                     (ZLIB_VERSION[2] == '1' &&
28168                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28169                             exit(0);
28170                         }
28171
28172 _ACEOF
28173 rm -f conftest$ac_exeext
28174 if { (ac_try="$ac_link"
28175 case "(($ac_try" in
28176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177   *) ac_try_echo=$ac_try;;
28178 esac
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180   (eval "$ac_link") 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28184   { (case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189   (eval "$ac_try") 2>&5
28190   ac_status=$?
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); }; }; then
28193   ac_cv_header_zlib_h=`cat conftestval`
28194 else
28195   echo "$as_me: program exited with status $ac_status" >&5
28196 echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28198
28199 ( exit $ac_status )
28200 ac_cv_header_zlib_h=no
28201 fi
28202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28203 fi
28204
28205
28206
28207 fi
28208 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28209 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28210                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28211 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28212 if test "${ac_cv_header_zlib_h+set}" = set; then
28213   echo $ECHO_N "(cached) $ECHO_C" >&6
28214 else
28215   cat >conftest.$ac_ext <<_ACEOF
28216 /* confdefs.h.  */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h.  */
28221
28222
28223 #include <zlib.h>
28224 _ACEOF
28225 rm -f conftest.$ac_objext
28226 if { (ac_try="$ac_compile"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_compile") 2>conftest.er1
28233   ac_status=$?
28234   grep -v '^ *+' conftest.er1 >conftest.err
28235   rm -f conftest.er1
28236   cat conftest.err >&5
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } && {
28239          test -z "$ac_c_werror_flag" ||
28240          test ! -s conftest.err
28241        } && test -s conftest.$ac_objext; then
28242   ac_cv_header_zlib_h=yes
28243 else
28244   echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28246
28247         ac_cv_header_zlib_h=no
28248 fi
28249
28250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28251 fi
28252 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28253 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28254
28255
28256
28257             system_zlib_h_ok=$ac_cv_header_zlib_h
28258         fi
28259
28260         if test "$system_zlib_h_ok" = "yes"; then
28261             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28262 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28263 if test "${ac_cv_lib_z_deflate+set}" = set; then
28264   echo $ECHO_N "(cached) $ECHO_C" >&6
28265 else
28266   ac_check_lib_save_LIBS=$LIBS
28267 LIBS="-lz  $LIBS"
28268 cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274
28275 /* Override any GCC internal prototype to avoid an error.
28276    Use char because int might match the return type of a GCC
28277    builtin and then its argument prototype would still apply.  */
28278 #ifdef __cplusplus
28279 extern "C"
28280 #endif
28281 char deflate ();
28282 int
28283 main ()
28284 {
28285 return deflate ();
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 rm -f conftest.$ac_objext conftest$ac_exeext
28291 if { (ac_try="$ac_link"
28292 case "(($ac_try" in
28293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294   *) ac_try_echo=$ac_try;;
28295 esac
28296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297   (eval "$ac_link") 2>conftest.er1
28298   ac_status=$?
28299   grep -v '^ *+' conftest.er1 >conftest.err
28300   rm -f conftest.er1
28301   cat conftest.err >&5
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); } && {
28304          test -z "$ac_c_werror_flag" ||
28305          test ! -s conftest.err
28306        } && test -s conftest$ac_exeext &&
28307        $as_test_x conftest$ac_exeext; then
28308   ac_cv_lib_z_deflate=yes
28309 else
28310   echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28312
28313         ac_cv_lib_z_deflate=no
28314 fi
28315
28316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28317       conftest$ac_exeext conftest.$ac_ext
28318 LIBS=$ac_check_lib_save_LIBS
28319 fi
28320 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28321 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28322 if test $ac_cv_lib_z_deflate = yes; then
28323   ZLIB_LINK=" -lz"
28324 fi
28325
28326         fi
28327
28328         if test "x$ZLIB_LINK" = "x" ; then
28329             if test "$wxUSE_ZLIB" = "sys" ; then
28330                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28331 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28332    { (exit 1); exit 1; }; }
28333             else
28334                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28335 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28336                 wxUSE_ZLIB=builtin
28337             fi
28338         else
28339                         wxUSE_ZLIB=sys
28340         fi
28341     fi
28342 fi
28343
28344
28345 PNG_LINK=
28346 if test "$wxUSE_LIBPNG" != "no" ; then
28347     cat >>confdefs.h <<\_ACEOF
28348 #define wxUSE_LIBPNG 1
28349 _ACEOF
28350
28351
28352             if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28353         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28354 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28355         wxUSE_LIBPNG=builtin
28356     fi
28357
28358     if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28359                         { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28360 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28361 if test "${ac_cv_header_png_h+set}" = set; then
28362   echo $ECHO_N "(cached) $ECHO_C" >&6
28363 else
28364   if test "$cross_compiling" = yes; then
28365                   unset ac_cv_header_png_h
28366
28367 else
28368   cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375                     #include <png.h>
28376                     #include <stdio.h>
28377
28378                     int main()
28379                     {
28380                         FILE *f=fopen("conftestval", "w");
28381                         if (!f) exit(1);
28382                         fprintf(f, "%s",
28383                                  PNG_LIBPNG_VER > 90 ? "yes" : "no");
28384                         exit(0);
28385                     }
28386
28387 _ACEOF
28388 rm -f conftest$ac_exeext
28389 if { (ac_try="$ac_link"
28390 case "(($ac_try" in
28391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392   *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395   (eval "$ac_link") 2>&5
28396   ac_status=$?
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28399   { (case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404   (eval "$ac_try") 2>&5
28405   ac_status=$?
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); }; }; then
28408   ac_cv_header_png_h=`cat conftestval`
28409 else
28410   echo "$as_me: program exited with status $ac_status" >&5
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28413
28414 ( exit $ac_status )
28415 ac_cv_header_png_h=no
28416 fi
28417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28418 fi
28419
28420
28421
28422 fi
28423 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28424 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28425         { echo "$as_me:$LINENO: checking for png.h" >&5
28426 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28427 if test "${ac_cv_header_png_h+set}" = set; then
28428   echo $ECHO_N "(cached) $ECHO_C" >&6
28429 else
28430   cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436
28437
28438 #include <png.h>
28439 _ACEOF
28440 rm -f conftest.$ac_objext
28441 if { (ac_try="$ac_compile"
28442 case "(($ac_try" in
28443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444   *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447   (eval "$ac_compile") 2>conftest.er1
28448   ac_status=$?
28449   grep -v '^ *+' conftest.er1 >conftest.err
28450   rm -f conftest.er1
28451   cat conftest.err >&5
28452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453   (exit $ac_status); } && {
28454          test -z "$ac_c_werror_flag" ||
28455          test ! -s conftest.err
28456        } && test -s conftest.$ac_objext; then
28457   ac_cv_header_png_h=yes
28458 else
28459   echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28461
28462         ac_cv_header_png_h=no
28463 fi
28464
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28466 fi
28467 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28468 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28469
28470
28471
28472         if test "$ac_cv_header_png_h" = "yes"; then
28473             { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28474 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28475 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478   ac_check_lib_save_LIBS=$LIBS
28479 LIBS="-lpng -lz -lm $LIBS"
28480 cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486
28487 /* Override any GCC internal prototype to avoid an error.
28488    Use char because int might match the return type of a GCC
28489    builtin and then its argument prototype would still apply.  */
28490 #ifdef __cplusplus
28491 extern "C"
28492 #endif
28493 char png_sig_cmp ();
28494 int
28495 main ()
28496 {
28497 return png_sig_cmp ();
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (ac_try="$ac_link"
28504 case "(($ac_try" in
28505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506   *) ac_try_echo=$ac_try;;
28507 esac
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509   (eval "$ac_link") 2>conftest.er1
28510   ac_status=$?
28511   grep -v '^ *+' conftest.er1 >conftest.err
28512   rm -f conftest.er1
28513   cat conftest.err >&5
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); } && {
28516          test -z "$ac_c_werror_flag" ||
28517          test ! -s conftest.err
28518        } && test -s conftest$ac_exeext &&
28519        $as_test_x conftest$ac_exeext; then
28520   ac_cv_lib_png_png_sig_cmp=yes
28521 else
28522   echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525         ac_cv_lib_png_png_sig_cmp=no
28526 fi
28527
28528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28529       conftest$ac_exeext conftest.$ac_ext
28530 LIBS=$ac_check_lib_save_LIBS
28531 fi
28532 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28533 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28534 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28535   PNG_LINK=" -lpng -lz"
28536 fi
28537
28538         fi
28539
28540         if test "x$PNG_LINK" = "x" ; then
28541             if test "$wxUSE_LIBPNG" = "sys" ; then
28542                 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28543 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28544    { (exit 1); exit 1; }; }
28545             else
28546                 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28547 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28548                 wxUSE_LIBPNG=builtin
28549             fi
28550         else
28551                         wxUSE_LIBPNG=sys
28552         fi
28553     fi
28554 fi
28555
28556
28557 JPEG_LINK=
28558 if test "$wxUSE_LIBJPEG" != "no" ; then
28559     cat >>confdefs.h <<\_ACEOF
28560 #define wxUSE_LIBJPEG 1
28561 _ACEOF
28562
28563
28564     if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28565                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28566 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28567         if test "${ac_cv_header_jpeglib_h+set}" = set; then
28568   echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570   cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h.  */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h.  */
28576
28577                     #undef HAVE_STDLIB_H
28578                     #include <stdio.h>
28579                     #include <jpeglib.h>
28580
28581 int
28582 main ()
28583 {
28584
28585
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 rm -f conftest.$ac_objext
28591 if { (ac_try="$ac_compile"
28592 case "(($ac_try" in
28593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594   *) ac_try_echo=$ac_try;;
28595 esac
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597   (eval "$ac_compile") 2>conftest.er1
28598   ac_status=$?
28599   grep -v '^ *+' conftest.er1 >conftest.err
28600   rm -f conftest.er1
28601   cat conftest.err >&5
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } && {
28604          test -z "$ac_c_werror_flag" ||
28605          test ! -s conftest.err
28606        } && test -s conftest.$ac_objext; then
28607   ac_cv_header_jpeglib_h=yes
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612         ac_cv_header_jpeglib_h=no
28613
28614 fi
28615
28616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28617
28618 fi
28619
28620         { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28621 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28622
28623         if test "$ac_cv_header_jpeglib_h" = "yes"; then
28624             { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28625 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28626 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28627   echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28629   ac_check_lib_save_LIBS=$LIBS
28630 LIBS="-ljpeg  $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637
28638 /* Override any GCC internal prototype to avoid an error.
28639    Use char because int might match the return type of a GCC
28640    builtin and then its argument prototype would still apply.  */
28641 #ifdef __cplusplus
28642 extern "C"
28643 #endif
28644 char jpeg_read_header ();
28645 int
28646 main ()
28647 {
28648 return jpeg_read_header ();
28649   ;
28650   return 0;
28651 }
28652 _ACEOF
28653 rm -f conftest.$ac_objext conftest$ac_exeext
28654 if { (ac_try="$ac_link"
28655 case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_link") 2>conftest.er1
28661   ac_status=$?
28662   grep -v '^ *+' conftest.er1 >conftest.err
28663   rm -f conftest.er1
28664   cat conftest.err >&5
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); } && {
28667          test -z "$ac_c_werror_flag" ||
28668          test ! -s conftest.err
28669        } && test -s conftest$ac_exeext &&
28670        $as_test_x conftest$ac_exeext; then
28671   ac_cv_lib_jpeg_jpeg_read_header=yes
28672 else
28673   echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676         ac_cv_lib_jpeg_jpeg_read_header=no
28677 fi
28678
28679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28680       conftest$ac_exeext conftest.$ac_ext
28681 LIBS=$ac_check_lib_save_LIBS
28682 fi
28683 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28684 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28685 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28686   JPEG_LINK=" -ljpeg"
28687 fi
28688
28689         fi
28690
28691         if test "x$JPEG_LINK" = "x" ; then
28692             if test "$wxUSE_LIBJPEG" = "sys" ; then
28693                 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28694 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28695    { (exit 1); exit 1; }; }
28696             else
28697                 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28698 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28699                 wxUSE_LIBJPEG=builtin
28700             fi
28701         else
28702                         wxUSE_LIBJPEG=sys
28703
28704             if test "$wxUSE_MSW" = 1; then
28705                                                                                 { echo "$as_me:$LINENO: checking for boolean" >&5
28706 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28707 if test "${ac_cv_type_boolean+set}" = set; then
28708   echo $ECHO_N "(cached) $ECHO_C" >&6
28709 else
28710   cat >conftest.$ac_ext <<_ACEOF
28711 /* confdefs.h.  */
28712 _ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h.  */
28716 #include <windows.h>
28717
28718 typedef boolean ac__type_new_;
28719 int
28720 main ()
28721 {
28722 if ((ac__type_new_ *) 0)
28723   return 0;
28724 if (sizeof (ac__type_new_))
28725   return 0;
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 rm -f conftest.$ac_objext
28731 if { (ac_try="$ac_compile"
28732 case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737   (eval "$ac_compile") 2>conftest.er1
28738   ac_status=$?
28739   grep -v '^ *+' conftest.er1 >conftest.err
28740   rm -f conftest.er1
28741   cat conftest.err >&5
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); } && {
28744          test -z "$ac_c_werror_flag" ||
28745          test ! -s conftest.err
28746        } && test -s conftest.$ac_objext; then
28747   ac_cv_type_boolean=yes
28748 else
28749   echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752         ac_cv_type_boolean=no
28753 fi
28754
28755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28756 fi
28757 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28758 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28759 if test $ac_cv_type_boolean = yes; then
28760
28761 cat >>confdefs.h <<_ACEOF
28762 #define HAVE_BOOLEAN 1
28763 _ACEOF
28764
28765
28766                         { echo "$as_me:$LINENO: checking for boolean" >&5
28767 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28768 if test "${ac_cv_type_boolean+set}" = set; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 else
28771   cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777
28778                                 #undef HAVE_BOOLEAN
28779                                 #include <stdio.h>
28780                                 #include <jpeglib.h>
28781
28782
28783 typedef boolean ac__type_new_;
28784 int
28785 main ()
28786 {
28787 if ((ac__type_new_ *) 0)
28788   return 0;
28789 if (sizeof (ac__type_new_))
28790   return 0;
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 rm -f conftest.$ac_objext
28796 if { (ac_try="$ac_compile"
28797 case "(($ac_try" in
28798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799   *) ac_try_echo=$ac_try;;
28800 esac
28801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28802   (eval "$ac_compile") 2>conftest.er1
28803   ac_status=$?
28804   grep -v '^ *+' conftest.er1 >conftest.err
28805   rm -f conftest.er1
28806   cat conftest.err >&5
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); } && {
28809          test -z "$ac_c_werror_flag" ||
28810          test ! -s conftest.err
28811        } && test -s conftest.$ac_objext; then
28812   ac_cv_type_boolean=yes
28813 else
28814   echo "$as_me: failed program was:" >&5
28815 sed 's/^/| /' conftest.$ac_ext >&5
28816
28817         ac_cv_type_boolean=no
28818 fi
28819
28820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28821 fi
28822 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28823 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28824
28825 # The cast to long int works around a bug in the HP C Compiler
28826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28828 # This bug is HP SR number 8606223364.
28829 { echo "$as_me:$LINENO: checking size of boolean" >&5
28830 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28831 if test "${ac_cv_sizeof_boolean+set}" = set; then
28832   echo $ECHO_N "(cached) $ECHO_C" >&6
28833 else
28834   if test "$cross_compiling" = yes; then
28835   # Depending upon the size, compute the lo and hi bounds.
28836 cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842
28843                                 #undef HAVE_BOOLEAN
28844                                 #include <stdio.h>
28845                                 #include <jpeglib.h>
28846
28847
28848    typedef boolean ac__type_sizeof_;
28849 int
28850 main ()
28851 {
28852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28853 test_array [0] = 0
28854
28855   ;
28856   return 0;
28857 }
28858 _ACEOF
28859 rm -f conftest.$ac_objext
28860 if { (ac_try="$ac_compile"
28861 case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866   (eval "$ac_compile") 2>conftest.er1
28867   ac_status=$?
28868   grep -v '^ *+' conftest.er1 >conftest.err
28869   rm -f conftest.er1
28870   cat conftest.err >&5
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); } && {
28873          test -z "$ac_c_werror_flag" ||
28874          test ! -s conftest.err
28875        } && test -s conftest.$ac_objext; then
28876   ac_lo=0 ac_mid=0
28877   while :; do
28878     cat >conftest.$ac_ext <<_ACEOF
28879 /* confdefs.h.  */
28880 _ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h.  */
28884
28885                                 #undef HAVE_BOOLEAN
28886                                 #include <stdio.h>
28887                                 #include <jpeglib.h>
28888
28889
28890    typedef boolean ac__type_sizeof_;
28891 int
28892 main ()
28893 {
28894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28895 test_array [0] = 0
28896
28897   ;
28898   return 0;
28899 }
28900 _ACEOF
28901 rm -f conftest.$ac_objext
28902 if { (ac_try="$ac_compile"
28903 case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908   (eval "$ac_compile") 2>conftest.er1
28909   ac_status=$?
28910   grep -v '^ *+' conftest.er1 >conftest.err
28911   rm -f conftest.er1
28912   cat conftest.err >&5
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); } && {
28915          test -z "$ac_c_werror_flag" ||
28916          test ! -s conftest.err
28917        } && test -s conftest.$ac_objext; then
28918   ac_hi=$ac_mid; break
28919 else
28920   echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923         ac_lo=`expr $ac_mid + 1`
28924                         if test $ac_lo -le $ac_mid; then
28925                           ac_lo= ac_hi=
28926                           break
28927                         fi
28928                         ac_mid=`expr 2 '*' $ac_mid + 1`
28929 fi
28930
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28932   done
28933 else
28934   echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28936
28937         cat >conftest.$ac_ext <<_ACEOF
28938 /* confdefs.h.  */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h.  */
28943
28944                                 #undef HAVE_BOOLEAN
28945                                 #include <stdio.h>
28946                                 #include <jpeglib.h>
28947
28948
28949    typedef boolean ac__type_sizeof_;
28950 int
28951 main ()
28952 {
28953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28954 test_array [0] = 0
28955
28956   ;
28957   return 0;
28958 }
28959 _ACEOF
28960 rm -f conftest.$ac_objext
28961 if { (ac_try="$ac_compile"
28962 case "(($ac_try" in
28963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964   *) ac_try_echo=$ac_try;;
28965 esac
28966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967   (eval "$ac_compile") 2>conftest.er1
28968   ac_status=$?
28969   grep -v '^ *+' conftest.er1 >conftest.err
28970   rm -f conftest.er1
28971   cat conftest.err >&5
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); } && {
28974          test -z "$ac_c_werror_flag" ||
28975          test ! -s conftest.err
28976        } && test -s conftest.$ac_objext; then
28977   ac_hi=-1 ac_mid=-1
28978   while :; do
28979     cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985
28986                                 #undef HAVE_BOOLEAN
28987                                 #include <stdio.h>
28988                                 #include <jpeglib.h>
28989
28990
28991    typedef boolean ac__type_sizeof_;
28992 int
28993 main ()
28994 {
28995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28996 test_array [0] = 0
28997
28998   ;
28999   return 0;
29000 }
29001 _ACEOF
29002 rm -f conftest.$ac_objext
29003 if { (ac_try="$ac_compile"
29004 case "(($ac_try" in
29005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006   *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009   (eval "$ac_compile") 2>conftest.er1
29010   ac_status=$?
29011   grep -v '^ *+' conftest.er1 >conftest.err
29012   rm -f conftest.er1
29013   cat conftest.err >&5
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); } && {
29016          test -z "$ac_c_werror_flag" ||
29017          test ! -s conftest.err
29018        } && test -s conftest.$ac_objext; then
29019   ac_lo=$ac_mid; break
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024         ac_hi=`expr '(' $ac_mid ')' - 1`
29025                         if test $ac_mid -le $ac_hi; then
29026                           ac_lo= ac_hi=
29027                           break
29028                         fi
29029                         ac_mid=`expr 2 '*' $ac_mid`
29030 fi
29031
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033   done
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038         ac_lo= ac_hi=
29039 fi
29040
29041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29042 fi
29043
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045 # Binary search between lo and hi bounds.
29046 while test "x$ac_lo" != "x$ac_hi"; do
29047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29048   cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054
29055                                 #undef HAVE_BOOLEAN
29056                                 #include <stdio.h>
29057                                 #include <jpeglib.h>
29058
29059
29060    typedef boolean ac__type_sizeof_;
29061 int
29062 main ()
29063 {
29064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29065 test_array [0] = 0
29066
29067   ;
29068   return 0;
29069 }
29070 _ACEOF
29071 rm -f conftest.$ac_objext
29072 if { (ac_try="$ac_compile"
29073 case "(($ac_try" in
29074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075   *) ac_try_echo=$ac_try;;
29076 esac
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078   (eval "$ac_compile") 2>conftest.er1
29079   ac_status=$?
29080   grep -v '^ *+' conftest.er1 >conftest.err
29081   rm -f conftest.er1
29082   cat conftest.err >&5
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); } && {
29085          test -z "$ac_c_werror_flag" ||
29086          test ! -s conftest.err
29087        } && test -s conftest.$ac_objext; then
29088   ac_hi=$ac_mid
29089 else
29090   echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29092
29093         ac_lo=`expr '(' $ac_mid ')' + 1`
29094 fi
29095
29096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29097 done
29098 case $ac_lo in
29099 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29100 '') if test "$ac_cv_type_boolean" = yes; then
29101      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29102 See \`config.log' for more details." >&5
29103 echo "$as_me: error: cannot compute sizeof (boolean)
29104 See \`config.log' for more details." >&2;}
29105    { (exit 77); exit 77; }; }
29106    else
29107      ac_cv_sizeof_boolean=0
29108    fi ;;
29109 esac
29110 else
29111   cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h.  */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h.  */
29117
29118                                 #undef HAVE_BOOLEAN
29119                                 #include <stdio.h>
29120                                 #include <jpeglib.h>
29121
29122
29123    typedef boolean ac__type_sizeof_;
29124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29126 #include <stdio.h>
29127 #include <stdlib.h>
29128 int
29129 main ()
29130 {
29131
29132   FILE *f = fopen ("conftest.val", "w");
29133   if (! f)
29134     return 1;
29135   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29136     {
29137       long int i = longval ();
29138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29139         return 1;
29140       fprintf (f, "%ld\n", i);
29141     }
29142   else
29143     {
29144       unsigned long int i = ulongval ();
29145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29146         return 1;
29147       fprintf (f, "%lu\n", i);
29148     }
29149   return ferror (f) || fclose (f) != 0;
29150
29151   ;
29152   return 0;
29153 }
29154 _ACEOF
29155 rm -f conftest$ac_exeext
29156 if { (ac_try="$ac_link"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162   (eval "$ac_link") 2>&5
29163   ac_status=$?
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29166   { (case "(($ac_try" in
29167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168   *) ac_try_echo=$ac_try;;
29169 esac
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171   (eval "$ac_try") 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); }; }; then
29175   ac_cv_sizeof_boolean=`cat conftest.val`
29176 else
29177   echo "$as_me: program exited with status $ac_status" >&5
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181 ( exit $ac_status )
29182 if test "$ac_cv_type_boolean" = yes; then
29183      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29184 See \`config.log' for more details." >&5
29185 echo "$as_me: error: cannot compute sizeof (boolean)
29186 See \`config.log' for more details." >&2;}
29187    { (exit 77); exit 77; }; }
29188    else
29189      ac_cv_sizeof_boolean=0
29190    fi
29191 fi
29192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29193 fi
29194 rm -f conftest.val
29195 fi
29196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29197 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29198
29199
29200
29201 cat >>confdefs.h <<_ACEOF
29202 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29203 _ACEOF
29204
29205
29206                         cat >>confdefs.h <<_ACEOF
29207 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29208 _ACEOF
29209
29210
29211 fi
29212
29213             fi
29214         fi
29215     fi
29216 fi
29217
29218
29219 TIFF_LINK=
29220 TIFF_PREREQ_LINKS=-lm
29221 if test "$wxUSE_LIBTIFF" != "no" ; then
29222     cat >>confdefs.h <<\_ACEOF
29223 #define wxUSE_LIBTIFF 1
29224 _ACEOF
29225
29226
29227     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29228                         if test "$wxUSE_LIBJPEG" = "sys"; then
29229             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29230         fi
29231         if test "$wxUSE_ZLIB" = "sys"; then
29232             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29233         fi
29234         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29235 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29236 if test "${ac_cv_header_tiffio_h+set}" = set; then
29237   echo $ECHO_N "(cached) $ECHO_C" >&6
29238 else
29239   cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29245
29246
29247
29248 #include <tiffio.h>
29249 _ACEOF
29250 rm -f conftest.$ac_objext
29251 if { (ac_try="$ac_compile"
29252 case "(($ac_try" in
29253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254   *) ac_try_echo=$ac_try;;
29255 esac
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257   (eval "$ac_compile") 2>conftest.er1
29258   ac_status=$?
29259   grep -v '^ *+' conftest.er1 >conftest.err
29260   rm -f conftest.er1
29261   cat conftest.err >&5
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); } && {
29264          test -z "$ac_c_werror_flag" ||
29265          test ! -s conftest.err
29266        } && test -s conftest.$ac_objext; then
29267   ac_cv_header_tiffio_h=yes
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29271
29272         ac_cv_header_tiffio_h=no
29273 fi
29274
29275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276 fi
29277 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29278 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29279 if test $ac_cv_header_tiffio_h = yes; then
29280
29281                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29282 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29283 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29284   echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286   ac_check_lib_save_LIBS=$LIBS
29287 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29288 cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294
29295 /* Override any GCC internal prototype to avoid an error.
29296    Use char because int might match the return type of a GCC
29297    builtin and then its argument prototype would still apply.  */
29298 #ifdef __cplusplus
29299 extern "C"
29300 #endif
29301 char TIFFError ();
29302 int
29303 main ()
29304 {
29305 return TIFFError ();
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (ac_try="$ac_link"
29312 case "(($ac_try" in
29313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314   *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317   (eval "$ac_link") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } && {
29324          test -z "$ac_c_werror_flag" ||
29325          test ! -s conftest.err
29326        } && test -s conftest$ac_exeext &&
29327        $as_test_x conftest$ac_exeext; then
29328   ac_cv_lib_tiff_TIFFError=yes
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333         ac_cv_lib_tiff_TIFFError=no
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29337       conftest$ac_exeext conftest.$ac_ext
29338 LIBS=$ac_check_lib_save_LIBS
29339 fi
29340 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29341 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29342 if test $ac_cv_lib_tiff_TIFFError = yes; then
29343   TIFF_LINK=" -ltiff"
29344 fi
29345
29346
29347 fi
29348
29349
29350
29351         if test "x$TIFF_LINK" = "x" ; then
29352             if test "$wxUSE_LIBTIFF" = "sys" ; then
29353                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29354 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29355    { (exit 1); exit 1; }; }
29356             else
29357                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29358 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29359                 wxUSE_LIBTIFF=builtin
29360             fi
29361         else
29362                         wxUSE_LIBTIFF=sys
29363         fi
29364     fi
29365     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29366         if test "$wxUSE_LIBJPEG" = "no"; then
29367                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29368         fi
29369         subdirs="$subdirs src/tiff"
29370
29371     fi
29372 fi
29373
29374
29375 if test "$wxUSE_EXPAT" != "no"; then
29376     wxUSE_XML=yes
29377     cat >>confdefs.h <<\_ACEOF
29378 #define wxUSE_EXPAT 1
29379 _ACEOF
29380
29381     cat >>confdefs.h <<\_ACEOF
29382 #define wxUSE_XML 1
29383 _ACEOF
29384
29385
29386     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29387         { echo "$as_me:$LINENO: checking for expat.h" >&5
29388 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29389 if test "${ac_cv_header_expat_h+set}" = set; then
29390   echo $ECHO_N "(cached) $ECHO_C" >&6
29391 else
29392   cat >conftest.$ac_ext <<_ACEOF
29393 /* confdefs.h.  */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h.  */
29398
29399
29400 #include <expat.h>
29401 _ACEOF
29402 rm -f conftest.$ac_objext
29403 if { (ac_try="$ac_compile"
29404 case "(($ac_try" in
29405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406   *) ac_try_echo=$ac_try;;
29407 esac
29408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409   (eval "$ac_compile") 2>conftest.er1
29410   ac_status=$?
29411   grep -v '^ *+' conftest.er1 >conftest.err
29412   rm -f conftest.er1
29413   cat conftest.err >&5
29414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415   (exit $ac_status); } && {
29416          test -z "$ac_c_werror_flag" ||
29417          test ! -s conftest.err
29418        } && test -s conftest.$ac_objext; then
29419   ac_cv_header_expat_h=yes
29420 else
29421   echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29423
29424         ac_cv_header_expat_h=no
29425 fi
29426
29427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29428 fi
29429 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29430 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29431 if test $ac_cv_header_expat_h = yes; then
29432   found_expat_h=1
29433 fi
29434
29435
29436         if test "x$found_expat_h" = "x1"; then
29437                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29438 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29439 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442
29443                 ac_ext=cpp
29444 ac_cpp='$CXXCPP $CPPFLAGS'
29445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29448
29449                 cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 #include <expat.h>
29456 int
29457 main ()
29458 {
29459
29460   ;
29461   return 0;
29462 }
29463 _ACEOF
29464 rm -f conftest.$ac_objext
29465 if { (ac_try="$ac_compile"
29466 case "(($ac_try" in
29467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29468   *) ac_try_echo=$ac_try;;
29469 esac
29470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29471   (eval "$ac_compile") 2>conftest.er1
29472   ac_status=$?
29473   grep -v '^ *+' conftest.er1 >conftest.err
29474   rm -f conftest.er1
29475   cat conftest.err >&5
29476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); } && {
29478          test -z "$ac_cxx_werror_flag" ||
29479          test ! -s conftest.err
29480        } && test -s conftest.$ac_objext; then
29481   wx_cv_expat_is_not_broken=yes
29482 else
29483   echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29485
29486         wx_cv_expat_is_not_broken=no
29487
29488 fi
29489
29490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29491                 ac_ext=c
29492 ac_cpp='$CPP $CPPFLAGS'
29493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29496
29497
29498
29499 fi
29500 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29501 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29502             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29503                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29504 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29505 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29506   echo $ECHO_N "(cached) $ECHO_C" >&6
29507 else
29508   ac_check_lib_save_LIBS=$LIBS
29509 LIBS="-lexpat  $LIBS"
29510 cat >conftest.$ac_ext <<_ACEOF
29511 /* confdefs.h.  */
29512 _ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h.  */
29516
29517 /* Override any GCC internal prototype to avoid an error.
29518    Use char because int might match the return type of a GCC
29519    builtin and then its argument prototype would still apply.  */
29520 #ifdef __cplusplus
29521 extern "C"
29522 #endif
29523 char XML_ParserCreate ();
29524 int
29525 main ()
29526 {
29527 return XML_ParserCreate ();
29528   ;
29529   return 0;
29530 }
29531 _ACEOF
29532 rm -f conftest.$ac_objext conftest$ac_exeext
29533 if { (ac_try="$ac_link"
29534 case "(($ac_try" in
29535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536   *) ac_try_echo=$ac_try;;
29537 esac
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539   (eval "$ac_link") 2>conftest.er1
29540   ac_status=$?
29541   grep -v '^ *+' conftest.er1 >conftest.err
29542   rm -f conftest.er1
29543   cat conftest.err >&5
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); } && {
29546          test -z "$ac_c_werror_flag" ||
29547          test ! -s conftest.err
29548        } && test -s conftest$ac_exeext &&
29549        $as_test_x conftest$ac_exeext; then
29550   ac_cv_lib_expat_XML_ParserCreate=yes
29551 else
29552   echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555         ac_cv_lib_expat_XML_ParserCreate=no
29556 fi
29557
29558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29559       conftest$ac_exeext conftest.$ac_ext
29560 LIBS=$ac_check_lib_save_LIBS
29561 fi
29562 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29563 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29564 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29565   EXPAT_LINK=" -lexpat"
29566 fi
29567
29568             fi
29569         fi
29570         if test "x$EXPAT_LINK" = "x" ; then
29571             if test "$wxUSE_EXPAT" = "sys" ; then
29572                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29573 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29574    { (exit 1); exit 1; }; }
29575             else
29576                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29577 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29578                 wxUSE_EXPAT=builtin
29579             fi
29580         else
29581                         wxUSE_EXPAT=sys
29582         fi
29583     fi
29584     if test "$wxUSE_EXPAT" = "builtin" ; then
29585                 subdirs="$subdirs src/expat"
29586
29587     fi
29588 fi
29589
29590
29591
29592 if test "$wxUSE_LIBMSPACK" != "no"; then
29593     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29594 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29595 if test "${ac_cv_header_mspack_h+set}" = set; then
29596   echo $ECHO_N "(cached) $ECHO_C" >&6
29597 else
29598   cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h.  */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h.  */
29604
29605
29606 #include <mspack.h>
29607 _ACEOF
29608 rm -f conftest.$ac_objext
29609 if { (ac_try="$ac_compile"
29610 case "(($ac_try" in
29611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29612   *) ac_try_echo=$ac_try;;
29613 esac
29614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29615   (eval "$ac_compile") 2>conftest.er1
29616   ac_status=$?
29617   grep -v '^ *+' conftest.er1 >conftest.err
29618   rm -f conftest.er1
29619   cat conftest.err >&5
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); } && {
29622          test -z "$ac_c_werror_flag" ||
29623          test ! -s conftest.err
29624        } && test -s conftest.$ac_objext; then
29625   ac_cv_header_mspack_h=yes
29626 else
29627   echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29629
29630         ac_cv_header_mspack_h=no
29631 fi
29632
29633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29634 fi
29635 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29636 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29637 if test $ac_cv_header_mspack_h = yes; then
29638   found_mspack_h=1
29639 fi
29640
29641
29642     if test "x$found_mspack_h" = "x1"; then
29643         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29644 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29645 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29646   echo $ECHO_N "(cached) $ECHO_C" >&6
29647 else
29648   ac_check_lib_save_LIBS=$LIBS
29649 LIBS="-lmspack  $LIBS"
29650 cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656
29657 /* Override any GCC internal prototype to avoid an error.
29658    Use char because int might match the return type of a GCC
29659    builtin and then its argument prototype would still apply.  */
29660 #ifdef __cplusplus
29661 extern "C"
29662 #endif
29663 char mspack_create_chm_decompressor ();
29664 int
29665 main ()
29666 {
29667 return mspack_create_chm_decompressor ();
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext conftest$ac_exeext
29673 if { (ac_try="$ac_link"
29674 case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_link") 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } && {
29686          test -z "$ac_c_werror_flag" ||
29687          test ! -s conftest.err
29688        } && test -s conftest$ac_exeext &&
29689        $as_test_x conftest$ac_exeext; then
29690   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29691 else
29692   echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29694
29695         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29696 fi
29697
29698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29699       conftest$ac_exeext conftest.$ac_ext
29700 LIBS=$ac_check_lib_save_LIBS
29701 fi
29702 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29703 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29704 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29705   MSPACK_LINK=" -lmspack"
29706 fi
29707
29708     fi
29709     if test "x$MSPACK_LINK" = "x" ; then
29710         wxUSE_LIBMSPACK=no
29711     fi
29712 fi
29713
29714 if test "$wxUSE_LIBMSPACK" != "no"; then
29715     cat >>confdefs.h <<\_ACEOF
29716 #define wxUSE_LIBMSPACK 1
29717 _ACEOF
29718
29719 fi
29720
29721
29722
29723 AFMINSTALL=
29724 WIN32INSTALL=
29725
29726 TOOLKIT=
29727 TOOLKIT_INCLUDE=
29728 WIDGET_SET=
29729
29730 if test "$USE_WIN32" = 1 ; then
29731
29732 for ac_header in w32api.h
29733 do
29734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29738   echo $ECHO_N "(cached) $ECHO_C" >&6
29739 else
29740   cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746
29747
29748 #include <$ac_header>
29749 _ACEOF
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_compile") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } && {
29764          test -z "$ac_c_werror_flag" ||
29765          test ! -s conftest.err
29766        } && test -s conftest.$ac_objext; then
29767   eval "$as_ac_Header=yes"
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772         eval "$as_ac_Header=no"
29773 fi
29774
29775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29776 fi
29777 ac_res=`eval echo '${'$as_ac_Header'}'`
29778                { echo "$as_me:$LINENO: result: $ac_res" >&5
29779 echo "${ECHO_T}$ac_res" >&6; }
29780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29781   cat >>confdefs.h <<_ACEOF
29782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29783 _ACEOF
29784
29785 fi
29786
29787 done
29788
29789     { echo "$as_me:$LINENO: checking for windows.h" >&5
29790 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29791 if test "${ac_cv_header_windows_h+set}" = set; then
29792   echo $ECHO_N "(cached) $ECHO_C" >&6
29793 else
29794   cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800
29801
29802 #include <windows.h>
29803 _ACEOF
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_compile") 2>conftest.er1
29812   ac_status=$?
29813   grep -v '^ *+' conftest.er1 >conftest.err
29814   rm -f conftest.er1
29815   cat conftest.err >&5
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } && {
29818          test -z "$ac_c_werror_flag" ||
29819          test ! -s conftest.err
29820        } && test -s conftest.$ac_objext; then
29821   ac_cv_header_windows_h=yes
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826         ac_cv_header_windows_h=no
29827 fi
29828
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830 fi
29831 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29832 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29833 if test $ac_cv_header_windows_h = yes; then
29834   :
29835 else
29836
29837         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29838 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29839    { (exit 1); exit 1; }; }
29840
29841 fi
29842
29843
29844
29845     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29846     case "${host}" in
29847         x86_64-*-mingw32* )
29848                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29849         ;;
29850     esac
29851     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29852         LIBS="$LIBS -loleacc"
29853     fi
29854
29855     case "${host}" in
29856         *-*-cygwin* )
29857                         LIBS="$LIBS -lkernel32 -luser32"
29858     esac
29859
29860         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29861     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29862
29863                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29864
29865         WIN32INSTALL=win32install
29866 fi
29867
29868 if test "$wxUSE_GUI" = "yes"; then
29869     USE_GUI=1
29870
29871     GUI_TK_LIBRARY=
29872
29873     WXGTK127=
29874     WXGTK2=
29875     WXGPE=
29876
29877     if test "$wxUSE_OLD_COCOA" = 1 ; then
29878         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29879             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29880 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29881             wxUSE_PRINTING_ARCHITECTURE=no
29882         fi
29883         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29884             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29885 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29886             wxUSE_DRAG_AND_DROP=no
29887         fi
29888         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29889             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29890 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29891             wxUSE_DRAGIMAGE=no
29892         fi
29893     fi
29894
29895     if test "$wxUSE_MSW" = 1 ; then
29896         TOOLKIT=MSW
29897         GUIDIST=MSW_DIST
29898
29899                 case "${host}" in
29900             *-*-mingw32* )
29901                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29902         esac
29903     fi
29904
29905     if test "$wxUSE_GTK" = 1; then
29906                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29907 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29908
29909         gtk_version_cached=1
29910         if test "${wx_cv_lib_gtk+set}" = set; then
29911   echo $ECHO_N "(cached) $ECHO_C" >&6
29912 else
29913
29914                                                 gtk_version_cached=0
29915                 { echo "$as_me:$LINENO: result: " >&5
29916 echo "${ECHO_T}" >&6; }
29917
29918                                                 GTK_MODULES=
29919                 if test "$wxUSE_THREADS" = "yes"; then
29920                     GTK_MODULES=gthread
29921                 fi
29922
29923                                 wx_cv_lib_gtk=
29924                 if test "x$wxGTK_VERSION" != "x1"
29925                 then
29926                                                                                 case "${host}" in
29927                         *-*-solaris2* )
29928                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29929                                 enable_gtktest=no
29930                             fi
29931                     esac
29932
29933                     # Check whether --enable-gtktest was given.
29934 if test "${enable_gtktest+set}" = set; then
29935   enableval=$enable_gtktest;
29936 else
29937   enable_gtktest=yes
29938 fi
29939
29940
29941   pkg_config_args=gtk+-2.0
29942   for module in . $GTK_MODULES
29943   do
29944       case "$module" in
29945          gthread)
29946              pkg_config_args="$pkg_config_args gthread-2.0"
29947          ;;
29948       esac
29949   done
29950
29951   no_gtk=""
29952
29953   # Extract the first word of "pkg-config", so it can be a program name with args.
29954 set dummy pkg-config; ac_word=$2
29955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   case $PKG_CONFIG in
29961   [\\/]* | ?:[\\/]*)
29962   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29963   ;;
29964   *)
29965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29966 for as_dir in $PATH
29967 do
29968   IFS=$as_save_IFS
29969   test -z "$as_dir" && as_dir=.
29970   for ac_exec_ext in '' $ac_executable_extensions; do
29971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29972     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29974     break 2
29975   fi
29976 done
29977 done
29978 IFS=$as_save_IFS
29979
29980   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29981   ;;
29982 esac
29983 fi
29984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29985 if test -n "$PKG_CONFIG"; then
29986   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29987 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29988 else
29989   { echo "$as_me:$LINENO: result: no" >&5
29990 echo "${ECHO_T}no" >&6; }
29991 fi
29992
29993
29994
29995   if test x$PKG_CONFIG != xno ; then
29996     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29997       :
29998     else
29999       echo "*** pkg-config too old; version 0.7 or better required."
30000       no_gtk=yes
30001       PKG_CONFIG=no
30002     fi
30003   else
30004     no_gtk=yes
30005   fi
30006
30007   min_gtk_version=2.4.0
30008   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30009 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30010
30011   if test x$PKG_CONFIG != xno ; then
30012     ## don't try to run the test against uninstalled libtool libs
30013     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30014           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30015           enable_gtktest=no
30016     fi
30017
30018     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30019           :
30020     else
30021           no_gtk=yes
30022     fi
30023   fi
30024
30025   if test x"$no_gtk" = x ; then
30026     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30027     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30028     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30029            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30030     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30031            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30032     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30033            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30034     if test "x$enable_gtktest" = "xyes" ; then
30035       ac_save_CFLAGS="$CFLAGS"
30036       ac_save_LIBS="$LIBS"
30037       CFLAGS="$CFLAGS $GTK_CFLAGS"
30038       LIBS="$GTK_LIBS $LIBS"
30039       rm -f conf.gtktest
30040       if test "$cross_compiling" = yes; then
30041   echo $ac_n "cross compiling; assumed OK... $ac_c"
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 #include <gtk/gtk.h>
30051 #include <stdio.h>
30052 #include <stdlib.h>
30053
30054 int
30055 main ()
30056 {
30057   int major, minor, micro;
30058   char *tmp_version;
30059
30060   system ("touch conf.gtktest");
30061
30062   /* HP/UX 9 (%@#!) writes to sscanf strings */
30063   tmp_version = g_strdup("$min_gtk_version");
30064   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30065      printf("%s, bad version string\n", "$min_gtk_version");
30066      exit(1);
30067    }
30068
30069   if ((gtk_major_version != $gtk_config_major_version) ||
30070       (gtk_minor_version != $gtk_config_minor_version) ||
30071       (gtk_micro_version != $gtk_config_micro_version))
30072     {
30073       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30074              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30075              gtk_major_version, gtk_minor_version, gtk_micro_version);
30076       printf ("*** was found! If pkg-config was correct, then it is best\n");
30077       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30078       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
30079       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30080       printf("*** required on your system.\n");
30081       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30082       printf("*** to point to the correct configuration files\n");
30083     }
30084   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30085            (gtk_minor_version != GTK_MINOR_VERSION) ||
30086            (gtk_micro_version != GTK_MICRO_VERSION))
30087     {
30088       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30089              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30090       printf("*** library (version %d.%d.%d)\n",
30091              gtk_major_version, gtk_minor_version, gtk_micro_version);
30092     }
30093   else
30094     {
30095       if ((gtk_major_version > major) ||
30096         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30097         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30098       {
30099         return 0;
30100        }
30101      else
30102       {
30103         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30104                gtk_major_version, gtk_minor_version, gtk_micro_version);
30105         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30106                major, minor, micro);
30107         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30108         printf("***\n");
30109         printf("*** If you have already installed a sufficiently new version, this error\n");
30110         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30111         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30112         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30113         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30114         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
30115         printf("*** so that the correct libraries are found at run-time))\n");
30116       }
30117     }
30118   return 1;
30119 }
30120
30121 _ACEOF
30122 rm -f conftest$ac_exeext
30123 if { (ac_try="$ac_link"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_link") 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30133   { (case "(($ac_try" in
30134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135   *) ac_try_echo=$ac_try;;
30136 esac
30137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138   (eval "$ac_try") 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; }; then
30142   :
30143 else
30144   echo "$as_me: program exited with status $ac_status" >&5
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30147
30148 ( exit $ac_status )
30149 no_gtk=yes
30150 fi
30151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30152 fi
30153
30154
30155        CFLAGS="$ac_save_CFLAGS"
30156        LIBS="$ac_save_LIBS"
30157      fi
30158   fi
30159   if test "x$no_gtk" = x ; then
30160      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30161 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30162      wx_cv_lib_gtk=2.0
30163   else
30164      { echo "$as_me:$LINENO: result: no" >&5
30165 echo "${ECHO_T}no" >&6; }
30166      if test "$PKG_CONFIG" = "no" ; then
30167        echo "*** A new enough version of pkg-config was not found."
30168        echo "*** See http://pkgconfig.sourceforge.net"
30169      else
30170        if test -f conf.gtktest ; then
30171         :
30172        else
30173           echo "*** Could not run GTK+ test program, checking why..."
30174           ac_save_CFLAGS="$CFLAGS"
30175           ac_save_LIBS="$LIBS"
30176           CFLAGS="$CFLAGS $GTK_CFLAGS"
30177           LIBS="$LIBS $GTK_LIBS"
30178           cat >conftest.$ac_ext <<_ACEOF
30179 /* confdefs.h.  */
30180 _ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h.  */
30184
30185 #include <gtk/gtk.h>
30186 #include <stdio.h>
30187
30188 int
30189 main ()
30190 {
30191  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30192   ;
30193   return 0;
30194 }
30195 _ACEOF
30196 rm -f conftest.$ac_objext conftest$ac_exeext
30197 if { (ac_try="$ac_link"
30198 case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_link") 2>conftest.er1
30204   ac_status=$?
30205   grep -v '^ *+' conftest.er1 >conftest.err
30206   rm -f conftest.er1
30207   cat conftest.err >&5
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); } && {
30210          test -z "$ac_c_werror_flag" ||
30211          test ! -s conftest.err
30212        } && test -s conftest$ac_exeext &&
30213        $as_test_x conftest$ac_exeext; then
30214    echo "*** The test program compiled, but did not run. This usually means"
30215           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30216           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30217           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30218           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30219           echo "*** is required on your system"
30220           echo "***"
30221           echo "*** If you have an old version installed, it is best to remove it, although"
30222           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227          echo "*** The test program failed to compile or link. See the file config.log for the"
30228           echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed."
30229 fi
30230
30231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30232       conftest$ac_exeext conftest.$ac_ext
30233           CFLAGS="$ac_save_CFLAGS"
30234           LIBS="$ac_save_LIBS"
30235        fi
30236      fi
30237      GTK_CFLAGS=""
30238      GTK_LIBS=""
30239      :
30240   fi
30241
30242
30243   rm -f conf.gtktest
30244
30245                 fi
30246
30247                                 if test -z "$wx_cv_lib_gtk"; then
30248                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30249
30250 # Check whether --with-gtk-prefix was given.
30251 if test "${with_gtk_prefix+set}" = set; then
30252   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30253 else
30254   gtk_config_prefix=""
30255 fi
30256
30257
30258 # Check whether --with-gtk-exec-prefix was given.
30259 if test "${with_gtk_exec_prefix+set}" = set; then
30260   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30261 else
30262   gtk_config_exec_prefix=""
30263 fi
30264
30265 # Check whether --enable-gtktest was given.
30266 if test "${enable_gtktest+set}" = set; then
30267   enableval=$enable_gtktest;
30268 else
30269   enable_gtktest=yes
30270 fi
30271
30272
30273   for module in . $GTK_MODULES
30274   do
30275       case "$module" in
30276          gthread)
30277              gtk_config_args="$gtk_config_args gthread"
30278          ;;
30279       esac
30280   done
30281
30282   if test x$gtk_config_exec_prefix != x ; then
30283      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30284      if test x${GTK_CONFIG+set} != xset ; then
30285         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30286      fi
30287   fi
30288   if test x$gtk_config_prefix != x ; then
30289      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30290      if test x${GTK_CONFIG+set} != xset ; then
30291         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30292      fi
30293   fi
30294
30295   # Extract the first word of "gtk-config", so it can be a program name with args.
30296 set dummy gtk-config; ac_word=$2
30297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30299 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30300   echo $ECHO_N "(cached) $ECHO_C" >&6
30301 else
30302   case $GTK_CONFIG in
30303   [\\/]* | ?:[\\/]*)
30304   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30305   ;;
30306   *)
30307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30308 for as_dir in $PATH
30309 do
30310   IFS=$as_save_IFS
30311   test -z "$as_dir" && as_dir=.
30312   for ac_exec_ext in '' $ac_executable_extensions; do
30313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30314     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30316     break 2
30317   fi
30318 done
30319 done
30320 IFS=$as_save_IFS
30321
30322   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30323   ;;
30324 esac
30325 fi
30326 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30327 if test -n "$GTK_CONFIG"; then
30328   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30329 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30330 else
30331   { echo "$as_me:$LINENO: result: no" >&5
30332 echo "${ECHO_T}no" >&6; }
30333 fi
30334
30335
30336   min_gtk_version=1.2.7
30337   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30338 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30339   no_gtk=""
30340   if test "$GTK_CONFIG" = "no" ; then
30341     no_gtk=yes
30342   else
30343     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30344     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30345     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30346            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30347     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30348            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30349     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30350            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30351     if test "x$enable_gtktest" = "xyes" ; then
30352       ac_save_CFLAGS="$CFLAGS"
30353       ac_save_LIBS="$LIBS"
30354       CFLAGS="$CFLAGS $GTK_CFLAGS"
30355       LIBS="$GTK_LIBS $LIBS"
30356       rm -f conf.gtktest
30357       if test "$cross_compiling" = yes; then
30358   echo $ac_n "cross compiling; assumed OK... $ac_c"
30359 else
30360   cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366
30367 #include <gtk/gtk.h>
30368 #include <stdio.h>
30369 #include <stdlib.h>
30370
30371 int
30372 main ()
30373 {
30374   int major, minor, micro;
30375   char *tmp_version;
30376
30377   system ("touch conf.gtktest");
30378
30379   /* HP/UX 9 (%@#!) writes to sscanf strings */
30380   tmp_version = g_strdup("$min_gtk_version");
30381   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30382      printf("%s, bad version string\n", "$min_gtk_version");
30383      exit(1);
30384    }
30385
30386   if ((gtk_major_version != $gtk_config_major_version) ||
30387       (gtk_minor_version != $gtk_config_minor_version) ||
30388       (gtk_micro_version != $gtk_config_micro_version))
30389     {
30390       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30391              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30392              gtk_major_version, gtk_minor_version, gtk_micro_version);
30393       printf ("*** was found! If gtk-config was correct, then it is best\n");
30394       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30395       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
30396       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30397       printf("*** required on your system.\n");
30398       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30399       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30400       printf("*** before re-running configure\n");
30401     }
30402 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30403   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30404            (gtk_minor_version != GTK_MINOR_VERSION) ||
30405            (gtk_micro_version != GTK_MICRO_VERSION))
30406     {
30407       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30408              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30409       printf("*** library (version %d.%d.%d)\n",
30410              gtk_major_version, gtk_minor_version, gtk_micro_version);
30411     }
30412 #endif /* defined (GTK_MAJOR_VERSION) ... */
30413   else
30414     {
30415       if ((gtk_major_version > major) ||
30416         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30417         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30418       {
30419         return 0;
30420        }
30421      else
30422       {
30423         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30424                gtk_major_version, gtk_minor_version, gtk_micro_version);
30425         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30426                major, minor, micro);
30427         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30428         printf("***\n");
30429         printf("*** If you have already installed a sufficiently new version, this error\n");
30430         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30431         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30432         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30433         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30434         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
30435         printf("*** so that the correct libraries are found at run-time))\n");
30436       }
30437     }
30438   return 1;
30439 }
30440
30441 _ACEOF
30442 rm -f conftest$ac_exeext
30443 if { (ac_try="$ac_link"
30444 case "(($ac_try" in
30445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446   *) ac_try_echo=$ac_try;;
30447 esac
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449   (eval "$ac_link") 2>&5
30450   ac_status=$?
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30453   { (case "(($ac_try" in
30454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455   *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458   (eval "$ac_try") 2>&5
30459   ac_status=$?
30460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461   (exit $ac_status); }; }; then
30462   :
30463 else
30464   echo "$as_me: program exited with status $ac_status" >&5
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30467
30468 ( exit $ac_status )
30469 no_gtk=yes
30470 fi
30471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30472 fi
30473
30474
30475        CFLAGS="$ac_save_CFLAGS"
30476        LIBS="$ac_save_LIBS"
30477      fi
30478   fi
30479   if test "x$no_gtk" = x ; then
30480      { echo "$as_me:$LINENO: result: yes" >&5
30481 echo "${ECHO_T}yes" >&6; }
30482      wx_cv_lib_gtk=1.2.7
30483   else
30484      { echo "$as_me:$LINENO: result: no" >&5
30485 echo "${ECHO_T}no" >&6; }
30486      if test "$GTK_CONFIG" = "no" ; then
30487        echo "*** The gtk-config script installed by GTK could not be found"
30488        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30489        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30490        echo "*** full path to gtk-config."
30491      else
30492        if test -f conf.gtktest ; then
30493         :
30494        else
30495           echo "*** Could not run GTK test program, checking why..."
30496           CFLAGS="$CFLAGS $GTK_CFLAGS"
30497           LIBS="$LIBS $GTK_LIBS"
30498           cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h.  */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h.  */
30504
30505 #include <gtk/gtk.h>
30506 #include <stdio.h>
30507
30508 int
30509 main ()
30510 {
30511  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (ac_try="$ac_link"
30518 case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_link") 2>conftest.er1
30524   ac_status=$?
30525   grep -v '^ *+' conftest.er1 >conftest.err
30526   rm -f conftest.er1
30527   cat conftest.err >&5
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); } && {
30530          test -z "$ac_c_werror_flag" ||
30531          test ! -s conftest.err
30532        } && test -s conftest$ac_exeext &&
30533        $as_test_x conftest$ac_exeext; then
30534    echo "*** The test program compiled, but did not run. This usually means"
30535           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30536           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30537           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30538           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30539           echo "*** is required on your system"
30540           echo "***"
30541           echo "*** If you have an old version installed, it is best to remove it, although"
30542           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30543           echo "***"
30544           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30545           echo "*** came with the system with the command"
30546           echo "***"
30547           echo "***    rpm --erase --nodeps gtk gtk-devel"
30548 else
30549   echo "$as_me: failed program was:" >&5
30550 sed 's/^/| /' conftest.$ac_ext >&5
30551
30552          echo "*** The test program failed to compile or link. See the file config.log for the"
30553           echo "*** exact error that occurred. This usually means GTK was incorrectly installed"
30554           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30555           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30559       conftest$ac_exeext conftest.$ac_ext
30560           CFLAGS="$ac_save_CFLAGS"
30561           LIBS="$ac_save_LIBS"
30562        fi
30563      fi
30564      GTK_CFLAGS=""
30565      GTK_LIBS=""
30566      :
30567   fi
30568
30569
30570   rm -f conf.gtktest
30571
30572
30573                         if test -z "$wx_cv_lib_gtk"; then
30574
30575 # Check whether --with-gtk-prefix was given.
30576 if test "${with_gtk_prefix+set}" = set; then
30577   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30578 else
30579   gtk_config_prefix=""
30580 fi
30581
30582
30583 # Check whether --with-gtk-exec-prefix was given.
30584 if test "${with_gtk_exec_prefix+set}" = set; then
30585   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30586 else
30587   gtk_config_exec_prefix=""
30588 fi
30589
30590 # Check whether --enable-gtktest was given.
30591 if test "${enable_gtktest+set}" = set; then
30592   enableval=$enable_gtktest;
30593 else
30594   enable_gtktest=yes
30595 fi
30596
30597
30598   for module in . $GTK_MODULES
30599   do
30600       case "$module" in
30601          gthread)
30602              gtk_config_args="$gtk_config_args gthread"
30603          ;;
30604       esac
30605   done
30606
30607   if test x$gtk_config_exec_prefix != x ; then
30608      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30609      if test x${GTK_CONFIG+set} != xset ; then
30610         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30611      fi
30612   fi
30613   if test x$gtk_config_prefix != x ; then
30614      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30615      if test x${GTK_CONFIG+set} != xset ; then
30616         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30617      fi
30618   fi
30619
30620   # Extract the first word of "gtk-config", so it can be a program name with args.
30621 set dummy gtk-config; ac_word=$2
30622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30624 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30625   echo $ECHO_N "(cached) $ECHO_C" >&6
30626 else
30627   case $GTK_CONFIG in
30628   [\\/]* | ?:[\\/]*)
30629   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30630   ;;
30631   *)
30632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30633 for as_dir in $PATH
30634 do
30635   IFS=$as_save_IFS
30636   test -z "$as_dir" && as_dir=.
30637   for ac_exec_ext in '' $ac_executable_extensions; do
30638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30639     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30641     break 2
30642   fi
30643 done
30644 done
30645 IFS=$as_save_IFS
30646
30647   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30648   ;;
30649 esac
30650 fi
30651 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30652 if test -n "$GTK_CONFIG"; then
30653   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30654 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30655 else
30656   { echo "$as_me:$LINENO: result: no" >&5
30657 echo "${ECHO_T}no" >&6; }
30658 fi
30659
30660
30661   min_gtk_version=1.2.3
30662   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30663 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30664   no_gtk=""
30665   if test "$GTK_CONFIG" = "no" ; then
30666     no_gtk=yes
30667   else
30668     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30669     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30670     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30671            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30672     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30673            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30674     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30675            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30676     if test "x$enable_gtktest" = "xyes" ; then
30677       ac_save_CFLAGS="$CFLAGS"
30678       ac_save_LIBS="$LIBS"
30679       CFLAGS="$CFLAGS $GTK_CFLAGS"
30680       LIBS="$GTK_LIBS $LIBS"
30681       rm -f conf.gtktest
30682       if test "$cross_compiling" = yes; then
30683   echo $ac_n "cross compiling; assumed OK... $ac_c"
30684 else
30685   cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h.  */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h.  */
30691
30692 #include <gtk/gtk.h>
30693 #include <stdio.h>
30694 #include <stdlib.h>
30695
30696 int
30697 main ()
30698 {
30699   int major, minor, micro;
30700   char *tmp_version;
30701
30702   system ("touch conf.gtktest");
30703
30704   /* HP/UX 9 (%@#!) writes to sscanf strings */
30705   tmp_version = g_strdup("$min_gtk_version");
30706   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30707      printf("%s, bad version string\n", "$min_gtk_version");
30708      exit(1);
30709    }
30710
30711   if ((gtk_major_version != $gtk_config_major_version) ||
30712       (gtk_minor_version != $gtk_config_minor_version) ||
30713       (gtk_micro_version != $gtk_config_micro_version))
30714     {
30715       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30716              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30717              gtk_major_version, gtk_minor_version, gtk_micro_version);
30718       printf ("*** was found! If gtk-config was correct, then it is best\n");
30719       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30720       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
30721       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30722       printf("*** required on your system.\n");
30723       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30724       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30725       printf("*** before re-running configure\n");
30726     }
30727 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30728   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30729            (gtk_minor_version != GTK_MINOR_VERSION) ||
30730            (gtk_micro_version != GTK_MICRO_VERSION))
30731     {
30732       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30733              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30734       printf("*** library (version %d.%d.%d)\n",
30735              gtk_major_version, gtk_minor_version, gtk_micro_version);
30736     }
30737 #endif /* defined (GTK_MAJOR_VERSION) ... */
30738   else
30739     {
30740       if ((gtk_major_version > major) ||
30741         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30742         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30743       {
30744         return 0;
30745        }
30746      else
30747       {
30748         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30749                gtk_major_version, gtk_minor_version, gtk_micro_version);
30750         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30751                major, minor, micro);
30752         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30753         printf("***\n");
30754         printf("*** If you have already installed a sufficiently new version, this error\n");
30755         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30756         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30757         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30758         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30759         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
30760         printf("*** so that the correct libraries are found at run-time))\n");
30761       }
30762     }
30763   return 1;
30764 }
30765
30766 _ACEOF
30767 rm -f conftest$ac_exeext
30768 if { (ac_try="$ac_link"
30769 case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774   (eval "$ac_link") 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30778   { (case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_try") 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); }; }; then
30787   :
30788 else
30789   echo "$as_me: program exited with status $ac_status" >&5
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30792
30793 ( exit $ac_status )
30794 no_gtk=yes
30795 fi
30796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30797 fi
30798
30799
30800        CFLAGS="$ac_save_CFLAGS"
30801        LIBS="$ac_save_LIBS"
30802      fi
30803   fi
30804   if test "x$no_gtk" = x ; then
30805      { echo "$as_me:$LINENO: result: yes" >&5
30806 echo "${ECHO_T}yes" >&6; }
30807      wx_cv_lib_gtk=1.2.3
30808   else
30809      { echo "$as_me:$LINENO: result: no" >&5
30810 echo "${ECHO_T}no" >&6; }
30811      if test "$GTK_CONFIG" = "no" ; then
30812        echo "*** The gtk-config script installed by GTK could not be found"
30813        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30814        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30815        echo "*** full path to gtk-config."
30816      else
30817        if test -f conf.gtktest ; then
30818         :
30819        else
30820           echo "*** Could not run GTK test program, checking why..."
30821           CFLAGS="$CFLAGS $GTK_CFLAGS"
30822           LIBS="$LIBS $GTK_LIBS"
30823           cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30829
30830 #include <gtk/gtk.h>
30831 #include <stdio.h>
30832
30833 int
30834 main ()
30835 {
30836  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30837   ;
30838   return 0;
30839 }
30840 _ACEOF
30841 rm -f conftest.$ac_objext conftest$ac_exeext
30842 if { (ac_try="$ac_link"
30843 case "(($ac_try" in
30844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845   *) ac_try_echo=$ac_try;;
30846 esac
30847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848   (eval "$ac_link") 2>conftest.er1
30849   ac_status=$?
30850   grep -v '^ *+' conftest.er1 >conftest.err
30851   rm -f conftest.er1
30852   cat conftest.err >&5
30853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854   (exit $ac_status); } && {
30855          test -z "$ac_c_werror_flag" ||
30856          test ! -s conftest.err
30857        } && test -s conftest$ac_exeext &&
30858        $as_test_x conftest$ac_exeext; then
30859    echo "*** The test program compiled, but did not run. This usually means"
30860           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30861           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30862           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30863           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30864           echo "*** is required on your system"
30865           echo "***"
30866           echo "*** If you have an old version installed, it is best to remove it, although"
30867           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30868           echo "***"
30869           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30870           echo "*** came with the system with the command"
30871           echo "***"
30872           echo "***    rpm --erase --nodeps gtk gtk-devel"
30873 else
30874   echo "$as_me: failed program was:" >&5
30875 sed 's/^/| /' conftest.$ac_ext >&5
30876
30877          echo "*** The test program failed to compile or link. See the file config.log for the"
30878           echo "*** exact error that occurred. This usually means GTK was incorrectly installed"
30879           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30880           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30881 fi
30882
30883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30884       conftest$ac_exeext conftest.$ac_ext
30885           CFLAGS="$ac_save_CFLAGS"
30886           LIBS="$ac_save_LIBS"
30887        fi
30888      fi
30889      GTK_CFLAGS=""
30890      GTK_LIBS=""
30891      :
30892   fi
30893
30894
30895   rm -f conf.gtktest
30896
30897                         fi
30898                     fi
30899                 fi
30900
30901                 if test -z "$wx_cv_lib_gtk"; then
30902                                         wx_cv_lib_gtk=none
30903                 else
30904                                         GTK_LIBS="$GTK_LIBS -lX11"
30905
30906                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30907                     wx_cv_libs_gtk=$GTK_LIBS
30908                 fi
30909
30910
30911 fi
30912
30913
30914                         if test "$gtk_version_cached" = 1; then
30915             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30916 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30917         fi
30918
30919         case "$wx_cv_lib_gtk" in
30920             2.0)    WXGTK2=1
30921                     TOOLKIT_VERSION=2
30922                     ;;
30923             1.2.7)  WXGTK127=1
30924                     ;;
30925             1.2*) ;;
30926             *)      { { echo "$as_me:$LINENO: error:
30927 The development files for GTK+ were not found. For GTK+ 2, please
30928 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30929 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30930 and that the version is 1.2.3 or above. Also check that the
30931 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30932 --libs' are in the LD_LIBRARY_PATH or equivalent.
30933                             " >&5
30934 echo "$as_me: error:
30935 The development files for GTK+ were not found. For GTK+ 2, please
30936 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30937 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30938 and that the version is 1.2.3 or above. Also check that the
30939 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30940 --libs' are in the LD_LIBRARY_PATH or equivalent.
30941                             " >&2;}
30942    { (exit 1); exit 1; }; }
30943                     ;;
30944         esac
30945
30946         if test "$WXGTK2" = 1; then
30947             save_CFLAGS="$CFLAGS"
30948             save_LIBS="$LIBS"
30949             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30950             LIBS="$LIBS $wx_cv_libs_gtk"
30951
30952                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30953 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30954             cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960
30961                             #include <gtk/gtk.h>
30962
30963 int
30964 main ()
30965 {
30966
30967                             #if !GTK_CHECK_VERSION(2,18,0)
30968                             Not GTK+ 2.18
30969                             #endif
30970
30971   ;
30972   return 0;
30973 }
30974 _ACEOF
30975 rm -f conftest.$ac_objext
30976 if { (ac_try="$ac_compile"
30977 case "(($ac_try" in
30978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30979   *) ac_try_echo=$ac_try;;
30980 esac
30981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30982   (eval "$ac_compile") 2>conftest.er1
30983   ac_status=$?
30984   grep -v '^ *+' conftest.er1 >conftest.err
30985   rm -f conftest.er1
30986   cat conftest.err >&5
30987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988   (exit $ac_status); } && {
30989          test -z "$ac_c_werror_flag" ||
30990          test ! -s conftest.err
30991        } && test -s conftest.$ac_objext; then
30992
30993                             cat >>confdefs.h <<\_ACEOF
30994 #define __WXGTK218__ 1
30995 _ACEOF
30996
30997                             cat >>confdefs.h <<\_ACEOF
30998 #define __WXGTK210__ 1
30999 _ACEOF
31000
31001                             cat >>confdefs.h <<\_ACEOF
31002 #define __WXGTK26__ 1
31003 _ACEOF
31004
31005                             { echo "$as_me:$LINENO: result: yes" >&5
31006 echo "${ECHO_T}yes" >&6; }
31007                             ac_wxgtk218=1
31008
31009 else
31010   echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31012
31013
31014                             { echo "$as_me:$LINENO: result: no" >&5
31015 echo "${ECHO_T}no" >&6; }
31016                             ac_wxgtk218=0
31017
31018 fi
31019
31020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31021
31022             if test "$ac_wxgtk218" = 0; then
31023                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31024 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31025                 cat >conftest.$ac_ext <<_ACEOF
31026 /* confdefs.h.  */
31027 _ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h.  */
31031
31032                                 #include <gtk/gtk.h>
31033
31034 int
31035 main ()
31036 {
31037
31038                                 #if !GTK_CHECK_VERSION(2,10,0)
31039                                 Not GTK+ 2.10
31040                                 #endif
31041
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext
31047 if { (ac_try="$ac_compile"
31048 case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_compile") 2>conftest.er1
31054   ac_status=$?
31055   grep -v '^ *+' conftest.er1 >conftest.err
31056   rm -f conftest.er1
31057   cat conftest.err >&5
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); } && {
31060          test -z "$ac_c_werror_flag" ||
31061          test ! -s conftest.err
31062        } && test -s conftest.$ac_objext; then
31063
31064                                 cat >>confdefs.h <<\_ACEOF
31065 #define __WXGTK210__ 1
31066 _ACEOF
31067
31068                                 cat >>confdefs.h <<\_ACEOF
31069 #define __WXGTK26__ 1
31070 _ACEOF
31071
31072                                 { echo "$as_me:$LINENO: result: yes" >&5
31073 echo "${ECHO_T}yes" >&6; }
31074                                 ac_wxgtk210=1
31075
31076 else
31077   echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31079
31080
31081                                 { echo "$as_me:$LINENO: result: no" >&5
31082 echo "${ECHO_T}no" >&6; }
31083                                 ac_wxgtk210=0
31084
31085 fi
31086
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088
31089                 if test "$ac_wxgtk210" = 0; then
31090                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31091 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31092                     cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h.  */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h.  */
31098
31099                                     #include <gtk/gtk.h>
31100
31101 int
31102 main ()
31103 {
31104
31105                                     #if !GTK_CHECK_VERSION(2,6,0)
31106                                     Not GTK+ 2.6
31107                                     #endif
31108
31109   ;
31110   return 0;
31111 }
31112 _ACEOF
31113 rm -f conftest.$ac_objext
31114 if { (ac_try="$ac_compile"
31115 case "(($ac_try" in
31116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117   *) ac_try_echo=$ac_try;;
31118 esac
31119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120   (eval "$ac_compile") 2>conftest.er1
31121   ac_status=$?
31122   grep -v '^ *+' conftest.er1 >conftest.err
31123   rm -f conftest.er1
31124   cat conftest.err >&5
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); } && {
31127          test -z "$ac_c_werror_flag" ||
31128          test ! -s conftest.err
31129        } && test -s conftest.$ac_objext; then
31130
31131                                     cat >>confdefs.h <<\_ACEOF
31132 #define __WXGTK26__ 1
31133 _ACEOF
31134
31135                                     { echo "$as_me:$LINENO: result: yes" >&5
31136 echo "${ECHO_T}yes" >&6; }
31137                                     ac_wxgtk26=1
31138
31139 else
31140   echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31142
31143
31144                                     { echo "$as_me:$LINENO: result: no" >&5
31145 echo "${ECHO_T}no" >&6; }
31146                                     ac_wxgtk26=0
31147
31148 fi
31149
31150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31151                 fi
31152             fi
31153
31154             CFLAGS="$save_CFLAGS"
31155             LIBS="$save_LIBS"
31156         else
31157             if test "$wxUSE_UNICODE" = "yes"; then
31158                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31159 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31160                 wxUSE_UNICODE=no
31161             fi
31162
31163                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31164 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31165 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31166   echo $ECHO_N "(cached) $ECHO_C" >&6
31167 else
31168   ac_check_lib_save_LIBS=$LIBS
31169 LIBS="-lgdk  $LIBS"
31170 cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176
31177 /* Override any GCC internal prototype to avoid an error.
31178    Use char because int might match the return type of a GCC
31179    builtin and then its argument prototype would still apply.  */
31180 #ifdef __cplusplus
31181 extern "C"
31182 #endif
31183 char gdk_im_open ();
31184 int
31185 main ()
31186 {
31187 return gdk_im_open ();
31188   ;
31189   return 0;
31190 }
31191 _ACEOF
31192 rm -f conftest.$ac_objext conftest$ac_exeext
31193 if { (ac_try="$ac_link"
31194 case "(($ac_try" in
31195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196   *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199   (eval "$ac_link") 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } && {
31206          test -z "$ac_c_werror_flag" ||
31207          test ! -s conftest.err
31208        } && test -s conftest$ac_exeext &&
31209        $as_test_x conftest$ac_exeext; then
31210   ac_cv_lib_gdk_gdk_im_open=yes
31211 else
31212   echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31214
31215         ac_cv_lib_gdk_gdk_im_open=no
31216 fi
31217
31218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31219       conftest$ac_exeext conftest.$ac_ext
31220 LIBS=$ac_check_lib_save_LIBS
31221 fi
31222 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31223 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31224 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31225   cat >>confdefs.h <<\_ACEOF
31226 #define HAVE_XIM 1
31227 _ACEOF
31228
31229 fi
31230
31231
31232                                     if test "$USE_DARWIN" != 1; then
31233
31234 for ac_func in poll
31235 do
31236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31240   echo $ECHO_N "(cached) $ECHO_C" >&6
31241 else
31242   cat >conftest.$ac_ext <<_ACEOF
31243 /* confdefs.h.  */
31244 _ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h.  */
31248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31250 #define $ac_func innocuous_$ac_func
31251
31252 /* System header to define __stub macros and hopefully few prototypes,
31253     which can conflict with char $ac_func (); below.
31254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31255     <limits.h> exists even on freestanding compilers.  */
31256
31257 #ifdef __STDC__
31258 # include <limits.h>
31259 #else
31260 # include <assert.h>
31261 #endif
31262
31263 #undef $ac_func
31264
31265 /* Override any GCC internal prototype to avoid an error.
31266    Use char because int might match the return type of a GCC
31267    builtin and then its argument prototype would still apply.  */
31268 #ifdef __cplusplus
31269 extern "C"
31270 #endif
31271 char $ac_func ();
31272 /* The GNU C library defines this for functions which it implements
31273     to always fail with ENOSYS.  Some functions are actually named
31274     something starting with __ and the normal name is an alias.  */
31275 #if defined __stub_$ac_func || defined __stub___$ac_func
31276 choke me
31277 #endif
31278
31279 int
31280 main ()
31281 {
31282 return $ac_func ();
31283   ;
31284   return 0;
31285 }
31286 _ACEOF
31287 rm -f conftest.$ac_objext conftest$ac_exeext
31288 if { (ac_try="$ac_link"
31289 case "(($ac_try" in
31290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291   *) ac_try_echo=$ac_try;;
31292 esac
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294   (eval "$ac_link") 2>conftest.er1
31295   ac_status=$?
31296   grep -v '^ *+' conftest.er1 >conftest.err
31297   rm -f conftest.er1
31298   cat conftest.err >&5
31299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300   (exit $ac_status); } && {
31301          test -z "$ac_c_werror_flag" ||
31302          test ! -s conftest.err
31303        } && test -s conftest$ac_exeext &&
31304        $as_test_x conftest$ac_exeext; then
31305   eval "$as_ac_var=yes"
31306 else
31307   echo "$as_me: failed program was:" >&5
31308 sed 's/^/| /' conftest.$ac_ext >&5
31309
31310         eval "$as_ac_var=no"
31311 fi
31312
31313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31314       conftest$ac_exeext conftest.$ac_ext
31315 fi
31316 ac_res=`eval echo '${'$as_ac_var'}'`
31317                { echo "$as_me:$LINENO: result: $ac_res" >&5
31318 echo "${ECHO_T}$ac_res" >&6; }
31319 if test `eval echo '${'$as_ac_var'}'` = yes; then
31320   cat >>confdefs.h <<_ACEOF
31321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31322 _ACEOF
31323
31324 fi
31325 done
31326
31327             fi
31328         fi
31329
31330         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31331         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31332         AFMINSTALL=afminstall
31333         TOOLKIT=GTK
31334         GUIDIST=GTK_DIST
31335
31336                 if test "$wxUSE_GPE" = "yes"; then
31337             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31338 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31339
31340   ac_find_libraries=
31341   for ac_dir in  $SEARCH_LIB
31342   do
31343     for ac_extension in a so sl dylib dll.a; do
31344       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31345         ac_find_libraries=$ac_dir
31346         break 2
31347       fi
31348     done
31349   done
31350
31351             if test "$ac_find_libraries" != "" ; then
31352
31353     if test "$ac_find_libraries" = "default location"; then
31354     ac_path_to_link=""
31355   else
31356     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31357     result=$?
31358     if test $result = 0; then
31359       ac_path_to_link=""
31360     else
31361       ac_path_to_link=" -L$ac_find_libraries"
31362     fi
31363   fi
31364
31365                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31366                 WXGPE=1
31367                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31368 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31369             else
31370                 { echo "$as_me:$LINENO: result: not found" >&5
31371 echo "${ECHO_T}not found" >&6; }
31372             fi
31373
31374                                                                                                                     fi
31375     fi
31376
31377     if test "$wxUSE_DFB" = 1; then
31378
31379
31380 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31381         if test -n "$ac_tool_prefix"; then
31382   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31383 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31387   echo $ECHO_N "(cached) $ECHO_C" >&6
31388 else
31389   case $PKG_CONFIG in
31390   [\\/]* | ?:[\\/]*)
31391   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31392   ;;
31393   *)
31394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395 for as_dir in $PATH
31396 do
31397   IFS=$as_save_IFS
31398   test -z "$as_dir" && as_dir=.
31399   for ac_exec_ext in '' $ac_executable_extensions; do
31400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31403     break 2
31404   fi
31405 done
31406 done
31407 IFS=$as_save_IFS
31408
31409   ;;
31410 esac
31411 fi
31412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31413 if test -n "$PKG_CONFIG"; then
31414   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31415 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31416 else
31417   { echo "$as_me:$LINENO: result: no" >&5
31418 echo "${ECHO_T}no" >&6; }
31419 fi
31420
31421
31422 fi
31423 if test -z "$ac_cv_path_PKG_CONFIG"; then
31424   ac_pt_PKG_CONFIG=$PKG_CONFIG
31425   # Extract the first word of "pkg-config", so it can be a program name with args.
31426 set dummy pkg-config; ac_word=$2
31427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31429 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31430   echo $ECHO_N "(cached) $ECHO_C" >&6
31431 else
31432   case $ac_pt_PKG_CONFIG in
31433   [\\/]* | ?:[\\/]*)
31434   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31435   ;;
31436   *)
31437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31438 for as_dir in $PATH
31439 do
31440   IFS=$as_save_IFS
31441   test -z "$as_dir" && as_dir=.
31442   for ac_exec_ext in '' $ac_executable_extensions; do
31443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31444     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31446     break 2
31447   fi
31448 done
31449 done
31450 IFS=$as_save_IFS
31451
31452   ;;
31453 esac
31454 fi
31455 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31456 if test -n "$ac_pt_PKG_CONFIG"; then
31457   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31458 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31459 else
31460   { echo "$as_me:$LINENO: result: no" >&5
31461 echo "${ECHO_T}no" >&6; }
31462 fi
31463
31464   if test "x$ac_pt_PKG_CONFIG" = x; then
31465     PKG_CONFIG=""
31466   else
31467     case $cross_compiling:$ac_tool_warned in
31468 yes:)
31469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31470 whose name does not start with the host triplet.  If you think this
31471 configuration is useful to you, please write to autoconf@gnu.org." >&5
31472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31473 whose name does not start with the host triplet.  If you think this
31474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31475 ac_tool_warned=yes ;;
31476 esac
31477     PKG_CONFIG=$ac_pt_PKG_CONFIG
31478   fi
31479 else
31480   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31481 fi
31482
31483 fi
31484 if test -n "$PKG_CONFIG"; then
31485         _pkg_min_version=0.9.0
31486         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31487 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31488         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31489                 { echo "$as_me:$LINENO: result: yes" >&5
31490 echo "${ECHO_T}yes" >&6; }
31491         else
31492                 { echo "$as_me:$LINENO: result: no" >&5
31493 echo "${ECHO_T}no" >&6; }
31494                 PKG_CONFIG=""
31495         fi
31496
31497 fi
31498
31499
31500 pkg_failed=no
31501 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31502 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31503
31504 if test -n "$PKG_CONFIG"; then
31505     if test -n "$DIRECTFB_CFLAGS"; then
31506         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31507     else
31508         if test -n "$PKG_CONFIG" && \
31509     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31510   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31511   ac_status=$?
31512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513   (exit $ac_status); }; then
31514   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31515 else
31516   pkg_failed=yes
31517 fi
31518     fi
31519 else
31520         pkg_failed=untried
31521 fi
31522 if test -n "$PKG_CONFIG"; then
31523     if test -n "$DIRECTFB_LIBS"; then
31524         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31525     else
31526         if test -n "$PKG_CONFIG" && \
31527     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31528   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31529   ac_status=$?
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); }; then
31532   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31533 else
31534   pkg_failed=yes
31535 fi
31536     fi
31537 else
31538         pkg_failed=untried
31539 fi
31540
31541
31542
31543 if test $pkg_failed = yes; then
31544
31545 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31546         _pkg_short_errors_supported=yes
31547 else
31548         _pkg_short_errors_supported=no
31549 fi
31550         if test $_pkg_short_errors_supported = yes; then
31551                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31552         else
31553                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31554         fi
31555         # Put the nasty error message in config.log where it belongs
31556         echo "$DIRECTFB_PKG_ERRORS" >&5
31557
31558
31559                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31560 echo "$as_me: error: DirectFB not found." >&2;}
31561    { (exit 1); exit 1; }; }
31562
31563
31564 elif test $pkg_failed = untried; then
31565
31566                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31567 echo "$as_me: error: DirectFB not found." >&2;}
31568    { (exit 1); exit 1; }; }
31569
31570
31571 else
31572         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31573         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31574         { echo "$as_me:$LINENO: result: yes" >&5
31575 echo "${ECHO_T}yes" >&6; }
31576
31577                            wxUSE_UNIVERSAL="yes"
31578                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31579                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31580                            TOOLKIT=DFB
31581                            GUIDIST=DFB_DIST
31582
31583 fi
31584     fi
31585
31586     if test "$wxUSE_MICROWIN" = 1; then
31587         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31588 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31589         if test "x$MICROWINDOWS" = x ; then
31590             { echo "$as_me:$LINENO: result: not found" >&5
31591 echo "${ECHO_T}not found" >&6; }
31592             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31593 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31594    { (exit 1); exit 1; }; }
31595         else
31596             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31597 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31598         fi
31599
31600         if test -f $MICROWINDOWS/lib/libmwin.a; then
31601             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31602 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31603         else
31604             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31605 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31606    { (exit 1); exit 1; }; }
31607         fi
31608
31609         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31610         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31611
31612         wxUSE_UNIVERSAL="yes"
31613
31614         AFMINSTALL=afminstall
31615         TOOLKIT=MICROWIN
31616         GUIDIST=MICROWIN_DIST
31617
31618         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31619     fi
31620
31621         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31622                                 { echo "$as_me:$LINENO: checking for X" >&5
31623 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31624
31625
31626 # Check whether --with-x was given.
31627 if test "${with_x+set}" = set; then
31628   withval=$with_x;
31629 fi
31630
31631 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31632 if test "x$with_x" = xno; then
31633   # The user explicitly disabled X.
31634   have_x=disabled
31635 else
31636   case $x_includes,$x_libraries in #(
31637     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31638 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31639    { (exit 1); exit 1; }; };; #(
31640     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31641   echo $ECHO_N "(cached) $ECHO_C" >&6
31642 else
31643   # One or both of the vars are not set, and there is no cached value.
31644 ac_x_includes=no ac_x_libraries=no
31645 rm -f -r conftest.dir
31646 if mkdir conftest.dir; then
31647   cd conftest.dir
31648   cat >Imakefile <<'_ACEOF'
31649 incroot:
31650         @echo incroot='${INCROOT}'
31651 usrlibdir:
31652         @echo usrlibdir='${USRLIBDIR}'
31653 libdir:
31654         @echo libdir='${LIBDIR}'
31655 _ACEOF
31656   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31657     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31658     for ac_var in incroot usrlibdir libdir; do
31659       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31660     done
31661     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31662     for ac_extension in a so sl; do
31663       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31664          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31665         ac_im_usrlibdir=$ac_im_libdir; break
31666       fi
31667     done
31668     # Screen out bogus values from the imake configuration.  They are
31669     # bogus both because they are the default anyway, and because
31670     # using them would break gcc on systems where it needs fixed includes.
31671     case $ac_im_incroot in
31672         /usr/include) ac_x_includes= ;;
31673         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31674     esac
31675     case $ac_im_usrlibdir in
31676         /usr/lib | /lib) ;;
31677         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31678     esac
31679   fi
31680   cd ..
31681   rm -f -r conftest.dir
31682 fi
31683
31684 # Standard set of common directories for X headers.
31685 # Check X11 before X11Rn because it is often a symlink to the current release.
31686 ac_x_header_dirs='
31687 /usr/X11/include
31688 /usr/X11R6/include
31689 /usr/X11R5/include
31690 /usr/X11R4/include
31691
31692 /usr/include/X11
31693 /usr/include/X11R6
31694 /usr/include/X11R5
31695 /usr/include/X11R4
31696
31697 /usr/local/X11/include
31698 /usr/local/X11R6/include
31699 /usr/local/X11R5/include
31700 /usr/local/X11R4/include
31701
31702 /usr/local/include/X11
31703 /usr/local/include/X11R6
31704 /usr/local/include/X11R5
31705 /usr/local/include/X11R4
31706
31707 /usr/X386/include
31708 /usr/x386/include
31709 /usr/XFree86/include/X11
31710
31711 /usr/include
31712 /usr/local/include
31713 /usr/unsupported/include
31714 /usr/athena/include
31715 /usr/local/x11r5/include
31716 /usr/lpp/Xamples/include
31717
31718 /usr/openwin/include
31719 /usr/openwin/share/include'
31720
31721 if test "$ac_x_includes" = no; then
31722   # Guess where to find include files, by looking for Xlib.h.
31723   # First, try using that file with no special directory specified.
31724   cat >conftest.$ac_ext <<_ACEOF
31725 /* confdefs.h.  */
31726 _ACEOF
31727 cat confdefs.h >>conftest.$ac_ext
31728 cat >>conftest.$ac_ext <<_ACEOF
31729 /* end confdefs.h.  */
31730 #include <X11/Xlib.h>
31731 _ACEOF
31732 if { (ac_try="$ac_cpp conftest.$ac_ext"
31733 case "(($ac_try" in
31734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31735   *) ac_try_echo=$ac_try;;
31736 esac
31737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31739   ac_status=$?
31740   grep -v '^ *+' conftest.er1 >conftest.err
31741   rm -f conftest.er1
31742   cat conftest.err >&5
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); } >/dev/null && {
31745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31746          test ! -s conftest.err
31747        }; then
31748   # We can compile using X headers with no special include directory.
31749 ac_x_includes=
31750 else
31751   echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31753
31754   for ac_dir in $ac_x_header_dirs; do
31755   if test -r "$ac_dir/X11/Xlib.h"; then
31756     ac_x_includes=$ac_dir
31757     break
31758   fi
31759 done
31760 fi
31761
31762 rm -f conftest.err conftest.$ac_ext
31763 fi # $ac_x_includes = no
31764
31765 if test "$ac_x_libraries" = no; then
31766   # Check for the libraries.
31767   # See if we find them without any special options.
31768   # Don't add to $LIBS permanently.
31769   ac_save_LIBS=$LIBS
31770   LIBS="-lX11 $LIBS"
31771   cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h.  */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h.  */
31777 #include <X11/Xlib.h>
31778 int
31779 main ()
31780 {
31781 XrmInitialize ()
31782   ;
31783   return 0;
31784 }
31785 _ACEOF
31786 rm -f conftest.$ac_objext conftest$ac_exeext
31787 if { (ac_try="$ac_link"
31788 case "(($ac_try" in
31789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790   *) ac_try_echo=$ac_try;;
31791 esac
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793   (eval "$ac_link") 2>conftest.er1
31794   ac_status=$?
31795   grep -v '^ *+' conftest.er1 >conftest.err
31796   rm -f conftest.er1
31797   cat conftest.err >&5
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); } && {
31800          test -z "$ac_c_werror_flag" ||
31801          test ! -s conftest.err
31802        } && test -s conftest$ac_exeext &&
31803        $as_test_x conftest$ac_exeext; then
31804   LIBS=$ac_save_LIBS
31805 # We can link X programs with no special library path.
31806 ac_x_libraries=
31807 else
31808   echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31810
31811         LIBS=$ac_save_LIBS
31812 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31813 do
31814   # Don't even attempt the hair of trying to link an X program!
31815   for ac_extension in a so sl; do
31816     if test -r "$ac_dir/libX11.$ac_extension"; then
31817       ac_x_libraries=$ac_dir
31818       break 2
31819     fi
31820   done
31821 done
31822 fi
31823
31824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31825       conftest$ac_exeext conftest.$ac_ext
31826 fi # $ac_x_libraries = no
31827
31828 case $ac_x_includes,$ac_x_libraries in #(
31829   no,* | *,no | *\'*)
31830     # Didn't find X, or a directory has "'" in its name.
31831     ac_cv_have_x="have_x=no";; #(
31832   *)
31833     # Record where we found X for the cache.
31834     ac_cv_have_x="have_x=yes\
31835         ac_x_includes='$ac_x_includes'\
31836         ac_x_libraries='$ac_x_libraries'"
31837 esac
31838 fi
31839 ;; #(
31840     *) have_x=yes;;
31841   esac
31842   eval "$ac_cv_have_x"
31843 fi # $with_x != no
31844
31845 if test "$have_x" != yes; then
31846   { echo "$as_me:$LINENO: result: $have_x" >&5
31847 echo "${ECHO_T}$have_x" >&6; }
31848   no_x=yes
31849 else
31850   # If each of the values was on the command line, it overrides each guess.
31851   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31852   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31853   # Update the cache value to reflect the command line values.
31854   ac_cv_have_x="have_x=yes\
31855         ac_x_includes='$x_includes'\
31856         ac_x_libraries='$x_libraries'"
31857   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31858 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31859 fi
31860
31861 if test "$no_x" = yes; then
31862   # Not all programs may use this symbol, but it does not hurt to define it.
31863
31864 cat >>confdefs.h <<\_ACEOF
31865 #define X_DISPLAY_MISSING 1
31866 _ACEOF
31867
31868   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31869 else
31870   if test -n "$x_includes"; then
31871     X_CFLAGS="$X_CFLAGS -I$x_includes"
31872   fi
31873
31874   # It would also be nice to do this for all -L options, not just this one.
31875   if test -n "$x_libraries"; then
31876     X_LIBS="$X_LIBS -L$x_libraries"
31877     # For Solaris; some versions of Sun CC require a space after -R and
31878     # others require no space.  Words are not sufficient . . . .
31879     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31880 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31881     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31882     ac_xsave_c_werror_flag=$ac_c_werror_flag
31883     ac_c_werror_flag=yes
31884     cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890
31891 int
31892 main ()
31893 {
31894
31895   ;
31896   return 0;
31897 }
31898 _ACEOF
31899 rm -f conftest.$ac_objext conftest$ac_exeext
31900 if { (ac_try="$ac_link"
31901 case "(($ac_try" in
31902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903   *) ac_try_echo=$ac_try;;
31904 esac
31905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906   (eval "$ac_link") 2>conftest.er1
31907   ac_status=$?
31908   grep -v '^ *+' conftest.er1 >conftest.err
31909   rm -f conftest.er1
31910   cat conftest.err >&5
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); } && {
31913          test -z "$ac_c_werror_flag" ||
31914          test ! -s conftest.err
31915        } && test -s conftest$ac_exeext &&
31916        $as_test_x conftest$ac_exeext; then
31917   { echo "$as_me:$LINENO: result: no" >&5
31918 echo "${ECHO_T}no" >&6; }
31919        X_LIBS="$X_LIBS -R$x_libraries"
31920 else
31921   echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31923
31924         LIBS="$ac_xsave_LIBS -R $x_libraries"
31925        cat >conftest.$ac_ext <<_ACEOF
31926 /* confdefs.h.  */
31927 _ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h.  */
31931
31932 int
31933 main ()
31934 {
31935
31936   ;
31937   return 0;
31938 }
31939 _ACEOF
31940 rm -f conftest.$ac_objext conftest$ac_exeext
31941 if { (ac_try="$ac_link"
31942 case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947   (eval "$ac_link") 2>conftest.er1
31948   ac_status=$?
31949   grep -v '^ *+' conftest.er1 >conftest.err
31950   rm -f conftest.er1
31951   cat conftest.err >&5
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); } && {
31954          test -z "$ac_c_werror_flag" ||
31955          test ! -s conftest.err
31956        } && test -s conftest$ac_exeext &&
31957        $as_test_x conftest$ac_exeext; then
31958   { echo "$as_me:$LINENO: result: yes" >&5
31959 echo "${ECHO_T}yes" >&6; }
31960           X_LIBS="$X_LIBS -R $x_libraries"
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965         { echo "$as_me:$LINENO: result: neither works" >&5
31966 echo "${ECHO_T}neither works" >&6; }
31967 fi
31968
31969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31970       conftest$ac_exeext conftest.$ac_ext
31971 fi
31972
31973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31974       conftest$ac_exeext conftest.$ac_ext
31975     ac_c_werror_flag=$ac_xsave_c_werror_flag
31976     LIBS=$ac_xsave_LIBS
31977   fi
31978
31979   # Check for system-dependent libraries X programs must link with.
31980   # Do this before checking for the system-independent R6 libraries
31981   # (-lICE), since we may need -lsocket or whatever for X linking.
31982
31983   if test "$ISC" = yes; then
31984     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31985   else
31986     # Martyn Johnson says this is needed for Ultrix, if the X
31987     # libraries were built with DECnet support.  And Karl Berry says
31988     # the Alpha needs dnet_stub (dnet does not exist).
31989     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31990     cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h.  */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h.  */
31996
31997 /* Override any GCC internal prototype to avoid an error.
31998    Use char because int might match the return type of a GCC
31999    builtin and then its argument prototype would still apply.  */
32000 #ifdef __cplusplus
32001 extern "C"
32002 #endif
32003 char XOpenDisplay ();
32004 int
32005 main ()
32006 {
32007 return XOpenDisplay ();
32008   ;
32009   return 0;
32010 }
32011 _ACEOF
32012 rm -f conftest.$ac_objext conftest$ac_exeext
32013 if { (ac_try="$ac_link"
32014 case "(($ac_try" in
32015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016   *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019   (eval "$ac_link") 2>conftest.er1
32020   ac_status=$?
32021   grep -v '^ *+' conftest.er1 >conftest.err
32022   rm -f conftest.er1
32023   cat conftest.err >&5
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); } && {
32026          test -z "$ac_c_werror_flag" ||
32027          test ! -s conftest.err
32028        } && test -s conftest$ac_exeext &&
32029        $as_test_x conftest$ac_exeext; then
32030   :
32031 else
32032   echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32034
32035         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32036 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32037 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32038   echo $ECHO_N "(cached) $ECHO_C" >&6
32039 else
32040   ac_check_lib_save_LIBS=$LIBS
32041 LIBS="-ldnet  $LIBS"
32042 cat >conftest.$ac_ext <<_ACEOF
32043 /* confdefs.h.  */
32044 _ACEOF
32045 cat confdefs.h >>conftest.$ac_ext
32046 cat >>conftest.$ac_ext <<_ACEOF
32047 /* end confdefs.h.  */
32048
32049 /* Override any GCC internal prototype to avoid an error.
32050    Use char because int might match the return type of a GCC
32051    builtin and then its argument prototype would still apply.  */
32052 #ifdef __cplusplus
32053 extern "C"
32054 #endif
32055 char dnet_ntoa ();
32056 int
32057 main ()
32058 {
32059 return dnet_ntoa ();
32060   ;
32061   return 0;
32062 }
32063 _ACEOF
32064 rm -f conftest.$ac_objext conftest$ac_exeext
32065 if { (ac_try="$ac_link"
32066 case "(($ac_try" in
32067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068   *) ac_try_echo=$ac_try;;
32069 esac
32070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071   (eval "$ac_link") 2>conftest.er1
32072   ac_status=$?
32073   grep -v '^ *+' conftest.er1 >conftest.err
32074   rm -f conftest.er1
32075   cat conftest.err >&5
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); } && {
32078          test -z "$ac_c_werror_flag" ||
32079          test ! -s conftest.err
32080        } && test -s conftest$ac_exeext &&
32081        $as_test_x conftest$ac_exeext; then
32082   ac_cv_lib_dnet_dnet_ntoa=yes
32083 else
32084   echo "$as_me: failed program was:" >&5
32085 sed 's/^/| /' conftest.$ac_ext >&5
32086
32087         ac_cv_lib_dnet_dnet_ntoa=no
32088 fi
32089
32090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32091       conftest$ac_exeext conftest.$ac_ext
32092 LIBS=$ac_check_lib_save_LIBS
32093 fi
32094 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32095 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32096 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32097   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32098 fi
32099
32100     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32101       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32102 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32103 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32104   echo $ECHO_N "(cached) $ECHO_C" >&6
32105 else
32106   ac_check_lib_save_LIBS=$LIBS
32107 LIBS="-ldnet_stub  $LIBS"
32108 cat >conftest.$ac_ext <<_ACEOF
32109 /* confdefs.h.  */
32110 _ACEOF
32111 cat confdefs.h >>conftest.$ac_ext
32112 cat >>conftest.$ac_ext <<_ACEOF
32113 /* end confdefs.h.  */
32114
32115 /* Override any GCC internal prototype to avoid an error.
32116    Use char because int might match the return type of a GCC
32117    builtin and then its argument prototype would still apply.  */
32118 #ifdef __cplusplus
32119 extern "C"
32120 #endif
32121 char dnet_ntoa ();
32122 int
32123 main ()
32124 {
32125 return dnet_ntoa ();
32126   ;
32127   return 0;
32128 }
32129 _ACEOF
32130 rm -f conftest.$ac_objext conftest$ac_exeext
32131 if { (ac_try="$ac_link"
32132 case "(($ac_try" in
32133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134   *) ac_try_echo=$ac_try;;
32135 esac
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137   (eval "$ac_link") 2>conftest.er1
32138   ac_status=$?
32139   grep -v '^ *+' conftest.er1 >conftest.err
32140   rm -f conftest.er1
32141   cat conftest.err >&5
32142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143   (exit $ac_status); } && {
32144          test -z "$ac_c_werror_flag" ||
32145          test ! -s conftest.err
32146        } && test -s conftest$ac_exeext &&
32147        $as_test_x conftest$ac_exeext; then
32148   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32149 else
32150   echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32152
32153         ac_cv_lib_dnet_stub_dnet_ntoa=no
32154 fi
32155
32156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32157       conftest$ac_exeext conftest.$ac_ext
32158 LIBS=$ac_check_lib_save_LIBS
32159 fi
32160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32161 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32162 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32163   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32164 fi
32165
32166     fi
32167 fi
32168
32169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32170       conftest$ac_exeext conftest.$ac_ext
32171     LIBS="$ac_xsave_LIBS"
32172
32173     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32174     # to get the SysV transport functions.
32175     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32176     # needs -lnsl.
32177     # The nsl library prevents programs from opening the X display
32178     # on Irix 5.2, according to T.E. Dickey.
32179     # The functions gethostbyname, getservbyname, and inet_addr are
32180     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32181     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32182 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32183 if test "${ac_cv_func_gethostbyname+set}" = set; then
32184   echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186   cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32194 #define gethostbyname innocuous_gethostbyname
32195
32196 /* System header to define __stub macros and hopefully few prototypes,
32197     which can conflict with char gethostbyname (); below.
32198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199     <limits.h> exists even on freestanding compilers.  */
32200
32201 #ifdef __STDC__
32202 # include <limits.h>
32203 #else
32204 # include <assert.h>
32205 #endif
32206
32207 #undef gethostbyname
32208
32209 /* Override any GCC internal prototype to avoid an error.
32210    Use char because int might match the return type of a GCC
32211    builtin and then its argument prototype would still apply.  */
32212 #ifdef __cplusplus
32213 extern "C"
32214 #endif
32215 char gethostbyname ();
32216 /* The GNU C library defines this for functions which it implements
32217     to always fail with ENOSYS.  Some functions are actually named
32218     something starting with __ and the normal name is an alias.  */
32219 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32220 choke me
32221 #endif
32222
32223 int
32224 main ()
32225 {
32226 return gethostbyname ();
32227   ;
32228   return 0;
32229 }
32230 _ACEOF
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232 if { (ac_try="$ac_link"
32233 case "(($ac_try" in
32234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235   *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238   (eval "$ac_link") 2>conftest.er1
32239   ac_status=$?
32240   grep -v '^ *+' conftest.er1 >conftest.err
32241   rm -f conftest.er1
32242   cat conftest.err >&5
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); } && {
32245          test -z "$ac_c_werror_flag" ||
32246          test ! -s conftest.err
32247        } && test -s conftest$ac_exeext &&
32248        $as_test_x conftest$ac_exeext; then
32249   ac_cv_func_gethostbyname=yes
32250 else
32251   echo "$as_me: failed program was:" >&5
32252 sed 's/^/| /' conftest.$ac_ext >&5
32253
32254         ac_cv_func_gethostbyname=no
32255 fi
32256
32257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32258       conftest$ac_exeext conftest.$ac_ext
32259 fi
32260 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32261 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32262
32263     if test $ac_cv_func_gethostbyname = no; then
32264       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32265 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32266 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32267   echo $ECHO_N "(cached) $ECHO_C" >&6
32268 else
32269   ac_check_lib_save_LIBS=$LIBS
32270 LIBS="-lnsl  $LIBS"
32271 cat >conftest.$ac_ext <<_ACEOF
32272 /* confdefs.h.  */
32273 _ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h.  */
32277
32278 /* Override any GCC internal prototype to avoid an error.
32279    Use char because int might match the return type of a GCC
32280    builtin and then its argument prototype would still apply.  */
32281 #ifdef __cplusplus
32282 extern "C"
32283 #endif
32284 char gethostbyname ();
32285 int
32286 main ()
32287 {
32288 return gethostbyname ();
32289   ;
32290   return 0;
32291 }
32292 _ACEOF
32293 rm -f conftest.$ac_objext conftest$ac_exeext
32294 if { (ac_try="$ac_link"
32295 case "(($ac_try" in
32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297   *) ac_try_echo=$ac_try;;
32298 esac
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300   (eval "$ac_link") 2>conftest.er1
32301   ac_status=$?
32302   grep -v '^ *+' conftest.er1 >conftest.err
32303   rm -f conftest.er1
32304   cat conftest.err >&5
32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306   (exit $ac_status); } && {
32307          test -z "$ac_c_werror_flag" ||
32308          test ! -s conftest.err
32309        } && test -s conftest$ac_exeext &&
32310        $as_test_x conftest$ac_exeext; then
32311   ac_cv_lib_nsl_gethostbyname=yes
32312 else
32313   echo "$as_me: failed program was:" >&5
32314 sed 's/^/| /' conftest.$ac_ext >&5
32315
32316         ac_cv_lib_nsl_gethostbyname=no
32317 fi
32318
32319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32320       conftest$ac_exeext conftest.$ac_ext
32321 LIBS=$ac_check_lib_save_LIBS
32322 fi
32323 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32324 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32325 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32326   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32327 fi
32328
32329       if test $ac_cv_lib_nsl_gethostbyname = no; then
32330         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32331 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32332 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32333   echo $ECHO_N "(cached) $ECHO_C" >&6
32334 else
32335   ac_check_lib_save_LIBS=$LIBS
32336 LIBS="-lbsd  $LIBS"
32337 cat >conftest.$ac_ext <<_ACEOF
32338 /* confdefs.h.  */
32339 _ACEOF
32340 cat confdefs.h >>conftest.$ac_ext
32341 cat >>conftest.$ac_ext <<_ACEOF
32342 /* end confdefs.h.  */
32343
32344 /* Override any GCC internal prototype to avoid an error.
32345    Use char because int might match the return type of a GCC
32346    builtin and then its argument prototype would still apply.  */
32347 #ifdef __cplusplus
32348 extern "C"
32349 #endif
32350 char gethostbyname ();
32351 int
32352 main ()
32353 {
32354 return gethostbyname ();
32355   ;
32356   return 0;
32357 }
32358 _ACEOF
32359 rm -f conftest.$ac_objext conftest$ac_exeext
32360 if { (ac_try="$ac_link"
32361 case "(($ac_try" in
32362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363   *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366   (eval "$ac_link") 2>conftest.er1
32367   ac_status=$?
32368   grep -v '^ *+' conftest.er1 >conftest.err
32369   rm -f conftest.er1
32370   cat conftest.err >&5
32371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372   (exit $ac_status); } && {
32373          test -z "$ac_c_werror_flag" ||
32374          test ! -s conftest.err
32375        } && test -s conftest$ac_exeext &&
32376        $as_test_x conftest$ac_exeext; then
32377   ac_cv_lib_bsd_gethostbyname=yes
32378 else
32379   echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32381
32382         ac_cv_lib_bsd_gethostbyname=no
32383 fi
32384
32385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32386       conftest$ac_exeext conftest.$ac_ext
32387 LIBS=$ac_check_lib_save_LIBS
32388 fi
32389 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32393 fi
32394
32395       fi
32396     fi
32397
32398     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32399     # socket/setsockopt and other routines are undefined under SCO ODT
32400     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32401     # on later versions), says Simon Leinen: it contains gethostby*
32402     # variants that don't use the name server (or something).  -lsocket
32403     # must be given before -lnsl if both are needed.  We assume that
32404     # if connect needs -lnsl, so does gethostbyname.
32405     { echo "$as_me:$LINENO: checking for connect" >&5
32406 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32407 if test "${ac_cv_func_connect+set}" = set; then
32408   echo $ECHO_N "(cached) $ECHO_C" >&6
32409 else
32410   cat >conftest.$ac_ext <<_ACEOF
32411 /* confdefs.h.  */
32412 _ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h.  */
32416 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32418 #define connect innocuous_connect
32419
32420 /* System header to define __stub macros and hopefully few prototypes,
32421     which can conflict with char connect (); below.
32422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423     <limits.h> exists even on freestanding compilers.  */
32424
32425 #ifdef __STDC__
32426 # include <limits.h>
32427 #else
32428 # include <assert.h>
32429 #endif
32430
32431 #undef connect
32432
32433 /* Override any GCC internal prototype to avoid an error.
32434    Use char because int might match the return type of a GCC
32435    builtin and then its argument prototype would still apply.  */
32436 #ifdef __cplusplus
32437 extern "C"
32438 #endif
32439 char connect ();
32440 /* The GNU C library defines this for functions which it implements
32441     to always fail with ENOSYS.  Some functions are actually named
32442     something starting with __ and the normal name is an alias.  */
32443 #if defined __stub_connect || defined __stub___connect
32444 choke me
32445 #endif
32446
32447 int
32448 main ()
32449 {
32450 return connect ();
32451   ;
32452   return 0;
32453 }
32454 _ACEOF
32455 rm -f conftest.$ac_objext conftest$ac_exeext
32456 if { (ac_try="$ac_link"
32457 case "(($ac_try" in
32458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459   *) ac_try_echo=$ac_try;;
32460 esac
32461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462   (eval "$ac_link") 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } && {
32469          test -z "$ac_c_werror_flag" ||
32470          test ! -s conftest.err
32471        } && test -s conftest$ac_exeext &&
32472        $as_test_x conftest$ac_exeext; then
32473   ac_cv_func_connect=yes
32474 else
32475   echo "$as_me: failed program was:" >&5
32476 sed 's/^/| /' conftest.$ac_ext >&5
32477
32478         ac_cv_func_connect=no
32479 fi
32480
32481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32482       conftest$ac_exeext conftest.$ac_ext
32483 fi
32484 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32485 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32486
32487     if test $ac_cv_func_connect = no; then
32488       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32489 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32490 if test "${ac_cv_lib_socket_connect+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493   ac_check_lib_save_LIBS=$LIBS
32494 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32495 cat >conftest.$ac_ext <<_ACEOF
32496 /* confdefs.h.  */
32497 _ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h.  */
32501
32502 /* Override any GCC internal prototype to avoid an error.
32503    Use char because int might match the return type of a GCC
32504    builtin and then its argument prototype would still apply.  */
32505 #ifdef __cplusplus
32506 extern "C"
32507 #endif
32508 char connect ();
32509 int
32510 main ()
32511 {
32512 return connect ();
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext conftest$ac_exeext
32518 if { (ac_try="$ac_link"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_link") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } && {
32531          test -z "$ac_c_werror_flag" ||
32532          test ! -s conftest.err
32533        } && test -s conftest$ac_exeext &&
32534        $as_test_x conftest$ac_exeext; then
32535   ac_cv_lib_socket_connect=yes
32536 else
32537   echo "$as_me: failed program was:" >&5
32538 sed 's/^/| /' conftest.$ac_ext >&5
32539
32540         ac_cv_lib_socket_connect=no
32541 fi
32542
32543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32544       conftest$ac_exeext conftest.$ac_ext
32545 LIBS=$ac_check_lib_save_LIBS
32546 fi
32547 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32548 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32549 if test $ac_cv_lib_socket_connect = yes; then
32550   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32551 fi
32552
32553     fi
32554
32555     # Guillermo Gomez says -lposix is necessary on A/UX.
32556     { echo "$as_me:$LINENO: checking for remove" >&5
32557 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32558 if test "${ac_cv_func_remove+set}" = set; then
32559   echo $ECHO_N "(cached) $ECHO_C" >&6
32560 else
32561   cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32569 #define remove innocuous_remove
32570
32571 /* System header to define __stub macros and hopefully few prototypes,
32572     which can conflict with char remove (); below.
32573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32574     <limits.h> exists even on freestanding compilers.  */
32575
32576 #ifdef __STDC__
32577 # include <limits.h>
32578 #else
32579 # include <assert.h>
32580 #endif
32581
32582 #undef remove
32583
32584 /* Override any GCC internal prototype to avoid an error.
32585    Use char because int might match the return type of a GCC
32586    builtin and then its argument prototype would still apply.  */
32587 #ifdef __cplusplus
32588 extern "C"
32589 #endif
32590 char remove ();
32591 /* The GNU C library defines this for functions which it implements
32592     to always fail with ENOSYS.  Some functions are actually named
32593     something starting with __ and the normal name is an alias.  */
32594 #if defined __stub_remove || defined __stub___remove
32595 choke me
32596 #endif
32597
32598 int
32599 main ()
32600 {
32601 return remove ();
32602   ;
32603   return 0;
32604 }
32605 _ACEOF
32606 rm -f conftest.$ac_objext conftest$ac_exeext
32607 if { (ac_try="$ac_link"
32608 case "(($ac_try" in
32609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610   *) ac_try_echo=$ac_try;;
32611 esac
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613   (eval "$ac_link") 2>conftest.er1
32614   ac_status=$?
32615   grep -v '^ *+' conftest.er1 >conftest.err
32616   rm -f conftest.er1
32617   cat conftest.err >&5
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); } && {
32620          test -z "$ac_c_werror_flag" ||
32621          test ! -s conftest.err
32622        } && test -s conftest$ac_exeext &&
32623        $as_test_x conftest$ac_exeext; then
32624   ac_cv_func_remove=yes
32625 else
32626   echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32628
32629         ac_cv_func_remove=no
32630 fi
32631
32632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32633       conftest$ac_exeext conftest.$ac_ext
32634 fi
32635 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32636 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32637
32638     if test $ac_cv_func_remove = no; then
32639       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32640 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32641 if test "${ac_cv_lib_posix_remove+set}" = set; then
32642   echo $ECHO_N "(cached) $ECHO_C" >&6
32643 else
32644   ac_check_lib_save_LIBS=$LIBS
32645 LIBS="-lposix  $LIBS"
32646 cat >conftest.$ac_ext <<_ACEOF
32647 /* confdefs.h.  */
32648 _ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h.  */
32652
32653 /* Override any GCC internal prototype to avoid an error.
32654    Use char because int might match the return type of a GCC
32655    builtin and then its argument prototype would still apply.  */
32656 #ifdef __cplusplus
32657 extern "C"
32658 #endif
32659 char remove ();
32660 int
32661 main ()
32662 {
32663 return remove ();
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_link") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } && {
32682          test -z "$ac_c_werror_flag" ||
32683          test ! -s conftest.err
32684        } && test -s conftest$ac_exeext &&
32685        $as_test_x conftest$ac_exeext; then
32686   ac_cv_lib_posix_remove=yes
32687 else
32688   echo "$as_me: failed program was:" >&5
32689 sed 's/^/| /' conftest.$ac_ext >&5
32690
32691         ac_cv_lib_posix_remove=no
32692 fi
32693
32694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32695       conftest$ac_exeext conftest.$ac_ext
32696 LIBS=$ac_check_lib_save_LIBS
32697 fi
32698 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32699 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32700 if test $ac_cv_lib_posix_remove = yes; then
32701   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32702 fi
32703
32704     fi
32705
32706     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32707     { echo "$as_me:$LINENO: checking for shmat" >&5
32708 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32709 if test "${ac_cv_func_shmat+set}" = set; then
32710   echo $ECHO_N "(cached) $ECHO_C" >&6
32711 else
32712   cat >conftest.$ac_ext <<_ACEOF
32713 /* confdefs.h.  */
32714 _ACEOF
32715 cat confdefs.h >>conftest.$ac_ext
32716 cat >>conftest.$ac_ext <<_ACEOF
32717 /* end confdefs.h.  */
32718 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32720 #define shmat innocuous_shmat
32721
32722 /* System header to define __stub macros and hopefully few prototypes,
32723     which can conflict with char shmat (); below.
32724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32725     <limits.h> exists even on freestanding compilers.  */
32726
32727 #ifdef __STDC__
32728 # include <limits.h>
32729 #else
32730 # include <assert.h>
32731 #endif
32732
32733 #undef shmat
32734
32735 /* Override any GCC internal prototype to avoid an error.
32736    Use char because int might match the return type of a GCC
32737    builtin and then its argument prototype would still apply.  */
32738 #ifdef __cplusplus
32739 extern "C"
32740 #endif
32741 char shmat ();
32742 /* The GNU C library defines this for functions which it implements
32743     to always fail with ENOSYS.  Some functions are actually named
32744     something starting with __ and the normal name is an alias.  */
32745 #if defined __stub_shmat || defined __stub___shmat
32746 choke me
32747 #endif
32748
32749 int
32750 main ()
32751 {
32752 return shmat ();
32753   ;
32754   return 0;
32755 }
32756 _ACEOF
32757 rm -f conftest.$ac_objext conftest$ac_exeext
32758 if { (ac_try="$ac_link"
32759 case "(($ac_try" in
32760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761   *) ac_try_echo=$ac_try;;
32762 esac
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764   (eval "$ac_link") 2>conftest.er1
32765   ac_status=$?
32766   grep -v '^ *+' conftest.er1 >conftest.err
32767   rm -f conftest.er1
32768   cat conftest.err >&5
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); } && {
32771          test -z "$ac_c_werror_flag" ||
32772          test ! -s conftest.err
32773        } && test -s conftest$ac_exeext &&
32774        $as_test_x conftest$ac_exeext; then
32775   ac_cv_func_shmat=yes
32776 else
32777   echo "$as_me: failed program was:" >&5
32778 sed 's/^/| /' conftest.$ac_ext >&5
32779
32780         ac_cv_func_shmat=no
32781 fi
32782
32783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32784       conftest$ac_exeext conftest.$ac_ext
32785 fi
32786 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32787 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32788
32789     if test $ac_cv_func_shmat = no; then
32790       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32791 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32792 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32793   echo $ECHO_N "(cached) $ECHO_C" >&6
32794 else
32795   ac_check_lib_save_LIBS=$LIBS
32796 LIBS="-lipc  $LIBS"
32797 cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803
32804 /* Override any GCC internal prototype to avoid an error.
32805    Use char because int might match the return type of a GCC
32806    builtin and then its argument prototype would still apply.  */
32807 #ifdef __cplusplus
32808 extern "C"
32809 #endif
32810 char shmat ();
32811 int
32812 main ()
32813 {
32814 return shmat ();
32815   ;
32816   return 0;
32817 }
32818 _ACEOF
32819 rm -f conftest.$ac_objext conftest$ac_exeext
32820 if { (ac_try="$ac_link"
32821 case "(($ac_try" in
32822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32823   *) ac_try_echo=$ac_try;;
32824 esac
32825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32826   (eval "$ac_link") 2>conftest.er1
32827   ac_status=$?
32828   grep -v '^ *+' conftest.er1 >conftest.err
32829   rm -f conftest.er1
32830   cat conftest.err >&5
32831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832   (exit $ac_status); } && {
32833          test -z "$ac_c_werror_flag" ||
32834          test ! -s conftest.err
32835        } && test -s conftest$ac_exeext &&
32836        $as_test_x conftest$ac_exeext; then
32837   ac_cv_lib_ipc_shmat=yes
32838 else
32839   echo "$as_me: failed program was:" >&5
32840 sed 's/^/| /' conftest.$ac_ext >&5
32841
32842         ac_cv_lib_ipc_shmat=no
32843 fi
32844
32845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32846       conftest$ac_exeext conftest.$ac_ext
32847 LIBS=$ac_check_lib_save_LIBS
32848 fi
32849 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32850 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32851 if test $ac_cv_lib_ipc_shmat = yes; then
32852   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32853 fi
32854
32855     fi
32856   fi
32857
32858   # Check for libraries that X11R6 Xt/Xaw programs need.
32859   ac_save_LDFLAGS=$LDFLAGS
32860   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32861   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32862   # check for ICE first), but we must link in the order -lSM -lICE or
32863   # we get undefined symbols.  So assume we have SM if we have ICE.
32864   # These have to be linked with before -lX11, unlike the other
32865   # libraries we check for below, so use a different variable.
32866   # John Interrante, Karl Berry
32867   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32868 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32869 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32870   echo $ECHO_N "(cached) $ECHO_C" >&6
32871 else
32872   ac_check_lib_save_LIBS=$LIBS
32873 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32874 cat >conftest.$ac_ext <<_ACEOF
32875 /* confdefs.h.  */
32876 _ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h.  */
32880
32881 /* Override any GCC internal prototype to avoid an error.
32882    Use char because int might match the return type of a GCC
32883    builtin and then its argument prototype would still apply.  */
32884 #ifdef __cplusplus
32885 extern "C"
32886 #endif
32887 char IceConnectionNumber ();
32888 int
32889 main ()
32890 {
32891 return IceConnectionNumber ();
32892   ;
32893   return 0;
32894 }
32895 _ACEOF
32896 rm -f conftest.$ac_objext conftest$ac_exeext
32897 if { (ac_try="$ac_link"
32898 case "(($ac_try" in
32899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900   *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903   (eval "$ac_link") 2>conftest.er1
32904   ac_status=$?
32905   grep -v '^ *+' conftest.er1 >conftest.err
32906   rm -f conftest.er1
32907   cat conftest.err >&5
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); } && {
32910          test -z "$ac_c_werror_flag" ||
32911          test ! -s conftest.err
32912        } && test -s conftest$ac_exeext &&
32913        $as_test_x conftest$ac_exeext; then
32914   ac_cv_lib_ICE_IceConnectionNumber=yes
32915 else
32916   echo "$as_me: failed program was:" >&5
32917 sed 's/^/| /' conftest.$ac_ext >&5
32918
32919         ac_cv_lib_ICE_IceConnectionNumber=no
32920 fi
32921
32922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32923       conftest$ac_exeext conftest.$ac_ext
32924 LIBS=$ac_check_lib_save_LIBS
32925 fi
32926 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32927 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32928 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32929   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32930 fi
32931
32932   LDFLAGS=$ac_save_LDFLAGS
32933
32934 fi
32935
32936
32937         if test "$no_x" = "yes"; then
32938           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32939 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32940    { (exit 1); exit 1; }; }
32941         fi
32942
32943                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32944         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32945         AFMINSTALL=afminstall
32946         COMPILED_X_PROGRAM=0
32947
32948     fi
32949
32950     if test "$wxUSE_X11" = 1; then
32951         if test "$wxUSE_NANOX" = "yes"; then
32952             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32953 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32954             if test "x$MICROWIN" = x ; then
32955                 { echo "$as_me:$LINENO: result: not found" >&5
32956 echo "${ECHO_T}not found" >&6; }
32957                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32958 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32959    { (exit 1); exit 1; }; }
32960             else
32961                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32962 echo "${ECHO_T}$MICROWIN" >&6; }
32963                 cat >>confdefs.h <<\_ACEOF
32964 #define wxUSE_NANOX 1
32965 _ACEOF
32966
32967             fi
32968         fi
32969
32970         if test "$wxUSE_UNICODE" = "yes"; then
32971
32972
32973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32974         if test -n "$ac_tool_prefix"; then
32975   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32980   echo $ECHO_N "(cached) $ECHO_C" >&6
32981 else
32982   case $PKG_CONFIG in
32983   [\\/]* | ?:[\\/]*)
32984   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32985   ;;
32986   *)
32987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32988 for as_dir in $PATH
32989 do
32990   IFS=$as_save_IFS
32991   test -z "$as_dir" && as_dir=.
32992   for ac_exec_ext in '' $ac_executable_extensions; do
32993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32994     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32996     break 2
32997   fi
32998 done
32999 done
33000 IFS=$as_save_IFS
33001
33002   ;;
33003 esac
33004 fi
33005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33006 if test -n "$PKG_CONFIG"; then
33007   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33009 else
33010   { echo "$as_me:$LINENO: result: no" >&5
33011 echo "${ECHO_T}no" >&6; }
33012 fi
33013
33014
33015 fi
33016 if test -z "$ac_cv_path_PKG_CONFIG"; then
33017   ac_pt_PKG_CONFIG=$PKG_CONFIG
33018   # Extract the first word of "pkg-config", so it can be a program name with args.
33019 set dummy pkg-config; ac_word=$2
33020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33022 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33023   echo $ECHO_N "(cached) $ECHO_C" >&6
33024 else
33025   case $ac_pt_PKG_CONFIG in
33026   [\\/]* | ?:[\\/]*)
33027   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33028   ;;
33029   *)
33030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33031 for as_dir in $PATH
33032 do
33033   IFS=$as_save_IFS
33034   test -z "$as_dir" && as_dir=.
33035   for ac_exec_ext in '' $ac_executable_extensions; do
33036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33037     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33039     break 2
33040   fi
33041 done
33042 done
33043 IFS=$as_save_IFS
33044
33045   ;;
33046 esac
33047 fi
33048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33049 if test -n "$ac_pt_PKG_CONFIG"; then
33050   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33051 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33052 else
33053   { echo "$as_me:$LINENO: result: no" >&5
33054 echo "${ECHO_T}no" >&6; }
33055 fi
33056
33057   if test "x$ac_pt_PKG_CONFIG" = x; then
33058     PKG_CONFIG=""
33059   else
33060     case $cross_compiling:$ac_tool_warned in
33061 yes:)
33062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33063 whose name does not start with the host triplet.  If you think this
33064 configuration is useful to you, please write to autoconf@gnu.org." >&5
33065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33066 whose name does not start with the host triplet.  If you think this
33067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33068 ac_tool_warned=yes ;;
33069 esac
33070     PKG_CONFIG=$ac_pt_PKG_CONFIG
33071   fi
33072 else
33073   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33074 fi
33075
33076 fi
33077 if test -n "$PKG_CONFIG"; then
33078         _pkg_min_version=0.9.0
33079         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33080 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33081         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33082                 { echo "$as_me:$LINENO: result: yes" >&5
33083 echo "${ECHO_T}yes" >&6; }
33084         else
33085                 { echo "$as_me:$LINENO: result: no" >&5
33086 echo "${ECHO_T}no" >&6; }
33087                 PKG_CONFIG=""
33088         fi
33089
33090 fi
33091
33092
33093 pkg_failed=no
33094 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33095 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33096
33097 if test -n "$PKG_CONFIG"; then
33098     if test -n "$PANGOX_CFLAGS"; then
33099         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33100     else
33101         if test -n "$PKG_CONFIG" && \
33102     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33103   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33104   ac_status=$?
33105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106   (exit $ac_status); }; then
33107   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33108 else
33109   pkg_failed=yes
33110 fi
33111     fi
33112 else
33113         pkg_failed=untried
33114 fi
33115 if test -n "$PKG_CONFIG"; then
33116     if test -n "$PANGOX_LIBS"; then
33117         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33118     else
33119         if test -n "$PKG_CONFIG" && \
33120     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33121   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33122   ac_status=$?
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); }; then
33125   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33126 else
33127   pkg_failed=yes
33128 fi
33129     fi
33130 else
33131         pkg_failed=untried
33132 fi
33133
33134
33135
33136 if test $pkg_failed = yes; then
33137
33138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33139         _pkg_short_errors_supported=yes
33140 else
33141         _pkg_short_errors_supported=no
33142 fi
33143         if test $_pkg_short_errors_supported = yes; then
33144                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33145         else
33146                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33147         fi
33148         # Put the nasty error message in config.log where it belongs
33149         echo "$PANGOX_PKG_ERRORS" >&5
33150
33151
33152                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33153 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33154    { (exit 1); exit 1; }; }
33155
33156
33157 elif test $pkg_failed = untried; then
33158
33159                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33160 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33161    { (exit 1); exit 1; }; }
33162
33163
33164 else
33165         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33166         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33167         { echo "$as_me:$LINENO: result: yes" >&5
33168 echo "${ECHO_T}yes" >&6; }
33169
33170                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33171                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33172                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33173
33174 fi
33175
33176 pkg_failed=no
33177 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33178 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33179
33180 if test -n "$PKG_CONFIG"; then
33181     if test -n "$PANGOFT2_CFLAGS"; then
33182         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33183     else
33184         if test -n "$PKG_CONFIG" && \
33185     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33186   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33187   ac_status=$?
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); }; then
33190   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33191 else
33192   pkg_failed=yes
33193 fi
33194     fi
33195 else
33196         pkg_failed=untried
33197 fi
33198 if test -n "$PKG_CONFIG"; then
33199     if test -n "$PANGOFT2_LIBS"; then
33200         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33201     else
33202         if test -n "$PKG_CONFIG" && \
33203     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33204   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33205   ac_status=$?
33206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207   (exit $ac_status); }; then
33208   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33209 else
33210   pkg_failed=yes
33211 fi
33212     fi
33213 else
33214         pkg_failed=untried
33215 fi
33216
33217
33218
33219 if test $pkg_failed = yes; then
33220
33221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33222         _pkg_short_errors_supported=yes
33223 else
33224         _pkg_short_errors_supported=no
33225 fi
33226         if test $_pkg_short_errors_supported = yes; then
33227                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33228         else
33229                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33230         fi
33231         # Put the nasty error message in config.log where it belongs
33232         echo "$PANGOFT2_PKG_ERRORS" >&5
33233
33234
33235                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33236 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33237                     wxUSE_PRINTING_ARCHITECTURE="no"
33238
33239
33240 elif test $pkg_failed = untried; then
33241
33242                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33243 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33244                     wxUSE_PRINTING_ARCHITECTURE="no"
33245
33246
33247 else
33248         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33249         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33250         { echo "$as_me:$LINENO: result: yes" >&5
33251 echo "${ECHO_T}yes" >&6; }
33252
33253                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33254                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33255                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33256
33257 fi
33258
33259 pkg_failed=no
33260 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33261 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33262
33263 if test -n "$PKG_CONFIG"; then
33264     if test -n "$PANGOXFT_CFLAGS"; then
33265         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33266     else
33267         if test -n "$PKG_CONFIG" && \
33268     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33269   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33270   ac_status=$?
33271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272   (exit $ac_status); }; then
33273   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33274 else
33275   pkg_failed=yes
33276 fi
33277     fi
33278 else
33279         pkg_failed=untried
33280 fi
33281 if test -n "$PKG_CONFIG"; then
33282     if test -n "$PANGOXFT_LIBS"; then
33283         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33284     else
33285         if test -n "$PKG_CONFIG" && \
33286     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33287   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33288   ac_status=$?
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; then
33291   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33292 else
33293   pkg_failed=yes
33294 fi
33295     fi
33296 else
33297         pkg_failed=untried
33298 fi
33299
33300
33301
33302 if test $pkg_failed = yes; then
33303
33304 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33305         _pkg_short_errors_supported=yes
33306 else
33307         _pkg_short_errors_supported=no
33308 fi
33309         if test $_pkg_short_errors_supported = yes; then
33310                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33311         else
33312                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33313         fi
33314         # Put the nasty error message in config.log where it belongs
33315         echo "$PANGOXFT_PKG_ERRORS" >&5
33316
33317
33318                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33319 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33320
33321
33322 elif test $pkg_failed = untried; then
33323
33324                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33325 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33326
33327
33328 else
33329         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33330         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33331         { echo "$as_me:$LINENO: result: yes" >&5
33332 echo "${ECHO_T}yes" >&6; }
33333
33334                     cat >>confdefs.h <<\_ACEOF
33335 #define HAVE_PANGO_XFT 1
33336 _ACEOF
33337
33338                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33339                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33340                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33341
33342 fi
33343             save_LIBS="$LIBS"
33344             LIBS="$LIBS $PANGOX_LIBS"
33345
33346 for ac_func in pango_font_family_is_monospace
33347 do
33348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33352   echo $ECHO_N "(cached) $ECHO_C" >&6
33353 else
33354   cat >conftest.$ac_ext <<_ACEOF
33355 /* confdefs.h.  */
33356 _ACEOF
33357 cat confdefs.h >>conftest.$ac_ext
33358 cat >>conftest.$ac_ext <<_ACEOF
33359 /* end confdefs.h.  */
33360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33362 #define $ac_func innocuous_$ac_func
33363
33364 /* System header to define __stub macros and hopefully few prototypes,
33365     which can conflict with char $ac_func (); below.
33366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33367     <limits.h> exists even on freestanding compilers.  */
33368
33369 #ifdef __STDC__
33370 # include <limits.h>
33371 #else
33372 # include <assert.h>
33373 #endif
33374
33375 #undef $ac_func
33376
33377 /* Override any GCC internal prototype to avoid an error.
33378    Use char because int might match the return type of a GCC
33379    builtin and then its argument prototype would still apply.  */
33380 #ifdef __cplusplus
33381 extern "C"
33382 #endif
33383 char $ac_func ();
33384 /* The GNU C library defines this for functions which it implements
33385     to always fail with ENOSYS.  Some functions are actually named
33386     something starting with __ and the normal name is an alias.  */
33387 #if defined __stub_$ac_func || defined __stub___$ac_func
33388 choke me
33389 #endif
33390
33391 int
33392 main ()
33393 {
33394 return $ac_func ();
33395   ;
33396   return 0;
33397 }
33398 _ACEOF
33399 rm -f conftest.$ac_objext conftest$ac_exeext
33400 if { (ac_try="$ac_link"
33401 case "(($ac_try" in
33402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403   *) ac_try_echo=$ac_try;;
33404 esac
33405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406   (eval "$ac_link") 2>conftest.er1
33407   ac_status=$?
33408   grep -v '^ *+' conftest.er1 >conftest.err
33409   rm -f conftest.er1
33410   cat conftest.err >&5
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); } && {
33413          test -z "$ac_c_werror_flag" ||
33414          test ! -s conftest.err
33415        } && test -s conftest$ac_exeext &&
33416        $as_test_x conftest$ac_exeext; then
33417   eval "$as_ac_var=yes"
33418 else
33419   echo "$as_me: failed program was:" >&5
33420 sed 's/^/| /' conftest.$ac_ext >&5
33421
33422         eval "$as_ac_var=no"
33423 fi
33424
33425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33426       conftest$ac_exeext conftest.$ac_ext
33427 fi
33428 ac_res=`eval echo '${'$as_ac_var'}'`
33429                { echo "$as_me:$LINENO: result: $ac_res" >&5
33430 echo "${ECHO_T}$ac_res" >&6; }
33431 if test `eval echo '${'$as_ac_var'}'` = yes; then
33432   cat >>confdefs.h <<_ACEOF
33433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33434 _ACEOF
33435
33436 fi
33437 done
33438
33439             LIBS="$save_LIBS"
33440         fi
33441
33442         wxUSE_UNIVERSAL="yes"
33443
33444         if test "$wxUSE_NANOX" = "yes"; then
33445             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33446             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"
33447             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33448         else
33449             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33450         fi
33451
33452         TOOLKIT=X11
33453         GUIDIST=X11_DIST
33454     fi
33455
33456     if test "$wxUSE_MOTIF" = 1; then
33457         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33458 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33459
33460 ac_find_includes=
33461 for ac_dir in $SEARCH_INCLUDE /usr/include
33462   do
33463     if test -f "$ac_dir/Xm/Xm.h"; then
33464       ac_find_includes=$ac_dir
33465       break
33466     fi
33467   done
33468
33469         if test "$ac_find_includes" != "" ; then
33470             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33471 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33472
33473     if test "x$ac_find_includes" = "x/usr/include"; then
33474     ac_path_to_include=""
33475   else
33476     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33477     result=$?
33478     if test $result = 0; then
33479       ac_path_to_include=""
33480     else
33481       ac_path_to_include=" -I$ac_find_includes"
33482     fi
33483   fi
33484
33485             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33486         else
33487             save_CFLAGS=$CFLAGS
33488             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33489
33490             cat >conftest.$ac_ext <<_ACEOF
33491 /* confdefs.h.  */
33492 _ACEOF
33493 cat confdefs.h >>conftest.$ac_ext
33494 cat >>conftest.$ac_ext <<_ACEOF
33495 /* end confdefs.h.  */
33496
33497                     #include <Xm/Xm.h>
33498
33499 int
33500 main ()
33501 {
33502
33503                     int version;
33504                     version = xmUseVersion;
33505
33506   ;
33507   return 0;
33508 }
33509 _ACEOF
33510 rm -f conftest.$ac_objext
33511 if { (ac_try="$ac_compile"
33512 case "(($ac_try" in
33513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514   *) ac_try_echo=$ac_try;;
33515 esac
33516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517   (eval "$ac_compile") 2>conftest.er1
33518   ac_status=$?
33519   grep -v '^ *+' conftest.er1 >conftest.err
33520   rm -f conftest.er1
33521   cat conftest.err >&5
33522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523   (exit $ac_status); } && {
33524          test -z "$ac_c_werror_flag" ||
33525          test ! -s conftest.err
33526        } && test -s conftest.$ac_objext; then
33527
33528                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33529 echo "${ECHO_T}found in default search path" >&6; }
33530                     COMPILED_X_PROGRAM=1
33531
33532 else
33533   echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33535
33536
33537                     { echo "$as_me:$LINENO: result: no" >&5
33538 echo "${ECHO_T}no" >&6; }
33539                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33540 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33541    { (exit 1); exit 1; }; }
33542
33543
33544 fi
33545
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33547
33548             CFLAGS=$save_CFLAGS
33549         fi
33550
33551
33552         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33553 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33554
33555   ac_find_libraries=
33556   for ac_dir in  $SEARCH_LIB
33557   do
33558     for ac_extension in a so sl dylib dll.a; do
33559       if test -f "$ac_dir/libXm.$ac_extension"; then
33560         ac_find_libraries=$ac_dir
33561         break 2
33562       fi
33563     done
33564   done
33565
33566
33567         if test "x$ac_find_libraries" != "x" ; then
33568             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33569 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33570
33571
33572     if test "$ac_find_libraries" = "default location"; then
33573     ac_path_to_link=""
33574   else
33575     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33576     result=$?
33577     if test $result = 0; then
33578       ac_path_to_link=""
33579     else
33580       ac_path_to_link=" -L$ac_find_libraries"
33581     fi
33582   fi
33583
33584             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33585         else
33586                                                 save_CFLAGS=$CFLAGS
33587             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33588             save_LIBS="$LIBS"
33589             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33590
33591             cat >conftest.$ac_ext <<_ACEOF
33592 /* confdefs.h.  */
33593 _ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h.  */
33597
33598                     #include <Xm/Xm.h>
33599
33600 int
33601 main ()
33602 {
33603
33604                     int version;
33605                     version = xmUseVersion;
33606
33607   ;
33608   return 0;
33609 }
33610 _ACEOF
33611 rm -f conftest.$ac_objext conftest$ac_exeext
33612 if { (ac_try="$ac_link"
33613 case "(($ac_try" in
33614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615   *) ac_try_echo=$ac_try;;
33616 esac
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618   (eval "$ac_link") 2>conftest.er1
33619   ac_status=$?
33620   grep -v '^ *+' conftest.er1 >conftest.err
33621   rm -f conftest.er1
33622   cat conftest.err >&5
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); } && {
33625          test -z "$ac_c_werror_flag" ||
33626          test ! -s conftest.err
33627        } && test -s conftest$ac_exeext &&
33628        $as_test_x conftest$ac_exeext; then
33629
33630                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33631 echo "${ECHO_T}found in default search path" >&6; }
33632                     COMPILED_X_PROGRAM=1
33633
33634 else
33635   echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33637
33638
33639                     { echo "$as_me:$LINENO: result: no" >&5
33640 echo "${ECHO_T}no" >&6; }
33641                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33642 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33643    { (exit 1); exit 1; }; }
33644
33645
33646 fi
33647
33648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33649       conftest$ac_exeext conftest.$ac_ext
33650
33651             CFLAGS=$save_CFLAGS
33652             LIBS="$save_LIBS"
33653         fi
33654
33655         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33656 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33657         libp_link=""
33658         libsm_ice_link=""
33659         libs_found=0
33660         for libp in "" " -lXp"; do
33661             if test "$libs_found" = 0; then
33662                 for libsm_ice in "" " -lSM -lICE"; do
33663                     if test "$libs_found" = 0; then
33664                         save_LIBS="$LIBS"
33665                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33666                         save_CFLAGS=$CFLAGS
33667                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33668
33669                         cat >conftest.$ac_ext <<_ACEOF
33670 /* confdefs.h.  */
33671 _ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h.  */
33675
33676                                 #include <Xm/Xm.h>
33677                                 #include <Xm/List.h>
33678
33679 int
33680 main ()
33681 {
33682
33683                                 XmString string = NULL;
33684                                 Widget w = NULL;
33685                                 int position = 0;
33686                                 XmListAddItem(w, string, position);
33687
33688   ;
33689   return 0;
33690 }
33691 _ACEOF
33692 rm -f conftest.$ac_objext conftest$ac_exeext
33693 if { (ac_try="$ac_link"
33694 case "(($ac_try" in
33695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696   *) ac_try_echo=$ac_try;;
33697 esac
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699   (eval "$ac_link") 2>conftest.er1
33700   ac_status=$?
33701   grep -v '^ *+' conftest.er1 >conftest.err
33702   rm -f conftest.er1
33703   cat conftest.err >&5
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); } && {
33706          test -z "$ac_c_werror_flag" ||
33707          test ! -s conftest.err
33708        } && test -s conftest$ac_exeext &&
33709        $as_test_x conftest$ac_exeext; then
33710
33711                                 libp_link="$libp"
33712                                 libsm_ice_link="$libsm_ice"
33713                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33714 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33715                                 libs_found=1
33716
33717 else
33718   echo "$as_me: failed program was:" >&5
33719 sed 's/^/| /' conftest.$ac_ext >&5
33720
33721
33722
33723 fi
33724
33725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33726       conftest$ac_exeext conftest.$ac_ext
33727
33728                         LIBS="$save_LIBS"
33729                         CFLAGS=$save_CFLAGS
33730                     fi
33731                 done
33732             fi
33733         done
33734
33735         if test "$libs_found" = 0; then
33736             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33737 echo "${ECHO_T}can't find the right libraries" >&6; }
33738             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33739 echo "$as_me: error: can't link a simple motif program" >&2;}
33740    { (exit 1); exit 1; }; }
33741         fi
33742
33743                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33744 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33745 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33746   echo $ECHO_N "(cached) $ECHO_C" >&6
33747 else
33748   ac_check_lib_save_LIBS=$LIBS
33749 LIBS="-lSgm  $LIBS"
33750 cat >conftest.$ac_ext <<_ACEOF
33751 /* confdefs.h.  */
33752 _ACEOF
33753 cat confdefs.h >>conftest.$ac_ext
33754 cat >>conftest.$ac_ext <<_ACEOF
33755 /* end confdefs.h.  */
33756
33757 /* Override any GCC internal prototype to avoid an error.
33758    Use char because int might match the return type of a GCC
33759    builtin and then its argument prototype would still apply.  */
33760 #ifdef __cplusplus
33761 extern "C"
33762 #endif
33763 char SgCreateList ();
33764 int
33765 main ()
33766 {
33767 return SgCreateList ();
33768   ;
33769   return 0;
33770 }
33771 _ACEOF
33772 rm -f conftest.$ac_objext conftest$ac_exeext
33773 if { (ac_try="$ac_link"
33774 case "(($ac_try" in
33775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33776   *) ac_try_echo=$ac_try;;
33777 esac
33778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33779   (eval "$ac_link") 2>conftest.er1
33780   ac_status=$?
33781   grep -v '^ *+' conftest.er1 >conftest.err
33782   rm -f conftest.er1
33783   cat conftest.err >&5
33784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785   (exit $ac_status); } && {
33786          test -z "$ac_c_werror_flag" ||
33787          test ! -s conftest.err
33788        } && test -s conftest$ac_exeext &&
33789        $as_test_x conftest$ac_exeext; then
33790   ac_cv_lib_Sgm_SgCreateList=yes
33791 else
33792   echo "$as_me: failed program was:" >&5
33793 sed 's/^/| /' conftest.$ac_ext >&5
33794
33795         ac_cv_lib_Sgm_SgCreateList=no
33796 fi
33797
33798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33799       conftest$ac_exeext conftest.$ac_ext
33800 LIBS=$ac_check_lib_save_LIBS
33801 fi
33802 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33803 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33804 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33805   libsgm_link=" -lSgm"
33806 fi
33807
33808
33809         save_CFLAGS=$CFLAGS
33810         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33811
33812         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33813 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33814 if test "${wx_cv_lib_motif2+set}" = set; then
33815   echo $ECHO_N "(cached) $ECHO_C" >&6
33816 else
33817   cat >conftest.$ac_ext <<_ACEOF
33818 /* confdefs.h.  */
33819 _ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h.  */
33823
33824                             #include <Xm/Xm.h>
33825
33826 int
33827 main ()
33828 {
33829
33830                             #if XmVersion < 2000
33831                             Not Motif 2
33832                             #endif
33833
33834   ;
33835   return 0;
33836 }
33837 _ACEOF
33838 rm -f conftest.$ac_objext
33839 if { (ac_try="$ac_compile"
33840 case "(($ac_try" in
33841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842   *) ac_try_echo=$ac_try;;
33843 esac
33844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845   (eval "$ac_compile") 2>conftest.er1
33846   ac_status=$?
33847   grep -v '^ *+' conftest.er1 >conftest.err
33848   rm -f conftest.er1
33849   cat conftest.err >&5
33850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851   (exit $ac_status); } && {
33852          test -z "$ac_c_werror_flag" ||
33853          test ! -s conftest.err
33854        } && test -s conftest.$ac_objext; then
33855   wx_cv_lib_motif2="yes"
33856 else
33857   echo "$as_me: failed program was:" >&5
33858 sed 's/^/| /' conftest.$ac_ext >&5
33859
33860         wx_cv_lib_motif2="no"
33861 fi
33862
33863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864 fi
33865 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33866 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33867         if test "$wx_cv_lib_motif2" = "yes"; then
33868             cat >>confdefs.h <<\_ACEOF
33869 #define __WXMOTIF20__ 1
33870 _ACEOF
33871
33872         else
33873             cat >>confdefs.h <<\_ACEOF
33874 #define __WXMOTIF20__ 0
33875 _ACEOF
33876
33877         fi
33878
33879         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33880 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33881 if test "${wx_cv_lib_lesstif+set}" = set; then
33882   echo $ECHO_N "(cached) $ECHO_C" >&6
33883 else
33884   cat >conftest.$ac_ext <<_ACEOF
33885 /* confdefs.h.  */
33886 _ACEOF
33887 cat confdefs.h >>conftest.$ac_ext
33888 cat >>conftest.$ac_ext <<_ACEOF
33889 /* end confdefs.h.  */
33890
33891                             #include <Xm/Xm.h>
33892
33893 int
33894 main ()
33895 {
33896
33897                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33898                             Not Lesstif
33899                             #endif
33900
33901   ;
33902   return 0;
33903 }
33904 _ACEOF
33905 rm -f conftest.$ac_objext
33906 if { (ac_try="$ac_compile"
33907 case "(($ac_try" in
33908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909   *) ac_try_echo=$ac_try;;
33910 esac
33911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912   (eval "$ac_compile") 2>conftest.er1
33913   ac_status=$?
33914   grep -v '^ *+' conftest.er1 >conftest.err
33915   rm -f conftest.er1
33916   cat conftest.err >&5
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); } && {
33919          test -z "$ac_c_werror_flag" ||
33920          test ! -s conftest.err
33921        } && test -s conftest.$ac_objext; then
33922   wx_cv_lib_lesstif="yes"
33923 else
33924   echo "$as_me: failed program was:" >&5
33925 sed 's/^/| /' conftest.$ac_ext >&5
33926
33927         wx_cv_lib_lesstif="no"
33928 fi
33929
33930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33931
33932 fi
33933 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33934 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33935         if test "$wx_cv_lib_lesstif" = "yes"; then
33936             cat >>confdefs.h <<\_ACEOF
33937 #define __WXLESSTIF__ 1
33938 _ACEOF
33939
33940         else
33941             cat >>confdefs.h <<\_ACEOF
33942 #define __WXLESSTIF__ 0
33943 _ACEOF
33944
33945         fi
33946
33947         CFLAGS=$save_CFLAGS
33948
33949         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33950         TOOLKIT=MOTIF
33951         GUIDIST=MOTIF_DIST
33952     fi
33953
33954         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33955                 if test "$wxUSE_LIBXPM" = "sys"; then
33956             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33957 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33958
33959   ac_find_libraries=
33960   for ac_dir in  $SEARCH_LIB
33961   do
33962     for ac_extension in a so sl dylib dll.a; do
33963       if test -f "$ac_dir/libXpm.$ac_extension"; then
33964         ac_find_libraries=$ac_dir
33965         break 2
33966       fi
33967     done
33968   done
33969
33970             if test "$ac_find_libraries" != "" ; then
33971
33972     if test "$ac_find_libraries" = "default location"; then
33973     ac_path_to_link=""
33974   else
33975     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33976     result=$?
33977     if test $result = 0; then
33978       ac_path_to_link=""
33979     else
33980       ac_path_to_link=" -L$ac_find_libraries"
33981     fi
33982   fi
33983
33984                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33985                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33986 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33987
33988                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33989 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33990 if test "${wx_cv_x11_xpm_h+set}" = set; then
33991   echo $ECHO_N "(cached) $ECHO_C" >&6
33992 else
33993
33994                         save_CFLAGS=$CFLAGS
33995                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33996
33997                         cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h.  */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h.  */
34003
34004                                 #include <X11/xpm.h>
34005
34006 int
34007 main ()
34008 {
34009
34010                                 int version;
34011                                 version = XpmLibraryVersion();
34012
34013   ;
34014   return 0;
34015 }
34016 _ACEOF
34017 rm -f conftest.$ac_objext
34018 if { (ac_try="$ac_compile"
34019 case "(($ac_try" in
34020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021   *) ac_try_echo=$ac_try;;
34022 esac
34023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024   (eval "$ac_compile") 2>conftest.er1
34025   ac_status=$?
34026   grep -v '^ *+' conftest.er1 >conftest.err
34027   rm -f conftest.er1
34028   cat conftest.err >&5
34029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030   (exit $ac_status); } && {
34031          test -z "$ac_c_werror_flag" ||
34032          test ! -s conftest.err
34033        } && test -s conftest.$ac_objext; then
34034   wx_cv_x11_xpm_h=yes
34035 else
34036   echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.$ac_ext >&5
34038
34039         wx_cv_x11_xpm_h=no
34040
34041 fi
34042
34043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34044
34045                         CFLAGS=$save_CFLAGS
34046
34047
34048 fi
34049 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34050 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34051
34052                 if test $wx_cv_x11_xpm_h = "yes"; then
34053                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34054                     cat >>confdefs.h <<\_ACEOF
34055 #define wxHAVE_LIB_XPM 1
34056 _ACEOF
34057
34058                 else
34059                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34060 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34061                 fi
34062             fi
34063
34064         fi
34065
34066                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34067 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34068 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34069   echo $ECHO_N "(cached) $ECHO_C" >&6
34070 else
34071   ac_check_lib_save_LIBS=$LIBS
34072 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34073 cat >conftest.$ac_ext <<_ACEOF
34074 /* confdefs.h.  */
34075 _ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h.  */
34079
34080 /* Override any GCC internal prototype to avoid an error.
34081    Use char because int might match the return type of a GCC
34082    builtin and then its argument prototype would still apply.  */
34083 #ifdef __cplusplus
34084 extern "C"
34085 #endif
34086 char XShapeQueryExtension ();
34087 int
34088 main ()
34089 {
34090 return XShapeQueryExtension ();
34091   ;
34092   return 0;
34093 }
34094 _ACEOF
34095 rm -f conftest.$ac_objext conftest$ac_exeext
34096 if { (ac_try="$ac_link"
34097 case "(($ac_try" in
34098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34099   *) ac_try_echo=$ac_try;;
34100 esac
34101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34102   (eval "$ac_link") 2>conftest.er1
34103   ac_status=$?
34104   grep -v '^ *+' conftest.er1 >conftest.err
34105   rm -f conftest.er1
34106   cat conftest.err >&5
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); } && {
34109          test -z "$ac_c_werror_flag" ||
34110          test ! -s conftest.err
34111        } && test -s conftest$ac_exeext &&
34112        $as_test_x conftest$ac_exeext; then
34113   ac_cv_lib_Xext_XShapeQueryExtension=yes
34114 else
34115   echo "$as_me: failed program was:" >&5
34116 sed 's/^/| /' conftest.$ac_ext >&5
34117
34118         ac_cv_lib_Xext_XShapeQueryExtension=no
34119 fi
34120
34121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34122       conftest$ac_exeext conftest.$ac_ext
34123 LIBS=$ac_check_lib_save_LIBS
34124 fi
34125 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34126 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34127 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34128
34129                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34130                       wxHAVE_XEXT_LIB=1
34131
34132 fi
34133
34134
34135         if test "$wxHAVE_XEXT_LIB" = 1; then
34136             save_CFLAGS="$CFLAGS"
34137             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34138
34139             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34140 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34141             cat >conftest.$ac_ext <<_ACEOF
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147
34148                             #include <X11/Xlib.h>
34149                             #include <X11/extensions/shape.h>
34150
34151 int
34152 main ()
34153 {
34154
34155                             int dummy1, dummy2;
34156                             XShapeQueryExtension((Display*)NULL,
34157                                                  (int*)NULL, (int*)NULL);
34158
34159   ;
34160   return 0;
34161 }
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167   *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170   (eval "$ac_compile") 2>conftest.er1
34171   ac_status=$?
34172   grep -v '^ *+' conftest.er1 >conftest.err
34173   rm -f conftest.er1
34174   cat conftest.err >&5
34175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176   (exit $ac_status); } && {
34177          test -z "$ac_c_werror_flag" ||
34178          test ! -s conftest.err
34179        } && test -s conftest.$ac_objext; then
34180
34181                             cat >>confdefs.h <<\_ACEOF
34182 #define HAVE_XSHAPE 1
34183 _ACEOF
34184
34185                             { echo "$as_me:$LINENO: result: found" >&5
34186 echo "${ECHO_T}found" >&6; }
34187
34188 else
34189   echo "$as_me: failed program was:" >&5
34190 sed 's/^/| /' conftest.$ac_ext >&5
34191
34192
34193                             { echo "$as_me:$LINENO: result: not found" >&5
34194 echo "${ECHO_T}not found" >&6; }
34195
34196 fi
34197
34198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34199             CFLAGS="$save_CFLAGS"
34200
34201         fi
34202     fi
34203
34204     if test "$wxUSE_OSX_CARBON" = 1; then
34205         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34206 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34207         if test "$GCC" = yes; then
34208             { echo "$as_me:$LINENO: result: gcc" >&5
34209 echo "${ECHO_T}gcc" >&6; }
34210             CPPFLAGS_PASCAL="-fpascal-strings"
34211         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34212             { echo "$as_me:$LINENO: result: xlc" >&5
34213 echo "${ECHO_T}xlc" >&6; }
34214             CPPFLAGS_PASCAL="-qmacpstr"
34215         else
34216             { echo "$as_me:$LINENO: result: none" >&5
34217 echo "${ECHO_T}none" >&6; }
34218         fi
34219
34220         if test "x$wxUSE_UNIX" = "xyes"; then
34221             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34222         else
34223                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34224         fi
34225
34226         TOOLKIT=OSX_CARBON
34227                 GUIDIST=OSX_CARBON_DIST
34228                         WXBASEPORT="_carbon"
34229
34230                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34231     fi
34232
34233     if test "$wxUSE_OSX_COCOA" = 1; then
34234         TOOLKIT=OSX_COCOA
34235         GUIDIST=OSX_COCOA_DIST
34236
34237                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34238     fi
34239
34240     if test "$wxUSE_OSX_IPHONE" = 1; then
34241         TOOLKIT=OSX_IPHONE
34242     fi
34243
34244     if test "$wxUSE_OLD_COCOA" = 1; then
34245         TOOLKIT=COCOA
34246         GUIDIST=COCOA_DIST
34247     fi
34248
34249     if test "$wxUSE_PM" = 1; then
34250         TOOLKIT=PM
34251         GUIDIST=PM_DIST
34252         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34253 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34254 if test "${wx_cv_spbcdata+set}" = set; then
34255   echo $ECHO_N "(cached) $ECHO_C" >&6
34256 else
34257
34258                 cat >conftest.$ac_ext <<_ACEOF
34259 /* confdefs.h.  */
34260 _ACEOF
34261 cat confdefs.h >>conftest.$ac_ext
34262 cat >>conftest.$ac_ext <<_ACEOF
34263 /* end confdefs.h.  */
34264
34265                         #define INCL_PM
34266                         #include <os2.h>
34267
34268 int
34269 main ()
34270 {
34271
34272                         SPBCDATA test;
34273
34274   ;
34275   return 0;
34276 }
34277 _ACEOF
34278 rm -f conftest.$ac_objext
34279 if { (ac_try="$ac_compile"
34280 case "(($ac_try" in
34281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282   *) ac_try_echo=$ac_try;;
34283 esac
34284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285   (eval "$ac_compile") 2>conftest.er1
34286   ac_status=$?
34287   grep -v '^ *+' conftest.er1 >conftest.err
34288   rm -f conftest.er1
34289   cat conftest.err >&5
34290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291   (exit $ac_status); } && {
34292          test -z "$ac_c_werror_flag" ||
34293          test ! -s conftest.err
34294        } && test -s conftest.$ac_objext; then
34295   wx_cv_spbcdata=yes
34296 else
34297   echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34299
34300         wx_cv_spbcdata=no
34301
34302 fi
34303
34304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34305
34306
34307 fi
34308 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34309 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34310
34311         if test $wx_cv_spbcdata = "yes"; then
34312             cat >>confdefs.h <<\_ACEOF
34313 #define HAVE_SPBCDATA 1
34314 _ACEOF
34315
34316         fi
34317     fi
34318
34319         if test "$TOOLKIT" = "PM" ; then
34320         TOOLKIT_DIR="os2"
34321     else
34322         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34323     fi
34324
34325     if test "$wxUSE_UNIVERSAL" = "yes"; then
34326         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34327         WIDGET_SET=univ
34328     fi
34329
34330         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34331     DISTDIR="wx\$(TOOLKIT)"
34332 else
34333     USE_GUI=0
34334
34335             TOOLKIT_DIR="base"
34336
34337         if test "$USE_WIN32" = 1 ; then
34338                         TOOLKIT="MSW"
34339     fi
34340
34341         GUIDIST="BASE_DIST"
34342     DISTDIR="wxBase"
34343 fi
34344
34345
34346
34347 if test "$wxUSE_GUI" = "yes"; then
34348     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34349
34350 for ac_header in X11/Xlib.h
34351 do
34352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34356   echo $ECHO_N "(cached) $ECHO_C" >&6
34357 else
34358   cat >conftest.$ac_ext <<_ACEOF
34359 /* confdefs.h.  */
34360 _ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h.  */
34364
34365
34366 #include <$ac_header>
34367 _ACEOF
34368 rm -f conftest.$ac_objext
34369 if { (ac_try="$ac_compile"
34370 case "(($ac_try" in
34371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372   *) ac_try_echo=$ac_try;;
34373 esac
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375   (eval "$ac_compile") 2>conftest.er1
34376   ac_status=$?
34377   grep -v '^ *+' conftest.er1 >conftest.err
34378   rm -f conftest.er1
34379   cat conftest.err >&5
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } && {
34382          test -z "$ac_c_werror_flag" ||
34383          test ! -s conftest.err
34384        } && test -s conftest.$ac_objext; then
34385   eval "$as_ac_Header=yes"
34386 else
34387   echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34389
34390         eval "$as_ac_Header=no"
34391 fi
34392
34393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34394 fi
34395 ac_res=`eval echo '${'$as_ac_Header'}'`
34396                { echo "$as_me:$LINENO: result: $ac_res" >&5
34397 echo "${ECHO_T}$ac_res" >&6; }
34398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34399   cat >>confdefs.h <<_ACEOF
34400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34401 _ACEOF
34402
34403 fi
34404
34405 done
34406
34407
34408 for ac_header in X11/XKBlib.h
34409 do
34410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34414   echo $ECHO_N "(cached) $ECHO_C" >&6
34415 else
34416   cat >conftest.$ac_ext <<_ACEOF
34417 /* confdefs.h.  */
34418 _ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h.  */
34422
34423                           #if HAVE_X11_XLIB_H
34424                             #include <X11/Xlib.h>
34425                           #endif
34426
34427
34428 #include <$ac_header>
34429 _ACEOF
34430 rm -f conftest.$ac_objext
34431 if { (ac_try="$ac_compile"
34432 case "(($ac_try" in
34433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34434   *) ac_try_echo=$ac_try;;
34435 esac
34436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34437   (eval "$ac_compile") 2>conftest.er1
34438   ac_status=$?
34439   grep -v '^ *+' conftest.er1 >conftest.err
34440   rm -f conftest.er1
34441   cat conftest.err >&5
34442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443   (exit $ac_status); } && {
34444          test -z "$ac_c_werror_flag" ||
34445          test ! -s conftest.err
34446        } && test -s conftest.$ac_objext; then
34447   eval "$as_ac_Header=yes"
34448 else
34449   echo "$as_me: failed program was:" >&5
34450 sed 's/^/| /' conftest.$ac_ext >&5
34451
34452         eval "$as_ac_Header=no"
34453 fi
34454
34455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34456 fi
34457 ac_res=`eval echo '${'$as_ac_Header'}'`
34458                { echo "$as_me:$LINENO: result: $ac_res" >&5
34459 echo "${ECHO_T}$ac_res" >&6; }
34460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34461   cat >>confdefs.h <<_ACEOF
34462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34463 _ACEOF
34464
34465 fi
34466
34467 done
34468
34469     fi
34470 fi
34471
34472
34473
34474 USE_XINERAMA=0
34475 if test "$wxUSE_DISPLAY" = "yes"; then
34476         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34477
34478   ac_find_libraries=
34479
34480     fl_pkgname=`echo "Xinerama" | tr [:upper:] [:lower:]`
34481
34482
34483 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34484         if test -n "$ac_tool_prefix"; then
34485   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34490   echo $ECHO_N "(cached) $ECHO_C" >&6
34491 else
34492   case $PKG_CONFIG in
34493   [\\/]* | ?:[\\/]*)
34494   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34495   ;;
34496   *)
34497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498 for as_dir in $PATH
34499 do
34500   IFS=$as_save_IFS
34501   test -z "$as_dir" && as_dir=.
34502   for ac_exec_ext in '' $ac_executable_extensions; do
34503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34504     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34506     break 2
34507   fi
34508 done
34509 done
34510 IFS=$as_save_IFS
34511
34512   ;;
34513 esac
34514 fi
34515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34516 if test -n "$PKG_CONFIG"; then
34517   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34518 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34519 else
34520   { echo "$as_me:$LINENO: result: no" >&5
34521 echo "${ECHO_T}no" >&6; }
34522 fi
34523
34524
34525 fi
34526 if test -z "$ac_cv_path_PKG_CONFIG"; then
34527   ac_pt_PKG_CONFIG=$PKG_CONFIG
34528   # Extract the first word of "pkg-config", so it can be a program name with args.
34529 set dummy pkg-config; ac_word=$2
34530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34532 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
34533   echo $ECHO_N "(cached) $ECHO_C" >&6
34534 else
34535   case $ac_pt_PKG_CONFIG in
34536   [\\/]* | ?:[\\/]*)
34537   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
34538   ;;
34539   *)
34540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34541 for as_dir in $PATH
34542 do
34543   IFS=$as_save_IFS
34544   test -z "$as_dir" && as_dir=.
34545   for ac_exec_ext in '' $ac_executable_extensions; do
34546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34547     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34549     break 2
34550   fi
34551 done
34552 done
34553 IFS=$as_save_IFS
34554
34555   ;;
34556 esac
34557 fi
34558 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
34559 if test -n "$ac_pt_PKG_CONFIG"; then
34560   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
34561 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
34562 else
34563   { echo "$as_me:$LINENO: result: no" >&5
34564 echo "${ECHO_T}no" >&6; }
34565 fi
34566
34567   if test "x$ac_pt_PKG_CONFIG" = x; then
34568     PKG_CONFIG=""
34569   else
34570     case $cross_compiling:$ac_tool_warned in
34571 yes:)
34572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34573 whose name does not start with the host triplet.  If you think this
34574 configuration is useful to you, please write to autoconf@gnu.org." >&5
34575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34576 whose name does not start with the host triplet.  If you think this
34577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34578 ac_tool_warned=yes ;;
34579 esac
34580     PKG_CONFIG=$ac_pt_PKG_CONFIG
34581   fi
34582 else
34583   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34584 fi
34585
34586 fi
34587 if test -n "$PKG_CONFIG"; then
34588         _pkg_min_version=0.9.0
34589         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34590 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34591         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34592                 { echo "$as_me:$LINENO: result: yes" >&5
34593 echo "${ECHO_T}yes" >&6; }
34594         else
34595                 { echo "$as_me:$LINENO: result: no" >&5
34596 echo "${ECHO_T}no" >&6; }
34597                 PKG_CONFIG=""
34598         fi
34599
34600 fi 6> /dev/null
34601
34602 pkg_failed=no
34603 { echo "$as_me:$LINENO: checking for Xinerama" >&5
34604 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34605
34606 if test -n "$PKG_CONFIG"; then
34607     if test -n "$Xinerama_CFLAGS"; then
34608         pkg_cv_Xinerama_CFLAGS="$Xinerama_CFLAGS"
34609     else
34610         if test -n "$PKG_CONFIG" && \
34611     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34612   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34613   ac_status=$?
34614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); }; then
34616   pkg_cv_Xinerama_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
34617 else
34618   pkg_failed=yes
34619 fi
34620     fi
34621 else
34622         pkg_failed=untried
34623 fi
34624 if test -n "$PKG_CONFIG"; then
34625     if test -n "$Xinerama_LIBS"; then
34626         pkg_cv_Xinerama_LIBS="$Xinerama_LIBS"
34627     else
34628         if test -n "$PKG_CONFIG" && \
34629     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34630   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34631   ac_status=$?
34632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); }; then
34634   pkg_cv_Xinerama_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
34635 else
34636   pkg_failed=yes
34637 fi
34638     fi
34639 else
34640         pkg_failed=untried
34641 fi
34642
34643
34644
34645 if test $pkg_failed = yes; then
34646
34647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34648         _pkg_short_errors_supported=yes
34649 else
34650         _pkg_short_errors_supported=no
34651 fi
34652         if test $_pkg_short_errors_supported = yes; then
34653                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
34654         else
34655                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
34656         fi
34657         # Put the nasty error message in config.log where it belongs
34658         echo "$Xinerama_PKG_ERRORS" >&5
34659
34660
34661       if test "x$ac_find_libraries" = "x"; then
34662                 if test "xXineramaQueryScreens" != "x"; then
34663           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34664 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34665 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34666   echo $ECHO_N "(cached) $ECHO_C" >&6
34667 else
34668   ac_check_lib_save_LIBS=$LIBS
34669 LIBS="-lXinerama  $LIBS"
34670 cat >conftest.$ac_ext <<_ACEOF
34671 /* confdefs.h.  */
34672 _ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h.  */
34676
34677 /* Override any GCC internal prototype to avoid an error.
34678    Use char because int might match the return type of a GCC
34679    builtin and then its argument prototype would still apply.  */
34680 #ifdef __cplusplus
34681 extern "C"
34682 #endif
34683 char XineramaQueryScreens ();
34684 int
34685 main ()
34686 {
34687 return XineramaQueryScreens ();
34688   ;
34689   return 0;
34690 }
34691 _ACEOF
34692 rm -f conftest.$ac_objext conftest$ac_exeext
34693 if { (ac_try="$ac_link"
34694 case "(($ac_try" in
34695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696   *) ac_try_echo=$ac_try;;
34697 esac
34698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699   (eval "$ac_link") 2>conftest.er1
34700   ac_status=$?
34701   grep -v '^ *+' conftest.er1 >conftest.err
34702   rm -f conftest.er1
34703   cat conftest.err >&5
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); } && {
34706          test -z "$ac_c_werror_flag" ||
34707          test ! -s conftest.err
34708        } && test -s conftest$ac_exeext &&
34709        $as_test_x conftest$ac_exeext; then
34710   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34711 else
34712   echo "$as_me: failed program was:" >&5
34713 sed 's/^/| /' conftest.$ac_ext >&5
34714
34715         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34716 fi
34717
34718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34719       conftest$ac_exeext conftest.$ac_ext
34720 LIBS=$ac_check_lib_save_LIBS
34721 fi
34722 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34723 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34724 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34725   ac_find_libraries="std"
34726 fi
34727
34728         fi
34729       fi
34730
34731       if test "x$ac_find_libraries" = "x"; then
34732                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34733 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34734
34735   ac_find_libraries=
34736   for ac_dir in  $SEARCH_LIB
34737   do
34738     for ac_extension in a so sl dylib dll.a; do
34739       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34740         ac_find_libraries=$ac_dir
34741         break 2
34742       fi
34743     done
34744   done
34745
34746         if test "x$ac_find_libraries" != "x"; then
34747           { echo "$as_me:$LINENO: result: yes" >&5
34748 echo "${ECHO_T}yes" >&6; }
34749         else
34750           { echo "$as_me:$LINENO: result: no" >&5
34751 echo "${ECHO_T}no" >&6; }
34752         fi
34753       fi
34754
34755 elif test $pkg_failed = untried; then
34756
34757       if test "x$ac_find_libraries" = "x"; then
34758                 if test "xXineramaQueryScreens" != "x"; then
34759           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34760 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34761 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34762   echo $ECHO_N "(cached) $ECHO_C" >&6
34763 else
34764   ac_check_lib_save_LIBS=$LIBS
34765 LIBS="-lXinerama  $LIBS"
34766 cat >conftest.$ac_ext <<_ACEOF
34767 /* confdefs.h.  */
34768 _ACEOF
34769 cat confdefs.h >>conftest.$ac_ext
34770 cat >>conftest.$ac_ext <<_ACEOF
34771 /* end confdefs.h.  */
34772
34773 /* Override any GCC internal prototype to avoid an error.
34774    Use char because int might match the return type of a GCC
34775    builtin and then its argument prototype would still apply.  */
34776 #ifdef __cplusplus
34777 extern "C"
34778 #endif
34779 char XineramaQueryScreens ();
34780 int
34781 main ()
34782 {
34783 return XineramaQueryScreens ();
34784   ;
34785   return 0;
34786 }
34787 _ACEOF
34788 rm -f conftest.$ac_objext conftest$ac_exeext
34789 if { (ac_try="$ac_link"
34790 case "(($ac_try" in
34791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34792   *) ac_try_echo=$ac_try;;
34793 esac
34794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34795   (eval "$ac_link") 2>conftest.er1
34796   ac_status=$?
34797   grep -v '^ *+' conftest.er1 >conftest.err
34798   rm -f conftest.er1
34799   cat conftest.err >&5
34800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801   (exit $ac_status); } && {
34802          test -z "$ac_c_werror_flag" ||
34803          test ! -s conftest.err
34804        } && test -s conftest$ac_exeext &&
34805        $as_test_x conftest$ac_exeext; then
34806   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34807 else
34808   echo "$as_me: failed program was:" >&5
34809 sed 's/^/| /' conftest.$ac_ext >&5
34810
34811         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34812 fi
34813
34814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34815       conftest$ac_exeext conftest.$ac_ext
34816 LIBS=$ac_check_lib_save_LIBS
34817 fi
34818 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34819 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34820 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34821   ac_find_libraries="std"
34822 fi
34823
34824         fi
34825       fi
34826
34827       if test "x$ac_find_libraries" = "x"; then
34828                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34829 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34830
34831   ac_find_libraries=
34832   for ac_dir in  $SEARCH_LIB
34833   do
34834     for ac_extension in a so sl dylib dll.a; do
34835       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34836         ac_find_libraries=$ac_dir
34837         break 2
34838       fi
34839     done
34840   done
34841
34842         if test "x$ac_find_libraries" != "x"; then
34843           { echo "$as_me:$LINENO: result: yes" >&5
34844 echo "${ECHO_T}yes" >&6; }
34845         else
34846           { echo "$as_me:$LINENO: result: no" >&5
34847 echo "${ECHO_T}no" >&6; }
34848         fi
34849       fi
34850
34851 else
34852         Xinerama_CFLAGS=$pkg_cv_Xinerama_CFLAGS
34853         Xinerama_LIBS=$pkg_cv_Xinerama_LIBS
34854         { echo "$as_me:$LINENO: result: yes" >&5
34855 echo "${ECHO_T}yes" >&6; }
34856
34857             ac_find_libraries="std"
34858
34859                                                 eval ac_find_cflags=\$Xinerama_CFLAGS
34860       eval fl_libs=\$Xinerama_LIBS
34861
34862                   for fl_path in $fl_libs
34863       do
34864         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
34865                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
34866         fi
34867       done
34868
34869 fi
34870
34871         if test "$ac_find_libraries" != "" ; then
34872             if test "$ac_find_libraries" != "std" ; then
34873
34874     if test "$ac_find_libraries" = "default location"; then
34875     ac_path_to_link=""
34876   else
34877     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34878     result=$?
34879     if test $result = 0; then
34880       ac_path_to_link=""
34881     else
34882       ac_path_to_link=" -L$ac_find_libraries"
34883     fi
34884   fi
34885
34886               if test "$ac_path_to_link" != " -L/usr/lib" ; then
34887                   LDFLAGS="$LDFLAGS $ac_path_to_link"
34888               fi
34889             fi
34890             USE_XINERAMA=1
34891             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34892         else
34893             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34894 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34895             wxUSE_DISPLAY="no"
34896         fi
34897     elif test "$wxUSE_MSW" = 1; then
34898                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34899 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34900 if test "${ac_cv_header_ddraw_h+set}" = set; then
34901   echo $ECHO_N "(cached) $ECHO_C" >&6
34902 else
34903   cat >conftest.$ac_ext <<_ACEOF
34904 /* confdefs.h.  */
34905 _ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h.  */
34909 #include <windows.h>
34910
34911 #include <ddraw.h>
34912 _ACEOF
34913 rm -f conftest.$ac_objext
34914 if { (ac_try="$ac_compile"
34915 case "(($ac_try" in
34916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34917   *) ac_try_echo=$ac_try;;
34918 esac
34919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34920   (eval "$ac_compile") 2>conftest.er1
34921   ac_status=$?
34922   grep -v '^ *+' conftest.er1 >conftest.err
34923   rm -f conftest.er1
34924   cat conftest.err >&5
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); } && {
34927          test -z "$ac_c_werror_flag" ||
34928          test ! -s conftest.err
34929        } && test -s conftest.$ac_objext; then
34930   ac_cv_header_ddraw_h=yes
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         ac_cv_header_ddraw_h=no
34936 fi
34937
34938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34939 fi
34940 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34941 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34942
34943
34944     fi
34945 fi
34946
34947 if test "$wxUSE_DISPLAY" = "yes"; then
34948         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34949
34950   ac_find_libraries=
34951
34952     fl_pkgname=`echo "Xxf86vm" | tr [:upper:] [:lower:]`
34953
34954
34955 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34956         if test -n "$ac_tool_prefix"; then
34957   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34958 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34962   echo $ECHO_N "(cached) $ECHO_C" >&6
34963 else
34964   case $PKG_CONFIG in
34965   [\\/]* | ?:[\\/]*)
34966   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34967   ;;
34968   *)
34969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34970 for as_dir in $PATH
34971 do
34972   IFS=$as_save_IFS
34973   test -z "$as_dir" && as_dir=.
34974   for ac_exec_ext in '' $ac_executable_extensions; do
34975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34976     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34978     break 2
34979   fi
34980 done
34981 done
34982 IFS=$as_save_IFS
34983
34984   ;;
34985 esac
34986 fi
34987 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34988 if test -n "$PKG_CONFIG"; then
34989   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34990 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34991 else
34992   { echo "$as_me:$LINENO: result: no" >&5
34993 echo "${ECHO_T}no" >&6; }
34994 fi
34995
34996
34997 fi
34998 if test -z "$ac_cv_path_PKG_CONFIG"; then
34999   ac_pt_PKG_CONFIG=$PKG_CONFIG
35000   # Extract the first word of "pkg-config", so it can be a program name with args.
35001 set dummy pkg-config; ac_word=$2
35002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35004 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35005   echo $ECHO_N "(cached) $ECHO_C" >&6
35006 else
35007   case $ac_pt_PKG_CONFIG in
35008   [\\/]* | ?:[\\/]*)
35009   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35010   ;;
35011   *)
35012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013 for as_dir in $PATH
35014 do
35015   IFS=$as_save_IFS
35016   test -z "$as_dir" && as_dir=.
35017   for ac_exec_ext in '' $ac_executable_extensions; do
35018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35019     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35021     break 2
35022   fi
35023 done
35024 done
35025 IFS=$as_save_IFS
35026
35027   ;;
35028 esac
35029 fi
35030 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35031 if test -n "$ac_pt_PKG_CONFIG"; then
35032   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35033 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35034 else
35035   { echo "$as_me:$LINENO: result: no" >&5
35036 echo "${ECHO_T}no" >&6; }
35037 fi
35038
35039   if test "x$ac_pt_PKG_CONFIG" = x; then
35040     PKG_CONFIG=""
35041   else
35042     case $cross_compiling:$ac_tool_warned in
35043 yes:)
35044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35045 whose name does not start with the host triplet.  If you think this
35046 configuration is useful to you, please write to autoconf@gnu.org." >&5
35047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35048 whose name does not start with the host triplet.  If you think this
35049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35050 ac_tool_warned=yes ;;
35051 esac
35052     PKG_CONFIG=$ac_pt_PKG_CONFIG
35053   fi
35054 else
35055   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35056 fi
35057
35058 fi
35059 if test -n "$PKG_CONFIG"; then
35060         _pkg_min_version=0.9.0
35061         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35062 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35063         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35064                 { echo "$as_me:$LINENO: result: yes" >&5
35065 echo "${ECHO_T}yes" >&6; }
35066         else
35067                 { echo "$as_me:$LINENO: result: no" >&5
35068 echo "${ECHO_T}no" >&6; }
35069                 PKG_CONFIG=""
35070         fi
35071
35072 fi 6> /dev/null
35073
35074 pkg_failed=no
35075 { echo "$as_me:$LINENO: checking for Xxf86vm" >&5
35076 echo $ECHO_N "checking for Xxf86vm... $ECHO_C" >&6; }
35077
35078 if test -n "$PKG_CONFIG"; then
35079     if test -n "$Xxf86vm_CFLAGS"; then
35080         pkg_cv_Xxf86vm_CFLAGS="$Xxf86vm_CFLAGS"
35081     else
35082         if test -n "$PKG_CONFIG" && \
35083     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35084   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35085   ac_status=$?
35086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087   (exit $ac_status); }; then
35088   pkg_cv_Xxf86vm_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35089 else
35090   pkg_failed=yes
35091 fi
35092     fi
35093 else
35094         pkg_failed=untried
35095 fi
35096 if test -n "$PKG_CONFIG"; then
35097     if test -n "$Xxf86vm_LIBS"; then
35098         pkg_cv_Xxf86vm_LIBS="$Xxf86vm_LIBS"
35099     else
35100         if test -n "$PKG_CONFIG" && \
35101     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35102   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35103   ac_status=$?
35104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105   (exit $ac_status); }; then
35106   pkg_cv_Xxf86vm_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35107 else
35108   pkg_failed=yes
35109 fi
35110     fi
35111 else
35112         pkg_failed=untried
35113 fi
35114
35115
35116
35117 if test $pkg_failed = yes; then
35118
35119 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35120         _pkg_short_errors_supported=yes
35121 else
35122         _pkg_short_errors_supported=no
35123 fi
35124         if test $_pkg_short_errors_supported = yes; then
35125                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35126         else
35127                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35128         fi
35129         # Put the nasty error message in config.log where it belongs
35130         echo "$Xxf86vm_PKG_ERRORS" >&5
35131
35132
35133       if test "x$ac_find_libraries" = "x"; then
35134                 if test "xXF86VidModeQueryExtension" != "x"; then
35135           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35136 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35137 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35138   echo $ECHO_N "(cached) $ECHO_C" >&6
35139 else
35140   ac_check_lib_save_LIBS=$LIBS
35141 LIBS="-lXxf86vm  $LIBS"
35142 cat >conftest.$ac_ext <<_ACEOF
35143 /* confdefs.h.  */
35144 _ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h.  */
35148
35149 /* Override any GCC internal prototype to avoid an error.
35150    Use char because int might match the return type of a GCC
35151    builtin and then its argument prototype would still apply.  */
35152 #ifdef __cplusplus
35153 extern "C"
35154 #endif
35155 char XF86VidModeQueryExtension ();
35156 int
35157 main ()
35158 {
35159 return XF86VidModeQueryExtension ();
35160   ;
35161   return 0;
35162 }
35163 _ACEOF
35164 rm -f conftest.$ac_objext conftest$ac_exeext
35165 if { (ac_try="$ac_link"
35166 case "(($ac_try" in
35167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168   *) ac_try_echo=$ac_try;;
35169 esac
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171   (eval "$ac_link") 2>conftest.er1
35172   ac_status=$?
35173   grep -v '^ *+' conftest.er1 >conftest.err
35174   rm -f conftest.er1
35175   cat conftest.err >&5
35176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177   (exit $ac_status); } && {
35178          test -z "$ac_c_werror_flag" ||
35179          test ! -s conftest.err
35180        } && test -s conftest$ac_exeext &&
35181        $as_test_x conftest$ac_exeext; then
35182   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35183 else
35184   echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35188 fi
35189
35190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35191       conftest$ac_exeext conftest.$ac_ext
35192 LIBS=$ac_check_lib_save_LIBS
35193 fi
35194 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35195 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35196 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35197   ac_find_libraries="std"
35198 fi
35199
35200         fi
35201       fi
35202
35203       if test "x$ac_find_libraries" = "x"; then
35204                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35205 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35206
35207   ac_find_libraries=
35208   for ac_dir in  $SEARCH_LIB
35209   do
35210     for ac_extension in a so sl dylib dll.a; do
35211       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35212         ac_find_libraries=$ac_dir
35213         break 2
35214       fi
35215     done
35216   done
35217
35218         if test "x$ac_find_libraries" != "x"; then
35219           { echo "$as_me:$LINENO: result: yes" >&5
35220 echo "${ECHO_T}yes" >&6; }
35221         else
35222           { echo "$as_me:$LINENO: result: no" >&5
35223 echo "${ECHO_T}no" >&6; }
35224         fi
35225       fi
35226
35227 elif test $pkg_failed = untried; then
35228
35229       if test "x$ac_find_libraries" = "x"; then
35230                 if test "xXF86VidModeQueryExtension" != "x"; then
35231           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35232 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35233 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35234   echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236   ac_check_lib_save_LIBS=$LIBS
35237 LIBS="-lXxf86vm  $LIBS"
35238 cat >conftest.$ac_ext <<_ACEOF
35239 /* confdefs.h.  */
35240 _ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h.  */
35244
35245 /* Override any GCC internal prototype to avoid an error.
35246    Use char because int might match the return type of a GCC
35247    builtin and then its argument prototype would still apply.  */
35248 #ifdef __cplusplus
35249 extern "C"
35250 #endif
35251 char XF86VidModeQueryExtension ();
35252 int
35253 main ()
35254 {
35255 return XF86VidModeQueryExtension ();
35256   ;
35257   return 0;
35258 }
35259 _ACEOF
35260 rm -f conftest.$ac_objext conftest$ac_exeext
35261 if { (ac_try="$ac_link"
35262 case "(($ac_try" in
35263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264   *) ac_try_echo=$ac_try;;
35265 esac
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267   (eval "$ac_link") 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } && {
35274          test -z "$ac_c_werror_flag" ||
35275          test ! -s conftest.err
35276        } && test -s conftest$ac_exeext &&
35277        $as_test_x conftest$ac_exeext; then
35278   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35279 else
35280   echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35282
35283         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35284 fi
35285
35286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35287       conftest$ac_exeext conftest.$ac_ext
35288 LIBS=$ac_check_lib_save_LIBS
35289 fi
35290 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35291 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35292 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35293   ac_find_libraries="std"
35294 fi
35295
35296         fi
35297       fi
35298
35299       if test "x$ac_find_libraries" = "x"; then
35300                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35301 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35302
35303   ac_find_libraries=
35304   for ac_dir in  $SEARCH_LIB
35305   do
35306     for ac_extension in a so sl dylib dll.a; do
35307       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35308         ac_find_libraries=$ac_dir
35309         break 2
35310       fi
35311     done
35312   done
35313
35314         if test "x$ac_find_libraries" != "x"; then
35315           { echo "$as_me:$LINENO: result: yes" >&5
35316 echo "${ECHO_T}yes" >&6; }
35317         else
35318           { echo "$as_me:$LINENO: result: no" >&5
35319 echo "${ECHO_T}no" >&6; }
35320         fi
35321       fi
35322
35323 else
35324         Xxf86vm_CFLAGS=$pkg_cv_Xxf86vm_CFLAGS
35325         Xxf86vm_LIBS=$pkg_cv_Xxf86vm_LIBS
35326         { echo "$as_me:$LINENO: result: yes" >&5
35327 echo "${ECHO_T}yes" >&6; }
35328
35329             ac_find_libraries="std"
35330
35331                                                 eval ac_find_cflags=\$Xxf86vm_CFLAGS
35332       eval fl_libs=\$Xxf86vm_LIBS
35333
35334                   for fl_path in $fl_libs
35335       do
35336         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35337                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35338         fi
35339       done
35340
35341 fi
35342
35343         if test "$ac_find_libraries" != "" ; then
35344
35345 for ac_header in X11/extensions/xf86vmode.h
35346 do
35347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35351   echo $ECHO_N "(cached) $ECHO_C" >&6
35352 else
35353   cat >conftest.$ac_ext <<_ACEOF
35354 /* confdefs.h.  */
35355 _ACEOF
35356 cat confdefs.h >>conftest.$ac_ext
35357 cat >>conftest.$ac_ext <<_ACEOF
35358 /* end confdefs.h.  */
35359
35360                                   #if HAVE_X11_XLIB_H
35361                                     #include <X11/Xlib.h>
35362                                   #endif
35363
35364
35365 #include <$ac_header>
35366 _ACEOF
35367 rm -f conftest.$ac_objext
35368 if { (ac_try="$ac_compile"
35369 case "(($ac_try" in
35370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35371   *) ac_try_echo=$ac_try;;
35372 esac
35373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35374   (eval "$ac_compile") 2>conftest.er1
35375   ac_status=$?
35376   grep -v '^ *+' conftest.er1 >conftest.err
35377   rm -f conftest.er1
35378   cat conftest.err >&5
35379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380   (exit $ac_status); } && {
35381          test -z "$ac_c_werror_flag" ||
35382          test ! -s conftest.err
35383        } && test -s conftest.$ac_objext; then
35384   eval "$as_ac_Header=yes"
35385 else
35386   echo "$as_me: failed program was:" >&5
35387 sed 's/^/| /' conftest.$ac_ext >&5
35388
35389         eval "$as_ac_Header=no"
35390 fi
35391
35392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35393 fi
35394 ac_res=`eval echo '${'$as_ac_Header'}'`
35395                { echo "$as_me:$LINENO: result: $ac_res" >&5
35396 echo "${ECHO_T}$ac_res" >&6; }
35397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35398   cat >>confdefs.h <<_ACEOF
35399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35400 _ACEOF
35401
35402                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35403
35404 fi
35405
35406 done
35407
35408         fi
35409     fi
35410 fi
35411
35412 if test "$wxUSE_DETECT_SM" = "yes"; then
35413     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
35414
35415   ac_find_libraries=
35416
35417     fl_pkgname=`echo "SM" | tr [:upper:] [:lower:]`
35418
35419
35420 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35421         if test -n "$ac_tool_prefix"; then
35422   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35423 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35427   echo $ECHO_N "(cached) $ECHO_C" >&6
35428 else
35429   case $PKG_CONFIG in
35430   [\\/]* | ?:[\\/]*)
35431   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35432   ;;
35433   *)
35434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35435 for as_dir in $PATH
35436 do
35437   IFS=$as_save_IFS
35438   test -z "$as_dir" && as_dir=.
35439   for ac_exec_ext in '' $ac_executable_extensions; do
35440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35441     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35443     break 2
35444   fi
35445 done
35446 done
35447 IFS=$as_save_IFS
35448
35449   ;;
35450 esac
35451 fi
35452 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35453 if test -n "$PKG_CONFIG"; then
35454   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35455 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35456 else
35457   { echo "$as_me:$LINENO: result: no" >&5
35458 echo "${ECHO_T}no" >&6; }
35459 fi
35460
35461
35462 fi
35463 if test -z "$ac_cv_path_PKG_CONFIG"; then
35464   ac_pt_PKG_CONFIG=$PKG_CONFIG
35465   # Extract the first word of "pkg-config", so it can be a program name with args.
35466 set dummy pkg-config; ac_word=$2
35467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35469 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35470   echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472   case $ac_pt_PKG_CONFIG in
35473   [\\/]* | ?:[\\/]*)
35474   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35475   ;;
35476   *)
35477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35478 for as_dir in $PATH
35479 do
35480   IFS=$as_save_IFS
35481   test -z "$as_dir" && as_dir=.
35482   for ac_exec_ext in '' $ac_executable_extensions; do
35483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35484     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35486     break 2
35487   fi
35488 done
35489 done
35490 IFS=$as_save_IFS
35491
35492   ;;
35493 esac
35494 fi
35495 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35496 if test -n "$ac_pt_PKG_CONFIG"; then
35497   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35498 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35499 else
35500   { echo "$as_me:$LINENO: result: no" >&5
35501 echo "${ECHO_T}no" >&6; }
35502 fi
35503
35504   if test "x$ac_pt_PKG_CONFIG" = x; then
35505     PKG_CONFIG=""
35506   else
35507     case $cross_compiling:$ac_tool_warned in
35508 yes:)
35509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35510 whose name does not start with the host triplet.  If you think this
35511 configuration is useful to you, please write to autoconf@gnu.org." >&5
35512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35513 whose name does not start with the host triplet.  If you think this
35514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35515 ac_tool_warned=yes ;;
35516 esac
35517     PKG_CONFIG=$ac_pt_PKG_CONFIG
35518   fi
35519 else
35520   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35521 fi
35522
35523 fi
35524 if test -n "$PKG_CONFIG"; then
35525         _pkg_min_version=0.9.0
35526         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35527 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35528         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35529                 { echo "$as_me:$LINENO: result: yes" >&5
35530 echo "${ECHO_T}yes" >&6; }
35531         else
35532                 { echo "$as_me:$LINENO: result: no" >&5
35533 echo "${ECHO_T}no" >&6; }
35534                 PKG_CONFIG=""
35535         fi
35536
35537 fi 6> /dev/null
35538
35539 pkg_failed=no
35540 { echo "$as_me:$LINENO: checking for SM" >&5
35541 echo $ECHO_N "checking for SM... $ECHO_C" >&6; }
35542
35543 if test -n "$PKG_CONFIG"; then
35544     if test -n "$SM_CFLAGS"; then
35545         pkg_cv_SM_CFLAGS="$SM_CFLAGS"
35546     else
35547         if test -n "$PKG_CONFIG" && \
35548     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35549   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35550   ac_status=$?
35551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552   (exit $ac_status); }; then
35553   pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35554 else
35555   pkg_failed=yes
35556 fi
35557     fi
35558 else
35559         pkg_failed=untried
35560 fi
35561 if test -n "$PKG_CONFIG"; then
35562     if test -n "$SM_LIBS"; then
35563         pkg_cv_SM_LIBS="$SM_LIBS"
35564     else
35565         if test -n "$PKG_CONFIG" && \
35566     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35567   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35568   ac_status=$?
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); }; then
35571   pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35572 else
35573   pkg_failed=yes
35574 fi
35575     fi
35576 else
35577         pkg_failed=untried
35578 fi
35579
35580
35581
35582 if test $pkg_failed = yes; then
35583
35584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35585         _pkg_short_errors_supported=yes
35586 else
35587         _pkg_short_errors_supported=no
35588 fi
35589         if test $_pkg_short_errors_supported = yes; then
35590                 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35591         else
35592                 SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35593         fi
35594         # Put the nasty error message in config.log where it belongs
35595         echo "$SM_PKG_ERRORS" >&5
35596
35597
35598       if test "x$ac_find_libraries" = "x"; then
35599                 if test "xSmcOpenConnection" != "x"; then
35600           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35601 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35602 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35603   echo $ECHO_N "(cached) $ECHO_C" >&6
35604 else
35605   ac_check_lib_save_LIBS=$LIBS
35606 LIBS="-lSM  $LIBS"
35607 cat >conftest.$ac_ext <<_ACEOF
35608 /* confdefs.h.  */
35609 _ACEOF
35610 cat confdefs.h >>conftest.$ac_ext
35611 cat >>conftest.$ac_ext <<_ACEOF
35612 /* end confdefs.h.  */
35613
35614 /* Override any GCC internal prototype to avoid an error.
35615    Use char because int might match the return type of a GCC
35616    builtin and then its argument prototype would still apply.  */
35617 #ifdef __cplusplus
35618 extern "C"
35619 #endif
35620 char SmcOpenConnection ();
35621 int
35622 main ()
35623 {
35624 return SmcOpenConnection ();
35625   ;
35626   return 0;
35627 }
35628 _ACEOF
35629 rm -f conftest.$ac_objext conftest$ac_exeext
35630 if { (ac_try="$ac_link"
35631 case "(($ac_try" in
35632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633   *) ac_try_echo=$ac_try;;
35634 esac
35635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636   (eval "$ac_link") 2>conftest.er1
35637   ac_status=$?
35638   grep -v '^ *+' conftest.er1 >conftest.err
35639   rm -f conftest.er1
35640   cat conftest.err >&5
35641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642   (exit $ac_status); } && {
35643          test -z "$ac_c_werror_flag" ||
35644          test ! -s conftest.err
35645        } && test -s conftest$ac_exeext &&
35646        $as_test_x conftest$ac_exeext; then
35647   ac_cv_lib_SM_SmcOpenConnection=yes
35648 else
35649   echo "$as_me: failed program was:" >&5
35650 sed 's/^/| /' conftest.$ac_ext >&5
35651
35652         ac_cv_lib_SM_SmcOpenConnection=no
35653 fi
35654
35655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35656       conftest$ac_exeext conftest.$ac_ext
35657 LIBS=$ac_check_lib_save_LIBS
35658 fi
35659 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35660 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35661 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35662   ac_find_libraries="std"
35663 fi
35664
35665         fi
35666       fi
35667
35668       if test "x$ac_find_libraries" = "x"; then
35669                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35670 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35671
35672   ac_find_libraries=
35673   for ac_dir in  $SEARCH_LIB
35674   do
35675     for ac_extension in a so sl dylib dll.a; do
35676       if test -f "$ac_dir/libSM.$ac_extension"; then
35677         ac_find_libraries=$ac_dir
35678         break 2
35679       fi
35680     done
35681   done
35682
35683         if test "x$ac_find_libraries" != "x"; then
35684           { echo "$as_me:$LINENO: result: yes" >&5
35685 echo "${ECHO_T}yes" >&6; }
35686         else
35687           { echo "$as_me:$LINENO: result: no" >&5
35688 echo "${ECHO_T}no" >&6; }
35689         fi
35690       fi
35691
35692 elif test $pkg_failed = untried; then
35693
35694       if test "x$ac_find_libraries" = "x"; then
35695                 if test "xSmcOpenConnection" != "x"; then
35696           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35697 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35698 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35699   echo $ECHO_N "(cached) $ECHO_C" >&6
35700 else
35701   ac_check_lib_save_LIBS=$LIBS
35702 LIBS="-lSM  $LIBS"
35703 cat >conftest.$ac_ext <<_ACEOF
35704 /* confdefs.h.  */
35705 _ACEOF
35706 cat confdefs.h >>conftest.$ac_ext
35707 cat >>conftest.$ac_ext <<_ACEOF
35708 /* end confdefs.h.  */
35709
35710 /* Override any GCC internal prototype to avoid an error.
35711    Use char because int might match the return type of a GCC
35712    builtin and then its argument prototype would still apply.  */
35713 #ifdef __cplusplus
35714 extern "C"
35715 #endif
35716 char SmcOpenConnection ();
35717 int
35718 main ()
35719 {
35720 return SmcOpenConnection ();
35721   ;
35722   return 0;
35723 }
35724 _ACEOF
35725 rm -f conftest.$ac_objext conftest$ac_exeext
35726 if { (ac_try="$ac_link"
35727 case "(($ac_try" in
35728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729   *) ac_try_echo=$ac_try;;
35730 esac
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732   (eval "$ac_link") 2>conftest.er1
35733   ac_status=$?
35734   grep -v '^ *+' conftest.er1 >conftest.err
35735   rm -f conftest.er1
35736   cat conftest.err >&5
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); } && {
35739          test -z "$ac_c_werror_flag" ||
35740          test ! -s conftest.err
35741        } && test -s conftest$ac_exeext &&
35742        $as_test_x conftest$ac_exeext; then
35743   ac_cv_lib_SM_SmcOpenConnection=yes
35744 else
35745   echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35747
35748         ac_cv_lib_SM_SmcOpenConnection=no
35749 fi
35750
35751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35752       conftest$ac_exeext conftest.$ac_ext
35753 LIBS=$ac_check_lib_save_LIBS
35754 fi
35755 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35756 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35757 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35758   ac_find_libraries="std"
35759 fi
35760
35761         fi
35762       fi
35763
35764       if test "x$ac_find_libraries" = "x"; then
35765                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35766 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35767
35768   ac_find_libraries=
35769   for ac_dir in  $SEARCH_LIB
35770   do
35771     for ac_extension in a so sl dylib dll.a; do
35772       if test -f "$ac_dir/libSM.$ac_extension"; then
35773         ac_find_libraries=$ac_dir
35774         break 2
35775       fi
35776     done
35777   done
35778
35779         if test "x$ac_find_libraries" != "x"; then
35780           { echo "$as_me:$LINENO: result: yes" >&5
35781 echo "${ECHO_T}yes" >&6; }
35782         else
35783           { echo "$as_me:$LINENO: result: no" >&5
35784 echo "${ECHO_T}no" >&6; }
35785         fi
35786       fi
35787
35788 else
35789         SM_CFLAGS=$pkg_cv_SM_CFLAGS
35790         SM_LIBS=$pkg_cv_SM_LIBS
35791         { echo "$as_me:$LINENO: result: yes" >&5
35792 echo "${ECHO_T}yes" >&6; }
35793
35794             ac_find_libraries="std"
35795
35796                                                 eval ac_find_cflags=\$SM_CFLAGS
35797       eval fl_libs=\$SM_LIBS
35798
35799                   for fl_path in $fl_libs
35800       do
35801         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35802                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35803         fi
35804       done
35805
35806 fi
35807
35808         if test "$ac_find_libraries" != "" ; then
35809             if test "$ac_find_libraries" != "std" ; then
35810
35811     if test "$ac_find_libraries" = "default location"; then
35812     ac_path_to_link=""
35813   else
35814     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35815     result=$?
35816     if test $result = 0; then
35817       ac_path_to_link=""
35818     else
35819       ac_path_to_link=" -L$ac_find_libraries"
35820     fi
35821   fi
35822
35823               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35824                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35825               fi
35826             fi
35827             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35828         else
35829             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35830 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35831             wxUSE_DETECT_SM="no"
35832         fi
35833     else
35834         wxUSE_DETECT_SM="no"
35835     fi
35836 fi
35837
35838
35839
35840 USE_OPENGL=0
35841 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
35842
35843
35844     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35845         OPENGL_LIBS="-framework OpenGL -framework AGL"
35846     elif test "$wxUSE_MSW" = 1; then
35847         OPENGL_LIBS="-lopengl32 -lglu32"
35848     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
35849
35850                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35851 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35852
35853 ac_find_includes=
35854 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
35855   do
35856     if test -f "$ac_dir/GL/gl.h"; then
35857       ac_find_includes=$ac_dir
35858       break
35859     fi
35860   done
35861
35862         if test "$ac_find_includes" != "" ; then
35863             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35864 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35865
35866     if test "x$ac_find_includes" = "x/usr/include"; then
35867     ac_path_to_include=""
35868   else
35869     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35870     result=$?
35871     if test $result = 0; then
35872       ac_path_to_include=""
35873     else
35874       ac_path_to_include=" -I$ac_find_includes"
35875     fi
35876   fi
35877
35878             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35879         else
35880             { echo "$as_me:$LINENO: result: not found" >&5
35881 echo "${ECHO_T}not found" >&6; }
35882         fi
35883
35884         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35885 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35886 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35887   echo $ECHO_N "(cached) $ECHO_C" >&6
35888 else
35889   cat >conftest.$ac_ext <<_ACEOF
35890 /* confdefs.h.  */
35891 _ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h.  */
35895
35896
35897 #include <GL/gl.h>
35898 _ACEOF
35899 rm -f conftest.$ac_objext
35900 if { (ac_try="$ac_compile"
35901 case "(($ac_try" in
35902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35903   *) ac_try_echo=$ac_try;;
35904 esac
35905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35906   (eval "$ac_compile") 2>conftest.er1
35907   ac_status=$?
35908   grep -v '^ *+' conftest.er1 >conftest.err
35909   rm -f conftest.er1
35910   cat conftest.err >&5
35911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912   (exit $ac_status); } && {
35913          test -z "$ac_c_werror_flag" ||
35914          test ! -s conftest.err
35915        } && test -s conftest.$ac_objext; then
35916   ac_cv_header_GL_gl_h=yes
35917 else
35918   echo "$as_me: failed program was:" >&5
35919 sed 's/^/| /' conftest.$ac_ext >&5
35920
35921         ac_cv_header_GL_gl_h=no
35922 fi
35923
35924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35925 fi
35926 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35927 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35928 if test $ac_cv_header_GL_gl_h = yes; then
35929
35930             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35931 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35932 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35933   echo $ECHO_N "(cached) $ECHO_C" >&6
35934 else
35935   cat >conftest.$ac_ext <<_ACEOF
35936 /* confdefs.h.  */
35937 _ACEOF
35938 cat confdefs.h >>conftest.$ac_ext
35939 cat >>conftest.$ac_ext <<_ACEOF
35940 /* end confdefs.h.  */
35941
35942
35943 #include <GL/glu.h>
35944 _ACEOF
35945 rm -f conftest.$ac_objext
35946 if { (ac_try="$ac_compile"
35947 case "(($ac_try" in
35948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35949   *) ac_try_echo=$ac_try;;
35950 esac
35951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35952   (eval "$ac_compile") 2>conftest.er1
35953   ac_status=$?
35954   grep -v '^ *+' conftest.er1 >conftest.err
35955   rm -f conftest.er1
35956   cat conftest.err >&5
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); } && {
35959          test -z "$ac_c_werror_flag" ||
35960          test ! -s conftest.err
35961        } && test -s conftest.$ac_objext; then
35962   ac_cv_header_GL_glu_h=yes
35963 else
35964   echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35966
35967         ac_cv_header_GL_glu_h=no
35968 fi
35969
35970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35971 fi
35972 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35973 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35974 if test $ac_cv_header_GL_glu_h = yes; then
35975
35976                 found_gl=0
35977
35978
35979   ac_find_libraries=
35980
35981     fl_pkgname=`echo "GL" | tr [:upper:] [:lower:]`
35982
35983
35984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35985         if test -n "$ac_tool_prefix"; then
35986   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35991   echo $ECHO_N "(cached) $ECHO_C" >&6
35992 else
35993   case $PKG_CONFIG in
35994   [\\/]* | ?:[\\/]*)
35995   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35996   ;;
35997   *)
35998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35999 for as_dir in $PATH
36000 do
36001   IFS=$as_save_IFS
36002   test -z "$as_dir" && as_dir=.
36003   for ac_exec_ext in '' $ac_executable_extensions; do
36004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36005     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36007     break 2
36008   fi
36009 done
36010 done
36011 IFS=$as_save_IFS
36012
36013   ;;
36014 esac
36015 fi
36016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36017 if test -n "$PKG_CONFIG"; then
36018   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36019 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36020 else
36021   { echo "$as_me:$LINENO: result: no" >&5
36022 echo "${ECHO_T}no" >&6; }
36023 fi
36024
36025
36026 fi
36027 if test -z "$ac_cv_path_PKG_CONFIG"; then
36028   ac_pt_PKG_CONFIG=$PKG_CONFIG
36029   # Extract the first word of "pkg-config", so it can be a program name with args.
36030 set dummy pkg-config; ac_word=$2
36031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36033 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36034   echo $ECHO_N "(cached) $ECHO_C" >&6
36035 else
36036   case $ac_pt_PKG_CONFIG in
36037   [\\/]* | ?:[\\/]*)
36038   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36039   ;;
36040   *)
36041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36042 for as_dir in $PATH
36043 do
36044   IFS=$as_save_IFS
36045   test -z "$as_dir" && as_dir=.
36046   for ac_exec_ext in '' $ac_executable_extensions; do
36047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36048     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36050     break 2
36051   fi
36052 done
36053 done
36054 IFS=$as_save_IFS
36055
36056   ;;
36057 esac
36058 fi
36059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36060 if test -n "$ac_pt_PKG_CONFIG"; then
36061   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36062 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36063 else
36064   { echo "$as_me:$LINENO: result: no" >&5
36065 echo "${ECHO_T}no" >&6; }
36066 fi
36067
36068   if test "x$ac_pt_PKG_CONFIG" = x; then
36069     PKG_CONFIG=""
36070   else
36071     case $cross_compiling:$ac_tool_warned in
36072 yes:)
36073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36074 whose name does not start with the host triplet.  If you think this
36075 configuration is useful to you, please write to autoconf@gnu.org." >&5
36076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36077 whose name does not start with the host triplet.  If you think this
36078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36079 ac_tool_warned=yes ;;
36080 esac
36081     PKG_CONFIG=$ac_pt_PKG_CONFIG
36082   fi
36083 else
36084   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36085 fi
36086
36087 fi
36088 if test -n "$PKG_CONFIG"; then
36089         _pkg_min_version=0.9.0
36090         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36091 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36092         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36093                 { echo "$as_me:$LINENO: result: yes" >&5
36094 echo "${ECHO_T}yes" >&6; }
36095         else
36096                 { echo "$as_me:$LINENO: result: no" >&5
36097 echo "${ECHO_T}no" >&6; }
36098                 PKG_CONFIG=""
36099         fi
36100
36101 fi 6> /dev/null
36102
36103 pkg_failed=no
36104 { echo "$as_me:$LINENO: checking for GL" >&5
36105 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
36106
36107 if test -n "$PKG_CONFIG"; then
36108     if test -n "$GL_CFLAGS"; then
36109         pkg_cv_GL_CFLAGS="$GL_CFLAGS"
36110     else
36111         if test -n "$PKG_CONFIG" && \
36112     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36113   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36114   ac_status=$?
36115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116   (exit $ac_status); }; then
36117   pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36118 else
36119   pkg_failed=yes
36120 fi
36121     fi
36122 else
36123         pkg_failed=untried
36124 fi
36125 if test -n "$PKG_CONFIG"; then
36126     if test -n "$GL_LIBS"; then
36127         pkg_cv_GL_LIBS="$GL_LIBS"
36128     else
36129         if test -n "$PKG_CONFIG" && \
36130     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36131   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36132   ac_status=$?
36133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134   (exit $ac_status); }; then
36135   pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36136 else
36137   pkg_failed=yes
36138 fi
36139     fi
36140 else
36141         pkg_failed=untried
36142 fi
36143
36144
36145
36146 if test $pkg_failed = yes; then
36147
36148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36149         _pkg_short_errors_supported=yes
36150 else
36151         _pkg_short_errors_supported=no
36152 fi
36153         if test $_pkg_short_errors_supported = yes; then
36154                 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36155         else
36156                 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36157         fi
36158         # Put the nasty error message in config.log where it belongs
36159         echo "$GL_PKG_ERRORS" >&5
36160
36161
36162       if test "x$ac_find_libraries" = "x"; then
36163                 if test "xglBegin" != "x"; then
36164           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36165 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36166 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36167   echo $ECHO_N "(cached) $ECHO_C" >&6
36168 else
36169   ac_check_lib_save_LIBS=$LIBS
36170 LIBS="-lGL  $LIBS"
36171 cat >conftest.$ac_ext <<_ACEOF
36172 /* confdefs.h.  */
36173 _ACEOF
36174 cat confdefs.h >>conftest.$ac_ext
36175 cat >>conftest.$ac_ext <<_ACEOF
36176 /* end confdefs.h.  */
36177
36178 /* Override any GCC internal prototype to avoid an error.
36179    Use char because int might match the return type of a GCC
36180    builtin and then its argument prototype would still apply.  */
36181 #ifdef __cplusplus
36182 extern "C"
36183 #endif
36184 char glBegin ();
36185 int
36186 main ()
36187 {
36188 return glBegin ();
36189   ;
36190   return 0;
36191 }
36192 _ACEOF
36193 rm -f conftest.$ac_objext conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200   (eval "$ac_link") 2>conftest.er1
36201   ac_status=$?
36202   grep -v '^ *+' conftest.er1 >conftest.err
36203   rm -f conftest.er1
36204   cat conftest.err >&5
36205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206   (exit $ac_status); } && {
36207          test -z "$ac_c_werror_flag" ||
36208          test ! -s conftest.err
36209        } && test -s conftest$ac_exeext &&
36210        $as_test_x conftest$ac_exeext; then
36211   ac_cv_lib_GL_glBegin=yes
36212 else
36213   echo "$as_me: failed program was:" >&5
36214 sed 's/^/| /' conftest.$ac_ext >&5
36215
36216         ac_cv_lib_GL_glBegin=no
36217 fi
36218
36219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36220       conftest$ac_exeext conftest.$ac_ext
36221 LIBS=$ac_check_lib_save_LIBS
36222 fi
36223 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36224 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36225 if test $ac_cv_lib_GL_glBegin = yes; then
36226   ac_find_libraries="std"
36227 fi
36228
36229         fi
36230       fi
36231
36232       if test "x$ac_find_libraries" = "x"; then
36233                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36234 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36235
36236   ac_find_libraries=
36237   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36238   do
36239     for ac_extension in a so sl dylib dll.a; do
36240       if test -f "$ac_dir/libGL.$ac_extension"; then
36241         ac_find_libraries=$ac_dir
36242         break 2
36243       fi
36244     done
36245   done
36246
36247         if test "x$ac_find_libraries" != "x"; then
36248           { echo "$as_me:$LINENO: result: yes" >&5
36249 echo "${ECHO_T}yes" >&6; }
36250         else
36251           { echo "$as_me:$LINENO: result: no" >&5
36252 echo "${ECHO_T}no" >&6; }
36253         fi
36254       fi
36255
36256 elif test $pkg_failed = untried; then
36257
36258       if test "x$ac_find_libraries" = "x"; then
36259                 if test "xglBegin" != "x"; then
36260           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36261 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36262 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36263   echo $ECHO_N "(cached) $ECHO_C" >&6
36264 else
36265   ac_check_lib_save_LIBS=$LIBS
36266 LIBS="-lGL  $LIBS"
36267 cat >conftest.$ac_ext <<_ACEOF
36268 /* confdefs.h.  */
36269 _ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h.  */
36273
36274 /* Override any GCC internal prototype to avoid an error.
36275    Use char because int might match the return type of a GCC
36276    builtin and then its argument prototype would still apply.  */
36277 #ifdef __cplusplus
36278 extern "C"
36279 #endif
36280 char glBegin ();
36281 int
36282 main ()
36283 {
36284 return glBegin ();
36285   ;
36286   return 0;
36287 }
36288 _ACEOF
36289 rm -f conftest.$ac_objext conftest$ac_exeext
36290 if { (ac_try="$ac_link"
36291 case "(($ac_try" in
36292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36293   *) ac_try_echo=$ac_try;;
36294 esac
36295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36296   (eval "$ac_link") 2>conftest.er1
36297   ac_status=$?
36298   grep -v '^ *+' conftest.er1 >conftest.err
36299   rm -f conftest.er1
36300   cat conftest.err >&5
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); } && {
36303          test -z "$ac_c_werror_flag" ||
36304          test ! -s conftest.err
36305        } && test -s conftest$ac_exeext &&
36306        $as_test_x conftest$ac_exeext; then
36307   ac_cv_lib_GL_glBegin=yes
36308 else
36309   echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36311
36312         ac_cv_lib_GL_glBegin=no
36313 fi
36314
36315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36316       conftest$ac_exeext conftest.$ac_ext
36317 LIBS=$ac_check_lib_save_LIBS
36318 fi
36319 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36320 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36321 if test $ac_cv_lib_GL_glBegin = yes; then
36322   ac_find_libraries="std"
36323 fi
36324
36325         fi
36326       fi
36327
36328       if test "x$ac_find_libraries" = "x"; then
36329                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36330 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36331
36332   ac_find_libraries=
36333   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36334   do
36335     for ac_extension in a so sl dylib dll.a; do
36336       if test -f "$ac_dir/libGL.$ac_extension"; then
36337         ac_find_libraries=$ac_dir
36338         break 2
36339       fi
36340     done
36341   done
36342
36343         if test "x$ac_find_libraries" != "x"; then
36344           { echo "$as_me:$LINENO: result: yes" >&5
36345 echo "${ECHO_T}yes" >&6; }
36346         else
36347           { echo "$as_me:$LINENO: result: no" >&5
36348 echo "${ECHO_T}no" >&6; }
36349         fi
36350       fi
36351
36352 else
36353         GL_CFLAGS=$pkg_cv_GL_CFLAGS
36354         GL_LIBS=$pkg_cv_GL_LIBS
36355         { echo "$as_me:$LINENO: result: yes" >&5
36356 echo "${ECHO_T}yes" >&6; }
36357
36358             ac_find_libraries="std"
36359
36360                                                 eval ac_find_cflags=\$GL_CFLAGS
36361       eval fl_libs=\$GL_LIBS
36362
36363                   for fl_path in $fl_libs
36364       do
36365         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36366                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36367         fi
36368       done
36369
36370 fi
36371
36372                 if test "$ac_find_libraries" != "" ; then
36373                     if test "$ac_find_libraries" != "std" ; then
36374
36375     if test "$ac_find_libraries" = "default location"; then
36376     ac_path_to_link=""
36377   else
36378     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36379     result=$?
36380     if test $result = 0; then
36381       ac_path_to_link=""
36382     else
36383       ac_path_to_link=" -L$ac_find_libraries"
36384     fi
36385   fi
36386
36387                       if test "$ac_path_to_link" != " -L/usr/lib" ; then
36388                         LDFLAGS_GL="$ac_path_to_link"
36389                       fi
36390                     fi
36391
36392
36393   ac_find_libraries=
36394
36395     fl_pkgname=`echo "GLU" | tr [:upper:] [:lower:]`
36396
36397
36398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36399         if test -n "$ac_tool_prefix"; then
36400   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36405   echo $ECHO_N "(cached) $ECHO_C" >&6
36406 else
36407   case $PKG_CONFIG in
36408   [\\/]* | ?:[\\/]*)
36409   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36410   ;;
36411   *)
36412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36413 for as_dir in $PATH
36414 do
36415   IFS=$as_save_IFS
36416   test -z "$as_dir" && as_dir=.
36417   for ac_exec_ext in '' $ac_executable_extensions; do
36418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36419     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36421     break 2
36422   fi
36423 done
36424 done
36425 IFS=$as_save_IFS
36426
36427   ;;
36428 esac
36429 fi
36430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36431 if test -n "$PKG_CONFIG"; then
36432   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36433 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36434 else
36435   { echo "$as_me:$LINENO: result: no" >&5
36436 echo "${ECHO_T}no" >&6; }
36437 fi
36438
36439
36440 fi
36441 if test -z "$ac_cv_path_PKG_CONFIG"; then
36442   ac_pt_PKG_CONFIG=$PKG_CONFIG
36443   # Extract the first word of "pkg-config", so it can be a program name with args.
36444 set dummy pkg-config; ac_word=$2
36445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36447 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36448   echo $ECHO_N "(cached) $ECHO_C" >&6
36449 else
36450   case $ac_pt_PKG_CONFIG in
36451   [\\/]* | ?:[\\/]*)
36452   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36453   ;;
36454   *)
36455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36456 for as_dir in $PATH
36457 do
36458   IFS=$as_save_IFS
36459   test -z "$as_dir" && as_dir=.
36460   for ac_exec_ext in '' $ac_executable_extensions; do
36461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36462     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36464     break 2
36465   fi
36466 done
36467 done
36468 IFS=$as_save_IFS
36469
36470   ;;
36471 esac
36472 fi
36473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36474 if test -n "$ac_pt_PKG_CONFIG"; then
36475   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36476 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36477 else
36478   { echo "$as_me:$LINENO: result: no" >&5
36479 echo "${ECHO_T}no" >&6; }
36480 fi
36481
36482   if test "x$ac_pt_PKG_CONFIG" = x; then
36483     PKG_CONFIG=""
36484   else
36485     case $cross_compiling:$ac_tool_warned in
36486 yes:)
36487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36488 whose name does not start with the host triplet.  If you think this
36489 configuration is useful to you, please write to autoconf@gnu.org." >&5
36490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36491 whose name does not start with the host triplet.  If you think this
36492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36493 ac_tool_warned=yes ;;
36494 esac
36495     PKG_CONFIG=$ac_pt_PKG_CONFIG
36496   fi
36497 else
36498   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36499 fi
36500
36501 fi
36502 if test -n "$PKG_CONFIG"; then
36503         _pkg_min_version=0.9.0
36504         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36505 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36506         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36507                 { echo "$as_me:$LINENO: result: yes" >&5
36508 echo "${ECHO_T}yes" >&6; }
36509         else
36510                 { echo "$as_me:$LINENO: result: no" >&5
36511 echo "${ECHO_T}no" >&6; }
36512                 PKG_CONFIG=""
36513         fi
36514
36515 fi 6> /dev/null
36516
36517 pkg_failed=no
36518 { echo "$as_me:$LINENO: checking for GLU" >&5
36519 echo $ECHO_N "checking for GLU... $ECHO_C" >&6; }
36520
36521 if test -n "$PKG_CONFIG"; then
36522     if test -n "$GLU_CFLAGS"; then
36523         pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
36524     else
36525         if test -n "$PKG_CONFIG" && \
36526     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36527   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36528   ac_status=$?
36529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530   (exit $ac_status); }; then
36531   pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36532 else
36533   pkg_failed=yes
36534 fi
36535     fi
36536 else
36537         pkg_failed=untried
36538 fi
36539 if test -n "$PKG_CONFIG"; then
36540     if test -n "$GLU_LIBS"; then
36541         pkg_cv_GLU_LIBS="$GLU_LIBS"
36542     else
36543         if test -n "$PKG_CONFIG" && \
36544     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36545   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36546   ac_status=$?
36547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548   (exit $ac_status); }; then
36549   pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36550 else
36551   pkg_failed=yes
36552 fi
36553     fi
36554 else
36555         pkg_failed=untried
36556 fi
36557
36558
36559
36560 if test $pkg_failed = yes; then
36561
36562 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36563         _pkg_short_errors_supported=yes
36564 else
36565         _pkg_short_errors_supported=no
36566 fi
36567         if test $_pkg_short_errors_supported = yes; then
36568                 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36569         else
36570                 GLU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36571         fi
36572         # Put the nasty error message in config.log where it belongs
36573         echo "$GLU_PKG_ERRORS" >&5
36574
36575
36576       if test "x$ac_find_libraries" = "x"; then
36577                 if test "xgluBeginCurve" != "x"; then
36578           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36579 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36580 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36581   echo $ECHO_N "(cached) $ECHO_C" >&6
36582 else
36583   ac_check_lib_save_LIBS=$LIBS
36584 LIBS="-lGLU  $LIBS"
36585 cat >conftest.$ac_ext <<_ACEOF
36586 /* confdefs.h.  */
36587 _ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h.  */
36591
36592 /* Override any GCC internal prototype to avoid an error.
36593    Use char because int might match the return type of a GCC
36594    builtin and then its argument prototype would still apply.  */
36595 #ifdef __cplusplus
36596 extern "C"
36597 #endif
36598 char gluBeginCurve ();
36599 int
36600 main ()
36601 {
36602 return gluBeginCurve ();
36603   ;
36604   return 0;
36605 }
36606 _ACEOF
36607 rm -f conftest.$ac_objext conftest$ac_exeext
36608 if { (ac_try="$ac_link"
36609 case "(($ac_try" in
36610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36611   *) ac_try_echo=$ac_try;;
36612 esac
36613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36614   (eval "$ac_link") 2>conftest.er1
36615   ac_status=$?
36616   grep -v '^ *+' conftest.er1 >conftest.err
36617   rm -f conftest.er1
36618   cat conftest.err >&5
36619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620   (exit $ac_status); } && {
36621          test -z "$ac_c_werror_flag" ||
36622          test ! -s conftest.err
36623        } && test -s conftest$ac_exeext &&
36624        $as_test_x conftest$ac_exeext; then
36625   ac_cv_lib_GLU_gluBeginCurve=yes
36626 else
36627   echo "$as_me: failed program was:" >&5
36628 sed 's/^/| /' conftest.$ac_ext >&5
36629
36630         ac_cv_lib_GLU_gluBeginCurve=no
36631 fi
36632
36633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36634       conftest$ac_exeext conftest.$ac_ext
36635 LIBS=$ac_check_lib_save_LIBS
36636 fi
36637 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36638 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36639 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36640   ac_find_libraries="std"
36641 fi
36642
36643         fi
36644       fi
36645
36646       if test "x$ac_find_libraries" = "x"; then
36647                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36648 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36649
36650   ac_find_libraries=
36651   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36652   do
36653     for ac_extension in a so sl dylib dll.a; do
36654       if test -f "$ac_dir/libGLU.$ac_extension"; then
36655         ac_find_libraries=$ac_dir
36656         break 2
36657       fi
36658     done
36659   done
36660
36661         if test "x$ac_find_libraries" != "x"; then
36662           { echo "$as_me:$LINENO: result: yes" >&5
36663 echo "${ECHO_T}yes" >&6; }
36664         else
36665           { echo "$as_me:$LINENO: result: no" >&5
36666 echo "${ECHO_T}no" >&6; }
36667         fi
36668       fi
36669
36670 elif test $pkg_failed = untried; then
36671
36672       if test "x$ac_find_libraries" = "x"; then
36673                 if test "xgluBeginCurve" != "x"; then
36674           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36675 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36676 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36677   echo $ECHO_N "(cached) $ECHO_C" >&6
36678 else
36679   ac_check_lib_save_LIBS=$LIBS
36680 LIBS="-lGLU  $LIBS"
36681 cat >conftest.$ac_ext <<_ACEOF
36682 /* confdefs.h.  */
36683 _ACEOF
36684 cat confdefs.h >>conftest.$ac_ext
36685 cat >>conftest.$ac_ext <<_ACEOF
36686 /* end confdefs.h.  */
36687
36688 /* Override any GCC internal prototype to avoid an error.
36689    Use char because int might match the return type of a GCC
36690    builtin and then its argument prototype would still apply.  */
36691 #ifdef __cplusplus
36692 extern "C"
36693 #endif
36694 char gluBeginCurve ();
36695 int
36696 main ()
36697 {
36698 return gluBeginCurve ();
36699   ;
36700   return 0;
36701 }
36702 _ACEOF
36703 rm -f conftest.$ac_objext conftest$ac_exeext
36704 if { (ac_try="$ac_link"
36705 case "(($ac_try" in
36706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36707   *) ac_try_echo=$ac_try;;
36708 esac
36709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36710   (eval "$ac_link") 2>conftest.er1
36711   ac_status=$?
36712   grep -v '^ *+' conftest.er1 >conftest.err
36713   rm -f conftest.er1
36714   cat conftest.err >&5
36715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716   (exit $ac_status); } && {
36717          test -z "$ac_c_werror_flag" ||
36718          test ! -s conftest.err
36719        } && test -s conftest$ac_exeext &&
36720        $as_test_x conftest$ac_exeext; then
36721   ac_cv_lib_GLU_gluBeginCurve=yes
36722 else
36723   echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36725
36726         ac_cv_lib_GLU_gluBeginCurve=no
36727 fi
36728
36729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36730       conftest$ac_exeext conftest.$ac_ext
36731 LIBS=$ac_check_lib_save_LIBS
36732 fi
36733 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36734 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36735 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36736   ac_find_libraries="std"
36737 fi
36738
36739         fi
36740       fi
36741
36742       if test "x$ac_find_libraries" = "x"; then
36743                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36744 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36745
36746   ac_find_libraries=
36747   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36748   do
36749     for ac_extension in a so sl dylib dll.a; do
36750       if test -f "$ac_dir/libGLU.$ac_extension"; then
36751         ac_find_libraries=$ac_dir
36752         break 2
36753       fi
36754     done
36755   done
36756
36757         if test "x$ac_find_libraries" != "x"; then
36758           { echo "$as_me:$LINENO: result: yes" >&5
36759 echo "${ECHO_T}yes" >&6; }
36760         else
36761           { echo "$as_me:$LINENO: result: no" >&5
36762 echo "${ECHO_T}no" >&6; }
36763         fi
36764       fi
36765
36766 else
36767         GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
36768         GLU_LIBS=$pkg_cv_GLU_LIBS
36769         { echo "$as_me:$LINENO: result: yes" >&5
36770 echo "${ECHO_T}yes" >&6; }
36771
36772             ac_find_libraries="std"
36773
36774                                                 eval ac_find_cflags=\$GLU_CFLAGS
36775       eval fl_libs=\$GLU_LIBS
36776
36777                   for fl_path in $fl_libs
36778       do
36779         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36780                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36781         fi
36782       done
36783
36784 fi
36785
36786                     if test "$ac_find_libraries" != "" ; then
36787                       if test "$ac_find_libraries" != "std" ; then
36788
36789     if test "$ac_find_libraries" = "default location"; then
36790     ac_path_to_link=""
36791   else
36792     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36793     result=$?
36794     if test $result = 0; then
36795       ac_path_to_link=""
36796     else
36797       ac_path_to_link=" -L$ac_find_libraries"
36798     fi
36799   fi
36800
36801                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36802                                 "$ac_path_to_link" != "$LDFLAGS_GL" ; then
36803                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36804                         fi
36805                       fi
36806
36807                         found_gl=1
36808                         OPENGL_LIBS="-lGL -lGLU"
36809                     fi
36810                 fi
36811
36812                 if test "$found_gl" != 1; then
36813
36814   ac_find_libraries=
36815
36816     fl_pkgname=`echo "MesaGL" | tr [:upper:] [:lower:]`
36817
36818
36819 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36820         if test -n "$ac_tool_prefix"; then
36821   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36822 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36825 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36826   echo $ECHO_N "(cached) $ECHO_C" >&6
36827 else
36828   case $PKG_CONFIG in
36829   [\\/]* | ?:[\\/]*)
36830   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36831   ;;
36832   *)
36833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36834 for as_dir in $PATH
36835 do
36836   IFS=$as_save_IFS
36837   test -z "$as_dir" && as_dir=.
36838   for ac_exec_ext in '' $ac_executable_extensions; do
36839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36840     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36842     break 2
36843   fi
36844 done
36845 done
36846 IFS=$as_save_IFS
36847
36848   ;;
36849 esac
36850 fi
36851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36852 if test -n "$PKG_CONFIG"; then
36853   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36854 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36855 else
36856   { echo "$as_me:$LINENO: result: no" >&5
36857 echo "${ECHO_T}no" >&6; }
36858 fi
36859
36860
36861 fi
36862 if test -z "$ac_cv_path_PKG_CONFIG"; then
36863   ac_pt_PKG_CONFIG=$PKG_CONFIG
36864   # Extract the first word of "pkg-config", so it can be a program name with args.
36865 set dummy pkg-config; ac_word=$2
36866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36868 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36869   echo $ECHO_N "(cached) $ECHO_C" >&6
36870 else
36871   case $ac_pt_PKG_CONFIG in
36872   [\\/]* | ?:[\\/]*)
36873   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36874   ;;
36875   *)
36876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36877 for as_dir in $PATH
36878 do
36879   IFS=$as_save_IFS
36880   test -z "$as_dir" && as_dir=.
36881   for ac_exec_ext in '' $ac_executable_extensions; do
36882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36883     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36885     break 2
36886   fi
36887 done
36888 done
36889 IFS=$as_save_IFS
36890
36891   ;;
36892 esac
36893 fi
36894 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36895 if test -n "$ac_pt_PKG_CONFIG"; then
36896   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36897 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36898 else
36899   { echo "$as_me:$LINENO: result: no" >&5
36900 echo "${ECHO_T}no" >&6; }
36901 fi
36902
36903   if test "x$ac_pt_PKG_CONFIG" = x; then
36904     PKG_CONFIG=""
36905   else
36906     case $cross_compiling:$ac_tool_warned in
36907 yes:)
36908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36909 whose name does not start with the host triplet.  If you think this
36910 configuration is useful to you, please write to autoconf@gnu.org." >&5
36911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36912 whose name does not start with the host triplet.  If you think this
36913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36914 ac_tool_warned=yes ;;
36915 esac
36916     PKG_CONFIG=$ac_pt_PKG_CONFIG
36917   fi
36918 else
36919   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36920 fi
36921
36922 fi
36923 if test -n "$PKG_CONFIG"; then
36924         _pkg_min_version=0.9.0
36925         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36926 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36927         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36928                 { echo "$as_me:$LINENO: result: yes" >&5
36929 echo "${ECHO_T}yes" >&6; }
36930         else
36931                 { echo "$as_me:$LINENO: result: no" >&5
36932 echo "${ECHO_T}no" >&6; }
36933                 PKG_CONFIG=""
36934         fi
36935
36936 fi 6> /dev/null
36937
36938 pkg_failed=no
36939 { echo "$as_me:$LINENO: checking for MesaGL" >&5
36940 echo $ECHO_N "checking for MesaGL... $ECHO_C" >&6; }
36941
36942 if test -n "$PKG_CONFIG"; then
36943     if test -n "$MesaGL_CFLAGS"; then
36944         pkg_cv_MesaGL_CFLAGS="$MesaGL_CFLAGS"
36945     else
36946         if test -n "$PKG_CONFIG" && \
36947     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36948   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36949   ac_status=$?
36950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951   (exit $ac_status); }; then
36952   pkg_cv_MesaGL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36953 else
36954   pkg_failed=yes
36955 fi
36956     fi
36957 else
36958         pkg_failed=untried
36959 fi
36960 if test -n "$PKG_CONFIG"; then
36961     if test -n "$MesaGL_LIBS"; then
36962         pkg_cv_MesaGL_LIBS="$MesaGL_LIBS"
36963     else
36964         if test -n "$PKG_CONFIG" && \
36965     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36966   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36967   ac_status=$?
36968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969   (exit $ac_status); }; then
36970   pkg_cv_MesaGL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36971 else
36972   pkg_failed=yes
36973 fi
36974     fi
36975 else
36976         pkg_failed=untried
36977 fi
36978
36979
36980
36981 if test $pkg_failed = yes; then
36982
36983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36984         _pkg_short_errors_supported=yes
36985 else
36986         _pkg_short_errors_supported=no
36987 fi
36988         if test $_pkg_short_errors_supported = yes; then
36989                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36990         else
36991                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36992         fi
36993         # Put the nasty error message in config.log where it belongs
36994         echo "$MesaGL_PKG_ERRORS" >&5
36995
36996
36997       if test "x$ac_find_libraries" = "x"; then
36998                 if test "xglEnable" != "x"; then
36999           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37000 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37001 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37002   echo $ECHO_N "(cached) $ECHO_C" >&6
37003 else
37004   ac_check_lib_save_LIBS=$LIBS
37005 LIBS="-lMesaGL  $LIBS"
37006 cat >conftest.$ac_ext <<_ACEOF
37007 /* confdefs.h.  */
37008 _ACEOF
37009 cat confdefs.h >>conftest.$ac_ext
37010 cat >>conftest.$ac_ext <<_ACEOF
37011 /* end confdefs.h.  */
37012
37013 /* Override any GCC internal prototype to avoid an error.
37014    Use char because int might match the return type of a GCC
37015    builtin and then its argument prototype would still apply.  */
37016 #ifdef __cplusplus
37017 extern "C"
37018 #endif
37019 char glEnable ();
37020 int
37021 main ()
37022 {
37023 return glEnable ();
37024   ;
37025   return 0;
37026 }
37027 _ACEOF
37028 rm -f conftest.$ac_objext conftest$ac_exeext
37029 if { (ac_try="$ac_link"
37030 case "(($ac_try" in
37031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37032   *) ac_try_echo=$ac_try;;
37033 esac
37034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37035   (eval "$ac_link") 2>conftest.er1
37036   ac_status=$?
37037   grep -v '^ *+' conftest.er1 >conftest.err
37038   rm -f conftest.er1
37039   cat conftest.err >&5
37040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041   (exit $ac_status); } && {
37042          test -z "$ac_c_werror_flag" ||
37043          test ! -s conftest.err
37044        } && test -s conftest$ac_exeext &&
37045        $as_test_x conftest$ac_exeext; then
37046   ac_cv_lib_MesaGL_glEnable=yes
37047 else
37048   echo "$as_me: failed program was:" >&5
37049 sed 's/^/| /' conftest.$ac_ext >&5
37050
37051         ac_cv_lib_MesaGL_glEnable=no
37052 fi
37053
37054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37055       conftest$ac_exeext conftest.$ac_ext
37056 LIBS=$ac_check_lib_save_LIBS
37057 fi
37058 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37059 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37060 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37061   ac_find_libraries="std"
37062 fi
37063
37064         fi
37065       fi
37066
37067       if test "x$ac_find_libraries" = "x"; then
37068                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37069 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37070
37071   ac_find_libraries=
37072   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37073   do
37074     for ac_extension in a so sl dylib dll.a; do
37075       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37076         ac_find_libraries=$ac_dir
37077         break 2
37078       fi
37079     done
37080   done
37081
37082         if test "x$ac_find_libraries" != "x"; then
37083           { echo "$as_me:$LINENO: result: yes" >&5
37084 echo "${ECHO_T}yes" >&6; }
37085         else
37086           { echo "$as_me:$LINENO: result: no" >&5
37087 echo "${ECHO_T}no" >&6; }
37088         fi
37089       fi
37090
37091 elif test $pkg_failed = untried; then
37092
37093       if test "x$ac_find_libraries" = "x"; then
37094                 if test "xglEnable" != "x"; then
37095           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37096 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37097 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37098   echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100   ac_check_lib_save_LIBS=$LIBS
37101 LIBS="-lMesaGL  $LIBS"
37102 cat >conftest.$ac_ext <<_ACEOF
37103 /* confdefs.h.  */
37104 _ACEOF
37105 cat confdefs.h >>conftest.$ac_ext
37106 cat >>conftest.$ac_ext <<_ACEOF
37107 /* end confdefs.h.  */
37108
37109 /* Override any GCC internal prototype to avoid an error.
37110    Use char because int might match the return type of a GCC
37111    builtin and then its argument prototype would still apply.  */
37112 #ifdef __cplusplus
37113 extern "C"
37114 #endif
37115 char glEnable ();
37116 int
37117 main ()
37118 {
37119 return glEnable ();
37120   ;
37121   return 0;
37122 }
37123 _ACEOF
37124 rm -f conftest.$ac_objext conftest$ac_exeext
37125 if { (ac_try="$ac_link"
37126 case "(($ac_try" in
37127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37128   *) ac_try_echo=$ac_try;;
37129 esac
37130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37131   (eval "$ac_link") 2>conftest.er1
37132   ac_status=$?
37133   grep -v '^ *+' conftest.er1 >conftest.err
37134   rm -f conftest.er1
37135   cat conftest.err >&5
37136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137   (exit $ac_status); } && {
37138          test -z "$ac_c_werror_flag" ||
37139          test ! -s conftest.err
37140        } && test -s conftest$ac_exeext &&
37141        $as_test_x conftest$ac_exeext; then
37142   ac_cv_lib_MesaGL_glEnable=yes
37143 else
37144   echo "$as_me: failed program was:" >&5
37145 sed 's/^/| /' conftest.$ac_ext >&5
37146
37147         ac_cv_lib_MesaGL_glEnable=no
37148 fi
37149
37150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37151       conftest$ac_exeext conftest.$ac_ext
37152 LIBS=$ac_check_lib_save_LIBS
37153 fi
37154 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37155 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37156 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37157   ac_find_libraries="std"
37158 fi
37159
37160         fi
37161       fi
37162
37163       if test "x$ac_find_libraries" = "x"; then
37164                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37165 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37166
37167   ac_find_libraries=
37168   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37169   do
37170     for ac_extension in a so sl dylib dll.a; do
37171       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37172         ac_find_libraries=$ac_dir
37173         break 2
37174       fi
37175     done
37176   done
37177
37178         if test "x$ac_find_libraries" != "x"; then
37179           { echo "$as_me:$LINENO: result: yes" >&5
37180 echo "${ECHO_T}yes" >&6; }
37181         else
37182           { echo "$as_me:$LINENO: result: no" >&5
37183 echo "${ECHO_T}no" >&6; }
37184         fi
37185       fi
37186
37187 else
37188         MesaGL_CFLAGS=$pkg_cv_MesaGL_CFLAGS
37189         MesaGL_LIBS=$pkg_cv_MesaGL_LIBS
37190         { echo "$as_me:$LINENO: result: yes" >&5
37191 echo "${ECHO_T}yes" >&6; }
37192
37193             ac_find_libraries="std"
37194
37195                                                 eval ac_find_cflags=\$MesaGL_CFLAGS
37196       eval fl_libs=\$MesaGL_LIBS
37197
37198                   for fl_path in $fl_libs
37199       do
37200         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
37201                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
37202         fi
37203       done
37204
37205 fi
37206
37207                     if test "$ac_find_libraries" != "" ; then
37208                       if test "$ac_find_libraries" != "std" ; then
37209
37210     if test "$ac_find_libraries" = "default location"; then
37211     ac_path_to_link=""
37212   else
37213     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37214     result=$?
37215     if test $result = 0; then
37216       ac_path_to_link=""
37217     else
37218       ac_path_to_link=" -L$ac_find_libraries"
37219     fi
37220   fi
37221
37222                         if test "$ac_path_to_link" != " -L/usr/lib" ; then
37223                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
37224                         fi
37225                       fi
37226                       OPENGL_LIBS="-lMesaGL -lMesaGLU"
37227                     fi
37228                 fi
37229
37230 fi
37231
37232
37233
37234 fi
37235
37236
37237
37238         if test "x$OPENGL_LIBS" = "x"; then
37239             if test "$wxUSE_OPENGL" = "yes"; then
37240                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
37241 echo "$as_me: error: OpenGL libraries not available" >&2;}
37242    { (exit 1); exit 1; }; }
37243             else
37244                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
37245 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
37246                 wxUSE_OPENGL=no
37247                 USE_OPENGL=0
37248             fi
37249         fi
37250     else
37251         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37252 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37253         wxUSE_OPENGL="no"
37254     fi
37255
37256     if test "$wxUSE_OPENGL" = "auto"; then
37257                                 wxUSE_OPENGL=yes
37258     fi
37259
37260     if test "$wxUSE_OPENGL" = "yes"; then
37261         USE_OPENGL=1
37262         cat >>confdefs.h <<\_ACEOF
37263 #define wxUSE_OPENGL 1
37264 _ACEOF
37265
37266         cat >>confdefs.h <<\_ACEOF
37267 #define wxUSE_GLCANVAS 1
37268 _ACEOF
37269
37270         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
37271     fi
37272 fi
37273
37274
37275 if test -n "$TOOLKIT" ; then
37276     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
37277 fi
37278
37279
37280
37281 if test "$wxUSE_SHARED" = "yes"; then
37282     case "${host}" in
37283       *-pc-msdosdjgpp )
37284                 wxUSE_SHARED=no
37285         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
37286 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
37287       ;;
37288     esac
37289 fi
37290
37291 if test "$wxUSE_SHARED" = "yes"; then
37292
37293
37294     case "${host}" in
37295         *-*-cygwin* | *-*-mingw* )
37296                                                                                                 wx_cv_version_script=no
37297             ;;
37298
37299         *)
37300             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
37301 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
37302 if test "${wx_cv_version_script+set}" = set; then
37303   echo $ECHO_N "(cached) $ECHO_C" >&6
37304 else
37305
37306                 echo "VER_1 { *; };" >conftest.sym
37307                 echo "int main() { return 0; }" >conftest.cpp
37308
37309                 if { ac_try='
37310                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37311                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
37312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313   (eval $ac_try) 2>&5
37314   ac_status=$?
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); }; } ; then
37317                   if test -s conftest.stderr ; then
37318                       wx_cv_version_script=no
37319                   else
37320                       wx_cv_version_script=yes
37321                   fi
37322                 else
37323                   wx_cv_version_script=no
37324                 fi
37325
37326                                                                                                                                                                                                 if test $wx_cv_version_script = yes
37327                 then
37328                   echo "struct B { virtual ~B() { } }; \
37329                         struct D : public B { }; \
37330                         void F() { D d; }" > conftest.cpp
37331
37332                   if { ac_try='
37333                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37334                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
37335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336   (eval $ac_try) 2>&5
37337   ac_status=$?
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); }; } &&
37340                      { ac_try='
37341                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37342                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
37343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344   (eval $ac_try) 2>&5
37345   ac_status=$?
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); }; }
37348                   then
37349                     if { ac_try='
37350                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37351                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
37352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353   (eval $ac_try) 2>&5
37354   ac_status=$?
37355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356   (exit $ac_status); }; }
37357                     then
37358                       wx_cv_version_script=yes
37359                     else
37360                       wx_cv_version_script=no
37361                     fi
37362                   fi
37363                 fi
37364
37365                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
37366                 rm -f conftest1.output conftest2.output conftest3.output
37367
37368 fi
37369 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
37370 echo "${ECHO_T}$wx_cv_version_script" >&6; }
37371
37372             if test $wx_cv_version_script = yes ; then
37373                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
37374             fi
37375             ;;
37376     esac
37377
37378
37379             if test "$wxUSE_VISIBILITY" != "no"; then
37380
37381
37382   if test -n "$GCC"; then
37383     CFLAGS_VISIBILITY="-fvisibility=hidden"
37384     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
37385     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
37386 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
37387     if test "${wx_cv_cc_visibility+set}" = set; then
37388   echo $ECHO_N "(cached) $ECHO_C" >&6
37389 else
37390
37391       wx_save_CXXFLAGS="$CXXFLAGS"
37392       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37393       ac_ext=cpp
37394 ac_cpp='$CXXCPP $CPPFLAGS'
37395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37398
37399       cat >conftest.$ac_ext <<_ACEOF
37400 /* confdefs.h.  */
37401 _ACEOF
37402 cat confdefs.h >>conftest.$ac_ext
37403 cat >>conftest.$ac_ext <<_ACEOF
37404 /* end confdefs.h.  */
37405
37406          /* we need gcc >= 4.0, older versions with visibility support
37407             didn't have class visibility: */
37408          #if defined(__GNUC__) && __GNUC__ < 4
37409          error this gcc is too old;
37410          #endif
37411
37412          /* visibility only makes sense for ELF shared libs: */
37413          #if !defined(__ELF__) && !defined(__APPLE__)
37414          error this platform has no visibility;
37415          #endif
37416
37417          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
37418          #if defined(__clang__)
37419          clang compiler is still broken w.r.t. visibility;
37420          #endif
37421
37422          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
37423          extern __attribute__((__visibility__("default"))) int exportedvar;
37424          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
37425          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
37426          class __attribute__((__visibility__("default"))) Foo {
37427            Foo() {}
37428          };
37429
37430 int
37431 main ()
37432 {
37433
37434   ;
37435   return 0;
37436 }
37437 _ACEOF
37438 rm -f conftest.$ac_objext
37439 if { (ac_try="$ac_compile"
37440 case "(($ac_try" in
37441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37442   *) ac_try_echo=$ac_try;;
37443 esac
37444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37445   (eval "$ac_compile") 2>conftest.er1
37446   ac_status=$?
37447   grep -v '^ *+' conftest.er1 >conftest.err
37448   rm -f conftest.er1
37449   cat conftest.err >&5
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); } && {
37452          test -z "$ac_cxx_werror_flag" ||
37453          test ! -s conftest.err
37454        } && test -s conftest.$ac_objext; then
37455   wx_cv_cc_visibility=yes
37456 else
37457   echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37459
37460         wx_cv_cc_visibility=no
37461 fi
37462
37463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37464       ac_ext=c
37465 ac_cpp='$CPP $CPPFLAGS'
37466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37469
37470       CXXFLAGS="$wx_save_CXXFLAGS"
37471 fi
37472
37473     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
37474 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
37475     if test $wx_cv_cc_visibility = yes; then
37476                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
37477 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
37478       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
37479   echo $ECHO_N "(cached) $ECHO_C" >&6
37480 else
37481
37482         wx_save_CXXFLAGS="$CXXFLAGS"
37483         wx_save_LDFLAGS="$LDFLAGS"
37484         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37485         LDFLAGS="$LDFLAGS -shared -fPIC"
37486         ac_ext=cpp
37487 ac_cpp='$CXXCPP $CPPFLAGS'
37488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37491
37492         cat >conftest.$ac_ext <<_ACEOF
37493 /* confdefs.h.  */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h.  */
37498
37499             #include <string>
37500
37501 int
37502 main ()
37503 {
37504
37505             std::string s("hello");
37506             return s.length();
37507
37508   ;
37509   return 0;
37510 }
37511 _ACEOF
37512 rm -f conftest.$ac_objext conftest$ac_exeext
37513 if { (ac_try="$ac_link"
37514 case "(($ac_try" in
37515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37516   *) ac_try_echo=$ac_try;;
37517 esac
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519   (eval "$ac_link") 2>conftest.er1
37520   ac_status=$?
37521   grep -v '^ *+' conftest.er1 >conftest.err
37522   rm -f conftest.er1
37523   cat conftest.err >&5
37524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525   (exit $ac_status); } && {
37526          test -z "$ac_cxx_werror_flag" ||
37527          test ! -s conftest.err
37528        } && test -s conftest$ac_exeext &&
37529        $as_test_x conftest$ac_exeext; then
37530   wx_cv_cc_broken_libstdcxx_visibility=no
37531 else
37532   echo "$as_me: failed program was:" >&5
37533 sed 's/^/| /' conftest.$ac_ext >&5
37534
37535         wx_cv_cc_broken_libstdcxx_visibility=yes
37536 fi
37537
37538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37539       conftest$ac_exeext conftest.$ac_ext
37540         ac_ext=c
37541 ac_cpp='$CPP $CPPFLAGS'
37542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37545
37546         CXXFLAGS="$wx_save_CXXFLAGS"
37547         LDFLAGS="$wx_save_LDFLAGS"
37548 fi
37549
37550       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
37551 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
37552
37553       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37554         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
37555 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
37556         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
37557   echo $ECHO_N "(cached) $ECHO_C" >&6
37558 else
37559
37560           ac_ext=cpp
37561 ac_cpp='$CXXCPP $CPPFLAGS'
37562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37565
37566           cat >conftest.$ac_ext <<_ACEOF
37567 /* confdefs.h.  */
37568 _ACEOF
37569 cat confdefs.h >>conftest.$ac_ext
37570 cat >>conftest.$ac_ext <<_ACEOF
37571 /* end confdefs.h.  */
37572
37573               #pragma GCC visibility push(default)
37574               #include <string>
37575               #pragma GCC visibility pop
37576
37577 int
37578 main ()
37579 {
37580
37581               std::string s("hello");
37582               return s.length();
37583
37584   ;
37585   return 0;
37586 }
37587 _ACEOF
37588 rm -f conftest.$ac_objext conftest$ac_exeext
37589 if { (ac_try="$ac_link"
37590 case "(($ac_try" in
37591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37592   *) ac_try_echo=$ac_try;;
37593 esac
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595   (eval "$ac_link") 2>conftest.er1
37596   ac_status=$?
37597   grep -v '^ *+' conftest.er1 >conftest.err
37598   rm -f conftest.er1
37599   cat conftest.err >&5
37600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601   (exit $ac_status); } && {
37602          test -z "$ac_cxx_werror_flag" ||
37603          test ! -s conftest.err
37604        } && test -s conftest$ac_exeext &&
37605        $as_test_x conftest$ac_exeext; then
37606   wx_cv_cc_visibility_workaround=no
37607 else
37608   echo "$as_me: failed program was:" >&5
37609 sed 's/^/| /' conftest.$ac_ext >&5
37610
37611         wx_cv_cc_visibility_workaround=yes
37612 fi
37613
37614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37615       conftest$ac_exeext conftest.$ac_ext
37616           ac_ext=c
37617 ac_cpp='$CPP $CPPFLAGS'
37618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37621
37622
37623 fi
37624
37625         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
37626 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
37627
37628         if test $wx_cv_cc_visibility_workaround = no; then
37629                     wx_cv_cc_visibility=no
37630         fi
37631       fi
37632     fi
37633
37634     if test $wx_cv_cc_visibility = yes; then
37635       cat >>confdefs.h <<\_ACEOF
37636 #define HAVE_VISIBILITY 1
37637 _ACEOF
37638
37639       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37640         cat >>confdefs.h <<\_ACEOF
37641 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
37642 _ACEOF
37643
37644       fi
37645     else
37646       CFLAGS_VISIBILITY=""
37647       CXXFLAGS_VISIBILITY=""
37648     fi
37649
37650
37651   fi
37652
37653     fi
37654
37655         if test "x$SUNCXX" = xyes; then
37656         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
37657         WXCONFIG_RPATH="-R\$libdir"
37658     else
37659     case "${host}" in
37660       *-*-linux* | *-*-gnu* )
37661         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37662         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37663         ;;
37664
37665       *-*-solaris2* )
37666
37667                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
37668
37669                         saveLdflags="$LDFLAGS"
37670         LDFLAGS="$saveLdflags -Wl,-rpath,/"
37671         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
37672 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
37673         cat >conftest.$ac_ext <<_ACEOF
37674 /* confdefs.h.  */
37675 _ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h.  */
37679
37680 int
37681 main ()
37682 {
37683
37684   ;
37685   return 0;
37686 }
37687 _ACEOF
37688 rm -f conftest.$ac_objext conftest$ac_exeext
37689 if { (ac_try="$ac_link"
37690 case "(($ac_try" in
37691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37692   *) ac_try_echo=$ac_try;;
37693 esac
37694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37695   (eval "$ac_link") 2>conftest.er1
37696   ac_status=$?
37697   grep -v '^ *+' conftest.er1 >conftest.err
37698   rm -f conftest.er1
37699   cat conftest.err >&5
37700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701   (exit $ac_status); } && {
37702          test -z "$ac_c_werror_flag" ||
37703          test ! -s conftest.err
37704        } && test -s conftest$ac_exeext &&
37705        $as_test_x conftest$ac_exeext; then
37706
37707                 { echo "$as_me:$LINENO: result: yes" >&5
37708 echo "${ECHO_T}yes" >&6; }
37709                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37710                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37711
37712 else
37713   echo "$as_me: failed program was:" >&5
37714 sed 's/^/| /' conftest.$ac_ext >&5
37715
37716
37717                 { echo "$as_me:$LINENO: result: no" >&5
37718 echo "${ECHO_T}no" >&6; }
37719                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
37720 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
37721                 LDFLAGS="$saveLdflags -Wl,-R,/"
37722                 cat >conftest.$ac_ext <<_ACEOF
37723 /* confdefs.h.  */
37724 _ACEOF
37725 cat confdefs.h >>conftest.$ac_ext
37726 cat >>conftest.$ac_ext <<_ACEOF
37727 /* end confdefs.h.  */
37728
37729 int
37730 main ()
37731 {
37732
37733   ;
37734   return 0;
37735 }
37736 _ACEOF
37737 rm -f conftest.$ac_objext conftest$ac_exeext
37738 if { (ac_try="$ac_link"
37739 case "(($ac_try" in
37740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37741   *) ac_try_echo=$ac_try;;
37742 esac
37743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37744   (eval "$ac_link") 2>conftest.er1
37745   ac_status=$?
37746   grep -v '^ *+' conftest.er1 >conftest.err
37747   rm -f conftest.er1
37748   cat conftest.err >&5
37749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750   (exit $ac_status); } && {
37751          test -z "$ac_c_werror_flag" ||
37752          test ! -s conftest.err
37753        } && test -s conftest$ac_exeext &&
37754        $as_test_x conftest$ac_exeext; then
37755
37756                         { echo "$as_me:$LINENO: result: yes" >&5
37757 echo "${ECHO_T}yes" >&6; }
37758                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
37759                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
37760
37761 else
37762   echo "$as_me: failed program was:" >&5
37763 sed 's/^/| /' conftest.$ac_ext >&5
37764
37765
37766                         { echo "$as_me:$LINENO: result: no" >&5
37767 echo "${ECHO_T}no" >&6; }
37768
37769 fi
37770
37771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37772       conftest$ac_exeext conftest.$ac_ext
37773
37774 fi
37775
37776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37777       conftest$ac_exeext conftest.$ac_ext
37778         LDFLAGS="$saveLdflags"
37779       ;;
37780
37781       *-*-darwin* )
37782         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
37783         if test "$install_name_tool" -a -x "$install_name_tool"; then
37784             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
37785             cat <<EOF >change-install-names
37786 #!/bin/sh
37787 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
37788 for i in \${libnames} ; do
37789     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
37790     for dep in \${libnames} ; do
37791         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
37792     done
37793 done
37794 EOF
37795             chmod +x change-install-names
37796             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
37797         fi
37798
37799                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
37800       ;;
37801
37802       *-*-cygwin* | *-*-mingw32* )
37803         ;;
37804
37805       *-*-hpux* )
37806         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
37807         WXCONFIG_RPATH="-Wl,+b,\$libdir"
37808         ;;
37809
37810     esac
37811     fi
37812
37813             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
37814
37815     if test $wxUSE_RPATH = "no"; then
37816         SAMPLES_RPATH_FLAG=''
37817         DYLIB_PATH_POSTLINK=''
37818         WXCONFIG_RPATH=''
37819     fi
37820
37821     SHARED=1
37822
37823 else
37824
37825     config_linkage_component="-static"
37826     SHARED=0
37827
37828 fi
37829
37830
37831 UNICODE=0
37832 lib_unicode_suffix=
37833 WX_CHARTYPE="ansi"
37834 if test "$wxUSE_UNICODE" = "yes"; then
37835     lib_unicode_suffix=u
37836     WX_CHARTYPE="unicode"
37837     UNICODE=1
37838 fi
37839
37840 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
37841 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
37842
37843 DEBUG_INFO=0
37844 if test "$wxUSE_DEBUG_INFO" = "yes"; then
37845     DEBUG_INFO=1
37846 fi
37847
37848 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
37849
37850 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
37851
37852 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
37853
37854
37855 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
37856     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37857 else
37858     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37859 fi
37860 if test "${TOOLKIT_DIR}" = "os2"; then
37861     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37862 else
37863     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37864 fi
37865
37866
37867
37868 if test "$wxUSE_OLD_COCOA" = 1; then
37869
37870     ac_ext=c
37871 ac_cpp='$CPP $CPPFLAGS'
37872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37875
37876 ac_ext=m
37877
37878     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
37879 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
37880     cat >conftest.$ac_ext <<_ACEOF
37881 /* confdefs.h.  */
37882 _ACEOF
37883 cat confdefs.h >>conftest.$ac_ext
37884 cat >>conftest.$ac_ext <<_ACEOF
37885 /* end confdefs.h.  */
37886 #include <AppKit/NSEvent.h>
37887 #include <CoreFoundation/CoreFoundation.h>
37888
37889 int
37890 main ()
37891 {
37892
37893   ;
37894   return 0;
37895 }
37896 _ACEOF
37897 rm -f conftest.$ac_objext
37898 if { (ac_try="$ac_compile"
37899 case "(($ac_try" in
37900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901   *) ac_try_echo=$ac_try;;
37902 esac
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904   (eval "$ac_compile") 2>conftest.er1
37905   ac_status=$?
37906   grep -v '^ *+' conftest.er1 >conftest.err
37907   rm -f conftest.er1
37908   cat conftest.err >&5
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); } && {
37911          test -z "$ac_c_werror_flag" ||
37912          test ! -s conftest.err
37913        } && test -s conftest.$ac_objext; then
37914   { echo "$as_me:$LINENO: result: no" >&5
37915 echo "${ECHO_T}no" >&6; }
37916 else
37917   echo "$as_me: failed program was:" >&5
37918 sed 's/^/| /' conftest.$ac_ext >&5
37919
37920         { echo "$as_me:$LINENO: result: yes" >&5
37921 echo "${ECHO_T}yes" >&6; }
37922         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
37923 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
37924         cat >conftest.$ac_ext <<_ACEOF
37925 /* confdefs.h.  */
37926 _ACEOF
37927 cat confdefs.h >>conftest.$ac_ext
37928 cat >>conftest.$ac_ext <<_ACEOF
37929 /* end confdefs.h.  */
37930 #define __Point__ 1
37931 #include <AppKit/NSEvent.h>
37932 #include <CoreFoundation/CoreFoundation.h>
37933
37934 int
37935 main ()
37936 {
37937
37938   ;
37939   return 0;
37940 }
37941 _ACEOF
37942 rm -f conftest.$ac_objext
37943 if { (ac_try="$ac_compile"
37944 case "(($ac_try" in
37945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37946   *) ac_try_echo=$ac_try;;
37947 esac
37948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37949   (eval "$ac_compile") 2>conftest.er1
37950   ac_status=$?
37951   grep -v '^ *+' conftest.er1 >conftest.err
37952   rm -f conftest.er1
37953   cat conftest.err >&5
37954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955   (exit $ac_status); } && {
37956          test -z "$ac_c_werror_flag" ||
37957          test ! -s conftest.err
37958        } && test -s conftest.$ac_objext; then
37959   { echo "$as_me:$LINENO: result: yes" >&5
37960 echo "${ECHO_T}yes" >&6; }
37961             cat >>confdefs.h <<\_ACEOF
37962 #define __Point__ 1
37963 _ACEOF
37964
37965
37966 else
37967   echo "$as_me: failed program was:" >&5
37968 sed 's/^/| /' conftest.$ac_ext >&5
37969
37970         { { echo "$as_me:$LINENO: error: no
37971 See \`config.log' for more details." >&5
37972 echo "$as_me: error: no
37973 See \`config.log' for more details." >&2;}
37974    { (exit 1); exit 1; }; }
37975
37976 fi
37977
37978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37979
37980 fi
37981
37982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37983     ac_ext=c
37984 ac_cpp='$CPP $CPPFLAGS'
37985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37988
37989 fi
37990
37991
37992 { echo "$as_me:$LINENO: checking for mode_t" >&5
37993 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
37994 if test "${ac_cv_type_mode_t+set}" = set; then
37995   echo $ECHO_N "(cached) $ECHO_C" >&6
37996 else
37997   cat >conftest.$ac_ext <<_ACEOF
37998 /* confdefs.h.  */
37999 _ACEOF
38000 cat confdefs.h >>conftest.$ac_ext
38001 cat >>conftest.$ac_ext <<_ACEOF
38002 /* end confdefs.h.  */
38003 $ac_includes_default
38004 typedef mode_t ac__type_new_;
38005 int
38006 main ()
38007 {
38008 if ((ac__type_new_ *) 0)
38009   return 0;
38010 if (sizeof (ac__type_new_))
38011   return 0;
38012   ;
38013   return 0;
38014 }
38015 _ACEOF
38016 rm -f conftest.$ac_objext
38017 if { (ac_try="$ac_compile"
38018 case "(($ac_try" in
38019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38020   *) ac_try_echo=$ac_try;;
38021 esac
38022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38023   (eval "$ac_compile") 2>conftest.er1
38024   ac_status=$?
38025   grep -v '^ *+' conftest.er1 >conftest.err
38026   rm -f conftest.er1
38027   cat conftest.err >&5
38028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029   (exit $ac_status); } && {
38030          test -z "$ac_c_werror_flag" ||
38031          test ! -s conftest.err
38032        } && test -s conftest.$ac_objext; then
38033   ac_cv_type_mode_t=yes
38034 else
38035   echo "$as_me: failed program was:" >&5
38036 sed 's/^/| /' conftest.$ac_ext >&5
38037
38038         ac_cv_type_mode_t=no
38039 fi
38040
38041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38042 fi
38043 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38044 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
38045 if test $ac_cv_type_mode_t = yes; then
38046   :
38047 else
38048
38049 cat >>confdefs.h <<_ACEOF
38050 #define mode_t int
38051 _ACEOF
38052
38053 fi
38054
38055 { echo "$as_me:$LINENO: checking for off_t" >&5
38056 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
38057 if test "${ac_cv_type_off_t+set}" = set; then
38058   echo $ECHO_N "(cached) $ECHO_C" >&6
38059 else
38060   cat >conftest.$ac_ext <<_ACEOF
38061 /* confdefs.h.  */
38062 _ACEOF
38063 cat confdefs.h >>conftest.$ac_ext
38064 cat >>conftest.$ac_ext <<_ACEOF
38065 /* end confdefs.h.  */
38066 $ac_includes_default
38067 typedef off_t ac__type_new_;
38068 int
38069 main ()
38070 {
38071 if ((ac__type_new_ *) 0)
38072   return 0;
38073 if (sizeof (ac__type_new_))
38074   return 0;
38075   ;
38076   return 0;
38077 }
38078 _ACEOF
38079 rm -f conftest.$ac_objext
38080 if { (ac_try="$ac_compile"
38081 case "(($ac_try" in
38082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38083   *) ac_try_echo=$ac_try;;
38084 esac
38085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38086   (eval "$ac_compile") 2>conftest.er1
38087   ac_status=$?
38088   grep -v '^ *+' conftest.er1 >conftest.err
38089   rm -f conftest.er1
38090   cat conftest.err >&5
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); } && {
38093          test -z "$ac_c_werror_flag" ||
38094          test ! -s conftest.err
38095        } && test -s conftest.$ac_objext; then
38096   ac_cv_type_off_t=yes
38097 else
38098   echo "$as_me: failed program was:" >&5
38099 sed 's/^/| /' conftest.$ac_ext >&5
38100
38101         ac_cv_type_off_t=no
38102 fi
38103
38104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38105 fi
38106 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38107 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
38108 if test $ac_cv_type_off_t = yes; then
38109   :
38110 else
38111
38112 cat >>confdefs.h <<_ACEOF
38113 #define off_t long int
38114 _ACEOF
38115
38116 fi
38117
38118 { echo "$as_me:$LINENO: checking for pid_t" >&5
38119 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
38120 if test "${ac_cv_type_pid_t+set}" = set; then
38121   echo $ECHO_N "(cached) $ECHO_C" >&6
38122 else
38123   cat >conftest.$ac_ext <<_ACEOF
38124 /* confdefs.h.  */
38125 _ACEOF
38126 cat confdefs.h >>conftest.$ac_ext
38127 cat >>conftest.$ac_ext <<_ACEOF
38128 /* end confdefs.h.  */
38129 $ac_includes_default
38130 typedef pid_t ac__type_new_;
38131 int
38132 main ()
38133 {
38134 if ((ac__type_new_ *) 0)
38135   return 0;
38136 if (sizeof (ac__type_new_))
38137   return 0;
38138   ;
38139   return 0;
38140 }
38141 _ACEOF
38142 rm -f conftest.$ac_objext
38143 if { (ac_try="$ac_compile"
38144 case "(($ac_try" in
38145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38146   *) ac_try_echo=$ac_try;;
38147 esac
38148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38149   (eval "$ac_compile") 2>conftest.er1
38150   ac_status=$?
38151   grep -v '^ *+' conftest.er1 >conftest.err
38152   rm -f conftest.er1
38153   cat conftest.err >&5
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); } && {
38156          test -z "$ac_c_werror_flag" ||
38157          test ! -s conftest.err
38158        } && test -s conftest.$ac_objext; then
38159   ac_cv_type_pid_t=yes
38160 else
38161   echo "$as_me: failed program was:" >&5
38162 sed 's/^/| /' conftest.$ac_ext >&5
38163
38164         ac_cv_type_pid_t=no
38165 fi
38166
38167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38168 fi
38169 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38170 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
38171 if test $ac_cv_type_pid_t = yes; then
38172   :
38173 else
38174
38175 cat >>confdefs.h <<_ACEOF
38176 #define pid_t int
38177 _ACEOF
38178
38179 fi
38180
38181 { echo "$as_me:$LINENO: checking for size_t" >&5
38182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
38183 if test "${ac_cv_type_size_t+set}" = set; then
38184   echo $ECHO_N "(cached) $ECHO_C" >&6
38185 else
38186   cat >conftest.$ac_ext <<_ACEOF
38187 /* confdefs.h.  */
38188 _ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h.  */
38192 $ac_includes_default
38193 typedef size_t ac__type_new_;
38194 int
38195 main ()
38196 {
38197 if ((ac__type_new_ *) 0)
38198   return 0;
38199 if (sizeof (ac__type_new_))
38200   return 0;
38201   ;
38202   return 0;
38203 }
38204 _ACEOF
38205 rm -f conftest.$ac_objext
38206 if { (ac_try="$ac_compile"
38207 case "(($ac_try" in
38208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38209   *) ac_try_echo=$ac_try;;
38210 esac
38211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38212   (eval "$ac_compile") 2>conftest.er1
38213   ac_status=$?
38214   grep -v '^ *+' conftest.er1 >conftest.err
38215   rm -f conftest.er1
38216   cat conftest.err >&5
38217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218   (exit $ac_status); } && {
38219          test -z "$ac_c_werror_flag" ||
38220          test ! -s conftest.err
38221        } && test -s conftest.$ac_objext; then
38222   ac_cv_type_size_t=yes
38223 else
38224   echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38226
38227         ac_cv_type_size_t=no
38228 fi
38229
38230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38231 fi
38232 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38233 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
38234 if test $ac_cv_type_size_t = yes; then
38235   :
38236 else
38237
38238 cat >>confdefs.h <<_ACEOF
38239 #define size_t unsigned int
38240 _ACEOF
38241
38242 fi
38243
38244
38245 { echo "$as_me:$LINENO: checking for ssize_t" >&5
38246 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38247 if test "${ac_cv_type_ssize_t+set}" = set; then
38248   echo $ECHO_N "(cached) $ECHO_C" >&6
38249 else
38250   cat >conftest.$ac_ext <<_ACEOF
38251 /* confdefs.h.  */
38252 _ACEOF
38253 cat confdefs.h >>conftest.$ac_ext
38254 cat >>conftest.$ac_ext <<_ACEOF
38255 /* end confdefs.h.  */
38256 $ac_includes_default
38257 typedef ssize_t ac__type_new_;
38258 int
38259 main ()
38260 {
38261 if ((ac__type_new_ *) 0)
38262   return 0;
38263 if (sizeof (ac__type_new_))
38264   return 0;
38265   ;
38266   return 0;
38267 }
38268 _ACEOF
38269 rm -f conftest.$ac_objext
38270 if { (ac_try="$ac_compile"
38271 case "(($ac_try" in
38272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38273   *) ac_try_echo=$ac_try;;
38274 esac
38275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38276   (eval "$ac_compile") 2>conftest.er1
38277   ac_status=$?
38278   grep -v '^ *+' conftest.er1 >conftest.err
38279   rm -f conftest.er1
38280   cat conftest.err >&5
38281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); } && {
38283          test -z "$ac_c_werror_flag" ||
38284          test ! -s conftest.err
38285        } && test -s conftest.$ac_objext; then
38286   ac_cv_type_ssize_t=yes
38287 else
38288   echo "$as_me: failed program was:" >&5
38289 sed 's/^/| /' conftest.$ac_ext >&5
38290
38291         ac_cv_type_ssize_t=no
38292 fi
38293
38294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38295 fi
38296 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38297 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
38298 if test $ac_cv_type_ssize_t = yes; then
38299
38300 cat >>confdefs.h <<_ACEOF
38301 #define HAVE_SSIZE_T 1
38302 _ACEOF
38303
38304
38305 fi
38306
38307
38308 ac_ext=cpp
38309 ac_cpp='$CXXCPP $CPPFLAGS'
38310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38313  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
38314 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
38315 if test "${wx_cv_size_t_is_uint+set}" = set; then
38316   echo $ECHO_N "(cached) $ECHO_C" >&6
38317 else
38318
38319                             cat >conftest.$ac_ext <<_ACEOF
38320 /* confdefs.h.  */
38321 _ACEOF
38322 cat confdefs.h >>conftest.$ac_ext
38323 cat >>conftest.$ac_ext <<_ACEOF
38324 /* end confdefs.h.  */
38325 #include <stddef.h>
38326 int
38327 main ()
38328 {
38329
38330             return 0; }
38331
38332             struct Foo { void foo(size_t); void foo(unsigned int); };
38333
38334             int bar() {
38335
38336   ;
38337   return 0;
38338 }
38339 _ACEOF
38340 rm -f conftest.$ac_objext
38341 if { (ac_try="$ac_compile"
38342 case "(($ac_try" in
38343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38344   *) ac_try_echo=$ac_try;;
38345 esac
38346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38347   (eval "$ac_compile") 2>conftest.er1
38348   ac_status=$?
38349   grep -v '^ *+' conftest.er1 >conftest.err
38350   rm -f conftest.er1
38351   cat conftest.err >&5
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); } && {
38354          test -z "$ac_cxx_werror_flag" ||
38355          test ! -s conftest.err
38356        } && test -s conftest.$ac_objext; then
38357   wx_cv_size_t_is_uint=no
38358 else
38359   echo "$as_me: failed program was:" >&5
38360 sed 's/^/| /' conftest.$ac_ext >&5
38361
38362         wx_cv_size_t_is_uint=yes
38363
38364 fi
38365
38366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38367
38368
38369 fi
38370 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
38371 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
38372
38373 if test "$wx_cv_size_t_is_uint" = "yes"; then
38374     cat >>confdefs.h <<\_ACEOF
38375 #define wxSIZE_T_IS_UINT 1
38376 _ACEOF
38377
38378 else
38379     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
38380 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
38381 if test "${wx_cv_size_t_is_ulong+set}" = set; then
38382   echo $ECHO_N "(cached) $ECHO_C" >&6
38383 else
38384   cat >conftest.$ac_ext <<_ACEOF
38385 /* confdefs.h.  */
38386 _ACEOF
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h.  */
38390 #include <stddef.h>
38391 int
38392 main ()
38393 {
38394
38395                 return 0; }
38396
38397                 struct Foo { void foo(size_t); void foo(unsigned long); };
38398
38399                 int bar() {
38400
38401   ;
38402   return 0;
38403 }
38404 _ACEOF
38405 rm -f conftest.$ac_objext
38406 if { (ac_try="$ac_compile"
38407 case "(($ac_try" in
38408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38409   *) ac_try_echo=$ac_try;;
38410 esac
38411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38412   (eval "$ac_compile") 2>conftest.er1
38413   ac_status=$?
38414   grep -v '^ *+' conftest.er1 >conftest.err
38415   rm -f conftest.er1
38416   cat conftest.err >&5
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); } && {
38419          test -z "$ac_cxx_werror_flag" ||
38420          test ! -s conftest.err
38421        } && test -s conftest.$ac_objext; then
38422   wx_cv_size_t_is_ulong=no
38423 else
38424   echo "$as_me: failed program was:" >&5
38425 sed 's/^/| /' conftest.$ac_ext >&5
38426
38427         wx_cv_size_t_is_ulong=yes
38428
38429 fi
38430
38431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38432
38433 fi
38434 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
38435 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
38436
38437     if test "$wx_cv_size_t_is_ulong" = "yes"; then
38438         cat >>confdefs.h <<\_ACEOF
38439 #define wxSIZE_T_IS_ULONG 1
38440 _ACEOF
38441
38442     fi
38443 fi
38444
38445 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
38446 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
38447 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
38448   echo $ECHO_N "(cached) $ECHO_C" >&6
38449 else
38450   cat >conftest.$ac_ext <<_ACEOF
38451 /* confdefs.h.  */
38452 _ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h.  */
38456 #include <wchar.h>
38457 int
38458 main ()
38459 {
38460
38461             return 0; }
38462
38463             struct Foo { void foo(wchar_t);
38464                          void foo(unsigned short);
38465                          void foo(unsigned int);
38466                          void foo(unsigned long); };
38467
38468             int bar() {
38469
38470   ;
38471   return 0;
38472 }
38473 _ACEOF
38474 rm -f conftest.$ac_objext
38475 if { (ac_try="$ac_compile"
38476 case "(($ac_try" in
38477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38478   *) ac_try_echo=$ac_try;;
38479 esac
38480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38481   (eval "$ac_compile") 2>conftest.er1
38482   ac_status=$?
38483   grep -v '^ *+' conftest.er1 >conftest.err
38484   rm -f conftest.er1
38485   cat conftest.err >&5
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); } && {
38488          test -z "$ac_cxx_werror_flag" ||
38489          test ! -s conftest.err
38490        } && test -s conftest.$ac_objext; then
38491   wx_cv_wchar_t_is_separate_type=yes
38492 else
38493   echo "$as_me: failed program was:" >&5
38494 sed 's/^/| /' conftest.$ac_ext >&5
38495
38496         wx_cv_wchar_t_is_separate_type=no
38497
38498 fi
38499
38500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38501
38502 fi
38503 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
38504 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
38505
38506 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
38507     cat >>confdefs.h <<\_ACEOF
38508 #define wxWCHAR_T_IS_REAL_TYPE 1
38509 _ACEOF
38510
38511 else
38512     cat >>confdefs.h <<\_ACEOF
38513 #define wxWCHAR_T_IS_REAL_TYPE 0
38514 _ACEOF
38515
38516 fi
38517
38518 ac_ext=c
38519 ac_cpp='$CPP $CPPFLAGS'
38520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38523
38524
38525 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
38526 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
38527 if test "${wx_cv_struct_pw_gecos+set}" = set; then
38528   echo $ECHO_N "(cached) $ECHO_C" >&6
38529 else
38530
38531         cat >conftest.$ac_ext <<_ACEOF
38532 /* confdefs.h.  */
38533 _ACEOF
38534 cat confdefs.h >>conftest.$ac_ext
38535 cat >>conftest.$ac_ext <<_ACEOF
38536 /* end confdefs.h.  */
38537 #include <pwd.h>
38538 int
38539 main ()
38540 {
38541
38542                 char *p;
38543                 struct passwd *pw;
38544                 p = pw->pw_gecos;
38545
38546   ;
38547   return 0;
38548 }
38549 _ACEOF
38550 rm -f conftest.$ac_objext
38551 if { (ac_try="$ac_compile"
38552 case "(($ac_try" in
38553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38554   *) ac_try_echo=$ac_try;;
38555 esac
38556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38557   (eval "$ac_compile") 2>conftest.er1
38558   ac_status=$?
38559   grep -v '^ *+' conftest.er1 >conftest.err
38560   rm -f conftest.er1
38561   cat conftest.err >&5
38562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563   (exit $ac_status); } && {
38564          test -z "$ac_c_werror_flag" ||
38565          test ! -s conftest.err
38566        } && test -s conftest.$ac_objext; then
38567
38568                 wx_cv_struct_pw_gecos=yes
38569
38570 else
38571   echo "$as_me: failed program was:" >&5
38572 sed 's/^/| /' conftest.$ac_ext >&5
38573
38574
38575                 wx_cv_struct_pw_gecos=no
38576
38577
38578 fi
38579
38580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38581
38582
38583 fi
38584 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
38585 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
38586
38587 if test "$wx_cv_struct_pw_gecos" = "yes"; then
38588     cat >>confdefs.h <<\_ACEOF
38589 #define HAVE_PW_GECOS 1
38590 _ACEOF
38591
38592 fi
38593
38594
38595 WCSLEN_FOUND=0
38596 WCHAR_LINK=
38597
38598 for ac_func in wcslen
38599 do
38600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38604   echo $ECHO_N "(cached) $ECHO_C" >&6
38605 else
38606   cat >conftest.$ac_ext <<_ACEOF
38607 /* confdefs.h.  */
38608 _ACEOF
38609 cat confdefs.h >>conftest.$ac_ext
38610 cat >>conftest.$ac_ext <<_ACEOF
38611 /* end confdefs.h.  */
38612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38614 #define $ac_func innocuous_$ac_func
38615
38616 /* System header to define __stub macros and hopefully few prototypes,
38617     which can conflict with char $ac_func (); below.
38618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38619     <limits.h> exists even on freestanding compilers.  */
38620
38621 #ifdef __STDC__
38622 # include <limits.h>
38623 #else
38624 # include <assert.h>
38625 #endif
38626
38627 #undef $ac_func
38628
38629 /* Override any GCC internal prototype to avoid an error.
38630    Use char because int might match the return type of a GCC
38631    builtin and then its argument prototype would still apply.  */
38632 #ifdef __cplusplus
38633 extern "C"
38634 #endif
38635 char $ac_func ();
38636 /* The GNU C library defines this for functions which it implements
38637     to always fail with ENOSYS.  Some functions are actually named
38638     something starting with __ and the normal name is an alias.  */
38639 #if defined __stub_$ac_func || defined __stub___$ac_func
38640 choke me
38641 #endif
38642
38643 int
38644 main ()
38645 {
38646 return $ac_func ();
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (ac_try="$ac_link"
38653 case "(($ac_try" in
38654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655   *) ac_try_echo=$ac_try;;
38656 esac
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658   (eval "$ac_link") 2>conftest.er1
38659   ac_status=$?
38660   grep -v '^ *+' conftest.er1 >conftest.err
38661   rm -f conftest.er1
38662   cat conftest.err >&5
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } && {
38665          test -z "$ac_c_werror_flag" ||
38666          test ! -s conftest.err
38667        } && test -s conftest$ac_exeext &&
38668        $as_test_x conftest$ac_exeext; then
38669   eval "$as_ac_var=yes"
38670 else
38671   echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38673
38674         eval "$as_ac_var=no"
38675 fi
38676
38677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38678       conftest$ac_exeext conftest.$ac_ext
38679 fi
38680 ac_res=`eval echo '${'$as_ac_var'}'`
38681                { echo "$as_me:$LINENO: result: $ac_res" >&5
38682 echo "${ECHO_T}$ac_res" >&6; }
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684   cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38686 _ACEOF
38687  WCSLEN_FOUND=1
38688 fi
38689 done
38690
38691
38692 if test "$WCSLEN_FOUND" = 0; then
38693     if test "$TOOLKIT" = "MSW"; then
38694         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
38695 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
38696 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
38697   echo $ECHO_N "(cached) $ECHO_C" >&6
38698 else
38699   ac_check_lib_save_LIBS=$LIBS
38700 LIBS="-lmsvcrt  $LIBS"
38701 cat >conftest.$ac_ext <<_ACEOF
38702 /* confdefs.h.  */
38703 _ACEOF
38704 cat confdefs.h >>conftest.$ac_ext
38705 cat >>conftest.$ac_ext <<_ACEOF
38706 /* end confdefs.h.  */
38707
38708 /* Override any GCC internal prototype to avoid an error.
38709    Use char because int might match the return type of a GCC
38710    builtin and then its argument prototype would still apply.  */
38711 #ifdef __cplusplus
38712 extern "C"
38713 #endif
38714 char wcslen ();
38715 int
38716 main ()
38717 {
38718 return wcslen ();
38719   ;
38720   return 0;
38721 }
38722 _ACEOF
38723 rm -f conftest.$ac_objext conftest$ac_exeext
38724 if { (ac_try="$ac_link"
38725 case "(($ac_try" in
38726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38727   *) ac_try_echo=$ac_try;;
38728 esac
38729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38730   (eval "$ac_link") 2>conftest.er1
38731   ac_status=$?
38732   grep -v '^ *+' conftest.er1 >conftest.err
38733   rm -f conftest.er1
38734   cat conftest.err >&5
38735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736   (exit $ac_status); } && {
38737          test -z "$ac_c_werror_flag" ||
38738          test ! -s conftest.err
38739        } && test -s conftest$ac_exeext &&
38740        $as_test_x conftest$ac_exeext; then
38741   ac_cv_lib_msvcrt_wcslen=yes
38742 else
38743   echo "$as_me: failed program was:" >&5
38744 sed 's/^/| /' conftest.$ac_ext >&5
38745
38746         ac_cv_lib_msvcrt_wcslen=no
38747 fi
38748
38749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38750       conftest$ac_exeext conftest.$ac_ext
38751 LIBS=$ac_check_lib_save_LIBS
38752 fi
38753 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
38754 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
38755 if test $ac_cv_lib_msvcrt_wcslen = yes; then
38756   WCHAR_OK=1
38757 fi
38758
38759     else
38760         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
38761 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
38762 if test "${ac_cv_lib_w_wcslen+set}" = set; then
38763   echo $ECHO_N "(cached) $ECHO_C" >&6
38764 else
38765   ac_check_lib_save_LIBS=$LIBS
38766 LIBS="-lw  $LIBS"
38767 cat >conftest.$ac_ext <<_ACEOF
38768 /* confdefs.h.  */
38769 _ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h.  */
38773
38774 /* Override any GCC internal prototype to avoid an error.
38775    Use char because int might match the return type of a GCC
38776    builtin and then its argument prototype would still apply.  */
38777 #ifdef __cplusplus
38778 extern "C"
38779 #endif
38780 char wcslen ();
38781 int
38782 main ()
38783 {
38784 return wcslen ();
38785   ;
38786   return 0;
38787 }
38788 _ACEOF
38789 rm -f conftest.$ac_objext conftest$ac_exeext
38790 if { (ac_try="$ac_link"
38791 case "(($ac_try" in
38792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38793   *) ac_try_echo=$ac_try;;
38794 esac
38795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38796   (eval "$ac_link") 2>conftest.er1
38797   ac_status=$?
38798   grep -v '^ *+' conftest.er1 >conftest.err
38799   rm -f conftest.er1
38800   cat conftest.err >&5
38801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802   (exit $ac_status); } && {
38803          test -z "$ac_c_werror_flag" ||
38804          test ! -s conftest.err
38805        } && test -s conftest$ac_exeext &&
38806        $as_test_x conftest$ac_exeext; then
38807   ac_cv_lib_w_wcslen=yes
38808 else
38809   echo "$as_me: failed program was:" >&5
38810 sed 's/^/| /' conftest.$ac_ext >&5
38811
38812         ac_cv_lib_w_wcslen=no
38813 fi
38814
38815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38816       conftest$ac_exeext conftest.$ac_ext
38817 LIBS=$ac_check_lib_save_LIBS
38818 fi
38819 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
38820 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
38821 if test $ac_cv_lib_w_wcslen = yes; then
38822
38823                         WCHAR_LINK=" -lw"
38824                         WCSLEN_FOUND=1
38825
38826 fi
38827
38828     fi
38829 fi
38830
38831 if test "$WCSLEN_FOUND" = 1; then
38832     cat >>confdefs.h <<\_ACEOF
38833 #define HAVE_WCSLEN 1
38834 _ACEOF
38835
38836 fi
38837
38838
38839
38840
38841
38842
38843
38844 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
38845 do
38846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38850   echo $ECHO_N "(cached) $ECHO_C" >&6
38851 else
38852   cat >conftest.$ac_ext <<_ACEOF
38853 /* confdefs.h.  */
38854 _ACEOF
38855 cat confdefs.h >>conftest.$ac_ext
38856 cat >>conftest.$ac_ext <<_ACEOF
38857 /* end confdefs.h.  */
38858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38860 #define $ac_func innocuous_$ac_func
38861
38862 /* System header to define __stub macros and hopefully few prototypes,
38863     which can conflict with char $ac_func (); below.
38864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38865     <limits.h> exists even on freestanding compilers.  */
38866
38867 #ifdef __STDC__
38868 # include <limits.h>
38869 #else
38870 # include <assert.h>
38871 #endif
38872
38873 #undef $ac_func
38874
38875 /* Override any GCC internal prototype to avoid an error.
38876    Use char because int might match the return type of a GCC
38877    builtin and then its argument prototype would still apply.  */
38878 #ifdef __cplusplus
38879 extern "C"
38880 #endif
38881 char $ac_func ();
38882 /* The GNU C library defines this for functions which it implements
38883     to always fail with ENOSYS.  Some functions are actually named
38884     something starting with __ and the normal name is an alias.  */
38885 #if defined __stub_$ac_func || defined __stub___$ac_func
38886 choke me
38887 #endif
38888
38889 int
38890 main ()
38891 {
38892 return $ac_func ();
38893   ;
38894   return 0;
38895 }
38896 _ACEOF
38897 rm -f conftest.$ac_objext conftest$ac_exeext
38898 if { (ac_try="$ac_link"
38899 case "(($ac_try" in
38900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38901   *) ac_try_echo=$ac_try;;
38902 esac
38903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38904   (eval "$ac_link") 2>conftest.er1
38905   ac_status=$?
38906   grep -v '^ *+' conftest.er1 >conftest.err
38907   rm -f conftest.er1
38908   cat conftest.err >&5
38909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910   (exit $ac_status); } && {
38911          test -z "$ac_c_werror_flag" ||
38912          test ! -s conftest.err
38913        } && test -s conftest$ac_exeext &&
38914        $as_test_x conftest$ac_exeext; then
38915   eval "$as_ac_var=yes"
38916 else
38917   echo "$as_me: failed program was:" >&5
38918 sed 's/^/| /' conftest.$ac_ext >&5
38919
38920         eval "$as_ac_var=no"
38921 fi
38922
38923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38924       conftest$ac_exeext conftest.$ac_ext
38925 fi
38926 ac_res=`eval echo '${'$as_ac_var'}'`
38927                { echo "$as_me:$LINENO: result: $ac_res" >&5
38928 echo "${ECHO_T}$ac_res" >&6; }
38929 if test `eval echo '${'$as_ac_var'}'` = yes; then
38930   cat >>confdefs.h <<_ACEOF
38931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38932 _ACEOF
38933
38934 fi
38935 done
38936
38937
38938 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
38939     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
38940 fi
38941
38942 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
38943 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
38944 if test "${ac_cv_type_mbstate_t+set}" = set; then
38945   echo $ECHO_N "(cached) $ECHO_C" >&6
38946 else
38947   cat >conftest.$ac_ext <<_ACEOF
38948 /* confdefs.h.  */
38949 _ACEOF
38950 cat confdefs.h >>conftest.$ac_ext
38951 cat >>conftest.$ac_ext <<_ACEOF
38952 /* end confdefs.h.  */
38953 #include <wchar.h>
38954
38955 typedef mbstate_t ac__type_new_;
38956 int
38957 main ()
38958 {
38959 if ((ac__type_new_ *) 0)
38960   return 0;
38961 if (sizeof (ac__type_new_))
38962   return 0;
38963   ;
38964   return 0;
38965 }
38966 _ACEOF
38967 rm -f conftest.$ac_objext
38968 if { (ac_try="$ac_compile"
38969 case "(($ac_try" in
38970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38971   *) ac_try_echo=$ac_try;;
38972 esac
38973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38974   (eval "$ac_compile") 2>conftest.er1
38975   ac_status=$?
38976   grep -v '^ *+' conftest.er1 >conftest.err
38977   rm -f conftest.er1
38978   cat conftest.err >&5
38979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980   (exit $ac_status); } && {
38981          test -z "$ac_c_werror_flag" ||
38982          test ! -s conftest.err
38983        } && test -s conftest.$ac_objext; then
38984   ac_cv_type_mbstate_t=yes
38985 else
38986   echo "$as_me: failed program was:" >&5
38987 sed 's/^/| /' conftest.$ac_ext >&5
38988
38989         ac_cv_type_mbstate_t=no
38990 fi
38991
38992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38993 fi
38994 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
38995 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
38996 if test $ac_cv_type_mbstate_t = yes; then
38997
38998 cat >>confdefs.h <<_ACEOF
38999 #define HAVE_MBSTATE_T 1
39000 _ACEOF
39001
39002
39003 for ac_func in wcsrtombs
39004 do
39005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39009   echo $ECHO_N "(cached) $ECHO_C" >&6
39010 else
39011   cat >conftest.$ac_ext <<_ACEOF
39012 /* confdefs.h.  */
39013 _ACEOF
39014 cat confdefs.h >>conftest.$ac_ext
39015 cat >>conftest.$ac_ext <<_ACEOF
39016 /* end confdefs.h.  */
39017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39019 #define $ac_func innocuous_$ac_func
39020
39021 /* System header to define __stub macros and hopefully few prototypes,
39022     which can conflict with char $ac_func (); below.
39023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39024     <limits.h> exists even on freestanding compilers.  */
39025
39026 #ifdef __STDC__
39027 # include <limits.h>
39028 #else
39029 # include <assert.h>
39030 #endif
39031
39032 #undef $ac_func
39033
39034 /* Override any GCC internal prototype to avoid an error.
39035    Use char because int might match the return type of a GCC
39036    builtin and then its argument prototype would still apply.  */
39037 #ifdef __cplusplus
39038 extern "C"
39039 #endif
39040 char $ac_func ();
39041 /* The GNU C library defines this for functions which it implements
39042     to always fail with ENOSYS.  Some functions are actually named
39043     something starting with __ and the normal name is an alias.  */
39044 #if defined __stub_$ac_func || defined __stub___$ac_func
39045 choke me
39046 #endif
39047
39048 int
39049 main ()
39050 {
39051 return $ac_func ();
39052   ;
39053   return 0;
39054 }
39055 _ACEOF
39056 rm -f conftest.$ac_objext conftest$ac_exeext
39057 if { (ac_try="$ac_link"
39058 case "(($ac_try" in
39059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39060   *) ac_try_echo=$ac_try;;
39061 esac
39062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39063   (eval "$ac_link") 2>conftest.er1
39064   ac_status=$?
39065   grep -v '^ *+' conftest.er1 >conftest.err
39066   rm -f conftest.er1
39067   cat conftest.err >&5
39068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069   (exit $ac_status); } && {
39070          test -z "$ac_c_werror_flag" ||
39071          test ! -s conftest.err
39072        } && test -s conftest$ac_exeext &&
39073        $as_test_x conftest$ac_exeext; then
39074   eval "$as_ac_var=yes"
39075 else
39076   echo "$as_me: failed program was:" >&5
39077 sed 's/^/| /' conftest.$ac_ext >&5
39078
39079         eval "$as_ac_var=no"
39080 fi
39081
39082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39083       conftest$ac_exeext conftest.$ac_ext
39084 fi
39085 ac_res=`eval echo '${'$as_ac_var'}'`
39086                { echo "$as_me:$LINENO: result: $ac_res" >&5
39087 echo "${ECHO_T}$ac_res" >&6; }
39088 if test `eval echo '${'$as_ac_var'}'` = yes; then
39089   cat >>confdefs.h <<_ACEOF
39090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39091 _ACEOF
39092
39093 fi
39094 done
39095
39096 fi
39097
39098
39099
39100
39101
39102 for ac_func in snprintf vsnprintf vsscanf
39103 do
39104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39108   echo $ECHO_N "(cached) $ECHO_C" >&6
39109 else
39110   cat >conftest.$ac_ext <<_ACEOF
39111 /* confdefs.h.  */
39112 _ACEOF
39113 cat confdefs.h >>conftest.$ac_ext
39114 cat >>conftest.$ac_ext <<_ACEOF
39115 /* end confdefs.h.  */
39116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39118 #define $ac_func innocuous_$ac_func
39119
39120 /* System header to define __stub macros and hopefully few prototypes,
39121     which can conflict with char $ac_func (); below.
39122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39123     <limits.h> exists even on freestanding compilers.  */
39124
39125 #ifdef __STDC__
39126 # include <limits.h>
39127 #else
39128 # include <assert.h>
39129 #endif
39130
39131 #undef $ac_func
39132
39133 /* Override any GCC internal prototype to avoid an error.
39134    Use char because int might match the return type of a GCC
39135    builtin and then its argument prototype would still apply.  */
39136 #ifdef __cplusplus
39137 extern "C"
39138 #endif
39139 char $ac_func ();
39140 /* The GNU C library defines this for functions which it implements
39141     to always fail with ENOSYS.  Some functions are actually named
39142     something starting with __ and the normal name is an alias.  */
39143 #if defined __stub_$ac_func || defined __stub___$ac_func
39144 choke me
39145 #endif
39146
39147 int
39148 main ()
39149 {
39150 return $ac_func ();
39151   ;
39152   return 0;
39153 }
39154 _ACEOF
39155 rm -f conftest.$ac_objext conftest$ac_exeext
39156 if { (ac_try="$ac_link"
39157 case "(($ac_try" in
39158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39159   *) ac_try_echo=$ac_try;;
39160 esac
39161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39162   (eval "$ac_link") 2>conftest.er1
39163   ac_status=$?
39164   grep -v '^ *+' conftest.er1 >conftest.err
39165   rm -f conftest.er1
39166   cat conftest.err >&5
39167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168   (exit $ac_status); } && {
39169          test -z "$ac_c_werror_flag" ||
39170          test ! -s conftest.err
39171        } && test -s conftest$ac_exeext &&
39172        $as_test_x conftest$ac_exeext; then
39173   eval "$as_ac_var=yes"
39174 else
39175   echo "$as_me: failed program was:" >&5
39176 sed 's/^/| /' conftest.$ac_ext >&5
39177
39178         eval "$as_ac_var=no"
39179 fi
39180
39181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39182       conftest$ac_exeext conftest.$ac_ext
39183 fi
39184 ac_res=`eval echo '${'$as_ac_var'}'`
39185                { echo "$as_me:$LINENO: result: $ac_res" >&5
39186 echo "${ECHO_T}$ac_res" >&6; }
39187 if test `eval echo '${'$as_ac_var'}'` = yes; then
39188   cat >>confdefs.h <<_ACEOF
39189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39190 _ACEOF
39191
39192 fi
39193 done
39194
39195
39196 ac_ext=cpp
39197 ac_cpp='$CXXCPP $CPPFLAGS'
39198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39201
39202 if test "$ac_cv_func_vsnprintf" = "yes"; then
39203         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
39204 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
39205 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
39206   echo $ECHO_N "(cached) $ECHO_C" >&6
39207 else
39208
39209                                     cat >conftest.$ac_ext <<_ACEOF
39210 /* confdefs.h.  */
39211 _ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h.  */
39215
39216                     #include <stdio.h>
39217                     #include <stdarg.h>
39218
39219 int
39220 main ()
39221 {
39222
39223                     char *buf;
39224                     va_list ap;
39225                     vsnprintf(buf, 10u, "%s", ap);
39226
39227   ;
39228   return 0;
39229 }
39230 _ACEOF
39231 rm -f conftest.$ac_objext
39232 if { (ac_try="$ac_compile"
39233 case "(($ac_try" in
39234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39235   *) ac_try_echo=$ac_try;;
39236 esac
39237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39238   (eval "$ac_compile") 2>conftest.er1
39239   ac_status=$?
39240   grep -v '^ *+' conftest.er1 >conftest.err
39241   rm -f conftest.er1
39242   cat conftest.err >&5
39243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244   (exit $ac_status); } && {
39245          test -z "$ac_cxx_werror_flag" ||
39246          test ! -s conftest.err
39247        } && test -s conftest.$ac_objext; then
39248   wx_cv_func_vsnprintf_decl=yes
39249 else
39250   echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39252
39253         wx_cv_func_vsnprintf_decl=no
39254
39255 fi
39256
39257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39258
39259
39260 fi
39261 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
39262 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
39263
39264     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
39265         cat >>confdefs.h <<\_ACEOF
39266 #define HAVE_VSNPRINTF_DECL 1
39267 _ACEOF
39268
39269
39270                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
39271 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
39272 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
39273   echo $ECHO_N "(cached) $ECHO_C" >&6
39274 else
39275
39276                 cat >conftest.$ac_ext <<_ACEOF
39277 /* confdefs.h.  */
39278 _ACEOF
39279 cat confdefs.h >>conftest.$ac_ext
39280 cat >>conftest.$ac_ext <<_ACEOF
39281 /* end confdefs.h.  */
39282
39283                         #include <stdio.h>
39284                         #include <stdarg.h>
39285                         #ifdef __MSL__
39286                         #if __MSL__ >= 0x6000
39287                         namespace std {}
39288                         using namespace std;
39289                         #endif
39290                         #endif
39291
39292 int
39293 main ()
39294 {
39295
39296                         char *buf;
39297                         va_list ap;
39298                         const char *fmt = "%s";
39299                         vsnprintf(buf, 10u, fmt, ap);
39300
39301   ;
39302   return 0;
39303 }
39304 _ACEOF
39305 rm -f conftest.$ac_objext
39306 if { (ac_try="$ac_compile"
39307 case "(($ac_try" in
39308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39309   *) ac_try_echo=$ac_try;;
39310 esac
39311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39312   (eval "$ac_compile") 2>conftest.er1
39313   ac_status=$?
39314   grep -v '^ *+' conftest.er1 >conftest.err
39315   rm -f conftest.er1
39316   cat conftest.err >&5
39317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318   (exit $ac_status); } && {
39319          test -z "$ac_cxx_werror_flag" ||
39320          test ! -s conftest.err
39321        } && test -s conftest.$ac_objext; then
39322   wx_cv_func_broken_vsnprintf_decl=no
39323 else
39324   echo "$as_me: failed program was:" >&5
39325 sed 's/^/| /' conftest.$ac_ext >&5
39326
39327         wx_cv_func_broken_vsnprintf_decl=yes
39328
39329 fi
39330
39331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39332
39333
39334 fi
39335 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
39336 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
39337
39338         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
39339             cat >>confdefs.h <<\_ACEOF
39340 #define HAVE_BROKEN_VSNPRINTF_DECL 1
39341 _ACEOF
39342
39343         fi
39344     fi
39345 fi
39346
39347 if test "$ac_cv_func_snprintf" = "yes"; then
39348     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
39349 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
39350 if test "${wx_cv_func_snprintf_decl+set}" = set; then
39351   echo $ECHO_N "(cached) $ECHO_C" >&6
39352 else
39353
39354             cat >conftest.$ac_ext <<_ACEOF
39355 /* confdefs.h.  */
39356 _ACEOF
39357 cat confdefs.h >>conftest.$ac_ext
39358 cat >>conftest.$ac_ext <<_ACEOF
39359 /* end confdefs.h.  */
39360
39361                     #include <stdio.h>
39362                     #include <stdarg.h>
39363                     #ifdef __MSL__
39364                     #if __MSL__ >= 0x6000
39365                     namespace std {}
39366                     using namespace std;
39367                     #endif
39368                     #endif
39369
39370 int
39371 main ()
39372 {
39373
39374                     char *buf;
39375                     snprintf(buf, 10u, "%s", "wx");
39376
39377   ;
39378   return 0;
39379 }
39380 _ACEOF
39381 rm -f conftest.$ac_objext
39382 if { (ac_try="$ac_compile"
39383 case "(($ac_try" in
39384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39385   *) ac_try_echo=$ac_try;;
39386 esac
39387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39388   (eval "$ac_compile") 2>conftest.er1
39389   ac_status=$?
39390   grep -v '^ *+' conftest.er1 >conftest.err
39391   rm -f conftest.er1
39392   cat conftest.err >&5
39393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394   (exit $ac_status); } && {
39395          test -z "$ac_cxx_werror_flag" ||
39396          test ! -s conftest.err
39397        } && test -s conftest.$ac_objext; then
39398   wx_cv_func_snprintf_decl=yes
39399 else
39400   echo "$as_me: failed program was:" >&5
39401 sed 's/^/| /' conftest.$ac_ext >&5
39402
39403         wx_cv_func_snprintf_decl=no
39404
39405 fi
39406
39407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39408
39409
39410 fi
39411 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
39412 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
39413
39414     if test "$wx_cv_func_snprintf_decl" = "yes"; then
39415         cat >>confdefs.h <<\_ACEOF
39416 #define HAVE_SNPRINTF_DECL 1
39417 _ACEOF
39418
39419     fi
39420
39421     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
39422
39423                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
39424 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
39425 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
39426   echo $ECHO_N "(cached) $ECHO_C" >&6
39427 else
39428
39429                 if test "$cross_compiling" = yes; then
39430
39431                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
39432 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
39433 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
39434 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
39435                         wx_cv_func_snprintf_pos_params=no
39436
39437
39438 else
39439   cat >conftest.$ac_ext <<_ACEOF
39440 /* confdefs.h.  */
39441 _ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h.  */
39445
39446                         #include <stdio.h>
39447
39448                         int main (void)
39449                         {
39450                             char buffer[128];
39451                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
39452                             if (strcmp ("2 3 1", buffer) == 0)
39453                                 exit (0);
39454                             exit (1);
39455                         }
39456
39457 _ACEOF
39458 rm -f conftest$ac_exeext
39459 if { (ac_try="$ac_link"
39460 case "(($ac_try" in
39461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39462   *) ac_try_echo=$ac_try;;
39463 esac
39464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39465   (eval "$ac_link") 2>&5
39466   ac_status=$?
39467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39469   { (case "(($ac_try" in
39470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39471   *) ac_try_echo=$ac_try;;
39472 esac
39473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39474   (eval "$ac_try") 2>&5
39475   ac_status=$?
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); }; }; then
39478   wx_cv_func_snprintf_pos_params=no
39479 else
39480   echo "$as_me: program exited with status $ac_status" >&5
39481 echo "$as_me: failed program was:" >&5
39482 sed 's/^/| /' conftest.$ac_ext >&5
39483
39484 ( exit $ac_status )
39485 wx_cv_func_snprintf_pos_params=yes
39486 fi
39487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39488 fi
39489
39490
39491
39492
39493 fi
39494 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
39495 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
39496
39497         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
39498             cat >>confdefs.h <<\_ACEOF
39499 #define HAVE_UNIX98_PRINTF 1
39500 _ACEOF
39501
39502         fi
39503     fi
39504 fi
39505
39506 if test "$ac_cv_func_vsscanf" = "yes"; then
39507     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
39508 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
39509 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
39510   echo $ECHO_N "(cached) $ECHO_C" >&6
39511 else
39512
39513             cat >conftest.$ac_ext <<_ACEOF
39514 /* confdefs.h.  */
39515 _ACEOF
39516 cat confdefs.h >>conftest.$ac_ext
39517 cat >>conftest.$ac_ext <<_ACEOF
39518 /* end confdefs.h.  */
39519
39520                     #include <stdio.h>
39521                     #include <stdarg.h>
39522                     #ifdef __MSL__
39523                     #if __MSL__ >= 0x6000
39524                     namespace std {}
39525                     using namespace std;
39526                     #endif
39527                     #endif
39528
39529 int
39530 main ()
39531 {
39532
39533                     char *buf;
39534                     va_list args;
39535                     vsscanf(buf, "%s", args);
39536
39537   ;
39538   return 0;
39539 }
39540 _ACEOF
39541 rm -f conftest.$ac_objext
39542 if { (ac_try="$ac_compile"
39543 case "(($ac_try" in
39544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39545   *) ac_try_echo=$ac_try;;
39546 esac
39547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39548   (eval "$ac_compile") 2>conftest.er1
39549   ac_status=$?
39550   grep -v '^ *+' conftest.er1 >conftest.err
39551   rm -f conftest.er1
39552   cat conftest.err >&5
39553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554   (exit $ac_status); } && {
39555          test -z "$ac_cxx_werror_flag" ||
39556          test ! -s conftest.err
39557        } && test -s conftest.$ac_objext; then
39558   wx_cv_func_vsscanf_decl=yes
39559 else
39560   echo "$as_me: failed program was:" >&5
39561 sed 's/^/| /' conftest.$ac_ext >&5
39562
39563         wx_cv_func_vsscanf_decl=no
39564
39565 fi
39566
39567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39568
39569
39570 fi
39571 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
39572 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
39573
39574     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
39575         cat >>confdefs.h <<\_ACEOF
39576 #define HAVE_VSSCANF_DECL 1
39577 _ACEOF
39578
39579     fi
39580 fi
39581 ac_ext=c
39582 ac_cpp='$CPP $CPPFLAGS'
39583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39586
39587
39588 if test "$wxUSE_UNICODE" = yes; then
39589
39590             wchar_headers="#include <stdio.h>
39591 #include <wchar.h>"
39592     case "${host}" in
39593         *-*-solaris2* )
39594
39595 for ac_header in widec.h
39596 do
39597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39601   echo $ECHO_N "(cached) $ECHO_C" >&6
39602 else
39603   cat >conftest.$ac_ext <<_ACEOF
39604 /* confdefs.h.  */
39605 _ACEOF
39606 cat confdefs.h >>conftest.$ac_ext
39607 cat >>conftest.$ac_ext <<_ACEOF
39608 /* end confdefs.h.  */
39609 $ac_includes_default
39610
39611 #include <$ac_header>
39612 _ACEOF
39613 rm -f conftest.$ac_objext
39614 if { (ac_try="$ac_compile"
39615 case "(($ac_try" in
39616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39617   *) ac_try_echo=$ac_try;;
39618 esac
39619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39620   (eval "$ac_compile") 2>conftest.er1
39621   ac_status=$?
39622   grep -v '^ *+' conftest.er1 >conftest.err
39623   rm -f conftest.er1
39624   cat conftest.err >&5
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); } && {
39627          test -z "$ac_c_werror_flag" ||
39628          test ! -s conftest.err
39629        } && test -s conftest.$ac_objext; then
39630   eval "$as_ac_Header=yes"
39631 else
39632   echo "$as_me: failed program was:" >&5
39633 sed 's/^/| /' conftest.$ac_ext >&5
39634
39635         eval "$as_ac_Header=no"
39636 fi
39637
39638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39639 fi
39640 ac_res=`eval echo '${'$as_ac_Header'}'`
39641                { echo "$as_me:$LINENO: result: $ac_res" >&5
39642 echo "${ECHO_T}$ac_res" >&6; }
39643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39644   cat >>confdefs.h <<_ACEOF
39645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39646 _ACEOF
39647
39648 fi
39649
39650 done
39651
39652             if test "$ac_cv_header_widec_h" = "yes"; then
39653                 wchar_headers="$wchar_headers
39654 #include <widec.h>"
39655             fi
39656     esac
39657
39658
39659   for wx_func in putws fputws wprintf vswprintf vswscanf
39660   do
39661     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39662 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39663 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39664   echo $ECHO_N "(cached) $ECHO_C" >&6
39665 else
39666
39667         cat >conftest.$ac_ext <<_ACEOF
39668
39669             /* confdefs.h.  */
39670 _ACEOF
39671 cat confdefs.h >>conftest.$ac_ext
39672 cat >>conftest.$ac_ext <<_ACEOF
39673 /* end confdefs.h.  */
39674
39675                 $wchar_headers
39676                 $ac_includes_default
39677
39678 int
39679 main ()
39680 {
39681
39682                 #ifndef $wx_func
39683                   &$wx_func;
39684                 #endif
39685
39686
39687   ;
39688   return 0;
39689 }
39690
39691 _ACEOF
39692 rm -f conftest.$ac_objext conftest$ac_exeext
39693 if { (ac_try="$ac_link"
39694 case "(($ac_try" in
39695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39696   *) ac_try_echo=$ac_try;;
39697 esac
39698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39699   (eval "$ac_link") 2>conftest.er1
39700   ac_status=$?
39701   grep -v '^ *+' conftest.er1 >conftest.err
39702   rm -f conftest.er1
39703   cat conftest.err >&5
39704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705   (exit $ac_status); } && {
39706          test -z "$ac_c_werror_flag" ||
39707          test ! -s conftest.err
39708        } && test -s conftest$ac_exeext &&
39709        $as_test_x conftest$ac_exeext; then
39710   eval wx_cv_func_$wx_func=yes
39711 else
39712   echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39714
39715         eval wx_cv_func_$wx_func=no
39716 fi
39717
39718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39719       conftest$ac_exeext conftest.$ac_ext
39720
39721 fi
39722 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39723                { echo "$as_me:$LINENO: result: $ac_res" >&5
39724 echo "${ECHO_T}$ac_res" >&6; }
39725
39726     if eval test \$wx_cv_func_$wx_func = yes
39727     then
39728       cat >>confdefs.h <<_ACEOF
39729 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39730 _ACEOF
39731
39732
39733     else
39734       :
39735
39736     fi
39737   done
39738
39739
39740                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39741 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39742     cat >conftest.$ac_ext <<_ACEOF
39743 /* confdefs.h.  */
39744 _ACEOF
39745 cat confdefs.h >>conftest.$ac_ext
39746 cat >>conftest.$ac_ext <<_ACEOF
39747 /* end confdefs.h.  */
39748 #include <wchar.h>
39749 int
39750 main ()
39751 {
39752 &_vsnwprintf;
39753   ;
39754   return 0;
39755 }
39756 _ACEOF
39757 rm -f conftest.$ac_objext
39758 if { (ac_try="$ac_compile"
39759 case "(($ac_try" in
39760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39761   *) ac_try_echo=$ac_try;;
39762 esac
39763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39764   (eval "$ac_compile") 2>conftest.er1
39765   ac_status=$?
39766   grep -v '^ *+' conftest.er1 >conftest.err
39767   rm -f conftest.er1
39768   cat conftest.err >&5
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); } && {
39771          test -z "$ac_c_werror_flag" ||
39772          test ! -s conftest.err
39773        } && test -s conftest.$ac_objext; then
39774   { echo "$as_me:$LINENO: result: yes" >&5
39775 echo "${ECHO_T}yes" >&6; }
39776                     cat >>confdefs.h <<\_ACEOF
39777 #define HAVE__VSNWPRINTF 1
39778 _ACEOF
39779
39780 else
39781   echo "$as_me: failed program was:" >&5
39782 sed 's/^/| /' conftest.$ac_ext >&5
39783
39784         { echo "$as_me:$LINENO: result: no" >&5
39785 echo "${ECHO_T}no" >&6; }
39786 fi
39787
39788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39789 fi
39790
39791 if test "$wxUSE_FILE" = "yes"; then
39792
39793   for wx_func in fsync
39794   do
39795     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39796 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39797 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39798   echo $ECHO_N "(cached) $ECHO_C" >&6
39799 else
39800
39801         cat >conftest.$ac_ext <<_ACEOF
39802
39803             /* confdefs.h.  */
39804 _ACEOF
39805 cat confdefs.h >>conftest.$ac_ext
39806 cat >>conftest.$ac_ext <<_ACEOF
39807 /* end confdefs.h.  */
39808
39809
39810                 $ac_includes_default
39811
39812 int
39813 main ()
39814 {
39815
39816                 #ifndef $wx_func
39817                   &$wx_func;
39818                 #endif
39819
39820
39821   ;
39822   return 0;
39823 }
39824
39825 _ACEOF
39826 rm -f conftest.$ac_objext conftest$ac_exeext
39827 if { (ac_try="$ac_link"
39828 case "(($ac_try" in
39829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830   *) ac_try_echo=$ac_try;;
39831 esac
39832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39833   (eval "$ac_link") 2>conftest.er1
39834   ac_status=$?
39835   grep -v '^ *+' conftest.er1 >conftest.err
39836   rm -f conftest.er1
39837   cat conftest.err >&5
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); } && {
39840          test -z "$ac_c_werror_flag" ||
39841          test ! -s conftest.err
39842        } && test -s conftest$ac_exeext &&
39843        $as_test_x conftest$ac_exeext; then
39844   eval wx_cv_func_$wx_func=yes
39845 else
39846   echo "$as_me: failed program was:" >&5
39847 sed 's/^/| /' conftest.$ac_ext >&5
39848
39849         eval wx_cv_func_$wx_func=no
39850 fi
39851
39852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39853       conftest$ac_exeext conftest.$ac_ext
39854
39855 fi
39856 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39857                { echo "$as_me:$LINENO: result: $ac_res" >&5
39858 echo "${ECHO_T}$ac_res" >&6; }
39859
39860     if eval test \$wx_cv_func_$wx_func = yes
39861     then
39862       cat >>confdefs.h <<_ACEOF
39863 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39864 _ACEOF
39865
39866
39867     else
39868       :
39869
39870     fi
39871   done
39872
39873 fi
39874
39875 ac_ext=cpp
39876 ac_cpp='$CXXCPP $CPPFLAGS'
39877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39880
39881
39882   for wx_func in round
39883   do
39884     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39885 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39886 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39887   echo $ECHO_N "(cached) $ECHO_C" >&6
39888 else
39889
39890         cat >conftest.$ac_ext <<_ACEOF
39891
39892             /* confdefs.h.  */
39893 _ACEOF
39894 cat confdefs.h >>conftest.$ac_ext
39895 cat >>conftest.$ac_ext <<_ACEOF
39896 /* end confdefs.h.  */
39897
39898                 #include <math.h>
39899                 $ac_includes_default
39900
39901 int
39902 main ()
39903 {
39904
39905                 #ifndef $wx_func
39906                   &$wx_func;
39907                 #endif
39908
39909
39910   ;
39911   return 0;
39912 }
39913
39914 _ACEOF
39915 rm -f conftest.$ac_objext conftest$ac_exeext
39916 if { (ac_try="$ac_link"
39917 case "(($ac_try" in
39918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39919   *) ac_try_echo=$ac_try;;
39920 esac
39921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39922   (eval "$ac_link") 2>conftest.er1
39923   ac_status=$?
39924   grep -v '^ *+' conftest.er1 >conftest.err
39925   rm -f conftest.er1
39926   cat conftest.err >&5
39927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39928   (exit $ac_status); } && {
39929          test -z "$ac_cxx_werror_flag" ||
39930          test ! -s conftest.err
39931        } && test -s conftest$ac_exeext &&
39932        $as_test_x conftest$ac_exeext; then
39933   eval wx_cv_func_$wx_func=yes
39934 else
39935   echo "$as_me: failed program was:" >&5
39936 sed 's/^/| /' conftest.$ac_ext >&5
39937
39938         eval wx_cv_func_$wx_func=no
39939 fi
39940
39941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39942       conftest$ac_exeext conftest.$ac_ext
39943
39944 fi
39945 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39946                { echo "$as_me:$LINENO: result: $ac_res" >&5
39947 echo "${ECHO_T}$ac_res" >&6; }
39948
39949     if eval test \$wx_cv_func_$wx_func = yes
39950     then
39951       cat >>confdefs.h <<_ACEOF
39952 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39953 _ACEOF
39954
39955
39956     else
39957       :
39958
39959     fi
39960   done
39961
39962 ac_ext=c
39963 ac_cpp='$CPP $CPPFLAGS'
39964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39967
39968
39969 if test "$TOOLKIT" != "MSW"; then
39970
39971 if test "$wxUSE_LIBICONV" != "no" ; then
39972
39973
39974
39975 # Check whether --with-libiconv-prefix was given.
39976 if test "${with_libiconv_prefix+set}" = set; then
39977   withval=$with_libiconv_prefix;
39978     for dir in `echo "$withval" | tr : ' '`; do
39979       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
39980       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
39981     done
39982
39983 fi
39984
39985
39986   { echo "$as_me:$LINENO: checking for iconv" >&5
39987 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
39988 if test "${am_cv_func_iconv+set}" = set; then
39989   echo $ECHO_N "(cached) $ECHO_C" >&6
39990 else
39991
39992     am_cv_func_iconv="no, consider installing GNU libiconv"
39993     am_cv_lib_iconv=no
39994     cat >conftest.$ac_ext <<_ACEOF
39995 /* confdefs.h.  */
39996 _ACEOF
39997 cat confdefs.h >>conftest.$ac_ext
39998 cat >>conftest.$ac_ext <<_ACEOF
39999 /* end confdefs.h.  */
40000 #include <stdlib.h>
40001 #include <iconv.h>
40002 int
40003 main ()
40004 {
40005 iconv_t cd = iconv_open("","");
40006        iconv(cd,NULL,NULL,NULL,NULL);
40007        iconv_close(cd);
40008   ;
40009   return 0;
40010 }
40011 _ACEOF
40012 rm -f conftest.$ac_objext conftest$ac_exeext
40013 if { (ac_try="$ac_link"
40014 case "(($ac_try" in
40015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40016   *) ac_try_echo=$ac_try;;
40017 esac
40018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40019   (eval "$ac_link") 2>conftest.er1
40020   ac_status=$?
40021   grep -v '^ *+' conftest.er1 >conftest.err
40022   rm -f conftest.er1
40023   cat conftest.err >&5
40024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025   (exit $ac_status); } && {
40026          test -z "$ac_c_werror_flag" ||
40027          test ! -s conftest.err
40028        } && test -s conftest$ac_exeext &&
40029        $as_test_x conftest$ac_exeext; then
40030   am_cv_func_iconv=yes
40031 else
40032   echo "$as_me: failed program was:" >&5
40033 sed 's/^/| /' conftest.$ac_ext >&5
40034
40035
40036 fi
40037
40038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40039       conftest$ac_exeext conftest.$ac_ext
40040     if test "$am_cv_func_iconv" != yes; then
40041       am_save_LIBS="$LIBS"
40042       LIBS="$LIBS -liconv"
40043       cat >conftest.$ac_ext <<_ACEOF
40044 /* confdefs.h.  */
40045 _ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h.  */
40049 #include <stdlib.h>
40050 #include <iconv.h>
40051 int
40052 main ()
40053 {
40054 iconv_t cd = iconv_open("","");
40055          iconv(cd,NULL,NULL,NULL,NULL);
40056          iconv_close(cd);
40057   ;
40058   return 0;
40059 }
40060 _ACEOF
40061 rm -f conftest.$ac_objext conftest$ac_exeext
40062 if { (ac_try="$ac_link"
40063 case "(($ac_try" in
40064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40065   *) ac_try_echo=$ac_try;;
40066 esac
40067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40068   (eval "$ac_link") 2>conftest.er1
40069   ac_status=$?
40070   grep -v '^ *+' conftest.er1 >conftest.err
40071   rm -f conftest.er1
40072   cat conftest.err >&5
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); } && {
40075          test -z "$ac_c_werror_flag" ||
40076          test ! -s conftest.err
40077        } && test -s conftest$ac_exeext &&
40078        $as_test_x conftest$ac_exeext; then
40079   am_cv_lib_iconv=yes
40080         am_cv_func_iconv=yes
40081 else
40082   echo "$as_me: failed program was:" >&5
40083 sed 's/^/| /' conftest.$ac_ext >&5
40084
40085
40086 fi
40087
40088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40089       conftest$ac_exeext conftest.$ac_ext
40090       LIBS="$am_save_LIBS"
40091     fi
40092
40093 fi
40094 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40095 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40096   if test "$am_cv_func_iconv" = yes; then
40097
40098 cat >>confdefs.h <<\_ACEOF
40099 #define HAVE_ICONV 1
40100 _ACEOF
40101
40102     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
40103 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
40104 if test "${wx_cv_func_iconv_const+set}" = set; then
40105   echo $ECHO_N "(cached) $ECHO_C" >&6
40106 else
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 #include <stdlib.h>
40115 #include <iconv.h>
40116 extern
40117 #ifdef __cplusplus
40118 "C"
40119 #endif
40120 #if defined(__STDC__) || defined(__cplusplus)
40121 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40122 #else
40123 size_t iconv();
40124 #endif
40125
40126 int
40127 main ()
40128 {
40129
40130   ;
40131   return 0;
40132 }
40133 _ACEOF
40134 rm -f conftest.$ac_objext
40135 if { (ac_try="$ac_compile"
40136 case "(($ac_try" in
40137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40138   *) ac_try_echo=$ac_try;;
40139 esac
40140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40141   (eval "$ac_compile") 2>conftest.er1
40142   ac_status=$?
40143   grep -v '^ *+' conftest.er1 >conftest.err
40144   rm -f conftest.er1
40145   cat conftest.err >&5
40146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); } && {
40148          test -z "$ac_c_werror_flag" ||
40149          test ! -s conftest.err
40150        } && test -s conftest.$ac_objext; then
40151   wx_cv_func_iconv_const="no"
40152 else
40153   echo "$as_me: failed program was:" >&5
40154 sed 's/^/| /' conftest.$ac_ext >&5
40155
40156         wx_cv_func_iconv_const="yes"
40157
40158 fi
40159
40160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40161
40162 fi
40163 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
40164 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
40165
40166     iconv_const=
40167     if test "x$wx_cv_func_iconv_const" = "xyes"; then
40168         iconv_const="const"
40169     fi
40170
40171
40172 cat >>confdefs.h <<_ACEOF
40173 #define ICONV_CONST $iconv_const
40174 _ACEOF
40175
40176   fi
40177   LIBICONV=
40178   if test "$am_cv_lib_iconv" = yes; then
40179     LIBICONV="-liconv"
40180   fi
40181
40182
40183     LIBS="$LIBICONV $LIBS"
40184 fi
40185
40186 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40187
40188 for ac_func in sigaction
40189 do
40190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40194   echo $ECHO_N "(cached) $ECHO_C" >&6
40195 else
40196   cat >conftest.$ac_ext <<_ACEOF
40197 /* confdefs.h.  */
40198 _ACEOF
40199 cat confdefs.h >>conftest.$ac_ext
40200 cat >>conftest.$ac_ext <<_ACEOF
40201 /* end confdefs.h.  */
40202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40204 #define $ac_func innocuous_$ac_func
40205
40206 /* System header to define __stub macros and hopefully few prototypes,
40207     which can conflict with char $ac_func (); below.
40208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40209     <limits.h> exists even on freestanding compilers.  */
40210
40211 #ifdef __STDC__
40212 # include <limits.h>
40213 #else
40214 # include <assert.h>
40215 #endif
40216
40217 #undef $ac_func
40218
40219 /* Override any GCC internal prototype to avoid an error.
40220    Use char because int might match the return type of a GCC
40221    builtin and then its argument prototype would still apply.  */
40222 #ifdef __cplusplus
40223 extern "C"
40224 #endif
40225 char $ac_func ();
40226 /* The GNU C library defines this for functions which it implements
40227     to always fail with ENOSYS.  Some functions are actually named
40228     something starting with __ and the normal name is an alias.  */
40229 #if defined __stub_$ac_func || defined __stub___$ac_func
40230 choke me
40231 #endif
40232
40233 int
40234 main ()
40235 {
40236 return $ac_func ();
40237   ;
40238   return 0;
40239 }
40240 _ACEOF
40241 rm -f conftest.$ac_objext conftest$ac_exeext
40242 if { (ac_try="$ac_link"
40243 case "(($ac_try" in
40244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40245   *) ac_try_echo=$ac_try;;
40246 esac
40247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40248   (eval "$ac_link") 2>conftest.er1
40249   ac_status=$?
40250   grep -v '^ *+' conftest.er1 >conftest.err
40251   rm -f conftest.er1
40252   cat conftest.err >&5
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); } && {
40255          test -z "$ac_c_werror_flag" ||
40256          test ! -s conftest.err
40257        } && test -s conftest$ac_exeext &&
40258        $as_test_x conftest$ac_exeext; then
40259   eval "$as_ac_var=yes"
40260 else
40261   echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40263
40264         eval "$as_ac_var=no"
40265 fi
40266
40267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40268       conftest$ac_exeext conftest.$ac_ext
40269 fi
40270 ac_res=`eval echo '${'$as_ac_var'}'`
40271                { echo "$as_me:$LINENO: result: $ac_res" >&5
40272 echo "${ECHO_T}$ac_res" >&6; }
40273 if test `eval echo '${'$as_ac_var'}'` = yes; then
40274   cat >>confdefs.h <<_ACEOF
40275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40276 _ACEOF
40277
40278 fi
40279 done
40280
40281
40282     if test "$ac_cv_func_sigaction" = "no"; then
40283         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
40284 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
40285         wxUSE_ON_FATAL_EXCEPTION=no
40286     fi
40287
40288     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40289       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
40290 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
40291 if test "${wx_cv_type_sa_handler+set}" = set; then
40292   echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294
40295                 ac_ext=cpp
40296 ac_cpp='$CXXCPP $CPPFLAGS'
40297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40300
40301         cat >conftest.$ac_ext <<_ACEOF
40302 /* confdefs.h.  */
40303 _ACEOF
40304 cat confdefs.h >>conftest.$ac_ext
40305 cat >>conftest.$ac_ext <<_ACEOF
40306 /* end confdefs.h.  */
40307 #include <signal.h>
40308 int
40309 main ()
40310 {
40311
40312                         extern void testSigHandler(int);
40313
40314                         struct sigaction sa;
40315                         sa.sa_handler = testSigHandler;
40316
40317   ;
40318   return 0;
40319 }
40320 _ACEOF
40321 rm -f conftest.$ac_objext
40322 if { (ac_try="$ac_compile"
40323 case "(($ac_try" in
40324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40325   *) ac_try_echo=$ac_try;;
40326 esac
40327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40328   (eval "$ac_compile") 2>conftest.er1
40329   ac_status=$?
40330   grep -v '^ *+' conftest.er1 >conftest.err
40331   rm -f conftest.er1
40332   cat conftest.err >&5
40333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334   (exit $ac_status); } && {
40335          test -z "$ac_cxx_werror_flag" ||
40336          test ! -s conftest.err
40337        } && test -s conftest.$ac_objext; then
40338
40339                         wx_cv_type_sa_handler=int
40340
40341 else
40342   echo "$as_me: failed program was:" >&5
40343 sed 's/^/| /' conftest.$ac_ext >&5
40344
40345
40346                         wx_cv_type_sa_handler=void
40347
40348 fi
40349
40350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40351         ac_ext=c
40352 ac_cpp='$CPP $CPPFLAGS'
40353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40356
40357
40358 fi
40359 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
40360 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
40361
40362       cat >>confdefs.h <<_ACEOF
40363 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
40364 _ACEOF
40365
40366     fi
40367 fi
40368
40369 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40370     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
40371 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
40372 if test "${wx_cv_func_backtrace+set}" = set; then
40373   echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40375
40376             ac_ext=cpp
40377 ac_cpp='$CXXCPP $CPPFLAGS'
40378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40381
40382             cat >conftest.$ac_ext <<_ACEOF
40383 /* confdefs.h.  */
40384 _ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h.  */
40388 #include <execinfo.h>
40389 int
40390 main ()
40391 {
40392
40393                     void *trace[1];
40394                     char **messages;
40395
40396                     backtrace(trace, 1);
40397                     messages = backtrace_symbols(trace, 1);
40398
40399   ;
40400   return 0;
40401 }
40402 _ACEOF
40403 rm -f conftest.$ac_objext
40404 if { (ac_try="$ac_compile"
40405 case "(($ac_try" in
40406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40407   *) ac_try_echo=$ac_try;;
40408 esac
40409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40410   (eval "$ac_compile") 2>conftest.er1
40411   ac_status=$?
40412   grep -v '^ *+' conftest.er1 >conftest.err
40413   rm -f conftest.er1
40414   cat conftest.err >&5
40415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416   (exit $ac_status); } && {
40417          test -z "$ac_cxx_werror_flag" ||
40418          test ! -s conftest.err
40419        } && test -s conftest.$ac_objext; then
40420   wx_cv_func_backtrace=yes
40421 else
40422   echo "$as_me: failed program was:" >&5
40423 sed 's/^/| /' conftest.$ac_ext >&5
40424
40425         wx_cv_func_backtrace=no
40426
40427 fi
40428
40429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40430             ac_ext=c
40431 ac_cpp='$CPP $CPPFLAGS'
40432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40435
40436
40437
40438 fi
40439 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
40440 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
40441
40442
40443     if test "$wx_cv_func_backtrace" = "no"; then
40444         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
40445 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
40446         wxUSE_STACKWALKER=no
40447     else
40448         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
40449 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
40450 if test "${wx_cv_func_cxa_demangle+set}" = set; then
40451   echo $ECHO_N "(cached) $ECHO_C" >&6
40452 else
40453
40454                 ac_ext=cpp
40455 ac_cpp='$CXXCPP $CPPFLAGS'
40456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40459
40460                 cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466 #include <cxxabi.h>
40467 int
40468 main ()
40469 {
40470
40471                         int rc;
40472                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
40473
40474   ;
40475   return 0;
40476 }
40477 _ACEOF
40478 rm -f conftest.$ac_objext conftest$ac_exeext
40479 if { (ac_try="$ac_link"
40480 case "(($ac_try" in
40481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40482   *) ac_try_echo=$ac_try;;
40483 esac
40484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40485   (eval "$ac_link") 2>conftest.er1
40486   ac_status=$?
40487   grep -v '^ *+' conftest.er1 >conftest.err
40488   rm -f conftest.er1
40489   cat conftest.err >&5
40490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491   (exit $ac_status); } && {
40492          test -z "$ac_cxx_werror_flag" ||
40493          test ! -s conftest.err
40494        } && test -s conftest$ac_exeext &&
40495        $as_test_x conftest$ac_exeext; then
40496   wx_cv_func_cxa_demangle=yes
40497 else
40498   echo "$as_me: failed program was:" >&5
40499 sed 's/^/| /' conftest.$ac_ext >&5
40500
40501         wx_cv_func_cxa_demangle=no
40502
40503 fi
40504
40505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40506       conftest$ac_exeext conftest.$ac_ext
40507                 ac_ext=c
40508 ac_cpp='$CPP $CPPFLAGS'
40509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40512
40513
40514
40515 fi
40516 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
40517 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
40518
40519         if test "$wx_cv_func_cxa_demangle" = "yes"; then
40520             cat >>confdefs.h <<\_ACEOF
40521 #define HAVE_CXA_DEMANGLE 1
40522 _ACEOF
40523
40524         fi
40525     fi
40526 fi
40527
40528 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
40529     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
40530 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
40531     wxUSE_STACKWALKER=no
40532 fi
40533
40534
40535
40536
40537 for ac_func in mkstemp mktemp
40538 do
40539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40543   echo $ECHO_N "(cached) $ECHO_C" >&6
40544 else
40545   cat >conftest.$ac_ext <<_ACEOF
40546 /* confdefs.h.  */
40547 _ACEOF
40548 cat confdefs.h >>conftest.$ac_ext
40549 cat >>conftest.$ac_ext <<_ACEOF
40550 /* end confdefs.h.  */
40551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40553 #define $ac_func innocuous_$ac_func
40554
40555 /* System header to define __stub macros and hopefully few prototypes,
40556     which can conflict with char $ac_func (); below.
40557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40558     <limits.h> exists even on freestanding compilers.  */
40559
40560 #ifdef __STDC__
40561 # include <limits.h>
40562 #else
40563 # include <assert.h>
40564 #endif
40565
40566 #undef $ac_func
40567
40568 /* Override any GCC internal prototype to avoid an error.
40569    Use char because int might match the return type of a GCC
40570    builtin and then its argument prototype would still apply.  */
40571 #ifdef __cplusplus
40572 extern "C"
40573 #endif
40574 char $ac_func ();
40575 /* The GNU C library defines this for functions which it implements
40576     to always fail with ENOSYS.  Some functions are actually named
40577     something starting with __ and the normal name is an alias.  */
40578 #if defined __stub_$ac_func || defined __stub___$ac_func
40579 choke me
40580 #endif
40581
40582 int
40583 main ()
40584 {
40585 return $ac_func ();
40586   ;
40587   return 0;
40588 }
40589 _ACEOF
40590 rm -f conftest.$ac_objext conftest$ac_exeext
40591 if { (ac_try="$ac_link"
40592 case "(($ac_try" in
40593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40594   *) ac_try_echo=$ac_try;;
40595 esac
40596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40597   (eval "$ac_link") 2>conftest.er1
40598   ac_status=$?
40599   grep -v '^ *+' conftest.er1 >conftest.err
40600   rm -f conftest.er1
40601   cat conftest.err >&5
40602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603   (exit $ac_status); } && {
40604          test -z "$ac_c_werror_flag" ||
40605          test ! -s conftest.err
40606        } && test -s conftest$ac_exeext &&
40607        $as_test_x conftest$ac_exeext; then
40608   eval "$as_ac_var=yes"
40609 else
40610   echo "$as_me: failed program was:" >&5
40611 sed 's/^/| /' conftest.$ac_ext >&5
40612
40613         eval "$as_ac_var=no"
40614 fi
40615
40616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40617       conftest$ac_exeext conftest.$ac_ext
40618 fi
40619 ac_res=`eval echo '${'$as_ac_var'}'`
40620                { echo "$as_me:$LINENO: result: $ac_res" >&5
40621 echo "${ECHO_T}$ac_res" >&6; }
40622 if test `eval echo '${'$as_ac_var'}'` = yes; then
40623   cat >>confdefs.h <<_ACEOF
40624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40625 _ACEOF
40626  break
40627 fi
40628 done
40629
40630
40631 { echo "$as_me:$LINENO: checking for statfs" >&5
40632 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40633 if test "${wx_cv_func_statfs+set}" = set; then
40634   echo $ECHO_N "(cached) $ECHO_C" >&6
40635 else
40636   cat >conftest.$ac_ext <<_ACEOF
40637 /* confdefs.h.  */
40638 _ACEOF
40639 cat confdefs.h >>conftest.$ac_ext
40640 cat >>conftest.$ac_ext <<_ACEOF
40641 /* end confdefs.h.  */
40642
40643              #if defined(__BSD__)
40644              #include <sys/param.h>
40645              #include <sys/mount.h>
40646              #else
40647              #include <sys/vfs.h>
40648              #endif
40649
40650 int
40651 main ()
40652 {
40653
40654              long l;
40655              struct statfs fs;
40656              statfs("/", &fs);
40657              l = fs.f_bsize;
40658              l += fs.f_blocks;
40659              l += fs.f_bavail;
40660
40661   ;
40662   return 0;
40663 }
40664 _ACEOF
40665 rm -f conftest.$ac_objext
40666 if { (ac_try="$ac_compile"
40667 case "(($ac_try" in
40668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40669   *) ac_try_echo=$ac_try;;
40670 esac
40671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40672   (eval "$ac_compile") 2>conftest.er1
40673   ac_status=$?
40674   grep -v '^ *+' conftest.er1 >conftest.err
40675   rm -f conftest.er1
40676   cat conftest.err >&5
40677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678   (exit $ac_status); } && {
40679          test -z "$ac_c_werror_flag" ||
40680          test ! -s conftest.err
40681        } && test -s conftest.$ac_objext; then
40682   wx_cv_func_statfs=yes
40683 else
40684   echo "$as_me: failed program was:" >&5
40685 sed 's/^/| /' conftest.$ac_ext >&5
40686
40687         wx_cv_func_statfs=no
40688
40689 fi
40690
40691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40692
40693 fi
40694 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40695 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40696
40697 if test "$wx_cv_func_statfs" = "yes"; then
40698         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40699 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40700 if test "${wx_cv_func_statfs_decl+set}" = set; then
40701   echo $ECHO_N "(cached) $ECHO_C" >&6
40702 else
40703   ac_ext=cpp
40704 ac_cpp='$CXXCPP $CPPFLAGS'
40705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40708
40709         cat >conftest.$ac_ext <<_ACEOF
40710 /* confdefs.h.  */
40711 _ACEOF
40712 cat confdefs.h >>conftest.$ac_ext
40713 cat >>conftest.$ac_ext <<_ACEOF
40714 /* end confdefs.h.  */
40715
40716                  #if defined(__BSD__)
40717                  #include <sys/param.h>
40718                  #include <sys/mount.h>
40719                  #else
40720                  #include <sys/vfs.h>
40721                  #endif
40722
40723 int
40724 main ()
40725 {
40726
40727                 struct statfs fs;
40728                 statfs("", &fs);
40729
40730   ;
40731   return 0;
40732 }
40733 _ACEOF
40734 rm -f conftest.$ac_objext
40735 if { (ac_try="$ac_compile"
40736 case "(($ac_try" in
40737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40738   *) ac_try_echo=$ac_try;;
40739 esac
40740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40741   (eval "$ac_compile") 2>conftest.er1
40742   ac_status=$?
40743   grep -v '^ *+' conftest.er1 >conftest.err
40744   rm -f conftest.er1
40745   cat conftest.err >&5
40746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); } && {
40748          test -z "$ac_cxx_werror_flag" ||
40749          test ! -s conftest.err
40750        } && test -s conftest.$ac_objext; then
40751   wx_cv_func_statfs_decl=yes
40752 else
40753   echo "$as_me: failed program was:" >&5
40754 sed 's/^/| /' conftest.$ac_ext >&5
40755
40756         wx_cv_func_statfs_decl=no
40757
40758 fi
40759
40760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40761         ac_ext=c
40762 ac_cpp='$CPP $CPPFLAGS'
40763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40766
40767
40768 fi
40769 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40770 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40771
40772     if test "$wx_cv_func_statfs_decl" = "yes"; then
40773         cat >>confdefs.h <<\_ACEOF
40774 #define HAVE_STATFS_DECL 1
40775 _ACEOF
40776
40777     fi
40778
40779     wx_cv_type_statvfs_t="struct statfs"
40780     cat >>confdefs.h <<\_ACEOF
40781 #define HAVE_STATFS 1
40782 _ACEOF
40783
40784 else
40785     { echo "$as_me:$LINENO: checking for statvfs" >&5
40786 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40787 if test "${wx_cv_func_statvfs+set}" = set; then
40788   echo $ECHO_N "(cached) $ECHO_C" >&6
40789 else
40790   cat >conftest.$ac_ext <<_ACEOF
40791 /* confdefs.h.  */
40792 _ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h.  */
40796
40797                 #include <stddef.h>
40798                 #include <sys/statvfs.h>
40799
40800 int
40801 main ()
40802 {
40803
40804                 statvfs("/", NULL);
40805
40806   ;
40807   return 0;
40808 }
40809 _ACEOF
40810 rm -f conftest.$ac_objext
40811 if { (ac_try="$ac_compile"
40812 case "(($ac_try" in
40813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40814   *) ac_try_echo=$ac_try;;
40815 esac
40816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40817   (eval "$ac_compile") 2>conftest.er1
40818   ac_status=$?
40819   grep -v '^ *+' conftest.er1 >conftest.err
40820   rm -f conftest.er1
40821   cat conftest.err >&5
40822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823   (exit $ac_status); } && {
40824          test -z "$ac_c_werror_flag" ||
40825          test ! -s conftest.err
40826        } && test -s conftest.$ac_objext; then
40827   wx_cv_func_statvfs=yes
40828 else
40829   echo "$as_me: failed program was:" >&5
40830 sed 's/^/| /' conftest.$ac_ext >&5
40831
40832         wx_cv_func_statvfs=no
40833
40834 fi
40835
40836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40837
40838 fi
40839 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40840 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40841
40842     if test "$wx_cv_func_statvfs" = "yes"; then
40843                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40844 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40845 if test "${wx_cv_type_statvfs_t+set}" = set; then
40846   echo $ECHO_N "(cached) $ECHO_C" >&6
40847 else
40848   ac_ext=cpp
40849 ac_cpp='$CXXCPP $CPPFLAGS'
40850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40853
40854             cat >conftest.$ac_ext <<_ACEOF
40855 /* confdefs.h.  */
40856 _ACEOF
40857 cat confdefs.h >>conftest.$ac_ext
40858 cat >>conftest.$ac_ext <<_ACEOF
40859 /* end confdefs.h.  */
40860
40861                     #include <sys/statvfs.h>
40862
40863 int
40864 main ()
40865 {
40866
40867                     long l;
40868                     statvfs_t fs;
40869                     statvfs("/", &fs);
40870                     l = fs.f_bsize;
40871                     l += fs.f_blocks;
40872                     l += fs.f_bavail;
40873
40874   ;
40875   return 0;
40876 }
40877 _ACEOF
40878 rm -f conftest.$ac_objext
40879 if { (ac_try="$ac_compile"
40880 case "(($ac_try" in
40881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40882   *) ac_try_echo=$ac_try;;
40883 esac
40884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40885   (eval "$ac_compile") 2>conftest.er1
40886   ac_status=$?
40887   grep -v '^ *+' conftest.er1 >conftest.err
40888   rm -f conftest.er1
40889   cat conftest.err >&5
40890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891   (exit $ac_status); } && {
40892          test -z "$ac_cxx_werror_flag" ||
40893          test ! -s conftest.err
40894        } && test -s conftest.$ac_objext; then
40895   wx_cv_type_statvfs_t=statvfs_t
40896 else
40897   echo "$as_me: failed program was:" >&5
40898 sed 's/^/| /' conftest.$ac_ext >&5
40899
40900
40901                     cat >conftest.$ac_ext <<_ACEOF
40902 /* confdefs.h.  */
40903 _ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h.  */
40907
40908                             #include <sys/statvfs.h>
40909
40910 int
40911 main ()
40912 {
40913
40914                             long l;
40915                             struct statvfs fs;
40916                             statvfs("/", &fs);
40917                             l = fs.f_bsize;
40918                             l += fs.f_blocks;
40919                             l += fs.f_bavail;
40920
40921   ;
40922   return 0;
40923 }
40924 _ACEOF
40925 rm -f conftest.$ac_objext
40926 if { (ac_try="$ac_compile"
40927 case "(($ac_try" in
40928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40929   *) ac_try_echo=$ac_try;;
40930 esac
40931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40932   (eval "$ac_compile") 2>conftest.er1
40933   ac_status=$?
40934   grep -v '^ *+' conftest.er1 >conftest.err
40935   rm -f conftest.er1
40936   cat conftest.err >&5
40937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938   (exit $ac_status); } && {
40939          test -z "$ac_cxx_werror_flag" ||
40940          test ! -s conftest.err
40941        } && test -s conftest.$ac_objext; then
40942   wx_cv_type_statvfs_t="struct statvfs"
40943 else
40944   echo "$as_me: failed program was:" >&5
40945 sed 's/^/| /' conftest.$ac_ext >&5
40946
40947         wx_cv_type_statvfs_t="unknown"
40948
40949 fi
40950
40951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40952
40953
40954 fi
40955
40956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40957             ac_ext=c
40958 ac_cpp='$CPP $CPPFLAGS'
40959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40962
40963
40964 fi
40965 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
40966 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
40967
40968         if test "$wx_cv_type_statvfs_t" != "unknown"; then
40969             cat >>confdefs.h <<\_ACEOF
40970 #define HAVE_STATVFS 1
40971 _ACEOF
40972
40973         fi
40974     else
40975                 wx_cv_type_statvfs_t="unknown"
40976     fi
40977 fi
40978
40979 if test "$wx_cv_type_statvfs_t" != "unknown"; then
40980     cat >>confdefs.h <<_ACEOF
40981 #define WX_STATFS_T $wx_cv_type_statvfs_t
40982 _ACEOF
40983
40984 else
40985     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
40986 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
40987 fi
40988
40989 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40990
40991
40992 for ac_func in fcntl flock
40993 do
40994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40998   echo $ECHO_N "(cached) $ECHO_C" >&6
40999 else
41000   cat >conftest.$ac_ext <<_ACEOF
41001 /* confdefs.h.  */
41002 _ACEOF
41003 cat confdefs.h >>conftest.$ac_ext
41004 cat >>conftest.$ac_ext <<_ACEOF
41005 /* end confdefs.h.  */
41006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41008 #define $ac_func innocuous_$ac_func
41009
41010 /* System header to define __stub macros and hopefully few prototypes,
41011     which can conflict with char $ac_func (); below.
41012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41013     <limits.h> exists even on freestanding compilers.  */
41014
41015 #ifdef __STDC__
41016 # include <limits.h>
41017 #else
41018 # include <assert.h>
41019 #endif
41020
41021 #undef $ac_func
41022
41023 /* Override any GCC internal prototype to avoid an error.
41024    Use char because int might match the return type of a GCC
41025    builtin and then its argument prototype would still apply.  */
41026 #ifdef __cplusplus
41027 extern "C"
41028 #endif
41029 char $ac_func ();
41030 /* The GNU C library defines this for functions which it implements
41031     to always fail with ENOSYS.  Some functions are actually named
41032     something starting with __ and the normal name is an alias.  */
41033 #if defined __stub_$ac_func || defined __stub___$ac_func
41034 choke me
41035 #endif
41036
41037 int
41038 main ()
41039 {
41040 return $ac_func ();
41041   ;
41042   return 0;
41043 }
41044 _ACEOF
41045 rm -f conftest.$ac_objext conftest$ac_exeext
41046 if { (ac_try="$ac_link"
41047 case "(($ac_try" in
41048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41049   *) ac_try_echo=$ac_try;;
41050 esac
41051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41052   (eval "$ac_link") 2>conftest.er1
41053   ac_status=$?
41054   grep -v '^ *+' conftest.er1 >conftest.err
41055   rm -f conftest.er1
41056   cat conftest.err >&5
41057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058   (exit $ac_status); } && {
41059          test -z "$ac_c_werror_flag" ||
41060          test ! -s conftest.err
41061        } && test -s conftest$ac_exeext &&
41062        $as_test_x conftest$ac_exeext; then
41063   eval "$as_ac_var=yes"
41064 else
41065   echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41067
41068         eval "$as_ac_var=no"
41069 fi
41070
41071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41072       conftest$ac_exeext conftest.$ac_ext
41073 fi
41074 ac_res=`eval echo '${'$as_ac_var'}'`
41075                { echo "$as_me:$LINENO: result: $ac_res" >&5
41076 echo "${ECHO_T}$ac_res" >&6; }
41077 if test `eval echo '${'$as_ac_var'}'` = yes; then
41078   cat >>confdefs.h <<_ACEOF
41079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41080 _ACEOF
41081  break
41082 fi
41083 done
41084
41085
41086     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
41087         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
41088 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
41089         wxUSE_SNGLINST_CHECKER=no
41090     fi
41091 fi
41092
41093
41094
41095 for ac_func in setenv putenv
41096 do
41097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41101   echo $ECHO_N "(cached) $ECHO_C" >&6
41102 else
41103   cat >conftest.$ac_ext <<_ACEOF
41104 /* confdefs.h.  */
41105 _ACEOF
41106 cat confdefs.h >>conftest.$ac_ext
41107 cat >>conftest.$ac_ext <<_ACEOF
41108 /* end confdefs.h.  */
41109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41111 #define $ac_func innocuous_$ac_func
41112
41113 /* System header to define __stub macros and hopefully few prototypes,
41114     which can conflict with char $ac_func (); below.
41115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41116     <limits.h> exists even on freestanding compilers.  */
41117
41118 #ifdef __STDC__
41119 # include <limits.h>
41120 #else
41121 # include <assert.h>
41122 #endif
41123
41124 #undef $ac_func
41125
41126 /* Override any GCC internal prototype to avoid an error.
41127    Use char because int might match the return type of a GCC
41128    builtin and then its argument prototype would still apply.  */
41129 #ifdef __cplusplus
41130 extern "C"
41131 #endif
41132 char $ac_func ();
41133 /* The GNU C library defines this for functions which it implements
41134     to always fail with ENOSYS.  Some functions are actually named
41135     something starting with __ and the normal name is an alias.  */
41136 #if defined __stub_$ac_func || defined __stub___$ac_func
41137 choke me
41138 #endif
41139
41140 int
41141 main ()
41142 {
41143 return $ac_func ();
41144   ;
41145   return 0;
41146 }
41147 _ACEOF
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (ac_try="$ac_link"
41150 case "(($ac_try" in
41151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41152   *) ac_try_echo=$ac_try;;
41153 esac
41154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41155   (eval "$ac_link") 2>conftest.er1
41156   ac_status=$?
41157   grep -v '^ *+' conftest.er1 >conftest.err
41158   rm -f conftest.er1
41159   cat conftest.err >&5
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); } && {
41162          test -z "$ac_c_werror_flag" ||
41163          test ! -s conftest.err
41164        } && test -s conftest$ac_exeext &&
41165        $as_test_x conftest$ac_exeext; then
41166   eval "$as_ac_var=yes"
41167 else
41168   echo "$as_me: failed program was:" >&5
41169 sed 's/^/| /' conftest.$ac_ext >&5
41170
41171         eval "$as_ac_var=no"
41172 fi
41173
41174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41175       conftest$ac_exeext conftest.$ac_ext
41176 fi
41177 ac_res=`eval echo '${'$as_ac_var'}'`
41178                { echo "$as_me:$LINENO: result: $ac_res" >&5
41179 echo "${ECHO_T}$ac_res" >&6; }
41180 if test `eval echo '${'$as_ac_var'}'` = yes; then
41181   cat >>confdefs.h <<_ACEOF
41182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41183 _ACEOF
41184  break
41185 fi
41186 done
41187
41188 if test "$ac_cv_func_setenv" = "yes"; then
41189
41190 for ac_func in unsetenv
41191 do
41192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41196   echo $ECHO_N "(cached) $ECHO_C" >&6
41197 else
41198   cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41206 #define $ac_func innocuous_$ac_func
41207
41208 /* System header to define __stub macros and hopefully few prototypes,
41209     which can conflict with char $ac_func (); below.
41210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41211     <limits.h> exists even on freestanding compilers.  */
41212
41213 #ifdef __STDC__
41214 # include <limits.h>
41215 #else
41216 # include <assert.h>
41217 #endif
41218
41219 #undef $ac_func
41220
41221 /* Override any GCC internal prototype to avoid an error.
41222    Use char because int might match the return type of a GCC
41223    builtin and then its argument prototype would still apply.  */
41224 #ifdef __cplusplus
41225 extern "C"
41226 #endif
41227 char $ac_func ();
41228 /* The GNU C library defines this for functions which it implements
41229     to always fail with ENOSYS.  Some functions are actually named
41230     something starting with __ and the normal name is an alias.  */
41231 #if defined __stub_$ac_func || defined __stub___$ac_func
41232 choke me
41233 #endif
41234
41235 int
41236 main ()
41237 {
41238 return $ac_func ();
41239   ;
41240   return 0;
41241 }
41242 _ACEOF
41243 rm -f conftest.$ac_objext conftest$ac_exeext
41244 if { (ac_try="$ac_link"
41245 case "(($ac_try" in
41246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41247   *) ac_try_echo=$ac_try;;
41248 esac
41249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41250   (eval "$ac_link") 2>conftest.er1
41251   ac_status=$?
41252   grep -v '^ *+' conftest.er1 >conftest.err
41253   rm -f conftest.er1
41254   cat conftest.err >&5
41255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41256   (exit $ac_status); } && {
41257          test -z "$ac_c_werror_flag" ||
41258          test ! -s conftest.err
41259        } && test -s conftest$ac_exeext &&
41260        $as_test_x conftest$ac_exeext; then
41261   eval "$as_ac_var=yes"
41262 else
41263   echo "$as_me: failed program was:" >&5
41264 sed 's/^/| /' conftest.$ac_ext >&5
41265
41266         eval "$as_ac_var=no"
41267 fi
41268
41269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41270       conftest$ac_exeext conftest.$ac_ext
41271 fi
41272 ac_res=`eval echo '${'$as_ac_var'}'`
41273                { echo "$as_me:$LINENO: result: $ac_res" >&5
41274 echo "${ECHO_T}$ac_res" >&6; }
41275 if test `eval echo '${'$as_ac_var'}'` = yes; then
41276   cat >>confdefs.h <<_ACEOF
41277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41278 _ACEOF
41279
41280 fi
41281 done
41282
41283 fi
41284
41285 HAVE_SOME_SLEEP_FUNC=0
41286 if test "$USE_BEOS" = 1; then
41287             cat >>confdefs.h <<\_ACEOF
41288 #define HAVE_SLEEP 1
41289 _ACEOF
41290
41291     HAVE_SOME_SLEEP_FUNC=1
41292 fi
41293
41294 if test "$USE_DARWIN" = 1; then
41295             cat >>confdefs.h <<\_ACEOF
41296 #define HAVE_USLEEP 1
41297 _ACEOF
41298
41299     HAVE_SOME_SLEEP_FUNC=1
41300 fi
41301
41302 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
41303         POSIX4_LINK=
41304
41305 for ac_func in nanosleep
41306 do
41307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41311   echo $ECHO_N "(cached) $ECHO_C" >&6
41312 else
41313   cat >conftest.$ac_ext <<_ACEOF
41314 /* confdefs.h.  */
41315 _ACEOF
41316 cat confdefs.h >>conftest.$ac_ext
41317 cat >>conftest.$ac_ext <<_ACEOF
41318 /* end confdefs.h.  */
41319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41321 #define $ac_func innocuous_$ac_func
41322
41323 /* System header to define __stub macros and hopefully few prototypes,
41324     which can conflict with char $ac_func (); below.
41325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41326     <limits.h> exists even on freestanding compilers.  */
41327
41328 #ifdef __STDC__
41329 # include <limits.h>
41330 #else
41331 # include <assert.h>
41332 #endif
41333
41334 #undef $ac_func
41335
41336 /* Override any GCC internal prototype to avoid an error.
41337    Use char because int might match the return type of a GCC
41338    builtin and then its argument prototype would still apply.  */
41339 #ifdef __cplusplus
41340 extern "C"
41341 #endif
41342 char $ac_func ();
41343 /* The GNU C library defines this for functions which it implements
41344     to always fail with ENOSYS.  Some functions are actually named
41345     something starting with __ and the normal name is an alias.  */
41346 #if defined __stub_$ac_func || defined __stub___$ac_func
41347 choke me
41348 #endif
41349
41350 int
41351 main ()
41352 {
41353 return $ac_func ();
41354   ;
41355   return 0;
41356 }
41357 _ACEOF
41358 rm -f conftest.$ac_objext conftest$ac_exeext
41359 if { (ac_try="$ac_link"
41360 case "(($ac_try" in
41361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41362   *) ac_try_echo=$ac_try;;
41363 esac
41364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41365   (eval "$ac_link") 2>conftest.er1
41366   ac_status=$?
41367   grep -v '^ *+' conftest.er1 >conftest.err
41368   rm -f conftest.er1
41369   cat conftest.err >&5
41370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371   (exit $ac_status); } && {
41372          test -z "$ac_c_werror_flag" ||
41373          test ! -s conftest.err
41374        } && test -s conftest$ac_exeext &&
41375        $as_test_x conftest$ac_exeext; then
41376   eval "$as_ac_var=yes"
41377 else
41378   echo "$as_me: failed program was:" >&5
41379 sed 's/^/| /' conftest.$ac_ext >&5
41380
41381         eval "$as_ac_var=no"
41382 fi
41383
41384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41385       conftest$ac_exeext conftest.$ac_ext
41386 fi
41387 ac_res=`eval echo '${'$as_ac_var'}'`
41388                { echo "$as_me:$LINENO: result: $ac_res" >&5
41389 echo "${ECHO_T}$ac_res" >&6; }
41390 if test `eval echo '${'$as_ac_var'}'` = yes; then
41391   cat >>confdefs.h <<_ACEOF
41392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41393 _ACEOF
41394  cat >>confdefs.h <<\_ACEOF
41395 #define HAVE_NANOSLEEP 1
41396 _ACEOF
41397
41398 else
41399
41400             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
41401 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
41402 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
41403   echo $ECHO_N "(cached) $ECHO_C" >&6
41404 else
41405   ac_check_lib_save_LIBS=$LIBS
41406 LIBS="-lposix4  $LIBS"
41407 cat >conftest.$ac_ext <<_ACEOF
41408 /* confdefs.h.  */
41409 _ACEOF
41410 cat confdefs.h >>conftest.$ac_ext
41411 cat >>conftest.$ac_ext <<_ACEOF
41412 /* end confdefs.h.  */
41413
41414 /* Override any GCC internal prototype to avoid an error.
41415    Use char because int might match the return type of a GCC
41416    builtin and then its argument prototype would still apply.  */
41417 #ifdef __cplusplus
41418 extern "C"
41419 #endif
41420 char nanosleep ();
41421 int
41422 main ()
41423 {
41424 return nanosleep ();
41425   ;
41426   return 0;
41427 }
41428 _ACEOF
41429 rm -f conftest.$ac_objext conftest$ac_exeext
41430 if { (ac_try="$ac_link"
41431 case "(($ac_try" in
41432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41433   *) ac_try_echo=$ac_try;;
41434 esac
41435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41436   (eval "$ac_link") 2>conftest.er1
41437   ac_status=$?
41438   grep -v '^ *+' conftest.er1 >conftest.err
41439   rm -f conftest.er1
41440   cat conftest.err >&5
41441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442   (exit $ac_status); } && {
41443          test -z "$ac_c_werror_flag" ||
41444          test ! -s conftest.err
41445        } && test -s conftest$ac_exeext &&
41446        $as_test_x conftest$ac_exeext; then
41447   ac_cv_lib_posix4_nanosleep=yes
41448 else
41449   echo "$as_me: failed program was:" >&5
41450 sed 's/^/| /' conftest.$ac_ext >&5
41451
41452         ac_cv_lib_posix4_nanosleep=no
41453 fi
41454
41455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41456       conftest$ac_exeext conftest.$ac_ext
41457 LIBS=$ac_check_lib_save_LIBS
41458 fi
41459 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
41460 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
41461 if test $ac_cv_lib_posix4_nanosleep = yes; then
41462
41463                     cat >>confdefs.h <<\_ACEOF
41464 #define HAVE_NANOSLEEP 1
41465 _ACEOF
41466
41467                     POSIX4_LINK=" -lposix4"
41468
41469 else
41470
41471
41472   for wx_func in usleep
41473   do
41474     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41475 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41476 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41477   echo $ECHO_N "(cached) $ECHO_C" >&6
41478 else
41479
41480         cat >conftest.$ac_ext <<_ACEOF
41481
41482             /* confdefs.h.  */
41483 _ACEOF
41484 cat confdefs.h >>conftest.$ac_ext
41485 cat >>conftest.$ac_ext <<_ACEOF
41486 /* end confdefs.h.  */
41487
41488
41489                 $ac_includes_default
41490
41491 int
41492 main ()
41493 {
41494
41495                 #ifndef $wx_func
41496                   &$wx_func;
41497                 #endif
41498
41499
41500   ;
41501   return 0;
41502 }
41503
41504 _ACEOF
41505 rm -f conftest.$ac_objext conftest$ac_exeext
41506 if { (ac_try="$ac_link"
41507 case "(($ac_try" in
41508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41509   *) ac_try_echo=$ac_try;;
41510 esac
41511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41512   (eval "$ac_link") 2>conftest.er1
41513   ac_status=$?
41514   grep -v '^ *+' conftest.er1 >conftest.err
41515   rm -f conftest.er1
41516   cat conftest.err >&5
41517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41518   (exit $ac_status); } && {
41519          test -z "$ac_c_werror_flag" ||
41520          test ! -s conftest.err
41521        } && test -s conftest$ac_exeext &&
41522        $as_test_x conftest$ac_exeext; then
41523   eval wx_cv_func_$wx_func=yes
41524 else
41525   echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41527
41528         eval wx_cv_func_$wx_func=no
41529 fi
41530
41531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41532       conftest$ac_exeext conftest.$ac_ext
41533
41534 fi
41535 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41536                { echo "$as_me:$LINENO: result: $ac_res" >&5
41537 echo "${ECHO_T}$ac_res" >&6; }
41538
41539     if eval test \$wx_cv_func_$wx_func = yes
41540     then
41541       cat >>confdefs.h <<_ACEOF
41542 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41543 _ACEOF
41544
41545
41546     else
41547       :
41548       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
41549 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
41550
41551     fi
41552   done
41553
41554
41555
41556 fi
41557
41558
41559
41560 fi
41561 done
41562
41563 fi
41564
41565
41566   for wx_func in uname
41567   do
41568     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41569 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41570 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41571   echo $ECHO_N "(cached) $ECHO_C" >&6
41572 else
41573
41574         cat >conftest.$ac_ext <<_ACEOF
41575
41576             /* confdefs.h.  */
41577 _ACEOF
41578 cat confdefs.h >>conftest.$ac_ext
41579 cat >>conftest.$ac_ext <<_ACEOF
41580 /* end confdefs.h.  */
41581
41582                 #include <sys/utsname.h>
41583                 $ac_includes_default
41584
41585 int
41586 main ()
41587 {
41588
41589                 #ifndef $wx_func
41590                   &$wx_func;
41591                 #endif
41592
41593
41594   ;
41595   return 0;
41596 }
41597
41598 _ACEOF
41599 rm -f conftest.$ac_objext conftest$ac_exeext
41600 if { (ac_try="$ac_link"
41601 case "(($ac_try" in
41602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41603   *) ac_try_echo=$ac_try;;
41604 esac
41605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41606   (eval "$ac_link") 2>conftest.er1
41607   ac_status=$?
41608   grep -v '^ *+' conftest.er1 >conftest.err
41609   rm -f conftest.er1
41610   cat conftest.err >&5
41611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41612   (exit $ac_status); } && {
41613          test -z "$ac_c_werror_flag" ||
41614          test ! -s conftest.err
41615        } && test -s conftest$ac_exeext &&
41616        $as_test_x conftest$ac_exeext; then
41617   eval wx_cv_func_$wx_func=yes
41618 else
41619   echo "$as_me: failed program was:" >&5
41620 sed 's/^/| /' conftest.$ac_ext >&5
41621
41622         eval wx_cv_func_$wx_func=no
41623 fi
41624
41625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41626       conftest$ac_exeext conftest.$ac_ext
41627
41628 fi
41629 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41630                { echo "$as_me:$LINENO: result: $ac_res" >&5
41631 echo "${ECHO_T}$ac_res" >&6; }
41632
41633     if eval test \$wx_cv_func_$wx_func = yes
41634     then
41635       cat >>confdefs.h <<_ACEOF
41636 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41637 _ACEOF
41638
41639
41640     else
41641       :
41642
41643     fi
41644   done
41645
41646 if test "$wx_cv_func_uname" != yes; then
41647
41648   for wx_func in gethostname
41649   do
41650     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41651 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41652 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41653   echo $ECHO_N "(cached) $ECHO_C" >&6
41654 else
41655
41656         cat >conftest.$ac_ext <<_ACEOF
41657
41658             /* confdefs.h.  */
41659 _ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h.  */
41663
41664
41665                 $ac_includes_default
41666
41667 int
41668 main ()
41669 {
41670
41671                 #ifndef $wx_func
41672                   &$wx_func;
41673                 #endif
41674
41675
41676   ;
41677   return 0;
41678 }
41679
41680 _ACEOF
41681 rm -f conftest.$ac_objext conftest$ac_exeext
41682 if { (ac_try="$ac_link"
41683 case "(($ac_try" in
41684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41685   *) ac_try_echo=$ac_try;;
41686 esac
41687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41688   (eval "$ac_link") 2>conftest.er1
41689   ac_status=$?
41690   grep -v '^ *+' conftest.er1 >conftest.err
41691   rm -f conftest.er1
41692   cat conftest.err >&5
41693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694   (exit $ac_status); } && {
41695          test -z "$ac_c_werror_flag" ||
41696          test ! -s conftest.err
41697        } && test -s conftest$ac_exeext &&
41698        $as_test_x conftest$ac_exeext; then
41699   eval wx_cv_func_$wx_func=yes
41700 else
41701   echo "$as_me: failed program was:" >&5
41702 sed 's/^/| /' conftest.$ac_ext >&5
41703
41704         eval wx_cv_func_$wx_func=no
41705 fi
41706
41707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41708       conftest$ac_exeext conftest.$ac_ext
41709
41710 fi
41711 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41712                { echo "$as_me:$LINENO: result: $ac_res" >&5
41713 echo "${ECHO_T}$ac_res" >&6; }
41714
41715     if eval test \$wx_cv_func_$wx_func = yes
41716     then
41717       cat >>confdefs.h <<_ACEOF
41718 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41719 _ACEOF
41720
41721
41722     else
41723       :
41724
41725     fi
41726   done
41727
41728 fi
41729
41730
41731   for wx_func in strtok_r
41732   do
41733     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41734 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41735 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41736   echo $ECHO_N "(cached) $ECHO_C" >&6
41737 else
41738
41739         cat >conftest.$ac_ext <<_ACEOF
41740
41741             /* confdefs.h.  */
41742 _ACEOF
41743 cat confdefs.h >>conftest.$ac_ext
41744 cat >>conftest.$ac_ext <<_ACEOF
41745 /* end confdefs.h.  */
41746
41747                 #define _REENTRANT
41748                 $ac_includes_default
41749
41750 int
41751 main ()
41752 {
41753
41754                 #ifndef $wx_func
41755                   &$wx_func;
41756                 #endif
41757
41758
41759   ;
41760   return 0;
41761 }
41762
41763 _ACEOF
41764 rm -f conftest.$ac_objext conftest$ac_exeext
41765 if { (ac_try="$ac_link"
41766 case "(($ac_try" in
41767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41768   *) ac_try_echo=$ac_try;;
41769 esac
41770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41771   (eval "$ac_link") 2>conftest.er1
41772   ac_status=$?
41773   grep -v '^ *+' conftest.er1 >conftest.err
41774   rm -f conftest.er1
41775   cat conftest.err >&5
41776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777   (exit $ac_status); } && {
41778          test -z "$ac_c_werror_flag" ||
41779          test ! -s conftest.err
41780        } && test -s conftest$ac_exeext &&
41781        $as_test_x conftest$ac_exeext; then
41782   eval wx_cv_func_$wx_func=yes
41783 else
41784   echo "$as_me: failed program was:" >&5
41785 sed 's/^/| /' conftest.$ac_ext >&5
41786
41787         eval wx_cv_func_$wx_func=no
41788 fi
41789
41790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41791       conftest$ac_exeext conftest.$ac_ext
41792
41793 fi
41794 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41795                { echo "$as_me:$LINENO: result: $ac_res" >&5
41796 echo "${ECHO_T}$ac_res" >&6; }
41797
41798     if eval test \$wx_cv_func_$wx_func = yes
41799     then
41800       cat >>confdefs.h <<_ACEOF
41801 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41802 _ACEOF
41803
41804
41805     else
41806       :
41807
41808     fi
41809   done
41810
41811
41812 INET_LINK=
41813
41814 for ac_func in inet_addr
41815 do
41816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41820   echo $ECHO_N "(cached) $ECHO_C" >&6
41821 else
41822   cat >conftest.$ac_ext <<_ACEOF
41823 /* confdefs.h.  */
41824 _ACEOF
41825 cat confdefs.h >>conftest.$ac_ext
41826 cat >>conftest.$ac_ext <<_ACEOF
41827 /* end confdefs.h.  */
41828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41830 #define $ac_func innocuous_$ac_func
41831
41832 /* System header to define __stub macros and hopefully few prototypes,
41833     which can conflict with char $ac_func (); below.
41834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41835     <limits.h> exists even on freestanding compilers.  */
41836
41837 #ifdef __STDC__
41838 # include <limits.h>
41839 #else
41840 # include <assert.h>
41841 #endif
41842
41843 #undef $ac_func
41844
41845 /* Override any GCC internal prototype to avoid an error.
41846    Use char because int might match the return type of a GCC
41847    builtin and then its argument prototype would still apply.  */
41848 #ifdef __cplusplus
41849 extern "C"
41850 #endif
41851 char $ac_func ();
41852 /* The GNU C library defines this for functions which it implements
41853     to always fail with ENOSYS.  Some functions are actually named
41854     something starting with __ and the normal name is an alias.  */
41855 #if defined __stub_$ac_func || defined __stub___$ac_func
41856 choke me
41857 #endif
41858
41859 int
41860 main ()
41861 {
41862 return $ac_func ();
41863   ;
41864   return 0;
41865 }
41866 _ACEOF
41867 rm -f conftest.$ac_objext conftest$ac_exeext
41868 if { (ac_try="$ac_link"
41869 case "(($ac_try" in
41870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41871   *) ac_try_echo=$ac_try;;
41872 esac
41873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41874   (eval "$ac_link") 2>conftest.er1
41875   ac_status=$?
41876   grep -v '^ *+' conftest.er1 >conftest.err
41877   rm -f conftest.er1
41878   cat conftest.err >&5
41879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41880   (exit $ac_status); } && {
41881          test -z "$ac_c_werror_flag" ||
41882          test ! -s conftest.err
41883        } && test -s conftest$ac_exeext &&
41884        $as_test_x conftest$ac_exeext; then
41885   eval "$as_ac_var=yes"
41886 else
41887   echo "$as_me: failed program was:" >&5
41888 sed 's/^/| /' conftest.$ac_ext >&5
41889
41890         eval "$as_ac_var=no"
41891 fi
41892
41893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41894       conftest$ac_exeext conftest.$ac_ext
41895 fi
41896 ac_res=`eval echo '${'$as_ac_var'}'`
41897                { echo "$as_me:$LINENO: result: $ac_res" >&5
41898 echo "${ECHO_T}$ac_res" >&6; }
41899 if test `eval echo '${'$as_ac_var'}'` = yes; then
41900   cat >>confdefs.h <<_ACEOF
41901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41902 _ACEOF
41903  cat >>confdefs.h <<\_ACEOF
41904 #define HAVE_INET_ADDR 1
41905 _ACEOF
41906
41907 else
41908
41909         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
41910 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
41911 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
41912   echo $ECHO_N "(cached) $ECHO_C" >&6
41913 else
41914   ac_check_lib_save_LIBS=$LIBS
41915 LIBS="-lnsl  $LIBS"
41916 cat >conftest.$ac_ext <<_ACEOF
41917 /* confdefs.h.  */
41918 _ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h.  */
41922
41923 /* Override any GCC internal prototype to avoid an error.
41924    Use char because int might match the return type of a GCC
41925    builtin and then its argument prototype would still apply.  */
41926 #ifdef __cplusplus
41927 extern "C"
41928 #endif
41929 char inet_addr ();
41930 int
41931 main ()
41932 {
41933 return inet_addr ();
41934   ;
41935   return 0;
41936 }
41937 _ACEOF
41938 rm -f conftest.$ac_objext conftest$ac_exeext
41939 if { (ac_try="$ac_link"
41940 case "(($ac_try" in
41941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41942   *) ac_try_echo=$ac_try;;
41943 esac
41944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41945   (eval "$ac_link") 2>conftest.er1
41946   ac_status=$?
41947   grep -v '^ *+' conftest.er1 >conftest.err
41948   rm -f conftest.er1
41949   cat conftest.err >&5
41950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41951   (exit $ac_status); } && {
41952          test -z "$ac_c_werror_flag" ||
41953          test ! -s conftest.err
41954        } && test -s conftest$ac_exeext &&
41955        $as_test_x conftest$ac_exeext; then
41956   ac_cv_lib_nsl_inet_addr=yes
41957 else
41958   echo "$as_me: failed program was:" >&5
41959 sed 's/^/| /' conftest.$ac_ext >&5
41960
41961         ac_cv_lib_nsl_inet_addr=no
41962 fi
41963
41964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41965       conftest$ac_exeext conftest.$ac_ext
41966 LIBS=$ac_check_lib_save_LIBS
41967 fi
41968 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
41969 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
41970 if test $ac_cv_lib_nsl_inet_addr = yes; then
41971   INET_LINK="nsl"
41972 else
41973
41974                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
41975 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
41976 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
41977   echo $ECHO_N "(cached) $ECHO_C" >&6
41978 else
41979   ac_check_lib_save_LIBS=$LIBS
41980 LIBS="-lresolv  $LIBS"
41981 cat >conftest.$ac_ext <<_ACEOF
41982 /* confdefs.h.  */
41983 _ACEOF
41984 cat confdefs.h >>conftest.$ac_ext
41985 cat >>conftest.$ac_ext <<_ACEOF
41986 /* end confdefs.h.  */
41987
41988 /* Override any GCC internal prototype to avoid an error.
41989    Use char because int might match the return type of a GCC
41990    builtin and then its argument prototype would still apply.  */
41991 #ifdef __cplusplus
41992 extern "C"
41993 #endif
41994 char inet_addr ();
41995 int
41996 main ()
41997 {
41998 return inet_addr ();
41999   ;
42000   return 0;
42001 }
42002 _ACEOF
42003 rm -f conftest.$ac_objext conftest$ac_exeext
42004 if { (ac_try="$ac_link"
42005 case "(($ac_try" in
42006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42007   *) ac_try_echo=$ac_try;;
42008 esac
42009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42010   (eval "$ac_link") 2>conftest.er1
42011   ac_status=$?
42012   grep -v '^ *+' conftest.er1 >conftest.err
42013   rm -f conftest.er1
42014   cat conftest.err >&5
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); } && {
42017          test -z "$ac_c_werror_flag" ||
42018          test ! -s conftest.err
42019        } && test -s conftest$ac_exeext &&
42020        $as_test_x conftest$ac_exeext; then
42021   ac_cv_lib_resolv_inet_addr=yes
42022 else
42023   echo "$as_me: failed program was:" >&5
42024 sed 's/^/| /' conftest.$ac_ext >&5
42025
42026         ac_cv_lib_resolv_inet_addr=no
42027 fi
42028
42029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42030       conftest$ac_exeext conftest.$ac_ext
42031 LIBS=$ac_check_lib_save_LIBS
42032 fi
42033 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
42034 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
42035 if test $ac_cv_lib_resolv_inet_addr = yes; then
42036   INET_LINK="resolv"
42037 else
42038
42039                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
42040 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
42041 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
42042   echo $ECHO_N "(cached) $ECHO_C" >&6
42043 else
42044   ac_check_lib_save_LIBS=$LIBS
42045 LIBS="-lsocket  $LIBS"
42046 cat >conftest.$ac_ext <<_ACEOF
42047 /* confdefs.h.  */
42048 _ACEOF
42049 cat confdefs.h >>conftest.$ac_ext
42050 cat >>conftest.$ac_ext <<_ACEOF
42051 /* end confdefs.h.  */
42052
42053 /* Override any GCC internal prototype to avoid an error.
42054    Use char because int might match the return type of a GCC
42055    builtin and then its argument prototype would still apply.  */
42056 #ifdef __cplusplus
42057 extern "C"
42058 #endif
42059 char inet_addr ();
42060 int
42061 main ()
42062 {
42063 return inet_addr ();
42064   ;
42065   return 0;
42066 }
42067 _ACEOF
42068 rm -f conftest.$ac_objext conftest$ac_exeext
42069 if { (ac_try="$ac_link"
42070 case "(($ac_try" in
42071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42072   *) ac_try_echo=$ac_try;;
42073 esac
42074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42075   (eval "$ac_link") 2>conftest.er1
42076   ac_status=$?
42077   grep -v '^ *+' conftest.er1 >conftest.err
42078   rm -f conftest.er1
42079   cat conftest.err >&5
42080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081   (exit $ac_status); } && {
42082          test -z "$ac_c_werror_flag" ||
42083          test ! -s conftest.err
42084        } && test -s conftest$ac_exeext &&
42085        $as_test_x conftest$ac_exeext; then
42086   ac_cv_lib_socket_inet_addr=yes
42087 else
42088   echo "$as_me: failed program was:" >&5
42089 sed 's/^/| /' conftest.$ac_ext >&5
42090
42091         ac_cv_lib_socket_inet_addr=no
42092 fi
42093
42094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42095       conftest$ac_exeext conftest.$ac_ext
42096 LIBS=$ac_check_lib_save_LIBS
42097 fi
42098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
42099 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
42100 if test $ac_cv_lib_socket_inet_addr = yes; then
42101   INET_LINK="socket"
42102
42103 fi
42104
42105
42106
42107 fi
42108
42109
42110
42111 fi
42112
42113
42114
42115 fi
42116 done
42117
42118
42119
42120 for ac_func in inet_aton
42121 do
42122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42126   echo $ECHO_N "(cached) $ECHO_C" >&6
42127 else
42128   cat >conftest.$ac_ext <<_ACEOF
42129 /* confdefs.h.  */
42130 _ACEOF
42131 cat confdefs.h >>conftest.$ac_ext
42132 cat >>conftest.$ac_ext <<_ACEOF
42133 /* end confdefs.h.  */
42134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42136 #define $ac_func innocuous_$ac_func
42137
42138 /* System header to define __stub macros and hopefully few prototypes,
42139     which can conflict with char $ac_func (); below.
42140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42141     <limits.h> exists even on freestanding compilers.  */
42142
42143 #ifdef __STDC__
42144 # include <limits.h>
42145 #else
42146 # include <assert.h>
42147 #endif
42148
42149 #undef $ac_func
42150
42151 /* Override any GCC internal prototype to avoid an error.
42152    Use char because int might match the return type of a GCC
42153    builtin and then its argument prototype would still apply.  */
42154 #ifdef __cplusplus
42155 extern "C"
42156 #endif
42157 char $ac_func ();
42158 /* The GNU C library defines this for functions which it implements
42159     to always fail with ENOSYS.  Some functions are actually named
42160     something starting with __ and the normal name is an alias.  */
42161 #if defined __stub_$ac_func || defined __stub___$ac_func
42162 choke me
42163 #endif
42164
42165 int
42166 main ()
42167 {
42168 return $ac_func ();
42169   ;
42170   return 0;
42171 }
42172 _ACEOF
42173 rm -f conftest.$ac_objext conftest$ac_exeext
42174 if { (ac_try="$ac_link"
42175 case "(($ac_try" in
42176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42177   *) ac_try_echo=$ac_try;;
42178 esac
42179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42180   (eval "$ac_link") 2>conftest.er1
42181   ac_status=$?
42182   grep -v '^ *+' conftest.er1 >conftest.err
42183   rm -f conftest.er1
42184   cat conftest.err >&5
42185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186   (exit $ac_status); } && {
42187          test -z "$ac_c_werror_flag" ||
42188          test ! -s conftest.err
42189        } && test -s conftest$ac_exeext &&
42190        $as_test_x conftest$ac_exeext; then
42191   eval "$as_ac_var=yes"
42192 else
42193   echo "$as_me: failed program was:" >&5
42194 sed 's/^/| /' conftest.$ac_ext >&5
42195
42196         eval "$as_ac_var=no"
42197 fi
42198
42199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42200       conftest$ac_exeext conftest.$ac_ext
42201 fi
42202 ac_res=`eval echo '${'$as_ac_var'}'`
42203                { echo "$as_me:$LINENO: result: $ac_res" >&5
42204 echo "${ECHO_T}$ac_res" >&6; }
42205 if test `eval echo '${'$as_ac_var'}'` = yes; then
42206   cat >>confdefs.h <<_ACEOF
42207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42208 _ACEOF
42209  cat >>confdefs.h <<\_ACEOF
42210 #define HAVE_INET_ATON 1
42211 _ACEOF
42212
42213 else
42214
42215                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
42216 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
42217 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
42218 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42219   echo $ECHO_N "(cached) $ECHO_C" >&6
42220 else
42221   ac_check_lib_save_LIBS=$LIBS
42222 LIBS="-l$INET_LINK  $LIBS"
42223 cat >conftest.$ac_ext <<_ACEOF
42224 /* confdefs.h.  */
42225 _ACEOF
42226 cat confdefs.h >>conftest.$ac_ext
42227 cat >>conftest.$ac_ext <<_ACEOF
42228 /* end confdefs.h.  */
42229
42230 /* Override any GCC internal prototype to avoid an error.
42231    Use char because int might match the return type of a GCC
42232    builtin and then its argument prototype would still apply.  */
42233 #ifdef __cplusplus
42234 extern "C"
42235 #endif
42236 char inet_aton ();
42237 int
42238 main ()
42239 {
42240 return inet_aton ();
42241   ;
42242   return 0;
42243 }
42244 _ACEOF
42245 rm -f conftest.$ac_objext conftest$ac_exeext
42246 if { (ac_try="$ac_link"
42247 case "(($ac_try" in
42248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42249   *) ac_try_echo=$ac_try;;
42250 esac
42251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42252   (eval "$ac_link") 2>conftest.er1
42253   ac_status=$?
42254   grep -v '^ *+' conftest.er1 >conftest.err
42255   rm -f conftest.er1
42256   cat conftest.err >&5
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); } && {
42259          test -z "$ac_c_werror_flag" ||
42260          test ! -s conftest.err
42261        } && test -s conftest$ac_exeext &&
42262        $as_test_x conftest$ac_exeext; then
42263   eval "$as_ac_Lib=yes"
42264 else
42265   echo "$as_me: failed program was:" >&5
42266 sed 's/^/| /' conftest.$ac_ext >&5
42267
42268         eval "$as_ac_Lib=no"
42269 fi
42270
42271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42272       conftest$ac_exeext conftest.$ac_ext
42273 LIBS=$ac_check_lib_save_LIBS
42274 fi
42275 ac_res=`eval echo '${'$as_ac_Lib'}'`
42276                { echo "$as_me:$LINENO: result: $ac_res" >&5
42277 echo "${ECHO_T}$ac_res" >&6; }
42278 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42279   cat >>confdefs.h <<\_ACEOF
42280 #define HAVE_INET_ATON 1
42281 _ACEOF
42282
42283 fi
42284
42285
42286 fi
42287 done
42288
42289
42290 if test "x$INET_LINK" != "x"; then
42291     cat >>confdefs.h <<\_ACEOF
42292 #define HAVE_INET_ADDR 1
42293 _ACEOF
42294
42295     INET_LINK=" -l$INET_LINK"
42296 fi
42297
42298
42299   for wx_func in fdopen
42300   do
42301     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42302 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42303 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42304   echo $ECHO_N "(cached) $ECHO_C" >&6
42305 else
42306
42307         cat >conftest.$ac_ext <<_ACEOF
42308
42309             /* confdefs.h.  */
42310 _ACEOF
42311 cat confdefs.h >>conftest.$ac_ext
42312 cat >>conftest.$ac_ext <<_ACEOF
42313 /* end confdefs.h.  */
42314
42315
42316                 $ac_includes_default
42317
42318 int
42319 main ()
42320 {
42321
42322                 #ifndef $wx_func
42323                   &$wx_func;
42324                 #endif
42325
42326
42327   ;
42328   return 0;
42329 }
42330
42331 _ACEOF
42332 rm -f conftest.$ac_objext conftest$ac_exeext
42333 if { (ac_try="$ac_link"
42334 case "(($ac_try" in
42335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42336   *) ac_try_echo=$ac_try;;
42337 esac
42338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42339   (eval "$ac_link") 2>conftest.er1
42340   ac_status=$?
42341   grep -v '^ *+' conftest.er1 >conftest.err
42342   rm -f conftest.er1
42343   cat conftest.err >&5
42344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345   (exit $ac_status); } && {
42346          test -z "$ac_c_werror_flag" ||
42347          test ! -s conftest.err
42348        } && test -s conftest$ac_exeext &&
42349        $as_test_x conftest$ac_exeext; then
42350   eval wx_cv_func_$wx_func=yes
42351 else
42352   echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42354
42355         eval wx_cv_func_$wx_func=no
42356 fi
42357
42358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42359       conftest$ac_exeext conftest.$ac_ext
42360
42361 fi
42362 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42363                { echo "$as_me:$LINENO: result: $ac_res" >&5
42364 echo "${ECHO_T}$ac_res" >&6; }
42365
42366     if eval test \$wx_cv_func_$wx_func = yes
42367     then
42368       cat >>confdefs.h <<_ACEOF
42369 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42370 _ACEOF
42371
42372
42373     else
42374       :
42375
42376     fi
42377   done
42378
42379
42380 if test "$wxUSE_TARSTREAM" = "yes"; then
42381
42382   for wx_func in sysconf
42383   do
42384     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42385 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42386 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42387   echo $ECHO_N "(cached) $ECHO_C" >&6
42388 else
42389
42390         cat >conftest.$ac_ext <<_ACEOF
42391
42392             /* confdefs.h.  */
42393 _ACEOF
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h.  */
42397
42398
42399                 $ac_includes_default
42400
42401 int
42402 main ()
42403 {
42404
42405                 #ifndef $wx_func
42406                   &$wx_func;
42407                 #endif
42408
42409
42410   ;
42411   return 0;
42412 }
42413
42414 _ACEOF
42415 rm -f conftest.$ac_objext conftest$ac_exeext
42416 if { (ac_try="$ac_link"
42417 case "(($ac_try" in
42418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42419   *) ac_try_echo=$ac_try;;
42420 esac
42421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42422   (eval "$ac_link") 2>conftest.er1
42423   ac_status=$?
42424   grep -v '^ *+' conftest.er1 >conftest.err
42425   rm -f conftest.er1
42426   cat conftest.err >&5
42427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428   (exit $ac_status); } && {
42429          test -z "$ac_c_werror_flag" ||
42430          test ! -s conftest.err
42431        } && test -s conftest$ac_exeext &&
42432        $as_test_x conftest$ac_exeext; then
42433   eval wx_cv_func_$wx_func=yes
42434 else
42435   echo "$as_me: failed program was:" >&5
42436 sed 's/^/| /' conftest.$ac_ext >&5
42437
42438         eval wx_cv_func_$wx_func=no
42439 fi
42440
42441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42442       conftest$ac_exeext conftest.$ac_ext
42443
42444 fi
42445 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42446                { echo "$as_me:$LINENO: result: $ac_res" >&5
42447 echo "${ECHO_T}$ac_res" >&6; }
42448
42449     if eval test \$wx_cv_func_$wx_func = yes
42450     then
42451       cat >>confdefs.h <<_ACEOF
42452 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42453 _ACEOF
42454
42455
42456     else
42457       :
42458
42459     fi
42460   done
42461
42462
42463
42464   for wx_func in getpwuid_r
42465   do
42466     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42467 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42468 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42469   echo $ECHO_N "(cached) $ECHO_C" >&6
42470 else
42471
42472         cat >conftest.$ac_ext <<_ACEOF
42473
42474             /* confdefs.h.  */
42475 _ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h.  */
42479
42480
42481                     #define _REENTRANT
42482                     #include <pwd.h>
42483
42484                 $ac_includes_default
42485
42486 int
42487 main ()
42488 {
42489
42490                 #ifndef $wx_func
42491                   &$wx_func;
42492                 #endif
42493
42494                     struct passwd pw, *ppw;
42495                     char buf[1024];
42496                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
42497
42498
42499   ;
42500   return 0;
42501 }
42502
42503 _ACEOF
42504 rm -f conftest.$ac_objext conftest$ac_exeext
42505 if { (ac_try="$ac_link"
42506 case "(($ac_try" in
42507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42508   *) ac_try_echo=$ac_try;;
42509 esac
42510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42511   (eval "$ac_link") 2>conftest.er1
42512   ac_status=$?
42513   grep -v '^ *+' conftest.er1 >conftest.err
42514   rm -f conftest.er1
42515   cat conftest.err >&5
42516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42517   (exit $ac_status); } && {
42518          test -z "$ac_c_werror_flag" ||
42519          test ! -s conftest.err
42520        } && test -s conftest$ac_exeext &&
42521        $as_test_x conftest$ac_exeext; then
42522   eval wx_cv_func_$wx_func=yes
42523 else
42524   echo "$as_me: failed program was:" >&5
42525 sed 's/^/| /' conftest.$ac_ext >&5
42526
42527         eval wx_cv_func_$wx_func=no
42528 fi
42529
42530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42531       conftest$ac_exeext conftest.$ac_ext
42532
42533 fi
42534 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42535                { echo "$as_me:$LINENO: result: $ac_res" >&5
42536 echo "${ECHO_T}$ac_res" >&6; }
42537
42538     if eval test \$wx_cv_func_$wx_func = yes
42539     then
42540       cat >>confdefs.h <<_ACEOF
42541 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42542 _ACEOF
42543
42544
42545     else
42546       :
42547
42548     fi
42549   done
42550
42551
42552
42553   for wx_func in getgrgid_r
42554   do
42555     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42556 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42557 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42558   echo $ECHO_N "(cached) $ECHO_C" >&6
42559 else
42560
42561         cat >conftest.$ac_ext <<_ACEOF
42562
42563             /* confdefs.h.  */
42564 _ACEOF
42565 cat confdefs.h >>conftest.$ac_ext
42566 cat >>conftest.$ac_ext <<_ACEOF
42567 /* end confdefs.h.  */
42568
42569
42570                     #define _REENTRANT
42571                     #include <grp.h>
42572
42573                 $ac_includes_default
42574
42575 int
42576 main ()
42577 {
42578
42579                 #ifndef $wx_func
42580                   &$wx_func;
42581                 #endif
42582
42583                     struct group grp, *pgrp;
42584                     char buf[1024];
42585                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
42586
42587
42588   ;
42589   return 0;
42590 }
42591
42592 _ACEOF
42593 rm -f conftest.$ac_objext conftest$ac_exeext
42594 if { (ac_try="$ac_link"
42595 case "(($ac_try" in
42596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42597   *) ac_try_echo=$ac_try;;
42598 esac
42599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42600   (eval "$ac_link") 2>conftest.er1
42601   ac_status=$?
42602   grep -v '^ *+' conftest.er1 >conftest.err
42603   rm -f conftest.er1
42604   cat conftest.err >&5
42605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606   (exit $ac_status); } && {
42607          test -z "$ac_c_werror_flag" ||
42608          test ! -s conftest.err
42609        } && test -s conftest$ac_exeext &&
42610        $as_test_x conftest$ac_exeext; then
42611   eval wx_cv_func_$wx_func=yes
42612 else
42613   echo "$as_me: failed program was:" >&5
42614 sed 's/^/| /' conftest.$ac_ext >&5
42615
42616         eval wx_cv_func_$wx_func=no
42617 fi
42618
42619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42620       conftest$ac_exeext conftest.$ac_ext
42621
42622 fi
42623 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42624                { echo "$as_me:$LINENO: result: $ac_res" >&5
42625 echo "${ECHO_T}$ac_res" >&6; }
42626
42627     if eval test \$wx_cv_func_$wx_func = yes
42628     then
42629       cat >>confdefs.h <<_ACEOF
42630 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42631 _ACEOF
42632
42633
42634     else
42635       :
42636
42637     fi
42638   done
42639
42640 fi
42641
42642 fi
42643
42644
42645
42646 cat >confcache <<\_ACEOF
42647 # This file is a shell script that caches the results of configure
42648 # tests run on this system so they can be shared between configure
42649 # scripts and configure runs, see configure's option --config-cache.
42650 # It is not useful on other systems.  If it contains results you don't
42651 # want to keep, you may remove or edit it.
42652 #
42653 # config.status only pays attention to the cache file if you give it
42654 # the --recheck option to rerun configure.
42655 #
42656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42658 # following values.
42659
42660 _ACEOF
42661
42662 # The following way of writing the cache mishandles newlines in values,
42663 # but we know of no workaround that is simple, portable, and efficient.
42664 # So, we kill variables containing newlines.
42665 # Ultrix sh set writes to stderr and can't be redirected directly,
42666 # and sets the high bit in the cache file unless we assign to the vars.
42667 (
42668   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42669     eval ac_val=\$$ac_var
42670     case $ac_val in #(
42671     *${as_nl}*)
42672       case $ac_var in #(
42673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42675       esac
42676       case $ac_var in #(
42677       _ | IFS | as_nl) ;; #(
42678       *) $as_unset $ac_var ;;
42679       esac ;;
42680     esac
42681   done
42682
42683   (set) 2>&1 |
42684     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42685     *${as_nl}ac_space=\ *)
42686       # `set' does not quote correctly, so add quotes (double-quote
42687       # substitution turns \\\\ into \\, and sed turns \\ into \).
42688       sed -n \
42689         "s/'/'\\\\''/g;
42690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42691       ;; #(
42692     *)
42693       # `set' quotes correctly as required by POSIX, so do not add quotes.
42694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42695       ;;
42696     esac |
42697     sort
42698 ) |
42699   sed '
42700      /^ac_cv_env_/b end
42701      t clear
42702      :clear
42703      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42704      t end
42705      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42706      :end' >>confcache
42707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42708   if test -w "$cache_file"; then
42709     test "x$cache_file" != "x/dev/null" &&
42710       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42711 echo "$as_me: updating cache $cache_file" >&6;}
42712     cat confcache >$cache_file
42713   else
42714     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42715 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42716   fi
42717 fi
42718 rm -f confcache
42719
42720
42721 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42722
42723
42724     THREADS_LINK=
42725     THREADS_CFLAGS=
42726
42727     if test "$wxUSE_THREADS" = "yes" ; then
42728         if test "$USE_BEOS" = 1; then
42729             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
42730 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
42731             wxUSE_THREADS="no"
42732         fi
42733     fi
42734
42735     if test "$wxUSE_THREADS" = "yes" ; then
42736
42737
42738                                 THREAD_OPTS="-pthread"
42739         if test "x$SUNCXX" = xyes; then
42740             THREAD_OPTS="-mt lthread $THREAD_OPTS"
42741         fi
42742
42743         case "${host}" in
42744           *-*-solaris2* | *-*-sunos4* )
42745                 if test "x$GCC" = "xyes"; then
42746                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
42747                 fi
42748                 ;;
42749           *-*-freebsd*)
42750                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
42751                 ;;
42752           *-*-darwin* | *-*-cygwin* )
42753                                                 THREAD_OPTS=""
42754                 ;;
42755           *-*-aix*)
42756                                 THREAD_OPTS="pthreads"
42757                 ;;
42758           *-hp-hpux* )
42759                 if test "x$GCC" = "xyes"; then
42760                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
42761                         THREAD_OPTS=""
42762                 else
42763                                                             THREAD_OPTS="-mt"
42764                 fi
42765                 ;;
42766
42767           *-*-irix* )
42768                                                                 if test "x$GCC" = "xyes"; then
42769                     THREAD_OPTS=""
42770                 fi
42771                 ;;
42772
42773           *-*-qnx*)
42774                                                 THREAD_OPTS=""
42775                 ;;
42776
42777           *-*-*UnixWare*)
42778                                 if test "x$GCC" != "xyes"; then
42779                     THREAD_OPTS="-Ethread"
42780                 fi
42781                 ;;
42782         esac
42783
42784         case "${host}" in
42785             *-*-qnx*)
42786                                                                 THREAD_OPTS="none pthread"
42787                 ;;
42788
42789             *)
42790                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
42791                 ;;
42792         esac
42793
42794                 THREADS_OK=no
42795         for flag in $THREAD_OPTS; do
42796             case $flag in
42797                 none)
42798                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42799 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42800                     ;;
42801
42802                 -*)
42803                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42804 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42805                     THREADS_CFLAGS="$flag"
42806                     ;;
42807
42808                 *)
42809                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42810 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42811                     THREADS_LINK="-l$flag"
42812                     ;;
42813               esac
42814
42815               save_LIBS="$LIBS"
42816               save_CFLAGS="$CFLAGS"
42817               LIBS="$THREADS_LINK $LIBS"
42818               CFLAGS="$THREADS_CFLAGS $CFLAGS"
42819
42820               cat >conftest.$ac_ext <<_ACEOF
42821 /* confdefs.h.  */
42822 _ACEOF
42823 cat confdefs.h >>conftest.$ac_ext
42824 cat >>conftest.$ac_ext <<_ACEOF
42825 /* end confdefs.h.  */
42826 #include <pthread.h>
42827 int
42828 main ()
42829 {
42830 pthread_create(0,0,0,0);
42831   ;
42832   return 0;
42833 }
42834 _ACEOF
42835 rm -f conftest.$ac_objext conftest$ac_exeext
42836 if { (ac_try="$ac_link"
42837 case "(($ac_try" in
42838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42839   *) ac_try_echo=$ac_try;;
42840 esac
42841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42842   (eval "$ac_link") 2>conftest.er1
42843   ac_status=$?
42844   grep -v '^ *+' conftest.er1 >conftest.err
42845   rm -f conftest.er1
42846   cat conftest.err >&5
42847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42848   (exit $ac_status); } && {
42849          test -z "$ac_c_werror_flag" ||
42850          test ! -s conftest.err
42851        } && test -s conftest$ac_exeext &&
42852        $as_test_x conftest$ac_exeext; then
42853   THREADS_OK=yes
42854 else
42855   echo "$as_me: failed program was:" >&5
42856 sed 's/^/| /' conftest.$ac_ext >&5
42857
42858
42859 fi
42860
42861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42862       conftest$ac_exeext conftest.$ac_ext
42863
42864               LIBS="$save_LIBS"
42865               CFLAGS="$save_CFLAGS"
42866
42867               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
42868 echo "${ECHO_T}$THREADS_OK" >&6; }
42869               if test "x$THREADS_OK" = "xyes"; then
42870                       break;
42871               fi
42872
42873               THREADS_LINK=""
42874               THREADS_CFLAGS=""
42875       done
42876
42877       if test "x$THREADS_OK" != "xyes"; then
42878           wxUSE_THREADS=no
42879           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
42880 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
42881       else
42882                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
42883           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
42884           LIBS="$THREADS_LINK $LIBS"
42885
42886           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
42887 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
42888           flag=no
42889           case "${host}" in
42890             *-aix*)
42891                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
42892                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
42893                 flag="-D_THREAD_SAFE"
42894                 ;;
42895             *-freebsd*)
42896                 flag="-D_THREAD_SAFE"
42897                 ;;
42898             *-hp-hpux* )
42899                 flag="-D_REENTRANT"
42900                 if test "x$GCC" != "xyes"; then
42901                                         flag="$flag -D_RWSTD_MULTI_THREAD"
42902                 fi
42903                 ;;
42904             *solaris* | alpha*-osf*)
42905                 flag="-D_REENTRANT"
42906                 ;;
42907           esac
42908           { echo "$as_me:$LINENO: result: ${flag}" >&5
42909 echo "${ECHO_T}${flag}" >&6; }
42910           if test "x$flag" != xno; then
42911               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
42912           fi
42913
42914                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
42915       fi
42916     fi
42917
42918         if test "$wxUSE_THREADS" = "yes" ; then
42919
42920 for ac_func in pthread_setconcurrency
42921 do
42922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42926   echo $ECHO_N "(cached) $ECHO_C" >&6
42927 else
42928   cat >conftest.$ac_ext <<_ACEOF
42929 /* confdefs.h.  */
42930 _ACEOF
42931 cat confdefs.h >>conftest.$ac_ext
42932 cat >>conftest.$ac_ext <<_ACEOF
42933 /* end confdefs.h.  */
42934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42936 #define $ac_func innocuous_$ac_func
42937
42938 /* System header to define __stub macros and hopefully few prototypes,
42939     which can conflict with char $ac_func (); below.
42940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42941     <limits.h> exists even on freestanding compilers.  */
42942
42943 #ifdef __STDC__
42944 # include <limits.h>
42945 #else
42946 # include <assert.h>
42947 #endif
42948
42949 #undef $ac_func
42950
42951 /* Override any GCC internal prototype to avoid an error.
42952    Use char because int might match the return type of a GCC
42953    builtin and then its argument prototype would still apply.  */
42954 #ifdef __cplusplus
42955 extern "C"
42956 #endif
42957 char $ac_func ();
42958 /* The GNU C library defines this for functions which it implements
42959     to always fail with ENOSYS.  Some functions are actually named
42960     something starting with __ and the normal name is an alias.  */
42961 #if defined __stub_$ac_func || defined __stub___$ac_func
42962 choke me
42963 #endif
42964
42965 int
42966 main ()
42967 {
42968 return $ac_func ();
42969   ;
42970   return 0;
42971 }
42972 _ACEOF
42973 rm -f conftest.$ac_objext conftest$ac_exeext
42974 if { (ac_try="$ac_link"
42975 case "(($ac_try" in
42976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42977   *) ac_try_echo=$ac_try;;
42978 esac
42979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42980   (eval "$ac_link") 2>conftest.er1
42981   ac_status=$?
42982   grep -v '^ *+' conftest.er1 >conftest.err
42983   rm -f conftest.er1
42984   cat conftest.err >&5
42985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); } && {
42987          test -z "$ac_c_werror_flag" ||
42988          test ! -s conftest.err
42989        } && test -s conftest$ac_exeext &&
42990        $as_test_x conftest$ac_exeext; then
42991   eval "$as_ac_var=yes"
42992 else
42993   echo "$as_me: failed program was:" >&5
42994 sed 's/^/| /' conftest.$ac_ext >&5
42995
42996         eval "$as_ac_var=no"
42997 fi
42998
42999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43000       conftest$ac_exeext conftest.$ac_ext
43001 fi
43002 ac_res=`eval echo '${'$as_ac_var'}'`
43003                { echo "$as_me:$LINENO: result: $ac_res" >&5
43004 echo "${ECHO_T}$ac_res" >&6; }
43005 if test `eval echo '${'$as_ac_var'}'` = yes; then
43006   cat >>confdefs.h <<_ACEOF
43007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43008 _ACEOF
43009  cat >>confdefs.h <<\_ACEOF
43010 #define HAVE_PTHREAD_SET_CONCURRENCY 1
43011 _ACEOF
43012
43013 else
43014
43015
43016 for ac_func in thr_setconcurrency
43017 do
43018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43022   echo $ECHO_N "(cached) $ECHO_C" >&6
43023 else
43024   cat >conftest.$ac_ext <<_ACEOF
43025 /* confdefs.h.  */
43026 _ACEOF
43027 cat confdefs.h >>conftest.$ac_ext
43028 cat >>conftest.$ac_ext <<_ACEOF
43029 /* end confdefs.h.  */
43030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43032 #define $ac_func innocuous_$ac_func
43033
43034 /* System header to define __stub macros and hopefully few prototypes,
43035     which can conflict with char $ac_func (); below.
43036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43037     <limits.h> exists even on freestanding compilers.  */
43038
43039 #ifdef __STDC__
43040 # include <limits.h>
43041 #else
43042 # include <assert.h>
43043 #endif
43044
43045 #undef $ac_func
43046
43047 /* Override any GCC internal prototype to avoid an error.
43048    Use char because int might match the return type of a GCC
43049    builtin and then its argument prototype would still apply.  */
43050 #ifdef __cplusplus
43051 extern "C"
43052 #endif
43053 char $ac_func ();
43054 /* The GNU C library defines this for functions which it implements
43055     to always fail with ENOSYS.  Some functions are actually named
43056     something starting with __ and the normal name is an alias.  */
43057 #if defined __stub_$ac_func || defined __stub___$ac_func
43058 choke me
43059 #endif
43060
43061 int
43062 main ()
43063 {
43064 return $ac_func ();
43065   ;
43066   return 0;
43067 }
43068 _ACEOF
43069 rm -f conftest.$ac_objext conftest$ac_exeext
43070 if { (ac_try="$ac_link"
43071 case "(($ac_try" in
43072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43073   *) ac_try_echo=$ac_try;;
43074 esac
43075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43076   (eval "$ac_link") 2>conftest.er1
43077   ac_status=$?
43078   grep -v '^ *+' conftest.er1 >conftest.err
43079   rm -f conftest.er1
43080   cat conftest.err >&5
43081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082   (exit $ac_status); } && {
43083          test -z "$ac_c_werror_flag" ||
43084          test ! -s conftest.err
43085        } && test -s conftest$ac_exeext &&
43086        $as_test_x conftest$ac_exeext; then
43087   eval "$as_ac_var=yes"
43088 else
43089   echo "$as_me: failed program was:" >&5
43090 sed 's/^/| /' conftest.$ac_ext >&5
43091
43092         eval "$as_ac_var=no"
43093 fi
43094
43095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43096       conftest$ac_exeext conftest.$ac_ext
43097 fi
43098 ac_res=`eval echo '${'$as_ac_var'}'`
43099                { echo "$as_me:$LINENO: result: $ac_res" >&5
43100 echo "${ECHO_T}$ac_res" >&6; }
43101 if test `eval echo '${'$as_ac_var'}'` = yes; then
43102   cat >>confdefs.h <<_ACEOF
43103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43104 _ACEOF
43105  cat >>confdefs.h <<\_ACEOF
43106 #define HAVE_THR_SETCONCURRENCY 1
43107 _ACEOF
43108
43109 else
43110   { echo "$as_me:$LINENO: WARNING: Setting thread concurrency will not work properly" >&5
43111 echo "$as_me: WARNING: Setting thread concurrency will not work properly" >&2;}
43112 fi
43113 done
43114
43115
43116 fi
43117 done
43118
43119
43120                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
43121 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
43122 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
43123   echo $ECHO_N "(cached) $ECHO_C" >&6
43124 else
43125
43126                                 ac_ext=cpp
43127 ac_cpp='$CXXCPP $CPPFLAGS'
43128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43131
43132         cat >conftest.$ac_ext <<_ACEOF
43133 /* confdefs.h.  */
43134 _ACEOF
43135 cat confdefs.h >>conftest.$ac_ext
43136 cat >>conftest.$ac_ext <<_ACEOF
43137 /* end confdefs.h.  */
43138 #include <pthread.h>
43139                void ThreadCleanupFunc(void *p);
43140
43141 int
43142 main ()
43143 {
43144
43145                 void *p;
43146                 pthread_cleanup_push(ThreadCleanupFunc, p);
43147                 pthread_cleanup_pop(0);
43148
43149   ;
43150   return 0;
43151 }
43152 _ACEOF
43153 rm -f conftest.$ac_objext
43154 if { (ac_try="$ac_compile"
43155 case "(($ac_try" in
43156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43157   *) ac_try_echo=$ac_try;;
43158 esac
43159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43160   (eval "$ac_compile") 2>conftest.er1
43161   ac_status=$?
43162   grep -v '^ *+' conftest.er1 >conftest.err
43163   rm -f conftest.er1
43164   cat conftest.err >&5
43165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166   (exit $ac_status); } && {
43167          test -z "$ac_cxx_werror_flag" ||
43168          test ! -s conftest.err
43169        } && test -s conftest.$ac_objext; then
43170
43171                wx_cv_func_pthread_cleanup=yes
43172
43173 else
43174   echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43176
43177
43178                wx_cv_func_pthread_cleanup=no
43179
43180
43181 fi
43182
43183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43184         ac_ext=c
43185 ac_cpp='$CPP $CPPFLAGS'
43186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43189
43190
43191 fi
43192 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
43193 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
43194       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
43195         cat >>confdefs.h <<\_ACEOF
43196 #define wxHAVE_PTHREAD_CLEANUP 1
43197 _ACEOF
43198
43199       fi
43200
43201
43202 for ac_header in sched.h
43203 do
43204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43208   echo $ECHO_N "(cached) $ECHO_C" >&6
43209 else
43210   cat >conftest.$ac_ext <<_ACEOF
43211 /* confdefs.h.  */
43212 _ACEOF
43213 cat confdefs.h >>conftest.$ac_ext
43214 cat >>conftest.$ac_ext <<_ACEOF
43215 /* end confdefs.h.  */
43216 $ac_includes_default
43217
43218 #include <$ac_header>
43219 _ACEOF
43220 rm -f conftest.$ac_objext
43221 if { (ac_try="$ac_compile"
43222 case "(($ac_try" in
43223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43224   *) ac_try_echo=$ac_try;;
43225 esac
43226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43227   (eval "$ac_compile") 2>conftest.er1
43228   ac_status=$?
43229   grep -v '^ *+' conftest.er1 >conftest.err
43230   rm -f conftest.er1
43231   cat conftest.err >&5
43232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233   (exit $ac_status); } && {
43234          test -z "$ac_c_werror_flag" ||
43235          test ! -s conftest.err
43236        } && test -s conftest.$ac_objext; then
43237   eval "$as_ac_Header=yes"
43238 else
43239   echo "$as_me: failed program was:" >&5
43240 sed 's/^/| /' conftest.$ac_ext >&5
43241
43242         eval "$as_ac_Header=no"
43243 fi
43244
43245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43246 fi
43247 ac_res=`eval echo '${'$as_ac_Header'}'`
43248                { echo "$as_me:$LINENO: result: $ac_res" >&5
43249 echo "${ECHO_T}$ac_res" >&6; }
43250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43251   cat >>confdefs.h <<_ACEOF
43252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43253 _ACEOF
43254
43255 fi
43256
43257 done
43258
43259       if test "$ac_cv_header_sched_h" = "yes"; then
43260           { echo "$as_me:$LINENO: checking for sched_yield" >&5
43261 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
43262 if test "${ac_cv_func_sched_yield+set}" = set; then
43263   echo $ECHO_N "(cached) $ECHO_C" >&6
43264 else
43265   cat >conftest.$ac_ext <<_ACEOF
43266 /* confdefs.h.  */
43267 _ACEOF
43268 cat confdefs.h >>conftest.$ac_ext
43269 cat >>conftest.$ac_ext <<_ACEOF
43270 /* end confdefs.h.  */
43271 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43273 #define sched_yield innocuous_sched_yield
43274
43275 /* System header to define __stub macros and hopefully few prototypes,
43276     which can conflict with char sched_yield (); below.
43277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43278     <limits.h> exists even on freestanding compilers.  */
43279
43280 #ifdef __STDC__
43281 # include <limits.h>
43282 #else
43283 # include <assert.h>
43284 #endif
43285
43286 #undef sched_yield
43287
43288 /* Override any GCC internal prototype to avoid an error.
43289    Use char because int might match the return type of a GCC
43290    builtin and then its argument prototype would still apply.  */
43291 #ifdef __cplusplus
43292 extern "C"
43293 #endif
43294 char sched_yield ();
43295 /* The GNU C library defines this for functions which it implements
43296     to always fail with ENOSYS.  Some functions are actually named
43297     something starting with __ and the normal name is an alias.  */
43298 #if defined __stub_sched_yield || defined __stub___sched_yield
43299 choke me
43300 #endif
43301
43302 int
43303 main ()
43304 {
43305 return sched_yield ();
43306   ;
43307   return 0;
43308 }
43309 _ACEOF
43310 rm -f conftest.$ac_objext conftest$ac_exeext
43311 if { (ac_try="$ac_link"
43312 case "(($ac_try" in
43313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43314   *) ac_try_echo=$ac_try;;
43315 esac
43316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43317   (eval "$ac_link") 2>conftest.er1
43318   ac_status=$?
43319   grep -v '^ *+' conftest.er1 >conftest.err
43320   rm -f conftest.er1
43321   cat conftest.err >&5
43322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323   (exit $ac_status); } && {
43324          test -z "$ac_c_werror_flag" ||
43325          test ! -s conftest.err
43326        } && test -s conftest$ac_exeext &&
43327        $as_test_x conftest$ac_exeext; then
43328   ac_cv_func_sched_yield=yes
43329 else
43330   echo "$as_me: failed program was:" >&5
43331 sed 's/^/| /' conftest.$ac_ext >&5
43332
43333         ac_cv_func_sched_yield=no
43334 fi
43335
43336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43337       conftest$ac_exeext conftest.$ac_ext
43338 fi
43339 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
43340 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
43341 if test $ac_cv_func_sched_yield = yes; then
43342   cat >>confdefs.h <<\_ACEOF
43343 #define HAVE_SCHED_YIELD 1
43344 _ACEOF
43345
43346 else
43347
43348                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
43349 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
43350 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
43351   echo $ECHO_N "(cached) $ECHO_C" >&6
43352 else
43353   ac_check_lib_save_LIBS=$LIBS
43354 LIBS="-lposix4  $LIBS"
43355 cat >conftest.$ac_ext <<_ACEOF
43356 /* confdefs.h.  */
43357 _ACEOF
43358 cat confdefs.h >>conftest.$ac_ext
43359 cat >>conftest.$ac_ext <<_ACEOF
43360 /* end confdefs.h.  */
43361
43362 /* Override any GCC internal prototype to avoid an error.
43363    Use char because int might match the return type of a GCC
43364    builtin and then its argument prototype would still apply.  */
43365 #ifdef __cplusplus
43366 extern "C"
43367 #endif
43368 char sched_yield ();
43369 int
43370 main ()
43371 {
43372 return sched_yield ();
43373   ;
43374   return 0;
43375 }
43376 _ACEOF
43377 rm -f conftest.$ac_objext conftest$ac_exeext
43378 if { (ac_try="$ac_link"
43379 case "(($ac_try" in
43380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43381   *) ac_try_echo=$ac_try;;
43382 esac
43383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43384   (eval "$ac_link") 2>conftest.er1
43385   ac_status=$?
43386   grep -v '^ *+' conftest.er1 >conftest.err
43387   rm -f conftest.er1
43388   cat conftest.err >&5
43389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390   (exit $ac_status); } && {
43391          test -z "$ac_c_werror_flag" ||
43392          test ! -s conftest.err
43393        } && test -s conftest$ac_exeext &&
43394        $as_test_x conftest$ac_exeext; then
43395   ac_cv_lib_posix4_sched_yield=yes
43396 else
43397   echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43399
43400         ac_cv_lib_posix4_sched_yield=no
43401 fi
43402
43403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43404       conftest$ac_exeext conftest.$ac_ext
43405 LIBS=$ac_check_lib_save_LIBS
43406 fi
43407 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
43408 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
43409 if test $ac_cv_lib_posix4_sched_yield = yes; then
43410   cat >>confdefs.h <<\_ACEOF
43411 #define HAVE_SCHED_YIELD 1
43412 _ACEOF
43413  POSIX4_LINK=" -lposix4"
43414 else
43415   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
43416 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
43417
43418 fi
43419
43420
43421
43422 fi
43423
43424       fi
43425
43426                                           HAVE_PRIOR_FUNCS=0
43427       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
43428 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
43429 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
43430   echo $ECHO_N "(cached) $ECHO_C" >&6
43431 else
43432   cat >conftest.$ac_ext <<_ACEOF
43433 /* confdefs.h.  */
43434 _ACEOF
43435 cat confdefs.h >>conftest.$ac_ext
43436 cat >>conftest.$ac_ext <<_ACEOF
43437 /* end confdefs.h.  */
43438 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
43439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43440 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
43441
43442 /* System header to define __stub macros and hopefully few prototypes,
43443     which can conflict with char pthread_attr_getschedpolicy (); below.
43444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43445     <limits.h> exists even on freestanding compilers.  */
43446
43447 #ifdef __STDC__
43448 # include <limits.h>
43449 #else
43450 # include <assert.h>
43451 #endif
43452
43453 #undef pthread_attr_getschedpolicy
43454
43455 /* Override any GCC internal prototype to avoid an error.
43456    Use char because int might match the return type of a GCC
43457    builtin and then its argument prototype would still apply.  */
43458 #ifdef __cplusplus
43459 extern "C"
43460 #endif
43461 char pthread_attr_getschedpolicy ();
43462 /* The GNU C library defines this for functions which it implements
43463     to always fail with ENOSYS.  Some functions are actually named
43464     something starting with __ and the normal name is an alias.  */
43465 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
43466 choke me
43467 #endif
43468
43469 int
43470 main ()
43471 {
43472 return pthread_attr_getschedpolicy ();
43473   ;
43474   return 0;
43475 }
43476 _ACEOF
43477 rm -f conftest.$ac_objext conftest$ac_exeext
43478 if { (ac_try="$ac_link"
43479 case "(($ac_try" in
43480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43481   *) ac_try_echo=$ac_try;;
43482 esac
43483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43484   (eval "$ac_link") 2>conftest.er1
43485   ac_status=$?
43486   grep -v '^ *+' conftest.er1 >conftest.err
43487   rm -f conftest.er1
43488   cat conftest.err >&5
43489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43490   (exit $ac_status); } && {
43491          test -z "$ac_c_werror_flag" ||
43492          test ! -s conftest.err
43493        } && test -s conftest$ac_exeext &&
43494        $as_test_x conftest$ac_exeext; then
43495   ac_cv_func_pthread_attr_getschedpolicy=yes
43496 else
43497   echo "$as_me: failed program was:" >&5
43498 sed 's/^/| /' conftest.$ac_ext >&5
43499
43500         ac_cv_func_pthread_attr_getschedpolicy=no
43501 fi
43502
43503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43504       conftest$ac_exeext conftest.$ac_ext
43505 fi
43506 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
43507 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
43508 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
43509   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
43510 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
43511 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
43512   echo $ECHO_N "(cached) $ECHO_C" >&6
43513 else
43514   cat >conftest.$ac_ext <<_ACEOF
43515 /* confdefs.h.  */
43516 _ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h.  */
43520 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
43521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43522 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
43523
43524 /* System header to define __stub macros and hopefully few prototypes,
43525     which can conflict with char pthread_attr_setschedparam (); below.
43526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43527     <limits.h> exists even on freestanding compilers.  */
43528
43529 #ifdef __STDC__
43530 # include <limits.h>
43531 #else
43532 # include <assert.h>
43533 #endif
43534
43535 #undef pthread_attr_setschedparam
43536
43537 /* Override any GCC internal prototype to avoid an error.
43538    Use char because int might match the return type of a GCC
43539    builtin and then its argument prototype would still apply.  */
43540 #ifdef __cplusplus
43541 extern "C"
43542 #endif
43543 char pthread_attr_setschedparam ();
43544 /* The GNU C library defines this for functions which it implements
43545     to always fail with ENOSYS.  Some functions are actually named
43546     something starting with __ and the normal name is an alias.  */
43547 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
43548 choke me
43549 #endif
43550
43551 int
43552 main ()
43553 {
43554 return pthread_attr_setschedparam ();
43555   ;
43556   return 0;
43557 }
43558 _ACEOF
43559 rm -f conftest.$ac_objext conftest$ac_exeext
43560 if { (ac_try="$ac_link"
43561 case "(($ac_try" in
43562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43563   *) ac_try_echo=$ac_try;;
43564 esac
43565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43566   (eval "$ac_link") 2>conftest.er1
43567   ac_status=$?
43568   grep -v '^ *+' conftest.er1 >conftest.err
43569   rm -f conftest.er1
43570   cat conftest.err >&5
43571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572   (exit $ac_status); } && {
43573          test -z "$ac_c_werror_flag" ||
43574          test ! -s conftest.err
43575        } && test -s conftest$ac_exeext &&
43576        $as_test_x conftest$ac_exeext; then
43577   ac_cv_func_pthread_attr_setschedparam=yes
43578 else
43579   echo "$as_me: failed program was:" >&5
43580 sed 's/^/| /' conftest.$ac_ext >&5
43581
43582         ac_cv_func_pthread_attr_setschedparam=no
43583 fi
43584
43585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43586       conftest$ac_exeext conftest.$ac_ext
43587 fi
43588 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
43589 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
43590 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
43591   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
43592 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
43593 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
43594   echo $ECHO_N "(cached) $ECHO_C" >&6
43595 else
43596   cat >conftest.$ac_ext <<_ACEOF
43597 /* confdefs.h.  */
43598 _ACEOF
43599 cat confdefs.h >>conftest.$ac_ext
43600 cat >>conftest.$ac_ext <<_ACEOF
43601 /* end confdefs.h.  */
43602 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
43603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43604 #define sched_get_priority_max innocuous_sched_get_priority_max
43605
43606 /* System header to define __stub macros and hopefully few prototypes,
43607     which can conflict with char sched_get_priority_max (); below.
43608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43609     <limits.h> exists even on freestanding compilers.  */
43610
43611 #ifdef __STDC__
43612 # include <limits.h>
43613 #else
43614 # include <assert.h>
43615 #endif
43616
43617 #undef sched_get_priority_max
43618
43619 /* Override any GCC internal prototype to avoid an error.
43620    Use char because int might match the return type of a GCC
43621    builtin and then its argument prototype would still apply.  */
43622 #ifdef __cplusplus
43623 extern "C"
43624 #endif
43625 char sched_get_priority_max ();
43626 /* The GNU C library defines this for functions which it implements
43627     to always fail with ENOSYS.  Some functions are actually named
43628     something starting with __ and the normal name is an alias.  */
43629 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
43630 choke me
43631 #endif
43632
43633 int
43634 main ()
43635 {
43636 return sched_get_priority_max ();
43637   ;
43638   return 0;
43639 }
43640 _ACEOF
43641 rm -f conftest.$ac_objext conftest$ac_exeext
43642 if { (ac_try="$ac_link"
43643 case "(($ac_try" in
43644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43645   *) ac_try_echo=$ac_try;;
43646 esac
43647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43648   (eval "$ac_link") 2>conftest.er1
43649   ac_status=$?
43650   grep -v '^ *+' conftest.er1 >conftest.err
43651   rm -f conftest.er1
43652   cat conftest.err >&5
43653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43654   (exit $ac_status); } && {
43655          test -z "$ac_c_werror_flag" ||
43656          test ! -s conftest.err
43657        } && test -s conftest$ac_exeext &&
43658        $as_test_x conftest$ac_exeext; then
43659   ac_cv_func_sched_get_priority_max=yes
43660 else
43661   echo "$as_me: failed program was:" >&5
43662 sed 's/^/| /' conftest.$ac_ext >&5
43663
43664         ac_cv_func_sched_get_priority_max=no
43665 fi
43666
43667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43668       conftest$ac_exeext conftest.$ac_ext
43669 fi
43670 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
43671 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
43672 if test $ac_cv_func_sched_get_priority_max = yes; then
43673   HAVE_PRIOR_FUNCS=1
43674 else
43675   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
43676 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
43677 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
43678   echo $ECHO_N "(cached) $ECHO_C" >&6
43679 else
43680   ac_check_lib_save_LIBS=$LIBS
43681 LIBS="-lposix4  $LIBS"
43682 cat >conftest.$ac_ext <<_ACEOF
43683 /* confdefs.h.  */
43684 _ACEOF
43685 cat confdefs.h >>conftest.$ac_ext
43686 cat >>conftest.$ac_ext <<_ACEOF
43687 /* end confdefs.h.  */
43688
43689 /* Override any GCC internal prototype to avoid an error.
43690    Use char because int might match the return type of a GCC
43691    builtin and then its argument prototype would still apply.  */
43692 #ifdef __cplusplus
43693 extern "C"
43694 #endif
43695 char sched_get_priority_max ();
43696 int
43697 main ()
43698 {
43699 return sched_get_priority_max ();
43700   ;
43701   return 0;
43702 }
43703 _ACEOF
43704 rm -f conftest.$ac_objext conftest$ac_exeext
43705 if { (ac_try="$ac_link"
43706 case "(($ac_try" in
43707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43708   *) ac_try_echo=$ac_try;;
43709 esac
43710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43711   (eval "$ac_link") 2>conftest.er1
43712   ac_status=$?
43713   grep -v '^ *+' conftest.er1 >conftest.err
43714   rm -f conftest.er1
43715   cat conftest.err >&5
43716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717   (exit $ac_status); } && {
43718          test -z "$ac_c_werror_flag" ||
43719          test ! -s conftest.err
43720        } && test -s conftest$ac_exeext &&
43721        $as_test_x conftest$ac_exeext; then
43722   ac_cv_lib_posix4_sched_get_priority_max=yes
43723 else
43724   echo "$as_me: failed program was:" >&5
43725 sed 's/^/| /' conftest.$ac_ext >&5
43726
43727         ac_cv_lib_posix4_sched_get_priority_max=no
43728 fi
43729
43730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43731       conftest$ac_exeext conftest.$ac_ext
43732 LIBS=$ac_check_lib_save_LIBS
43733 fi
43734 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
43735 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
43736 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
43737
43738                                 HAVE_PRIOR_FUNCS=1
43739                                 POSIX4_LINK=" -lposix4"
43740
43741 fi
43742
43743
43744 fi
43745
43746
43747 fi
43748
43749
43750 fi
43751
43752
43753       if test "$HAVE_PRIOR_FUNCS" = 1; then
43754         cat >>confdefs.h <<\_ACEOF
43755 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
43756 _ACEOF
43757
43758       else
43759         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
43760 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
43761       fi
43762
43763       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
43764 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
43765 if test "${ac_cv_func_pthread_cancel+set}" = set; then
43766   echo $ECHO_N "(cached) $ECHO_C" >&6
43767 else
43768   cat >conftest.$ac_ext <<_ACEOF
43769 /* confdefs.h.  */
43770 _ACEOF
43771 cat confdefs.h >>conftest.$ac_ext
43772 cat >>conftest.$ac_ext <<_ACEOF
43773 /* end confdefs.h.  */
43774 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
43775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43776 #define pthread_cancel innocuous_pthread_cancel
43777
43778 /* System header to define __stub macros and hopefully few prototypes,
43779     which can conflict with char pthread_cancel (); below.
43780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43781     <limits.h> exists even on freestanding compilers.  */
43782
43783 #ifdef __STDC__
43784 # include <limits.h>
43785 #else
43786 # include <assert.h>
43787 #endif
43788
43789 #undef pthread_cancel
43790
43791 /* Override any GCC internal prototype to avoid an error.
43792    Use char because int might match the return type of a GCC
43793    builtin and then its argument prototype would still apply.  */
43794 #ifdef __cplusplus
43795 extern "C"
43796 #endif
43797 char pthread_cancel ();
43798 /* The GNU C library defines this for functions which it implements
43799     to always fail with ENOSYS.  Some functions are actually named
43800     something starting with __ and the normal name is an alias.  */
43801 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
43802 choke me
43803 #endif
43804
43805 int
43806 main ()
43807 {
43808 return pthread_cancel ();
43809   ;
43810   return 0;
43811 }
43812 _ACEOF
43813 rm -f conftest.$ac_objext conftest$ac_exeext
43814 if { (ac_try="$ac_link"
43815 case "(($ac_try" in
43816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43817   *) ac_try_echo=$ac_try;;
43818 esac
43819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43820   (eval "$ac_link") 2>conftest.er1
43821   ac_status=$?
43822   grep -v '^ *+' conftest.er1 >conftest.err
43823   rm -f conftest.er1
43824   cat conftest.err >&5
43825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43826   (exit $ac_status); } && {
43827          test -z "$ac_c_werror_flag" ||
43828          test ! -s conftest.err
43829        } && test -s conftest$ac_exeext &&
43830        $as_test_x conftest$ac_exeext; then
43831   ac_cv_func_pthread_cancel=yes
43832 else
43833   echo "$as_me: failed program was:" >&5
43834 sed 's/^/| /' conftest.$ac_ext >&5
43835
43836         ac_cv_func_pthread_cancel=no
43837 fi
43838
43839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43840       conftest$ac_exeext conftest.$ac_ext
43841 fi
43842 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
43843 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
43844 if test $ac_cv_func_pthread_cancel = yes; then
43845   cat >>confdefs.h <<\_ACEOF
43846 #define HAVE_PTHREAD_CANCEL 1
43847 _ACEOF
43848
43849 else
43850   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
43851 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
43852 fi
43853
43854
43855       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
43856 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
43857 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
43858   echo $ECHO_N "(cached) $ECHO_C" >&6
43859 else
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 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
43867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43868 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
43869
43870 /* System header to define __stub macros and hopefully few prototypes,
43871     which can conflict with char pthread_mutex_timedlock (); below.
43872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43873     <limits.h> exists even on freestanding compilers.  */
43874
43875 #ifdef __STDC__
43876 # include <limits.h>
43877 #else
43878 # include <assert.h>
43879 #endif
43880
43881 #undef pthread_mutex_timedlock
43882
43883 /* Override any GCC internal prototype to avoid an error.
43884    Use char because int might match the return type of a GCC
43885    builtin and then its argument prototype would still apply.  */
43886 #ifdef __cplusplus
43887 extern "C"
43888 #endif
43889 char pthread_mutex_timedlock ();
43890 /* The GNU C library defines this for functions which it implements
43891     to always fail with ENOSYS.  Some functions are actually named
43892     something starting with __ and the normal name is an alias.  */
43893 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
43894 choke me
43895 #endif
43896
43897 int
43898 main ()
43899 {
43900 return pthread_mutex_timedlock ();
43901   ;
43902   return 0;
43903 }
43904 _ACEOF
43905 rm -f conftest.$ac_objext conftest$ac_exeext
43906 if { (ac_try="$ac_link"
43907 case "(($ac_try" in
43908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43909   *) ac_try_echo=$ac_try;;
43910 esac
43911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43912   (eval "$ac_link") 2>conftest.er1
43913   ac_status=$?
43914   grep -v '^ *+' conftest.er1 >conftest.err
43915   rm -f conftest.er1
43916   cat conftest.err >&5
43917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918   (exit $ac_status); } && {
43919          test -z "$ac_c_werror_flag" ||
43920          test ! -s conftest.err
43921        } && test -s conftest$ac_exeext &&
43922        $as_test_x conftest$ac_exeext; then
43923   ac_cv_func_pthread_mutex_timedlock=yes
43924 else
43925   echo "$as_me: failed program was:" >&5
43926 sed 's/^/| /' conftest.$ac_ext >&5
43927
43928         ac_cv_func_pthread_mutex_timedlock=no
43929 fi
43930
43931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43932       conftest$ac_exeext conftest.$ac_ext
43933 fi
43934 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
43935 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
43936 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
43937   cat >>confdefs.h <<\_ACEOF
43938 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
43939 _ACEOF
43940
43941 else
43942   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
43943 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
43944 fi
43945
43946
43947       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
43948 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
43949 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
43950   echo $ECHO_N "(cached) $ECHO_C" >&6
43951 else
43952   cat >conftest.$ac_ext <<_ACEOF
43953 /* confdefs.h.  */
43954 _ACEOF
43955 cat confdefs.h >>conftest.$ac_ext
43956 cat >>conftest.$ac_ext <<_ACEOF
43957 /* end confdefs.h.  */
43958 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
43959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43960 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
43961
43962 /* System header to define __stub macros and hopefully few prototypes,
43963     which can conflict with char pthread_attr_setstacksize (); below.
43964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43965     <limits.h> exists even on freestanding compilers.  */
43966
43967 #ifdef __STDC__
43968 # include <limits.h>
43969 #else
43970 # include <assert.h>
43971 #endif
43972
43973 #undef pthread_attr_setstacksize
43974
43975 /* Override any GCC internal prototype to avoid an error.
43976    Use char because int might match the return type of a GCC
43977    builtin and then its argument prototype would still apply.  */
43978 #ifdef __cplusplus
43979 extern "C"
43980 #endif
43981 char pthread_attr_setstacksize ();
43982 /* The GNU C library defines this for functions which it implements
43983     to always fail with ENOSYS.  Some functions are actually named
43984     something starting with __ and the normal name is an alias.  */
43985 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
43986 choke me
43987 #endif
43988
43989 int
43990 main ()
43991 {
43992 return pthread_attr_setstacksize ();
43993   ;
43994   return 0;
43995 }
43996 _ACEOF
43997 rm -f conftest.$ac_objext conftest$ac_exeext
43998 if { (ac_try="$ac_link"
43999 case "(($ac_try" in
44000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44001   *) ac_try_echo=$ac_try;;
44002 esac
44003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44004   (eval "$ac_link") 2>conftest.er1
44005   ac_status=$?
44006   grep -v '^ *+' conftest.er1 >conftest.err
44007   rm -f conftest.er1
44008   cat conftest.err >&5
44009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010   (exit $ac_status); } && {
44011          test -z "$ac_c_werror_flag" ||
44012          test ! -s conftest.err
44013        } && test -s conftest$ac_exeext &&
44014        $as_test_x conftest$ac_exeext; then
44015   ac_cv_func_pthread_attr_setstacksize=yes
44016 else
44017   echo "$as_me: failed program was:" >&5
44018 sed 's/^/| /' conftest.$ac_ext >&5
44019
44020         ac_cv_func_pthread_attr_setstacksize=no
44021 fi
44022
44023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44024       conftest$ac_exeext conftest.$ac_ext
44025 fi
44026 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
44027 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
44028 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
44029   cat >>confdefs.h <<\_ACEOF
44030 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
44031 _ACEOF
44032
44033 fi
44034
44035
44036
44037       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
44038 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
44039 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
44040   echo $ECHO_N "(cached) $ECHO_C" >&6
44041 else
44042
44043         cat >conftest.$ac_ext <<_ACEOF
44044 /* confdefs.h.  */
44045 _ACEOF
44046 cat confdefs.h >>conftest.$ac_ext
44047 cat >>conftest.$ac_ext <<_ACEOF
44048 /* end confdefs.h.  */
44049 #include <pthread.h>
44050 int
44051 main ()
44052 {
44053
44054                pthread_mutexattr_t attr;
44055                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44056
44057   ;
44058   return 0;
44059 }
44060 _ACEOF
44061 rm -f conftest.$ac_objext
44062 if { (ac_try="$ac_compile"
44063 case "(($ac_try" in
44064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44065   *) ac_try_echo=$ac_try;;
44066 esac
44067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44068   (eval "$ac_compile") 2>conftest.er1
44069   ac_status=$?
44070   grep -v '^ *+' conftest.er1 >conftest.err
44071   rm -f conftest.er1
44072   cat conftest.err >&5
44073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44074   (exit $ac_status); } && {
44075          test -z "$ac_c_werror_flag" ||
44076          test ! -s conftest.err
44077        } && test -s conftest.$ac_objext; then
44078   wx_cv_type_pthread_mutexattr_t=yes
44079 else
44080   echo "$as_me: failed program was:" >&5
44081 sed 's/^/| /' conftest.$ac_ext >&5
44082
44083         wx_cv_type_pthread_mutexattr_t=no
44084
44085 fi
44086
44087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44088
44089 fi
44090 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
44091 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
44092
44093       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
44094         cat >>confdefs.h <<\_ACEOF
44095 #define HAVE_PTHREAD_MUTEXATTR_T 1
44096 _ACEOF
44097
44098
44099                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
44100 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
44101 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
44102   echo $ECHO_N "(cached) $ECHO_C" >&6
44103 else
44104
44105                        cat >conftest.$ac_ext <<_ACEOF
44106 /* confdefs.h.  */
44107 _ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h.  */
44111 #include <pthread.h>
44112 int
44113 main ()
44114 {
44115
44116                                pthread_mutexattr_t attr;
44117                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44118
44119   ;
44120   return 0;
44121 }
44122 _ACEOF
44123 rm -f conftest.$ac_objext
44124 if { (ac_try="$ac_compile"
44125 case "(($ac_try" in
44126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44127   *) ac_try_echo=$ac_try;;
44128 esac
44129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44130   (eval "$ac_compile") 2>conftest.er1
44131   ac_status=$?
44132   grep -v '^ *+' conftest.er1 >conftest.err
44133   rm -f conftest.er1
44134   cat conftest.err >&5
44135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44136   (exit $ac_status); } && {
44137          test -z "$ac_c_werror_flag" ||
44138          test ! -s conftest.err
44139        } && test -s conftest.$ac_objext; then
44140   wx_cv_func_pthread_mutexattr_settype_decl=yes
44141 else
44142   echo "$as_me: failed program was:" >&5
44143 sed 's/^/| /' conftest.$ac_ext >&5
44144
44145         wx_cv_func_pthread_mutexattr_settype_decl=no
44146
44147 fi
44148
44149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44150
44151 fi
44152 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
44153 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
44154         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
44155             cat >>confdefs.h <<\_ACEOF
44156 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
44157 _ACEOF
44158
44159         fi
44160       else
44161                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
44162 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
44163 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
44164   echo $ECHO_N "(cached) $ECHO_C" >&6
44165 else
44166
44167             cat >conftest.$ac_ext <<_ACEOF
44168 /* confdefs.h.  */
44169 _ACEOF
44170 cat confdefs.h >>conftest.$ac_ext
44171 cat >>conftest.$ac_ext <<_ACEOF
44172 /* end confdefs.h.  */
44173 #include <pthread.h>
44174 int
44175 main ()
44176 {
44177
44178                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
44179
44180   ;
44181   return 0;
44182 }
44183 _ACEOF
44184 rm -f conftest.$ac_objext
44185 if { (ac_try="$ac_compile"
44186 case "(($ac_try" in
44187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44188   *) ac_try_echo=$ac_try;;
44189 esac
44190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44191   (eval "$ac_compile") 2>conftest.er1
44192   ac_status=$?
44193   grep -v '^ *+' conftest.er1 >conftest.err
44194   rm -f conftest.er1
44195   cat conftest.err >&5
44196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44197   (exit $ac_status); } && {
44198          test -z "$ac_c_werror_flag" ||
44199          test ! -s conftest.err
44200        } && test -s conftest.$ac_objext; then
44201
44202                     wx_cv_type_pthread_rec_mutex_init=yes
44203
44204 else
44205   echo "$as_me: failed program was:" >&5
44206 sed 's/^/| /' conftest.$ac_ext >&5
44207
44208
44209                     wx_cv_type_pthread_rec_mutex_init=no
44210
44211
44212 fi
44213
44214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44215
44216 fi
44217 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
44218 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
44219         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
44220           cat >>confdefs.h <<\_ACEOF
44221 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
44222 _ACEOF
44223
44224         else
44225                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
44226 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
44227         fi
44228       fi
44229
44230       if test "$wxUSE_COMPILER_TLS" = "auto"; then
44231           if test "$USE_NETBSD" = 1; then
44232               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
44233 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
44234               wxUSE_COMPILER_TLS=no
44235           else
44236               wxUSE_COMPILER_TLS=yes
44237           fi
44238       fi
44239
44240       if test "$wxUSE_COMPILER_TLS" = "yes"; then
44241                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
44242 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
44243 if test "${wx_cv_cc___thread+set}" = set; then
44244   echo $ECHO_N "(cached) $ECHO_C" >&6
44245 else
44246
44247                   cat >conftest.$ac_ext <<_ACEOF
44248 /* confdefs.h.  */
44249 _ACEOF
44250 cat confdefs.h >>conftest.$ac_ext
44251 cat >>conftest.$ac_ext <<_ACEOF
44252 /* end confdefs.h.  */
44253 #include <pthread.h>
44254 int
44255 main ()
44256 {
44257
44258                           static __thread int n = 0;
44259                           static __thread int *p = 0;
44260
44261   ;
44262   return 0;
44263 }
44264 _ACEOF
44265 rm -f conftest.$ac_objext
44266 if { (ac_try="$ac_compile"
44267 case "(($ac_try" in
44268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44269   *) ac_try_echo=$ac_try;;
44270 esac
44271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44272   (eval "$ac_compile") 2>conftest.er1
44273   ac_status=$?
44274   grep -v '^ *+' conftest.er1 >conftest.err
44275   rm -f conftest.er1
44276   cat conftest.err >&5
44277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278   (exit $ac_status); } && {
44279          test -z "$ac_c_werror_flag" ||
44280          test ! -s conftest.err
44281        } && test -s conftest.$ac_objext; then
44282   wx_cv_cc___thread=yes
44283 else
44284   echo "$as_me: failed program was:" >&5
44285 sed 's/^/| /' conftest.$ac_ext >&5
44286
44287         wx_cv_cc___thread=no
44288
44289 fi
44290
44291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44292
44293
44294 fi
44295 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
44296 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
44297
44298           if test "$wx_cv_cc___thread" = "yes"; then
44299
44300   GXX_VERSION=""
44301
44302
44303
44304   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
44305 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
44306
44307   if  test "x$GCC" = "xyes" ; then
44308
44309     if  test -z "" ; then
44310
44311       ax_gcc_option_test="int main()
44312 {
44313         return 0;
44314 }"
44315
44316 else
44317
44318       ax_gcc_option_test=""
44319
44320 fi
44321
44322
44323     # Dump the test program to file
44324     cat <<EOF > conftest.c
44325 $ax_gcc_option_test
44326 EOF
44327
44328     # Dump back the file to the log, useful for debugging purposes
44329     { ac_try='cat conftest.c 1>&5'
44330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44331   (eval $ac_try) 2>&5
44332   ac_status=$?
44333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44334   (exit $ac_status); }; }
44335
44336     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
44337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338   (eval $ac_try) 2>&5
44339   ac_status=$?
44340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341   (exit $ac_status); }; } ; then
44342
44343                 { echo "$as_me:$LINENO: result: yes" >&5
44344 echo "${ECHO_T}yes" >&6; }
44345
44346     ax_gcc_version_option=yes
44347
44348
44349 else
44350
44351                 { echo "$as_me:$LINENO: result: no" >&5
44352 echo "${ECHO_T}no" >&6; }
44353
44354     ax_gcc_version_option=no
44355
44356
44357 fi
44358
44359
44360 else
44361
44362     { echo "$as_me:$LINENO: result: no gcc available" >&5
44363 echo "${ECHO_T}no gcc available" >&6; }
44364
44365 fi
44366
44367
44368   if test "x$GXX" = "xyes"; then
44369
44370     if test "x$ax_gxx_version_option" != "no"; then
44371
44372       { echo "$as_me:$LINENO: checking gxx version" >&5
44373 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
44374 if test "${ax_cv_gxx_version+set}" = set; then
44375   echo $ECHO_N "(cached) $ECHO_C" >&6
44376 else
44377
44378         ax_cv_gxx_version="`$CXX -dumpversion`"
44379         if test "x$ax_cv_gxx_version" = "x"; then
44380
44381           ax_cv_gxx_version=""
44382
44383 fi
44384
44385
44386 fi
44387 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
44388 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
44389       GXX_VERSION=$ax_cv_gxx_version
44390
44391 fi
44392
44393
44394 fi
44395
44396
44397
44398               if test -n "$ax_cv_gxx_version"; then
44399                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
44400 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
44401                   case "$ax_cv_gxx_version" in
44402                     1.* | 2.* | 3.* )
44403                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
44404 echo "${ECHO_T}no, it's broken" >&6; }
44405                         wx_cv_cc___thread=no
44406                         ;;
44407                     *)
44408                         { echo "$as_me:$LINENO: result: yes, it works" >&5
44409 echo "${ECHO_T}yes, it works" >&6; }
44410                         ;;
44411                   esac
44412               fi
44413           fi
44414
44415           if test "$wx_cv_cc___thread" = "yes"; then
44416             cat >>confdefs.h <<\_ACEOF
44417 #define HAVE___THREAD_KEYWORD 1
44418 _ACEOF
44419
44420           fi
44421         fi
44422     fi
44423
44424 else
44425     if test "$wxUSE_THREADS" = "yes" ; then
44426       case "${host}" in
44427         x86_64-*-mingw32* )
44428         ;;
44429         *-*-mingw32* )
44430                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
44431 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
44432 if test "${wx_cv_cflags_mthread+set}" = set; then
44433   echo $ECHO_N "(cached) $ECHO_C" >&6
44434 else
44435
44436                     CFLAGS_OLD="$CFLAGS"
44437                     CFLAGS="-mthreads $CFLAGS"
44438                     cat >conftest.$ac_ext <<_ACEOF
44439 /* confdefs.h.  */
44440 _ACEOF
44441 cat confdefs.h >>conftest.$ac_ext
44442 cat >>conftest.$ac_ext <<_ACEOF
44443 /* end confdefs.h.  */
44444
44445 int
44446 main ()
44447 {
44448
44449   ;
44450   return 0;
44451 }
44452 _ACEOF
44453 rm -f conftest.$ac_objext
44454 if { (ac_try="$ac_compile"
44455 case "(($ac_try" in
44456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44457   *) ac_try_echo=$ac_try;;
44458 esac
44459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44460   (eval "$ac_compile") 2>conftest.er1
44461   ac_status=$?
44462   grep -v '^ *+' conftest.er1 >conftest.err
44463   rm -f conftest.er1
44464   cat conftest.err >&5
44465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44466   (exit $ac_status); } && {
44467          test -z "$ac_c_werror_flag" ||
44468          test ! -s conftest.err
44469        } && test -s conftest.$ac_objext; then
44470   wx_cv_cflags_mthread=yes
44471 else
44472   echo "$as_me: failed program was:" >&5
44473 sed 's/^/| /' conftest.$ac_ext >&5
44474
44475         wx_cv_cflags_mthread=no
44476
44477 fi
44478
44479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44480
44481
44482 fi
44483 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
44484 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
44485
44486             if test "$wx_cv_cflags_mthread" = "yes"; then
44487                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
44488                 LDFLAGS="$LDFLAGS -mthreads"
44489             else
44490                                 CFLAGS="$CFLAGS_OLD"
44491             fi
44492         ;;
44493         *-pc-os2*emx )
44494             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
44495             LDFLAGS="$LDFLAGS -Zmt"
44496         ;;
44497       esac
44498     fi
44499 fi
44500
44501 { echo "$as_me:$LINENO: checking for localtime_r" >&5
44502 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
44503 if test "${ac_cv_func_localtime_r+set}" = set; then
44504   echo $ECHO_N "(cached) $ECHO_C" >&6
44505 else
44506   cat >conftest.$ac_ext <<_ACEOF
44507 /* confdefs.h.  */
44508 _ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h.  */
44512 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
44513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44514 #define localtime_r innocuous_localtime_r
44515
44516 /* System header to define __stub macros and hopefully few prototypes,
44517     which can conflict with char localtime_r (); below.
44518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44519     <limits.h> exists even on freestanding compilers.  */
44520
44521 #ifdef __STDC__
44522 # include <limits.h>
44523 #else
44524 # include <assert.h>
44525 #endif
44526
44527 #undef localtime_r
44528
44529 /* Override any GCC internal prototype to avoid an error.
44530    Use char because int might match the return type of a GCC
44531    builtin and then its argument prototype would still apply.  */
44532 #ifdef __cplusplus
44533 extern "C"
44534 #endif
44535 char localtime_r ();
44536 /* The GNU C library defines this for functions which it implements
44537     to always fail with ENOSYS.  Some functions are actually named
44538     something starting with __ and the normal name is an alias.  */
44539 #if defined __stub_localtime_r || defined __stub___localtime_r
44540 choke me
44541 #endif
44542
44543 int
44544 main ()
44545 {
44546 return localtime_r ();
44547   ;
44548   return 0;
44549 }
44550 _ACEOF
44551 rm -f conftest.$ac_objext conftest$ac_exeext
44552 if { (ac_try="$ac_link"
44553 case "(($ac_try" in
44554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44555   *) ac_try_echo=$ac_try;;
44556 esac
44557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44558   (eval "$ac_link") 2>conftest.er1
44559   ac_status=$?
44560   grep -v '^ *+' conftest.er1 >conftest.err
44561   rm -f conftest.er1
44562   cat conftest.err >&5
44563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44564   (exit $ac_status); } && {
44565          test -z "$ac_c_werror_flag" ||
44566          test ! -s conftest.err
44567        } && test -s conftest$ac_exeext &&
44568        $as_test_x conftest$ac_exeext; then
44569   ac_cv_func_localtime_r=yes
44570 else
44571   echo "$as_me: failed program was:" >&5
44572 sed 's/^/| /' conftest.$ac_ext >&5
44573
44574         ac_cv_func_localtime_r=no
44575 fi
44576
44577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44578       conftest$ac_exeext conftest.$ac_ext
44579 fi
44580 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
44581 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
44582 if test $ac_cv_func_localtime_r = yes; then
44583    cat >>confdefs.h <<\_ACEOF
44584 #define HAVE_LOCALTIME_R 1
44585 _ACEOF
44586
44587 fi
44588
44589 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
44590 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
44591 if test "${ac_cv_func_gmtime_r+set}" = set; then
44592   echo $ECHO_N "(cached) $ECHO_C" >&6
44593 else
44594   cat >conftest.$ac_ext <<_ACEOF
44595 /* confdefs.h.  */
44596 _ACEOF
44597 cat confdefs.h >>conftest.$ac_ext
44598 cat >>conftest.$ac_ext <<_ACEOF
44599 /* end confdefs.h.  */
44600 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
44601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44602 #define gmtime_r innocuous_gmtime_r
44603
44604 /* System header to define __stub macros and hopefully few prototypes,
44605     which can conflict with char gmtime_r (); below.
44606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44607     <limits.h> exists even on freestanding compilers.  */
44608
44609 #ifdef __STDC__
44610 # include <limits.h>
44611 #else
44612 # include <assert.h>
44613 #endif
44614
44615 #undef gmtime_r
44616
44617 /* Override any GCC internal prototype to avoid an error.
44618    Use char because int might match the return type of a GCC
44619    builtin and then its argument prototype would still apply.  */
44620 #ifdef __cplusplus
44621 extern "C"
44622 #endif
44623 char gmtime_r ();
44624 /* The GNU C library defines this for functions which it implements
44625     to always fail with ENOSYS.  Some functions are actually named
44626     something starting with __ and the normal name is an alias.  */
44627 #if defined __stub_gmtime_r || defined __stub___gmtime_r
44628 choke me
44629 #endif
44630
44631 int
44632 main ()
44633 {
44634 return gmtime_r ();
44635   ;
44636   return 0;
44637 }
44638 _ACEOF
44639 rm -f conftest.$ac_objext conftest$ac_exeext
44640 if { (ac_try="$ac_link"
44641 case "(($ac_try" in
44642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44643   *) ac_try_echo=$ac_try;;
44644 esac
44645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44646   (eval "$ac_link") 2>conftest.er1
44647   ac_status=$?
44648   grep -v '^ *+' conftest.er1 >conftest.err
44649   rm -f conftest.er1
44650   cat conftest.err >&5
44651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652   (exit $ac_status); } && {
44653          test -z "$ac_c_werror_flag" ||
44654          test ! -s conftest.err
44655        } && test -s conftest$ac_exeext &&
44656        $as_test_x conftest$ac_exeext; then
44657   ac_cv_func_gmtime_r=yes
44658 else
44659   echo "$as_me: failed program was:" >&5
44660 sed 's/^/| /' conftest.$ac_ext >&5
44661
44662         ac_cv_func_gmtime_r=no
44663 fi
44664
44665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44666       conftest$ac_exeext conftest.$ac_ext
44667 fi
44668 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
44669 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
44670 if test $ac_cv_func_gmtime_r = yes; then
44671    cat >>confdefs.h <<\_ACEOF
44672 #define HAVE_GMTIME_R 1
44673 _ACEOF
44674
44675 fi
44676
44677
44678
44679
44680     ac_ext=c
44681 ac_cpp='$CPP $CPPFLAGS'
44682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44685
44686     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
44687 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
44688
44689     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
44690   echo $ECHO_N "(cached) $ECHO_C" >&6
44691 else
44692
44693
44694 ################################################################
44695
44696 ac_cv_func_which_gethostbyname_r=unknown
44697
44698 #
44699 # ONE ARGUMENT (sanity check)
44700 #
44701
44702 # This should fail, as there is no variant of gethostbyname_r() that takes
44703 # a single argument. If it actually compiles, then we can assume that
44704 # netdb.h is not declaring the function, and the compiler is thereby
44705 # assuming an implicit prototype. In which case, we're out of luck.
44706 #
44707 cat >conftest.$ac_ext <<_ACEOF
44708 /* confdefs.h.  */
44709 _ACEOF
44710 cat confdefs.h >>conftest.$ac_ext
44711 cat >>conftest.$ac_ext <<_ACEOF
44712 /* end confdefs.h.  */
44713 #include <netdb.h>
44714 int
44715 main ()
44716 {
44717
44718             char *name = "www.gnu.org";
44719             (void)gethostbyname_r(name) /* ; */
44720
44721
44722   ;
44723   return 0;
44724 }
44725 _ACEOF
44726 rm -f conftest.$ac_objext
44727 if { (ac_try="$ac_compile"
44728 case "(($ac_try" in
44729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44730   *) ac_try_echo=$ac_try;;
44731 esac
44732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44733   (eval "$ac_compile") 2>conftest.er1
44734   ac_status=$?
44735   grep -v '^ *+' conftest.er1 >conftest.err
44736   rm -f conftest.er1
44737   cat conftest.err >&5
44738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739   (exit $ac_status); } && {
44740          test -z "$ac_c_werror_flag" ||
44741          test ! -s conftest.err
44742        } && test -s conftest.$ac_objext; then
44743   ac_cv_func_which_gethostbyname_r=no
44744
44745 else
44746   echo "$as_me: failed program was:" >&5
44747 sed 's/^/| /' conftest.$ac_ext >&5
44748
44749
44750 fi
44751
44752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44753
44754 #
44755 # SIX ARGUMENTS
44756 # (e.g. Linux)
44757 #
44758
44759 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44760
44761 cat >conftest.$ac_ext <<_ACEOF
44762 /* confdefs.h.  */
44763 _ACEOF
44764 cat confdefs.h >>conftest.$ac_ext
44765 cat >>conftest.$ac_ext <<_ACEOF
44766 /* end confdefs.h.  */
44767 #include <netdb.h>
44768 int
44769 main ()
44770 {
44771
44772             char *name = "www.gnu.org";
44773             struct hostent ret, *retp;
44774             char buf[1024];
44775             int buflen = 1024;
44776             int my_h_errno;
44777             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
44778
44779
44780   ;
44781   return 0;
44782 }
44783 _ACEOF
44784 rm -f conftest.$ac_objext
44785 if { (ac_try="$ac_compile"
44786 case "(($ac_try" in
44787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44788   *) ac_try_echo=$ac_try;;
44789 esac
44790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44791   (eval "$ac_compile") 2>conftest.er1
44792   ac_status=$?
44793   grep -v '^ *+' conftest.er1 >conftest.err
44794   rm -f conftest.er1
44795   cat conftest.err >&5
44796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44797   (exit $ac_status); } && {
44798          test -z "$ac_c_werror_flag" ||
44799          test ! -s conftest.err
44800        } && test -s conftest.$ac_objext; then
44801   ac_cv_func_which_gethostbyname_r=six
44802
44803 else
44804   echo "$as_me: failed program was:" >&5
44805 sed 's/^/| /' conftest.$ac_ext >&5
44806
44807
44808 fi
44809
44810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44811
44812 fi
44813
44814 #
44815 # FIVE ARGUMENTS
44816 # (e.g. Solaris)
44817 #
44818
44819 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44820
44821 cat >conftest.$ac_ext <<_ACEOF
44822 /* confdefs.h.  */
44823 _ACEOF
44824 cat confdefs.h >>conftest.$ac_ext
44825 cat >>conftest.$ac_ext <<_ACEOF
44826 /* end confdefs.h.  */
44827 #include <netdb.h>
44828 int
44829 main ()
44830 {
44831
44832             char *name = "www.gnu.org";
44833             struct hostent ret;
44834             char buf[1024];
44835             int buflen = 1024;
44836             int my_h_errno;
44837             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
44838
44839
44840   ;
44841   return 0;
44842 }
44843 _ACEOF
44844 rm -f conftest.$ac_objext
44845 if { (ac_try="$ac_compile"
44846 case "(($ac_try" in
44847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44848   *) ac_try_echo=$ac_try;;
44849 esac
44850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44851   (eval "$ac_compile") 2>conftest.er1
44852   ac_status=$?
44853   grep -v '^ *+' conftest.er1 >conftest.err
44854   rm -f conftest.er1
44855   cat conftest.err >&5
44856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857   (exit $ac_status); } && {
44858          test -z "$ac_c_werror_flag" ||
44859          test ! -s conftest.err
44860        } && test -s conftest.$ac_objext; then
44861   ac_cv_func_which_gethostbyname_r=five
44862
44863 else
44864   echo "$as_me: failed program was:" >&5
44865 sed 's/^/| /' conftest.$ac_ext >&5
44866
44867
44868 fi
44869
44870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44871
44872 fi
44873
44874 #
44875 # THREE ARGUMENTS
44876 # (e.g. AIX, HP-UX, Tru64)
44877 #
44878
44879 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44880
44881 cat >conftest.$ac_ext <<_ACEOF
44882 /* confdefs.h.  */
44883 _ACEOF
44884 cat confdefs.h >>conftest.$ac_ext
44885 cat >>conftest.$ac_ext <<_ACEOF
44886 /* end confdefs.h.  */
44887 #include <netdb.h>
44888 int
44889 main ()
44890 {
44891
44892             char *name = "www.gnu.org";
44893             struct hostent ret;
44894             struct hostent_data data;
44895             (void)gethostbyname_r(name, &ret, &data) /* ; */
44896
44897
44898   ;
44899   return 0;
44900 }
44901 _ACEOF
44902 rm -f conftest.$ac_objext
44903 if { (ac_try="$ac_compile"
44904 case "(($ac_try" in
44905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44906   *) ac_try_echo=$ac_try;;
44907 esac
44908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44909   (eval "$ac_compile") 2>conftest.er1
44910   ac_status=$?
44911   grep -v '^ *+' conftest.er1 >conftest.err
44912   rm -f conftest.er1
44913   cat conftest.err >&5
44914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44915   (exit $ac_status); } && {
44916          test -z "$ac_c_werror_flag" ||
44917          test ! -s conftest.err
44918        } && test -s conftest.$ac_objext; then
44919   ac_cv_func_which_gethostbyname_r=three
44920
44921 else
44922   echo "$as_me: failed program was:" >&5
44923 sed 's/^/| /' conftest.$ac_ext >&5
44924
44925
44926 fi
44927
44928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44929
44930 fi
44931
44932 ################################################################
44933
44934
44935 fi
44936
44937 case "$ac_cv_func_which_gethostbyname_r" in
44938     three)
44939     { echo "$as_me:$LINENO: result: three" >&5
44940 echo "${ECHO_T}three" >&6; }
44941     cat >>confdefs.h <<\_ACEOF
44942 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
44943 _ACEOF
44944
44945     ;;
44946
44947     five)
44948     { echo "$as_me:$LINENO: result: five" >&5
44949 echo "${ECHO_T}five" >&6; }
44950     cat >>confdefs.h <<\_ACEOF
44951 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
44952 _ACEOF
44953
44954     ;;
44955
44956     six)
44957     { echo "$as_me:$LINENO: result: six" >&5
44958 echo "${ECHO_T}six" >&6; }
44959     cat >>confdefs.h <<\_ACEOF
44960 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
44961 _ACEOF
44962
44963     ;;
44964
44965     no)
44966     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
44967 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
44968     ;;
44969
44970     unknown)
44971     { echo "$as_me:$LINENO: result: can't tell" >&5
44972 echo "${ECHO_T}can't tell" >&6; }
44973     ;;
44974
44975     *)
44976     { { echo "$as_me:$LINENO: error: internal error" >&5
44977 echo "$as_me: error: internal error" >&2;}
44978    { (exit 1); exit 1; }; }
44979     ;;
44980 esac
44981
44982 ac_ext=c
44983 ac_cpp='$CPP $CPPFLAGS'
44984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44987
44988
44989
44990       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
44991               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
44992           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
44993 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
44994 if test "${ac_cv_func_gethostbyname+set}" = set; then
44995   echo $ECHO_N "(cached) $ECHO_C" >&6
44996 else
44997   cat >conftest.$ac_ext <<_ACEOF
44998 /* confdefs.h.  */
44999 _ACEOF
45000 cat confdefs.h >>conftest.$ac_ext
45001 cat >>conftest.$ac_ext <<_ACEOF
45002 /* end confdefs.h.  */
45003 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
45004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45005 #define gethostbyname innocuous_gethostbyname
45006
45007 /* System header to define __stub macros and hopefully few prototypes,
45008     which can conflict with char gethostbyname (); below.
45009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45010     <limits.h> exists even on freestanding compilers.  */
45011
45012 #ifdef __STDC__
45013 # include <limits.h>
45014 #else
45015 # include <assert.h>
45016 #endif
45017
45018 #undef gethostbyname
45019
45020 /* Override any GCC internal prototype to avoid an error.
45021    Use char because int might match the return type of a GCC
45022    builtin and then its argument prototype would still apply.  */
45023 #ifdef __cplusplus
45024 extern "C"
45025 #endif
45026 char gethostbyname ();
45027 /* The GNU C library defines this for functions which it implements
45028     to always fail with ENOSYS.  Some functions are actually named
45029     something starting with __ and the normal name is an alias.  */
45030 #if defined __stub_gethostbyname || defined __stub___gethostbyname
45031 choke me
45032 #endif
45033
45034 int
45035 main ()
45036 {
45037 return gethostbyname ();
45038   ;
45039   return 0;
45040 }
45041 _ACEOF
45042 rm -f conftest.$ac_objext conftest$ac_exeext
45043 if { (ac_try="$ac_link"
45044 case "(($ac_try" in
45045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45046   *) ac_try_echo=$ac_try;;
45047 esac
45048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45049   (eval "$ac_link") 2>conftest.er1
45050   ac_status=$?
45051   grep -v '^ *+' conftest.er1 >conftest.err
45052   rm -f conftest.er1
45053   cat conftest.err >&5
45054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45055   (exit $ac_status); } && {
45056          test -z "$ac_c_werror_flag" ||
45057          test ! -s conftest.err
45058        } && test -s conftest$ac_exeext &&
45059        $as_test_x conftest$ac_exeext; then
45060   ac_cv_func_gethostbyname=yes
45061 else
45062   echo "$as_me: failed program was:" >&5
45063 sed 's/^/| /' conftest.$ac_ext >&5
45064
45065         ac_cv_func_gethostbyname=no
45066 fi
45067
45068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45069       conftest$ac_exeext conftest.$ac_ext
45070 fi
45071 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45072 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45073 if test $ac_cv_func_gethostbyname = yes; then
45074    cat >>confdefs.h <<\_ACEOF
45075 #define HAVE_GETHOSTBYNAME 1
45076 _ACEOF
45077
45078 fi
45079
45080       fi
45081
45082 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
45083 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
45084 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
45085   echo $ECHO_N "(cached) $ECHO_C" >&6
45086 else
45087
45088                 ac_ext=cpp
45089 ac_cpp='$CXXCPP $CPPFLAGS'
45090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45093
45094
45095         cat >conftest.$ac_ext <<_ACEOF
45096 /* confdefs.h.  */
45097 _ACEOF
45098 cat confdefs.h >>conftest.$ac_ext
45099 cat >>conftest.$ac_ext <<_ACEOF
45100 /* end confdefs.h.  */
45101 #include <netdb.h>
45102 int
45103 main ()
45104 {
45105
45106                 char *name;
45107                 char *proto;
45108                 struct servent *se, *res;
45109                 char buffer[2048];
45110                 int buflen = 2048;
45111                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
45112
45113   ;
45114   return 0;
45115 }
45116 _ACEOF
45117 rm -f conftest.$ac_objext
45118 if { (ac_try="$ac_compile"
45119 case "(($ac_try" in
45120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45121   *) ac_try_echo=$ac_try;;
45122 esac
45123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45124   (eval "$ac_compile") 2>conftest.er1
45125   ac_status=$?
45126   grep -v '^ *+' conftest.er1 >conftest.err
45127   rm -f conftest.er1
45128   cat conftest.err >&5
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); } && {
45131          test -z "$ac_cxx_werror_flag" ||
45132          test ! -s conftest.err
45133        } && test -s conftest.$ac_objext; then
45134   ac_cv_func_which_getservbyname_r=six
45135 else
45136   echo "$as_me: failed program was:" >&5
45137 sed 's/^/| /' conftest.$ac_ext >&5
45138
45139
45140                 cat >conftest.$ac_ext <<_ACEOF
45141 /* confdefs.h.  */
45142 _ACEOF
45143 cat confdefs.h >>conftest.$ac_ext
45144 cat >>conftest.$ac_ext <<_ACEOF
45145 /* end confdefs.h.  */
45146 #include <netdb.h>
45147 int
45148 main ()
45149 {
45150
45151                         char *name;
45152                         char *proto;
45153                         struct servent *se;
45154                         char buffer[2048];
45155                         int buflen = 2048;
45156                         (void) getservbyname_r(name, proto, se, buffer, buflen)
45157
45158   ;
45159   return 0;
45160 }
45161 _ACEOF
45162 rm -f conftest.$ac_objext
45163 if { (ac_try="$ac_compile"
45164 case "(($ac_try" in
45165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45166   *) ac_try_echo=$ac_try;;
45167 esac
45168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45169   (eval "$ac_compile") 2>conftest.er1
45170   ac_status=$?
45171   grep -v '^ *+' conftest.er1 >conftest.err
45172   rm -f conftest.er1
45173   cat conftest.err >&5
45174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45175   (exit $ac_status); } && {
45176          test -z "$ac_cxx_werror_flag" ||
45177          test ! -s conftest.err
45178        } && test -s conftest.$ac_objext; then
45179   ac_cv_func_which_getservbyname_r=five
45180 else
45181   echo "$as_me: failed program was:" >&5
45182 sed 's/^/| /' conftest.$ac_ext >&5
45183
45184
45185                         cat >conftest.$ac_ext <<_ACEOF
45186 /* confdefs.h.  */
45187 _ACEOF
45188 cat confdefs.h >>conftest.$ac_ext
45189 cat >>conftest.$ac_ext <<_ACEOF
45190 /* end confdefs.h.  */
45191 #include <netdb.h>
45192 int
45193 main ()
45194 {
45195
45196                                 char *name;
45197                                 char *proto;
45198                                 struct servent *se;
45199                                 struct servent_data data;
45200                                 (void) getservbyname_r(name, proto, se, &data);
45201
45202   ;
45203   return 0;
45204 }
45205 _ACEOF
45206 rm -f conftest.$ac_objext
45207 if { (ac_try="$ac_compile"
45208 case "(($ac_try" in
45209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45210   *) ac_try_echo=$ac_try;;
45211 esac
45212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45213   (eval "$ac_compile") 2>conftest.er1
45214   ac_status=$?
45215   grep -v '^ *+' conftest.er1 >conftest.err
45216   rm -f conftest.er1
45217   cat conftest.err >&5
45218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45219   (exit $ac_status); } && {
45220          test -z "$ac_cxx_werror_flag" ||
45221          test ! -s conftest.err
45222        } && test -s conftest.$ac_objext; then
45223   ac_cv_func_which_getservbyname_r=four
45224 else
45225   echo "$as_me: failed program was:" >&5
45226 sed 's/^/| /' conftest.$ac_ext >&5
45227
45228         ac_cv_func_which_getservbyname_r=no
45229
45230 fi
45231
45232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45233
45234
45235 fi
45236
45237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45238
45239
45240 fi
45241
45242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45243         ac_ext=c
45244 ac_cpp='$CPP $CPPFLAGS'
45245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45248
45249
45250
45251 fi
45252 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
45253 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
45254
45255 if test $ac_cv_func_which_getservbyname_r = six; then
45256   cat >>confdefs.h <<\_ACEOF
45257 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
45258 _ACEOF
45259
45260 elif test $ac_cv_func_which_getservbyname_r = five; then
45261   cat >>confdefs.h <<\_ACEOF
45262 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
45263 _ACEOF
45264
45265 elif test $ac_cv_func_which_getservbyname_r = four; then
45266   cat >>confdefs.h <<\_ACEOF
45267 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
45268 _ACEOF
45269
45270 fi
45271
45272
45273       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
45274               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
45275
45276 for ac_func in getservbyname
45277 do
45278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45282   echo $ECHO_N "(cached) $ECHO_C" >&6
45283 else
45284   cat >conftest.$ac_ext <<_ACEOF
45285 /* confdefs.h.  */
45286 _ACEOF
45287 cat confdefs.h >>conftest.$ac_ext
45288 cat >>conftest.$ac_ext <<_ACEOF
45289 /* end confdefs.h.  */
45290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45292 #define $ac_func innocuous_$ac_func
45293
45294 /* System header to define __stub macros and hopefully few prototypes,
45295     which can conflict with char $ac_func (); below.
45296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45297     <limits.h> exists even on freestanding compilers.  */
45298
45299 #ifdef __STDC__
45300 # include <limits.h>
45301 #else
45302 # include <assert.h>
45303 #endif
45304
45305 #undef $ac_func
45306
45307 /* Override any GCC internal prototype to avoid an error.
45308    Use char because int might match the return type of a GCC
45309    builtin and then its argument prototype would still apply.  */
45310 #ifdef __cplusplus
45311 extern "C"
45312 #endif
45313 char $ac_func ();
45314 /* The GNU C library defines this for functions which it implements
45315     to always fail with ENOSYS.  Some functions are actually named
45316     something starting with __ and the normal name is an alias.  */
45317 #if defined __stub_$ac_func || defined __stub___$ac_func
45318 choke me
45319 #endif
45320
45321 int
45322 main ()
45323 {
45324 return $ac_func ();
45325   ;
45326   return 0;
45327 }
45328 _ACEOF
45329 rm -f conftest.$ac_objext conftest$ac_exeext
45330 if { (ac_try="$ac_link"
45331 case "(($ac_try" in
45332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45333   *) ac_try_echo=$ac_try;;
45334 esac
45335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45336   (eval "$ac_link") 2>conftest.er1
45337   ac_status=$?
45338   grep -v '^ *+' conftest.er1 >conftest.err
45339   rm -f conftest.er1
45340   cat conftest.err >&5
45341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342   (exit $ac_status); } && {
45343          test -z "$ac_c_werror_flag" ||
45344          test ! -s conftest.err
45345        } && test -s conftest$ac_exeext &&
45346        $as_test_x conftest$ac_exeext; then
45347   eval "$as_ac_var=yes"
45348 else
45349   echo "$as_me: failed program was:" >&5
45350 sed 's/^/| /' conftest.$ac_ext >&5
45351
45352         eval "$as_ac_var=no"
45353 fi
45354
45355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45356       conftest$ac_exeext conftest.$ac_ext
45357 fi
45358 ac_res=`eval echo '${'$as_ac_var'}'`
45359                { echo "$as_me:$LINENO: result: $ac_res" >&5
45360 echo "${ECHO_T}$ac_res" >&6; }
45361 if test `eval echo '${'$as_ac_var'}'` = yes; then
45362   cat >>confdefs.h <<_ACEOF
45363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45364 _ACEOF
45365   cat >>confdefs.h <<\_ACEOF
45366 #define HAVE_GETSERVBYNAME 1
45367 _ACEOF
45368
45369 fi
45370 done
45371
45372       fi
45373
45374 if test "$wxUSE_THREADS" = "yes"; then
45375   cat >>confdefs.h <<\_ACEOF
45376 #define wxUSE_THREADS 1
45377 _ACEOF
45378
45379
45380   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
45381 else
45382       if test "$wx_cv_func_strtok_r" = "yes"; then
45383     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
45384 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
45385     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
45386         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
45387         { echo "$as_me:$LINENO: result: yes" >&5
45388 echo "${ECHO_T}yes" >&6; }
45389     else
45390         { echo "$as_me:$LINENO: result: no" >&5
45391 echo "${ECHO_T}no" >&6; }
45392     fi
45393   fi
45394 fi
45395
45396 if test "$WXGTK2" = 1 ; then
45397   cat >>confdefs.h <<_ACEOF
45398 #define __WXGTK20__ $WXGTK2
45399 _ACEOF
45400
45401 fi
45402
45403 if test "$WXGTK127" = 1 ; then
45404   cat >>confdefs.h <<_ACEOF
45405 #define __WXGTK127__ $WXGTK127
45406 _ACEOF
45407
45408 fi
45409
45410 if test "$WXGPE" = 1 ; then
45411   cat >>confdefs.h <<_ACEOF
45412 #define __WXGPE__ $WXGPE
45413 _ACEOF
45414
45415 fi
45416
45417 DEBUG_CFLAGS=
45418 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
45419                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
45420 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
45421 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
45422     DEBUG_CFLAGS="-g"
45423 fi
45424
45425 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
45426     wxUSE_DEBUG_INFO=yes
45427     if test "$GCC" = yes; then
45428         DEBUG_CFLAGS="-ggdb"
45429     fi
45430 fi
45431
45432 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
45433     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
45434
45435     if test "$wxUSE_GTK" = 1 ; then
45436         if test "x$wxGTK_VERSION" = "x1" ; then
45437             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
45438         else
45439             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
45440         fi
45441     fi
45442 fi
45443
45444 if test "$wxUSE_MEM_TRACING" = "yes" ; then
45445     cat >>confdefs.h <<\_ACEOF
45446 #define wxUSE_MEMORY_TRACING 1
45447 _ACEOF
45448
45449     cat >>confdefs.h <<\_ACEOF
45450 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
45451 _ACEOF
45452
45453     cat >>confdefs.h <<\_ACEOF
45454 #define wxUSE_DEBUG_NEW_ALWAYS 1
45455 _ACEOF
45456
45457     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
45458 fi
45459
45460 if test "$wxUSE_DMALLOC" = "yes" ; then
45461     DMALLOC_LIBS="-ldmallocthcxx"
45462 fi
45463
45464 PROFILE_FLAGS=
45465 if test "$wxUSE_PROFILE" = "yes" ; then
45466     PROFILE_FLAGS=" -pg"
45467 fi
45468
45469 if test "$GCC" = "yes" ; then
45470     if test "$wxUSE_NO_RTTI" = "yes" ; then
45471                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
45472     fi
45473     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45474         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
45475     fi
45476     if test "$wxUSE_PERMISSIVE" = "yes" ; then
45477         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
45478     fi
45479
45480                                                 case "${host}" in
45481       powerpc*-*-aix* )
45482         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
45483         ;;
45484       *-hppa* )
45485         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
45486         ;;
45487     esac
45488 fi
45489
45490 OPTIMISE_CFLAGS=
45491 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
45492                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
45493 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
45494 else
45495     if test "$wxUSE_OPTIMISE" = "no" ; then
45496         if test "$GCC" = yes ; then
45497                                     OPTIMISE_CFLAGS="-O0"
45498         fi
45499     else
45500         if test "$GCC" = yes ; then
45501             case "${host}" in
45502                 *-pc-os2_emx | *-pc-os2-emx )
45503                                                             OPTIMISE_CFLAGS="-O2"
45504                 ;;
45505                 *)
45506                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
45507                 ;;
45508             esac
45509         else
45510             OPTIMISE_CFLAGS="-O"
45511         fi
45512     fi
45513 fi
45514
45515
45516 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
45517     cat >>confdefs.h <<\_ACEOF
45518 #define WXWIN_COMPATIBILITY_2_6 1
45519 _ACEOF
45520
45521
45522     WXWIN_COMPATIBILITY_2_8="yes"
45523 fi
45524
45525 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
45526     cat >>confdefs.h <<\_ACEOF
45527 #define WXWIN_COMPATIBILITY_2_8 1
45528 _ACEOF
45529
45530 fi
45531
45532
45533 if test "$wxUSE_GUI" = "yes"; then
45534     cat >>confdefs.h <<\_ACEOF
45535 #define wxUSE_GUI 1
45536 _ACEOF
45537
45538
45539                                             fi
45540
45541
45542 if test "$wxUSE_UNIX" = "yes"; then
45543   cat >>confdefs.h <<\_ACEOF
45544 #define wxUSE_UNIX 1
45545 _ACEOF
45546
45547 fi
45548
45549
45550 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
45551
45552     HAVE_DL_FUNCS=0
45553     HAVE_SHL_FUNCS=0
45554     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
45555         if test "$USE_DOS" = 1; then
45556             HAVE_DL_FUNCS=0
45557         else
45558
45559 for ac_func in dlopen
45560 do
45561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45565   echo $ECHO_N "(cached) $ECHO_C" >&6
45566 else
45567   cat >conftest.$ac_ext <<_ACEOF
45568 /* confdefs.h.  */
45569 _ACEOF
45570 cat confdefs.h >>conftest.$ac_ext
45571 cat >>conftest.$ac_ext <<_ACEOF
45572 /* end confdefs.h.  */
45573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45575 #define $ac_func innocuous_$ac_func
45576
45577 /* System header to define __stub macros and hopefully few prototypes,
45578     which can conflict with char $ac_func (); below.
45579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45580     <limits.h> exists even on freestanding compilers.  */
45581
45582 #ifdef __STDC__
45583 # include <limits.h>
45584 #else
45585 # include <assert.h>
45586 #endif
45587
45588 #undef $ac_func
45589
45590 /* Override any GCC internal prototype to avoid an error.
45591    Use char because int might match the return type of a GCC
45592    builtin and then its argument prototype would still apply.  */
45593 #ifdef __cplusplus
45594 extern "C"
45595 #endif
45596 char $ac_func ();
45597 /* The GNU C library defines this for functions which it implements
45598     to always fail with ENOSYS.  Some functions are actually named
45599     something starting with __ and the normal name is an alias.  */
45600 #if defined __stub_$ac_func || defined __stub___$ac_func
45601 choke me
45602 #endif
45603
45604 int
45605 main ()
45606 {
45607 return $ac_func ();
45608   ;
45609   return 0;
45610 }
45611 _ACEOF
45612 rm -f conftest.$ac_objext conftest$ac_exeext
45613 if { (ac_try="$ac_link"
45614 case "(($ac_try" in
45615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45616   *) ac_try_echo=$ac_try;;
45617 esac
45618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45619   (eval "$ac_link") 2>conftest.er1
45620   ac_status=$?
45621   grep -v '^ *+' conftest.er1 >conftest.err
45622   rm -f conftest.er1
45623   cat conftest.err >&5
45624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45625   (exit $ac_status); } && {
45626          test -z "$ac_c_werror_flag" ||
45627          test ! -s conftest.err
45628        } && test -s conftest$ac_exeext &&
45629        $as_test_x conftest$ac_exeext; then
45630   eval "$as_ac_var=yes"
45631 else
45632   echo "$as_me: failed program was:" >&5
45633 sed 's/^/| /' conftest.$ac_ext >&5
45634
45635         eval "$as_ac_var=no"
45636 fi
45637
45638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45639       conftest$ac_exeext conftest.$ac_ext
45640 fi
45641 ac_res=`eval echo '${'$as_ac_var'}'`
45642                { echo "$as_me:$LINENO: result: $ac_res" >&5
45643 echo "${ECHO_T}$ac_res" >&6; }
45644 if test `eval echo '${'$as_ac_var'}'` = yes; then
45645   cat >>confdefs.h <<_ACEOF
45646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45647 _ACEOF
45648
45649                 cat >>confdefs.h <<\_ACEOF
45650 #define HAVE_DLOPEN 1
45651 _ACEOF
45652
45653                 HAVE_DL_FUNCS=1
45654
45655 else
45656
45657                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
45658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
45659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
45660   echo $ECHO_N "(cached) $ECHO_C" >&6
45661 else
45662   ac_check_lib_save_LIBS=$LIBS
45663 LIBS="-ldl  $LIBS"
45664 cat >conftest.$ac_ext <<_ACEOF
45665 /* confdefs.h.  */
45666 _ACEOF
45667 cat confdefs.h >>conftest.$ac_ext
45668 cat >>conftest.$ac_ext <<_ACEOF
45669 /* end confdefs.h.  */
45670
45671 /* Override any GCC internal prototype to avoid an error.
45672    Use char because int might match the return type of a GCC
45673    builtin and then its argument prototype would still apply.  */
45674 #ifdef __cplusplus
45675 extern "C"
45676 #endif
45677 char dlopen ();
45678 int
45679 main ()
45680 {
45681 return dlopen ();
45682   ;
45683   return 0;
45684 }
45685 _ACEOF
45686 rm -f conftest.$ac_objext conftest$ac_exeext
45687 if { (ac_try="$ac_link"
45688 case "(($ac_try" in
45689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45690   *) ac_try_echo=$ac_try;;
45691 esac
45692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45693   (eval "$ac_link") 2>conftest.er1
45694   ac_status=$?
45695   grep -v '^ *+' conftest.er1 >conftest.err
45696   rm -f conftest.er1
45697   cat conftest.err >&5
45698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45699   (exit $ac_status); } && {
45700          test -z "$ac_c_werror_flag" ||
45701          test ! -s conftest.err
45702        } && test -s conftest$ac_exeext &&
45703        $as_test_x conftest$ac_exeext; then
45704   ac_cv_lib_dl_dlopen=yes
45705 else
45706   echo "$as_me: failed program was:" >&5
45707 sed 's/^/| /' conftest.$ac_ext >&5
45708
45709         ac_cv_lib_dl_dlopen=no
45710 fi
45711
45712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45713       conftest$ac_exeext conftest.$ac_ext
45714 LIBS=$ac_check_lib_save_LIBS
45715 fi
45716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
45717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
45718 if test $ac_cv_lib_dl_dlopen = yes; then
45719
45720                                 cat >>confdefs.h <<\_ACEOF
45721 #define HAVE_DLOPEN 1
45722 _ACEOF
45723
45724                                 HAVE_DL_FUNCS=1
45725                                 DL_LINK=" -ldl$DL_LINK"
45726
45727 else
45728
45729
45730 for ac_func in shl_load
45731 do
45732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45736   echo $ECHO_N "(cached) $ECHO_C" >&6
45737 else
45738   cat >conftest.$ac_ext <<_ACEOF
45739 /* confdefs.h.  */
45740 _ACEOF
45741 cat confdefs.h >>conftest.$ac_ext
45742 cat >>conftest.$ac_ext <<_ACEOF
45743 /* end confdefs.h.  */
45744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45746 #define $ac_func innocuous_$ac_func
45747
45748 /* System header to define __stub macros and hopefully few prototypes,
45749     which can conflict with char $ac_func (); below.
45750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45751     <limits.h> exists even on freestanding compilers.  */
45752
45753 #ifdef __STDC__
45754 # include <limits.h>
45755 #else
45756 # include <assert.h>
45757 #endif
45758
45759 #undef $ac_func
45760
45761 /* Override any GCC internal prototype to avoid an error.
45762    Use char because int might match the return type of a GCC
45763    builtin and then its argument prototype would still apply.  */
45764 #ifdef __cplusplus
45765 extern "C"
45766 #endif
45767 char $ac_func ();
45768 /* The GNU C library defines this for functions which it implements
45769     to always fail with ENOSYS.  Some functions are actually named
45770     something starting with __ and the normal name is an alias.  */
45771 #if defined __stub_$ac_func || defined __stub___$ac_func
45772 choke me
45773 #endif
45774
45775 int
45776 main ()
45777 {
45778 return $ac_func ();
45779   ;
45780   return 0;
45781 }
45782 _ACEOF
45783 rm -f conftest.$ac_objext conftest$ac_exeext
45784 if { (ac_try="$ac_link"
45785 case "(($ac_try" in
45786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45787   *) ac_try_echo=$ac_try;;
45788 esac
45789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45790   (eval "$ac_link") 2>conftest.er1
45791   ac_status=$?
45792   grep -v '^ *+' conftest.er1 >conftest.err
45793   rm -f conftest.er1
45794   cat conftest.err >&5
45795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45796   (exit $ac_status); } && {
45797          test -z "$ac_c_werror_flag" ||
45798          test ! -s conftest.err
45799        } && test -s conftest$ac_exeext &&
45800        $as_test_x conftest$ac_exeext; then
45801   eval "$as_ac_var=yes"
45802 else
45803   echo "$as_me: failed program was:" >&5
45804 sed 's/^/| /' conftest.$ac_ext >&5
45805
45806         eval "$as_ac_var=no"
45807 fi
45808
45809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45810       conftest$ac_exeext conftest.$ac_ext
45811 fi
45812 ac_res=`eval echo '${'$as_ac_var'}'`
45813                { echo "$as_me:$LINENO: result: $ac_res" >&5
45814 echo "${ECHO_T}$ac_res" >&6; }
45815 if test `eval echo '${'$as_ac_var'}'` = yes; then
45816   cat >>confdefs.h <<_ACEOF
45817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45818 _ACEOF
45819
45820                                                 cat >>confdefs.h <<\_ACEOF
45821 #define HAVE_SHL_LOAD 1
45822 _ACEOF
45823
45824                                                 HAVE_SHL_FUNCS=1
45825
45826 else
45827
45828                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
45829 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
45830 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
45831   echo $ECHO_N "(cached) $ECHO_C" >&6
45832 else
45833   ac_check_lib_save_LIBS=$LIBS
45834 LIBS="-lshl_load  $LIBS"
45835 cat >conftest.$ac_ext <<_ACEOF
45836 /* confdefs.h.  */
45837 _ACEOF
45838 cat confdefs.h >>conftest.$ac_ext
45839 cat >>conftest.$ac_ext <<_ACEOF
45840 /* end confdefs.h.  */
45841
45842 /* Override any GCC internal prototype to avoid an error.
45843    Use char because int might match the return type of a GCC
45844    builtin and then its argument prototype would still apply.  */
45845 #ifdef __cplusplus
45846 extern "C"
45847 #endif
45848 char dld ();
45849 int
45850 main ()
45851 {
45852 return dld ();
45853   ;
45854   return 0;
45855 }
45856 _ACEOF
45857 rm -f conftest.$ac_objext conftest$ac_exeext
45858 if { (ac_try="$ac_link"
45859 case "(($ac_try" in
45860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45861   *) ac_try_echo=$ac_try;;
45862 esac
45863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45864   (eval "$ac_link") 2>conftest.er1
45865   ac_status=$?
45866   grep -v '^ *+' conftest.er1 >conftest.err
45867   rm -f conftest.er1
45868   cat conftest.err >&5
45869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45870   (exit $ac_status); } && {
45871          test -z "$ac_c_werror_flag" ||
45872          test ! -s conftest.err
45873        } && test -s conftest$ac_exeext &&
45874        $as_test_x conftest$ac_exeext; then
45875   ac_cv_lib_shl_load_dld=yes
45876 else
45877   echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45879
45880         ac_cv_lib_shl_load_dld=no
45881 fi
45882
45883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45884       conftest$ac_exeext conftest.$ac_ext
45885 LIBS=$ac_check_lib_save_LIBS
45886 fi
45887 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
45888 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
45889 if test $ac_cv_lib_shl_load_dld = yes; then
45890
45891                                                                 HAVE_SHL_FUNCS=1
45892                                                                 DL_LINK=" -ldld$DL_LINK"
45893
45894 fi
45895
45896
45897 fi
45898 done
45899
45900
45901 fi
45902
45903
45904 fi
45905 done
45906
45907
45908                         if test "$HAVE_DL_FUNCS" = 1; then
45909
45910 for ac_func in dlerror
45911 do
45912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45916   echo $ECHO_N "(cached) $ECHO_C" >&6
45917 else
45918   cat >conftest.$ac_ext <<_ACEOF
45919 /* confdefs.h.  */
45920 _ACEOF
45921 cat confdefs.h >>conftest.$ac_ext
45922 cat >>conftest.$ac_ext <<_ACEOF
45923 /* end confdefs.h.  */
45924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45926 #define $ac_func innocuous_$ac_func
45927
45928 /* System header to define __stub macros and hopefully few prototypes,
45929     which can conflict with char $ac_func (); below.
45930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45931     <limits.h> exists even on freestanding compilers.  */
45932
45933 #ifdef __STDC__
45934 # include <limits.h>
45935 #else
45936 # include <assert.h>
45937 #endif
45938
45939 #undef $ac_func
45940
45941 /* Override any GCC internal prototype to avoid an error.
45942    Use char because int might match the return type of a GCC
45943    builtin and then its argument prototype would still apply.  */
45944 #ifdef __cplusplus
45945 extern "C"
45946 #endif
45947 char $ac_func ();
45948 /* The GNU C library defines this for functions which it implements
45949     to always fail with ENOSYS.  Some functions are actually named
45950     something starting with __ and the normal name is an alias.  */
45951 #if defined __stub_$ac_func || defined __stub___$ac_func
45952 choke me
45953 #endif
45954
45955 int
45956 main ()
45957 {
45958 return $ac_func ();
45959   ;
45960   return 0;
45961 }
45962 _ACEOF
45963 rm -f conftest.$ac_objext conftest$ac_exeext
45964 if { (ac_try="$ac_link"
45965 case "(($ac_try" in
45966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45967   *) ac_try_echo=$ac_try;;
45968 esac
45969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45970   (eval "$ac_link") 2>conftest.er1
45971   ac_status=$?
45972   grep -v '^ *+' conftest.er1 >conftest.err
45973   rm -f conftest.er1
45974   cat conftest.err >&5
45975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976   (exit $ac_status); } && {
45977          test -z "$ac_c_werror_flag" ||
45978          test ! -s conftest.err
45979        } && test -s conftest$ac_exeext &&
45980        $as_test_x conftest$ac_exeext; then
45981   eval "$as_ac_var=yes"
45982 else
45983   echo "$as_me: failed program was:" >&5
45984 sed 's/^/| /' conftest.$ac_ext >&5
45985
45986         eval "$as_ac_var=no"
45987 fi
45988
45989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45990       conftest$ac_exeext conftest.$ac_ext
45991 fi
45992 ac_res=`eval echo '${'$as_ac_var'}'`
45993                { echo "$as_me:$LINENO: result: $ac_res" >&5
45994 echo "${ECHO_T}$ac_res" >&6; }
45995 if test `eval echo '${'$as_ac_var'}'` = yes; then
45996   cat >>confdefs.h <<_ACEOF
45997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45998 _ACEOF
45999  cat >>confdefs.h <<\_ACEOF
46000 #define HAVE_DLERROR 1
46001 _ACEOF
46002
46003 else
46004
46005                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
46006 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
46007 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
46008   echo $ECHO_N "(cached) $ECHO_C" >&6
46009 else
46010   ac_check_lib_save_LIBS=$LIBS
46011 LIBS="-ldl  $LIBS"
46012 cat >conftest.$ac_ext <<_ACEOF
46013 /* confdefs.h.  */
46014 _ACEOF
46015 cat confdefs.h >>conftest.$ac_ext
46016 cat >>conftest.$ac_ext <<_ACEOF
46017 /* end confdefs.h.  */
46018
46019 /* Override any GCC internal prototype to avoid an error.
46020    Use char because int might match the return type of a GCC
46021    builtin and then its argument prototype would still apply.  */
46022 #ifdef __cplusplus
46023 extern "C"
46024 #endif
46025 char dlerror ();
46026 int
46027 main ()
46028 {
46029 return dlerror ();
46030   ;
46031   return 0;
46032 }
46033 _ACEOF
46034 rm -f conftest.$ac_objext conftest$ac_exeext
46035 if { (ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
46049          test ! -s conftest.err
46050        } && test -s conftest$ac_exeext &&
46051        $as_test_x conftest$ac_exeext; then
46052   ac_cv_lib_dl_dlerror=yes
46053 else
46054   echo "$as_me: failed program was:" >&5
46055 sed 's/^/| /' conftest.$ac_ext >&5
46056
46057         ac_cv_lib_dl_dlerror=no
46058 fi
46059
46060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46061       conftest$ac_exeext conftest.$ac_ext
46062 LIBS=$ac_check_lib_save_LIBS
46063 fi
46064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
46065 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
46066 if test $ac_cv_lib_dl_dlerror = yes; then
46067   cat >>confdefs.h <<\_ACEOF
46068 #define HAVE_DLERROR 1
46069 _ACEOF
46070
46071 fi
46072
46073
46074
46075 fi
46076 done
46077
46078             fi
46079         fi
46080
46081                 if test "$USE_DARWIN" = 1; then
46082                         HAVE_DL_FUNCS=1
46083         fi
46084
46085         if test "$HAVE_DL_FUNCS" = 0; then
46086             if test "$HAVE_SHL_FUNCS" = 0; then
46087               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
46088                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
46089 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
46090                   wxUSE_DYNAMIC_LOADER=no
46091                   wxUSE_DYNLIB_CLASS=no
46092               else
46093                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
46094 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
46095               fi
46096             fi
46097         fi
46098     fi
46099 fi
46100
46101 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
46102     cat >>confdefs.h <<\_ACEOF
46103 #define wxUSE_DYNAMIC_LOADER 1
46104 _ACEOF
46105
46106 fi
46107 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
46108     cat >>confdefs.h <<\_ACEOF
46109 #define wxUSE_DYNLIB_CLASS 1
46110 _ACEOF
46111
46112 fi
46113
46114
46115
46116 if test "$wxUSE_PLUGINS" = "yes" ; then
46117     if test "$wxUSE_SHARED" = "no" ; then
46118         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
46119 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
46120         wxUSE_PLUGINS=no
46121     fi
46122     if test "$wxUSE_MONOLITHIC" = "yes" ; then
46123         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
46124 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
46125         wxUSE_PLUGINS=no
46126     fi
46127     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
46128         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
46129 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
46130         wxUSE_PLUGINS=no
46131     fi
46132     if test "$wxUSE_PLUGINS" = "yes" ; then
46133         cat >>confdefs.h <<\_ACEOF
46134 #define wxUSE_PLUGINS 1
46135 _ACEOF
46136
46137     fi
46138 fi
46139
46140
46141 if test "$wxUSE_FSWATCHER" = "yes"; then
46142                 if test "$wxUSE_MSW" != "1"; then
46143         if test "$wxUSE_UNIX" = "yes"; then
46144
46145 for ac_header in sys/inotify.h
46146 do
46147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46151   echo $ECHO_N "(cached) $ECHO_C" >&6
46152 else
46153   cat >conftest.$ac_ext <<_ACEOF
46154 /* confdefs.h.  */
46155 _ACEOF
46156 cat confdefs.h >>conftest.$ac_ext
46157 cat >>conftest.$ac_ext <<_ACEOF
46158 /* end confdefs.h.  */
46159 $ac_includes_default
46160
46161 #include <$ac_header>
46162 _ACEOF
46163 rm -f conftest.$ac_objext
46164 if { (ac_try="$ac_compile"
46165 case "(($ac_try" in
46166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46167   *) ac_try_echo=$ac_try;;
46168 esac
46169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46170   (eval "$ac_compile") 2>conftest.er1
46171   ac_status=$?
46172   grep -v '^ *+' conftest.er1 >conftest.err
46173   rm -f conftest.er1
46174   cat conftest.err >&5
46175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46176   (exit $ac_status); } && {
46177          test -z "$ac_c_werror_flag" ||
46178          test ! -s conftest.err
46179        } && test -s conftest.$ac_objext; then
46180   eval "$as_ac_Header=yes"
46181 else
46182   echo "$as_me: failed program was:" >&5
46183 sed 's/^/| /' conftest.$ac_ext >&5
46184
46185         eval "$as_ac_Header=no"
46186 fi
46187
46188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46189 fi
46190 ac_res=`eval echo '${'$as_ac_Header'}'`
46191                { echo "$as_me:$LINENO: result: $ac_res" >&5
46192 echo "${ECHO_T}$ac_res" >&6; }
46193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46194   cat >>confdefs.h <<_ACEOF
46195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46196 _ACEOF
46197
46198 fi
46199
46200 done
46201
46202             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
46203                 cat >>confdefs.h <<\_ACEOF
46204 #define wxHAS_INOTIFY 1
46205 _ACEOF
46206
46207             else
46208
46209 for ac_header in sys/event.h
46210 do
46211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46215   echo $ECHO_N "(cached) $ECHO_C" >&6
46216 else
46217   cat >conftest.$ac_ext <<_ACEOF
46218 /* confdefs.h.  */
46219 _ACEOF
46220 cat confdefs.h >>conftest.$ac_ext
46221 cat >>conftest.$ac_ext <<_ACEOF
46222 /* end confdefs.h.  */
46223 $ac_includes_default
46224
46225 #include <$ac_header>
46226 _ACEOF
46227 rm -f conftest.$ac_objext
46228 if { (ac_try="$ac_compile"
46229 case "(($ac_try" in
46230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46231   *) ac_try_echo=$ac_try;;
46232 esac
46233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46234   (eval "$ac_compile") 2>conftest.er1
46235   ac_status=$?
46236   grep -v '^ *+' conftest.er1 >conftest.err
46237   rm -f conftest.er1
46238   cat conftest.err >&5
46239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46240   (exit $ac_status); } && {
46241          test -z "$ac_c_werror_flag" ||
46242          test ! -s conftest.err
46243        } && test -s conftest.$ac_objext; then
46244   eval "$as_ac_Header=yes"
46245 else
46246   echo "$as_me: failed program was:" >&5
46247 sed 's/^/| /' conftest.$ac_ext >&5
46248
46249         eval "$as_ac_Header=no"
46250 fi
46251
46252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46253 fi
46254 ac_res=`eval echo '${'$as_ac_Header'}'`
46255                { echo "$as_me:$LINENO: result: $ac_res" >&5
46256 echo "${ECHO_T}$ac_res" >&6; }
46257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46258   cat >>confdefs.h <<_ACEOF
46259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46260 _ACEOF
46261
46262 fi
46263
46264 done
46265
46266                 if test "$ac_cv_header_sys_event_h" = "yes"; then
46267                     cat >>confdefs.h <<\_ACEOF
46268 #define wxHAS_KQUEUE 1
46269 _ACEOF
46270
46271                 else
46272                     wxUSE_FSWATCHER=no
46273                 fi
46274             fi
46275         else
46276             wxUSE_FSWATCHER=no
46277         fi
46278     else
46279         if test "$wxUSE_THREADS" != "yes"; then
46280             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
46281 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
46282             wxUSE_FSWATCHER=no
46283         fi
46284     fi
46285
46286     if test "$wxUSE_FSWATCHER" = "yes"; then
46287         cat >>confdefs.h <<\_ACEOF
46288 #define wxUSE_FSWATCHER 1
46289 _ACEOF
46290
46291         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
46292     else
46293         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
46294 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
46295     fi
46296 fi
46297
46298
46299 if test "$wxUSE_STL" = "yes"; then
46300   cat >>confdefs.h <<\_ACEOF
46301 #define wxUSE_STL 1
46302 _ACEOF
46303
46304 fi
46305
46306 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
46307   cat >>confdefs.h <<\_ACEOF
46308 #define wxUSE_EXTENDED_RTTI 1
46309 _ACEOF
46310
46311 fi
46312
46313 if test "$wxUSE_ANY" = "yes"; then
46314     cat >>confdefs.h <<\_ACEOF
46315 #define wxUSE_ANY 1
46316 _ACEOF
46317
46318 fi
46319
46320 if test "$wxUSE_APPLE_IEEE" = "yes"; then
46321   cat >>confdefs.h <<\_ACEOF
46322 #define wxUSE_APPLE_IEEE 1
46323 _ACEOF
46324
46325 fi
46326
46327 if test "$wxUSE_TIMER" = "yes"; then
46328   cat >>confdefs.h <<\_ACEOF
46329 #define wxUSE_TIMER 1
46330 _ACEOF
46331
46332 fi
46333
46334 if test "$USE_UNIX" = 1 ; then
46335                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
46336 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
46337 if test "${ac_cv_header_sys_soundcard+set}" = set; then
46338   echo $ECHO_N "(cached) $ECHO_C" >&6
46339 else
46340
46341         cat >conftest.$ac_ext <<_ACEOF
46342 /* confdefs.h.  */
46343 _ACEOF
46344 cat confdefs.h >>conftest.$ac_ext
46345 cat >>conftest.$ac_ext <<_ACEOF
46346 /* end confdefs.h.  */
46347
46348                 #include <sys/ioctl.h>
46349                 #include <sys/soundcard.h>
46350
46351 int
46352 main ()
46353 {
46354
46355                 ioctl(0, SNDCTL_DSP_SPEED, 0);
46356
46357   ;
46358   return 0;
46359 }
46360 _ACEOF
46361 rm -f conftest.$ac_objext conftest$ac_exeext
46362 if { (ac_try="$ac_link"
46363 case "(($ac_try" in
46364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46365   *) ac_try_echo=$ac_try;;
46366 esac
46367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46368   (eval "$ac_link") 2>conftest.er1
46369   ac_status=$?
46370   grep -v '^ *+' conftest.er1 >conftest.err
46371   rm -f conftest.er1
46372   cat conftest.err >&5
46373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46374   (exit $ac_status); } && {
46375          test -z "$ac_c_werror_flag" ||
46376          test ! -s conftest.err
46377        } && test -s conftest$ac_exeext &&
46378        $as_test_x conftest$ac_exeext; then
46379   ac_cv_header_sys_soundcard=yes
46380 else
46381   echo "$as_me: failed program was:" >&5
46382 sed 's/^/| /' conftest.$ac_ext >&5
46383
46384
46385                 saveLibs="$LIBS"
46386                 LIBS="$saveLibs -lossaudio"
46387                 cat >conftest.$ac_ext <<_ACEOF
46388 /* confdefs.h.  */
46389 _ACEOF
46390 cat confdefs.h >>conftest.$ac_ext
46391 cat >>conftest.$ac_ext <<_ACEOF
46392 /* end confdefs.h.  */
46393
46394                         #include <sys/ioctl.h>
46395                         #include <sys/soundcard.h>
46396
46397 int
46398 main ()
46399 {
46400
46401                         ioctl(0, SNDCTL_DSP_SPEED, 0);
46402
46403   ;
46404   return 0;
46405 }
46406 _ACEOF
46407 rm -f conftest.$ac_objext conftest$ac_exeext
46408 if { (ac_try="$ac_link"
46409 case "(($ac_try" in
46410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46411   *) ac_try_echo=$ac_try;;
46412 esac
46413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46414   (eval "$ac_link") 2>conftest.er1
46415   ac_status=$?
46416   grep -v '^ *+' conftest.er1 >conftest.err
46417   rm -f conftest.er1
46418   cat conftest.err >&5
46419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46420   (exit $ac_status); } && {
46421          test -z "$ac_c_werror_flag" ||
46422          test ! -s conftest.err
46423        } && test -s conftest$ac_exeext &&
46424        $as_test_x conftest$ac_exeext; then
46425   ac_cv_header_sys_soundcard=yes
46426 else
46427   echo "$as_me: failed program was:" >&5
46428 sed 's/^/| /' conftest.$ac_ext >&5
46429
46430
46431                         LIBS="$saveLibs"
46432                         ac_cv_header_sys_soundcard=no
46433
46434
46435 fi
46436
46437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46438       conftest$ac_exeext conftest.$ac_ext
46439
46440
46441 fi
46442
46443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46444       conftest$ac_exeext conftest.$ac_ext
46445
46446 fi
46447 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
46448 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
46449
46450     if test "$ac_cv_header_sys_soundcard" = "yes"; then
46451         cat >>confdefs.h <<\_ACEOF
46452 #define HAVE_SYS_SOUNDCARD_H 1
46453 _ACEOF
46454
46455     fi
46456 fi
46457
46458 WITH_PLUGIN_SDL=0
46459 if test "$wxUSE_SOUND" = "yes"; then
46460   if test "$USE_UNIX" = 1 ; then
46461     if test "$wxUSE_LIBSDL" != "no"; then
46462
46463 # Check whether --with-sdl-prefix was given.
46464 if test "${with_sdl_prefix+set}" = set; then
46465   withval=$with_sdl_prefix; sdl_prefix="$withval"
46466 else
46467   sdl_prefix=""
46468 fi
46469
46470
46471 # Check whether --with-sdl-exec-prefix was given.
46472 if test "${with_sdl_exec_prefix+set}" = set; then
46473   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
46474 else
46475   sdl_exec_prefix=""
46476 fi
46477
46478 # Check whether --enable-sdltest was given.
46479 if test "${enable_sdltest+set}" = set; then
46480   enableval=$enable_sdltest;
46481 else
46482   enable_sdltest=yes
46483 fi
46484
46485
46486   if test x$sdl_exec_prefix != x ; then
46487     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
46488     if test x${SDL_CONFIG+set} != xset ; then
46489       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
46490     fi
46491   fi
46492   if test x$sdl_prefix != x ; then
46493     sdl_args="$sdl_args --prefix=$sdl_prefix"
46494     if test x${SDL_CONFIG+set} != xset ; then
46495       SDL_CONFIG=$sdl_prefix/bin/sdl-config
46496     fi
46497   fi
46498
46499   if test "x$prefix" != xNONE; then
46500     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
46501   fi
46502   # Extract the first word of "sdl-config", so it can be a program name with args.
46503 set dummy sdl-config; ac_word=$2
46504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46506 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
46507   echo $ECHO_N "(cached) $ECHO_C" >&6
46508 else
46509   case $SDL_CONFIG in
46510   [\\/]* | ?:[\\/]*)
46511   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
46512   ;;
46513   *)
46514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46515 for as_dir in $PATH
46516 do
46517   IFS=$as_save_IFS
46518   test -z "$as_dir" && as_dir=.
46519   for ac_exec_ext in '' $ac_executable_extensions; do
46520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46521     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46523     break 2
46524   fi
46525 done
46526 done
46527 IFS=$as_save_IFS
46528
46529   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
46530   ;;
46531 esac
46532 fi
46533 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
46534 if test -n "$SDL_CONFIG"; then
46535   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
46536 echo "${ECHO_T}$SDL_CONFIG" >&6; }
46537 else
46538   { echo "$as_me:$LINENO: result: no" >&5
46539 echo "${ECHO_T}no" >&6; }
46540 fi
46541
46542
46543   min_sdl_version=1.2.0
46544   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
46545 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
46546   no_sdl=""
46547   if test "$SDL_CONFIG" = "no" ; then
46548     no_sdl=yes
46549   else
46550     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
46551     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
46552
46553     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
46554            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46555     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
46556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46557     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
46558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46559     if test "x$enable_sdltest" = "xyes" ; then
46560       ac_save_CFLAGS="$CFLAGS"
46561       ac_save_CXXFLAGS="$CXXFLAGS"
46562       ac_save_LIBS="$LIBS"
46563       CFLAGS="$CFLAGS $SDL_CFLAGS"
46564       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46565       LIBS="$LIBS $SDL_LIBS"
46566       rm -f conf.sdltest
46567       if test "$cross_compiling" = yes; then
46568   echo $ac_n "cross compiling; assumed OK... $ac_c"
46569 else
46570   cat >conftest.$ac_ext <<_ACEOF
46571 /* confdefs.h.  */
46572 _ACEOF
46573 cat confdefs.h >>conftest.$ac_ext
46574 cat >>conftest.$ac_ext <<_ACEOF
46575 /* end confdefs.h.  */
46576
46577 #include <stdio.h>
46578 #include <stdlib.h>
46579 #include <string.h>
46580 #include "SDL.h"
46581
46582 char*
46583 my_strdup (char *str)
46584 {
46585   char *new_str;
46586
46587   if (str)
46588     {
46589       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
46590       strcpy (new_str, str);
46591     }
46592   else
46593     new_str = NULL;
46594
46595   return new_str;
46596 }
46597
46598 int main (int argc, char *argv[])
46599 {
46600   int major, minor, micro;
46601   char *tmp_version;
46602
46603   /* This hangs on some systems (?)
46604   system ("touch conf.sdltest");
46605   */
46606   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
46607
46608   /* HP/UX 9 (%@#!) writes to sscanf strings */
46609   tmp_version = my_strdup("$min_sdl_version");
46610   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
46611      printf("%s, bad version string\n", "$min_sdl_version");
46612      exit(1);
46613    }
46614
46615    if (($sdl_major_version > major) ||
46616       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
46617       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
46618     {
46619       return 0;
46620     }
46621   else
46622     {
46623       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
46624       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
46625       printf("*** best to upgrade to the required version.\n");
46626       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
46627       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
46628       printf("*** config.cache before re-running configure\n");
46629       return 1;
46630     }
46631 }
46632
46633
46634 _ACEOF
46635 rm -f conftest$ac_exeext
46636 if { (ac_try="$ac_link"
46637 case "(($ac_try" in
46638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46639   *) ac_try_echo=$ac_try;;
46640 esac
46641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46642   (eval "$ac_link") 2>&5
46643   ac_status=$?
46644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46646   { (case "(($ac_try" in
46647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46648   *) ac_try_echo=$ac_try;;
46649 esac
46650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46651   (eval "$ac_try") 2>&5
46652   ac_status=$?
46653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46654   (exit $ac_status); }; }; then
46655   :
46656 else
46657   echo "$as_me: program exited with status $ac_status" >&5
46658 echo "$as_me: failed program was:" >&5
46659 sed 's/^/| /' conftest.$ac_ext >&5
46660
46661 ( exit $ac_status )
46662 no_sdl=yes
46663 fi
46664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46665 fi
46666
46667
46668        CFLAGS="$ac_save_CFLAGS"
46669        CXXFLAGS="$ac_save_CXXFLAGS"
46670        LIBS="$ac_save_LIBS"
46671      fi
46672   fi
46673   if test "x$no_sdl" = x ; then
46674      { echo "$as_me:$LINENO: result: yes" >&5
46675 echo "${ECHO_T}yes" >&6; }
46676
46677                     EXTRALIBS_SDL="$SDL_LIBS"
46678                     CFLAGS="$SDL_CFLAGS $CFLAGS"
46679                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
46680                     cat >>confdefs.h <<\_ACEOF
46681 #define wxUSE_LIBSDL 1
46682 _ACEOF
46683
46684
46685   else
46686      { echo "$as_me:$LINENO: result: no" >&5
46687 echo "${ECHO_T}no" >&6; }
46688      if test "$SDL_CONFIG" = "no" ; then
46689        echo "*** The sdl-config script installed by SDL could not be found"
46690        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
46691        echo "*** your path, or set the SDL_CONFIG environment variable to the"
46692        echo "*** full path to sdl-config."
46693      else
46694        if test -f conf.sdltest ; then
46695         :
46696        else
46697           echo "*** Could not run SDL test program, checking why..."
46698           CFLAGS="$CFLAGS $SDL_CFLAGS"
46699           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46700           LIBS="$LIBS $SDL_LIBS"
46701           cat >conftest.$ac_ext <<_ACEOF
46702 /* confdefs.h.  */
46703 _ACEOF
46704 cat confdefs.h >>conftest.$ac_ext
46705 cat >>conftest.$ac_ext <<_ACEOF
46706 /* end confdefs.h.  */
46707
46708 #include <stdio.h>
46709 #include "SDL.h"
46710
46711 int main(int argc, char *argv[])
46712 { return 0; }
46713 #undef  main
46714 #define main K_and_R_C_main
46715
46716 int
46717 main ()
46718 {
46719  return 0;
46720   ;
46721   return 0;
46722 }
46723 _ACEOF
46724 rm -f conftest.$ac_objext conftest$ac_exeext
46725 if { (ac_try="$ac_link"
46726 case "(($ac_try" in
46727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46728   *) ac_try_echo=$ac_try;;
46729 esac
46730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46731   (eval "$ac_link") 2>conftest.er1
46732   ac_status=$?
46733   grep -v '^ *+' conftest.er1 >conftest.err
46734   rm -f conftest.er1
46735   cat conftest.err >&5
46736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737   (exit $ac_status); } && {
46738          test -z "$ac_c_werror_flag" ||
46739          test ! -s conftest.err
46740        } && test -s conftest$ac_exeext &&
46741        $as_test_x conftest$ac_exeext; then
46742    echo "*** The test program compiled, but did not run. This usually means"
46743           echo "*** that the run-time linker is not finding SDL or finding the wrong"
46744           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
46745           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
46746           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
46747           echo "*** is required on your system"
46748           echo "***"
46749           echo "*** If you have an old version installed, it is best to remove it, although"
46750           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
46751 else
46752   echo "$as_me: failed program was:" >&5
46753 sed 's/^/| /' conftest.$ac_ext >&5
46754
46755          echo "*** The test program failed to compile or link. See the file config.log for the"
46756           echo "*** exact error that occurred. This usually means SDL was incorrectly installed"
46757           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
46758           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
46759 fi
46760
46761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46762       conftest$ac_exeext conftest.$ac_ext
46763           CFLAGS="$ac_save_CFLAGS"
46764           CXXFLAGS="$ac_save_CXXFLAGS"
46765           LIBS="$ac_save_LIBS"
46766        fi
46767      fi
46768      SDL_CFLAGS=""
46769      SDL_LIBS=""
46770      wxUSE_LIBSDL="no"
46771   fi
46772
46773
46774   rm -f conf.sdltest
46775
46776       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
46777         WITH_PLUGIN_SDL=1
46778       fi
46779     fi
46780   fi
46781 fi
46782
46783 if test "$wxUSE_SOUND" = "yes"; then
46784   cat >>confdefs.h <<\_ACEOF
46785 #define wxUSE_SOUND 1
46786 _ACEOF
46787
46788   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
46789 fi
46790
46791 if test "$WXGTK2" = 1; then
46792
46793
46794 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
46795         if test -n "$ac_tool_prefix"; then
46796   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
46797 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
46798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
46801   echo $ECHO_N "(cached) $ECHO_C" >&6
46802 else
46803   case $PKG_CONFIG in
46804   [\\/]* | ?:[\\/]*)
46805   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
46806   ;;
46807   *)
46808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46809 for as_dir in $PATH
46810 do
46811   IFS=$as_save_IFS
46812   test -z "$as_dir" && as_dir=.
46813   for ac_exec_ext in '' $ac_executable_extensions; do
46814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46815     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46817     break 2
46818   fi
46819 done
46820 done
46821 IFS=$as_save_IFS
46822
46823   ;;
46824 esac
46825 fi
46826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
46827 if test -n "$PKG_CONFIG"; then
46828   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
46829 echo "${ECHO_T}$PKG_CONFIG" >&6; }
46830 else
46831   { echo "$as_me:$LINENO: result: no" >&5
46832 echo "${ECHO_T}no" >&6; }
46833 fi
46834
46835
46836 fi
46837 if test -z "$ac_cv_path_PKG_CONFIG"; then
46838   ac_pt_PKG_CONFIG=$PKG_CONFIG
46839   # Extract the first word of "pkg-config", so it can be a program name with args.
46840 set dummy pkg-config; ac_word=$2
46841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46843 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
46844   echo $ECHO_N "(cached) $ECHO_C" >&6
46845 else
46846   case $ac_pt_PKG_CONFIG in
46847   [\\/]* | ?:[\\/]*)
46848   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
46849   ;;
46850   *)
46851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46852 for as_dir in $PATH
46853 do
46854   IFS=$as_save_IFS
46855   test -z "$as_dir" && as_dir=.
46856   for ac_exec_ext in '' $ac_executable_extensions; do
46857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46858     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46860     break 2
46861   fi
46862 done
46863 done
46864 IFS=$as_save_IFS
46865
46866   ;;
46867 esac
46868 fi
46869 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46870 if test -n "$ac_pt_PKG_CONFIG"; then
46871   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
46872 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
46873 else
46874   { echo "$as_me:$LINENO: result: no" >&5
46875 echo "${ECHO_T}no" >&6; }
46876 fi
46877
46878   if test "x$ac_pt_PKG_CONFIG" = x; then
46879     PKG_CONFIG=""
46880   else
46881     case $cross_compiling:$ac_tool_warned in
46882 yes:)
46883 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46884 whose name does not start with the host triplet.  If you think this
46885 configuration is useful to you, please write to autoconf@gnu.org." >&5
46886 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46887 whose name does not start with the host triplet.  If you think this
46888 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46889 ac_tool_warned=yes ;;
46890 esac
46891     PKG_CONFIG=$ac_pt_PKG_CONFIG
46892   fi
46893 else
46894   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46895 fi
46896
46897 fi
46898 if test -n "$PKG_CONFIG"; then
46899         _pkg_min_version=0.9.0
46900         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
46901 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
46902         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46903                 { echo "$as_me:$LINENO: result: yes" >&5
46904 echo "${ECHO_T}yes" >&6; }
46905         else
46906                 { echo "$as_me:$LINENO: result: no" >&5
46907 echo "${ECHO_T}no" >&6; }
46908                 PKG_CONFIG=""
46909         fi
46910
46911 fi
46912
46913     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46914
46915         if test "$wxUSE_GTKPRINT" = "yes" ; then
46916
46917
46918 pkg_failed=no
46919 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
46920 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
46921
46922 if test -n "$PKG_CONFIG"; then
46923     if test -n "$GTKPRINT_CFLAGS"; then
46924         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
46925     else
46926         if test -n "$PKG_CONFIG" && \
46927     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46928   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46929   ac_status=$?
46930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46931   (exit $ac_status); }; then
46932   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46933 else
46934   pkg_failed=yes
46935 fi
46936     fi
46937 else
46938         pkg_failed=untried
46939 fi
46940 if test -n "$PKG_CONFIG"; then
46941     if test -n "$GTKPRINT_LIBS"; then
46942         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
46943     else
46944         if test -n "$PKG_CONFIG" && \
46945     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46946   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46947   ac_status=$?
46948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46949   (exit $ac_status); }; then
46950   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46951 else
46952   pkg_failed=yes
46953 fi
46954     fi
46955 else
46956         pkg_failed=untried
46957 fi
46958
46959
46960
46961 if test $pkg_failed = yes; then
46962
46963 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46964         _pkg_short_errors_supported=yes
46965 else
46966         _pkg_short_errors_supported=no
46967 fi
46968         if test $_pkg_short_errors_supported = yes; then
46969                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
46970         else
46971                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
46972         fi
46973         # Put the nasty error message in config.log where it belongs
46974         echo "$GTKPRINT_PKG_ERRORS" >&5
46975
46976
46977                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
46978 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
46979                         wxUSE_GTKPRINT="no"
46980
46981
46982 elif test $pkg_failed = untried; then
46983
46984                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
46985 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
46986                         wxUSE_GTKPRINT="no"
46987
46988
46989 else
46990         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
46991         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
46992         { echo "$as_me:$LINENO: result: yes" >&5
46993 echo "${ECHO_T}yes" >&6; }
46994
46995                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
46996                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
46997                         cat >>confdefs.h <<\_ACEOF
46998 #define wxUSE_GTKPRINT 1
46999 _ACEOF
47000
47001
47002 fi
47003         fi
47004
47005         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47006
47007
47008 pkg_failed=no
47009 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
47010 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
47011
47012 if test -n "$PKG_CONFIG"; then
47013     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
47014         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
47015     else
47016         if test -n "$PKG_CONFIG" && \
47017     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47018   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47019   ac_status=$?
47020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47021   (exit $ac_status); }; then
47022   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47023 else
47024   pkg_failed=yes
47025 fi
47026     fi
47027 else
47028         pkg_failed=untried
47029 fi
47030 if test -n "$PKG_CONFIG"; then
47031     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
47032         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
47033     else
47034         if test -n "$PKG_CONFIG" && \
47035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47036   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47037   ac_status=$?
47038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47039   (exit $ac_status); }; then
47040   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47041 else
47042   pkg_failed=yes
47043 fi
47044     fi
47045 else
47046         pkg_failed=untried
47047 fi
47048
47049
47050
47051 if test $pkg_failed = yes; then
47052
47053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47054         _pkg_short_errors_supported=yes
47055 else
47056         _pkg_short_errors_supported=no
47057 fi
47058         if test $_pkg_short_errors_supported = yes; then
47059                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47060         else
47061                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47062         fi
47063         # Put the nasty error message in config.log where it belongs
47064         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
47065
47066
47067                         if test "$wxUSE_GTKPRINT" = yes; then
47068                             { echo "$as_me:$LINENO: result: no" >&5
47069 echo "${ECHO_T}no" >&6; }
47070                         else
47071                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47072 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47073                         fi
47074                         wxUSE_LIBGNOMEPRINT="no"
47075
47076
47077 elif test $pkg_failed = untried; then
47078
47079                         if test "$wxUSE_GTKPRINT" = yes; then
47080                             { echo "$as_me:$LINENO: result: no" >&5
47081 echo "${ECHO_T}no" >&6; }
47082                         else
47083                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47084 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47085                         fi
47086                         wxUSE_LIBGNOMEPRINT="no"
47087
47088
47089 else
47090         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
47091         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
47092         { echo "$as_me:$LINENO: result: yes" >&5
47093 echo "${ECHO_T}yes" >&6; }
47094
47095                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
47096                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
47097                         cat >>confdefs.h <<\_ACEOF
47098 #define wxUSE_LIBGNOMEPRINT 1
47099 _ACEOF
47100
47101
47102 fi
47103         fi
47104     fi
47105
47106     if test "$wxUSE_MIMETYPE" = "yes" ; then
47107         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47108
47109
47110 pkg_failed=no
47111 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
47112 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
47113
47114 if test -n "$PKG_CONFIG"; then
47115     if test -n "$GNOMEVFS_CFLAGS"; then
47116         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
47117     else
47118         if test -n "$PKG_CONFIG" && \
47119     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47120   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47121   ac_status=$?
47122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47123   (exit $ac_status); }; then
47124   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47125 else
47126   pkg_failed=yes
47127 fi
47128     fi
47129 else
47130         pkg_failed=untried
47131 fi
47132 if test -n "$PKG_CONFIG"; then
47133     if test -n "$GNOMEVFS_LIBS"; then
47134         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
47135     else
47136         if test -n "$PKG_CONFIG" && \
47137     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47138   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47139   ac_status=$?
47140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47141   (exit $ac_status); }; then
47142   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47143 else
47144   pkg_failed=yes
47145 fi
47146     fi
47147 else
47148         pkg_failed=untried
47149 fi
47150
47151
47152
47153 if test $pkg_failed = yes; then
47154
47155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47156         _pkg_short_errors_supported=yes
47157 else
47158         _pkg_short_errors_supported=no
47159 fi
47160         if test $_pkg_short_errors_supported = yes; then
47161                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47162         else
47163                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47164         fi
47165         # Put the nasty error message in config.log where it belongs
47166         echo "$GNOMEVFS_PKG_ERRORS" >&5
47167
47168
47169                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47170 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47171                         wxUSE_LIBGNOMEVFS="no"
47172
47173
47174 elif test $pkg_failed = untried; then
47175
47176                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47177 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47178                         wxUSE_LIBGNOMEVFS="no"
47179
47180
47181 else
47182         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
47183         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
47184         { echo "$as_me:$LINENO: result: yes" >&5
47185 echo "${ECHO_T}yes" >&6; }
47186
47187                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
47188                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
47189                         cat >>confdefs.h <<\_ACEOF
47190 #define wxUSE_LIBGNOMEVFS 1
47191 _ACEOF
47192
47193
47194 fi
47195         fi
47196     fi
47197
47198     if test "$wxUSE_LIBHILDON" = "yes" ; then
47199
47200 pkg_failed=no
47201 { echo "$as_me:$LINENO: checking for HILDON" >&5
47202 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
47203
47204 if test -n "$PKG_CONFIG"; then
47205     if test -n "$HILDON_CFLAGS"; then
47206         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
47207     else
47208         if test -n "$PKG_CONFIG" && \
47209     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47210   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47211   ac_status=$?
47212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47213   (exit $ac_status); }; then
47214   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
47215 else
47216   pkg_failed=yes
47217 fi
47218     fi
47219 else
47220         pkg_failed=untried
47221 fi
47222 if test -n "$PKG_CONFIG"; then
47223     if test -n "$HILDON_LIBS"; then
47224         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
47225     else
47226         if test -n "$PKG_CONFIG" && \
47227     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47228   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47229   ac_status=$?
47230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47231   (exit $ac_status); }; then
47232   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
47233 else
47234   pkg_failed=yes
47235 fi
47236     fi
47237 else
47238         pkg_failed=untried
47239 fi
47240
47241
47242
47243 if test $pkg_failed = yes; then
47244
47245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47246         _pkg_short_errors_supported=yes
47247 else
47248         _pkg_short_errors_supported=no
47249 fi
47250         if test $_pkg_short_errors_supported = yes; then
47251                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47252         else
47253                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47254         fi
47255         # Put the nasty error message in config.log where it belongs
47256         echo "$HILDON_PKG_ERRORS" >&5
47257
47258
47259                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47260 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47261                         wxUSE_LIBHILDON="no"
47262                         ac_hildon_lgpl=0
47263
47264
47265 elif test $pkg_failed = untried; then
47266
47267                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47268 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47269                         wxUSE_LIBHILDON="no"
47270                         ac_hildon_lgpl=0
47271
47272
47273 else
47274         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
47275         HILDON_LIBS=$pkg_cv_HILDON_LIBS
47276         { echo "$as_me:$LINENO: result: yes" >&5
47277 echo "${ECHO_T}yes" >&6; }
47278
47279                 EXTRALIBS_HILDON="$HILDON_LIBS"
47280                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
47281                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
47282                 cat >>confdefs.h <<\_ACEOF
47283 #define wxUSE_LIBHILDON 1
47284 _ACEOF
47285
47286                 ac_hildon_lgpl=1
47287
47288 fi
47289
47290         if test "$ac_hildon_lgpl" = 0 ; then
47291
47292 pkg_failed=no
47293 { echo "$as_me:$LINENO: checking for HILDON2" >&5
47294 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
47295
47296 if test -n "$PKG_CONFIG"; then
47297     if test -n "$HILDON2_CFLAGS"; then
47298         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
47299     else
47300         if test -n "$PKG_CONFIG" && \
47301     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47302   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47303   ac_status=$?
47304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305   (exit $ac_status); }; then
47306   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
47307 else
47308   pkg_failed=yes
47309 fi
47310     fi
47311 else
47312         pkg_failed=untried
47313 fi
47314 if test -n "$PKG_CONFIG"; then
47315     if test -n "$HILDON2_LIBS"; then
47316         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
47317     else
47318         if test -n "$PKG_CONFIG" && \
47319     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47320   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47321   ac_status=$?
47322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47323   (exit $ac_status); }; then
47324   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
47325 else
47326   pkg_failed=yes
47327 fi
47328     fi
47329 else
47330         pkg_failed=untried
47331 fi
47332
47333
47334
47335 if test $pkg_failed = yes; then
47336
47337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47338         _pkg_short_errors_supported=yes
47339 else
47340         _pkg_short_errors_supported=no
47341 fi
47342         if test $_pkg_short_errors_supported = yes; then
47343                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47344         else
47345                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47346         fi
47347         # Put the nasty error message in config.log where it belongs
47348         echo "$HILDON2_PKG_ERRORS" >&5
47349
47350
47351                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47352 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47353                             wxUSE_LIBHILDON2="no"
47354
47355
47356 elif test $pkg_failed = untried; then
47357
47358                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47359 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47360                             wxUSE_LIBHILDON2="no"
47361
47362
47363 else
47364         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
47365         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
47366         { echo "$as_me:$LINENO: result: yes" >&5
47367 echo "${ECHO_T}yes" >&6; }
47368
47369                     EXTRALIBS_HILDON="$HILDON2_LIBS"
47370                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
47371                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
47372                     cat >>confdefs.h <<\_ACEOF
47373 #define wxUSE_LIBHILDON2 1
47374 _ACEOF
47375
47376
47377 fi
47378         fi
47379     fi
47380 fi
47381
47382 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
47383   cat >>confdefs.h <<\_ACEOF
47384 #define wxUSE_CMDLINE_PARSER 1
47385 _ACEOF
47386
47387 fi
47388
47389 if test "$wxUSE_STOPWATCH" = "yes"; then
47390   cat >>confdefs.h <<\_ACEOF
47391 #define wxUSE_STOPWATCH 1
47392 _ACEOF
47393
47394 fi
47395
47396 if test "$wxUSE_DATETIME" = "yes"; then
47397   cat >>confdefs.h <<\_ACEOF
47398 #define wxUSE_DATETIME 1
47399 _ACEOF
47400
47401 fi
47402
47403 if test "$wxUSE_FILE" = "yes"; then
47404   cat >>confdefs.h <<\_ACEOF
47405 #define wxUSE_FILE 1
47406 _ACEOF
47407
47408 fi
47409
47410 if test "$wxUSE_FFILE" = "yes"; then
47411   cat >>confdefs.h <<\_ACEOF
47412 #define wxUSE_FFILE 1
47413 _ACEOF
47414
47415 fi
47416
47417 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
47418   if test "$wxUSE_STREAMS" != yes; then
47419     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
47420 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
47421     wxUSE_ARCHIVE_STREAMS=no
47422   else
47423     cat >>confdefs.h <<\_ACEOF
47424 #define wxUSE_ARCHIVE_STREAMS 1
47425 _ACEOF
47426
47427   fi
47428 fi
47429
47430 if test "$wxUSE_ZIPSTREAM" = "yes"; then
47431   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47432     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
47433 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
47434   elif test "$wxUSE_ZLIB" = "no"; then
47435     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
47436 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
47437   else
47438     cat >>confdefs.h <<\_ACEOF
47439 #define wxUSE_ZIPSTREAM 1
47440 _ACEOF
47441
47442   fi
47443 fi
47444
47445 if test "$wxUSE_TARSTREAM" = "yes"; then
47446   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47447     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
47448 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
47449   else
47450     cat >>confdefs.h <<\_ACEOF
47451 #define wxUSE_TARSTREAM 1
47452 _ACEOF
47453
47454   fi
47455 fi
47456
47457 if test "$wxUSE_FILE_HISTORY" = "yes"; then
47458   cat >>confdefs.h <<\_ACEOF
47459 #define wxUSE_FILE_HISTORY 1
47460 _ACEOF
47461
47462 fi
47463
47464 if test "$wxUSE_FILESYSTEM" = "yes"; then
47465   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
47466     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
47467 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
47468     wxUSE_FILESYSTEM=no
47469   else
47470     cat >>confdefs.h <<\_ACEOF
47471 #define wxUSE_FILESYSTEM 1
47472 _ACEOF
47473
47474   fi
47475 fi
47476
47477 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
47478   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
47479     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
47480 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
47481   else
47482     cat >>confdefs.h <<\_ACEOF
47483 #define wxUSE_FS_ARCHIVE 1
47484 _ACEOF
47485
47486   fi
47487 fi
47488
47489 if test "$wxUSE_FS_ZIP" = "yes"; then
47490   if test "$wxUSE_FS_ARCHIVE" != yes; then
47491     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
47492 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
47493   else
47494     cat >>confdefs.h <<\_ACEOF
47495 #define wxUSE_FS_ZIP 1
47496 _ACEOF
47497
47498   fi
47499 fi
47500
47501 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47502   if test "$USE_UNIX" != 1; then
47503     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
47504 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
47505     wxUSE_ON_FATAL_EXCEPTION=no
47506   else
47507     cat >>confdefs.h <<\_ACEOF
47508 #define wxUSE_ON_FATAL_EXCEPTION 1
47509 _ACEOF
47510
47511   fi
47512 fi
47513
47514 if test "$wxUSE_STACKWALKER" = "yes"; then
47515     cat >>confdefs.h <<\_ACEOF
47516 #define wxUSE_STACKWALKER 1
47517 _ACEOF
47518
47519 fi
47520
47521 if test "$wxUSE_DEBUGREPORT" = "yes"; then
47522     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
47523         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
47524 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
47525         wxUSE_DEBUGREPORT=no
47526     else
47527         cat >>confdefs.h <<\_ACEOF
47528 #define wxUSE_DEBUGREPORT 1
47529 _ACEOF
47530
47531         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47532             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
47533         fi
47534     fi
47535 fi
47536
47537 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
47538   cat >>confdefs.h <<\_ACEOF
47539 #define wxUSE_SNGLINST_CHECKER 1
47540 _ACEOF
47541
47542 fi
47543
47544 if test "$wxUSE_BUSYINFO" = "yes"; then
47545   cat >>confdefs.h <<\_ACEOF
47546 #define wxUSE_BUSYINFO 1
47547 _ACEOF
47548
47549 fi
47550
47551 if test "$wxUSE_HOTKEY" = "yes"; then
47552   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
47553     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
47554 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
47555     wxUSE_HOTKEY=no
47556   fi
47557 elif test "$wxUSE_HOTKEY" = "auto"; then
47558   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
47559     wxUSE_HOTKEY=yes
47560   fi
47561 fi
47562 if test "$wxUSE_HOTKEY" = "yes"; then
47563   cat >>confdefs.h <<\_ACEOF
47564 #define wxUSE_HOTKEY 1
47565 _ACEOF
47566
47567 fi
47568
47569 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
47570   cat >>confdefs.h <<\_ACEOF
47571 #define wxUSE_STD_CONTAINERS 1
47572 _ACEOF
47573
47574 fi
47575
47576 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
47577   cat >>confdefs.h <<\_ACEOF
47578 #define wxUSE_STD_IOSTREAM 1
47579 _ACEOF
47580
47581 fi
47582
47583 if test "$wxUSE_STD_STRING" = "yes"; then
47584   cat >>confdefs.h <<\_ACEOF
47585 #define wxUSE_STD_STRING 1
47586 _ACEOF
47587
47588 fi
47589
47590 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
47591   cat >>confdefs.h <<\_ACEOF
47592 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
47593 _ACEOF
47594
47595 fi
47596
47597 if test "$wxUSE_STDPATHS" = "yes"; then
47598   cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_STDPATHS 1
47600 _ACEOF
47601
47602 fi
47603
47604 if test "$wxUSE_TEXTBUFFER" = "yes"; then
47605     cat >>confdefs.h <<\_ACEOF
47606 #define wxUSE_TEXTBUFFER 1
47607 _ACEOF
47608
47609 fi
47610
47611 if test "$wxUSE_TEXTFILE" = "yes"; then
47612   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
47613     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
47614 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
47615   else
47616     cat >>confdefs.h <<\_ACEOF
47617 #define wxUSE_TEXTFILE 1
47618 _ACEOF
47619
47620   fi
47621 fi
47622
47623 if test "$wxUSE_CONFIG" = "yes" ; then
47624   if test "$wxUSE_TEXTFILE" != "yes"; then
47625     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
47626 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
47627   else
47628     cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_CONFIG 1
47630 _ACEOF
47631
47632     cat >>confdefs.h <<\_ACEOF
47633 #define wxUSE_CONFIG_NATIVE 1
47634 _ACEOF
47635
47636     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
47637   fi
47638 fi
47639
47640 if test "$wxUSE_INTL" = "yes" ; then
47641   if test "$wxUSE_FILE" != "yes"; then
47642     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
47643 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
47644   else
47645     cat >>confdefs.h <<\_ACEOF
47646 #define wxUSE_INTL 1
47647 _ACEOF
47648
47649     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
47650     GUIDIST="$GUIDIST INTL_DIST"
47651   fi
47652 fi
47653
47654 if test "$wxUSE_XLOCALE" = "yes" ; then
47655     cat >>confdefs.h <<\_ACEOF
47656 #define wxUSE_XLOCALE 1
47657 _ACEOF
47658
47659     { echo "$as_me:$LINENO: checking for locale_t" >&5
47660 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
47661 if test "${ac_cv_type_locale_t+set}" = set; then
47662   echo $ECHO_N "(cached) $ECHO_C" >&6
47663 else
47664   cat >conftest.$ac_ext <<_ACEOF
47665 /* confdefs.h.  */
47666 _ACEOF
47667 cat confdefs.h >>conftest.$ac_ext
47668 cat >>conftest.$ac_ext <<_ACEOF
47669 /* end confdefs.h.  */
47670 #include <xlocale.h>
47671                     #include <locale.h>
47672
47673 typedef locale_t ac__type_new_;
47674 int
47675 main ()
47676 {
47677 if ((ac__type_new_ *) 0)
47678   return 0;
47679 if (sizeof (ac__type_new_))
47680   return 0;
47681   ;
47682   return 0;
47683 }
47684 _ACEOF
47685 rm -f conftest.$ac_objext
47686 if { (ac_try="$ac_compile"
47687 case "(($ac_try" in
47688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47689   *) ac_try_echo=$ac_try;;
47690 esac
47691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47692   (eval "$ac_compile") 2>conftest.er1
47693   ac_status=$?
47694   grep -v '^ *+' conftest.er1 >conftest.err
47695   rm -f conftest.er1
47696   cat conftest.err >&5
47697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698   (exit $ac_status); } && {
47699          test -z "$ac_c_werror_flag" ||
47700          test ! -s conftest.err
47701        } && test -s conftest.$ac_objext; then
47702   ac_cv_type_locale_t=yes
47703 else
47704   echo "$as_me: failed program was:" >&5
47705 sed 's/^/| /' conftest.$ac_ext >&5
47706
47707         ac_cv_type_locale_t=no
47708 fi
47709
47710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47711 fi
47712 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
47713 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
47714 if test $ac_cv_type_locale_t = yes; then
47715
47716 cat >>confdefs.h <<_ACEOF
47717 #define HAVE_LOCALE_T 1
47718 _ACEOF
47719
47720
47721 fi
47722
47723 fi
47724
47725 if test "$wxUSE_LOG" = "yes"; then
47726   cat >>confdefs.h <<\_ACEOF
47727 #define wxUSE_LOG 1
47728 _ACEOF
47729
47730
47731     if test "$wxUSE_LOGGUI" = "yes"; then
47732       cat >>confdefs.h <<\_ACEOF
47733 #define wxUSE_LOGGUI 1
47734 _ACEOF
47735
47736     fi
47737
47738     if test "$wxUSE_LOGWINDOW" = "yes"; then
47739       cat >>confdefs.h <<\_ACEOF
47740 #define wxUSE_LOGWINDOW 1
47741 _ACEOF
47742
47743     fi
47744
47745     if test "$wxUSE_LOGDIALOG" = "yes"; then
47746       cat >>confdefs.h <<\_ACEOF
47747 #define wxUSE_LOG_DIALOG 1
47748 _ACEOF
47749
47750     fi
47751
47752         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
47753 fi
47754
47755 if test "$wxUSE_LONGLONG" = "yes"; then
47756   cat >>confdefs.h <<\_ACEOF
47757 #define wxUSE_LONGLONG 1
47758 _ACEOF
47759
47760 fi
47761
47762 if test "$wxUSE_GEOMETRY" = "yes"; then
47763   cat >>confdefs.h <<\_ACEOF
47764 #define wxUSE_GEOMETRY 1
47765 _ACEOF
47766
47767 fi
47768
47769 if test "$wxUSE_BASE64" = "yes"; then
47770   cat >>confdefs.h <<\_ACEOF
47771 #define wxUSE_BASE64 1
47772 _ACEOF
47773
47774 fi
47775
47776 if test "$wxUSE_STREAMS" = "yes" ; then
47777   cat >>confdefs.h <<\_ACEOF
47778 #define wxUSE_STREAMS 1
47779 _ACEOF
47780
47781 fi
47782
47783 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
47784   cat >>confdefs.h <<\_ACEOF
47785 #define wxUSE_PRINTF_POS_PARAMS 1
47786 _ACEOF
47787
47788 fi
47789
47790 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
47791   cat >>confdefs.h <<\_ACEOF
47792 #define wxUSE_OBJC_UNIQUIFYING 1
47793 _ACEOF
47794
47795 fi
47796
47797
47798 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
47799     cat >>confdefs.h <<\_ACEOF
47800 #define wxUSE_CONSOLE_EVENTLOOP 1
47801 _ACEOF
47802
47803
47804     if test "$wxUSE_UNIX" = "yes"; then
47805         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
47806             cat >>confdefs.h <<\_ACEOF
47807 #define wxUSE_SELECT_DISPATCHER 1
47808 _ACEOF
47809
47810         fi
47811
47812         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
47813
47814 for ac_header in sys/epoll.h
47815 do
47816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47820   echo $ECHO_N "(cached) $ECHO_C" >&6
47821 else
47822   cat >conftest.$ac_ext <<_ACEOF
47823 /* confdefs.h.  */
47824 _ACEOF
47825 cat confdefs.h >>conftest.$ac_ext
47826 cat >>conftest.$ac_ext <<_ACEOF
47827 /* end confdefs.h.  */
47828 $ac_includes_default
47829
47830 #include <$ac_header>
47831 _ACEOF
47832 rm -f conftest.$ac_objext
47833 if { (ac_try="$ac_compile"
47834 case "(($ac_try" in
47835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47836   *) ac_try_echo=$ac_try;;
47837 esac
47838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47839   (eval "$ac_compile") 2>conftest.er1
47840   ac_status=$?
47841   grep -v '^ *+' conftest.er1 >conftest.err
47842   rm -f conftest.er1
47843   cat conftest.err >&5
47844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47845   (exit $ac_status); } && {
47846          test -z "$ac_c_werror_flag" ||
47847          test ! -s conftest.err
47848        } && test -s conftest.$ac_objext; then
47849   eval "$as_ac_Header=yes"
47850 else
47851   echo "$as_me: failed program was:" >&5
47852 sed 's/^/| /' conftest.$ac_ext >&5
47853
47854         eval "$as_ac_Header=no"
47855 fi
47856
47857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47858 fi
47859 ac_res=`eval echo '${'$as_ac_Header'}'`
47860                { echo "$as_me:$LINENO: result: $ac_res" >&5
47861 echo "${ECHO_T}$ac_res" >&6; }
47862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47863   cat >>confdefs.h <<_ACEOF
47864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47865 _ACEOF
47866
47867 fi
47868
47869 done
47870
47871             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
47872                 cat >>confdefs.h <<\_ACEOF
47873 #define wxUSE_EPOLL_DISPATCHER 1
47874 _ACEOF
47875
47876             else
47877                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
47878 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
47879             fi
47880         fi
47881     fi
47882 fi
47883
47884
47885
47886
47887 for ac_func in gettimeofday ftime
47888 do
47889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47893   echo $ECHO_N "(cached) $ECHO_C" >&6
47894 else
47895   cat >conftest.$ac_ext <<_ACEOF
47896 /* confdefs.h.  */
47897 _ACEOF
47898 cat confdefs.h >>conftest.$ac_ext
47899 cat >>conftest.$ac_ext <<_ACEOF
47900 /* end confdefs.h.  */
47901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47903 #define $ac_func innocuous_$ac_func
47904
47905 /* System header to define __stub macros and hopefully few prototypes,
47906     which can conflict with char $ac_func (); below.
47907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47908     <limits.h> exists even on freestanding compilers.  */
47909
47910 #ifdef __STDC__
47911 # include <limits.h>
47912 #else
47913 # include <assert.h>
47914 #endif
47915
47916 #undef $ac_func
47917
47918 /* Override any GCC internal prototype to avoid an error.
47919    Use char because int might match the return type of a GCC
47920    builtin and then its argument prototype would still apply.  */
47921 #ifdef __cplusplus
47922 extern "C"
47923 #endif
47924 char $ac_func ();
47925 /* The GNU C library defines this for functions which it implements
47926     to always fail with ENOSYS.  Some functions are actually named
47927     something starting with __ and the normal name is an alias.  */
47928 #if defined __stub_$ac_func || defined __stub___$ac_func
47929 choke me
47930 #endif
47931
47932 int
47933 main ()
47934 {
47935 return $ac_func ();
47936   ;
47937   return 0;
47938 }
47939 _ACEOF
47940 rm -f conftest.$ac_objext conftest$ac_exeext
47941 if { (ac_try="$ac_link"
47942 case "(($ac_try" in
47943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47944   *) ac_try_echo=$ac_try;;
47945 esac
47946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47947   (eval "$ac_link") 2>conftest.er1
47948   ac_status=$?
47949   grep -v '^ *+' conftest.er1 >conftest.err
47950   rm -f conftest.er1
47951   cat conftest.err >&5
47952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47953   (exit $ac_status); } && {
47954          test -z "$ac_c_werror_flag" ||
47955          test ! -s conftest.err
47956        } && test -s conftest$ac_exeext &&
47957        $as_test_x conftest$ac_exeext; then
47958   eval "$as_ac_var=yes"
47959 else
47960   echo "$as_me: failed program was:" >&5
47961 sed 's/^/| /' conftest.$ac_ext >&5
47962
47963         eval "$as_ac_var=no"
47964 fi
47965
47966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47967       conftest$ac_exeext conftest.$ac_ext
47968 fi
47969 ac_res=`eval echo '${'$as_ac_var'}'`
47970                { echo "$as_me:$LINENO: result: $ac_res" >&5
47971 echo "${ECHO_T}$ac_res" >&6; }
47972 if test `eval echo '${'$as_ac_var'}'` = yes; then
47973   cat >>confdefs.h <<_ACEOF
47974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47975 _ACEOF
47976  break
47977 fi
47978 done
47979
47980
47981 if test "$ac_cv_func_gettimeofday" = "yes"; then
47982     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
47983 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
47984 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
47985   echo $ECHO_N "(cached) $ECHO_C" >&6
47986 else
47987
47988                 cat >conftest.$ac_ext <<_ACEOF
47989 /* confdefs.h.  */
47990 _ACEOF
47991 cat confdefs.h >>conftest.$ac_ext
47992 cat >>conftest.$ac_ext <<_ACEOF
47993 /* end confdefs.h.  */
47994
47995                 #include <sys/time.h>
47996                 #include <unistd.h>
47997
47998 int
47999 main ()
48000 {
48001
48002                 struct timeval tv;
48003                 gettimeofday(&tv, NULL);
48004
48005   ;
48006   return 0;
48007 }
48008 _ACEOF
48009 rm -f conftest.$ac_objext
48010 if { (ac_try="$ac_compile"
48011 case "(($ac_try" in
48012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48013   *) ac_try_echo=$ac_try;;
48014 esac
48015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48016   (eval "$ac_compile") 2>conftest.er1
48017   ac_status=$?
48018   grep -v '^ *+' conftest.er1 >conftest.err
48019   rm -f conftest.er1
48020   cat conftest.err >&5
48021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48022   (exit $ac_status); } && {
48023          test -z "$ac_c_werror_flag" ||
48024          test ! -s conftest.err
48025        } && test -s conftest.$ac_objext; then
48026   wx_cv_func_gettimeofday_has_2_args=yes
48027 else
48028   echo "$as_me: failed program was:" >&5
48029 sed 's/^/| /' conftest.$ac_ext >&5
48030
48031         cat >conftest.$ac_ext <<_ACEOF
48032 /* confdefs.h.  */
48033 _ACEOF
48034 cat confdefs.h >>conftest.$ac_ext
48035 cat >>conftest.$ac_ext <<_ACEOF
48036 /* end confdefs.h.  */
48037
48038                     #include <sys/time.h>
48039                     #include <unistd.h>
48040
48041 int
48042 main ()
48043 {
48044
48045                     struct timeval tv;
48046                     gettimeofday(&tv);
48047
48048   ;
48049   return 0;
48050 }
48051 _ACEOF
48052 rm -f conftest.$ac_objext
48053 if { (ac_try="$ac_compile"
48054 case "(($ac_try" in
48055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48056   *) ac_try_echo=$ac_try;;
48057 esac
48058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48059   (eval "$ac_compile") 2>conftest.er1
48060   ac_status=$?
48061   grep -v '^ *+' conftest.er1 >conftest.err
48062   rm -f conftest.er1
48063   cat conftest.err >&5
48064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48065   (exit $ac_status); } && {
48066          test -z "$ac_c_werror_flag" ||
48067          test ! -s conftest.err
48068        } && test -s conftest.$ac_objext; then
48069   wx_cv_func_gettimeofday_has_2_args=no
48070 else
48071   echo "$as_me: failed program was:" >&5
48072 sed 's/^/| /' conftest.$ac_ext >&5
48073
48074
48075                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
48076 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
48077                     wx_cv_func_gettimeofday_has_2_args=unknown
48078
48079
48080 fi
48081
48082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48083
48084 fi
48085
48086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48087
48088 fi
48089 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
48090 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
48091
48092     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
48093         cat >>confdefs.h <<\_ACEOF
48094 #define WX_GETTIMEOFDAY_NO_TZ 1
48095 _ACEOF
48096
48097     fi
48098 fi
48099
48100 if test "$wxUSE_DATETIME" = "yes"; then
48101             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
48102 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
48103 if test "${wx_cv_var_timezone+set}" = set; then
48104   echo $ECHO_N "(cached) $ECHO_C" >&6
48105 else
48106
48107                         ac_ext=cpp
48108 ac_cpp='$CXXCPP $CPPFLAGS'
48109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48112
48113                         cat >conftest.$ac_ext <<_ACEOF
48114 /* confdefs.h.  */
48115 _ACEOF
48116 cat confdefs.h >>conftest.$ac_ext
48117 cat >>conftest.$ac_ext <<_ACEOF
48118 /* end confdefs.h.  */
48119
48120                                 #include <time.h>
48121
48122 int
48123 main ()
48124 {
48125
48126                                 int tz;
48127                                 tz = timezone;
48128
48129   ;
48130   return 0;
48131 }
48132 _ACEOF
48133 rm -f conftest.$ac_objext
48134 if { (ac_try="$ac_compile"
48135 case "(($ac_try" in
48136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48137   *) ac_try_echo=$ac_try;;
48138 esac
48139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48140   (eval "$ac_compile") 2>conftest.er1
48141   ac_status=$?
48142   grep -v '^ *+' conftest.er1 >conftest.err
48143   rm -f conftest.er1
48144   cat conftest.err >&5
48145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48146   (exit $ac_status); } && {
48147          test -z "$ac_cxx_werror_flag" ||
48148          test ! -s conftest.err
48149        } && test -s conftest.$ac_objext; then
48150
48151                                 wx_cv_var_timezone=timezone
48152
48153 else
48154   echo "$as_me: failed program was:" >&5
48155 sed 's/^/| /' conftest.$ac_ext >&5
48156
48157
48158                                 cat >conftest.$ac_ext <<_ACEOF
48159 /* confdefs.h.  */
48160 _ACEOF
48161 cat confdefs.h >>conftest.$ac_ext
48162 cat >>conftest.$ac_ext <<_ACEOF
48163 /* end confdefs.h.  */
48164
48165                                         #include <time.h>
48166
48167 int
48168 main ()
48169 {
48170
48171                                         int tz;
48172                                         tz = _timezone;
48173
48174   ;
48175   return 0;
48176 }
48177 _ACEOF
48178 rm -f conftest.$ac_objext
48179 if { (ac_try="$ac_compile"
48180 case "(($ac_try" in
48181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48182   *) ac_try_echo=$ac_try;;
48183 esac
48184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48185   (eval "$ac_compile") 2>conftest.er1
48186   ac_status=$?
48187   grep -v '^ *+' conftest.er1 >conftest.err
48188   rm -f conftest.er1
48189   cat conftest.err >&5
48190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48191   (exit $ac_status); } && {
48192          test -z "$ac_cxx_werror_flag" ||
48193          test ! -s conftest.err
48194        } && test -s conftest.$ac_objext; then
48195
48196                                         wx_cv_var_timezone=_timezone
48197
48198 else
48199   echo "$as_me: failed program was:" >&5
48200 sed 's/^/| /' conftest.$ac_ext >&5
48201
48202
48203                                         cat >conftest.$ac_ext <<_ACEOF
48204 /* confdefs.h.  */
48205 _ACEOF
48206 cat confdefs.h >>conftest.$ac_ext
48207 cat >>conftest.$ac_ext <<_ACEOF
48208 /* end confdefs.h.  */
48209
48210                                                 #include <time.h>
48211
48212 int
48213 main ()
48214 {
48215
48216                                                 int tz;
48217                                                 tz = __timezone;
48218
48219   ;
48220   return 0;
48221 }
48222 _ACEOF
48223 rm -f conftest.$ac_objext
48224 if { (ac_try="$ac_compile"
48225 case "(($ac_try" in
48226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48227   *) ac_try_echo=$ac_try;;
48228 esac
48229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48230   (eval "$ac_compile") 2>conftest.er1
48231   ac_status=$?
48232   grep -v '^ *+' conftest.er1 >conftest.err
48233   rm -f conftest.er1
48234   cat conftest.err >&5
48235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48236   (exit $ac_status); } && {
48237          test -z "$ac_cxx_werror_flag" ||
48238          test ! -s conftest.err
48239        } && test -s conftest.$ac_objext; then
48240
48241                                                 wx_cv_var_timezone=__timezone
48242
48243 else
48244   echo "$as_me: failed program was:" >&5
48245 sed 's/^/| /' conftest.$ac_ext >&5
48246
48247
48248                                                 if test "$USE_DOS" = 0 ; then
48249                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
48250 echo "$as_me: WARNING: no timezone variable" >&2;}
48251                                                 fi
48252
48253
48254 fi
48255
48256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48257
48258
48259 fi
48260
48261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48262
48263
48264 fi
48265
48266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48267                         ac_ext=c
48268 ac_cpp='$CPP $CPPFLAGS'
48269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48272
48273
48274
48275 fi
48276 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
48277 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
48278
48279         if test "x$wx_cv_var_timezone" != x ; then
48280         cat >>confdefs.h <<_ACEOF
48281 #define WX_TIMEZONE $wx_cv_var_timezone
48282 _ACEOF
48283
48284     fi
48285
48286
48287 for ac_func in localtime
48288 do
48289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48293   echo $ECHO_N "(cached) $ECHO_C" >&6
48294 else
48295   cat >conftest.$ac_ext <<_ACEOF
48296 /* confdefs.h.  */
48297 _ACEOF
48298 cat confdefs.h >>conftest.$ac_ext
48299 cat >>conftest.$ac_ext <<_ACEOF
48300 /* end confdefs.h.  */
48301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48303 #define $ac_func innocuous_$ac_func
48304
48305 /* System header to define __stub macros and hopefully few prototypes,
48306     which can conflict with char $ac_func (); below.
48307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48308     <limits.h> exists even on freestanding compilers.  */
48309
48310 #ifdef __STDC__
48311 # include <limits.h>
48312 #else
48313 # include <assert.h>
48314 #endif
48315
48316 #undef $ac_func
48317
48318 /* Override any GCC internal prototype to avoid an error.
48319    Use char because int might match the return type of a GCC
48320    builtin and then its argument prototype would still apply.  */
48321 #ifdef __cplusplus
48322 extern "C"
48323 #endif
48324 char $ac_func ();
48325 /* The GNU C library defines this for functions which it implements
48326     to always fail with ENOSYS.  Some functions are actually named
48327     something starting with __ and the normal name is an alias.  */
48328 #if defined __stub_$ac_func || defined __stub___$ac_func
48329 choke me
48330 #endif
48331
48332 int
48333 main ()
48334 {
48335 return $ac_func ();
48336   ;
48337   return 0;
48338 }
48339 _ACEOF
48340 rm -f conftest.$ac_objext conftest$ac_exeext
48341 if { (ac_try="$ac_link"
48342 case "(($ac_try" in
48343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48344   *) ac_try_echo=$ac_try;;
48345 esac
48346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48347   (eval "$ac_link") 2>conftest.er1
48348   ac_status=$?
48349   grep -v '^ *+' conftest.er1 >conftest.err
48350   rm -f conftest.er1
48351   cat conftest.err >&5
48352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48353   (exit $ac_status); } && {
48354          test -z "$ac_c_werror_flag" ||
48355          test ! -s conftest.err
48356        } && test -s conftest$ac_exeext &&
48357        $as_test_x conftest$ac_exeext; then
48358   eval "$as_ac_var=yes"
48359 else
48360   echo "$as_me: failed program was:" >&5
48361 sed 's/^/| /' conftest.$ac_ext >&5
48362
48363         eval "$as_ac_var=no"
48364 fi
48365
48366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48367       conftest$ac_exeext conftest.$ac_ext
48368 fi
48369 ac_res=`eval echo '${'$as_ac_var'}'`
48370                { echo "$as_me:$LINENO: result: $ac_res" >&5
48371 echo "${ECHO_T}$ac_res" >&6; }
48372 if test `eval echo '${'$as_ac_var'}'` = yes; then
48373   cat >>confdefs.h <<_ACEOF
48374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48375 _ACEOF
48376
48377 fi
48378 done
48379
48380
48381     if test "$ac_cv_func_localtime" = "yes"; then
48382         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
48383 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
48384 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
48385   echo $ECHO_N "(cached) $ECHO_C" >&6
48386 else
48387
48388             cat >conftest.$ac_ext <<_ACEOF
48389 /* confdefs.h.  */
48390 _ACEOF
48391 cat confdefs.h >>conftest.$ac_ext
48392 cat >>conftest.$ac_ext <<_ACEOF
48393 /* end confdefs.h.  */
48394
48395                     #include <time.h>
48396
48397 int
48398 main ()
48399 {
48400
48401                     struct tm tm;
48402                     tm.tm_gmtoff++;
48403
48404   ;
48405   return 0;
48406 }
48407 _ACEOF
48408 rm -f conftest.$ac_objext
48409 if { (ac_try="$ac_compile"
48410 case "(($ac_try" in
48411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48412   *) ac_try_echo=$ac_try;;
48413 esac
48414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48415   (eval "$ac_compile") 2>conftest.er1
48416   ac_status=$?
48417   grep -v '^ *+' conftest.er1 >conftest.err
48418   rm -f conftest.er1
48419   cat conftest.err >&5
48420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421   (exit $ac_status); } && {
48422          test -z "$ac_c_werror_flag" ||
48423          test ! -s conftest.err
48424        } && test -s conftest.$ac_objext; then
48425
48426                     wx_cv_struct_tm_has_gmtoff=yes
48427
48428 else
48429   echo "$as_me: failed program was:" >&5
48430 sed 's/^/| /' conftest.$ac_ext >&5
48431
48432         wx_cv_struct_tm_has_gmtoff=no
48433
48434 fi
48435
48436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48437
48438 fi
48439 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
48440 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
48441     fi
48442
48443     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
48444         cat >>confdefs.h <<\_ACEOF
48445 #define WX_GMTOFF_IN_TM 1
48446 _ACEOF
48447
48448     fi
48449
48450     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
48451 fi
48452
48453
48454 if test "$wxUSE_SOCKETS" = "yes"; then
48455         if test "$TOOLKIT" != "MSW"; then
48456                 { echo "$as_me:$LINENO: checking for socket" >&5
48457 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
48458 if test "${ac_cv_func_socket+set}" = set; then
48459   echo $ECHO_N "(cached) $ECHO_C" >&6
48460 else
48461   cat >conftest.$ac_ext <<_ACEOF
48462 /* confdefs.h.  */
48463 _ACEOF
48464 cat confdefs.h >>conftest.$ac_ext
48465 cat >>conftest.$ac_ext <<_ACEOF
48466 /* end confdefs.h.  */
48467 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
48468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48469 #define socket innocuous_socket
48470
48471 /* System header to define __stub macros and hopefully few prototypes,
48472     which can conflict with char socket (); below.
48473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48474     <limits.h> exists even on freestanding compilers.  */
48475
48476 #ifdef __STDC__
48477 # include <limits.h>
48478 #else
48479 # include <assert.h>
48480 #endif
48481
48482 #undef socket
48483
48484 /* Override any GCC internal prototype to avoid an error.
48485    Use char because int might match the return type of a GCC
48486    builtin and then its argument prototype would still apply.  */
48487 #ifdef __cplusplus
48488 extern "C"
48489 #endif
48490 char socket ();
48491 /* The GNU C library defines this for functions which it implements
48492     to always fail with ENOSYS.  Some functions are actually named
48493     something starting with __ and the normal name is an alias.  */
48494 #if defined __stub_socket || defined __stub___socket
48495 choke me
48496 #endif
48497
48498 int
48499 main ()
48500 {
48501 return socket ();
48502   ;
48503   return 0;
48504 }
48505 _ACEOF
48506 rm -f conftest.$ac_objext conftest$ac_exeext
48507 if { (ac_try="$ac_link"
48508 case "(($ac_try" in
48509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48510   *) ac_try_echo=$ac_try;;
48511 esac
48512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48513   (eval "$ac_link") 2>conftest.er1
48514   ac_status=$?
48515   grep -v '^ *+' conftest.er1 >conftest.err
48516   rm -f conftest.er1
48517   cat conftest.err >&5
48518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48519   (exit $ac_status); } && {
48520          test -z "$ac_c_werror_flag" ||
48521          test ! -s conftest.err
48522        } && test -s conftest$ac_exeext &&
48523        $as_test_x conftest$ac_exeext; then
48524   ac_cv_func_socket=yes
48525 else
48526   echo "$as_me: failed program was:" >&5
48527 sed 's/^/| /' conftest.$ac_ext >&5
48528
48529         ac_cv_func_socket=no
48530 fi
48531
48532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48533       conftest$ac_exeext conftest.$ac_ext
48534 fi
48535 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
48536 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
48537 if test $ac_cv_func_socket = yes; then
48538   :
48539 else
48540
48541                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
48542 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
48543 if test "${ac_cv_lib_socket_socket+set}" = set; then
48544   echo $ECHO_N "(cached) $ECHO_C" >&6
48545 else
48546   ac_check_lib_save_LIBS=$LIBS
48547 LIBS="-lsocket  $LIBS"
48548 cat >conftest.$ac_ext <<_ACEOF
48549 /* confdefs.h.  */
48550 _ACEOF
48551 cat confdefs.h >>conftest.$ac_ext
48552 cat >>conftest.$ac_ext <<_ACEOF
48553 /* end confdefs.h.  */
48554
48555 /* Override any GCC internal prototype to avoid an error.
48556    Use char because int might match the return type of a GCC
48557    builtin and then its argument prototype would still apply.  */
48558 #ifdef __cplusplus
48559 extern "C"
48560 #endif
48561 char socket ();
48562 int
48563 main ()
48564 {
48565 return socket ();
48566   ;
48567   return 0;
48568 }
48569 _ACEOF
48570 rm -f conftest.$ac_objext conftest$ac_exeext
48571 if { (ac_try="$ac_link"
48572 case "(($ac_try" in
48573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48574   *) ac_try_echo=$ac_try;;
48575 esac
48576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48577   (eval "$ac_link") 2>conftest.er1
48578   ac_status=$?
48579   grep -v '^ *+' conftest.er1 >conftest.err
48580   rm -f conftest.er1
48581   cat conftest.err >&5
48582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48583   (exit $ac_status); } && {
48584          test -z "$ac_c_werror_flag" ||
48585          test ! -s conftest.err
48586        } && test -s conftest$ac_exeext &&
48587        $as_test_x conftest$ac_exeext; then
48588   ac_cv_lib_socket_socket=yes
48589 else
48590   echo "$as_me: failed program was:" >&5
48591 sed 's/^/| /' conftest.$ac_ext >&5
48592
48593         ac_cv_lib_socket_socket=no
48594 fi
48595
48596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48597       conftest$ac_exeext conftest.$ac_ext
48598 LIBS=$ac_check_lib_save_LIBS
48599 fi
48600 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
48601 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
48602 if test $ac_cv_lib_socket_socket = yes; then
48603   if test "$INET_LINK" != " -lsocket"; then
48604                         INET_LINK="$INET_LINK -lsocket"
48605                     fi
48606 else
48607
48608                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
48609 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
48610                         wxUSE_SOCKETS=no
48611
48612
48613 fi
48614
48615
48616
48617 fi
48618
48619     fi
48620 fi
48621
48622 if test "$wxUSE_SOCKETS" = "yes" ; then
48623                 if test "$TOOLKIT" != "MSW"; then
48624                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
48625 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
48626 if test "${wx_cv_type_getsockname3+set}" = set; then
48627   echo $ECHO_N "(cached) $ECHO_C" >&6
48628 else
48629
48630                 ac_ext=cpp
48631 ac_cpp='$CXXCPP $CPPFLAGS'
48632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48635
48636                 cat >conftest.$ac_ext <<_ACEOF
48637 /* confdefs.h.  */
48638 _ACEOF
48639 cat confdefs.h >>conftest.$ac_ext
48640 cat >>conftest.$ac_ext <<_ACEOF
48641 /* end confdefs.h.  */
48642
48643                         #include <sys/types.h>
48644                         #include <sys/socket.h>
48645
48646 int
48647 main ()
48648 {
48649
48650                         socklen_t len;
48651                         getsockname(0, 0, &len);
48652
48653   ;
48654   return 0;
48655 }
48656 _ACEOF
48657 rm -f conftest.$ac_objext
48658 if { (ac_try="$ac_compile"
48659 case "(($ac_try" in
48660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48661   *) ac_try_echo=$ac_try;;
48662 esac
48663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48664   (eval "$ac_compile") 2>conftest.er1
48665   ac_status=$?
48666   grep -v '^ *+' conftest.er1 >conftest.err
48667   rm -f conftest.er1
48668   cat conftest.err >&5
48669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48670   (exit $ac_status); } && {
48671          test -z "$ac_cxx_werror_flag" ||
48672          test ! -s conftest.err
48673        } && test -s conftest.$ac_objext; then
48674   wx_cv_type_getsockname3=socklen_t
48675 else
48676   echo "$as_me: failed program was:" >&5
48677 sed 's/^/| /' conftest.$ac_ext >&5
48678
48679
48680                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
48681                         if test "$GCC" = yes ; then
48682                             CFLAGS="-Werror $CFLAGS"
48683                         fi
48684
48685                         cat >conftest.$ac_ext <<_ACEOF
48686 /* confdefs.h.  */
48687 _ACEOF
48688 cat confdefs.h >>conftest.$ac_ext
48689 cat >>conftest.$ac_ext <<_ACEOF
48690 /* end confdefs.h.  */
48691
48692                                 #include <sys/types.h>
48693                                 #include <sys/socket.h>
48694
48695 int
48696 main ()
48697 {
48698
48699                                 size_t len;
48700                                 getsockname(0, 0, &len);
48701
48702   ;
48703   return 0;
48704 }
48705 _ACEOF
48706 rm -f conftest.$ac_objext
48707 if { (ac_try="$ac_compile"
48708 case "(($ac_try" in
48709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48710   *) ac_try_echo=$ac_try;;
48711 esac
48712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48713   (eval "$ac_compile") 2>conftest.er1
48714   ac_status=$?
48715   grep -v '^ *+' conftest.er1 >conftest.err
48716   rm -f conftest.er1
48717   cat conftest.err >&5
48718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48719   (exit $ac_status); } && {
48720          test -z "$ac_cxx_werror_flag" ||
48721          test ! -s conftest.err
48722        } && test -s conftest.$ac_objext; then
48723   wx_cv_type_getsockname3=size_t
48724 else
48725   echo "$as_me: failed program was:" >&5
48726 sed 's/^/| /' conftest.$ac_ext >&5
48727
48728         cat >conftest.$ac_ext <<_ACEOF
48729 /* confdefs.h.  */
48730 _ACEOF
48731 cat confdefs.h >>conftest.$ac_ext
48732 cat >>conftest.$ac_ext <<_ACEOF
48733 /* end confdefs.h.  */
48734
48735                                     #include <sys/types.h>
48736                                     #include <sys/socket.h>
48737
48738 int
48739 main ()
48740 {
48741
48742                                     int len;
48743                                     getsockname(0, 0, &len);
48744
48745   ;
48746   return 0;
48747 }
48748 _ACEOF
48749 rm -f conftest.$ac_objext
48750 if { (ac_try="$ac_compile"
48751 case "(($ac_try" in
48752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48753   *) ac_try_echo=$ac_try;;
48754 esac
48755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48756   (eval "$ac_compile") 2>conftest.er1
48757   ac_status=$?
48758   grep -v '^ *+' conftest.er1 >conftest.err
48759   rm -f conftest.er1
48760   cat conftest.err >&5
48761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48762   (exit $ac_status); } && {
48763          test -z "$ac_cxx_werror_flag" ||
48764          test ! -s conftest.err
48765        } && test -s conftest.$ac_objext; then
48766   wx_cv_type_getsockname3=int
48767 else
48768   echo "$as_me: failed program was:" >&5
48769 sed 's/^/| /' conftest.$ac_ext >&5
48770
48771         wx_cv_type_getsockname3=unknown
48772
48773 fi
48774
48775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48776
48777 fi
48778
48779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48780
48781                         CFLAGS="$CFLAGS_OLD"
48782
48783
48784 fi
48785
48786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48787                 ac_ext=c
48788 ac_cpp='$CPP $CPPFLAGS'
48789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48792
48793
48794 fi
48795 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
48796 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
48797
48798         if test "$wx_cv_type_getsockname3" = "unknown"; then
48799             wxUSE_SOCKETS=no
48800             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48801 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48802         else
48803             cat >>confdefs.h <<_ACEOF
48804 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
48805 _ACEOF
48806
48807         fi
48808                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
48809 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
48810 if test "${wx_cv_type_getsockopt5+set}" = set; then
48811   echo $ECHO_N "(cached) $ECHO_C" >&6
48812 else
48813
48814                                                                                                 ac_ext=cpp
48815 ac_cpp='$CXXCPP $CPPFLAGS'
48816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48819
48820                 cat >conftest.$ac_ext <<_ACEOF
48821 /* confdefs.h.  */
48822 _ACEOF
48823 cat confdefs.h >>conftest.$ac_ext
48824 cat >>conftest.$ac_ext <<_ACEOF
48825 /* end confdefs.h.  */
48826
48827                         #include <sys/types.h>
48828                         #include <sys/socket.h>
48829
48830 int
48831 main ()
48832 {
48833
48834                         socklen_t len;
48835                         getsockopt(0, 0, 0, 0, &len);
48836
48837   ;
48838   return 0;
48839 }
48840 _ACEOF
48841 rm -f conftest.$ac_objext
48842 if { (ac_try="$ac_compile"
48843 case "(($ac_try" in
48844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48845   *) ac_try_echo=$ac_try;;
48846 esac
48847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48848   (eval "$ac_compile") 2>conftest.er1
48849   ac_status=$?
48850   grep -v '^ *+' conftest.er1 >conftest.err
48851   rm -f conftest.er1
48852   cat conftest.err >&5
48853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854   (exit $ac_status); } && {
48855          test -z "$ac_cxx_werror_flag" ||
48856          test ! -s conftest.err
48857        } && test -s conftest.$ac_objext; then
48858   wx_cv_type_getsockopt5=socklen_t
48859 else
48860   echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48862
48863
48864                         cat >conftest.$ac_ext <<_ACEOF
48865 /* confdefs.h.  */
48866 _ACEOF
48867 cat confdefs.h >>conftest.$ac_ext
48868 cat >>conftest.$ac_ext <<_ACEOF
48869 /* end confdefs.h.  */
48870
48871                                 #include <sys/types.h>
48872                                 #include <sys/socket.h>
48873
48874 int
48875 main ()
48876 {
48877
48878                                 size_t len;
48879                                 getsockopt(0, 0, 0, 0, &len);
48880
48881   ;
48882   return 0;
48883 }
48884 _ACEOF
48885 rm -f conftest.$ac_objext
48886 if { (ac_try="$ac_compile"
48887 case "(($ac_try" in
48888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48889   *) ac_try_echo=$ac_try;;
48890 esac
48891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48892   (eval "$ac_compile") 2>conftest.er1
48893   ac_status=$?
48894   grep -v '^ *+' conftest.er1 >conftest.err
48895   rm -f conftest.er1
48896   cat conftest.err >&5
48897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48898   (exit $ac_status); } && {
48899          test -z "$ac_cxx_werror_flag" ||
48900          test ! -s conftest.err
48901        } && test -s conftest.$ac_objext; then
48902   wx_cv_type_getsockopt5=size_t
48903 else
48904   echo "$as_me: failed program was:" >&5
48905 sed 's/^/| /' conftest.$ac_ext >&5
48906
48907         cat >conftest.$ac_ext <<_ACEOF
48908 /* confdefs.h.  */
48909 _ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h.  */
48913
48914                                     #include <sys/types.h>
48915                                     #include <sys/socket.h>
48916
48917 int
48918 main ()
48919 {
48920
48921                                     int len;
48922                                     getsockopt(0, 0, 0, 0, &len);
48923
48924   ;
48925   return 0;
48926 }
48927 _ACEOF
48928 rm -f conftest.$ac_objext
48929 if { (ac_try="$ac_compile"
48930 case "(($ac_try" in
48931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48932   *) ac_try_echo=$ac_try;;
48933 esac
48934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48935   (eval "$ac_compile") 2>conftest.er1
48936   ac_status=$?
48937   grep -v '^ *+' conftest.er1 >conftest.err
48938   rm -f conftest.er1
48939   cat conftest.err >&5
48940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48941   (exit $ac_status); } && {
48942          test -z "$ac_cxx_werror_flag" ||
48943          test ! -s conftest.err
48944        } && test -s conftest.$ac_objext; then
48945   wx_cv_type_getsockopt5=int
48946 else
48947   echo "$as_me: failed program was:" >&5
48948 sed 's/^/| /' conftest.$ac_ext >&5
48949
48950         wx_cv_type_getsockopt5=unknown
48951
48952 fi
48953
48954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48955
48956 fi
48957
48958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48959
48960
48961 fi
48962
48963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48964                 ac_ext=c
48965 ac_cpp='$CPP $CPPFLAGS'
48966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48969
48970
48971 fi
48972 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
48973 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
48974
48975         if test "$wx_cv_type_getsockopt5" = "unknown"; then
48976             wxUSE_SOCKETS=no
48977             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48978 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48979         else
48980             cat >>confdefs.h <<_ACEOF
48981 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
48982 _ACEOF
48983
48984         fi
48985     fi
48986 fi
48987
48988 if test "$wxUSE_SOCKETS" = "yes" ; then
48989     if test "$wxUSE_IPV6" = "yes"; then
48990         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
48991 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
48992 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
48993   echo $ECHO_N "(cached) $ECHO_C" >&6
48994 else
48995
48996                 cat >conftest.$ac_ext <<_ACEOF
48997 /* confdefs.h.  */
48998 _ACEOF
48999 cat confdefs.h >>conftest.$ac_ext
49000 cat >>conftest.$ac_ext <<_ACEOF
49001 /* end confdefs.h.  */
49002
49003                         #include <sys/types.h>
49004                         #include <sys/socket.h>
49005                         #include <netinet/in.h>
49006
49007 int
49008 main ()
49009 {
49010
49011                         struct sockaddr_in6 sa6;
49012
49013   ;
49014   return 0;
49015 }
49016 _ACEOF
49017 rm -f conftest.$ac_objext
49018 if { (ac_try="$ac_compile"
49019 case "(($ac_try" in
49020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49021   *) ac_try_echo=$ac_try;;
49022 esac
49023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49024   (eval "$ac_compile") 2>conftest.er1
49025   ac_status=$?
49026   grep -v '^ *+' conftest.er1 >conftest.err
49027   rm -f conftest.er1
49028   cat conftest.err >&5
49029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030   (exit $ac_status); } && {
49031          test -z "$ac_c_werror_flag" ||
49032          test ! -s conftest.err
49033        } && test -s conftest.$ac_objext; then
49034   wx_cv_type_sockaddr_in6=yes
49035 else
49036   echo "$as_me: failed program was:" >&5
49037 sed 's/^/| /' conftest.$ac_ext >&5
49038
49039         wx_cv_type_sockaddr_in6=no
49040
49041 fi
49042
49043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49044
49045
49046 fi
49047 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
49048 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
49049
49050         if test "$wx_cv_type_sockaddr_in6"="yes"; then
49051             cat >>confdefs.h <<\_ACEOF
49052 #define wxUSE_IPV6 1
49053 _ACEOF
49054
49055         else
49056             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
49057 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
49058         fi
49059     fi
49060
49061     cat >>confdefs.h <<\_ACEOF
49062 #define wxUSE_SOCKETS 1
49063 _ACEOF
49064
49065     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49066 fi
49067
49068 if test "$wxUSE_PROTOCOL" = "yes"; then
49069     if test "$wxUSE_SOCKETS" != "yes"; then
49070         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
49071 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
49072         wxUSE_PROTOCOL=no
49073     fi
49074 fi
49075
49076 if test "$wxUSE_PROTOCOL" = "yes"; then
49077     cat >>confdefs.h <<\_ACEOF
49078 #define wxUSE_PROTOCOL 1
49079 _ACEOF
49080
49081
49082     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
49083         cat >>confdefs.h <<\_ACEOF
49084 #define wxUSE_PROTOCOL_HTTP 1
49085 _ACEOF
49086
49087     fi
49088     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
49089         cat >>confdefs.h <<\_ACEOF
49090 #define wxUSE_PROTOCOL_FTP 1
49091 _ACEOF
49092
49093     fi
49094     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
49095         cat >>confdefs.h <<\_ACEOF
49096 #define wxUSE_PROTOCOL_FILE 1
49097 _ACEOF
49098
49099     fi
49100 else
49101     if test "$wxUSE_FS_INET" = "yes"; then
49102         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
49103 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
49104         wxUSE_FS_INET="no"
49105     fi
49106 fi
49107
49108 if test "$wxUSE_URL" = "yes"; then
49109     if test "$wxUSE_PROTOCOL" != "yes"; then
49110         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
49111 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
49112         wxUSE_URL=no
49113     fi
49114     if test "$wxUSE_URL" = "yes"; then
49115         cat >>confdefs.h <<\_ACEOF
49116 #define wxUSE_URL 1
49117 _ACEOF
49118
49119     fi
49120 fi
49121
49122 if test "$wxUSE_VARIANT" = "yes"; then
49123     cat >>confdefs.h <<\_ACEOF
49124 #define wxUSE_VARIANT 1
49125 _ACEOF
49126
49127 fi
49128
49129 if test "$wxUSE_FS_INET" = "yes"; then
49130   cat >>confdefs.h <<\_ACEOF
49131 #define wxUSE_FS_INET 1
49132 _ACEOF
49133
49134 fi
49135
49136
49137 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
49138     wxUSE_JOYSTICK=no
49139
49140         if test "$TOOLKIT" = "MSW"; then
49141         wxUSE_JOYSTICK=yes
49142
49143         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
49144         if test "$USE_DARWIN" = 1; then
49145                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
49146 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
49147             ac_ext=cpp
49148 ac_cpp='$CXXCPP $CPPFLAGS'
49149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49152
49153             cat >conftest.$ac_ext <<_ACEOF
49154 /* confdefs.h.  */
49155 _ACEOF
49156 cat confdefs.h >>conftest.$ac_ext
49157 cat >>conftest.$ac_ext <<_ACEOF
49158 /* end confdefs.h.  */
49159  #include <IOKit/hid/IOHIDLib.h>
49160 int
49161 main ()
49162 {
49163  IOHIDQueueInterface *qi = NULL;
49164                               IOHIDCallbackFunction cb = NULL;
49165                               qi->setEventCallout(NULL, cb, NULL, NULL);
49166   ;
49167   return 0;
49168 }
49169 _ACEOF
49170 rm -f conftest.$ac_objext
49171 if { (ac_try="$ac_compile"
49172 case "(($ac_try" in
49173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49174   *) ac_try_echo=$ac_try;;
49175 esac
49176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49177   (eval "$ac_compile") 2>conftest.er1
49178   ac_status=$?
49179   grep -v '^ *+' conftest.er1 >conftest.err
49180   rm -f conftest.er1
49181   cat conftest.err >&5
49182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49183   (exit $ac_status); } && {
49184          test -z "$ac_cxx_werror_flag" ||
49185          test ! -s conftest.err
49186        } && test -s conftest.$ac_objext; then
49187    wxUSE_JOYSTICK=yes
49188
49189 else
49190   echo "$as_me: failed program was:" >&5
49191 sed 's/^/| /' conftest.$ac_ext >&5
49192
49193
49194 fi
49195
49196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49197             ac_ext=c
49198 ac_cpp='$CPP $CPPFLAGS'
49199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49202
49203             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
49204 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
49205         fi
49206
49207         else
49208
49209 for ac_header in linux/joystick.h
49210 do
49211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49215   echo $ECHO_N "(cached) $ECHO_C" >&6
49216 else
49217   cat >conftest.$ac_ext <<_ACEOF
49218 /* confdefs.h.  */
49219 _ACEOF
49220 cat confdefs.h >>conftest.$ac_ext
49221 cat >>conftest.$ac_ext <<_ACEOF
49222 /* end confdefs.h.  */
49223 $ac_includes_default
49224
49225 #include <$ac_header>
49226 _ACEOF
49227 rm -f conftest.$ac_objext
49228 if { (ac_try="$ac_compile"
49229 case "(($ac_try" in
49230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49231   *) ac_try_echo=$ac_try;;
49232 esac
49233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49234   (eval "$ac_compile") 2>conftest.er1
49235   ac_status=$?
49236   grep -v '^ *+' conftest.er1 >conftest.err
49237   rm -f conftest.er1
49238   cat conftest.err >&5
49239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49240   (exit $ac_status); } && {
49241          test -z "$ac_c_werror_flag" ||
49242          test ! -s conftest.err
49243        } && test -s conftest.$ac_objext; then
49244   eval "$as_ac_Header=yes"
49245 else
49246   echo "$as_me: failed program was:" >&5
49247 sed 's/^/| /' conftest.$ac_ext >&5
49248
49249         eval "$as_ac_Header=no"
49250 fi
49251
49252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49253 fi
49254 ac_res=`eval echo '${'$as_ac_Header'}'`
49255                { echo "$as_me:$LINENO: result: $ac_res" >&5
49256 echo "${ECHO_T}$ac_res" >&6; }
49257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49258   cat >>confdefs.h <<_ACEOF
49259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49260 _ACEOF
49261  wxUSE_JOYSTICK=yes
49262 fi
49263
49264 done
49265
49266     fi
49267
49268     if test "$wxUSE_JOYSTICK" = "yes"; then
49269         cat >>confdefs.h <<\_ACEOF
49270 #define wxUSE_JOYSTICK 1
49271 _ACEOF
49272
49273         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
49274     else
49275         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
49276 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
49277     fi
49278 fi
49279
49280
49281
49282 if test "$wxUSE_FONTENUM" = "yes" ; then
49283   cat >>confdefs.h <<\_ACEOF
49284 #define wxUSE_FONTENUM 1
49285 _ACEOF
49286
49287 fi
49288
49289 if test "$wxUSE_FONTMAP" = "yes" ; then
49290   cat >>confdefs.h <<\_ACEOF
49291 #define wxUSE_FONTMAP 1
49292 _ACEOF
49293
49294 fi
49295
49296 if test "$wxUSE_UNICODE" = "yes" ; then
49297   cat >>confdefs.h <<\_ACEOF
49298 #define wxUSE_UNICODE 1
49299 _ACEOF
49300
49301
49302   if test "$USE_WIN32" != 1; then
49303       wxUSE_UNICODE_MSLU=no
49304   fi
49305
49306   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
49307         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
49308 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
49309 if test "${ac_cv_lib_unicows_main+set}" = set; then
49310   echo $ECHO_N "(cached) $ECHO_C" >&6
49311 else
49312   ac_check_lib_save_LIBS=$LIBS
49313 LIBS="-lunicows  $LIBS"
49314 cat >conftest.$ac_ext <<_ACEOF
49315 /* confdefs.h.  */
49316 _ACEOF
49317 cat confdefs.h >>conftest.$ac_ext
49318 cat >>conftest.$ac_ext <<_ACEOF
49319 /* end confdefs.h.  */
49320
49321
49322 int
49323 main ()
49324 {
49325 return main ();
49326   ;
49327   return 0;
49328 }
49329 _ACEOF
49330 rm -f conftest.$ac_objext conftest$ac_exeext
49331 if { (ac_try="$ac_link"
49332 case "(($ac_try" in
49333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49334   *) ac_try_echo=$ac_try;;
49335 esac
49336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49337   (eval "$ac_link") 2>conftest.er1
49338   ac_status=$?
49339   grep -v '^ *+' conftest.er1 >conftest.err
49340   rm -f conftest.er1
49341   cat conftest.err >&5
49342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49343   (exit $ac_status); } && {
49344          test -z "$ac_c_werror_flag" ||
49345          test ! -s conftest.err
49346        } && test -s conftest$ac_exeext &&
49347        $as_test_x conftest$ac_exeext; then
49348   ac_cv_lib_unicows_main=yes
49349 else
49350   echo "$as_me: failed program was:" >&5
49351 sed 's/^/| /' conftest.$ac_ext >&5
49352
49353         ac_cv_lib_unicows_main=no
49354 fi
49355
49356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49357       conftest$ac_exeext conftest.$ac_ext
49358 LIBS=$ac_check_lib_save_LIBS
49359 fi
49360 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
49361 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
49362 if test $ac_cv_lib_unicows_main = yes; then
49363
49364                 cat >>confdefs.h <<\_ACEOF
49365 #define wxUSE_UNICODE_MSLU 1
49366 _ACEOF
49367
49368
49369 else
49370
49371                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49372                              Applications will only run on Windows NT/2000/XP!" >&5
49373 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49374                              Applications will only run on Windows NT/2000/XP!" >&2;}
49375                 wxUSE_UNICODE_MSLU=no
49376
49377 fi
49378
49379     fi
49380 fi
49381
49382 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
49383     cat >>confdefs.h <<\_ACEOF
49384 #define wxUSE_UNICODE_UTF8 1
49385 _ACEOF
49386
49387
49388     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
49389         cat >>confdefs.h <<\_ACEOF
49390 #define wxUSE_UTF8_LOCALE_ONLY 1
49391 _ACEOF
49392
49393     fi
49394 fi
49395
49396
49397 if test "$wxUSE_CONSTRAINTS" = "yes"; then
49398     cat >>confdefs.h <<\_ACEOF
49399 #define wxUSE_CONSTRAINTS 1
49400 _ACEOF
49401
49402     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
49403 fi
49404
49405 if test "$wxUSE_MDI" = "yes"; then
49406     cat >>confdefs.h <<\_ACEOF
49407 #define wxUSE_MDI 1
49408 _ACEOF
49409
49410
49411     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
49412         cat >>confdefs.h <<\_ACEOF
49413 #define wxUSE_MDI_ARCHITECTURE 1
49414 _ACEOF
49415
49416         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
49417     fi
49418 fi
49419
49420 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
49421     cat >>confdefs.h <<\_ACEOF
49422 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
49423 _ACEOF
49424
49425     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
49426 fi
49427
49428 if test "$wxUSE_HELP" = "yes"; then
49429     cat >>confdefs.h <<\_ACEOF
49430 #define wxUSE_HELP 1
49431 _ACEOF
49432
49433     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
49434
49435     if test "$wxUSE_MSW" = 1; then
49436       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
49437         cat >>confdefs.h <<\_ACEOF
49438 #define wxUSE_MS_HTML_HELP 1
49439 _ACEOF
49440
49441       fi
49442     fi
49443
49444     if test "$wxUSE_WXHTML_HELP" = "yes"; then
49445       if test "$wxUSE_HTML" = "yes"; then
49446         cat >>confdefs.h <<\_ACEOF
49447 #define wxUSE_WXHTML_HELP 1
49448 _ACEOF
49449
49450       else
49451         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
49452 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
49453         wxUSE_WXHTML_HELP=no
49454       fi
49455     fi
49456 fi
49457
49458 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49459     cat >>confdefs.h <<\_ACEOF
49460 #define wxUSE_PRINTING_ARCHITECTURE 1
49461 _ACEOF
49462
49463     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
49464 fi
49465
49466 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
49467   cat >>confdefs.h <<\_ACEOF
49468 #define wxUSE_POSTSCRIPT 1
49469 _ACEOF
49470
49471 fi
49472
49473 cat >>confdefs.h <<\_ACEOF
49474 #define wxUSE_AFM_FOR_POSTSCRIPT 1
49475 _ACEOF
49476
49477
49478 if test "$wxUSE_SVG" = "yes"; then
49479     cat >>confdefs.h <<\_ACEOF
49480 #define wxUSE_SVG 1
49481 _ACEOF
49482
49483 fi
49484
49485
49486 if test "$wxUSE_METAFILE" = "yes"; then
49487     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
49488         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
49489 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
49490         wxUSE_METAFILE=no
49491     fi
49492 elif test "$wxUSE_METAFILE" = "auto"; then
49493     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
49494         wxUSE_METAFILE=yes
49495     fi
49496 fi
49497
49498 if test "$wxUSE_METAFILE" = "yes"; then
49499     cat >>confdefs.h <<\_ACEOF
49500 #define wxUSE_METAFILE 1
49501 _ACEOF
49502
49503     if test "$wxUSE_MSW" = 1; then
49504                 cat >>confdefs.h <<\_ACEOF
49505 #define wxUSE_ENH_METAFILE 1
49506 _ACEOF
49507
49508     fi
49509 fi
49510
49511
49512 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
49513                           -o "$wxUSE_CLIPBOARD"     = "yes" \
49514                           -o "$wxUSE_OLE"     = "yes" \
49515                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
49516     { echo "$as_me:$LINENO: checking for ole2.h" >&5
49517 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
49518 if test "${ac_cv_header_ole2_h+set}" = set; then
49519   echo $ECHO_N "(cached) $ECHO_C" >&6
49520 else
49521   cat >conftest.$ac_ext <<_ACEOF
49522 /* confdefs.h.  */
49523 _ACEOF
49524 cat confdefs.h >>conftest.$ac_ext
49525 cat >>conftest.$ac_ext <<_ACEOF
49526 /* end confdefs.h.  */
49527
49528
49529 #include <ole2.h>
49530 _ACEOF
49531 rm -f conftest.$ac_objext
49532 if { (ac_try="$ac_compile"
49533 case "(($ac_try" in
49534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49535   *) ac_try_echo=$ac_try;;
49536 esac
49537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49538   (eval "$ac_compile") 2>conftest.er1
49539   ac_status=$?
49540   grep -v '^ *+' conftest.er1 >conftest.err
49541   rm -f conftest.er1
49542   cat conftest.err >&5
49543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49544   (exit $ac_status); } && {
49545          test -z "$ac_c_werror_flag" ||
49546          test ! -s conftest.err
49547        } && test -s conftest.$ac_objext; then
49548   ac_cv_header_ole2_h=yes
49549 else
49550   echo "$as_me: failed program was:" >&5
49551 sed 's/^/| /' conftest.$ac_ext >&5
49552
49553         ac_cv_header_ole2_h=no
49554 fi
49555
49556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49557 fi
49558 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
49559 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
49560
49561
49562
49563     if test "$ac_cv_header_ole2_h" = "yes" ; then
49564         if test "$GCC" = yes ; then
49565             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
49566 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
49567             cat >conftest.$ac_ext <<_ACEOF
49568 /* confdefs.h.  */
49569 _ACEOF
49570 cat confdefs.h >>conftest.$ac_ext
49571 cat >>conftest.$ac_ext <<_ACEOF
49572 /* end confdefs.h.  */
49573 #include <windows.h>
49574                             #include <ole2.h>
49575 int
49576 main ()
49577 {
49578
49579   ;
49580   return 0;
49581 }
49582 _ACEOF
49583 rm -f conftest.$ac_objext
49584 if { (ac_try="$ac_compile"
49585 case "(($ac_try" in
49586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49587   *) ac_try_echo=$ac_try;;
49588 esac
49589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49590   (eval "$ac_compile") 2>conftest.er1
49591   ac_status=$?
49592   grep -v '^ *+' conftest.er1 >conftest.err
49593   rm -f conftest.er1
49594   cat conftest.err >&5
49595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596   (exit $ac_status); } && {
49597          test -z "$ac_c_werror_flag" ||
49598          test ! -s conftest.err
49599        } && test -s conftest.$ac_objext; then
49600   { echo "$as_me:$LINENO: result: no" >&5
49601 echo "${ECHO_T}no" >&6; }
49602 else
49603   echo "$as_me: failed program was:" >&5
49604 sed 's/^/| /' conftest.$ac_ext >&5
49605
49606         { echo "$as_me:$LINENO: result: yes" >&5
49607 echo "${ECHO_T}yes" >&6; }
49608                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
49609 fi
49610
49611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49612             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
49613             if test "$wxUSE_OLE" = "yes" ; then
49614                 cat >>confdefs.h <<\_ACEOF
49615 #define wxUSE_OLE 1
49616 _ACEOF
49617
49618                 cat >>confdefs.h <<\_ACEOF
49619 #define wxUSE_OLE_AUTOMATION 1
49620 _ACEOF
49621
49622                 cat >>confdefs.h <<\_ACEOF
49623 #define wxUSE_ACTIVEX 1
49624 _ACEOF
49625
49626                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
49627             fi
49628         fi
49629
49630                 if test "$wxUSE_DATAOBJ" = "yes" ; then
49631             cat >>confdefs.h <<\_ACEOF
49632 #define wxUSE_DATAOBJ 1
49633 _ACEOF
49634
49635         fi
49636     else
49637         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
49638 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
49639
49640         wxUSE_CLIPBOARD=no
49641         wxUSE_DRAG_AND_DROP=no
49642         wxUSE_DATAOBJ=no
49643         wxUSE_OLE=no
49644     fi
49645 fi
49646
49647 if test "$wxUSE_IPC" = "yes"; then
49648     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
49649         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
49650 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
49651         wxUSE_IPC=no
49652     fi
49653
49654     if test "$wxUSE_IPC" = "yes"; then
49655         cat >>confdefs.h <<\_ACEOF
49656 #define wxUSE_IPC 1
49657 _ACEOF
49658
49659         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49660     fi
49661 fi
49662
49663 if test "$wxUSE_DATAOBJ" = "yes"; then
49664     cat >>confdefs.h <<\_ACEOF
49665 #define wxUSE_DATAOBJ 1
49666 _ACEOF
49667
49668 else
49669     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
49670 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
49671     wxUSE_CLIPBOARD=no
49672     wxUSE_DRAG_AND_DROP=no
49673 fi
49674
49675 if test "$wxUSE_CLIPBOARD" = "yes"; then
49676     if test "$wxUSE_DFB" = 1; then
49677         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
49678 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
49679         wxUSE_CLIPBOARD=no
49680     fi
49681
49682     if test "$wxUSE_CLIPBOARD" = "yes"; then
49683         cat >>confdefs.h <<\_ACEOF
49684 #define wxUSE_CLIPBOARD 1
49685 _ACEOF
49686
49687     fi
49688 fi
49689
49690 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
49691     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_DFB" = 1; then
49692         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
49693 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
49694         wxUSE_DRAG_AND_DROP=no
49695     fi
49696
49697     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
49698         cat >>confdefs.h <<\_ACEOF
49699 #define wxUSE_DRAG_AND_DROP 1
49700 _ACEOF
49701
49702     fi
49703
49704 fi
49705
49706 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
49707     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
49708 fi
49709
49710 if test "$wxUSE_CLIPBOARD" = "yes"; then
49711     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
49712 fi
49713
49714 if test "$wxUSE_SPLINES" = "yes" ; then
49715   cat >>confdefs.h <<\_ACEOF
49716 #define wxUSE_SPLINES 1
49717 _ACEOF
49718
49719 fi
49720
49721 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
49722   cat >>confdefs.h <<\_ACEOF
49723 #define wxUSE_MOUSEWHEEL 1
49724 _ACEOF
49725
49726 fi
49727
49728 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
49729     cat >>confdefs.h <<\_ACEOF
49730 #define wxUSE_UIACTIONSIMULATOR 1
49731 _ACEOF
49732
49733     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
49734 fi
49735
49736 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
49737     cat >>confdefs.h <<\_ACEOF
49738 #define wxUSE_DC_TRANSFORM_MATRIX 1
49739 _ACEOF
49740
49741 fi
49742
49743
49744 USES_CONTROLS=0
49745 if test "$wxUSE_CONTROLS" = "yes"; then
49746   USES_CONTROLS=1
49747 fi
49748
49749 if test "$wxUSE_MARKUP" = "yes"; then
49750   cat >>confdefs.h <<\_ACEOF
49751 #define wxUSE_MARKUP 1
49752 _ACEOF
49753
49754 fi
49755
49756 if test "$wxUSE_ACCEL" = "yes"; then
49757   cat >>confdefs.h <<\_ACEOF
49758 #define wxUSE_ACCEL 1
49759 _ACEOF
49760
49761   USES_CONTROLS=1
49762 fi
49763
49764 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
49765   cat >>confdefs.h <<\_ACEOF
49766 #define wxUSE_ANIMATIONCTRL 1
49767 _ACEOF
49768
49769   USES_CONTROLS=1
49770   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
49771 fi
49772
49773 if test "$wxUSE_BANNERWINDOW" = "yes"; then
49774   cat >>confdefs.h <<\_ACEOF
49775 #define wxUSE_BANNERWINDOW 1
49776 _ACEOF
49777
49778 fi
49779
49780 if test "$wxUSE_BUTTON" = "yes"; then
49781   cat >>confdefs.h <<\_ACEOF
49782 #define wxUSE_BUTTON 1
49783 _ACEOF
49784
49785   USES_CONTROLS=1
49786 fi
49787
49788 if test "$wxUSE_BMPBUTTON" = "yes"; then
49789   cat >>confdefs.h <<\_ACEOF
49790 #define wxUSE_BMPBUTTON 1
49791 _ACEOF
49792
49793   USES_CONTROLS=1
49794 fi
49795
49796 if test "$wxUSE_CALCTRL" = "yes"; then
49797   cat >>confdefs.h <<\_ACEOF
49798 #define wxUSE_CALENDARCTRL 1
49799 _ACEOF
49800
49801   USES_CONTROLS=1
49802   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
49803 fi
49804
49805 if test "$wxUSE_CARET" = "yes"; then
49806   cat >>confdefs.h <<\_ACEOF
49807 #define wxUSE_CARET 1
49808 _ACEOF
49809
49810   USES_CONTROLS=1
49811   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
49812 fi
49813
49814 if test "$wxUSE_COLLPANE" = "yes"; then
49815     cat >>confdefs.h <<\_ACEOF
49816 #define wxUSE_COLLPANE 1
49817 _ACEOF
49818
49819     USES_CONTROLS=1
49820     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
49821 fi
49822
49823 if test "$wxUSE_COMBOBOX" = "yes"; then
49824   cat >>confdefs.h <<\_ACEOF
49825 #define wxUSE_COMBOBOX 1
49826 _ACEOF
49827
49828   USES_CONTROLS=1
49829 fi
49830
49831 if test "$wxUSE_COMBOCTRL" = "yes"; then
49832   cat >>confdefs.h <<\_ACEOF
49833 #define wxUSE_COMBOCTRL 1
49834 _ACEOF
49835
49836   USES_CONTROLS=1
49837 fi
49838
49839 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
49840   cat >>confdefs.h <<\_ACEOF
49841 #define wxUSE_COMMANDLINKBUTTON 1
49842 _ACEOF
49843
49844   USES_CONTROLS=1
49845 fi
49846
49847 if test "$wxUSE_CHOICE" = "yes"; then
49848   cat >>confdefs.h <<\_ACEOF
49849 #define wxUSE_CHOICE 1
49850 _ACEOF
49851
49852   USES_CONTROLS=1
49853 fi
49854
49855 if test "$wxUSE_CHOICEBOOK" = "yes"; then
49856     cat >>confdefs.h <<\_ACEOF
49857 #define wxUSE_CHOICEBOOK 1
49858 _ACEOF
49859
49860     USES_CONTROLS=1
49861 fi
49862
49863 if test "$wxUSE_CHECKBOX" = "yes"; then
49864   cat >>confdefs.h <<\_ACEOF
49865 #define wxUSE_CHECKBOX 1
49866 _ACEOF
49867
49868   USES_CONTROLS=1
49869 fi
49870
49871 if test "$wxUSE_CHECKLST" = "yes"; then
49872   cat >>confdefs.h <<\_ACEOF
49873 #define wxUSE_CHECKLISTBOX 1
49874 _ACEOF
49875
49876   USES_CONTROLS=1
49877 fi
49878
49879 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
49880   cat >>confdefs.h <<\_ACEOF
49881 #define wxUSE_COLOURPICKERCTRL 1
49882 _ACEOF
49883
49884   USES_CONTROLS=1
49885 fi
49886
49887 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
49888   cat >>confdefs.h <<\_ACEOF
49889 #define wxUSE_DATEPICKCTRL 1
49890 _ACEOF
49891
49892   USES_CONTROLS=1
49893 fi
49894
49895 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
49896   cat >>confdefs.h <<\_ACEOF
49897 #define wxUSE_DIRPICKERCTRL 1
49898 _ACEOF
49899
49900   USES_CONTROLS=1
49901 fi
49902
49903 if test "$wxUSE_FILECTRL" = "yes"; then
49904   cat >>confdefs.h <<\_ACEOF
49905 #define wxUSE_FILECTRL 1
49906 _ACEOF
49907
49908   USES_CONTROLS=1
49909 fi
49910
49911 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
49912   cat >>confdefs.h <<\_ACEOF
49913 #define wxUSE_FILEPICKERCTRL 1
49914 _ACEOF
49915
49916   USES_CONTROLS=1
49917 fi
49918
49919 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
49920   cat >>confdefs.h <<\_ACEOF
49921 #define wxUSE_FONTPICKERCTRL 1
49922 _ACEOF
49923
49924   USES_CONTROLS=1
49925 fi
49926
49927 if test "$wxUSE_DISPLAY" = "yes"; then
49928     if test "$wxUSE_DFB" = 1; then
49929         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
49930 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
49931         wxUSE_DISPLAY=no
49932     else
49933         cat >>confdefs.h <<\_ACEOF
49934 #define wxUSE_DISPLAY 1
49935 _ACEOF
49936
49937         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
49938     fi
49939 fi
49940
49941 if test "$wxUSE_DETECT_SM" = "yes"; then
49942     cat >>confdefs.h <<\_ACEOF
49943 #define wxUSE_DETECT_SM 1
49944 _ACEOF
49945
49946 fi
49947
49948 if test "$wxUSE_GAUGE" = "yes"; then
49949   cat >>confdefs.h <<\_ACEOF
49950 #define wxUSE_GAUGE 1
49951 _ACEOF
49952
49953   USES_CONTROLS=1
49954 fi
49955
49956 if test "$wxUSE_GRID" = "yes"; then
49957   cat >>confdefs.h <<\_ACEOF
49958 #define wxUSE_GRID 1
49959 _ACEOF
49960
49961   USES_CONTROLS=1
49962   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
49963 fi
49964
49965 if test "$wxUSE_HEADERCTRL" = "yes"; then
49966   cat >>confdefs.h <<\_ACEOF
49967 #define wxUSE_HEADERCTRL 1
49968 _ACEOF
49969
49970   USES_CONTROLS=1
49971 fi
49972
49973 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
49974   cat >>confdefs.h <<\_ACEOF
49975 #define wxUSE_HYPERLINKCTRL 1
49976 _ACEOF
49977
49978   USES_CONTROLS=1
49979 fi
49980
49981 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
49982   cat >>confdefs.h <<\_ACEOF
49983 #define wxUSE_BITMAPCOMBOBOX 1
49984 _ACEOF
49985
49986   USES_CONTROLS=1
49987 fi
49988
49989 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
49990   cat >>confdefs.h <<\_ACEOF
49991 #define wxUSE_DATAVIEWCTRL 1
49992 _ACEOF
49993
49994   USES_CONTROLS=1
49995   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
49996 fi
49997
49998 if test "$wxUSE_IMAGLIST" = "yes"; then
49999     cat >>confdefs.h <<\_ACEOF
50000 #define wxUSE_IMAGLIST 1
50001 _ACEOF
50002
50003 fi
50004
50005 if test "$wxUSE_INFOBAR" = "yes"; then
50006     cat >>confdefs.h <<\_ACEOF
50007 #define wxUSE_INFOBAR 1
50008 _ACEOF
50009
50010 fi
50011
50012 if test "$wxUSE_LISTBOOK" = "yes"; then
50013     cat >>confdefs.h <<\_ACEOF
50014 #define wxUSE_LISTBOOK 1
50015 _ACEOF
50016
50017     USES_CONTROLS=1
50018 fi
50019
50020 if test "$wxUSE_LISTBOX" = "yes"; then
50021     cat >>confdefs.h <<\_ACEOF
50022 #define wxUSE_LISTBOX 1
50023 _ACEOF
50024
50025     USES_CONTROLS=1
50026 fi
50027
50028 if test "$wxUSE_LISTCTRL" = "yes"; then
50029     if test "$wxUSE_IMAGLIST" = "yes"; then
50030         cat >>confdefs.h <<\_ACEOF
50031 #define wxUSE_LISTCTRL 1
50032 _ACEOF
50033
50034         USES_CONTROLS=1
50035         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
50036     else
50037         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
50038 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
50039     fi
50040 fi
50041
50042 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
50043     cat >>confdefs.h <<\_ACEOF
50044 #define wxUSE_EDITABLELISTBOX 1
50045 _ACEOF
50046
50047     USES_CONTROLS=1
50048 fi
50049
50050 if test "$wxUSE_NOTEBOOK" = "yes"; then
50051     cat >>confdefs.h <<\_ACEOF
50052 #define wxUSE_NOTEBOOK 1
50053 _ACEOF
50054
50055     USES_CONTROLS=1
50056     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
50057 fi
50058
50059 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
50060     cat >>confdefs.h <<\_ACEOF
50061 #define wxUSE_NOTIFICATION_MESSAGE 1
50062 _ACEOF
50063
50064 fi
50065
50066 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
50067   cat >>confdefs.h <<\_ACEOF
50068 #define wxUSE_ODCOMBOBOX 1
50069 _ACEOF
50070
50071   USES_CONTROLS=1
50072   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
50073 fi
50074
50075 if test "$wxUSE_RADIOBOX" = "yes"; then
50076     cat >>confdefs.h <<\_ACEOF
50077 #define wxUSE_RADIOBOX 1
50078 _ACEOF
50079
50080     USES_CONTROLS=1
50081 fi
50082
50083 if test "$wxUSE_RADIOBTN" = "yes"; then
50084     cat >>confdefs.h <<\_ACEOF
50085 #define wxUSE_RADIOBTN 1
50086 _ACEOF
50087
50088     USES_CONTROLS=1
50089 fi
50090
50091 if test "$wxUSE_REARRANGECTRL" = "yes"; then
50092     cat >>confdefs.h <<\_ACEOF
50093 #define wxUSE_REARRANGECTRL 1
50094 _ACEOF
50095
50096 fi
50097
50098 if test "$wxUSE_RICHMSGDLG" = "yes"; then
50099     cat >>confdefs.h <<\_ACEOF
50100 #define wxUSE_RICHMSGDLG 1
50101 _ACEOF
50102
50103 fi
50104
50105 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
50106     cat >>confdefs.h <<\_ACEOF
50107 #define wxUSE_RICHTOOLTIP 1
50108 _ACEOF
50109
50110 fi
50111
50112 if test "$wxUSE_SASH" = "yes"; then
50113     cat >>confdefs.h <<\_ACEOF
50114 #define wxUSE_SASH 1
50115 _ACEOF
50116
50117     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
50118 fi
50119
50120 if test "$wxUSE_SCROLLBAR" = "yes"; then
50121     cat >>confdefs.h <<\_ACEOF
50122 #define wxUSE_SCROLLBAR 1
50123 _ACEOF
50124
50125     USES_CONTROLS=1
50126     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
50127 fi
50128
50129 if test "$wxUSE_SEARCHCTRL" = "yes"; then
50130     cat >>confdefs.h <<\_ACEOF
50131 #define wxUSE_SEARCHCTRL 1
50132 _ACEOF
50133
50134     USES_CONTROLS=1
50135 fi
50136
50137 if test "$wxUSE_SLIDER" = "yes"; then
50138     cat >>confdefs.h <<\_ACEOF
50139 #define wxUSE_SLIDER 1
50140 _ACEOF
50141
50142     USES_CONTROLS=1
50143 fi
50144
50145 if test "$wxUSE_SPINBTN" = "yes"; then
50146     cat >>confdefs.h <<\_ACEOF
50147 #define wxUSE_SPINBTN 1
50148 _ACEOF
50149
50150     USES_CONTROLS=1
50151 fi
50152
50153 if test "$wxUSE_SPINCTRL" = "yes"; then
50154     cat >>confdefs.h <<\_ACEOF
50155 #define wxUSE_SPINCTRL 1
50156 _ACEOF
50157
50158     USES_CONTROLS=1
50159 fi
50160
50161 if test "$wxUSE_SPLITTER" = "yes"; then
50162     cat >>confdefs.h <<\_ACEOF
50163 #define wxUSE_SPLITTER 1
50164 _ACEOF
50165
50166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
50167 fi
50168
50169 if test "$wxUSE_STATBMP" = "yes"; then
50170     cat >>confdefs.h <<\_ACEOF
50171 #define wxUSE_STATBMP 1
50172 _ACEOF
50173
50174     USES_CONTROLS=1
50175 fi
50176
50177 if test "$wxUSE_STATBOX" = "yes"; then
50178     cat >>confdefs.h <<\_ACEOF
50179 #define wxUSE_STATBOX 1
50180 _ACEOF
50181
50182     USES_CONTROLS=1
50183 fi
50184
50185 if test "$wxUSE_STATTEXT" = "yes"; then
50186     cat >>confdefs.h <<\_ACEOF
50187 #define wxUSE_STATTEXT 1
50188 _ACEOF
50189
50190     USES_CONTROLS=1
50191 fi
50192
50193 if test "$wxUSE_STATLINE" = "yes"; then
50194     cat >>confdefs.h <<\_ACEOF
50195 #define wxUSE_STATLINE 1
50196 _ACEOF
50197
50198     USES_CONTROLS=1
50199 fi
50200
50201 if test "$wxUSE_STATUSBAR" = "yes"; then
50202         cat >>confdefs.h <<\_ACEOF
50203 #define wxUSE_NATIVE_STATUSBAR 1
50204 _ACEOF
50205
50206     cat >>confdefs.h <<\_ACEOF
50207 #define wxUSE_STATUSBAR 1
50208 _ACEOF
50209
50210     USES_CONTROLS=1
50211
50212     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
50213 fi
50214
50215 if test "$wxUSE_TEXTCTRL" = "yes"; then
50216     cat >>confdefs.h <<\_ACEOF
50217 #define wxUSE_TEXTCTRL 1
50218 _ACEOF
50219
50220     USES_CONTROLS=1
50221     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
50222
50223             cat >>confdefs.h <<\_ACEOF
50224 #define wxUSE_RICHEDIT 1
50225 _ACEOF
50226
50227     cat >>confdefs.h <<\_ACEOF
50228 #define wxUSE_RICHEDIT2 1
50229 _ACEOF
50230
50231 fi
50232
50233 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
50234   cat >>confdefs.h <<\_ACEOF
50235 #define wxUSE_TIMEPICKCTRL 1
50236 _ACEOF
50237
50238   USES_CONTROLS=1
50239 fi
50240
50241 if test "$wxUSE_TOGGLEBTN" = "yes"; then
50242     if test "$wxUSE_OLD_COCOA" = 1 ; then
50243         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
50244 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
50245         wxUSE_TOGGLEBTN=no
50246     fi
50247
50248     if test "$wxUSE_TOGGLEBTN" = "yes"; then
50249         cat >>confdefs.h <<\_ACEOF
50250 #define wxUSE_TOGGLEBTN 1
50251 _ACEOF
50252
50253         USES_CONTROLS=1
50254     fi
50255 fi
50256
50257 if test "$wxUSE_TOOLBAR" = "yes"; then
50258     cat >>confdefs.h <<\_ACEOF
50259 #define wxUSE_TOOLBAR 1
50260 _ACEOF
50261
50262     USES_CONTROLS=1
50263
50264     if test "$wxUSE_UNIVERSAL" = "yes"; then
50265         wxUSE_TOOLBAR_NATIVE="no"
50266     else
50267         wxUSE_TOOLBAR_NATIVE="yes"
50268         cat >>confdefs.h <<\_ACEOF
50269 #define wxUSE_TOOLBAR_NATIVE 1
50270 _ACEOF
50271
50272     fi
50273
50274     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
50275 fi
50276
50277 if test "$wxUSE_TOOLTIPS" = "yes"; then
50278     if test "$wxUSE_MOTIF" = 1; then
50279         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
50280 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
50281     else
50282         if test "$wxUSE_UNIVERSAL" = "yes"; then
50283             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
50284 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
50285         else
50286             cat >>confdefs.h <<\_ACEOF
50287 #define wxUSE_TOOLTIPS 1
50288 _ACEOF
50289
50290         fi
50291     fi
50292 fi
50293
50294 if test "$wxUSE_TREEBOOK" = "yes"; then
50295     cat >>confdefs.h <<\_ACEOF
50296 #define wxUSE_TREEBOOK 1
50297 _ACEOF
50298
50299     USES_CONTROLS=1
50300 fi
50301
50302 if test "$wxUSE_TOOLBOOK" = "yes"; then
50303     cat >>confdefs.h <<\_ACEOF
50304 #define wxUSE_TOOLBOOK 1
50305 _ACEOF
50306
50307     USES_CONTROLS=1
50308 fi
50309
50310 if test "$wxUSE_TREECTRL" = "yes"; then
50311     if test "$wxUSE_IMAGLIST" = "yes"; then
50312         cat >>confdefs.h <<\_ACEOF
50313 #define wxUSE_TREECTRL 1
50314 _ACEOF
50315
50316         USES_CONTROLS=1
50317         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
50318     else
50319         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
50320 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
50321     fi
50322 fi
50323
50324 if test "$wxUSE_TREELISTCTRL" = "yes"; then
50325     cat >>confdefs.h <<\_ACEOF
50326 #define wxUSE_TREELISTCTRL 1
50327 _ACEOF
50328
50329     USES_CONTROLS=1
50330     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelist"
50331 fi
50332
50333 if test "$wxUSE_POPUPWIN" = "yes"; then
50334     if test "$wxUSE_OLD_COCOA" = 1 ; then
50335         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
50336 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
50337     else
50338         if test "$wxUSE_PM" = 1; then
50339             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
50340 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
50341         else
50342             cat >>confdefs.h <<\_ACEOF
50343 #define wxUSE_POPUPWIN 1
50344 _ACEOF
50345
50346             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
50347
50348             USES_CONTROLS=1
50349         fi
50350     fi
50351 fi
50352
50353 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
50354     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
50355         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
50356 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
50357     else
50358         cat >>confdefs.h <<\_ACEOF
50359 #define wxUSE_DIALUP_MANAGER 1
50360 _ACEOF
50361
50362         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
50363     fi
50364 fi
50365
50366 if test "$wxUSE_TIPWINDOW" = "yes"; then
50367     if test "$wxUSE_PM" = 1; then
50368         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
50369 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
50370     else
50371         cat >>confdefs.h <<\_ACEOF
50372 #define wxUSE_TIPWINDOW 1
50373 _ACEOF
50374
50375     fi
50376 fi
50377
50378 if test "$USES_CONTROLS" = 1; then
50379     cat >>confdefs.h <<\_ACEOF
50380 #define wxUSE_CONTROLS 1
50381 _ACEOF
50382
50383 fi
50384
50385
50386 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
50387     cat >>confdefs.h <<\_ACEOF
50388 #define wxUSE_ACCESSIBILITY 1
50389 _ACEOF
50390
50391     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
50392 fi
50393
50394 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
50395     cat >>confdefs.h <<\_ACEOF
50396 #define wxUSE_ARTPROVIDER_STD 1
50397 _ACEOF
50398
50399 fi
50400
50401 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
50402             if test "$wxUSE_GTK" != 1; then
50403                 if test "$wxUSE_LIBPNG" != no -a \
50404                 "$wxUSE_IMAGE" = yes -a \
50405                 "$wxUSE_STREAMS" = yes; then
50406             wxUSE_ARTPROVIDER_TANGO="yes"
50407         fi
50408     fi
50409 fi
50410
50411 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
50412     cat >>confdefs.h <<\_ACEOF
50413 #define wxUSE_ARTPROVIDER_TANGO 1
50414 _ACEOF
50415
50416 fi
50417
50418 if test "$wxUSE_DRAGIMAGE" = "yes"; then
50419     cat >>confdefs.h <<\_ACEOF
50420 #define wxUSE_DRAGIMAGE 1
50421 _ACEOF
50422
50423     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
50424 fi
50425
50426 if test "$wxUSE_EXCEPTIONS" = "yes"; then
50427     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
50428         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
50429 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
50430     else
50431         cat >>confdefs.h <<\_ACEOF
50432 #define wxUSE_EXCEPTIONS 1
50433 _ACEOF
50434
50435         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
50436     fi
50437 fi
50438
50439 USE_HTML=0
50440 if test "$wxUSE_HTML" = "yes"; then
50441     cat >>confdefs.h <<\_ACEOF
50442 #define wxUSE_HTML 1
50443 _ACEOF
50444
50445     USE_HTML=1
50446     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
50447 fi
50448 if test "$wxUSE_WEBKIT" = "yes"; then
50449     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50450         old_CPPFLAGS="$CPPFLAGS"
50451         CPPFLAGS="-x objective-c++ $CPPFLAGS"
50452         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50453 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50454 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50455   echo $ECHO_N "(cached) $ECHO_C" >&6
50456 else
50457   cat >conftest.$ac_ext <<_ACEOF
50458 /* confdefs.h.  */
50459 _ACEOF
50460 cat confdefs.h >>conftest.$ac_ext
50461 cat >>conftest.$ac_ext <<_ACEOF
50462 /* end confdefs.h.  */
50463
50464                            #include <Carbon/Carbon.h>
50465                            #include <WebKit/WebKit.h>
50466
50467
50468 #include <WebKit/HIWebView.h>
50469 _ACEOF
50470 rm -f conftest.$ac_objext
50471 if { (ac_try="$ac_compile"
50472 case "(($ac_try" in
50473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50474   *) ac_try_echo=$ac_try;;
50475 esac
50476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50477   (eval "$ac_compile") 2>conftest.er1
50478   ac_status=$?
50479   grep -v '^ *+' conftest.er1 >conftest.err
50480   rm -f conftest.er1
50481   cat conftest.err >&5
50482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50483   (exit $ac_status); } && {
50484          test -z "$ac_c_werror_flag" ||
50485          test ! -s conftest.err
50486        } && test -s conftest.$ac_objext; then
50487   ac_cv_header_WebKit_HIWebView_h=yes
50488 else
50489   echo "$as_me: failed program was:" >&5
50490 sed 's/^/| /' conftest.$ac_ext >&5
50491
50492         ac_cv_header_WebKit_HIWebView_h=no
50493 fi
50494
50495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50496 fi
50497 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50498 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50499 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50500
50501                            cat >>confdefs.h <<\_ACEOF
50502 #define wxUSE_WEBKIT 1
50503 _ACEOF
50504
50505                            WEBKIT_LINK="-framework WebKit"
50506
50507 else
50508
50509                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
50510 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
50511                            wxUSE_WEBKIT=no
50512
50513 fi
50514
50515
50516         CPPFLAGS="$old_CPPFLAGS"
50517     elif test "$wxUSE_OLD_COCOA" = 1; then
50518         cat >>confdefs.h <<\_ACEOF
50519 #define wxUSE_WEBKIT 1
50520 _ACEOF
50521
50522     else
50523         wxUSE_WEBKIT=no
50524     fi
50525     if test "$wxUSE_WEBKIT" = "yes"; then
50526         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
50527     fi
50528 fi
50529
50530 USE_XRC=0
50531 if test "$wxUSE_XRC" = "yes"; then
50532     if test "$wxUSE_XML" != "yes"; then
50533         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
50534 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
50535         wxUSE_XRC=no
50536     else
50537         cat >>confdefs.h <<\_ACEOF
50538 #define wxUSE_XRC 1
50539 _ACEOF
50540
50541         USE_XRC=1
50542         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
50543     fi
50544 fi
50545
50546 USE_AUI=0
50547 if test "$wxUSE_AUI" = "yes"; then
50548    cat >>confdefs.h <<\_ACEOF
50549 #define wxUSE_AUI 1
50550 _ACEOF
50551
50552    USE_AUI=1
50553    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
50554 fi
50555
50556 USE_PROPGRID=0
50557 if test "$wxUSE_PROPGRID" = "yes"; then
50558    cat >>confdefs.h <<\_ACEOF
50559 #define wxUSE_PROPGRID 1
50560 _ACEOF
50561
50562    USE_PROPGRID=1
50563    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
50564 fi
50565
50566 USE_RIBBON=0
50567 if test "$wxUSE_RIBBON" = "yes"; then
50568    cat >>confdefs.h <<\_ACEOF
50569 #define wxUSE_RIBBON 1
50570 _ACEOF
50571
50572    USE_RIBBON=1
50573    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
50574 fi
50575
50576 USE_STC=0
50577 if test "$wxUSE_STC" = "yes"; then
50578    cat >>confdefs.h <<\_ACEOF
50579 #define wxUSE_STC 1
50580 _ACEOF
50581
50582    USE_STC=1
50583    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
50584
50585       # Extract the first word of "python", so it can be a program name with args.
50586 set dummy python; ac_word=$2
50587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50589 if test "${ac_cv_path_PYTHON+set}" = set; then
50590   echo $ECHO_N "(cached) $ECHO_C" >&6
50591 else
50592   case $PYTHON in
50593   [\\/]* | ?:[\\/]*)
50594   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
50595   ;;
50596   *)
50597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50598 for as_dir in $PATH
50599 do
50600   IFS=$as_save_IFS
50601   test -z "$as_dir" && as_dir=.
50602   for ac_exec_ext in '' $ac_executable_extensions; do
50603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50604     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
50605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50606     break 2
50607   fi
50608 done
50609 done
50610 IFS=$as_save_IFS
50611
50612   ;;
50613 esac
50614 fi
50615 PYTHON=$ac_cv_path_PYTHON
50616 if test -n "$PYTHON"; then
50617   { echo "$as_me:$LINENO: result: $PYTHON" >&5
50618 echo "${ECHO_T}$PYTHON" >&6; }
50619 else
50620   { echo "$as_me:$LINENO: result: no" >&5
50621 echo "${ECHO_T}no" >&6; }
50622 fi
50623
50624
50625    if test "x$PYTHON" = "x"; then
50626      COND_PYTHON="#"
50627    fi
50628
50629 fi
50630
50631 if test "$wxUSE_MENUS" = "yes"; then
50632     cat >>confdefs.h <<\_ACEOF
50633 #define wxUSE_MENUS 1
50634 _ACEOF
50635
50636     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
50637 fi
50638
50639 if test "$wxUSE_MIMETYPE" = "yes"; then
50640     cat >>confdefs.h <<\_ACEOF
50641 #define wxUSE_MIMETYPE 1
50642 _ACEOF
50643
50644 fi
50645
50646 if test "$wxUSE_MINIFRAME" = "yes"; then
50647     cat >>confdefs.h <<\_ACEOF
50648 #define wxUSE_MINIFRAME 1
50649 _ACEOF
50650
50651 fi
50652
50653 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
50654     cat >>confdefs.h <<\_ACEOF
50655 #define wxUSE_SYSTEM_OPTIONS 1
50656 _ACEOF
50657
50658 fi
50659
50660 if test "$wxUSE_TASKBARICON" = "yes"; then
50661     cat >>confdefs.h <<\_ACEOF
50662 #define wxUSE_TASKBARICON 1
50663 _ACEOF
50664
50665                 cat >>confdefs.h <<\_ACEOF
50666 #define wxUSE_TASKBARICON_BALLOONS 1
50667 _ACEOF
50668
50669     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
50670 fi
50671
50672
50673 if test "$wxUSE_VALIDATORS" = "yes"; then
50674     cat >>confdefs.h <<\_ACEOF
50675 #define wxUSE_VALIDATORS 1
50676 _ACEOF
50677
50678     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
50679 fi
50680
50681 if test "$wxUSE_PALETTE" = "yes" ; then
50682     if test "$wxUSE_DFB" = 1; then
50683         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
50684 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
50685         wxUSE_PALETTE=no
50686     else
50687         cat >>confdefs.h <<\_ACEOF
50688 #define wxUSE_PALETTE 1
50689 _ACEOF
50690
50691     fi
50692 fi
50693
50694 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
50695     LIBS=" -lunicows $LIBS"
50696 fi
50697
50698 USE_RICHTEXT=0
50699 if test "$wxUSE_RICHTEXT" = "yes"; then
50700     cat >>confdefs.h <<\_ACEOF
50701 #define wxUSE_RICHTEXT 1
50702 _ACEOF
50703
50704     USE_RICHTEXT=1
50705     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
50706 fi
50707
50708 if test "$wxUSE_WEBVIEW" = "yes"; then
50709     USE_WEBVIEW_WEBKIT=0
50710     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
50711         if test "$wxUSE_GTK" = 1; then
50712
50713 pkg_failed=no
50714 { echo "$as_me:$LINENO: checking for WEBKIT" >&5
50715 echo $ECHO_N "checking for WEBKIT... $ECHO_C" >&6; }
50716
50717 if test -n "$PKG_CONFIG"; then
50718     if test -n "$WEBKIT_CFLAGS"; then
50719         pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
50720     else
50721         if test -n "$PKG_CONFIG" && \
50722     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"webkit-1.0 >= 1.3.1\"") >&5
50723   ($PKG_CONFIG --exists --print-errors "webkit-1.0 >= 1.3.1") 2>&5
50724   ac_status=$?
50725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50726   (exit $ac_status); }; then
50727   pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0 >= 1.3.1" 2>/dev/null`
50728 else
50729   pkg_failed=yes
50730 fi
50731     fi
50732 else
50733         pkg_failed=untried
50734 fi
50735 if test -n "$PKG_CONFIG"; then
50736     if test -n "$WEBKIT_LIBS"; then
50737         pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
50738     else
50739         if test -n "$PKG_CONFIG" && \
50740     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"webkit-1.0 >= 1.3.1\"") >&5
50741   ($PKG_CONFIG --exists --print-errors "webkit-1.0 >= 1.3.1") 2>&5
50742   ac_status=$?
50743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50744   (exit $ac_status); }; then
50745   pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0 >= 1.3.1" 2>/dev/null`
50746 else
50747   pkg_failed=yes
50748 fi
50749     fi
50750 else
50751         pkg_failed=untried
50752 fi
50753
50754
50755
50756 if test $pkg_failed = yes; then
50757
50758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50759         _pkg_short_errors_supported=yes
50760 else
50761         _pkg_short_errors_supported=no
50762 fi
50763         if test $_pkg_short_errors_supported = yes; then
50764                 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0 >= 1.3.1"`
50765         else
50766                 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0 >= 1.3.1"`
50767         fi
50768         # Put the nasty error message in config.log where it belongs
50769         echo "$WEBKIT_PKG_ERRORS" >&5
50770
50771
50772                                 { echo "$as_me:$LINENO: WARNING: webkitgtk not found." >&5
50773 echo "$as_me: WARNING: webkitgtk not found." >&2;}
50774
50775 elif test $pkg_failed = untried; then
50776
50777                                 { echo "$as_me:$LINENO: WARNING: webkitgtk not found." >&5
50778 echo "$as_me: WARNING: webkitgtk not found." >&2;}
50779
50780 else
50781         WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
50782         WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
50783         { echo "$as_me:$LINENO: result: yes" >&5
50784 echo "${ECHO_T}yes" >&6; }
50785
50786                                 USE_WEBVIEW_WEBKIT=1
50787                                 CPPFLAGS="$CPPFLAGS $WEBKIT_CFLAGS"
50788                                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $WEBKIT_LIBS"
50789
50790 fi
50791         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50792                                     old_CPPFLAGS="$CPPFLAGS"
50793             CPPFLAGS="-x objective-c++ $CPPFLAGS"
50794             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50795 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50796 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50797   echo $ECHO_N "(cached) $ECHO_C" >&6
50798 else
50799   cat >conftest.$ac_ext <<_ACEOF
50800 /* confdefs.h.  */
50801 _ACEOF
50802 cat confdefs.h >>conftest.$ac_ext
50803 cat >>conftest.$ac_ext <<_ACEOF
50804 /* end confdefs.h.  */
50805
50806                                 #include <Carbon/Carbon.h>
50807                                 #include <WebKit/WebKit.h>
50808
50809
50810 #include <WebKit/HIWebView.h>
50811 _ACEOF
50812 rm -f conftest.$ac_objext
50813 if { (ac_try="$ac_compile"
50814 case "(($ac_try" in
50815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50816   *) ac_try_echo=$ac_try;;
50817 esac
50818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50819   (eval "$ac_compile") 2>conftest.er1
50820   ac_status=$?
50821   grep -v '^ *+' conftest.er1 >conftest.err
50822   rm -f conftest.er1
50823   cat conftest.err >&5
50824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50825   (exit $ac_status); } && {
50826          test -z "$ac_c_werror_flag" ||
50827          test ! -s conftest.err
50828        } && test -s conftest.$ac_objext; then
50829   ac_cv_header_WebKit_HIWebView_h=yes
50830 else
50831   echo "$as_me: failed program was:" >&5
50832 sed 's/^/| /' conftest.$ac_ext >&5
50833
50834         ac_cv_header_WebKit_HIWebView_h=no
50835 fi
50836
50837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50838 fi
50839 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50840 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50841 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50842
50843                                 USE_WEBVIEW_WEBKIT=1
50844                                 WEBKIT_LINK="-framework WebKit"
50845
50846 else
50847
50848                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
50849 echo "$as_me: WARNING: WebKit headers not found" >&2;}
50850
50851 fi
50852
50853
50854             CPPFLAGS="$old_CPPFLAGS"
50855         fi
50856     fi
50857
50858     wxUSE_WEBVIEW="no"
50859     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
50860         if test "$USE_WEBVIEW_WEBKIT" = 1; then
50861             wxUSE_WEBVIEW="yes"
50862             cat >>confdefs.h <<\_ACEOF
50863 #define wxUSE_WEBVIEW_WEBKIT 1
50864 _ACEOF
50865
50866         else
50867             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
50868 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
50869         fi
50870     elif test "$wxUSE_MSW" = 1; then
50871         if test "$wxUSE_WEBVIEW_IE" = "yes"; then
50872                                     wxUSE_WEBVIEW="yes"
50873             cat >>confdefs.h <<\_ACEOF
50874 #define wxUSE_WEBVIEW_IE 1
50875 _ACEOF
50876
50877         fi
50878     fi
50879 fi
50880
50881 if test "$wxUSE_WEBVIEW" = "yes"; then
50882     USE_WEBVIEW=1
50883     cat >>confdefs.h <<\_ACEOF
50884 #define wxUSE_WEBVIEW 1
50885 _ACEOF
50886
50887     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
50888 else
50889     USE_WEBVIEW=0
50890 fi
50891
50892
50893 if test "$wxUSE_IMAGE" = "yes" ; then
50894     cat >>confdefs.h <<\_ACEOF
50895 #define wxUSE_IMAGE 1
50896 _ACEOF
50897
50898
50899     if test "$wxUSE_GIF" = "yes" ; then
50900       cat >>confdefs.h <<\_ACEOF
50901 #define wxUSE_GIF 1
50902 _ACEOF
50903
50904     fi
50905
50906     if test "$wxUSE_PCX" = "yes" ; then
50907       cat >>confdefs.h <<\_ACEOF
50908 #define wxUSE_PCX 1
50909 _ACEOF
50910
50911     fi
50912
50913     if test "$wxUSE_TGA" = "yes" ; then
50914       cat >>confdefs.h <<\_ACEOF
50915 #define wxUSE_TGA 1
50916 _ACEOF
50917
50918     fi
50919
50920     if test "$wxUSE_IFF" = "yes" ; then
50921       cat >>confdefs.h <<\_ACEOF
50922 #define wxUSE_IFF 1
50923 _ACEOF
50924
50925     fi
50926
50927     if test "$wxUSE_PNM" = "yes" ; then
50928       cat >>confdefs.h <<\_ACEOF
50929 #define wxUSE_PNM 1
50930 _ACEOF
50931
50932     fi
50933
50934     if test "$wxUSE_XPM" = "yes" ; then
50935       cat >>confdefs.h <<\_ACEOF
50936 #define wxUSE_XPM 1
50937 _ACEOF
50938
50939     fi
50940
50941     if test "$wxUSE_ICO_CUR" = "yes" ; then
50942       cat >>confdefs.h <<\_ACEOF
50943 #define wxUSE_ICO_CUR 1
50944 _ACEOF
50945
50946     fi
50947 fi
50948
50949
50950 if test "$wxUSE_ABOUTDLG" = "yes"; then
50951     cat >>confdefs.h <<\_ACEOF
50952 #define wxUSE_ABOUTDLG 1
50953 _ACEOF
50954
50955 fi
50956
50957 if test "$wxUSE_CHOICEDLG" = "yes"; then
50958     cat >>confdefs.h <<\_ACEOF
50959 #define wxUSE_CHOICEDLG 1
50960 _ACEOF
50961
50962 fi
50963
50964 if test "$wxUSE_COLOURDLG" = "yes"; then
50965     cat >>confdefs.h <<\_ACEOF
50966 #define wxUSE_COLOURDLG 1
50967 _ACEOF
50968
50969 fi
50970
50971 if test "$wxUSE_FILEDLG" = "yes"; then
50972     cat >>confdefs.h <<\_ACEOF
50973 #define wxUSE_FILEDLG 1
50974 _ACEOF
50975
50976 fi
50977
50978 if test "$wxUSE_FINDREPLDLG" = "yes"; then
50979     cat >>confdefs.h <<\_ACEOF
50980 #define wxUSE_FINDREPLDLG 1
50981 _ACEOF
50982
50983 fi
50984
50985 if test "$wxUSE_FONTDLG" = "yes"; then
50986     cat >>confdefs.h <<\_ACEOF
50987 #define wxUSE_FONTDLG 1
50988 _ACEOF
50989
50990 fi
50991
50992 if test "$wxUSE_DIRDLG" = "yes"; then
50993     if test "$wxUSE_TREECTRL" != "yes"; then
50994         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
50995 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
50996     else
50997         cat >>confdefs.h <<\_ACEOF
50998 #define wxUSE_DIRDLG 1
50999 _ACEOF
51000
51001     fi
51002 fi
51003
51004 if test "$wxUSE_MSGDLG" = "yes"; then
51005     cat >>confdefs.h <<\_ACEOF
51006 #define wxUSE_MSGDLG 1
51007 _ACEOF
51008
51009 fi
51010
51011 if test "$wxUSE_NUMBERDLG" = "yes"; then
51012     cat >>confdefs.h <<\_ACEOF
51013 #define wxUSE_NUMBERDLG 1
51014 _ACEOF
51015
51016 fi
51017
51018 if test "$wxUSE_PROGRESSDLG" = "yes"; then
51019     cat >>confdefs.h <<\_ACEOF
51020 #define wxUSE_PROGRESSDLG 1
51021 _ACEOF
51022
51023 fi
51024
51025 if test "$wxUSE_SPLASH" = "yes"; then
51026     cat >>confdefs.h <<\_ACEOF
51027 #define wxUSE_SPLASH 1
51028 _ACEOF
51029
51030     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
51031 fi
51032
51033 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
51034     cat >>confdefs.h <<\_ACEOF
51035 #define wxUSE_STARTUP_TIPS 1
51036 _ACEOF
51037
51038 fi
51039
51040 if test "$wxUSE_TEXTDLG" = "yes"; then
51041     cat >>confdefs.h <<\_ACEOF
51042 #define wxUSE_TEXTDLG 1
51043 _ACEOF
51044
51045 fi
51046
51047 if test "$wxUSE_WIZARDDLG" = "yes"; then
51048     cat >>confdefs.h <<\_ACEOF
51049 #define wxUSE_WIZARDDLG 1
51050 _ACEOF
51051
51052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
51053 fi
51054
51055
51056 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
51057     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
51058         cat >>confdefs.h <<\_ACEOF
51059 #define wxUSE_OWNER_DRAWN 1
51060 _ACEOF
51061
51062     fi
51063 fi
51064
51065
51066 if test "$wxUSE_MSW" = 1 ; then
51067
51068     if test "$wxUSE_DC_CACHEING" = "yes"; then
51069         cat >>confdefs.h <<\_ACEOF
51070 #define wxUSE_DC_CACHEING 1
51071 _ACEOF
51072
51073     fi
51074
51075     if test "$wxUSE_DIB" = "yes"; then
51076         cat >>confdefs.h <<\_ACEOF
51077 #define wxUSE_WXDIB 1
51078 _ACEOF
51079
51080     fi
51081
51082     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
51083         cat >>confdefs.h <<\_ACEOF
51084 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
51085 _ACEOF
51086
51087     fi
51088
51089     if test "$wxUSE_UXTHEME" = "yes"; then
51090         cat >>confdefs.h <<\_ACEOF
51091 #define wxUSE_UXTHEME 1
51092 _ACEOF
51093
51094     fi
51095
51096 fi
51097
51098 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
51099     cat >>confdefs.h <<\_ACEOF
51100 #define wxUSE_AUTOID_MANAGEMENT 1
51101 _ACEOF
51102
51103 fi
51104
51105 if test "$USE_WIN32" = 1 ; then
51106     if test "$wxUSE_INICONF" = "yes"; then
51107         cat >>confdefs.h <<\_ACEOF
51108 #define wxUSE_INICONF 1
51109 _ACEOF
51110
51111     fi
51112
51113     if test "$wxUSE_REGKEY" = "yes"; then
51114         cat >>confdefs.h <<\_ACEOF
51115 #define wxUSE_REGKEY 1
51116 _ACEOF
51117
51118     fi
51119 fi
51120
51121
51122 if test "$wxUSE_MAC" = 1; then
51123     wxUSE_GRAPHICS_CONTEXT="yes"
51124 fi
51125
51126 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
51127     wx_has_graphics=0
51128     if test "$wxUSE_MSW" = 1; then
51129         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
51130 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
51131 if test "${wx_cv_lib_gdiplus+set}" = set; then
51132   echo $ECHO_N "(cached) $ECHO_C" >&6
51133 else
51134
51135                                                 ac_ext=cpp
51136 ac_cpp='$CXXCPP $CPPFLAGS'
51137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51140
51141                 cat >conftest.$ac_ext <<_ACEOF
51142 /* confdefs.h.  */
51143 _ACEOF
51144 cat confdefs.h >>conftest.$ac_ext
51145 cat >>conftest.$ac_ext <<_ACEOF
51146 /* end confdefs.h.  */
51147 #include <windows.h>
51148                      #include <gdiplus.h>
51149 int
51150 main ()
51151 {
51152
51153                         using namespace Gdiplus;
51154
51155   ;
51156   return 0;
51157 }
51158 _ACEOF
51159 rm -f conftest.$ac_objext
51160 if { (ac_try="$ac_compile"
51161 case "(($ac_try" in
51162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51163   *) ac_try_echo=$ac_try;;
51164 esac
51165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51166   (eval "$ac_compile") 2>conftest.er1
51167   ac_status=$?
51168   grep -v '^ *+' conftest.er1 >conftest.err
51169   rm -f conftest.er1
51170   cat conftest.err >&5
51171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51172   (exit $ac_status); } && {
51173          test -z "$ac_cxx_werror_flag" ||
51174          test ! -s conftest.err
51175        } && test -s conftest.$ac_objext; then
51176   wx_cv_lib_gdiplus=yes
51177 else
51178   echo "$as_me: failed program was:" >&5
51179 sed 's/^/| /' conftest.$ac_ext >&5
51180
51181         wx_cv_lib_gdiplus=no
51182
51183 fi
51184
51185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51186                 ac_ext=c
51187 ac_cpp='$CPP $CPPFLAGS'
51188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51191
51192
51193
51194 fi
51195 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
51196 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
51197         if test "$wx_cv_lib_gdiplus" = "yes"; then
51198             wx_has_graphics=1
51199         fi
51200     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
51201
51202 pkg_failed=no
51203 { echo "$as_me:$LINENO: checking for CAIRO" >&5
51204 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
51205
51206 if test -n "$PKG_CONFIG"; then
51207     if test -n "$CAIRO_CFLAGS"; then
51208         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
51209     else
51210         if test -n "$PKG_CONFIG" && \
51211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51212   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51213   ac_status=$?
51214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215   (exit $ac_status); }; then
51216   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
51217 else
51218   pkg_failed=yes
51219 fi
51220     fi
51221 else
51222         pkg_failed=untried
51223 fi
51224 if test -n "$PKG_CONFIG"; then
51225     if test -n "$CAIRO_LIBS"; then
51226         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
51227     else
51228         if test -n "$PKG_CONFIG" && \
51229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51230   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51231   ac_status=$?
51232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51233   (exit $ac_status); }; then
51234   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
51235 else
51236   pkg_failed=yes
51237 fi
51238     fi
51239 else
51240         pkg_failed=untried
51241 fi
51242
51243
51244
51245 if test $pkg_failed = yes; then
51246
51247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51248         _pkg_short_errors_supported=yes
51249 else
51250         _pkg_short_errors_supported=no
51251 fi
51252         if test $_pkg_short_errors_supported = yes; then
51253                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
51254         else
51255                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
51256         fi
51257         # Put the nasty error message in config.log where it belongs
51258         echo "$CAIRO_PKG_ERRORS" >&5
51259
51260         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51261 echo "$as_me: WARNING: Cairo library not found" >&2;}
51262
51263 elif test $pkg_failed = untried; then
51264         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51265 echo "$as_me: WARNING: Cairo library not found" >&2;}
51266
51267 else
51268         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
51269         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
51270         { echo "$as_me:$LINENO: result: yes" >&5
51271 echo "${ECHO_T}yes" >&6; }
51272         wx_has_graphics=1
51273 fi
51274         if test "$wx_has_graphics" = 1; then
51275                                                 save_LIBS="$LIBS"
51276             LIBS="$LIBS $CAIRO_LIBS"
51277
51278 for ac_func in cairo_push_group
51279 do
51280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51284   echo $ECHO_N "(cached) $ECHO_C" >&6
51285 else
51286   cat >conftest.$ac_ext <<_ACEOF
51287 /* confdefs.h.  */
51288 _ACEOF
51289 cat confdefs.h >>conftest.$ac_ext
51290 cat >>conftest.$ac_ext <<_ACEOF
51291 /* end confdefs.h.  */
51292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51294 #define $ac_func innocuous_$ac_func
51295
51296 /* System header to define __stub macros and hopefully few prototypes,
51297     which can conflict with char $ac_func (); below.
51298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51299     <limits.h> exists even on freestanding compilers.  */
51300
51301 #ifdef __STDC__
51302 # include <limits.h>
51303 #else
51304 # include <assert.h>
51305 #endif
51306
51307 #undef $ac_func
51308
51309 /* Override any GCC internal prototype to avoid an error.
51310    Use char because int might match the return type of a GCC
51311    builtin and then its argument prototype would still apply.  */
51312 #ifdef __cplusplus
51313 extern "C"
51314 #endif
51315 char $ac_func ();
51316 /* The GNU C library defines this for functions which it implements
51317     to always fail with ENOSYS.  Some functions are actually named
51318     something starting with __ and the normal name is an alias.  */
51319 #if defined __stub_$ac_func || defined __stub___$ac_func
51320 choke me
51321 #endif
51322
51323 int
51324 main ()
51325 {
51326 return $ac_func ();
51327   ;
51328   return 0;
51329 }
51330 _ACEOF
51331 rm -f conftest.$ac_objext conftest$ac_exeext
51332 if { (ac_try="$ac_link"
51333 case "(($ac_try" in
51334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51335   *) ac_try_echo=$ac_try;;
51336 esac
51337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51338   (eval "$ac_link") 2>conftest.er1
51339   ac_status=$?
51340   grep -v '^ *+' conftest.er1 >conftest.err
51341   rm -f conftest.er1
51342   cat conftest.err >&5
51343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51344   (exit $ac_status); } && {
51345          test -z "$ac_c_werror_flag" ||
51346          test ! -s conftest.err
51347        } && test -s conftest$ac_exeext &&
51348        $as_test_x conftest$ac_exeext; then
51349   eval "$as_ac_var=yes"
51350 else
51351   echo "$as_me: failed program was:" >&5
51352 sed 's/^/| /' conftest.$ac_ext >&5
51353
51354         eval "$as_ac_var=no"
51355 fi
51356
51357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51358       conftest$ac_exeext conftest.$ac_ext
51359 fi
51360 ac_res=`eval echo '${'$as_ac_var'}'`
51361                { echo "$as_me:$LINENO: result: $ac_res" >&5
51362 echo "${ECHO_T}$ac_res" >&6; }
51363 if test `eval echo '${'$as_ac_var'}'` = yes; then
51364   cat >>confdefs.h <<_ACEOF
51365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51366 _ACEOF
51367
51368 fi
51369 done
51370
51371             LIBS="$save_LIBS"
51372             if test "$ac_cv_func_cairo_push_group" = "no"; then
51373                 wx_has_graphics=0
51374                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
51375 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
51376             else
51377                 cat >>confdefs.h <<\_ACEOF
51378 #define wxUSE_CAIRO 1
51379 _ACEOF
51380
51381
51382                                                 if test "$wxUSE_GTK" != 1; then
51383                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
51384                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
51385                 fi
51386             fi
51387         fi
51388     else
51389                 wx_has_graphics=1
51390     fi
51391
51392     if test "$wx_has_graphics" = 1; then
51393         cat >>confdefs.h <<\_ACEOF
51394 #define wxUSE_GRAPHICS_CONTEXT 1
51395 _ACEOF
51396
51397     else
51398         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
51399 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
51400     fi
51401 fi
51402
51403
51404 USE_MEDIA=0
51405
51406 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
51407     USE_MEDIA=1
51408
51409                 if test "$wxUSE_GTK" = 1; then
51410         wxUSE_GSTREAMER="no"
51411
51412                                                                 GST_VERSION_MAJOR=0
51413         GST_VERSION_MINOR=10
51414         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51415
51416         if test "$wxUSE_GSTREAMER8" = "no"; then
51417
51418 pkg_failed=no
51419 { echo "$as_me:$LINENO: checking for GST" >&5
51420 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51421
51422 if test -n "$PKG_CONFIG"; then
51423     if test -n "$GST_CFLAGS"; then
51424         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51425     else
51426         if test -n "$PKG_CONFIG" && \
51427     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51428   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51429   ac_status=$?
51430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51431   (exit $ac_status); }; then
51432   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51433 else
51434   pkg_failed=yes
51435 fi
51436     fi
51437 else
51438         pkg_failed=untried
51439 fi
51440 if test -n "$PKG_CONFIG"; then
51441     if test -n "$GST_LIBS"; then
51442         pkg_cv_GST_LIBS="$GST_LIBS"
51443     else
51444         if test -n "$PKG_CONFIG" && \
51445     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51446   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51447   ac_status=$?
51448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51449   (exit $ac_status); }; then
51450   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51451 else
51452   pkg_failed=yes
51453 fi
51454     fi
51455 else
51456         pkg_failed=untried
51457 fi
51458
51459
51460
51461 if test $pkg_failed = yes; then
51462
51463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51464         _pkg_short_errors_supported=yes
51465 else
51466         _pkg_short_errors_supported=no
51467 fi
51468         if test $_pkg_short_errors_supported = yes; then
51469                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51470         else
51471                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51472         fi
51473         # Put the nasty error message in config.log where it belongs
51474         echo "$GST_PKG_ERRORS" >&5
51475
51476
51477                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51478 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51479                     GST_VERSION_MINOR=8
51480
51481
51482 elif test $pkg_failed = untried; then
51483
51484                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51485 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51486                     GST_VERSION_MINOR=8
51487
51488
51489 else
51490         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51491         GST_LIBS=$pkg_cv_GST_LIBS
51492         { echo "$as_me:$LINENO: result: yes" >&5
51493 echo "${ECHO_T}yes" >&6; }
51494
51495                     wxUSE_GSTREAMER="yes"
51496                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
51497
51498 fi
51499         else
51500                         GST_VERSION_MINOR=8
51501         fi
51502
51503         if test $GST_VERSION_MINOR = "8"; then
51504             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51505
51506 pkg_failed=no
51507 { echo "$as_me:$LINENO: checking for GST" >&5
51508 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51509
51510 if test -n "$PKG_CONFIG"; then
51511     if test -n "$GST_CFLAGS"; then
51512         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51513     else
51514         if test -n "$PKG_CONFIG" && \
51515     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51516   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51517   ac_status=$?
51518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51519   (exit $ac_status); }; then
51520   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51521 else
51522   pkg_failed=yes
51523 fi
51524     fi
51525 else
51526         pkg_failed=untried
51527 fi
51528 if test -n "$PKG_CONFIG"; then
51529     if test -n "$GST_LIBS"; then
51530         pkg_cv_GST_LIBS="$GST_LIBS"
51531     else
51532         if test -n "$PKG_CONFIG" && \
51533     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51534   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51535   ac_status=$?
51536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51537   (exit $ac_status); }; then
51538   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51539 else
51540   pkg_failed=yes
51541 fi
51542     fi
51543 else
51544         pkg_failed=untried
51545 fi
51546
51547
51548
51549 if test $pkg_failed = yes; then
51550
51551 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51552         _pkg_short_errors_supported=yes
51553 else
51554         _pkg_short_errors_supported=no
51555 fi
51556         if test $_pkg_short_errors_supported = yes; then
51557                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51558         else
51559                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51560         fi
51561         # Put the nasty error message in config.log where it belongs
51562         echo "$GST_PKG_ERRORS" >&5
51563
51564
51565                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51566 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51567
51568 elif test $pkg_failed = untried; then
51569
51570                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51571 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51572
51573 else
51574         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51575         GST_LIBS=$pkg_cv_GST_LIBS
51576         { echo "$as_me:$LINENO: result: yes" >&5
51577 echo "${ECHO_T}yes" >&6; }
51578         wxUSE_GSTREAMER="yes"
51579 fi
51580         fi
51581
51582
51583         if test "$wxUSE_GSTREAMER" = "yes"; then
51584             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
51585             EXTRALIBS_MEDIA="$GST_LIBS"
51586
51587             cat >>confdefs.h <<\_ACEOF
51588 #define wxUSE_GSTREAMER 1
51589 _ACEOF
51590
51591         else
51592             USE_MEDIA=0
51593         fi
51594     fi
51595
51596     if test $USE_MEDIA = 1; then
51597         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
51598         cat >>confdefs.h <<\_ACEOF
51599 #define wxUSE_MEDIACTRL 1
51600 _ACEOF
51601
51602     else
51603         if test "$wxUSE_MEDIACTRL" = "yes"; then
51604             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
51605 echo "$as_me: error: GStreamer not available" >&2;}
51606    { (exit 1); exit 1; }; }
51607         else
51608                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
51609 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
51610         fi
51611     fi
51612 fi
51613
51614
51615 if test "$cross_compiling" != "no"; then
51616         OSINFO="\"$host\""
51617 else
51618         OSINFO=`uname -s -r -m`
51619     OSINFO="\"$OSINFO\""
51620 fi
51621
51622 cat >>confdefs.h <<_ACEOF
51623 #define WXWIN_OS_DESCRIPTION $OSINFO
51624 _ACEOF
51625
51626
51627
51628 if test "x$prefix" != "xNONE"; then
51629     wxPREFIX=$prefix
51630 else
51631     wxPREFIX=$ac_default_prefix
51632 fi
51633
51634 cat >>confdefs.h <<_ACEOF
51635 #define wxINSTALL_PREFIX "$wxPREFIX"
51636 _ACEOF
51637
51638
51639
51640
51641 STD_BASE_LIBS="base"
51642 STD_GUI_LIBS=""
51643 BUILT_WX_LIBS="base"
51644 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
51645
51646 if test "$wxUSE_SOCKETS" = "yes" ; then
51647     STD_BASE_LIBS="net $STD_BASE_LIBS"
51648     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
51649 fi
51650 if test "$wxUSE_XML" = "yes" ; then
51651     STD_BASE_LIBS="xml $STD_BASE_LIBS"
51652     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
51653 fi
51654
51655 if test "$wxUSE_GUI" = "yes"; then
51656     STD_GUI_LIBS="adv core"
51657     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
51658
51659     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
51660         STD_GUI_LIBS="qa $STD_GUI_LIBS"
51661         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
51662     fi
51663     if test "$wxUSE_HTML" = "yes" ; then
51664         STD_GUI_LIBS="html $STD_GUI_LIBS"
51665         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
51666     fi
51667     if test "$wxUSE_MEDIACTRL" = "yes" ; then
51668         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
51669     fi
51670     if test "$wxUSE_OPENGL" = "yes" ; then
51671         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
51672     fi
51673     if test "$wxUSE_AUI" = "yes" ; then
51674         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
51675     fi
51676     if test "$wxUSE_PROPGRID" = "yes" ; then
51677         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
51678     fi
51679     if test "$wxUSE_RIBBON" = "yes" ; then
51680         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
51681     fi
51682     if test "$wxUSE_RICHTEXT" = "yes" ; then
51683         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
51684     fi
51685     if test "$wxUSE_STC" = "yes" ; then
51686         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
51687     fi
51688     if test "$wxUSE_WEBVIEW" = "yes" ; then
51689         STD_GUI_LIBS="webview $STD_GUI_LIBS"
51690         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
51691     fi
51692     if test "$wxUSE_XRC" = "yes" ; then
51693         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
51694         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
51695     fi
51696 fi
51697
51698
51699
51700
51701
51702
51703
51704 EXTRA_FRAMEWORKS=
51705 if test "$wxUSE_MAC" = 1 ; then
51706     if test "$USE_DARWIN" = 1; then
51707         if test "$wxUSE_OSX_IPHONE" = 1; then
51708             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
51709         else
51710             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
51711
51712
51713             if test "$cross_compiling" != "no"; then
51714                                                                                                 wx_cv_target_x86_64=no
51715             else
51716                 { echo "$as_me:$LINENO: checking if we target only x86_64" >&5
51717 echo $ECHO_N "checking if we target only x86_64... $ECHO_C" >&6; }
51718 if test "${wx_cv_target_x86_64+set}" = set; then
51719   echo $ECHO_N "(cached) $ECHO_C" >&6
51720 else
51721   cat >conftest.$ac_ext <<_ACEOF
51722 /* confdefs.h.  */
51723 _ACEOF
51724 cat confdefs.h >>conftest.$ac_ext
51725 cat >>conftest.$ac_ext <<_ACEOF
51726 /* end confdefs.h.  */
51727 int main() { return 0; }
51728 _ACEOF
51729 rm -f conftest.$ac_objext conftest$ac_exeext
51730 if { (ac_try="$ac_link"
51731 case "(($ac_try" in
51732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51733   *) ac_try_echo=$ac_try;;
51734 esac
51735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51736   (eval "$ac_link") 2>conftest.er1
51737   ac_status=$?
51738   grep -v '^ *+' conftest.er1 >conftest.err
51739   rm -f conftest.er1
51740   cat conftest.err >&5
51741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51742   (exit $ac_status); } && {
51743          test -z "$ac_c_werror_flag" ||
51744          test ! -s conftest.err
51745        } && test -s conftest$ac_exeext &&
51746        $as_test_x conftest$ac_exeext; then
51747   if file conftest$ac_exeext|grep -q 'i386\|ppc'; then
51748                             wx_cv_target_x86_64=no
51749                         else
51750                             wx_cv_target_x86_64=yes
51751                         fi
51752
51753 else
51754   echo "$as_me: failed program was:" >&5
51755 sed 's/^/| /' conftest.$ac_ext >&5
51756
51757
51758 fi
51759
51760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51761       conftest$ac_exeext conftest.$ac_ext
51762
51763 fi
51764 { echo "$as_me:$LINENO: result: $wx_cv_target_x86_64" >&5
51765 echo "${ECHO_T}$wx_cv_target_x86_64" >&6; }
51766             fi
51767
51768             if test "$wx_cv_target_x86_64" != "yes"; then
51769                 EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
51770             fi
51771         fi
51772     fi
51773 fi
51774 if test "$wxUSE_OLD_COCOA" = 1 ; then
51775     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
51776     if test "$wxUSE_MEDIACTRL" = "yes"; then
51777         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
51778     fi
51779 fi
51780 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
51781     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
51782 fi
51783
51784 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
51785 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
51786
51787 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
51788
51789 if test "$wxUSE_GUI" = "yes"; then
51790
51791
51792         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
51793                      erase event exec font image minimal render \
51794                      shaped svg taborder vscroll widgets wrapsizer"
51795
51796     if test "$wxUSE_MONOLITHIC" != "yes"; then
51797         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
51798     fi
51799     if test "$TOOLKIT" = "MSW"; then
51800         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
51801         if test "$wxUSE_UNIVERSAL" != "yes"; then
51802             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
51803         fi
51804     fi
51805     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
51806         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
51807     fi
51808 else
51809     SAMPLES_SUBDIRS="console"
51810     if test "$wxUSE_SOCKETS" = "yes" ; then
51811         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51812     fi
51813     if test "$wxUSE_IPC" = "yes" ; then
51814         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
51815     fi
51816 fi
51817
51818
51819 if test "x$INTELCC" = "xyes" ; then
51820                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
51821 elif test "$GCC" = yes ; then
51822     CWARNINGS="-Wall -Wundef"
51823 fi
51824
51825 if test "x$INTELCXX" = "xyes" ; then
51826                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
51827 elif test "$GXX" = yes ; then
51828     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
51829     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
51830 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
51831 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
51832   echo $ECHO_N "(cached) $ECHO_C" >&6
51833 else
51834   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
51835
51836  ac_ext=cpp
51837 ac_cpp='$CXXCPP $CPPFLAGS'
51838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51841
51842  ac_save_CXXFLAGS="$CXXFLAGS"
51843 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
51844 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
51845    cat >conftest.$ac_ext <<_ACEOF
51846 /* confdefs.h.  */
51847 _ACEOF
51848 cat confdefs.h >>conftest.$ac_ext
51849 cat >>conftest.$ac_ext <<_ACEOF
51850 /* end confdefs.h.  */
51851
51852 int
51853 main ()
51854 {
51855 return 0;
51856   ;
51857   return 0;
51858 }
51859 _ACEOF
51860 rm -f conftest.$ac_objext
51861 if { (ac_try="$ac_compile"
51862 case "(($ac_try" in
51863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51864   *) ac_try_echo=$ac_try;;
51865 esac
51866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51867   (eval "$ac_compile") 2>conftest.er1
51868   ac_status=$?
51869   grep -v '^ *+' conftest.er1 >conftest.err
51870   rm -f conftest.er1
51871   cat conftest.err >&5
51872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51873   (exit $ac_status); } && {
51874          test -z "$ac_cxx_werror_flag" ||
51875          test ! -s conftest.err
51876        } && test -s conftest.$ac_objext; then
51877   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
51878 else
51879   echo "$as_me: failed program was:" >&5
51880 sed 's/^/| /' conftest.$ac_ext >&5
51881
51882
51883 fi
51884
51885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51886 done
51887  CXXFLAGS="$ac_save_CXXFLAGS"
51888  ac_ext=c
51889 ac_cpp='$CPP $CPPFLAGS'
51890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51893
51894
51895 fi
51896 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
51897 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
51898 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
51899      .ok|.ok,*)  ;;
51900    .|.no|.no,*)  ;;
51901    *)
51902    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
51903    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
51904   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
51905   ac_status=$?
51906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51907   (exit $ac_status); }
51908    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
51909   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
51910   ac_status=$?
51911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51912   (exit $ac_status); }
51913                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
51914    fi
51915  ;;
51916 esac
51917
51918
51919                     if test "$wxUSE_MAC" = 1 ; then
51920         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
51921     fi
51922 fi
51923
51924
51925 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
51926 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
51927
51928
51929 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
51930  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
51931  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
51932  $CPPFLAGS `
51933
51934 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
51935 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
51936 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
51937 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
51938 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
51939
51940 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
51941
51942
51943 if test "x$MWCC" = "xyes"; then
51944
51945             CC="$CC -cwd source -I-"
51946     CXX="$CXX -cwd source -I-"
51947 fi
51948
51949
51950 LIBS=`echo $LIBS`
51951 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
51952 EXTRALIBS_XML="$EXPAT_LINK"
51953 EXTRALIBS_HTML="$MSPACK_LINK"
51954 EXTRALIBS_MEDIA="$GST_LIBS"
51955 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
51956 if test "$wxUSE_GUI" = "yes"; then
51957     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
51958 fi
51959 if test "$wxUSE_OPENGL" = "yes"; then
51960     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
51961 fi
51962
51963 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
51964
51965 WXCONFIG_LIBS="$LIBS"
51966
51967 if test "$wxUSE_REGEX" = "builtin" ; then
51968     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
51969 fi
51970 if test "$wxUSE_EXPAT" = "builtin" ; then
51971     wxconfig_3rdparty="expat $wxconfig_3rdparty"
51972 fi
51973 if test "$wxUSE_LIBTIFF" = "builtin" ; then
51974     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
51975 fi
51976 if test "$wxUSE_LIBJPEG" = "builtin" ; then
51977     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
51978 fi
51979 if test "$wxUSE_LIBPNG" = "builtin" ; then
51980     wxconfig_3rdparty="png $wxconfig_3rdparty"
51981 fi
51982 if test "$wxUSE_ZLIB" = "builtin" ; then
51983     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
51984 fi
51985
51986 for i in $wxconfig_3rdparty ; do
51987     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
51988 done
51989
51990
51991 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
51992     WXUNIV=1
51993
51994     case "$wxUNIV_THEMES" in
51995         ''|all)
51996             cat >>confdefs.h <<\_ACEOF
51997 #define wxUSE_ALL_THEMES 1
51998 _ACEOF
51999
52000             ;;
52001
52002         *)
52003             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
52004                 cat >>confdefs.h <<_ACEOF
52005 #define wxUSE_THEME_$t 1
52006 _ACEOF
52007
52008             done
52009     esac
52010 else
52011     WXUNIV=0
52012 fi
52013
52014
52015
52016
52017
52018
52019
52020
52021 if test $wxUSE_MONOLITHIC = "yes" ; then
52022     MONOLITHIC=1
52023 else
52024     MONOLITHIC=0
52025 fi
52026
52027 if test $wxUSE_PLUGINS = "yes" ; then
52028     USE_PLUGINS=1
52029 else
52030     USE_PLUGINS=0
52031 fi
52032
52033 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
52034     USE_QA=1
52035 else
52036     USE_QA=0
52037 fi
52038
52039 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
52040     OFFICIAL_BUILD=1
52041 else
52042     OFFICIAL_BUILD=0
52043 fi
52044
52045
52046
52047
52048
52049
52050
52051
52052
52053
52054
52055
52056
52057
52058
52059
52060
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
52072
52073
52074
52075
52076
52077
52078
52079
52080
52081
52082 case "$TOOLKIT" in
52083     GTK)
52084         TOOLKIT_DESC="GTK+"
52085         if test "$WXGTK2" = 1; then
52086             TOOLKIT_DESC="$TOOLKIT_DESC 2"
52087             if test "$wxUSE_GTKPRINT" = "yes" ; then
52088                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
52089             fi
52090             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
52091                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
52092             fi
52093             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
52094                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
52095             fi
52096             if test "$wxUSE_LIBHILDON" = "yes"; then
52097                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52098             fi
52099             if test "$wxUSE_LIBHILDON2" = "yes"; then
52100                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52101             fi
52102
52103             if test "$TOOLKIT_EXTRA" != ""; then
52104                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
52105             fi
52106         fi
52107         ;;
52108
52109     ?*)
52110         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
52111         ;;
52112
52113     *)
52114         TOOLKIT_DESC="base only"
52115         ;;
52116 esac
52117
52118 if test "$wxUSE_WINE" = "yes"; then
52119     BAKEFILE_FORCE_PLATFORM=win32
52120 fi
52121
52122 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
52123 then
52124     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
52125 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
52126 if test "${wx_cv_gcc_pch_bug+set}" = set; then
52127   echo $ECHO_N "(cached) $ECHO_C" >&6
52128 else
52129
52130             echo '#include <stdio.h>
52131                   const wchar_t test_var[] = L"awidetest";' > conftest.h
52132
52133             echo '#include "conftest.h"
52134                   int main()
52135                   {
52136                      printf("%ls", test_var);
52137                      return 0;
52138                   }' > conftest.cpp
52139
52140             wx_cv_gcc_pch_bug="pch not supported"
52141
52142             if $CXX conftest.h >/dev/null 2>&1
52143             then
52144                 wx_cv_gcc_pch_bug=
52145
52146                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
52147                 then
52148                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
52149                         grep awidetest >/dev/null
52150                     then
52151                         wx_cv_gcc_pch_bug=no
52152                     else
52153                         wx_cv_gcc_pch_bug=yes
52154                     fi
52155                 fi
52156             fi
52157
52158             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
52159
52160 fi
52161 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
52162 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
52163
52164     if test "$wx_cv_gcc_pch_bug" = yes; then
52165                         bk_use_pch=no
52166     fi
52167 fi
52168
52169
52170
52171
52172
52173
52174
52175     if test "x$BAKEFILE_HOST" = "x"; then
52176                if test "x${host}" = "x" ; then
52177                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
52178 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
52179    { (exit 1); exit 1; }; }
52180                fi
52181
52182         BAKEFILE_HOST="${host}"
52183     fi
52184
52185     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
52186
52187     if test -n "$ac_tool_prefix"; then
52188   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
52189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
52190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52192 if test "${ac_cv_prog_RANLIB+set}" = set; then
52193   echo $ECHO_N "(cached) $ECHO_C" >&6
52194 else
52195   if test -n "$RANLIB"; then
52196   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
52197 else
52198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52199 for as_dir in $PATH
52200 do
52201   IFS=$as_save_IFS
52202   test -z "$as_dir" && as_dir=.
52203   for ac_exec_ext in '' $ac_executable_extensions; do
52204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52205     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
52206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52207     break 2
52208   fi
52209 done
52210 done
52211 IFS=$as_save_IFS
52212
52213 fi
52214 fi
52215 RANLIB=$ac_cv_prog_RANLIB
52216 if test -n "$RANLIB"; then
52217   { echo "$as_me:$LINENO: result: $RANLIB" >&5
52218 echo "${ECHO_T}$RANLIB" >&6; }
52219 else
52220   { echo "$as_me:$LINENO: result: no" >&5
52221 echo "${ECHO_T}no" >&6; }
52222 fi
52223
52224
52225 fi
52226 if test -z "$ac_cv_prog_RANLIB"; then
52227   ac_ct_RANLIB=$RANLIB
52228   # Extract the first word of "ranlib", so it can be a program name with args.
52229 set dummy ranlib; ac_word=$2
52230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
52233   echo $ECHO_N "(cached) $ECHO_C" >&6
52234 else
52235   if test -n "$ac_ct_RANLIB"; then
52236   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
52237 else
52238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52239 for as_dir in $PATH
52240 do
52241   IFS=$as_save_IFS
52242   test -z "$as_dir" && as_dir=.
52243   for ac_exec_ext in '' $ac_executable_extensions; do
52244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52245     ac_cv_prog_ac_ct_RANLIB="ranlib"
52246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52247     break 2
52248   fi
52249 done
52250 done
52251 IFS=$as_save_IFS
52252
52253 fi
52254 fi
52255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
52256 if test -n "$ac_ct_RANLIB"; then
52257   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
52258 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
52259 else
52260   { echo "$as_me:$LINENO: result: no" >&5
52261 echo "${ECHO_T}no" >&6; }
52262 fi
52263
52264   if test "x$ac_ct_RANLIB" = x; then
52265     RANLIB=":"
52266   else
52267     case $cross_compiling:$ac_tool_warned in
52268 yes:)
52269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52270 whose name does not start with the host triplet.  If you think this
52271 configuration is useful to you, please write to autoconf@gnu.org." >&5
52272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52273 whose name does not start with the host triplet.  If you think this
52274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52275 ac_tool_warned=yes ;;
52276 esac
52277     RANLIB=$ac_ct_RANLIB
52278   fi
52279 else
52280   RANLIB="$ac_cv_prog_RANLIB"
52281 fi
52282
52283     # Find a good install program.  We prefer a C program (faster),
52284 # so one script is as good as another.  But avoid the broken or
52285 # incompatible versions:
52286 # SysV /etc/install, /usr/sbin/install
52287 # SunOS /usr/etc/install
52288 # IRIX /sbin/install
52289 # AIX /bin/install
52290 # AmigaOS /C/install, which installs bootblocks on floppy discs
52291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
52292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
52293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
52294 # OS/2's system install, which has a completely different semantic
52295 # ./install, which can be erroneously created by make from ./install.sh.
52296 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
52297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
52298 if test -z "$INSTALL"; then
52299 if test "${ac_cv_path_install+set}" = set; then
52300   echo $ECHO_N "(cached) $ECHO_C" >&6
52301 else
52302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52303 for as_dir in $PATH
52304 do
52305   IFS=$as_save_IFS
52306   test -z "$as_dir" && as_dir=.
52307   # Account for people who put trailing slashes in PATH elements.
52308 case $as_dir/ in
52309   ./ | .// | /cC/* | \
52310   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
52311   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
52312   /usr/ucb/* ) ;;
52313   *)
52314     # OSF1 and SCO ODT 3.0 have their own names for install.
52315     # Don't use installbsd from OSF since it installs stuff as root
52316     # by default.
52317     for ac_prog in ginstall scoinst install; do
52318       for ac_exec_ext in '' $ac_executable_extensions; do
52319         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
52320           if test $ac_prog = install &&
52321             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52322             # AIX install.  It has an incompatible calling convention.
52323             :
52324           elif test $ac_prog = install &&
52325             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52326             # program-specific install script used by HP pwplus--don't use.
52327             :
52328           else
52329             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
52330             break 3
52331           fi
52332         fi
52333       done
52334     done
52335     ;;
52336 esac
52337 done
52338 IFS=$as_save_IFS
52339
52340
52341 fi
52342   if test "${ac_cv_path_install+set}" = set; then
52343     INSTALL=$ac_cv_path_install
52344   else
52345     # As a last resort, use the slow shell script.  Don't cache a
52346     # value for INSTALL within a source directory, because that will
52347     # break other packages using the cache if that directory is
52348     # removed, or if the value is a relative name.
52349     INSTALL=$ac_install_sh
52350   fi
52351 fi
52352 { echo "$as_me:$LINENO: result: $INSTALL" >&5
52353 echo "${ECHO_T}$INSTALL" >&6; }
52354
52355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
52356 # It thinks the first close brace ends the variable substitution.
52357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
52358
52359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
52360
52361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
52362
52363     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
52364 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
52365 LN_S=$as_ln_s
52366 if test "$LN_S" = "ln -s"; then
52367   { echo "$as_me:$LINENO: result: yes" >&5
52368 echo "${ECHO_T}yes" >&6; }
52369 else
52370   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
52371 echo "${ECHO_T}no, using $LN_S" >&6; }
52372 fi
52373
52374
52375     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52376 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52377 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52378 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52379   echo $ECHO_N "(cached) $ECHO_C" >&6
52380 else
52381   cat >conftest.make <<\_ACEOF
52382 SHELL = /bin/sh
52383 all:
52384         @echo '@@@%%%=$(MAKE)=@@@%%%'
52385 _ACEOF
52386 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52387 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52388   *@@@%%%=?*=@@@%%%*)
52389     eval ac_cv_prog_make_${ac_make}_set=yes;;
52390   *)
52391     eval ac_cv_prog_make_${ac_make}_set=no;;
52392 esac
52393 rm -f conftest.make
52394 fi
52395 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52396   { echo "$as_me:$LINENO: result: yes" >&5
52397 echo "${ECHO_T}yes" >&6; }
52398   SET_MAKE=
52399 else
52400   { echo "$as_me:$LINENO: result: no" >&5
52401 echo "${ECHO_T}no" >&6; }
52402   SET_MAKE="MAKE=${MAKE-make}"
52403 fi
52404
52405
52406
52407     if test "x$SUNCXX" = "xyes"; then
52408                                 AR=$CXX
52409         AROPTIONS="-xar -o"
52410
52411     elif test "x$SGICC" = "xyes"; then
52412                 AR=$CXX
52413         AROPTIONS="-ar -o"
52414
52415     else
52416         if test -n "$ac_tool_prefix"; then
52417   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
52418 set dummy ${ac_tool_prefix}ar; ac_word=$2
52419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52421 if test "${ac_cv_prog_AR+set}" = set; then
52422   echo $ECHO_N "(cached) $ECHO_C" >&6
52423 else
52424   if test -n "$AR"; then
52425   ac_cv_prog_AR="$AR" # Let the user override the test.
52426 else
52427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52428 for as_dir in $PATH
52429 do
52430   IFS=$as_save_IFS
52431   test -z "$as_dir" && as_dir=.
52432   for ac_exec_ext in '' $ac_executable_extensions; do
52433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52434     ac_cv_prog_AR="${ac_tool_prefix}ar"
52435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52436     break 2
52437   fi
52438 done
52439 done
52440 IFS=$as_save_IFS
52441
52442 fi
52443 fi
52444 AR=$ac_cv_prog_AR
52445 if test -n "$AR"; then
52446   { echo "$as_me:$LINENO: result: $AR" >&5
52447 echo "${ECHO_T}$AR" >&6; }
52448 else
52449   { echo "$as_me:$LINENO: result: no" >&5
52450 echo "${ECHO_T}no" >&6; }
52451 fi
52452
52453
52454 fi
52455 if test -z "$ac_cv_prog_AR"; then
52456   ac_ct_AR=$AR
52457   # Extract the first word of "ar", so it can be a program name with args.
52458 set dummy ar; ac_word=$2
52459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52461 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
52462   echo $ECHO_N "(cached) $ECHO_C" >&6
52463 else
52464   if test -n "$ac_ct_AR"; then
52465   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
52466 else
52467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52468 for as_dir in $PATH
52469 do
52470   IFS=$as_save_IFS
52471   test -z "$as_dir" && as_dir=.
52472   for ac_exec_ext in '' $ac_executable_extensions; do
52473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52474     ac_cv_prog_ac_ct_AR="ar"
52475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52476     break 2
52477   fi
52478 done
52479 done
52480 IFS=$as_save_IFS
52481
52482 fi
52483 fi
52484 ac_ct_AR=$ac_cv_prog_ac_ct_AR
52485 if test -n "$ac_ct_AR"; then
52486   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
52487 echo "${ECHO_T}$ac_ct_AR" >&6; }
52488 else
52489   { echo "$as_me:$LINENO: result: no" >&5
52490 echo "${ECHO_T}no" >&6; }
52491 fi
52492
52493   if test "x$ac_ct_AR" = x; then
52494     AR="ar"
52495   else
52496     case $cross_compiling:$ac_tool_warned in
52497 yes:)
52498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52499 whose name does not start with the host triplet.  If you think this
52500 configuration is useful to you, please write to autoconf@gnu.org." >&5
52501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52502 whose name does not start with the host triplet.  If you think this
52503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52504 ac_tool_warned=yes ;;
52505 esac
52506     AR=$ac_ct_AR
52507   fi
52508 else
52509   AR="$ac_cv_prog_AR"
52510 fi
52511
52512         AROPTIONS=rcu
52513     fi
52514
52515
52516     if test -n "$ac_tool_prefix"; then
52517   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
52518 set dummy ${ac_tool_prefix}strip; ac_word=$2
52519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52521 if test "${ac_cv_prog_STRIP+set}" = set; then
52522   echo $ECHO_N "(cached) $ECHO_C" >&6
52523 else
52524   if test -n "$STRIP"; then
52525   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
52526 else
52527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52528 for as_dir in $PATH
52529 do
52530   IFS=$as_save_IFS
52531   test -z "$as_dir" && as_dir=.
52532   for ac_exec_ext in '' $ac_executable_extensions; do
52533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52534     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
52535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52536     break 2
52537   fi
52538 done
52539 done
52540 IFS=$as_save_IFS
52541
52542 fi
52543 fi
52544 STRIP=$ac_cv_prog_STRIP
52545 if test -n "$STRIP"; then
52546   { echo "$as_me:$LINENO: result: $STRIP" >&5
52547 echo "${ECHO_T}$STRIP" >&6; }
52548 else
52549   { echo "$as_me:$LINENO: result: no" >&5
52550 echo "${ECHO_T}no" >&6; }
52551 fi
52552
52553
52554 fi
52555 if test -z "$ac_cv_prog_STRIP"; then
52556   ac_ct_STRIP=$STRIP
52557   # Extract the first word of "strip", so it can be a program name with args.
52558 set dummy strip; ac_word=$2
52559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
52562   echo $ECHO_N "(cached) $ECHO_C" >&6
52563 else
52564   if test -n "$ac_ct_STRIP"; then
52565   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
52566 else
52567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52568 for as_dir in $PATH
52569 do
52570   IFS=$as_save_IFS
52571   test -z "$as_dir" && as_dir=.
52572   for ac_exec_ext in '' $ac_executable_extensions; do
52573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52574     ac_cv_prog_ac_ct_STRIP="strip"
52575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52576     break 2
52577   fi
52578 done
52579 done
52580 IFS=$as_save_IFS
52581
52582 fi
52583 fi
52584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
52585 if test -n "$ac_ct_STRIP"; then
52586   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
52587 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
52588 else
52589   { echo "$as_me:$LINENO: result: no" >&5
52590 echo "${ECHO_T}no" >&6; }
52591 fi
52592
52593   if test "x$ac_ct_STRIP" = x; then
52594     STRIP=":"
52595   else
52596     case $cross_compiling:$ac_tool_warned in
52597 yes:)
52598 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52599 whose name does not start with the host triplet.  If you think this
52600 configuration is useful to you, please write to autoconf@gnu.org." >&5
52601 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52602 whose name does not start with the host triplet.  If you think this
52603 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52604 ac_tool_warned=yes ;;
52605 esac
52606     STRIP=$ac_ct_STRIP
52607   fi
52608 else
52609   STRIP="$ac_cv_prog_STRIP"
52610 fi
52611
52612     if test -n "$ac_tool_prefix"; then
52613   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
52614 set dummy ${ac_tool_prefix}nm; ac_word=$2
52615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52617 if test "${ac_cv_prog_NM+set}" = set; then
52618   echo $ECHO_N "(cached) $ECHO_C" >&6
52619 else
52620   if test -n "$NM"; then
52621   ac_cv_prog_NM="$NM" # Let the user override the test.
52622 else
52623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52624 for as_dir in $PATH
52625 do
52626   IFS=$as_save_IFS
52627   test -z "$as_dir" && as_dir=.
52628   for ac_exec_ext in '' $ac_executable_extensions; do
52629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52630     ac_cv_prog_NM="${ac_tool_prefix}nm"
52631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52632     break 2
52633   fi
52634 done
52635 done
52636 IFS=$as_save_IFS
52637
52638 fi
52639 fi
52640 NM=$ac_cv_prog_NM
52641 if test -n "$NM"; then
52642   { echo "$as_me:$LINENO: result: $NM" >&5
52643 echo "${ECHO_T}$NM" >&6; }
52644 else
52645   { echo "$as_me:$LINENO: result: no" >&5
52646 echo "${ECHO_T}no" >&6; }
52647 fi
52648
52649
52650 fi
52651 if test -z "$ac_cv_prog_NM"; then
52652   ac_ct_NM=$NM
52653   # Extract the first word of "nm", so it can be a program name with args.
52654 set dummy nm; ac_word=$2
52655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52657 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
52658   echo $ECHO_N "(cached) $ECHO_C" >&6
52659 else
52660   if test -n "$ac_ct_NM"; then
52661   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
52662 else
52663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52664 for as_dir in $PATH
52665 do
52666   IFS=$as_save_IFS
52667   test -z "$as_dir" && as_dir=.
52668   for ac_exec_ext in '' $ac_executable_extensions; do
52669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52670     ac_cv_prog_ac_ct_NM="nm"
52671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52672     break 2
52673   fi
52674 done
52675 done
52676 IFS=$as_save_IFS
52677
52678 fi
52679 fi
52680 ac_ct_NM=$ac_cv_prog_ac_ct_NM
52681 if test -n "$ac_ct_NM"; then
52682   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
52683 echo "${ECHO_T}$ac_ct_NM" >&6; }
52684 else
52685   { echo "$as_me:$LINENO: result: no" >&5
52686 echo "${ECHO_T}no" >&6; }
52687 fi
52688
52689   if test "x$ac_ct_NM" = x; then
52690     NM=":"
52691   else
52692     case $cross_compiling:$ac_tool_warned in
52693 yes:)
52694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52695 whose name does not start with the host triplet.  If you think this
52696 configuration is useful to you, please write to autoconf@gnu.org." >&5
52697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52698 whose name does not start with the host triplet.  If you think this
52699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52700 ac_tool_warned=yes ;;
52701 esac
52702     NM=$ac_ct_NM
52703   fi
52704 else
52705   NM="$ac_cv_prog_NM"
52706 fi
52707
52708
52709         INSTALL_DIR="mkdir -p"
52710
52711
52712     LDFLAGS_GUI=
52713     case ${BAKEFILE_HOST} in
52714         *-*-cygwin* | *-*-mingw32* )
52715         LDFLAGS_GUI="-mwindows"
52716     esac
52717
52718
52719     fi
52720
52721         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
52722 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
52723 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
52724   echo $ECHO_N "(cached) $ECHO_C" >&6
52725 else
52726
52727         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
52728                 egrep -s GNU > /dev/null); then
52729             bakefile_cv_prog_makeisgnu="yes"
52730         else
52731             bakefile_cv_prog_makeisgnu="no"
52732         fi
52733
52734 fi
52735 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
52736 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
52737
52738     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
52739         IF_GNU_MAKE=""
52740     else
52741         IF_GNU_MAKE="#"
52742     fi
52743
52744
52745
52746     PLATFORM_UNIX=0
52747     PLATFORM_WIN32=0
52748     PLATFORM_MSDOS=0
52749     PLATFORM_MAC=0
52750     PLATFORM_MACOS=0
52751     PLATFORM_MACOSX=0
52752     PLATFORM_OS2=0
52753     PLATFORM_BEOS=0
52754
52755     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
52756         case "${BAKEFILE_HOST}" in
52757             *-*-mingw32* )
52758                 PLATFORM_WIN32=1
52759             ;;
52760             *-pc-msdosdjgpp )
52761                 PLATFORM_MSDOS=1
52762             ;;
52763             *-pc-os2_emx | *-pc-os2-emx )
52764                 PLATFORM_OS2=1
52765             ;;
52766             *-*-darwin* )
52767                 PLATFORM_MAC=1
52768                 PLATFORM_MACOSX=1
52769             ;;
52770             *-*-beos* )
52771                 PLATFORM_BEOS=1
52772             ;;
52773             powerpc-apple-macos* )
52774                 PLATFORM_MAC=1
52775                 PLATFORM_MACOS=1
52776             ;;
52777             * )
52778                 PLATFORM_UNIX=1
52779             ;;
52780         esac
52781     else
52782         case "$BAKEFILE_FORCE_PLATFORM" in
52783             win32 )
52784                 PLATFORM_WIN32=1
52785             ;;
52786             msdos )
52787                 PLATFORM_MSDOS=1
52788             ;;
52789             os2 )
52790                 PLATFORM_OS2=1
52791             ;;
52792             darwin )
52793                 PLATFORM_MAC=1
52794                 PLATFORM_MACOSX=1
52795             ;;
52796             unix )
52797                 PLATFORM_UNIX=1
52798             ;;
52799             beos )
52800                 PLATFORM_BEOS=1
52801             ;;
52802             * )
52803                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
52804 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
52805    { (exit 1); exit 1; }; }
52806             ;;
52807         esac
52808     fi
52809
52810
52811
52812
52813
52814
52815
52816
52817
52818
52819
52820     # Check whether --enable-omf was given.
52821 if test "${enable_omf+set}" = set; then
52822   enableval=$enable_omf; bk_os2_use_omf="$enableval"
52823 fi
52824
52825
52826     case "${BAKEFILE_HOST}" in
52827       *-*-darwin* )
52828                         if test "x$GCC" = "xyes"; then
52829             CFLAGS="$CFLAGS -fno-common"
52830             CXXFLAGS="$CXXFLAGS -fno-common"
52831         fi
52832         if test "x$XLCC" = "xyes"; then
52833             CFLAGS="$CFLAGS -qnocommon"
52834             CXXFLAGS="$CXXFLAGS -qnocommon"
52835         fi
52836         ;;
52837
52838       *-pc-os2_emx | *-pc-os2-emx )
52839         if test "x$bk_os2_use_omf" = "xyes" ; then
52840             AR=emxomfar
52841             RANLIB=:
52842             LDFLAGS="-Zomf $LDFLAGS"
52843             CFLAGS="-Zomf $CFLAGS"
52844             CXXFLAGS="-Zomf $CXXFLAGS"
52845             OS2_LIBEXT="lib"
52846         else
52847             OS2_LIBEXT="a"
52848         fi
52849         ;;
52850
52851       i*86-*-beos* )
52852         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
52853         ;;
52854     esac
52855
52856
52857     SO_SUFFIX="so"
52858     SO_SUFFIX_MODULE="so"
52859     EXEEXT=""
52860     LIBPREFIX="lib"
52861     LIBEXT=".a"
52862     DLLPREFIX="lib"
52863     DLLPREFIX_MODULE=""
52864     DLLIMP_SUFFIX=""
52865     dlldir="$libdir"
52866
52867     case "${BAKEFILE_HOST}" in
52868                         ia64-hp-hpux* )
52869         ;;
52870         *-hp-hpux* )
52871             SO_SUFFIX="sl"
52872             SO_SUFFIX_MODULE="sl"
52873         ;;
52874         *-*-aix* )
52875                                                                         SO_SUFFIX="a"
52876             SO_SUFFIX_MODULE="a"
52877         ;;
52878         *-*-cygwin* )
52879             SO_SUFFIX="dll"
52880             SO_SUFFIX_MODULE="dll"
52881             DLLIMP_SUFFIX="dll.a"
52882             EXEEXT=".exe"
52883             DLLPREFIX="cyg"
52884             dlldir="$bindir"
52885         ;;
52886         *-*-mingw32* )
52887             SO_SUFFIX="dll"
52888             SO_SUFFIX_MODULE="dll"
52889             DLLIMP_SUFFIX="dll.a"
52890             EXEEXT=".exe"
52891             DLLPREFIX=""
52892             dlldir="$bindir"
52893         ;;
52894         *-pc-msdosdjgpp )
52895             EXEEXT=".exe"
52896             DLLPREFIX=""
52897             dlldir="$bindir"
52898         ;;
52899         *-pc-os2_emx | *-pc-os2-emx )
52900             SO_SUFFIX="dll"
52901             SO_SUFFIX_MODULE="dll"
52902             DLLIMP_SUFFIX=$OS2_LIBEXT
52903             EXEEXT=".exe"
52904             DLLPREFIX=""
52905             LIBPREFIX=""
52906             LIBEXT=".$OS2_LIBEXT"
52907             dlldir="$bindir"
52908         ;;
52909         *-*-darwin* )
52910             SO_SUFFIX="dylib"
52911             SO_SUFFIX_MODULE="bundle"
52912         ;;
52913     esac
52914
52915     if test "x$DLLIMP_SUFFIX" = "x" ; then
52916         DLLIMP_SUFFIX="$SO_SUFFIX"
52917     fi
52918
52919
52920
52921
52922
52923
52924
52925
52926
52927
52928
52929
52930         PIC_FLAG=""
52931     if test "x$GCC" = "xyes"; then
52932                 PIC_FLAG="-fPIC"
52933     fi
52934
52935         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
52936     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
52937     WINDOWS_IMPLIB=0
52938
52939     case "${BAKEFILE_HOST}" in
52940       *-hp-hpux* )
52941                 if test "x$GCC" != "xyes"; then
52942                         LDFLAGS="$LDFLAGS -L/usr/lib"
52943
52944             SHARED_LD_CC="${CC} -b -o"
52945             SHARED_LD_CXX="${CXX} -b -o"
52946             PIC_FLAG="+Z"
52947         fi
52948       ;;
52949
52950       *-*-linux* )
52951                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
52952             PIC_FLAG="-KPIC"
52953         elif test "x$SUNCXX" = "xyes"; then
52954             SHARED_LD_CC="${CC} -G -o"
52955             SHARED_LD_CXX="${CXX} -G -o"
52956             PIC_FLAG="-KPIC"
52957         fi
52958       ;;
52959
52960       *-*-solaris2* )
52961         if test "x$SUNCXX" = xyes ; then
52962             SHARED_LD_CC="${CC} -G -o"
52963             SHARED_LD_CXX="${CXX} -G -o"
52964             PIC_FLAG="-KPIC"
52965         fi
52966       ;;
52967
52968       *-*-darwin* )
52969
52970 D='$'
52971 cat <<EOF >shared-ld-sh
52972 #!/bin/sh
52973 #-----------------------------------------------------------------------------
52974 #-- Name:        distrib/mac/shared-ld-sh
52975 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
52976 #-- Author:      Gilles Depeyrot
52977 #-- Copyright:   (c) 2002 Gilles Depeyrot
52978 #-- Licence:     any use permitted
52979 #-----------------------------------------------------------------------------
52980
52981 verbose=0
52982 args=""
52983 objects=""
52984 linking_flag="-dynamiclib"
52985 ldargs="-r -keep_private_externs -nostdlib"
52986
52987 if test "x${D}CXX" = "x"; then
52988     CXX="c++"
52989 fi
52990
52991 while test ${D}# -gt 0; do
52992     case ${D}1 in
52993
52994        -v)
52995         verbose=1
52996         ;;
52997
52998        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
52999         # collect these options and values
53000         args="${D}{args} ${D}1 ${D}2"
53001         shift
53002         ;;
53003
53004        -arch|-isysroot)
53005         # collect these options and values
53006         ldargs="${D}{ldargs} ${D}1 ${D}2"
53007         shift
53008         ;;
53009
53010        -s|-Wl,*)
53011         # collect these load args
53012         ldargs="${D}{ldargs} ${D}1"
53013         ;;
53014
53015        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
53016         # collect these options
53017         args="${D}{args} ${D}1"
53018         ;;
53019
53020        -dynamiclib|-bundle)
53021         linking_flag="${D}1"
53022         ;;
53023
53024        -*)
53025         echo "shared-ld: unhandled option '${D}1'"
53026         exit 1
53027         ;;
53028
53029         *.o | *.a | *.dylib)
53030         # collect object files
53031         objects="${D}{objects} ${D}1"
53032         ;;
53033
53034         *)
53035         echo "shared-ld: unhandled argument '${D}1'"
53036         exit 1
53037         ;;
53038
53039     esac
53040     shift
53041 done
53042
53043 status=0
53044
53045 #
53046 # Link one module containing all the others
53047 #
53048 if test ${D}{verbose} = 1; then
53049     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
53050 fi
53051 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
53052 status=${D}?
53053
53054 #
53055 # Link the shared library from the single module created, but only if the
53056 # previous command didn't fail:
53057 #
53058 if test ${D}{status} = 0; then
53059     if test ${D}{verbose} = 1; then
53060         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
53061     fi
53062     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
53063     status=${D}?
53064 fi
53065
53066 #
53067 # Remove intermediate module
53068 #
53069 rm -f master.${D}${D}.o
53070
53071 exit ${D}status
53072 EOF
53073
53074         chmod +x shared-ld-sh
53075
53076         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
53077         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
53078
53079
53080                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
53081 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
53082 if test "${bakefile_cv_gcc31+set}" = set; then
53083   echo $ECHO_N "(cached) $ECHO_C" >&6
53084 else
53085
53086            cat >conftest.$ac_ext <<_ACEOF
53087 /* confdefs.h.  */
53088 _ACEOF
53089 cat confdefs.h >>conftest.$ac_ext
53090 cat >>conftest.$ac_ext <<_ACEOF
53091 /* end confdefs.h.  */
53092
53093 int
53094 main ()
53095 {
53096
53097                    #if (__GNUC__ < 3) || \
53098                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
53099                        This is old gcc
53100                    #endif
53101
53102   ;
53103   return 0;
53104 }
53105 _ACEOF
53106 rm -f conftest.$ac_objext
53107 if { (ac_try="$ac_compile"
53108 case "(($ac_try" in
53109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53110   *) ac_try_echo=$ac_try;;
53111 esac
53112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53113   (eval "$ac_compile") 2>conftest.er1
53114   ac_status=$?
53115   grep -v '^ *+' conftest.er1 >conftest.err
53116   rm -f conftest.er1
53117   cat conftest.err >&5
53118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53119   (exit $ac_status); } && {
53120          test -z "$ac_c_werror_flag" ||
53121          test ! -s conftest.err
53122        } && test -s conftest.$ac_objext; then
53123
53124                    bakefile_cv_gcc31=yes
53125
53126 else
53127   echo "$as_me: failed program was:" >&5
53128 sed 's/^/| /' conftest.$ac_ext >&5
53129
53130
53131                    bakefile_cv_gcc31=no
53132
53133
53134 fi
53135
53136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53137
53138 fi
53139 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
53140 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
53141         if test "$bakefile_cv_gcc31" = "no"; then
53142                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
53143             SHARED_LD_CXX="$SHARED_LD_CC"
53144         else
53145                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
53146             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
53147         fi
53148
53149         if test "x$GCC" == "xyes"; then
53150             PIC_FLAG="-dynamic -fPIC"
53151         fi
53152         if test "x$XLCC" = "xyes"; then
53153             PIC_FLAG="-dynamic -DPIC"
53154         fi
53155       ;;
53156
53157       *-*-aix* )
53158         if test "x$GCC" = "xyes"; then
53159                                                             PIC_FLAG=""
53160
53161                                                                                     case "${BAKEFILE_HOST}" in
53162                 *-*-aix5* )
53163                     LD_EXPFULL="-Wl,-bexpfull"
53164                     ;;
53165             esac
53166
53167             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
53168             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
53169         else
53170                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
53171 set dummy makeC++SharedLib; ac_word=$2
53172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53174 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
53175   echo $ECHO_N "(cached) $ECHO_C" >&6
53176 else
53177   if test -n "$AIX_CXX_LD"; then
53178   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
53179 else
53180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53181 for as_dir in $PATH
53182 do
53183   IFS=$as_save_IFS
53184   test -z "$as_dir" && as_dir=.
53185   for ac_exec_ext in '' $ac_executable_extensions; do
53186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53187     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
53188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53189     break 2
53190   fi
53191 done
53192 done
53193 IFS=$as_save_IFS
53194
53195   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
53196 fi
53197 fi
53198 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
53199 if test -n "$AIX_CXX_LD"; then
53200   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
53201 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
53202 else
53203   { echo "$as_me:$LINENO: result: no" >&5
53204 echo "${ECHO_T}no" >&6; }
53205 fi
53206
53207
53208             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
53209             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
53210         fi
53211       ;;
53212
53213       *-*-beos* )
53214                         SHARED_LD_CC="${LD} -nostart -o"
53215         SHARED_LD_CXX="${LD} -nostart -o"
53216       ;;
53217
53218       *-*-irix* )
53219                 if test "x$GCC" != "xyes"; then
53220             PIC_FLAG="-KPIC"
53221         fi
53222       ;;
53223
53224       *-*-cygwin* | *-*-mingw32* )
53225         PIC_FLAG=""
53226         SHARED_LD_CC="\$(CC) -shared -o"
53227         SHARED_LD_CXX="\$(CXX) -shared -o"
53228         WINDOWS_IMPLIB=1
53229       ;;
53230
53231       *-pc-os2_emx | *-pc-os2-emx )
53232         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53233         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53234         PIC_FLAG=""
53235
53236 D='$'
53237 cat <<EOF >dllar.sh
53238 #!/bin/sh
53239 #
53240 # dllar - a tool to build both a .dll and an .a file
53241 # from a set of object (.o) files for EMX/OS2.
53242 #
53243 #  Written by Andrew Zabolotny, bit@freya.etu.ru
53244 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
53245 #
53246 #  This script will accept a set of files on the command line.
53247 #  All the public symbols from the .o files will be exported into
53248 #  a .DEF file, then linker will be run (through gcc) against them to
53249 #  build a shared library consisting of all given .o files. All libraries
53250 #  (.a) will be first decompressed into component .o files then act as
53251 #  described above. You can optionally give a description (-d "description")
53252 #  which will be put into .DLL. To see the list of accepted options (as well
53253 #  as command-line format) simply run this program without options. The .DLL
53254 #  is built to be imported by name (there is no guarantee that new versions
53255 #  of the library you build will have same ordinals for same symbols).
53256 #
53257 #  dllar is free software; you can redistribute it and/or modify
53258 #  it under the terms of the GNU General Public License as published by
53259 #  the Free Software Foundation; either version 2, or (at your option)
53260 #  any later version.
53261 #
53262 #  dllar is distributed in the hope that it will be useful,
53263 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
53264 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53265 #  GNU General Public License for more details.
53266 #
53267 #  You should have received a copy of the GNU General Public License
53268 #  along with dllar; see the file COPYING.  If not, write to the Free
53269 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
53270 #  02111-1307, USA.
53271
53272 # To successfuly run this program you will need:
53273 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
53274 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
53275 #  - gcc
53276 #    (used to build the .dll)
53277 #  - emxexp
53278 #    (used to create .def file from .o files)
53279 #  - emximp
53280 #    (used to create .a file from .def file)
53281 #  - GNU text utilites (cat, sort, uniq)
53282 #    used to process emxexp output
53283 #  - GNU file utilities (mv, rm)
53284 #  - GNU sed
53285 #  - lxlite (optional, see flag below)
53286 #    (used for general .dll cleanup)
53287 #
53288
53289 flag_USE_LXLITE=1;
53290
53291 #
53292 # helper functions
53293 # basnam, variant of basename, which does _not_ remove the path, _iff_
53294 #                              second argument (suffix to remove) is given
53295 basnam(){
53296     case ${D}# in
53297     1)
53298         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
53299         ;;
53300     2)
53301         echo ${D}1 | sed 's/'${D}2'${D}//'
53302         ;;
53303     *)
53304         echo "error in basnam ${D}*"
53305         exit 8
53306         ;;
53307     esac
53308 }
53309
53310 # Cleanup temporary files and output
53311 CleanUp() {
53312     cd ${D}curDir
53313     for i in ${D}inputFiles ; do
53314         case ${D}i in
53315         *!)
53316             rm -rf \`basnam ${D}i !\`
53317             ;;
53318         *)
53319             ;;
53320         esac
53321     done
53322
53323     # Kill result in case of failure as there is just to many stupid make/nmake
53324     # things out there which doesn't do this.
53325     if [ ${D}# -eq 0 ]; then
53326         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
53327     fi
53328 }
53329
53330 # Print usage and exit script with rc=1.
53331 PrintHelp() {
53332  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
53333  echo '       [-name-mangler-script script.sh]'
53334  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
53335  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
53336  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
53337  echo '       [*.o] [*.a]'
53338  echo '*> "output_file" should have no extension.'
53339  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
53340  echo '   The import library name is derived from this and is set to "name".a,'
53341  echo '   unless overridden by -import'
53342  echo '*> "importlib_name" should have no extension.'
53343  echo '   If it has the .o, or .a extension, it is automatically removed.'
53344  echo '   This name is used as the import library name and may be longer and'
53345  echo '   more descriptive than the DLL name which has to follow the old '
53346  echo '   8.3 convention of FAT.'
53347  echo '*> "script.sh may be given to override the output_file name by a'
53348  echo '   different name. It is mainly useful if the regular make process'
53349  echo '   of some package does not take into account OS/2 restriction of'
53350  echo '   DLL name lengths. It takes the importlib name as input and is'
53351  echo '   supposed to procude a shorter name as output. The script should'
53352  echo '   expect to get importlib_name without extension and should produce'
53353  echo '   a (max.) 8 letter name without extension.'
53354  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
53355  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
53356  echo '   These flags will be put at the start of GCC command line.'
53357  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
53358  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
53359  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
53360  echo '   If the last character of a symbol is "*", all symbols beginning'
53361  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
53362  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
53363  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
53364  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
53365  echo '   C runtime DLLs.'
53366  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
53367  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
53368  echo '   unchanged to GCC at the end of command line.'
53369  echo '*> If you create a DLL from a library and you do not specify -o,'
53370  echo '   the basename for DLL and import library will be set to library name,'
53371  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
53372  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
53373  echo '   library will be renamed into gcc_s.a.'
53374  echo '--------'
53375  echo 'Example:'
53376  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
53377  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
53378  CleanUp
53379  exit 1
53380 }
53381
53382 # Execute a command.
53383 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
53384 # @Uses    Whatever CleanUp() uses.
53385 doCommand() {
53386     echo "${D}*"
53387     eval ${D}*
53388     rcCmd=${D}?
53389
53390     if [ ${D}rcCmd -ne 0 ]; then
53391         echo "command failed, exit code="${D}rcCmd
53392         CleanUp
53393         exit ${D}rcCmd
53394     fi
53395 }
53396
53397 # main routine
53398 # setup globals
53399 cmdLine=${D}*
53400 outFile=""
53401 outimpFile=""
53402 inputFiles=""
53403 renameScript=""
53404 description=""
53405 CC=gcc.exe
53406 CFLAGS="-s -Zcrtdll"
53407 EXTRA_CFLAGS=""
53408 EXPORT_BY_ORDINALS=0
53409 exclude_symbols=""
53410 library_flags=""
53411 curDir=\`pwd\`
53412 curDirS=curDir
53413 case ${D}curDirS in
53414 */)
53415   ;;
53416 *)
53417   curDirS=${D}{curDirS}"/"
53418   ;;
53419 esac
53420 # Parse commandline
53421 libsToLink=0
53422 omfLinking=0
53423 while [ ${D}1 ]; do
53424     case ${D}1 in
53425     -ord*)
53426         EXPORT_BY_ORDINALS=1;
53427         ;;
53428     -o*)
53429         shift
53430         outFile=${D}1
53431         ;;
53432     -i*)
53433         shift
53434         outimpFile=${D}1
53435         ;;
53436     -name-mangler-script)
53437         shift
53438         renameScript=${D}1
53439         ;;
53440     -d*)
53441         shift
53442         description=${D}1
53443         ;;
53444     -f*)
53445         shift
53446         CFLAGS=${D}1
53447         ;;
53448     -c*)
53449         shift
53450         CC=${D}1
53451         ;;
53452     -h*)
53453         PrintHelp
53454         ;;
53455     -ex*)
53456         shift
53457         exclude_symbols=${D}{exclude_symbols}${D}1" "
53458         ;;
53459     -libf*)
53460         shift
53461         library_flags=${D}{library_flags}${D}1" "
53462         ;;
53463     -nocrt*)
53464         CFLAGS="-s"
53465         ;;
53466     -nolxl*)
53467         flag_USE_LXLITE=0
53468         ;;
53469     -* | /*)
53470         case ${D}1 in
53471         -L* | -l*)
53472             libsToLink=1
53473             ;;
53474         -Zomf)
53475             omfLinking=1
53476             ;;
53477         *)
53478             ;;
53479         esac
53480         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53481         ;;
53482     *.dll)
53483         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
53484         if [ ${D}omfLinking -eq 1 ]; then
53485             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
53486         else
53487             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
53488         fi
53489         ;;
53490     *)
53491         found=0;
53492         if [ ${D}libsToLink -ne 0 ]; then
53493             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53494         else
53495             for file in ${D}1 ; do
53496                 if [ -f ${D}file ]; then
53497                     inputFiles="${D}{inputFiles} ${D}file"
53498                     found=1
53499                 fi
53500             done
53501             if [ ${D}found -eq 0 ]; then
53502                 echo "ERROR: No file(s) found: "${D}1
53503                 exit 8
53504             fi
53505         fi
53506       ;;
53507     esac
53508     shift
53509 done # iterate cmdline words
53510
53511 #
53512 if [ -z "${D}inputFiles" ]; then
53513     echo "dllar: no input files"
53514     PrintHelp
53515 fi
53516
53517 # Now extract all .o files from .a files
53518 newInputFiles=""
53519 for file in ${D}inputFiles ; do
53520     case ${D}file in
53521     *.a | *.lib)
53522         case ${D}file in
53523         *.a)
53524             suffix=".a"
53525             AR="ar"
53526             ;;
53527         *.lib)
53528             suffix=".lib"
53529             AR="emxomfar"
53530             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
53531             ;;
53532         *)
53533             ;;
53534         esac
53535         dirname=\`basnam ${D}file ${D}suffix\`"_%"
53536         mkdir ${D}dirname
53537         if [ ${D}? -ne 0 ]; then
53538             echo "Failed to create subdirectory ./${D}dirname"
53539             CleanUp
53540             exit 8;
53541         fi
53542         # Append '!' to indicate archive
53543         newInputFiles="${D}newInputFiles ${D}{dirname}!"
53544         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
53545         cd ${D}curDir
53546         found=0;
53547         for subfile in ${D}dirname/*.o* ; do
53548             if [ -f ${D}subfile ]; then
53549                 found=1
53550                 if [ -s ${D}subfile ]; then
53551                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
53552                     newInputFiles="${D}newInputFiles ${D}subfile"
53553                 fi
53554             fi
53555         done
53556         if [ ${D}found -eq 0 ]; then
53557             echo "WARNING: there are no files in archive \\'${D}file\\'"
53558         fi
53559         ;;
53560     *)
53561         newInputFiles="${D}{newInputFiles} ${D}file"
53562         ;;
53563     esac
53564 done
53565 inputFiles="${D}newInputFiles"
53566
53567 # Output filename(s).
53568 do_backup=0;
53569 if [ -z ${D}outFile ]; then
53570     do_backup=1;
53571     set outFile ${D}inputFiles; outFile=${D}2
53572 fi
53573
53574 # If it is an archive, remove the '!' and the '_%' suffixes
53575 case ${D}outFile in
53576 *_%!)
53577     outFile=\`basnam ${D}outFile _%!\`
53578     ;;
53579 *)
53580     ;;
53581 esac
53582 case ${D}outFile in
53583 *.dll)
53584     outFile=\`basnam ${D}outFile .dll\`
53585     ;;
53586 *.DLL)
53587     outFile=\`basnam ${D}outFile .DLL\`
53588     ;;
53589 *.o)
53590     outFile=\`basnam ${D}outFile .o\`
53591     ;;
53592 *.obj)
53593     outFile=\`basnam ${D}outFile .obj\`
53594     ;;
53595 *.a)
53596     outFile=\`basnam ${D}outFile .a\`
53597     ;;
53598 *.lib)
53599     outFile=\`basnam ${D}outFile .lib\`
53600     ;;
53601 *)
53602     ;;
53603 esac
53604 case ${D}outimpFile in
53605 *.a)
53606     outimpFile=\`basnam ${D}outimpFile .a\`
53607     ;;
53608 *.lib)
53609     outimpFile=\`basnam ${D}outimpFile .lib\`
53610     ;;
53611 *)
53612     ;;
53613 esac
53614 if [ -z ${D}outimpFile ]; then
53615     outimpFile=${D}outFile
53616 fi
53617 defFile="${D}{outFile}.def"
53618 arcFile="${D}{outimpFile}.a"
53619 arcFile2="${D}{outimpFile}.lib"
53620
53621 #create ${D}dllFile as something matching 8.3 restrictions,
53622 if [ -z ${D}renameScript ] ; then
53623     dllFile="${D}outFile"
53624 else
53625     dllFile=\`${D}renameScript ${D}outimpFile\`
53626 fi
53627
53628 if [ ${D}do_backup -ne 0 ] ; then
53629     if [ -f ${D}arcFile ] ; then
53630         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
53631     fi
53632     if [ -f ${D}arcFile2 ] ; then
53633         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
53634     fi
53635 fi
53636
53637 # Extract public symbols from all the object files.
53638 tmpdefFile=${D}{defFile}_%
53639 rm -f ${D}tmpdefFile
53640 for file in ${D}inputFiles ; do
53641     case ${D}file in
53642     *!)
53643         ;;
53644     *)
53645         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
53646         ;;
53647     esac
53648 done
53649
53650 # Create the def file.
53651 rm -f ${D}defFile
53652 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
53653 dllFile="${D}{dllFile}.dll"
53654 if [ ! -z ${D}description ]; then
53655     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
53656 fi
53657 echo "EXPORTS" >> ${D}defFile
53658
53659 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
53660 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
53661
53662 # Checks if the export is ok or not.
53663 for word in ${D}exclude_symbols; do
53664     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
53665     mv ${D}{tmpdefFile}% ${D}tmpdefFile
53666 done
53667
53668
53669 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53670     sed "=" < ${D}tmpdefFile | \\
53671     sed '
53672       N
53673       : loop
53674       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
53675       t loop
53676     ' > ${D}{tmpdefFile}%
53677     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
53678 else
53679     rm -f ${D}{tmpdefFile}%
53680 fi
53681 cat ${D}tmpdefFile >> ${D}defFile
53682 rm -f ${D}tmpdefFile
53683
53684 # Do linking, create implib, and apply lxlite.
53685 gccCmdl="";
53686 for file in ${D}inputFiles ; do
53687     case ${D}file in
53688     *!)
53689         ;;
53690     *)
53691         gccCmdl="${D}gccCmdl ${D}file"
53692         ;;
53693     esac
53694 done
53695 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
53696 touch "${D}{outFile}.dll"
53697
53698 doCommand "emximp -o ${D}arcFile ${D}defFile"
53699 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
53700     add_flags="";
53701     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53702         add_flags="-ynd"
53703     fi
53704     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
53705 fi
53706 doCommand "emxomf -s -l ${D}arcFile"
53707
53708 # Successful exit.
53709 CleanUp 1
53710 exit 0
53711 EOF
53712
53713         chmod +x dllar.sh
53714       ;;
53715
53716       powerpc-apple-macos* | \
53717       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
53718       *-*-mirbsd* | \
53719       *-*-sunos4* | \
53720       *-*-osf* | \
53721       *-*-dgux5* | \
53722       *-*-sysv5* | \
53723       *-pc-msdosdjgpp )
53724               ;;
53725
53726       *)
53727         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
53728 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
53729    { (exit 1); exit 1; }; }
53730     esac
53731
53732     if test "x$PIC_FLAG" != "x" ; then
53733         PIC_FLAG="$PIC_FLAG -DPIC"
53734     fi
53735
53736     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
53737         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
53738     fi
53739     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
53740         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
53741     fi
53742
53743
53744
53745
53746
53747
53748
53749
53750
53751     USE_SOVERSION=0
53752     USE_SOVERLINUX=0
53753     USE_SOVERSOLARIS=0
53754     USE_SOVERCYGWIN=0
53755     USE_SOTWOSYMLINKS=0
53756     USE_MACVERSION=0
53757     SONAME_FLAG=
53758
53759     case "${BAKEFILE_HOST}" in
53760       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
53761       *-*-k*bsd*-gnu | *-*-mirbsd* )
53762         if test "x$SUNCXX" = "xyes"; then
53763             SONAME_FLAG="-h "
53764         else
53765             SONAME_FLAG="-Wl,-soname,"
53766         fi
53767         USE_SOVERSION=1
53768         USE_SOVERLINUX=1
53769         USE_SOTWOSYMLINKS=1
53770       ;;
53771
53772       *-*-solaris2* )
53773         SONAME_FLAG="-h "
53774         USE_SOVERSION=1
53775         USE_SOVERSOLARIS=1
53776       ;;
53777
53778       *-*-darwin* )
53779         USE_MACVERSION=1
53780         USE_SOVERSION=1
53781         USE_SOTWOSYMLINKS=1
53782       ;;
53783
53784       *-*-cygwin* )
53785         USE_SOVERSION=1
53786         USE_SOVERCYGWIN=1
53787       ;;
53788     esac
53789
53790
53791
53792
53793
53794
53795
53796
53797
53798
53799     # Check whether --enable-dependency-tracking was given.
53800 if test "${enable_dependency_tracking+set}" = set; then
53801   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
53802 fi
53803
53804
53805     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
53806 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
53807
53808     BK_DEPS=""
53809     if test "x$bk_use_trackdeps" = "xno" ; then
53810         DEPS_TRACKING=0
53811         { echo "$as_me:$LINENO: result: disabled" >&5
53812 echo "${ECHO_T}disabled" >&6; }
53813     else
53814         DEPS_TRACKING=1
53815
53816         if test "x$GCC" = "xyes"; then
53817             DEPSMODE=gcc
53818             DEPSFLAG="-MMD"
53819             { echo "$as_me:$LINENO: result: gcc" >&5
53820 echo "${ECHO_T}gcc" >&6; }
53821         elif test "x$MWCC" = "xyes"; then
53822             DEPSMODE=mwcc
53823             DEPSFLAG="-MM"
53824             { echo "$as_me:$LINENO: result: mwcc" >&5
53825 echo "${ECHO_T}mwcc" >&6; }
53826         elif test "x$SUNCC" = "xyes"; then
53827             DEPSMODE=unixcc
53828             DEPSFLAG="-xM1"
53829             { echo "$as_me:$LINENO: result: Sun cc" >&5
53830 echo "${ECHO_T}Sun cc" >&6; }
53831         elif test "x$SGICC" = "xyes"; then
53832             DEPSMODE=unixcc
53833             DEPSFLAG="-M"
53834             { echo "$as_me:$LINENO: result: SGI cc" >&5
53835 echo "${ECHO_T}SGI cc" >&6; }
53836         elif test "x$HPCC" = "xyes"; then
53837             DEPSMODE=unixcc
53838             DEPSFLAG="+make"
53839             { echo "$as_me:$LINENO: result: HP cc" >&5
53840 echo "${ECHO_T}HP cc" >&6; }
53841         elif test "x$COMPAQCC" = "xyes"; then
53842             DEPSMODE=gcc
53843             DEPSFLAG="-MD"
53844             { echo "$as_me:$LINENO: result: Compaq cc" >&5
53845 echo "${ECHO_T}Compaq cc" >&6; }
53846         else
53847             DEPS_TRACKING=0
53848             { echo "$as_me:$LINENO: result: none" >&5
53849 echo "${ECHO_T}none" >&6; }
53850         fi
53851
53852         if test $DEPS_TRACKING = 1 ; then
53853
53854 D='$'
53855 cat <<EOF >bk-deps
53856 #!/bin/sh
53857
53858 # This script is part of Bakefile (http://www.bakefile.org) autoconf
53859 # script. It is used to track C/C++ files dependencies in portable way.
53860 #
53861 # Permission is given to use this file in any way.
53862
53863 DEPSMODE=${DEPSMODE}
53864 DEPSFLAG="${DEPSFLAG}"
53865 DEPSDIRBASE=.deps
53866
53867 if test ${D}DEPSMODE = gcc ; then
53868     ${D}* ${D}{DEPSFLAG}
53869     status=${D}?
53870
53871     # determine location of created files:
53872     while test ${D}# -gt 0; do
53873         case "${D}1" in
53874             -o )
53875                 shift
53876                 objfile=${D}1
53877             ;;
53878             -* )
53879             ;;
53880             * )
53881                 srcfile=${D}1
53882             ;;
53883         esac
53884         shift
53885     done
53886     objfilebase=\`basename ${D}objfile\`
53887     builddir=\`dirname ${D}objfile\`
53888     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
53889     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
53890     depsdir=${D}builddir/${D}DEPSDIRBASE
53891     mkdir -p ${D}depsdir
53892
53893     # if the compiler failed, we're done:
53894     if test ${D}{status} != 0 ; then
53895         rm -f ${D}depfile
53896         exit ${D}{status}
53897     fi
53898
53899     # move created file to the location we want it in:
53900     if test -f ${D}depfile ; then
53901         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53902         rm -f ${D}depfile
53903     else
53904         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
53905         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
53906         if test ! -f ${D}depfile ; then
53907             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
53908             depfile="${D}objfile.d"
53909         fi
53910         if test -f ${D}depfile ; then
53911             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53912             rm -f ${D}depfile
53913         fi
53914     fi
53915     exit 0
53916
53917 elif test ${D}DEPSMODE = mwcc ; then
53918     ${D}* || exit ${D}?
53919     # Run mwcc again with -MM and redirect into the dep file we want
53920     # NOTE: We can't use shift here because we need ${D}* to be valid
53921     prevarg=
53922     for arg in ${D}* ; do
53923         if test "${D}prevarg" = "-o"; then
53924             objfile=${D}arg
53925         else
53926             case "${D}arg" in
53927                 -* )
53928                 ;;
53929                 * )
53930                     srcfile=${D}arg
53931                 ;;
53932             esac
53933         fi
53934         prevarg="${D}arg"
53935     done
53936
53937     objfilebase=\`basename ${D}objfile\`
53938     builddir=\`dirname ${D}objfile\`
53939     depsdir=${D}builddir/${D}DEPSDIRBASE
53940     mkdir -p ${D}depsdir
53941
53942     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
53943     exit 0
53944
53945 elif test ${D}DEPSMODE = unixcc; then
53946     ${D}* || exit ${D}?
53947     # Run compiler again with deps flag and redirect into the dep file.
53948     # It doesn't work if the '-o FILE' option is used, but without it the
53949     # dependency file will contain the wrong name for the object. So it is
53950     # removed from the command line, and the dep file is fixed with sed.
53951     cmd=""
53952     while test ${D}# -gt 0; do
53953         case "${D}1" in
53954             -o )
53955                 shift
53956                 objfile=${D}1
53957             ;;
53958             * )
53959                 eval arg${D}#=\\${D}1
53960                 cmd="${D}cmd \\${D}arg${D}#"
53961             ;;
53962         esac
53963         shift
53964     done
53965
53966     objfilebase=\`basename ${D}objfile\`
53967     builddir=\`dirname ${D}objfile\`
53968     depsdir=${D}builddir/${D}DEPSDIRBASE
53969     mkdir -p ${D}depsdir
53970
53971     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
53972     exit 0
53973
53974 else
53975     ${D}*
53976     exit ${D}?
53977 fi
53978 EOF
53979
53980             chmod +x bk-deps
53981                                     BK_DEPS="`pwd`/bk-deps"
53982         fi
53983     fi
53984
53985
53986
53987
53988
53989     case ${BAKEFILE_HOST} in
53990         *-*-cygwin* | *-*-mingw32* )
53991                         if test -n "$ac_tool_prefix"; then
53992   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
53993 set dummy ${ac_tool_prefix}windres; ac_word=$2
53994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53996 if test "${ac_cv_prog_WINDRES+set}" = set; then
53997   echo $ECHO_N "(cached) $ECHO_C" >&6
53998 else
53999   if test -n "$WINDRES"; then
54000   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
54001 else
54002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54003 for as_dir in $PATH
54004 do
54005   IFS=$as_save_IFS
54006   test -z "$as_dir" && as_dir=.
54007   for ac_exec_ext in '' $ac_executable_extensions; do
54008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54009     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
54010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54011     break 2
54012   fi
54013 done
54014 done
54015 IFS=$as_save_IFS
54016
54017 fi
54018 fi
54019 WINDRES=$ac_cv_prog_WINDRES
54020 if test -n "$WINDRES"; then
54021   { echo "$as_me:$LINENO: result: $WINDRES" >&5
54022 echo "${ECHO_T}$WINDRES" >&6; }
54023 else
54024   { echo "$as_me:$LINENO: result: no" >&5
54025 echo "${ECHO_T}no" >&6; }
54026 fi
54027
54028
54029 fi
54030 if test -z "$ac_cv_prog_WINDRES"; then
54031   ac_ct_WINDRES=$WINDRES
54032   # Extract the first word of "windres", so it can be a program name with args.
54033 set dummy windres; ac_word=$2
54034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54036 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
54037   echo $ECHO_N "(cached) $ECHO_C" >&6
54038 else
54039   if test -n "$ac_ct_WINDRES"; then
54040   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
54041 else
54042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54043 for as_dir in $PATH
54044 do
54045   IFS=$as_save_IFS
54046   test -z "$as_dir" && as_dir=.
54047   for ac_exec_ext in '' $ac_executable_extensions; do
54048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54049     ac_cv_prog_ac_ct_WINDRES="windres"
54050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54051     break 2
54052   fi
54053 done
54054 done
54055 IFS=$as_save_IFS
54056
54057 fi
54058 fi
54059 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
54060 if test -n "$ac_ct_WINDRES"; then
54061   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
54062 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
54063 else
54064   { echo "$as_me:$LINENO: result: no" >&5
54065 echo "${ECHO_T}no" >&6; }
54066 fi
54067
54068   if test "x$ac_ct_WINDRES" = x; then
54069     WINDRES=""
54070   else
54071     case $cross_compiling:$ac_tool_warned in
54072 yes:)
54073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54074 whose name does not start with the host triplet.  If you think this
54075 configuration is useful to you, please write to autoconf@gnu.org." >&5
54076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54077 whose name does not start with the host triplet.  If you think this
54078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54079 ac_tool_warned=yes ;;
54080 esac
54081     WINDRES=$ac_ct_WINDRES
54082   fi
54083 else
54084   WINDRES="$ac_cv_prog_WINDRES"
54085 fi
54086
54087          ;;
54088
54089       *-*-darwin* | powerpc-apple-macos* )
54090             # Extract the first word of "Rez", so it can be a program name with args.
54091 set dummy Rez; ac_word=$2
54092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54094 if test "${ac_cv_prog_REZ+set}" = set; then
54095   echo $ECHO_N "(cached) $ECHO_C" >&6
54096 else
54097   if test -n "$REZ"; then
54098   ac_cv_prog_REZ="$REZ" # Let the user override the test.
54099 else
54100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54101 for as_dir in $PATH
54102 do
54103   IFS=$as_save_IFS
54104   test -z "$as_dir" && as_dir=.
54105   for ac_exec_ext in '' $ac_executable_extensions; do
54106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54107     ac_cv_prog_REZ="Rez"
54108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54109     break 2
54110   fi
54111 done
54112 done
54113 IFS=$as_save_IFS
54114
54115   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
54116 fi
54117 fi
54118 REZ=$ac_cv_prog_REZ
54119 if test -n "$REZ"; then
54120   { echo "$as_me:$LINENO: result: $REZ" >&5
54121 echo "${ECHO_T}$REZ" >&6; }
54122 else
54123   { echo "$as_me:$LINENO: result: no" >&5
54124 echo "${ECHO_T}no" >&6; }
54125 fi
54126
54127
54128             # Extract the first word of "SetFile", so it can be a program name with args.
54129 set dummy SetFile; ac_word=$2
54130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54132 if test "${ac_cv_prog_SETFILE+set}" = set; then
54133   echo $ECHO_N "(cached) $ECHO_C" >&6
54134 else
54135   if test -n "$SETFILE"; then
54136   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
54137 else
54138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54139 for as_dir in $PATH
54140 do
54141   IFS=$as_save_IFS
54142   test -z "$as_dir" && as_dir=.
54143   for ac_exec_ext in '' $ac_executable_extensions; do
54144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54145     ac_cv_prog_SETFILE="SetFile"
54146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54147     break 2
54148   fi
54149 done
54150 done
54151 IFS=$as_save_IFS
54152
54153   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
54154 fi
54155 fi
54156 SETFILE=$ac_cv_prog_SETFILE
54157 if test -n "$SETFILE"; then
54158   { echo "$as_me:$LINENO: result: $SETFILE" >&5
54159 echo "${ECHO_T}$SETFILE" >&6; }
54160 else
54161   { echo "$as_me:$LINENO: result: no" >&5
54162 echo "${ECHO_T}no" >&6; }
54163 fi
54164
54165
54166         ;;
54167     esac
54168
54169
54170
54171
54172
54173
54174
54175
54176
54177     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
54178
54179
54180 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
54181
54182
54183
54184     # Check whether --enable-precomp-headers was given.
54185 if test "${enable_precomp_headers+set}" = set; then
54186   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
54187 fi
54188
54189
54190     GCC_PCH=0
54191     ICC_PCH=0
54192     USE_PCH=0
54193     BK_MAKE_PCH=""
54194
54195     case ${BAKEFILE_HOST} in
54196         *-*-cygwin* )
54197                                                 bk_use_pch="no"
54198             ;;
54199     esac
54200
54201     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
54202         if test "x$GCC" = "xyes"; then
54203                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
54204 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
54205             cat >conftest.$ac_ext <<_ACEOF
54206 /* confdefs.h.  */
54207 _ACEOF
54208 cat confdefs.h >>conftest.$ac_ext
54209 cat >>conftest.$ac_ext <<_ACEOF
54210 /* end confdefs.h.  */
54211
54212 int
54213 main ()
54214 {
54215
54216                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
54217                         There is no PCH support
54218                     #endif
54219                     #if (__GNUC__ < 3)
54220                         There is no PCH support
54221                     #endif
54222                     #if (__GNUC__ == 3) && \
54223                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
54224                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
54225                        ( defined(__INTEL_COMPILER) )
54226                         There is no PCH support
54227                     #endif
54228
54229   ;
54230   return 0;
54231 }
54232 _ACEOF
54233 rm -f conftest.$ac_objext
54234 if { (ac_try="$ac_compile"
54235 case "(($ac_try" in
54236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54237   *) ac_try_echo=$ac_try;;
54238 esac
54239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54240   (eval "$ac_compile") 2>conftest.er1
54241   ac_status=$?
54242   grep -v '^ *+' conftest.er1 >conftest.err
54243   rm -f conftest.er1
54244   cat conftest.err >&5
54245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54246   (exit $ac_status); } && {
54247          test -z "$ac_c_werror_flag" ||
54248          test ! -s conftest.err
54249        } && test -s conftest.$ac_objext; then
54250
54251                     { echo "$as_me:$LINENO: result: yes" >&5
54252 echo "${ECHO_T}yes" >&6; }
54253                     GCC_PCH=1
54254
54255 else
54256   echo "$as_me: failed program was:" >&5
54257 sed 's/^/| /' conftest.$ac_ext >&5
54258
54259
54260                     if test "$INTELCXX8" = "yes"; then
54261                         { echo "$as_me:$LINENO: result: yes" >&5
54262 echo "${ECHO_T}yes" >&6; }
54263                         ICC_PCH=1
54264                         if test "$INTELCXX10" = "yes"; then
54265                             ICC_PCH_CREATE_SWITCH="-pch-create"
54266                             ICC_PCH_USE_SWITCH="-pch-use"
54267                         else
54268                             ICC_PCH_CREATE_SWITCH="-create-pch"
54269                             ICC_PCH_USE_SWITCH="-use-pch"
54270                         fi
54271                     else
54272                         { echo "$as_me:$LINENO: result: no" >&5
54273 echo "${ECHO_T}no" >&6; }
54274                     fi
54275
54276 fi
54277
54278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54279             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
54280                 USE_PCH=1
54281
54282 D='$'
54283 cat <<EOF >bk-make-pch
54284 #!/bin/sh
54285
54286 # This script is part of Bakefile (http://www.bakefile.org) autoconf
54287 # script. It is used to generated precompiled headers.
54288 #
54289 # Permission is given to use this file in any way.
54290
54291 outfile="${D}{1}"
54292 header="${D}{2}"
54293 shift
54294 shift
54295
54296 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
54297
54298 compiler=""
54299 headerfile=""
54300
54301 while test ${D}{#} -gt 0; do
54302     add_to_cmdline=1
54303     case "${D}{1}" in
54304         -I* )
54305             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
54306             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
54307                 headerfile="${D}{incdir}/${D}{header}"
54308             fi
54309         ;;
54310         -use-pch|-use_pch|-pch-use )
54311             shift
54312             add_to_cmdline=0
54313         ;;
54314     esac
54315     if test ${D}add_to_cmdline = 1 ; then
54316         compiler="${D}{compiler} ${D}{1}"
54317     fi
54318     shift
54319 done
54320
54321 if test "x${D}{headerfile}" = "x" ; then
54322     echo "error: can't find header ${D}{header} in include paths" >&2
54323 else
54324     if test -f ${D}{outfile} ; then
54325         rm -f ${D}{outfile}
54326     else
54327         mkdir -p \`dirname ${D}{outfile}\`
54328     fi
54329     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
54330     mkdir -p ${D}{builddir}/.deps
54331     if test "x${GCC_PCH}" = "x1" ; then
54332         # can do this because gcc is >= 3.4:
54333         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
54334     elif test "x${ICC_PCH}" = "x1" ; then
54335         filename=pch_gen-${D}${D}
54336         file=${D}{filename}.c
54337         dfile=${D}{filename}.d
54338         cat > ${D}file <<EOT
54339 #include "${D}header"
54340 EOT
54341         # using -MF icc complains about differing command lines in creation/use
54342         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
54343           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
54344           rm -f ${D}file ${D}dfile ${D}{filename}.o
54345     fi
54346     exit ${D}{?}
54347 fi
54348 EOF
54349
54350                 chmod +x bk-make-pch
54351                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
54352             fi
54353         fi
54354     fi
54355
54356
54357
54358
54359
54360
54361
54362     COND_BUILD_DEBUG="#"
54363     if test "x$BUILD" = "xdebug" ; then
54364         COND_BUILD_DEBUG=""
54365     fi
54366
54367     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
54368     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54369         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
54370     fi
54371
54372     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
54373     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54374         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
54375     fi
54376
54377     COND_BUILD_DEBUG_UNICODE_0="#"
54378     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54379         COND_BUILD_DEBUG_UNICODE_0=""
54380     fi
54381
54382     COND_BUILD_DEBUG_UNICODE_1="#"
54383     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54384         COND_BUILD_DEBUG_UNICODE_1=""
54385     fi
54386
54387     COND_BUILD_RELEASE="#"
54388     if test "x$BUILD" = "xrelease" ; then
54389         COND_BUILD_RELEASE=""
54390     fi
54391
54392     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
54393     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54394         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
54395     fi
54396
54397     COND_BUILD_RELEASE_UNICODE_0="#"
54398     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54399         COND_BUILD_RELEASE_UNICODE_0=""
54400     fi
54401
54402     COND_BUILD_RELEASE_UNICODE_1="#"
54403     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54404         COND_BUILD_RELEASE_UNICODE_1=""
54405     fi
54406
54407     COND_BUILD_debug="#"
54408     if test "x$BUILD" = "xdebug" ; then
54409         COND_BUILD_debug=""
54410     fi
54411
54412     COND_BUILD_debug_DEBUG_FLAG_default="#"
54413     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54414         COND_BUILD_debug_DEBUG_FLAG_default=""
54415     fi
54416
54417     COND_BUILD_debug_DEBUG_INFO_default="#"
54418     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54419         COND_BUILD_debug_DEBUG_INFO_default=""
54420     fi
54421
54422     COND_BUILD_debug_UNICODE_0="#"
54423     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54424         COND_BUILD_debug_UNICODE_0=""
54425     fi
54426
54427     COND_BUILD_debug_UNICODE_1="#"
54428     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54429         COND_BUILD_debug_UNICODE_1=""
54430     fi
54431
54432     COND_BUILD_release="#"
54433     if test "x$BUILD" = "xrelease" ; then
54434         COND_BUILD_release=""
54435     fi
54436
54437     COND_BUILD_release_DEBUG_INFO_default="#"
54438     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54439         COND_BUILD_release_DEBUG_INFO_default=""
54440     fi
54441
54442     COND_BUILD_release_UNICODE_0="#"
54443     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54444         COND_BUILD_release_UNICODE_0=""
54445     fi
54446
54447     COND_BUILD_release_UNICODE_1="#"
54448     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54449         COND_BUILD_release_UNICODE_1=""
54450     fi
54451
54452     COND_DEBUG_FLAG_0="#"
54453     if test "x$DEBUG_FLAG" = "x0" ; then
54454         COND_DEBUG_FLAG_0=""
54455     fi
54456
54457     COND_DEBUG_FLAG_1="#"
54458     if test "x$DEBUG_FLAG" = "x1" ; then
54459         COND_DEBUG_FLAG_1=""
54460     fi
54461
54462     COND_DEBUG_INFO_0="#"
54463     if test "x$DEBUG_INFO" = "x0" ; then
54464         COND_DEBUG_INFO_0=""
54465     fi
54466
54467     COND_DEBUG_INFO_1="#"
54468     if test "x$DEBUG_INFO" = "x1" ; then
54469         COND_DEBUG_INFO_1=""
54470     fi
54471
54472     COND_DEPS_TRACKING_0="#"
54473     if test "x$DEPS_TRACKING" = "x0" ; then
54474         COND_DEPS_TRACKING_0=""
54475     fi
54476
54477     COND_DEPS_TRACKING_1="#"
54478     if test "x$DEPS_TRACKING" = "x1" ; then
54479         COND_DEPS_TRACKING_1=""
54480     fi
54481
54482     COND_GCC_PCH_1="#"
54483     if test "x$GCC_PCH" = "x1" ; then
54484         COND_GCC_PCH_1=""
54485     fi
54486
54487     COND_ICC_PCH_1="#"
54488     if test "x$ICC_PCH" = "x1" ; then
54489         COND_ICC_PCH_1=""
54490     fi
54491
54492     COND_MONOLITHIC_0="#"
54493     if test "x$MONOLITHIC" = "x0" ; then
54494         COND_MONOLITHIC_0=""
54495     fi
54496
54497     COND_MONOLITHIC_0_SHARED_0="#"
54498     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
54499         COND_MONOLITHIC_0_SHARED_0=""
54500     fi
54501
54502     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
54503     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
54504         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
54505     fi
54506
54507     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
54508     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
54509         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
54510     fi
54511
54512     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
54513     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54514         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
54515     fi
54516
54517     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
54518     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54519         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
54520     fi
54521
54522     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
54523     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54524         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
54525     fi
54526
54527     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
54528     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54529         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
54530     fi
54531
54532     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
54533     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54534         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
54535     fi
54536
54537     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
54538     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54539         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
54540     fi
54541
54542     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
54543     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54544         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
54545     fi
54546
54547     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
54548     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54549         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
54550     fi
54551
54552     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
54553     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
54554         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
54555     fi
54556
54557     COND_MONOLITHIC_0_SHARED_1="#"
54558     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
54559         COND_MONOLITHIC_0_SHARED_1=""
54560     fi
54561
54562     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
54563     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
54564         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
54565     fi
54566
54567     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
54568     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
54569         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
54570     fi
54571
54572     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
54573     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54574         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
54575     fi
54576
54577     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
54578     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54579         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
54580     fi
54581
54582     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
54583     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54584         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
54585     fi
54586
54587     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
54588     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54589         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
54590     fi
54591
54592     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
54593     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
54594         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
54595     fi
54596
54597     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
54598     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
54599         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
54600     fi
54601
54602     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
54603     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
54604         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
54605     fi
54606
54607     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
54608     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
54609         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
54610     fi
54611
54612     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
54613     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
54614         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
54615     fi
54616
54617     COND_MONOLITHIC_0_USE_AUI_1="#"
54618     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
54619         COND_MONOLITHIC_0_USE_AUI_1=""
54620     fi
54621
54622     COND_MONOLITHIC_0_USE_GUI_1="#"
54623     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
54624         COND_MONOLITHIC_0_USE_GUI_1=""
54625     fi
54626
54627     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
54628     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54629         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
54630     fi
54631
54632     COND_MONOLITHIC_0_USE_HTML_1="#"
54633     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
54634         COND_MONOLITHIC_0_USE_HTML_1=""
54635     fi
54636
54637     COND_MONOLITHIC_0_USE_MEDIA_1="#"
54638     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
54639         COND_MONOLITHIC_0_USE_MEDIA_1=""
54640     fi
54641
54642     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
54643     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54644         COND_MONOLITHIC_0_USE_PROPGRID_1=""
54645     fi
54646
54647     COND_MONOLITHIC_0_USE_QA_1="#"
54648     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
54649         COND_MONOLITHIC_0_USE_QA_1=""
54650     fi
54651
54652     COND_MONOLITHIC_0_USE_RIBBON_1="#"
54653     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54654         COND_MONOLITHIC_0_USE_RIBBON_1=""
54655     fi
54656
54657     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
54658     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54659         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
54660     fi
54661
54662     COND_MONOLITHIC_0_USE_STC_1="#"
54663     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
54664         COND_MONOLITHIC_0_USE_STC_1=""
54665     fi
54666
54667     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
54668     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
54669         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
54670     fi
54671
54672     COND_MONOLITHIC_0_USE_XRC_1="#"
54673     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
54674         COND_MONOLITHIC_0_USE_XRC_1=""
54675     fi
54676
54677     COND_MONOLITHIC_1="#"
54678     if test "x$MONOLITHIC" = "x1" ; then
54679         COND_MONOLITHIC_1=""
54680     fi
54681
54682     COND_MONOLITHIC_1_SHARED_0="#"
54683     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
54684         COND_MONOLITHIC_1_SHARED_0=""
54685     fi
54686
54687     COND_MONOLITHIC_1_SHARED_1="#"
54688     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
54689         COND_MONOLITHIC_1_SHARED_1=""
54690     fi
54691
54692     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
54693     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
54694         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
54695     fi
54696
54697     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
54698     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
54699         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
54700     fi
54701
54702     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
54703     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54704         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
54705     fi
54706
54707     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
54708     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54709         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
54710     fi
54711
54712     COND_PLATFORM_MACOSX_1="#"
54713     if test "x$PLATFORM_MACOSX" = "x1" ; then
54714         COND_PLATFORM_MACOSX_1=""
54715     fi
54716
54717     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
54718     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
54719         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
54720     fi
54721
54722     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
54723     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54724         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
54725     fi
54726
54727     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
54728     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
54729         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
54730     fi
54731
54732     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
54733     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54734         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
54735     fi
54736
54737     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
54738     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
54739         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
54740     fi
54741
54742     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
54743     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54744         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
54745     fi
54746
54747     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
54748     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
54749         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
54750     fi
54751
54752     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
54753     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54754         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
54755     fi
54756
54757     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
54758     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
54759         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
54760     fi
54761
54762     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
54763     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54764         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
54765     fi
54766
54767     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
54768     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
54769         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
54770     fi
54771
54772     COND_PLATFORM_MACOS_1="#"
54773     if test "x$PLATFORM_MACOS" = "x1" ; then
54774         COND_PLATFORM_MACOS_1=""
54775     fi
54776
54777     COND_PLATFORM_MAC_0="#"
54778     if test "x$PLATFORM_MAC" = "x0" ; then
54779         COND_PLATFORM_MAC_0=""
54780     fi
54781
54782     COND_PLATFORM_MAC_1="#"
54783     if test "x$PLATFORM_MAC" = "x1" ; then
54784         COND_PLATFORM_MAC_1=""
54785     fi
54786
54787     COND_PLATFORM_MSDOS_0="#"
54788     if test "x$PLATFORM_MSDOS" = "x0" ; then
54789         COND_PLATFORM_MSDOS_0=""
54790     fi
54791
54792     COND_PLATFORM_MSDOS_1="#"
54793     if test "x$PLATFORM_MSDOS" = "x1" ; then
54794         COND_PLATFORM_MSDOS_1=""
54795     fi
54796
54797     COND_PLATFORM_OS2_1="#"
54798     if test "x$PLATFORM_OS2" = "x1" ; then
54799         COND_PLATFORM_OS2_1=""
54800     fi
54801
54802     COND_PLATFORM_UNIX_0="#"
54803     if test "x$PLATFORM_UNIX" = "x0" ; then
54804         COND_PLATFORM_UNIX_0=""
54805     fi
54806
54807     COND_PLATFORM_UNIX_1="#"
54808     if test "x$PLATFORM_UNIX" = "x1" ; then
54809         COND_PLATFORM_UNIX_1=""
54810     fi
54811
54812     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
54813     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
54814         COND_PLATFORM_UNIX_1_USE_GUI_1=""
54815     fi
54816
54817     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
54818     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
54819         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
54820     fi
54821
54822     COND_PLATFORM_WIN32_0="#"
54823     if test "x$PLATFORM_WIN32" = "x0" ; then
54824         COND_PLATFORM_WIN32_0=""
54825     fi
54826
54827     COND_PLATFORM_WIN32_1="#"
54828     if test "x$PLATFORM_WIN32" = "x1" ; then
54829         COND_PLATFORM_WIN32_1=""
54830     fi
54831
54832     COND_PLATFORM_WIN32_1_SHARED_0="#"
54833     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54834         COND_PLATFORM_WIN32_1_SHARED_0=""
54835     fi
54836
54837     COND_SHARED_0="#"
54838     if test "x$SHARED" = "x0" ; then
54839         COND_SHARED_0=""
54840     fi
54841
54842     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
54843     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
54844         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
54845     fi
54846
54847     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
54848     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
54849         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
54850     fi
54851
54852     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
54853     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
54854         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
54855     fi
54856
54857     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
54858     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54859         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
54860     fi
54861
54862     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
54863     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
54864         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
54865     fi
54866
54867     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
54868     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
54869         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
54870     fi
54871
54872     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
54873     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
54874         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
54875     fi
54876
54877     COND_SHARED_0_USE_STC_1="#"
54878     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54879         COND_SHARED_0_USE_STC_1=""
54880     fi
54881
54882     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
54883     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
54884         COND_SHARED_0_wxUSE_EXPAT_builtin=""
54885     fi
54886
54887     COND_SHARED_0_wxUSE_REGEX_builtin="#"
54888     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
54889         COND_SHARED_0_wxUSE_REGEX_builtin=""
54890     fi
54891
54892     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
54893     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
54894         COND_SHARED_0_wxUSE_ZLIB_builtin=""
54895     fi
54896
54897     COND_SHARED_1="#"
54898     if test "x$SHARED" = "x1" ; then
54899         COND_SHARED_1=""
54900     fi
54901
54902     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
54903     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54904         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
54905     fi
54906
54907     COND_TOOLKIT_="#"
54908     if test "x$TOOLKIT" = "x" ; then
54909         COND_TOOLKIT_=""
54910     fi
54911
54912     COND_TOOLKIT_COCOA="#"
54913     if test "x$TOOLKIT" = "xCOCOA" ; then
54914         COND_TOOLKIT_COCOA=""
54915     fi
54916
54917     COND_TOOLKIT_COCOA_USE_GUI_1="#"
54918     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
54919         COND_TOOLKIT_COCOA_USE_GUI_1=""
54920     fi
54921
54922     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
54923     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54924         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
54925     fi
54926
54927     COND_TOOLKIT_DFB="#"
54928     if test "x$TOOLKIT" = "xDFB" ; then
54929         COND_TOOLKIT_DFB=""
54930     fi
54931
54932     COND_TOOLKIT_DFB_USE_GUI_1="#"
54933     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
54934         COND_TOOLKIT_DFB_USE_GUI_1=""
54935     fi
54936
54937     COND_TOOLKIT_GTK="#"
54938     if test "x$TOOLKIT" = "xGTK" ; then
54939         COND_TOOLKIT_GTK=""
54940     fi
54941
54942     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
54943     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
54944         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
54945     fi
54946
54947     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
54948     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
54949         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
54950     fi
54951
54952     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
54953     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
54954         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
54955     fi
54956
54957     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
54958     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54959         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
54960     fi
54961
54962     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
54963     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
54964         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
54965     fi
54966
54967     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
54968     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54969         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
54970     fi
54971
54972     COND_TOOLKIT_GTK_USE_GUI_1="#"
54973     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
54974         COND_TOOLKIT_GTK_USE_GUI_1=""
54975     fi
54976
54977     COND_TOOLKIT_MAC="#"
54978     if test "x$TOOLKIT" = "xMAC" ; then
54979         COND_TOOLKIT_MAC=""
54980     fi
54981
54982     COND_TOOLKIT_MOTIF="#"
54983     if test "x$TOOLKIT" = "xMOTIF" ; then
54984         COND_TOOLKIT_MOTIF=""
54985     fi
54986
54987     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
54988     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
54989         COND_TOOLKIT_MOTIF_USE_GUI_1=""
54990     fi
54991
54992     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
54993     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54994         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
54995     fi
54996
54997     COND_TOOLKIT_MSW="#"
54998     if test "x$TOOLKIT" = "xMSW" ; then
54999         COND_TOOLKIT_MSW=""
55000     fi
55001
55002     COND_TOOLKIT_MSW_USE_GUI_1="#"
55003     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
55004         COND_TOOLKIT_MSW_USE_GUI_1=""
55005     fi
55006
55007     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
55008     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55009         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
55010     fi
55011
55012     COND_TOOLKIT_MSW_WXUNIV_0="#"
55013     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
55014         COND_TOOLKIT_MSW_WXUNIV_0=""
55015     fi
55016
55017     COND_TOOLKIT_OSX_CARBON="#"
55018     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
55019         COND_TOOLKIT_OSX_CARBON=""
55020     fi
55021
55022     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
55023     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
55024         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
55025     fi
55026
55027     COND_TOOLKIT_OSX_COCOA="#"
55028     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
55029         COND_TOOLKIT_OSX_COCOA=""
55030     fi
55031
55032     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
55033     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
55034         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
55035     fi
55036
55037     COND_TOOLKIT_OSX_IPHONE="#"
55038     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
55039         COND_TOOLKIT_OSX_IPHONE=""
55040     fi
55041
55042     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
55043     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
55044         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
55045     fi
55046
55047     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
55048     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55049         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
55050     fi
55051
55052     COND_TOOLKIT_PM="#"
55053     if test "x$TOOLKIT" = "xPM" ; then
55054         COND_TOOLKIT_PM=""
55055     fi
55056
55057     COND_TOOLKIT_PM_USE_GUI_1="#"
55058     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
55059         COND_TOOLKIT_PM_USE_GUI_1=""
55060     fi
55061
55062     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
55063     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55064         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
55065     fi
55066
55067     COND_TOOLKIT_WINCE="#"
55068     if test "x$TOOLKIT" = "xWINCE" ; then
55069         COND_TOOLKIT_WINCE=""
55070     fi
55071
55072     COND_TOOLKIT_WINCE_USE_GUI_1="#"
55073     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
55074         COND_TOOLKIT_WINCE_USE_GUI_1=""
55075     fi
55076
55077     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
55078     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55079         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
55080     fi
55081
55082     COND_TOOLKIT_WINCE_WXUNIV_0="#"
55083     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
55084         COND_TOOLKIT_WINCE_WXUNIV_0=""
55085     fi
55086
55087     COND_TOOLKIT_X11="#"
55088     if test "x$TOOLKIT" = "xX11" ; then
55089         COND_TOOLKIT_X11=""
55090     fi
55091
55092     COND_TOOLKIT_X11_USE_GUI_1="#"
55093     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
55094         COND_TOOLKIT_X11_USE_GUI_1=""
55095     fi
55096
55097     COND_UNICODE_1="#"
55098     if test "x$UNICODE" = "x1" ; then
55099         COND_UNICODE_1=""
55100     fi
55101
55102     COND_USE_CAIRO_1="#"
55103     if test "x$USE_CAIRO" = "x1" ; then
55104         COND_USE_CAIRO_1=""
55105     fi
55106
55107     COND_USE_EXCEPTIONS_0="#"
55108     if test "x$USE_EXCEPTIONS" = "x0" ; then
55109         COND_USE_EXCEPTIONS_0=""
55110     fi
55111
55112     COND_USE_EXCEPTIONS_1="#"
55113     if test "x$USE_EXCEPTIONS" = "x1" ; then
55114         COND_USE_EXCEPTIONS_1=""
55115     fi
55116
55117     COND_USE_GUI_0="#"
55118     if test "x$USE_GUI" = "x0" ; then
55119         COND_USE_GUI_0=""
55120     fi
55121
55122     COND_USE_GUI_1="#"
55123     if test "x$USE_GUI" = "x1" ; then
55124         COND_USE_GUI_1=""
55125     fi
55126
55127     COND_USE_GUI_1_USE_OPENGL_1="#"
55128     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55129         COND_USE_GUI_1_USE_OPENGL_1=""
55130     fi
55131
55132     COND_USE_GUI_1_WXUNIV_0="#"
55133     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55134         COND_USE_GUI_1_WXUNIV_0=""
55135     fi
55136
55137     COND_USE_GUI_1_WXUNIV_1="#"
55138     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
55139         COND_USE_GUI_1_WXUNIV_1=""
55140     fi
55141
55142     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
55143     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55144         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
55145     fi
55146
55147     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
55148     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55149         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
55150     fi
55151
55152     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
55153     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55154         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
55155     fi
55156
55157     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
55158     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55159         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
55160     fi
55161
55162     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
55163     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55164         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
55165     fi
55166
55167     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
55168     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55169         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
55170     fi
55171
55172     COND_USE_OPENGL_1="#"
55173     if test "x$USE_OPENGL" = "x1" ; then
55174         COND_USE_OPENGL_1=""
55175     fi
55176
55177     COND_USE_PCH_1="#"
55178     if test "x$USE_PCH" = "x1" ; then
55179         COND_USE_PCH_1=""
55180     fi
55181
55182     COND_USE_PLUGINS_0="#"
55183     if test "x$USE_PLUGINS" = "x0" ; then
55184         COND_USE_PLUGINS_0=""
55185     fi
55186
55187     COND_USE_RTTI_0="#"
55188     if test "x$USE_RTTI" = "x0" ; then
55189         COND_USE_RTTI_0=""
55190     fi
55191
55192     COND_USE_RTTI_1="#"
55193     if test "x$USE_RTTI" = "x1" ; then
55194         COND_USE_RTTI_1=""
55195     fi
55196
55197     COND_USE_SOTWOSYMLINKS_1="#"
55198     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
55199         COND_USE_SOTWOSYMLINKS_1=""
55200     fi
55201
55202     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
55203     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
55204         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
55205     fi
55206
55207     COND_USE_SOVERLINUX_1="#"
55208     if test "x$USE_SOVERLINUX" = "x1" ; then
55209         COND_USE_SOVERLINUX_1=""
55210     fi
55211
55212     COND_USE_SOVERSION_0="#"
55213     if test "x$USE_SOVERSION" = "x0" ; then
55214         COND_USE_SOVERSION_0=""
55215     fi
55216
55217     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
55218     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
55219         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
55220     fi
55221
55222     COND_USE_SOVERSOLARIS_1="#"
55223     if test "x$USE_SOVERSOLARIS" = "x1" ; then
55224         COND_USE_SOVERSOLARIS_1=""
55225     fi
55226
55227     COND_USE_STC_1="#"
55228     if test "x$USE_STC" = "x1" ; then
55229         COND_USE_STC_1=""
55230     fi
55231
55232     COND_USE_THREADS_0="#"
55233     if test "x$USE_THREADS" = "x0" ; then
55234         COND_USE_THREADS_0=""
55235     fi
55236
55237     COND_USE_THREADS_1="#"
55238     if test "x$USE_THREADS" = "x1" ; then
55239         COND_USE_THREADS_1=""
55240     fi
55241
55242     COND_USE_XRC_1="#"
55243     if test "x$USE_XRC" = "x1" ; then
55244         COND_USE_XRC_1=""
55245     fi
55246
55247     COND_WINDOWS_IMPLIB_1="#"
55248     if test "x$WINDOWS_IMPLIB" = "x1" ; then
55249         COND_WINDOWS_IMPLIB_1=""
55250     fi
55251
55252     COND_WITH_PLUGIN_SDL_1="#"
55253     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
55254         COND_WITH_PLUGIN_SDL_1=""
55255     fi
55256
55257     COND_WXUNIV_0="#"
55258     if test "x$WXUNIV" = "x0" ; then
55259         COND_WXUNIV_0=""
55260     fi
55261
55262     COND_WXUNIV_1="#"
55263     if test "x$WXUNIV" = "x1" ; then
55264         COND_WXUNIV_1=""
55265     fi
55266
55267     COND_WXUSE_EXPAT_BUILTIN="#"
55268     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55269         COND_WXUSE_EXPAT_BUILTIN=""
55270     fi
55271
55272     COND_WXUSE_LIBJPEG_BUILTIN="#"
55273     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55274         COND_WXUSE_LIBJPEG_BUILTIN=""
55275     fi
55276
55277     COND_WXUSE_LIBPNG_BUILTIN="#"
55278     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55279         COND_WXUSE_LIBPNG_BUILTIN=""
55280     fi
55281
55282     COND_WXUSE_LIBTIFF_BUILTIN="#"
55283     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55284         COND_WXUSE_LIBTIFF_BUILTIN=""
55285     fi
55286
55287     COND_WXUSE_REGEX_BUILTIN="#"
55288     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55289         COND_WXUSE_REGEX_BUILTIN=""
55290     fi
55291
55292     COND_WXUSE_ZLIB_BUILTIN="#"
55293     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55294         COND_WXUSE_ZLIB_BUILTIN=""
55295     fi
55296
55297     COND_wxUSE_EXPAT_builtin="#"
55298     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55299         COND_wxUSE_EXPAT_builtin=""
55300     fi
55301
55302     COND_wxUSE_LIBJPEG_builtin="#"
55303     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55304         COND_wxUSE_LIBJPEG_builtin=""
55305     fi
55306
55307     COND_wxUSE_LIBPNG_builtin="#"
55308     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55309         COND_wxUSE_LIBPNG_builtin=""
55310     fi
55311
55312     COND_wxUSE_LIBTIFF_builtin="#"
55313     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55314         COND_wxUSE_LIBTIFF_builtin=""
55315     fi
55316
55317     COND_wxUSE_REGEX_builtin="#"
55318     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55319         COND_wxUSE_REGEX_builtin=""
55320     fi
55321
55322     COND_wxUSE_ZLIB_builtin="#"
55323     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55324         COND_wxUSE_ZLIB_builtin=""
55325     fi
55326
55327
55328
55329     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
55330         { { 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
55331 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;}
55332    { (exit 1); exit 1; }; }
55333     fi
55334
55335     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
55336         { { 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
55337 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;}
55338    { (exit 1); exit 1; }; }
55339     fi
55340
55341
55342 case ${INSTALL} in
55343   /* ) # Absolute
55344      ;;
55345   ?:* ) # Drive letter, considered as absolute.
55346      ;;
55347   *)
55348      INSTALL=`pwd`/${INSTALL} ;;
55349 esac
55350
55351 if test "$wxUSE_GUI" = "yes"; then
55352
55353 if test "$wxUSE_MSW" = 1 ; then
55354     if test "x$WINDRES" = "x"; then
55355         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
55356 echo "$as_me: error: Required windres program not found" >&2;}
55357    { (exit 1); exit 1; }; }
55358     fi
55359
55360     RESCOMP="$WINDRES"
55361 fi
55362
55363 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
55364             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
55365     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
55366
55367         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
55368
55369     # Extract the first word of "DeRez", so it can be a program name with args.
55370 set dummy DeRez; ac_word=$2
55371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55373 if test "${ac_cv_prog_DEREZ+set}" = set; then
55374   echo $ECHO_N "(cached) $ECHO_C" >&6
55375 else
55376   if test -n "$DEREZ"; then
55377   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
55378 else
55379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55380 for as_dir in $PATH
55381 do
55382   IFS=$as_save_IFS
55383   test -z "$as_dir" && as_dir=.
55384   for ac_exec_ext in '' $ac_executable_extensions; do
55385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55386     ac_cv_prog_DEREZ="DeRez"
55387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55388     break 2
55389   fi
55390 done
55391 done
55392 IFS=$as_save_IFS
55393
55394   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
55395 fi
55396 fi
55397 DEREZ=$ac_cv_prog_DEREZ
55398 if test -n "$DEREZ"; then
55399   { echo "$as_me:$LINENO: result: $DEREZ" >&5
55400 echo "${ECHO_T}$DEREZ" >&6; }
55401 else
55402   { echo "$as_me:$LINENO: result: no" >&5
55403 echo "${ECHO_T}no" >&6; }
55404 fi
55405
55406
55407
55408     MACSETFILE="\$(SETFILE)"
55409
55410             if test "$wxUSE_OSX_CARBON" = 1; then
55411         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
55412         RESCOMP="$REZ"
55413         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
55414     else
55415         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
55416         RESCOMP="cat /dev/null \| $REZ"
55417         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
55418     fi
55419
55420 else
55421         MACSETFILE="@true"
55422
55423     if test "$wxUSE_PM" = 1; then
55424         RESCOMP="emxbind"
55425         WXCONFIG_RESFLAGS="-ep"
55426
55427                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
55428     else
55429         POSTLINK_COMMAND="@true"
55430     fi
55431 fi
55432
55433 fi
55434
55435
55436 if test $GCC_PCH = 1
55437 then
55438     if test "$wx_cv_gcc_pch_bug" = yes; then
55439         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
55440 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
55441         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
55442 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
55443         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
55444 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
55445     fi
55446
55447     # Our WX_PRECOMP flag does not make sense for any language except C++ because
55448     # the headers that benefit from precompilation are mostly C++ headers.
55449     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55450     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
55451     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55452 fi
55453
55454
55455 if test "$wxUSE_MAC" = 1 ; then
55456     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
55457         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
55458         mv temp bk-deps
55459         chmod +x bk-deps
55460     fi
55461 fi
55462
55463 if test "$wxUSE_SHARED" = "yes"; then
55464                 case "${host}" in
55465       *-pc-os2_emx | *-pc-os2-emx )
55466         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55467         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55468         cp -p ${srcdir}/src/os2/dllnames.sh .
55469         cp -p ${srcdir}/src/os2/dllar.sh .
55470       ;;
55471     esac
55472 fi
55473 if test "$wxUSE_OMF" = "yes"; then
55474     case "${host}" in
55475       *-pc-os2_emx | *-pc-os2-emx )
55476         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
55477         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55478         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55479       ;;
55480     esac
55481 fi
55482
55483 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
55484
55485
55486 case "${host}" in
55487     *-*-solaris2* )
55488                         if test "$GCC" = yes; then
55489             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//g'`
55490             LIBS=`echo $LIBS | sed 's/-mt//g'`
55491             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//g'`
55492         fi
55493         ;;
55494
55495     *-*-linux* )
55496                         if test "x$SUNCXX" = xyes; then
55497             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//g'`
55498             LIBS=`echo $LIBS | sed 's/-pthread//g'`
55499             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//g'`
55500         fi
55501         ;;
55502 esac
55503
55504 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
55505 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
55506 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
55507 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
55508
55509 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
55510
55511
55512
55513
55514
55515
55516
55517
55518
55519
55520
55521
55522
55523
55524
55525
55526
55527
55528
55529
55530
55531
55532
55533
55534
55535
55536
55537
55538
55539
55540
55541
55542
55543
55544
55545
55546
55547
55548
55549
55550
55551
55552
55553
55554
55555
55556
55557
55558
55559
55560
55561
55562
55563
55564
55565
55566
55567
55568
55569
55570 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
55571 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
55572 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
55573 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
55574   echo $ECHO_N "(cached) $ECHO_C" >&6
55575 else
55576   cat >conftest.make <<\_ACEOF
55577 SHELL = /bin/sh
55578 all:
55579         @echo '@@@%%%=$(MAKE)=@@@%%%'
55580 _ACEOF
55581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
55582 case `${MAKE-make} -f conftest.make 2>/dev/null` in
55583   *@@@%%%=?*=@@@%%%*)
55584     eval ac_cv_prog_make_${ac_make}_set=yes;;
55585   *)
55586     eval ac_cv_prog_make_${ac_make}_set=no;;
55587 esac
55588 rm -f conftest.make
55589 fi
55590 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
55591   { echo "$as_me:$LINENO: result: yes" >&5
55592 echo "${ECHO_T}yes" >&6; }
55593   SET_MAKE=
55594 else
55595   { echo "$as_me:$LINENO: result: no" >&5
55596 echo "${ECHO_T}no" >&6; }
55597   SET_MAKE="MAKE=${MAKE-make}"
55598 fi
55599
55600
55601
55602 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
55603
55604
55605 if test "$USE_WIN32" = 1; then
55606     ac_config_commands="$ac_config_commands rcdefs.h"
55607
55608 fi
55609
55610 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
55611
55612
55613 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
55614
55615
55616 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
55617
55618
55619 if test "$wx_cv_version_script" = "yes"; then
55620     ac_config_files="$ac_config_files version-script"
55621
55622 fi
55623 ac_config_files="$ac_config_files Makefile"
55624
55625
55626 ac_config_commands="$ac_config_commands wx-config"
55627
55628
55629
55630 if test "$wxWITH_SUBDIRS" != "no"; then
55631 if test "$wxUSE_GUI" = "yes"; then
55632     SUBDIRS="samples demos utils"
55633 else
55634             SUBDIRS="samples utils"
55635 fi
55636
55637
55638
55639 # Check whether --with-cppunit-prefix was given.
55640 if test "${with_cppunit_prefix+set}" = set; then
55641   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
55642 else
55643   cppunit_config_prefix=""
55644 fi
55645
55646
55647 # Check whether --with-cppunit-exec-prefix was given.
55648 if test "${with_cppunit_exec_prefix+set}" = set; then
55649   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
55650 else
55651   cppunit_config_exec_prefix=""
55652 fi
55653
55654
55655   if test x$cppunit_config_exec_prefix != x ; then
55656      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
55657      if test x${CPPUNIT_CONFIG+set} != xset ; then
55658         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
55659      fi
55660   fi
55661   if test x$cppunit_config_prefix != x ; then
55662      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
55663      if test x${CPPUNIT_CONFIG+set} != xset ; then
55664         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
55665      fi
55666   fi
55667
55668   # Extract the first word of "cppunit-config", so it can be a program name with args.
55669 set dummy cppunit-config; ac_word=$2
55670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55672 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
55673   echo $ECHO_N "(cached) $ECHO_C" >&6
55674 else
55675   case $CPPUNIT_CONFIG in
55676   [\\/]* | ?:[\\/]*)
55677   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
55678   ;;
55679   *)
55680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55681 for as_dir in $PATH
55682 do
55683   IFS=$as_save_IFS
55684   test -z "$as_dir" && as_dir=.
55685   for ac_exec_ext in '' $ac_executable_extensions; do
55686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55687     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55689     break 2
55690   fi
55691 done
55692 done
55693 IFS=$as_save_IFS
55694
55695   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
55696   ;;
55697 esac
55698 fi
55699 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
55700 if test -n "$CPPUNIT_CONFIG"; then
55701   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
55702 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
55703 else
55704   { echo "$as_me:$LINENO: result: no" >&5
55705 echo "${ECHO_T}no" >&6; }
55706 fi
55707
55708
55709   cppunit_version_min=1.8.0
55710
55711   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
55712 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
55713   no_cppunit=""
55714   if test "$CPPUNIT_CONFIG" = "no" ; then
55715     { echo "$as_me:$LINENO: result: no" >&5
55716 echo "${ECHO_T}no" >&6; }
55717     no_cppunit=yes
55718   else
55719     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
55720     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
55721     cppunit_version=`$CPPUNIT_CONFIG --version`
55722
55723     cppunit_major_version=`echo $cppunit_version | \
55724            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55725     cppunit_minor_version=`echo $cppunit_version | \
55726            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55727     cppunit_micro_version=`echo $cppunit_version | \
55728            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55729
55730     cppunit_major_min=`echo $cppunit_version_min | \
55731            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55732     cppunit_minor_min=`echo $cppunit_version_min | \
55733            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55734     cppunit_micro_min=`echo $cppunit_version_min | \
55735            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55736
55737     cppunit_version_proper=`expr \
55738         $cppunit_major_version \> $cppunit_major_min \| \
55739         $cppunit_major_version \= $cppunit_major_min \& \
55740         $cppunit_minor_version \> $cppunit_minor_min \| \
55741         $cppunit_major_version \= $cppunit_major_min \& \
55742         $cppunit_minor_version \= $cppunit_minor_min \& \
55743         $cppunit_micro_version \>= $cppunit_micro_min `
55744
55745     if test "$cppunit_version_proper" = "1" ; then
55746       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
55747 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
55748     else
55749       { echo "$as_me:$LINENO: result: no" >&5
55750 echo "${ECHO_T}no" >&6; }
55751       no_cppunit=yes
55752     fi
55753   fi
55754
55755   if test "x$no_cppunit" = x ; then
55756      SUBDIRS="$SUBDIRS tests"
55757   else
55758      CPPUNIT_CFLAGS=""
55759      CPPUNIT_LIBS=""
55760      :
55761   fi
55762
55763
55764
55765
55766
55767 for subdir in $SUBDIRS; do
55768     if test -d ${srcdir}/${subdir} ; then
55769         if test "$wxUSE_GUI" = "yes"; then
55770             if test ${subdir} = "samples"; then
55771                                                 makefiles="samples/Makefile.in $makefiles"
55772                 for sample in $SAMPLES_SUBDIRS; do
55773                     if test -d $srcdir/samples/$sample; then
55774                         makefiles="samples/$sample/Makefile.in $makefiles"
55775                     fi
55776                 done
55777             else
55778                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
55779                 eval "disabled=\$$disabled_var"
55780                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
55781                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
55782             fi
55783         else
55784                                     if test ${subdir} = "samples"; then
55785                                                 makefiles="samples/Makefile.in $makefiles"
55786                 for sample in `echo $SAMPLES_SUBDIRS`; do
55787                     if test -d $srcdir/samples/$sample; then
55788                         makefiles="samples/$sample/Makefile.in $makefiles"
55789                     fi
55790                 done
55791             elif test ${subdir} = "utils"; then
55792                 makefiles=""
55793                 for util in ifacecheck ; do
55794                     if test -d $srcdir/utils/$util ; then
55795                         makefiles="utils/$util/src/Makefile.in \
55796                                    $makefiles"
55797                     fi
55798                 done
55799             else
55800                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
55801             fi
55802         fi
55803
55804         for mkin in $makefiles ; do
55805             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
55806             ac_config_files="$ac_config_files $mk"
55807
55808         done
55809     fi
55810 done
55811 fi
55812 cat >confcache <<\_ACEOF
55813 # This file is a shell script that caches the results of configure
55814 # tests run on this system so they can be shared between configure
55815 # scripts and configure runs, see configure's option --config-cache.
55816 # It is not useful on other systems.  If it contains results you don't
55817 # want to keep, you may remove or edit it.
55818 #
55819 # config.status only pays attention to the cache file if you give it
55820 # the --recheck option to rerun configure.
55821 #
55822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55824 # following values.
55825
55826 _ACEOF
55827
55828 # The following way of writing the cache mishandles newlines in values,
55829 # but we know of no workaround that is simple, portable, and efficient.
55830 # So, we kill variables containing newlines.
55831 # Ultrix sh set writes to stderr and can't be redirected directly,
55832 # and sets the high bit in the cache file unless we assign to the vars.
55833 (
55834   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55835     eval ac_val=\$$ac_var
55836     case $ac_val in #(
55837     *${as_nl}*)
55838       case $ac_var in #(
55839       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
55840 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
55841       esac
55842       case $ac_var in #(
55843       _ | IFS | as_nl) ;; #(
55844       *) $as_unset $ac_var ;;
55845       esac ;;
55846     esac
55847   done
55848
55849   (set) 2>&1 |
55850     case $as_nl`(ac_space=' '; set) 2>&1` in #(
55851     *${as_nl}ac_space=\ *)
55852       # `set' does not quote correctly, so add quotes (double-quote
55853       # substitution turns \\\\ into \\, and sed turns \\ into \).
55854       sed -n \
55855         "s/'/'\\\\''/g;
55856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55857       ;; #(
55858     *)
55859       # `set' quotes correctly as required by POSIX, so do not add quotes.
55860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55861       ;;
55862     esac |
55863     sort
55864 ) |
55865   sed '
55866      /^ac_cv_env_/b end
55867      t clear
55868      :clear
55869      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55870      t end
55871      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55872      :end' >>confcache
55873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55874   if test -w "$cache_file"; then
55875     test "x$cache_file" != "x/dev/null" &&
55876       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
55877 echo "$as_me: updating cache $cache_file" >&6;}
55878     cat confcache >$cache_file
55879   else
55880     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
55881 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55882   fi
55883 fi
55884 rm -f confcache
55885
55886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55887 # Let make expand exec_prefix.
55888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55889
55890 DEFS=-DHAVE_CONFIG_H
55891
55892 ac_libobjs=
55893 ac_ltlibobjs=
55894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55895   # 1. Remove the extension, and $U if already installed.
55896   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55897   ac_i=`echo "$ac_i" | sed "$ac_script"`
55898   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55899   #    will be set to the directory where LIBOBJS objects are built.
55900   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55901   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
55902 done
55903 LIBOBJS=$ac_libobjs
55904
55905 LTLIBOBJS=$ac_ltlibobjs
55906
55907
55908
55909 : ${CONFIG_STATUS=./config.status}
55910 ac_clean_files_save=$ac_clean_files
55911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55912 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
55913 echo "$as_me: creating $CONFIG_STATUS" >&6;}
55914 cat >$CONFIG_STATUS <<_ACEOF
55915 #! $SHELL
55916 # Generated by $as_me.
55917 # Run this file to recreate the current configuration.
55918 # Compiler output produced by configure, useful for debugging
55919 # configure, is in config.log if it exists.
55920
55921 debug=false
55922 ac_cs_recheck=false
55923 ac_cs_silent=false
55924 SHELL=\${CONFIG_SHELL-$SHELL}
55925 _ACEOF
55926
55927 cat >>$CONFIG_STATUS <<\_ACEOF
55928 ## --------------------- ##
55929 ## M4sh Initialization.  ##
55930 ## --------------------- ##
55931
55932 # Be more Bourne compatible
55933 DUALCASE=1; export DUALCASE # for MKS sh
55934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55935   emulate sh
55936   NULLCMD=:
55937   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55938   # is contrary to our usage.  Disable this feature.
55939   alias -g '${1+"$@"}'='"$@"'
55940   setopt NO_GLOB_SUBST
55941 else
55942   case `(set -o) 2>/dev/null` in
55943   *posix*) set -o posix ;;
55944 esac
55945
55946 fi
55947
55948
55949
55950
55951 # PATH needs CR
55952 # Avoid depending upon Character Ranges.
55953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55956 as_cr_digits='0123456789'
55957 as_cr_alnum=$as_cr_Letters$as_cr_digits
55958
55959 # The user is always right.
55960 if test "${PATH_SEPARATOR+set}" != set; then
55961   echo "#! /bin/sh" >conf$$.sh
55962   echo  "exit 0"   >>conf$$.sh
55963   chmod +x conf$$.sh
55964   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55965     PATH_SEPARATOR=';'
55966   else
55967     PATH_SEPARATOR=:
55968   fi
55969   rm -f conf$$.sh
55970 fi
55971
55972 # Support unset when possible.
55973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55974   as_unset=unset
55975 else
55976   as_unset=false
55977 fi
55978
55979
55980 # IFS
55981 # We need space, tab and new line, in precisely that order.  Quoting is
55982 # there to prevent editors from complaining about space-tab.
55983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
55984 # splitting by setting IFS to empty value.)
55985 as_nl='
55986 '
55987 IFS=" ""        $as_nl"
55988
55989 # Find who we are.  Look in the path if we contain no directory separator.
55990 case $0 in
55991   *[\\/]* ) as_myself=$0 ;;
55992   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55993 for as_dir in $PATH
55994 do
55995   IFS=$as_save_IFS
55996   test -z "$as_dir" && as_dir=.
55997   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55998 done
55999 IFS=$as_save_IFS
56000
56001      ;;
56002 esac
56003 # We did not find ourselves, most probably we were run as `sh COMMAND'
56004 # in which case we are not to be found in the path.
56005 if test "x$as_myself" = x; then
56006   as_myself=$0
56007 fi
56008 if test ! -f "$as_myself"; then
56009   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56010   { (exit 1); exit 1; }
56011 fi
56012
56013 # Work around bugs in pre-3.0 UWIN ksh.
56014 for as_var in ENV MAIL MAILPATH
56015 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56016 done
56017 PS1='$ '
56018 PS2='> '
56019 PS4='+ '
56020
56021 # NLS nuisances.
56022 for as_var in \
56023   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56024   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56025   LC_TELEPHONE LC_TIME
56026 do
56027   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56028     eval $as_var=C; export $as_var
56029   else
56030     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56031   fi
56032 done
56033
56034 # Required to use basename.
56035 if expr a : '\(a\)' >/dev/null 2>&1 &&
56036    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56037   as_expr=expr
56038 else
56039   as_expr=false
56040 fi
56041
56042 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56043   as_basename=basename
56044 else
56045   as_basename=false
56046 fi
56047
56048
56049 # Name of the executable.
56050 as_me=`$as_basename -- "$0" ||
56051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56052          X"$0" : 'X\(//\)$' \| \
56053          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56054 echo X/"$0" |
56055     sed '/^.*\/\([^/][^/]*\)\/*$/{
56056             s//\1/
56057             q
56058           }
56059           /^X\/\(\/\/\)$/{
56060             s//\1/
56061             q
56062           }
56063           /^X\/\(\/\).*/{
56064             s//\1/
56065             q
56066           }
56067           s/.*/./; q'`
56068
56069 # CDPATH.
56070 $as_unset CDPATH
56071
56072
56073
56074   as_lineno_1=$LINENO
56075   as_lineno_2=$LINENO
56076   test "x$as_lineno_1" != "x$as_lineno_2" &&
56077   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56078
56079   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56080   # uniformly replaced by the line number.  The first 'sed' inserts a
56081   # line-number line after each line using $LINENO; the second 'sed'
56082   # does the real work.  The second script uses 'N' to pair each
56083   # line-number line with the line containing $LINENO, and appends
56084   # trailing '-' during substitution so that $LINENO is not a special
56085   # case at line end.
56086   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56087   # scripts with optimization help from Paolo Bonzini.  Blame Lee
56088   # E. McMahon (1931-1989) for sed's syntax.  :-)
56089   sed -n '
56090     p
56091     /[$]LINENO/=
56092   ' <$as_myself |
56093     sed '
56094       s/[$]LINENO.*/&-/
56095       t lineno
56096       b
56097       :lineno
56098       N
56099       :loop
56100       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56101       t loop
56102       s/-\n.*//
56103     ' >$as_me.lineno &&
56104   chmod +x "$as_me.lineno" ||
56105     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56106    { (exit 1); exit 1; }; }
56107
56108   # Don't try to exec as it changes $[0], causing all sort of problems
56109   # (the dirname of $[0] is not the place where we might find the
56110   # original and so on.  Autoconf is especially sensitive to this).
56111   . "./$as_me.lineno"
56112   # Exit status is that of the last command.
56113   exit
56114 }
56115
56116
56117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56118   as_dirname=dirname
56119 else
56120   as_dirname=false
56121 fi
56122
56123 ECHO_C= ECHO_N= ECHO_T=
56124 case `echo -n x` in
56125 -n*)
56126   case `echo 'x\c'` in
56127   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
56128   *)   ECHO_C='\c';;
56129   esac;;
56130 *)
56131   ECHO_N='-n';;
56132 esac
56133
56134 if expr a : '\(a\)' >/dev/null 2>&1 &&
56135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56136   as_expr=expr
56137 else
56138   as_expr=false
56139 fi
56140
56141 rm -f conf$$ conf$$.exe conf$$.file
56142 if test -d conf$$.dir; then
56143   rm -f conf$$.dir/conf$$.file
56144 else
56145   rm -f conf$$.dir
56146   mkdir conf$$.dir
56147 fi
56148 echo >conf$$.file
56149 if ln -s conf$$.file conf$$ 2>/dev/null; then
56150   as_ln_s='ln -s'
56151   # ... but there are two gotchas:
56152   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56153   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56154   # In both cases, we have to default to `cp -p'.
56155   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56156     as_ln_s='cp -p'
56157 elif ln conf$$.file conf$$ 2>/dev/null; then
56158   as_ln_s=ln
56159 else
56160   as_ln_s='cp -p'
56161 fi
56162 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56163 rmdir conf$$.dir 2>/dev/null
56164
56165 if mkdir -p . 2>/dev/null; then
56166   as_mkdir_p=:
56167 else
56168   test -d ./-p && rmdir ./-p
56169   as_mkdir_p=false
56170 fi
56171
56172 if test -x / >/dev/null 2>&1; then
56173   as_test_x='test -x'
56174 else
56175   if ls -dL / >/dev/null 2>&1; then
56176     as_ls_L_option=L
56177   else
56178     as_ls_L_option=
56179   fi
56180   as_test_x='
56181     eval sh -c '\''
56182       if test -d "$1"; then
56183         test -d "$1/.";
56184       else
56185         case $1 in
56186         -*)set "./$1";;
56187         esac;
56188         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56189         ???[sx]*):;;*)false;;esac;fi
56190     '\'' sh
56191   '
56192 fi
56193 as_executable_p=$as_test_x
56194
56195 # Sed expression to map a string onto a valid CPP name.
56196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56197
56198 # Sed expression to map a string onto a valid variable name.
56199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56200
56201
56202 exec 6>&1
56203
56204 # Save the log message, to keep $[0] and so on meaningful, and to
56205 # report actual input values of CONFIG_FILES etc. instead of their
56206 # values after options handling.
56207 ac_log="
56208 This file was extended by wxWidgets $as_me 2.9.4, which was
56209 generated by GNU Autoconf 2.61.  Invocation command line was
56210
56211   CONFIG_FILES    = $CONFIG_FILES
56212   CONFIG_HEADERS  = $CONFIG_HEADERS
56213   CONFIG_LINKS    = $CONFIG_LINKS
56214   CONFIG_COMMANDS = $CONFIG_COMMANDS
56215   $ $0 $@
56216
56217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56218 "
56219
56220 _ACEOF
56221
56222 cat >>$CONFIG_STATUS <<_ACEOF
56223 # Files that config.status was made for.
56224 config_files="$ac_config_files"
56225 config_headers="$ac_config_headers"
56226 config_commands="$ac_config_commands"
56227
56228 _ACEOF
56229
56230 cat >>$CONFIG_STATUS <<\_ACEOF
56231 ac_cs_usage="\
56232 \`$as_me' instantiates files from templates according to the
56233 current configuration.
56234
56235 Usage: $0 [OPTIONS] [FILE]...
56236
56237   -h, --help       print this help, then exit
56238   -V, --version    print version number and configuration settings, then exit
56239   -q, --quiet      do not print progress messages
56240   -d, --debug      don't remove temporary files
56241       --recheck    update $as_me by reconfiguring in the same conditions
56242   --file=FILE[:TEMPLATE]
56243                    instantiate the configuration file FILE
56244   --header=FILE[:TEMPLATE]
56245                    instantiate the configuration header FILE
56246
56247 Configuration files:
56248 $config_files
56249
56250 Configuration headers:
56251 $config_headers
56252
56253 Configuration commands:
56254 $config_commands
56255
56256 Report bugs to <bug-autoconf@gnu.org>."
56257
56258 _ACEOF
56259 cat >>$CONFIG_STATUS <<_ACEOF
56260 ac_cs_version="\\
56261 wxWidgets config.status 2.9.4
56262 configured by $0, generated by GNU Autoconf 2.61,
56263   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56264
56265 Copyright (C) 2006 Free Software Foundation, Inc.
56266 This config.status script is free software; the Free Software Foundation
56267 gives unlimited permission to copy, distribute and modify it."
56268
56269 ac_pwd='$ac_pwd'
56270 srcdir='$srcdir'
56271 INSTALL='$INSTALL'
56272 _ACEOF
56273
56274 cat >>$CONFIG_STATUS <<\_ACEOF
56275 # If no file are specified by the user, then we need to provide default
56276 # value.  By we need to know if files were specified by the user.
56277 ac_need_defaults=:
56278 while test $# != 0
56279 do
56280   case $1 in
56281   --*=*)
56282     ac_option=`expr "X$1" : 'X\([^=]*\)='`
56283     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56284     ac_shift=:
56285     ;;
56286   *)
56287     ac_option=$1
56288     ac_optarg=$2
56289     ac_shift=shift
56290     ;;
56291   esac
56292
56293   case $ac_option in
56294   # Handling of the options.
56295   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56296     ac_cs_recheck=: ;;
56297   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56298     echo "$ac_cs_version"; exit ;;
56299   --debug | --debu | --deb | --de | --d | -d )
56300     debug=: ;;
56301   --file | --fil | --fi | --f )
56302     $ac_shift
56303     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56304     ac_need_defaults=false;;
56305   --header | --heade | --head | --hea )
56306     $ac_shift
56307     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56308     ac_need_defaults=false;;
56309   --he | --h)
56310     # Conflict between --help and --header
56311     { echo "$as_me: error: ambiguous option: $1
56312 Try \`$0 --help' for more information." >&2
56313    { (exit 1); exit 1; }; };;
56314   --help | --hel | -h )
56315     echo "$ac_cs_usage"; exit ;;
56316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56317   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56318     ac_cs_silent=: ;;
56319
56320   # This is an error.
56321   -*) { echo "$as_me: error: unrecognized option: $1
56322 Try \`$0 --help' for more information." >&2
56323    { (exit 1); exit 1; }; } ;;
56324
56325   *) ac_config_targets="$ac_config_targets $1"
56326      ac_need_defaults=false ;;
56327
56328   esac
56329   shift
56330 done
56331
56332 ac_configure_extra_args=
56333
56334 if $ac_cs_silent; then
56335   exec 6>/dev/null
56336   ac_configure_extra_args="$ac_configure_extra_args --silent"
56337 fi
56338
56339 _ACEOF
56340 cat >>$CONFIG_STATUS <<_ACEOF
56341 if \$ac_cs_recheck; then
56342   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56343   CONFIG_SHELL=$SHELL
56344   export CONFIG_SHELL
56345   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56346 fi
56347
56348 _ACEOF
56349 cat >>$CONFIG_STATUS <<\_ACEOF
56350 exec 5>>config.log
56351 {
56352   echo
56353   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56354 ## Running $as_me. ##
56355 _ASBOX
56356   echo "$ac_log"
56357 } >&5
56358
56359 _ACEOF
56360 cat >>$CONFIG_STATUS <<_ACEOF
56361 #
56362 # INIT-COMMANDS
56363 #
56364
56365             CPP="$CPP"
56366             infile="$srcdir/include/wx/msw/genrcdefs.h"
56367             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
56368
56369
56370  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56371  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56372  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56373                      LN_S="${LN_S}"
56374
56375
56376 _ACEOF
56377
56378 cat >>$CONFIG_STATUS <<\_ACEOF
56379
56380 # Handling of arguments.
56381 for ac_config_target in $ac_config_targets
56382 do
56383   case $ac_config_target in
56384     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
56385     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
56386     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
56387     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
56388     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
56389     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
56390     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56391     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
56392     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
56393
56394   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56395 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56396    { (exit 1); exit 1; }; };;
56397   esac
56398 done
56399
56400
56401 # If the user did not use the arguments to specify the items to instantiate,
56402 # then the envvar interface is used.  Set only those that are not.
56403 # We use the long form for the default assignment because of an extremely
56404 # bizarre bug on SunOS 4.1.3.
56405 if $ac_need_defaults; then
56406   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56407   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56408   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56409 fi
56410
56411 # Have a temporary directory for convenience.  Make it in the build tree
56412 # simply because there is no reason against having it here, and in addition,
56413 # creating and moving files from /tmp can sometimes cause problems.
56414 # Hook for its removal unless debugging.
56415 # Note that there is a small window in which the directory will not be cleaned:
56416 # after its creation but before its name has been assigned to `$tmp'.
56417 $debug ||
56418 {
56419   tmp=
56420   trap 'exit_status=$?
56421   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
56422 ' 0
56423   trap '{ (exit 1); exit 1; }' 1 2 13 15
56424 }
56425 # Create a (secure) tmp directory for tmp files.
56426
56427 {
56428   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56429   test -n "$tmp" && test -d "$tmp"
56430 }  ||
56431 {
56432   tmp=./conf$$-$RANDOM
56433   (umask 077 && mkdir "$tmp")
56434 } ||
56435 {
56436    echo "$me: cannot create a temporary directory in ." >&2
56437    { (exit 1); exit 1; }
56438 }
56439
56440 #
56441 # Set up the sed scripts for CONFIG_FILES section.
56442 #
56443
56444 # No need to generate the scripts if there are no CONFIG_FILES.
56445 # This happens for instance when ./config.status config.h
56446 if test -n "$CONFIG_FILES"; then
56447
56448 _ACEOF
56449
56450
56451
56452 ac_delim='%!_!# '
56453 for ac_last_try in false false false false false :; do
56454   cat >conf$$subs.sed <<_ACEOF
56455 SHELL!$SHELL$ac_delim
56456 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
56457 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
56458 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
56459 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
56460 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
56461 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
56462 exec_prefix!$exec_prefix$ac_delim
56463 prefix!$prefix$ac_delim
56464 program_transform_name!$program_transform_name$ac_delim
56465 bindir!$bindir$ac_delim
56466 sbindir!$sbindir$ac_delim
56467 libexecdir!$libexecdir$ac_delim
56468 datarootdir!$datarootdir$ac_delim
56469 datadir!$datadir$ac_delim
56470 sysconfdir!$sysconfdir$ac_delim
56471 sharedstatedir!$sharedstatedir$ac_delim
56472 localstatedir!$localstatedir$ac_delim
56473 includedir!$includedir$ac_delim
56474 oldincludedir!$oldincludedir$ac_delim
56475 docdir!$docdir$ac_delim
56476 infodir!$infodir$ac_delim
56477 htmldir!$htmldir$ac_delim
56478 dvidir!$dvidir$ac_delim
56479 pdfdir!$pdfdir$ac_delim
56480 psdir!$psdir$ac_delim
56481 libdir!$libdir$ac_delim
56482 localedir!$localedir$ac_delim
56483 mandir!$mandir$ac_delim
56484 DEFS!$DEFS$ac_delim
56485 ECHO_C!$ECHO_C$ac_delim
56486 ECHO_N!$ECHO_N$ac_delim
56487 ECHO_T!$ECHO_T$ac_delim
56488 LIBS!$LIBS$ac_delim
56489 build_alias!$build_alias$ac_delim
56490 host_alias!$host_alias$ac_delim
56491 target_alias!$target_alias$ac_delim
56492 build!$build$ac_delim
56493 build_cpu!$build_cpu$ac_delim
56494 build_vendor!$build_vendor$ac_delim
56495 build_os!$build_os$ac_delim
56496 host!$host$ac_delim
56497 host_cpu!$host_cpu$ac_delim
56498 host_vendor!$host_vendor$ac_delim
56499 host_os!$host_os$ac_delim
56500 wx_top_builddir!$wx_top_builddir$ac_delim
56501 CC!$CC$ac_delim
56502 CFLAGS!$CFLAGS$ac_delim
56503 LDFLAGS!$LDFLAGS$ac_delim
56504 CPPFLAGS!$CPPFLAGS$ac_delim
56505 ac_ct_CC!$ac_ct_CC$ac_delim
56506 EXEEXT!$EXEEXT$ac_delim
56507 OBJEXT!$OBJEXT$ac_delim
56508 CPP!$CPP$ac_delim
56509 GREP!$GREP$ac_delim
56510 EGREP!$EGREP$ac_delim
56511 CXX!$CXX$ac_delim
56512 CXXFLAGS!$CXXFLAGS$ac_delim
56513 ac_ct_CXX!$ac_ct_CXX$ac_delim
56514 AR!$AR$ac_delim
56515 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
56516 CXXCPP!$CXXCPP$ac_delim
56517 subdirs!$subdirs$ac_delim
56518 PKG_CONFIG!$PKG_CONFIG$ac_delim
56519 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
56520 GTK_LIBS!$GTK_LIBS$ac_delim
56521 GTK_CONFIG!$GTK_CONFIG$ac_delim
56522 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
56523 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
56524 XMKMF!$XMKMF$ac_delim
56525 X_CFLAGS!$X_CFLAGS$ac_delim
56526 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
56527 X_LIBS!$X_LIBS$ac_delim
56528 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
56529 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
56530 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
56531 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
56532 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
56533 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
56534 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
56535 Xinerama_CFLAGS!$Xinerama_CFLAGS$ac_delim
56536 Xinerama_LIBS!$Xinerama_LIBS$ac_delim
56537 Xxf86vm_CFLAGS!$Xxf86vm_CFLAGS$ac_delim
56538 Xxf86vm_LIBS!$Xxf86vm_LIBS$ac_delim
56539 SM_CFLAGS!$SM_CFLAGS$ac_delim
56540 SM_LIBS!$SM_LIBS$ac_delim
56541 GL_CFLAGS!$GL_CFLAGS$ac_delim
56542 GL_LIBS!$GL_LIBS$ac_delim
56543 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
56544 GLU_LIBS!$GLU_LIBS$ac_delim
56545 MesaGL_CFLAGS!$MesaGL_CFLAGS$ac_delim
56546 MesaGL_LIBS!$MesaGL_LIBS$ac_delim
56547 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
56548 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
56549 LIBICONV!$LIBICONV$ac_delim
56550 GXX_VERSION!$GXX_VERSION$ac_delim
56551 SDL_CONFIG!$SDL_CONFIG$ac_delim
56552 _ACEOF
56553
56554   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56555     break
56556   elif $ac_last_try; then
56557     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56559    { (exit 1); exit 1; }; }
56560   else
56561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56562   fi
56563 done
56564
56565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56566 if test -n "$ac_eof"; then
56567   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56568   ac_eof=`expr $ac_eof + 1`
56569 fi
56570
56571 cat >>$CONFIG_STATUS <<_ACEOF
56572 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
56573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56574 _ACEOF
56575 sed '
56576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56577 s/^/s,@/; s/!/@,|#_!!_#|/
56578 :n
56579 t n
56580 s/'"$ac_delim"'$/,g/; t
56581 s/$/\\/; p
56582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56583 ' >>$CONFIG_STATUS <conf$$subs.sed
56584 rm -f conf$$subs.sed
56585 cat >>$CONFIG_STATUS <<_ACEOF
56586 CEOF$ac_eof
56587 _ACEOF
56588
56589
56590 ac_delim='%!_!# '
56591 for ac_last_try in false false false false false :; do
56592   cat >conf$$subs.sed <<_ACEOF
56593 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
56594 SDL_LIBS!$SDL_LIBS$ac_delim
56595 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
56596 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
56597 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
56598 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
56599 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
56600 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
56601 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
56602 HILDON_LIBS!$HILDON_LIBS$ac_delim
56603 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
56604 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
56605 PYTHON!$PYTHON$ac_delim
56606 COND_PYTHON!$COND_PYTHON$ac_delim
56607 WEBKIT_CFLAGS!$WEBKIT_CFLAGS$ac_delim
56608 WEBKIT_LIBS!$WEBKIT_LIBS$ac_delim
56609 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
56610 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
56611 GST_CFLAGS!$GST_CFLAGS$ac_delim
56612 GST_LIBS!$GST_LIBS$ac_delim
56613 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
56614 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
56615 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
56616 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
56617 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
56618 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
56619 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
56620 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
56621 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
56622 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
56623 VENDOR!$VENDOR$ac_delim
56624 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
56625 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
56626 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
56627 WXUNIV!$WXUNIV$ac_delim
56628 MONOLITHIC!$MONOLITHIC$ac_delim
56629 USE_PLUGINS!$USE_PLUGINS$ac_delim
56630 CXXWARNINGS!$CXXWARNINGS$ac_delim
56631 EXTRALIBS!$EXTRALIBS$ac_delim
56632 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
56633 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
56634 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
56635 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
56636 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
56637 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
56638 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
56639 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
56640 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
56641 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
56642 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
56643 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
56644 UNICODE!$UNICODE$ac_delim
56645 DEBUG_INFO!$DEBUG_INFO$ac_delim
56646 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
56647 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
56648 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
56649 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
56650 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
56651 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
56652 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
56653 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
56654 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
56655 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
56656 RANLIB!$RANLIB$ac_delim
56657 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
56658 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
56659 INSTALL_DATA!$INSTALL_DATA$ac_delim
56660 LN_S!$LN_S$ac_delim
56661 SET_MAKE!$SET_MAKE$ac_delim
56662 MAKE_SET!$MAKE_SET$ac_delim
56663 AROPTIONS!$AROPTIONS$ac_delim
56664 STRIP!$STRIP$ac_delim
56665 NM!$NM$ac_delim
56666 INSTALL_DIR!$INSTALL_DIR$ac_delim
56667 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
56668 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
56669 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
56670 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
56671 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
56672 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
56673 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
56674 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
56675 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
56676 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
56677 SO_SUFFIX!$SO_SUFFIX$ac_delim
56678 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
56679 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
56680 LIBPREFIX!$LIBPREFIX$ac_delim
56681 LIBEXT!$LIBEXT$ac_delim
56682 DLLPREFIX!$DLLPREFIX$ac_delim
56683 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
56684 dlldir!$dlldir$ac_delim
56685 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
56686 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
56687 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
56688 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
56689 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
56690 _ACEOF
56691
56692   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56693     break
56694   elif $ac_last_try; then
56695     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56697    { (exit 1); exit 1; }; }
56698   else
56699     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56700   fi
56701 done
56702
56703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56704 if test -n "$ac_eof"; then
56705   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56706   ac_eof=`expr $ac_eof + 1`
56707 fi
56708
56709 cat >>$CONFIG_STATUS <<_ACEOF
56710 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
56711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56712 _ACEOF
56713 sed '
56714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56715 s/^/s,@/; s/!/@,|#_!!_#|/
56716 :n
56717 t n
56718 s/'"$ac_delim"'$/,g/; t
56719 s/$/\\/; p
56720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56721 ' >>$CONFIG_STATUS <conf$$subs.sed
56722 rm -f conf$$subs.sed
56723 cat >>$CONFIG_STATUS <<_ACEOF
56724 CEOF$ac_eof
56725 _ACEOF
56726
56727
56728 ac_delim='%!_!# '
56729 for ac_last_try in false false false false false :; do
56730   cat >conf$$subs.sed <<_ACEOF
56731 PIC_FLAG!$PIC_FLAG$ac_delim
56732 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
56733 USE_SOVERSION!$USE_SOVERSION$ac_delim
56734 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
56735 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
56736 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
56737 USE_MACVERSION!$USE_MACVERSION$ac_delim
56738 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
56739 SONAME_FLAG!$SONAME_FLAG$ac_delim
56740 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
56741 BK_DEPS!$BK_DEPS$ac_delim
56742 WINDRES!$WINDRES$ac_delim
56743 REZ!$REZ$ac_delim
56744 SETFILE!$SETFILE$ac_delim
56745 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
56746 GCC_PCH!$GCC_PCH$ac_delim
56747 ICC_PCH!$ICC_PCH$ac_delim
56748 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
56749 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
56750 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
56751 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
56752 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
56753 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
56754 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
56755 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
56756 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
56757 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
56758 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
56759 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
56760 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
56761 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
56762 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
56763 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
56764 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
56765 COND_BUILD_release!$COND_BUILD_release$ac_delim
56766 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
56767 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
56768 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
56769 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
56770 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
56771 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
56772 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
56773 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
56774 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
56775 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
56776 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
56777 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
56778 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
56779 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
56780 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
56781 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
56782 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56783 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
56784 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56785 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
56786 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
56787 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
56788 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
56789 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
56790 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
56791 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
56792 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
56793 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
56794 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
56795 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
56796 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56797 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
56798 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
56799 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
56800 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
56801 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
56802 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
56803 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
56804 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56805 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
56806 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
56807 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
56808 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
56809 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
56810 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
56811 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
56812 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
56813 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
56814 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
56815 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
56816 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
56817 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
56818 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
56819 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
56820 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
56821 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
56822 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
56823 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
56824 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56825 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
56826 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56827 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
56828 _ACEOF
56829
56830   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56831     break
56832   elif $ac_last_try; then
56833     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56834 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56835    { (exit 1); exit 1; }; }
56836   else
56837     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56838   fi
56839 done
56840
56841 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56842 if test -n "$ac_eof"; then
56843   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56844   ac_eof=`expr $ac_eof + 1`
56845 fi
56846
56847 cat >>$CONFIG_STATUS <<_ACEOF
56848 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
56849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56850 _ACEOF
56851 sed '
56852 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56853 s/^/s,@/; s/!/@,|#_!!_#|/
56854 :n
56855 t n
56856 s/'"$ac_delim"'$/,g/; t
56857 s/$/\\/; p
56858 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56859 ' >>$CONFIG_STATUS <conf$$subs.sed
56860 rm -f conf$$subs.sed
56861 cat >>$CONFIG_STATUS <<_ACEOF
56862 CEOF$ac_eof
56863 _ACEOF
56864
56865
56866 ac_delim='%!_!# '
56867 for ac_last_try in false false false false false :; do
56868   cat >conf$$subs.sed <<_ACEOF
56869 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56870 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
56871 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
56872 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
56873 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
56874 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
56875 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
56876 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
56877 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
56878 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
56879 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
56880 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
56881 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
56882 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
56883 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
56884 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
56885 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
56886 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
56887 COND_SHARED_0!$COND_SHARED_0$ac_delim
56888 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
56889 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
56890 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
56891 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
56892 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
56893 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
56894 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
56895 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
56896 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
56897 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
56898 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
56899 COND_SHARED_1!$COND_SHARED_1$ac_delim
56900 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
56901 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
56902 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
56903 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
56904 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
56905 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
56906 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
56907 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
56908 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
56909 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
56910 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
56911 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
56912 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
56913 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
56914 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
56915 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
56916 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
56917 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
56918 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
56919 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
56920 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
56921 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
56922 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
56923 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
56924 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56925 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
56926 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56927 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
56928 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56929 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
56930 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
56931 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
56932 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
56933 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
56934 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
56935 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
56936 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
56937 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
56938 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
56939 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
56940 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
56941 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
56942 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
56943 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
56944 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
56945 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
56946 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
56947 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
56948 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
56949 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
56950 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
56951 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
56952 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
56953 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
56954 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
56955 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
56956 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
56957 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
56958 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
56959 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
56960 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
56961 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
56962 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
56963 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
56964 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
56965 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
56966 _ACEOF
56967
56968   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56969     break
56970   elif $ac_last_try; then
56971     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56972 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56973    { (exit 1); exit 1; }; }
56974   else
56975     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56976   fi
56977 done
56978
56979 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56980 if test -n "$ac_eof"; then
56981   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56982   ac_eof=`expr $ac_eof + 1`
56983 fi
56984
56985 cat >>$CONFIG_STATUS <<_ACEOF
56986 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
56987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56988 _ACEOF
56989 sed '
56990 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56991 s/^/s,@/; s/!/@,|#_!!_#|/
56992 :n
56993 t n
56994 s/'"$ac_delim"'$/,g/; t
56995 s/$/\\/; p
56996 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56997 ' >>$CONFIG_STATUS <conf$$subs.sed
56998 rm -f conf$$subs.sed
56999 cat >>$CONFIG_STATUS <<_ACEOF
57000 CEOF$ac_eof
57001 _ACEOF
57002
57003
57004 ac_delim='%!_!# '
57005 for ac_last_try in false false false false false :; do
57006   cat >conf$$subs.sed <<_ACEOF
57007 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
57008 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
57009 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
57010 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
57011 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
57012 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
57013 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
57014 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
57015 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
57016 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
57017 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
57018 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
57019 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
57020 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
57021 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
57022 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
57023 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
57024 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
57025 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
57026 DEREZ!$DEREZ$ac_delim
57027 SHARED!$SHARED$ac_delim
57028 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
57029 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
57030 USE_GUI!$USE_GUI$ac_delim
57031 AFMINSTALL!$AFMINSTALL$ac_delim
57032 WIN32INSTALL!$WIN32INSTALL$ac_delim
57033 TOOLKIT!$TOOLKIT$ac_delim
57034 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
57035 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
57036 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
57037 cross_compiling!$cross_compiling$ac_delim
57038 WIDGET_SET!$WIDGET_SET$ac_delim
57039 WX_RELEASE!$WX_RELEASE$ac_delim
57040 WX_VERSION!$WX_VERSION$ac_delim
57041 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
57042 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
57043 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
57044 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
57045 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
57046 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
57047 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
57048 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
57049 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
57050 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
57051 GUIDIST!$GUIDIST$ac_delim
57052 DISTDIR!$DISTDIR$ac_delim
57053 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
57054 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
57055 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
57056 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
57057 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
57058 RESCOMP!$RESCOMP$ac_delim
57059 RESFLAGS!$RESFLAGS$ac_delim
57060 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
57061 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
57062 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
57063 LIBWXMACRES!$LIBWXMACRES$ac_delim
57064 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
57065 MACSETFILE!$MACSETFILE$ac_delim
57066 GCC!$GCC$ac_delim
57067 DLLTOOL!$DLLTOOL$ac_delim
57068 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
57069 LIBOBJS!$LIBOBJS$ac_delim
57070 LTLIBOBJS!$LTLIBOBJS$ac_delim
57071 _ACEOF
57072
57073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
57074     break
57075   elif $ac_last_try; then
57076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57078    { (exit 1); exit 1; }; }
57079   else
57080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57081   fi
57082 done
57083
57084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57085 if test -n "$ac_eof"; then
57086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57087   ac_eof=`expr $ac_eof + 1`
57088 fi
57089
57090 cat >>$CONFIG_STATUS <<_ACEOF
57091 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
57092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
57093 _ACEOF
57094 sed '
57095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57096 s/^/s,@/; s/!/@,|#_!!_#|/
57097 :n
57098 t n
57099 s/'"$ac_delim"'$/,g/; t
57100 s/$/\\/; p
57101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57102 ' >>$CONFIG_STATUS <conf$$subs.sed
57103 rm -f conf$$subs.sed
57104 cat >>$CONFIG_STATUS <<_ACEOF
57105 :end
57106 s/|#_!!_#|//g
57107 CEOF$ac_eof
57108 _ACEOF
57109
57110
57111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57113 # trailing colons and then remove the whole line if VPATH becomes empty
57114 # (actually we leave an empty line to preserve line numbers).
57115 if test "x$srcdir" = x.; then
57116   ac_vpsub='/^[  ]*VPATH[        ]*=/{
57117 s/:*\$(srcdir):*/:/
57118 s/:*\${srcdir}:*/:/
57119 s/:*@srcdir@:*/:/
57120 s/^\([^=]*=[     ]*\):*/\1/
57121 s/:*$//
57122 s/^[^=]*=[       ]*$//
57123 }'
57124 fi
57125
57126 cat >>$CONFIG_STATUS <<\_ACEOF
57127 fi # test -n "$CONFIG_FILES"
57128
57129
57130 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
57131 do
57132   case $ac_tag in
57133   :[FHLC]) ac_mode=$ac_tag; continue;;
57134   esac
57135   case $ac_mode$ac_tag in
57136   :[FHL]*:*);;
57137   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
57138 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
57139    { (exit 1); exit 1; }; };;
57140   :[FH]-) ac_tag=-:-;;
57141   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57142   esac
57143   ac_save_IFS=$IFS
57144   IFS=:
57145   set x $ac_tag
57146   IFS=$ac_save_IFS
57147   shift
57148   ac_file=$1
57149   shift
57150
57151   case $ac_mode in
57152   :L) ac_source=$1;;
57153   :[FH])
57154     ac_file_inputs=
57155     for ac_f
57156     do
57157       case $ac_f in
57158       -) ac_f="$tmp/stdin";;
57159       *) # Look for the file first in the build tree, then in the source tree
57160          # (if the path is not absolute).  The absolute path cannot be DOS-style,
57161          # because $ac_f cannot contain `:'.
57162          test -f "$ac_f" ||
57163            case $ac_f in
57164            [\\/$]*) false;;
57165            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57166            esac ||
57167            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57168 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57169    { (exit 1); exit 1; }; };;
57170       esac
57171       ac_file_inputs="$ac_file_inputs $ac_f"
57172     done
57173
57174     # Let's still pretend it is `configure' which instantiates (i.e., don't
57175     # use $as_me), people would be surprised to read:
57176     #    /* config.h.  Generated by config.status.  */
57177     configure_input="Generated from "`IFS=:
57178           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
57179     if test x"$ac_file" != x-; then
57180       configure_input="$ac_file.  $configure_input"
57181       { echo "$as_me:$LINENO: creating $ac_file" >&5
57182 echo "$as_me: creating $ac_file" >&6;}
57183     fi
57184
57185     case $ac_tag in
57186     *:-:* | *:-) cat >"$tmp/stdin";;
57187     esac
57188     ;;
57189   esac
57190
57191   ac_dir=`$as_dirname -- "$ac_file" ||
57192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57193          X"$ac_file" : 'X\(//\)[^/]' \| \
57194          X"$ac_file" : 'X\(//\)$' \| \
57195          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57196 echo X"$ac_file" |
57197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57198             s//\1/
57199             q
57200           }
57201           /^X\(\/\/\)[^/].*/{
57202             s//\1/
57203             q
57204           }
57205           /^X\(\/\/\)$/{
57206             s//\1/
57207             q
57208           }
57209           /^X\(\/\).*/{
57210             s//\1/
57211             q
57212           }
57213           s/.*/./; q'`
57214   { as_dir="$ac_dir"
57215   case $as_dir in #(
57216   -*) as_dir=./$as_dir;;
57217   esac
57218   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57219     as_dirs=
57220     while :; do
57221       case $as_dir in #(
57222       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57223       *) as_qdir=$as_dir;;
57224       esac
57225       as_dirs="'$as_qdir' $as_dirs"
57226       as_dir=`$as_dirname -- "$as_dir" ||
57227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57228          X"$as_dir" : 'X\(//\)[^/]' \| \
57229          X"$as_dir" : 'X\(//\)$' \| \
57230          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57231 echo X"$as_dir" |
57232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57233             s//\1/
57234             q
57235           }
57236           /^X\(\/\/\)[^/].*/{
57237             s//\1/
57238             q
57239           }
57240           /^X\(\/\/\)$/{
57241             s//\1/
57242             q
57243           }
57244           /^X\(\/\).*/{
57245             s//\1/
57246             q
57247           }
57248           s/.*/./; q'`
57249       test -d "$as_dir" && break
57250     done
57251     test -z "$as_dirs" || eval "mkdir $as_dirs"
57252   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57254    { (exit 1); exit 1; }; }; }
57255   ac_builddir=.
57256
57257 case "$ac_dir" in
57258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57259 *)
57260   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57261   # A ".." for each directory in $ac_dir_suffix.
57262   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57263   case $ac_top_builddir_sub in
57264   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57265   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57266   esac ;;
57267 esac
57268 ac_abs_top_builddir=$ac_pwd
57269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57270 # for backward compatibility:
57271 ac_top_builddir=$ac_top_build_prefix
57272
57273 case $srcdir in
57274   .)  # We are building in place.
57275     ac_srcdir=.
57276     ac_top_srcdir=$ac_top_builddir_sub
57277     ac_abs_top_srcdir=$ac_pwd ;;
57278   [\\/]* | ?:[\\/]* )  # Absolute name.
57279     ac_srcdir=$srcdir$ac_dir_suffix;
57280     ac_top_srcdir=$srcdir
57281     ac_abs_top_srcdir=$srcdir ;;
57282   *) # Relative name.
57283     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57284     ac_top_srcdir=$ac_top_build_prefix$srcdir
57285     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57286 esac
57287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57288
57289
57290   case $ac_mode in
57291   :F)
57292   #
57293   # CONFIG_FILE
57294   #
57295
57296   case $INSTALL in
57297   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57298   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57299   esac
57300 _ACEOF
57301
57302 cat >>$CONFIG_STATUS <<\_ACEOF
57303 # If the template does not know about datarootdir, expand it.
57304 # FIXME: This hack should be removed a few years after 2.60.
57305 ac_datarootdir_hack=; ac_datarootdir_seen=
57306
57307 case `sed -n '/datarootdir/ {
57308   p
57309   q
57310 }
57311 /@datadir@/p
57312 /@docdir@/p
57313 /@infodir@/p
57314 /@localedir@/p
57315 /@mandir@/p
57316 ' $ac_file_inputs` in
57317 *datarootdir*) ac_datarootdir_seen=yes;;
57318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57319   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57320 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57321 _ACEOF
57322 cat >>$CONFIG_STATUS <<_ACEOF
57323   ac_datarootdir_hack='
57324   s&@datadir@&$datadir&g
57325   s&@docdir@&$docdir&g
57326   s&@infodir@&$infodir&g
57327   s&@localedir@&$localedir&g
57328   s&@mandir@&$mandir&g
57329     s&\\\${datarootdir}&$datarootdir&g' ;;
57330 esac
57331 _ACEOF
57332
57333 # Neutralize VPATH when `$srcdir' = `.'.
57334 # Shell code in configure.ac might set extrasub.
57335 # FIXME: do we really want to maintain this feature?
57336 cat >>$CONFIG_STATUS <<_ACEOF
57337   sed "$ac_vpsub
57338 $extrasub
57339 _ACEOF
57340 cat >>$CONFIG_STATUS <<\_ACEOF
57341 :t
57342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57343 s&@configure_input@&$configure_input&;t t
57344 s&@top_builddir@&$ac_top_builddir_sub&;t t
57345 s&@srcdir@&$ac_srcdir&;t t
57346 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57347 s&@top_srcdir@&$ac_top_srcdir&;t t
57348 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57349 s&@builddir@&$ac_builddir&;t t
57350 s&@abs_builddir@&$ac_abs_builddir&;t t
57351 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57352 s&@INSTALL@&$ac_INSTALL&;t t
57353 $ac_datarootdir_hack
57354 " $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
57355
57356 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57357   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57358   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57359   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57360 which seems to be undefined.  Please make sure it is defined." >&5
57361 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57362 which seems to be undefined.  Please make sure it is defined." >&2;}
57363
57364   rm -f "$tmp/stdin"
57365   case $ac_file in
57366   -) cat "$tmp/out"; rm -f "$tmp/out";;
57367   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
57368   esac
57369  ;;
57370   :H)
57371   #
57372   # CONFIG_HEADER
57373   #
57374 _ACEOF
57375
57376 # Transform confdefs.h into a sed script `conftest.defines', that
57377 # substitutes the proper values into config.h.in to produce config.h.
57378 rm -f conftest.defines conftest.tail
57379 # First, append a space to every undef/define line, to ease matching.
57380 echo 's/$/ /' >conftest.defines
57381 # Then, protect against being on the right side of a sed subst, or in
57382 # an unquoted here document, in config.status.  If some macros were
57383 # called several times there might be several #defines for the same
57384 # symbol, which is useless.  But do not sort them, since the last
57385 # AC_DEFINE must be honored.
57386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57387 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
57388 # NAME is the cpp macro being defined, VALUE is the value it is being given.
57389 # PARAMS is the parameter list in the macro definition--in most cases, it's
57390 # just an empty string.
57391 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
57392 ac_dB='\\)[      (].*,\\1define\\2'
57393 ac_dC=' '
57394 ac_dD=' ,'
57395
57396 uniq confdefs.h |
57397   sed -n '
57398         t rset
57399         :rset
57400         s/^[     ]*#[    ]*define[       ][      ]*//
57401         t ok
57402         d
57403         :ok
57404         s/[\\&,]/\\&/g
57405         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
57406         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
57407   ' >>conftest.defines
57408
57409 # Remove the space that was appended to ease matching.
57410 # Then replace #undef with comments.  This is necessary, for
57411 # example, in the case of _POSIX_SOURCE, which is predefined and required
57412 # on some systems where configure will not decide to define it.
57413 # (The regexp can be short, since the line contains either #define or #undef.)
57414 echo 's/ $//
57415 s,^[     #]*u.*,/* & */,' >>conftest.defines
57416
57417 # Break up conftest.defines:
57418 ac_max_sed_lines=50
57419
57420 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
57421 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
57422 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
57423 # et cetera.
57424 ac_in='$ac_file_inputs'
57425 ac_out='"$tmp/out1"'
57426 ac_nxt='"$tmp/out2"'
57427
57428 while :
57429 do
57430   # Write a here document:
57431     cat >>$CONFIG_STATUS <<_ACEOF
57432     # First, check the format of the line:
57433     cat >"\$tmp/defines.sed" <<\\CEOF
57434 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
57435 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
57436 b
57437 :def
57438 _ACEOF
57439   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
57440   echo 'CEOF
57441     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
57442   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
57443   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
57444   grep . conftest.tail >/dev/null || break
57445   rm -f conftest.defines
57446   mv conftest.tail conftest.defines
57447 done
57448 rm -f conftest.defines conftest.tail
57449
57450 echo "ac_result=$ac_in" >>$CONFIG_STATUS
57451 cat >>$CONFIG_STATUS <<\_ACEOF
57452   if test x"$ac_file" != x-; then
57453     echo "/* $configure_input  */" >"$tmp/config.h"
57454     cat "$ac_result" >>"$tmp/config.h"
57455     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
57456       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57457 echo "$as_me: $ac_file is unchanged" >&6;}
57458     else
57459       rm -f $ac_file
57460       mv "$tmp/config.h" $ac_file
57461     fi
57462   else
57463     echo "/* $configure_input  */"
57464     cat "$ac_result"
57465   fi
57466   rm -f "$tmp/out12"
57467  ;;
57468
57469   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
57470 echo "$as_me: executing $ac_file commands" >&6;}
57471  ;;
57472   esac
57473
57474
57475   case $ac_file$ac_mode in
57476     "rcdefs.h":C)
57477             mkdir -p $outdir &&
57478             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
57479          ;;
57480     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
57481     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
57482     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
57483     "wx-config":C)  rm -f wx-config
57484                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
57485                     ;;
57486
57487   esac
57488 done # for ac_tag
57489
57490
57491 { (exit 0); exit 0; }
57492 _ACEOF
57493 chmod +x $CONFIG_STATUS
57494 ac_clean_files=$ac_clean_files_save
57495
57496
57497 # configure is writing to config.log, and then calls config.status.
57498 # config.status does its own redirection, appending to config.log.
57499 # Unfortunately, on DOS this fails, as config.log is still kept open
57500 # by configure, so config.status won't be able to write to it; its
57501 # output is simply discarded.  So we exec the FD to /dev/null,
57502 # effectively closing config.log, so it can be properly (re)opened and
57503 # appended to by config.status.  When coming back to configure, we
57504 # need to make the FD available again.
57505 if test "$no_create" != yes; then
57506   ac_cs_success=:
57507   ac_config_status_args=
57508   test "$silent" = yes &&
57509     ac_config_status_args="$ac_config_status_args --quiet"
57510   exec 5>/dev/null
57511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57512   exec 5>>config.log
57513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57514   # would make configure fail if this is the last instruction.
57515   $ac_cs_success || { (exit 1); exit 1; }
57516 fi
57517
57518 #
57519 # CONFIG_SUBDIRS section.
57520 #
57521 if test "$no_recursion" != yes; then
57522
57523   # Remove --cache-file and --srcdir arguments so they do not pile up.
57524   ac_sub_configure_args=
57525   ac_prev=
57526   eval "set x $ac_configure_args"
57527   shift
57528   for ac_arg
57529   do
57530     if test -n "$ac_prev"; then
57531       ac_prev=
57532       continue
57533     fi
57534     case $ac_arg in
57535     -cache-file | --cache-file | --cache-fil | --cache-fi \
57536     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
57537       ac_prev=cache_file ;;
57538     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
57539     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
57540     | --c=*)
57541       ;;
57542     --config-cache | -C)
57543       ;;
57544     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
57545       ac_prev=srcdir ;;
57546     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
57547       ;;
57548     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
57549       ac_prev=prefix ;;
57550     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
57551       ;;
57552     *)
57553       case $ac_arg in
57554       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57555       esac
57556       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
57557     esac
57558   done
57559
57560   # Always prepend --prefix to ensure using the same prefix
57561   # in subdir configurations.
57562   ac_arg="--prefix=$prefix"
57563   case $ac_arg in
57564   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57565   esac
57566   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
57567
57568   # Pass --silent
57569   if test "$silent" = yes; then
57570     ac_sub_configure_args="--silent $ac_sub_configure_args"
57571   fi
57572
57573   ac_popdir=`pwd`
57574   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
57575
57576     # Do not complain, so a configure script can configure whichever
57577     # parts of a large source tree are present.
57578     test -d "$srcdir/$ac_dir" || continue
57579
57580     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
57581     echo "$as_me:$LINENO: $ac_msg" >&5
57582     echo "$ac_msg" >&6
57583     { as_dir="$ac_dir"
57584   case $as_dir in #(
57585   -*) as_dir=./$as_dir;;
57586   esac
57587   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57588     as_dirs=
57589     while :; do
57590       case $as_dir in #(
57591       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57592       *) as_qdir=$as_dir;;
57593       esac
57594       as_dirs="'$as_qdir' $as_dirs"
57595       as_dir=`$as_dirname -- "$as_dir" ||
57596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57597          X"$as_dir" : 'X\(//\)[^/]' \| \
57598          X"$as_dir" : 'X\(//\)$' \| \
57599          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57600 echo X"$as_dir" |
57601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57602             s//\1/
57603             q
57604           }
57605           /^X\(\/\/\)[^/].*/{
57606             s//\1/
57607             q
57608           }
57609           /^X\(\/\/\)$/{
57610             s//\1/
57611             q
57612           }
57613           /^X\(\/\).*/{
57614             s//\1/
57615             q
57616           }
57617           s/.*/./; q'`
57618       test -d "$as_dir" && break
57619     done
57620     test -z "$as_dirs" || eval "mkdir $as_dirs"
57621   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57622 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57623    { (exit 1); exit 1; }; }; }
57624     ac_builddir=.
57625
57626 case "$ac_dir" in
57627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57628 *)
57629   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57630   # A ".." for each directory in $ac_dir_suffix.
57631   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57632   case $ac_top_builddir_sub in
57633   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57634   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57635   esac ;;
57636 esac
57637 ac_abs_top_builddir=$ac_pwd
57638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57639 # for backward compatibility:
57640 ac_top_builddir=$ac_top_build_prefix
57641
57642 case $srcdir in
57643   .)  # We are building in place.
57644     ac_srcdir=.
57645     ac_top_srcdir=$ac_top_builddir_sub
57646     ac_abs_top_srcdir=$ac_pwd ;;
57647   [\\/]* | ?:[\\/]* )  # Absolute name.
57648     ac_srcdir=$srcdir$ac_dir_suffix;
57649     ac_top_srcdir=$srcdir
57650     ac_abs_top_srcdir=$srcdir ;;
57651   *) # Relative name.
57652     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57653     ac_top_srcdir=$ac_top_build_prefix$srcdir
57654     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57655 esac
57656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57657
57658
57659     cd "$ac_dir"
57660
57661     # Check for guested configure; otherwise get Cygnus style configure.
57662     if test -f "$ac_srcdir/configure.gnu"; then
57663       ac_sub_configure=$ac_srcdir/configure.gnu
57664     elif test -f "$ac_srcdir/configure"; then
57665       ac_sub_configure=$ac_srcdir/configure
57666     elif test -f "$ac_srcdir/configure.in"; then
57667       # This should be Cygnus configure.
57668       ac_sub_configure=$ac_aux_dir/configure
57669     else
57670       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
57671 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
57672       ac_sub_configure=
57673     fi
57674
57675     # The recursion is here.
57676     if test -n "$ac_sub_configure"; then
57677       # Make the cache file name correct relative to the subdirectory.
57678       case $cache_file in
57679       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
57680       *) # Relative name.
57681         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
57682       esac
57683
57684       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
57685 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
57686       # The eval makes quoting arguments work.
57687       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
57688            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
57689         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
57690 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
57691    { (exit 1); exit 1; }; }
57692     fi
57693
57694     cd "$ac_popdir"
57695   done
57696 fi
57697
57698
57699 echo
57700 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
57701 echo ""
57702 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
57703 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
57704 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
57705 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
57706 if test "$wxUSE_UNICODE" = "yes"; then
57707     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
57708         echo " (using UTF-8)"
57709     else
57710         echo " (using wchar_t)"
57711     fi
57712 else
57713     echo
57714 fi
57715
57716 echo "  What level of wxWidgets compatibility should be enabled?"
57717 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
57718 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
57719
57720 echo "  Which libraries should wxWidgets use?"
57721 echo "                                       STL                ${wxUSE_STL}"
57722 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
57723 echo "                                       png                ${wxUSE_LIBPNG-none}"
57724 echo "                                       regex              ${wxUSE_REGEX}"
57725 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
57726 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
57727 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
57728 fi
57729 echo "                                       zlib               ${wxUSE_ZLIB}"
57730 echo "                                       expat              ${wxUSE_EXPAT}"
57731 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
57732 echo "                                       sdl                ${wxUSE_LIBSDL}"
57733
57734 echo ""
57735