Fix build with Sun CC under Linux.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.3.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 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 CAIRO_CFLAGS
731 CAIRO_LIBS
732 GST_CFLAGS
733 GST_LIBS
734 ALL_WX_LIBS
735 BUILT_WX_LIBS
736 STD_BASE_LIBS
737 STD_GUI_LIBS
738 wxUSE_ZLIB
739 wxUSE_REGEX
740 wxUSE_EXPAT
741 wxUSE_LIBJPEG
742 wxUSE_LIBPNG
743 wxUSE_LIBTIFF
744 VENDOR
745 OFFICIAL_BUILD
746 WX_FLAVOUR
747 WX_LIB_FLAVOUR
748 WXUNIV
749 MONOLITHIC
750 USE_PLUGINS
751 CXXWARNINGS
752 EXTRALIBS
753 EXTRALIBS_XML
754 EXTRALIBS_HTML
755 EXTRALIBS_MEDIA
756 EXTRALIBS_GUI
757 EXTRALIBS_OPENGL
758 EXTRALIBS_SDL
759 EXTRALIBS_STC
760 WITH_PLUGIN_SDL
761 EXTRALIBS_GTKPRINT
762 EXTRALIBS_GNOMEPRINT
763 EXTRALIBS_GNOMEVFS
764 EXTRALIBS_HILDON
765 UNICODE
766 DEBUG_INFO
767 DEBUG_FLAG
768 TOOLKIT_LOWERCASE
769 TOOLKIT_VERSION
770 DYLIB_RPATH_INSTALL
771 DYLIB_RPATH_POSTLINK
772 SAMPLES_RPATH_FLAG
773 HEADER_PAD_OPTION
774 HOST_SUFFIX
775 CPPUNIT_CFLAGS
776 CPPUNIT_LIBS
777 RANLIB
778 INSTALL_PROGRAM
779 INSTALL_SCRIPT
780 INSTALL_DATA
781 LN_S
782 SET_MAKE
783 MAKE_SET
784 AROPTIONS
785 STRIP
786 NM
787 INSTALL_DIR
788 LDFLAGS_GUI
789 IF_GNU_MAKE
790 PLATFORM_UNIX
791 PLATFORM_WIN32
792 PLATFORM_MSDOS
793 PLATFORM_MAC
794 PLATFORM_MACOS
795 PLATFORM_MACOSX
796 PLATFORM_OS2
797 PLATFORM_BEOS
798 SO_SUFFIX
799 SO_SUFFIX_MODULE
800 DLLIMP_SUFFIX
801 LIBPREFIX
802 LIBEXT
803 DLLPREFIX
804 DLLPREFIX_MODULE
805 dlldir
806 AIX_CXX_LD
807 SHARED_LD_CC
808 SHARED_LD_CXX
809 SHARED_LD_MODULE_CC
810 SHARED_LD_MODULE_CXX
811 PIC_FLAG
812 WINDOWS_IMPLIB
813 USE_SOVERSION
814 USE_SOVERLINUX
815 USE_SOVERSOLARIS
816 USE_SOVERCYGWIN
817 USE_MACVERSION
818 USE_SOTWOSYMLINKS
819 SONAME_FLAG
820 DEPS_TRACKING
821 BK_DEPS
822 WINDRES
823 REZ
824 SETFILE
825 OBJCXXFLAGS
826 GCC_PCH
827 ICC_PCH
828 ICC_PCH_CREATE_SWITCH
829 ICC_PCH_USE_SWITCH
830 BK_MAKE_PCH
831 COND_BUILD_DEBUG
832 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
833 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
834 COND_BUILD_DEBUG_UNICODE_0
835 COND_BUILD_DEBUG_UNICODE_1
836 COND_BUILD_RELEASE
837 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
838 COND_BUILD_RELEASE_UNICODE_0
839 COND_BUILD_RELEASE_UNICODE_1
840 COND_BUILD_debug
841 COND_BUILD_debug_DEBUG_FLAG_default
842 COND_BUILD_debug_DEBUG_INFO_default
843 COND_BUILD_debug_UNICODE_0
844 COND_BUILD_debug_UNICODE_1
845 COND_BUILD_release
846 COND_BUILD_release_DEBUG_INFO_default
847 COND_BUILD_release_UNICODE_0
848 COND_BUILD_release_UNICODE_1
849 COND_DEBUG_FLAG_0
850 COND_DEBUG_FLAG_1
851 COND_DEBUG_INFO_0
852 COND_DEBUG_INFO_1
853 COND_DEPS_TRACKING_0
854 COND_DEPS_TRACKING_1
855 COND_GCC_PCH_1
856 COND_ICC_PCH_1
857 COND_MONOLITHIC_0
858 COND_MONOLITHIC_0_SHARED_0
859 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1
865 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
870 COND_MONOLITHIC_0_SHARED_1
871 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
872 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
873 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
874 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
875 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
876 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1
877 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
878 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
879 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
880 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
881 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
882 COND_MONOLITHIC_0_USE_AUI_1
883 COND_MONOLITHIC_0_USE_GUI_1
884 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
885 COND_MONOLITHIC_0_USE_HTML_1
886 COND_MONOLITHIC_0_USE_MEDIA_1
887 COND_MONOLITHIC_0_USE_PROPGRID_1
888 COND_MONOLITHIC_0_USE_QA_1
889 COND_MONOLITHIC_0_USE_RIBBON_1
890 COND_MONOLITHIC_0_USE_RICHTEXT_1
891 COND_MONOLITHIC_0_USE_STC_1
892 COND_MONOLITHIC_0_USE_WEBVIEW_1
893 COND_MONOLITHIC_0_USE_XRC_1
894 COND_MONOLITHIC_1
895 COND_MONOLITHIC_1_SHARED_0
896 COND_MONOLITHIC_1_SHARED_1
897 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
898 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
899 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
900 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
901 COND_PLATFORM_MACOSX_1
902 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
903 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
904 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
905 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
906 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
907 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
908 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
909 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
910 COND_PLATFORM_MACOSX_1_USE_GUI_1
911 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
912 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
913 COND_PLATFORM_MACOS_1
914 COND_PLATFORM_MAC_0
915 COND_PLATFORM_MAC_1
916 COND_PLATFORM_MSDOS_0
917 COND_PLATFORM_MSDOS_1
918 COND_PLATFORM_OS2_1
919 COND_PLATFORM_UNIX_0
920 COND_PLATFORM_UNIX_1
921 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
922 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_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_MGL
958 COND_TOOLKIT_MGL_USE_GUI_1
959 COND_TOOLKIT_MOTIF
960 COND_TOOLKIT_MOTIF_USE_GUI_1
961 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
962 COND_TOOLKIT_MSW
963 COND_TOOLKIT_MSW_USE_GUI_1
964 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
965 COND_TOOLKIT_MSW_WXUNIV_0
966 COND_TOOLKIT_OSX_CARBON
967 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
968 COND_TOOLKIT_OSX_COCOA
969 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
970 COND_TOOLKIT_OSX_IPHONE
971 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
972 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
973 COND_TOOLKIT_PM
974 COND_TOOLKIT_PM_USE_GUI_1
975 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
976 COND_TOOLKIT_WINCE
977 COND_TOOLKIT_WINCE_USE_GUI_1
978 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
979 COND_TOOLKIT_WINCE_WXUNIV_0
980 COND_TOOLKIT_X11
981 COND_TOOLKIT_X11_USE_GUI_1
982 COND_UNICODE_1
983 COND_USE_CAIRO_1
984 COND_USE_EXCEPTIONS_0
985 COND_USE_EXCEPTIONS_1
986 COND_USE_GUI_0
987 COND_USE_GUI_1
988 COND_USE_GUI_1_USE_OPENGL_1
989 COND_USE_GUI_1_WXUNIV_0
990 COND_USE_GUI_1_WXUNIV_1
991 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
992 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
993 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
994 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
995 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
996 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
997 COND_USE_OPENGL_1
998 COND_USE_PCH_1
999 COND_USE_PLUGINS_0
1000 COND_USE_RTTI_0
1001 COND_USE_RTTI_1
1002 COND_USE_SOTWOSYMLINKS_1
1003 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
1004 COND_USE_SOVERLINUX_1
1005 COND_USE_SOVERSION_0
1006 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
1007 COND_USE_SOVERSOLARIS_1
1008 COND_USE_STC_1
1009 COND_USE_THREADS_0
1010 COND_USE_THREADS_1
1011 COND_USE_XRC_1
1012 COND_WINDOWS_IMPLIB_1
1013 COND_WITH_PLUGIN_SDL_1
1014 COND_WXUNIV_0
1015 COND_WXUNIV_1
1016 COND_WXUSE_EXPAT_BUILTIN
1017 COND_WXUSE_LIBJPEG_BUILTIN
1018 COND_WXUSE_LIBPNG_BUILTIN
1019 COND_WXUSE_LIBTIFF_BUILTIN
1020 COND_WXUSE_REGEX_BUILTIN
1021 COND_WXUSE_ZLIB_BUILTIN
1022 COND_wxUSE_EXPAT_builtin
1023 COND_wxUSE_LIBJPEG_builtin
1024 COND_wxUSE_LIBPNG_builtin
1025 COND_wxUSE_LIBTIFF_builtin
1026 COND_wxUSE_REGEX_builtin
1027 COND_wxUSE_ZLIB_builtin
1028 DEREZ
1029 SHARED
1030 WX_LIBRARY_BASENAME_NOGUI
1031 WX_LIBRARY_BASENAME_GUI
1032 USE_GUI
1033 AFMINSTALL
1034 WIN32INSTALL
1035 TOOLKIT
1036 TOOLKIT_DIR
1037 TOOLCHAIN_NAME
1038 TOOLCHAIN_FULLNAME
1039 cross_compiling
1040 WIDGET_SET
1041 WX_RELEASE
1042 WX_VERSION
1043 WX_SUBVERSION
1044 WX_CHARTYPE
1045 WXCONFIG_CPPFLAGS
1046 WXCONFIG_CFLAGS
1047 WXCONFIG_CXXFLAGS
1048 WXCONFIG_LIBS
1049 WXCONFIG_RPATH
1050 WXCONFIG_LDFLAGS
1051 WXCONFIG_LDFLAGS_GUI
1052 WXCONFIG_RESFLAGS
1053 GUIDIST
1054 DISTDIR
1055 SAMPLES_SUBDIRS
1056 LDFLAGS_GL
1057 OPENGL_LIBS
1058 DMALLOC_LIBS
1059 WX_VERSION_TAG
1060 RESCOMP
1061 RESFLAGS
1062 RESPROGRAMOBJ
1063 WX_RESOURCES_MACOSX_ASCII
1064 WX_RESOURCES_MACOSX_DATA
1065 LIBWXMACRES
1066 POSTLINK_COMMAND
1067 MACSETFILE
1068 GCC
1069 DLLTOOL
1070 CPPUNIT_CONFIG
1071 LIBOBJS
1072 LTLIBOBJS'
1073 ac_subst_files=''
1074       ac_precious_vars='build_alias
1075 host_alias
1076 target_alias
1077 CC
1078 CFLAGS
1079 LDFLAGS
1080 LIBS
1081 CPPFLAGS
1082 CPP
1083 CXX
1084 CXXFLAGS
1085 CCC
1086 CXXCPP
1087 PKG_CONFIG
1088 DIRECTFB_CFLAGS
1089 DIRECTFB_LIBS
1090 XMKMF
1091 PANGOX_CFLAGS
1092 PANGOX_LIBS
1093 PANGOFT2_CFLAGS
1094 PANGOFT2_LIBS
1095 PANGOXFT_CFLAGS
1096 PANGOXFT_LIBS
1097 Xinerama_CFLAGS
1098 Xinerama_LIBS
1099 Xxf86vm_CFLAGS
1100 Xxf86vm_LIBS
1101 SM_CFLAGS
1102 SM_LIBS
1103 GL_CFLAGS
1104 GL_LIBS
1105 GLU_CFLAGS
1106 GLU_LIBS
1107 MesaGL_CFLAGS
1108 MesaGL_LIBS
1109 GTKPRINT_CFLAGS
1110 GTKPRINT_LIBS
1111 LIBGNOMEPRINTUI_CFLAGS
1112 LIBGNOMEPRINTUI_LIBS
1113 GNOMEVFS_CFLAGS
1114 GNOMEVFS_LIBS
1115 HILDON_CFLAGS
1116 HILDON_LIBS
1117 HILDON2_CFLAGS
1118 HILDON2_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.3 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.3:";;
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  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) 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-mgl              use SciTech MGL
1984   --with-directfb         use DirectFB
1985   --with-microwin         use MicroWindows
1986   --with-x11              use X11
1987   --with-libpng           use libpng (PNG image format)
1988   --with-libjpeg          use libjpeg (JPEG file format)
1989   --with-libtiff          use libtiff (TIFF file format)
1990   --with-libxpm           use libxpm (XPM file format)
1991   --with-libiconv         use libiconv (character conversion)
1992   --with-libmspack        use libmspack (CHM help files loading)
1993   --without-gtkprint      don't use GTK printing support
1994   --without-gnomeprint    don't use GNOME printing libraries
1995   --with-gnomevfs         use GNOME VFS for associating MIME types
1996   --with-hildon           use Hildon framework for Nokia 770/800/810
1997   --with-opengl           use OpenGL (or Mesa)
1998   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1999   --with-sdl              use SDL for audio on Unix
2000   --with-regex            enable support for wxRegEx class
2001   --with-zlib             use zlib for LZW compression
2002   --with-expat            enable XML support using expat parser
2003   --with-macosx-sdk=PATH  use an OS X SDK at PATH
2004   --with-macosx-version-min=VER   build binaries which require at least this OS X version
2005   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
2006   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
2007   --with-x                use the X Window System
2008   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
2009   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2010   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2011   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2012   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2013
2014 Some influential environment variables:
2015   CC          C compiler command
2016   CFLAGS      C compiler flags
2017   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2018               nonstandard directory <lib dir>
2019   LIBS        libraries to pass to the linker, e.g. -l<library>
2020   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2021               you have headers in a nonstandard directory <include dir>
2022   CPP         C preprocessor
2023   CXX         C++ compiler command
2024   CXXFLAGS    C++ compiler flags
2025   CXXCPP      C++ preprocessor
2026   PKG_CONFIG  path to pkg-config utility
2027   DIRECTFB_CFLAGS
2028               C compiler flags for DIRECTFB, overriding pkg-config
2029   DIRECTFB_LIBS
2030               linker flags for DIRECTFB, overriding pkg-config
2031   XMKMF       Path to xmkmf, Makefile generator for X Window System
2032   PANGOX_CFLAGS
2033               C compiler flags for PANGOX, overriding pkg-config
2034   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2035   PANGOFT2_CFLAGS
2036               C compiler flags for PANGOFT2, overriding pkg-config
2037   PANGOFT2_LIBS
2038               linker flags for PANGOFT2, overriding pkg-config
2039   PANGOXFT_CFLAGS
2040               C compiler flags for PANGOXFT, overriding pkg-config
2041   PANGOXFT_LIBS
2042               linker flags for PANGOXFT, overriding pkg-config
2043   Xinerama_CFLAGS
2044               C compiler flags for Xinerama, overriding pkg-config
2045   Xinerama_LIBS
2046               linker flags for Xinerama, overriding pkg-config
2047   Xxf86vm_CFLAGS
2048               C compiler flags for Xxf86vm, overriding pkg-config
2049   Xxf86vm_LIBS
2050               linker flags for Xxf86vm, overriding pkg-config
2051   SM_CFLAGS   C compiler flags for SM, overriding pkg-config
2052   SM_LIBS     linker flags for SM, overriding pkg-config
2053   GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2054   GL_LIBS     linker flags for GL, overriding pkg-config
2055   GLU_CFLAGS  C compiler flags for GLU, overriding pkg-config
2056   GLU_LIBS    linker flags for GLU, overriding pkg-config
2057   MesaGL_CFLAGS
2058               C compiler flags for MesaGL, overriding pkg-config
2059   MesaGL_LIBS linker flags for MesaGL, overriding pkg-config
2060   GTKPRINT_CFLAGS
2061               C compiler flags for GTKPRINT, overriding pkg-config
2062   GTKPRINT_LIBS
2063               linker flags for GTKPRINT, overriding pkg-config
2064   LIBGNOMEPRINTUI_CFLAGS
2065               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2066   LIBGNOMEPRINTUI_LIBS
2067               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2068   GNOMEVFS_CFLAGS
2069               C compiler flags for GNOMEVFS, overriding pkg-config
2070   GNOMEVFS_LIBS
2071               linker flags for GNOMEVFS, overriding pkg-config
2072   HILDON_CFLAGS
2073               C compiler flags for HILDON, overriding pkg-config
2074   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2075   HILDON2_CFLAGS
2076               C compiler flags for HILDON2, overriding pkg-config
2077   HILDON2_LIBS
2078               linker flags for HILDON2, overriding pkg-config
2079   CAIRO_CFLAGS
2080               C compiler flags for CAIRO, overriding pkg-config
2081   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2082   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2083   GST_LIBS    linker flags for GST, overriding pkg-config
2084
2085 Use these variables to override the choices made by `configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2087
2088 Report bugs to <wx-dev@lists.wxwidgets.org>.
2089 _ACEOF
2090 ac_status=$?
2091 fi
2092
2093 if test "$ac_init_help" = "recursive"; then
2094   # If there are subdirs, report their specific --help.
2095   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096     test -d "$ac_dir" || continue
2097     ac_builddir=.
2098
2099 case "$ac_dir" in
2100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101 *)
2102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2103   # A ".." for each directory in $ac_dir_suffix.
2104   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2105   case $ac_top_builddir_sub in
2106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2108   esac ;;
2109 esac
2110 ac_abs_top_builddir=$ac_pwd
2111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2112 # for backward compatibility:
2113 ac_top_builddir=$ac_top_build_prefix
2114
2115 case $srcdir in
2116   .)  # We are building in place.
2117     ac_srcdir=.
2118     ac_top_srcdir=$ac_top_builddir_sub
2119     ac_abs_top_srcdir=$ac_pwd ;;
2120   [\\/]* | ?:[\\/]* )  # Absolute name.
2121     ac_srcdir=$srcdir$ac_dir_suffix;
2122     ac_top_srcdir=$srcdir
2123     ac_abs_top_srcdir=$srcdir ;;
2124   *) # Relative name.
2125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2126     ac_top_srcdir=$ac_top_build_prefix$srcdir
2127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2128 esac
2129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2130
2131     cd "$ac_dir" || { ac_status=$?; continue; }
2132     # Check for guested configure.
2133     if test -f "$ac_srcdir/configure.gnu"; then
2134       echo &&
2135       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2136     elif test -f "$ac_srcdir/configure"; then
2137       echo &&
2138       $SHELL "$ac_srcdir/configure" --help=recursive
2139     else
2140       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2141     fi || ac_status=$?
2142     cd "$ac_pwd" || { ac_status=$?; break; }
2143   done
2144 fi
2145
2146 test -n "$ac_init_help" && exit $ac_status
2147 if $ac_init_version; then
2148   cat <<\_ACEOF
2149 wxWidgets configure 2.9.3
2150 generated by GNU Autoconf 2.61
2151
2152 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2153 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2154 This configure script is free software; the Free Software Foundation
2155 gives unlimited permission to copy, distribute and modify it.
2156 _ACEOF
2157   exit
2158 fi
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by wxWidgets $as_me 2.9.3, which was
2164 generated by GNU Autoconf 2.61.  Invocation command line was
2165
2166   $ $0 $@
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2184
2185 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2186 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2189 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2190 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2191 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227   for ac_arg
2228   do
2229     case $ac_arg in
2230     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232     | -silent | --silent | --silen | --sile | --sil)
2233       continue ;;
2234     *\'*)
2235       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236     esac
2237     case $ac_pass in
2238     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2239     2)
2240       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2241       if test $ac_must_keep_next = true; then
2242         ac_must_keep_next=false # Got value, back to normal.
2243       else
2244         case $ac_arg in
2245           *=* | --config-cache | -C | -disable-* | --disable-* \
2246           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248           | -with-* | --with-* | -without-* | --without-* | --x)
2249             case "$ac_configure_args0 " in
2250               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251             esac
2252             ;;
2253           -* ) ac_must_keep_next=true ;;
2254         esac
2255       fi
2256       ac_configure_args="$ac_configure_args '$ac_arg'"
2257       ;;
2258     esac
2259   done
2260 done
2261 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2262 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log.  We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270   # Save into config.log some information that might help in debugging.
2271   {
2272     echo
2273
2274     cat <<\_ASBOX
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2278 _ASBOX
2279     echo
2280     # The following way of writing the cache mishandles newlines in values,
2281 (
2282   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283     eval ac_val=\$$ac_var
2284     case $ac_val in #(
2285     *${as_nl}*)
2286       case $ac_var in #(
2287       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2288 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2289       esac
2290       case $ac_var in #(
2291       _ | IFS | as_nl) ;; #(
2292       *) $as_unset $ac_var ;;
2293       esac ;;
2294     esac
2295   done
2296   (set) 2>&1 |
2297     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298     *${as_nl}ac_space=\ *)
2299       sed -n \
2300         "s/'\''/'\''\\\\'\'''\''/g;
2301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302       ;; #(
2303     *)
2304       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305       ;;
2306     esac |
2307     sort
2308 )
2309     echo
2310
2311     cat <<\_ASBOX
2312 ## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##
2315 _ASBOX
2316     echo
2317     for ac_var in $ac_subst_vars
2318     do
2319       eval ac_val=\$$ac_var
2320       case $ac_val in
2321       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322       esac
2323       echo "$ac_var='\''$ac_val'\''"
2324     done | sort
2325     echo
2326
2327     if test -n "$ac_subst_files"; then
2328       cat <<\_ASBOX
2329 ## ------------------- ##
2330 ## File substitutions. ##
2331 ## ------------------- ##
2332 _ASBOX
2333       echo
2334       for ac_var in $ac_subst_files
2335       do
2336         eval ac_val=\$$ac_var
2337         case $ac_val in
2338         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339         esac
2340         echo "$ac_var='\''$ac_val'\''"
2341       done | sort
2342       echo
2343     fi
2344
2345     if test -s confdefs.h; then
2346       cat <<\_ASBOX
2347 ## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##
2350 _ASBOX
2351       echo
2352       cat confdefs.h
2353       echo
2354     fi
2355     test "$ac_signal" != 0 &&
2356       echo "$as_me: caught signal $ac_signal"
2357     echo "$as_me: exit $exit_status"
2358   } >&5
2359   rm -f core *.core core.conftest.* &&
2360     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361     exit $exit_status
2362 ' 0
2363 for ac_signal in 1 2 13 15; do
2364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2365 done
2366 ac_signal=0
2367
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2370
2371 # Predefined preprocessor variables.
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 _ACEOF
2376
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2381
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 _ACEOF
2386
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2391
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2396
2397
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401   set x "$CONFIG_SITE"
2402 elif test "x$prefix" != xNONE; then
2403   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2404 else
2405   set x "$ac_default_prefix/share/config.site" \
2406         "$ac_default_prefix/etc/config.site"
2407 fi
2408 shift
2409 for ac_site_file
2410 do
2411   if test -r "$ac_site_file"; then
2412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2413 echo "$as_me: loading site script $ac_site_file" >&6;}
2414     sed 's/^/| /' "$ac_site_file" >&5
2415     . "$ac_site_file"
2416   fi
2417 done
2418
2419 if test -r "$cache_file"; then
2420   # Some versions of bash will fail to source /dev/null (special
2421   # files actually), so we avoid doing that.
2422   if test -f "$cache_file"; then
2423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2424 echo "$as_me: loading cache $cache_file" >&6;}
2425     case $cache_file in
2426       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427       *)                      . "./$cache_file";;
2428     esac
2429   fi
2430 else
2431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2432 echo "$as_me: creating cache $cache_file" >&6;}
2433   >$cache_file
2434 fi
2435
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441   eval ac_new_set=\$ac_env_${ac_var}_set
2442   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443   eval ac_new_val=\$ac_env_${ac_var}_value
2444   case $ac_old_set,$ac_new_set in
2445     set,)
2446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448       ac_cache_corrupted=: ;;
2449     ,set)
2450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452       ac_cache_corrupted=: ;;
2453     ,);;
2454     *)
2455       if test "x$ac_old_val" != "x$ac_new_val"; then
2456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2459 echo "$as_me:   former value:  $ac_old_val" >&2;}
2460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2461 echo "$as_me:   current value: $ac_new_val" >&2;}
2462         ac_cache_corrupted=:
2463       fi;;
2464   esac
2465   # Pass precious variables to config.status.
2466   if test "$ac_new_set" = set; then
2467     case $ac_new_val in
2468     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469     *) ac_arg=$ac_var=$ac_new_val ;;
2470     esac
2471     case " $ac_configure_args " in
2472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2474     esac
2475   fi
2476 done
2477 if $ac_cache_corrupted; then
2478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2482    { (exit 1); exit 1; }; }
2483 fi
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516
2517
2518
2519 ac_aux_dir=
2520 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521   if test -f "$ac_dir/install-sh"; then
2522     ac_aux_dir=$ac_dir
2523     ac_install_sh="$ac_aux_dir/install-sh -c"
2524     break
2525   elif test -f "$ac_dir/install.sh"; then
2526     ac_aux_dir=$ac_dir
2527     ac_install_sh="$ac_aux_dir/install.sh -c"
2528     break
2529   elif test -f "$ac_dir/shtool"; then
2530     ac_aux_dir=$ac_dir
2531     ac_install_sh="$ac_aux_dir/shtool install -c"
2532     break
2533   fi
2534 done
2535 if test -z "$ac_aux_dir"; then
2536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2537 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2538    { (exit 1); exit 1; }; }
2539 fi
2540
2541 # These three variables are undocumented and unsupported,
2542 # and are intended to be withdrawn in a future Autoconf release.
2543 # They can cause serious problems if a builder's source tree is in a directory
2544 # whose full name contains unusual characters.
2545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2547 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2548
2549
2550 # Make sure we can run config.sub.
2551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2552   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2553 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2554    { (exit 1); exit 1; }; }
2555
2556 { echo "$as_me:$LINENO: checking build system type" >&5
2557 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2558 if test "${ac_cv_build+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   ac_build_alias=$build_alias
2562 test "x$ac_build_alias" = x &&
2563   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2564 test "x$ac_build_alias" = x &&
2565   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2567    { (exit 1); exit 1; }; }
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2570 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2571    { (exit 1); exit 1; }; }
2572
2573 fi
2574 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2575 echo "${ECHO_T}$ac_cv_build" >&6; }
2576 case $ac_cv_build in
2577 *-*-*) ;;
2578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2579 echo "$as_me: error: invalid value of canonical build" >&2;}
2580    { (exit 1); exit 1; }; };;
2581 esac
2582 build=$ac_cv_build
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_build
2585 shift
2586 build_cpu=$1
2587 build_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 build_os=$*
2592 IFS=$ac_save_IFS
2593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { echo "$as_me:$LINENO: checking host system type" >&5
2597 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2598 if test "${ac_cv_host+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test "x$host_alias" = x; then
2602   ac_cv_host=$ac_cv_build
2603 else
2604   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2612 echo "${ECHO_T}$ac_cv_host" >&6; }
2613 case $ac_cv_host in
2614 *-*-*) ;;
2615 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2616 echo "$as_me: error: invalid value of canonical host" >&2;}
2617    { (exit 1); exit 1; }; };;
2618 esac
2619 host=$ac_cv_host
2620 ac_save_IFS=$IFS; IFS='-'
2621 set x $ac_cv_host
2622 shift
2623 host_cpu=$1
2624 host_vendor=$2
2625 shift; shift
2626 # Remember, the first character of IFS is used to create $*,
2627 # except with old shells:
2628 host_os=$*
2629 IFS=$ac_save_IFS
2630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633
2634 if test "$cross_compiling" != "no"; then
2635     HOST_PREFIX="${host_alias}-"
2636     HOST_SUFFIX="-$host_alias"
2637 else
2638     HOST_PREFIX=
2639     HOST_SUFFIX=
2640 fi
2641
2642
2643 wx_major_version_number=2
2644 wx_minor_version_number=9
2645 wx_release_number=3
2646 wx_subrelease_number=0
2647
2648 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2649 WX_VERSION=$WX_RELEASE.$wx_release_number
2650 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2651
2652 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2653
2654
2655 wx_top_builddir="`pwd`"
2656
2657
2658
2659
2660 USE_UNIX=1
2661 USE_OS2=0
2662 USE_WIN32=0
2663 USE_DOS=0
2664 USE_BEOS=0
2665 USE_MAC=0
2666
2667 USE_AIX=
2668 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2669 USE_GNU=                            USE_HPUX=
2670 USE_LINUX=
2671 USE_NETBSD=
2672 USE_OPENBSD=
2673 USE_OSF=                            USE_SGI=
2674 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2675 USE_ULTRIX=
2676 USE_UNIXWARE=
2677
2678 USE_ALPHA=
2679
2680 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2681
2682 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2683
2684 DEFAULT_wxUSE_OLD_COCOA=0
2685 DEFAULT_wxUSE_GTK=0
2686 DEFAULT_wxUSE_OSX_CARBON=0
2687 DEFAULT_wxUSE_OSX_COCOA=0
2688 DEFAULT_wxUSE_OSX_IPHONE=0
2689 DEFAULT_wxUSE_MGL=0
2690 DEFAULT_wxUSE_MICROWIN=0
2691 DEFAULT_wxUSE_MOTIF=0
2692 DEFAULT_wxUSE_MSW=0
2693 DEFAULT_wxUSE_PM=0
2694 DEFAULT_wxUSE_X11=0
2695 DEFAULT_wxUSE_DFB=0
2696
2697 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2698 DEFAULT_DEFAULT_wxUSE_GTK=0
2699 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2700 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2701 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2702 DEFAULT_DEFAULT_wxUSE_MGL=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     DEFAULT_DEFAULT_wxUSE_MGL=1
2940   ;;
2941
2942   *-pc-os2_emx | *-pc-os2-emx )
2943     cat >>confdefs.h <<\_ACEOF
2944 #define __EMX__ 1
2945 _ACEOF
2946
2947     USE_OS2=1
2948     cat >>confdefs.h <<\_ACEOF
2949 #define __OS2__ 1
2950 _ACEOF
2951
2952     PROGRAM_EXT=".exe"
2953     DEFAULT_DEFAULT_wxUSE_PM=1
2954         CXX=gcc
2955     LDFLAGS="$LDFLAGS -Zcrtdll"
2956                         ac_executable_extensions=".exe"
2957     export ac_executable_extensions
2958             ac_save_IFS="$IFS"
2959     IFS='\\'
2960     ac_TEMP_PATH=
2961     for ac_dir in $PATH; do
2962       IFS=$ac_save_IFS
2963       if test -z "$ac_TEMP_PATH"; then
2964         ac_TEMP_PATH="$ac_dir"
2965       else
2966         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2967       fi
2968     done
2969     export PATH="$ac_TEMP_PATH"
2970     unset ac_TEMP_PATH
2971     DEFAULT_STD_FLAG=no
2972   ;;
2973
2974   arm-apple-darwin*)
2975         USE_BSD=1
2976     USE_DARWIN=1
2977     cat >>confdefs.h <<\_ACEOF
2978 #define __BSD__ 1
2979 _ACEOF
2980
2981     cat >>confdefs.h <<\_ACEOF
2982 #define __DARWIN__ 1
2983 _ACEOF
2984
2985     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2986   ;;
2987
2988   *-*-darwin* )
2989         USE_BSD=1
2990     USE_DARWIN=1
2991     cat >>confdefs.h <<\_ACEOF
2992 #define __BSD__ 1
2993 _ACEOF
2994
2995     cat >>confdefs.h <<\_ACEOF
2996 #define __DARWIN__ 1
2997 _ACEOF
2998
2999     cat >>confdefs.h <<\_ACEOF
3000 #define TARGET_CARBON 1
3001 _ACEOF
3002
3003     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
3004   ;;
3005
3006   *-*-beos* )
3007         USE_BEOS=1
3008     cat >>confdefs.h <<\_ACEOF
3009 #define __BEOS__ 1
3010 _ACEOF
3011
3012   ;;
3013
3014   *)
3015     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
3016 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
3017     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
3018 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
3019
3020     DEFAULT_DEFAULT_wxUSE_X11=1
3021     DEFAULT_wxUSE_SHARED=no
3022 esac
3023
3024
3025
3026 DEFAULT_wxUSE_ALL_FEATURES=yes
3027
3028 DEFAULT_wxUSE_STD_CONTAINERS=no
3029 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3030 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3031
3032 DEFAULT_wxUSE_DMALLOC=no
3033 DEFAULT_wxUSE_LIBGNOMEVFS=no
3034 DEFAULT_wxUSE_LIBHILDON=no
3035 DEFAULT_wxUSE_LIBHILDON2=no
3036 DEFAULT_wxUSE_LIBMSPACK=no
3037 DEFAULT_wxUSE_LIBSDL=no
3038
3039 DEFAULT_wxUSE_ACCESSIBILITY=no
3040 DEFAULT_wxUSE_IPV6=no
3041 DEFAULT_wxUSE_GSTREAMER8=no
3042
3043 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3044 DEFAULT_wxUSE_UNICODE_UTF8=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_UNICODE_UTF8_LOCALE=no
3052
3053 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3054 DEFAULT_wxUSE_MAC_ARCH=no
3055
3056 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3057
3058 DEFAULT_wxUSE_GTK2=yes
3059
3060 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3061
3062
3063
3064
3065
3066           enablestring=disable
3067           defaultval=
3068           if test -z "$defaultval"; then
3069               if test x"$enablestring" = xdisable; then
3070                   defaultval=yes
3071               else
3072                   defaultval=no
3073               fi
3074           fi
3075
3076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3077 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3078           # Check whether --enable-gui was given.
3079 if test "${enable_gui+set}" = set; then
3080   enableval=$enable_gui;
3081                           if test "$enableval" = yes; then
3082                             wx_cv_use_gui='wxUSE_GUI=yes'
3083                           else
3084                             wx_cv_use_gui='wxUSE_GUI=no'
3085                           fi
3086
3087 else
3088
3089                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3090
3091 fi
3092
3093
3094           eval "$wx_cv_use_gui"
3095
3096           if test x"$enablestring" = xdisable; then
3097             if test $wxUSE_GUI = no; then
3098               result=yes
3099             else
3100               result=no
3101             fi
3102           else
3103             result=$wxUSE_GUI
3104           fi
3105
3106           { echo "$as_me:$LINENO: result: $result" >&5
3107 echo "${ECHO_T}$result" >&6; }
3108
3109
3110           enablestring=
3111           defaultval=
3112           if test -z "$defaultval"; then
3113               if test x"$enablestring" = xdisable; then
3114                   defaultval=yes
3115               else
3116                   defaultval=no
3117               fi
3118           fi
3119
3120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3121 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3122           # Check whether --enable-monolithic was given.
3123 if test "${enable_monolithic+set}" = set; then
3124   enableval=$enable_monolithic;
3125                           if test "$enableval" = yes; then
3126                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3127                           else
3128                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3129                           fi
3130
3131 else
3132
3133                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3134
3135 fi
3136
3137
3138           eval "$wx_cv_use_monolithic"
3139
3140           if test x"$enablestring" = xdisable; then
3141             if test $wxUSE_MONOLITHIC = no; then
3142               result=yes
3143             else
3144               result=no
3145             fi
3146           else
3147             result=$wxUSE_MONOLITHIC
3148           fi
3149
3150           { echo "$as_me:$LINENO: result: $result" >&5
3151 echo "${ECHO_T}$result" >&6; }
3152
3153
3154           enablestring=
3155           defaultval=
3156           if test -z "$defaultval"; then
3157               if test x"$enablestring" = xdisable; then
3158                   defaultval=yes
3159               else
3160                   defaultval=no
3161               fi
3162           fi
3163
3164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3165 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3166           # Check whether --enable-plugins was given.
3167 if test "${enable_plugins+set}" = set; then
3168   enableval=$enable_plugins;
3169                           if test "$enableval" = yes; then
3170                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3171                           else
3172                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3173                           fi
3174
3175 else
3176
3177                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3178
3179 fi
3180
3181
3182           eval "$wx_cv_use_plugins"
3183
3184           if test x"$enablestring" = xdisable; then
3185             if test $wxUSE_PLUGINS = no; then
3186               result=yes
3187             else
3188               result=no
3189             fi
3190           else
3191             result=$wxUSE_PLUGINS
3192           fi
3193
3194           { echo "$as_me:$LINENO: result: $result" >&5
3195 echo "${ECHO_T}$result" >&6; }
3196
3197
3198           withstring=without
3199           defaultval=$wxUSE_ALL_FEATURES
3200           if test -z "$defaultval"; then
3201               if test x"$withstring" = xwithout; then
3202                   defaultval=yes
3203               else
3204                   defaultval=no
3205               fi
3206           fi
3207           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3208 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3209
3210 # Check whether --with-subdirs was given.
3211 if test "${with_subdirs+set}" = set; then
3212   withval=$with_subdirs;
3213                         if test "$withval" = yes; then
3214                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3215                         else
3216                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3217                         fi
3218
3219 else
3220
3221                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3222
3223 fi
3224
3225
3226           eval "$wx_cv_use_subdirs"
3227
3228           if test x"$withstring" = xwithout; then
3229             if test $wxWITH_SUBDIRS = yes; then
3230               result=no
3231             else
3232               result=yes
3233             fi
3234           else
3235             result=$wxWITH_SUBDIRS
3236           fi
3237
3238           { echo "$as_me:$LINENO: result: $result" >&5
3239 echo "${ECHO_T}$result" >&6; }
3240
3241
3242 # Check whether --with-flavour was given.
3243 if test "${with_flavour+set}" = set; then
3244   withval=$with_flavour; WX_FLAVOUR="$withval"
3245 fi
3246
3247
3248           enablestring=
3249           defaultval=
3250           if test -z "$defaultval"; then
3251               if test x"$enablestring" = xdisable; then
3252                   defaultval=yes
3253               else
3254                   defaultval=no
3255               fi
3256           fi
3257
3258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3259 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3260           # Check whether --enable-official_build was given.
3261 if test "${enable_official_build+set}" = set; then
3262   enableval=$enable_official_build;
3263                           if test "$enableval" = yes; then
3264                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3265                           else
3266                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3267                           fi
3268
3269 else
3270
3271                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3272
3273 fi
3274
3275
3276           eval "$wx_cv_use_official_build"
3277
3278           if test x"$enablestring" = xdisable; then
3279             if test $wxUSE_OFFICIAL_BUILD = no; then
3280               result=yes
3281             else
3282               result=no
3283             fi
3284           else
3285             result=$wxUSE_OFFICIAL_BUILD
3286           fi
3287
3288           { echo "$as_me:$LINENO: result: $result" >&5
3289 echo "${ECHO_T}$result" >&6; }
3290
3291 # Check whether --enable-vendor was given.
3292 if test "${enable_vendor+set}" = set; then
3293   enableval=$enable_vendor; VENDOR="$enableval"
3294 fi
3295
3296 if test "x$VENDOR" = "x"; then
3297     VENDOR="custom"
3298 fi
3299
3300
3301           enablestring=disable
3302           defaultval=
3303           if test -z "$defaultval"; then
3304               if test x"$enablestring" = xdisable; then
3305                   defaultval=yes
3306               else
3307                   defaultval=no
3308               fi
3309           fi
3310
3311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3312 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3313           # Check whether --enable-all-features was given.
3314 if test "${enable_all_features+set}" = set; then
3315   enableval=$enable_all_features;
3316                           if test "$enableval" = yes; then
3317                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3318                           else
3319                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3320                           fi
3321
3322 else
3323
3324                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3325
3326 fi
3327
3328
3329           eval "$wx_cv_use_all_features"
3330
3331           if test x"$enablestring" = xdisable; then
3332             if test $wxUSE_ALL_FEATURES = no; then
3333               result=yes
3334             else
3335               result=no
3336             fi
3337           else
3338             result=$wxUSE_ALL_FEATURES
3339           fi
3340
3341           { echo "$as_me:$LINENO: result: $result" >&5
3342 echo "${ECHO_T}$result" >&6; }
3343
3344
3345 if test "$wxUSE_ALL_FEATURES" = "no"; then
3346                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3347     DEFAULT_wxUSE_MEDIACTRL=no
3348 fi
3349
3350
3351 if test "$wxUSE_GUI" = "yes"; then
3352
3353
3354           enablestring=
3355           defaultval=
3356           if test -z "$defaultval"; then
3357               if test x"$enablestring" = xdisable; then
3358                   defaultval=yes
3359               else
3360                   defaultval=no
3361               fi
3362           fi
3363
3364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3365 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3366           # Check whether --enable-universal was given.
3367 if test "${enable_universal+set}" = set; then
3368   enableval=$enable_universal;
3369                           if test "$enableval" = yes; then
3370                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3371                           else
3372                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3373                           fi
3374
3375 else
3376
3377                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3378
3379 fi
3380
3381
3382           eval "$wx_cv_use_universal"
3383
3384           if test x"$enablestring" = xdisable; then
3385             if test $wxUSE_UNIVERSAL = no; then
3386               result=yes
3387             else
3388               result=no
3389             fi
3390           else
3391             result=$wxUSE_UNIVERSAL
3392           fi
3393
3394           { echo "$as_me:$LINENO: result: $result" >&5
3395 echo "${ECHO_T}$result" >&6; }
3396
3397 if test "$wxUSE_UNIVERSAL" = "yes"; then
3398
3399 # Check whether --with-themes was given.
3400 if test "${with_themes+set}" = set; then
3401   withval=$with_themes; wxUNIV_THEMES="$withval"
3402 fi
3403
3404 fi
3405
3406
3407 # Check whether --with-gtk was given.
3408 if test "${with_gtk+set}" = set; then
3409   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-motif was given.
3414 if test "${with_motif+set}" = set; then
3415   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3416 fi
3417
3418
3419 # Check whether --with-osx_carbon was given.
3420 if test "${with_osx_carbon+set}" = set; then
3421   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3422 fi
3423
3424
3425 # Check whether --with-osx_cocoa was given.
3426 if test "${with_osx_cocoa+set}" = set; then
3427   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-osx_iphone was given.
3432 if test "${with_osx_iphone+set}" = set; then
3433   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3434 fi
3435
3436
3437 # Check whether --with-osx was given.
3438 if test "${with_osx+set}" = set; then
3439   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443 # Check whether --with-carbon was given.
3444 if test "${with_carbon+set}" = set; then
3445   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3446 fi
3447
3448
3449 # Check whether --with-cocoa was given.
3450 if test "${with_cocoa+set}" = set; then
3451   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3452 fi
3453
3454
3455 # Check whether --with-iphone was given.
3456 if test "${with_iphone+set}" = set; then
3457   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3458 fi
3459
3460
3461 # Check whether --with-mac was given.
3462 if test "${with_mac+set}" = set; then
3463   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3464 fi
3465
3466
3467 # Check whether --with-old_cocoa was given.
3468 if test "${with_old_cocoa+set}" = set; then
3469   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3470 fi
3471
3472
3473 # Check whether --with-wine was given.
3474 if test "${with_wine+set}" = set; then
3475   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3476 fi
3477
3478
3479 # Check whether --with-msw was given.
3480 if test "${with_msw+set}" = set; then
3481   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3482 fi
3483
3484
3485 # Check whether --with-pm was given.
3486 if test "${with_pm+set}" = set; then
3487   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3488 fi
3489
3490
3491 # Check whether --with-mgl was given.
3492 if test "${with_mgl+set}" = set; then
3493   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3494 fi
3495
3496
3497 # Check whether --with-directfb was given.
3498 if test "${with_directfb+set}" = set; then
3499   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3500 fi
3501
3502
3503 # Check whether --with-microwin was given.
3504 if test "${with_microwin+set}" = set; then
3505   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3506 fi
3507
3508
3509 # Check whether --with-x11 was given.
3510 if test "${with_x11+set}" = set; then
3511   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3512 fi
3513
3514
3515           enablestring=
3516           defaultval=
3517           if test -z "$defaultval"; then
3518               if test x"$enablestring" = xdisable; then
3519                   defaultval=yes
3520               else
3521                   defaultval=no
3522               fi
3523           fi
3524
3525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3526 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3527           # Check whether --enable-nanox was given.
3528 if test "${enable_nanox+set}" = set; then
3529   enableval=$enable_nanox;
3530                           if test "$enableval" = yes; then
3531                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3532                           else
3533                             wx_cv_use_nanox='wxUSE_NANOX=no'
3534                           fi
3535
3536 else
3537
3538                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3539
3540 fi
3541
3542
3543           eval "$wx_cv_use_nanox"
3544
3545           if test x"$enablestring" = xdisable; then
3546             if test $wxUSE_NANOX = no; then
3547               result=yes
3548             else
3549               result=no
3550             fi
3551           else
3552             result=$wxUSE_NANOX
3553           fi
3554
3555           { echo "$as_me:$LINENO: result: $result" >&5
3556 echo "${ECHO_T}$result" >&6; }
3557
3558
3559 # Check whether --enable-gtk2 was given.
3560 if test "${enable_gtk2+set}" = set; then
3561   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3562 fi
3563
3564
3565           enablestring=
3566           defaultval=
3567           if test -z "$defaultval"; then
3568               if test x"$enablestring" = xdisable; then
3569                   defaultval=yes
3570               else
3571                   defaultval=no
3572               fi
3573           fi
3574
3575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3576 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3577           # Check whether --enable-gpe was given.
3578 if test "${enable_gpe+set}" = set; then
3579   enableval=$enable_gpe;
3580                           if test "$enableval" = yes; then
3581                             wx_cv_use_gpe='wxUSE_GPE=yes'
3582                           else
3583                             wx_cv_use_gpe='wxUSE_GPE=no'
3584                           fi
3585
3586 else
3587
3588                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3589
3590 fi
3591
3592
3593           eval "$wx_cv_use_gpe"
3594
3595           if test x"$enablestring" = xdisable; then
3596             if test $wxUSE_GPE = no; then
3597               result=yes
3598             else
3599               result=no
3600             fi
3601           else
3602             result=$wxUSE_GPE
3603           fi
3604
3605           { echo "$as_me:$LINENO: result: $result" >&5
3606 echo "${ECHO_T}$result" >&6; }
3607
3608
3609
3610 { echo "$as_me:$LINENO: checking for toolkit" >&5
3611 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3612
3613
3614
3615 # In Wine, we need to default to MSW, not GTK or MOTIF
3616 if test "$wxUSE_WINE" = "yes"; then
3617     DEFAULT_DEFAULT_wxUSE_GTK=0
3618     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3619     DEFAULT_DEFAULT_wxUSE_MSW=1
3620     wxUSE_SHARED=no
3621     CC=${CC:-winegcc}
3622     CXX=${CXX:-wineg++}
3623 fi
3624
3625
3626 if test "$wxUSE_GUI" = "yes"; then
3627
3628     if test "$USE_BEOS" = 1; then
3629         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3630 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3631    { (exit 1); exit 1; }; }
3632     fi
3633
3634     if test "$TOOLKIT_GIVEN" = 1; then
3635             for toolkit in $ALL_TOOLKITS; do
3636         var=wxUSE_$toolkit
3637         eval "value=\$${var}"
3638         if test "x$value" = "xno"; then
3639           eval "$var=0"
3640         elif test "x$value" != "x"; then
3641           eval "$var=1"
3642         fi
3643
3644         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3645           eval "wx${toolkit}_VERSION=$value"
3646         fi
3647       done
3648     else
3649             for toolkit in $ALL_TOOLKITS; do
3650         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3651         eval "wxUSE_$toolkit=\$${var}"
3652       done
3653     fi
3654
3655             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3656                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3657                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3658
3659         case "${host}" in
3660       *-pc-os2_emx | *-pc-os2-emx )
3661         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3662     esac
3663
3664     case "$NUM_TOOLKITS" in
3665       1)
3666       ;;
3667       0)
3668         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3669 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3670    { (exit 1); exit 1; }; }
3671       ;;
3672       *)
3673         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3674 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3675    { (exit 1); exit 1; }; }
3676     esac
3677
3678     # to be removed when --disable-gtk2 isn't needed
3679     if test "x$wxUSE_GTK2" = "xyes"; then
3680         wxGTK_VERSION=2
3681         wxUSE_GTK1=0
3682     elif test "x$wxUSE_GTK2" = "xno"; then
3683         wxGTK_VERSION=1
3684         wxUSE_GTK1=1
3685     fi
3686
3687     for toolkit in $ALL_TOOLKITS; do
3688         var=wxUSE_$toolkit
3689         eval "value=\$${var}"
3690         if test "$value" = 1; then
3691           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3692           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3693 echo "${ECHO_T}$toolkit_echo" >&6; }
3694         fi
3695     done
3696 else
3697     if test "x$host_alias" != "x"; then
3698         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3699 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3700     else
3701         { echo "$as_me:$LINENO: result: base only" >&5
3702 echo "${ECHO_T}base only" >&6; }
3703     fi
3704 fi
3705
3706 wxUSE_MAC=0
3707 if test "$wxUSE_OSX_CARBON" = 1 \
3708        -o "$wxUSE_OSX_COCOA" = 1 \
3709        -o "$wxUSE_OSX_IPHONE" = 1; then
3710     wxUSE_MAC=1
3711 fi
3712
3713
3714
3715           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3716 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3717
3718 # Check whether --with-libpng was given.
3719 if test "${with_libpng+set}" = set; then
3720   withval=$with_libpng;
3721                         if test "$withval" = yes; then
3722                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3723                         elif test "$withval" = no; then
3724                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3725                         elif test "$withval" = sys; then
3726                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3727                         elif test "$withval" = builtin; then
3728                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3729                         else
3730                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3731 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3732    { (exit 1); exit 1; }; }
3733                         fi
3734
3735 else
3736
3737                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3738
3739 fi
3740
3741
3742           eval "$wx_cv_use_libpng"
3743
3744           if test "$wxUSE_LIBPNG" = yes; then
3745             { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3747           elif test "$wxUSE_LIBPNG" = no; then
3748             { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3750           elif test "$wxUSE_LIBPNG" = sys; then
3751             { echo "$as_me:$LINENO: result: system version" >&5
3752 echo "${ECHO_T}system version" >&6; }
3753           elif test "$wxUSE_LIBPNG" = builtin; then
3754             { echo "$as_me:$LINENO: result: builtin version" >&5
3755 echo "${ECHO_T}builtin version" >&6; }
3756           else
3757             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3758 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3759    { (exit 1); exit 1; }; }
3760           fi
3761
3762
3763           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3764 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3765
3766 # Check whether --with-libjpeg was given.
3767 if test "${with_libjpeg+set}" = set; then
3768   withval=$with_libjpeg;
3769                         if test "$withval" = yes; then
3770                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3771                         elif test "$withval" = no; then
3772                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3773                         elif test "$withval" = sys; then
3774                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3775                         elif test "$withval" = builtin; then
3776                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3777                         else
3778                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3779 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3780    { (exit 1); exit 1; }; }
3781                         fi
3782
3783 else
3784
3785                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3786
3787 fi
3788
3789
3790           eval "$wx_cv_use_libjpeg"
3791
3792           if test "$wxUSE_LIBJPEG" = yes; then
3793             { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795           elif test "$wxUSE_LIBJPEG" = no; then
3796             { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798           elif test "$wxUSE_LIBJPEG" = sys; then
3799             { echo "$as_me:$LINENO: result: system version" >&5
3800 echo "${ECHO_T}system version" >&6; }
3801           elif test "$wxUSE_LIBJPEG" = builtin; then
3802             { echo "$as_me:$LINENO: result: builtin version" >&5
3803 echo "${ECHO_T}builtin version" >&6; }
3804           else
3805             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3806 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3807    { (exit 1); exit 1; }; }
3808           fi
3809
3810
3811           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3812 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3813
3814 # Check whether --with-libtiff was given.
3815 if test "${with_libtiff+set}" = set; then
3816   withval=$with_libtiff;
3817                         if test "$withval" = yes; then
3818                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3819                         elif test "$withval" = no; then
3820                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3821                         elif test "$withval" = sys; then
3822                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3823                         elif test "$withval" = builtin; then
3824                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3825                         else
3826                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3827 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3828    { (exit 1); exit 1; }; }
3829                         fi
3830
3831 else
3832
3833                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3834
3835 fi
3836
3837
3838           eval "$wx_cv_use_libtiff"
3839
3840           if test "$wxUSE_LIBTIFF" = yes; then
3841             { echo "$as_me:$LINENO: result: yes" >&5
3842 echo "${ECHO_T}yes" >&6; }
3843           elif test "$wxUSE_LIBTIFF" = no; then
3844             { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846           elif test "$wxUSE_LIBTIFF" = sys; then
3847             { echo "$as_me:$LINENO: result: system version" >&5
3848 echo "${ECHO_T}system version" >&6; }
3849           elif test "$wxUSE_LIBTIFF" = builtin; then
3850             { echo "$as_me:$LINENO: result: builtin version" >&5
3851 echo "${ECHO_T}builtin version" >&6; }
3852           else
3853             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3854 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3855    { (exit 1); exit 1; }; }
3856           fi
3857
3858
3859           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3860 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3861
3862 # Check whether --with-libxpm was given.
3863 if test "${with_libxpm+set}" = set; then
3864   withval=$with_libxpm;
3865                         if test "$withval" = yes; then
3866                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3867                         elif test "$withval" = no; then
3868                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3869                         elif test "$withval" = sys; then
3870                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3871                         elif test "$withval" = builtin; then
3872                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3873                         else
3874                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3875 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3876    { (exit 1); exit 1; }; }
3877                         fi
3878
3879 else
3880
3881                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3882
3883 fi
3884
3885
3886           eval "$wx_cv_use_libxpm"
3887
3888           if test "$wxUSE_LIBXPM" = yes; then
3889             { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3891           elif test "$wxUSE_LIBXPM" = no; then
3892             { echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6; }
3894           elif test "$wxUSE_LIBXPM" = sys; then
3895             { echo "$as_me:$LINENO: result: system version" >&5
3896 echo "${ECHO_T}system version" >&6; }
3897           elif test "$wxUSE_LIBXPM" = builtin; then
3898             { echo "$as_me:$LINENO: result: builtin version" >&5
3899 echo "${ECHO_T}builtin version" >&6; }
3900           else
3901             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3902 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3903    { (exit 1); exit 1; }; }
3904           fi
3905
3906
3907           withstring=
3908           defaultval=$wxUSE_ALL_FEATURES
3909           if test -z "$defaultval"; then
3910               if test x"$withstring" = xwithout; then
3911                   defaultval=yes
3912               else
3913                   defaultval=no
3914               fi
3915           fi
3916           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3917 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3918
3919 # Check whether --with-libiconv was given.
3920 if test "${with_libiconv+set}" = set; then
3921   withval=$with_libiconv;
3922                         if test "$withval" = yes; then
3923                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3924                         else
3925                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3926                         fi
3927
3928 else
3929
3930                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3931
3932 fi
3933
3934
3935           eval "$wx_cv_use_libiconv"
3936
3937           if test x"$withstring" = xwithout; then
3938             if test $wxUSE_LIBICONV = yes; then
3939               result=no
3940             else
3941               result=yes
3942             fi
3943           else
3944             result=$wxUSE_LIBICONV
3945           fi
3946
3947           { echo "$as_me:$LINENO: result: $result" >&5
3948 echo "${ECHO_T}$result" >&6; }
3949
3950
3951           withstring=
3952           defaultval=$wxUSE_ALL_FEATURES
3953           if test -z "$defaultval"; then
3954               if test x"$withstring" = xwithout; then
3955                   defaultval=yes
3956               else
3957                   defaultval=no
3958               fi
3959           fi
3960           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3961 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3962
3963 # Check whether --with-libmspack was given.
3964 if test "${with_libmspack+set}" = set; then
3965   withval=$with_libmspack;
3966                         if test "$withval" = yes; then
3967                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3968                         else
3969                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3970                         fi
3971
3972 else
3973
3974                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3975
3976 fi
3977
3978
3979           eval "$wx_cv_use_libmspack"
3980
3981           if test x"$withstring" = xwithout; then
3982             if test $wxUSE_LIBMSPACK = yes; then
3983               result=no
3984             else
3985               result=yes
3986             fi
3987           else
3988             result=$wxUSE_LIBMSPACK
3989           fi
3990
3991           { echo "$as_me:$LINENO: result: $result" >&5
3992 echo "${ECHO_T}$result" >&6; }
3993
3994
3995           withstring=without
3996           defaultval=$wxUSE_ALL_FEATURES
3997           if test -z "$defaultval"; then
3998               if test x"$withstring" = xwithout; then
3999                   defaultval=yes
4000               else
4001                   defaultval=no
4002               fi
4003           fi
4004           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
4005 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
4006
4007 # Check whether --with-gtkprint was given.
4008 if test "${with_gtkprint+set}" = set; then
4009   withval=$with_gtkprint;
4010                         if test "$withval" = yes; then
4011                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
4012                         else
4013                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
4014                         fi
4015
4016 else
4017
4018                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
4019
4020 fi
4021
4022
4023           eval "$wx_cv_use_gtkprint"
4024
4025           if test x"$withstring" = xwithout; then
4026             if test $wxUSE_GTKPRINT = yes; then
4027               result=no
4028             else
4029               result=yes
4030             fi
4031           else
4032             result=$wxUSE_GTKPRINT
4033           fi
4034
4035           { echo "$as_me:$LINENO: result: $result" >&5
4036 echo "${ECHO_T}$result" >&6; }
4037
4038
4039           withstring=without
4040           defaultval=$wxUSE_ALL_FEATURES
4041           if test -z "$defaultval"; then
4042               if test x"$withstring" = xwithout; then
4043                   defaultval=yes
4044               else
4045                   defaultval=no
4046               fi
4047           fi
4048           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4049 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4050
4051 # Check whether --with-gnomeprint was given.
4052 if test "${with_gnomeprint+set}" = set; then
4053   withval=$with_gnomeprint;
4054                         if test "$withval" = yes; then
4055                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4056                         else
4057                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4058                         fi
4059
4060 else
4061
4062                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4063
4064 fi
4065
4066
4067           eval "$wx_cv_use_gnomeprint"
4068
4069           if test x"$withstring" = xwithout; then
4070             if test $wxUSE_LIBGNOMEPRINT = yes; then
4071               result=no
4072             else
4073               result=yes
4074             fi
4075           else
4076             result=$wxUSE_LIBGNOMEPRINT
4077           fi
4078
4079           { echo "$as_me:$LINENO: result: $result" >&5
4080 echo "${ECHO_T}$result" >&6; }
4081
4082
4083           withstring=
4084           defaultval=$wxUSE_ALL_FEATURES
4085           if test -z "$defaultval"; then
4086               if test x"$withstring" = xwithout; then
4087                   defaultval=yes
4088               else
4089                   defaultval=no
4090               fi
4091           fi
4092           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4093 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4094
4095 # Check whether --with-gnomevfs was given.
4096 if test "${with_gnomevfs+set}" = set; then
4097   withval=$with_gnomevfs;
4098                         if test "$withval" = yes; then
4099                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4100                         else
4101                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4102                         fi
4103
4104 else
4105
4106                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4107
4108 fi
4109
4110
4111           eval "$wx_cv_use_gnomevfs"
4112
4113           if test x"$withstring" = xwithout; then
4114             if test $wxUSE_LIBGNOMEVFS = yes; then
4115               result=no
4116             else
4117               result=yes
4118             fi
4119           else
4120             result=$wxUSE_LIBGNOMEVFS
4121           fi
4122
4123           { echo "$as_me:$LINENO: result: $result" >&5
4124 echo "${ECHO_T}$result" >&6; }
4125
4126
4127           withstring=
4128           defaultval=$wxUSE_ALL_FEATURES
4129           if test -z "$defaultval"; then
4130               if test x"$withstring" = xwithout; then
4131                   defaultval=yes
4132               else
4133                   defaultval=no
4134               fi
4135           fi
4136           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4137 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4138
4139 # Check whether --with-hildon was given.
4140 if test "${with_hildon+set}" = set; then
4141   withval=$with_hildon;
4142                         if test "$withval" = yes; then
4143                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4144                         else
4145                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4146                         fi
4147
4148 else
4149
4150                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4151
4152 fi
4153
4154
4155           eval "$wx_cv_use_hildon"
4156
4157           if test x"$withstring" = xwithout; then
4158             if test $wxUSE_LIBHILDON = yes; then
4159               result=no
4160             else
4161               result=yes
4162             fi
4163           else
4164             result=$wxUSE_LIBHILDON
4165           fi
4166
4167           { echo "$as_me:$LINENO: result: $result" >&5
4168 echo "${ECHO_T}$result" >&6; }
4169
4170
4171           withstring=
4172           defaultval=$wxUSE_ALL_FEATURES
4173           if test -z "$defaultval"; then
4174               if test x"$withstring" = xwithout; then
4175                   defaultval=yes
4176               else
4177                   defaultval=no
4178               fi
4179           fi
4180           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4181 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4182
4183 # Check whether --with-opengl was given.
4184 if test "${with_opengl+set}" = set; then
4185   withval=$with_opengl;
4186                         if test "$withval" = yes; then
4187                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4188                         else
4189                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4190                         fi
4191
4192 else
4193
4194                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4195
4196 fi
4197
4198
4199           eval "$wx_cv_use_opengl"
4200
4201           if test x"$withstring" = xwithout; then
4202             if test $wxUSE_OPENGL = yes; then
4203               result=no
4204             else
4205               result=yes
4206             fi
4207           else
4208             result=$wxUSE_OPENGL
4209           fi
4210
4211           { echo "$as_me:$LINENO: result: $result" >&5
4212 echo "${ECHO_T}$result" >&6; }
4213
4214
4215 fi
4216
4217
4218           withstring=
4219           defaultval=$wxUSE_ALL_FEATURES
4220           if test -z "$defaultval"; then
4221               if test x"$withstring" = xwithout; then
4222                   defaultval=yes
4223               else
4224                   defaultval=no
4225               fi
4226           fi
4227           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4228 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4229
4230 # Check whether --with-dmalloc was given.
4231 if test "${with_dmalloc+set}" = set; then
4232   withval=$with_dmalloc;
4233                         if test "$withval" = yes; then
4234                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4235                         else
4236                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4237                         fi
4238
4239 else
4240
4241                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4242
4243 fi
4244
4245
4246           eval "$wx_cv_use_dmalloc"
4247
4248           if test x"$withstring" = xwithout; then
4249             if test $wxUSE_DMALLOC = yes; then
4250               result=no
4251             else
4252               result=yes
4253             fi
4254           else
4255             result=$wxUSE_DMALLOC
4256           fi
4257
4258           { echo "$as_me:$LINENO: result: $result" >&5
4259 echo "${ECHO_T}$result" >&6; }
4260
4261
4262           withstring=
4263           defaultval=$wxUSE_ALL_FEATURES
4264           if test -z "$defaultval"; then
4265               if test x"$withstring" = xwithout; then
4266                   defaultval=yes
4267               else
4268                   defaultval=no
4269               fi
4270           fi
4271           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4272 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4273
4274 # Check whether --with-sdl was given.
4275 if test "${with_sdl+set}" = set; then
4276   withval=$with_sdl;
4277                         if test "$withval" = yes; then
4278                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4279                         else
4280                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4281                         fi
4282
4283 else
4284
4285                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4286
4287 fi
4288
4289
4290           eval "$wx_cv_use_sdl"
4291
4292           if test x"$withstring" = xwithout; then
4293             if test $wxUSE_LIBSDL = yes; then
4294               result=no
4295             else
4296               result=yes
4297             fi
4298           else
4299             result=$wxUSE_LIBSDL
4300           fi
4301
4302           { echo "$as_me:$LINENO: result: $result" >&5
4303 echo "${ECHO_T}$result" >&6; }
4304
4305
4306           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4307 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4308
4309 # Check whether --with-regex was given.
4310 if test "${with_regex+set}" = set; then
4311   withval=$with_regex;
4312                         if test "$withval" = yes; then
4313                           wx_cv_use_regex='wxUSE_REGEX=yes'
4314                         elif test "$withval" = no; then
4315                           wx_cv_use_regex='wxUSE_REGEX=no'
4316                         elif test "$withval" = sys; then
4317                           wx_cv_use_regex='wxUSE_REGEX=sys'
4318                         elif test "$withval" = builtin; then
4319                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4320                         else
4321                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4322 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4323    { (exit 1); exit 1; }; }
4324                         fi
4325
4326 else
4327
4328                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4329
4330 fi
4331
4332
4333           eval "$wx_cv_use_regex"
4334
4335           if test "$wxUSE_REGEX" = yes; then
4336             { echo "$as_me:$LINENO: result: yes" >&5
4337 echo "${ECHO_T}yes" >&6; }
4338           elif test "$wxUSE_REGEX" = no; then
4339             { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4341           elif test "$wxUSE_REGEX" = sys; then
4342             { echo "$as_me:$LINENO: result: system version" >&5
4343 echo "${ECHO_T}system version" >&6; }
4344           elif test "$wxUSE_REGEX" = builtin; then
4345             { echo "$as_me:$LINENO: result: builtin version" >&5
4346 echo "${ECHO_T}builtin version" >&6; }
4347           else
4348             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4349 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4350    { (exit 1); exit 1; }; }
4351           fi
4352
4353
4354           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4355 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4356
4357 # Check whether --with-zlib was given.
4358 if test "${with_zlib+set}" = set; then
4359   withval=$with_zlib;
4360                         if test "$withval" = yes; then
4361                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4362                         elif test "$withval" = no; then
4363                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4364                         elif test "$withval" = sys; then
4365                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4366                         elif test "$withval" = builtin; then
4367                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4368                         else
4369                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4370 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4371    { (exit 1); exit 1; }; }
4372                         fi
4373
4374 else
4375
4376                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4377
4378 fi
4379
4380
4381           eval "$wx_cv_use_zlib"
4382
4383           if test "$wxUSE_ZLIB" = yes; then
4384             { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4386           elif test "$wxUSE_ZLIB" = no; then
4387             { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4389           elif test "$wxUSE_ZLIB" = sys; then
4390             { echo "$as_me:$LINENO: result: system version" >&5
4391 echo "${ECHO_T}system version" >&6; }
4392           elif test "$wxUSE_ZLIB" = builtin; then
4393             { echo "$as_me:$LINENO: result: builtin version" >&5
4394 echo "${ECHO_T}builtin version" >&6; }
4395           else
4396             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4397 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4398    { (exit 1); exit 1; }; }
4399           fi
4400
4401
4402           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4403 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4404
4405 # Check whether --with-expat was given.
4406 if test "${with_expat+set}" = set; then
4407   withval=$with_expat;
4408                         if test "$withval" = yes; then
4409                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4410                         elif test "$withval" = no; then
4411                           wx_cv_use_expat='wxUSE_EXPAT=no'
4412                         elif test "$withval" = sys; then
4413                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4414                         elif test "$withval" = builtin; then
4415                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4416                         else
4417                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4418 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4419    { (exit 1); exit 1; }; }
4420                         fi
4421
4422 else
4423
4424                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4425
4426 fi
4427
4428
4429           eval "$wx_cv_use_expat"
4430
4431           if test "$wxUSE_EXPAT" = yes; then
4432             { echo "$as_me:$LINENO: result: yes" >&5
4433 echo "${ECHO_T}yes" >&6; }
4434           elif test "$wxUSE_EXPAT" = no; then
4435             { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437           elif test "$wxUSE_EXPAT" = sys; then
4438             { echo "$as_me:$LINENO: result: system version" >&5
4439 echo "${ECHO_T}system version" >&6; }
4440           elif test "$wxUSE_EXPAT" = builtin; then
4441             { echo "$as_me:$LINENO: result: builtin version" >&5
4442 echo "${ECHO_T}builtin version" >&6; }
4443           else
4444             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4445 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4446    { (exit 1); exit 1; }; }
4447           fi
4448
4449
4450 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4451 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4452
4453 # Check whether --with-macosx-sdk was given.
4454 if test "${with_macosx_sdk+set}" = set; then
4455   withval=$with_macosx_sdk;
4456         wxUSE_MACOSX_SDK=$withval
4457         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4458
4459 fi
4460
4461 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4462 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4463
4464 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4465 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4466
4467 # Check whether --with-macosx-version-min was given.
4468 if test "${with_macosx_version_min+set}" = set; then
4469   withval=$with_macosx_version_min;
4470         wxUSE_MACOSX_VERSION_MIN=$withval
4471         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4472
4473 fi
4474
4475 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4476 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4477
4478
4479 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4480 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4481 # Check whether --enable-debug was given.
4482 if test "${enable_debug+set}" = set; then
4483   enableval=$enable_debug;
4484         if test "$enableval" = yes; then
4485             wxUSE_DEBUG=yes
4486         elif test "$enableval" = no; then
4487             wxUSE_DEBUG=no
4488         elif test "$enableval" = max; then
4489             wxUSE_DEBUG=yes
4490             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4491         else
4492             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4493 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4494    { (exit 1); exit 1; }; }
4495         fi
4496
4497 else
4498   wxUSE_DEBUG=default
4499
4500 fi
4501
4502
4503 case "$wxUSE_DEBUG" in
4504     yes)
4505                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4506         DEFAULT_wxUSE_DEBUG_INFO=yes
4507
4508                         DEFAULT_wxUSE_OPTIMISE=no
4509         ;;
4510
4511     no)
4512                         DEFAULT_wxUSE_DEBUG_FLAG=no
4513         DEFAULT_wxUSE_DEBUG_INFO=no
4514         ;;
4515
4516     default)
4517                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4518         DEFAULT_wxUSE_DEBUG_INFO=no
4519         ;;
4520 esac
4521
4522
4523           enablestring=disable
4524           defaultval=
4525           if test -z "$defaultval"; then
4526               if test x"$enablestring" = xdisable; then
4527                   defaultval=yes
4528               else
4529                   defaultval=no
4530               fi
4531           fi
4532
4533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4534 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4535           # Check whether --enable-debug_flag was given.
4536 if test "${enable_debug_flag+set}" = set; then
4537   enableval=$enable_debug_flag;
4538                           if test "$enableval" = yes; then
4539                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4540                           else
4541                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4542                           fi
4543
4544 else
4545
4546                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4547
4548 fi
4549
4550
4551           eval "$wx_cv_use_debug_flag"
4552
4553           if test x"$enablestring" = xdisable; then
4554             if test $wxUSE_DEBUG_FLAG = no; then
4555               result=yes
4556             else
4557               result=no
4558             fi
4559           else
4560             result=$wxUSE_DEBUG_FLAG
4561           fi
4562
4563           { echo "$as_me:$LINENO: result: $result" >&5
4564 echo "${ECHO_T}$result" >&6; }
4565
4566
4567           enablestring=
4568           defaultval=
4569           if test -z "$defaultval"; then
4570               if test x"$enablestring" = xdisable; then
4571                   defaultval=yes
4572               else
4573                   defaultval=no
4574               fi
4575           fi
4576
4577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4578 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4579           # Check whether --enable-debug_info was given.
4580 if test "${enable_debug_info+set}" = set; then
4581   enableval=$enable_debug_info;
4582                           if test "$enableval" = yes; then
4583                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4584                           else
4585                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4586                           fi
4587
4588 else
4589
4590                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4591
4592 fi
4593
4594
4595           eval "$wx_cv_use_debug_info"
4596
4597           if test x"$enablestring" = xdisable; then
4598             if test $wxUSE_DEBUG_INFO = no; then
4599               result=yes
4600             else
4601               result=no
4602             fi
4603           else
4604             result=$wxUSE_DEBUG_INFO
4605           fi
4606
4607           { echo "$as_me:$LINENO: result: $result" >&5
4608 echo "${ECHO_T}$result" >&6; }
4609
4610
4611
4612
4613           enablestring=
4614           defaultval=
4615           if test -z "$defaultval"; then
4616               if test x"$enablestring" = xdisable; then
4617                   defaultval=yes
4618               else
4619                   defaultval=no
4620               fi
4621           fi
4622
4623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4624 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4625           # Check whether --enable-debug_gdb was given.
4626 if test "${enable_debug_gdb+set}" = set; then
4627   enableval=$enable_debug_gdb;
4628                           if test "$enableval" = yes; then
4629                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4630                           else
4631                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4632                           fi
4633
4634 else
4635
4636                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4637
4638 fi
4639
4640
4641           eval "$wx_cv_use_debug_gdb"
4642
4643           if test x"$enablestring" = xdisable; then
4644             if test $wxUSE_DEBUG_GDB = no; then
4645               result=yes
4646             else
4647               result=no
4648             fi
4649           else
4650             result=$wxUSE_DEBUG_GDB
4651           fi
4652
4653           { echo "$as_me:$LINENO: result: $result" >&5
4654 echo "${ECHO_T}$result" >&6; }
4655
4656
4657           enablestring=
4658           defaultval=
4659           if test -z "$defaultval"; then
4660               if test x"$enablestring" = xdisable; then
4661                   defaultval=yes
4662               else
4663                   defaultval=no
4664               fi
4665           fi
4666
4667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4668 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4669           # Check whether --enable-debug_cntxt was given.
4670 if test "${enable_debug_cntxt+set}" = set; then
4671   enableval=$enable_debug_cntxt;
4672                           if test "$enableval" = yes; then
4673                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4674                           else
4675                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4676                           fi
4677
4678 else
4679
4680                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4681
4682 fi
4683
4684
4685           eval "$wx_cv_use_debug_cntxt"
4686
4687           if test x"$enablestring" = xdisable; then
4688             if test $wxUSE_DEBUG_CONTEXT = no; then
4689               result=yes
4690             else
4691               result=no
4692             fi
4693           else
4694             result=$wxUSE_DEBUG_CONTEXT
4695           fi
4696
4697           { echo "$as_me:$LINENO: result: $result" >&5
4698 echo "${ECHO_T}$result" >&6; }
4699
4700
4701           enablestring=
4702           defaultval=
4703           if test -z "$defaultval"; then
4704               if test x"$enablestring" = xdisable; then
4705                   defaultval=yes
4706               else
4707                   defaultval=no
4708               fi
4709           fi
4710
4711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4712 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4713           # Check whether --enable-mem_tracing was given.
4714 if test "${enable_mem_tracing+set}" = set; then
4715   enableval=$enable_mem_tracing;
4716                           if test "$enableval" = yes; then
4717                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4718                           else
4719                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4720                           fi
4721
4722 else
4723
4724                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4725
4726 fi
4727
4728
4729           eval "$wx_cv_use_mem_tracing"
4730
4731           if test x"$enablestring" = xdisable; then
4732             if test $wxUSE_MEM_TRACING = no; then
4733               result=yes
4734             else
4735               result=no
4736             fi
4737           else
4738             result=$wxUSE_MEM_TRACING
4739           fi
4740
4741           { echo "$as_me:$LINENO: result: $result" >&5
4742 echo "${ECHO_T}$result" >&6; }
4743
4744
4745
4746
4747           enablestring=disable
4748           defaultval=
4749           if test -z "$defaultval"; then
4750               if test x"$enablestring" = xdisable; then
4751                   defaultval=yes
4752               else
4753                   defaultval=no
4754               fi
4755           fi
4756
4757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4758 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4759           # Check whether --enable-shared was given.
4760 if test "${enable_shared+set}" = set; then
4761   enableval=$enable_shared;
4762                           if test "$enableval" = yes; then
4763                             wx_cv_use_shared='wxUSE_SHARED=yes'
4764                           else
4765                             wx_cv_use_shared='wxUSE_SHARED=no'
4766                           fi
4767
4768 else
4769
4770                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4771
4772 fi
4773
4774
4775           eval "$wx_cv_use_shared"
4776
4777           if test x"$enablestring" = xdisable; then
4778             if test $wxUSE_SHARED = no; then
4779               result=yes
4780             else
4781               result=no
4782             fi
4783           else
4784             result=$wxUSE_SHARED
4785           fi
4786
4787           { echo "$as_me:$LINENO: result: $result" >&5
4788 echo "${ECHO_T}$result" >&6; }
4789
4790
4791           enablestring=
4792           defaultval=
4793           if test -z "$defaultval"; then
4794               if test x"$enablestring" = xdisable; then
4795                   defaultval=yes
4796               else
4797                   defaultval=no
4798               fi
4799           fi
4800
4801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4802 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4803           # Check whether --enable-stl was given.
4804 if test "${enable_stl+set}" = set; then
4805   enableval=$enable_stl;
4806                           if test "$enableval" = yes; then
4807                             wx_cv_use_stl='wxUSE_STL=yes'
4808                           else
4809                             wx_cv_use_stl='wxUSE_STL=no'
4810                           fi
4811
4812 else
4813
4814                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4815
4816 fi
4817
4818
4819           eval "$wx_cv_use_stl"
4820
4821           if test x"$enablestring" = xdisable; then
4822             if test $wxUSE_STL = no; then
4823               result=yes
4824             else
4825               result=no
4826             fi
4827           else
4828             result=$wxUSE_STL
4829           fi
4830
4831           { echo "$as_me:$LINENO: result: $result" >&5
4832 echo "${ECHO_T}$result" >&6; }
4833
4834 if test "$wxUSE_STL" = "yes"; then
4835     DEFAULT_wxUSE_STD_CONTAINERS=yes
4836     DEFAULT_wxUSE_STD_IOSTREAM=yes
4837     DEFAULT_wxUSE_STD_STRING=yes
4838 fi
4839
4840           enablestring=
4841           defaultval=
4842           if test -z "$defaultval"; then
4843               if test x"$enablestring" = xdisable; then
4844                   defaultval=yes
4845               else
4846                   defaultval=no
4847               fi
4848           fi
4849
4850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4851 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4852           # Check whether --enable-std_containers was given.
4853 if test "${enable_std_containers+set}" = set; then
4854   enableval=$enable_std_containers;
4855                           if test "$enableval" = yes; then
4856                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4857                           else
4858                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4859                           fi
4860
4861 else
4862
4863                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4864
4865 fi
4866
4867
4868           eval "$wx_cv_use_std_containers"
4869
4870           if test x"$enablestring" = xdisable; then
4871             if test $wxUSE_STD_CONTAINERS = no; then
4872               result=yes
4873             else
4874               result=no
4875             fi
4876           else
4877             result=$wxUSE_STD_CONTAINERS
4878           fi
4879
4880           { echo "$as_me:$LINENO: result: $result" >&5
4881 echo "${ECHO_T}$result" >&6; }
4882
4883
4884           enablestring=
4885           defaultval=
4886           if test -z "$defaultval"; then
4887               if test x"$enablestring" = xdisable; then
4888                   defaultval=yes
4889               else
4890                   defaultval=no
4891               fi
4892           fi
4893
4894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4895 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4896           # Check whether --enable-std_iostreams was given.
4897 if test "${enable_std_iostreams+set}" = set; then
4898   enableval=$enable_std_iostreams;
4899                           if test "$enableval" = yes; then
4900                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4901                           else
4902                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4903                           fi
4904
4905 else
4906
4907                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4908
4909 fi
4910
4911
4912           eval "$wx_cv_use_std_iostreams"
4913
4914           if test x"$enablestring" = xdisable; then
4915             if test $wxUSE_STD_IOSTREAM = no; then
4916               result=yes
4917             else
4918               result=no
4919             fi
4920           else
4921             result=$wxUSE_STD_IOSTREAM
4922           fi
4923
4924           { echo "$as_me:$LINENO: result: $result" >&5
4925 echo "${ECHO_T}$result" >&6; }
4926
4927
4928           enablestring=
4929           defaultval=
4930           if test -z "$defaultval"; then
4931               if test x"$enablestring" = xdisable; then
4932                   defaultval=yes
4933               else
4934                   defaultval=no
4935               fi
4936           fi
4937
4938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4939 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4940           # Check whether --enable-std_string was given.
4941 if test "${enable_std_string+set}" = set; then
4942   enableval=$enable_std_string;
4943                           if test "$enableval" = yes; then
4944                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4945                           else
4946                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4947                           fi
4948
4949 else
4950
4951                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4952
4953 fi
4954
4955
4956           eval "$wx_cv_use_std_string"
4957
4958           if test x"$enablestring" = xdisable; then
4959             if test $wxUSE_STD_STRING = no; then
4960               result=yes
4961             else
4962               result=no
4963             fi
4964           else
4965             result=$wxUSE_STD_STRING
4966           fi
4967
4968           { echo "$as_me:$LINENO: result: $result" >&5
4969 echo "${ECHO_T}$result" >&6; }
4970
4971
4972           enablestring=
4973           defaultval=
4974           if test -z "$defaultval"; then
4975               if test x"$enablestring" = xdisable; then
4976                   defaultval=yes
4977               else
4978                   defaultval=no
4979               fi
4980           fi
4981
4982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4983 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4984           # Check whether --enable-std_string_conv_in_wxstring was given.
4985 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4986   enableval=$enable_std_string_conv_in_wxstring;
4987                           if test "$enableval" = yes; then
4988                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4989                           else
4990                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4991                           fi
4992
4993 else
4994
4995                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4996
4997 fi
4998
4999
5000           eval "$wx_cv_use_std_string_conv_in_wxstring"
5001
5002           if test x"$enablestring" = xdisable; then
5003             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
5004               result=yes
5005             else
5006               result=no
5007             fi
5008           else
5009             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
5010           fi
5011
5012           { echo "$as_me:$LINENO: result: $result" >&5
5013 echo "${ECHO_T}$result" >&6; }
5014
5015
5016           enablestring=disable
5017           defaultval=
5018           if test -z "$defaultval"; then
5019               if test x"$enablestring" = xdisable; then
5020                   defaultval=yes
5021               else
5022                   defaultval=no
5023               fi
5024           fi
5025
5026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5027 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
5028           # Check whether --enable-unicode was given.
5029 if test "${enable_unicode+set}" = set; then
5030   enableval=$enable_unicode;
5031                           if test "$enableval" = yes; then
5032                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
5033                           else
5034                             wx_cv_use_unicode='wxUSE_UNICODE=no'
5035                           fi
5036
5037 else
5038
5039                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
5040
5041 fi
5042
5043
5044           eval "$wx_cv_use_unicode"
5045
5046           if test x"$enablestring" = xdisable; then
5047             if test $wxUSE_UNICODE = no; then
5048               result=yes
5049             else
5050               result=no
5051             fi
5052           else
5053             result=$wxUSE_UNICODE
5054           fi
5055
5056           { echo "$as_me:$LINENO: result: $result" >&5
5057 echo "${ECHO_T}$result" >&6; }
5058
5059
5060           enablestring=
5061           defaultval=
5062           if test -z "$defaultval"; then
5063               if test x"$enablestring" = xdisable; then
5064                   defaultval=yes
5065               else
5066                   defaultval=no
5067               fi
5068           fi
5069
5070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5071 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5072           # Check whether --enable-mslu was given.
5073 if test "${enable_mslu+set}" = set; then
5074   enableval=$enable_mslu;
5075                           if test "$enableval" = yes; then
5076                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5077                           else
5078                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5079                           fi
5080
5081 else
5082
5083                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5084
5085 fi
5086
5087
5088           eval "$wx_cv_use_mslu"
5089
5090           if test x"$enablestring" = xdisable; then
5091             if test $wxUSE_UNICODE_MSLU = no; then
5092               result=yes
5093             else
5094               result=no
5095             fi
5096           else
5097             result=$wxUSE_UNICODE_MSLU
5098           fi
5099
5100           { echo "$as_me:$LINENO: result: $result" >&5
5101 echo "${ECHO_T}$result" >&6; }
5102
5103
5104           enablestring=
5105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5106 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5107           # Check whether --enable-utf8 was given.
5108 if test "${enable_utf8+set}" = set; then
5109   enableval=$enable_utf8;
5110                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5111
5112 else
5113
5114                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5115
5116 fi
5117
5118
5119           eval "$wx_cv_use_utf8"
5120
5121           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5122 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5123
5124
5125           enablestring=
5126           defaultval=
5127           if test -z "$defaultval"; then
5128               if test x"$enablestring" = xdisable; then
5129                   defaultval=yes
5130               else
5131                   defaultval=no
5132               fi
5133           fi
5134
5135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5136 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5137           # Check whether --enable-utf8only was given.
5138 if test "${enable_utf8only+set}" = set; then
5139   enableval=$enable_utf8only;
5140                           if test "$enableval" = yes; then
5141                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5142                           else
5143                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5144                           fi
5145
5146 else
5147
5148                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5149
5150 fi
5151
5152
5153           eval "$wx_cv_use_utf8only"
5154
5155           if test x"$enablestring" = xdisable; then
5156             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5157               result=yes
5158             else
5159               result=no
5160             fi
5161           else
5162             result=$wxUSE_UNICODE_UTF8_LOCALE
5163           fi
5164
5165           { echo "$as_me:$LINENO: result: $result" >&5
5166 echo "${ECHO_T}$result" >&6; }
5167
5168
5169           enablestring=
5170           defaultval=
5171           if test -z "$defaultval"; then
5172               if test x"$enablestring" = xdisable; then
5173                   defaultval=yes
5174               else
5175                   defaultval=no
5176               fi
5177           fi
5178
5179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5180 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5181           # Check whether --enable-extended_rtti was given.
5182 if test "${enable_extended_rtti+set}" = set; then
5183   enableval=$enable_extended_rtti;
5184                           if test "$enableval" = yes; then
5185                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5186                           else
5187                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5188                           fi
5189
5190 else
5191
5192                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5193
5194 fi
5195
5196
5197           eval "$wx_cv_use_extended_rtti"
5198
5199           if test x"$enablestring" = xdisable; then
5200             if test $wxUSE_EXTENDED_RTTI = no; then
5201               result=yes
5202             else
5203               result=no
5204             fi
5205           else
5206             result=$wxUSE_EXTENDED_RTTI
5207           fi
5208
5209           { echo "$as_me:$LINENO: result: $result" >&5
5210 echo "${ECHO_T}$result" >&6; }
5211
5212 if test "$USE_OS2" = 1; then
5213     DEFAULT_wxUSE_OMF=no
5214
5215           enablestring=
5216           defaultval=
5217           if test -z "$defaultval"; then
5218               if test x"$enablestring" = xdisable; then
5219                   defaultval=yes
5220               else
5221                   defaultval=no
5222               fi
5223           fi
5224
5225           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5226 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5227           # Check whether --enable-omf was given.
5228 if test "${enable_omf+set}" = set; then
5229   enableval=$enable_omf;
5230                           if test "$enableval" = yes; then
5231                             wx_cv_use_omf='wxUSE_OMF=yes'
5232                           else
5233                             wx_cv_use_omf='wxUSE_OMF=no'
5234                           fi
5235
5236 else
5237
5238                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5239
5240 fi
5241
5242
5243           eval "$wx_cv_use_omf"
5244
5245           if test x"$enablestring" = xdisable; then
5246             if test $wxUSE_OMF = no; then
5247               result=yes
5248             else
5249               result=no
5250             fi
5251           else
5252             result=$wxUSE_OMF
5253           fi
5254
5255           { echo "$as_me:$LINENO: result: $result" >&5
5256 echo "${ECHO_T}$result" >&6; }
5257
5258 fi
5259
5260
5261           enablestring=disable
5262           defaultval=
5263           if test -z "$defaultval"; then
5264               if test x"$enablestring" = xdisable; then
5265                   defaultval=yes
5266               else
5267                   defaultval=no
5268               fi
5269           fi
5270
5271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5272 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5273           # Check whether --enable-optimise was given.
5274 if test "${enable_optimise+set}" = set; then
5275   enableval=$enable_optimise;
5276                           if test "$enableval" = yes; then
5277                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5278                           else
5279                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5280                           fi
5281
5282 else
5283
5284                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5285
5286 fi
5287
5288
5289           eval "$wx_cv_use_optimise"
5290
5291           if test x"$enablestring" = xdisable; then
5292             if test $wxUSE_OPTIMISE = no; then
5293               result=yes
5294             else
5295               result=no
5296             fi
5297           else
5298             result=$wxUSE_OPTIMISE
5299           fi
5300
5301           { echo "$as_me:$LINENO: result: $result" >&5
5302 echo "${ECHO_T}$result" >&6; }
5303
5304
5305
5306           enablestring=
5307           defaultval=
5308           if test -z "$defaultval"; then
5309               if test x"$enablestring" = xdisable; then
5310                   defaultval=yes
5311               else
5312                   defaultval=no
5313               fi
5314           fi
5315
5316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5317 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5318           # Check whether --enable-profile was given.
5319 if test "${enable_profile+set}" = set; then
5320   enableval=$enable_profile;
5321                           if test "$enableval" = yes; then
5322                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5323                           else
5324                             wx_cv_use_profile='wxUSE_PROFILE=no'
5325                           fi
5326
5327 else
5328
5329                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5330
5331 fi
5332
5333
5334           eval "$wx_cv_use_profile"
5335
5336           if test x"$enablestring" = xdisable; then
5337             if test $wxUSE_PROFILE = no; then
5338               result=yes
5339             else
5340               result=no
5341             fi
5342           else
5343             result=$wxUSE_PROFILE
5344           fi
5345
5346           { echo "$as_me:$LINENO: result: $result" >&5
5347 echo "${ECHO_T}$result" >&6; }
5348
5349
5350           enablestring=
5351           defaultval=
5352           if test -z "$defaultval"; then
5353               if test x"$enablestring" = xdisable; then
5354                   defaultval=yes
5355               else
5356                   defaultval=no
5357               fi
5358           fi
5359
5360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5361 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5362           # Check whether --enable-no_rtti was given.
5363 if test "${enable_no_rtti+set}" = set; then
5364   enableval=$enable_no_rtti;
5365                           if test "$enableval" = yes; then
5366                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5367                           else
5368                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5369                           fi
5370
5371 else
5372
5373                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5374
5375 fi
5376
5377
5378           eval "$wx_cv_use_no_rtti"
5379
5380           if test x"$enablestring" = xdisable; then
5381             if test $wxUSE_NO_RTTI = no; then
5382               result=yes
5383             else
5384               result=no
5385             fi
5386           else
5387             result=$wxUSE_NO_RTTI
5388           fi
5389
5390           { echo "$as_me:$LINENO: result: $result" >&5
5391 echo "${ECHO_T}$result" >&6; }
5392
5393
5394           enablestring=
5395           defaultval=
5396           if test -z "$defaultval"; then
5397               if test x"$enablestring" = xdisable; then
5398                   defaultval=yes
5399               else
5400                   defaultval=no
5401               fi
5402           fi
5403
5404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5405 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5406           # Check whether --enable-no_exceptions was given.
5407 if test "${enable_no_exceptions+set}" = set; then
5408   enableval=$enable_no_exceptions;
5409                           if test "$enableval" = yes; then
5410                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5411                           else
5412                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5413                           fi
5414
5415 else
5416
5417                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5418
5419 fi
5420
5421
5422           eval "$wx_cv_use_no_exceptions"
5423
5424           if test x"$enablestring" = xdisable; then
5425             if test $wxUSE_NO_EXCEPTIONS = no; then
5426               result=yes
5427             else
5428               result=no
5429             fi
5430           else
5431             result=$wxUSE_NO_EXCEPTIONS
5432           fi
5433
5434           { echo "$as_me:$LINENO: result: $result" >&5
5435 echo "${ECHO_T}$result" >&6; }
5436
5437
5438           enablestring=
5439           defaultval=
5440           if test -z "$defaultval"; then
5441               if test x"$enablestring" = xdisable; then
5442                   defaultval=yes
5443               else
5444                   defaultval=no
5445               fi
5446           fi
5447
5448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5449 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5450           # Check whether --enable-permissive was given.
5451 if test "${enable_permissive+set}" = set; then
5452   enableval=$enable_permissive;
5453                           if test "$enableval" = yes; then
5454                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5455                           else
5456                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5457                           fi
5458
5459 else
5460
5461                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5462
5463 fi
5464
5465
5466           eval "$wx_cv_use_permissive"
5467
5468           if test x"$enablestring" = xdisable; then
5469             if test $wxUSE_PERMISSIVE = no; then
5470               result=yes
5471             else
5472               result=no
5473             fi
5474           else
5475             result=$wxUSE_PERMISSIVE
5476           fi
5477
5478           { echo "$as_me:$LINENO: result: $result" >&5
5479 echo "${ECHO_T}$result" >&6; }
5480
5481
5482           enablestring=
5483           defaultval=
5484           if test -z "$defaultval"; then
5485               if test x"$enablestring" = xdisable; then
5486                   defaultval=yes
5487               else
5488                   defaultval=no
5489               fi
5490           fi
5491
5492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5493 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5494           # Check whether --enable-no_deps was given.
5495 if test "${enable_no_deps+set}" = set; then
5496   enableval=$enable_no_deps;
5497                           if test "$enableval" = yes; then
5498                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5499                           else
5500                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5501                           fi
5502
5503 else
5504
5505                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5506
5507 fi
5508
5509
5510           eval "$wx_cv_use_no_deps"
5511
5512           if test x"$enablestring" = xdisable; then
5513             if test $wxUSE_NO_DEPS = no; then
5514               result=yes
5515             else
5516               result=no
5517             fi
5518           else
5519             result=$wxUSE_NO_DEPS
5520           fi
5521
5522           { echo "$as_me:$LINENO: result: $result" >&5
5523 echo "${ECHO_T}$result" >&6; }
5524
5525
5526           enablestring=disable
5527           defaultval=
5528           if test -z "$defaultval"; then
5529               if test x"$enablestring" = xdisable; then
5530                   defaultval=yes
5531               else
5532                   defaultval=no
5533               fi
5534           fi
5535
5536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5537 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5538           # Check whether --enable-vararg_macros was given.
5539 if test "${enable_vararg_macros+set}" = set; then
5540   enableval=$enable_vararg_macros;
5541                           if test "$enableval" = yes; then
5542                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5543                           else
5544                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5545                           fi
5546
5547 else
5548
5549                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5550
5551 fi
5552
5553
5554           eval "$wx_cv_use_vararg_macros"
5555
5556           if test x"$enablestring" = xdisable; then
5557             if test $wxUSE_VARARG_MACROS = no; then
5558               result=yes
5559             else
5560               result=no
5561             fi
5562           else
5563             result=$wxUSE_VARARG_MACROS
5564           fi
5565
5566           { echo "$as_me:$LINENO: result: $result" >&5
5567 echo "${ECHO_T}$result" >&6; }
5568
5569
5570
5571           enablestring=
5572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5573 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5574           # Check whether --enable-universal_binary was given.
5575 if test "${enable_universal_binary+set}" = set; then
5576   enableval=$enable_universal_binary;
5577                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5578
5579 else
5580
5581                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5582
5583 fi
5584
5585
5586           eval "$wx_cv_use_universal_binary"
5587
5588           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5589 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5590
5591
5592           enablestring=
5593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5594 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5595           # Check whether --enable-macosx_arch was given.
5596 if test "${enable_macosx_arch+set}" = set; then
5597   enableval=$enable_macosx_arch;
5598                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5599
5600 else
5601
5602                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5603
5604 fi
5605
5606
5607           eval "$wx_cv_use_macosx_arch"
5608
5609           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5610 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5611
5612
5613
5614           enablestring=
5615           defaultval=
5616           if test -z "$defaultval"; then
5617               if test x"$enablestring" = xdisable; then
5618                   defaultval=yes
5619               else
5620                   defaultval=no
5621               fi
5622           fi
5623
5624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5625 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5626           # Check whether --enable-compat26 was given.
5627 if test "${enable_compat26+set}" = set; then
5628   enableval=$enable_compat26;
5629                           if test "$enableval" = yes; then
5630                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5631                           else
5632                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5633                           fi
5634
5635 else
5636
5637                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5638
5639 fi
5640
5641
5642           eval "$wx_cv_use_compat26"
5643
5644           if test x"$enablestring" = xdisable; then
5645             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5646               result=yes
5647             else
5648               result=no
5649             fi
5650           else
5651             result=$WXWIN_COMPATIBILITY_2_6
5652           fi
5653
5654           { echo "$as_me:$LINENO: result: $result" >&5
5655 echo "${ECHO_T}$result" >&6; }
5656
5657
5658           enablestring=disable
5659           defaultval=
5660           if test -z "$defaultval"; then
5661               if test x"$enablestring" = xdisable; then
5662                   defaultval=yes
5663               else
5664                   defaultval=no
5665               fi
5666           fi
5667
5668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5669 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5670           # Check whether --enable-compat28 was given.
5671 if test "${enable_compat28+set}" = set; then
5672   enableval=$enable_compat28;
5673                           if test "$enableval" = yes; then
5674                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5675                           else
5676                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5677                           fi
5678
5679 else
5680
5681                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5682
5683 fi
5684
5685
5686           eval "$wx_cv_use_compat28"
5687
5688           if test x"$enablestring" = xdisable; then
5689             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5690               result=yes
5691             else
5692               result=no
5693             fi
5694           else
5695             result=$WXWIN_COMPATIBILITY_2_8
5696           fi
5697
5698           { echo "$as_me:$LINENO: result: $result" >&5
5699 echo "${ECHO_T}$result" >&6; }
5700
5701
5702
5703           enablestring=disable
5704           defaultval=
5705           if test -z "$defaultval"; then
5706               if test x"$enablestring" = xdisable; then
5707                   defaultval=yes
5708               else
5709                   defaultval=no
5710               fi
5711           fi
5712
5713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5714 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5715           # Check whether --enable-rpath was given.
5716 if test "${enable_rpath+set}" = set; then
5717   enableval=$enable_rpath;
5718                           if test "$enableval" = yes; then
5719                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5720                           else
5721                             wx_cv_use_rpath='wxUSE_RPATH=no'
5722                           fi
5723
5724 else
5725
5726                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5727
5728 fi
5729
5730
5731           eval "$wx_cv_use_rpath"
5732
5733           if test x"$enablestring" = xdisable; then
5734             if test $wxUSE_RPATH = no; then
5735               result=yes
5736             else
5737               result=no
5738             fi
5739           else
5740             result=$wxUSE_RPATH
5741           fi
5742
5743           { echo "$as_me:$LINENO: result: $result" >&5
5744 echo "${ECHO_T}$result" >&6; }
5745
5746
5747
5748           enablestring=
5749           defaultval=
5750           if test -z "$defaultval"; then
5751               if test x"$enablestring" = xdisable; then
5752                   defaultval=yes
5753               else
5754                   defaultval=no
5755               fi
5756           fi
5757
5758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5759 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5760           # Check whether --enable-objc_uniquifying was given.
5761 if test "${enable_objc_uniquifying+set}" = set; then
5762   enableval=$enable_objc_uniquifying;
5763                           if test "$enableval" = yes; then
5764                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5765                           else
5766                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5767                           fi
5768
5769 else
5770
5771                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5772
5773 fi
5774
5775
5776           eval "$wx_cv_use_objc_uniquifying"
5777
5778           if test x"$enablestring" = xdisable; then
5779             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5780               result=yes
5781             else
5782               result=no
5783             fi
5784           else
5785             result=$wxUSE_OBJC_UNIQUIFYING
5786           fi
5787
5788           { echo "$as_me:$LINENO: result: $result" >&5
5789 echo "${ECHO_T}$result" >&6; }
5790
5791
5792
5793           enablestring=disable
5794           defaultval=
5795           if test -z "$defaultval"; then
5796               if test x"$enablestring" = xdisable; then
5797                   defaultval=yes
5798               else
5799                   defaultval=no
5800               fi
5801           fi
5802
5803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5804 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5805           # Check whether --enable-visibility was given.
5806 if test "${enable_visibility+set}" = set; then
5807   enableval=$enable_visibility;
5808                           if test "$enableval" = yes; then
5809                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5810                           else
5811                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5812                           fi
5813
5814 else
5815
5816                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5817
5818 fi
5819
5820
5821           eval "$wx_cv_use_visibility"
5822
5823           if test x"$enablestring" = xdisable; then
5824             if test $wxUSE_VISIBILITY = no; then
5825               result=yes
5826             else
5827               result=no
5828             fi
5829           else
5830             result=$wxUSE_VISIBILITY
5831           fi
5832
5833           { echo "$as_me:$LINENO: result: $result" >&5
5834 echo "${ECHO_T}$result" >&6; }
5835
5836
5837           enablestring=disable
5838           defaultval=
5839           if test -z "$defaultval"; then
5840               if test x"$enablestring" = xdisable; then
5841                   defaultval=yes
5842               else
5843                   defaultval=no
5844               fi
5845           fi
5846
5847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5848 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5849           # Check whether --enable-tls was given.
5850 if test "${enable_tls+set}" = set; then
5851   enableval=$enable_tls;
5852                           if test "$enableval" = yes; then
5853                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5854                           else
5855                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5856                           fi
5857
5858 else
5859
5860                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5861
5862 fi
5863
5864
5865           eval "$wx_cv_use_tls"
5866
5867           if test x"$enablestring" = xdisable; then
5868             if test $wxUSE_COMPILER_TLS = no; then
5869               result=yes
5870             else
5871               result=no
5872             fi
5873           else
5874             result=$wxUSE_COMPILER_TLS
5875           fi
5876
5877           { echo "$as_me:$LINENO: result: $result" >&5
5878 echo "${ECHO_T}$result" >&6; }
5879
5880
5881
5882
5883           enablestring=
5884           defaultval=$wxUSE_ALL_FEATURES
5885           if test -z "$defaultval"; then
5886               if test x"$enablestring" = xdisable; then
5887                   defaultval=yes
5888               else
5889                   defaultval=no
5890               fi
5891           fi
5892
5893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5894 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5895           # Check whether --enable-intl was given.
5896 if test "${enable_intl+set}" = set; then
5897   enableval=$enable_intl;
5898                           if test "$enableval" = yes; then
5899                             wx_cv_use_intl='wxUSE_INTL=yes'
5900                           else
5901                             wx_cv_use_intl='wxUSE_INTL=no'
5902                           fi
5903
5904 else
5905
5906                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5907
5908 fi
5909
5910
5911           eval "$wx_cv_use_intl"
5912
5913           if test x"$enablestring" = xdisable; then
5914             if test $wxUSE_INTL = no; then
5915               result=yes
5916             else
5917               result=no
5918             fi
5919           else
5920             result=$wxUSE_INTL
5921           fi
5922
5923           { echo "$as_me:$LINENO: result: $result" >&5
5924 echo "${ECHO_T}$result" >&6; }
5925
5926
5927           enablestring=
5928           defaultval=$wxUSE_ALL_FEATURES
5929           if test -z "$defaultval"; then
5930               if test x"$enablestring" = xdisable; then
5931                   defaultval=yes
5932               else
5933                   defaultval=no
5934               fi
5935           fi
5936
5937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5938 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5939           # Check whether --enable-xlocale was given.
5940 if test "${enable_xlocale+set}" = set; then
5941   enableval=$enable_xlocale;
5942                           if test "$enableval" = yes; then
5943                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5944                           else
5945                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5946                           fi
5947
5948 else
5949
5950                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5951
5952 fi
5953
5954
5955           eval "$wx_cv_use_xlocale"
5956
5957           if test x"$enablestring" = xdisable; then
5958             if test $wxUSE_XLOCALE = no; then
5959               result=yes
5960             else
5961               result=no
5962             fi
5963           else
5964             result=$wxUSE_XLOCALE
5965           fi
5966
5967           { echo "$as_me:$LINENO: result: $result" >&5
5968 echo "${ECHO_T}$result" >&6; }
5969
5970
5971           enablestring=
5972           defaultval=$wxUSE_ALL_FEATURES
5973           if test -z "$defaultval"; then
5974               if test x"$enablestring" = xdisable; then
5975                   defaultval=yes
5976               else
5977                   defaultval=no
5978               fi
5979           fi
5980
5981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5982 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5983           # Check whether --enable-config was given.
5984 if test "${enable_config+set}" = set; then
5985   enableval=$enable_config;
5986                           if test "$enableval" = yes; then
5987                             wx_cv_use_config='wxUSE_CONFIG=yes'
5988                           else
5989                             wx_cv_use_config='wxUSE_CONFIG=no'
5990                           fi
5991
5992 else
5993
5994                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5995
5996 fi
5997
5998
5999           eval "$wx_cv_use_config"
6000
6001           if test x"$enablestring" = xdisable; then
6002             if test $wxUSE_CONFIG = no; then
6003               result=yes
6004             else
6005               result=no
6006             fi
6007           else
6008             result=$wxUSE_CONFIG
6009           fi
6010
6011           { echo "$as_me:$LINENO: result: $result" >&5
6012 echo "${ECHO_T}$result" >&6; }
6013
6014
6015
6016           enablestring=
6017           defaultval=$wxUSE_ALL_FEATURES
6018           if test -z "$defaultval"; then
6019               if test x"$enablestring" = xdisable; then
6020                   defaultval=yes
6021               else
6022                   defaultval=no
6023               fi
6024           fi
6025
6026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6027 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6028           # Check whether --enable-protocols was given.
6029 if test "${enable_protocols+set}" = set; then
6030   enableval=$enable_protocols;
6031                           if test "$enableval" = yes; then
6032                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6033                           else
6034                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6035                           fi
6036
6037 else
6038
6039                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6040
6041 fi
6042
6043
6044           eval "$wx_cv_use_protocols"
6045
6046           if test x"$enablestring" = xdisable; then
6047             if test $wxUSE_PROTOCOL = no; then
6048               result=yes
6049             else
6050               result=no
6051             fi
6052           else
6053             result=$wxUSE_PROTOCOL
6054           fi
6055
6056           { echo "$as_me:$LINENO: result: $result" >&5
6057 echo "${ECHO_T}$result" >&6; }
6058
6059
6060           enablestring=
6061           defaultval=$wxUSE_ALL_FEATURES
6062           if test -z "$defaultval"; then
6063               if test x"$enablestring" = xdisable; then
6064                   defaultval=yes
6065               else
6066                   defaultval=no
6067               fi
6068           fi
6069
6070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6071 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6072           # Check whether --enable-ftp was given.
6073 if test "${enable_ftp+set}" = set; then
6074   enableval=$enable_ftp;
6075                           if test "$enableval" = yes; then
6076                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6077                           else
6078                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6079                           fi
6080
6081 else
6082
6083                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6084
6085 fi
6086
6087
6088           eval "$wx_cv_use_ftp"
6089
6090           if test x"$enablestring" = xdisable; then
6091             if test $wxUSE_PROTOCOL_FTP = no; then
6092               result=yes
6093             else
6094               result=no
6095             fi
6096           else
6097             result=$wxUSE_PROTOCOL_FTP
6098           fi
6099
6100           { echo "$as_me:$LINENO: result: $result" >&5
6101 echo "${ECHO_T}$result" >&6; }
6102
6103
6104           enablestring=
6105           defaultval=$wxUSE_ALL_FEATURES
6106           if test -z "$defaultval"; then
6107               if test x"$enablestring" = xdisable; then
6108                   defaultval=yes
6109               else
6110                   defaultval=no
6111               fi
6112           fi
6113
6114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6115 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6116           # Check whether --enable-http was given.
6117 if test "${enable_http+set}" = set; then
6118   enableval=$enable_http;
6119                           if test "$enableval" = yes; then
6120                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6121                           else
6122                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6123                           fi
6124
6125 else
6126
6127                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6128
6129 fi
6130
6131
6132           eval "$wx_cv_use_http"
6133
6134           if test x"$enablestring" = xdisable; then
6135             if test $wxUSE_PROTOCOL_HTTP = no; then
6136               result=yes
6137             else
6138               result=no
6139             fi
6140           else
6141             result=$wxUSE_PROTOCOL_HTTP
6142           fi
6143
6144           { echo "$as_me:$LINENO: result: $result" >&5
6145 echo "${ECHO_T}$result" >&6; }
6146
6147
6148           enablestring=
6149           defaultval=$wxUSE_ALL_FEATURES
6150           if test -z "$defaultval"; then
6151               if test x"$enablestring" = xdisable; then
6152                   defaultval=yes
6153               else
6154                   defaultval=no
6155               fi
6156           fi
6157
6158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6159 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6160           # Check whether --enable-fileproto was given.
6161 if test "${enable_fileproto+set}" = set; then
6162   enableval=$enable_fileproto;
6163                           if test "$enableval" = yes; then
6164                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6165                           else
6166                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6167                           fi
6168
6169 else
6170
6171                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6172
6173 fi
6174
6175
6176           eval "$wx_cv_use_fileproto"
6177
6178           if test x"$enablestring" = xdisable; then
6179             if test $wxUSE_PROTOCOL_FILE = no; then
6180               result=yes
6181             else
6182               result=no
6183             fi
6184           else
6185             result=$wxUSE_PROTOCOL_FILE
6186           fi
6187
6188           { echo "$as_me:$LINENO: result: $result" >&5
6189 echo "${ECHO_T}$result" >&6; }
6190
6191
6192           enablestring=
6193           defaultval=$wxUSE_ALL_FEATURES
6194           if test -z "$defaultval"; then
6195               if test x"$enablestring" = xdisable; then
6196                   defaultval=yes
6197               else
6198                   defaultval=no
6199               fi
6200           fi
6201
6202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6203 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6204           # Check whether --enable-sockets was given.
6205 if test "${enable_sockets+set}" = set; then
6206   enableval=$enable_sockets;
6207                           if test "$enableval" = yes; then
6208                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6209                           else
6210                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6211                           fi
6212
6213 else
6214
6215                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6216
6217 fi
6218
6219
6220           eval "$wx_cv_use_sockets"
6221
6222           if test x"$enablestring" = xdisable; then
6223             if test $wxUSE_SOCKETS = no; then
6224               result=yes
6225             else
6226               result=no
6227             fi
6228           else
6229             result=$wxUSE_SOCKETS
6230           fi
6231
6232           { echo "$as_me:$LINENO: result: $result" >&5
6233 echo "${ECHO_T}$result" >&6; }
6234
6235
6236           enablestring=
6237           defaultval=$wxUSE_ALL_FEATURES
6238           if test -z "$defaultval"; then
6239               if test x"$enablestring" = xdisable; then
6240                   defaultval=yes
6241               else
6242                   defaultval=no
6243               fi
6244           fi
6245
6246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6247 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6248           # Check whether --enable-ipv6 was given.
6249 if test "${enable_ipv6+set}" = set; then
6250   enableval=$enable_ipv6;
6251                           if test "$enableval" = yes; then
6252                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6253                           else
6254                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6255                           fi
6256
6257 else
6258
6259                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6260
6261 fi
6262
6263
6264           eval "$wx_cv_use_ipv6"
6265
6266           if test x"$enablestring" = xdisable; then
6267             if test $wxUSE_IPV6 = no; then
6268               result=yes
6269             else
6270               result=no
6271             fi
6272           else
6273             result=$wxUSE_IPV6
6274           fi
6275
6276           { echo "$as_me:$LINENO: result: $result" >&5
6277 echo "${ECHO_T}$result" >&6; }
6278
6279
6280           enablestring=
6281           defaultval=$wxUSE_ALL_FEATURES
6282           if test -z "$defaultval"; then
6283               if test x"$enablestring" = xdisable; then
6284                   defaultval=yes
6285               else
6286                   defaultval=no
6287               fi
6288           fi
6289
6290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6291 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6292           # Check whether --enable-ole was given.
6293 if test "${enable_ole+set}" = set; then
6294   enableval=$enable_ole;
6295                           if test "$enableval" = yes; then
6296                             wx_cv_use_ole='wxUSE_OLE=yes'
6297                           else
6298                             wx_cv_use_ole='wxUSE_OLE=no'
6299                           fi
6300
6301 else
6302
6303                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6304
6305 fi
6306
6307
6308           eval "$wx_cv_use_ole"
6309
6310           if test x"$enablestring" = xdisable; then
6311             if test $wxUSE_OLE = no; then
6312               result=yes
6313             else
6314               result=no
6315             fi
6316           else
6317             result=$wxUSE_OLE
6318           fi
6319
6320           { echo "$as_me:$LINENO: result: $result" >&5
6321 echo "${ECHO_T}$result" >&6; }
6322
6323
6324           enablestring=
6325           defaultval=$wxUSE_ALL_FEATURES
6326           if test -z "$defaultval"; then
6327               if test x"$enablestring" = xdisable; then
6328                   defaultval=yes
6329               else
6330                   defaultval=no
6331               fi
6332           fi
6333
6334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6336           # Check whether --enable-dataobj was given.
6337 if test "${enable_dataobj+set}" = set; then
6338   enableval=$enable_dataobj;
6339                           if test "$enableval" = yes; then
6340                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6341                           else
6342                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6343                           fi
6344
6345 else
6346
6347                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6348
6349 fi
6350
6351
6352           eval "$wx_cv_use_dataobj"
6353
6354           if test x"$enablestring" = xdisable; then
6355             if test $wxUSE_DATAOBJ = no; then
6356               result=yes
6357             else
6358               result=no
6359             fi
6360           else
6361             result=$wxUSE_DATAOBJ
6362           fi
6363
6364           { echo "$as_me:$LINENO: result: $result" >&5
6365 echo "${ECHO_T}$result" >&6; }
6366
6367
6368
6369           enablestring=
6370           defaultval=$wxUSE_ALL_FEATURES
6371           if test -z "$defaultval"; then
6372               if test x"$enablestring" = xdisable; then
6373                   defaultval=yes
6374               else
6375                   defaultval=no
6376               fi
6377           fi
6378
6379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6380 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6381           # Check whether --enable-ipc was given.
6382 if test "${enable_ipc+set}" = set; then
6383   enableval=$enable_ipc;
6384                           if test "$enableval" = yes; then
6385                             wx_cv_use_ipc='wxUSE_IPC=yes'
6386                           else
6387                             wx_cv_use_ipc='wxUSE_IPC=no'
6388                           fi
6389
6390 else
6391
6392                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6393
6394 fi
6395
6396
6397           eval "$wx_cv_use_ipc"
6398
6399           if test x"$enablestring" = xdisable; then
6400             if test $wxUSE_IPC = no; then
6401               result=yes
6402             else
6403               result=no
6404             fi
6405           else
6406             result=$wxUSE_IPC
6407           fi
6408
6409           { echo "$as_me:$LINENO: result: $result" >&5
6410 echo "${ECHO_T}$result" >&6; }
6411
6412
6413
6414           enablestring=
6415           defaultval=$wxUSE_ALL_FEATURES
6416           if test -z "$defaultval"; then
6417               if test x"$enablestring" = xdisable; then
6418                   defaultval=yes
6419               else
6420                   defaultval=no
6421               fi
6422           fi
6423
6424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6425 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6426           # Check whether --enable-baseevtloop was given.
6427 if test "${enable_baseevtloop+set}" = set; then
6428   enableval=$enable_baseevtloop;
6429                           if test "$enableval" = yes; then
6430                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6431                           else
6432                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6433                           fi
6434
6435 else
6436
6437                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6438
6439 fi
6440
6441
6442           eval "$wx_cv_use_baseevtloop"
6443
6444           if test x"$enablestring" = xdisable; then
6445             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6446               result=yes
6447             else
6448               result=no
6449             fi
6450           else
6451             result=$wxUSE_CONSOLE_EVENTLOOP
6452           fi
6453
6454           { echo "$as_me:$LINENO: result: $result" >&5
6455 echo "${ECHO_T}$result" >&6; }
6456
6457
6458           enablestring=
6459           defaultval=$wxUSE_ALL_FEATURES
6460           if test -z "$defaultval"; then
6461               if test x"$enablestring" = xdisable; then
6462                   defaultval=yes
6463               else
6464                   defaultval=no
6465               fi
6466           fi
6467
6468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6469 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6470           # Check whether --enable-epollloop was given.
6471 if test "${enable_epollloop+set}" = set; then
6472   enableval=$enable_epollloop;
6473                           if test "$enableval" = yes; then
6474                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6475                           else
6476                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6477                           fi
6478
6479 else
6480
6481                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6482
6483 fi
6484
6485
6486           eval "$wx_cv_use_epollloop"
6487
6488           if test x"$enablestring" = xdisable; then
6489             if test $wxUSE_EPOLL_DISPATCHER = no; then
6490               result=yes
6491             else
6492               result=no
6493             fi
6494           else
6495             result=$wxUSE_EPOLL_DISPATCHER
6496           fi
6497
6498           { echo "$as_me:$LINENO: result: $result" >&5
6499 echo "${ECHO_T}$result" >&6; }
6500
6501
6502           enablestring=
6503           defaultval=$wxUSE_ALL_FEATURES
6504           if test -z "$defaultval"; then
6505               if test x"$enablestring" = xdisable; then
6506                   defaultval=yes
6507               else
6508                   defaultval=no
6509               fi
6510           fi
6511
6512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6513 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6514           # Check whether --enable-selectloop was given.
6515 if test "${enable_selectloop+set}" = set; then
6516   enableval=$enable_selectloop;
6517                           if test "$enableval" = yes; then
6518                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6519                           else
6520                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6521                           fi
6522
6523 else
6524
6525                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6526
6527 fi
6528
6529
6530           eval "$wx_cv_use_selectloop"
6531
6532           if test x"$enablestring" = xdisable; then
6533             if test $wxUSE_SELECT_DISPATCHER = no; then
6534               result=yes
6535             else
6536               result=no
6537             fi
6538           else
6539             result=$wxUSE_SELECT_DISPATCHER
6540           fi
6541
6542           { echo "$as_me:$LINENO: result: $result" >&5
6543 echo "${ECHO_T}$result" >&6; }
6544
6545
6546
6547           enablestring=
6548           defaultval=$wxUSE_ALL_FEATURES
6549           if test -z "$defaultval"; then
6550               if test x"$enablestring" = xdisable; then
6551                   defaultval=yes
6552               else
6553                   defaultval=no
6554               fi
6555           fi
6556
6557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6558 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6559           # Check whether --enable-any was given.
6560 if test "${enable_any+set}" = set; then
6561   enableval=$enable_any;
6562                           if test "$enableval" = yes; then
6563                             wx_cv_use_any='wxUSE_ANY=yes'
6564                           else
6565                             wx_cv_use_any='wxUSE_ANY=no'
6566                           fi
6567
6568 else
6569
6570                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6571
6572 fi
6573
6574
6575           eval "$wx_cv_use_any"
6576
6577           if test x"$enablestring" = xdisable; then
6578             if test $wxUSE_ANY = no; then
6579               result=yes
6580             else
6581               result=no
6582             fi
6583           else
6584             result=$wxUSE_ANY
6585           fi
6586
6587           { echo "$as_me:$LINENO: result: $result" >&5
6588 echo "${ECHO_T}$result" >&6; }
6589
6590
6591           enablestring=
6592           defaultval=$wxUSE_ALL_FEATURES
6593           if test -z "$defaultval"; then
6594               if test x"$enablestring" = xdisable; then
6595                   defaultval=yes
6596               else
6597                   defaultval=no
6598               fi
6599           fi
6600
6601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6602 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6603           # Check whether --enable-apple_ieee was given.
6604 if test "${enable_apple_ieee+set}" = set; then
6605   enableval=$enable_apple_ieee;
6606                           if test "$enableval" = yes; then
6607                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6608                           else
6609                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6610                           fi
6611
6612 else
6613
6614                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6615
6616 fi
6617
6618
6619           eval "$wx_cv_use_apple_ieee"
6620
6621           if test x"$enablestring" = xdisable; then
6622             if test $wxUSE_APPLE_IEEE = no; then
6623               result=yes
6624             else
6625               result=no
6626             fi
6627           else
6628             result=$wxUSE_APPLE_IEEE
6629           fi
6630
6631           { echo "$as_me:$LINENO: result: $result" >&5
6632 echo "${ECHO_T}$result" >&6; }
6633
6634
6635           enablestring=
6636           defaultval=$wxUSE_ALL_FEATURES
6637           if test -z "$defaultval"; then
6638               if test x"$enablestring" = xdisable; then
6639                   defaultval=yes
6640               else
6641                   defaultval=no
6642               fi
6643           fi
6644
6645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6646 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6647           # Check whether --enable-arcstream was given.
6648 if test "${enable_arcstream+set}" = set; then
6649   enableval=$enable_arcstream;
6650                           if test "$enableval" = yes; then
6651                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6652                           else
6653                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6654                           fi
6655
6656 else
6657
6658                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6659
6660 fi
6661
6662
6663           eval "$wx_cv_use_arcstream"
6664
6665           if test x"$enablestring" = xdisable; then
6666             if test $wxUSE_ARCHIVE_STREAMS = no; then
6667               result=yes
6668             else
6669               result=no
6670             fi
6671           else
6672             result=$wxUSE_ARCHIVE_STREAMS
6673           fi
6674
6675           { echo "$as_me:$LINENO: result: $result" >&5
6676 echo "${ECHO_T}$result" >&6; }
6677
6678
6679           enablestring=
6680           defaultval=$wxUSE_ALL_FEATURES
6681           if test -z "$defaultval"; then
6682               if test x"$enablestring" = xdisable; then
6683                   defaultval=yes
6684               else
6685                   defaultval=no
6686               fi
6687           fi
6688
6689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6690 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6691           # Check whether --enable-base64 was given.
6692 if test "${enable_base64+set}" = set; then
6693   enableval=$enable_base64;
6694                           if test "$enableval" = yes; then
6695                             wx_cv_use_base64='wxUSE_BASE64=yes'
6696                           else
6697                             wx_cv_use_base64='wxUSE_BASE64=no'
6698                           fi
6699
6700 else
6701
6702                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6703
6704 fi
6705
6706
6707           eval "$wx_cv_use_base64"
6708
6709           if test x"$enablestring" = xdisable; then
6710             if test $wxUSE_BASE64 = no; then
6711               result=yes
6712             else
6713               result=no
6714             fi
6715           else
6716             result=$wxUSE_BASE64
6717           fi
6718
6719           { echo "$as_me:$LINENO: result: $result" >&5
6720 echo "${ECHO_T}$result" >&6; }
6721
6722
6723           enablestring=
6724           defaultval=$wxUSE_ALL_FEATURES
6725           if test -z "$defaultval"; then
6726               if test x"$enablestring" = xdisable; then
6727                   defaultval=yes
6728               else
6729                   defaultval=no
6730               fi
6731           fi
6732
6733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6734 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6735           # Check whether --enable-backtrace was given.
6736 if test "${enable_backtrace+set}" = set; then
6737   enableval=$enable_backtrace;
6738                           if test "$enableval" = yes; then
6739                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6740                           else
6741                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6742                           fi
6743
6744 else
6745
6746                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6747
6748 fi
6749
6750
6751           eval "$wx_cv_use_backtrace"
6752
6753           if test x"$enablestring" = xdisable; then
6754             if test $wxUSE_STACKWALKER = no; then
6755               result=yes
6756             else
6757               result=no
6758             fi
6759           else
6760             result=$wxUSE_STACKWALKER
6761           fi
6762
6763           { echo "$as_me:$LINENO: result: $result" >&5
6764 echo "${ECHO_T}$result" >&6; }
6765
6766
6767           enablestring=
6768           defaultval=$wxUSE_ALL_FEATURES
6769           if test -z "$defaultval"; then
6770               if test x"$enablestring" = xdisable; then
6771                   defaultval=yes
6772               else
6773                   defaultval=no
6774               fi
6775           fi
6776
6777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6778 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6779           # Check whether --enable-catch_segvs was given.
6780 if test "${enable_catch_segvs+set}" = set; then
6781   enableval=$enable_catch_segvs;
6782                           if test "$enableval" = yes; then
6783                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6784                           else
6785                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6786                           fi
6787
6788 else
6789
6790                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6791
6792 fi
6793
6794
6795           eval "$wx_cv_use_catch_segvs"
6796
6797           if test x"$enablestring" = xdisable; then
6798             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6799               result=yes
6800             else
6801               result=no
6802             fi
6803           else
6804             result=$wxUSE_ON_FATAL_EXCEPTION
6805           fi
6806
6807           { echo "$as_me:$LINENO: result: $result" >&5
6808 echo "${ECHO_T}$result" >&6; }
6809
6810
6811           enablestring=
6812           defaultval=$wxUSE_ALL_FEATURES
6813           if test -z "$defaultval"; then
6814               if test x"$enablestring" = xdisable; then
6815                   defaultval=yes
6816               else
6817                   defaultval=no
6818               fi
6819           fi
6820
6821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6822 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6823           # Check whether --enable-cmdline was given.
6824 if test "${enable_cmdline+set}" = set; then
6825   enableval=$enable_cmdline;
6826                           if test "$enableval" = yes; then
6827                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6828                           else
6829                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6830                           fi
6831
6832 else
6833
6834                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6835
6836 fi
6837
6838
6839           eval "$wx_cv_use_cmdline"
6840
6841           if test x"$enablestring" = xdisable; then
6842             if test $wxUSE_CMDLINE_PARSER = no; then
6843               result=yes
6844             else
6845               result=no
6846             fi
6847           else
6848             result=$wxUSE_CMDLINE_PARSER
6849           fi
6850
6851           { echo "$as_me:$LINENO: result: $result" >&5
6852 echo "${ECHO_T}$result" >&6; }
6853
6854
6855           enablestring=
6856           defaultval=$wxUSE_ALL_FEATURES
6857           if test -z "$defaultval"; then
6858               if test x"$enablestring" = xdisable; then
6859                   defaultval=yes
6860               else
6861                   defaultval=no
6862               fi
6863           fi
6864
6865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6866 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6867           # Check whether --enable-datetime was given.
6868 if test "${enable_datetime+set}" = set; then
6869   enableval=$enable_datetime;
6870                           if test "$enableval" = yes; then
6871                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6872                           else
6873                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6874                           fi
6875
6876 else
6877
6878                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6879
6880 fi
6881
6882
6883           eval "$wx_cv_use_datetime"
6884
6885           if test x"$enablestring" = xdisable; then
6886             if test $wxUSE_DATETIME = no; then
6887               result=yes
6888             else
6889               result=no
6890             fi
6891           else
6892             result=$wxUSE_DATETIME
6893           fi
6894
6895           { echo "$as_me:$LINENO: result: $result" >&5
6896 echo "${ECHO_T}$result" >&6; }
6897
6898
6899           enablestring=
6900           defaultval=$wxUSE_ALL_FEATURES
6901           if test -z "$defaultval"; then
6902               if test x"$enablestring" = xdisable; then
6903                   defaultval=yes
6904               else
6905                   defaultval=no
6906               fi
6907           fi
6908
6909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6910 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6911           # Check whether --enable-debugreport was given.
6912 if test "${enable_debugreport+set}" = set; then
6913   enableval=$enable_debugreport;
6914                           if test "$enableval" = yes; then
6915                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6916                           else
6917                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6918                           fi
6919
6920 else
6921
6922                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6923
6924 fi
6925
6926
6927           eval "$wx_cv_use_debugreport"
6928
6929           if test x"$enablestring" = xdisable; then
6930             if test $wxUSE_DEBUGREPORT = no; then
6931               result=yes
6932             else
6933               result=no
6934             fi
6935           else
6936             result=$wxUSE_DEBUGREPORT
6937           fi
6938
6939           { echo "$as_me:$LINENO: result: $result" >&5
6940 echo "${ECHO_T}$result" >&6; }
6941
6942
6943           enablestring=
6944           defaultval=$wxUSE_ALL_FEATURES
6945           if test -z "$defaultval"; then
6946               if test x"$enablestring" = xdisable; then
6947                   defaultval=yes
6948               else
6949                   defaultval=no
6950               fi
6951           fi
6952
6953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6954 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6955           # Check whether --enable-dialupman was given.
6956 if test "${enable_dialupman+set}" = set; then
6957   enableval=$enable_dialupman;
6958                           if test "$enableval" = yes; then
6959                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6960                           else
6961                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6962                           fi
6963
6964 else
6965
6966                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6967
6968 fi
6969
6970
6971           eval "$wx_cv_use_dialupman"
6972
6973           if test x"$enablestring" = xdisable; then
6974             if test $wxUSE_DIALUP_MANAGER = no; then
6975               result=yes
6976             else
6977               result=no
6978             fi
6979           else
6980             result=$wxUSE_DIALUP_MANAGER
6981           fi
6982
6983           { echo "$as_me:$LINENO: result: $result" >&5
6984 echo "${ECHO_T}$result" >&6; }
6985
6986
6987           enablestring=
6988           defaultval=$wxUSE_ALL_FEATURES
6989           if test -z "$defaultval"; then
6990               if test x"$enablestring" = xdisable; then
6991                   defaultval=yes
6992               else
6993                   defaultval=no
6994               fi
6995           fi
6996
6997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6998 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6999           # Check whether --enable-dynlib was given.
7000 if test "${enable_dynlib+set}" = set; then
7001   enableval=$enable_dynlib;
7002                           if test "$enableval" = yes; then
7003                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7004                           else
7005                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7006                           fi
7007
7008 else
7009
7010                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7011
7012 fi
7013
7014
7015           eval "$wx_cv_use_dynlib"
7016
7017           if test x"$enablestring" = xdisable; then
7018             if test $wxUSE_DYNLIB_CLASS = no; then
7019               result=yes
7020             else
7021               result=no
7022             fi
7023           else
7024             result=$wxUSE_DYNLIB_CLASS
7025           fi
7026
7027           { echo "$as_me:$LINENO: result: $result" >&5
7028 echo "${ECHO_T}$result" >&6; }
7029
7030
7031           enablestring=
7032           defaultval=$wxUSE_ALL_FEATURES
7033           if test -z "$defaultval"; then
7034               if test x"$enablestring" = xdisable; then
7035                   defaultval=yes
7036               else
7037                   defaultval=no
7038               fi
7039           fi
7040
7041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7042 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7043           # Check whether --enable-dynamicloader was given.
7044 if test "${enable_dynamicloader+set}" = set; then
7045   enableval=$enable_dynamicloader;
7046                           if test "$enableval" = yes; then
7047                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7048                           else
7049                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7050                           fi
7051
7052 else
7053
7054                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7055
7056 fi
7057
7058
7059           eval "$wx_cv_use_dynamicloader"
7060
7061           if test x"$enablestring" = xdisable; then
7062             if test $wxUSE_DYNAMIC_LOADER = no; then
7063               result=yes
7064             else
7065               result=no
7066             fi
7067           else
7068             result=$wxUSE_DYNAMIC_LOADER
7069           fi
7070
7071           { echo "$as_me:$LINENO: result: $result" >&5
7072 echo "${ECHO_T}$result" >&6; }
7073
7074
7075           enablestring=
7076           defaultval=$wxUSE_ALL_FEATURES
7077           if test -z "$defaultval"; then
7078               if test x"$enablestring" = xdisable; then
7079                   defaultval=yes
7080               else
7081                   defaultval=no
7082               fi
7083           fi
7084
7085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7086 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7087           # Check whether --enable-exceptions was given.
7088 if test "${enable_exceptions+set}" = set; then
7089   enableval=$enable_exceptions;
7090                           if test "$enableval" = yes; then
7091                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7092                           else
7093                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7094                           fi
7095
7096 else
7097
7098                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7099
7100 fi
7101
7102
7103           eval "$wx_cv_use_exceptions"
7104
7105           if test x"$enablestring" = xdisable; then
7106             if test $wxUSE_EXCEPTIONS = no; then
7107               result=yes
7108             else
7109               result=no
7110             fi
7111           else
7112             result=$wxUSE_EXCEPTIONS
7113           fi
7114
7115           { echo "$as_me:$LINENO: result: $result" >&5
7116 echo "${ECHO_T}$result" >&6; }
7117
7118
7119           enablestring=
7120           defaultval=$wxUSE_ALL_FEATURES
7121           if test -z "$defaultval"; then
7122               if test x"$enablestring" = xdisable; then
7123                   defaultval=yes
7124               else
7125                   defaultval=no
7126               fi
7127           fi
7128
7129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7130 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7131           # Check whether --enable-ffile was given.
7132 if test "${enable_ffile+set}" = set; then
7133   enableval=$enable_ffile;
7134                           if test "$enableval" = yes; then
7135                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7136                           else
7137                             wx_cv_use_ffile='wxUSE_FFILE=no'
7138                           fi
7139
7140 else
7141
7142                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7143
7144 fi
7145
7146
7147           eval "$wx_cv_use_ffile"
7148
7149           if test x"$enablestring" = xdisable; then
7150             if test $wxUSE_FFILE = no; then
7151               result=yes
7152             else
7153               result=no
7154             fi
7155           else
7156             result=$wxUSE_FFILE
7157           fi
7158
7159           { echo "$as_me:$LINENO: result: $result" >&5
7160 echo "${ECHO_T}$result" >&6; }
7161
7162
7163           enablestring=
7164           defaultval=$wxUSE_ALL_FEATURES
7165           if test -z "$defaultval"; then
7166               if test x"$enablestring" = xdisable; then
7167                   defaultval=yes
7168               else
7169                   defaultval=no
7170               fi
7171           fi
7172
7173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7174 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7175           # Check whether --enable-file was given.
7176 if test "${enable_file+set}" = set; then
7177   enableval=$enable_file;
7178                           if test "$enableval" = yes; then
7179                             wx_cv_use_file='wxUSE_FILE=yes'
7180                           else
7181                             wx_cv_use_file='wxUSE_FILE=no'
7182                           fi
7183
7184 else
7185
7186                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7187
7188 fi
7189
7190
7191           eval "$wx_cv_use_file"
7192
7193           if test x"$enablestring" = xdisable; then
7194             if test $wxUSE_FILE = no; then
7195               result=yes
7196             else
7197               result=no
7198             fi
7199           else
7200             result=$wxUSE_FILE
7201           fi
7202
7203           { echo "$as_me:$LINENO: result: $result" >&5
7204 echo "${ECHO_T}$result" >&6; }
7205
7206
7207           enablestring=
7208           defaultval=$wxUSE_ALL_FEATURES
7209           if test -z "$defaultval"; then
7210               if test x"$enablestring" = xdisable; then
7211                   defaultval=yes
7212               else
7213                   defaultval=no
7214               fi
7215           fi
7216
7217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7218 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7219           # Check whether --enable-filehistory was given.
7220 if test "${enable_filehistory+set}" = set; then
7221   enableval=$enable_filehistory;
7222                           if test "$enableval" = yes; then
7223                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7224                           else
7225                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7226                           fi
7227
7228 else
7229
7230                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7231
7232 fi
7233
7234
7235           eval "$wx_cv_use_filehistory"
7236
7237           if test x"$enablestring" = xdisable; then
7238             if test $wxUSE_FILE_HISTORY = no; then
7239               result=yes
7240             else
7241               result=no
7242             fi
7243           else
7244             result=$wxUSE_FILE_HISTORY
7245           fi
7246
7247           { echo "$as_me:$LINENO: result: $result" >&5
7248 echo "${ECHO_T}$result" >&6; }
7249
7250
7251           enablestring=
7252           defaultval=$wxUSE_ALL_FEATURES
7253           if test -z "$defaultval"; then
7254               if test x"$enablestring" = xdisable; then
7255                   defaultval=yes
7256               else
7257                   defaultval=no
7258               fi
7259           fi
7260
7261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7262 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7263           # Check whether --enable-filesystem was given.
7264 if test "${enable_filesystem+set}" = set; then
7265   enableval=$enable_filesystem;
7266                           if test "$enableval" = yes; then
7267                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7268                           else
7269                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7270                           fi
7271
7272 else
7273
7274                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7275
7276 fi
7277
7278
7279           eval "$wx_cv_use_filesystem"
7280
7281           if test x"$enablestring" = xdisable; then
7282             if test $wxUSE_FILESYSTEM = no; then
7283               result=yes
7284             else
7285               result=no
7286             fi
7287           else
7288             result=$wxUSE_FILESYSTEM
7289           fi
7290
7291           { echo "$as_me:$LINENO: result: $result" >&5
7292 echo "${ECHO_T}$result" >&6; }
7293
7294
7295           enablestring=
7296           defaultval=$wxUSE_ALL_FEATURES
7297           if test -z "$defaultval"; then
7298               if test x"$enablestring" = xdisable; then
7299                   defaultval=yes
7300               else
7301                   defaultval=no
7302               fi
7303           fi
7304
7305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7306 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7307           # Check whether --enable-fontenum was given.
7308 if test "${enable_fontenum+set}" = set; then
7309   enableval=$enable_fontenum;
7310                           if test "$enableval" = yes; then
7311                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7312                           else
7313                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7314                           fi
7315
7316 else
7317
7318                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7319
7320 fi
7321
7322
7323           eval "$wx_cv_use_fontenum"
7324
7325           if test x"$enablestring" = xdisable; then
7326             if test $wxUSE_FONTENUM = no; then
7327               result=yes
7328             else
7329               result=no
7330             fi
7331           else
7332             result=$wxUSE_FONTENUM
7333           fi
7334
7335           { echo "$as_me:$LINENO: result: $result" >&5
7336 echo "${ECHO_T}$result" >&6; }
7337
7338
7339           enablestring=
7340           defaultval=$wxUSE_ALL_FEATURES
7341           if test -z "$defaultval"; then
7342               if test x"$enablestring" = xdisable; then
7343                   defaultval=yes
7344               else
7345                   defaultval=no
7346               fi
7347           fi
7348
7349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7350 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7351           # Check whether --enable-fontmap was given.
7352 if test "${enable_fontmap+set}" = set; then
7353   enableval=$enable_fontmap;
7354                           if test "$enableval" = yes; then
7355                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7356                           else
7357                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7358                           fi
7359
7360 else
7361
7362                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7363
7364 fi
7365
7366
7367           eval "$wx_cv_use_fontmap"
7368
7369           if test x"$enablestring" = xdisable; then
7370             if test $wxUSE_FONTMAP = no; then
7371               result=yes
7372             else
7373               result=no
7374             fi
7375           else
7376             result=$wxUSE_FONTMAP
7377           fi
7378
7379           { echo "$as_me:$LINENO: result: $result" >&5
7380 echo "${ECHO_T}$result" >&6; }
7381
7382
7383           enablestring=
7384           defaultval=$wxUSE_ALL_FEATURES
7385           if test -z "$defaultval"; then
7386               if test x"$enablestring" = xdisable; then
7387                   defaultval=yes
7388               else
7389                   defaultval=no
7390               fi
7391           fi
7392
7393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7394 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7395           # Check whether --enable-fs_archive was given.
7396 if test "${enable_fs_archive+set}" = set; then
7397   enableval=$enable_fs_archive;
7398                           if test "$enableval" = yes; then
7399                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7400                           else
7401                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7402                           fi
7403
7404 else
7405
7406                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7407
7408 fi
7409
7410
7411           eval "$wx_cv_use_fs_archive"
7412
7413           if test x"$enablestring" = xdisable; then
7414             if test $wxUSE_FS_ARCHIVE = no; then
7415               result=yes
7416             else
7417               result=no
7418             fi
7419           else
7420             result=$wxUSE_FS_ARCHIVE
7421           fi
7422
7423           { echo "$as_me:$LINENO: result: $result" >&5
7424 echo "${ECHO_T}$result" >&6; }
7425
7426
7427           enablestring=
7428           defaultval=$wxUSE_ALL_FEATURES
7429           if test -z "$defaultval"; then
7430               if test x"$enablestring" = xdisable; then
7431                   defaultval=yes
7432               else
7433                   defaultval=no
7434               fi
7435           fi
7436
7437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7438 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7439           # Check whether --enable-fs_inet was given.
7440 if test "${enable_fs_inet+set}" = set; then
7441   enableval=$enable_fs_inet;
7442                           if test "$enableval" = yes; then
7443                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7444                           else
7445                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7446                           fi
7447
7448 else
7449
7450                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7451
7452 fi
7453
7454
7455           eval "$wx_cv_use_fs_inet"
7456
7457           if test x"$enablestring" = xdisable; then
7458             if test $wxUSE_FS_INET = no; then
7459               result=yes
7460             else
7461               result=no
7462             fi
7463           else
7464             result=$wxUSE_FS_INET
7465           fi
7466
7467           { echo "$as_me:$LINENO: result: $result" >&5
7468 echo "${ECHO_T}$result" >&6; }
7469
7470
7471           enablestring=
7472           defaultval=$wxUSE_ALL_FEATURES
7473           if test -z "$defaultval"; then
7474               if test x"$enablestring" = xdisable; then
7475                   defaultval=yes
7476               else
7477                   defaultval=no
7478               fi
7479           fi
7480
7481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7482 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7483           # Check whether --enable-fs_zip was given.
7484 if test "${enable_fs_zip+set}" = set; then
7485   enableval=$enable_fs_zip;
7486                           if test "$enableval" = yes; then
7487                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7488                           else
7489                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7490                           fi
7491
7492 else
7493
7494                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7495
7496 fi
7497
7498
7499           eval "$wx_cv_use_fs_zip"
7500
7501           if test x"$enablestring" = xdisable; then
7502             if test $wxUSE_FS_ZIP = no; then
7503               result=yes
7504             else
7505               result=no
7506             fi
7507           else
7508             result=$wxUSE_FS_ZIP
7509           fi
7510
7511           { echo "$as_me:$LINENO: result: $result" >&5
7512 echo "${ECHO_T}$result" >&6; }
7513
7514
7515           enablestring=
7516           defaultval=$wxUSE_ALL_FEATURES
7517           if test -z "$defaultval"; then
7518               if test x"$enablestring" = xdisable; then
7519                   defaultval=yes
7520               else
7521                   defaultval=no
7522               fi
7523           fi
7524
7525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7526 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7527           # Check whether --enable-fswatcher was given.
7528 if test "${enable_fswatcher+set}" = set; then
7529   enableval=$enable_fswatcher;
7530                           if test "$enableval" = yes; then
7531                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7532                           else
7533                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7534                           fi
7535
7536 else
7537
7538                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7539
7540 fi
7541
7542
7543           eval "$wx_cv_use_fswatcher"
7544
7545           if test x"$enablestring" = xdisable; then
7546             if test $wxUSE_FSWATCHER = no; then
7547               result=yes
7548             else
7549               result=no
7550             fi
7551           else
7552             result=$wxUSE_FSWATCHER
7553           fi
7554
7555           { echo "$as_me:$LINENO: result: $result" >&5
7556 echo "${ECHO_T}$result" >&6; }
7557
7558
7559           enablestring=
7560           defaultval=$wxUSE_ALL_FEATURES
7561           if test -z "$defaultval"; then
7562               if test x"$enablestring" = xdisable; then
7563                   defaultval=yes
7564               else
7565                   defaultval=no
7566               fi
7567           fi
7568
7569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7570 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7571           # Check whether --enable-geometry was given.
7572 if test "${enable_geometry+set}" = set; then
7573   enableval=$enable_geometry;
7574                           if test "$enableval" = yes; then
7575                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7576                           else
7577                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7578                           fi
7579
7580 else
7581
7582                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7583
7584 fi
7585
7586
7587           eval "$wx_cv_use_geometry"
7588
7589           if test x"$enablestring" = xdisable; then
7590             if test $wxUSE_GEOMETRY = no; then
7591               result=yes
7592             else
7593               result=no
7594             fi
7595           else
7596             result=$wxUSE_GEOMETRY
7597           fi
7598
7599           { echo "$as_me:$LINENO: result: $result" >&5
7600 echo "${ECHO_T}$result" >&6; }
7601
7602
7603           enablestring=
7604           defaultval=$wxUSE_ALL_FEATURES
7605           if test -z "$defaultval"; then
7606               if test x"$enablestring" = xdisable; then
7607                   defaultval=yes
7608               else
7609                   defaultval=no
7610               fi
7611           fi
7612
7613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7614 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7615           # Check whether --enable-log was given.
7616 if test "${enable_log+set}" = set; then
7617   enableval=$enable_log;
7618                           if test "$enableval" = yes; then
7619                             wx_cv_use_log='wxUSE_LOG=yes'
7620                           else
7621                             wx_cv_use_log='wxUSE_LOG=no'
7622                           fi
7623
7624 else
7625
7626                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7627
7628 fi
7629
7630
7631           eval "$wx_cv_use_log"
7632
7633           if test x"$enablestring" = xdisable; then
7634             if test $wxUSE_LOG = no; then
7635               result=yes
7636             else
7637               result=no
7638             fi
7639           else
7640             result=$wxUSE_LOG
7641           fi
7642
7643           { echo "$as_me:$LINENO: result: $result" >&5
7644 echo "${ECHO_T}$result" >&6; }
7645
7646
7647           enablestring=
7648           defaultval=$wxUSE_ALL_FEATURES
7649           if test -z "$defaultval"; then
7650               if test x"$enablestring" = xdisable; then
7651                   defaultval=yes
7652               else
7653                   defaultval=no
7654               fi
7655           fi
7656
7657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7658 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7659           # Check whether --enable-longlong was given.
7660 if test "${enable_longlong+set}" = set; then
7661   enableval=$enable_longlong;
7662                           if test "$enableval" = yes; then
7663                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7664                           else
7665                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7666                           fi
7667
7668 else
7669
7670                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7671
7672 fi
7673
7674
7675           eval "$wx_cv_use_longlong"
7676
7677           if test x"$enablestring" = xdisable; then
7678             if test $wxUSE_LONGLONG = no; then
7679               result=yes
7680             else
7681               result=no
7682             fi
7683           else
7684             result=$wxUSE_LONGLONG
7685           fi
7686
7687           { echo "$as_me:$LINENO: result: $result" >&5
7688 echo "${ECHO_T}$result" >&6; }
7689
7690
7691           enablestring=
7692           defaultval=$wxUSE_ALL_FEATURES
7693           if test -z "$defaultval"; then
7694               if test x"$enablestring" = xdisable; then
7695                   defaultval=yes
7696               else
7697                   defaultval=no
7698               fi
7699           fi
7700
7701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7702 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7703           # Check whether --enable-mimetype was given.
7704 if test "${enable_mimetype+set}" = set; then
7705   enableval=$enable_mimetype;
7706                           if test "$enableval" = yes; then
7707                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7708                           else
7709                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7710                           fi
7711
7712 else
7713
7714                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7715
7716 fi
7717
7718
7719           eval "$wx_cv_use_mimetype"
7720
7721           if test x"$enablestring" = xdisable; then
7722             if test $wxUSE_MIMETYPE = no; then
7723               result=yes
7724             else
7725               result=no
7726             fi
7727           else
7728             result=$wxUSE_MIMETYPE
7729           fi
7730
7731           { echo "$as_me:$LINENO: result: $result" >&5
7732 echo "${ECHO_T}$result" >&6; }
7733
7734
7735           enablestring=
7736           defaultval=$wxUSE_ALL_FEATURES
7737           if test -z "$defaultval"; then
7738               if test x"$enablestring" = xdisable; then
7739                   defaultval=yes
7740               else
7741                   defaultval=no
7742               fi
7743           fi
7744
7745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7746 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7747           # Check whether --enable-printfposparam was given.
7748 if test "${enable_printfposparam+set}" = set; then
7749   enableval=$enable_printfposparam;
7750                           if test "$enableval" = yes; then
7751                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7752                           else
7753                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7754                           fi
7755
7756 else
7757
7758                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7759
7760 fi
7761
7762
7763           eval "$wx_cv_use_printfposparam"
7764
7765           if test x"$enablestring" = xdisable; then
7766             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7767               result=yes
7768             else
7769               result=no
7770             fi
7771           else
7772             result=$wxUSE_PRINTF_POS_PARAMS
7773           fi
7774
7775           { echo "$as_me:$LINENO: result: $result" >&5
7776 echo "${ECHO_T}$result" >&6; }
7777
7778
7779           enablestring=
7780           defaultval=$wxUSE_ALL_FEATURES
7781           if test -z "$defaultval"; then
7782               if test x"$enablestring" = xdisable; then
7783                   defaultval=yes
7784               else
7785                   defaultval=no
7786               fi
7787           fi
7788
7789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7791           # Check whether --enable-snglinst was given.
7792 if test "${enable_snglinst+set}" = set; then
7793   enableval=$enable_snglinst;
7794                           if test "$enableval" = yes; then
7795                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7796                           else
7797                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7798                           fi
7799
7800 else
7801
7802                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7803
7804 fi
7805
7806
7807           eval "$wx_cv_use_snglinst"
7808
7809           if test x"$enablestring" = xdisable; then
7810             if test $wxUSE_SNGLINST_CHECKER = no; then
7811               result=yes
7812             else
7813               result=no
7814             fi
7815           else
7816             result=$wxUSE_SNGLINST_CHECKER
7817           fi
7818
7819           { echo "$as_me:$LINENO: result: $result" >&5
7820 echo "${ECHO_T}$result" >&6; }
7821
7822
7823           enablestring=
7824           defaultval=$wxUSE_ALL_FEATURES
7825           if test -z "$defaultval"; then
7826               if test x"$enablestring" = xdisable; then
7827                   defaultval=yes
7828               else
7829                   defaultval=no
7830               fi
7831           fi
7832
7833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7834 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7835           # Check whether --enable-sound was given.
7836 if test "${enable_sound+set}" = set; then
7837   enableval=$enable_sound;
7838                           if test "$enableval" = yes; then
7839                             wx_cv_use_sound='wxUSE_SOUND=yes'
7840                           else
7841                             wx_cv_use_sound='wxUSE_SOUND=no'
7842                           fi
7843
7844 else
7845
7846                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7847
7848 fi
7849
7850
7851           eval "$wx_cv_use_sound"
7852
7853           if test x"$enablestring" = xdisable; then
7854             if test $wxUSE_SOUND = no; then
7855               result=yes
7856             else
7857               result=no
7858             fi
7859           else
7860             result=$wxUSE_SOUND
7861           fi
7862
7863           { echo "$as_me:$LINENO: result: $result" >&5
7864 echo "${ECHO_T}$result" >&6; }
7865
7866
7867           enablestring=
7868           defaultval=$wxUSE_ALL_FEATURES
7869           if test -z "$defaultval"; then
7870               if test x"$enablestring" = xdisable; then
7871                   defaultval=yes
7872               else
7873                   defaultval=no
7874               fi
7875           fi
7876
7877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7878 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7879           # Check whether --enable-stdpaths was given.
7880 if test "${enable_stdpaths+set}" = set; then
7881   enableval=$enable_stdpaths;
7882                           if test "$enableval" = yes; then
7883                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7884                           else
7885                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7886                           fi
7887
7888 else
7889
7890                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7891
7892 fi
7893
7894
7895           eval "$wx_cv_use_stdpaths"
7896
7897           if test x"$enablestring" = xdisable; then
7898             if test $wxUSE_STDPATHS = no; then
7899               result=yes
7900             else
7901               result=no
7902             fi
7903           else
7904             result=$wxUSE_STDPATHS
7905           fi
7906
7907           { echo "$as_me:$LINENO: result: $result" >&5
7908 echo "${ECHO_T}$result" >&6; }
7909
7910
7911           enablestring=
7912           defaultval=$wxUSE_ALL_FEATURES
7913           if test -z "$defaultval"; then
7914               if test x"$enablestring" = xdisable; then
7915                   defaultval=yes
7916               else
7917                   defaultval=no
7918               fi
7919           fi
7920
7921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7922 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7923           # Check whether --enable-stopwatch was given.
7924 if test "${enable_stopwatch+set}" = set; then
7925   enableval=$enable_stopwatch;
7926                           if test "$enableval" = yes; then
7927                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7928                           else
7929                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7930                           fi
7931
7932 else
7933
7934                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7935
7936 fi
7937
7938
7939           eval "$wx_cv_use_stopwatch"
7940
7941           if test x"$enablestring" = xdisable; then
7942             if test $wxUSE_STOPWATCH = no; then
7943               result=yes
7944             else
7945               result=no
7946             fi
7947           else
7948             result=$wxUSE_STOPWATCH
7949           fi
7950
7951           { echo "$as_me:$LINENO: result: $result" >&5
7952 echo "${ECHO_T}$result" >&6; }
7953
7954
7955           enablestring=
7956           defaultval=$wxUSE_ALL_FEATURES
7957           if test -z "$defaultval"; then
7958               if test x"$enablestring" = xdisable; then
7959                   defaultval=yes
7960               else
7961                   defaultval=no
7962               fi
7963           fi
7964
7965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7966 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7967           # Check whether --enable-streams was given.
7968 if test "${enable_streams+set}" = set; then
7969   enableval=$enable_streams;
7970                           if test "$enableval" = yes; then
7971                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7972                           else
7973                             wx_cv_use_streams='wxUSE_STREAMS=no'
7974                           fi
7975
7976 else
7977
7978                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7979
7980 fi
7981
7982
7983           eval "$wx_cv_use_streams"
7984
7985           if test x"$enablestring" = xdisable; then
7986             if test $wxUSE_STREAMS = no; then
7987               result=yes
7988             else
7989               result=no
7990             fi
7991           else
7992             result=$wxUSE_STREAMS
7993           fi
7994
7995           { echo "$as_me:$LINENO: result: $result" >&5
7996 echo "${ECHO_T}$result" >&6; }
7997
7998
7999           enablestring=
8000           defaultval=$wxUSE_ALL_FEATURES
8001           if test -z "$defaultval"; then
8002               if test x"$enablestring" = xdisable; then
8003                   defaultval=yes
8004               else
8005                   defaultval=no
8006               fi
8007           fi
8008
8009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
8010 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
8011           # Check whether --enable-sysoptions was given.
8012 if test "${enable_sysoptions+set}" = set; then
8013   enableval=$enable_sysoptions;
8014                           if test "$enableval" = yes; then
8015                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
8016                           else
8017                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
8018                           fi
8019
8020 else
8021
8022                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8023
8024 fi
8025
8026
8027           eval "$wx_cv_use_sysoptions"
8028
8029           if test x"$enablestring" = xdisable; then
8030             if test $wxUSE_SYSTEM_OPTIONS = no; then
8031               result=yes
8032             else
8033               result=no
8034             fi
8035           else
8036             result=$wxUSE_SYSTEM_OPTIONS
8037           fi
8038
8039           { echo "$as_me:$LINENO: result: $result" >&5
8040 echo "${ECHO_T}$result" >&6; }
8041
8042
8043           enablestring=
8044           defaultval=$wxUSE_ALL_FEATURES
8045           if test -z "$defaultval"; then
8046               if test x"$enablestring" = xdisable; then
8047                   defaultval=yes
8048               else
8049                   defaultval=no
8050               fi
8051           fi
8052
8053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8054 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8055           # Check whether --enable-tarstream was given.
8056 if test "${enable_tarstream+set}" = set; then
8057   enableval=$enable_tarstream;
8058                           if test "$enableval" = yes; then
8059                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8060                           else
8061                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8062                           fi
8063
8064 else
8065
8066                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8067
8068 fi
8069
8070
8071           eval "$wx_cv_use_tarstream"
8072
8073           if test x"$enablestring" = xdisable; then
8074             if test $wxUSE_TARSTREAM = no; then
8075               result=yes
8076             else
8077               result=no
8078             fi
8079           else
8080             result=$wxUSE_TARSTREAM
8081           fi
8082
8083           { echo "$as_me:$LINENO: result: $result" >&5
8084 echo "${ECHO_T}$result" >&6; }
8085
8086
8087           enablestring=
8088           defaultval=$wxUSE_ALL_FEATURES
8089           if test -z "$defaultval"; then
8090               if test x"$enablestring" = xdisable; then
8091                   defaultval=yes
8092               else
8093                   defaultval=no
8094               fi
8095           fi
8096
8097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8098 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8099           # Check whether --enable-textbuf was given.
8100 if test "${enable_textbuf+set}" = set; then
8101   enableval=$enable_textbuf;
8102                           if test "$enableval" = yes; then
8103                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8104                           else
8105                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8106                           fi
8107
8108 else
8109
8110                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8111
8112 fi
8113
8114
8115           eval "$wx_cv_use_textbuf"
8116
8117           if test x"$enablestring" = xdisable; then
8118             if test $wxUSE_TEXTBUFFER = no; then
8119               result=yes
8120             else
8121               result=no
8122             fi
8123           else
8124             result=$wxUSE_TEXTBUFFER
8125           fi
8126
8127           { echo "$as_me:$LINENO: result: $result" >&5
8128 echo "${ECHO_T}$result" >&6; }
8129
8130
8131           enablestring=
8132           defaultval=$wxUSE_ALL_FEATURES
8133           if test -z "$defaultval"; then
8134               if test x"$enablestring" = xdisable; then
8135                   defaultval=yes
8136               else
8137                   defaultval=no
8138               fi
8139           fi
8140
8141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8142 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8143           # Check whether --enable-textfile was given.
8144 if test "${enable_textfile+set}" = set; then
8145   enableval=$enable_textfile;
8146                           if test "$enableval" = yes; then
8147                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8148                           else
8149                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8150                           fi
8151
8152 else
8153
8154                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8155
8156 fi
8157
8158
8159           eval "$wx_cv_use_textfile"
8160
8161           if test x"$enablestring" = xdisable; then
8162             if test $wxUSE_TEXTFILE = no; then
8163               result=yes
8164             else
8165               result=no
8166             fi
8167           else
8168             result=$wxUSE_TEXTFILE
8169           fi
8170
8171           { echo "$as_me:$LINENO: result: $result" >&5
8172 echo "${ECHO_T}$result" >&6; }
8173
8174
8175           enablestring=
8176           defaultval=$wxUSE_ALL_FEATURES
8177           if test -z "$defaultval"; then
8178               if test x"$enablestring" = xdisable; then
8179                   defaultval=yes
8180               else
8181                   defaultval=no
8182               fi
8183           fi
8184
8185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8186 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8187           # Check whether --enable-timer was given.
8188 if test "${enable_timer+set}" = set; then
8189   enableval=$enable_timer;
8190                           if test "$enableval" = yes; then
8191                             wx_cv_use_timer='wxUSE_TIMER=yes'
8192                           else
8193                             wx_cv_use_timer='wxUSE_TIMER=no'
8194                           fi
8195
8196 else
8197
8198                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8199
8200 fi
8201
8202
8203           eval "$wx_cv_use_timer"
8204
8205           if test x"$enablestring" = xdisable; then
8206             if test $wxUSE_TIMER = no; then
8207               result=yes
8208             else
8209               result=no
8210             fi
8211           else
8212             result=$wxUSE_TIMER
8213           fi
8214
8215           { echo "$as_me:$LINENO: result: $result" >&5
8216 echo "${ECHO_T}$result" >&6; }
8217
8218
8219           enablestring=
8220           defaultval=$wxUSE_ALL_FEATURES
8221           if test -z "$defaultval"; then
8222               if test x"$enablestring" = xdisable; then
8223                   defaultval=yes
8224               else
8225                   defaultval=no
8226               fi
8227           fi
8228
8229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8230 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8231           # Check whether --enable-variant was given.
8232 if test "${enable_variant+set}" = set; then
8233   enableval=$enable_variant;
8234                           if test "$enableval" = yes; then
8235                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8236                           else
8237                             wx_cv_use_variant='wxUSE_VARIANT=no'
8238                           fi
8239
8240 else
8241
8242                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8243
8244 fi
8245
8246
8247           eval "$wx_cv_use_variant"
8248
8249           if test x"$enablestring" = xdisable; then
8250             if test $wxUSE_VARIANT = no; then
8251               result=yes
8252             else
8253               result=no
8254             fi
8255           else
8256             result=$wxUSE_VARIANT
8257           fi
8258
8259           { echo "$as_me:$LINENO: result: $result" >&5
8260 echo "${ECHO_T}$result" >&6; }
8261
8262
8263           enablestring=
8264           defaultval=$wxUSE_ALL_FEATURES
8265           if test -z "$defaultval"; then
8266               if test x"$enablestring" = xdisable; then
8267                   defaultval=yes
8268               else
8269                   defaultval=no
8270               fi
8271           fi
8272
8273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8274 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8275           # Check whether --enable-zipstream was given.
8276 if test "${enable_zipstream+set}" = set; then
8277   enableval=$enable_zipstream;
8278                           if test "$enableval" = yes; then
8279                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8280                           else
8281                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8282                           fi
8283
8284 else
8285
8286                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8287
8288 fi
8289
8290
8291           eval "$wx_cv_use_zipstream"
8292
8293           if test x"$enablestring" = xdisable; then
8294             if test $wxUSE_ZIPSTREAM = no; then
8295               result=yes
8296             else
8297               result=no
8298             fi
8299           else
8300             result=$wxUSE_ZIPSTREAM
8301           fi
8302
8303           { echo "$as_me:$LINENO: result: $result" >&5
8304 echo "${ECHO_T}$result" >&6; }
8305
8306
8307
8308           enablestring=
8309           defaultval=$wxUSE_ALL_FEATURES
8310           if test -z "$defaultval"; then
8311               if test x"$enablestring" = xdisable; then
8312                   defaultval=yes
8313               else
8314                   defaultval=no
8315               fi
8316           fi
8317
8318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8319 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8320           # Check whether --enable-url was given.
8321 if test "${enable_url+set}" = set; then
8322   enableval=$enable_url;
8323                           if test "$enableval" = yes; then
8324                             wx_cv_use_url='wxUSE_URL=yes'
8325                           else
8326                             wx_cv_use_url='wxUSE_URL=no'
8327                           fi
8328
8329 else
8330
8331                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8332
8333 fi
8334
8335
8336           eval "$wx_cv_use_url"
8337
8338           if test x"$enablestring" = xdisable; then
8339             if test $wxUSE_URL = no; then
8340               result=yes
8341             else
8342               result=no
8343             fi
8344           else
8345             result=$wxUSE_URL
8346           fi
8347
8348           { echo "$as_me:$LINENO: result: $result" >&5
8349 echo "${ECHO_T}$result" >&6; }
8350
8351
8352           enablestring=
8353           defaultval=$wxUSE_ALL_FEATURES
8354           if test -z "$defaultval"; then
8355               if test x"$enablestring" = xdisable; then
8356                   defaultval=yes
8357               else
8358                   defaultval=no
8359               fi
8360           fi
8361
8362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8363 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8364           # Check whether --enable-protocol was given.
8365 if test "${enable_protocol+set}" = set; then
8366   enableval=$enable_protocol;
8367                           if test "$enableval" = yes; then
8368                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8369                           else
8370                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8371                           fi
8372
8373 else
8374
8375                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8376
8377 fi
8378
8379
8380           eval "$wx_cv_use_protocol"
8381
8382           if test x"$enablestring" = xdisable; then
8383             if test $wxUSE_PROTOCOL = no; then
8384               result=yes
8385             else
8386               result=no
8387             fi
8388           else
8389             result=$wxUSE_PROTOCOL
8390           fi
8391
8392           { echo "$as_me:$LINENO: result: $result" >&5
8393 echo "${ECHO_T}$result" >&6; }
8394
8395
8396           enablestring=
8397           defaultval=$wxUSE_ALL_FEATURES
8398           if test -z "$defaultval"; then
8399               if test x"$enablestring" = xdisable; then
8400                   defaultval=yes
8401               else
8402                   defaultval=no
8403               fi
8404           fi
8405
8406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8407 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8408           # Check whether --enable-protocol_http was given.
8409 if test "${enable_protocol_http+set}" = set; then
8410   enableval=$enable_protocol_http;
8411                           if test "$enableval" = yes; then
8412                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8413                           else
8414                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8415                           fi
8416
8417 else
8418
8419                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8420
8421 fi
8422
8423
8424           eval "$wx_cv_use_protocol_http"
8425
8426           if test x"$enablestring" = xdisable; then
8427             if test $wxUSE_PROTOCOL_HTTP = no; then
8428               result=yes
8429             else
8430               result=no
8431             fi
8432           else
8433             result=$wxUSE_PROTOCOL_HTTP
8434           fi
8435
8436           { echo "$as_me:$LINENO: result: $result" >&5
8437 echo "${ECHO_T}$result" >&6; }
8438
8439
8440           enablestring=
8441           defaultval=$wxUSE_ALL_FEATURES
8442           if test -z "$defaultval"; then
8443               if test x"$enablestring" = xdisable; then
8444                   defaultval=yes
8445               else
8446                   defaultval=no
8447               fi
8448           fi
8449
8450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8452           # Check whether --enable-protocol_ftp was given.
8453 if test "${enable_protocol_ftp+set}" = set; then
8454   enableval=$enable_protocol_ftp;
8455                           if test "$enableval" = yes; then
8456                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8457                           else
8458                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8459                           fi
8460
8461 else
8462
8463                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8464
8465 fi
8466
8467
8468           eval "$wx_cv_use_protocol_ftp"
8469
8470           if test x"$enablestring" = xdisable; then
8471             if test $wxUSE_PROTOCOL_FTP = no; then
8472               result=yes
8473             else
8474               result=no
8475             fi
8476           else
8477             result=$wxUSE_PROTOCOL_FTP
8478           fi
8479
8480           { echo "$as_me:$LINENO: result: $result" >&5
8481 echo "${ECHO_T}$result" >&6; }
8482
8483
8484           enablestring=
8485           defaultval=$wxUSE_ALL_FEATURES
8486           if test -z "$defaultval"; then
8487               if test x"$enablestring" = xdisable; then
8488                   defaultval=yes
8489               else
8490                   defaultval=no
8491               fi
8492           fi
8493
8494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8495 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8496           # Check whether --enable-protocol_file was given.
8497 if test "${enable_protocol_file+set}" = set; then
8498   enableval=$enable_protocol_file;
8499                           if test "$enableval" = yes; then
8500                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8501                           else
8502                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8503                           fi
8504
8505 else
8506
8507                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8508
8509 fi
8510
8511
8512           eval "$wx_cv_use_protocol_file"
8513
8514           if test x"$enablestring" = xdisable; then
8515             if test $wxUSE_PROTOCOL_FILE = no; then
8516               result=yes
8517             else
8518               result=no
8519             fi
8520           else
8521             result=$wxUSE_PROTOCOL_FILE
8522           fi
8523
8524           { echo "$as_me:$LINENO: result: $result" >&5
8525 echo "${ECHO_T}$result" >&6; }
8526
8527
8528
8529           enablestring=
8530           defaultval=$wxUSE_ALL_FEATURES
8531           if test -z "$defaultval"; then
8532               if test x"$enablestring" = xdisable; then
8533                   defaultval=yes
8534               else
8535                   defaultval=no
8536               fi
8537           fi
8538
8539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8540 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8541           # Check whether --enable-threads was given.
8542 if test "${enable_threads+set}" = set; then
8543   enableval=$enable_threads;
8544                           if test "$enableval" = yes; then
8545                             wx_cv_use_threads='wxUSE_THREADS=yes'
8546                           else
8547                             wx_cv_use_threads='wxUSE_THREADS=no'
8548                           fi
8549
8550 else
8551
8552                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8553
8554 fi
8555
8556
8557           eval "$wx_cv_use_threads"
8558
8559           if test x"$enablestring" = xdisable; then
8560             if test $wxUSE_THREADS = no; then
8561               result=yes
8562             else
8563               result=no
8564             fi
8565           else
8566             result=$wxUSE_THREADS
8567           fi
8568
8569           { echo "$as_me:$LINENO: result: $result" >&5
8570 echo "${ECHO_T}$result" >&6; }
8571
8572
8573
8574           enablestring=
8575           defaultval=
8576           if test -z "$defaultval"; then
8577               if test x"$enablestring" = xdisable; then
8578                   defaultval=yes
8579               else
8580                   defaultval=no
8581               fi
8582           fi
8583
8584           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8585 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8586           # Check whether --enable-iniconf was given.
8587 if test "${enable_iniconf+set}" = set; then
8588   enableval=$enable_iniconf;
8589                           if test "$enableval" = yes; then
8590                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8591                           else
8592                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8593                           fi
8594
8595 else
8596
8597                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8598
8599 fi
8600
8601
8602           eval "$wx_cv_use_iniconf"
8603
8604           if test x"$enablestring" = xdisable; then
8605             if test $wxUSE_INICONF = no; then
8606               result=yes
8607             else
8608               result=no
8609             fi
8610           else
8611             result=$wxUSE_INICONF
8612           fi
8613
8614           { echo "$as_me:$LINENO: result: $result" >&5
8615 echo "${ECHO_T}$result" >&6; }
8616
8617
8618           enablestring=
8619           defaultval=$wxUSE_ALL_FEATURES
8620           if test -z "$defaultval"; then
8621               if test x"$enablestring" = xdisable; then
8622                   defaultval=yes
8623               else
8624                   defaultval=no
8625               fi
8626           fi
8627
8628           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8629 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8630           # Check whether --enable-regkey was given.
8631 if test "${enable_regkey+set}" = set; then
8632   enableval=$enable_regkey;
8633                           if test "$enableval" = yes; then
8634                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8635                           else
8636                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8637                           fi
8638
8639 else
8640
8641                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8642
8643 fi
8644
8645
8646           eval "$wx_cv_use_regkey"
8647
8648           if test x"$enablestring" = xdisable; then
8649             if test $wxUSE_REGKEY = no; then
8650               result=yes
8651             else
8652               result=no
8653             fi
8654           else
8655             result=$wxUSE_REGKEY
8656           fi
8657
8658           { echo "$as_me:$LINENO: result: $result" >&5
8659 echo "${ECHO_T}$result" >&6; }
8660
8661
8662 if test "$wxUSE_GUI" = "yes"; then
8663
8664
8665
8666           enablestring=
8667           defaultval=$wxUSE_ALL_FEATURES
8668           if test -z "$defaultval"; then
8669               if test x"$enablestring" = xdisable; then
8670                   defaultval=yes
8671               else
8672                   defaultval=no
8673               fi
8674           fi
8675
8676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8677 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8678           # Check whether --enable-docview was given.
8679 if test "${enable_docview+set}" = set; then
8680   enableval=$enable_docview;
8681                           if test "$enableval" = yes; then
8682                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8683                           else
8684                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8685                           fi
8686
8687 else
8688
8689                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8690
8691 fi
8692
8693
8694           eval "$wx_cv_use_docview"
8695
8696           if test x"$enablestring" = xdisable; then
8697             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8698               result=yes
8699             else
8700               result=no
8701             fi
8702           else
8703             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8704           fi
8705
8706           { echo "$as_me:$LINENO: result: $result" >&5
8707 echo "${ECHO_T}$result" >&6; }
8708
8709
8710           enablestring=
8711           defaultval=$wxUSE_ALL_FEATURES
8712           if test -z "$defaultval"; then
8713               if test x"$enablestring" = xdisable; then
8714                   defaultval=yes
8715               else
8716                   defaultval=no
8717               fi
8718           fi
8719
8720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8721 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8722           # Check whether --enable-help was given.
8723 if test "${enable_help+set}" = set; then
8724   enableval=$enable_help;
8725                           if test "$enableval" = yes; then
8726                             wx_cv_use_help='wxUSE_HELP=yes'
8727                           else
8728                             wx_cv_use_help='wxUSE_HELP=no'
8729                           fi
8730
8731 else
8732
8733                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8734
8735 fi
8736
8737
8738           eval "$wx_cv_use_help"
8739
8740           if test x"$enablestring" = xdisable; then
8741             if test $wxUSE_HELP = no; then
8742               result=yes
8743             else
8744               result=no
8745             fi
8746           else
8747             result=$wxUSE_HELP
8748           fi
8749
8750           { echo "$as_me:$LINENO: result: $result" >&5
8751 echo "${ECHO_T}$result" >&6; }
8752
8753
8754           enablestring=
8755           defaultval=$wxUSE_ALL_FEATURES
8756           if test -z "$defaultval"; then
8757               if test x"$enablestring" = xdisable; then
8758                   defaultval=yes
8759               else
8760                   defaultval=no
8761               fi
8762           fi
8763
8764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8765 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8766           # Check whether --enable-mshtmlhelp was given.
8767 if test "${enable_mshtmlhelp+set}" = set; then
8768   enableval=$enable_mshtmlhelp;
8769                           if test "$enableval" = yes; then
8770                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8771                           else
8772                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8773                           fi
8774
8775 else
8776
8777                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8778
8779 fi
8780
8781
8782           eval "$wx_cv_use_mshtmlhelp"
8783
8784           if test x"$enablestring" = xdisable; then
8785             if test $wxUSE_MS_HTML_HELP = no; then
8786               result=yes
8787             else
8788               result=no
8789             fi
8790           else
8791             result=$wxUSE_MS_HTML_HELP
8792           fi
8793
8794           { echo "$as_me:$LINENO: result: $result" >&5
8795 echo "${ECHO_T}$result" >&6; }
8796
8797
8798           enablestring=
8799           defaultval=$wxUSE_ALL_FEATURES
8800           if test -z "$defaultval"; then
8801               if test x"$enablestring" = xdisable; then
8802                   defaultval=yes
8803               else
8804                   defaultval=no
8805               fi
8806           fi
8807
8808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8809 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8810           # Check whether --enable-html was given.
8811 if test "${enable_html+set}" = set; then
8812   enableval=$enable_html;
8813                           if test "$enableval" = yes; then
8814                             wx_cv_use_html='wxUSE_HTML=yes'
8815                           else
8816                             wx_cv_use_html='wxUSE_HTML=no'
8817                           fi
8818
8819 else
8820
8821                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8822
8823 fi
8824
8825
8826           eval "$wx_cv_use_html"
8827
8828           if test x"$enablestring" = xdisable; then
8829             if test $wxUSE_HTML = no; then
8830               result=yes
8831             else
8832               result=no
8833             fi
8834           else
8835             result=$wxUSE_HTML
8836           fi
8837
8838           { echo "$as_me:$LINENO: result: $result" >&5
8839 echo "${ECHO_T}$result" >&6; }
8840
8841
8842           enablestring=
8843           defaultval=$wxUSE_ALL_FEATURES
8844           if test -z "$defaultval"; then
8845               if test x"$enablestring" = xdisable; then
8846                   defaultval=yes
8847               else
8848                   defaultval=no
8849               fi
8850           fi
8851
8852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8853 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8854           # Check whether --enable-htmlhelp was given.
8855 if test "${enable_htmlhelp+set}" = set; then
8856   enableval=$enable_htmlhelp;
8857                           if test "$enableval" = yes; then
8858                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8859                           else
8860                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8861                           fi
8862
8863 else
8864
8865                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8866
8867 fi
8868
8869
8870           eval "$wx_cv_use_htmlhelp"
8871
8872           if test x"$enablestring" = xdisable; then
8873             if test $wxUSE_WXHTML_HELP = no; then
8874               result=yes
8875             else
8876               result=no
8877             fi
8878           else
8879             result=$wxUSE_WXHTML_HELP
8880           fi
8881
8882           { echo "$as_me:$LINENO: result: $result" >&5
8883 echo "${ECHO_T}$result" >&6; }
8884
8885
8886           enablestring=
8887           defaultval=$wxUSE_ALL_FEATURES
8888           if test -z "$defaultval"; then
8889               if test x"$enablestring" = xdisable; then
8890                   defaultval=yes
8891               else
8892                   defaultval=no
8893               fi
8894           fi
8895
8896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8897 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8898           # Check whether --enable-xrc was given.
8899 if test "${enable_xrc+set}" = set; then
8900   enableval=$enable_xrc;
8901                           if test "$enableval" = yes; then
8902                             wx_cv_use_xrc='wxUSE_XRC=yes'
8903                           else
8904                             wx_cv_use_xrc='wxUSE_XRC=no'
8905                           fi
8906
8907 else
8908
8909                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8910
8911 fi
8912
8913
8914           eval "$wx_cv_use_xrc"
8915
8916           if test x"$enablestring" = xdisable; then
8917             if test $wxUSE_XRC = no; then
8918               result=yes
8919             else
8920               result=no
8921             fi
8922           else
8923             result=$wxUSE_XRC
8924           fi
8925
8926           { echo "$as_me:$LINENO: result: $result" >&5
8927 echo "${ECHO_T}$result" >&6; }
8928
8929
8930           enablestring=
8931           defaultval=$wxUSE_ALL_FEATURES
8932           if test -z "$defaultval"; then
8933               if test x"$enablestring" = xdisable; then
8934                   defaultval=yes
8935               else
8936                   defaultval=no
8937               fi
8938           fi
8939
8940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8941 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8942           # Check whether --enable-aui was given.
8943 if test "${enable_aui+set}" = set; then
8944   enableval=$enable_aui;
8945                           if test "$enableval" = yes; then
8946                             wx_cv_use_aui='wxUSE_AUI=yes'
8947                           else
8948                             wx_cv_use_aui='wxUSE_AUI=no'
8949                           fi
8950
8951 else
8952
8953                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8954
8955 fi
8956
8957
8958           eval "$wx_cv_use_aui"
8959
8960           if test x"$enablestring" = xdisable; then
8961             if test $wxUSE_AUI = no; then
8962               result=yes
8963             else
8964               result=no
8965             fi
8966           else
8967             result=$wxUSE_AUI
8968           fi
8969
8970           { echo "$as_me:$LINENO: result: $result" >&5
8971 echo "${ECHO_T}$result" >&6; }
8972
8973
8974           enablestring=
8975           defaultval=$wxUSE_ALL_FEATURES
8976           if test -z "$defaultval"; then
8977               if test x"$enablestring" = xdisable; then
8978                   defaultval=yes
8979               else
8980                   defaultval=no
8981               fi
8982           fi
8983
8984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8985 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8986           # Check whether --enable-propgrid was given.
8987 if test "${enable_propgrid+set}" = set; then
8988   enableval=$enable_propgrid;
8989                           if test "$enableval" = yes; then
8990                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8991                           else
8992                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8993                           fi
8994
8995 else
8996
8997                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8998
8999 fi
9000
9001
9002           eval "$wx_cv_use_propgrid"
9003
9004           if test x"$enablestring" = xdisable; then
9005             if test $wxUSE_PROPGRID = no; then
9006               result=yes
9007             else
9008               result=no
9009             fi
9010           else
9011             result=$wxUSE_PROPGRID
9012           fi
9013
9014           { echo "$as_me:$LINENO: result: $result" >&5
9015 echo "${ECHO_T}$result" >&6; }
9016
9017
9018           enablestring=
9019           defaultval=$wxUSE_ALL_FEATURES
9020           if test -z "$defaultval"; then
9021               if test x"$enablestring" = xdisable; then
9022                   defaultval=yes
9023               else
9024                   defaultval=no
9025               fi
9026           fi
9027
9028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
9029 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
9030           # Check whether --enable-ribbon was given.
9031 if test "${enable_ribbon+set}" = set; then
9032   enableval=$enable_ribbon;
9033                           if test "$enableval" = yes; then
9034                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
9035                           else
9036                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
9037                           fi
9038
9039 else
9040
9041                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9042
9043 fi
9044
9045
9046           eval "$wx_cv_use_ribbon"
9047
9048           if test x"$enablestring" = xdisable; then
9049             if test $wxUSE_RIBBON = no; then
9050               result=yes
9051             else
9052               result=no
9053             fi
9054           else
9055             result=$wxUSE_RIBBON
9056           fi
9057
9058           { echo "$as_me:$LINENO: result: $result" >&5
9059 echo "${ECHO_T}$result" >&6; }
9060
9061
9062           enablestring=
9063           defaultval=$wxUSE_ALL_FEATURES
9064           if test -z "$defaultval"; then
9065               if test x"$enablestring" = xdisable; then
9066                   defaultval=yes
9067               else
9068                   defaultval=no
9069               fi
9070           fi
9071
9072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9073 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9074           # Check whether --enable-stc was given.
9075 if test "${enable_stc+set}" = set; then
9076   enableval=$enable_stc;
9077                           if test "$enableval" = yes; then
9078                             wx_cv_use_stc='wxUSE_STC=yes'
9079                           else
9080                             wx_cv_use_stc='wxUSE_STC=no'
9081                           fi
9082
9083 else
9084
9085                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9086
9087 fi
9088
9089
9090           eval "$wx_cv_use_stc"
9091
9092           if test x"$enablestring" = xdisable; then
9093             if test $wxUSE_STC = no; then
9094               result=yes
9095             else
9096               result=no
9097             fi
9098           else
9099             result=$wxUSE_STC
9100           fi
9101
9102           { echo "$as_me:$LINENO: result: $result" >&5
9103 echo "${ECHO_T}$result" >&6; }
9104
9105
9106           enablestring=
9107           defaultval=$wxUSE_ALL_FEATURES
9108           if test -z "$defaultval"; then
9109               if test x"$enablestring" = xdisable; then
9110                   defaultval=yes
9111               else
9112                   defaultval=no
9113               fi
9114           fi
9115
9116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9117 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9118           # Check whether --enable-constraints was given.
9119 if test "${enable_constraints+set}" = set; then
9120   enableval=$enable_constraints;
9121                           if test "$enableval" = yes; then
9122                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9123                           else
9124                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9125                           fi
9126
9127 else
9128
9129                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9130
9131 fi
9132
9133
9134           eval "$wx_cv_use_constraints"
9135
9136           if test x"$enablestring" = xdisable; then
9137             if test $wxUSE_CONSTRAINTS = no; then
9138               result=yes
9139             else
9140               result=no
9141             fi
9142           else
9143             result=$wxUSE_CONSTRAINTS
9144           fi
9145
9146           { echo "$as_me:$LINENO: result: $result" >&5
9147 echo "${ECHO_T}$result" >&6; }
9148
9149
9150           enablestring=
9151           defaultval=$wxUSE_ALL_FEATURES
9152           if test -z "$defaultval"; then
9153               if test x"$enablestring" = xdisable; then
9154                   defaultval=yes
9155               else
9156                   defaultval=no
9157               fi
9158           fi
9159
9160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9161 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9162           # Check whether --enable-loggui was given.
9163 if test "${enable_loggui+set}" = set; then
9164   enableval=$enable_loggui;
9165                           if test "$enableval" = yes; then
9166                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9167                           else
9168                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9169                           fi
9170
9171 else
9172
9173                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9174
9175 fi
9176
9177
9178           eval "$wx_cv_use_loggui"
9179
9180           if test x"$enablestring" = xdisable; then
9181             if test $wxUSE_LOGGUI = no; then
9182               result=yes
9183             else
9184               result=no
9185             fi
9186           else
9187             result=$wxUSE_LOGGUI
9188           fi
9189
9190           { echo "$as_me:$LINENO: result: $result" >&5
9191 echo "${ECHO_T}$result" >&6; }
9192
9193
9194           enablestring=
9195           defaultval=$wxUSE_ALL_FEATURES
9196           if test -z "$defaultval"; then
9197               if test x"$enablestring" = xdisable; then
9198                   defaultval=yes
9199               else
9200                   defaultval=no
9201               fi
9202           fi
9203
9204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9205 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9206           # Check whether --enable-logwin was given.
9207 if test "${enable_logwin+set}" = set; then
9208   enableval=$enable_logwin;
9209                           if test "$enableval" = yes; then
9210                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9211                           else
9212                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9213                           fi
9214
9215 else
9216
9217                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9218
9219 fi
9220
9221
9222           eval "$wx_cv_use_logwin"
9223
9224           if test x"$enablestring" = xdisable; then
9225             if test $wxUSE_LOGWINDOW = no; then
9226               result=yes
9227             else
9228               result=no
9229             fi
9230           else
9231             result=$wxUSE_LOGWINDOW
9232           fi
9233
9234           { echo "$as_me:$LINENO: result: $result" >&5
9235 echo "${ECHO_T}$result" >&6; }
9236
9237
9238           enablestring=
9239           defaultval=$wxUSE_ALL_FEATURES
9240           if test -z "$defaultval"; then
9241               if test x"$enablestring" = xdisable; then
9242                   defaultval=yes
9243               else
9244                   defaultval=no
9245               fi
9246           fi
9247
9248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9249 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9250           # Check whether --enable-logdialog was given.
9251 if test "${enable_logdialog+set}" = set; then
9252   enableval=$enable_logdialog;
9253                           if test "$enableval" = yes; then
9254                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9255                           else
9256                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9257                           fi
9258
9259 else
9260
9261                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9262
9263 fi
9264
9265
9266           eval "$wx_cv_use_logdialog"
9267
9268           if test x"$enablestring" = xdisable; then
9269             if test $wxUSE_LOGDIALOG = no; then
9270               result=yes
9271             else
9272               result=no
9273             fi
9274           else
9275             result=$wxUSE_LOGDIALOG
9276           fi
9277
9278           { echo "$as_me:$LINENO: result: $result" >&5
9279 echo "${ECHO_T}$result" >&6; }
9280
9281
9282           enablestring=
9283           defaultval=$wxUSE_ALL_FEATURES
9284           if test -z "$defaultval"; then
9285               if test x"$enablestring" = xdisable; then
9286                   defaultval=yes
9287               else
9288                   defaultval=no
9289               fi
9290           fi
9291
9292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9293 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9294           # Check whether --enable-mdi was given.
9295 if test "${enable_mdi+set}" = set; then
9296   enableval=$enable_mdi;
9297                           if test "$enableval" = yes; then
9298                             wx_cv_use_mdi='wxUSE_MDI=yes'
9299                           else
9300                             wx_cv_use_mdi='wxUSE_MDI=no'
9301                           fi
9302
9303 else
9304
9305                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9306
9307 fi
9308
9309
9310           eval "$wx_cv_use_mdi"
9311
9312           if test x"$enablestring" = xdisable; then
9313             if test $wxUSE_MDI = no; then
9314               result=yes
9315             else
9316               result=no
9317             fi
9318           else
9319             result=$wxUSE_MDI
9320           fi
9321
9322           { echo "$as_me:$LINENO: result: $result" >&5
9323 echo "${ECHO_T}$result" >&6; }
9324
9325
9326           enablestring=
9327           defaultval=$wxUSE_ALL_FEATURES
9328           if test -z "$defaultval"; then
9329               if test x"$enablestring" = xdisable; then
9330                   defaultval=yes
9331               else
9332                   defaultval=no
9333               fi
9334           fi
9335
9336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9337 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9338           # Check whether --enable-mdidoc was given.
9339 if test "${enable_mdidoc+set}" = set; then
9340   enableval=$enable_mdidoc;
9341                           if test "$enableval" = yes; then
9342                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9343                           else
9344                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9345                           fi
9346
9347 else
9348
9349                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9350
9351 fi
9352
9353
9354           eval "$wx_cv_use_mdidoc"
9355
9356           if test x"$enablestring" = xdisable; then
9357             if test $wxUSE_MDI_ARCHITECTURE = no; then
9358               result=yes
9359             else
9360               result=no
9361             fi
9362           else
9363             result=$wxUSE_MDI_ARCHITECTURE
9364           fi
9365
9366           { echo "$as_me:$LINENO: result: $result" >&5
9367 echo "${ECHO_T}$result" >&6; }
9368
9369
9370           enablestring=
9371           defaultval=$wxUSE_ALL_FEATURES
9372           if test -z "$defaultval"; then
9373               if test x"$enablestring" = xdisable; then
9374                   defaultval=yes
9375               else
9376                   defaultval=no
9377               fi
9378           fi
9379
9380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9381 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9382           # Check whether --enable-mediactrl was given.
9383 if test "${enable_mediactrl+set}" = set; then
9384   enableval=$enable_mediactrl;
9385                           if test "$enableval" = yes; then
9386                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9387                           else
9388                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9389                           fi
9390
9391 else
9392
9393                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9394
9395 fi
9396
9397
9398           eval "$wx_cv_use_mediactrl"
9399
9400           if test x"$enablestring" = xdisable; then
9401             if test $wxUSE_MEDIACTRL = no; then
9402               result=yes
9403             else
9404               result=no
9405             fi
9406           else
9407             result=$wxUSE_MEDIACTRL
9408           fi
9409
9410           { echo "$as_me:$LINENO: result: $result" >&5
9411 echo "${ECHO_T}$result" >&6; }
9412
9413
9414           enablestring=
9415           defaultval=$wxUSE_ALL_FEATURES
9416           if test -z "$defaultval"; then
9417               if test x"$enablestring" = xdisable; then
9418                   defaultval=yes
9419               else
9420                   defaultval=no
9421               fi
9422           fi
9423
9424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9425 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9426           # Check whether --enable-gstreamer8 was given.
9427 if test "${enable_gstreamer8+set}" = set; then
9428   enableval=$enable_gstreamer8;
9429                           if test "$enableval" = yes; then
9430                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9431                           else
9432                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9433                           fi
9434
9435 else
9436
9437                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9438
9439 fi
9440
9441
9442           eval "$wx_cv_use_gstreamer8"
9443
9444           if test x"$enablestring" = xdisable; then
9445             if test $wxUSE_GSTREAMER8 = no; then
9446               result=yes
9447             else
9448               result=no
9449             fi
9450           else
9451             result=$wxUSE_GSTREAMER8
9452           fi
9453
9454           { echo "$as_me:$LINENO: result: $result" >&5
9455 echo "${ECHO_T}$result" >&6; }
9456
9457
9458           enablestring=
9459           defaultval=$wxUSE_ALL_FEATURES
9460           if test -z "$defaultval"; then
9461               if test x"$enablestring" = xdisable; then
9462                   defaultval=yes
9463               else
9464                   defaultval=no
9465               fi
9466           fi
9467
9468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9469 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9470           # Check whether --enable-richtext was given.
9471 if test "${enable_richtext+set}" = set; then
9472   enableval=$enable_richtext;
9473                           if test "$enableval" = yes; then
9474                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9475                           else
9476                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9477                           fi
9478
9479 else
9480
9481                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9482
9483 fi
9484
9485
9486           eval "$wx_cv_use_richtext"
9487
9488           if test x"$enablestring" = xdisable; then
9489             if test $wxUSE_RICHTEXT = no; then
9490               result=yes
9491             else
9492               result=no
9493             fi
9494           else
9495             result=$wxUSE_RICHTEXT
9496           fi
9497
9498           { echo "$as_me:$LINENO: result: $result" >&5
9499 echo "${ECHO_T}$result" >&6; }
9500
9501
9502           enablestring=
9503           defaultval=$wxUSE_ALL_FEATURES
9504           if test -z "$defaultval"; then
9505               if test x"$enablestring" = xdisable; then
9506                   defaultval=yes
9507               else
9508                   defaultval=no
9509               fi
9510           fi
9511
9512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9513 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9514           # Check whether --enable-postscript was given.
9515 if test "${enable_postscript+set}" = set; then
9516   enableval=$enable_postscript;
9517                           if test "$enableval" = yes; then
9518                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9519                           else
9520                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9521                           fi
9522
9523 else
9524
9525                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9526
9527 fi
9528
9529
9530           eval "$wx_cv_use_postscript"
9531
9532           if test x"$enablestring" = xdisable; then
9533             if test $wxUSE_POSTSCRIPT = no; then
9534               result=yes
9535             else
9536               result=no
9537             fi
9538           else
9539             result=$wxUSE_POSTSCRIPT
9540           fi
9541
9542           { echo "$as_me:$LINENO: result: $result" >&5
9543 echo "${ECHO_T}$result" >&6; }
9544
9545
9546           enablestring=
9547           defaultval=$wxUSE_ALL_FEATURES
9548           if test -z "$defaultval"; then
9549               if test x"$enablestring" = xdisable; then
9550                   defaultval=yes
9551               else
9552                   defaultval=no
9553               fi
9554           fi
9555
9556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9557 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9558           # Check whether --enable-printarch was given.
9559 if test "${enable_printarch+set}" = set; then
9560   enableval=$enable_printarch;
9561                           if test "$enableval" = yes; then
9562                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9563                           else
9564                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9565                           fi
9566
9567 else
9568
9569                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9570
9571 fi
9572
9573
9574           eval "$wx_cv_use_printarch"
9575
9576           if test x"$enablestring" = xdisable; then
9577             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9578               result=yes
9579             else
9580               result=no
9581             fi
9582           else
9583             result=$wxUSE_PRINTING_ARCHITECTURE
9584           fi
9585
9586           { echo "$as_me:$LINENO: result: $result" >&5
9587 echo "${ECHO_T}$result" >&6; }
9588
9589
9590           enablestring=
9591           defaultval=$wxUSE_ALL_FEATURES
9592           if test -z "$defaultval"; then
9593               if test x"$enablestring" = xdisable; then
9594                   defaultval=yes
9595               else
9596                   defaultval=no
9597               fi
9598           fi
9599
9600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9601 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9602           # Check whether --enable-svg was given.
9603 if test "${enable_svg+set}" = set; then
9604   enableval=$enable_svg;
9605                           if test "$enableval" = yes; then
9606                             wx_cv_use_svg='wxUSE_SVG=yes'
9607                           else
9608                             wx_cv_use_svg='wxUSE_SVG=no'
9609                           fi
9610
9611 else
9612
9613                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9614
9615 fi
9616
9617
9618           eval "$wx_cv_use_svg"
9619
9620           if test x"$enablestring" = xdisable; then
9621             if test $wxUSE_SVG = no; then
9622               result=yes
9623             else
9624               result=no
9625             fi
9626           else
9627             result=$wxUSE_SVG
9628           fi
9629
9630           { echo "$as_me:$LINENO: result: $result" >&5
9631 echo "${ECHO_T}$result" >&6; }
9632
9633
9634           enablestring=
9635           defaultval=$wxUSE_ALL_FEATURES
9636           if test -z "$defaultval"; then
9637               if test x"$enablestring" = xdisable; then
9638                   defaultval=yes
9639               else
9640                   defaultval=no
9641               fi
9642           fi
9643
9644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9645 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9646           # Check whether --enable-webkit was given.
9647 if test "${enable_webkit+set}" = set; then
9648   enableval=$enable_webkit;
9649                           if test "$enableval" = yes; then
9650                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9651                           else
9652                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9653                           fi
9654
9655 else
9656
9657                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9658
9659 fi
9660
9661
9662           eval "$wx_cv_use_webkit"
9663
9664           if test x"$enablestring" = xdisable; then
9665             if test $wxUSE_WEBKIT = no; then
9666               result=yes
9667             else
9668               result=no
9669             fi
9670           else
9671             result=$wxUSE_WEBKIT
9672           fi
9673
9674           { echo "$as_me:$LINENO: result: $result" >&5
9675 echo "${ECHO_T}$result" >&6; }
9676
9677
9678           enablestring=
9679           defaultval=$wxUSE_ALL_FEATURES
9680           if test -z "$defaultval"; then
9681               if test x"$enablestring" = xdisable; then
9682                   defaultval=yes
9683               else
9684                   defaultval=no
9685               fi
9686           fi
9687
9688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9689 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9690           # Check whether --enable-webview was given.
9691 if test "${enable_webview+set}" = set; then
9692   enableval=$enable_webview;
9693                           if test "$enableval" = yes; then
9694                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9695                           else
9696                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9697                           fi
9698
9699 else
9700
9701                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9702
9703 fi
9704
9705
9706           eval "$wx_cv_use_webview"
9707
9708           if test x"$enablestring" = xdisable; then
9709             if test $wxUSE_WEBVIEW = no; then
9710               result=yes
9711             else
9712               result=no
9713             fi
9714           else
9715             result=$wxUSE_WEBVIEW
9716           fi
9717
9718           { echo "$as_me:$LINENO: result: $result" >&5
9719 echo "${ECHO_T}$result" >&6; }
9720
9721
9722 if test "$wxUSE_MAC" != 1; then
9723
9724           enablestring=
9725           defaultval=$wxUSE_ALL_FEATURES
9726           if test -z "$defaultval"; then
9727               if test x"$enablestring" = xdisable; then
9728                   defaultval=yes
9729               else
9730                   defaultval=no
9731               fi
9732           fi
9733
9734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9735 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9736           # Check whether --enable-graphics_ctx was given.
9737 if test "${enable_graphics_ctx+set}" = set; then
9738   enableval=$enable_graphics_ctx;
9739                           if test "$enableval" = yes; then
9740                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9741                           else
9742                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9743                           fi
9744
9745 else
9746
9747                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9748
9749 fi
9750
9751
9752           eval "$wx_cv_use_graphics_ctx"
9753
9754           if test x"$enablestring" = xdisable; then
9755             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9756               result=yes
9757             else
9758               result=no
9759             fi
9760           else
9761             result=$wxUSE_GRAPHICS_CONTEXT
9762           fi
9763
9764           { echo "$as_me:$LINENO: result: $result" >&5
9765 echo "${ECHO_T}$result" >&6; }
9766
9767 fi
9768
9769
9770
9771           enablestring=
9772           defaultval=$wxUSE_ALL_FEATURES
9773           if test -z "$defaultval"; then
9774               if test x"$enablestring" = xdisable; then
9775                   defaultval=yes
9776               else
9777                   defaultval=no
9778               fi
9779           fi
9780
9781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9782 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9783           # Check whether --enable-clipboard was given.
9784 if test "${enable_clipboard+set}" = set; then
9785   enableval=$enable_clipboard;
9786                           if test "$enableval" = yes; then
9787                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9788                           else
9789                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9790                           fi
9791
9792 else
9793
9794                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9795
9796 fi
9797
9798
9799           eval "$wx_cv_use_clipboard"
9800
9801           if test x"$enablestring" = xdisable; then
9802             if test $wxUSE_CLIPBOARD = no; then
9803               result=yes
9804             else
9805               result=no
9806             fi
9807           else
9808             result=$wxUSE_CLIPBOARD
9809           fi
9810
9811           { echo "$as_me:$LINENO: result: $result" >&5
9812 echo "${ECHO_T}$result" >&6; }
9813
9814
9815           enablestring=
9816           defaultval=$wxUSE_ALL_FEATURES
9817           if test -z "$defaultval"; then
9818               if test x"$enablestring" = xdisable; then
9819                   defaultval=yes
9820               else
9821                   defaultval=no
9822               fi
9823           fi
9824
9825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9826 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9827           # Check whether --enable-dnd was given.
9828 if test "${enable_dnd+set}" = set; then
9829   enableval=$enable_dnd;
9830                           if test "$enableval" = yes; then
9831                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9832                           else
9833                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9834                           fi
9835
9836 else
9837
9838                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9839
9840 fi
9841
9842
9843           eval "$wx_cv_use_dnd"
9844
9845           if test x"$enablestring" = xdisable; then
9846             if test $wxUSE_DRAG_AND_DROP = no; then
9847               result=yes
9848             else
9849               result=no
9850             fi
9851           else
9852             result=$wxUSE_DRAG_AND_DROP
9853           fi
9854
9855           { echo "$as_me:$LINENO: result: $result" >&5
9856 echo "${ECHO_T}$result" >&6; }
9857
9858
9859
9860 DEFAULT_wxUSE_CONTROLS=none
9861
9862           enablestring=disable
9863           defaultval=
9864           if test -z "$defaultval"; then
9865               if test x"$enablestring" = xdisable; then
9866                   defaultval=yes
9867               else
9868                   defaultval=no
9869               fi
9870           fi
9871
9872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9873 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9874           # Check whether --enable-controls was given.
9875 if test "${enable_controls+set}" = set; then
9876   enableval=$enable_controls;
9877                           if test "$enableval" = yes; then
9878                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9879                           else
9880                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9881                           fi
9882
9883 else
9884
9885                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9886
9887 fi
9888
9889
9890           eval "$wx_cv_use_controls"
9891
9892           if test x"$enablestring" = xdisable; then
9893             if test $wxUSE_CONTROLS = no; then
9894               result=yes
9895             else
9896               result=no
9897             fi
9898           else
9899             result=$wxUSE_CONTROLS
9900           fi
9901
9902           { echo "$as_me:$LINENO: result: $result" >&5
9903 echo "${ECHO_T}$result" >&6; }
9904
9905
9906 if test "$wxUSE_CONTROLS" = "no"; then
9907     DEFAULT_wxUSE_ACCEL=no
9908     DEFAULT_wxUSE_ANIMATIONCTRL=no
9909     DEFAULT_wxUSE_BANNERWINDOW=no
9910     DEFAULT_wxUSE_BMPBUTTON=no
9911     DEFAULT_wxUSE_BUTTON=no
9912     DEFAULT_wxUSE_CALCTRL=no
9913     DEFAULT_wxUSE_CARET=no
9914     DEFAULT_wxUSE_CHECKBOX=no
9915     DEFAULT_wxUSE_CHECKLISTBOX=no
9916     DEFAULT_wxUSE_CHOICE=no
9917     DEFAULT_wxUSE_CHOICEBOOK=no
9918     DEFAULT_wxUSE_COLLPANE=no
9919     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9920     DEFAULT_wxUSE_COMBOBOX=no
9921     DEFAULT_wxUSE_COMBOBOX=no
9922     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9923     DEFAULT_wxUSE_DATAVIEWCTRL=no
9924     DEFAULT_wxUSE_DATEPICKCTRL=no
9925     DEFAULT_wxUSE_DETECT_SM=no
9926     DEFAULT_wxUSE_DIRPICKERCTRL=no
9927     DEFAULT_wxUSE_DISPLAY=no
9928     DEFAULT_wxUSE_FILECTRL=no
9929     DEFAULT_wxUSE_FILEPICKERCTRL=no
9930     DEFAULT_wxUSE_FONTPICKERCTRL=no
9931     DEFAULT_wxUSE_GAUGE=no
9932     DEFAULT_wxUSE_GRID=no
9933     DEFAULT_wxUSE_HEADERCTRL=no
9934     DEFAULT_wxUSE_HYPERLINKCTRL=no
9935     DEFAULT_wxUSE_IMAGLIST=no
9936     DEFAULT_wxUSE_LISTBOOK=no
9937     DEFAULT_wxUSE_LISTBOX=no
9938     DEFAULT_wxUSE_LISTCTRL=no
9939     DEFAULT_wxUSE_MARKUP=no
9940     DEFAULT_wxUSE_NOTEBOOK=no
9941     DEFAULT_wxUSE_POPUPWIN=no
9942     DEFAULT_wxUSE_RADIOBOX=no
9943     DEFAULT_wxUSE_RADIOBTN=no
9944     DEFAULT_wxUSE_RICHMSGDLG=no
9945     DEFAULT_wxUSE_RICHTOOLTIP=no
9946     DEFAULT_wxUSE_REARRANGECTRL=no
9947     DEFAULT_wxUSE_SASH=no
9948     DEFAULT_wxUSE_SCROLLBAR=no
9949     DEFAULT_wxUSE_SEARCHCTRL=no
9950     DEFAULT_wxUSE_SLIDER=no
9951     DEFAULT_wxUSE_SPINBTN=no
9952     DEFAULT_wxUSE_SPINCTRL=no
9953     DEFAULT_wxUSE_SPLITTER=no
9954     DEFAULT_wxUSE_STATBMP=no
9955     DEFAULT_wxUSE_STATBOX=no
9956     DEFAULT_wxUSE_STATLINE=no
9957     DEFAULT_wxUSE_STATUSBAR=no
9958     DEFAULT_wxUSE_TIMEPICKCTRL=no
9959     DEFAULT_wxUSE_TIPWINDOW=no
9960     DEFAULT_wxUSE_TOGGLEBTN=no
9961     DEFAULT_wxUSE_TOOLBAR=no
9962     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9963     DEFAULT_wxUSE_TOOLBOOK=no
9964     DEFAULT_wxUSE_TOOLTIPS=no
9965     DEFAULT_wxUSE_TREEBOOK=no
9966     DEFAULT_wxUSE_TREECTRL=no
9967     DEFAULT_wxUSE_TREELISTCTRL=no
9968 fi
9969
9970
9971           enablestring=
9972           defaultval=$wxUSE_ALL_FEATURES
9973           if test -z "$defaultval"; then
9974               if test x"$enablestring" = xdisable; then
9975                   defaultval=yes
9976               else
9977                   defaultval=no
9978               fi
9979           fi
9980
9981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9982 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9983           # Check whether --enable-markup was given.
9984 if test "${enable_markup+set}" = set; then
9985   enableval=$enable_markup;
9986                           if test "$enableval" = yes; then
9987                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9988                           else
9989                             wx_cv_use_markup='wxUSE_MARKUP=no'
9990                           fi
9991
9992 else
9993
9994                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9995
9996 fi
9997
9998
9999           eval "$wx_cv_use_markup"
10000
10001           if test x"$enablestring" = xdisable; then
10002             if test $wxUSE_MARKUP = no; then
10003               result=yes
10004             else
10005               result=no
10006             fi
10007           else
10008             result=$wxUSE_MARKUP
10009           fi
10010
10011           { echo "$as_me:$LINENO: result: $result" >&5
10012 echo "${ECHO_T}$result" >&6; }
10013
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10028           # Check whether --enable-accel was given.
10029 if test "${enable_accel+set}" = set; then
10030   enableval=$enable_accel;
10031                           if test "$enableval" = yes; then
10032                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10033                           else
10034                             wx_cv_use_accel='wxUSE_ACCEL=no'
10035                           fi
10036
10037 else
10038
10039                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_accel"
10045
10046           if test x"$enablestring" = xdisable; then
10047             if test $wxUSE_ACCEL = no; then
10048               result=yes
10049             else
10050               result=no
10051             fi
10052           else
10053             result=$wxUSE_ACCEL
10054           fi
10055
10056           { echo "$as_me:$LINENO: result: $result" >&5
10057 echo "${ECHO_T}$result" >&6; }
10058
10059
10060           enablestring=
10061           defaultval=$wxUSE_ALL_FEATURES
10062           if test -z "$defaultval"; then
10063               if test x"$enablestring" = xdisable; then
10064                   defaultval=yes
10065               else
10066                   defaultval=no
10067               fi
10068           fi
10069
10070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10071 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10072           # Check whether --enable-animatectrl was given.
10073 if test "${enable_animatectrl+set}" = set; then
10074   enableval=$enable_animatectrl;
10075                           if test "$enableval" = yes; then
10076                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10077                           else
10078                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10079                           fi
10080
10081 else
10082
10083                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_animatectrl"
10089
10090           if test x"$enablestring" = xdisable; then
10091             if test $wxUSE_ANIMATIONCTRL = no; then
10092               result=yes
10093             else
10094               result=no
10095             fi
10096           else
10097             result=$wxUSE_ANIMATIONCTRL
10098           fi
10099
10100           { echo "$as_me:$LINENO: result: $result" >&5
10101 echo "${ECHO_T}$result" >&6; }
10102
10103
10104           enablestring=
10105           defaultval=$wxUSE_ALL_FEATURES
10106           if test -z "$defaultval"; then
10107               if test x"$enablestring" = xdisable; then
10108                   defaultval=yes
10109               else
10110                   defaultval=no
10111               fi
10112           fi
10113
10114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10115 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10116           # Check whether --enable-bannerwindow was given.
10117 if test "${enable_bannerwindow+set}" = set; then
10118   enableval=$enable_bannerwindow;
10119                           if test "$enableval" = yes; then
10120                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10121                           else
10122                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10123                           fi
10124
10125 else
10126
10127                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_bannerwindow"
10133
10134           if test x"$enablestring" = xdisable; then
10135             if test $wxUSE_BANNERWINDOW = no; then
10136               result=yes
10137             else
10138               result=no
10139             fi
10140           else
10141             result=$wxUSE_BANNERWINDOW
10142           fi
10143
10144           { echo "$as_me:$LINENO: result: $result" >&5
10145 echo "${ECHO_T}$result" >&6; }
10146
10147
10148           enablestring=
10149           defaultval=$wxUSE_ALL_FEATURES
10150           if test -z "$defaultval"; then
10151               if test x"$enablestring" = xdisable; then
10152                   defaultval=yes
10153               else
10154                   defaultval=no
10155               fi
10156           fi
10157
10158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10159 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10160           # Check whether --enable-artstd was given.
10161 if test "${enable_artstd+set}" = set; then
10162   enableval=$enable_artstd;
10163                           if test "$enableval" = yes; then
10164                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10165                           else
10166                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10167                           fi
10168
10169 else
10170
10171                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10172
10173 fi
10174
10175
10176           eval "$wx_cv_use_artstd"
10177
10178           if test x"$enablestring" = xdisable; then
10179             if test $wxUSE_ARTPROVIDER_STD = no; then
10180               result=yes
10181             else
10182               result=no
10183             fi
10184           else
10185             result=$wxUSE_ARTPROVIDER_STD
10186           fi
10187
10188           { echo "$as_me:$LINENO: result: $result" >&5
10189 echo "${ECHO_T}$result" >&6; }
10190
10191
10192           enablestring=
10193           defaultval=$wxUSE_ALL_FEATURES
10194           if test -z "$defaultval"; then
10195               if test x"$enablestring" = xdisable; then
10196                   defaultval=yes
10197               else
10198                   defaultval=no
10199               fi
10200           fi
10201
10202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10203 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10204           # Check whether --enable-arttango was given.
10205 if test "${enable_arttango+set}" = set; then
10206   enableval=$enable_arttango;
10207                           if test "$enableval" = yes; then
10208                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10209                           else
10210                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10211                           fi
10212
10213 else
10214
10215                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10216
10217 fi
10218
10219
10220           eval "$wx_cv_use_arttango"
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10224               result=yes
10225             else
10226               result=no
10227             fi
10228           else
10229             result=$wxUSE_ARTPROVIDER_TANGO
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236           enablestring=
10237           defaultval=$wxUSE_ALL_FEATURES
10238           if test -z "$defaultval"; then
10239               if test x"$enablestring" = xdisable; then
10240                   defaultval=yes
10241               else
10242                   defaultval=no
10243               fi
10244           fi
10245
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10248           # Check whether --enable-bmpbutton was given.
10249 if test "${enable_bmpbutton+set}" = set; then
10250   enableval=$enable_bmpbutton;
10251                           if test "$enableval" = yes; then
10252                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10253                           else
10254                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10255                           fi
10256
10257 else
10258
10259                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10260
10261 fi
10262
10263
10264           eval "$wx_cv_use_bmpbutton"
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_BMPBUTTON = no; then
10268               result=yes
10269             else
10270               result=no
10271             fi
10272           else
10273             result=$wxUSE_BMPBUTTON
10274           fi
10275
10276           { echo "$as_me:$LINENO: result: $result" >&5
10277 echo "${ECHO_T}$result" >&6; }
10278
10279
10280           enablestring=
10281           defaultval=$wxUSE_ALL_FEATURES
10282           if test -z "$defaultval"; then
10283               if test x"$enablestring" = xdisable; then
10284                   defaultval=yes
10285               else
10286                   defaultval=no
10287               fi
10288           fi
10289
10290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10292           # Check whether --enable-bmpcombobox was given.
10293 if test "${enable_bmpcombobox+set}" = set; then
10294   enableval=$enable_bmpcombobox;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10297                           else
10298                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10299                           fi
10300
10301 else
10302
10303                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10304
10305 fi
10306
10307
10308           eval "$wx_cv_use_bmpcombobox"
10309
10310           if test x"$enablestring" = xdisable; then
10311             if test $wxUSE_BITMAPCOMBOBOX = no; then
10312               result=yes
10313             else
10314               result=no
10315             fi
10316           else
10317             result=$wxUSE_BITMAPCOMBOBOX
10318           fi
10319
10320           { echo "$as_me:$LINENO: result: $result" >&5
10321 echo "${ECHO_T}$result" >&6; }
10322
10323
10324           enablestring=
10325           defaultval=$wxUSE_ALL_FEATURES
10326           if test -z "$defaultval"; then
10327               if test x"$enablestring" = xdisable; then
10328                   defaultval=yes
10329               else
10330                   defaultval=no
10331               fi
10332           fi
10333
10334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10335 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10336           # Check whether --enable-button was given.
10337 if test "${enable_button+set}" = set; then
10338   enableval=$enable_button;
10339                           if test "$enableval" = yes; then
10340                             wx_cv_use_button='wxUSE_BUTTON=yes'
10341                           else
10342                             wx_cv_use_button='wxUSE_BUTTON=no'
10343                           fi
10344
10345 else
10346
10347                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10348
10349 fi
10350
10351
10352           eval "$wx_cv_use_button"
10353
10354           if test x"$enablestring" = xdisable; then
10355             if test $wxUSE_BUTTON = no; then
10356               result=yes
10357             else
10358               result=no
10359             fi
10360           else
10361             result=$wxUSE_BUTTON
10362           fi
10363
10364           { echo "$as_me:$LINENO: result: $result" >&5
10365 echo "${ECHO_T}$result" >&6; }
10366
10367
10368           enablestring=
10369           defaultval=$wxUSE_ALL_FEATURES
10370           if test -z "$defaultval"; then
10371               if test x"$enablestring" = xdisable; then
10372                   defaultval=yes
10373               else
10374                   defaultval=no
10375               fi
10376           fi
10377
10378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10379 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10380           # Check whether --enable-calendar was given.
10381 if test "${enable_calendar+set}" = set; then
10382   enableval=$enable_calendar;
10383                           if test "$enableval" = yes; then
10384                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10385                           else
10386                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10387                           fi
10388
10389 else
10390
10391                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10392
10393 fi
10394
10395
10396           eval "$wx_cv_use_calendar"
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_CALCTRL = no; then
10400               result=yes
10401             else
10402               result=no
10403             fi
10404           else
10405             result=$wxUSE_CALCTRL
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10424           # Check whether --enable-caret was given.
10425 if test "${enable_caret+set}" = set; then
10426   enableval=$enable_caret;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_caret='wxUSE_CARET=yes'
10429                           else
10430                             wx_cv_use_caret='wxUSE_CARET=no'
10431                           fi
10432
10433 else
10434
10435                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10436
10437 fi
10438
10439
10440           eval "$wx_cv_use_caret"
10441
10442           if test x"$enablestring" = xdisable; then
10443             if test $wxUSE_CARET = no; then
10444               result=yes
10445             else
10446               result=no
10447             fi
10448           else
10449             result=$wxUSE_CARET
10450           fi
10451
10452           { echo "$as_me:$LINENO: result: $result" >&5
10453 echo "${ECHO_T}$result" >&6; }
10454
10455
10456           enablestring=
10457           defaultval=$wxUSE_ALL_FEATURES
10458           if test -z "$defaultval"; then
10459               if test x"$enablestring" = xdisable; then
10460                   defaultval=yes
10461               else
10462                   defaultval=no
10463               fi
10464           fi
10465
10466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10467 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10468           # Check whether --enable-checkbox was given.
10469 if test "${enable_checkbox+set}" = set; then
10470   enableval=$enable_checkbox;
10471                           if test "$enableval" = yes; then
10472                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10473                           else
10474                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10475                           fi
10476
10477 else
10478
10479                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10480
10481 fi
10482
10483
10484           eval "$wx_cv_use_checkbox"
10485
10486           if test x"$enablestring" = xdisable; then
10487             if test $wxUSE_CHECKBOX = no; then
10488               result=yes
10489             else
10490               result=no
10491             fi
10492           else
10493             result=$wxUSE_CHECKBOX
10494           fi
10495
10496           { echo "$as_me:$LINENO: result: $result" >&5
10497 echo "${ECHO_T}$result" >&6; }
10498
10499
10500           enablestring=
10501           defaultval=$wxUSE_ALL_FEATURES
10502           if test -z "$defaultval"; then
10503               if test x"$enablestring" = xdisable; then
10504                   defaultval=yes
10505               else
10506                   defaultval=no
10507               fi
10508           fi
10509
10510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10511 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10512           # Check whether --enable-checklst was given.
10513 if test "${enable_checklst+set}" = set; then
10514   enableval=$enable_checklst;
10515                           if test "$enableval" = yes; then
10516                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10517                           else
10518                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10519                           fi
10520
10521 else
10522
10523                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10524
10525 fi
10526
10527
10528           eval "$wx_cv_use_checklst"
10529
10530           if test x"$enablestring" = xdisable; then
10531             if test $wxUSE_CHECKLST = no; then
10532               result=yes
10533             else
10534               result=no
10535             fi
10536           else
10537             result=$wxUSE_CHECKLST
10538           fi
10539
10540           { echo "$as_me:$LINENO: result: $result" >&5
10541 echo "${ECHO_T}$result" >&6; }
10542
10543
10544           enablestring=
10545           defaultval=$wxUSE_ALL_FEATURES
10546           if test -z "$defaultval"; then
10547               if test x"$enablestring" = xdisable; then
10548                   defaultval=yes
10549               else
10550                   defaultval=no
10551               fi
10552           fi
10553
10554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10555 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10556           # Check whether --enable-choice was given.
10557 if test "${enable_choice+set}" = set; then
10558   enableval=$enable_choice;
10559                           if test "$enableval" = yes; then
10560                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10561                           else
10562                             wx_cv_use_choice='wxUSE_CHOICE=no'
10563                           fi
10564
10565 else
10566
10567                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10568
10569 fi
10570
10571
10572           eval "$wx_cv_use_choice"
10573
10574           if test x"$enablestring" = xdisable; then
10575             if test $wxUSE_CHOICE = no; then
10576               result=yes
10577             else
10578               result=no
10579             fi
10580           else
10581             result=$wxUSE_CHOICE
10582           fi
10583
10584           { echo "$as_me:$LINENO: result: $result" >&5
10585 echo "${ECHO_T}$result" >&6; }
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10600           # Check whether --enable-choicebook was given.
10601 if test "${enable_choicebook+set}" = set; then
10602   enableval=$enable_choicebook;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10605                           else
10606                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10607                           fi
10608
10609 else
10610
10611                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10612
10613 fi
10614
10615
10616           eval "$wx_cv_use_choicebook"
10617
10618           if test x"$enablestring" = xdisable; then
10619             if test $wxUSE_CHOICEBOOK = no; then
10620               result=yes
10621             else
10622               result=no
10623             fi
10624           else
10625             result=$wxUSE_CHOICEBOOK
10626           fi
10627
10628           { echo "$as_me:$LINENO: result: $result" >&5
10629 echo "${ECHO_T}$result" >&6; }
10630
10631
10632           enablestring=
10633           defaultval=$wxUSE_ALL_FEATURES
10634           if test -z "$defaultval"; then
10635               if test x"$enablestring" = xdisable; then
10636                   defaultval=yes
10637               else
10638                   defaultval=no
10639               fi
10640           fi
10641
10642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10643 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10644           # Check whether --enable-collpane was given.
10645 if test "${enable_collpane+set}" = set; then
10646   enableval=$enable_collpane;
10647                           if test "$enableval" = yes; then
10648                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10649                           else
10650                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10651                           fi
10652
10653 else
10654
10655                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10656
10657 fi
10658
10659
10660           eval "$wx_cv_use_collpane"
10661
10662           if test x"$enablestring" = xdisable; then
10663             if test $wxUSE_COLLPANE = no; then
10664               result=yes
10665             else
10666               result=no
10667             fi
10668           else
10669             result=$wxUSE_COLLPANE
10670           fi
10671
10672           { echo "$as_me:$LINENO: result: $result" >&5
10673 echo "${ECHO_T}$result" >&6; }
10674
10675
10676           enablestring=
10677           defaultval=$wxUSE_ALL_FEATURES
10678           if test -z "$defaultval"; then
10679               if test x"$enablestring" = xdisable; then
10680                   defaultval=yes
10681               else
10682                   defaultval=no
10683               fi
10684           fi
10685
10686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10687 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10688           # Check whether --enable-colourpicker was given.
10689 if test "${enable_colourpicker+set}" = set; then
10690   enableval=$enable_colourpicker;
10691                           if test "$enableval" = yes; then
10692                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10693                           else
10694                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10695                           fi
10696
10697 else
10698
10699                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10700
10701 fi
10702
10703
10704           eval "$wx_cv_use_colourpicker"
10705
10706           if test x"$enablestring" = xdisable; then
10707             if test $wxUSE_COLOURPICKERCTRL = no; then
10708               result=yes
10709             else
10710               result=no
10711             fi
10712           else
10713             result=$wxUSE_COLOURPICKERCTRL
10714           fi
10715
10716           { echo "$as_me:$LINENO: result: $result" >&5
10717 echo "${ECHO_T}$result" >&6; }
10718
10719
10720           enablestring=
10721           defaultval=$wxUSE_ALL_FEATURES
10722           if test -z "$defaultval"; then
10723               if test x"$enablestring" = xdisable; then
10724                   defaultval=yes
10725               else
10726                   defaultval=no
10727               fi
10728           fi
10729
10730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10731 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10732           # Check whether --enable-combobox was given.
10733 if test "${enable_combobox+set}" = set; then
10734   enableval=$enable_combobox;
10735                           if test "$enableval" = yes; then
10736                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10737                           else
10738                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10739                           fi
10740
10741 else
10742
10743                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10744
10745 fi
10746
10747
10748           eval "$wx_cv_use_combobox"
10749
10750           if test x"$enablestring" = xdisable; then
10751             if test $wxUSE_COMBOBOX = no; then
10752               result=yes
10753             else
10754               result=no
10755             fi
10756           else
10757             result=$wxUSE_COMBOBOX
10758           fi
10759
10760           { echo "$as_me:$LINENO: result: $result" >&5
10761 echo "${ECHO_T}$result" >&6; }
10762
10763
10764           enablestring=
10765           defaultval=$wxUSE_ALL_FEATURES
10766           if test -z "$defaultval"; then
10767               if test x"$enablestring" = xdisable; then
10768                   defaultval=yes
10769               else
10770                   defaultval=no
10771               fi
10772           fi
10773
10774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10775 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10776           # Check whether --enable-comboctrl was given.
10777 if test "${enable_comboctrl+set}" = set; then
10778   enableval=$enable_comboctrl;
10779                           if test "$enableval" = yes; then
10780                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10781                           else
10782                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10783                           fi
10784
10785 else
10786
10787                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10788
10789 fi
10790
10791
10792           eval "$wx_cv_use_comboctrl"
10793
10794           if test x"$enablestring" = xdisable; then
10795             if test $wxUSE_COMBOCTRL = no; then
10796               result=yes
10797             else
10798               result=no
10799             fi
10800           else
10801             result=$wxUSE_COMBOCTRL
10802           fi
10803
10804           { echo "$as_me:$LINENO: result: $result" >&5
10805 echo "${ECHO_T}$result" >&6; }
10806
10807
10808           enablestring=
10809           defaultval=$wxUSE_ALL_FEATURES
10810           if test -z "$defaultval"; then
10811               if test x"$enablestring" = xdisable; then
10812                   defaultval=yes
10813               else
10814                   defaultval=no
10815               fi
10816           fi
10817
10818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10819 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10820           # Check whether --enable-commandlinkbutton was given.
10821 if test "${enable_commandlinkbutton+set}" = set; then
10822   enableval=$enable_commandlinkbutton;
10823                           if test "$enableval" = yes; then
10824                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10825                           else
10826                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10827                           fi
10828
10829 else
10830
10831                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10832
10833 fi
10834
10835
10836           eval "$wx_cv_use_commandlinkbutton"
10837
10838           if test x"$enablestring" = xdisable; then
10839             if test $wxUSE_COMMANDLINKBUTTON = no; then
10840               result=yes
10841             else
10842               result=no
10843             fi
10844           else
10845             result=$wxUSE_COMMANDLINKBUTTON
10846           fi
10847
10848           { echo "$as_me:$LINENO: result: $result" >&5
10849 echo "${ECHO_T}$result" >&6; }
10850
10851
10852           enablestring=
10853           defaultval=$wxUSE_ALL_FEATURES
10854           if test -z "$defaultval"; then
10855               if test x"$enablestring" = xdisable; then
10856                   defaultval=yes
10857               else
10858                   defaultval=no
10859               fi
10860           fi
10861
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10864           # Check whether --enable-dataviewctrl was given.
10865 if test "${enable_dataviewctrl+set}" = set; then
10866   enableval=$enable_dataviewctrl;
10867                           if test "$enableval" = yes; then
10868                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10869                           else
10870                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10871                           fi
10872
10873 else
10874
10875                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10876
10877 fi
10878
10879
10880           eval "$wx_cv_use_dataviewctrl"
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_DATAVIEWCTRL = no; then
10884               result=yes
10885             else
10886               result=no
10887             fi
10888           else
10889             result=$wxUSE_DATAVIEWCTRL
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896           enablestring=
10897           defaultval=$wxUSE_ALL_FEATURES
10898           if test -z "$defaultval"; then
10899               if test x"$enablestring" = xdisable; then
10900                   defaultval=yes
10901               else
10902                   defaultval=no
10903               fi
10904           fi
10905
10906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10907 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10908           # Check whether --enable-datepick was given.
10909 if test "${enable_datepick+set}" = set; then
10910   enableval=$enable_datepick;
10911                           if test "$enableval" = yes; then
10912                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10913                           else
10914                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10915                           fi
10916
10917 else
10918
10919                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10920
10921 fi
10922
10923
10924           eval "$wx_cv_use_datepick"
10925
10926           if test x"$enablestring" = xdisable; then
10927             if test $wxUSE_DATEPICKCTRL = no; then
10928               result=yes
10929             else
10930               result=no
10931             fi
10932           else
10933             result=$wxUSE_DATEPICKCTRL
10934           fi
10935
10936           { echo "$as_me:$LINENO: result: $result" >&5
10937 echo "${ECHO_T}$result" >&6; }
10938
10939
10940           enablestring=
10941           defaultval=$wxUSE_ALL_FEATURES
10942           if test -z "$defaultval"; then
10943               if test x"$enablestring" = xdisable; then
10944                   defaultval=yes
10945               else
10946                   defaultval=no
10947               fi
10948           fi
10949
10950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10951 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10952           # Check whether --enable-detect_sm was given.
10953 if test "${enable_detect_sm+set}" = set; then
10954   enableval=$enable_detect_sm;
10955                           if test "$enableval" = yes; then
10956                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10957                           else
10958                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10959                           fi
10960
10961 else
10962
10963                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_detect_sm"
10969
10970           if test x"$enablestring" = xdisable; then
10971             if test $wxUSE_DETECT_SM = no; then
10972               result=yes
10973             else
10974               result=no
10975             fi
10976           else
10977             result=$wxUSE_DETECT_SM
10978           fi
10979
10980           { echo "$as_me:$LINENO: result: $result" >&5
10981 echo "${ECHO_T}$result" >&6; }
10982
10983
10984           enablestring=
10985           defaultval=$wxUSE_ALL_FEATURES
10986           if test -z "$defaultval"; then
10987               if test x"$enablestring" = xdisable; then
10988                   defaultval=yes
10989               else
10990                   defaultval=no
10991               fi
10992           fi
10993
10994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10996           # Check whether --enable-dirpicker was given.
10997 if test "${enable_dirpicker+set}" = set; then
10998   enableval=$enable_dirpicker;
10999                           if test "$enableval" = yes; then
11000                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11001                           else
11002                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11003                           fi
11004
11005 else
11006
11007                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11008
11009 fi
11010
11011
11012           eval "$wx_cv_use_dirpicker"
11013
11014           if test x"$enablestring" = xdisable; then
11015             if test $wxUSE_DIRPICKERCTRL = no; then
11016               result=yes
11017             else
11018               result=no
11019             fi
11020           else
11021             result=$wxUSE_DIRPICKERCTRL
11022           fi
11023
11024           { echo "$as_me:$LINENO: result: $result" >&5
11025 echo "${ECHO_T}$result" >&6; }
11026
11027
11028           enablestring=
11029           defaultval=$wxUSE_ALL_FEATURES
11030           if test -z "$defaultval"; then
11031               if test x"$enablestring" = xdisable; then
11032                   defaultval=yes
11033               else
11034                   defaultval=no
11035               fi
11036           fi
11037
11038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11039 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11040           # Check whether --enable-display was given.
11041 if test "${enable_display+set}" = set; then
11042   enableval=$enable_display;
11043                           if test "$enableval" = yes; then
11044                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11045                           else
11046                             wx_cv_use_display='wxUSE_DISPLAY=no'
11047                           fi
11048
11049 else
11050
11051                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11052
11053 fi
11054
11055
11056           eval "$wx_cv_use_display"
11057
11058           if test x"$enablestring" = xdisable; then
11059             if test $wxUSE_DISPLAY = no; then
11060               result=yes
11061             else
11062               result=no
11063             fi
11064           else
11065             result=$wxUSE_DISPLAY
11066           fi
11067
11068           { echo "$as_me:$LINENO: result: $result" >&5
11069 echo "${ECHO_T}$result" >&6; }
11070
11071
11072           enablestring=
11073           defaultval=$wxUSE_ALL_FEATURES
11074           if test -z "$defaultval"; then
11075               if test x"$enablestring" = xdisable; then
11076                   defaultval=yes
11077               else
11078                   defaultval=no
11079               fi
11080           fi
11081
11082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11083 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11084           # Check whether --enable-editablebox was given.
11085 if test "${enable_editablebox+set}" = set; then
11086   enableval=$enable_editablebox;
11087                           if test "$enableval" = yes; then
11088                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11089                           else
11090                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11091                           fi
11092
11093 else
11094
11095                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_editablebox"
11101
11102           if test x"$enablestring" = xdisable; then
11103             if test $wxUSE_EDITABLELISTBOX = no; then
11104               result=yes
11105             else
11106               result=no
11107             fi
11108           else
11109             result=$wxUSE_EDITABLELISTBOX
11110           fi
11111
11112           { echo "$as_me:$LINENO: result: $result" >&5
11113 echo "${ECHO_T}$result" >&6; }
11114
11115
11116           enablestring=
11117           defaultval=$wxUSE_ALL_FEATURES
11118           if test -z "$defaultval"; then
11119               if test x"$enablestring" = xdisable; then
11120                   defaultval=yes
11121               else
11122                   defaultval=no
11123               fi
11124           fi
11125
11126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11127 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11128           # Check whether --enable-filectrl was given.
11129 if test "${enable_filectrl+set}" = set; then
11130   enableval=$enable_filectrl;
11131                           if test "$enableval" = yes; then
11132                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11133                           else
11134                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11135                           fi
11136
11137 else
11138
11139                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11140
11141 fi
11142
11143
11144           eval "$wx_cv_use_filectrl"
11145
11146           if test x"$enablestring" = xdisable; then
11147             if test $wxUSE_FILECTRL = no; then
11148               result=yes
11149             else
11150               result=no
11151             fi
11152           else
11153             result=$wxUSE_FILECTRL
11154           fi
11155
11156           { echo "$as_me:$LINENO: result: $result" >&5
11157 echo "${ECHO_T}$result" >&6; }
11158
11159
11160           enablestring=
11161           defaultval=$wxUSE_ALL_FEATURES
11162           if test -z "$defaultval"; then
11163               if test x"$enablestring" = xdisable; then
11164                   defaultval=yes
11165               else
11166                   defaultval=no
11167               fi
11168           fi
11169
11170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11171 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11172           # Check whether --enable-filepicker was given.
11173 if test "${enable_filepicker+set}" = set; then
11174   enableval=$enable_filepicker;
11175                           if test "$enableval" = yes; then
11176                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11177                           else
11178                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11179                           fi
11180
11181 else
11182
11183                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_filepicker"
11189
11190           if test x"$enablestring" = xdisable; then
11191             if test $wxUSE_FILEPICKERCTRL = no; then
11192               result=yes
11193             else
11194               result=no
11195             fi
11196           else
11197             result=$wxUSE_FILEPICKERCTRL
11198           fi
11199
11200           { echo "$as_me:$LINENO: result: $result" >&5
11201 echo "${ECHO_T}$result" >&6; }
11202
11203
11204           enablestring=
11205           defaultval=$wxUSE_ALL_FEATURES
11206           if test -z "$defaultval"; then
11207               if test x"$enablestring" = xdisable; then
11208                   defaultval=yes
11209               else
11210                   defaultval=no
11211               fi
11212           fi
11213
11214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11215 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11216           # Check whether --enable-fontpicker was given.
11217 if test "${enable_fontpicker+set}" = set; then
11218   enableval=$enable_fontpicker;
11219                           if test "$enableval" = yes; then
11220                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11221                           else
11222                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11223                           fi
11224
11225 else
11226
11227                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11228
11229 fi
11230
11231
11232           eval "$wx_cv_use_fontpicker"
11233
11234           if test x"$enablestring" = xdisable; then
11235             if test $wxUSE_FONTPICKERCTRL = no; then
11236               result=yes
11237             else
11238               result=no
11239             fi
11240           else
11241             result=$wxUSE_FONTPICKERCTRL
11242           fi
11243
11244           { echo "$as_me:$LINENO: result: $result" >&5
11245 echo "${ECHO_T}$result" >&6; }
11246
11247
11248           enablestring=
11249           defaultval=$wxUSE_ALL_FEATURES
11250           if test -z "$defaultval"; then
11251               if test x"$enablestring" = xdisable; then
11252                   defaultval=yes
11253               else
11254                   defaultval=no
11255               fi
11256           fi
11257
11258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11259 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11260           # Check whether --enable-gauge was given.
11261 if test "${enable_gauge+set}" = set; then
11262   enableval=$enable_gauge;
11263                           if test "$enableval" = yes; then
11264                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11265                           else
11266                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11267                           fi
11268
11269 else
11270
11271                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11272
11273 fi
11274
11275
11276           eval "$wx_cv_use_gauge"
11277
11278           if test x"$enablestring" = xdisable; then
11279             if test $wxUSE_GAUGE = no; then
11280               result=yes
11281             else
11282               result=no
11283             fi
11284           else
11285             result=$wxUSE_GAUGE
11286           fi
11287
11288           { echo "$as_me:$LINENO: result: $result" >&5
11289 echo "${ECHO_T}$result" >&6; }
11290
11291
11292           enablestring=
11293           defaultval=$wxUSE_ALL_FEATURES
11294           if test -z "$defaultval"; then
11295               if test x"$enablestring" = xdisable; then
11296                   defaultval=yes
11297               else
11298                   defaultval=no
11299               fi
11300           fi
11301
11302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11303 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11304           # Check whether --enable-grid was given.
11305 if test "${enable_grid+set}" = set; then
11306   enableval=$enable_grid;
11307                           if test "$enableval" = yes; then
11308                             wx_cv_use_grid='wxUSE_GRID=yes'
11309                           else
11310                             wx_cv_use_grid='wxUSE_GRID=no'
11311                           fi
11312
11313 else
11314
11315                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11316
11317 fi
11318
11319
11320           eval "$wx_cv_use_grid"
11321
11322           if test x"$enablestring" = xdisable; then
11323             if test $wxUSE_GRID = no; then
11324               result=yes
11325             else
11326               result=no
11327             fi
11328           else
11329             result=$wxUSE_GRID
11330           fi
11331
11332           { echo "$as_me:$LINENO: result: $result" >&5
11333 echo "${ECHO_T}$result" >&6; }
11334
11335
11336           enablestring=
11337           defaultval=$wxUSE_ALL_FEATURES
11338           if test -z "$defaultval"; then
11339               if test x"$enablestring" = xdisable; then
11340                   defaultval=yes
11341               else
11342                   defaultval=no
11343               fi
11344           fi
11345
11346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11347 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11348           # Check whether --enable-headerctrl was given.
11349 if test "${enable_headerctrl+set}" = set; then
11350   enableval=$enable_headerctrl;
11351                           if test "$enableval" = yes; then
11352                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11353                           else
11354                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11355                           fi
11356
11357 else
11358
11359                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11360
11361 fi
11362
11363
11364           eval "$wx_cv_use_headerctrl"
11365
11366           if test x"$enablestring" = xdisable; then
11367             if test $wxUSE_HEADERCTRL = no; then
11368               result=yes
11369             else
11370               result=no
11371             fi
11372           else
11373             result=$wxUSE_HEADERCTRL
11374           fi
11375
11376           { echo "$as_me:$LINENO: result: $result" >&5
11377 echo "${ECHO_T}$result" >&6; }
11378
11379
11380           enablestring=
11381           defaultval=$wxUSE_ALL_FEATURES
11382           if test -z "$defaultval"; then
11383               if test x"$enablestring" = xdisable; then
11384                   defaultval=yes
11385               else
11386                   defaultval=no
11387               fi
11388           fi
11389
11390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11391 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11392           # Check whether --enable-hyperlink was given.
11393 if test "${enable_hyperlink+set}" = set; then
11394   enableval=$enable_hyperlink;
11395                           if test "$enableval" = yes; then
11396                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11397                           else
11398                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11399                           fi
11400
11401 else
11402
11403                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11404
11405 fi
11406
11407
11408           eval "$wx_cv_use_hyperlink"
11409
11410           if test x"$enablestring" = xdisable; then
11411             if test $wxUSE_HYPERLINKCTRL = no; then
11412               result=yes
11413             else
11414               result=no
11415             fi
11416           else
11417             result=$wxUSE_HYPERLINKCTRL
11418           fi
11419
11420           { echo "$as_me:$LINENO: result: $result" >&5
11421 echo "${ECHO_T}$result" >&6; }
11422
11423
11424           enablestring=
11425           defaultval=$wxUSE_ALL_FEATURES
11426           if test -z "$defaultval"; then
11427               if test x"$enablestring" = xdisable; then
11428                   defaultval=yes
11429               else
11430                   defaultval=no
11431               fi
11432           fi
11433
11434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11435 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11436           # Check whether --enable-imaglist was given.
11437 if test "${enable_imaglist+set}" = set; then
11438   enableval=$enable_imaglist;
11439                           if test "$enableval" = yes; then
11440                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11441                           else
11442                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11443                           fi
11444
11445 else
11446
11447                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11448
11449 fi
11450
11451
11452           eval "$wx_cv_use_imaglist"
11453
11454           if test x"$enablestring" = xdisable; then
11455             if test $wxUSE_IMAGLIST = no; then
11456               result=yes
11457             else
11458               result=no
11459             fi
11460           else
11461             result=$wxUSE_IMAGLIST
11462           fi
11463
11464           { echo "$as_me:$LINENO: result: $result" >&5
11465 echo "${ECHO_T}$result" >&6; }
11466
11467
11468           enablestring=
11469           defaultval=$wxUSE_ALL_FEATURES
11470           if test -z "$defaultval"; then
11471               if test x"$enablestring" = xdisable; then
11472                   defaultval=yes
11473               else
11474                   defaultval=no
11475               fi
11476           fi
11477
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11480           # Check whether --enable-infobar was given.
11481 if test "${enable_infobar+set}" = set; then
11482   enableval=$enable_infobar;
11483                           if test "$enableval" = yes; then
11484                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11485                           else
11486                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11487                           fi
11488
11489 else
11490
11491                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11492
11493 fi
11494
11495
11496           eval "$wx_cv_use_infobar"
11497
11498           if test x"$enablestring" = xdisable; then
11499             if test $wxUSE_INFOBAR = no; then
11500               result=yes
11501             else
11502               result=no
11503             fi
11504           else
11505             result=$wxUSE_INFOBAR
11506           fi
11507
11508           { echo "$as_me:$LINENO: result: $result" >&5
11509 echo "${ECHO_T}$result" >&6; }
11510
11511
11512           enablestring=
11513           defaultval=$wxUSE_ALL_FEATURES
11514           if test -z "$defaultval"; then
11515               if test x"$enablestring" = xdisable; then
11516                   defaultval=yes
11517               else
11518                   defaultval=no
11519               fi
11520           fi
11521
11522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11523 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11524           # Check whether --enable-listbook was given.
11525 if test "${enable_listbook+set}" = set; then
11526   enableval=$enable_listbook;
11527                           if test "$enableval" = yes; then
11528                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11529                           else
11530                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11531                           fi
11532
11533 else
11534
11535                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11536
11537 fi
11538
11539
11540           eval "$wx_cv_use_listbook"
11541
11542           if test x"$enablestring" = xdisable; then
11543             if test $wxUSE_LISTBOOK = no; then
11544               result=yes
11545             else
11546               result=no
11547             fi
11548           else
11549             result=$wxUSE_LISTBOOK
11550           fi
11551
11552           { echo "$as_me:$LINENO: result: $result" >&5
11553 echo "${ECHO_T}$result" >&6; }
11554
11555
11556           enablestring=
11557           defaultval=$wxUSE_ALL_FEATURES
11558           if test -z "$defaultval"; then
11559               if test x"$enablestring" = xdisable; then
11560                   defaultval=yes
11561               else
11562                   defaultval=no
11563               fi
11564           fi
11565
11566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11567 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11568           # Check whether --enable-listbox was given.
11569 if test "${enable_listbox+set}" = set; then
11570   enableval=$enable_listbox;
11571                           if test "$enableval" = yes; then
11572                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11573                           else
11574                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11575                           fi
11576
11577 else
11578
11579                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11580
11581 fi
11582
11583
11584           eval "$wx_cv_use_listbox"
11585
11586           if test x"$enablestring" = xdisable; then
11587             if test $wxUSE_LISTBOX = no; then
11588               result=yes
11589             else
11590               result=no
11591             fi
11592           else
11593             result=$wxUSE_LISTBOX
11594           fi
11595
11596           { echo "$as_me:$LINENO: result: $result" >&5
11597 echo "${ECHO_T}$result" >&6; }
11598
11599
11600           enablestring=
11601           defaultval=$wxUSE_ALL_FEATURES
11602           if test -z "$defaultval"; then
11603               if test x"$enablestring" = xdisable; then
11604                   defaultval=yes
11605               else
11606                   defaultval=no
11607               fi
11608           fi
11609
11610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11611 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11612           # Check whether --enable-listctrl was given.
11613 if test "${enable_listctrl+set}" = set; then
11614   enableval=$enable_listctrl;
11615                           if test "$enableval" = yes; then
11616                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11617                           else
11618                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11619                           fi
11620
11621 else
11622
11623                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11624
11625 fi
11626
11627
11628           eval "$wx_cv_use_listctrl"
11629
11630           if test x"$enablestring" = xdisable; then
11631             if test $wxUSE_LISTCTRL = no; then
11632               result=yes
11633             else
11634               result=no
11635             fi
11636           else
11637             result=$wxUSE_LISTCTRL
11638           fi
11639
11640           { echo "$as_me:$LINENO: result: $result" >&5
11641 echo "${ECHO_T}$result" >&6; }
11642
11643
11644           enablestring=
11645           defaultval=$wxUSE_ALL_FEATURES
11646           if test -z "$defaultval"; then
11647               if test x"$enablestring" = xdisable; then
11648                   defaultval=yes
11649               else
11650                   defaultval=no
11651               fi
11652           fi
11653
11654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11655 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11656           # Check whether --enable-notebook was given.
11657 if test "${enable_notebook+set}" = set; then
11658   enableval=$enable_notebook;
11659                           if test "$enableval" = yes; then
11660                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11661                           else
11662                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11663                           fi
11664
11665 else
11666
11667                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11668
11669 fi
11670
11671
11672           eval "$wx_cv_use_notebook"
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_NOTEBOOK = no; then
11676               result=yes
11677             else
11678               result=no
11679             fi
11680           else
11681             result=$wxUSE_NOTEBOOK
11682           fi
11683
11684           { echo "$as_me:$LINENO: result: $result" >&5
11685 echo "${ECHO_T}$result" >&6; }
11686
11687
11688           enablestring=
11689           defaultval=$wxUSE_ALL_FEATURES
11690           if test -z "$defaultval"; then
11691               if test x"$enablestring" = xdisable; then
11692                   defaultval=yes
11693               else
11694                   defaultval=no
11695               fi
11696           fi
11697
11698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11700           # Check whether --enable-notifmsg was given.
11701 if test "${enable_notifmsg+set}" = set; then
11702   enableval=$enable_notifmsg;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11705                           else
11706                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11707                           fi
11708
11709 else
11710
11711                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_notifmsg"
11717
11718           if test x"$enablestring" = xdisable; then
11719             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11720               result=yes
11721             else
11722               result=no
11723             fi
11724           else
11725             result=$wxUSE_NOTIFICATION_MESSAGE
11726           fi
11727
11728           { echo "$as_me:$LINENO: result: $result" >&5
11729 echo "${ECHO_T}$result" >&6; }
11730
11731
11732           enablestring=
11733           defaultval=$wxUSE_ALL_FEATURES
11734           if test -z "$defaultval"; then
11735               if test x"$enablestring" = xdisable; then
11736                   defaultval=yes
11737               else
11738                   defaultval=no
11739               fi
11740           fi
11741
11742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11743 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11744           # Check whether --enable-odcombobox was given.
11745 if test "${enable_odcombobox+set}" = set; then
11746   enableval=$enable_odcombobox;
11747                           if test "$enableval" = yes; then
11748                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11749                           else
11750                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11751                           fi
11752
11753 else
11754
11755                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11756
11757 fi
11758
11759
11760           eval "$wx_cv_use_odcombobox"
11761
11762           if test x"$enablestring" = xdisable; then
11763             if test $wxUSE_ODCOMBOBOX = no; then
11764               result=yes
11765             else
11766               result=no
11767             fi
11768           else
11769             result=$wxUSE_ODCOMBOBOX
11770           fi
11771
11772           { echo "$as_me:$LINENO: result: $result" >&5
11773 echo "${ECHO_T}$result" >&6; }
11774
11775
11776           enablestring=
11777           defaultval=$wxUSE_ALL_FEATURES
11778           if test -z "$defaultval"; then
11779               if test x"$enablestring" = xdisable; then
11780                   defaultval=yes
11781               else
11782                   defaultval=no
11783               fi
11784           fi
11785
11786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11787 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11788           # Check whether --enable-popupwin was given.
11789 if test "${enable_popupwin+set}" = set; then
11790   enableval=$enable_popupwin;
11791                           if test "$enableval" = yes; then
11792                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11793                           else
11794                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11795                           fi
11796
11797 else
11798
11799                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11800
11801 fi
11802
11803
11804           eval "$wx_cv_use_popupwin"
11805
11806           if test x"$enablestring" = xdisable; then
11807             if test $wxUSE_POPUPWIN = no; then
11808               result=yes
11809             else
11810               result=no
11811             fi
11812           else
11813             result=$wxUSE_POPUPWIN
11814           fi
11815
11816           { echo "$as_me:$LINENO: result: $result" >&5
11817 echo "${ECHO_T}$result" >&6; }
11818
11819
11820           enablestring=
11821           defaultval=$wxUSE_ALL_FEATURES
11822           if test -z "$defaultval"; then
11823               if test x"$enablestring" = xdisable; then
11824                   defaultval=yes
11825               else
11826                   defaultval=no
11827               fi
11828           fi
11829
11830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11831 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11832           # Check whether --enable-radiobox was given.
11833 if test "${enable_radiobox+set}" = set; then
11834   enableval=$enable_radiobox;
11835                           if test "$enableval" = yes; then
11836                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11837                           else
11838                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11839                           fi
11840
11841 else
11842
11843                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11844
11845 fi
11846
11847
11848           eval "$wx_cv_use_radiobox"
11849
11850           if test x"$enablestring" = xdisable; then
11851             if test $wxUSE_RADIOBOX = no; then
11852               result=yes
11853             else
11854               result=no
11855             fi
11856           else
11857             result=$wxUSE_RADIOBOX
11858           fi
11859
11860           { echo "$as_me:$LINENO: result: $result" >&5
11861 echo "${ECHO_T}$result" >&6; }
11862
11863
11864           enablestring=
11865           defaultval=$wxUSE_ALL_FEATURES
11866           if test -z "$defaultval"; then
11867               if test x"$enablestring" = xdisable; then
11868                   defaultval=yes
11869               else
11870                   defaultval=no
11871               fi
11872           fi
11873
11874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11875 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11876           # Check whether --enable-radiobtn was given.
11877 if test "${enable_radiobtn+set}" = set; then
11878   enableval=$enable_radiobtn;
11879                           if test "$enableval" = yes; then
11880                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11881                           else
11882                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11883                           fi
11884
11885 else
11886
11887                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11888
11889 fi
11890
11891
11892           eval "$wx_cv_use_radiobtn"
11893
11894           if test x"$enablestring" = xdisable; then
11895             if test $wxUSE_RADIOBTN = no; then
11896               result=yes
11897             else
11898               result=no
11899             fi
11900           else
11901             result=$wxUSE_RADIOBTN
11902           fi
11903
11904           { echo "$as_me:$LINENO: result: $result" >&5
11905 echo "${ECHO_T}$result" >&6; }
11906
11907
11908           enablestring=
11909           defaultval=$wxUSE_ALL_FEATURES
11910           if test -z "$defaultval"; then
11911               if test x"$enablestring" = xdisable; then
11912                   defaultval=yes
11913               else
11914                   defaultval=no
11915               fi
11916           fi
11917
11918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11919 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11920           # Check whether --enable-richmsgdlg was given.
11921 if test "${enable_richmsgdlg+set}" = set; then
11922   enableval=$enable_richmsgdlg;
11923                           if test "$enableval" = yes; then
11924                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11925                           else
11926                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11927                           fi
11928
11929 else
11930
11931                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11932
11933 fi
11934
11935
11936           eval "$wx_cv_use_richmsgdlg"
11937
11938           if test x"$enablestring" = xdisable; then
11939             if test $wxUSE_RICHMSGDLG = no; then
11940               result=yes
11941             else
11942               result=no
11943             fi
11944           else
11945             result=$wxUSE_RICHMSGDLG
11946           fi
11947
11948           { echo "$as_me:$LINENO: result: $result" >&5
11949 echo "${ECHO_T}$result" >&6; }
11950
11951
11952           enablestring=
11953           defaultval=$wxUSE_ALL_FEATURES
11954           if test -z "$defaultval"; then
11955               if test x"$enablestring" = xdisable; then
11956                   defaultval=yes
11957               else
11958                   defaultval=no
11959               fi
11960           fi
11961
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
11964           # Check whether --enable-richtooltip was given.
11965 if test "${enable_richtooltip+set}" = set; then
11966   enableval=$enable_richtooltip;
11967                           if test "$enableval" = yes; then
11968                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
11969                           else
11970                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
11971                           fi
11972
11973 else
11974
11975                           wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
11976
11977 fi
11978
11979
11980           eval "$wx_cv_use_richtooltip"
11981
11982           if test x"$enablestring" = xdisable; then
11983             if test $wxUSE_RICHTOOLTIP = no; then
11984               result=yes
11985             else
11986               result=no
11987             fi
11988           else
11989             result=$wxUSE_RICHTOOLTIP
11990           fi
11991
11992           { echo "$as_me:$LINENO: result: $result" >&5
11993 echo "${ECHO_T}$result" >&6; }
11994
11995
11996           enablestring=
11997           defaultval=$wxUSE_ALL_FEATURES
11998           if test -z "$defaultval"; then
11999               if test x"$enablestring" = xdisable; then
12000                   defaultval=yes
12001               else
12002                   defaultval=no
12003               fi
12004           fi
12005
12006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
12007 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
12008           # Check whether --enable-rearrangectrl was given.
12009 if test "${enable_rearrangectrl+set}" = set; then
12010   enableval=$enable_rearrangectrl;
12011                           if test "$enableval" = yes; then
12012                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
12013                           else
12014                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
12015                           fi
12016
12017 else
12018
12019                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
12020
12021 fi
12022
12023
12024           eval "$wx_cv_use_rearrangectrl"
12025
12026           if test x"$enablestring" = xdisable; then
12027             if test $wxUSE_REARRANGECTRL = no; then
12028               result=yes
12029             else
12030               result=no
12031             fi
12032           else
12033             result=$wxUSE_REARRANGECTRL
12034           fi
12035
12036           { echo "$as_me:$LINENO: result: $result" >&5
12037 echo "${ECHO_T}$result" >&6; }
12038
12039
12040           enablestring=
12041           defaultval=$wxUSE_ALL_FEATURES
12042           if test -z "$defaultval"; then
12043               if test x"$enablestring" = xdisable; then
12044                   defaultval=yes
12045               else
12046                   defaultval=no
12047               fi
12048           fi
12049
12050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12051 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12052           # Check whether --enable-sash was given.
12053 if test "${enable_sash+set}" = set; then
12054   enableval=$enable_sash;
12055                           if test "$enableval" = yes; then
12056                             wx_cv_use_sash='wxUSE_SASH=yes'
12057                           else
12058                             wx_cv_use_sash='wxUSE_SASH=no'
12059                           fi
12060
12061 else
12062
12063                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12064
12065 fi
12066
12067
12068           eval "$wx_cv_use_sash"
12069
12070           if test x"$enablestring" = xdisable; then
12071             if test $wxUSE_SASH = no; then
12072               result=yes
12073             else
12074               result=no
12075             fi
12076           else
12077             result=$wxUSE_SASH
12078           fi
12079
12080           { echo "$as_me:$LINENO: result: $result" >&5
12081 echo "${ECHO_T}$result" >&6; }
12082
12083
12084           enablestring=
12085           defaultval=$wxUSE_ALL_FEATURES
12086           if test -z "$defaultval"; then
12087               if test x"$enablestring" = xdisable; then
12088                   defaultval=yes
12089               else
12090                   defaultval=no
12091               fi
12092           fi
12093
12094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12095 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12096           # Check whether --enable-scrollbar was given.
12097 if test "${enable_scrollbar+set}" = set; then
12098   enableval=$enable_scrollbar;
12099                           if test "$enableval" = yes; then
12100                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12101                           else
12102                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12103                           fi
12104
12105 else
12106
12107                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12108
12109 fi
12110
12111
12112           eval "$wx_cv_use_scrollbar"
12113
12114           if test x"$enablestring" = xdisable; then
12115             if test $wxUSE_SCROLLBAR = no; then
12116               result=yes
12117             else
12118               result=no
12119             fi
12120           else
12121             result=$wxUSE_SCROLLBAR
12122           fi
12123
12124           { echo "$as_me:$LINENO: result: $result" >&5
12125 echo "${ECHO_T}$result" >&6; }
12126
12127
12128           enablestring=
12129           defaultval=$wxUSE_ALL_FEATURES
12130           if test -z "$defaultval"; then
12131               if test x"$enablestring" = xdisable; then
12132                   defaultval=yes
12133               else
12134                   defaultval=no
12135               fi
12136           fi
12137
12138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12139 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12140           # Check whether --enable-searchctrl was given.
12141 if test "${enable_searchctrl+set}" = set; then
12142   enableval=$enable_searchctrl;
12143                           if test "$enableval" = yes; then
12144                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12145                           else
12146                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12147                           fi
12148
12149 else
12150
12151                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_searchctrl"
12157
12158           if test x"$enablestring" = xdisable; then
12159             if test $wxUSE_SEARCHCTRL = no; then
12160               result=yes
12161             else
12162               result=no
12163             fi
12164           else
12165             result=$wxUSE_SEARCHCTRL
12166           fi
12167
12168           { echo "$as_me:$LINENO: result: $result" >&5
12169 echo "${ECHO_T}$result" >&6; }
12170
12171
12172           enablestring=
12173           defaultval=$wxUSE_ALL_FEATURES
12174           if test -z "$defaultval"; then
12175               if test x"$enablestring" = xdisable; then
12176                   defaultval=yes
12177               else
12178                   defaultval=no
12179               fi
12180           fi
12181
12182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12183 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12184           # Check whether --enable-slider was given.
12185 if test "${enable_slider+set}" = set; then
12186   enableval=$enable_slider;
12187                           if test "$enableval" = yes; then
12188                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12189                           else
12190                             wx_cv_use_slider='wxUSE_SLIDER=no'
12191                           fi
12192
12193 else
12194
12195                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12196
12197 fi
12198
12199
12200           eval "$wx_cv_use_slider"
12201
12202           if test x"$enablestring" = xdisable; then
12203             if test $wxUSE_SLIDER = no; then
12204               result=yes
12205             else
12206               result=no
12207             fi
12208           else
12209             result=$wxUSE_SLIDER
12210           fi
12211
12212           { echo "$as_me:$LINENO: result: $result" >&5
12213 echo "${ECHO_T}$result" >&6; }
12214
12215
12216           enablestring=
12217           defaultval=$wxUSE_ALL_FEATURES
12218           if test -z "$defaultval"; then
12219               if test x"$enablestring" = xdisable; then
12220                   defaultval=yes
12221               else
12222                   defaultval=no
12223               fi
12224           fi
12225
12226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12227 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12228           # Check whether --enable-spinbtn was given.
12229 if test "${enable_spinbtn+set}" = set; then
12230   enableval=$enable_spinbtn;
12231                           if test "$enableval" = yes; then
12232                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12233                           else
12234                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12235                           fi
12236
12237 else
12238
12239                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12240
12241 fi
12242
12243
12244           eval "$wx_cv_use_spinbtn"
12245
12246           if test x"$enablestring" = xdisable; then
12247             if test $wxUSE_SPINBTN = no; then
12248               result=yes
12249             else
12250               result=no
12251             fi
12252           else
12253             result=$wxUSE_SPINBTN
12254           fi
12255
12256           { echo "$as_me:$LINENO: result: $result" >&5
12257 echo "${ECHO_T}$result" >&6; }
12258
12259
12260           enablestring=
12261           defaultval=$wxUSE_ALL_FEATURES
12262           if test -z "$defaultval"; then
12263               if test x"$enablestring" = xdisable; then
12264                   defaultval=yes
12265               else
12266                   defaultval=no
12267               fi
12268           fi
12269
12270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12271 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12272           # Check whether --enable-spinctrl was given.
12273 if test "${enable_spinctrl+set}" = set; then
12274   enableval=$enable_spinctrl;
12275                           if test "$enableval" = yes; then
12276                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12277                           else
12278                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12279                           fi
12280
12281 else
12282
12283                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12284
12285 fi
12286
12287
12288           eval "$wx_cv_use_spinctrl"
12289
12290           if test x"$enablestring" = xdisable; then
12291             if test $wxUSE_SPINCTRL = no; then
12292               result=yes
12293             else
12294               result=no
12295             fi
12296           else
12297             result=$wxUSE_SPINCTRL
12298           fi
12299
12300           { echo "$as_me:$LINENO: result: $result" >&5
12301 echo "${ECHO_T}$result" >&6; }
12302
12303
12304           enablestring=
12305           defaultval=$wxUSE_ALL_FEATURES
12306           if test -z "$defaultval"; then
12307               if test x"$enablestring" = xdisable; then
12308                   defaultval=yes
12309               else
12310                   defaultval=no
12311               fi
12312           fi
12313
12314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12315 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12316           # Check whether --enable-splitter was given.
12317 if test "${enable_splitter+set}" = set; then
12318   enableval=$enable_splitter;
12319                           if test "$enableval" = yes; then
12320                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12321                           else
12322                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12323                           fi
12324
12325 else
12326
12327                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12328
12329 fi
12330
12331
12332           eval "$wx_cv_use_splitter"
12333
12334           if test x"$enablestring" = xdisable; then
12335             if test $wxUSE_SPLITTER = no; then
12336               result=yes
12337             else
12338               result=no
12339             fi
12340           else
12341             result=$wxUSE_SPLITTER
12342           fi
12343
12344           { echo "$as_me:$LINENO: result: $result" >&5
12345 echo "${ECHO_T}$result" >&6; }
12346
12347
12348           enablestring=
12349           defaultval=$wxUSE_ALL_FEATURES
12350           if test -z "$defaultval"; then
12351               if test x"$enablestring" = xdisable; then
12352                   defaultval=yes
12353               else
12354                   defaultval=no
12355               fi
12356           fi
12357
12358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12359 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12360           # Check whether --enable-statbmp was given.
12361 if test "${enable_statbmp+set}" = set; then
12362   enableval=$enable_statbmp;
12363                           if test "$enableval" = yes; then
12364                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12365                           else
12366                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12367                           fi
12368
12369 else
12370
12371                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12372
12373 fi
12374
12375
12376           eval "$wx_cv_use_statbmp"
12377
12378           if test x"$enablestring" = xdisable; then
12379             if test $wxUSE_STATBMP = no; then
12380               result=yes
12381             else
12382               result=no
12383             fi
12384           else
12385             result=$wxUSE_STATBMP
12386           fi
12387
12388           { echo "$as_me:$LINENO: result: $result" >&5
12389 echo "${ECHO_T}$result" >&6; }
12390
12391
12392           enablestring=
12393           defaultval=$wxUSE_ALL_FEATURES
12394           if test -z "$defaultval"; then
12395               if test x"$enablestring" = xdisable; then
12396                   defaultval=yes
12397               else
12398                   defaultval=no
12399               fi
12400           fi
12401
12402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12403 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12404           # Check whether --enable-statbox was given.
12405 if test "${enable_statbox+set}" = set; then
12406   enableval=$enable_statbox;
12407                           if test "$enableval" = yes; then
12408                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12409                           else
12410                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12411                           fi
12412
12413 else
12414
12415                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12416
12417 fi
12418
12419
12420           eval "$wx_cv_use_statbox"
12421
12422           if test x"$enablestring" = xdisable; then
12423             if test $wxUSE_STATBOX = no; then
12424               result=yes
12425             else
12426               result=no
12427             fi
12428           else
12429             result=$wxUSE_STATBOX
12430           fi
12431
12432           { echo "$as_me:$LINENO: result: $result" >&5
12433 echo "${ECHO_T}$result" >&6; }
12434
12435
12436           enablestring=
12437           defaultval=$wxUSE_ALL_FEATURES
12438           if test -z "$defaultval"; then
12439               if test x"$enablestring" = xdisable; then
12440                   defaultval=yes
12441               else
12442                   defaultval=no
12443               fi
12444           fi
12445
12446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12447 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12448           # Check whether --enable-statline was given.
12449 if test "${enable_statline+set}" = set; then
12450   enableval=$enable_statline;
12451                           if test "$enableval" = yes; then
12452                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12453                           else
12454                             wx_cv_use_statline='wxUSE_STATLINE=no'
12455                           fi
12456
12457 else
12458
12459                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12460
12461 fi
12462
12463
12464           eval "$wx_cv_use_statline"
12465
12466           if test x"$enablestring" = xdisable; then
12467             if test $wxUSE_STATLINE = no; then
12468               result=yes
12469             else
12470               result=no
12471             fi
12472           else
12473             result=$wxUSE_STATLINE
12474           fi
12475
12476           { echo "$as_me:$LINENO: result: $result" >&5
12477 echo "${ECHO_T}$result" >&6; }
12478
12479
12480           enablestring=
12481           defaultval=$wxUSE_ALL_FEATURES
12482           if test -z "$defaultval"; then
12483               if test x"$enablestring" = xdisable; then
12484                   defaultval=yes
12485               else
12486                   defaultval=no
12487               fi
12488           fi
12489
12490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12491 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12492           # Check whether --enable-stattext was given.
12493 if test "${enable_stattext+set}" = set; then
12494   enableval=$enable_stattext;
12495                           if test "$enableval" = yes; then
12496                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12497                           else
12498                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12499                           fi
12500
12501 else
12502
12503                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12504
12505 fi
12506
12507
12508           eval "$wx_cv_use_stattext"
12509
12510           if test x"$enablestring" = xdisable; then
12511             if test $wxUSE_STATTEXT = no; then
12512               result=yes
12513             else
12514               result=no
12515             fi
12516           else
12517             result=$wxUSE_STATTEXT
12518           fi
12519
12520           { echo "$as_me:$LINENO: result: $result" >&5
12521 echo "${ECHO_T}$result" >&6; }
12522
12523
12524           enablestring=
12525           defaultval=$wxUSE_ALL_FEATURES
12526           if test -z "$defaultval"; then
12527               if test x"$enablestring" = xdisable; then
12528                   defaultval=yes
12529               else
12530                   defaultval=no
12531               fi
12532           fi
12533
12534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12535 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12536           # Check whether --enable-statusbar was given.
12537 if test "${enable_statusbar+set}" = set; then
12538   enableval=$enable_statusbar;
12539                           if test "$enableval" = yes; then
12540                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12541                           else
12542                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12543                           fi
12544
12545 else
12546
12547                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12548
12549 fi
12550
12551
12552           eval "$wx_cv_use_statusbar"
12553
12554           if test x"$enablestring" = xdisable; then
12555             if test $wxUSE_STATUSBAR = no; then
12556               result=yes
12557             else
12558               result=no
12559             fi
12560           else
12561             result=$wxUSE_STATUSBAR
12562           fi
12563
12564           { echo "$as_me:$LINENO: result: $result" >&5
12565 echo "${ECHO_T}$result" >&6; }
12566
12567
12568           enablestring=
12569           defaultval=$wxUSE_ALL_FEATURES
12570           if test -z "$defaultval"; then
12571               if test x"$enablestring" = xdisable; then
12572                   defaultval=yes
12573               else
12574                   defaultval=no
12575               fi
12576           fi
12577
12578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12579 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12580           # Check whether --enable-taskbaricon was given.
12581 if test "${enable_taskbaricon+set}" = set; then
12582   enableval=$enable_taskbaricon;
12583                           if test "$enableval" = yes; then
12584                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12585                           else
12586                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12587                           fi
12588
12589 else
12590
12591                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12592
12593 fi
12594
12595
12596           eval "$wx_cv_use_taskbaricon"
12597
12598           if test x"$enablestring" = xdisable; then
12599             if test $wxUSE_TASKBARICON = no; then
12600               result=yes
12601             else
12602               result=no
12603             fi
12604           else
12605             result=$wxUSE_TASKBARICON
12606           fi
12607
12608           { echo "$as_me:$LINENO: result: $result" >&5
12609 echo "${ECHO_T}$result" >&6; }
12610
12611
12612           enablestring=
12613           defaultval=$wxUSE_ALL_FEATURES
12614           if test -z "$defaultval"; then
12615               if test x"$enablestring" = xdisable; then
12616                   defaultval=yes
12617               else
12618                   defaultval=no
12619               fi
12620           fi
12621
12622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12623 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12624           # Check whether --enable-tbarnative was given.
12625 if test "${enable_tbarnative+set}" = set; then
12626   enableval=$enable_tbarnative;
12627                           if test "$enableval" = yes; then
12628                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12629                           else
12630                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12631                           fi
12632
12633 else
12634
12635                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12636
12637 fi
12638
12639
12640           eval "$wx_cv_use_tbarnative"
12641
12642           if test x"$enablestring" = xdisable; then
12643             if test $wxUSE_TOOLBAR_NATIVE = no; then
12644               result=yes
12645             else
12646               result=no
12647             fi
12648           else
12649             result=$wxUSE_TOOLBAR_NATIVE
12650           fi
12651
12652           { echo "$as_me:$LINENO: result: $result" >&5
12653 echo "${ECHO_T}$result" >&6; }
12654
12655
12656           enablestring=
12657           defaultval=$wxUSE_ALL_FEATURES
12658           if test -z "$defaultval"; then
12659               if test x"$enablestring" = xdisable; then
12660                   defaultval=yes
12661               else
12662                   defaultval=no
12663               fi
12664           fi
12665
12666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12667 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12668           # Check whether --enable-textctrl was given.
12669 if test "${enable_textctrl+set}" = set; then
12670   enableval=$enable_textctrl;
12671                           if test "$enableval" = yes; then
12672                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12673                           else
12674                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12675                           fi
12676
12677 else
12678
12679                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12680
12681 fi
12682
12683
12684           eval "$wx_cv_use_textctrl"
12685
12686           if test x"$enablestring" = xdisable; then
12687             if test $wxUSE_TEXTCTRL = no; then
12688               result=yes
12689             else
12690               result=no
12691             fi
12692           else
12693             result=$wxUSE_TEXTCTRL
12694           fi
12695
12696           { echo "$as_me:$LINENO: result: $result" >&5
12697 echo "${ECHO_T}$result" >&6; }
12698
12699
12700           enablestring=
12701           defaultval=$wxUSE_ALL_FEATURES
12702           if test -z "$defaultval"; then
12703               if test x"$enablestring" = xdisable; then
12704                   defaultval=yes
12705               else
12706                   defaultval=no
12707               fi
12708           fi
12709
12710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12711 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12712           # Check whether --enable-datepick was given.
12713 if test "${enable_datepick+set}" = set; then
12714   enableval=$enable_datepick;
12715                           if test "$enableval" = yes; then
12716                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12717                           else
12718                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12719                           fi
12720
12721 else
12722
12723                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12724
12725 fi
12726
12727
12728           eval "$wx_cv_use_datepick"
12729
12730           if test x"$enablestring" = xdisable; then
12731             if test $wxUSE_TIMEPICKCTRL = no; then
12732               result=yes
12733             else
12734               result=no
12735             fi
12736           else
12737             result=$wxUSE_TIMEPICKCTRL
12738           fi
12739
12740           { echo "$as_me:$LINENO: result: $result" >&5
12741 echo "${ECHO_T}$result" >&6; }
12742
12743
12744           enablestring=
12745           defaultval=$wxUSE_ALL_FEATURES
12746           if test -z "$defaultval"; then
12747               if test x"$enablestring" = xdisable; then
12748                   defaultval=yes
12749               else
12750                   defaultval=no
12751               fi
12752           fi
12753
12754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12755 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12756           # Check whether --enable-tipwindow was given.
12757 if test "${enable_tipwindow+set}" = set; then
12758   enableval=$enable_tipwindow;
12759                           if test "$enableval" = yes; then
12760                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12761                           else
12762                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12763                           fi
12764
12765 else
12766
12767                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12768
12769 fi
12770
12771
12772           eval "$wx_cv_use_tipwindow"
12773
12774           if test x"$enablestring" = xdisable; then
12775             if test $wxUSE_TIPWINDOW = no; then
12776               result=yes
12777             else
12778               result=no
12779             fi
12780           else
12781             result=$wxUSE_TIPWINDOW
12782           fi
12783
12784           { echo "$as_me:$LINENO: result: $result" >&5
12785 echo "${ECHO_T}$result" >&6; }
12786
12787
12788           enablestring=
12789           defaultval=$wxUSE_ALL_FEATURES
12790           if test -z "$defaultval"; then
12791               if test x"$enablestring" = xdisable; then
12792                   defaultval=yes
12793               else
12794                   defaultval=no
12795               fi
12796           fi
12797
12798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12799 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12800           # Check whether --enable-togglebtn was given.
12801 if test "${enable_togglebtn+set}" = set; then
12802   enableval=$enable_togglebtn;
12803                           if test "$enableval" = yes; then
12804                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12805                           else
12806                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12807                           fi
12808
12809 else
12810
12811                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12812
12813 fi
12814
12815
12816           eval "$wx_cv_use_togglebtn"
12817
12818           if test x"$enablestring" = xdisable; then
12819             if test $wxUSE_TOGGLEBTN = no; then
12820               result=yes
12821             else
12822               result=no
12823             fi
12824           else
12825             result=$wxUSE_TOGGLEBTN
12826           fi
12827
12828           { echo "$as_me:$LINENO: result: $result" >&5
12829 echo "${ECHO_T}$result" >&6; }
12830
12831
12832           enablestring=
12833           defaultval=$wxUSE_ALL_FEATURES
12834           if test -z "$defaultval"; then
12835               if test x"$enablestring" = xdisable; then
12836                   defaultval=yes
12837               else
12838                   defaultval=no
12839               fi
12840           fi
12841
12842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12843 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12844           # Check whether --enable-toolbar was given.
12845 if test "${enable_toolbar+set}" = set; then
12846   enableval=$enable_toolbar;
12847                           if test "$enableval" = yes; then
12848                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12849                           else
12850                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12851                           fi
12852
12853 else
12854
12855                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12856
12857 fi
12858
12859
12860           eval "$wx_cv_use_toolbar"
12861
12862           if test x"$enablestring" = xdisable; then
12863             if test $wxUSE_TOOLBAR = no; then
12864               result=yes
12865             else
12866               result=no
12867             fi
12868           else
12869             result=$wxUSE_TOOLBAR
12870           fi
12871
12872           { echo "$as_me:$LINENO: result: $result" >&5
12873 echo "${ECHO_T}$result" >&6; }
12874
12875
12876           enablestring=
12877           defaultval=$wxUSE_ALL_FEATURES
12878           if test -z "$defaultval"; then
12879               if test x"$enablestring" = xdisable; then
12880                   defaultval=yes
12881               else
12882                   defaultval=no
12883               fi
12884           fi
12885
12886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12887 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12888           # Check whether --enable-toolbook was given.
12889 if test "${enable_toolbook+set}" = set; then
12890   enableval=$enable_toolbook;
12891                           if test "$enableval" = yes; then
12892                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12893                           else
12894                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12895                           fi
12896
12897 else
12898
12899                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12900
12901 fi
12902
12903
12904           eval "$wx_cv_use_toolbook"
12905
12906           if test x"$enablestring" = xdisable; then
12907             if test $wxUSE_TOOLBOOK = no; then
12908               result=yes
12909             else
12910               result=no
12911             fi
12912           else
12913             result=$wxUSE_TOOLBOOK
12914           fi
12915
12916           { echo "$as_me:$LINENO: result: $result" >&5
12917 echo "${ECHO_T}$result" >&6; }
12918
12919
12920           enablestring=
12921           defaultval=$wxUSE_ALL_FEATURES
12922           if test -z "$defaultval"; then
12923               if test x"$enablestring" = xdisable; then
12924                   defaultval=yes
12925               else
12926                   defaultval=no
12927               fi
12928           fi
12929
12930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12931 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12932           # Check whether --enable-treebook was given.
12933 if test "${enable_treebook+set}" = set; then
12934   enableval=$enable_treebook;
12935                           if test "$enableval" = yes; then
12936                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12937                           else
12938                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12939                           fi
12940
12941 else
12942
12943                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12944
12945 fi
12946
12947
12948           eval "$wx_cv_use_treebook"
12949
12950           if test x"$enablestring" = xdisable; then
12951             if test $wxUSE_TREEBOOK = no; then
12952               result=yes
12953             else
12954               result=no
12955             fi
12956           else
12957             result=$wxUSE_TREEBOOK
12958           fi
12959
12960           { echo "$as_me:$LINENO: result: $result" >&5
12961 echo "${ECHO_T}$result" >&6; }
12962
12963
12964           enablestring=
12965           defaultval=$wxUSE_ALL_FEATURES
12966           if test -z "$defaultval"; then
12967               if test x"$enablestring" = xdisable; then
12968                   defaultval=yes
12969               else
12970                   defaultval=no
12971               fi
12972           fi
12973
12974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12975 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12976           # Check whether --enable-treectrl was given.
12977 if test "${enable_treectrl+set}" = set; then
12978   enableval=$enable_treectrl;
12979                           if test "$enableval" = yes; then
12980                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12981                           else
12982                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12983                           fi
12984
12985 else
12986
12987                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12988
12989 fi
12990
12991
12992           eval "$wx_cv_use_treectrl"
12993
12994           if test x"$enablestring" = xdisable; then
12995             if test $wxUSE_TREECTRL = no; then
12996               result=yes
12997             else
12998               result=no
12999             fi
13000           else
13001             result=$wxUSE_TREECTRL
13002           fi
13003
13004           { echo "$as_me:$LINENO: result: $result" >&5
13005 echo "${ECHO_T}$result" >&6; }
13006
13007
13008           enablestring=
13009           defaultval=$wxUSE_ALL_FEATURES
13010           if test -z "$defaultval"; then
13011               if test x"$enablestring" = xdisable; then
13012                   defaultval=yes
13013               else
13014                   defaultval=no
13015               fi
13016           fi
13017
13018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
13019 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
13020           # Check whether --enable-treelist was given.
13021 if test "${enable_treelist+set}" = set; then
13022   enableval=$enable_treelist;
13023                           if test "$enableval" = yes; then
13024                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
13025                           else
13026                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
13027                           fi
13028
13029 else
13030
13031                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
13032
13033 fi
13034
13035
13036           eval "$wx_cv_use_treelist"
13037
13038           if test x"$enablestring" = xdisable; then
13039             if test $wxUSE_TREELISTCTRL = no; then
13040               result=yes
13041             else
13042               result=no
13043             fi
13044           else
13045             result=$wxUSE_TREELISTCTRL
13046           fi
13047
13048           { echo "$as_me:$LINENO: result: $result" >&5
13049 echo "${ECHO_T}$result" >&6; }
13050
13051
13052
13053
13054           enablestring=
13055           defaultval=$wxUSE_ALL_FEATURES
13056           if test -z "$defaultval"; then
13057               if test x"$enablestring" = xdisable; then
13058                   defaultval=yes
13059               else
13060                   defaultval=no
13061               fi
13062           fi
13063
13064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13065 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13066           # Check whether --enable-commondlg was given.
13067 if test "${enable_commondlg+set}" = set; then
13068   enableval=$enable_commondlg;
13069                           if test "$enableval" = yes; then
13070                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13071                           else
13072                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13073                           fi
13074
13075 else
13076
13077                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13078
13079 fi
13080
13081
13082           eval "$wx_cv_use_commondlg"
13083
13084           if test x"$enablestring" = xdisable; then
13085             if test $wxUSE_COMMONDLGS = no; then
13086               result=yes
13087             else
13088               result=no
13089             fi
13090           else
13091             result=$wxUSE_COMMONDLGS
13092           fi
13093
13094           { echo "$as_me:$LINENO: result: $result" >&5
13095 echo "${ECHO_T}$result" >&6; }
13096
13097
13098           enablestring=
13099           defaultval=$wxUSE_ALL_FEATURES
13100           if test -z "$defaultval"; then
13101               if test x"$enablestring" = xdisable; then
13102                   defaultval=yes
13103               else
13104                   defaultval=no
13105               fi
13106           fi
13107
13108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13109 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13110           # Check whether --enable-aboutdlg was given.
13111 if test "${enable_aboutdlg+set}" = set; then
13112   enableval=$enable_aboutdlg;
13113                           if test "$enableval" = yes; then
13114                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13115                           else
13116                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13117                           fi
13118
13119 else
13120
13121                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13122
13123 fi
13124
13125
13126           eval "$wx_cv_use_aboutdlg"
13127
13128           if test x"$enablestring" = xdisable; then
13129             if test $wxUSE_ABOUTDLG = no; then
13130               result=yes
13131             else
13132               result=no
13133             fi
13134           else
13135             result=$wxUSE_ABOUTDLG
13136           fi
13137
13138           { echo "$as_me:$LINENO: result: $result" >&5
13139 echo "${ECHO_T}$result" >&6; }
13140
13141
13142           enablestring=
13143           defaultval=$wxUSE_ALL_FEATURES
13144           if test -z "$defaultval"; then
13145               if test x"$enablestring" = xdisable; then
13146                   defaultval=yes
13147               else
13148                   defaultval=no
13149               fi
13150           fi
13151
13152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13153 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13154           # Check whether --enable-choicedlg was given.
13155 if test "${enable_choicedlg+set}" = set; then
13156   enableval=$enable_choicedlg;
13157                           if test "$enableval" = yes; then
13158                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13159                           else
13160                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13161                           fi
13162
13163 else
13164
13165                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13166
13167 fi
13168
13169
13170           eval "$wx_cv_use_choicedlg"
13171
13172           if test x"$enablestring" = xdisable; then
13173             if test $wxUSE_CHOICEDLG = no; then
13174               result=yes
13175             else
13176               result=no
13177             fi
13178           else
13179             result=$wxUSE_CHOICEDLG
13180           fi
13181
13182           { echo "$as_me:$LINENO: result: $result" >&5
13183 echo "${ECHO_T}$result" >&6; }
13184
13185
13186           enablestring=
13187           defaultval=$wxUSE_ALL_FEATURES
13188           if test -z "$defaultval"; then
13189               if test x"$enablestring" = xdisable; then
13190                   defaultval=yes
13191               else
13192                   defaultval=no
13193               fi
13194           fi
13195
13196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13197 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13198           # Check whether --enable-coldlg was given.
13199 if test "${enable_coldlg+set}" = set; then
13200   enableval=$enable_coldlg;
13201                           if test "$enableval" = yes; then
13202                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13203                           else
13204                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13205                           fi
13206
13207 else
13208
13209                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13210
13211 fi
13212
13213
13214           eval "$wx_cv_use_coldlg"
13215
13216           if test x"$enablestring" = xdisable; then
13217             if test $wxUSE_COLOURDLG = no; then
13218               result=yes
13219             else
13220               result=no
13221             fi
13222           else
13223             result=$wxUSE_COLOURDLG
13224           fi
13225
13226           { echo "$as_me:$LINENO: result: $result" >&5
13227 echo "${ECHO_T}$result" >&6; }
13228
13229
13230           enablestring=
13231           defaultval=$wxUSE_ALL_FEATURES
13232           if test -z "$defaultval"; then
13233               if test x"$enablestring" = xdisable; then
13234                   defaultval=yes
13235               else
13236                   defaultval=no
13237               fi
13238           fi
13239
13240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13241 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13242           # Check whether --enable-filedlg was given.
13243 if test "${enable_filedlg+set}" = set; then
13244   enableval=$enable_filedlg;
13245                           if test "$enableval" = yes; then
13246                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13247                           else
13248                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13249                           fi
13250
13251 else
13252
13253                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13254
13255 fi
13256
13257
13258           eval "$wx_cv_use_filedlg"
13259
13260           if test x"$enablestring" = xdisable; then
13261             if test $wxUSE_FILEDLG = no; then
13262               result=yes
13263             else
13264               result=no
13265             fi
13266           else
13267             result=$wxUSE_FILEDLG
13268           fi
13269
13270           { echo "$as_me:$LINENO: result: $result" >&5
13271 echo "${ECHO_T}$result" >&6; }
13272
13273
13274           enablestring=
13275           defaultval=$wxUSE_ALL_FEATURES
13276           if test -z "$defaultval"; then
13277               if test x"$enablestring" = xdisable; then
13278                   defaultval=yes
13279               else
13280                   defaultval=no
13281               fi
13282           fi
13283
13284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13285 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13286           # Check whether --enable-finddlg was given.
13287 if test "${enable_finddlg+set}" = set; then
13288   enableval=$enable_finddlg;
13289                           if test "$enableval" = yes; then
13290                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13291                           else
13292                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13293                           fi
13294
13295 else
13296
13297                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13298
13299 fi
13300
13301
13302           eval "$wx_cv_use_finddlg"
13303
13304           if test x"$enablestring" = xdisable; then
13305             if test $wxUSE_FINDREPLDLG = no; then
13306               result=yes
13307             else
13308               result=no
13309             fi
13310           else
13311             result=$wxUSE_FINDREPLDLG
13312           fi
13313
13314           { echo "$as_me:$LINENO: result: $result" >&5
13315 echo "${ECHO_T}$result" >&6; }
13316
13317
13318           enablestring=
13319           defaultval=$wxUSE_ALL_FEATURES
13320           if test -z "$defaultval"; then
13321               if test x"$enablestring" = xdisable; then
13322                   defaultval=yes
13323               else
13324                   defaultval=no
13325               fi
13326           fi
13327
13328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13329 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13330           # Check whether --enable-fontdlg was given.
13331 if test "${enable_fontdlg+set}" = set; then
13332   enableval=$enable_fontdlg;
13333                           if test "$enableval" = yes; then
13334                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13335                           else
13336                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13337                           fi
13338
13339 else
13340
13341                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13342
13343 fi
13344
13345
13346           eval "$wx_cv_use_fontdlg"
13347
13348           if test x"$enablestring" = xdisable; then
13349             if test $wxUSE_FONTDLG = no; then
13350               result=yes
13351             else
13352               result=no
13353             fi
13354           else
13355             result=$wxUSE_FONTDLG
13356           fi
13357
13358           { echo "$as_me:$LINENO: result: $result" >&5
13359 echo "${ECHO_T}$result" >&6; }
13360
13361
13362           enablestring=
13363           defaultval=$wxUSE_ALL_FEATURES
13364           if test -z "$defaultval"; then
13365               if test x"$enablestring" = xdisable; then
13366                   defaultval=yes
13367               else
13368                   defaultval=no
13369               fi
13370           fi
13371
13372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13373 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13374           # Check whether --enable-dirdlg was given.
13375 if test "${enable_dirdlg+set}" = set; then
13376   enableval=$enable_dirdlg;
13377                           if test "$enableval" = yes; then
13378                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13379                           else
13380                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13381                           fi
13382
13383 else
13384
13385                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13386
13387 fi
13388
13389
13390           eval "$wx_cv_use_dirdlg"
13391
13392           if test x"$enablestring" = xdisable; then
13393             if test $wxUSE_DIRDLG = no; then
13394               result=yes
13395             else
13396               result=no
13397             fi
13398           else
13399             result=$wxUSE_DIRDLG
13400           fi
13401
13402           { echo "$as_me:$LINENO: result: $result" >&5
13403 echo "${ECHO_T}$result" >&6; }
13404
13405
13406           enablestring=
13407           defaultval=$wxUSE_ALL_FEATURES
13408           if test -z "$defaultval"; then
13409               if test x"$enablestring" = xdisable; then
13410                   defaultval=yes
13411               else
13412                   defaultval=no
13413               fi
13414           fi
13415
13416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13417 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13418           # Check whether --enable-msgdlg was given.
13419 if test "${enable_msgdlg+set}" = set; then
13420   enableval=$enable_msgdlg;
13421                           if test "$enableval" = yes; then
13422                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13423                           else
13424                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13425                           fi
13426
13427 else
13428
13429                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13430
13431 fi
13432
13433
13434           eval "$wx_cv_use_msgdlg"
13435
13436           if test x"$enablestring" = xdisable; then
13437             if test $wxUSE_MSGDLG = no; then
13438               result=yes
13439             else
13440               result=no
13441             fi
13442           else
13443             result=$wxUSE_MSGDLG
13444           fi
13445
13446           { echo "$as_me:$LINENO: result: $result" >&5
13447 echo "${ECHO_T}$result" >&6; }
13448
13449
13450           enablestring=
13451           defaultval=$wxUSE_ALL_FEATURES
13452           if test -z "$defaultval"; then
13453               if test x"$enablestring" = xdisable; then
13454                   defaultval=yes
13455               else
13456                   defaultval=no
13457               fi
13458           fi
13459
13460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13461 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13462           # Check whether --enable-numberdlg was given.
13463 if test "${enable_numberdlg+set}" = set; then
13464   enableval=$enable_numberdlg;
13465                           if test "$enableval" = yes; then
13466                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13467                           else
13468                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13469                           fi
13470
13471 else
13472
13473                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13474
13475 fi
13476
13477
13478           eval "$wx_cv_use_numberdlg"
13479
13480           if test x"$enablestring" = xdisable; then
13481             if test $wxUSE_NUMBERDLG = no; then
13482               result=yes
13483             else
13484               result=no
13485             fi
13486           else
13487             result=$wxUSE_NUMBERDLG
13488           fi
13489
13490           { echo "$as_me:$LINENO: result: $result" >&5
13491 echo "${ECHO_T}$result" >&6; }
13492
13493
13494           enablestring=
13495           defaultval=$wxUSE_ALL_FEATURES
13496           if test -z "$defaultval"; then
13497               if test x"$enablestring" = xdisable; then
13498                   defaultval=yes
13499               else
13500                   defaultval=no
13501               fi
13502           fi
13503
13504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13505 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13506           # Check whether --enable-splash was given.
13507 if test "${enable_splash+set}" = set; then
13508   enableval=$enable_splash;
13509                           if test "$enableval" = yes; then
13510                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13511                           else
13512                             wx_cv_use_splash='wxUSE_SPLASH=no'
13513                           fi
13514
13515 else
13516
13517                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13518
13519 fi
13520
13521
13522           eval "$wx_cv_use_splash"
13523
13524           if test x"$enablestring" = xdisable; then
13525             if test $wxUSE_SPLASH = no; then
13526               result=yes
13527             else
13528               result=no
13529             fi
13530           else
13531             result=$wxUSE_SPLASH
13532           fi
13533
13534           { echo "$as_me:$LINENO: result: $result" >&5
13535 echo "${ECHO_T}$result" >&6; }
13536
13537
13538           enablestring=
13539           defaultval=$wxUSE_ALL_FEATURES
13540           if test -z "$defaultval"; then
13541               if test x"$enablestring" = xdisable; then
13542                   defaultval=yes
13543               else
13544                   defaultval=no
13545               fi
13546           fi
13547
13548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13549 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13550           # Check whether --enable-textdlg was given.
13551 if test "${enable_textdlg+set}" = set; then
13552   enableval=$enable_textdlg;
13553                           if test "$enableval" = yes; then
13554                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13555                           else
13556                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13557                           fi
13558
13559 else
13560
13561                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13562
13563 fi
13564
13565
13566           eval "$wx_cv_use_textdlg"
13567
13568           if test x"$enablestring" = xdisable; then
13569             if test $wxUSE_TEXTDLG = no; then
13570               result=yes
13571             else
13572               result=no
13573             fi
13574           else
13575             result=$wxUSE_TEXTDLG
13576           fi
13577
13578           { echo "$as_me:$LINENO: result: $result" >&5
13579 echo "${ECHO_T}$result" >&6; }
13580
13581
13582           enablestring=
13583           defaultval=$wxUSE_ALL_FEATURES
13584           if test -z "$defaultval"; then
13585               if test x"$enablestring" = xdisable; then
13586                   defaultval=yes
13587               else
13588                   defaultval=no
13589               fi
13590           fi
13591
13592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13593 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13594           # Check whether --enable-tipdlg was given.
13595 if test "${enable_tipdlg+set}" = set; then
13596   enableval=$enable_tipdlg;
13597                           if test "$enableval" = yes; then
13598                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13599                           else
13600                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13601                           fi
13602
13603 else
13604
13605                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13606
13607 fi
13608
13609
13610           eval "$wx_cv_use_tipdlg"
13611
13612           if test x"$enablestring" = xdisable; then
13613             if test $wxUSE_STARTUP_TIPS = no; then
13614               result=yes
13615             else
13616               result=no
13617             fi
13618           else
13619             result=$wxUSE_STARTUP_TIPS
13620           fi
13621
13622           { echo "$as_me:$LINENO: result: $result" >&5
13623 echo "${ECHO_T}$result" >&6; }
13624
13625
13626           enablestring=
13627           defaultval=$wxUSE_ALL_FEATURES
13628           if test -z "$defaultval"; then
13629               if test x"$enablestring" = xdisable; then
13630                   defaultval=yes
13631               else
13632                   defaultval=no
13633               fi
13634           fi
13635
13636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13637 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13638           # Check whether --enable-progressdlg was given.
13639 if test "${enable_progressdlg+set}" = set; then
13640   enableval=$enable_progressdlg;
13641                           if test "$enableval" = yes; then
13642                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13643                           else
13644                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13645                           fi
13646
13647 else
13648
13649                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13650
13651 fi
13652
13653
13654           eval "$wx_cv_use_progressdlg"
13655
13656           if test x"$enablestring" = xdisable; then
13657             if test $wxUSE_PROGRESSDLG = no; then
13658               result=yes
13659             else
13660               result=no
13661             fi
13662           else
13663             result=$wxUSE_PROGRESSDLG
13664           fi
13665
13666           { echo "$as_me:$LINENO: result: $result" >&5
13667 echo "${ECHO_T}$result" >&6; }
13668
13669
13670           enablestring=
13671           defaultval=$wxUSE_ALL_FEATURES
13672           if test -z "$defaultval"; then
13673               if test x"$enablestring" = xdisable; then
13674                   defaultval=yes
13675               else
13676                   defaultval=no
13677               fi
13678           fi
13679
13680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13681 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13682           # Check whether --enable-wizarddlg was given.
13683 if test "${enable_wizarddlg+set}" = set; then
13684   enableval=$enable_wizarddlg;
13685                           if test "$enableval" = yes; then
13686                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13687                           else
13688                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13689                           fi
13690
13691 else
13692
13693                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13694
13695 fi
13696
13697
13698           eval "$wx_cv_use_wizarddlg"
13699
13700           if test x"$enablestring" = xdisable; then
13701             if test $wxUSE_WIZARDDLG = no; then
13702               result=yes
13703             else
13704               result=no
13705             fi
13706           else
13707             result=$wxUSE_WIZARDDLG
13708           fi
13709
13710           { echo "$as_me:$LINENO: result: $result" >&5
13711 echo "${ECHO_T}$result" >&6; }
13712
13713
13714
13715
13716           enablestring=
13717           defaultval=$wxUSE_ALL_FEATURES
13718           if test -z "$defaultval"; then
13719               if test x"$enablestring" = xdisable; then
13720                   defaultval=yes
13721               else
13722                   defaultval=no
13723               fi
13724           fi
13725
13726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13727 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13728           # Check whether --enable-menus was given.
13729 if test "${enable_menus+set}" = set; then
13730   enableval=$enable_menus;
13731                           if test "$enableval" = yes; then
13732                             wx_cv_use_menus='wxUSE_MENUS=yes'
13733                           else
13734                             wx_cv_use_menus='wxUSE_MENUS=no'
13735                           fi
13736
13737 else
13738
13739                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13740
13741 fi
13742
13743
13744           eval "$wx_cv_use_menus"
13745
13746           if test x"$enablestring" = xdisable; then
13747             if test $wxUSE_MENUS = no; then
13748               result=yes
13749             else
13750               result=no
13751             fi
13752           else
13753             result=$wxUSE_MENUS
13754           fi
13755
13756           { echo "$as_me:$LINENO: result: $result" >&5
13757 echo "${ECHO_T}$result" >&6; }
13758
13759
13760           enablestring=
13761           defaultval=$wxUSE_ALL_FEATURES
13762           if test -z "$defaultval"; then
13763               if test x"$enablestring" = xdisable; then
13764                   defaultval=yes
13765               else
13766                   defaultval=no
13767               fi
13768           fi
13769
13770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13771 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13772           # Check whether --enable-miniframe was given.
13773 if test "${enable_miniframe+set}" = set; then
13774   enableval=$enable_miniframe;
13775                           if test "$enableval" = yes; then
13776                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13777                           else
13778                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13779                           fi
13780
13781 else
13782
13783                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13784
13785 fi
13786
13787
13788           eval "$wx_cv_use_miniframe"
13789
13790           if test x"$enablestring" = xdisable; then
13791             if test $wxUSE_MINIFRAME = no; then
13792               result=yes
13793             else
13794               result=no
13795             fi
13796           else
13797             result=$wxUSE_MINIFRAME
13798           fi
13799
13800           { echo "$as_me:$LINENO: result: $result" >&5
13801 echo "${ECHO_T}$result" >&6; }
13802
13803
13804           enablestring=
13805           defaultval=$wxUSE_ALL_FEATURES
13806           if test -z "$defaultval"; then
13807               if test x"$enablestring" = xdisable; then
13808                   defaultval=yes
13809               else
13810                   defaultval=no
13811               fi
13812           fi
13813
13814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13815 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13816           # Check whether --enable-tooltips was given.
13817 if test "${enable_tooltips+set}" = set; then
13818   enableval=$enable_tooltips;
13819                           if test "$enableval" = yes; then
13820                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13821                           else
13822                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13823                           fi
13824
13825 else
13826
13827                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13828
13829 fi
13830
13831
13832           eval "$wx_cv_use_tooltips"
13833
13834           if test x"$enablestring" = xdisable; then
13835             if test $wxUSE_TOOLTIPS = no; then
13836               result=yes
13837             else
13838               result=no
13839             fi
13840           else
13841             result=$wxUSE_TOOLTIPS
13842           fi
13843
13844           { echo "$as_me:$LINENO: result: $result" >&5
13845 echo "${ECHO_T}$result" >&6; }
13846
13847
13848           enablestring=
13849           defaultval=$wxUSE_ALL_FEATURES
13850           if test -z "$defaultval"; then
13851               if test x"$enablestring" = xdisable; then
13852                   defaultval=yes
13853               else
13854                   defaultval=no
13855               fi
13856           fi
13857
13858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13859 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13860           # Check whether --enable-splines was given.
13861 if test "${enable_splines+set}" = set; then
13862   enableval=$enable_splines;
13863                           if test "$enableval" = yes; then
13864                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13865                           else
13866                             wx_cv_use_splines='wxUSE_SPLINES=no'
13867                           fi
13868
13869 else
13870
13871                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13872
13873 fi
13874
13875
13876           eval "$wx_cv_use_splines"
13877
13878           if test x"$enablestring" = xdisable; then
13879             if test $wxUSE_SPLINES = no; then
13880               result=yes
13881             else
13882               result=no
13883             fi
13884           else
13885             result=$wxUSE_SPLINES
13886           fi
13887
13888           { echo "$as_me:$LINENO: result: $result" >&5
13889 echo "${ECHO_T}$result" >&6; }
13890
13891
13892           enablestring=
13893           defaultval=$wxUSE_ALL_FEATURES
13894           if test -z "$defaultval"; then
13895               if test x"$enablestring" = xdisable; then
13896                   defaultval=yes
13897               else
13898                   defaultval=no
13899               fi
13900           fi
13901
13902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13903 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13904           # Check whether --enable-mousewheel was given.
13905 if test "${enable_mousewheel+set}" = set; then
13906   enableval=$enable_mousewheel;
13907                           if test "$enableval" = yes; then
13908                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13909                           else
13910                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13911                           fi
13912
13913 else
13914
13915                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13916
13917 fi
13918
13919
13920           eval "$wx_cv_use_mousewheel"
13921
13922           if test x"$enablestring" = xdisable; then
13923             if test $wxUSE_MOUSEWHEEL = no; then
13924               result=yes
13925             else
13926               result=no
13927             fi
13928           else
13929             result=$wxUSE_MOUSEWHEEL
13930           fi
13931
13932           { echo "$as_me:$LINENO: result: $result" >&5
13933 echo "${ECHO_T}$result" >&6; }
13934
13935
13936           enablestring=
13937           defaultval=$wxUSE_ALL_FEATURES
13938           if test -z "$defaultval"; then
13939               if test x"$enablestring" = xdisable; then
13940                   defaultval=yes
13941               else
13942                   defaultval=no
13943               fi
13944           fi
13945
13946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13947 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13948           # Check whether --enable-validators was given.
13949 if test "${enable_validators+set}" = set; then
13950   enableval=$enable_validators;
13951                           if test "$enableval" = yes; then
13952                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13953                           else
13954                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13955                           fi
13956
13957 else
13958
13959                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13960
13961 fi
13962
13963
13964           eval "$wx_cv_use_validators"
13965
13966           if test x"$enablestring" = xdisable; then
13967             if test $wxUSE_VALIDATORS = no; then
13968               result=yes
13969             else
13970               result=no
13971             fi
13972           else
13973             result=$wxUSE_VALIDATORS
13974           fi
13975
13976           { echo "$as_me:$LINENO: result: $result" >&5
13977 echo "${ECHO_T}$result" >&6; }
13978
13979
13980           enablestring=
13981           defaultval=$wxUSE_ALL_FEATURES
13982           if test -z "$defaultval"; then
13983               if test x"$enablestring" = xdisable; then
13984                   defaultval=yes
13985               else
13986                   defaultval=no
13987               fi
13988           fi
13989
13990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13991 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13992           # Check whether --enable-busyinfo was given.
13993 if test "${enable_busyinfo+set}" = set; then
13994   enableval=$enable_busyinfo;
13995                           if test "$enableval" = yes; then
13996                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13997                           else
13998                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13999                           fi
14000
14001 else
14002
14003                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14004
14005 fi
14006
14007
14008           eval "$wx_cv_use_busyinfo"
14009
14010           if test x"$enablestring" = xdisable; then
14011             if test $wxUSE_BUSYINFO = no; then
14012               result=yes
14013             else
14014               result=no
14015             fi
14016           else
14017             result=$wxUSE_BUSYINFO
14018           fi
14019
14020           { echo "$as_me:$LINENO: result: $result" >&5
14021 echo "${ECHO_T}$result" >&6; }
14022
14023
14024           enablestring=
14025           defaultval=$wxUSE_ALL_FEATURES
14026           if test -z "$defaultval"; then
14027               if test x"$enablestring" = xdisable; then
14028                   defaultval=yes
14029               else
14030                   defaultval=no
14031               fi
14032           fi
14033
14034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
14035 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
14036           # Check whether --enable-hotkey was given.
14037 if test "${enable_hotkey+set}" = set; then
14038   enableval=$enable_hotkey;
14039                           if test "$enableval" = yes; then
14040                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
14041                           else
14042                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
14043                           fi
14044
14045 else
14046
14047                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
14048
14049 fi
14050
14051
14052           eval "$wx_cv_use_hotkey"
14053
14054           if test x"$enablestring" = xdisable; then
14055             if test $wxUSE_HOTKEY = no; then
14056               result=yes
14057             else
14058               result=no
14059             fi
14060           else
14061             result=$wxUSE_HOTKEY
14062           fi
14063
14064           { echo "$as_me:$LINENO: result: $result" >&5
14065 echo "${ECHO_T}$result" >&6; }
14066
14067
14068           enablestring=
14069           defaultval=$wxUSE_ALL_FEATURES
14070           if test -z "$defaultval"; then
14071               if test x"$enablestring" = xdisable; then
14072                   defaultval=yes
14073               else
14074                   defaultval=no
14075               fi
14076           fi
14077
14078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14079 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14080           # Check whether --enable-joystick was given.
14081 if test "${enable_joystick+set}" = set; then
14082   enableval=$enable_joystick;
14083                           if test "$enableval" = yes; then
14084                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14085                           else
14086                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14087                           fi
14088
14089 else
14090
14091                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14092
14093 fi
14094
14095
14096           eval "$wx_cv_use_joystick"
14097
14098           if test x"$enablestring" = xdisable; then
14099             if test $wxUSE_JOYSTICK = no; then
14100               result=yes
14101             else
14102               result=no
14103             fi
14104           else
14105             result=$wxUSE_JOYSTICK
14106           fi
14107
14108           { echo "$as_me:$LINENO: result: $result" >&5
14109 echo "${ECHO_T}$result" >&6; }
14110
14111
14112           enablestring=
14113           defaultval=$wxUSE_ALL_FEATURES
14114           if test -z "$defaultval"; then
14115               if test x"$enablestring" = xdisable; then
14116                   defaultval=yes
14117               else
14118                   defaultval=no
14119               fi
14120           fi
14121
14122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14123 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14124           # Check whether --enable-metafile was given.
14125 if test "${enable_metafile+set}" = set; then
14126   enableval=$enable_metafile;
14127                           if test "$enableval" = yes; then
14128                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14129                           else
14130                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14131                           fi
14132
14133 else
14134
14135                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14136
14137 fi
14138
14139
14140           eval "$wx_cv_use_metafile"
14141
14142           if test x"$enablestring" = xdisable; then
14143             if test $wxUSE_METAFILE = no; then
14144               result=yes
14145             else
14146               result=no
14147             fi
14148           else
14149             result=$wxUSE_METAFILE
14150           fi
14151
14152           { echo "$as_me:$LINENO: result: $result" >&5
14153 echo "${ECHO_T}$result" >&6; }
14154
14155
14156           enablestring=
14157           defaultval=$wxUSE_ALL_FEATURES
14158           if test -z "$defaultval"; then
14159               if test x"$enablestring" = xdisable; then
14160                   defaultval=yes
14161               else
14162                   defaultval=no
14163               fi
14164           fi
14165
14166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14167 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14168           # Check whether --enable-dragimage was given.
14169 if test "${enable_dragimage+set}" = set; then
14170   enableval=$enable_dragimage;
14171                           if test "$enableval" = yes; then
14172                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14173                           else
14174                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14175                           fi
14176
14177 else
14178
14179                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14180
14181 fi
14182
14183
14184           eval "$wx_cv_use_dragimage"
14185
14186           if test x"$enablestring" = xdisable; then
14187             if test $wxUSE_DRAGIMAGE = no; then
14188               result=yes
14189             else
14190               result=no
14191             fi
14192           else
14193             result=$wxUSE_DRAGIMAGE
14194           fi
14195
14196           { echo "$as_me:$LINENO: result: $result" >&5
14197 echo "${ECHO_T}$result" >&6; }
14198
14199
14200           enablestring=
14201           defaultval=$wxUSE_ALL_FEATURES
14202           if test -z "$defaultval"; then
14203               if test x"$enablestring" = xdisable; then
14204                   defaultval=yes
14205               else
14206                   defaultval=no
14207               fi
14208           fi
14209
14210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14211 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14212           # Check whether --enable-accessibility was given.
14213 if test "${enable_accessibility+set}" = set; then
14214   enableval=$enable_accessibility;
14215                           if test "$enableval" = yes; then
14216                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14217                           else
14218                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14219                           fi
14220
14221 else
14222
14223                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14224
14225 fi
14226
14227
14228           eval "$wx_cv_use_accessibility"
14229
14230           if test x"$enablestring" = xdisable; then
14231             if test $wxUSE_ACCESSIBILITY = no; then
14232               result=yes
14233             else
14234               result=no
14235             fi
14236           else
14237             result=$wxUSE_ACCESSIBILITY
14238           fi
14239
14240           { echo "$as_me:$LINENO: result: $result" >&5
14241 echo "${ECHO_T}$result" >&6; }
14242
14243
14244           enablestring=
14245           defaultval=$wxUSE_ALL_FEATURES
14246           if test -z "$defaultval"; then
14247               if test x"$enablestring" = xdisable; then
14248                   defaultval=yes
14249               else
14250                   defaultval=no
14251               fi
14252           fi
14253
14254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14255 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14256           # Check whether --enable-uiactionsim was given.
14257 if test "${enable_uiactionsim+set}" = set; then
14258   enableval=$enable_uiactionsim;
14259                           if test "$enableval" = yes; then
14260                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14261                           else
14262                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14263                           fi
14264
14265 else
14266
14267                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14268
14269 fi
14270
14271
14272           eval "$wx_cv_use_uiactionsim"
14273
14274           if test x"$enablestring" = xdisable; then
14275             if test $wxUSE_UIACTIONSIMULATOR = no; then
14276               result=yes
14277             else
14278               result=no
14279             fi
14280           else
14281             result=$wxUSE_UIACTIONSIMULATOR
14282           fi
14283
14284           { echo "$as_me:$LINENO: result: $result" >&5
14285 echo "${ECHO_T}$result" >&6; }
14286
14287
14288           enablestring=
14289           defaultval=$wxUSE_ALL_FEATURES
14290           if test -z "$defaultval"; then
14291               if test x"$enablestring" = xdisable; then
14292                   defaultval=yes
14293               else
14294                   defaultval=no
14295               fi
14296           fi
14297
14298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14299 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14300           # Check whether --enable-dctransform was given.
14301 if test "${enable_dctransform+set}" = set; then
14302   enableval=$enable_dctransform;
14303                           if test "$enableval" = yes; then
14304                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14305                           else
14306                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14307                           fi
14308
14309 else
14310
14311                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14312
14313 fi
14314
14315
14316           eval "$wx_cv_use_dctransform"
14317
14318           if test x"$enablestring" = xdisable; then
14319             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14320               result=yes
14321             else
14322               result=no
14323             fi
14324           else
14325             result=$wxUSE_DC_TRANSFORM_MATRIX
14326           fi
14327
14328           { echo "$as_me:$LINENO: result: $result" >&5
14329 echo "${ECHO_T}$result" >&6; }
14330
14331
14332           enablestring=
14333           defaultval=$wxUSE_ALL_FEATURES
14334           if test -z "$defaultval"; then
14335               if test x"$enablestring" = xdisable; then
14336                   defaultval=yes
14337               else
14338                   defaultval=no
14339               fi
14340           fi
14341
14342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14343 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14344           # Check whether --enable-webviewwebkit was given.
14345 if test "${enable_webviewwebkit+set}" = set; then
14346   enableval=$enable_webviewwebkit;
14347                           if test "$enableval" = yes; then
14348                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14349                           else
14350                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14351                           fi
14352
14353 else
14354
14355                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14356
14357 fi
14358
14359
14360           eval "$wx_cv_use_webviewwebkit"
14361
14362           if test x"$enablestring" = xdisable; then
14363             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14364               result=yes
14365             else
14366               result=no
14367             fi
14368           else
14369             result=$wxUSE_WEBVIEW_WEBKIT
14370           fi
14371
14372           { echo "$as_me:$LINENO: result: $result" >&5
14373 echo "${ECHO_T}$result" >&6; }
14374
14375
14376
14377
14378           enablestring=
14379           defaultval=$wxUSE_ALL_FEATURES
14380           if test -z "$defaultval"; then
14381               if test x"$enablestring" = xdisable; then
14382                   defaultval=yes
14383               else
14384                   defaultval=no
14385               fi
14386           fi
14387
14388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14389 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14390           # Check whether --enable-palette was given.
14391 if test "${enable_palette+set}" = set; then
14392   enableval=$enable_palette;
14393                           if test "$enableval" = yes; then
14394                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14395                           else
14396                             wx_cv_use_palette='wxUSE_PALETTE=no'
14397                           fi
14398
14399 else
14400
14401                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14402
14403 fi
14404
14405
14406           eval "$wx_cv_use_palette"
14407
14408           if test x"$enablestring" = xdisable; then
14409             if test $wxUSE_PALETTE = no; then
14410               result=yes
14411             else
14412               result=no
14413             fi
14414           else
14415             result=$wxUSE_PALETTE
14416           fi
14417
14418           { echo "$as_me:$LINENO: result: $result" >&5
14419 echo "${ECHO_T}$result" >&6; }
14420
14421
14422           enablestring=
14423           defaultval=$wxUSE_ALL_FEATURES
14424           if test -z "$defaultval"; then
14425               if test x"$enablestring" = xdisable; then
14426                   defaultval=yes
14427               else
14428                   defaultval=no
14429               fi
14430           fi
14431
14432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14433 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14434           # Check whether --enable-image was given.
14435 if test "${enable_image+set}" = set; then
14436   enableval=$enable_image;
14437                           if test "$enableval" = yes; then
14438                             wx_cv_use_image='wxUSE_IMAGE=yes'
14439                           else
14440                             wx_cv_use_image='wxUSE_IMAGE=no'
14441                           fi
14442
14443 else
14444
14445                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14446
14447 fi
14448
14449
14450           eval "$wx_cv_use_image"
14451
14452           if test x"$enablestring" = xdisable; then
14453             if test $wxUSE_IMAGE = no; then
14454               result=yes
14455             else
14456               result=no
14457             fi
14458           else
14459             result=$wxUSE_IMAGE
14460           fi
14461
14462           { echo "$as_me:$LINENO: result: $result" >&5
14463 echo "${ECHO_T}$result" >&6; }
14464
14465
14466           enablestring=
14467           defaultval=$wxUSE_ALL_FEATURES
14468           if test -z "$defaultval"; then
14469               if test x"$enablestring" = xdisable; then
14470                   defaultval=yes
14471               else
14472                   defaultval=no
14473               fi
14474           fi
14475
14476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14477 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14478           # Check whether --enable-gif was given.
14479 if test "${enable_gif+set}" = set; then
14480   enableval=$enable_gif;
14481                           if test "$enableval" = yes; then
14482                             wx_cv_use_gif='wxUSE_GIF=yes'
14483                           else
14484                             wx_cv_use_gif='wxUSE_GIF=no'
14485                           fi
14486
14487 else
14488
14489                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14490
14491 fi
14492
14493
14494           eval "$wx_cv_use_gif"
14495
14496           if test x"$enablestring" = xdisable; then
14497             if test $wxUSE_GIF = no; then
14498               result=yes
14499             else
14500               result=no
14501             fi
14502           else
14503             result=$wxUSE_GIF
14504           fi
14505
14506           { echo "$as_me:$LINENO: result: $result" >&5
14507 echo "${ECHO_T}$result" >&6; }
14508
14509
14510           enablestring=
14511           defaultval=$wxUSE_ALL_FEATURES
14512           if test -z "$defaultval"; then
14513               if test x"$enablestring" = xdisable; then
14514                   defaultval=yes
14515               else
14516                   defaultval=no
14517               fi
14518           fi
14519
14520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14521 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14522           # Check whether --enable-pcx was given.
14523 if test "${enable_pcx+set}" = set; then
14524   enableval=$enable_pcx;
14525                           if test "$enableval" = yes; then
14526                             wx_cv_use_pcx='wxUSE_PCX=yes'
14527                           else
14528                             wx_cv_use_pcx='wxUSE_PCX=no'
14529                           fi
14530
14531 else
14532
14533                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14534
14535 fi
14536
14537
14538           eval "$wx_cv_use_pcx"
14539
14540           if test x"$enablestring" = xdisable; then
14541             if test $wxUSE_PCX = no; then
14542               result=yes
14543             else
14544               result=no
14545             fi
14546           else
14547             result=$wxUSE_PCX
14548           fi
14549
14550           { echo "$as_me:$LINENO: result: $result" >&5
14551 echo "${ECHO_T}$result" >&6; }
14552
14553
14554           enablestring=
14555           defaultval=$wxUSE_ALL_FEATURES
14556           if test -z "$defaultval"; then
14557               if test x"$enablestring" = xdisable; then
14558                   defaultval=yes
14559               else
14560                   defaultval=no
14561               fi
14562           fi
14563
14564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14565 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14566           # Check whether --enable-tga was given.
14567 if test "${enable_tga+set}" = set; then
14568   enableval=$enable_tga;
14569                           if test "$enableval" = yes; then
14570                             wx_cv_use_tga='wxUSE_TGA=yes'
14571                           else
14572                             wx_cv_use_tga='wxUSE_TGA=no'
14573                           fi
14574
14575 else
14576
14577                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14578
14579 fi
14580
14581
14582           eval "$wx_cv_use_tga"
14583
14584           if test x"$enablestring" = xdisable; then
14585             if test $wxUSE_TGA = no; then
14586               result=yes
14587             else
14588               result=no
14589             fi
14590           else
14591             result=$wxUSE_TGA
14592           fi
14593
14594           { echo "$as_me:$LINENO: result: $result" >&5
14595 echo "${ECHO_T}$result" >&6; }
14596
14597
14598           enablestring=
14599           defaultval=$wxUSE_ALL_FEATURES
14600           if test -z "$defaultval"; then
14601               if test x"$enablestring" = xdisable; then
14602                   defaultval=yes
14603               else
14604                   defaultval=no
14605               fi
14606           fi
14607
14608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14609 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14610           # Check whether --enable-iff was given.
14611 if test "${enable_iff+set}" = set; then
14612   enableval=$enable_iff;
14613                           if test "$enableval" = yes; then
14614                             wx_cv_use_iff='wxUSE_IFF=yes'
14615                           else
14616                             wx_cv_use_iff='wxUSE_IFF=no'
14617                           fi
14618
14619 else
14620
14621                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14622
14623 fi
14624
14625
14626           eval "$wx_cv_use_iff"
14627
14628           if test x"$enablestring" = xdisable; then
14629             if test $wxUSE_IFF = no; then
14630               result=yes
14631             else
14632               result=no
14633             fi
14634           else
14635             result=$wxUSE_IFF
14636           fi
14637
14638           { echo "$as_me:$LINENO: result: $result" >&5
14639 echo "${ECHO_T}$result" >&6; }
14640
14641
14642           enablestring=
14643           defaultval=$wxUSE_ALL_FEATURES
14644           if test -z "$defaultval"; then
14645               if test x"$enablestring" = xdisable; then
14646                   defaultval=yes
14647               else
14648                   defaultval=no
14649               fi
14650           fi
14651
14652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14653 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14654           # Check whether --enable-pnm was given.
14655 if test "${enable_pnm+set}" = set; then
14656   enableval=$enable_pnm;
14657                           if test "$enableval" = yes; then
14658                             wx_cv_use_pnm='wxUSE_PNM=yes'
14659                           else
14660                             wx_cv_use_pnm='wxUSE_PNM=no'
14661                           fi
14662
14663 else
14664
14665                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14666
14667 fi
14668
14669
14670           eval "$wx_cv_use_pnm"
14671
14672           if test x"$enablestring" = xdisable; then
14673             if test $wxUSE_PNM = no; then
14674               result=yes
14675             else
14676               result=no
14677             fi
14678           else
14679             result=$wxUSE_PNM
14680           fi
14681
14682           { echo "$as_me:$LINENO: result: $result" >&5
14683 echo "${ECHO_T}$result" >&6; }
14684
14685
14686           enablestring=
14687           defaultval=$wxUSE_ALL_FEATURES
14688           if test -z "$defaultval"; then
14689               if test x"$enablestring" = xdisable; then
14690                   defaultval=yes
14691               else
14692                   defaultval=no
14693               fi
14694           fi
14695
14696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14697 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14698           # Check whether --enable-xpm was given.
14699 if test "${enable_xpm+set}" = set; then
14700   enableval=$enable_xpm;
14701                           if test "$enableval" = yes; then
14702                             wx_cv_use_xpm='wxUSE_XPM=yes'
14703                           else
14704                             wx_cv_use_xpm='wxUSE_XPM=no'
14705                           fi
14706
14707 else
14708
14709                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14710
14711 fi
14712
14713
14714           eval "$wx_cv_use_xpm"
14715
14716           if test x"$enablestring" = xdisable; then
14717             if test $wxUSE_XPM = no; then
14718               result=yes
14719             else
14720               result=no
14721             fi
14722           else
14723             result=$wxUSE_XPM
14724           fi
14725
14726           { echo "$as_me:$LINENO: result: $result" >&5
14727 echo "${ECHO_T}$result" >&6; }
14728
14729
14730           enablestring=
14731           defaultval=$wxUSE_ALL_FEATURES
14732           if test -z "$defaultval"; then
14733               if test x"$enablestring" = xdisable; then
14734                   defaultval=yes
14735               else
14736                   defaultval=no
14737               fi
14738           fi
14739
14740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14741 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14742           # Check whether --enable-ico_cur was given.
14743 if test "${enable_ico_cur+set}" = set; then
14744   enableval=$enable_ico_cur;
14745                           if test "$enableval" = yes; then
14746                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14747                           else
14748                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14749                           fi
14750
14751 else
14752
14753                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14754
14755 fi
14756
14757
14758           eval "$wx_cv_use_ico_cur"
14759
14760           if test x"$enablestring" = xdisable; then
14761             if test $wxUSE_ICO_CUR = no; then
14762               result=yes
14763             else
14764               result=no
14765             fi
14766           else
14767             result=$wxUSE_ICO_CUR
14768           fi
14769
14770           { echo "$as_me:$LINENO: result: $result" >&5
14771 echo "${ECHO_T}$result" >&6; }
14772
14773
14774
14775
14776           enablestring=
14777           defaultval=$wxUSE_ALL_FEATURES
14778           if test -z "$defaultval"; then
14779               if test x"$enablestring" = xdisable; then
14780                   defaultval=yes
14781               else
14782                   defaultval=no
14783               fi
14784           fi
14785
14786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14787 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14788           # Check whether --enable-dccache was given.
14789 if test "${enable_dccache+set}" = set; then
14790   enableval=$enable_dccache;
14791                           if test "$enableval" = yes; then
14792                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14793                           else
14794                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14795                           fi
14796
14797 else
14798
14799                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14800
14801 fi
14802
14803
14804           eval "$wx_cv_use_dccache"
14805
14806           if test x"$enablestring" = xdisable; then
14807             if test $wxUSE_DC_CACHEING = no; then
14808               result=yes
14809             else
14810               result=no
14811             fi
14812           else
14813             result=$wxUSE_DC_CACHEING
14814           fi
14815
14816           { echo "$as_me:$LINENO: result: $result" >&5
14817 echo "${ECHO_T}$result" >&6; }
14818
14819
14820           enablestring=
14821           defaultval=$wxUSE_ALL_FEATURES
14822           if test -z "$defaultval"; then
14823               if test x"$enablestring" = xdisable; then
14824                   defaultval=yes
14825               else
14826                   defaultval=no
14827               fi
14828           fi
14829
14830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14831 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14832           # Check whether --enable-ps-in-msw was given.
14833 if test "${enable_ps_in_msw+set}" = set; then
14834   enableval=$enable_ps_in_msw;
14835                           if test "$enableval" = yes; then
14836                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14837                           else
14838                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14839                           fi
14840
14841 else
14842
14843                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14844
14845 fi
14846
14847
14848           eval "$wx_cv_use_ps_in_msw"
14849
14850           if test x"$enablestring" = xdisable; then
14851             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14852               result=yes
14853             else
14854               result=no
14855             fi
14856           else
14857             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14858           fi
14859
14860           { echo "$as_me:$LINENO: result: $result" >&5
14861 echo "${ECHO_T}$result" >&6; }
14862
14863
14864           enablestring=
14865           defaultval=$wxUSE_ALL_FEATURES
14866           if test -z "$defaultval"; then
14867               if test x"$enablestring" = xdisable; then
14868                   defaultval=yes
14869               else
14870                   defaultval=no
14871               fi
14872           fi
14873
14874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14875 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14876           # Check whether --enable-ownerdrawn was given.
14877 if test "${enable_ownerdrawn+set}" = set; then
14878   enableval=$enable_ownerdrawn;
14879                           if test "$enableval" = yes; then
14880                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14881                           else
14882                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14883                           fi
14884
14885 else
14886
14887                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14888
14889 fi
14890
14891
14892           eval "$wx_cv_use_ownerdrawn"
14893
14894           if test x"$enablestring" = xdisable; then
14895             if test $wxUSE_OWNER_DRAWN = no; then
14896               result=yes
14897             else
14898               result=no
14899             fi
14900           else
14901             result=$wxUSE_OWNER_DRAWN
14902           fi
14903
14904           { echo "$as_me:$LINENO: result: $result" >&5
14905 echo "${ECHO_T}$result" >&6; }
14906
14907
14908           enablestring=
14909           defaultval=$wxUSE_ALL_FEATURES
14910           if test -z "$defaultval"; then
14911               if test x"$enablestring" = xdisable; then
14912                   defaultval=yes
14913               else
14914                   defaultval=no
14915               fi
14916           fi
14917
14918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14919 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14920           # Check whether --enable-uxtheme was given.
14921 if test "${enable_uxtheme+set}" = set; then
14922   enableval=$enable_uxtheme;
14923                           if test "$enableval" = yes; then
14924                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14925                           else
14926                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14927                           fi
14928
14929 else
14930
14931                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14932
14933 fi
14934
14935
14936           eval "$wx_cv_use_uxtheme"
14937
14938           if test x"$enablestring" = xdisable; then
14939             if test $wxUSE_UXTHEME = no; then
14940               result=yes
14941             else
14942               result=no
14943             fi
14944           else
14945             result=$wxUSE_UXTHEME
14946           fi
14947
14948           { echo "$as_me:$LINENO: result: $result" >&5
14949 echo "${ECHO_T}$result" >&6; }
14950
14951
14952           enablestring=
14953           defaultval=$wxUSE_ALL_FEATURES
14954           if test -z "$defaultval"; then
14955               if test x"$enablestring" = xdisable; then
14956                   defaultval=yes
14957               else
14958                   defaultval=no
14959               fi
14960           fi
14961
14962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14963 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14964           # Check whether --enable-wxdib was given.
14965 if test "${enable_wxdib+set}" = set; then
14966   enableval=$enable_wxdib;
14967                           if test "$enableval" = yes; then
14968                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14969                           else
14970                             wx_cv_use_wxdib='wxUSE_DIB=no'
14971                           fi
14972
14973 else
14974
14975                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14976
14977 fi
14978
14979
14980           eval "$wx_cv_use_wxdib"
14981
14982           if test x"$enablestring" = xdisable; then
14983             if test $wxUSE_DIB = no; then
14984               result=yes
14985             else
14986               result=no
14987             fi
14988           else
14989             result=$wxUSE_DIB
14990           fi
14991
14992           { echo "$as_me:$LINENO: result: $result" >&5
14993 echo "${ECHO_T}$result" >&6; }
14994
14995
14996           enablestring=
14997           defaultval=$wxUSE_ALL_FEATURES
14998           if test -z "$defaultval"; then
14999               if test x"$enablestring" = xdisable; then
15000                   defaultval=yes
15001               else
15002                   defaultval=no
15003               fi
15004           fi
15005
15006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
15007 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
15008           # Check whether --enable-webviewie was given.
15009 if test "${enable_webviewie+set}" = set; then
15010   enableval=$enable_webviewie;
15011                           if test "$enableval" = yes; then
15012                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
15013                           else
15014                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
15015                           fi
15016
15017 else
15018
15019                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
15020
15021 fi
15022
15023
15024           eval "$wx_cv_use_webviewie"
15025
15026           if test x"$enablestring" = xdisable; then
15027             if test $wxUSE_WEBVIEW_IE = no; then
15028               result=yes
15029             else
15030               result=no
15031             fi
15032           else
15033             result=$wxUSE_WEBVIEW_IE
15034           fi
15035
15036           { echo "$as_me:$LINENO: result: $result" >&5
15037 echo "${ECHO_T}$result" >&6; }
15038
15039
15040 if test "$wxUSE_MSW" != 1; then
15041     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
15042 fi
15043
15044
15045           enablestring=
15046           defaultval=$wxUSE_ALL_FEATURES
15047           if test -z "$defaultval"; then
15048               if test x"$enablestring" = xdisable; then
15049                   defaultval=yes
15050               else
15051                   defaultval=no
15052               fi
15053           fi
15054
15055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
15056 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
15057           # Check whether --enable-autoidman was given.
15058 if test "${enable_autoidman+set}" = set; then
15059   enableval=$enable_autoidman;
15060                           if test "$enableval" = yes; then
15061                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
15062                           else
15063                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
15064                           fi
15065
15066 else
15067
15068                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
15069
15070 fi
15071
15072
15073           eval "$wx_cv_use_autoidman"
15074
15075           if test x"$enablestring" = xdisable; then
15076             if test $wxUSE_AUTOID_MANAGEMENT = no; then
15077               result=yes
15078             else
15079               result=no
15080             fi
15081           else
15082             result=$wxUSE_AUTOID_MANAGEMENT
15083           fi
15084
15085           { echo "$as_me:$LINENO: result: $result" >&5
15086 echo "${ECHO_T}$result" >&6; }
15087
15088
15089 fi
15090
15091
15092 cat >confcache <<\_ACEOF
15093 # This file is a shell script that caches the results of configure
15094 # tests run on this system so they can be shared between configure
15095 # scripts and configure runs, see configure's option --config-cache.
15096 # It is not useful on other systems.  If it contains results you don't
15097 # want to keep, you may remove or edit it.
15098 #
15099 # config.status only pays attention to the cache file if you give it
15100 # the --recheck option to rerun configure.
15101 #
15102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15104 # following values.
15105
15106 _ACEOF
15107
15108 # The following way of writing the cache mishandles newlines in values,
15109 # but we know of no workaround that is simple, portable, and efficient.
15110 # So, we kill variables containing newlines.
15111 # Ultrix sh set writes to stderr and can't be redirected directly,
15112 # and sets the high bit in the cache file unless we assign to the vars.
15113 (
15114   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15115     eval ac_val=\$$ac_var
15116     case $ac_val in #(
15117     *${as_nl}*)
15118       case $ac_var in #(
15119       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15120 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15121       esac
15122       case $ac_var in #(
15123       _ | IFS | as_nl) ;; #(
15124       *) $as_unset $ac_var ;;
15125       esac ;;
15126     esac
15127   done
15128
15129   (set) 2>&1 |
15130     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15131     *${as_nl}ac_space=\ *)
15132       # `set' does not quote correctly, so add quotes (double-quote
15133       # substitution turns \\\\ into \\, and sed turns \\ into \).
15134       sed -n \
15135         "s/'/'\\\\''/g;
15136           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15137       ;; #(
15138     *)
15139       # `set' quotes correctly as required by POSIX, so do not add quotes.
15140       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15141       ;;
15142     esac |
15143     sort
15144 ) |
15145   sed '
15146      /^ac_cv_env_/b end
15147      t clear
15148      :clear
15149      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15150      t end
15151      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15152      :end' >>confcache
15153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15154   if test -w "$cache_file"; then
15155     test "x$cache_file" != "x/dev/null" &&
15156       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15157 echo "$as_me: updating cache $cache_file" >&6;}
15158     cat confcache >$cache_file
15159   else
15160     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15161 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15162   fi
15163 fi
15164 rm -f confcache
15165
15166 CFLAGS=${CFLAGS:=}
15167 ac_ext=c
15168 ac_cpp='$CPP $CPPFLAGS'
15169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15172 if test -n "$ac_tool_prefix"; then
15173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15177 if test "${ac_cv_prog_CC+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180   if test -n "$CC"; then
15181   ac_cv_prog_CC="$CC" # Let the user override the test.
15182 else
15183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184 for as_dir in $PATH
15185 do
15186   IFS=$as_save_IFS
15187   test -z "$as_dir" && as_dir=.
15188   for ac_exec_ext in '' $ac_executable_extensions; do
15189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15192     break 2
15193   fi
15194 done
15195 done
15196 IFS=$as_save_IFS
15197
15198 fi
15199 fi
15200 CC=$ac_cv_prog_CC
15201 if test -n "$CC"; then
15202   { echo "$as_me:$LINENO: result: $CC" >&5
15203 echo "${ECHO_T}$CC" >&6; }
15204 else
15205   { echo "$as_me:$LINENO: result: no" >&5
15206 echo "${ECHO_T}no" >&6; }
15207 fi
15208
15209
15210 fi
15211 if test -z "$ac_cv_prog_CC"; then
15212   ac_ct_CC=$CC
15213   # Extract the first word of "gcc", so it can be a program name with args.
15214 set dummy gcc; ac_word=$2
15215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15218   echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220   if test -n "$ac_ct_CC"; then
15221   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15222 else
15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226   IFS=$as_save_IFS
15227   test -z "$as_dir" && as_dir=.
15228   for ac_exec_ext in '' $ac_executable_extensions; do
15229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15230     ac_cv_prog_ac_ct_CC="gcc"
15231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15232     break 2
15233   fi
15234 done
15235 done
15236 IFS=$as_save_IFS
15237
15238 fi
15239 fi
15240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15241 if test -n "$ac_ct_CC"; then
15242   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15243 echo "${ECHO_T}$ac_ct_CC" >&6; }
15244 else
15245   { echo "$as_me:$LINENO: result: no" >&5
15246 echo "${ECHO_T}no" >&6; }
15247 fi
15248
15249   if test "x$ac_ct_CC" = x; then
15250     CC=""
15251   else
15252     case $cross_compiling:$ac_tool_warned in
15253 yes:)
15254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15255 whose name does not start with the host triplet.  If you think this
15256 configuration is useful to you, please write to autoconf@gnu.org." >&5
15257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15258 whose name does not start with the host triplet.  If you think this
15259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15260 ac_tool_warned=yes ;;
15261 esac
15262     CC=$ac_ct_CC
15263   fi
15264 else
15265   CC="$ac_cv_prog_CC"
15266 fi
15267
15268 if test -z "$CC"; then
15269           if test -n "$ac_tool_prefix"; then
15270     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15271 set dummy ${ac_tool_prefix}cc; ac_word=$2
15272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15274 if test "${ac_cv_prog_CC+set}" = set; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   if test -n "$CC"; then
15278   ac_cv_prog_CC="$CC" # Let the user override the test.
15279 else
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   for ac_exec_ext in '' $ac_executable_extensions; do
15286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15287     ac_cv_prog_CC="${ac_tool_prefix}cc"
15288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289     break 2
15290   fi
15291 done
15292 done
15293 IFS=$as_save_IFS
15294
15295 fi
15296 fi
15297 CC=$ac_cv_prog_CC
15298 if test -n "$CC"; then
15299   { echo "$as_me:$LINENO: result: $CC" >&5
15300 echo "${ECHO_T}$CC" >&6; }
15301 else
15302   { echo "$as_me:$LINENO: result: no" >&5
15303 echo "${ECHO_T}no" >&6; }
15304 fi
15305
15306
15307   fi
15308 fi
15309 if test -z "$CC"; then
15310   # Extract the first word of "cc", so it can be a program name with args.
15311 set dummy cc; ac_word=$2
15312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15314 if test "${ac_cv_prog_CC+set}" = set; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   if test -n "$CC"; then
15318   ac_cv_prog_CC="$CC" # Let the user override the test.
15319 else
15320   ac_prog_rejected=no
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15323 do
15324   IFS=$as_save_IFS
15325   test -z "$as_dir" && as_dir=.
15326   for ac_exec_ext in '' $ac_executable_extensions; do
15327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15329        ac_prog_rejected=yes
15330        continue
15331      fi
15332     ac_cv_prog_CC="cc"
15333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15334     break 2
15335   fi
15336 done
15337 done
15338 IFS=$as_save_IFS
15339
15340 if test $ac_prog_rejected = yes; then
15341   # We found a bogon in the path, so make sure we never use it.
15342   set dummy $ac_cv_prog_CC
15343   shift
15344   if test $# != 0; then
15345     # We chose a different compiler from the bogus one.
15346     # However, it has the same basename, so the bogon will be chosen
15347     # first if we set CC to just the basename; use the full file name.
15348     shift
15349     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15350   fi
15351 fi
15352 fi
15353 fi
15354 CC=$ac_cv_prog_CC
15355 if test -n "$CC"; then
15356   { echo "$as_me:$LINENO: result: $CC" >&5
15357 echo "${ECHO_T}$CC" >&6; }
15358 else
15359   { echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6; }
15361 fi
15362
15363
15364 fi
15365 if test -z "$CC"; then
15366   if test -n "$ac_tool_prefix"; then
15367   for ac_prog in cl.exe
15368   do
15369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15373 if test "${ac_cv_prog_CC+set}" = set; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   if test -n "$CC"; then
15377   ac_cv_prog_CC="$CC" # Let the user override the test.
15378 else
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $PATH
15381 do
15382   IFS=$as_save_IFS
15383   test -z "$as_dir" && as_dir=.
15384   for ac_exec_ext in '' $ac_executable_extensions; do
15385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15388     break 2
15389   fi
15390 done
15391 done
15392 IFS=$as_save_IFS
15393
15394 fi
15395 fi
15396 CC=$ac_cv_prog_CC
15397 if test -n "$CC"; then
15398   { echo "$as_me:$LINENO: result: $CC" >&5
15399 echo "${ECHO_T}$CC" >&6; }
15400 else
15401   { echo "$as_me:$LINENO: result: no" >&5
15402 echo "${ECHO_T}no" >&6; }
15403 fi
15404
15405
15406     test -n "$CC" && break
15407   done
15408 fi
15409 if test -z "$CC"; then
15410   ac_ct_CC=$CC
15411   for ac_prog in cl.exe
15412 do
15413   # Extract the first word of "$ac_prog", so it can be a program name with args.
15414 set dummy $ac_prog; ac_word=$2
15415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   if test -n "$ac_ct_CC"; then
15421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15422 else
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15425 do
15426   IFS=$as_save_IFS
15427   test -z "$as_dir" && as_dir=.
15428   for ac_exec_ext in '' $ac_executable_extensions; do
15429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15430     ac_cv_prog_ac_ct_CC="$ac_prog"
15431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15432     break 2
15433   fi
15434 done
15435 done
15436 IFS=$as_save_IFS
15437
15438 fi
15439 fi
15440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15441 if test -n "$ac_ct_CC"; then
15442   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15443 echo "${ECHO_T}$ac_ct_CC" >&6; }
15444 else
15445   { echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6; }
15447 fi
15448
15449
15450   test -n "$ac_ct_CC" && break
15451 done
15452
15453   if test "x$ac_ct_CC" = x; then
15454     CC=""
15455   else
15456     case $cross_compiling:$ac_tool_warned in
15457 yes:)
15458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15459 whose name does not start with the host triplet.  If you think this
15460 configuration is useful to you, please write to autoconf@gnu.org." >&5
15461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15462 whose name does not start with the host triplet.  If you think this
15463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15464 ac_tool_warned=yes ;;
15465 esac
15466     CC=$ac_ct_CC
15467   fi
15468 fi
15469
15470 fi
15471
15472
15473 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15474 See \`config.log' for more details." >&5
15475 echo "$as_me: error: no acceptable C compiler found in \$PATH
15476 See \`config.log' for more details." >&2;}
15477    { (exit 1); exit 1; }; }
15478
15479 # Provide some information about the compiler.
15480 echo "$as_me:$LINENO: checking for C compiler version" >&5
15481 ac_compiler=`set X $ac_compile; echo $2`
15482 { (ac_try="$ac_compiler --version >&5"
15483 case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_compiler --version >&5") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }
15492 { (ac_try="$ac_compiler -v >&5"
15493 case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498   (eval "$ac_compiler -v >&5") 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }
15502 { (ac_try="$ac_compiler -V >&5"
15503 case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_compiler -V >&5") 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }
15512
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519
15520 int
15521 main ()
15522 {
15523
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 ac_clean_files_save=$ac_clean_files
15529 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15530 # Try to create an executable without -o first, disregard a.out.
15531 # It will help us diagnose broken compilers, and finding out an intuition
15532 # of exeext.
15533 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15534 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15535 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15536 #
15537 # List of possible output files, starting from the most likely.
15538 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15539 # only as a last resort.  b.out is created by i960 compilers.
15540 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15541 #
15542 # The IRIX 6 linker writes into existing files which may not be
15543 # executable, retaining their permissions.  Remove them first so a
15544 # subsequent execution test works.
15545 ac_rmfiles=
15546 for ac_file in $ac_files
15547 do
15548   case $ac_file in
15549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15550     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15551   esac
15552 done
15553 rm -f $ac_rmfiles
15554
15555 if { (ac_try="$ac_link_default"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link_default") 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; then
15565   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15566 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15567 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15568 # so that the user can short-circuit this test for compilers unknown to
15569 # Autoconf.
15570 for ac_file in $ac_files ''
15571 do
15572   test -f "$ac_file" || continue
15573   case $ac_file in
15574     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15575         ;;
15576     [ab].out )
15577         # We found the default executable, but exeext='' is most
15578         # certainly right.
15579         break;;
15580     *.* )
15581         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15582         then :; else
15583            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15584         fi
15585         # We set ac_cv_exeext here because the later test for it is not
15586         # safe: cross compilers may not add the suffix if given an `-o'
15587         # argument, so we may need to know it at that point already.
15588         # Even if this section looks crufty: it has the advantage of
15589         # actually working.
15590         break;;
15591     * )
15592         break;;
15593   esac
15594 done
15595 test "$ac_cv_exeext" = no && ac_cv_exeext=
15596
15597 else
15598   ac_file=''
15599 fi
15600
15601 { echo "$as_me:$LINENO: result: $ac_file" >&5
15602 echo "${ECHO_T}$ac_file" >&6; }
15603 if test -z "$ac_file"; then
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15608 See \`config.log' for more details." >&5
15609 echo "$as_me: error: C compiler cannot create executables
15610 See \`config.log' for more details." >&2;}
15611    { (exit 77); exit 77; }; }
15612 fi
15613
15614 ac_exeext=$ac_cv_exeext
15615
15616 # Check that the compiler produces executables we can run.  If not, either
15617 # the compiler is broken, or we cross compile.
15618 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15621 # If not cross compiling, check that we can run a simple program.
15622 if test "$cross_compiling" != yes; then
15623   if { ac_try='./$ac_file'
15624   { (case "(($ac_try" in
15625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626   *) ac_try_echo=$ac_try;;
15627 esac
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629   (eval "$ac_try") 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633     cross_compiling=no
15634   else
15635     if test "$cross_compiling" = maybe; then
15636         cross_compiling=yes
15637     else
15638         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15639 If you meant to cross compile, use \`--host'.
15640 See \`config.log' for more details." >&5
15641 echo "$as_me: error: cannot run C compiled programs.
15642 If you meant to cross compile, use \`--host'.
15643 See \`config.log' for more details." >&2;}
15644    { (exit 1); exit 1; }; }
15645     fi
15646   fi
15647 fi
15648 { echo "$as_me:$LINENO: result: yes" >&5
15649 echo "${ECHO_T}yes" >&6; }
15650
15651 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15652 ac_clean_files=$ac_clean_files_save
15653 # Check that the compiler produces executables we can run.  If not, either
15654 # the compiler is broken, or we cross compile.
15655 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15656 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15657 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15658 echo "${ECHO_T}$cross_compiling" >&6; }
15659
15660 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15661 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668   (eval "$ac_link") 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; then
15672   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15673 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15674 # work properly (i.e., refer to `conftest.exe'), while it won't with
15675 # `rm'.
15676 for ac_file in conftest.exe conftest conftest.*; do
15677   test -f "$ac_file" || continue
15678   case $ac_file in
15679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15680     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15681           break;;
15682     * ) break;;
15683   esac
15684 done
15685 else
15686   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15687 See \`config.log' for more details." >&5
15688 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15689 See \`config.log' for more details." >&2;}
15690    { (exit 1); exit 1; }; }
15691 fi
15692
15693 rm -f conftest$ac_cv_exeext
15694 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15695 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15696
15697 rm -f conftest.$ac_ext
15698 EXEEXT=$ac_cv_exeext
15699 ac_exeext=$EXEEXT
15700 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15701 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15702 if test "${ac_cv_objext+set}" = set; then
15703   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705   cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711
15712 int
15713 main ()
15714 {
15715
15716   ;
15717   return 0;
15718 }
15719 _ACEOF
15720 rm -f conftest.o conftest.obj
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_compile") 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; then
15731   for ac_file in conftest.o conftest.obj conftest.*; do
15732   test -f "$ac_file" || continue;
15733   case $ac_file in
15734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15736        break;;
15737   esac
15738 done
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15744 See \`config.log' for more details." >&5
15745 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15746 See \`config.log' for more details." >&2;}
15747    { (exit 1); exit 1; }; }
15748 fi
15749
15750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15751 fi
15752 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15753 echo "${ECHO_T}$ac_cv_objext" >&6; }
15754 OBJEXT=$ac_cv_objext
15755 ac_objext=$OBJEXT
15756 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15757 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15758 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767
15768 int
15769 main ()
15770 {
15771 #ifndef __GNUC__
15772        choke me
15773 #endif
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext
15780 if { (ac_try="$ac_compile"
15781 case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_compile") 2>conftest.er1
15787   ac_status=$?
15788   grep -v '^ *+' conftest.er1 >conftest.err
15789   rm -f conftest.er1
15790   cat conftest.err >&5
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } && {
15793          test -z "$ac_c_werror_flag" ||
15794          test ! -s conftest.err
15795        } && test -s conftest.$ac_objext; then
15796   ac_compiler_gnu=yes
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801         ac_compiler_gnu=no
15802 fi
15803
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15806
15807 fi
15808 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15809 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15810 GCC=`test $ac_compiler_gnu = yes && echo yes`
15811 ac_test_CFLAGS=${CFLAGS+set}
15812 ac_save_CFLAGS=$CFLAGS
15813 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15814 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15815 if test "${ac_cv_prog_cc_g+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   ac_save_c_werror_flag=$ac_c_werror_flag
15819    ac_c_werror_flag=yes
15820    ac_cv_prog_cc_g=no
15821    CFLAGS="-g"
15822    cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828
15829 int
15830 main ()
15831 {
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } && {
15851          test -z "$ac_c_werror_flag" ||
15852          test ! -s conftest.err
15853        } && test -s conftest.$ac_objext; then
15854   ac_cv_prog_cc_g=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859         CFLAGS=""
15860       cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866
15867 int
15868 main ()
15869 {
15870
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   :
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_c_werror_flag=$ac_save_c_werror_flag
15898          CFLAGS="-g"
15899          cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905
15906 int
15907 main ()
15908 {
15909
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_compile") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } && {
15928          test -z "$ac_c_werror_flag" ||
15929          test ! -s conftest.err
15930        } && test -s conftest.$ac_objext; then
15931   ac_cv_prog_cc_g=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936
15937 fi
15938
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 fi
15941
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946    ac_c_werror_flag=$ac_save_c_werror_flag
15947 fi
15948 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15949 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15950 if test "$ac_test_CFLAGS" = set; then
15951   CFLAGS=$ac_save_CFLAGS
15952 elif test $ac_cv_prog_cc_g = yes; then
15953   if test "$GCC" = yes; then
15954     CFLAGS="-g -O2"
15955   else
15956     CFLAGS="-g"
15957   fi
15958 else
15959   if test "$GCC" = yes; then
15960     CFLAGS="-O2"
15961   else
15962     CFLAGS=
15963   fi
15964 fi
15965 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15966 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15967 if test "${ac_cv_prog_cc_c89+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   ac_cv_prog_cc_c89=no
15971 ac_save_CC=$CC
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <stdarg.h>
15979 #include <stdio.h>
15980 #include <sys/types.h>
15981 #include <sys/stat.h>
15982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15983 struct buf { int x; };
15984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15985 static char *e (p, i)
15986      char **p;
15987      int i;
15988 {
15989   return p[i];
15990 }
15991 static char *f (char * (*g) (char **, int), char **p, ...)
15992 {
15993   char *s;
15994   va_list v;
15995   va_start (v,p);
15996   s = g (p, va_arg (v,int));
15997   va_end (v);
15998   return s;
15999 }
16000
16001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16002    function prototypes and stuff, but not '\xHH' hex character constants.
16003    These don't provoke an error unfortunately, instead are silently treated
16004    as 'x'.  The following induces an error, until -std is added to get
16005    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16006    array size at least.  It's necessary to write '\x00'==0 to get something
16007    that's true only with -std.  */
16008 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16009
16010 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16011    inside strings and character constants.  */
16012 #define FOO(x) 'x'
16013 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16014
16015 int test (int i, double x);
16016 struct s1 {int (*f) (int a);};
16017 struct s2 {int (*f) (double a);};
16018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16019 int argc;
16020 char **argv;
16021 int
16022 main ()
16023 {
16024 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16030         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16031 do
16032   CC="$ac_save_CC $ac_arg"
16033   rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } && {
16047          test -z "$ac_c_werror_flag" ||
16048          test ! -s conftest.err
16049        } && test -s conftest.$ac_objext; then
16050   ac_cv_prog_cc_c89=$ac_arg
16051 else
16052   echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055
16056 fi
16057
16058 rm -f core conftest.err conftest.$ac_objext
16059   test "x$ac_cv_prog_cc_c89" != "xno" && break
16060 done
16061 rm -f conftest.$ac_ext
16062 CC=$ac_save_CC
16063
16064 fi
16065 # AC_CACHE_VAL
16066 case "x$ac_cv_prog_cc_c89" in
16067   x)
16068     { echo "$as_me:$LINENO: result: none needed" >&5
16069 echo "${ECHO_T}none needed" >&6; } ;;
16070   xno)
16071     { echo "$as_me:$LINENO: result: unsupported" >&5
16072 echo "${ECHO_T}unsupported" >&6; } ;;
16073   *)
16074     CC="$CC $ac_cv_prog_cc_c89"
16075     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16076 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16077 esac
16078
16079
16080 ac_ext=c
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086
16087
16088
16089
16090
16091
16092
16093     ac_ext=c
16094 ac_cpp='$CPP $CPPFLAGS'
16095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16098
16099     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16100 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16101 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110
16111 int
16112 main ()
16113 {
16114
16115              #ifndef __INTEL_COMPILER
16116                 choke me
16117              #endif
16118
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127   *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130   (eval "$ac_compile") 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } && {
16137          test -z "$ac_c_werror_flag" ||
16138          test ! -s conftest.err
16139        } && test -s conftest.$ac_objext; then
16140   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145         bakefile_cv_c_compiler___INTEL_COMPILER=no
16146
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150
16151
16152 fi
16153 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16154 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16155     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16156         :; INTELCC=yes
16157     else
16158         :;
16159     fi
16160     ac_ext=c
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16165
16166
16167
16168
16169         if test "$INTELCC" = "yes"; then
16170
16171
16172     ac_ext=c
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16179 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16180 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183   cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189
16190 int
16191 main ()
16192 {
16193
16194              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16195                 choke me
16196              #endif
16197
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_compile") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest.$ac_objext; then
16219   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16225
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229
16230
16231 fi
16232 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16233 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16234     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16235         :; INTELCC8=yes
16236     else
16237         :;
16238     fi
16239     ac_ext=c
16240 ac_cpp='$CPP $CPPFLAGS'
16241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16244
16245
16246
16247
16248
16249     ac_ext=c
16250 ac_cpp='$CPP $CPPFLAGS'
16251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16254
16255     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16256 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16257 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16258   echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260   cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 int
16268 main ()
16269 {
16270
16271              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16272                 choke me
16273              #endif
16274
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_compile") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } && {
16293          test -z "$ac_c_werror_flag" ||
16294          test ! -s conftest.err
16295        } && test -s conftest.$ac_objext; then
16296   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16302
16303 fi
16304
16305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306
16307
16308 fi
16309 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16310 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16311     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16312         :; INTELCC10=yes
16313     else
16314         :;
16315     fi
16316     ac_ext=c
16317 ac_cpp='$CPP $CPPFLAGS'
16318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16321
16322
16323
16324     fi
16325
16326         if test "x$GCC" != "xyes"; then
16327         if test "xCC" = "xC"; then
16328             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16329 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16330 if test "${bakefile_cv_c_exto+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 int
16341 main ()
16342 {
16343
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest.$ac_ext.o
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350   (eval $ac_compile) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; then
16354   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16355     case $ac_file in
16356         conftest.$ac_ext.o)
16357             bakefile_cv_c_exto="-ext o"
16358             ;;
16359         *)
16360             ;;
16361     esac
16362 done
16363 else
16364   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16365 See \`config.log' for more details." >&5
16366 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16367 See \`config.log' for more details." >&2;}
16368    { (exit 1); exit 1; }; }
16369
16370 fi
16371
16372 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16373
16374 fi
16375 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16376 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16377 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16378     if test "c" = "c"; then
16379         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16380     fi
16381     if test "c" = "cxx"; then
16382         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16383     fi
16384 fi
16385
16386             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16387                 unset ac_cv_prog_cc_g
16388                 ac_test_CFLAGS=${CFLAGS+set}
16389 ac_save_CFLAGS=$CFLAGS
16390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16392 if test "${ac_cv_prog_cc_g+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   ac_save_c_werror_flag=$ac_c_werror_flag
16396    ac_c_werror_flag=yes
16397    ac_cv_prog_cc_g=no
16398    CFLAGS="-g"
16399    cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405
16406 int
16407 main ()
16408 {
16409
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (ac_try="$ac_compile"
16416 case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_compile") 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } && {
16428          test -z "$ac_c_werror_flag" ||
16429          test ! -s conftest.err
16430        } && test -s conftest.$ac_objext; then
16431   ac_cv_prog_cc_g=yes
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436         CFLAGS=""
16437       cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443
16444 int
16445 main ()
16446 {
16447
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 rm -f conftest.$ac_objext
16453 if { (ac_try="$ac_compile"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_compile") 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } && {
16466          test -z "$ac_c_werror_flag" ||
16467          test ! -s conftest.err
16468        } && test -s conftest.$ac_objext; then
16469   :
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474         ac_c_werror_flag=$ac_save_c_werror_flag
16475          CFLAGS="-g"
16476          cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482
16483 int
16484 main ()
16485 {
16486
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_compile") 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } && {
16505          test -z "$ac_c_werror_flag" ||
16506          test ! -s conftest.err
16507        } && test -s conftest.$ac_objext; then
16508   ac_cv_prog_cc_g=yes
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 fi
16518
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523    ac_c_werror_flag=$ac_save_c_werror_flag
16524 fi
16525 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16527 if test "$ac_test_CFLAGS" = set; then
16528   CFLAGS=$ac_save_CFLAGS
16529 elif test $ac_cv_prog_cc_g = yes; then
16530   if test "$GCC" = yes; then
16531     CFLAGS="-g -O2"
16532   else
16533     CFLAGS="-g"
16534   fi
16535 else
16536   if test "$GCC" = yes; then
16537     CFLAGS="-O2"
16538   else
16539     CFLAGS=
16540   fi
16541 fi
16542             fi
16543         fi
16544
16545                         case `uname -s` in
16546             AIX*)
16547
16548
16549     ac_ext=c
16550 ac_cpp='$CPP $CPPFLAGS'
16551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16554
16555     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16556 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16557 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566
16567 int
16568 main ()
16569 {
16570
16571              #ifndef __xlC__
16572                 choke me
16573              #endif
16574
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (ac_try="$ac_compile"
16581 case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_compile") 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } && {
16593          test -z "$ac_c_werror_flag" ||
16594          test ! -s conftest.err
16595        } && test -s conftest.$ac_objext; then
16596   bakefile_cv_c_compiler___xlC__=yes
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601         bakefile_cv_c_compiler___xlC__=no
16602
16603 fi
16604
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606
16607
16608 fi
16609 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16610 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16611     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16612         :; XLCC=yes
16613     else
16614         :;
16615     fi
16616     ac_ext=c
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621
16622
16623
16624                 ;;
16625
16626             Darwin)
16627
16628
16629     ac_ext=c
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634
16635     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16636 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16637 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 int
16648 main ()
16649 {
16650
16651              #ifndef __MWERKS__
16652                 choke me
16653              #endif
16654
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_compile") 2>conftest.er1
16667   ac_status=$?
16668   grep -v '^ *+' conftest.er1 >conftest.err
16669   rm -f conftest.er1
16670   cat conftest.err >&5
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } && {
16673          test -z "$ac_c_werror_flag" ||
16674          test ! -s conftest.err
16675        } && test -s conftest.$ac_objext; then
16676   bakefile_cv_c_compiler___MWERKS__=yes
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681         bakefile_cv_c_compiler___MWERKS__=no
16682
16683 fi
16684
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686
16687
16688 fi
16689 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16690 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16691     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16692         :; MWCC=yes
16693     else
16694         :;
16695     fi
16696     ac_ext=c
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702
16703
16704                 if test "$MWCC" != "yes"; then
16705
16706
16707     ac_ext=c
16708 ac_cpp='$CPP $CPPFLAGS'
16709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16712
16713     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16714 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16715 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718   cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h.  */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h.  */
16724
16725 int
16726 main ()
16727 {
16728
16729              #ifndef __xlC__
16730                 choke me
16731              #endif
16732
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_compile") 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } && {
16751          test -z "$ac_c_werror_flag" ||
16752          test ! -s conftest.err
16753        } && test -s conftest.$ac_objext; then
16754   bakefile_cv_c_compiler___xlC__=yes
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759         bakefile_cv_c_compiler___xlC__=no
16760
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764
16765
16766 fi
16767 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16768 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16769     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16770         :; XLCC=yes
16771     else
16772         :;
16773     fi
16774     ac_ext=c
16775 ac_cpp='$CPP $CPPFLAGS'
16776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16779
16780
16781
16782                 fi
16783                 ;;
16784
16785             IRIX*)
16786
16787
16788     ac_ext=c
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793
16794     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16795 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16796 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16797   echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799   cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805
16806 int
16807 main ()
16808 {
16809
16810              #ifndef _SGI_COMPILER_VERSION
16811                 choke me
16812              #endif
16813
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext
16819 if { (ac_try="$ac_compile"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_compile") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } && {
16832          test -z "$ac_c_werror_flag" ||
16833          test ! -s conftest.err
16834        } && test -s conftest.$ac_objext; then
16835   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16841
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845
16846
16847 fi
16848 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16849 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16850     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16851         :; SGICC=yes
16852     else
16853         :;
16854     fi
16855     ac_ext=c
16856 ac_cpp='$CPP $CPPFLAGS'
16857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16860
16861
16862
16863                 ;;
16864
16865             Linux*)
16866                                                 if test "$INTELCC" != "yes"; then
16867
16868
16869     ac_ext=c
16870 ac_cpp='$CPP $CPPFLAGS'
16871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16874
16875     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16876 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16877 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 int
16888 main ()
16889 {
16890
16891              #ifndef __SUNPRO_C
16892                 choke me
16893              #endif
16894
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (ac_try="$ac_compile"
16901 case "(($ac_try" in
16902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903   *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906   (eval "$ac_compile") 2>conftest.er1
16907   ac_status=$?
16908   grep -v '^ *+' conftest.er1 >conftest.err
16909   rm -f conftest.er1
16910   cat conftest.err >&5
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } && {
16913          test -z "$ac_c_werror_flag" ||
16914          test ! -s conftest.err
16915        } && test -s conftest.$ac_objext; then
16916   bakefile_cv_c_compiler___SUNPRO_C=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921         bakefile_cv_c_compiler___SUNPRO_C=no
16922
16923 fi
16924
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
16927
16928 fi
16929 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16930 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16931     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16932         :; SUNCC=yes
16933     else
16934         :;
16935     fi
16936     ac_ext=c
16937 ac_cpp='$CPP $CPPFLAGS'
16938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16941
16942
16943
16944                 fi
16945                 ;;
16946
16947             HP-UX*)
16948
16949
16950     ac_ext=c
16951 ac_cpp='$CPP $CPPFLAGS'
16952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16955
16956     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16957 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16958 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 int
16969 main ()
16970 {
16971
16972              #ifndef __HP_cc
16973                 choke me
16974              #endif
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_compile") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && {
16994          test -z "$ac_c_werror_flag" ||
16995          test ! -s conftest.err
16996        } && test -s conftest.$ac_objext; then
16997   bakefile_cv_c_compiler___HP_cc=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         bakefile_cv_c_compiler___HP_cc=no
17003
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007
17008
17009 fi
17010 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17011 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17012     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17013         :; HPCC=yes
17014     else
17015         :;
17016     fi
17017     ac_ext=c
17018 ac_cpp='$CPP $CPPFLAGS'
17019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17022
17023
17024
17025                 ;;
17026
17027             OSF1)
17028
17029
17030     ac_ext=c
17031 ac_cpp='$CPP $CPPFLAGS'
17032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17035
17036     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17037 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17038 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047
17048 int
17049 main ()
17050 {
17051
17052              #ifndef __DECC
17053                 choke me
17054              #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_c_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   bakefile_cv_c_compiler___DECC=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         bakefile_cv_c_compiler___DECC=no
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17091 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17092     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17093         :; COMPAQCC=yes
17094     else
17095         :;
17096     fi
17097     ac_ext=c
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102
17103
17104
17105                 ;;
17106
17107             SunOS)
17108
17109
17110     ac_ext=c
17111 ac_cpp='$CPP $CPPFLAGS'
17112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17115
17116     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17117 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17118 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127
17128 int
17129 main ()
17130 {
17131
17132              #ifndef __SUNPRO_C
17133                 choke me
17134              #endif
17135
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (ac_try="$ac_compile"
17142 case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_compile") 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } && {
17154          test -z "$ac_c_werror_flag" ||
17155          test ! -s conftest.err
17156        } && test -s conftest.$ac_objext; then
17157   bakefile_cv_c_compiler___SUNPRO_C=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         bakefile_cv_c_compiler___SUNPRO_C=no
17163
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167
17168
17169 fi
17170 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17171 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17172     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17173         :; SUNCC=yes
17174     else
17175         :;
17176     fi
17177     ac_ext=c
17178 ac_cpp='$CPP $CPPFLAGS'
17179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182
17183
17184
17185                 ;;
17186         esac
17187     fi
17188
17189
17190
17191 ac_ext=c
17192 ac_cpp='$CPP $CPPFLAGS'
17193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17196 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17198 # On Suns, sometimes $CPP names a directory.
17199 if test -n "$CPP" && test -d "$CPP"; then
17200   CPP=
17201 fi
17202 if test -z "$CPP"; then
17203   if test "${ac_cv_prog_CPP+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206       # Double quotes because CPP needs to be expanded
17207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17208     do
17209       ac_preproc_ok=false
17210 for ac_c_preproc_warn_flag in '' yes
17211 do
17212   # Use a header file that comes with gcc, so configuring glibc
17213   # with a fresh cross-compiler works.
17214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17215   # <limits.h> exists even on freestanding compilers.
17216   # On the NeXT, cc -E runs the code through the compiler's parser,
17217   # not just through cpp. "Syntax error" is here to catch this case.
17218   cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224 #ifdef __STDC__
17225 # include <limits.h>
17226 #else
17227 # include <assert.h>
17228 #endif
17229                      Syntax error
17230 _ACEOF
17231 if { (ac_try="$ac_cpp conftest.$ac_ext"
17232 case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } >/dev/null && {
17244          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17245          test ! -s conftest.err
17246        }; then
17247   :
17248 else
17249   echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252   # Broken: fails on valid input.
17253 continue
17254 fi
17255
17256 rm -f conftest.err conftest.$ac_ext
17257
17258   # OK, works on sane cases.  Now check whether nonexistent headers
17259   # can be detected and how.
17260   cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 #include <ac_nonexistent.h>
17267 _ACEOF
17268 if { (ac_try="$ac_cpp conftest.$ac_ext"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } >/dev/null && {
17281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17282          test ! -s conftest.err
17283        }; then
17284   # Broken: success on invalid input.
17285 continue
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290   # Passes both tests.
17291 ac_preproc_ok=:
17292 break
17293 fi
17294
17295 rm -f conftest.err conftest.$ac_ext
17296
17297 done
17298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17299 rm -f conftest.err conftest.$ac_ext
17300 if $ac_preproc_ok; then
17301   break
17302 fi
17303
17304     done
17305     ac_cv_prog_CPP=$CPP
17306
17307 fi
17308   CPP=$ac_cv_prog_CPP
17309 else
17310   ac_cv_prog_CPP=$CPP
17311 fi
17312 { echo "$as_me:$LINENO: result: $CPP" >&5
17313 echo "${ECHO_T}$CPP" >&6; }
17314 ac_preproc_ok=false
17315 for ac_c_preproc_warn_flag in '' yes
17316 do
17317   # Use a header file that comes with gcc, so configuring glibc
17318   # with a fresh cross-compiler works.
17319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320   # <limits.h> exists even on freestanding compilers.
17321   # On the NeXT, cc -E runs the code through the compiler's parser,
17322   # not just through cpp. "Syntax error" is here to catch this case.
17323   cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h.  */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h.  */
17329 #ifdef __STDC__
17330 # include <limits.h>
17331 #else
17332 # include <assert.h>
17333 #endif
17334                      Syntax error
17335 _ACEOF
17336 if { (ac_try="$ac_cpp conftest.$ac_ext"
17337 case "(($ac_try" in
17338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339   *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } >/dev/null && {
17349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17350          test ! -s conftest.err
17351        }; then
17352   :
17353 else
17354   echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357   # Broken: fails on valid input.
17358 continue
17359 fi
17360
17361 rm -f conftest.err conftest.$ac_ext
17362
17363   # OK, works on sane cases.  Now check whether nonexistent headers
17364   # can be detected and how.
17365   cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h.  */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h.  */
17371 #include <ac_nonexistent.h>
17372 _ACEOF
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } >/dev/null && {
17386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        }; then
17389   # Broken: success on invalid input.
17390 continue
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395   # Passes both tests.
17396 ac_preproc_ok=:
17397 break
17398 fi
17399
17400 rm -f conftest.err conftest.$ac_ext
17401
17402 done
17403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17404 rm -f conftest.err conftest.$ac_ext
17405 if $ac_preproc_ok; then
17406   :
17407 else
17408   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17409 See \`config.log' for more details." >&5
17410 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17411 See \`config.log' for more details." >&2;}
17412    { (exit 1); exit 1; }; }
17413 fi
17414
17415 ac_ext=c
17416 ac_cpp='$CPP $CPPFLAGS'
17417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17420
17421
17422 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17423 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17424 if test "${ac_cv_path_GREP+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   # Extract the first word of "grep ggrep" to use in msg output
17428 if test -z "$GREP"; then
17429 set dummy grep ggrep; ac_prog_name=$2
17430 if test "${ac_cv_path_GREP+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_path_GREP_found=false
17434 # Loop through the user's path and test for each of PROGNAME-LIST
17435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17437 do
17438   IFS=$as_save_IFS
17439   test -z "$as_dir" && as_dir=.
17440   for ac_prog in grep ggrep; do
17441   for ac_exec_ext in '' $ac_executable_extensions; do
17442     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17443     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17444     # Check for GNU ac_path_GREP and select it if it is found.
17445   # Check for GNU $ac_path_GREP
17446 case `"$ac_path_GREP" --version 2>&1` in
17447 *GNU*)
17448   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17449 *)
17450   ac_count=0
17451   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17452   while :
17453   do
17454     cat "conftest.in" "conftest.in" >"conftest.tmp"
17455     mv "conftest.tmp" "conftest.in"
17456     cp "conftest.in" "conftest.nl"
17457     echo 'GREP' >> "conftest.nl"
17458     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17459     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17460     ac_count=`expr $ac_count + 1`
17461     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17462       # Best one so far, save it but keep looking for a better one
17463       ac_cv_path_GREP="$ac_path_GREP"
17464       ac_path_GREP_max=$ac_count
17465     fi
17466     # 10*(2^10) chars as input seems more than enough
17467     test $ac_count -gt 10 && break
17468   done
17469   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17470 esac
17471
17472
17473     $ac_path_GREP_found && break 3
17474   done
17475 done
17476
17477 done
17478 IFS=$as_save_IFS
17479
17480
17481 fi
17482
17483 GREP="$ac_cv_path_GREP"
17484 if test -z "$GREP"; then
17485   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17486 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17487    { (exit 1); exit 1; }; }
17488 fi
17489
17490 else
17491   ac_cv_path_GREP=$GREP
17492 fi
17493
17494
17495 fi
17496 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17497 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17498  GREP="$ac_cv_path_GREP"
17499
17500
17501 { echo "$as_me:$LINENO: checking for egrep" >&5
17502 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17503 if test "${ac_cv_path_EGREP+set}" = set; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17507    then ac_cv_path_EGREP="$GREP -E"
17508    else
17509      # Extract the first word of "egrep" to use in msg output
17510 if test -z "$EGREP"; then
17511 set dummy egrep; ac_prog_name=$2
17512 if test "${ac_cv_path_EGREP+set}" = set; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   ac_path_EGREP_found=false
17516 # Loop through the user's path and test for each of PROGNAME-LIST
17517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17519 do
17520   IFS=$as_save_IFS
17521   test -z "$as_dir" && as_dir=.
17522   for ac_prog in egrep; do
17523   for ac_exec_ext in '' $ac_executable_extensions; do
17524     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17525     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17526     # Check for GNU ac_path_EGREP and select it if it is found.
17527   # Check for GNU $ac_path_EGREP
17528 case `"$ac_path_EGREP" --version 2>&1` in
17529 *GNU*)
17530   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17531 *)
17532   ac_count=0
17533   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17534   while :
17535   do
17536     cat "conftest.in" "conftest.in" >"conftest.tmp"
17537     mv "conftest.tmp" "conftest.in"
17538     cp "conftest.in" "conftest.nl"
17539     echo 'EGREP' >> "conftest.nl"
17540     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17542     ac_count=`expr $ac_count + 1`
17543     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17544       # Best one so far, save it but keep looking for a better one
17545       ac_cv_path_EGREP="$ac_path_EGREP"
17546       ac_path_EGREP_max=$ac_count
17547     fi
17548     # 10*(2^10) chars as input seems more than enough
17549     test $ac_count -gt 10 && break
17550   done
17551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17552 esac
17553
17554
17555     $ac_path_EGREP_found && break 3
17556   done
17557 done
17558
17559 done
17560 IFS=$as_save_IFS
17561
17562
17563 fi
17564
17565 EGREP="$ac_cv_path_EGREP"
17566 if test -z "$EGREP"; then
17567   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17569    { (exit 1); exit 1; }; }
17570 fi
17571
17572 else
17573   ac_cv_path_EGREP=$EGREP
17574 fi
17575
17576
17577    fi
17578 fi
17579 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17580 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17581  EGREP="$ac_cv_path_EGREP"
17582
17583
17584 if test $ac_cv_c_compiler_gnu = yes; then
17585     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17586 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17587 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590     ac_pattern="Autoconf.*'x'"
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <sgtty.h>
17598 Autoconf TIOCGETP
17599 _ACEOF
17600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17601   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17602   ac_cv_prog_gcc_traditional=yes
17603 else
17604   ac_cv_prog_gcc_traditional=no
17605 fi
17606 rm -f conftest*
17607
17608
17609   if test $ac_cv_prog_gcc_traditional = no; then
17610     cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 #include <termio.h>
17617 Autoconf TCGETA
17618 _ACEOF
17619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17620   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17621   ac_cv_prog_gcc_traditional=yes
17622 fi
17623 rm -f conftest*
17624
17625   fi
17626 fi
17627 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17628 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17629   if test $ac_cv_prog_gcc_traditional = yes; then
17630     CC="$CC -traditional"
17631   fi
17632 fi
17633
17634
17635 CXXFLAGS=${CXXFLAGS:=}
17636 ac_ext=cpp
17637 ac_cpp='$CXXCPP $CPPFLAGS'
17638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17641 if test -z "$CXX"; then
17642   if test -n "$CCC"; then
17643     CXX=$CCC
17644   else
17645     if test -n "$ac_tool_prefix"; then
17646   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17647   do
17648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17652 if test "${ac_cv_prog_CXX+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   if test -n "$CXX"; then
17656   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17657 else
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17660 do
17661   IFS=$as_save_IFS
17662   test -z "$as_dir" && as_dir=.
17663   for ac_exec_ext in '' $ac_executable_extensions; do
17664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17665     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17667     break 2
17668   fi
17669 done
17670 done
17671 IFS=$as_save_IFS
17672
17673 fi
17674 fi
17675 CXX=$ac_cv_prog_CXX
17676 if test -n "$CXX"; then
17677   { echo "$as_me:$LINENO: result: $CXX" >&5
17678 echo "${ECHO_T}$CXX" >&6; }
17679 else
17680   { echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6; }
17682 fi
17683
17684
17685     test -n "$CXX" && break
17686   done
17687 fi
17688 if test -z "$CXX"; then
17689   ac_ct_CXX=$CXX
17690   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17691 do
17692   # Extract the first word of "$ac_prog", so it can be a program name with args.
17693 set dummy $ac_prog; ac_word=$2
17694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17696 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   if test -n "$ac_ct_CXX"; then
17700   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17701 else
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17704 do
17705   IFS=$as_save_IFS
17706   test -z "$as_dir" && as_dir=.
17707   for ac_exec_ext in '' $ac_executable_extensions; do
17708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17709     ac_cv_prog_ac_ct_CXX="$ac_prog"
17710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17711     break 2
17712   fi
17713 done
17714 done
17715 IFS=$as_save_IFS
17716
17717 fi
17718 fi
17719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17720 if test -n "$ac_ct_CXX"; then
17721   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17722 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17723 else
17724   { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726 fi
17727
17728
17729   test -n "$ac_ct_CXX" && break
17730 done
17731
17732   if test "x$ac_ct_CXX" = x; then
17733     CXX="g++"
17734   else
17735     case $cross_compiling:$ac_tool_warned in
17736 yes:)
17737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17738 whose name does not start with the host triplet.  If you think this
17739 configuration is useful to you, please write to autoconf@gnu.org." >&5
17740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17741 whose name does not start with the host triplet.  If you think this
17742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17743 ac_tool_warned=yes ;;
17744 esac
17745     CXX=$ac_ct_CXX
17746   fi
17747 fi
17748
17749   fi
17750 fi
17751 # Provide some information about the compiler.
17752 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17753 ac_compiler=`set X $ac_compile; echo $2`
17754 { (ac_try="$ac_compiler --version >&5"
17755 case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_compiler --version >&5") 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }
17764 { (ac_try="$ac_compiler -v >&5"
17765 case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_compiler -v >&5") 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }
17774 { (ac_try="$ac_compiler -V >&5"
17775 case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_compiler -V >&5") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }
17784
17785 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17786 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17787 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796
17797 int
17798 main ()
17799 {
17800 #ifndef __GNUC__
17801        choke me
17802 #endif
17803
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } && {
17822          test -z "$ac_cxx_werror_flag" ||
17823          test ! -s conftest.err
17824        } && test -s conftest.$ac_objext; then
17825   ac_compiler_gnu=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         ac_compiler_gnu=no
17831 fi
17832
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17835
17836 fi
17837 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17838 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17839 GXX=`test $ac_compiler_gnu = yes && echo yes`
17840 ac_test_CXXFLAGS=${CXXFLAGS+set}
17841 ac_save_CXXFLAGS=$CXXFLAGS
17842 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17843 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17844 if test "${ac_cv_prog_cxx_g+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17848    ac_cxx_werror_flag=yes
17849    ac_cv_prog_cxx_g=no
17850    CXXFLAGS="-g"
17851    cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857
17858 int
17859 main ()
17860 {
17861
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870   *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873   (eval "$ac_compile") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } && {
17880          test -z "$ac_cxx_werror_flag" ||
17881          test ! -s conftest.err
17882        } && test -s conftest.$ac_objext; then
17883   ac_cv_prog_cxx_g=yes
17884 else
17885   echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888         CXXFLAGS=""
17889       cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 int
17897 main ()
17898 {
17899
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (ac_try="$ac_compile"
17906 case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_compile") 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } && {
17918          test -z "$ac_cxx_werror_flag" ||
17919          test ! -s conftest.err
17920        } && test -s conftest.$ac_objext; then
17921   :
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17927          CXXFLAGS="-g"
17928          cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935 int
17936 main ()
17937 {
17938
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext
17944 if { (ac_try="$ac_compile"
17945 case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_compile") 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } && {
17957          test -z "$ac_cxx_werror_flag" ||
17958          test ! -s conftest.err
17959        } && test -s conftest.$ac_objext; then
17960   ac_cv_prog_cxx_g=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 fi
17973
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17976 fi
17977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17978 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17979 if test "$ac_test_CXXFLAGS" = set; then
17980   CXXFLAGS=$ac_save_CXXFLAGS
17981 elif test $ac_cv_prog_cxx_g = yes; then
17982   if test "$GXX" = yes; then
17983     CXXFLAGS="-g -O2"
17984   else
17985     CXXFLAGS="-g"
17986   fi
17987 else
17988   if test "$GXX" = yes; then
17989     CXXFLAGS="-O2"
17990   else
17991     CXXFLAGS=
17992   fi
17993 fi
17994 ac_ext=c
17995 ac_cpp='$CPP $CPPFLAGS'
17996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999
18000
18001
18002
18003
18004
18005
18006
18007     ac_ext=cpp
18008 ac_cpp='$CXXCPP $CPPFLAGS'
18009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18012
18013     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18014 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18015 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018   cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h.  */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h.  */
18024
18025 int
18026 main ()
18027 {
18028
18029              #ifndef __INTEL_COMPILER
18030                 choke me
18031              #endif
18032
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_compile") 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } && {
18051          test -z "$ac_cxx_werror_flag" ||
18052          test ! -s conftest.err
18053        } && test -s conftest.$ac_objext; then
18054   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18060
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064
18065
18066 fi
18067 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18068 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18069     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18070         :; INTELCXX=yes
18071     else
18072         :;
18073     fi
18074     ac_ext=c
18075 ac_cpp='$CPP $CPPFLAGS'
18076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18079
18080
18081
18082
18083         if test "$INTELCXX" = "yes"; then
18084
18085
18086     ac_ext=cpp
18087 ac_cpp='$CXXCPP $CPPFLAGS'
18088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18091
18092     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18093 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18094 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103
18104 int
18105 main ()
18106 {
18107
18108              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18109                 choke me
18110              #endif
18111
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext
18117 if { (ac_try="$ac_compile"
18118 case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_compile") 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } && {
18130          test -z "$ac_cxx_werror_flag" ||
18131          test ! -s conftest.err
18132        } && test -s conftest.$ac_objext; then
18133   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18139
18140 fi
18141
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143
18144
18145 fi
18146 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18147 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18148     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18149         :; INTELCXX8=yes
18150     else
18151         :;
18152     fi
18153     ac_ext=c
18154 ac_cpp='$CPP $CPPFLAGS'
18155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159
18160
18161
18162
18163     ac_ext=cpp
18164 ac_cpp='$CXXCPP $CPPFLAGS'
18165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18168
18169     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18170 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18171 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184
18185              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18186                 choke me
18187              #endif
18188
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_compile") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } && {
18207          test -z "$ac_cxx_werror_flag" ||
18208          test ! -s conftest.err
18209        } && test -s conftest.$ac_objext; then
18210   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18216
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220
18221
18222 fi
18223 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18224 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18225     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18226         :; INTELCXX10=yes
18227     else
18228         :;
18229     fi
18230     ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
18236
18237
18238     fi
18239
18240         if test "x$GCXX" != "xyes"; then
18241         if test "xCXX" = "xC"; then
18242             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18243 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18244 if test "${bakefile_cv_c_exto+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247   cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253
18254 int
18255 main ()
18256 {
18257
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest.$ac_ext.o
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264   (eval $ac_compile) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; then
18268   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18269     case $ac_file in
18270         conftest.$ac_ext.o)
18271             bakefile_cv_c_exto="-ext o"
18272             ;;
18273         *)
18274             ;;
18275     esac
18276 done
18277 else
18278   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18279 See \`config.log' for more details." >&5
18280 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18281 See \`config.log' for more details." >&2;}
18282    { (exit 1); exit 1; }; }
18283
18284 fi
18285
18286 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18287
18288 fi
18289 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18290 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18291 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18292     if test "c" = "c"; then
18293         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18294     fi
18295     if test "c" = "cxx"; then
18296         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18297     fi
18298 fi
18299
18300             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18301                 unset ac_cv_prog_cc_g
18302                 ac_test_CFLAGS=${CFLAGS+set}
18303 ac_save_CFLAGS=$CFLAGS
18304 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18305 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18306 if test "${ac_cv_prog_cc_g+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   ac_save_c_werror_flag=$ac_c_werror_flag
18310    ac_c_werror_flag=yes
18311    ac_cv_prog_cc_g=no
18312    CFLAGS="-g"
18313    cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319
18320 int
18321 main ()
18322 {
18323
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_compile") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } && {
18342          test -z "$ac_c_werror_flag" ||
18343          test ! -s conftest.err
18344        } && test -s conftest.$ac_objext; then
18345   ac_cv_prog_cc_g=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350         CFLAGS=""
18351       cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357
18358 int
18359 main ()
18360 {
18361
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext
18367 if { (ac_try="$ac_compile"
18368 case "(($ac_try" in
18369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370   *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373   (eval "$ac_compile") 2>conftest.er1
18374   ac_status=$?
18375   grep -v '^ *+' conftest.er1 >conftest.err
18376   rm -f conftest.er1
18377   cat conftest.err >&5
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); } && {
18380          test -z "$ac_c_werror_flag" ||
18381          test ! -s conftest.err
18382        } && test -s conftest.$ac_objext; then
18383   :
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388         ac_c_werror_flag=$ac_save_c_werror_flag
18389          CFLAGS="-g"
18390          cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396
18397 int
18398 main ()
18399 {
18400
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_compile") 2>conftest.er1
18413   ac_status=$?
18414   grep -v '^ *+' conftest.er1 >conftest.err
18415   rm -f conftest.er1
18416   cat conftest.err >&5
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } && {
18419          test -z "$ac_c_werror_flag" ||
18420          test ! -s conftest.err
18421        } && test -s conftest.$ac_objext; then
18422   ac_cv_prog_cc_g=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427
18428 fi
18429
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 fi
18432
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437    ac_c_werror_flag=$ac_save_c_werror_flag
18438 fi
18439 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18440 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18441 if test "$ac_test_CFLAGS" = set; then
18442   CFLAGS=$ac_save_CFLAGS
18443 elif test $ac_cv_prog_cc_g = yes; then
18444   if test "$GCC" = yes; then
18445     CFLAGS="-g -O2"
18446   else
18447     CFLAGS="-g"
18448   fi
18449 else
18450   if test "$GCC" = yes; then
18451     CFLAGS="-O2"
18452   else
18453     CFLAGS=
18454   fi
18455 fi
18456             fi
18457         fi
18458
18459                         case `uname -s` in
18460             AIX*)
18461
18462
18463     ac_ext=cpp
18464 ac_cpp='$CXXCPP $CPPFLAGS'
18465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18468
18469     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18470 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18471 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480
18481 int
18482 main ()
18483 {
18484
18485              #ifndef __xlC__
18486                 choke me
18487              #endif
18488
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_compile") 2>conftest.er1
18501   ac_status=$?
18502   grep -v '^ *+' conftest.er1 >conftest.err
18503   rm -f conftest.er1
18504   cat conftest.err >&5
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } && {
18507          test -z "$ac_cxx_werror_flag" ||
18508          test ! -s conftest.err
18509        } && test -s conftest.$ac_objext; then
18510   bakefile_cv_cxx_compiler___xlC__=yes
18511 else
18512   echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515         bakefile_cv_cxx_compiler___xlC__=no
18516
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520
18521
18522 fi
18523 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18524 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18525     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18526         :; XLCXX=yes
18527     else
18528         :;
18529     fi
18530     ac_ext=c
18531 ac_cpp='$CPP $CPPFLAGS'
18532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18535
18536
18537
18538                 ;;
18539
18540             Darwin)
18541
18542
18543     ac_ext=cpp
18544 ac_cpp='$CXXCPP $CPPFLAGS'
18545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18548
18549     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18550 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18551 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560
18561 int
18562 main ()
18563 {
18564
18565              #ifndef __MWERKS__
18566                 choke me
18567              #endif
18568
18569   ;
18570   return 0;
18571 }
18572 _ACEOF
18573 rm -f conftest.$ac_objext
18574 if { (ac_try="$ac_compile"
18575 case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_compile") 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } && {
18587          test -z "$ac_cxx_werror_flag" ||
18588          test ! -s conftest.err
18589        } && test -s conftest.$ac_objext; then
18590   bakefile_cv_cxx_compiler___MWERKS__=yes
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595         bakefile_cv_cxx_compiler___MWERKS__=no
18596
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600
18601
18602 fi
18603 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18604 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18605     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18606         :; MWCXX=yes
18607     else
18608         :;
18609     fi
18610     ac_ext=c
18611 ac_cpp='$CPP $CPPFLAGS'
18612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615
18616
18617
18618                 if test "$MWCXX" != "yes"; then
18619
18620
18621     ac_ext=cpp
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18626
18627     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18628 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18629 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638
18639 int
18640 main ()
18641 {
18642
18643              #ifndef __xlC__
18644                 choke me
18645              #endif
18646
18647   ;
18648   return 0;
18649 }
18650 _ACEOF
18651 rm -f conftest.$ac_objext
18652 if { (ac_try="$ac_compile"
18653 case "(($ac_try" in
18654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655   *) ac_try_echo=$ac_try;;
18656 esac
18657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658   (eval "$ac_compile") 2>conftest.er1
18659   ac_status=$?
18660   grep -v '^ *+' conftest.er1 >conftest.err
18661   rm -f conftest.er1
18662   cat conftest.err >&5
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } && {
18665          test -z "$ac_cxx_werror_flag" ||
18666          test ! -s conftest.err
18667        } && test -s conftest.$ac_objext; then
18668   bakefile_cv_cxx_compiler___xlC__=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673         bakefile_cv_cxx_compiler___xlC__=no
18674
18675 fi
18676
18677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678
18679
18680 fi
18681 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18682 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18683     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18684         :; XLCXX=yes
18685     else
18686         :;
18687     fi
18688     ac_ext=c
18689 ac_cpp='$CPP $CPPFLAGS'
18690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18693
18694
18695
18696                 fi
18697                 ;;
18698
18699             IRIX*)
18700
18701
18702     ac_ext=cpp
18703 ac_cpp='$CXXCPP $CPPFLAGS'
18704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18707
18708     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18709 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18710 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719
18720 int
18721 main ()
18722 {
18723
18724              #ifndef _SGI_COMPILER_VERSION
18725                 choke me
18726              #endif
18727
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_compile") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } && {
18746          test -z "$ac_cxx_werror_flag" ||
18747          test ! -s conftest.err
18748        } && test -s conftest.$ac_objext; then
18749   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18755
18756 fi
18757
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759
18760
18761 fi
18762 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18763 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18764     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18765         :; SGICXX=yes
18766     else
18767         :;
18768     fi
18769     ac_ext=c
18770 ac_cpp='$CPP $CPPFLAGS'
18771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18774
18775
18776
18777                 ;;
18778
18779             Linux*)
18780                                                 if test "$INTELCXX" != "yes"; then
18781
18782
18783     ac_ext=cpp
18784 ac_cpp='$CXXCPP $CPPFLAGS'
18785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18788
18789     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18790 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18791 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800
18801 int
18802 main ()
18803 {
18804
18805              #ifndef __SUNPRO_CC
18806                 choke me
18807              #endif
18808
18809   ;
18810   return 0;
18811 }
18812 _ACEOF
18813 rm -f conftest.$ac_objext
18814 if { (ac_try="$ac_compile"
18815 case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_compile") 2>conftest.er1
18821   ac_status=$?
18822   grep -v '^ *+' conftest.er1 >conftest.err
18823   rm -f conftest.er1
18824   cat conftest.err >&5
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } && {
18827          test -z "$ac_cxx_werror_flag" ||
18828          test ! -s conftest.err
18829        } && test -s conftest.$ac_objext; then
18830   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18836
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840
18841
18842 fi
18843 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18844 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18845     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18846         :; SUNCXX=yes
18847     else
18848         :;
18849     fi
18850     ac_ext=c
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855
18856
18857
18858                 fi
18859                 ;;
18860
18861             HP-UX*)
18862
18863
18864     ac_ext=cpp
18865 ac_cpp='$CXXCPP $CPPFLAGS'
18866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18869
18870     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18871 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18872 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881
18882 int
18883 main ()
18884 {
18885
18886              #ifndef __HP_aCC
18887                 choke me
18888              #endif
18889
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (ac_try="$ac_compile"
18896 case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_compile") 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } && {
18908          test -z "$ac_cxx_werror_flag" ||
18909          test ! -s conftest.err
18910        } && test -s conftest.$ac_objext; then
18911   bakefile_cv_cxx_compiler___HP_aCC=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916         bakefile_cv_cxx_compiler___HP_aCC=no
18917
18918 fi
18919
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921
18922
18923 fi
18924 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18925 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18926     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18927         :; HPCXX=yes
18928     else
18929         :;
18930     fi
18931     ac_ext=c
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18936
18937
18938
18939                 ;;
18940
18941             OSF1)
18942
18943
18944     ac_ext=cpp
18945 ac_cpp='$CXXCPP $CPPFLAGS'
18946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18949
18950     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18951 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18952 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961
18962 int
18963 main ()
18964 {
18965
18966              #ifndef __DECCXX
18967                 choke me
18968              #endif
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_cxx_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   bakefile_cv_cxx_compiler___DECCXX=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         bakefile_cv_cxx_compiler___DECCXX=no
18997
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001
19002
19003 fi
19004 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19005 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19006     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19007         :; COMPAQCXX=yes
19008     else
19009         :;
19010     fi
19011     ac_ext=c
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016
19017
19018
19019                 ;;
19020
19021             SunOS)
19022
19023
19024     ac_ext=cpp
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029
19030     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19031 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19032 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 int
19043 main ()
19044 {
19045
19046              #ifndef __SUNPRO_CC
19047                 choke me
19048              #endif
19049
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_compile") 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } && {
19068          test -z "$ac_cxx_werror_flag" ||
19069          test ! -s conftest.err
19070        } && test -s conftest.$ac_objext; then
19071   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19077
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081
19082
19083 fi
19084 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19085 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19086     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19087         :; SUNCXX=yes
19088     else
19089         :;
19090     fi
19091     ac_ext=c
19092 ac_cpp='$CPP $CPPFLAGS'
19093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096
19097
19098
19099                 ;;
19100         esac
19101     fi
19102
19103
19104
19105 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19106     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19107 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19108    { (exit 1); exit 1; }; }
19109 fi
19110
19111 if test "x$SUNCXX" != xyes; then
19112     if test -n "$ac_tool_prefix"; then
19113   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19114 set dummy ${ac_tool_prefix}ar; ac_word=$2
19115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19117 if test "${ac_cv_prog_AR+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   if test -n "$AR"; then
19121   ac_cv_prog_AR="$AR" # Let the user override the test.
19122 else
19123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19124 for as_dir in $PATH
19125 do
19126   IFS=$as_save_IFS
19127   test -z "$as_dir" && as_dir=.
19128   for ac_exec_ext in '' $ac_executable_extensions; do
19129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19130     ac_cv_prog_AR="${ac_tool_prefix}ar"
19131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19132     break 2
19133   fi
19134 done
19135 done
19136 IFS=$as_save_IFS
19137
19138 fi
19139 fi
19140 AR=$ac_cv_prog_AR
19141 if test -n "$AR"; then
19142   { echo "$as_me:$LINENO: result: $AR" >&5
19143 echo "${ECHO_T}$AR" >&6; }
19144 else
19145   { echo "$as_me:$LINENO: result: no" >&5
19146 echo "${ECHO_T}no" >&6; }
19147 fi
19148
19149
19150 fi
19151 if test -z "$ac_cv_prog_AR"; then
19152   ac_ct_AR=$AR
19153   # Extract the first word of "ar", so it can be a program name with args.
19154 set dummy ar; ac_word=$2
19155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   if test -n "$ac_ct_AR"; then
19161   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19162 else
19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19165 do
19166   IFS=$as_save_IFS
19167   test -z "$as_dir" && as_dir=.
19168   for ac_exec_ext in '' $ac_executable_extensions; do
19169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19170     ac_cv_prog_ac_ct_AR="ar"
19171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19172     break 2
19173   fi
19174 done
19175 done
19176 IFS=$as_save_IFS
19177
19178 fi
19179 fi
19180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19181 if test -n "$ac_ct_AR"; then
19182   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19183 echo "${ECHO_T}$ac_ct_AR" >&6; }
19184 else
19185   { echo "$as_me:$LINENO: result: no" >&5
19186 echo "${ECHO_T}no" >&6; }
19187 fi
19188
19189   if test "x$ac_ct_AR" = x; then
19190     AR=""
19191   else
19192     case $cross_compiling:$ac_tool_warned in
19193 yes:)
19194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19195 whose name does not start with the host triplet.  If you think this
19196 configuration is useful to you, please write to autoconf@gnu.org." >&5
19197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19198 whose name does not start with the host triplet.  If you think this
19199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19200 ac_tool_warned=yes ;;
19201 esac
19202     AR=$ac_ct_AR
19203   fi
19204 else
19205   AR="$ac_cv_prog_AR"
19206 fi
19207
19208     if test "x$AR" = "x" ; then
19209         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19210 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19211    { (exit 1); exit 1; }; }
19212     fi
19213 fi
19214
19215
19216 if test "$wxUSE_MAC" = 1; then
19217
19218 retest_macosx_linking=no
19219
19220 OSX_ARCH_OPTS=""
19221 if test "x$wxUSE_MAC_ARCH" != xno; then
19222     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19223 fi
19224
19225     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19226                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19227             # Implicitly turn on the new --with-macosx-sdk using the default
19228             # SDK which provides the behaviour this option has always had.
19229             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19230                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19231 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19232                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19233 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19234                 wxUSE_MACOSX_SDK=yes
19235             fi
19236         else
19237             # Complain to user if he specified an argument to --enable-universal_binary
19238             # and also 1) specified --with-macosx-sdk using the default (yes) or
19239             # 2) specified --with-macosx-sdk using a path or 3) specified
19240             # --without-macosx-sdk (no).
19241             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19242                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19243 See \`config.log' for more details." >&5
19244 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19245 See \`config.log' for more details." >&2;}
19246    { (exit 1); exit 1; }; }
19247             else
19248                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19249                 # special-case the empty string because the below test simply
19250                 # converts "no" to the empty string anyway.
19251                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19252                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19253 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19254             fi
19255         fi
19256                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19257         if test "$wxUSE_OSX_COCOA" = 1; then
19258             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19259         fi
19260         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19261 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19262         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19263 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19264
19265                                                                                                                 retest_macosx_linking=yes
19266
19267                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19268 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19269         bk_use_pch=no
19270     fi
19271
19272 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19273 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19274 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19275 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19276 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19277
19278 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19279     wxUSE_MACOSX_SDK=
19280 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19281     # TODO: Search for most recent SDK and use it.
19282     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19283 fi
19284
19285
19286 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19287     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19288 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19289     if ! test -d "$wxUSE_MACOSX_SDK"; then
19290         { { echo "$as_me:$LINENO: error: not found
19291 See \`config.log' for more details." >&5
19292 echo "$as_me: error: not found
19293 See \`config.log' for more details." >&2;}
19294    { (exit 1); exit 1; }; }
19295     else
19296         { echo "$as_me:$LINENO: result: exists" >&5
19297 echo "${ECHO_T}exists" >&6; }
19298     fi
19299         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19300     retest_macosx_linking=yes
19301             fi
19302
19303 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19304     wxUSE_MACOSX_VERSION_MIN=
19305 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19306     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19307         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19308 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19309
19310         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/'`
19311
19312         # If that failed, try again with the new key
19313         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19314
19315             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/'`
19316
19317         fi
19318
19319         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19320             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19321             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19322 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19323         else
19324             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19325 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19326             wxUSE_MACOSX_VERSION_MIN=
19327         fi
19328     else
19329         wxUSE_MACOSX_VERSION_MIN=
19330     fi
19331 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19332     for ac_prog in sw_vers
19333 do
19334   # Extract the first word of "$ac_prog", so it can be a program name with args.
19335 set dummy $ac_prog; ac_word=$2
19336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19338 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   if test -n "$OSX_SW_VERS"; then
19342   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19343 else
19344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19345 for as_dir in $PATH
19346 do
19347   IFS=$as_save_IFS
19348   test -z "$as_dir" && as_dir=.
19349   for ac_exec_ext in '' $ac_executable_extensions; do
19350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19351     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19353     break 2
19354   fi
19355 done
19356 done
19357 IFS=$as_save_IFS
19358
19359 fi
19360 fi
19361 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19362 if test -n "$OSX_SW_VERS"; then
19363   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19364 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19365 else
19366   { echo "$as_me:$LINENO: result: no" >&5
19367 echo "${ECHO_T}no" >&6; }
19368 fi
19369
19370
19371   test -n "$OSX_SW_VERS" && break
19372 done
19373
19374     if test "$OSX_SW_VERS" != ""; then
19375         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19376     else
19377                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19378 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19379         OSX_VERSION="10.4"
19380     fi
19381
19382     case "$OSX_VERSION" in
19383         10.4* )
19384             wxUSE_MACOSX_VERSION_MIN=10.4
19385             ;;
19386
19387         * )
19388             if test "$wxUSE_OSX_CARBON" = 1; then
19389                 # otherwise configure stops on leopard for universal_binary
19390                 wxUSE_MACOSX_VERSION_MIN=10.4
19391             else
19392                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19393                 wxUSE_MACOSX_VERSION_MIN=10.5
19394             fi
19395             ;;
19396     esac
19397 fi
19398
19399 NEEDS_GCC40="no"
19400 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19401     NEEDS_GCC40="yes"
19402 fi
19403
19404 if test "$wxUSE_OSX_CARBON" = 1; then
19405     NEEDS_GCC40="yes"
19406 fi
19407
19408 if test "x$NEEDS_GCC40" == "xyes"; then
19409     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19410     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19411     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19412     if test "x$CC" = "xgcc"; then
19413         CCVERSION=`$CC --version | grep 4.[2-9].`
19414         if test "x$CCVERSION" != "x"; then
19415             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19416             CC="gcc-4.0"
19417         fi
19418     fi
19419
19420     if test "x$CXX" = "xg++"; then
19421         CCVERSION=`$CXX --version | grep 4.[2-9].`
19422         if test "x$CCVERSION" != "x"; then
19423             CXX="g++-4.0"
19424         fi
19425     fi
19426 fi
19427
19428 if test "x$MACOSX_SDK_OPTS" != "x"; then
19429     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19430     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19431     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19432 fi
19433
19434 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19435     if test "$wxUSE_OSX_IPHONE" = 1; then
19436         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19437     else
19438         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19439     fi
19440     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19441     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19442     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19443     retest_macosx_linking=yes
19444 fi
19445
19446 if test "x$retest_macosx_linking" = "xyes"; then
19447     ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452
19453     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19454 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19455     cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462 int
19463 main ()
19464 {
19465
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_link") 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } && {
19484          test -z "$ac_c_werror_flag" ||
19485          test ! -s conftest.err
19486        } && test -s conftest$ac_exeext &&
19487        $as_test_x conftest$ac_exeext; then
19488   { echo "$as_me:$LINENO: result: yes" >&5
19489 echo "${ECHO_T}yes" >&6; }
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19495 See \`config.log' for more details." >&5
19496 echo "$as_me: error: no.  Try a different SDK
19497 See \`config.log' for more details." >&2;}
19498    { (exit 1); exit 1; }; }; exit 1
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502       conftest$ac_exeext conftest.$ac_ext
19503     ac_ext=c
19504 ac_cpp='$CPP $CPPFLAGS'
19505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19508
19509
19510     ac_ext=cpp
19511 ac_cpp='$CXXCPP $CPPFLAGS'
19512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19515
19516     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19517 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19518     cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524
19525 int
19526 main ()
19527 {
19528
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_link") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } && {
19547          test -z "$ac_cxx_werror_flag" ||
19548          test ! -s conftest.err
19549        } && test -s conftest$ac_exeext &&
19550        $as_test_x conftest$ac_exeext; then
19551   { echo "$as_me:$LINENO: result: yes" >&5
19552 echo "${ECHO_T}yes" >&6; }
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19558 See \`config.log' for more details." >&5
19559 echo "$as_me: error: no.  Try a different SDK
19560 See \`config.log' for more details." >&2;}
19561    { (exit 1); exit 1; }; }; exit 1
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565       conftest$ac_exeext conftest.$ac_ext
19566     ac_ext=c
19567 ac_cpp='$CPP $CPPFLAGS'
19568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19571
19572 fi
19573
19574 fi
19575 case "${host}" in
19576
19577                 *-*-darwin* )
19578         INSTALL_PROGRAM="cp -fp"
19579         INSTALL_DATA="cp -fp"
19580         ;;
19581     *)
19582         ;;
19583 esac
19584
19585
19586 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19587                     cat >>confdefs.h <<\_ACEOF
19588 #define _GNU_SOURCE 1
19589 _ACEOF
19590
19591
19592             GNU_SOURCE_FLAG="-D_GNU_SOURCE"
19593     CFLAGS="$GNU_SOURCE_FLAG $CFLAGS"
19594 fi
19595
19596 if test "x$USE_AIX" = "x1"; then
19597             if test "x$XLCXX" = "xyes"; then
19598         CXXFLAGS="-qunique $CXXFLAGS"
19599     fi
19600
19601                                 CPPFLAGS="-D_LINUX_SOURCE_COMPAT $CPPFLAGS"
19602 fi
19603
19604 case "${host}" in
19605   powerpc-*-darwin* )
19606     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19607 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19608     cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614
19615 int
19616 main ()
19617 {
19618 #ifndef __POWERPC__
19619         choke me for lack of PowerPC
19620 #endif
19621
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } && {
19640          test -z "$ac_c_werror_flag" ||
19641          test ! -s conftest.err
19642        } && test -s conftest.$ac_objext; then
19643   { echo "$as_me:$LINENO: result: yes" >&5
19644 echo "${ECHO_T}yes" >&6; }
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649         { echo "$as_me:$LINENO: result: no" >&5
19650 echo "${ECHO_T}no" >&6; }
19651         cat >>confdefs.h <<\_ACEOF
19652 #define __POWERPC__ 1
19653 _ACEOF
19654
19655
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659   ;;
19660 esac
19661
19662 case "${host}" in
19663   *-*-darwin* )
19664     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19665 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19666     cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #include <CoreFoundation/CFBase.h>
19673
19674 int
19675 main ()
19676 {
19677
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_compile") 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } && {
19696          test -z "$ac_c_werror_flag" ||
19697          test ! -s conftest.err
19698        } && test -s conftest.$ac_objext; then
19699   { echo "$as_me:$LINENO: result: yes" >&5
19700 echo "${ECHO_T}yes" >&6; }
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         { echo "$as_me:$LINENO: result: no" >&5
19706 echo "${ECHO_T}no" >&6; }
19707         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19708 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19709         cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 #define __CF_USE_FRAMEWORK_INCLUDES__
19716 #include <CoreFoundation/CFBase.h>
19717
19718 int
19719 main ()
19720 {
19721
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (ac_try="$ac_compile"
19728 case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_compile") 2>conftest.er1
19734   ac_status=$?
19735   grep -v '^ *+' conftest.er1 >conftest.err
19736   rm -f conftest.er1
19737   cat conftest.err >&5
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); } && {
19740          test -z "$ac_c_werror_flag" ||
19741          test ! -s conftest.err
19742        } && test -s conftest.$ac_objext; then
19743   { echo "$as_me:$LINENO: result: yes" >&5
19744 echo "${ECHO_T}yes" >&6; }
19745                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19751 See \`config.log' for more details." >&5
19752 echo "$as_me: error: no.  CoreFoundation not available.
19753 See \`config.log' for more details." >&2;}
19754    { (exit 1); exit 1; }; }
19755
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759
19760
19761 fi
19762
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764   ;;
19765 esac
19766
19767 wants_win32=0
19768 doesnt_want_win32=0
19769 case "${host}" in
19770   *-*-cygwin*)
19771       if test "$wxUSE_MSW" = 1 ; then
19772         wants_win32=1
19773       else
19774                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19775 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19776 if test "${wx_cv_nocygwin+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779
19780                 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786
19787 int
19788 main ()
19789 {
19790
19791                         #ifdef __MINGW32__
19792                             choke me
19793                         #endif
19794
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_compile") 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } && {
19813          test -z "$ac_c_werror_flag" ||
19814          test ! -s conftest.err
19815        } && test -s conftest.$ac_objext; then
19816   wx_cv_nocygwin=no
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         wx_cv_nocygwin=yes
19822
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826
19827
19828 fi
19829 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19830 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19831
19832         if test "$wx_cv_nocygwin" = "yes"; then
19833             wants_win32=1
19834         else
19835             doesnt_want_win32=1
19836         fi
19837       fi
19838       if test "$wants_win32" = 1 ; then
19839         BAKEFILE_FORCE_PLATFORM=win32
19840       fi
19841   ;;
19842   *-*-mingw*)
19843       wants_win32=1
19844   ;;
19845 esac
19846
19847 if test "$wxUSE_WINE" = "yes"; then
19848     wants_win32=1
19849     LDFLAGS_GUI="-mwindows"
19850 fi
19851
19852 if test "$wants_win32" = 1 ; then
19853     USE_UNIX=0
19854     USE_WIN32=1
19855     cat >>confdefs.h <<\_ACEOF
19856 #define __WIN32__ 1
19857 _ACEOF
19858
19859     cat >>confdefs.h <<\_ACEOF
19860 #define __WIN95__ 1
19861 _ACEOF
19862
19863     cat >>confdefs.h <<\_ACEOF
19864 #define __WINDOWS__ 1
19865 _ACEOF
19866
19867     cat >>confdefs.h <<\_ACEOF
19868 #define __GNUWIN32__ 1
19869 _ACEOF
19870
19871     cat >>confdefs.h <<\_ACEOF
19872 #define STRICT 1
19873 _ACEOF
19874
19875 fi
19876 if test "$doesnt_want_win32" = 1 ; then
19877     USE_UNIX=1
19878     USE_WIN32=0
19879 fi
19880
19881 if test "$USE_UNIX" = 1 ; then
19882     wxUSE_UNIX=yes
19883     cat >>confdefs.h <<\_ACEOF
19884 #define __UNIX__ 1
19885 _ACEOF
19886
19887 fi
19888
19889 case "${host}" in
19890   *-pc-os2_emx | *-pc-os2-emx )
19891                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19892                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19893 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19894 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lcExt  $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905
19906 /* Override any GCC internal prototype to avoid an error.
19907    Use char because int might match the return type of a GCC
19908    builtin and then its argument prototype would still apply.  */
19909 #ifdef __cplusplus
19910 extern "C"
19911 #endif
19912 char drand48 ();
19913 int
19914 main ()
19915 {
19916 return drand48 ();
19917   ;
19918   return 0;
19919 }
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925   *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928   (eval "$ac_link") 2>conftest.er1
19929   ac_status=$?
19930   grep -v '^ *+' conftest.er1 >conftest.err
19931   rm -f conftest.er1
19932   cat conftest.err >&5
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } && {
19935          test -z "$ac_c_werror_flag" ||
19936          test ! -s conftest.err
19937        } && test -s conftest$ac_exeext &&
19938        $as_test_x conftest$ac_exeext; then
19939   ac_cv_lib_cExt_drand48=yes
19940 else
19941   echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944         ac_cv_lib_cExt_drand48=no
19945 fi
19946
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948       conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19950 fi
19951 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19952 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19953 if test $ac_cv_lib_cExt_drand48 = yes; then
19954   LIBS="$LIBS -lcExt"
19955 fi
19956
19957       else
19958                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19959       fi
19960                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19961 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19962 if test "${wx_cv_gccversion+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965
19966           if test "$cross_compiling" = yes; then
19967                 wx_cv_gccversion="EMX2"
19968
19969 else
19970   cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976
19977                   #include <stdio.h>
19978
19979                   int main()
19980                   {
19981                       FILE *f=fopen("conftestval", "w");
19982                       if (!f) exit(1);
19983                       fprintf(f,
19984                   #if (__GNUC__ < 3)
19985                               "EMX2"
19986                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19987                               "EMX3"
19988                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19989                               "Innotek5"
19990                   #else
19991                               "Innotek6"
19992                   #endif
19993                       );
19994                       exit(0);
19995                   }
19996
19997 _ACEOF
19998 rm -f conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005   (eval "$ac_link") 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20009   { (case "(($ac_try" in
20010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011   *) ac_try_echo=$ac_try;;
20012 esac
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014   (eval "$ac_try") 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }; }; then
20018   wx_cv_gccversion=`cat conftestval`
20019 else
20020   echo "$as_me: program exited with status $ac_status" >&5
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ( exit $ac_status )
20025 wx_cv_gccversion="EMX2"
20026 fi
20027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20028 fi
20029
20030
20031
20032 fi
20033 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20034 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20035       if test "$wx_cv_gccversion" = "EMX2"; then
20036           LIBS="$LIBS -lstdcpp"
20037           LDFLAGS="$LDFLAGS -Zsysv-signals"
20038       else
20039           if test "$wx_cv_gccversion" = "EMX3"; then
20040               LIBS="$LIBS -lstdcxx -lgcc"
20041               LDFLAGS="$LDFLAGS -Zsysv-signals"
20042           else
20043               LIBS="$LIBS -lstdc++"
20044           fi
20045       fi
20046       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20047         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20048 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20049         wxUSE_OMF=yes
20050         enable_omf=yes
20051       fi
20052         ;;
20053   *)
20054
20055       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20056 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20057 if test "${ac_cv_string_strcasecmp+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060
20061           cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067
20068               #include <string.h>
20069
20070 int
20071 main ()
20072 {
20073
20074                   strcasecmp("foo", "bar");
20075
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_link") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && {
20094          test -z "$ac_c_werror_flag" ||
20095          test ! -s conftest.err
20096        } && test -s conftest$ac_exeext &&
20097        $as_test_x conftest$ac_exeext; then
20098   ac_cv_string_strcasecmp=yes
20099 else
20100   echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103         ac_cv_string_strcasecmp=no
20104
20105 fi
20106
20107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20108       conftest$ac_exeext conftest.$ac_ext
20109
20110 fi
20111 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20112 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20113
20114       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20115           cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_STRCASECMP_IN_STRING_H 1
20117 _ACEOF
20118
20119       else
20120           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20121 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20122 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125
20126               cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132
20133                   #include <strings.h>
20134
20135 int
20136 main ()
20137 {
20138
20139                       strcasecmp("foo", "bar");
20140
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_link") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } && {
20159          test -z "$ac_c_werror_flag" ||
20160          test ! -s conftest.err
20161        } && test -s conftest$ac_exeext &&
20162        $as_test_x conftest$ac_exeext; then
20163   ac_cv_strings_strcasecmp=yes
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168         ac_cv_strings_strcasecmp=no
20169
20170 fi
20171
20172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20173       conftest$ac_exeext conftest.$ac_ext
20174
20175 fi
20176 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20177 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20178
20179           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20180               cat >>confdefs.h <<\_ACEOF
20181 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20182 _ACEOF
20183
20184           else
20185               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20186 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20187    { (exit 1); exit 1; }; }
20188           fi
20189       fi
20190
20191         ;;
20192 esac
20193
20194
20195 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20197 if test "${ac_cv_header_stdc+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200   cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 #include <stdlib.h>
20207 #include <stdarg.h>
20208 #include <string.h>
20209 #include <float.h>
20210
20211 int
20212 main ()
20213 {
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_compile") 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } && {
20233          test -z "$ac_c_werror_flag" ||
20234          test ! -s conftest.err
20235        } && test -s conftest.$ac_objext; then
20236   ac_cv_header_stdc=yes
20237 else
20238   echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241         ac_cv_header_stdc=no
20242 fi
20243
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245
20246 if test $ac_cv_header_stdc = yes; then
20247   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20248   cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 #include <string.h>
20255
20256 _ACEOF
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258   $EGREP "memchr" >/dev/null 2>&1; then
20259   :
20260 else
20261   ac_cv_header_stdc=no
20262 fi
20263 rm -f conftest*
20264
20265 fi
20266
20267 if test $ac_cv_header_stdc = yes; then
20268   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20269   cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 #include <stdlib.h>
20276
20277 _ACEOF
20278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20279   $EGREP "free" >/dev/null 2>&1; then
20280   :
20281 else
20282   ac_cv_header_stdc=no
20283 fi
20284 rm -f conftest*
20285
20286 fi
20287
20288 if test $ac_cv_header_stdc = yes; then
20289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20290   if test "$cross_compiling" = yes; then
20291   :
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299 #include <ctype.h>
20300 #include <stdlib.h>
20301 #if ((' ' & 0x0FF) == 0x020)
20302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20304 #else
20305 # define ISLOWER(c) \
20306                    (('a' <= (c) && (c) <= 'i') \
20307                      || ('j' <= (c) && (c) <= 'r') \
20308                      || ('s' <= (c) && (c) <= 'z'))
20309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20310 #endif
20311
20312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20313 int
20314 main ()
20315 {
20316   int i;
20317   for (i = 0; i < 256; i++)
20318     if (XOR (islower (i), ISLOWER (i))
20319         || toupper (i) != TOUPPER (i))
20320       return 2;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_link") 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335   { (case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_try") 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   :
20345 else
20346   echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ( exit $ac_status )
20351 ac_cv_header_stdc=no
20352 fi
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20354 fi
20355
20356
20357 fi
20358 fi
20359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20360 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20361 if test $ac_cv_header_stdc = yes; then
20362
20363 cat >>confdefs.h <<\_ACEOF
20364 #define STDC_HEADERS 1
20365 _ACEOF
20366
20367 fi
20368
20369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20380                   inttypes.h stdint.h unistd.h
20381 do
20382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 $ac_includes_default
20395
20396 #include <$ac_header>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402   *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405   (eval "$ac_compile") 2>conftest.er1
20406   ac_status=$?
20407   grep -v '^ *+' conftest.er1 >conftest.err
20408   rm -f conftest.er1
20409   cat conftest.err >&5
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } && {
20412          test -z "$ac_c_werror_flag" ||
20413          test ! -s conftest.err
20414        } && test -s conftest.$ac_objext; then
20415   eval "$as_ac_Header=yes"
20416 else
20417   echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420         eval "$as_ac_Header=no"
20421 fi
20422
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 fi
20425 ac_res=`eval echo '${'$as_ac_Header'}'`
20426                { echo "$as_me:$LINENO: result: $ac_res" >&5
20427 echo "${ECHO_T}$ac_res" >&6; }
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431 _ACEOF
20432
20433 fi
20434
20435 done
20436
20437
20438
20439
20440 for ac_header in langinfo.h wchar.h
20441 do
20442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 $ac_includes_default
20455
20456 #include <$ac_header>
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (ac_try="$ac_compile"
20460 case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_compile") 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } && {
20472          test -z "$ac_c_werror_flag" ||
20473          test ! -s conftest.err
20474        } && test -s conftest.$ac_objext; then
20475   eval "$as_ac_Header=yes"
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480         eval "$as_ac_Header=no"
20481 fi
20482
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484 fi
20485 ac_res=`eval echo '${'$as_ac_Header'}'`
20486                { echo "$as_me:$LINENO: result: $ac_res" >&5
20487 echo "${ECHO_T}$ac_res" >&6; }
20488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20489   cat >>confdefs.h <<_ACEOF
20490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20491 _ACEOF
20492
20493 fi
20494
20495 done
20496
20497
20498 if test "$ac_cv_header_wchar_h" != "yes"; then
20499
20500 for ac_header in wcstr.h
20501 do
20502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 $ac_includes_default
20515
20516 #include <$ac_header>
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_compile") 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && {
20532          test -z "$ac_c_werror_flag" ||
20533          test ! -s conftest.err
20534        } && test -s conftest.$ac_objext; then
20535   eval "$as_ac_Header=yes"
20536 else
20537   echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540         eval "$as_ac_Header=no"
20541 fi
20542
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 fi
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546                { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20549   cat >>confdefs.h <<_ACEOF
20550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20551 _ACEOF
20552
20553 fi
20554
20555 done
20556
20557 fi
20558
20559 case "${host}" in
20560   *-pc-os2_emx | *-pc-os2-emx )
20561                   if test $ac_cv_header_langinfo_h = "yes" \
20562                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20563                      -o "$wx_cv_gccversion" = "EMX3" \
20564                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20565           LIBS="$LIBS -lintl"
20566       fi
20567   ;;
20568 esac
20569
20570 if test "$USE_UNIX" = 1 ; then
20571
20572 for ac_header in sys/select.h
20573 do
20574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h.  */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h.  */
20586 $ac_includes_default
20587
20588 #include <$ac_header>
20589 _ACEOF
20590 rm -f conftest.$ac_objext
20591 if { (ac_try="$ac_compile"
20592 case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_compile") 2>conftest.er1
20598   ac_status=$?
20599   grep -v '^ *+' conftest.er1 >conftest.err
20600   rm -f conftest.er1
20601   cat conftest.err >&5
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } && {
20604          test -z "$ac_c_werror_flag" ||
20605          test ! -s conftest.err
20606        } && test -s conftest.$ac_objext; then
20607   eval "$as_ac_Header=yes"
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612         eval "$as_ac_Header=no"
20613 fi
20614
20615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 fi
20617 ac_res=`eval echo '${'$as_ac_Header'}'`
20618                { echo "$as_me:$LINENO: result: $ac_res" >&5
20619 echo "${ECHO_T}$ac_res" >&6; }
20620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20621   cat >>confdefs.h <<_ACEOF
20622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20623 _ACEOF
20624
20625 fi
20626
20627 done
20628
20629 fi
20630
20631
20632 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20633 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20634 if test "${ac_cv_c_const+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643
20644 int
20645 main ()
20646 {
20647 /* FIXME: Include the comments suggested by Paul. */
20648 #ifndef __cplusplus
20649   /* Ultrix mips cc rejects this.  */
20650   typedef int charset[2];
20651   const charset cs;
20652   /* SunOS 4.1.1 cc rejects this.  */
20653   char const *const *pcpcc;
20654   char **ppc;
20655   /* NEC SVR4.0.2 mips cc rejects this.  */
20656   struct point {int x, y;};
20657   static struct point const zero = {0,0};
20658   /* AIX XL C 1.02.0.0 rejects this.
20659      It does not let you subtract one const X* pointer from another in
20660      an arm of an if-expression whose if-part is not a constant
20661      expression */
20662   const char *g = "string";
20663   pcpcc = &g + (g ? g-g : 0);
20664   /* HPUX 7.0 cc rejects these. */
20665   ++pcpcc;
20666   ppc = (char**) pcpcc;
20667   pcpcc = (char const *const *) ppc;
20668   { /* SCO 3.2v4 cc rejects this.  */
20669     char *t;
20670     char const *s = 0 ? (char *) 0 : (char const *) 0;
20671
20672     *t++ = 0;
20673     if (s) return 0;
20674   }
20675   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20676     int x[] = {25, 17};
20677     const int *foo = &x[0];
20678     ++foo;
20679   }
20680   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20681     typedef const int *iptr;
20682     iptr p = 0;
20683     ++p;
20684   }
20685   { /* AIX XL C 1.02.0.0 rejects this saying
20686        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20687     struct s { int j; const int *ap[3]; };
20688     struct s *b; b->j = 5;
20689   }
20690   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20691     const int foo = 10;
20692     if (!foo) return 0;
20693   }
20694   return !cs[0] && !zero.x;
20695 #endif
20696
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_compile") 2>conftest.er1
20709   ac_status=$?
20710   grep -v '^ *+' conftest.er1 >conftest.err
20711   rm -f conftest.er1
20712   cat conftest.err >&5
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } && {
20715          test -z "$ac_c_werror_flag" ||
20716          test ! -s conftest.err
20717        } && test -s conftest.$ac_objext; then
20718   ac_cv_c_const=yes
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         ac_cv_c_const=no
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20729 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20730 if test $ac_cv_c_const = no; then
20731
20732 cat >>confdefs.h <<\_ACEOF
20733 #define const
20734 _ACEOF
20735
20736 fi
20737
20738 { echo "$as_me:$LINENO: checking for inline" >&5
20739 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20740 if test "${ac_cv_c_inline+set}" = set; then
20741   echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743   ac_cv_c_inline=no
20744 for ac_kw in inline __inline__ __inline; do
20745   cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #ifndef __cplusplus
20752 typedef int foo_t;
20753 static $ac_kw foo_t static_foo () {return 0; }
20754 $ac_kw foo_t foo () {return 0; }
20755 #endif
20756
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_compile") 2>conftest.er1
20766   ac_status=$?
20767   grep -v '^ *+' conftest.er1 >conftest.err
20768   rm -f conftest.er1
20769   cat conftest.err >&5
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); } && {
20772          test -z "$ac_c_werror_flag" ||
20773          test ! -s conftest.err
20774        } && test -s conftest.$ac_objext; then
20775   ac_cv_c_inline=$ac_kw
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780
20781 fi
20782
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784   test "$ac_cv_c_inline" != no && break
20785 done
20786
20787 fi
20788 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20789 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20790
20791
20792 case $ac_cv_c_inline in
20793   inline | yes) ;;
20794   *)
20795     case $ac_cv_c_inline in
20796       no) ac_val=;;
20797       *) ac_val=$ac_cv_c_inline;;
20798     esac
20799     cat >>confdefs.h <<_ACEOF
20800 #ifndef __cplusplus
20801 #define inline $ac_val
20802 #endif
20803 _ACEOF
20804     ;;
20805 esac
20806
20807
20808 { echo "$as_me:$LINENO: checking for short" >&5
20809 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20810 if test "${ac_cv_type_short+set}" = set; then
20811   echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813   cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819 $ac_includes_default
20820 typedef short ac__type_new_;
20821 int
20822 main ()
20823 {
20824 if ((ac__type_new_ *) 0)
20825   return 0;
20826 if (sizeof (ac__type_new_))
20827   return 0;
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_compile") 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } && {
20846          test -z "$ac_c_werror_flag" ||
20847          test ! -s conftest.err
20848        } && test -s conftest.$ac_objext; then
20849   ac_cv_type_short=yes
20850 else
20851   echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854         ac_cv_type_short=no
20855 fi
20856
20857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20858 fi
20859 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20860 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20861
20862 # The cast to long int works around a bug in the HP C Compiler
20863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20865 # This bug is HP SR number 8606223364.
20866 { echo "$as_me:$LINENO: checking size of short" >&5
20867 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20868 if test "${ac_cv_sizeof_short+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871   if test "$cross_compiling" = yes; then
20872   # Depending upon the size, compute the lo and hi bounds.
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 $ac_includes_default
20880    typedef short ac__type_sizeof_;
20881 int
20882 main ()
20883 {
20884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20885 test_array [0] = 0
20886
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_compile") 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && {
20905          test -z "$ac_c_werror_flag" ||
20906          test ! -s conftest.err
20907        } && test -s conftest.$ac_objext; then
20908   ac_lo=0 ac_mid=0
20909   while :; do
20910     cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916 $ac_includes_default
20917    typedef short ac__type_sizeof_;
20918 int
20919 main ()
20920 {
20921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20922 test_array [0] = 0
20923
20924   ;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_compile") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } && {
20942          test -z "$ac_c_werror_flag" ||
20943          test ! -s conftest.err
20944        } && test -s conftest.$ac_objext; then
20945   ac_hi=$ac_mid; break
20946 else
20947   echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950         ac_lo=`expr $ac_mid + 1`
20951                         if test $ac_lo -le $ac_mid; then
20952                           ac_lo= ac_hi=
20953                           break
20954                         fi
20955                         ac_mid=`expr 2 '*' $ac_mid + 1`
20956 fi
20957
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959   done
20960 else
20961   echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964         cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 $ac_includes_default
20971    typedef short ac__type_sizeof_;
20972 int
20973 main ()
20974 {
20975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20976 test_array [0] = 0
20977
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_compile") 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } && {
20996          test -z "$ac_c_werror_flag" ||
20997          test ! -s conftest.err
20998        } && test -s conftest.$ac_objext; then
20999   ac_hi=-1 ac_mid=-1
21000   while :; do
21001     cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 $ac_includes_default
21008    typedef short ac__type_sizeof_;
21009 int
21010 main ()
21011 {
21012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21013 test_array [0] = 0
21014
21015   ;
21016   return 0;
21017 }
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026   (eval "$ac_compile") 2>conftest.er1
21027   ac_status=$?
21028   grep -v '^ *+' conftest.er1 >conftest.err
21029   rm -f conftest.er1
21030   cat conftest.err >&5
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); } && {
21033          test -z "$ac_c_werror_flag" ||
21034          test ! -s conftest.err
21035        } && test -s conftest.$ac_objext; then
21036   ac_lo=$ac_mid; break
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041         ac_hi=`expr '(' $ac_mid ')' - 1`
21042                         if test $ac_mid -le $ac_hi; then
21043                           ac_lo= ac_hi=
21044                           break
21045                         fi
21046                         ac_mid=`expr 2 '*' $ac_mid`
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050   done
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055         ac_lo= ac_hi=
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059 fi
21060
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 # Binary search between lo and hi bounds.
21063 while test "x$ac_lo" != "x$ac_hi"; do
21064   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21065   cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071 $ac_includes_default
21072    typedef short ac__type_sizeof_;
21073 int
21074 main ()
21075 {
21076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21077 test_array [0] = 0
21078
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } && {
21097          test -z "$ac_c_werror_flag" ||
21098          test ! -s conftest.err
21099        } && test -s conftest.$ac_objext; then
21100   ac_hi=$ac_mid
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105         ac_lo=`expr '(' $ac_mid ')' + 1`
21106 fi
21107
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 done
21110 case $ac_lo in
21111 ?*) ac_cv_sizeof_short=$ac_lo;;
21112 '') if test "$ac_cv_type_short" = yes; then
21113      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21114 See \`config.log' for more details." >&5
21115 echo "$as_me: error: cannot compute sizeof (short)
21116 See \`config.log' for more details." >&2;}
21117    { (exit 77); exit 77; }; }
21118    else
21119      ac_cv_sizeof_short=0
21120    fi ;;
21121 esac
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 $ac_includes_default
21130    typedef short ac__type_sizeof_;
21131 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21132 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21133 #include <stdio.h>
21134 #include <stdlib.h>
21135 int
21136 main ()
21137 {
21138
21139   FILE *f = fopen ("conftest.val", "w");
21140   if (! f)
21141     return 1;
21142   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21143     {
21144       long int i = longval ();
21145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21146         return 1;
21147       fprintf (f, "%ld\n", i);
21148     }
21149   else
21150     {
21151       unsigned long int i = ulongval ();
21152       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21153         return 1;
21154       fprintf (f, "%lu\n", i);
21155     }
21156   return ferror (f) || fclose (f) != 0;
21157
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest$ac_exeext
21163 if { (ac_try="$ac_link"
21164 case "(($ac_try" in
21165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166   *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169   (eval "$ac_link") 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21173   { (case "(($ac_try" in
21174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175   *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178   (eval "$ac_try") 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   ac_cv_sizeof_short=`cat conftest.val`
21183 else
21184   echo "$as_me: program exited with status $ac_status" >&5
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 ( exit $ac_status )
21189 if test "$ac_cv_type_short" = yes; then
21190      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21191 See \`config.log' for more details." >&5
21192 echo "$as_me: error: cannot compute sizeof (short)
21193 See \`config.log' for more details." >&2;}
21194    { (exit 77); exit 77; }; }
21195    else
21196      ac_cv_sizeof_short=0
21197    fi
21198 fi
21199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21200 fi
21201 rm -f conftest.val
21202 fi
21203 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21204 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21205
21206
21207
21208 cat >>confdefs.h <<_ACEOF
21209 #define SIZEOF_SHORT $ac_cv_sizeof_short
21210 _ACEOF
21211
21212
21213 { echo "$as_me:$LINENO: checking for void *" >&5
21214 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21215 if test "${ac_cv_type_void_p+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 $ac_includes_default
21225 typedef void * ac__type_new_;
21226 int
21227 main ()
21228 {
21229 if ((ac__type_new_ *) 0)
21230   return 0;
21231 if (sizeof (ac__type_new_))
21232   return 0;
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_compile") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } && {
21251          test -z "$ac_c_werror_flag" ||
21252          test ! -s conftest.err
21253        } && test -s conftest.$ac_objext; then
21254   ac_cv_type_void_p=yes
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259         ac_cv_type_void_p=no
21260 fi
21261
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 fi
21264 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21265 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21266
21267 # The cast to long int works around a bug in the HP C Compiler
21268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21270 # This bug is HP SR number 8606223364.
21271 { echo "$as_me:$LINENO: checking size of void *" >&5
21272 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21273 if test "${ac_cv_sizeof_void_p+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   if test "$cross_compiling" = yes; then
21277   # Depending upon the size, compute the lo and hi bounds.
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 $ac_includes_default
21285    typedef void * ac__type_sizeof_;
21286 int
21287 main ()
21288 {
21289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21290 test_array [0] = 0
21291
21292   ;
21293   return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_compile") 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } && {
21310          test -z "$ac_c_werror_flag" ||
21311          test ! -s conftest.err
21312        } && test -s conftest.$ac_objext; then
21313   ac_lo=0 ac_mid=0
21314   while :; do
21315     cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321 $ac_includes_default
21322    typedef void * ac__type_sizeof_;
21323 int
21324 main ()
21325 {
21326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21327 test_array [0] = 0
21328
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337   *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340   (eval "$ac_compile") 2>conftest.er1
21341   ac_status=$?
21342   grep -v '^ *+' conftest.er1 >conftest.err
21343   rm -f conftest.er1
21344   cat conftest.err >&5
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } && {
21347          test -z "$ac_c_werror_flag" ||
21348          test ! -s conftest.err
21349        } && test -s conftest.$ac_objext; then
21350   ac_hi=$ac_mid; break
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355         ac_lo=`expr $ac_mid + 1`
21356                         if test $ac_lo -le $ac_mid; then
21357                           ac_lo= ac_hi=
21358                           break
21359                         fi
21360                         ac_mid=`expr 2 '*' $ac_mid + 1`
21361 fi
21362
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364   done
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369         cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h.  */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h.  */
21375 $ac_includes_default
21376    typedef void * ac__type_sizeof_;
21377 int
21378 main ()
21379 {
21380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21381 test_array [0] = 0
21382
21383   ;
21384   return 0;
21385 }
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391   *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394   (eval "$ac_compile") 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } && {
21401          test -z "$ac_c_werror_flag" ||
21402          test ! -s conftest.err
21403        } && test -s conftest.$ac_objext; then
21404   ac_hi=-1 ac_mid=-1
21405   while :; do
21406     cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 $ac_includes_default
21413    typedef void * ac__type_sizeof_;
21414 int
21415 main ()
21416 {
21417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21418 test_array [0] = 0
21419
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext
21425 if { (ac_try="$ac_compile"
21426 case "(($ac_try" in
21427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428   *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431   (eval "$ac_compile") 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } && {
21438          test -z "$ac_c_werror_flag" ||
21439          test ! -s conftest.err
21440        } && test -s conftest.$ac_objext; then
21441   ac_lo=$ac_mid; break
21442 else
21443   echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446         ac_hi=`expr '(' $ac_mid ')' - 1`
21447                         if test $ac_mid -le $ac_hi; then
21448                           ac_lo= ac_hi=
21449                           break
21450                         fi
21451                         ac_mid=`expr 2 '*' $ac_mid`
21452 fi
21453
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455   done
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460         ac_lo= ac_hi=
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 # Binary search between lo and hi bounds.
21468 while test "x$ac_lo" != "x$ac_hi"; do
21469   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21470   cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 $ac_includes_default
21477    typedef void * ac__type_sizeof_;
21478 int
21479 main ()
21480 {
21481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21482 test_array [0] = 0
21483
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_compile") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } && {
21502          test -z "$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        } && test -s conftest.$ac_objext; then
21505   ac_hi=$ac_mid
21506 else
21507   echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21509
21510         ac_lo=`expr '(' $ac_mid ')' + 1`
21511 fi
21512
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514 done
21515 case $ac_lo in
21516 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21517 '') if test "$ac_cv_type_void_p" = yes; then
21518      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21519 See \`config.log' for more details." >&5
21520 echo "$as_me: error: cannot compute sizeof (void *)
21521 See \`config.log' for more details." >&2;}
21522    { (exit 77); exit 77; }; }
21523    else
21524      ac_cv_sizeof_void_p=0
21525    fi ;;
21526 esac
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 $ac_includes_default
21535    typedef void * ac__type_sizeof_;
21536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21538 #include <stdio.h>
21539 #include <stdlib.h>
21540 int
21541 main ()
21542 {
21543
21544   FILE *f = fopen ("conftest.val", "w");
21545   if (! f)
21546     return 1;
21547   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21548     {
21549       long int i = longval ();
21550       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21551         return 1;
21552       fprintf (f, "%ld\n", i);
21553     }
21554   else
21555     {
21556       unsigned long int i = ulongval ();
21557       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21558         return 1;
21559       fprintf (f, "%lu\n", i);
21560     }
21561   return ferror (f) || fclose (f) != 0;
21562
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574   (eval "$ac_link") 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21578   { (case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_try") 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; }; then
21587   ac_cv_sizeof_void_p=`cat conftest.val`
21588 else
21589   echo "$as_me: program exited with status $ac_status" >&5
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 ( exit $ac_status )
21594 if test "$ac_cv_type_void_p" = yes; then
21595      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21596 See \`config.log' for more details." >&5
21597 echo "$as_me: error: cannot compute sizeof (void *)
21598 See \`config.log' for more details." >&2;}
21599    { (exit 77); exit 77; }; }
21600    else
21601      ac_cv_sizeof_void_p=0
21602    fi
21603 fi
21604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605 fi
21606 rm -f conftest.val
21607 fi
21608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21609 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21610
21611
21612
21613 cat >>confdefs.h <<_ACEOF
21614 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21615 _ACEOF
21616
21617
21618 { echo "$as_me:$LINENO: checking for int" >&5
21619 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21620 if test "${ac_cv_type_int+set}" = set; then
21621   echo $ECHO_N "(cached) $ECHO_C" >&6
21622 else
21623   cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 $ac_includes_default
21630 typedef int ac__type_new_;
21631 int
21632 main ()
21633 {
21634 if ((ac__type_new_ *) 0)
21635   return 0;
21636 if (sizeof (ac__type_new_))
21637   return 0;
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext
21643 if { (ac_try="$ac_compile"
21644 case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649   (eval "$ac_compile") 2>conftest.er1
21650   ac_status=$?
21651   grep -v '^ *+' conftest.er1 >conftest.err
21652   rm -f conftest.er1
21653   cat conftest.err >&5
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); } && {
21656          test -z "$ac_c_werror_flag" ||
21657          test ! -s conftest.err
21658        } && test -s conftest.$ac_objext; then
21659   ac_cv_type_int=yes
21660 else
21661   echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664         ac_cv_type_int=no
21665 fi
21666
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 fi
21669 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21670 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21671
21672 # The cast to long int works around a bug in the HP C Compiler
21673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21675 # This bug is HP SR number 8606223364.
21676 { echo "$as_me:$LINENO: checking size of int" >&5
21677 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21678 if test "${ac_cv_sizeof_int+set}" = set; then
21679   echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681   if test "$cross_compiling" = yes; then
21682   # Depending upon the size, compute the lo and hi bounds.
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 $ac_includes_default
21690    typedef int ac__type_sizeof_;
21691 int
21692 main ()
21693 {
21694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21695 test_array [0] = 0
21696
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708   (eval "$ac_compile") 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } && {
21715          test -z "$ac_c_werror_flag" ||
21716          test ! -s conftest.err
21717        } && test -s conftest.$ac_objext; then
21718   ac_lo=0 ac_mid=0
21719   while :; do
21720     cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726 $ac_includes_default
21727    typedef int ac__type_sizeof_;
21728 int
21729 main ()
21730 {
21731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21732 test_array [0] = 0
21733
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest.$ac_objext
21739 if { (ac_try="$ac_compile"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_compile") 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && {
21752          test -z "$ac_c_werror_flag" ||
21753          test ! -s conftest.err
21754        } && test -s conftest.$ac_objext; then
21755   ac_hi=$ac_mid; break
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760         ac_lo=`expr $ac_mid + 1`
21761                         if test $ac_lo -le $ac_mid; then
21762                           ac_lo= ac_hi=
21763                           break
21764                         fi
21765                         ac_mid=`expr 2 '*' $ac_mid + 1`
21766 fi
21767
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769   done
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774         cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 $ac_includes_default
21781    typedef int ac__type_sizeof_;
21782 int
21783 main ()
21784 {
21785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21786 test_array [0] = 0
21787
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796   *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799   (eval "$ac_compile") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest.$ac_objext; then
21809   ac_hi=-1 ac_mid=-1
21810   while :; do
21811     cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 $ac_includes_default
21818    typedef int ac__type_sizeof_;
21819 int
21820 main ()
21821 {
21822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21823 test_array [0] = 0
21824
21825   ;
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836   (eval "$ac_compile") 2>conftest.er1
21837   ac_status=$?
21838   grep -v '^ *+' conftest.er1 >conftest.err
21839   rm -f conftest.er1
21840   cat conftest.err >&5
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); } && {
21843          test -z "$ac_c_werror_flag" ||
21844          test ! -s conftest.err
21845        } && test -s conftest.$ac_objext; then
21846   ac_lo=$ac_mid; break
21847 else
21848   echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851         ac_hi=`expr '(' $ac_mid ')' - 1`
21852                         if test $ac_mid -le $ac_hi; then
21853                           ac_lo= ac_hi=
21854                           break
21855                         fi
21856                         ac_mid=`expr 2 '*' $ac_mid`
21857 fi
21858
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860   done
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865         ac_lo= ac_hi=
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 fi
21870
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 # Binary search between lo and hi bounds.
21873 while test "x$ac_lo" != "x$ac_hi"; do
21874   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21875   cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 $ac_includes_default
21882    typedef int ac__type_sizeof_;
21883 int
21884 main ()
21885 {
21886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21887 test_array [0] = 0
21888
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_compile") 2>conftest.er1
21901   ac_status=$?
21902   grep -v '^ *+' conftest.er1 >conftest.err
21903   rm -f conftest.er1
21904   cat conftest.err >&5
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } && {
21907          test -z "$ac_c_werror_flag" ||
21908          test ! -s conftest.err
21909        } && test -s conftest.$ac_objext; then
21910   ac_hi=$ac_mid
21911 else
21912   echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915         ac_lo=`expr '(' $ac_mid ')' + 1`
21916 fi
21917
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 done
21920 case $ac_lo in
21921 ?*) ac_cv_sizeof_int=$ac_lo;;
21922 '') if test "$ac_cv_type_int" = yes; then
21923      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21924 See \`config.log' for more details." >&5
21925 echo "$as_me: error: cannot compute sizeof (int)
21926 See \`config.log' for more details." >&2;}
21927    { (exit 77); exit 77; }; }
21928    else
21929      ac_cv_sizeof_int=0
21930    fi ;;
21931 esac
21932 else
21933   cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h.  */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h.  */
21939 $ac_includes_default
21940    typedef int ac__type_sizeof_;
21941 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21942 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21943 #include <stdio.h>
21944 #include <stdlib.h>
21945 int
21946 main ()
21947 {
21948
21949   FILE *f = fopen ("conftest.val", "w");
21950   if (! f)
21951     return 1;
21952   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21953     {
21954       long int i = longval ();
21955       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21956         return 1;
21957       fprintf (f, "%ld\n", i);
21958     }
21959   else
21960     {
21961       unsigned long int i = ulongval ();
21962       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21963         return 1;
21964       fprintf (f, "%lu\n", i);
21965     }
21966   return ferror (f) || fclose (f) != 0;
21967
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 rm -f conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_link") 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21983   { (case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_try") 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; }; then
21992   ac_cv_sizeof_int=`cat conftest.val`
21993 else
21994   echo "$as_me: program exited with status $ac_status" >&5
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 ( exit $ac_status )
21999 if test "$ac_cv_type_int" = yes; then
22000      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22001 See \`config.log' for more details." >&5
22002 echo "$as_me: error: cannot compute sizeof (int)
22003 See \`config.log' for more details." >&2;}
22004    { (exit 77); exit 77; }; }
22005    else
22006      ac_cv_sizeof_int=0
22007    fi
22008 fi
22009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22010 fi
22011 rm -f conftest.val
22012 fi
22013 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22014 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22015
22016
22017
22018 cat >>confdefs.h <<_ACEOF
22019 #define SIZEOF_INT $ac_cv_sizeof_int
22020 _ACEOF
22021
22022
22023 { echo "$as_me:$LINENO: checking for long" >&5
22024 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22025 if test "${ac_cv_type_long+set}" = set; then
22026   echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028   cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h.  */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h.  */
22034 $ac_includes_default
22035 typedef long ac__type_new_;
22036 int
22037 main ()
22038 {
22039 if ((ac__type_new_ *) 0)
22040   return 0;
22041 if (sizeof (ac__type_new_))
22042   return 0;
22043   ;
22044   return 0;
22045 }
22046 _ACEOF
22047 rm -f conftest.$ac_objext
22048 if { (ac_try="$ac_compile"
22049 case "(($ac_try" in
22050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051   *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054   (eval "$ac_compile") 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && {
22061          test -z "$ac_c_werror_flag" ||
22062          test ! -s conftest.err
22063        } && test -s conftest.$ac_objext; then
22064   ac_cv_type_long=yes
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069         ac_cv_type_long=no
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 fi
22074 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22075 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22076
22077 # The cast to long int works around a bug in the HP C Compiler
22078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22080 # This bug is HP SR number 8606223364.
22081 { echo "$as_me:$LINENO: checking size of long" >&5
22082 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22083 if test "${ac_cv_sizeof_long+set}" = set; then
22084   echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086   if test "$cross_compiling" = yes; then
22087   # Depending upon the size, compute the lo and hi bounds.
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h.  */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h.  */
22094 $ac_includes_default
22095    typedef long ac__type_sizeof_;
22096 int
22097 main ()
22098 {
22099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22100 test_array [0] = 0
22101
22102   ;
22103   return 0;
22104 }
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113   (eval "$ac_compile") 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } && {
22120          test -z "$ac_c_werror_flag" ||
22121          test ! -s conftest.err
22122        } && test -s conftest.$ac_objext; then
22123   ac_lo=0 ac_mid=0
22124   while :; do
22125     cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 $ac_includes_default
22132    typedef long ac__type_sizeof_;
22133 int
22134 main ()
22135 {
22136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22137 test_array [0] = 0
22138
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_compile") 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } && {
22157          test -z "$ac_c_werror_flag" ||
22158          test ! -s conftest.err
22159        } && test -s conftest.$ac_objext; then
22160   ac_hi=$ac_mid; break
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165         ac_lo=`expr $ac_mid + 1`
22166                         if test $ac_lo -le $ac_mid; then
22167                           ac_lo= ac_hi=
22168                           break
22169                         fi
22170                         ac_mid=`expr 2 '*' $ac_mid + 1`
22171 fi
22172
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174   done
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179         cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 $ac_includes_default
22186    typedef long ac__type_sizeof_;
22187 int
22188 main ()
22189 {
22190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22191 test_array [0] = 0
22192
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_compile") 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } && {
22211          test -z "$ac_c_werror_flag" ||
22212          test ! -s conftest.err
22213        } && test -s conftest.$ac_objext; then
22214   ac_hi=-1 ac_mid=-1
22215   while :; do
22216     cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 $ac_includes_default
22223    typedef long ac__type_sizeof_;
22224 int
22225 main ()
22226 {
22227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22228 test_array [0] = 0
22229
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241   (eval "$ac_compile") 2>conftest.er1
22242   ac_status=$?
22243   grep -v '^ *+' conftest.er1 >conftest.err
22244   rm -f conftest.er1
22245   cat conftest.err >&5
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } && {
22248          test -z "$ac_c_werror_flag" ||
22249          test ! -s conftest.err
22250        } && test -s conftest.$ac_objext; then
22251   ac_lo=$ac_mid; break
22252 else
22253   echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256         ac_hi=`expr '(' $ac_mid ')' - 1`
22257                         if test $ac_mid -le $ac_hi; then
22258                           ac_lo= ac_hi=
22259                           break
22260                         fi
22261                         ac_mid=`expr 2 '*' $ac_mid`
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265   done
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270         ac_lo= ac_hi=
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 fi
22275
22276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22277 # Binary search between lo and hi bounds.
22278 while test "x$ac_lo" != "x$ac_hi"; do
22279   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 $ac_includes_default
22287    typedef long ac__type_sizeof_;
22288 int
22289 main ()
22290 {
22291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22292 test_array [0] = 0
22293
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305   (eval "$ac_compile") 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } && {
22312          test -z "$ac_c_werror_flag" ||
22313          test ! -s conftest.err
22314        } && test -s conftest.$ac_objext; then
22315   ac_hi=$ac_mid
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320         ac_lo=`expr '(' $ac_mid ')' + 1`
22321 fi
22322
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 done
22325 case $ac_lo in
22326 ?*) ac_cv_sizeof_long=$ac_lo;;
22327 '') if test "$ac_cv_type_long" = yes; then
22328      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22329 See \`config.log' for more details." >&5
22330 echo "$as_me: error: cannot compute sizeof (long)
22331 See \`config.log' for more details." >&2;}
22332    { (exit 77); exit 77; }; }
22333    else
22334      ac_cv_sizeof_long=0
22335    fi ;;
22336 esac
22337 else
22338   cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h.  */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h.  */
22344 $ac_includes_default
22345    typedef long ac__type_sizeof_;
22346 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22347 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22348 #include <stdio.h>
22349 #include <stdlib.h>
22350 int
22351 main ()
22352 {
22353
22354   FILE *f = fopen ("conftest.val", "w");
22355   if (! f)
22356     return 1;
22357   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22358     {
22359       long int i = longval ();
22360       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22361         return 1;
22362       fprintf (f, "%ld\n", i);
22363     }
22364   else
22365     {
22366       unsigned long int i = ulongval ();
22367       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22368         return 1;
22369       fprintf (f, "%lu\n", i);
22370     }
22371   return ferror (f) || fclose (f) != 0;
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest$ac_exeext
22378 if { (ac_try="$ac_link"
22379 case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_link") 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22388   { (case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_try") 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; }; then
22397   ac_cv_sizeof_long=`cat conftest.val`
22398 else
22399   echo "$as_me: program exited with status $ac_status" >&5
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403 ( exit $ac_status )
22404 if test "$ac_cv_type_long" = yes; then
22405      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22406 See \`config.log' for more details." >&5
22407 echo "$as_me: error: cannot compute sizeof (long)
22408 See \`config.log' for more details." >&2;}
22409    { (exit 77); exit 77; }; }
22410    else
22411      ac_cv_sizeof_long=0
22412    fi
22413 fi
22414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22415 fi
22416 rm -f conftest.val
22417 fi
22418 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22419 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22420
22421
22422
22423 cat >>confdefs.h <<_ACEOF
22424 #define SIZEOF_LONG $ac_cv_sizeof_long
22425 _ACEOF
22426
22427
22428 { echo "$as_me:$LINENO: checking for size_t" >&5
22429 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22430 if test "${ac_cv_type_size_t+set}" = set; then
22431   echo $ECHO_N "(cached) $ECHO_C" >&6
22432 else
22433   cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439 $ac_includes_default
22440 typedef size_t ac__type_new_;
22441 int
22442 main ()
22443 {
22444 if ((ac__type_new_ *) 0)
22445   return 0;
22446 if (sizeof (ac__type_new_))
22447   return 0;
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456   *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459   (eval "$ac_compile") 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } && {
22466          test -z "$ac_c_werror_flag" ||
22467          test ! -s conftest.err
22468        } && test -s conftest.$ac_objext; then
22469   ac_cv_type_size_t=yes
22470 else
22471   echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474         ac_cv_type_size_t=no
22475 fi
22476
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22480 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22481
22482 # The cast to long int works around a bug in the HP C Compiler
22483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22485 # This bug is HP SR number 8606223364.
22486 { echo "$as_me:$LINENO: checking size of size_t" >&5
22487 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22488 if test "${ac_cv_sizeof_size_t+set}" = set; then
22489   echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491   if test "$cross_compiling" = yes; then
22492   # Depending upon the size, compute the lo and hi bounds.
22493 cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h.  */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h.  */
22499 $ac_includes_default
22500    typedef size_t ac__type_sizeof_;
22501 int
22502 main ()
22503 {
22504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22505 test_array [0] = 0
22506
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518   (eval "$ac_compile") 2>conftest.er1
22519   ac_status=$?
22520   grep -v '^ *+' conftest.er1 >conftest.err
22521   rm -f conftest.er1
22522   cat conftest.err >&5
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); } && {
22525          test -z "$ac_c_werror_flag" ||
22526          test ! -s conftest.err
22527        } && test -s conftest.$ac_objext; then
22528   ac_lo=0 ac_mid=0
22529   while :; do
22530     cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h.  */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h.  */
22536 $ac_includes_default
22537    typedef size_t ac__type_sizeof_;
22538 int
22539 main ()
22540 {
22541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22542 test_array [0] = 0
22543
22544   ;
22545   return 0;
22546 }
22547 _ACEOF
22548 rm -f conftest.$ac_objext
22549 if { (ac_try="$ac_compile"
22550 case "(($ac_try" in
22551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552   *) ac_try_echo=$ac_try;;
22553 esac
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555   (eval "$ac_compile") 2>conftest.er1
22556   ac_status=$?
22557   grep -v '^ *+' conftest.er1 >conftest.err
22558   rm -f conftest.er1
22559   cat conftest.err >&5
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); } && {
22562          test -z "$ac_c_werror_flag" ||
22563          test ! -s conftest.err
22564        } && test -s conftest.$ac_objext; then
22565   ac_hi=$ac_mid; break
22566 else
22567   echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570         ac_lo=`expr $ac_mid + 1`
22571                         if test $ac_lo -le $ac_mid; then
22572                           ac_lo= ac_hi=
22573                           break
22574                         fi
22575                         ac_mid=`expr 2 '*' $ac_mid + 1`
22576 fi
22577
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579   done
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584         cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h.  */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h.  */
22590 $ac_includes_default
22591    typedef size_t ac__type_sizeof_;
22592 int
22593 main ()
22594 {
22595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22596 test_array [0] = 0
22597
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609   (eval "$ac_compile") 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && {
22616          test -z "$ac_c_werror_flag" ||
22617          test ! -s conftest.err
22618        } && test -s conftest.$ac_objext; then
22619   ac_hi=-1 ac_mid=-1
22620   while :; do
22621     cat >conftest.$ac_ext <<_ACEOF
22622 /* confdefs.h.  */
22623 _ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h.  */
22627 $ac_includes_default
22628    typedef size_t ac__type_sizeof_;
22629 int
22630 main ()
22631 {
22632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22633 test_array [0] = 0
22634
22635   ;
22636   return 0;
22637 }
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643   *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646   (eval "$ac_compile") 2>conftest.er1
22647   ac_status=$?
22648   grep -v '^ *+' conftest.er1 >conftest.err
22649   rm -f conftest.er1
22650   cat conftest.err >&5
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); } && {
22653          test -z "$ac_c_werror_flag" ||
22654          test ! -s conftest.err
22655        } && test -s conftest.$ac_objext; then
22656   ac_lo=$ac_mid; break
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661         ac_hi=`expr '(' $ac_mid ')' - 1`
22662                         if test $ac_mid -le $ac_hi; then
22663                           ac_lo= ac_hi=
22664                           break
22665                         fi
22666                         ac_mid=`expr 2 '*' $ac_mid`
22667 fi
22668
22669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670   done
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675         ac_lo= ac_hi=
22676 fi
22677
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 # Binary search between lo and hi bounds.
22683 while test "x$ac_lo" != "x$ac_hi"; do
22684   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22685   cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691 $ac_includes_default
22692    typedef size_t ac__type_sizeof_;
22693 int
22694 main ()
22695 {
22696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22697 test_array [0] = 0
22698
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_compile") 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } && {
22717          test -z "$ac_c_werror_flag" ||
22718          test ! -s conftest.err
22719        } && test -s conftest.$ac_objext; then
22720   ac_hi=$ac_mid
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725         ac_lo=`expr '(' $ac_mid ')' + 1`
22726 fi
22727
22728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22729 done
22730 case $ac_lo in
22731 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22732 '') if test "$ac_cv_type_size_t" = yes; then
22733      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22734 See \`config.log' for more details." >&5
22735 echo "$as_me: error: cannot compute sizeof (size_t)
22736 See \`config.log' for more details." >&2;}
22737    { (exit 77); exit 77; }; }
22738    else
22739      ac_cv_sizeof_size_t=0
22740    fi ;;
22741 esac
22742 else
22743   cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h.  */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h.  */
22749 $ac_includes_default
22750    typedef size_t ac__type_sizeof_;
22751 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22752 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22753 #include <stdio.h>
22754 #include <stdlib.h>
22755 int
22756 main ()
22757 {
22758
22759   FILE *f = fopen ("conftest.val", "w");
22760   if (! f)
22761     return 1;
22762   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22763     {
22764       long int i = longval ();
22765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22766         return 1;
22767       fprintf (f, "%ld\n", i);
22768     }
22769   else
22770     {
22771       unsigned long int i = ulongval ();
22772       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22773         return 1;
22774       fprintf (f, "%lu\n", i);
22775     }
22776   return ferror (f) || fclose (f) != 0;
22777
22778   ;
22779   return 0;
22780 }
22781 _ACEOF
22782 rm -f conftest$ac_exeext
22783 if { (ac_try="$ac_link"
22784 case "(($ac_try" in
22785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786   *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789   (eval "$ac_link") 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22793   { (case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798   (eval "$ac_try") 2>&5
22799   ac_status=$?
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); }; }; then
22802   ac_cv_sizeof_size_t=`cat conftest.val`
22803 else
22804   echo "$as_me: program exited with status $ac_status" >&5
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 ( exit $ac_status )
22809 if test "$ac_cv_type_size_t" = yes; then
22810      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22811 See \`config.log' for more details." >&5
22812 echo "$as_me: error: cannot compute sizeof (size_t)
22813 See \`config.log' for more details." >&2;}
22814    { (exit 77); exit 77; }; }
22815    else
22816      ac_cv_sizeof_size_t=0
22817    fi
22818 fi
22819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22820 fi
22821 rm -f conftest.val
22822 fi
22823 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22824 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22825
22826
22827
22828 cat >>confdefs.h <<_ACEOF
22829 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22830 _ACEOF
22831
22832
22833
22834 case "${host}" in
22835     arm-*-linux* )
22836         { echo "$as_me:$LINENO: checking for long long" >&5
22837 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22838 if test "${ac_cv_type_long_long+set}" = set; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841   cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h.  */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h.  */
22847 $ac_includes_default
22848 typedef long long ac__type_new_;
22849 int
22850 main ()
22851 {
22852 if ((ac__type_new_ *) 0)
22853   return 0;
22854 if (sizeof (ac__type_new_))
22855   return 0;
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867   (eval "$ac_compile") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest.$ac_objext; then
22877   ac_cv_type_long_long=yes
22878 else
22879   echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882         ac_cv_type_long_long=no
22883 fi
22884
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 fi
22887 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22888 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22889
22890 # The cast to long int works around a bug in the HP C Compiler
22891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22893 # This bug is HP SR number 8606223364.
22894 { echo "$as_me:$LINENO: checking size of long long" >&5
22895 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22896 if test "${ac_cv_sizeof_long_long+set}" = set; then
22897   echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899   if test "$cross_compiling" = yes; then
22900   # Depending upon the size, compute the lo and hi bounds.
22901 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h.  */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h.  */
22907 $ac_includes_default
22908    typedef long long ac__type_sizeof_;
22909 int
22910 main ()
22911 {
22912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22913 test_array [0] = 0
22914
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_compile") 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } && {
22933          test -z "$ac_c_werror_flag" ||
22934          test ! -s conftest.err
22935        } && test -s conftest.$ac_objext; then
22936   ac_lo=0 ac_mid=0
22937   while :; do
22938     cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944 $ac_includes_default
22945    typedef long long ac__type_sizeof_;
22946 int
22947 main ()
22948 {
22949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22950 test_array [0] = 0
22951
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960   *) ac_try_echo=$ac_try;;
22961 esac
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963   (eval "$ac_compile") 2>conftest.er1
22964   ac_status=$?
22965   grep -v '^ *+' conftest.er1 >conftest.err
22966   rm -f conftest.er1
22967   cat conftest.err >&5
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } && {
22970          test -z "$ac_c_werror_flag" ||
22971          test ! -s conftest.err
22972        } && test -s conftest.$ac_objext; then
22973   ac_hi=$ac_mid; break
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         ac_lo=`expr $ac_mid + 1`
22979                         if test $ac_lo -le $ac_mid; then
22980                           ac_lo= ac_hi=
22981                           break
22982                         fi
22983                         ac_mid=`expr 2 '*' $ac_mid + 1`
22984 fi
22985
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987   done
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992         cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 $ac_includes_default
22999    typedef long long ac__type_sizeof_;
23000 int
23001 main ()
23002 {
23003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23004 test_array [0] = 0
23005
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest.$ac_objext; then
23027   ac_hi=-1 ac_mid=-1
23028   while :; do
23029     cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035 $ac_includes_default
23036    typedef long long ac__type_sizeof_;
23037 int
23038 main ()
23039 {
23040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23041 test_array [0] = 0
23042
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051   *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054   (eval "$ac_compile") 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } && {
23061          test -z "$ac_c_werror_flag" ||
23062          test ! -s conftest.err
23063        } && test -s conftest.$ac_objext; then
23064   ac_lo=$ac_mid; break
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069         ac_hi=`expr '(' $ac_mid ')' - 1`
23070                         if test $ac_mid -le $ac_hi; then
23071                           ac_lo= ac_hi=
23072                           break
23073                         fi
23074                         ac_mid=`expr 2 '*' $ac_mid`
23075 fi
23076
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078   done
23079 else
23080   echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083         ac_lo= ac_hi=
23084 fi
23085
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 fi
23088
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 # Binary search between lo and hi bounds.
23091 while test "x$ac_lo" != "x$ac_hi"; do
23092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099 $ac_includes_default
23100    typedef long long ac__type_sizeof_;
23101 int
23102 main ()
23103 {
23104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23105 test_array [0] = 0
23106
23107   ;
23108   return 0;
23109 }
23110 _ACEOF
23111 rm -f conftest.$ac_objext
23112 if { (ac_try="$ac_compile"
23113 case "(($ac_try" in
23114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115   *) ac_try_echo=$ac_try;;
23116 esac
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118   (eval "$ac_compile") 2>conftest.er1
23119   ac_status=$?
23120   grep -v '^ *+' conftest.er1 >conftest.err
23121   rm -f conftest.er1
23122   cat conftest.err >&5
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); } && {
23125          test -z "$ac_c_werror_flag" ||
23126          test ! -s conftest.err
23127        } && test -s conftest.$ac_objext; then
23128   ac_hi=$ac_mid
23129 else
23130   echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23132
23133         ac_lo=`expr '(' $ac_mid ')' + 1`
23134 fi
23135
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137 done
23138 case $ac_lo in
23139 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23140 '') if test "$ac_cv_type_long_long" = yes; then
23141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23142 See \`config.log' for more details." >&5
23143 echo "$as_me: error: cannot compute sizeof (long long)
23144 See \`config.log' for more details." >&2;}
23145    { (exit 77); exit 77; }; }
23146    else
23147      ac_cv_sizeof_long_long=0
23148    fi ;;
23149 esac
23150 else
23151   cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h.  */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h.  */
23157 $ac_includes_default
23158    typedef long long ac__type_sizeof_;
23159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23161 #include <stdio.h>
23162 #include <stdlib.h>
23163 int
23164 main ()
23165 {
23166
23167   FILE *f = fopen ("conftest.val", "w");
23168   if (! f)
23169     return 1;
23170   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23171     {
23172       long int i = longval ();
23173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23174         return 1;
23175       fprintf (f, "%ld\n", i);
23176     }
23177   else
23178     {
23179       unsigned long int i = ulongval ();
23180       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23181         return 1;
23182       fprintf (f, "%lu\n", i);
23183     }
23184   return ferror (f) || fclose (f) != 0;
23185
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest$ac_exeext
23191 if { (ac_try="$ac_link"
23192 case "(($ac_try" in
23193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194   *) ac_try_echo=$ac_try;;
23195 esac
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197   (eval "$ac_link") 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23201   { (case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206   (eval "$ac_try") 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; }; then
23210   ac_cv_sizeof_long_long=`cat conftest.val`
23211 else
23212   echo "$as_me: program exited with status $ac_status" >&5
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ( exit $ac_status )
23217 if test "$ac_cv_type_long_long" = yes; then
23218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23219 See \`config.log' for more details." >&5
23220 echo "$as_me: error: cannot compute sizeof (long long)
23221 See \`config.log' for more details." >&2;}
23222    { (exit 77); exit 77; }; }
23223    else
23224      ac_cv_sizeof_long_long=0
23225    fi
23226 fi
23227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23228 fi
23229 rm -f conftest.val
23230 fi
23231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23232 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23233
23234
23235
23236 cat >>confdefs.h <<_ACEOF
23237 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23238 _ACEOF
23239
23240
23241     ;;
23242     *-hp-hpux* )
23243         { echo "$as_me:$LINENO: checking for long long" >&5
23244 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23245 if test "${ac_cv_type_long_long+set}" = set; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255 typedef long long ac__type_new_;
23256 int
23257 main ()
23258 {
23259 if ((ac__type_new_ *) 0)
23260   return 0;
23261 if (sizeof (ac__type_new_))
23262   return 0;
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_compile") 2>conftest.er1
23275   ac_status=$?
23276   grep -v '^ *+' conftest.er1 >conftest.err
23277   rm -f conftest.er1
23278   cat conftest.err >&5
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } && {
23281          test -z "$ac_c_werror_flag" ||
23282          test ! -s conftest.err
23283        } && test -s conftest.$ac_objext; then
23284   ac_cv_type_long_long=yes
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289         ac_cv_type_long_long=no
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293 fi
23294 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23295 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23296
23297 # The cast to long int works around a bug in the HP C Compiler
23298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23300 # This bug is HP SR number 8606223364.
23301 { echo "$as_me:$LINENO: checking size of long long" >&5
23302 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23303 if test "${ac_cv_sizeof_long_long+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   if test "$cross_compiling" = yes; then
23307   # Depending upon the size, compute the lo and hi bounds.
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 $ac_includes_default
23315    typedef long long ac__type_sizeof_;
23316 int
23317 main ()
23318 {
23319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23320 test_array [0] = 0
23321
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330   *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333   (eval "$ac_compile") 2>conftest.er1
23334   ac_status=$?
23335   grep -v '^ *+' conftest.er1 >conftest.err
23336   rm -f conftest.er1
23337   cat conftest.err >&5
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); } && {
23340          test -z "$ac_c_werror_flag" ||
23341          test ! -s conftest.err
23342        } && test -s conftest.$ac_objext; then
23343   ac_lo=0 ac_mid=0
23344   while :; do
23345     cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351 $ac_includes_default
23352    typedef long long ac__type_sizeof_;
23353 int
23354 main ()
23355 {
23356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23357 test_array [0] = 0
23358
23359   ;
23360   return 0;
23361 }
23362 _ACEOF
23363 rm -f conftest.$ac_objext
23364 if { (ac_try="$ac_compile"
23365 case "(($ac_try" in
23366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23367   *) ac_try_echo=$ac_try;;
23368 esac
23369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23370   (eval "$ac_compile") 2>conftest.er1
23371   ac_status=$?
23372   grep -v '^ *+' conftest.er1 >conftest.err
23373   rm -f conftest.er1
23374   cat conftest.err >&5
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } && {
23377          test -z "$ac_c_werror_flag" ||
23378          test ! -s conftest.err
23379        } && test -s conftest.$ac_objext; then
23380   ac_hi=$ac_mid; break
23381 else
23382   echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385         ac_lo=`expr $ac_mid + 1`
23386                         if test $ac_lo -le $ac_mid; then
23387                           ac_lo= ac_hi=
23388                           break
23389                         fi
23390                         ac_mid=`expr 2 '*' $ac_mid + 1`
23391 fi
23392
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394   done
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406    typedef long long ac__type_sizeof_;
23407 int
23408 main ()
23409 {
23410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23411 test_array [0] = 0
23412
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext
23418 if { (ac_try="$ac_compile"
23419 case "(($ac_try" in
23420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421   *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424   (eval "$ac_compile") 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } && {
23431          test -z "$ac_c_werror_flag" ||
23432          test ! -s conftest.err
23433        } && test -s conftest.$ac_objext; then
23434   ac_hi=-1 ac_mid=-1
23435   while :; do
23436     cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 $ac_includes_default
23443    typedef long long ac__type_sizeof_;
23444 int
23445 main ()
23446 {
23447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23448 test_array [0] = 0
23449
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_compile") 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } && {
23468          test -z "$ac_c_werror_flag" ||
23469          test ! -s conftest.err
23470        } && test -s conftest.$ac_objext; then
23471   ac_lo=$ac_mid; break
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_hi=`expr '(' $ac_mid ')' - 1`
23477                         if test $ac_mid -le $ac_hi; then
23478                           ac_lo= ac_hi=
23479                           break
23480                         fi
23481                         ac_mid=`expr 2 '*' $ac_mid`
23482 fi
23483
23484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485   done
23486 else
23487   echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490         ac_lo= ac_hi=
23491 fi
23492
23493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494 fi
23495
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497 # Binary search between lo and hi bounds.
23498 while test "x$ac_lo" != "x$ac_hi"; do
23499   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23500   cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 $ac_includes_default
23507    typedef long long ac__type_sizeof_;
23508 int
23509 main ()
23510 {
23511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23512 test_array [0] = 0
23513
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_compile") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && {
23532          test -z "$ac_c_werror_flag" ||
23533          test ! -s conftest.err
23534        } && test -s conftest.$ac_objext; then
23535   ac_hi=$ac_mid
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540         ac_lo=`expr '(' $ac_mid ')' + 1`
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 done
23545 case $ac_lo in
23546 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23547 '') if test "$ac_cv_type_long_long" = yes; then
23548      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23549 See \`config.log' for more details." >&5
23550 echo "$as_me: error: cannot compute sizeof (long long)
23551 See \`config.log' for more details." >&2;}
23552    { (exit 77); exit 77; }; }
23553    else
23554      ac_cv_sizeof_long_long=0
23555    fi ;;
23556 esac
23557 else
23558   cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h.  */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h.  */
23564 $ac_includes_default
23565    typedef long long ac__type_sizeof_;
23566 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23567 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23568 #include <stdio.h>
23569 #include <stdlib.h>
23570 int
23571 main ()
23572 {
23573
23574   FILE *f = fopen ("conftest.val", "w");
23575   if (! f)
23576     return 1;
23577   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23578     {
23579       long int i = longval ();
23580       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23581         return 1;
23582       fprintf (f, "%ld\n", i);
23583     }
23584   else
23585     {
23586       unsigned long int i = ulongval ();
23587       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23588         return 1;
23589       fprintf (f, "%lu\n", i);
23590     }
23591   return ferror (f) || fclose (f) != 0;
23592
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest$ac_exeext
23598 if { (ac_try="$ac_link"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_link") 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23608   { (case "(($ac_try" in
23609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610   *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613   (eval "$ac_try") 2>&5
23614   ac_status=$?
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); }; }; then
23617   ac_cv_sizeof_long_long=`cat conftest.val`
23618 else
23619   echo "$as_me: program exited with status $ac_status" >&5
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 ( exit $ac_status )
23624 if test "$ac_cv_type_long_long" = yes; then
23625      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23626 See \`config.log' for more details." >&5
23627 echo "$as_me: error: cannot compute sizeof (long long)
23628 See \`config.log' for more details." >&2;}
23629    { (exit 77); exit 77; }; }
23630    else
23631      ac_cv_sizeof_long_long=0
23632    fi
23633 fi
23634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23635 fi
23636 rm -f conftest.val
23637 fi
23638 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23639 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23640
23641
23642
23643 cat >>confdefs.h <<_ACEOF
23644 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23645 _ACEOF
23646
23647
23648         if test "$ac_cv_sizeof_long_long" != 0; then
23649                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23650         fi
23651     ;;
23652     * )
23653         { echo "$as_me:$LINENO: checking for long long" >&5
23654 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23655 if test "${ac_cv_type_long_long+set}" = set; then
23656   echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658   cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664 $ac_includes_default
23665 typedef long long ac__type_new_;
23666 int
23667 main ()
23668 {
23669 if ((ac__type_new_ *) 0)
23670   return 0;
23671 if (sizeof (ac__type_new_))
23672   return 0;
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_compile") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } && {
23691          test -z "$ac_c_werror_flag" ||
23692          test ! -s conftest.err
23693        } && test -s conftest.$ac_objext; then
23694   ac_cv_type_long_long=yes
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         ac_cv_type_long_long=no
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703 fi
23704 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23705 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23706
23707 # The cast to long int works around a bug in the HP C Compiler
23708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23710 # This bug is HP SR number 8606223364.
23711 { echo "$as_me:$LINENO: checking size of long long" >&5
23712 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23713 if test "${ac_cv_sizeof_long_long+set}" = set; then
23714   echo $ECHO_N "(cached) $ECHO_C" >&6
23715 else
23716   if test "$cross_compiling" = yes; then
23717   # Depending upon the size, compute the lo and hi bounds.
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h.  */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h.  */
23724 $ac_includes_default
23725    typedef long long ac__type_sizeof_;
23726 int
23727 main ()
23728 {
23729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23730 test_array [0] = 0
23731
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext
23737 if { (ac_try="$ac_compile"
23738 case "(($ac_try" in
23739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740   *) ac_try_echo=$ac_try;;
23741 esac
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743   (eval "$ac_compile") 2>conftest.er1
23744   ac_status=$?
23745   grep -v '^ *+' conftest.er1 >conftest.err
23746   rm -f conftest.er1
23747   cat conftest.err >&5
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); } && {
23750          test -z "$ac_c_werror_flag" ||
23751          test ! -s conftest.err
23752        } && test -s conftest.$ac_objext; then
23753   ac_lo=0 ac_mid=0
23754   while :; do
23755     cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h.  */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h.  */
23761 $ac_includes_default
23762    typedef long long ac__type_sizeof_;
23763 int
23764 main ()
23765 {
23766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23767 test_array [0] = 0
23768
23769   ;
23770   return 0;
23771 }
23772 _ACEOF
23773 rm -f conftest.$ac_objext
23774 if { (ac_try="$ac_compile"
23775 case "(($ac_try" in
23776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777   *) ac_try_echo=$ac_try;;
23778 esac
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780   (eval "$ac_compile") 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } && {
23787          test -z "$ac_c_werror_flag" ||
23788          test ! -s conftest.err
23789        } && test -s conftest.$ac_objext; then
23790   ac_hi=$ac_mid; break
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795         ac_lo=`expr $ac_mid + 1`
23796                         if test $ac_lo -le $ac_mid; then
23797                           ac_lo= ac_hi=
23798                           break
23799                         fi
23800                         ac_mid=`expr 2 '*' $ac_mid + 1`
23801 fi
23802
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804   done
23805 else
23806   echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23808
23809         cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 $ac_includes_default
23816    typedef long long ac__type_sizeof_;
23817 int
23818 main ()
23819 {
23820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23821 test_array [0] = 0
23822
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831   *) ac_try_echo=$ac_try;;
23832 esac
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834   (eval "$ac_compile") 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } && {
23841          test -z "$ac_c_werror_flag" ||
23842          test ! -s conftest.err
23843        } && test -s conftest.$ac_objext; then
23844   ac_hi=-1 ac_mid=-1
23845   while :; do
23846     cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h.  */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h.  */
23852 $ac_includes_default
23853    typedef long long ac__type_sizeof_;
23854 int
23855 main ()
23856 {
23857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23858 test_array [0] = 0
23859
23860   ;
23861   return 0;
23862 }
23863 _ACEOF
23864 rm -f conftest.$ac_objext
23865 if { (ac_try="$ac_compile"
23866 case "(($ac_try" in
23867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868   *) ac_try_echo=$ac_try;;
23869 esac
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871   (eval "$ac_compile") 2>conftest.er1
23872   ac_status=$?
23873   grep -v '^ *+' conftest.er1 >conftest.err
23874   rm -f conftest.er1
23875   cat conftest.err >&5
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } && {
23878          test -z "$ac_c_werror_flag" ||
23879          test ! -s conftest.err
23880        } && test -s conftest.$ac_objext; then
23881   ac_lo=$ac_mid; break
23882 else
23883   echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886         ac_hi=`expr '(' $ac_mid ')' - 1`
23887                         if test $ac_mid -le $ac_hi; then
23888                           ac_lo= ac_hi=
23889                           break
23890                         fi
23891                         ac_mid=`expr 2 '*' $ac_mid`
23892 fi
23893
23894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895   done
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900         ac_lo= ac_hi=
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 fi
23905
23906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907 # Binary search between lo and hi bounds.
23908 while test "x$ac_lo" != "x$ac_hi"; do
23909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23910   cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h.  */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h.  */
23916 $ac_includes_default
23917    typedef long long ac__type_sizeof_;
23918 int
23919 main ()
23920 {
23921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23922 test_array [0] = 0
23923
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext
23929 if { (ac_try="$ac_compile"
23930 case "(($ac_try" in
23931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932   *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935   (eval "$ac_compile") 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } && {
23942          test -z "$ac_c_werror_flag" ||
23943          test ! -s conftest.err
23944        } && test -s conftest.$ac_objext; then
23945   ac_hi=$ac_mid
23946 else
23947   echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950         ac_lo=`expr '(' $ac_mid ')' + 1`
23951 fi
23952
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 done
23955 case $ac_lo in
23956 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23957 '') if test "$ac_cv_type_long_long" = yes; then
23958      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23959 See \`config.log' for more details." >&5
23960 echo "$as_me: error: cannot compute sizeof (long long)
23961 See \`config.log' for more details." >&2;}
23962    { (exit 77); exit 77; }; }
23963    else
23964      ac_cv_sizeof_long_long=0
23965    fi ;;
23966 esac
23967 else
23968   cat >conftest.$ac_ext <<_ACEOF
23969 /* confdefs.h.  */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h.  */
23974 $ac_includes_default
23975    typedef long long ac__type_sizeof_;
23976 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23977 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23978 #include <stdio.h>
23979 #include <stdlib.h>
23980 int
23981 main ()
23982 {
23983
23984   FILE *f = fopen ("conftest.val", "w");
23985   if (! f)
23986     return 1;
23987   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23988     {
23989       long int i = longval ();
23990       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23991         return 1;
23992       fprintf (f, "%ld\n", i);
23993     }
23994   else
23995     {
23996       unsigned long int i = ulongval ();
23997       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23998         return 1;
23999       fprintf (f, "%lu\n", i);
24000     }
24001   return ferror (f) || fclose (f) != 0;
24002
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007 rm -f conftest$ac_exeext
24008 if { (ac_try="$ac_link"
24009 case "(($ac_try" in
24010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011   *) ac_try_echo=$ac_try;;
24012 esac
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014   (eval "$ac_link") 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24018   { (case "(($ac_try" in
24019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020   *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023   (eval "$ac_try") 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; }; then
24027   ac_cv_sizeof_long_long=`cat conftest.val`
24028 else
24029   echo "$as_me: program exited with status $ac_status" >&5
24030 echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24032
24033 ( exit $ac_status )
24034 if test "$ac_cv_type_long_long" = yes; then
24035      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24036 See \`config.log' for more details." >&5
24037 echo "$as_me: error: cannot compute sizeof (long long)
24038 See \`config.log' for more details." >&2;}
24039    { (exit 77); exit 77; }; }
24040    else
24041      ac_cv_sizeof_long_long=0
24042    fi
24043 fi
24044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24045 fi
24046 rm -f conftest.val
24047 fi
24048 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24049 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24050
24051
24052
24053 cat >>confdefs.h <<_ACEOF
24054 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24055 _ACEOF
24056
24057
24058 esac
24059
24060 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24061 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24062 if test "${ac_cv_type_wchar_t+set}" = set; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065   cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h.  */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h.  */
24071
24072         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24073         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24074         #  error "fake wchar_t"
24075         #endif
24076         #ifdef HAVE_WCHAR_H
24077         #  ifdef __CYGWIN__
24078         #    include <stddef.h>
24079         #  endif
24080         #  include <wchar.h>
24081         #endif
24082         #ifdef HAVE_STDLIB_H
24083         #  include <stdlib.h>
24084         #endif
24085         #include <stdio.h>
24086
24087
24088
24089 typedef wchar_t ac__type_new_;
24090 int
24091 main ()
24092 {
24093 if ((ac__type_new_ *) 0)
24094   return 0;
24095 if (sizeof (ac__type_new_))
24096   return 0;
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105   *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108   (eval "$ac_compile") 2>conftest.er1
24109   ac_status=$?
24110   grep -v '^ *+' conftest.er1 >conftest.err
24111   rm -f conftest.er1
24112   cat conftest.err >&5
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); } && {
24115          test -z "$ac_c_werror_flag" ||
24116          test ! -s conftest.err
24117        } && test -s conftest.$ac_objext; then
24118   ac_cv_type_wchar_t=yes
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123         ac_cv_type_wchar_t=no
24124 fi
24125
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 fi
24128 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24129 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24130
24131 # The cast to long int works around a bug in the HP C Compiler
24132 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24133 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24134 # This bug is HP SR number 8606223364.
24135 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24136 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24137 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24138   echo $ECHO_N "(cached) $ECHO_C" >&6
24139 else
24140   if test "$cross_compiling" = yes; then
24141   # Depending upon the size, compute the lo and hi bounds.
24142 cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h.  */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h.  */
24148
24149         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24150         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24151         #  error "fake wchar_t"
24152         #endif
24153         #ifdef HAVE_WCHAR_H
24154         #  ifdef __CYGWIN__
24155         #    include <stddef.h>
24156         #  endif
24157         #  include <wchar.h>
24158         #endif
24159         #ifdef HAVE_STDLIB_H
24160         #  include <stdlib.h>
24161         #endif
24162         #include <stdio.h>
24163
24164
24165
24166    typedef wchar_t ac__type_sizeof_;
24167 int
24168 main ()
24169 {
24170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24171 test_array [0] = 0
24172
24173   ;
24174   return 0;
24175 }
24176 _ACEOF
24177 rm -f conftest.$ac_objext
24178 if { (ac_try="$ac_compile"
24179 case "(($ac_try" in
24180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181   *) ac_try_echo=$ac_try;;
24182 esac
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184   (eval "$ac_compile") 2>conftest.er1
24185   ac_status=$?
24186   grep -v '^ *+' conftest.er1 >conftest.err
24187   rm -f conftest.er1
24188   cat conftest.err >&5
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } && {
24191          test -z "$ac_c_werror_flag" ||
24192          test ! -s conftest.err
24193        } && test -s conftest.$ac_objext; then
24194   ac_lo=0 ac_mid=0
24195   while :; do
24196     cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202
24203         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24204         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24205         #  error "fake wchar_t"
24206         #endif
24207         #ifdef HAVE_WCHAR_H
24208         #  ifdef __CYGWIN__
24209         #    include <stddef.h>
24210         #  endif
24211         #  include <wchar.h>
24212         #endif
24213         #ifdef HAVE_STDLIB_H
24214         #  include <stdlib.h>
24215         #endif
24216         #include <stdio.h>
24217
24218
24219
24220    typedef wchar_t ac__type_sizeof_;
24221 int
24222 main ()
24223 {
24224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24225 test_array [0] = 0
24226
24227   ;
24228   return 0;
24229 }
24230 _ACEOF
24231 rm -f conftest.$ac_objext
24232 if { (ac_try="$ac_compile"
24233 case "(($ac_try" in
24234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235   *) ac_try_echo=$ac_try;;
24236 esac
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238   (eval "$ac_compile") 2>conftest.er1
24239   ac_status=$?
24240   grep -v '^ *+' conftest.er1 >conftest.err
24241   rm -f conftest.er1
24242   cat conftest.err >&5
24243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244   (exit $ac_status); } && {
24245          test -z "$ac_c_werror_flag" ||
24246          test ! -s conftest.err
24247        } && test -s conftest.$ac_objext; then
24248   ac_hi=$ac_mid; break
24249 else
24250   echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253         ac_lo=`expr $ac_mid + 1`
24254                         if test $ac_lo -le $ac_mid; then
24255                           ac_lo= ac_hi=
24256                           break
24257                         fi
24258                         ac_mid=`expr 2 '*' $ac_mid + 1`
24259 fi
24260
24261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24262   done
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267         cat >conftest.$ac_ext <<_ACEOF
24268 /* confdefs.h.  */
24269 _ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h.  */
24273
24274         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24275         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24276         #  error "fake wchar_t"
24277         #endif
24278         #ifdef HAVE_WCHAR_H
24279         #  ifdef __CYGWIN__
24280         #    include <stddef.h>
24281         #  endif
24282         #  include <wchar.h>
24283         #endif
24284         #ifdef HAVE_STDLIB_H
24285         #  include <stdlib.h>
24286         #endif
24287         #include <stdio.h>
24288
24289
24290
24291    typedef wchar_t ac__type_sizeof_;
24292 int
24293 main ()
24294 {
24295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24296 test_array [0] = 0
24297
24298   ;
24299   return 0;
24300 }
24301 _ACEOF
24302 rm -f conftest.$ac_objext
24303 if { (ac_try="$ac_compile"
24304 case "(($ac_try" in
24305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306   *) ac_try_echo=$ac_try;;
24307 esac
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309   (eval "$ac_compile") 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } && {
24316          test -z "$ac_c_werror_flag" ||
24317          test ! -s conftest.err
24318        } && test -s conftest.$ac_objext; then
24319   ac_hi=-1 ac_mid=-1
24320   while :; do
24321     cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327
24328         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24329         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24330         #  error "fake wchar_t"
24331         #endif
24332         #ifdef HAVE_WCHAR_H
24333         #  ifdef __CYGWIN__
24334         #    include <stddef.h>
24335         #  endif
24336         #  include <wchar.h>
24337         #endif
24338         #ifdef HAVE_STDLIB_H
24339         #  include <stdlib.h>
24340         #endif
24341         #include <stdio.h>
24342
24343
24344
24345    typedef wchar_t ac__type_sizeof_;
24346 int
24347 main ()
24348 {
24349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24350 test_array [0] = 0
24351
24352   ;
24353   return 0;
24354 }
24355 _ACEOF
24356 rm -f conftest.$ac_objext
24357 if { (ac_try="$ac_compile"
24358 case "(($ac_try" in
24359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360   *) ac_try_echo=$ac_try;;
24361 esac
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363   (eval "$ac_compile") 2>conftest.er1
24364   ac_status=$?
24365   grep -v '^ *+' conftest.er1 >conftest.err
24366   rm -f conftest.er1
24367   cat conftest.err >&5
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); } && {
24370          test -z "$ac_c_werror_flag" ||
24371          test ! -s conftest.err
24372        } && test -s conftest.$ac_objext; then
24373   ac_lo=$ac_mid; break
24374 else
24375   echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378         ac_hi=`expr '(' $ac_mid ')' - 1`
24379                         if test $ac_mid -le $ac_hi; then
24380                           ac_lo= ac_hi=
24381                           break
24382                         fi
24383                         ac_mid=`expr 2 '*' $ac_mid`
24384 fi
24385
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387   done
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392         ac_lo= ac_hi=
24393 fi
24394
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 fi
24397
24398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24399 # Binary search between lo and hi bounds.
24400 while test "x$ac_lo" != "x$ac_hi"; do
24401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24402   cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408
24409         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24410         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24411         #  error "fake wchar_t"
24412         #endif
24413         #ifdef HAVE_WCHAR_H
24414         #  ifdef __CYGWIN__
24415         #    include <stddef.h>
24416         #  endif
24417         #  include <wchar.h>
24418         #endif
24419         #ifdef HAVE_STDLIB_H
24420         #  include <stdlib.h>
24421         #endif
24422         #include <stdio.h>
24423
24424
24425
24426    typedef wchar_t ac__type_sizeof_;
24427 int
24428 main ()
24429 {
24430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24431 test_array [0] = 0
24432
24433   ;
24434   return 0;
24435 }
24436 _ACEOF
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441   *) ac_try_echo=$ac_try;;
24442 esac
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444   (eval "$ac_compile") 2>conftest.er1
24445   ac_status=$?
24446   grep -v '^ *+' conftest.er1 >conftest.err
24447   rm -f conftest.er1
24448   cat conftest.err >&5
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); } && {
24451          test -z "$ac_c_werror_flag" ||
24452          test ! -s conftest.err
24453        } && test -s conftest.$ac_objext; then
24454   ac_hi=$ac_mid
24455 else
24456   echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459         ac_lo=`expr '(' $ac_mid ')' + 1`
24460 fi
24461
24462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24463 done
24464 case $ac_lo in
24465 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24466 '') if test "$ac_cv_type_wchar_t" = yes; then
24467      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24468 See \`config.log' for more details." >&5
24469 echo "$as_me: error: cannot compute sizeof (wchar_t)
24470 See \`config.log' for more details." >&2;}
24471    { (exit 77); exit 77; }; }
24472    else
24473      ac_cv_sizeof_wchar_t=0
24474    fi ;;
24475 esac
24476 else
24477   cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h.  */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h.  */
24483
24484         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24485         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24486         #  error "fake wchar_t"
24487         #endif
24488         #ifdef HAVE_WCHAR_H
24489         #  ifdef __CYGWIN__
24490         #    include <stddef.h>
24491         #  endif
24492         #  include <wchar.h>
24493         #endif
24494         #ifdef HAVE_STDLIB_H
24495         #  include <stdlib.h>
24496         #endif
24497         #include <stdio.h>
24498
24499
24500
24501    typedef wchar_t ac__type_sizeof_;
24502 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24503 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24504 #include <stdio.h>
24505 #include <stdlib.h>
24506 int
24507 main ()
24508 {
24509
24510   FILE *f = fopen ("conftest.val", "w");
24511   if (! f)
24512     return 1;
24513   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24514     {
24515       long int i = longval ();
24516       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24517         return 1;
24518       fprintf (f, "%ld\n", i);
24519     }
24520   else
24521     {
24522       unsigned long int i = ulongval ();
24523       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24524         return 1;
24525       fprintf (f, "%lu\n", i);
24526     }
24527   return ferror (f) || fclose (f) != 0;
24528
24529   ;
24530   return 0;
24531 }
24532 _ACEOF
24533 rm -f conftest$ac_exeext
24534 if { (ac_try="$ac_link"
24535 case "(($ac_try" in
24536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24537   *) ac_try_echo=$ac_try;;
24538 esac
24539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24540   (eval "$ac_link") 2>&5
24541   ac_status=$?
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24544   { (case "(($ac_try" in
24545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546   *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549   (eval "$ac_try") 2>&5
24550   ac_status=$?
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); }; }; then
24553   ac_cv_sizeof_wchar_t=`cat conftest.val`
24554 else
24555   echo "$as_me: program exited with status $ac_status" >&5
24556 echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24558
24559 ( exit $ac_status )
24560 if test "$ac_cv_type_wchar_t" = yes; then
24561      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24562 See \`config.log' for more details." >&5
24563 echo "$as_me: error: cannot compute sizeof (wchar_t)
24564 See \`config.log' for more details." >&2;}
24565    { (exit 77); exit 77; }; }
24566    else
24567      ac_cv_sizeof_wchar_t=0
24568    fi
24569 fi
24570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24571 fi
24572 rm -f conftest.val
24573 fi
24574 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24575 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24576
24577
24578
24579 cat >>confdefs.h <<_ACEOF
24580 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24581 _ACEOF
24582
24583
24584 if test "$ac_cv_sizeof_wchar_t" = 0; then
24585     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24586 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24587    { (exit 1); exit 1; }; }
24588 fi
24589 cat >>confdefs.h <<\_ACEOF
24590 #define wxUSE_WCHAR_T 1
24591 _ACEOF
24592
24593
24594 { echo "$as_me:$LINENO: checking for va_copy" >&5
24595 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24596 if test "${wx_cv_func_va_copy+set}" = set; then
24597   echo $ECHO_N "(cached) $ECHO_C" >&6
24598 else
24599
24600         ac_ext=cpp
24601 ac_cpp='$CXXCPP $CPPFLAGS'
24602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24605
24606         cat >conftest.$ac_ext <<_ACEOF
24607
24608             /* confdefs.h.  */
24609 _ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h.  */
24613
24614                 #include <stdarg.h>
24615                 void foo(char *f, ...)
24616                 {
24617                     va_list ap1, ap2;
24618                     va_start(ap1, f);
24619                     va_copy(ap2, ap1);
24620                     va_end(ap2);
24621                     va_end(ap1);
24622                 }
24623                 int main()
24624                 {
24625                     foo("hi", 17);
24626                     return 0;
24627                 }
24628
24629 _ACEOF
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634   *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637   (eval "$ac_link") 2>conftest.er1
24638   ac_status=$?
24639   grep -v '^ *+' conftest.er1 >conftest.err
24640   rm -f conftest.er1
24641   cat conftest.err >&5
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } && {
24644          test -z "$ac_cxx_werror_flag" ||
24645          test ! -s conftest.err
24646        } && test -s conftest$ac_exeext &&
24647        $as_test_x conftest$ac_exeext; then
24648   wx_cv_func_va_copy=yes
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         wx_cv_func_va_copy=no
24654
24655 fi
24656
24657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24658       conftest$ac_exeext conftest.$ac_ext
24659         ac_ext=c
24660 ac_cpp='$CPP $CPPFLAGS'
24661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24664
24665
24666
24667 fi
24668 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24669 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24670
24671 if test $wx_cv_func_va_copy = "yes"; then
24672     cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_VA_COPY 1
24674 _ACEOF
24675
24676 else
24677         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24678 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24679 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24680   echo $ECHO_N "(cached) $ECHO_C" >&6
24681 else
24682
24683             if test "$cross_compiling" = yes; then
24684                   wx_cv_type_va_list_lvalue=yes
24685
24686 else
24687   cat >conftest.$ac_ext <<_ACEOF
24688
24689                 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694
24695                     #include <stdarg.h>
24696                     int foo(char *f, ...)
24697                     {
24698                         va_list ap1, ap2;
24699                         va_start(ap1, f);
24700                         ap2 = ap1;
24701                         if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24702                             return 1;
24703                         va_end(ap2);
24704                         va_end(ap1);
24705                         return 0;
24706                     }
24707                     int main()
24708                     {
24709                         return foo("hi", 17);
24710                     }
24711
24712 _ACEOF
24713 rm -f conftest$ac_exeext
24714 if { (ac_try="$ac_link"
24715 case "(($ac_try" in
24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717   *) ac_try_echo=$ac_try;;
24718 esac
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720   (eval "$ac_link") 2>&5
24721   ac_status=$?
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24724   { (case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_try") 2>&5
24730   ac_status=$?
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); }; }; then
24733   wx_cv_type_va_list_lvalue=yes
24734 else
24735   echo "$as_me: program exited with status $ac_status" >&5
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739 ( exit $ac_status )
24740 wx_cv_type_va_list_lvalue=no
24741 fi
24742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24743 fi
24744
24745
24746
24747
24748 fi
24749 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24750 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24751
24752     if test $wx_cv_type_va_list_lvalue != "yes"; then
24753                         cat >>confdefs.h <<\_ACEOF
24754 #define VA_LIST_IS_ARRAY 1
24755 _ACEOF
24756
24757     fi
24758 fi
24759
24760 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24761
24762 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24763 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24764 if test "${wx_cv_have_variadic_macros+set}" = set; then
24765   echo $ECHO_N "(cached) $ECHO_C" >&6
24766 else
24767
24768                         ac_ext=cpp
24769 ac_cpp='$CXXCPP $CPPFLAGS'
24770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24773
24774         cat >conftest.$ac_ext <<_ACEOF
24775
24776             /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781
24782                     #include <stdio.h>
24783                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24784
24785 int
24786 main ()
24787 {
24788
24789                     test("%s %d %p", "test", 1, 0);
24790
24791
24792   ;
24793   return 0;
24794 }
24795 _ACEOF
24796 rm -f conftest.$ac_objext
24797 if { (ac_try="$ac_compile"
24798 case "(($ac_try" in
24799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800   *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803   (eval "$ac_compile") 2>conftest.er1
24804   ac_status=$?
24805   grep -v '^ *+' conftest.er1 >conftest.err
24806   rm -f conftest.er1
24807   cat conftest.err >&5
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); } && {
24810          test -z "$ac_cxx_werror_flag" ||
24811          test ! -s conftest.err
24812        } && test -s conftest.$ac_objext; then
24813   wx_cv_have_variadic_macros=yes
24814 else
24815   echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818         wx_cv_have_variadic_macros=no
24819
24820 fi
24821
24822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823         ac_ext=c
24824 ac_cpp='$CPP $CPPFLAGS'
24825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24828
24829
24830
24831 fi
24832 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24833 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24834
24835 if test $wx_cv_have_variadic_macros = "yes"; then
24836     cat >>confdefs.h <<\_ACEOF
24837 #define HAVE_VARIADIC_MACROS 1
24838 _ACEOF
24839
24840 fi
24841
24842 fi
24843
24844 LARGEFILE_CPPFLAGS=
24845 # Check whether --enable-largefile was given.
24846 if test "${enable_largefile+set}" = set; then
24847   enableval=$enable_largefile;
24848 fi
24849
24850 if test "$enable_largefile" != no; then
24851             wx_largefile=no
24852
24853     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24854 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24855 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24856   echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858
24859           cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865 #define _FILE_OFFSET_BITS 64
24866                           #include <sys/types.h>
24867 int
24868 main ()
24869 {
24870 typedef struct {
24871     unsigned int field: sizeof(off_t) == 8;
24872 } wxlf;
24873
24874   ;
24875   return 0;
24876 }
24877 _ACEOF
24878 rm -f conftest.$ac_objext
24879 if { (ac_try="$ac_compile"
24880 case "(($ac_try" in
24881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882   *) ac_try_echo=$ac_try;;
24883 esac
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885   (eval "$ac_compile") 2>conftest.er1
24886   ac_status=$?
24887   grep -v '^ *+' conftest.er1 >conftest.err
24888   rm -f conftest.er1
24889   cat conftest.err >&5
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); } && {
24892          test -z "$ac_c_werror_flag" ||
24893          test ! -s conftest.err
24894        } && test -s conftest.$ac_objext; then
24895   ac_cv_sys_file_offset_bits=64
24896 else
24897   echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900         ac_cv_sys_file_offset_bits=no
24901 fi
24902
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904
24905
24906 fi
24907 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24908 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24909
24910     if test "$ac_cv_sys_file_offset_bits" != no; then
24911         wx_largefile=yes
24912         cat >>confdefs.h <<_ACEOF
24913 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24914 _ACEOF
24915
24916     fi
24917
24918     if test "x$wx_largefile" != "xyes"; then
24919
24920     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24921 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24922 if test "${ac_cv_sys_large_files+set}" = set; then
24923   echo $ECHO_N "(cached) $ECHO_C" >&6
24924 else
24925
24926           cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 #define _LARGE_FILES 1
24933                           #include <sys/types.h>
24934 int
24935 main ()
24936 {
24937 typedef struct {
24938     unsigned int field: sizeof(off_t) == 8;
24939 } wxlf;
24940
24941   ;
24942   return 0;
24943 }
24944 _ACEOF
24945 rm -f conftest.$ac_objext
24946 if { (ac_try="$ac_compile"
24947 case "(($ac_try" in
24948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949   *) ac_try_echo=$ac_try;;
24950 esac
24951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952   (eval "$ac_compile") 2>conftest.er1
24953   ac_status=$?
24954   grep -v '^ *+' conftest.er1 >conftest.err
24955   rm -f conftest.er1
24956   cat conftest.err >&5
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); } && {
24959          test -z "$ac_c_werror_flag" ||
24960          test ! -s conftest.err
24961        } && test -s conftest.$ac_objext; then
24962   ac_cv_sys_large_files=1
24963 else
24964   echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24966
24967         ac_cv_sys_large_files=no
24968 fi
24969
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24971
24972
24973 fi
24974 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24975 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24976
24977     if test "$ac_cv_sys_large_files" != no; then
24978         wx_largefile=yes
24979         cat >>confdefs.h <<_ACEOF
24980 #define _LARGE_FILES $ac_cv_sys_large_files
24981 _ACEOF
24982
24983     fi
24984
24985     fi
24986
24987     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24988 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24989     if test "x$wx_largefile" = "xyes"; then
24990         cat >>confdefs.h <<\_ACEOF
24991 #define HAVE_LARGEFILE_SUPPORT 1
24992 _ACEOF
24993
24994     fi
24995     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24996 echo "${ECHO_T}$wx_largefile" >&6; }
24997 fi
24998
24999 if test "$ac_cv_sys_file_offset_bits" = "64"; then
25000     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
25001 elif test "$ac_cv_sys_large_files" = 1; then
25002     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
25003 fi
25004
25005 if test -n "$LARGEFILE_CPPFLAGS"; then
25006     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
25007
25008                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25009         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25010 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25011 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014
25015                 ac_ext=cpp
25016 ac_cpp='$CXXCPP $CPPFLAGS'
25017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25020
25021                 cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h.  */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h.  */
25027
25028 int
25029 main ()
25030 {
25031
25032                         #ifndef __STDC_EXT__
25033                             choke me
25034                         #endif
25035
25036   ;
25037   return 0;
25038 }
25039 _ACEOF
25040 rm -f conftest.$ac_objext
25041 if { (ac_try="$ac_compile"
25042 case "(($ac_try" in
25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044   *) ac_try_echo=$ac_try;;
25045 esac
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047   (eval "$ac_compile") 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && {
25054          test -z "$ac_cxx_werror_flag" ||
25055          test ! -s conftest.err
25056        } && test -s conftest.$ac_objext; then
25057   wx_cv_STDC_EXT_required=no
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062         wx_cv_STDC_EXT_required=yes
25063
25064 fi
25065
25066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067                 ac_ext=c
25068 ac_cpp='$CPP $CPPFLAGS'
25069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25072
25073
25074
25075 fi
25076 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25077 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25078         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25079             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25080         fi
25081     fi
25082 fi
25083
25084 ac_ext=cpp
25085 ac_cpp='$CXXCPP $CPPFLAGS'
25086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25089
25090 old_CPPFLAGS="$CPPFLAGS"
25091 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25092 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25093 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25094 if test "${ac_cv_sys_largefile_source+set}" = set; then
25095   echo $ECHO_N "(cached) $ECHO_C" >&6
25096 else
25097   while :; do
25098   cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104 #include <sys/types.h> /* for off_t */
25105      #include <stdio.h>
25106 int
25107 main ()
25108 {
25109 int (*fp) (FILE *, off_t, int) = fseeko;
25110      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (ac_try="$ac_link"
25117 case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_link") 2>conftest.er1
25123   ac_status=$?
25124   grep -v '^ *+' conftest.er1 >conftest.err
25125   rm -f conftest.er1
25126   cat conftest.err >&5
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); } && {
25129          test -z "$ac_cxx_werror_flag" ||
25130          test ! -s conftest.err
25131        } && test -s conftest$ac_exeext &&
25132        $as_test_x conftest$ac_exeext; then
25133   ac_cv_sys_largefile_source=no; break
25134 else
25135   echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25137
25138
25139 fi
25140
25141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25142       conftest$ac_exeext conftest.$ac_ext
25143   cat >conftest.$ac_ext <<_ACEOF
25144 /* confdefs.h.  */
25145 _ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h.  */
25149 #define _LARGEFILE_SOURCE 1
25150 #include <sys/types.h> /* for off_t */
25151      #include <stdio.h>
25152 int
25153 main ()
25154 {
25155 int (*fp) (FILE *, off_t, int) = fseeko;
25156      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165   *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168   (eval "$ac_link") 2>conftest.er1
25169   ac_status=$?
25170   grep -v '^ *+' conftest.er1 >conftest.err
25171   rm -f conftest.er1
25172   cat conftest.err >&5
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } && {
25175          test -z "$ac_cxx_werror_flag" ||
25176          test ! -s conftest.err
25177        } && test -s conftest$ac_exeext &&
25178        $as_test_x conftest$ac_exeext; then
25179   ac_cv_sys_largefile_source=1; break
25180 else
25181   echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25183
25184
25185 fi
25186
25187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25188       conftest$ac_exeext conftest.$ac_ext
25189   ac_cv_sys_largefile_source=unknown
25190   break
25191 done
25192 fi
25193 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25194 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25195 case $ac_cv_sys_largefile_source in #(
25196   no | unknown) ;;
25197   *)
25198 cat >>confdefs.h <<_ACEOF
25199 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25200 _ACEOF
25201 ;;
25202 esac
25203 rm -f conftest*
25204
25205 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25206 # in glibc 2.1.3, but that breaks too many other things.
25207 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25208 if test $ac_cv_sys_largefile_source != unknown; then
25209
25210 cat >>confdefs.h <<\_ACEOF
25211 #define HAVE_FSEEKO 1
25212 _ACEOF
25213
25214 fi
25215
25216 CPPFLAGS="$old_CPPFLAGS"
25217 ac_ext=c
25218 ac_cpp='$CPP $CPPFLAGS'
25219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25222
25223 if test "$ac_cv_sys_largefile_source" != no; then
25224     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25225 fi
25226
25227 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25228 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25229 if test "${ac_cv_c_bigendian+set}" = set; then
25230   echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232   ac_cv_c_bigendian=unknown
25233 # See if sys/param.h defines the BYTE_ORDER macro.
25234 cat >conftest.$ac_ext <<_ACEOF
25235 /* confdefs.h.  */
25236 _ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h.  */
25240 #include <sys/types.h>
25241 #include <sys/param.h>
25242 int
25243 main ()
25244 {
25245
25246 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25247  bogus endian macros
25248 #endif
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_compile") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && {
25267          test -z "$ac_c_werror_flag" ||
25268          test ! -s conftest.err
25269        } && test -s conftest.$ac_objext; then
25270   # It does; now see whether it defined to BIG_ENDIAN or not.
25271 cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h.  */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h.  */
25277 #include <sys/types.h>
25278 #include <sys/param.h>
25279 int
25280 main ()
25281 {
25282
25283 #if BYTE_ORDER != BIG_ENDIAN
25284  not big endian
25285 #endif
25286   ;
25287   return 0;
25288 }
25289 _ACEOF
25290 rm -f conftest.$ac_objext
25291 if { (ac_try="$ac_compile"
25292 case "(($ac_try" in
25293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294   *) ac_try_echo=$ac_try;;
25295 esac
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297   (eval "$ac_compile") 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } && {
25304          test -z "$ac_c_werror_flag" ||
25305          test ! -s conftest.err
25306        } && test -s conftest.$ac_objext; then
25307   ac_cv_c_bigendian=yes
25308 else
25309   echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25311
25312         ac_cv_c_bigendian=no
25313 fi
25314
25315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316 else
25317   echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25319
25320
25321 fi
25322
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324 if test $ac_cv_c_bigendian = unknown; then
25325 if test "$cross_compiling" = yes; then
25326   ac_cv_c_bigendian=unknown
25327 else
25328   cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334 main () {
25335   /* Are we little or big endian?  From Harbison&Steele.  */
25336   union
25337   {
25338     long l;
25339     char c[sizeof (long)];
25340   } u;
25341   u.l = 1;
25342   exit (u.c[sizeof (long) - 1] == 1);
25343 }
25344 _ACEOF
25345 rm -f conftest$ac_exeext
25346 if { (ac_try="$ac_link"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_link") 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25356   { (case "(($ac_try" in
25357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358   *) ac_try_echo=$ac_try;;
25359 esac
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361   (eval "$ac_try") 2>&5
25362   ac_status=$?
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); }; }; then
25365   ac_cv_c_bigendian=no
25366 else
25367   echo "$as_me: program exited with status $ac_status" >&5
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371 ( exit $ac_status )
25372 ac_cv_c_bigendian=yes
25373 fi
25374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25375 fi
25376
25377
25378 fi
25379 fi
25380 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25381 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25382 if test $ac_cv_c_bigendian = unknown; then
25383   { 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
25384 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;}
25385 fi
25386 if test $ac_cv_c_bigendian = yes; then
25387   cat >>confdefs.h <<\_ACEOF
25388 #define WORDS_BIGENDIAN 1
25389 _ACEOF
25390
25391 fi
25392
25393
25394
25395
25396     ac_ext=cpp
25397 ac_cpp='$CXXCPP $CPPFLAGS'
25398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401
25402
25403
25404 for ac_header in iostream
25405 do
25406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418
25419
25420 #include <$ac_header>
25421 _ACEOF
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426   *) ac_try_echo=$ac_try;;
25427 esac
25428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25429   (eval "$ac_compile") 2>conftest.er1
25430   ac_status=$?
25431   grep -v '^ *+' conftest.er1 >conftest.err
25432   rm -f conftest.er1
25433   cat conftest.err >&5
25434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435   (exit $ac_status); } && {
25436          test -z "$ac_cxx_werror_flag" ||
25437          test ! -s conftest.err
25438        } && test -s conftest.$ac_objext; then
25439   eval "$as_ac_Header=yes"
25440 else
25441   echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444         eval "$as_ac_Header=no"
25445 fi
25446
25447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25448 fi
25449 ac_res=`eval echo '${'$as_ac_Header'}'`
25450                { echo "$as_me:$LINENO: result: $ac_res" >&5
25451 echo "${ECHO_T}$ac_res" >&6; }
25452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25453   cat >>confdefs.h <<_ACEOF
25454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25455 _ACEOF
25456
25457 fi
25458
25459 done
25460
25461
25462     if test "$ac_cv_header_iostream" = "yes" ; then
25463       :
25464     else
25465       cat >>confdefs.h <<\_ACEOF
25466 #define wxUSE_IOSTREAMH 1
25467 _ACEOF
25468
25469     fi
25470
25471     ac_ext=c
25472 ac_cpp='$CPP $CPPFLAGS'
25473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25476
25477
25478
25479
25480   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25481 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25482 if test "${wx_cv_explicit+set}" = set; then
25483   echo $ECHO_N "(cached) $ECHO_C" >&6
25484 else
25485
25486
25487     ac_ext=cpp
25488 ac_cpp='$CXXCPP $CPPFLAGS'
25489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25492
25493
25494             cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500
25501         class Foo { public: explicit Foo(int) {} };
25502
25503 int
25504 main ()
25505 {
25506
25507         return 0;
25508
25509   ;
25510   return 0;
25511 }
25512 _ACEOF
25513 rm -f conftest.$ac_objext
25514 if { (ac_try="$ac_compile"
25515 case "(($ac_try" in
25516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517   *) ac_try_echo=$ac_try;;
25518 esac
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520   (eval "$ac_compile") 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } && {
25527          test -z "$ac_cxx_werror_flag" ||
25528          test ! -s conftest.err
25529        } && test -s conftest.$ac_objext; then
25530
25531         cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h.  */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h.  */
25537
25538                 class Foo { public: explicit Foo(int) {} };
25539                 static void TakeFoo(const Foo& foo) { }
25540
25541 int
25542 main ()
25543 {
25544
25545                 TakeFoo(17);
25546                 return 0;
25547
25548   ;
25549   return 0;
25550 }
25551 _ACEOF
25552 rm -f conftest.$ac_objext
25553 if { (ac_try="$ac_compile"
25554 case "(($ac_try" in
25555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556   *) ac_try_echo=$ac_try;;
25557 esac
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559   (eval "$ac_compile") 2>conftest.er1
25560   ac_status=$?
25561   grep -v '^ *+' conftest.er1 >conftest.err
25562   rm -f conftest.er1
25563   cat conftest.err >&5
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } && {
25566          test -z "$ac_cxx_werror_flag" ||
25567          test ! -s conftest.err
25568        } && test -s conftest.$ac_objext; then
25569   wx_cv_explicit=no
25570 else
25571   echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25573
25574         wx_cv_explicit=yes
25575
25576 fi
25577
25578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584         wx_cv_explicit=no
25585
25586 fi
25587
25588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589
25590     ac_ext=c
25591 ac_cpp='$CPP $CPPFLAGS'
25592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25595
25596
25597 fi
25598 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25599 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25600
25601   if test "$wx_cv_explicit" = "yes"; then
25602     cat >>confdefs.h <<\_ACEOF
25603 #define HAVE_EXPLICIT 1
25604 _ACEOF
25605
25606   fi
25607
25608
25609 if test "x$SUNCXX" = xyes; then
25610     CXXFLAGS="-features=tmplife $GNU_SOURCE_FLAG $CXXFLAGS"
25611 fi
25612
25613 if test "x$SUNCC" = xyes; then
25614     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25615 fi
25616
25617 if test "x$SGICC" = "xyes"; then
25618     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25619 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25620 if test "${wx_cv_prog_sgicc744+set}" = set; then
25621   echo $ECHO_N "(cached) $ECHO_C" >&6
25622 else
25623
25624             cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630
25631 int
25632 main ()
25633 {
25634
25635                     #if _SGI_COMPILER_VERSION >= 744
25636                     chock me: mipsPro is 7.4.4 or later
25637                     #endif
25638
25639   ;
25640   return 0;
25641 }
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647   *) ac_try_echo=$ac_try;;
25648 esac
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650   (eval "$ac_compile") 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } && {
25657          test -z "$ac_c_werror_flag" ||
25658          test ! -s conftest.err
25659        } && test -s conftest.$ac_objext; then
25660   wx_cv_prog_sgicc744=no
25661 else
25662   echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25664
25665         wx_cv_prog_sgicc744=yes
25666
25667 fi
25668
25669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25670
25671
25672 fi
25673 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25674 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25675
25676     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25677         CFLAGS="-woff 3970 $CFLAGS"
25678     fi
25679 fi
25680 if test "x$SGICXX" = "xyes"; then
25681     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25682 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25683 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25684   echo $ECHO_N "(cached) $ECHO_C" >&6
25685 else
25686
25687             ac_ext=cpp
25688 ac_cpp='$CXXCPP $CPPFLAGS'
25689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25692
25693             cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699
25700 int
25701 main ()
25702 {
25703
25704                     #if _SGI_COMPILER_VERSION >= 744
25705                     chock me: mipsPro is 7.4.4 or later
25706                     #endif
25707
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext
25713 if { (ac_try="$ac_compile"
25714 case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719   (eval "$ac_compile") 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } && {
25726          test -z "$ac_cxx_werror_flag" ||
25727          test ! -s conftest.err
25728        } && test -s conftest.$ac_objext; then
25729   wx_cv_prog_sgicxx744=no
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734         wx_cv_prog_sgicxx744=yes
25735
25736 fi
25737
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739             ac_ext=c
25740 ac_cpp='$CPP $CPPFLAGS'
25741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25744
25745
25746
25747 fi
25748 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25749 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25750
25751     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25752         CXXFLAGS="-woff 3970 $CXXFLAGS"
25753     fi
25754 fi
25755
25756 if test "x$HPCC" = "xyes"; then
25757                     CFLAGS="+W 2011,2450 $CFLAGS"
25758 fi
25759 if test "x$HPCXX" = "xyes"; then
25760                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25761 fi
25762
25763 if test "x$COMPAQCXX" = "xyes"; then
25764                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25765 fi
25766
25767 ac_ext=cpp
25768 ac_cpp='$CXXCPP $CPPFLAGS'
25769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25772
25773
25774 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25775     if test "$wxUSE_UNICODE" = "yes"; then
25776         std_string="std::wstring"
25777         char_type="wchar_t"
25778     else
25779         std_string="std::string"
25780         char_type="char"
25781     fi
25782
25783         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25784 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25785 if test "${wx_cv_class_stdstring+set}" = set; then
25786   echo $ECHO_N "(cached) $ECHO_C" >&6
25787 else
25788
25789             cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h.  */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h.  */
25795 #include <string>
25796 int
25797 main ()
25798 {
25799 $std_string foo;
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808   *) ac_try_echo=$ac_try;;
25809 esac
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811   (eval "$ac_compile") 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } && {
25818          test -z "$ac_cxx_werror_flag" ||
25819          test ! -s conftest.err
25820        } && test -s conftest.$ac_objext; then
25821   wx_cv_class_stdstring=yes
25822 else
25823   echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25825
25826         wx_cv_class_stdstring=no
25827
25828 fi
25829
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831
25832
25833 fi
25834 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25835 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25836
25837     if test "$wx_cv_class_stdstring" = yes; then
25838         if test "$wxUSE_UNICODE" = "yes"; then
25839             cat >>confdefs.h <<\_ACEOF
25840 #define HAVE_STD_WSTRING 1
25841 _ACEOF
25842
25843         fi
25844                     else
25845         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25846 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25847 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850
25851                 cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857
25858                     #ifdef HAVE_WCHAR_H
25859                     #  ifdef __CYGWIN__
25860                     #    include <stddef.h>
25861                     #  endif
25862                     #  include <wchar.h>
25863                     #endif
25864                     #ifdef HAVE_STDLIB_H
25865                     #  include <stdlib.h>
25866                     #endif
25867                     #include <stdio.h>
25868                     #include <string>
25869
25870 int
25871 main ()
25872 {
25873 std::basic_string<$char_type> foo;
25874                      const $char_type* dummy = foo.c_str();
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 rm -f conftest.$ac_objext
25880 if { (ac_try="$ac_compile"
25881 case "(($ac_try" in
25882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25883   *) ac_try_echo=$ac_try;;
25884 esac
25885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25886   (eval "$ac_compile") 2>conftest.er1
25887   ac_status=$?
25888   grep -v '^ *+' conftest.er1 >conftest.err
25889   rm -f conftest.er1
25890   cat conftest.err >&5
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } && {
25893          test -z "$ac_cxx_werror_flag" ||
25894          test ! -s conftest.err
25895        } && test -s conftest.$ac_objext; then
25896   wx_cv_class_stdbasicstring=yes
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901         wx_cv_class_stdbasicstring=no
25902
25903 fi
25904
25905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25906
25907
25908 fi
25909 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25910 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25911
25912         if test "$wx_cv_class_stdbasicstring" != yes; then
25913             if test "$wxUSE_STL" = "yes"; then
25914                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25915 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25916    { (exit 1); exit 1; }; }
25917             elif test "$wxUSE_STD_STRING" = "yes"; then
25918                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25919 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25920    { (exit 1); exit 1; }; }
25921             else
25922                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25923 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25924                 wxUSE_STD_STRING=no
25925             fi
25926         fi
25927     fi
25928 fi
25929
25930 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25931     { echo "$as_me:$LINENO: checking for std::istream" >&5
25932 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25933 if test "${ac_cv_type_std__istream+set}" = set; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936   cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h.  */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h.  */
25942 #include <iostream>
25943
25944 typedef std::istream ac__type_new_;
25945 int
25946 main ()
25947 {
25948 if ((ac__type_new_ *) 0)
25949   return 0;
25950 if (sizeof (ac__type_new_))
25951   return 0;
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext
25957 if { (ac_try="$ac_compile"
25958 case "(($ac_try" in
25959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960   *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963   (eval "$ac_compile") 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } && {
25970          test -z "$ac_cxx_werror_flag" ||
25971          test ! -s conftest.err
25972        } && test -s conftest.$ac_objext; then
25973   ac_cv_type_std__istream=yes
25974 else
25975   echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25977
25978         ac_cv_type_std__istream=no
25979 fi
25980
25981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25982 fi
25983 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25984 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25985 if test $ac_cv_type_std__istream = yes; then
25986
25987 cat >>confdefs.h <<_ACEOF
25988 #define HAVE_STD__ISTREAM 1
25989 _ACEOF
25990
25991
25992 else
25993   wxUSE_STD_IOSTREAM=no
25994 fi
25995 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25996 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25997 if test "${ac_cv_type_std__ostream+set}" = set; then
25998   echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000   cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h.  */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h.  */
26006 #include <iostream>
26007
26008 typedef std::ostream ac__type_new_;
26009 int
26010 main ()
26011 {
26012 if ((ac__type_new_ *) 0)
26013   return 0;
26014 if (sizeof (ac__type_new_))
26015   return 0;
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024   *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027   (eval "$ac_compile") 2>conftest.er1
26028   ac_status=$?
26029   grep -v '^ *+' conftest.er1 >conftest.err
26030   rm -f conftest.er1
26031   cat conftest.err >&5
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); } && {
26034          test -z "$ac_cxx_werror_flag" ||
26035          test ! -s conftest.err
26036        } && test -s conftest.$ac_objext; then
26037   ac_cv_type_std__ostream=yes
26038 else
26039   echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26041
26042         ac_cv_type_std__ostream=no
26043 fi
26044
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 fi
26047 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26048 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26049 if test $ac_cv_type_std__ostream = yes; then
26050
26051 cat >>confdefs.h <<_ACEOF
26052 #define HAVE_STD__OSTREAM 1
26053 _ACEOF
26054
26055
26056 else
26057   wxUSE_STD_IOSTREAM=no
26058 fi
26059
26060
26061     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26062         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26063             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26064 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26065    { (exit 1); exit 1; }; }
26066         else
26067             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26068 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26069         fi
26070     fi
26071 fi
26072
26073 if test "$wxUSE_STL" = "yes"; then
26074         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26075 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26076 if test "${wx_cv_lib_stl+set}" = set; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 #include <string>
26086             #include <functional>
26087             #include <algorithm>
26088             #include <vector>
26089             #include <list>
26090 int
26091 main ()
26092 {
26093 std::vector<int> moo;
26094              std::list<int> foo;
26095              std::vector<int>::iterator it =
26096                  std::find_if(moo.begin(), moo.end(),
26097                               std::bind2nd(std::less<int>(), 3));
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109   (eval "$ac_compile") 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && {
26116          test -z "$ac_cxx_werror_flag" ||
26117          test ! -s conftest.err
26118        } && test -s conftest.$ac_objext; then
26119   wx_cv_lib_stl=yes
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124         wx_cv_lib_stl=no
26125
26126 fi
26127
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129
26130 fi
26131 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26132 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26133
26134     if test "$wx_cv_lib_stl" != yes; then
26135          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26136 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26137    { (exit 1); exit 1; }; }
26138     fi
26139
26140         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26141 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26142 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26143   echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145   cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h.  */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h.  */
26151 #include <string>
26152 int
26153 main ()
26154 {
26155 std::string foo, bar;
26156             foo.compare(bar);
26157             foo.compare(1, 1, bar);
26158             foo.compare(1, 1, bar, 1, 1);
26159             foo.compare("");
26160             foo.compare(1, 1, "");
26161             foo.compare(1, 1, "", 2);
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_compile") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && {
26180          test -z "$ac_cxx_werror_flag" ||
26181          test ! -s conftest.err
26182        } && test -s conftest.$ac_objext; then
26183   wx_cv_func_stdstring_compare=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188         wx_cv_func_stdstring_compare=no
26189
26190 fi
26191
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193
26194 fi
26195 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26196 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26197
26198     if test "$wx_cv_func_stdstring_compare" = yes; then
26199         cat >>confdefs.h <<\_ACEOF
26200 #define HAVE_STD_STRING_COMPARE 1
26201 _ACEOF
26202
26203     fi
26204
26205     if test "$wx_cv_class_gnuhashmapset" = yes; then
26206          cat >>confdefs.h <<\_ACEOF
26207 #define HAVE_EXT_HASH_MAP 1
26208 _ACEOF
26209
26210          cat >>confdefs.h <<\_ACEOF
26211 #define HAVE_GNU_CXX_HASH_MAP 1
26212 _ACEOF
26213
26214     fi
26215
26216     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26217 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26218 if test "${ac_cv_header_unordered_map+set}" = set; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h.  */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h.  */
26227
26228
26229
26230 #include <unordered_map>
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236   *) ac_try_echo=$ac_try;;
26237 esac
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239   (eval "$ac_compile") 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } && {
26246          test -z "$ac_cxx_werror_flag" ||
26247          test ! -s conftest.err
26248        } && test -s conftest.$ac_objext; then
26249   ac_cv_header_unordered_map=yes
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254         ac_cv_header_unordered_map=no
26255 fi
26256
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26260 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26261 if test $ac_cv_header_unordered_map = yes; then
26262   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26263 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26264 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267   cat >conftest.$ac_ext <<_ACEOF
26268 /* confdefs.h.  */
26269 _ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h.  */
26273 #include <unordered_map>
26274                 #include <unordered_set>
26275 int
26276 main ()
26277 {
26278 std::unordered_map<double*, char*> test1;
26279                  std::unordered_set<char*> test2;
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (ac_try="$ac_compile"
26286 case "(($ac_try" in
26287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288   *) ac_try_echo=$ac_try;;
26289 esac
26290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291   (eval "$ac_compile") 2>conftest.er1
26292   ac_status=$?
26293   grep -v '^ *+' conftest.er1 >conftest.err
26294   rm -f conftest.er1
26295   cat conftest.err >&5
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); } && {
26298          test -z "$ac_cxx_werror_flag" ||
26299          test ! -s conftest.err
26300        } && test -s conftest.$ac_objext; then
26301   wx_cv_class_stdunorderedmapset=yes
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26305
26306         wx_cv_class_stdunorderedmapset=no
26307 fi
26308
26309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26310
26311
26312 fi
26313 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26314 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26315 fi
26316
26317
26318
26319     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26320          cat >>confdefs.h <<\_ACEOF
26321 #define HAVE_STD_UNORDERED_MAP 1
26322 _ACEOF
26323
26324          cat >>confdefs.h <<\_ACEOF
26325 #define HAVE_STD_UNORDERED_SET 1
26326 _ACEOF
26327
26328     else
26329         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26330 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26331 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26332   echo $ECHO_N "(cached) $ECHO_C" >&6
26333 else
26334   cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340
26341
26342
26343 #include <tr1/unordered_map>
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (ac_try="$ac_compile"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26352   (eval "$ac_compile") 2>conftest.er1
26353   ac_status=$?
26354   grep -v '^ *+' conftest.er1 >conftest.err
26355   rm -f conftest.er1
26356   cat conftest.err >&5
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); } && {
26359          test -z "$ac_cxx_werror_flag" ||
26360          test ! -s conftest.err
26361        } && test -s conftest.$ac_objext; then
26362   ac_cv_header_tr1_unordered_map=yes
26363 else
26364   echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367         ac_cv_header_tr1_unordered_map=no
26368 fi
26369
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26371 fi
26372 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26373 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26374 if test $ac_cv_header_tr1_unordered_map = yes; then
26375   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26376 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26377 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26378   echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380   cat >conftest.$ac_ext <<_ACEOF
26381 /* confdefs.h.  */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h.  */
26386 #include <tr1/unordered_map>
26387                     #include <tr1/unordered_set>
26388 int
26389 main ()
26390 {
26391 std::tr1::unordered_map<double*, char*> test1;
26392                      std::tr1::unordered_set<char*> test2;
26393             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26394             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26395             #endif
26396   ;
26397   return 0;
26398 }
26399 _ACEOF
26400 rm -f conftest.$ac_objext
26401 if { (ac_try="$ac_compile"
26402 case "(($ac_try" in
26403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26404   *) ac_try_echo=$ac_try;;
26405 esac
26406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26407   (eval "$ac_compile") 2>conftest.er1
26408   ac_status=$?
26409   grep -v '^ *+' conftest.er1 >conftest.err
26410   rm -f conftest.er1
26411   cat conftest.err >&5
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); } && {
26414          test -z "$ac_cxx_werror_flag" ||
26415          test ! -s conftest.err
26416        } && test -s conftest.$ac_objext; then
26417   wx_cv_class_tr1unorderedmapset=yes
26418 else
26419   echo "$as_me: failed program was:" >&5
26420 sed 's/^/| /' conftest.$ac_ext >&5
26421
26422         wx_cv_class_tr1unorderedmapset=no
26423 fi
26424
26425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26426
26427
26428 fi
26429 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26430 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26431 fi
26432
26433
26434
26435         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26436             cat >>confdefs.h <<\_ACEOF
26437 #define HAVE_TR1_UNORDERED_MAP 1
26438 _ACEOF
26439
26440             cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_TR1_UNORDERED_SET 1
26442 _ACEOF
26443
26444         else
26445                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26446 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26447 if test "${ac_cv_header_hash_map+set}" = set; then
26448   echo $ECHO_N "(cached) $ECHO_C" >&6
26449 else
26450   cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456
26457
26458
26459 #include <hash_map>
26460 _ACEOF
26461 rm -f conftest.$ac_objext
26462 if { (ac_try="$ac_compile"
26463 case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_compile") 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } && {
26475          test -z "$ac_cxx_werror_flag" ||
26476          test ! -s conftest.err
26477        } && test -s conftest.$ac_objext; then
26478   ac_cv_header_hash_map=yes
26479 else
26480   echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26482
26483         ac_cv_header_hash_map=no
26484 fi
26485
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 fi
26488 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26489 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26490 if test $ac_cv_header_hash_map = yes; then
26491   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26492 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26493 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26494   echo $ECHO_N "(cached) $ECHO_C" >&6
26495 else
26496   cat >conftest.$ac_ext <<_ACEOF
26497 /* confdefs.h.  */
26498 _ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h.  */
26502 #include <hash_map>
26503                         #include <hash_set>
26504 int
26505 main ()
26506 {
26507 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26508                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26509   ;
26510   return 0;
26511 }
26512 _ACEOF
26513 rm -f conftest.$ac_objext
26514 if { (ac_try="$ac_compile"
26515 case "(($ac_try" in
26516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26517   *) ac_try_echo=$ac_try;;
26518 esac
26519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26520   (eval "$ac_compile") 2>conftest.er1
26521   ac_status=$?
26522   grep -v '^ *+' conftest.er1 >conftest.err
26523   rm -f conftest.er1
26524   cat conftest.err >&5
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); } && {
26527          test -z "$ac_cxx_werror_flag" ||
26528          test ! -s conftest.err
26529        } && test -s conftest.$ac_objext; then
26530   wx_cv_class_stdhashmapset=yes
26531 else
26532   echo "$as_me: failed program was:" >&5
26533 sed 's/^/| /' conftest.$ac_ext >&5
26534
26535         wx_cv_class_stdhashmapset=no
26536 fi
26537
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26539
26540
26541 fi
26542 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26543 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26544 fi
26545
26546
26547
26548             if test "$wx_cv_class_stdhashmapset" = yes; then
26549                 cat >>confdefs.h <<\_ACEOF
26550 #define HAVE_HASH_MAP 1
26551 _ACEOF
26552
26553                 cat >>confdefs.h <<\_ACEOF
26554 #define HAVE_STD_HASH_MAP 1
26555 _ACEOF
26556
26557             fi
26558
26559             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26560 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26561 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564   cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570
26571
26572
26573 #include <ext/hash_map>
26574 _ACEOF
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_compile") 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } && {
26589          test -z "$ac_cxx_werror_flag" ||
26590          test ! -s conftest.err
26591        } && test -s conftest.$ac_objext; then
26592   ac_cv_header_ext_hash_map=yes
26593 else
26594   echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26596
26597         ac_cv_header_ext_hash_map=no
26598 fi
26599
26600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 fi
26602 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26603 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26604 if test $ac_cv_header_ext_hash_map = yes; then
26605   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26606 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26607 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610   cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616 #include <ext/hash_map>
26617                         #include <ext/hash_set>
26618 int
26619 main ()
26620 {
26621 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26622                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26623   ;
26624   return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext
26628 if { (ac_try="$ac_compile"
26629 case "(($ac_try" in
26630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631   *) ac_try_echo=$ac_try;;
26632 esac
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634   (eval "$ac_compile") 2>conftest.er1
26635   ac_status=$?
26636   grep -v '^ *+' conftest.er1 >conftest.err
26637   rm -f conftest.er1
26638   cat conftest.err >&5
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } && {
26641          test -z "$ac_cxx_werror_flag" ||
26642          test ! -s conftest.err
26643        } && test -s conftest.$ac_objext; then
26644   wx_cv_class_gnuhashmapset=yes
26645 else
26646   echo "$as_me: failed program was:" >&5
26647 sed 's/^/| /' conftest.$ac_ext >&5
26648
26649         wx_cv_class_gnuhashmapset=no
26650 fi
26651
26652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26653
26654
26655 fi
26656 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26657 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26658 fi
26659
26660
26661
26662         fi
26663     fi
26664 fi
26665
26666 ac_ext=cpp
26667 ac_cpp='$CXXCPP $CPPFLAGS'
26668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26671 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26672 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26673 if test -z "$CXXCPP"; then
26674   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677       # Double quotes because CXXCPP needs to be expanded
26678     for CXXCPP in "$CXX -E" "/lib/cpp"
26679     do
26680       ac_preproc_ok=false
26681 for ac_cxx_preproc_warn_flag in '' yes
26682 do
26683   # Use a header file that comes with gcc, so configuring glibc
26684   # with a fresh cross-compiler works.
26685   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686   # <limits.h> exists even on freestanding compilers.
26687   # On the NeXT, cc -E runs the code through the compiler's parser,
26688   # not just through cpp. "Syntax error" is here to catch this case.
26689   cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695 #ifdef __STDC__
26696 # include <limits.h>
26697 #else
26698 # include <assert.h>
26699 #endif
26700                      Syntax error
26701 _ACEOF
26702 if { (ac_try="$ac_cpp conftest.$ac_ext"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } >/dev/null && {
26715          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26716          test ! -s conftest.err
26717        }; then
26718   :
26719 else
26720   echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26722
26723   # Broken: fails on valid input.
26724 continue
26725 fi
26726
26727 rm -f conftest.err conftest.$ac_ext
26728
26729   # OK, works on sane cases.  Now check whether nonexistent headers
26730   # can be detected and how.
26731   cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737 #include <ac_nonexistent.h>
26738 _ACEOF
26739 if { (ac_try="$ac_cpp conftest.$ac_ext"
26740 case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26746   ac_status=$?
26747   grep -v '^ *+' conftest.er1 >conftest.err
26748   rm -f conftest.er1
26749   cat conftest.err >&5
26750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751   (exit $ac_status); } >/dev/null && {
26752          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26753          test ! -s conftest.err
26754        }; then
26755   # Broken: success on invalid input.
26756 continue
26757 else
26758   echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761   # Passes both tests.
26762 ac_preproc_ok=:
26763 break
26764 fi
26765
26766 rm -f conftest.err conftest.$ac_ext
26767
26768 done
26769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26770 rm -f conftest.err conftest.$ac_ext
26771 if $ac_preproc_ok; then
26772   break
26773 fi
26774
26775     done
26776     ac_cv_prog_CXXCPP=$CXXCPP
26777
26778 fi
26779   CXXCPP=$ac_cv_prog_CXXCPP
26780 else
26781   ac_cv_prog_CXXCPP=$CXXCPP
26782 fi
26783 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26784 echo "${ECHO_T}$CXXCPP" >&6; }
26785 ac_preproc_ok=false
26786 for ac_cxx_preproc_warn_flag in '' yes
26787 do
26788   # Use a header file that comes with gcc, so configuring glibc
26789   # with a fresh cross-compiler works.
26790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26791   # <limits.h> exists even on freestanding compilers.
26792   # On the NeXT, cc -E runs the code through the compiler's parser,
26793   # not just through cpp. "Syntax error" is here to catch this case.
26794   cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800 #ifdef __STDC__
26801 # include <limits.h>
26802 #else
26803 # include <assert.h>
26804 #endif
26805                      Syntax error
26806 _ACEOF
26807 if { (ac_try="$ac_cpp conftest.$ac_ext"
26808 case "(($ac_try" in
26809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26810   *) ac_try_echo=$ac_try;;
26811 esac
26812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26814   ac_status=$?
26815   grep -v '^ *+' conftest.er1 >conftest.err
26816   rm -f conftest.er1
26817   cat conftest.err >&5
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); } >/dev/null && {
26820          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26821          test ! -s conftest.err
26822        }; then
26823   :
26824 else
26825   echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26827
26828   # Broken: fails on valid input.
26829 continue
26830 fi
26831
26832 rm -f conftest.err conftest.$ac_ext
26833
26834   # OK, works on sane cases.  Now check whether nonexistent headers
26835   # can be detected and how.
26836   cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h.  */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h.  */
26842 #include <ac_nonexistent.h>
26843 _ACEOF
26844 if { (ac_try="$ac_cpp conftest.$ac_ext"
26845 case "(($ac_try" in
26846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847   *) ac_try_echo=$ac_try;;
26848 esac
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } >/dev/null && {
26857          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26858          test ! -s conftest.err
26859        }; then
26860   # Broken: success on invalid input.
26861 continue
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866   # Passes both tests.
26867 ac_preproc_ok=:
26868 break
26869 fi
26870
26871 rm -f conftest.err conftest.$ac_ext
26872
26873 done
26874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26875 rm -f conftest.err conftest.$ac_ext
26876 if $ac_preproc_ok; then
26877   :
26878 else
26879   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26880 See \`config.log' for more details." >&5
26881 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26882 See \`config.log' for more details." >&2;}
26883    { (exit 1); exit 1; }; }
26884 fi
26885
26886 ac_ext=cpp
26887 ac_cpp='$CXXCPP $CPPFLAGS'
26888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26891
26892
26893
26894
26895 for ac_header in type_traits tr1/type_traits
26896 do
26897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 fi
26904 ac_res=`eval echo '${'$as_ac_Header'}'`
26905                { echo "$as_me:$LINENO: result: $ac_res" >&5
26906 echo "${ECHO_T}$ac_res" >&6; }
26907 else
26908   # Is the header compilable?
26909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917 $ac_includes_default
26918 #include <$ac_header>
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_compile") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } && {
26934          test -z "$ac_cxx_werror_flag" ||
26935          test ! -s conftest.err
26936        } && test -s conftest.$ac_objext; then
26937   ac_header_compiler=yes
26938 else
26939   echo "$as_me: failed program was:" >&5
26940 sed 's/^/| /' conftest.$ac_ext >&5
26941
26942         ac_header_compiler=no
26943 fi
26944
26945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26947 echo "${ECHO_T}$ac_header_compiler" >&6; }
26948
26949 # Is the header present?
26950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26952 cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958 #include <$ac_header>
26959 _ACEOF
26960 if { (ac_try="$ac_cpp conftest.$ac_ext"
26961 case "(($ac_try" in
26962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963   *) ac_try_echo=$ac_try;;
26964 esac
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26967   ac_status=$?
26968   grep -v '^ *+' conftest.er1 >conftest.err
26969   rm -f conftest.er1
26970   cat conftest.err >&5
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } >/dev/null && {
26973          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26974          test ! -s conftest.err
26975        }; then
26976   ac_header_preproc=yes
26977 else
26978   echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981   ac_header_preproc=no
26982 fi
26983
26984 rm -f conftest.err conftest.$ac_ext
26985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26986 echo "${ECHO_T}$ac_header_preproc" >&6; }
26987
26988 # So?  What about this header?
26989 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26990   yes:no: )
26991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26995     ac_header_preproc=yes
26996     ;;
26997   no:yes:* )
26998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27010     ( cat <<\_ASBOX
27011 ## ----------------------------------------- ##
27012 ## Report this to wx-dev@lists.wxwidgets.org ##
27013 ## ----------------------------------------- ##
27014 _ASBOX
27015      ) | sed "s/^/$as_me: WARNING:     /" >&2
27016     ;;
27017 esac
27018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   eval "$as_ac_Header=\$ac_header_preproc"
27024 fi
27025 ac_res=`eval echo '${'$as_ac_Header'}'`
27026                { echo "$as_me:$LINENO: result: $ac_res" >&5
27027 echo "${ECHO_T}$ac_res" >&6; }
27028
27029 fi
27030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27031   cat >>confdefs.h <<_ACEOF
27032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27033 _ACEOF
27034
27035 fi
27036
27037 done
27038
27039
27040
27041
27042   if test -n "$GCC"; then
27043     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
27044 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
27045     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27046   echo $ECHO_N "(cached) $ECHO_C" >&6
27047 else
27048
27049       cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055
27056 int
27057 main ()
27058 {
27059
27060           unsigned int value=0;
27061           /* wxAtomicInc doesn't use return value here */
27062           __sync_fetch_and_add(&value, 2);
27063           __sync_sub_and_fetch(&value, 1);
27064           /* but wxAtomicDec does, so mimic that: */
27065           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
27066
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext conftest$ac_exeext
27072 if { (ac_try="$ac_link"
27073 case "(($ac_try" in
27074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075   *) ac_try_echo=$ac_try;;
27076 esac
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078   (eval "$ac_link") 2>conftest.er1
27079   ac_status=$?
27080   grep -v '^ *+' conftest.er1 >conftest.err
27081   rm -f conftest.er1
27082   cat conftest.err >&5
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } && {
27085          test -z "$ac_cxx_werror_flag" ||
27086          test ! -s conftest.err
27087        } && test -s conftest$ac_exeext &&
27088        $as_test_x conftest$ac_exeext; then
27089   wx_cv_cc_gcc_atomic_builtins=yes
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094         wx_cv_cc_gcc_atomic_builtins=no
27095 fi
27096
27097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27098       conftest$ac_exeext conftest.$ac_ext
27099
27100 fi
27101
27102     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27103 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27104     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27105       cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_GCC_ATOMIC_BUILTINS 1
27107 _ACEOF
27108
27109     fi
27110   fi
27111
27112
27113 ac_ext=c
27114 ac_cpp='$CPP $CPPFLAGS'
27115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27118
27119
27120
27121 SEARCH_INCLUDE="\
27122     /usr/local/include        \
27123     /usr/local/X11/include    \
27124     /usr/local/include/X11    \
27125     /usr/local/X11R7/include  \
27126     /usr/local/X11R6/include  \
27127     /usr/local/include/X11R7  \
27128     /usr/local/include/X11R6  \
27129                               \
27130     /usr/Motif-2.1/include    \
27131     /usr/Motif-1.2/include    \
27132     /usr/include/Motif1.2     \
27133                               \
27134     /usr/dt/include           \
27135     /usr/openwin/include      \
27136                               \
27137     /usr/include/Xm           \
27138                               \
27139     /usr/X11R7/include        \
27140     /usr/X11R6/include        \
27141     /usr/X11R6.4/include      \
27142                               \
27143     /usr/include/X11R7        \
27144     /usr/include/X11R6        \
27145                               \
27146     /usr/X11/include          \
27147     /usr/include/X11          \
27148                               \
27149     /usr/XFree86/include/X11  \
27150     /usr/pkg/include          \
27151                               \
27152     /usr/local/X1R5/include  \
27153     /usr/local/include/X11R5  \
27154     /usr/X11R5/include        \
27155     /usr/include/X11R5        \
27156                               \
27157     /usr/local/X11R4/include  \
27158     /usr/local/include/X11R4  \
27159     /usr/X11R4/include        \
27160     /usr/include/X11R4        \
27161                               \
27162     /usr/openwin/share/include"
27163
27164 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27165 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27166
27167 case "${host}" in
27168     *-*-irix6* )
27169         if test "${wx_cv_std_libpath+set}" = set; then
27170   echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172
27173                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27174                     for e in a so sl dylib dll.a; do
27175                         libc="$d/libc.$e"
27176                         if test -f $libc; then
27177                             save_LIBS="$LIBS"
27178                             LIBS="$libc"
27179                             cat >conftest.$ac_ext <<_ACEOF
27180
27181                                     /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186 int main() { return 0; }
27187
27188 _ACEOF
27189 rm -f conftest.$ac_objext conftest$ac_exeext
27190 if { (ac_try="$ac_link"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_link") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } && {
27203          test -z "$ac_c_werror_flag" ||
27204          test ! -s conftest.err
27205        } && test -s conftest$ac_exeext &&
27206        $as_test_x conftest$ac_exeext; then
27207   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212
27213 fi
27214
27215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27216       conftest$ac_exeext conftest.$ac_ext
27217                             LIBS="$save_LIBS"
27218                             if test "x$wx_cv_std_libpath" != "x"; then
27219                                 break 2
27220                             fi
27221                         fi
27222                     done
27223                 done
27224
27225
27226 fi
27227
27228         ;;
27229
27230     *-*-solaris2* )
27231                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27232             wx_cv_std_libpath="lib/64"
27233         fi
27234         ;;
27235
27236     *-*-linux* )
27237                                         if test "$ac_cv_sizeof_void_p" = 8; then
27238             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27239                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27240             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27241                 wx_cv_std_libpath="lib64"
27242             fi
27243         else
27244             case "${host}" in
27245                 i*86-*-linux* )
27246                     if test -d '/usr/lib/i386-linux-gnu'; then
27247                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27248                     fi
27249             esac
27250         fi
27251
27252                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27253             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27254         fi
27255         ;;
27256 esac
27257
27258 if test -z "$wx_cv_std_libpath"; then
27259     wx_cv_std_libpath="lib"
27260 fi
27261
27262 if test -z "$wx_cv_std_libfullpath"; then
27263     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27264 fi
27265
27266
27267 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27268 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27269
27270 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27271
27272 if test "$build" != "$host" -a "$GCC" = yes; then
27273                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27274         cross_root=`dirname $cross_root`
27275         cross_root=`dirname $cross_root`
27276
27277                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27278         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27279         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27280
27281                 if test -z "$PKG_CONFIG_PATH"; then
27282             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27283             export PKG_CONFIG_PATH
27284         fi
27285
27286                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27287
27288 ac_find_includes=
27289 for ac_dir in $SEARCH_INCLUDE /usr/include
27290   do
27291     if test -f "$ac_dir/X11/Intrinsic.h"; then
27292       ac_find_includes=$ac_dir
27293       break
27294     fi
27295   done
27296
27297             x_includes=$ac_find_includes
27298         fi
27299         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27300
27301   ac_find_libraries=
27302   for ac_dir in  $SEARCH_LIB
27303   do
27304     for ac_extension in a so sl dylib dll.a; do
27305       if test -f "$ac_dir/libXt.$ac_extension"; then
27306         ac_find_libraries=$ac_dir
27307         break 2
27308       fi
27309     done
27310   done
27311
27312             x_libraries=$ac_find_libraries
27313         fi
27314     fi
27315 fi
27316
27317
27318 cat >confcache <<\_ACEOF
27319 # This file is a shell script that caches the results of configure
27320 # tests run on this system so they can be shared between configure
27321 # scripts and configure runs, see configure's option --config-cache.
27322 # It is not useful on other systems.  If it contains results you don't
27323 # want to keep, you may remove or edit it.
27324 #
27325 # config.status only pays attention to the cache file if you give it
27326 # the --recheck option to rerun configure.
27327 #
27328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27330 # following values.
27331
27332 _ACEOF
27333
27334 # The following way of writing the cache mishandles newlines in values,
27335 # but we know of no workaround that is simple, portable, and efficient.
27336 # So, we kill variables containing newlines.
27337 # Ultrix sh set writes to stderr and can't be redirected directly,
27338 # and sets the high bit in the cache file unless we assign to the vars.
27339 (
27340   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27341     eval ac_val=\$$ac_var
27342     case $ac_val in #(
27343     *${as_nl}*)
27344       case $ac_var in #(
27345       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27346 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27347       esac
27348       case $ac_var in #(
27349       _ | IFS | as_nl) ;; #(
27350       *) $as_unset $ac_var ;;
27351       esac ;;
27352     esac
27353   done
27354
27355   (set) 2>&1 |
27356     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27357     *${as_nl}ac_space=\ *)
27358       # `set' does not quote correctly, so add quotes (double-quote
27359       # substitution turns \\\\ into \\, and sed turns \\ into \).
27360       sed -n \
27361         "s/'/'\\\\''/g;
27362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27363       ;; #(
27364     *)
27365       # `set' quotes correctly as required by POSIX, so do not add quotes.
27366       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27367       ;;
27368     esac |
27369     sort
27370 ) |
27371   sed '
27372      /^ac_cv_env_/b end
27373      t clear
27374      :clear
27375      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27376      t end
27377      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27378      :end' >>confcache
27379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27380   if test -w "$cache_file"; then
27381     test "x$cache_file" != "x/dev/null" &&
27382       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27383 echo "$as_me: updating cache $cache_file" >&6;}
27384     cat confcache >$cache_file
27385   else
27386     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27387 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27388   fi
27389 fi
27390 rm -f confcache
27391
27392 have_cos=0
27393 have_floor=0
27394
27395 for ac_func in cos
27396 do
27397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27401   echo $ECHO_N "(cached) $ECHO_C" >&6
27402 else
27403   cat >conftest.$ac_ext <<_ACEOF
27404 /* confdefs.h.  */
27405 _ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h.  */
27409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27411 #define $ac_func innocuous_$ac_func
27412
27413 /* System header to define __stub macros and hopefully few prototypes,
27414     which can conflict with char $ac_func (); below.
27415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27416     <limits.h> exists even on freestanding compilers.  */
27417
27418 #ifdef __STDC__
27419 # include <limits.h>
27420 #else
27421 # include <assert.h>
27422 #endif
27423
27424 #undef $ac_func
27425
27426 /* Override any GCC internal prototype to avoid an error.
27427    Use char because int might match the return type of a GCC
27428    builtin and then its argument prototype would still apply.  */
27429 #ifdef __cplusplus
27430 extern "C"
27431 #endif
27432 char $ac_func ();
27433 /* The GNU C library defines this for functions which it implements
27434     to always fail with ENOSYS.  Some functions are actually named
27435     something starting with __ and the normal name is an alias.  */
27436 #if defined __stub_$ac_func || defined __stub___$ac_func
27437 choke me
27438 #endif
27439
27440 int
27441 main ()
27442 {
27443 return $ac_func ();
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 rm -f conftest.$ac_objext conftest$ac_exeext
27449 if { (ac_try="$ac_link"
27450 case "(($ac_try" in
27451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452   *) ac_try_echo=$ac_try;;
27453 esac
27454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455   (eval "$ac_link") 2>conftest.er1
27456   ac_status=$?
27457   grep -v '^ *+' conftest.er1 >conftest.err
27458   rm -f conftest.er1
27459   cat conftest.err >&5
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); } && {
27462          test -z "$ac_c_werror_flag" ||
27463          test ! -s conftest.err
27464        } && test -s conftest$ac_exeext &&
27465        $as_test_x conftest$ac_exeext; then
27466   eval "$as_ac_var=yes"
27467 else
27468   echo "$as_me: failed program was:" >&5
27469 sed 's/^/| /' conftest.$ac_ext >&5
27470
27471         eval "$as_ac_var=no"
27472 fi
27473
27474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27475       conftest$ac_exeext conftest.$ac_ext
27476 fi
27477 ac_res=`eval echo '${'$as_ac_var'}'`
27478                { echo "$as_me:$LINENO: result: $ac_res" >&5
27479 echo "${ECHO_T}$ac_res" >&6; }
27480 if test `eval echo '${'$as_ac_var'}'` = yes; then
27481   cat >>confdefs.h <<_ACEOF
27482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27483 _ACEOF
27484  have_cos=1
27485 fi
27486 done
27487
27488
27489 for ac_func in floor
27490 do
27491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27495   echo $ECHO_N "(cached) $ECHO_C" >&6
27496 else
27497   cat >conftest.$ac_ext <<_ACEOF
27498 /* confdefs.h.  */
27499 _ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h.  */
27503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27505 #define $ac_func innocuous_$ac_func
27506
27507 /* System header to define __stub macros and hopefully few prototypes,
27508     which can conflict with char $ac_func (); below.
27509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27510     <limits.h> exists even on freestanding compilers.  */
27511
27512 #ifdef __STDC__
27513 # include <limits.h>
27514 #else
27515 # include <assert.h>
27516 #endif
27517
27518 #undef $ac_func
27519
27520 /* Override any GCC internal prototype to avoid an error.
27521    Use char because int might match the return type of a GCC
27522    builtin and then its argument prototype would still apply.  */
27523 #ifdef __cplusplus
27524 extern "C"
27525 #endif
27526 char $ac_func ();
27527 /* The GNU C library defines this for functions which it implements
27528     to always fail with ENOSYS.  Some functions are actually named
27529     something starting with __ and the normal name is an alias.  */
27530 #if defined __stub_$ac_func || defined __stub___$ac_func
27531 choke me
27532 #endif
27533
27534 int
27535 main ()
27536 {
27537 return $ac_func ();
27538   ;
27539   return 0;
27540 }
27541 _ACEOF
27542 rm -f conftest.$ac_objext conftest$ac_exeext
27543 if { (ac_try="$ac_link"
27544 case "(($ac_try" in
27545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27546   *) ac_try_echo=$ac_try;;
27547 esac
27548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27549   (eval "$ac_link") 2>conftest.er1
27550   ac_status=$?
27551   grep -v '^ *+' conftest.er1 >conftest.err
27552   rm -f conftest.er1
27553   cat conftest.err >&5
27554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); } && {
27556          test -z "$ac_c_werror_flag" ||
27557          test ! -s conftest.err
27558        } && test -s conftest$ac_exeext &&
27559        $as_test_x conftest$ac_exeext; then
27560   eval "$as_ac_var=yes"
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565         eval "$as_ac_var=no"
27566 fi
27567
27568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27569       conftest$ac_exeext conftest.$ac_ext
27570 fi
27571 ac_res=`eval echo '${'$as_ac_var'}'`
27572                { echo "$as_me:$LINENO: result: $ac_res" >&5
27573 echo "${ECHO_T}$ac_res" >&6; }
27574 if test `eval echo '${'$as_ac_var'}'` = yes; then
27575   cat >>confdefs.h <<_ACEOF
27576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27577 _ACEOF
27578  have_floor=1
27579 fi
27580 done
27581
27582 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27583 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27584 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27585     { echo "$as_me:$LINENO: result: yes" >&5
27586 echo "${ECHO_T}yes" >&6; }
27587 else
27588     { echo "$as_me:$LINENO: result: no" >&5
27589 echo "${ECHO_T}no" >&6; }
27590     LIBS="$LIBS -lm"
27591     # use different functions to avoid configure caching
27592     have_sin=0
27593     have_ceil=0
27594
27595 for ac_func in sin
27596 do
27597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27601   echo $ECHO_N "(cached) $ECHO_C" >&6
27602 else
27603   cat >conftest.$ac_ext <<_ACEOF
27604 /* confdefs.h.  */
27605 _ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h.  */
27609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27611 #define $ac_func innocuous_$ac_func
27612
27613 /* System header to define __stub macros and hopefully few prototypes,
27614     which can conflict with char $ac_func (); below.
27615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27616     <limits.h> exists even on freestanding compilers.  */
27617
27618 #ifdef __STDC__
27619 # include <limits.h>
27620 #else
27621 # include <assert.h>
27622 #endif
27623
27624 #undef $ac_func
27625
27626 /* Override any GCC internal prototype to avoid an error.
27627    Use char because int might match the return type of a GCC
27628    builtin and then its argument prototype would still apply.  */
27629 #ifdef __cplusplus
27630 extern "C"
27631 #endif
27632 char $ac_func ();
27633 /* The GNU C library defines this for functions which it implements
27634     to always fail with ENOSYS.  Some functions are actually named
27635     something starting with __ and the normal name is an alias.  */
27636 #if defined __stub_$ac_func || defined __stub___$ac_func
27637 choke me
27638 #endif
27639
27640 int
27641 main ()
27642 {
27643 return $ac_func ();
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (ac_try="$ac_link"
27650 case "(($ac_try" in
27651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652   *) ac_try_echo=$ac_try;;
27653 esac
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655   (eval "$ac_link") 2>conftest.er1
27656   ac_status=$?
27657   grep -v '^ *+' conftest.er1 >conftest.err
27658   rm -f conftest.er1
27659   cat conftest.err >&5
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); } && {
27662          test -z "$ac_c_werror_flag" ||
27663          test ! -s conftest.err
27664        } && test -s conftest$ac_exeext &&
27665        $as_test_x conftest$ac_exeext; then
27666   eval "$as_ac_var=yes"
27667 else
27668   echo "$as_me: failed program was:" >&5
27669 sed 's/^/| /' conftest.$ac_ext >&5
27670
27671         eval "$as_ac_var=no"
27672 fi
27673
27674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27675       conftest$ac_exeext conftest.$ac_ext
27676 fi
27677 ac_res=`eval echo '${'$as_ac_var'}'`
27678                { echo "$as_me:$LINENO: result: $ac_res" >&5
27679 echo "${ECHO_T}$ac_res" >&6; }
27680 if test `eval echo '${'$as_ac_var'}'` = yes; then
27681   cat >>confdefs.h <<_ACEOF
27682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27683 _ACEOF
27684  have_sin=1
27685 fi
27686 done
27687
27688
27689 for ac_func in ceil
27690 do
27691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27695   echo $ECHO_N "(cached) $ECHO_C" >&6
27696 else
27697   cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h.  */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h.  */
27703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27705 #define $ac_func innocuous_$ac_func
27706
27707 /* System header to define __stub macros and hopefully few prototypes,
27708     which can conflict with char $ac_func (); below.
27709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710     <limits.h> exists even on freestanding compilers.  */
27711
27712 #ifdef __STDC__
27713 # include <limits.h>
27714 #else
27715 # include <assert.h>
27716 #endif
27717
27718 #undef $ac_func
27719
27720 /* Override any GCC internal prototype to avoid an error.
27721    Use char because int might match the return type of a GCC
27722    builtin and then its argument prototype would still apply.  */
27723 #ifdef __cplusplus
27724 extern "C"
27725 #endif
27726 char $ac_func ();
27727 /* The GNU C library defines this for functions which it implements
27728     to always fail with ENOSYS.  Some functions are actually named
27729     something starting with __ and the normal name is an alias.  */
27730 #if defined __stub_$ac_func || defined __stub___$ac_func
27731 choke me
27732 #endif
27733
27734 int
27735 main ()
27736 {
27737 return $ac_func ();
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (ac_try="$ac_link"
27744 case "(($ac_try" in
27745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746   *) ac_try_echo=$ac_try;;
27747 esac
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749   (eval "$ac_link") 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } && {
27756          test -z "$ac_c_werror_flag" ||
27757          test ! -s conftest.err
27758        } && test -s conftest$ac_exeext &&
27759        $as_test_x conftest$ac_exeext; then
27760   eval "$as_ac_var=yes"
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765         eval "$as_ac_var=no"
27766 fi
27767
27768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27769       conftest$ac_exeext conftest.$ac_ext
27770 fi
27771 ac_res=`eval echo '${'$as_ac_var'}'`
27772                { echo "$as_me:$LINENO: result: $ac_res" >&5
27773 echo "${ECHO_T}$ac_res" >&6; }
27774 if test `eval echo '${'$as_ac_var'}'` = yes; then
27775   cat >>confdefs.h <<_ACEOF
27776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27777 _ACEOF
27778  have_ceil=1
27779 fi
27780 done
27781
27782     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27783 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27784     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27785         { echo "$as_me:$LINENO: result: yes" >&5
27786 echo "${ECHO_T}yes" >&6; }
27787     else
27788         { echo "$as_me:$LINENO: result: no" >&5
27789 echo "${ECHO_T}no" >&6; }
27790         # not sure we should warn the user, crash, etc.
27791     fi
27792 fi
27793
27794 ac_ext=cpp
27795 ac_cpp='$CXXCPP $CPPFLAGS'
27796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27799
27800 if test "wxUSE_UNICODE" = "yes"; then
27801
27802   for wx_func in wcstoull
27803   do
27804     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27805 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27806 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809
27810         cat >conftest.$ac_ext <<_ACEOF
27811
27812             /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817
27818
27819                 $ac_includes_default
27820
27821 int
27822 main ()
27823 {
27824
27825                 #ifndef $wx_func
27826                   &$wx_func;
27827                 #endif
27828
27829
27830   ;
27831   return 0;
27832 }
27833
27834 _ACEOF
27835 rm -f conftest.$ac_objext conftest$ac_exeext
27836 if { (ac_try="$ac_link"
27837 case "(($ac_try" in
27838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839   *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842   (eval "$ac_link") 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } && {
27849          test -z "$ac_cxx_werror_flag" ||
27850          test ! -s conftest.err
27851        } && test -s conftest$ac_exeext &&
27852        $as_test_x conftest$ac_exeext; then
27853   eval wx_cv_func_$wx_func=yes
27854 else
27855   echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858         eval wx_cv_func_$wx_func=no
27859 fi
27860
27861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27862       conftest$ac_exeext conftest.$ac_ext
27863
27864 fi
27865 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27866                { echo "$as_me:$LINENO: result: $ac_res" >&5
27867 echo "${ECHO_T}$ac_res" >&6; }
27868
27869     if eval test \$wx_cv_func_$wx_func = yes
27870     then
27871       cat >>confdefs.h <<_ACEOF
27872 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27873 _ACEOF
27874
27875
27876     else
27877       :
27878
27879     fi
27880   done
27881
27882 else
27883
27884   for wx_func in strtoull
27885   do
27886     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27887 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27888 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27889   echo $ECHO_N "(cached) $ECHO_C" >&6
27890 else
27891
27892         cat >conftest.$ac_ext <<_ACEOF
27893
27894             /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899
27900
27901                 $ac_includes_default
27902
27903 int
27904 main ()
27905 {
27906
27907                 #ifndef $wx_func
27908                   &$wx_func;
27909                 #endif
27910
27911
27912   ;
27913   return 0;
27914 }
27915
27916 _ACEOF
27917 rm -f conftest.$ac_objext conftest$ac_exeext
27918 if { (ac_try="$ac_link"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_link") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_cxx_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest$ac_exeext &&
27934        $as_test_x conftest$ac_exeext; then
27935   eval wx_cv_func_$wx_func=yes
27936 else
27937   echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27939
27940         eval wx_cv_func_$wx_func=no
27941 fi
27942
27943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27944       conftest$ac_exeext conftest.$ac_ext
27945
27946 fi
27947 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27948                { echo "$as_me:$LINENO: result: $ac_res" >&5
27949 echo "${ECHO_T}$ac_res" >&6; }
27950
27951     if eval test \$wx_cv_func_$wx_func = yes
27952     then
27953       cat >>confdefs.h <<_ACEOF
27954 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27955 _ACEOF
27956
27957
27958     else
27959       :
27960
27961     fi
27962   done
27963
27964 fi
27965 ac_ext=c
27966 ac_cpp='$CPP $CPPFLAGS'
27967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27970
27971
27972
27973
27974 if test "$wxUSE_REGEX" != "no"; then
27975     cat >>confdefs.h <<\_ACEOF
27976 #define wxUSE_REGEX 1
27977 _ACEOF
27978
27979
27980     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27981         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27982 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27983         wxUSE_REGEX=builtin
27984     fi
27985
27986     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27987                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27988 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27989 if test "${ac_cv_header_regex_h+set}" = set; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992   cat >conftest.$ac_ext <<_ACEOF
27993 /* confdefs.h.  */
27994 _ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h.  */
27998
27999
28000 #include <regex.h>
28001 _ACEOF
28002 rm -f conftest.$ac_objext
28003 if { (ac_try="$ac_compile"
28004 case "(($ac_try" in
28005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006   *) ac_try_echo=$ac_try;;
28007 esac
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009   (eval "$ac_compile") 2>conftest.er1
28010   ac_status=$?
28011   grep -v '^ *+' conftest.er1 >conftest.err
28012   rm -f conftest.er1
28013   cat conftest.err >&5
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); } && {
28016          test -z "$ac_c_werror_flag" ||
28017          test ! -s conftest.err
28018        } && test -s conftest.$ac_objext; then
28019   ac_cv_header_regex_h=yes
28020 else
28021   echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28023
28024         ac_cv_header_regex_h=no
28025 fi
28026
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 fi
28029 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28030 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28031 if test $ac_cv_header_regex_h = yes; then
28032
28033
28034 for ac_func in regcomp re_search
28035 do
28036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28040   echo $ECHO_N "(cached) $ECHO_C" >&6
28041 else
28042   cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28050 #define $ac_func innocuous_$ac_func
28051
28052 /* System header to define __stub macros and hopefully few prototypes,
28053     which can conflict with char $ac_func (); below.
28054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28055     <limits.h> exists even on freestanding compilers.  */
28056
28057 #ifdef __STDC__
28058 # include <limits.h>
28059 #else
28060 # include <assert.h>
28061 #endif
28062
28063 #undef $ac_func
28064
28065 /* Override any GCC internal prototype to avoid an error.
28066    Use char because int might match the return type of a GCC
28067    builtin and then its argument prototype would still apply.  */
28068 #ifdef __cplusplus
28069 extern "C"
28070 #endif
28071 char $ac_func ();
28072 /* The GNU C library defines this for functions which it implements
28073     to always fail with ENOSYS.  Some functions are actually named
28074     something starting with __ and the normal name is an alias.  */
28075 #if defined __stub_$ac_func || defined __stub___$ac_func
28076 choke me
28077 #endif
28078
28079 int
28080 main ()
28081 {
28082 return $ac_func ();
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_link") 2>conftest.er1
28095   ac_status=$?
28096   grep -v '^ *+' conftest.er1 >conftest.err
28097   rm -f conftest.er1
28098   cat conftest.err >&5
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); } && {
28101          test -z "$ac_c_werror_flag" ||
28102          test ! -s conftest.err
28103        } && test -s conftest$ac_exeext &&
28104        $as_test_x conftest$ac_exeext; then
28105   eval "$as_ac_var=yes"
28106 else
28107   echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28109
28110         eval "$as_ac_var=no"
28111 fi
28112
28113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28114       conftest$ac_exeext conftest.$ac_ext
28115 fi
28116 ac_res=`eval echo '${'$as_ac_var'}'`
28117                { echo "$as_me:$LINENO: result: $ac_res" >&5
28118 echo "${ECHO_T}$ac_res" >&6; }
28119 if test `eval echo '${'$as_ac_var'}'` = yes; then
28120   cat >>confdefs.h <<_ACEOF
28121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28122 _ACEOF
28123
28124 fi
28125 done
28126
28127 fi
28128
28129
28130
28131         if test "x$ac_cv_func_regcomp" != "xyes"; then
28132             if test "$wxUSE_REGEX" = "sys" ; then
28133                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28134 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28135    { (exit 1); exit 1; }; }
28136             else
28137                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28138 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28139                 wxUSE_REGEX=builtin
28140             fi
28141         else
28142                         wxUSE_REGEX=sys
28143                         cat >>confdefs.h <<\_ACEOF
28144 #define WX_NO_REGEX_ADVANCED 1
28145 _ACEOF
28146
28147         fi
28148     fi
28149 fi
28150
28151
28152 ZLIB_LINK=
28153 if test "$wxUSE_ZLIB" != "no" ; then
28154     cat >>confdefs.h <<\_ACEOF
28155 #define wxUSE_ZLIB 1
28156 _ACEOF
28157
28158
28159     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28160                                                 if test "$USE_DARWIN" = 1; then
28161             system_zlib_h_ok="yes"
28162         else
28163                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28164 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28165 if test "${ac_cv_header_zlib_h+set}" = set; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168   if test "$cross_compiling" = yes; then
28169                       unset ac_cv_header_zlib_h
28170
28171 else
28172   cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178
28179                         #include <zlib.h>
28180                         #include <stdio.h>
28181
28182                         int main()
28183                         {
28184                             FILE *f=fopen("conftestval", "w");
28185                             if (!f) exit(1);
28186                             fprintf(f, "%s",
28187                                     ZLIB_VERSION[0] == '1' &&
28188                                     (ZLIB_VERSION[2] > '1' ||
28189                                     (ZLIB_VERSION[2] == '1' &&
28190                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28191                             exit(0);
28192                         }
28193
28194 _ACEOF
28195 rm -f conftest$ac_exeext
28196 if { (ac_try="$ac_link"
28197 case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_link") 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28206   { (case "(($ac_try" in
28207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208   *) ac_try_echo=$ac_try;;
28209 esac
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211   (eval "$ac_try") 2>&5
28212   ac_status=$?
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); }; }; then
28215   ac_cv_header_zlib_h=`cat conftestval`
28216 else
28217   echo "$as_me: program exited with status $ac_status" >&5
28218 echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.$ac_ext >&5
28220
28221 ( exit $ac_status )
28222 ac_cv_header_zlib_h=no
28223 fi
28224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28225 fi
28226
28227
28228
28229 fi
28230 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28231 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28232                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28233 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28234 if test "${ac_cv_header_zlib_h+set}" = set; then
28235   echo $ECHO_N "(cached) $ECHO_C" >&6
28236 else
28237   cat >conftest.$ac_ext <<_ACEOF
28238 /* confdefs.h.  */
28239 _ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h.  */
28243
28244
28245 #include <zlib.h>
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (ac_try="$ac_compile"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_compile") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } && {
28261          test -z "$ac_c_werror_flag" ||
28262          test ! -s conftest.err
28263        } && test -s conftest.$ac_objext; then
28264   ac_cv_header_zlib_h=yes
28265 else
28266   echo "$as_me: failed program was:" >&5
28267 sed 's/^/| /' conftest.$ac_ext >&5
28268
28269         ac_cv_header_zlib_h=no
28270 fi
28271
28272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28273 fi
28274 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28275 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28276
28277
28278
28279             system_zlib_h_ok=$ac_cv_header_zlib_h
28280         fi
28281
28282         if test "$system_zlib_h_ok" = "yes"; then
28283             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28284 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28285 if test "${ac_cv_lib_z_deflate+set}" = set; then
28286   echo $ECHO_N "(cached) $ECHO_C" >&6
28287 else
28288   ac_check_lib_save_LIBS=$LIBS
28289 LIBS="-lz  $LIBS"
28290 cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296
28297 /* Override any GCC internal prototype to avoid an error.
28298    Use char because int might match the return type of a GCC
28299    builtin and then its argument prototype would still apply.  */
28300 #ifdef __cplusplus
28301 extern "C"
28302 #endif
28303 char deflate ();
28304 int
28305 main ()
28306 {
28307 return deflate ();
28308   ;
28309   return 0;
28310 }
28311 _ACEOF
28312 rm -f conftest.$ac_objext conftest$ac_exeext
28313 if { (ac_try="$ac_link"
28314 case "(($ac_try" in
28315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316   *) ac_try_echo=$ac_try;;
28317 esac
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319   (eval "$ac_link") 2>conftest.er1
28320   ac_status=$?
28321   grep -v '^ *+' conftest.er1 >conftest.err
28322   rm -f conftest.er1
28323   cat conftest.err >&5
28324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325   (exit $ac_status); } && {
28326          test -z "$ac_c_werror_flag" ||
28327          test ! -s conftest.err
28328        } && test -s conftest$ac_exeext &&
28329        $as_test_x conftest$ac_exeext; then
28330   ac_cv_lib_z_deflate=yes
28331 else
28332   echo "$as_me: failed program was:" >&5
28333 sed 's/^/| /' conftest.$ac_ext >&5
28334
28335         ac_cv_lib_z_deflate=no
28336 fi
28337
28338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28339       conftest$ac_exeext conftest.$ac_ext
28340 LIBS=$ac_check_lib_save_LIBS
28341 fi
28342 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28343 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28344 if test $ac_cv_lib_z_deflate = yes; then
28345   ZLIB_LINK=" -lz"
28346 fi
28347
28348         fi
28349
28350         if test "x$ZLIB_LINK" = "x" ; then
28351             if test "$wxUSE_ZLIB" = "sys" ; then
28352                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28353 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28354    { (exit 1); exit 1; }; }
28355             else
28356                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28357 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28358                 wxUSE_ZLIB=builtin
28359             fi
28360         else
28361                         wxUSE_ZLIB=sys
28362         fi
28363     fi
28364 fi
28365
28366
28367 PNG_LINK=
28368 if test "$wxUSE_LIBPNG" != "no" ; then
28369     cat >>confdefs.h <<\_ACEOF
28370 #define wxUSE_LIBPNG 1
28371 _ACEOF
28372
28373
28374     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28375         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28376 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28377         wxUSE_LIBPNG=sys
28378     fi
28379
28380                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28381         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28382 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28383         wxUSE_LIBPNG=builtin
28384     fi
28385
28386     if test "$wxUSE_MGL" != 1 ; then
28387                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28388                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28389 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28390 if test "${ac_cv_header_png_h+set}" = set; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393   if test "$cross_compiling" = yes; then
28394                       unset ac_cv_header_png_h
28395
28396 else
28397   cat >conftest.$ac_ext <<_ACEOF
28398 /* confdefs.h.  */
28399 _ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h.  */
28403
28404                         #include <png.h>
28405                         #include <stdio.h>
28406
28407                         int main()
28408                         {
28409                             FILE *f=fopen("conftestval", "w");
28410                             if (!f) exit(1);
28411                             fprintf(f, "%s",
28412                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28413                             exit(0);
28414                         }
28415
28416 _ACEOF
28417 rm -f conftest$ac_exeext
28418 if { (ac_try="$ac_link"
28419 case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_link") 2>&5
28425   ac_status=$?
28426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28428   { (case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_try") 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   ac_cv_header_png_h=`cat conftestval`
28438 else
28439   echo "$as_me: program exited with status $ac_status" >&5
28440 echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28442
28443 ( exit $ac_status )
28444 ac_cv_header_png_h=no
28445 fi
28446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447 fi
28448
28449
28450
28451 fi
28452 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28453 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28454             { echo "$as_me:$LINENO: checking for png.h" >&5
28455 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_png_h+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465
28466
28467 #include <png.h>
28468 _ACEOF
28469 rm -f conftest.$ac_objext
28470 if { (ac_try="$ac_compile"
28471 case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_compile") 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } && {
28483          test -z "$ac_c_werror_flag" ||
28484          test ! -s conftest.err
28485        } && test -s conftest.$ac_objext; then
28486   ac_cv_header_png_h=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_cv_header_png_h=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 fi
28496 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28497 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28498
28499
28500
28501             if test "$ac_cv_header_png_h" = "yes"; then
28502                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28503 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28504 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28505   echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507   ac_check_lib_save_LIBS=$LIBS
28508 LIBS="-lpng -lz -lm $LIBS"
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515
28516 /* Override any GCC internal prototype to avoid an error.
28517    Use char because int might match the return type of a GCC
28518    builtin and then its argument prototype would still apply.  */
28519 #ifdef __cplusplus
28520 extern "C"
28521 #endif
28522 char png_sig_cmp ();
28523 int
28524 main ()
28525 {
28526 return png_sig_cmp ();
28527   ;
28528   return 0;
28529 }
28530 _ACEOF
28531 rm -f conftest.$ac_objext conftest$ac_exeext
28532 if { (ac_try="$ac_link"
28533 case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_link") 2>conftest.er1
28539   ac_status=$?
28540   grep -v '^ *+' conftest.er1 >conftest.err
28541   rm -f conftest.er1
28542   cat conftest.err >&5
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); } && {
28545          test -z "$ac_c_werror_flag" ||
28546          test ! -s conftest.err
28547        } && test -s conftest$ac_exeext &&
28548        $as_test_x conftest$ac_exeext; then
28549   ac_cv_lib_png_png_sig_cmp=yes
28550 else
28551   echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554         ac_cv_lib_png_png_sig_cmp=no
28555 fi
28556
28557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28558       conftest$ac_exeext conftest.$ac_ext
28559 LIBS=$ac_check_lib_save_LIBS
28560 fi
28561 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28562 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28563 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28564   PNG_LINK=" -lpng -lz"
28565 fi
28566
28567             fi
28568
28569             if test "x$PNG_LINK" = "x" ; then
28570                 if test "$wxUSE_LIBPNG" = "sys" ; then
28571                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28572 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28573    { (exit 1); exit 1; }; }
28574                 else
28575                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28576 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28577                     wxUSE_LIBPNG=builtin
28578                 fi
28579             else
28580                                 wxUSE_LIBPNG=sys
28581             fi
28582         fi
28583     fi
28584 fi
28585
28586
28587 JPEG_LINK=
28588 if test "$wxUSE_LIBJPEG" != "no" ; then
28589     cat >>confdefs.h <<\_ACEOF
28590 #define wxUSE_LIBJPEG 1
28591 _ACEOF
28592
28593
28594     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28595         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28596 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28597         wxUSE_LIBJPEG=sys
28598     fi
28599
28600     if test "$wxUSE_MGL" != 1 ; then
28601                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28602                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28603 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28604             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28605   echo $ECHO_N "(cached) $ECHO_C" >&6
28606 else
28607   cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613
28614                         #undef HAVE_STDLIB_H
28615                         #include <stdio.h>
28616                         #include <jpeglib.h>
28617
28618 int
28619 main ()
28620 {
28621
28622
28623   ;
28624   return 0;
28625 }
28626 _ACEOF
28627 rm -f conftest.$ac_objext
28628 if { (ac_try="$ac_compile"
28629 case "(($ac_try" in
28630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631   *) ac_try_echo=$ac_try;;
28632 esac
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634   (eval "$ac_compile") 2>conftest.er1
28635   ac_status=$?
28636   grep -v '^ *+' conftest.er1 >conftest.err
28637   rm -f conftest.er1
28638   cat conftest.err >&5
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); } && {
28641          test -z "$ac_c_werror_flag" ||
28642          test ! -s conftest.err
28643        } && test -s conftest.$ac_objext; then
28644   ac_cv_header_jpeglib_h=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28648
28649         ac_cv_header_jpeglib_h=no
28650
28651 fi
28652
28653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28654
28655 fi
28656
28657             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28658 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28659
28660             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28661                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28662 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28663 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28664   echo $ECHO_N "(cached) $ECHO_C" >&6
28665 else
28666   ac_check_lib_save_LIBS=$LIBS
28667 LIBS="-ljpeg  $LIBS"
28668 cat >conftest.$ac_ext <<_ACEOF
28669 /* confdefs.h.  */
28670 _ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h.  */
28674
28675 /* Override any GCC internal prototype to avoid an error.
28676    Use char because int might match the return type of a GCC
28677    builtin and then its argument prototype would still apply.  */
28678 #ifdef __cplusplus
28679 extern "C"
28680 #endif
28681 char jpeg_read_header ();
28682 int
28683 main ()
28684 {
28685 return jpeg_read_header ();
28686   ;
28687   return 0;
28688 }
28689 _ACEOF
28690 rm -f conftest.$ac_objext conftest$ac_exeext
28691 if { (ac_try="$ac_link"
28692 case "(($ac_try" in
28693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694   *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697   (eval "$ac_link") 2>conftest.er1
28698   ac_status=$?
28699   grep -v '^ *+' conftest.er1 >conftest.err
28700   rm -f conftest.er1
28701   cat conftest.err >&5
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); } && {
28704          test -z "$ac_c_werror_flag" ||
28705          test ! -s conftest.err
28706        } && test -s conftest$ac_exeext &&
28707        $as_test_x conftest$ac_exeext; then
28708   ac_cv_lib_jpeg_jpeg_read_header=yes
28709 else
28710   echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28712
28713         ac_cv_lib_jpeg_jpeg_read_header=no
28714 fi
28715
28716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28717       conftest$ac_exeext conftest.$ac_ext
28718 LIBS=$ac_check_lib_save_LIBS
28719 fi
28720 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28721 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28722 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28723   JPEG_LINK=" -ljpeg"
28724 fi
28725
28726             fi
28727
28728             if test "x$JPEG_LINK" = "x" ; then
28729                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28730                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28731 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28732    { (exit 1); exit 1; }; }
28733                 else
28734                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28735 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28736                     wxUSE_LIBJPEG=builtin
28737                 fi
28738             else
28739                                 wxUSE_LIBJPEG=sys
28740
28741                 if test "$wxUSE_MSW" = 1; then
28742                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28743 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28744 if test "${ac_cv_type_boolean+set}" = set; then
28745   echo $ECHO_N "(cached) $ECHO_C" >&6
28746 else
28747   cat >conftest.$ac_ext <<_ACEOF
28748 /* confdefs.h.  */
28749 _ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h.  */
28753 #include <windows.h>
28754
28755 typedef boolean ac__type_new_;
28756 int
28757 main ()
28758 {
28759 if ((ac__type_new_ *) 0)
28760   return 0;
28761 if (sizeof (ac__type_new_))
28762   return 0;
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext
28768 if { (ac_try="$ac_compile"
28769 case "(($ac_try" in
28770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771   *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774   (eval "$ac_compile") 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } && {
28781          test -z "$ac_c_werror_flag" ||
28782          test ! -s conftest.err
28783        } && test -s conftest.$ac_objext; then
28784   ac_cv_type_boolean=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789         ac_cv_type_boolean=no
28790 fi
28791
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 fi
28794 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28795 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28796 if test $ac_cv_type_boolean = yes; then
28797
28798 cat >>confdefs.h <<_ACEOF
28799 #define HAVE_BOOLEAN 1
28800 _ACEOF
28801
28802
28803                             { echo "$as_me:$LINENO: checking for boolean" >&5
28804 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28805 if test "${ac_cv_type_boolean+set}" = set; then
28806   echo $ECHO_N "(cached) $ECHO_C" >&6
28807 else
28808   cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814
28815                                     #undef HAVE_BOOLEAN
28816                                     #include <stdio.h>
28817                                     #include <jpeglib.h>
28818
28819
28820 typedef boolean ac__type_new_;
28821 int
28822 main ()
28823 {
28824 if ((ac__type_new_ *) 0)
28825   return 0;
28826 if (sizeof (ac__type_new_))
28827   return 0;
28828   ;
28829   return 0;
28830 }
28831 _ACEOF
28832 rm -f conftest.$ac_objext
28833 if { (ac_try="$ac_compile"
28834 case "(($ac_try" in
28835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836   *) ac_try_echo=$ac_try;;
28837 esac
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839   (eval "$ac_compile") 2>conftest.er1
28840   ac_status=$?
28841   grep -v '^ *+' conftest.er1 >conftest.err
28842   rm -f conftest.er1
28843   cat conftest.err >&5
28844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845   (exit $ac_status); } && {
28846          test -z "$ac_c_werror_flag" ||
28847          test ! -s conftest.err
28848        } && test -s conftest.$ac_objext; then
28849   ac_cv_type_boolean=yes
28850 else
28851   echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28853
28854         ac_cv_type_boolean=no
28855 fi
28856
28857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28858 fi
28859 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28860 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28861
28862 # The cast to long int works around a bug in the HP C Compiler
28863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28865 # This bug is HP SR number 8606223364.
28866 { echo "$as_me:$LINENO: checking size of boolean" >&5
28867 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28868 if test "${ac_cv_sizeof_boolean+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871   if test "$cross_compiling" = yes; then
28872   # Depending upon the size, compute the lo and hi bounds.
28873 cat >conftest.$ac_ext <<_ACEOF
28874 /* confdefs.h.  */
28875 _ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h.  */
28879
28880                                     #undef HAVE_BOOLEAN
28881                                     #include <stdio.h>
28882                                     #include <jpeglib.h>
28883
28884
28885    typedef boolean ac__type_sizeof_;
28886 int
28887 main ()
28888 {
28889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28890 test_array [0] = 0
28891
28892   ;
28893   return 0;
28894 }
28895 _ACEOF
28896 rm -f conftest.$ac_objext
28897 if { (ac_try="$ac_compile"
28898 case "(($ac_try" in
28899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900   *) ac_try_echo=$ac_try;;
28901 esac
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903   (eval "$ac_compile") 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } && {
28910          test -z "$ac_c_werror_flag" ||
28911          test ! -s conftest.err
28912        } && test -s conftest.$ac_objext; then
28913   ac_lo=0 ac_mid=0
28914   while :; do
28915     cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921
28922                                     #undef HAVE_BOOLEAN
28923                                     #include <stdio.h>
28924                                     #include <jpeglib.h>
28925
28926
28927    typedef boolean ac__type_sizeof_;
28928 int
28929 main ()
28930 {
28931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28932 test_array [0] = 0
28933
28934   ;
28935   return 0;
28936 }
28937 _ACEOF
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942   *) ac_try_echo=$ac_try;;
28943 esac
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945   (eval "$ac_compile") 2>conftest.er1
28946   ac_status=$?
28947   grep -v '^ *+' conftest.er1 >conftest.err
28948   rm -f conftest.er1
28949   cat conftest.err >&5
28950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951   (exit $ac_status); } && {
28952          test -z "$ac_c_werror_flag" ||
28953          test ! -s conftest.err
28954        } && test -s conftest.$ac_objext; then
28955   ac_hi=$ac_mid; break
28956 else
28957   echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28959
28960         ac_lo=`expr $ac_mid + 1`
28961                         if test $ac_lo -le $ac_mid; then
28962                           ac_lo= ac_hi=
28963                           break
28964                         fi
28965                         ac_mid=`expr 2 '*' $ac_mid + 1`
28966 fi
28967
28968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969   done
28970 else
28971   echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28973
28974         cat >conftest.$ac_ext <<_ACEOF
28975 /* confdefs.h.  */
28976 _ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h.  */
28980
28981                                     #undef HAVE_BOOLEAN
28982                                     #include <stdio.h>
28983                                     #include <jpeglib.h>
28984
28985
28986    typedef boolean ac__type_sizeof_;
28987 int
28988 main ()
28989 {
28990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28991 test_array [0] = 0
28992
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest.$ac_objext
28998 if { (ac_try="$ac_compile"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_compile") 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } && {
29011          test -z "$ac_c_werror_flag" ||
29012          test ! -s conftest.err
29013        } && test -s conftest.$ac_objext; then
29014   ac_hi=-1 ac_mid=-1
29015   while :; do
29016     cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h.  */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h.  */
29022
29023                                     #undef HAVE_BOOLEAN
29024                                     #include <stdio.h>
29025                                     #include <jpeglib.h>
29026
29027
29028    typedef boolean ac__type_sizeof_;
29029 int
29030 main ()
29031 {
29032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29033 test_array [0] = 0
29034
29035   ;
29036   return 0;
29037 }
29038 _ACEOF
29039 rm -f conftest.$ac_objext
29040 if { (ac_try="$ac_compile"
29041 case "(($ac_try" in
29042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29043   *) ac_try_echo=$ac_try;;
29044 esac
29045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29046   (eval "$ac_compile") 2>conftest.er1
29047   ac_status=$?
29048   grep -v '^ *+' conftest.er1 >conftest.err
29049   rm -f conftest.er1
29050   cat conftest.err >&5
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); } && {
29053          test -z "$ac_c_werror_flag" ||
29054          test ! -s conftest.err
29055        } && test -s conftest.$ac_objext; then
29056   ac_lo=$ac_mid; break
29057 else
29058   echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29060
29061         ac_hi=`expr '(' $ac_mid ')' - 1`
29062                         if test $ac_mid -le $ac_hi; then
29063                           ac_lo= ac_hi=
29064                           break
29065                         fi
29066                         ac_mid=`expr 2 '*' $ac_mid`
29067 fi
29068
29069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29070   done
29071 else
29072   echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29074
29075         ac_lo= ac_hi=
29076 fi
29077
29078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079 fi
29080
29081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29082 # Binary search between lo and hi bounds.
29083 while test "x$ac_lo" != "x$ac_hi"; do
29084   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29085   cat >conftest.$ac_ext <<_ACEOF
29086 /* confdefs.h.  */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h.  */
29091
29092                                     #undef HAVE_BOOLEAN
29093                                     #include <stdio.h>
29094                                     #include <jpeglib.h>
29095
29096
29097    typedef boolean ac__type_sizeof_;
29098 int
29099 main ()
29100 {
29101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29102 test_array [0] = 0
29103
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 rm -f conftest.$ac_objext
29109 if { (ac_try="$ac_compile"
29110 case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_compile") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } && {
29122          test -z "$ac_c_werror_flag" ||
29123          test ! -s conftest.err
29124        } && test -s conftest.$ac_objext; then
29125   ac_hi=$ac_mid
29126 else
29127   echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130         ac_lo=`expr '(' $ac_mid ')' + 1`
29131 fi
29132
29133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29134 done
29135 case $ac_lo in
29136 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29137 '') if test "$ac_cv_type_boolean" = yes; then
29138      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29139 See \`config.log' for more details." >&5
29140 echo "$as_me: error: cannot compute sizeof (boolean)
29141 See \`config.log' for more details." >&2;}
29142    { (exit 77); exit 77; }; }
29143    else
29144      ac_cv_sizeof_boolean=0
29145    fi ;;
29146 esac
29147 else
29148   cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154
29155                                     #undef HAVE_BOOLEAN
29156                                     #include <stdio.h>
29157                                     #include <jpeglib.h>
29158
29159
29160    typedef boolean ac__type_sizeof_;
29161 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29162 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29163 #include <stdio.h>
29164 #include <stdlib.h>
29165 int
29166 main ()
29167 {
29168
29169   FILE *f = fopen ("conftest.val", "w");
29170   if (! f)
29171     return 1;
29172   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29173     {
29174       long int i = longval ();
29175       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29176         return 1;
29177       fprintf (f, "%ld\n", i);
29178     }
29179   else
29180     {
29181       unsigned long int i = ulongval ();
29182       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29183         return 1;
29184       fprintf (f, "%lu\n", i);
29185     }
29186   return ferror (f) || fclose (f) != 0;
29187
29188   ;
29189   return 0;
29190 }
29191 _ACEOF
29192 rm -f conftest$ac_exeext
29193 if { (ac_try="$ac_link"
29194 case "(($ac_try" in
29195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196   *) ac_try_echo=$ac_try;;
29197 esac
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199   (eval "$ac_link") 2>&5
29200   ac_status=$?
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29203   { (case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208   (eval "$ac_try") 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ac_cv_sizeof_boolean=`cat conftest.val`
29213 else
29214   echo "$as_me: program exited with status $ac_status" >&5
29215 echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29217
29218 ( exit $ac_status )
29219 if test "$ac_cv_type_boolean" = yes; then
29220      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29221 See \`config.log' for more details." >&5
29222 echo "$as_me: error: cannot compute sizeof (boolean)
29223 See \`config.log' for more details." >&2;}
29224    { (exit 77); exit 77; }; }
29225    else
29226      ac_cv_sizeof_boolean=0
29227    fi
29228 fi
29229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29230 fi
29231 rm -f conftest.val
29232 fi
29233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29234 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29235
29236
29237
29238 cat >>confdefs.h <<_ACEOF
29239 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29240 _ACEOF
29241
29242
29243                             cat >>confdefs.h <<_ACEOF
29244 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29245 _ACEOF
29246
29247
29248 fi
29249
29250                 fi
29251             fi
29252         fi
29253     fi
29254 fi
29255
29256
29257 TIFF_LINK=
29258 TIFF_PREREQ_LINKS=-lm
29259 if test "$wxUSE_LIBTIFF" != "no" ; then
29260     cat >>confdefs.h <<\_ACEOF
29261 #define wxUSE_LIBTIFF 1
29262 _ACEOF
29263
29264
29265     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29266                         if test "$wxUSE_LIBJPEG" = "sys"; then
29267             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29268         fi
29269         if test "$wxUSE_ZLIB" = "sys"; then
29270             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29271         fi
29272         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29273 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29274 if test "${ac_cv_header_tiffio_h+set}" = set; then
29275   echo $ECHO_N "(cached) $ECHO_C" >&6
29276 else
29277   cat >conftest.$ac_ext <<_ACEOF
29278 /* confdefs.h.  */
29279 _ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h.  */
29283
29284
29285
29286 #include <tiffio.h>
29287 _ACEOF
29288 rm -f conftest.$ac_objext
29289 if { (ac_try="$ac_compile"
29290 case "(($ac_try" in
29291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292   *) ac_try_echo=$ac_try;;
29293 esac
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295   (eval "$ac_compile") 2>conftest.er1
29296   ac_status=$?
29297   grep -v '^ *+' conftest.er1 >conftest.err
29298   rm -f conftest.er1
29299   cat conftest.err >&5
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); } && {
29302          test -z "$ac_c_werror_flag" ||
29303          test ! -s conftest.err
29304        } && test -s conftest.$ac_objext; then
29305   ac_cv_header_tiffio_h=yes
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310         ac_cv_header_tiffio_h=no
29311 fi
29312
29313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314 fi
29315 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29316 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29317 if test $ac_cv_header_tiffio_h = yes; then
29318
29319                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29320 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29321 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   ac_check_lib_save_LIBS=$LIBS
29325 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332
29333 /* Override any GCC internal prototype to avoid an error.
29334    Use char because int might match the return type of a GCC
29335    builtin and then its argument prototype would still apply.  */
29336 #ifdef __cplusplus
29337 extern "C"
29338 #endif
29339 char TIFFError ();
29340 int
29341 main ()
29342 {
29343 return TIFFError ();
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (ac_try="$ac_link"
29350 case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_link") 2>conftest.er1
29356   ac_status=$?
29357   grep -v '^ *+' conftest.er1 >conftest.err
29358   rm -f conftest.er1
29359   cat conftest.err >&5
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); } && {
29362          test -z "$ac_c_werror_flag" ||
29363          test ! -s conftest.err
29364        } && test -s conftest$ac_exeext &&
29365        $as_test_x conftest$ac_exeext; then
29366   ac_cv_lib_tiff_TIFFError=yes
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_cv_lib_tiff_TIFFError=no
29372 fi
29373
29374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29375       conftest$ac_exeext conftest.$ac_ext
29376 LIBS=$ac_check_lib_save_LIBS
29377 fi
29378 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29379 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29380 if test $ac_cv_lib_tiff_TIFFError = yes; then
29381   TIFF_LINK=" -ltiff"
29382 fi
29383
29384
29385 fi
29386
29387
29388
29389         if test "x$TIFF_LINK" = "x" ; then
29390             if test "$wxUSE_LIBTIFF" = "sys" ; then
29391                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29392 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29393    { (exit 1); exit 1; }; }
29394             else
29395                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29396 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29397                 wxUSE_LIBTIFF=builtin
29398             fi
29399         else
29400                         wxUSE_LIBTIFF=sys
29401         fi
29402     fi
29403     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29404         if test "$wxUSE_LIBJPEG" = "no"; then
29405                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29406         fi
29407         subdirs="$subdirs src/tiff"
29408
29409     fi
29410 fi
29411
29412
29413 if test "$wxUSE_EXPAT" != "no"; then
29414     wxUSE_XML=yes
29415     cat >>confdefs.h <<\_ACEOF
29416 #define wxUSE_EXPAT 1
29417 _ACEOF
29418
29419     cat >>confdefs.h <<\_ACEOF
29420 #define wxUSE_XML 1
29421 _ACEOF
29422
29423
29424     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29425         { echo "$as_me:$LINENO: checking for expat.h" >&5
29426 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29427 if test "${ac_cv_header_expat_h+set}" = set; then
29428   echo $ECHO_N "(cached) $ECHO_C" >&6
29429 else
29430   cat >conftest.$ac_ext <<_ACEOF
29431 /* confdefs.h.  */
29432 _ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h.  */
29436
29437
29438 #include <expat.h>
29439 _ACEOF
29440 rm -f conftest.$ac_objext
29441 if { (ac_try="$ac_compile"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_compile") 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } && {
29454          test -z "$ac_c_werror_flag" ||
29455          test ! -s conftest.err
29456        } && test -s conftest.$ac_objext; then
29457   ac_cv_header_expat_h=yes
29458 else
29459   echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29461
29462         ac_cv_header_expat_h=no
29463 fi
29464
29465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29466 fi
29467 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29468 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29469 if test $ac_cv_header_expat_h = yes; then
29470   found_expat_h=1
29471 fi
29472
29473
29474         if test "x$found_expat_h" = "x1"; then
29475                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29476 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29477 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 else
29480
29481                 ac_ext=cpp
29482 ac_cpp='$CXXCPP $CPPFLAGS'
29483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29486
29487                 cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493 #include <expat.h>
29494 int
29495 main ()
29496 {
29497
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (ac_try="$ac_compile"
29504 case "(($ac_try" in
29505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506   *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509   (eval "$ac_compile") 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } && {
29516          test -z "$ac_cxx_werror_flag" ||
29517          test ! -s conftest.err
29518        } && test -s conftest.$ac_objext; then
29519   wx_cv_expat_is_not_broken=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524         wx_cv_expat_is_not_broken=no
29525
29526 fi
29527
29528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29529                 ac_ext=c
29530 ac_cpp='$CPP $CPPFLAGS'
29531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29534
29535
29536
29537 fi
29538 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29539 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29540             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29541                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29542 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29543 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29544   echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546   ac_check_lib_save_LIBS=$LIBS
29547 LIBS="-lexpat  $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554
29555 /* Override any GCC internal prototype to avoid an error.
29556    Use char because int might match the return type of a GCC
29557    builtin and then its argument prototype would still apply.  */
29558 #ifdef __cplusplus
29559 extern "C"
29560 #endif
29561 char XML_ParserCreate ();
29562 int
29563 main ()
29564 {
29565 return XML_ParserCreate ();
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext conftest$ac_exeext
29571 if { (ac_try="$ac_link"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577   (eval "$ac_link") 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } && {
29584          test -z "$ac_c_werror_flag" ||
29585          test ! -s conftest.err
29586        } && test -s conftest$ac_exeext &&
29587        $as_test_x conftest$ac_exeext; then
29588   ac_cv_lib_expat_XML_ParserCreate=yes
29589 else
29590   echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593         ac_cv_lib_expat_XML_ParserCreate=no
29594 fi
29595
29596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29597       conftest$ac_exeext conftest.$ac_ext
29598 LIBS=$ac_check_lib_save_LIBS
29599 fi
29600 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29601 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29602 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29603   EXPAT_LINK=" -lexpat"
29604 fi
29605
29606             fi
29607         fi
29608         if test "x$EXPAT_LINK" = "x" ; then
29609             if test "$wxUSE_EXPAT" = "sys" ; then
29610                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29611 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29612    { (exit 1); exit 1; }; }
29613             else
29614                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29615 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29616                 wxUSE_EXPAT=builtin
29617             fi
29618         else
29619                         wxUSE_EXPAT=sys
29620         fi
29621     fi
29622     if test "$wxUSE_EXPAT" = "builtin" ; then
29623                 subdirs="$subdirs src/expat"
29624
29625     fi
29626 fi
29627
29628
29629
29630 if test "$wxUSE_LIBMSPACK" != "no"; then
29631     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29632 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29633 if test "${ac_cv_header_mspack_h+set}" = set; then
29634   echo $ECHO_N "(cached) $ECHO_C" >&6
29635 else
29636   cat >conftest.$ac_ext <<_ACEOF
29637 /* confdefs.h.  */
29638 _ACEOF
29639 cat confdefs.h >>conftest.$ac_ext
29640 cat >>conftest.$ac_ext <<_ACEOF
29641 /* end confdefs.h.  */
29642
29643
29644 #include <mspack.h>
29645 _ACEOF
29646 rm -f conftest.$ac_objext
29647 if { (ac_try="$ac_compile"
29648 case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_compile") 2>conftest.er1
29654   ac_status=$?
29655   grep -v '^ *+' conftest.er1 >conftest.err
29656   rm -f conftest.er1
29657   cat conftest.err >&5
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } && {
29660          test -z "$ac_c_werror_flag" ||
29661          test ! -s conftest.err
29662        } && test -s conftest.$ac_objext; then
29663   ac_cv_header_mspack_h=yes
29664 else
29665   echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29667
29668         ac_cv_header_mspack_h=no
29669 fi
29670
29671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29672 fi
29673 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29674 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29675 if test $ac_cv_header_mspack_h = yes; then
29676   found_mspack_h=1
29677 fi
29678
29679
29680     if test "x$found_mspack_h" = "x1"; then
29681         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29682 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29683 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29684   echo $ECHO_N "(cached) $ECHO_C" >&6
29685 else
29686   ac_check_lib_save_LIBS=$LIBS
29687 LIBS="-lmspack  $LIBS"
29688 cat >conftest.$ac_ext <<_ACEOF
29689 /* confdefs.h.  */
29690 _ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h.  */
29694
29695 /* Override any GCC internal prototype to avoid an error.
29696    Use char because int might match the return type of a GCC
29697    builtin and then its argument prototype would still apply.  */
29698 #ifdef __cplusplus
29699 extern "C"
29700 #endif
29701 char mspack_create_chm_decompressor ();
29702 int
29703 main ()
29704 {
29705 return mspack_create_chm_decompressor ();
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (ac_try="$ac_link"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_link") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest$ac_exeext &&
29727        $as_test_x conftest$ac_exeext; then
29728   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29729 else
29730   echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29732
29733         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29734 fi
29735
29736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29737       conftest$ac_exeext conftest.$ac_ext
29738 LIBS=$ac_check_lib_save_LIBS
29739 fi
29740 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29741 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29742 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29743   MSPACK_LINK=" -lmspack"
29744 fi
29745
29746     fi
29747     if test "x$MSPACK_LINK" = "x" ; then
29748         wxUSE_LIBMSPACK=no
29749     fi
29750 fi
29751
29752 if test "$wxUSE_LIBMSPACK" != "no"; then
29753     cat >>confdefs.h <<\_ACEOF
29754 #define wxUSE_LIBMSPACK 1
29755 _ACEOF
29756
29757 fi
29758
29759
29760
29761 AFMINSTALL=
29762 WIN32INSTALL=
29763
29764 TOOLKIT=
29765 TOOLKIT_INCLUDE=
29766 WIDGET_SET=
29767
29768 if test "$USE_WIN32" = 1 ; then
29769
29770 for ac_header in w32api.h
29771 do
29772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29776   echo $ECHO_N "(cached) $ECHO_C" >&6
29777 else
29778   cat >conftest.$ac_ext <<_ACEOF
29779 /* confdefs.h.  */
29780 _ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h.  */
29784
29785
29786 #include <$ac_header>
29787 _ACEOF
29788 rm -f conftest.$ac_objext
29789 if { (ac_try="$ac_compile"
29790 case "(($ac_try" in
29791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29792   *) ac_try_echo=$ac_try;;
29793 esac
29794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29795   (eval "$ac_compile") 2>conftest.er1
29796   ac_status=$?
29797   grep -v '^ *+' conftest.er1 >conftest.err
29798   rm -f conftest.er1
29799   cat conftest.err >&5
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); } && {
29802          test -z "$ac_c_werror_flag" ||
29803          test ! -s conftest.err
29804        } && test -s conftest.$ac_objext; then
29805   eval "$as_ac_Header=yes"
29806 else
29807   echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810         eval "$as_ac_Header=no"
29811 fi
29812
29813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29814 fi
29815 ac_res=`eval echo '${'$as_ac_Header'}'`
29816                { echo "$as_me:$LINENO: result: $ac_res" >&5
29817 echo "${ECHO_T}$ac_res" >&6; }
29818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29819   cat >>confdefs.h <<_ACEOF
29820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29821 _ACEOF
29822
29823 fi
29824
29825 done
29826
29827     { echo "$as_me:$LINENO: checking for windows.h" >&5
29828 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29829 if test "${ac_cv_header_windows_h+set}" = set; then
29830   echo $ECHO_N "(cached) $ECHO_C" >&6
29831 else
29832   cat >conftest.$ac_ext <<_ACEOF
29833 /* confdefs.h.  */
29834 _ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h.  */
29838
29839
29840 #include <windows.h>
29841 _ACEOF
29842 rm -f conftest.$ac_objext
29843 if { (ac_try="$ac_compile"
29844 case "(($ac_try" in
29845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846   *) ac_try_echo=$ac_try;;
29847 esac
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849   (eval "$ac_compile") 2>conftest.er1
29850   ac_status=$?
29851   grep -v '^ *+' conftest.er1 >conftest.err
29852   rm -f conftest.er1
29853   cat conftest.err >&5
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } && {
29856          test -z "$ac_c_werror_flag" ||
29857          test ! -s conftest.err
29858        } && test -s conftest.$ac_objext; then
29859   ac_cv_header_windows_h=yes
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864         ac_cv_header_windows_h=no
29865 fi
29866
29867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29868 fi
29869 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29870 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29871 if test $ac_cv_header_windows_h = yes; then
29872   :
29873 else
29874
29875         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29876 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29877    { (exit 1); exit 1; }; }
29878
29879 fi
29880
29881
29882
29883     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29884     case "${host}" in
29885         x86_64-*-mingw32* )
29886                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29887         ;;
29888     esac
29889     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29890         LIBS="$LIBS -loleacc"
29891     fi
29892
29893     case "${host}" in
29894         *-*-cygwin* )
29895                         LIBS="$LIBS -lkernel32 -luser32"
29896     esac
29897
29898         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29899     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29900
29901                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29902
29903         WIN32INSTALL=win32install
29904 fi
29905
29906 if test "$wxUSE_GUI" = "yes"; then
29907     USE_GUI=1
29908
29909     GUI_TK_LIBRARY=
29910
29911     WXGTK127=
29912     WXGTK2=
29913     WXGPE=
29914
29915     if test "$wxUSE_OLD_COCOA" = 1 ; then
29916         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29917             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29918 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29919             wxUSE_PRINTING_ARCHITECTURE=no
29920         fi
29921         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29922             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29923 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29924             wxUSE_DRAG_AND_DROP=no
29925         fi
29926         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29927             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29928 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29929             wxUSE_DRAGIMAGE=no
29930         fi
29931     fi
29932
29933     if test "$wxUSE_MSW" = 1 ; then
29934         TOOLKIT=MSW
29935         GUIDIST=MSW_DIST
29936
29937                 case "${host}" in
29938             *-*-mingw32* )
29939                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29940         esac
29941     fi
29942
29943     if test "$wxUSE_GTK" = 1; then
29944                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29945 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29946
29947         gtk_version_cached=1
29948         if test "${wx_cv_lib_gtk+set}" = set; then
29949   echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951
29952                                                 gtk_version_cached=0
29953                 { echo "$as_me:$LINENO: result: " >&5
29954 echo "${ECHO_T}" >&6; }
29955
29956                                                 GTK_MODULES=
29957                 if test "$wxUSE_THREADS" = "yes"; then
29958                     GTK_MODULES=gthread
29959                 fi
29960
29961                                 wx_cv_lib_gtk=
29962                 if test "x$wxGTK_VERSION" != "x1"
29963                 then
29964                                                                                 case "${host}" in
29965                         *-*-solaris2* )
29966                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29967                                 enable_gtktest=no
29968                             fi
29969                     esac
29970
29971                     # Check whether --enable-gtktest was given.
29972 if test "${enable_gtktest+set}" = set; then
29973   enableval=$enable_gtktest;
29974 else
29975   enable_gtktest=yes
29976 fi
29977
29978
29979   pkg_config_args=gtk+-2.0
29980   for module in . $GTK_MODULES
29981   do
29982       case "$module" in
29983          gthread)
29984              pkg_config_args="$pkg_config_args gthread-2.0"
29985          ;;
29986       esac
29987   done
29988
29989   no_gtk=""
29990
29991   # Extract the first word of "pkg-config", so it can be a program name with args.
29992 set dummy pkg-config; ac_word=$2
29993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29995 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29996   echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998   case $PKG_CONFIG in
29999   [\\/]* | ?:[\\/]*)
30000   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30001   ;;
30002   *)
30003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30004 for as_dir in $PATH
30005 do
30006   IFS=$as_save_IFS
30007   test -z "$as_dir" && as_dir=.
30008   for ac_exec_ext in '' $ac_executable_extensions; do
30009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30010     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30012     break 2
30013   fi
30014 done
30015 done
30016 IFS=$as_save_IFS
30017
30018   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30019   ;;
30020 esac
30021 fi
30022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30023 if test -n "$PKG_CONFIG"; then
30024   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30025 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30026 else
30027   { echo "$as_me:$LINENO: result: no" >&5
30028 echo "${ECHO_T}no" >&6; }
30029 fi
30030
30031
30032
30033   if test x$PKG_CONFIG != xno ; then
30034     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30035       :
30036     else
30037       echo "*** pkg-config too old; version 0.7 or better required."
30038       no_gtk=yes
30039       PKG_CONFIG=no
30040     fi
30041   else
30042     no_gtk=yes
30043   fi
30044
30045   min_gtk_version=2.4.0
30046   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30047 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30048
30049   if test x$PKG_CONFIG != xno ; then
30050     ## don't try to run the test against uninstalled libtool libs
30051     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30052           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30053           enable_gtktest=no
30054     fi
30055
30056     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30057           :
30058     else
30059           no_gtk=yes
30060     fi
30061   fi
30062
30063   if test x"$no_gtk" = x ; then
30064     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30065     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30066     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30067            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30068     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30069            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30070     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30071            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30072     if test "x$enable_gtktest" = "xyes" ; then
30073       ac_save_CFLAGS="$CFLAGS"
30074       ac_save_LIBS="$LIBS"
30075       CFLAGS="$CFLAGS $GTK_CFLAGS"
30076       LIBS="$GTK_LIBS $LIBS"
30077       rm -f conf.gtktest
30078       if test "$cross_compiling" = yes; then
30079   echo $ac_n "cross compiling; assumed OK... $ac_c"
30080 else
30081   cat >conftest.$ac_ext <<_ACEOF
30082 /* confdefs.h.  */
30083 _ACEOF
30084 cat confdefs.h >>conftest.$ac_ext
30085 cat >>conftest.$ac_ext <<_ACEOF
30086 /* end confdefs.h.  */
30087
30088 #include <gtk/gtk.h>
30089 #include <stdio.h>
30090 #include <stdlib.h>
30091
30092 int
30093 main ()
30094 {
30095   int major, minor, micro;
30096   char *tmp_version;
30097
30098   system ("touch conf.gtktest");
30099
30100   /* HP/UX 9 (%@#!) writes to sscanf strings */
30101   tmp_version = g_strdup("$min_gtk_version");
30102   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30103      printf("%s, bad version string\n", "$min_gtk_version");
30104      exit(1);
30105    }
30106
30107   if ((gtk_major_version != $gtk_config_major_version) ||
30108       (gtk_minor_version != $gtk_config_minor_version) ||
30109       (gtk_micro_version != $gtk_config_micro_version))
30110     {
30111       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30112              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30113              gtk_major_version, gtk_minor_version, gtk_micro_version);
30114       printf ("*** was found! If pkg-config was correct, then it is best\n");
30115       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30116       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30117       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30118       printf("*** required on your system.\n");
30119       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30120       printf("*** to point to the correct configuration files\n");
30121     }
30122   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30123            (gtk_minor_version != GTK_MINOR_VERSION) ||
30124            (gtk_micro_version != GTK_MICRO_VERSION))
30125     {
30126       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30127              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30128       printf("*** library (version %d.%d.%d)\n",
30129              gtk_major_version, gtk_minor_version, gtk_micro_version);
30130     }
30131   else
30132     {
30133       if ((gtk_major_version > major) ||
30134         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30135         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30136       {
30137         return 0;
30138        }
30139      else
30140       {
30141         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30142                gtk_major_version, gtk_minor_version, gtk_micro_version);
30143         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30144                major, minor, micro);
30145         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30146         printf("***\n");
30147         printf("*** If you have already installed a sufficiently new version, this error\n");
30148         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30149         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30150         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30151         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30152         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30153         printf("*** so that the correct libraries are found at run-time))\n");
30154       }
30155     }
30156   return 1;
30157 }
30158
30159 _ACEOF
30160 rm -f conftest$ac_exeext
30161 if { (ac_try="$ac_link"
30162 case "(($ac_try" in
30163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164   *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167   (eval "$ac_link") 2>&5
30168   ac_status=$?
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30171   { (case "(($ac_try" in
30172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173   *) ac_try_echo=$ac_try;;
30174 esac
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176   (eval "$ac_try") 2>&5
30177   ac_status=$?
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); }; }; then
30180   :
30181 else
30182   echo "$as_me: program exited with status $ac_status" >&5
30183 echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 ( exit $ac_status )
30187 no_gtk=yes
30188 fi
30189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30190 fi
30191
30192
30193        CFLAGS="$ac_save_CFLAGS"
30194        LIBS="$ac_save_LIBS"
30195      fi
30196   fi
30197   if test "x$no_gtk" = x ; then
30198      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30199 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30200      wx_cv_lib_gtk=2.0
30201   else
30202      { echo "$as_me:$LINENO: result: no" >&5
30203 echo "${ECHO_T}no" >&6; }
30204      if test "$PKG_CONFIG" = "no" ; then
30205        echo "*** A new enough version of pkg-config was not found."
30206        echo "*** See http://pkgconfig.sourceforge.net"
30207      else
30208        if test -f conf.gtktest ; then
30209         :
30210        else
30211           echo "*** Could not run GTK+ test program, checking why..."
30212           ac_save_CFLAGS="$CFLAGS"
30213           ac_save_LIBS="$LIBS"
30214           CFLAGS="$CFLAGS $GTK_CFLAGS"
30215           LIBS="$LIBS $GTK_LIBS"
30216           cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222
30223 #include <gtk/gtk.h>
30224 #include <stdio.h>
30225
30226 int
30227 main ()
30228 {
30229  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30230   ;
30231   return 0;
30232 }
30233 _ACEOF
30234 rm -f conftest.$ac_objext conftest$ac_exeext
30235 if { (ac_try="$ac_link"
30236 case "(($ac_try" in
30237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238   *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241   (eval "$ac_link") 2>conftest.er1
30242   ac_status=$?
30243   grep -v '^ *+' conftest.er1 >conftest.err
30244   rm -f conftest.er1
30245   cat conftest.err >&5
30246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247   (exit $ac_status); } && {
30248          test -z "$ac_c_werror_flag" ||
30249          test ! -s conftest.err
30250        } && test -s conftest$ac_exeext &&
30251        $as_test_x conftest$ac_exeext; then
30252    echo "*** The test program compiled, but did not run. This usually means"
30253           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30254           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30255           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30256           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30257           echo "*** is required on your system"
30258           echo "***"
30259           echo "*** If you have an old version installed, it is best to remove it, although"
30260           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30261 else
30262   echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30264
30265          echo "*** The test program failed to compile or link. See the file config.log for the"
30266           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271           CFLAGS="$ac_save_CFLAGS"
30272           LIBS="$ac_save_LIBS"
30273        fi
30274      fi
30275      GTK_CFLAGS=""
30276      GTK_LIBS=""
30277      :
30278   fi
30279
30280
30281   rm -f conf.gtktest
30282
30283                 fi
30284
30285                                 if test -z "$wx_cv_lib_gtk"; then
30286                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30287
30288 # Check whether --with-gtk-prefix was given.
30289 if test "${with_gtk_prefix+set}" = set; then
30290   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30291 else
30292   gtk_config_prefix=""
30293 fi
30294
30295
30296 # Check whether --with-gtk-exec-prefix was given.
30297 if test "${with_gtk_exec_prefix+set}" = set; then
30298   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30299 else
30300   gtk_config_exec_prefix=""
30301 fi
30302
30303 # Check whether --enable-gtktest was given.
30304 if test "${enable_gtktest+set}" = set; then
30305   enableval=$enable_gtktest;
30306 else
30307   enable_gtktest=yes
30308 fi
30309
30310
30311   for module in . $GTK_MODULES
30312   do
30313       case "$module" in
30314          gthread)
30315              gtk_config_args="$gtk_config_args gthread"
30316          ;;
30317       esac
30318   done
30319
30320   if test x$gtk_config_exec_prefix != x ; then
30321      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30322      if test x${GTK_CONFIG+set} != xset ; then
30323         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30324      fi
30325   fi
30326   if test x$gtk_config_prefix != x ; then
30327      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30328      if test x${GTK_CONFIG+set} != xset ; then
30329         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30330      fi
30331   fi
30332
30333   # Extract the first word of "gtk-config", so it can be a program name with args.
30334 set dummy gtk-config; ac_word=$2
30335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30337 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30338   echo $ECHO_N "(cached) $ECHO_C" >&6
30339 else
30340   case $GTK_CONFIG in
30341   [\\/]* | ?:[\\/]*)
30342   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30343   ;;
30344   *)
30345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30346 for as_dir in $PATH
30347 do
30348   IFS=$as_save_IFS
30349   test -z "$as_dir" && as_dir=.
30350   for ac_exec_ext in '' $ac_executable_extensions; do
30351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30352     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30354     break 2
30355   fi
30356 done
30357 done
30358 IFS=$as_save_IFS
30359
30360   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30361   ;;
30362 esac
30363 fi
30364 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30365 if test -n "$GTK_CONFIG"; then
30366   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30367 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30368 else
30369   { echo "$as_me:$LINENO: result: no" >&5
30370 echo "${ECHO_T}no" >&6; }
30371 fi
30372
30373
30374   min_gtk_version=1.2.7
30375   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30376 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30377   no_gtk=""
30378   if test "$GTK_CONFIG" = "no" ; then
30379     no_gtk=yes
30380   else
30381     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30382     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30383     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30384            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30385     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30386            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30387     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30388            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30389     if test "x$enable_gtktest" = "xyes" ; then
30390       ac_save_CFLAGS="$CFLAGS"
30391       ac_save_LIBS="$LIBS"
30392       CFLAGS="$CFLAGS $GTK_CFLAGS"
30393       LIBS="$GTK_LIBS $LIBS"
30394       rm -f conf.gtktest
30395       if test "$cross_compiling" = yes; then
30396   echo $ac_n "cross compiling; assumed OK... $ac_c"
30397 else
30398   cat >conftest.$ac_ext <<_ACEOF
30399 /* confdefs.h.  */
30400 _ACEOF
30401 cat confdefs.h >>conftest.$ac_ext
30402 cat >>conftest.$ac_ext <<_ACEOF
30403 /* end confdefs.h.  */
30404
30405 #include <gtk/gtk.h>
30406 #include <stdio.h>
30407 #include <stdlib.h>
30408
30409 int
30410 main ()
30411 {
30412   int major, minor, micro;
30413   char *tmp_version;
30414
30415   system ("touch conf.gtktest");
30416
30417   /* HP/UX 9 (%@#!) writes to sscanf strings */
30418   tmp_version = g_strdup("$min_gtk_version");
30419   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30420      printf("%s, bad version string\n", "$min_gtk_version");
30421      exit(1);
30422    }
30423
30424   if ((gtk_major_version != $gtk_config_major_version) ||
30425       (gtk_minor_version != $gtk_config_minor_version) ||
30426       (gtk_micro_version != $gtk_config_micro_version))
30427     {
30428       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30429              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30430              gtk_major_version, gtk_minor_version, gtk_micro_version);
30431       printf ("*** was found! If gtk-config was correct, then it is best\n");
30432       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30433       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30434       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30435       printf("*** required on your system.\n");
30436       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30437       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30438       printf("*** before re-running configure\n");
30439     }
30440 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30441   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30442            (gtk_minor_version != GTK_MINOR_VERSION) ||
30443            (gtk_micro_version != GTK_MICRO_VERSION))
30444     {
30445       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30446              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30447       printf("*** library (version %d.%d.%d)\n",
30448              gtk_major_version, gtk_minor_version, gtk_micro_version);
30449     }
30450 #endif /* defined (GTK_MAJOR_VERSION) ... */
30451   else
30452     {
30453       if ((gtk_major_version > major) ||
30454         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30455         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30456       {
30457         return 0;
30458        }
30459      else
30460       {
30461         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30462                gtk_major_version, gtk_minor_version, gtk_micro_version);
30463         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30464                major, minor, micro);
30465         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30466         printf("***\n");
30467         printf("*** If you have already installed a sufficiently new version, this error\n");
30468         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30469         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30470         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30471         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30472         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30473         printf("*** so that the correct libraries are found at run-time))\n");
30474       }
30475     }
30476   return 1;
30477 }
30478
30479 _ACEOF
30480 rm -f conftest$ac_exeext
30481 if { (ac_try="$ac_link"
30482 case "(($ac_try" in
30483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484   *) ac_try_echo=$ac_try;;
30485 esac
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487   (eval "$ac_link") 2>&5
30488   ac_status=$?
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30491   { (case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_try") 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500   :
30501 else
30502   echo "$as_me: program exited with status $ac_status" >&5
30503 echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30505
30506 ( exit $ac_status )
30507 no_gtk=yes
30508 fi
30509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30510 fi
30511
30512
30513        CFLAGS="$ac_save_CFLAGS"
30514        LIBS="$ac_save_LIBS"
30515      fi
30516   fi
30517   if test "x$no_gtk" = x ; then
30518      { echo "$as_me:$LINENO: result: yes" >&5
30519 echo "${ECHO_T}yes" >&6; }
30520      wx_cv_lib_gtk=1.2.7
30521   else
30522      { echo "$as_me:$LINENO: result: no" >&5
30523 echo "${ECHO_T}no" >&6; }
30524      if test "$GTK_CONFIG" = "no" ; then
30525        echo "*** The gtk-config script installed by GTK could not be found"
30526        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30527        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30528        echo "*** full path to gtk-config."
30529      else
30530        if test -f conf.gtktest ; then
30531         :
30532        else
30533           echo "*** Could not run GTK test program, checking why..."
30534           CFLAGS="$CFLAGS $GTK_CFLAGS"
30535           LIBS="$LIBS $GTK_LIBS"
30536           cat >conftest.$ac_ext <<_ACEOF
30537 /* confdefs.h.  */
30538 _ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h.  */
30542
30543 #include <gtk/gtk.h>
30544 #include <stdio.h>
30545
30546 int
30547 main ()
30548 {
30549  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30550   ;
30551   return 0;
30552 }
30553 _ACEOF
30554 rm -f conftest.$ac_objext conftest$ac_exeext
30555 if { (ac_try="$ac_link"
30556 case "(($ac_try" in
30557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30558   *) ac_try_echo=$ac_try;;
30559 esac
30560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30561   (eval "$ac_link") 2>conftest.er1
30562   ac_status=$?
30563   grep -v '^ *+' conftest.er1 >conftest.err
30564   rm -f conftest.er1
30565   cat conftest.err >&5
30566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567   (exit $ac_status); } && {
30568          test -z "$ac_c_werror_flag" ||
30569          test ! -s conftest.err
30570        } && test -s conftest$ac_exeext &&
30571        $as_test_x conftest$ac_exeext; then
30572    echo "*** The test program compiled, but did not run. This usually means"
30573           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30574           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30575           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30576           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30577           echo "*** is required on your system"
30578           echo "***"
30579           echo "*** If you have an old version installed, it is best to remove it, although"
30580           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30581           echo "***"
30582           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30583           echo "*** came with the system with the command"
30584           echo "***"
30585           echo "***    rpm --erase --nodeps gtk gtk-devel"
30586 else
30587   echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30589
30590          echo "*** The test program failed to compile or link. See the file config.log for the"
30591           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30592           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30593           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30594 fi
30595
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597       conftest$ac_exeext conftest.$ac_ext
30598           CFLAGS="$ac_save_CFLAGS"
30599           LIBS="$ac_save_LIBS"
30600        fi
30601      fi
30602      GTK_CFLAGS=""
30603      GTK_LIBS=""
30604      :
30605   fi
30606
30607
30608   rm -f conf.gtktest
30609
30610
30611                         if test -z "$wx_cv_lib_gtk"; then
30612
30613 # Check whether --with-gtk-prefix was given.
30614 if test "${with_gtk_prefix+set}" = set; then
30615   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30616 else
30617   gtk_config_prefix=""
30618 fi
30619
30620
30621 # Check whether --with-gtk-exec-prefix was given.
30622 if test "${with_gtk_exec_prefix+set}" = set; then
30623   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30624 else
30625   gtk_config_exec_prefix=""
30626 fi
30627
30628 # Check whether --enable-gtktest was given.
30629 if test "${enable_gtktest+set}" = set; then
30630   enableval=$enable_gtktest;
30631 else
30632   enable_gtktest=yes
30633 fi
30634
30635
30636   for module in . $GTK_MODULES
30637   do
30638       case "$module" in
30639          gthread)
30640              gtk_config_args="$gtk_config_args gthread"
30641          ;;
30642       esac
30643   done
30644
30645   if test x$gtk_config_exec_prefix != x ; then
30646      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30647      if test x${GTK_CONFIG+set} != xset ; then
30648         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30649      fi
30650   fi
30651   if test x$gtk_config_prefix != x ; then
30652      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30653      if test x${GTK_CONFIG+set} != xset ; then
30654         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30655      fi
30656   fi
30657
30658   # Extract the first word of "gtk-config", so it can be a program name with args.
30659 set dummy gtk-config; ac_word=$2
30660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30662 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30663   echo $ECHO_N "(cached) $ECHO_C" >&6
30664 else
30665   case $GTK_CONFIG in
30666   [\\/]* | ?:[\\/]*)
30667   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30668   ;;
30669   *)
30670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30671 for as_dir in $PATH
30672 do
30673   IFS=$as_save_IFS
30674   test -z "$as_dir" && as_dir=.
30675   for ac_exec_ext in '' $ac_executable_extensions; do
30676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30677     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30679     break 2
30680   fi
30681 done
30682 done
30683 IFS=$as_save_IFS
30684
30685   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30686   ;;
30687 esac
30688 fi
30689 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30690 if test -n "$GTK_CONFIG"; then
30691   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30692 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30693 else
30694   { echo "$as_me:$LINENO: result: no" >&5
30695 echo "${ECHO_T}no" >&6; }
30696 fi
30697
30698
30699   min_gtk_version=1.2.3
30700   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30701 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30702   no_gtk=""
30703   if test "$GTK_CONFIG" = "no" ; then
30704     no_gtk=yes
30705   else
30706     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30707     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30708     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30709            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30710     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30711            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30712     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30713            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30714     if test "x$enable_gtktest" = "xyes" ; then
30715       ac_save_CFLAGS="$CFLAGS"
30716       ac_save_LIBS="$LIBS"
30717       CFLAGS="$CFLAGS $GTK_CFLAGS"
30718       LIBS="$GTK_LIBS $LIBS"
30719       rm -f conf.gtktest
30720       if test "$cross_compiling" = yes; then
30721   echo $ac_n "cross compiling; assumed OK... $ac_c"
30722 else
30723   cat >conftest.$ac_ext <<_ACEOF
30724 /* confdefs.h.  */
30725 _ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h.  */
30729
30730 #include <gtk/gtk.h>
30731 #include <stdio.h>
30732 #include <stdlib.h>
30733
30734 int
30735 main ()
30736 {
30737   int major, minor, micro;
30738   char *tmp_version;
30739
30740   system ("touch conf.gtktest");
30741
30742   /* HP/UX 9 (%@#!) writes to sscanf strings */
30743   tmp_version = g_strdup("$min_gtk_version");
30744   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30745      printf("%s, bad version string\n", "$min_gtk_version");
30746      exit(1);
30747    }
30748
30749   if ((gtk_major_version != $gtk_config_major_version) ||
30750       (gtk_minor_version != $gtk_config_minor_version) ||
30751       (gtk_micro_version != $gtk_config_micro_version))
30752     {
30753       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30754              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30755              gtk_major_version, gtk_minor_version, gtk_micro_version);
30756       printf ("*** was found! If gtk-config was correct, then it is best\n");
30757       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30758       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30759       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30760       printf("*** required on your system.\n");
30761       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30762       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30763       printf("*** before re-running configure\n");
30764     }
30765 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30766   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30767            (gtk_minor_version != GTK_MINOR_VERSION) ||
30768            (gtk_micro_version != GTK_MICRO_VERSION))
30769     {
30770       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30771              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30772       printf("*** library (version %d.%d.%d)\n",
30773              gtk_major_version, gtk_minor_version, gtk_micro_version);
30774     }
30775 #endif /* defined (GTK_MAJOR_VERSION) ... */
30776   else
30777     {
30778       if ((gtk_major_version > major) ||
30779         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30780         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30781       {
30782         return 0;
30783        }
30784      else
30785       {
30786         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30787                gtk_major_version, gtk_minor_version, gtk_micro_version);
30788         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30789                major, minor, micro);
30790         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30791         printf("***\n");
30792         printf("*** If you have already installed a sufficiently new version, this error\n");
30793         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30794         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30795         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30796         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30797         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30798         printf("*** so that the correct libraries are found at run-time))\n");
30799       }
30800     }
30801   return 1;
30802 }
30803
30804 _ACEOF
30805 rm -f conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809   *) ac_try_echo=$ac_try;;
30810 esac
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812   (eval "$ac_link") 2>&5
30813   ac_status=$?
30814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30816   { (case "(($ac_try" in
30817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818   *) ac_try_echo=$ac_try;;
30819 esac
30820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821   (eval "$ac_try") 2>&5
30822   ac_status=$?
30823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824   (exit $ac_status); }; }; then
30825   :
30826 else
30827   echo "$as_me: program exited with status $ac_status" >&5
30828 echo "$as_me: failed program was:" >&5
30829 sed 's/^/| /' conftest.$ac_ext >&5
30830
30831 ( exit $ac_status )
30832 no_gtk=yes
30833 fi
30834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30835 fi
30836
30837
30838        CFLAGS="$ac_save_CFLAGS"
30839        LIBS="$ac_save_LIBS"
30840      fi
30841   fi
30842   if test "x$no_gtk" = x ; then
30843      { echo "$as_me:$LINENO: result: yes" >&5
30844 echo "${ECHO_T}yes" >&6; }
30845      wx_cv_lib_gtk=1.2.3
30846   else
30847      { echo "$as_me:$LINENO: result: no" >&5
30848 echo "${ECHO_T}no" >&6; }
30849      if test "$GTK_CONFIG" = "no" ; then
30850        echo "*** The gtk-config script installed by GTK could not be found"
30851        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30852        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30853        echo "*** full path to gtk-config."
30854      else
30855        if test -f conf.gtktest ; then
30856         :
30857        else
30858           echo "*** Could not run GTK test program, checking why..."
30859           CFLAGS="$CFLAGS $GTK_CFLAGS"
30860           LIBS="$LIBS $GTK_LIBS"
30861           cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867
30868 #include <gtk/gtk.h>
30869 #include <stdio.h>
30870
30871 int
30872 main ()
30873 {
30874  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30875   ;
30876   return 0;
30877 }
30878 _ACEOF
30879 rm -f conftest.$ac_objext conftest$ac_exeext
30880 if { (ac_try="$ac_link"
30881 case "(($ac_try" in
30882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883   *) ac_try_echo=$ac_try;;
30884 esac
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886   (eval "$ac_link") 2>conftest.er1
30887   ac_status=$?
30888   grep -v '^ *+' conftest.er1 >conftest.err
30889   rm -f conftest.er1
30890   cat conftest.err >&5
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); } && {
30893          test -z "$ac_c_werror_flag" ||
30894          test ! -s conftest.err
30895        } && test -s conftest$ac_exeext &&
30896        $as_test_x conftest$ac_exeext; then
30897    echo "*** The test program compiled, but did not run. This usually means"
30898           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30899           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30900           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30901           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30902           echo "*** is required on your system"
30903           echo "***"
30904           echo "*** If you have an old version installed, it is best to remove it, although"
30905           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30906           echo "***"
30907           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30908           echo "*** came with the system with the command"
30909           echo "***"
30910           echo "***    rpm --erase --nodeps gtk gtk-devel"
30911 else
30912   echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30914
30915          echo "*** The test program failed to compile or link. See the file config.log for the"
30916           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30917           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30918           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30922       conftest$ac_exeext conftest.$ac_ext
30923           CFLAGS="$ac_save_CFLAGS"
30924           LIBS="$ac_save_LIBS"
30925        fi
30926      fi
30927      GTK_CFLAGS=""
30928      GTK_LIBS=""
30929      :
30930   fi
30931
30932
30933   rm -f conf.gtktest
30934
30935                         fi
30936                     fi
30937                 fi
30938
30939                 if test -z "$wx_cv_lib_gtk"; then
30940                                         wx_cv_lib_gtk=none
30941                 else
30942                                         GTK_LIBS="$GTK_LIBS -lX11"
30943
30944                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30945                     wx_cv_libs_gtk=$GTK_LIBS
30946                 fi
30947
30948
30949 fi
30950
30951
30952                         if test "$gtk_version_cached" = 1; then
30953             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30954 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30955         fi
30956
30957         case "$wx_cv_lib_gtk" in
30958             2.0)    WXGTK2=1
30959                     TOOLKIT_VERSION=2
30960                     ;;
30961             1.2.7)  WXGTK127=1
30962                     ;;
30963             1.2*) ;;
30964             *)      { { echo "$as_me:$LINENO: error:
30965 The development files for GTK+ were not found. For GTK+ 2, please
30966 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30967 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30968 and that the version is 1.2.3 or above. Also check that the
30969 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30970 --libs' are in the LD_LIBRARY_PATH or equivalent.
30971                             " >&5
30972 echo "$as_me: error:
30973 The development files for GTK+ were not found. For GTK+ 2, please
30974 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30975 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30976 and that the version is 1.2.3 or above. Also check that the
30977 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30978 --libs' are in the LD_LIBRARY_PATH or equivalent.
30979                             " >&2;}
30980    { (exit 1); exit 1; }; }
30981                     ;;
30982         esac
30983
30984         if test "$WXGTK2" = 1; then
30985             save_CFLAGS="$CFLAGS"
30986             save_LIBS="$LIBS"
30987             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30988             LIBS="$LIBS $wx_cv_libs_gtk"
30989
30990                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30991 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30992             cat >conftest.$ac_ext <<_ACEOF
30993 /* confdefs.h.  */
30994 _ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h.  */
30998
30999                             #include <gtk/gtk.h>
31000
31001 int
31002 main ()
31003 {
31004
31005                             #if !GTK_CHECK_VERSION(2,18,0)
31006                             Not GTK+ 2.18
31007                             #endif
31008
31009   ;
31010   return 0;
31011 }
31012 _ACEOF
31013 rm -f conftest.$ac_objext
31014 if { (ac_try="$ac_compile"
31015 case "(($ac_try" in
31016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017   *) ac_try_echo=$ac_try;;
31018 esac
31019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020   (eval "$ac_compile") 2>conftest.er1
31021   ac_status=$?
31022   grep -v '^ *+' conftest.er1 >conftest.err
31023   rm -f conftest.er1
31024   cat conftest.err >&5
31025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026   (exit $ac_status); } && {
31027          test -z "$ac_c_werror_flag" ||
31028          test ! -s conftest.err
31029        } && test -s conftest.$ac_objext; then
31030
31031                             cat >>confdefs.h <<\_ACEOF
31032 #define __WXGTK218__ 1
31033 _ACEOF
31034
31035                             cat >>confdefs.h <<\_ACEOF
31036 #define __WXGTK210__ 1
31037 _ACEOF
31038
31039                             cat >>confdefs.h <<\_ACEOF
31040 #define __WXGTK26__ 1
31041 _ACEOF
31042
31043                             { echo "$as_me:$LINENO: result: yes" >&5
31044 echo "${ECHO_T}yes" >&6; }
31045                             ac_wxgtk218=1
31046
31047 else
31048   echo "$as_me: failed program was:" >&5
31049 sed 's/^/| /' conftest.$ac_ext >&5
31050
31051
31052                             { echo "$as_me:$LINENO: result: no" >&5
31053 echo "${ECHO_T}no" >&6; }
31054                             ac_wxgtk218=0
31055
31056 fi
31057
31058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31059
31060             if test "$ac_wxgtk218" = 0; then
31061                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31062 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31063                 cat >conftest.$ac_ext <<_ACEOF
31064 /* confdefs.h.  */
31065 _ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h.  */
31069
31070                                 #include <gtk/gtk.h>
31071
31072 int
31073 main ()
31074 {
31075
31076                                 #if !GTK_CHECK_VERSION(2,10,0)
31077                                 Not GTK+ 2.10
31078                                 #endif
31079
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 rm -f conftest.$ac_objext
31085 if { (ac_try="$ac_compile"
31086 case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091   (eval "$ac_compile") 2>conftest.er1
31092   ac_status=$?
31093   grep -v '^ *+' conftest.er1 >conftest.err
31094   rm -f conftest.er1
31095   cat conftest.err >&5
31096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097   (exit $ac_status); } && {
31098          test -z "$ac_c_werror_flag" ||
31099          test ! -s conftest.err
31100        } && test -s conftest.$ac_objext; then
31101
31102                                 cat >>confdefs.h <<\_ACEOF
31103 #define __WXGTK210__ 1
31104 _ACEOF
31105
31106                                 cat >>confdefs.h <<\_ACEOF
31107 #define __WXGTK26__ 1
31108 _ACEOF
31109
31110                                 { echo "$as_me:$LINENO: result: yes" >&5
31111 echo "${ECHO_T}yes" >&6; }
31112                                 ac_wxgtk210=1
31113
31114 else
31115   echo "$as_me: failed program was:" >&5
31116 sed 's/^/| /' conftest.$ac_ext >&5
31117
31118
31119                                 { echo "$as_me:$LINENO: result: no" >&5
31120 echo "${ECHO_T}no" >&6; }
31121                                 ac_wxgtk210=0
31122
31123 fi
31124
31125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31126
31127                 if test "$ac_wxgtk210" = 0; then
31128                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31129 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31130                     cat >conftest.$ac_ext <<_ACEOF
31131 /* confdefs.h.  */
31132 _ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h.  */
31136
31137                                     #include <gtk/gtk.h>
31138
31139 int
31140 main ()
31141 {
31142
31143                                     #if !GTK_CHECK_VERSION(2,6,0)
31144                                     Not GTK+ 2.6
31145                                     #endif
31146
31147   ;
31148   return 0;
31149 }
31150 _ACEOF
31151 rm -f conftest.$ac_objext
31152 if { (ac_try="$ac_compile"
31153 case "(($ac_try" in
31154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31155   *) ac_try_echo=$ac_try;;
31156 esac
31157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31158   (eval "$ac_compile") 2>conftest.er1
31159   ac_status=$?
31160   grep -v '^ *+' conftest.er1 >conftest.err
31161   rm -f conftest.er1
31162   cat conftest.err >&5
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); } && {
31165          test -z "$ac_c_werror_flag" ||
31166          test ! -s conftest.err
31167        } && test -s conftest.$ac_objext; then
31168
31169                                     cat >>confdefs.h <<\_ACEOF
31170 #define __WXGTK26__ 1
31171 _ACEOF
31172
31173                                     { echo "$as_me:$LINENO: result: yes" >&5
31174 echo "${ECHO_T}yes" >&6; }
31175                                     ac_wxgtk26=1
31176
31177 else
31178   echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31180
31181
31182                                     { echo "$as_me:$LINENO: result: no" >&5
31183 echo "${ECHO_T}no" >&6; }
31184                                     ac_wxgtk26=0
31185
31186 fi
31187
31188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31189                 fi
31190             fi
31191
31192             CFLAGS="$save_CFLAGS"
31193             LIBS="$save_LIBS"
31194         else
31195             if test "$wxUSE_UNICODE" = "yes"; then
31196                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31197 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31198                 wxUSE_UNICODE=no
31199             fi
31200
31201                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31202 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31203 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31204   echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31206   ac_check_lib_save_LIBS=$LIBS
31207 LIBS="-lgdk  $LIBS"
31208 cat >conftest.$ac_ext <<_ACEOF
31209 /* confdefs.h.  */
31210 _ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h.  */
31214
31215 /* Override any GCC internal prototype to avoid an error.
31216    Use char because int might match the return type of a GCC
31217    builtin and then its argument prototype would still apply.  */
31218 #ifdef __cplusplus
31219 extern "C"
31220 #endif
31221 char gdk_im_open ();
31222 int
31223 main ()
31224 {
31225 return gdk_im_open ();
31226   ;
31227   return 0;
31228 }
31229 _ACEOF
31230 rm -f conftest.$ac_objext conftest$ac_exeext
31231 if { (ac_try="$ac_link"
31232 case "(($ac_try" in
31233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234   *) ac_try_echo=$ac_try;;
31235 esac
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237   (eval "$ac_link") 2>conftest.er1
31238   ac_status=$?
31239   grep -v '^ *+' conftest.er1 >conftest.err
31240   rm -f conftest.er1
31241   cat conftest.err >&5
31242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243   (exit $ac_status); } && {
31244          test -z "$ac_c_werror_flag" ||
31245          test ! -s conftest.err
31246        } && test -s conftest$ac_exeext &&
31247        $as_test_x conftest$ac_exeext; then
31248   ac_cv_lib_gdk_gdk_im_open=yes
31249 else
31250   echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253         ac_cv_lib_gdk_gdk_im_open=no
31254 fi
31255
31256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31257       conftest$ac_exeext conftest.$ac_ext
31258 LIBS=$ac_check_lib_save_LIBS
31259 fi
31260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31261 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31262 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31263   cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_XIM 1
31265 _ACEOF
31266
31267 fi
31268
31269
31270                                     if test "$USE_DARWIN" != 1; then
31271
31272 for ac_func in poll
31273 do
31274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31278   echo $ECHO_N "(cached) $ECHO_C" >&6
31279 else
31280   cat >conftest.$ac_ext <<_ACEOF
31281 /* confdefs.h.  */
31282 _ACEOF
31283 cat confdefs.h >>conftest.$ac_ext
31284 cat >>conftest.$ac_ext <<_ACEOF
31285 /* end confdefs.h.  */
31286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31288 #define $ac_func innocuous_$ac_func
31289
31290 /* System header to define __stub macros and hopefully few prototypes,
31291     which can conflict with char $ac_func (); below.
31292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31293     <limits.h> exists even on freestanding compilers.  */
31294
31295 #ifdef __STDC__
31296 # include <limits.h>
31297 #else
31298 # include <assert.h>
31299 #endif
31300
31301 #undef $ac_func
31302
31303 /* Override any GCC internal prototype to avoid an error.
31304    Use char because int might match the return type of a GCC
31305    builtin and then its argument prototype would still apply.  */
31306 #ifdef __cplusplus
31307 extern "C"
31308 #endif
31309 char $ac_func ();
31310 /* The GNU C library defines this for functions which it implements
31311     to always fail with ENOSYS.  Some functions are actually named
31312     something starting with __ and the normal name is an alias.  */
31313 #if defined __stub_$ac_func || defined __stub___$ac_func
31314 choke me
31315 #endif
31316
31317 int
31318 main ()
31319 {
31320 return $ac_func ();
31321   ;
31322   return 0;
31323 }
31324 _ACEOF
31325 rm -f conftest.$ac_objext conftest$ac_exeext
31326 if { (ac_try="$ac_link"
31327 case "(($ac_try" in
31328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329   *) ac_try_echo=$ac_try;;
31330 esac
31331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332   (eval "$ac_link") 2>conftest.er1
31333   ac_status=$?
31334   grep -v '^ *+' conftest.er1 >conftest.err
31335   rm -f conftest.er1
31336   cat conftest.err >&5
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } && {
31339          test -z "$ac_c_werror_flag" ||
31340          test ! -s conftest.err
31341        } && test -s conftest$ac_exeext &&
31342        $as_test_x conftest$ac_exeext; then
31343   eval "$as_ac_var=yes"
31344 else
31345   echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31347
31348         eval "$as_ac_var=no"
31349 fi
31350
31351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31352       conftest$ac_exeext conftest.$ac_ext
31353 fi
31354 ac_res=`eval echo '${'$as_ac_var'}'`
31355                { echo "$as_me:$LINENO: result: $ac_res" >&5
31356 echo "${ECHO_T}$ac_res" >&6; }
31357 if test `eval echo '${'$as_ac_var'}'` = yes; then
31358   cat >>confdefs.h <<_ACEOF
31359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31360 _ACEOF
31361
31362 fi
31363 done
31364
31365             fi
31366         fi
31367
31368         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31369         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31370         AFMINSTALL=afminstall
31371         TOOLKIT=GTK
31372         GUIDIST=GTK_DIST
31373
31374                 if test "$wxUSE_GPE" = "yes"; then
31375             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31376 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31377
31378   ac_find_libraries=
31379   for ac_dir in  $SEARCH_LIB
31380   do
31381     for ac_extension in a so sl dylib dll.a; do
31382       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31383         ac_find_libraries=$ac_dir
31384         break 2
31385       fi
31386     done
31387   done
31388
31389             if test "$ac_find_libraries" != "" ; then
31390
31391     if test "$ac_find_libraries" = "default location"; then
31392     ac_path_to_link=""
31393   else
31394     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31395     result=$?
31396     if test $result = 0; then
31397       ac_path_to_link=""
31398     else
31399       ac_path_to_link=" -L$ac_find_libraries"
31400     fi
31401   fi
31402
31403                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31404                 WXGPE=1
31405                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31406 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31407             else
31408                 { echo "$as_me:$LINENO: result: not found" >&5
31409 echo "${ECHO_T}not found" >&6; }
31410             fi
31411
31412                                                                                                                     fi
31413     fi
31414
31415     if test "$wxUSE_MGL" = 1; then
31416        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31417 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31418         if test "x$MGL_ROOT" = x ; then
31419             { echo "$as_me:$LINENO: result: not found" >&5
31420 echo "${ECHO_T}not found" >&6; }
31421             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31422 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31423    { (exit 1); exit 1; }; }
31424         else
31425             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31426 echo "${ECHO_T}$MGL_ROOT" >&6; }
31427         fi
31428
31429         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31430 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31431                                 case "${host}" in
31432             *-*-linux* )
31433                                           if test "x$wxUSE_SHARED" = xyes ; then
31434                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31435               else
31436                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31437               fi
31438               ;;
31439             *-pc-msdosdjgpp )
31440               mgl_os_candidates="dos32/dj2"
31441               ;;
31442             *)
31443               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31444 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31445    { (exit 1); exit 1; }; }
31446         esac
31447
31448         mgl_lib_type=""
31449         mgl_os=""
31450
31451         for mgl_os_i in $mgl_os_candidates ; do
31452             if test "x$mgl_os" = x ; then
31453                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31454                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31455                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31456                         mgl_lib_type=debug
31457                         mgl_os=$mgl_os_i
31458                     fi
31459                 fi
31460                 if test "x$mgl_lib_type" = x ; then
31461                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31462                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31463                         mgl_lib_type=release
31464                         mgl_os=$mgl_os_i
31465                     fi
31466                 fi
31467             fi
31468         done
31469
31470         if test "x$mgl_os" = x ; then
31471             { echo "$as_me:$LINENO: result: not found" >&5
31472 echo "${ECHO_T}not found" >&6; }
31473             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31474 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31475    { (exit 1); exit 1; }; }
31476         fi
31477         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31478 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31479
31480         wxUSE_UNIVERSAL="yes"
31481
31482         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31483         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31484
31485         AFMINSTALL=afminstall
31486         TOOLKIT=MGL
31487         GUIDIST=MGL_DIST
31488     fi
31489
31490     if test "$wxUSE_DFB" = 1; then
31491
31492
31493 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31494         if test -n "$ac_tool_prefix"; then
31495   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31496 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31500   echo $ECHO_N "(cached) $ECHO_C" >&6
31501 else
31502   case $PKG_CONFIG in
31503   [\\/]* | ?:[\\/]*)
31504   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31505   ;;
31506   *)
31507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31508 for as_dir in $PATH
31509 do
31510   IFS=$as_save_IFS
31511   test -z "$as_dir" && as_dir=.
31512   for ac_exec_ext in '' $ac_executable_extensions; do
31513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31514     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31516     break 2
31517   fi
31518 done
31519 done
31520 IFS=$as_save_IFS
31521
31522   ;;
31523 esac
31524 fi
31525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31526 if test -n "$PKG_CONFIG"; then
31527   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31528 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31529 else
31530   { echo "$as_me:$LINENO: result: no" >&5
31531 echo "${ECHO_T}no" >&6; }
31532 fi
31533
31534
31535 fi
31536 if test -z "$ac_cv_path_PKG_CONFIG"; then
31537   ac_pt_PKG_CONFIG=$PKG_CONFIG
31538   # Extract the first word of "pkg-config", so it can be a program name with args.
31539 set dummy pkg-config; ac_word=$2
31540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31542 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31543   echo $ECHO_N "(cached) $ECHO_C" >&6
31544 else
31545   case $ac_pt_PKG_CONFIG in
31546   [\\/]* | ?:[\\/]*)
31547   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31548   ;;
31549   *)
31550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31551 for as_dir in $PATH
31552 do
31553   IFS=$as_save_IFS
31554   test -z "$as_dir" && as_dir=.
31555   for ac_exec_ext in '' $ac_executable_extensions; do
31556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31557     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31559     break 2
31560   fi
31561 done
31562 done
31563 IFS=$as_save_IFS
31564
31565   ;;
31566 esac
31567 fi
31568 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31569 if test -n "$ac_pt_PKG_CONFIG"; then
31570   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31571 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31572 else
31573   { echo "$as_me:$LINENO: result: no" >&5
31574 echo "${ECHO_T}no" >&6; }
31575 fi
31576
31577   if test "x$ac_pt_PKG_CONFIG" = x; then
31578     PKG_CONFIG=""
31579   else
31580     case $cross_compiling:$ac_tool_warned in
31581 yes:)
31582 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31583 whose name does not start with the host triplet.  If you think this
31584 configuration is useful to you, please write to autoconf@gnu.org." >&5
31585 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31586 whose name does not start with the host triplet.  If you think this
31587 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31588 ac_tool_warned=yes ;;
31589 esac
31590     PKG_CONFIG=$ac_pt_PKG_CONFIG
31591   fi
31592 else
31593   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31594 fi
31595
31596 fi
31597 if test -n "$PKG_CONFIG"; then
31598         _pkg_min_version=0.9.0
31599         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31600 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31601         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31602                 { echo "$as_me:$LINENO: result: yes" >&5
31603 echo "${ECHO_T}yes" >&6; }
31604         else
31605                 { echo "$as_me:$LINENO: result: no" >&5
31606 echo "${ECHO_T}no" >&6; }
31607                 PKG_CONFIG=""
31608         fi
31609
31610 fi
31611
31612
31613 pkg_failed=no
31614 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31615 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31616
31617 if test -n "$PKG_CONFIG"; then
31618     if test -n "$DIRECTFB_CFLAGS"; then
31619         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31620     else
31621         if test -n "$PKG_CONFIG" && \
31622     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31623   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31624   ac_status=$?
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); }; then
31627   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31628 else
31629   pkg_failed=yes
31630 fi
31631     fi
31632 else
31633         pkg_failed=untried
31634 fi
31635 if test -n "$PKG_CONFIG"; then
31636     if test -n "$DIRECTFB_LIBS"; then
31637         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31638     else
31639         if test -n "$PKG_CONFIG" && \
31640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31641   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31642   ac_status=$?
31643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644   (exit $ac_status); }; then
31645   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31646 else
31647   pkg_failed=yes
31648 fi
31649     fi
31650 else
31651         pkg_failed=untried
31652 fi
31653
31654
31655
31656 if test $pkg_failed = yes; then
31657
31658 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31659         _pkg_short_errors_supported=yes
31660 else
31661         _pkg_short_errors_supported=no
31662 fi
31663         if test $_pkg_short_errors_supported = yes; then
31664                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31665         else
31666                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31667         fi
31668         # Put the nasty error message in config.log where it belongs
31669         echo "$DIRECTFB_PKG_ERRORS" >&5
31670
31671
31672                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31673 echo "$as_me: error: DirectFB not found." >&2;}
31674    { (exit 1); exit 1; }; }
31675
31676
31677 elif test $pkg_failed = untried; then
31678
31679                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31680 echo "$as_me: error: DirectFB not found." >&2;}
31681    { (exit 1); exit 1; }; }
31682
31683
31684 else
31685         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31686         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31687         { echo "$as_me:$LINENO: result: yes" >&5
31688 echo "${ECHO_T}yes" >&6; }
31689
31690                            wxUSE_UNIVERSAL="yes"
31691                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31692                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31693                            TOOLKIT=DFB
31694                            GUIDIST=DFB_DIST
31695
31696 fi
31697     fi
31698
31699     if test "$wxUSE_MICROWIN" = 1; then
31700         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31701 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31702         if test "x$MICROWINDOWS" = x ; then
31703             { echo "$as_me:$LINENO: result: not found" >&5
31704 echo "${ECHO_T}not found" >&6; }
31705             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31706 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31707    { (exit 1); exit 1; }; }
31708         else
31709             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31710 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31711         fi
31712
31713         if test -f $MICROWINDOWS/lib/libmwin.a; then
31714             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31715 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31716         else
31717             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31718 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31719    { (exit 1); exit 1; }; }
31720         fi
31721
31722         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31723         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31724
31725         wxUSE_UNIVERSAL="yes"
31726
31727         AFMINSTALL=afminstall
31728         TOOLKIT=MICROWIN
31729         GUIDIST=MICROWIN_DIST
31730
31731         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31732     fi
31733
31734         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31735                                 { echo "$as_me:$LINENO: checking for X" >&5
31736 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31737
31738
31739 # Check whether --with-x was given.
31740 if test "${with_x+set}" = set; then
31741   withval=$with_x;
31742 fi
31743
31744 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31745 if test "x$with_x" = xno; then
31746   # The user explicitly disabled X.
31747   have_x=disabled
31748 else
31749   case $x_includes,$x_libraries in #(
31750     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31751 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31752    { (exit 1); exit 1; }; };; #(
31753     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31754   echo $ECHO_N "(cached) $ECHO_C" >&6
31755 else
31756   # One or both of the vars are not set, and there is no cached value.
31757 ac_x_includes=no ac_x_libraries=no
31758 rm -f -r conftest.dir
31759 if mkdir conftest.dir; then
31760   cd conftest.dir
31761   cat >Imakefile <<'_ACEOF'
31762 incroot:
31763         @echo incroot='${INCROOT}'
31764 usrlibdir:
31765         @echo usrlibdir='${USRLIBDIR}'
31766 libdir:
31767         @echo libdir='${LIBDIR}'
31768 _ACEOF
31769   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31770     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31771     for ac_var in incroot usrlibdir libdir; do
31772       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31773     done
31774     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31775     for ac_extension in a so sl; do
31776       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31777          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31778         ac_im_usrlibdir=$ac_im_libdir; break
31779       fi
31780     done
31781     # Screen out bogus values from the imake configuration.  They are
31782     # bogus both because they are the default anyway, and because
31783     # using them would break gcc on systems where it needs fixed includes.
31784     case $ac_im_incroot in
31785         /usr/include) ac_x_includes= ;;
31786         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31787     esac
31788     case $ac_im_usrlibdir in
31789         /usr/lib | /lib) ;;
31790         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31791     esac
31792   fi
31793   cd ..
31794   rm -f -r conftest.dir
31795 fi
31796
31797 # Standard set of common directories for X headers.
31798 # Check X11 before X11Rn because it is often a symlink to the current release.
31799 ac_x_header_dirs='
31800 /usr/X11/include
31801 /usr/X11R6/include
31802 /usr/X11R5/include
31803 /usr/X11R4/include
31804
31805 /usr/include/X11
31806 /usr/include/X11R6
31807 /usr/include/X11R5
31808 /usr/include/X11R4
31809
31810 /usr/local/X11/include
31811 /usr/local/X11R6/include
31812 /usr/local/X11R5/include
31813 /usr/local/X11R4/include
31814
31815 /usr/local/include/X11
31816 /usr/local/include/X11R6
31817 /usr/local/include/X11R5
31818 /usr/local/include/X11R4
31819
31820 /usr/X386/include
31821 /usr/x386/include
31822 /usr/XFree86/include/X11
31823
31824 /usr/include
31825 /usr/local/include
31826 /usr/unsupported/include
31827 /usr/athena/include
31828 /usr/local/x11r5/include
31829 /usr/lpp/Xamples/include
31830
31831 /usr/openwin/include
31832 /usr/openwin/share/include'
31833
31834 if test "$ac_x_includes" = no; then
31835   # Guess where to find include files, by looking for Xlib.h.
31836   # First, try using that file with no special directory specified.
31837   cat >conftest.$ac_ext <<_ACEOF
31838 /* confdefs.h.  */
31839 _ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h.  */
31843 #include <X11/Xlib.h>
31844 _ACEOF
31845 if { (ac_try="$ac_cpp conftest.$ac_ext"
31846 case "(($ac_try" in
31847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31848   *) ac_try_echo=$ac_try;;
31849 esac
31850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31852   ac_status=$?
31853   grep -v '^ *+' conftest.er1 >conftest.err
31854   rm -f conftest.er1
31855   cat conftest.err >&5
31856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857   (exit $ac_status); } >/dev/null && {
31858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31859          test ! -s conftest.err
31860        }; then
31861   # We can compile using X headers with no special include directory.
31862 ac_x_includes=
31863 else
31864   echo "$as_me: failed program was:" >&5
31865 sed 's/^/| /' conftest.$ac_ext >&5
31866
31867   for ac_dir in $ac_x_header_dirs; do
31868   if test -r "$ac_dir/X11/Xlib.h"; then
31869     ac_x_includes=$ac_dir
31870     break
31871   fi
31872 done
31873 fi
31874
31875 rm -f conftest.err conftest.$ac_ext
31876 fi # $ac_x_includes = no
31877
31878 if test "$ac_x_libraries" = no; then
31879   # Check for the libraries.
31880   # See if we find them without any special options.
31881   # Don't add to $LIBS permanently.
31882   ac_save_LIBS=$LIBS
31883   LIBS="-lX11 $LIBS"
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 #include <X11/Xlib.h>
31891 int
31892 main ()
31893 {
31894 XrmInitialize ()
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   LIBS=$ac_save_LIBS
31918 # We can link X programs with no special library path.
31919 ac_x_libraries=
31920 else
31921   echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31923
31924         LIBS=$ac_save_LIBS
31925 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31926 do
31927   # Don't even attempt the hair of trying to link an X program!
31928   for ac_extension in a so sl; do
31929     if test -r "$ac_dir/libX11.$ac_extension"; then
31930       ac_x_libraries=$ac_dir
31931       break 2
31932     fi
31933   done
31934 done
31935 fi
31936
31937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31938       conftest$ac_exeext conftest.$ac_ext
31939 fi # $ac_x_libraries = no
31940
31941 case $ac_x_includes,$ac_x_libraries in #(
31942   no,* | *,no | *\'*)
31943     # Didn't find X, or a directory has "'" in its name.
31944     ac_cv_have_x="have_x=no";; #(
31945   *)
31946     # Record where we found X for the cache.
31947     ac_cv_have_x="have_x=yes\
31948         ac_x_includes='$ac_x_includes'\
31949         ac_x_libraries='$ac_x_libraries'"
31950 esac
31951 fi
31952 ;; #(
31953     *) have_x=yes;;
31954   esac
31955   eval "$ac_cv_have_x"
31956 fi # $with_x != no
31957
31958 if test "$have_x" != yes; then
31959   { echo "$as_me:$LINENO: result: $have_x" >&5
31960 echo "${ECHO_T}$have_x" >&6; }
31961   no_x=yes
31962 else
31963   # If each of the values was on the command line, it overrides each guess.
31964   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31965   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31966   # Update the cache value to reflect the command line values.
31967   ac_cv_have_x="have_x=yes\
31968         ac_x_includes='$x_includes'\
31969         ac_x_libraries='$x_libraries'"
31970   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31971 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31972 fi
31973
31974 if test "$no_x" = yes; then
31975   # Not all programs may use this symbol, but it does not hurt to define it.
31976
31977 cat >>confdefs.h <<\_ACEOF
31978 #define X_DISPLAY_MISSING 1
31979 _ACEOF
31980
31981   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31982 else
31983   if test -n "$x_includes"; then
31984     X_CFLAGS="$X_CFLAGS -I$x_includes"
31985   fi
31986
31987   # It would also be nice to do this for all -L options, not just this one.
31988   if test -n "$x_libraries"; then
31989     X_LIBS="$X_LIBS -L$x_libraries"
31990     # For Solaris; some versions of Sun CC require a space after -R and
31991     # others require no space.  Words are not sufficient . . . .
31992     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31993 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31994     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31995     ac_xsave_c_werror_flag=$ac_c_werror_flag
31996     ac_c_werror_flag=yes
31997     cat >conftest.$ac_ext <<_ACEOF
31998 /* confdefs.h.  */
31999 _ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h.  */
32003
32004 int
32005 main ()
32006 {
32007
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   { echo "$as_me:$LINENO: result: no" >&5
32031 echo "${ECHO_T}no" >&6; }
32032        X_LIBS="$X_LIBS -R$x_libraries"
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037         LIBS="$ac_xsave_LIBS -R $x_libraries"
32038        cat >conftest.$ac_ext <<_ACEOF
32039 /* confdefs.h.  */
32040 _ACEOF
32041 cat confdefs.h >>conftest.$ac_ext
32042 cat >>conftest.$ac_ext <<_ACEOF
32043 /* end confdefs.h.  */
32044
32045 int
32046 main ()
32047 {
32048
32049   ;
32050   return 0;
32051 }
32052 _ACEOF
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (ac_try="$ac_link"
32055 case "(($ac_try" in
32056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057   *) ac_try_echo=$ac_try;;
32058 esac
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060   (eval "$ac_link") 2>conftest.er1
32061   ac_status=$?
32062   grep -v '^ *+' conftest.er1 >conftest.err
32063   rm -f conftest.er1
32064   cat conftest.err >&5
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); } && {
32067          test -z "$ac_c_werror_flag" ||
32068          test ! -s conftest.err
32069        } && test -s conftest$ac_exeext &&
32070        $as_test_x conftest$ac_exeext; then
32071   { echo "$as_me:$LINENO: result: yes" >&5
32072 echo "${ECHO_T}yes" >&6; }
32073           X_LIBS="$X_LIBS -R $x_libraries"
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078         { echo "$as_me:$LINENO: result: neither works" >&5
32079 echo "${ECHO_T}neither works" >&6; }
32080 fi
32081
32082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32083       conftest$ac_exeext conftest.$ac_ext
32084 fi
32085
32086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32087       conftest$ac_exeext conftest.$ac_ext
32088     ac_c_werror_flag=$ac_xsave_c_werror_flag
32089     LIBS=$ac_xsave_LIBS
32090   fi
32091
32092   # Check for system-dependent libraries X programs must link with.
32093   # Do this before checking for the system-independent R6 libraries
32094   # (-lICE), since we may need -lsocket or whatever for X linking.
32095
32096   if test "$ISC" = yes; then
32097     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32098   else
32099     # Martyn Johnson says this is needed for Ultrix, if the X
32100     # libraries were built with DECnet support.  And Karl Berry says
32101     # the Alpha needs dnet_stub (dnet does not exist).
32102     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32103     cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109
32110 /* Override any GCC internal prototype to avoid an error.
32111    Use char because int might match the return type of a GCC
32112    builtin and then its argument prototype would still apply.  */
32113 #ifdef __cplusplus
32114 extern "C"
32115 #endif
32116 char XOpenDisplay ();
32117 int
32118 main ()
32119 {
32120 return XOpenDisplay ();
32121   ;
32122   return 0;
32123 }
32124 _ACEOF
32125 rm -f conftest.$ac_objext conftest$ac_exeext
32126 if { (ac_try="$ac_link"
32127 case "(($ac_try" in
32128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129   *) ac_try_echo=$ac_try;;
32130 esac
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132   (eval "$ac_link") 2>conftest.er1
32133   ac_status=$?
32134   grep -v '^ *+' conftest.er1 >conftest.err
32135   rm -f conftest.er1
32136   cat conftest.err >&5
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); } && {
32139          test -z "$ac_c_werror_flag" ||
32140          test ! -s conftest.err
32141        } && test -s conftest$ac_exeext &&
32142        $as_test_x conftest$ac_exeext; then
32143   :
32144 else
32145   echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32147
32148         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32149 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32150 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32151   echo $ECHO_N "(cached) $ECHO_C" >&6
32152 else
32153   ac_check_lib_save_LIBS=$LIBS
32154 LIBS="-ldnet  $LIBS"
32155 cat >conftest.$ac_ext <<_ACEOF
32156 /* confdefs.h.  */
32157 _ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h.  */
32161
32162 /* Override any GCC internal prototype to avoid an error.
32163    Use char because int might match the return type of a GCC
32164    builtin and then its argument prototype would still apply.  */
32165 #ifdef __cplusplus
32166 extern "C"
32167 #endif
32168 char dnet_ntoa ();
32169 int
32170 main ()
32171 {
32172 return dnet_ntoa ();
32173   ;
32174   return 0;
32175 }
32176 _ACEOF
32177 rm -f conftest.$ac_objext conftest$ac_exeext
32178 if { (ac_try="$ac_link"
32179 case "(($ac_try" in
32180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181   *) ac_try_echo=$ac_try;;
32182 esac
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184   (eval "$ac_link") 2>conftest.er1
32185   ac_status=$?
32186   grep -v '^ *+' conftest.er1 >conftest.err
32187   rm -f conftest.er1
32188   cat conftest.err >&5
32189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190   (exit $ac_status); } && {
32191          test -z "$ac_c_werror_flag" ||
32192          test ! -s conftest.err
32193        } && test -s conftest$ac_exeext &&
32194        $as_test_x conftest$ac_exeext; then
32195   ac_cv_lib_dnet_dnet_ntoa=yes
32196 else
32197   echo "$as_me: failed program was:" >&5
32198 sed 's/^/| /' conftest.$ac_ext >&5
32199
32200         ac_cv_lib_dnet_dnet_ntoa=no
32201 fi
32202
32203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32204       conftest$ac_exeext conftest.$ac_ext
32205 LIBS=$ac_check_lib_save_LIBS
32206 fi
32207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32208 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32209 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32210   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32211 fi
32212
32213     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32214       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32215 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32216 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219   ac_check_lib_save_LIBS=$LIBS
32220 LIBS="-ldnet_stub  $LIBS"
32221 cat >conftest.$ac_ext <<_ACEOF
32222 /* confdefs.h.  */
32223 _ACEOF
32224 cat confdefs.h >>conftest.$ac_ext
32225 cat >>conftest.$ac_ext <<_ACEOF
32226 /* end confdefs.h.  */
32227
32228 /* Override any GCC internal prototype to avoid an error.
32229    Use char because int might match the return type of a GCC
32230    builtin and then its argument prototype would still apply.  */
32231 #ifdef __cplusplus
32232 extern "C"
32233 #endif
32234 char dnet_ntoa ();
32235 int
32236 main ()
32237 {
32238 return dnet_ntoa ();
32239   ;
32240   return 0;
32241 }
32242 _ACEOF
32243 rm -f conftest.$ac_objext conftest$ac_exeext
32244 if { (ac_try="$ac_link"
32245 case "(($ac_try" in
32246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32247   *) ac_try_echo=$ac_try;;
32248 esac
32249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32250   (eval "$ac_link") 2>conftest.er1
32251   ac_status=$?
32252   grep -v '^ *+' conftest.er1 >conftest.err
32253   rm -f conftest.er1
32254   cat conftest.err >&5
32255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256   (exit $ac_status); } && {
32257          test -z "$ac_c_werror_flag" ||
32258          test ! -s conftest.err
32259        } && test -s conftest$ac_exeext &&
32260        $as_test_x conftest$ac_exeext; then
32261   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32262 else
32263   echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32265
32266         ac_cv_lib_dnet_stub_dnet_ntoa=no
32267 fi
32268
32269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32270       conftest$ac_exeext conftest.$ac_ext
32271 LIBS=$ac_check_lib_save_LIBS
32272 fi
32273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32274 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32275 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32276   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32277 fi
32278
32279     fi
32280 fi
32281
32282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32283       conftest$ac_exeext conftest.$ac_ext
32284     LIBS="$ac_xsave_LIBS"
32285
32286     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32287     # to get the SysV transport functions.
32288     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32289     # needs -lnsl.
32290     # The nsl library prevents programs from opening the X display
32291     # on Irix 5.2, according to T.E. Dickey.
32292     # The functions gethostbyname, getservbyname, and inet_addr are
32293     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32294     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32295 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32296 if test "${ac_cv_func_gethostbyname+set}" = set; then
32297   echo $ECHO_N "(cached) $ECHO_C" >&6
32298 else
32299   cat >conftest.$ac_ext <<_ACEOF
32300 /* confdefs.h.  */
32301 _ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h.  */
32305 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32307 #define gethostbyname innocuous_gethostbyname
32308
32309 /* System header to define __stub macros and hopefully few prototypes,
32310     which can conflict with char gethostbyname (); below.
32311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32312     <limits.h> exists even on freestanding compilers.  */
32313
32314 #ifdef __STDC__
32315 # include <limits.h>
32316 #else
32317 # include <assert.h>
32318 #endif
32319
32320 #undef gethostbyname
32321
32322 /* Override any GCC internal prototype to avoid an error.
32323    Use char because int might match the return type of a GCC
32324    builtin and then its argument prototype would still apply.  */
32325 #ifdef __cplusplus
32326 extern "C"
32327 #endif
32328 char gethostbyname ();
32329 /* The GNU C library defines this for functions which it implements
32330     to always fail with ENOSYS.  Some functions are actually named
32331     something starting with __ and the normal name is an alias.  */
32332 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32333 choke me
32334 #endif
32335
32336 int
32337 main ()
32338 {
32339 return gethostbyname ();
32340   ;
32341   return 0;
32342 }
32343 _ACEOF
32344 rm -f conftest.$ac_objext conftest$ac_exeext
32345 if { (ac_try="$ac_link"
32346 case "(($ac_try" in
32347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348   *) ac_try_echo=$ac_try;;
32349 esac
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351   (eval "$ac_link") 2>conftest.er1
32352   ac_status=$?
32353   grep -v '^ *+' conftest.er1 >conftest.err
32354   rm -f conftest.er1
32355   cat conftest.err >&5
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); } && {
32358          test -z "$ac_c_werror_flag" ||
32359          test ! -s conftest.err
32360        } && test -s conftest$ac_exeext &&
32361        $as_test_x conftest$ac_exeext; then
32362   ac_cv_func_gethostbyname=yes
32363 else
32364   echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32366
32367         ac_cv_func_gethostbyname=no
32368 fi
32369
32370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32371       conftest$ac_exeext conftest.$ac_ext
32372 fi
32373 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32374 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32375
32376     if test $ac_cv_func_gethostbyname = no; then
32377       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32378 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32379 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32380   echo $ECHO_N "(cached) $ECHO_C" >&6
32381 else
32382   ac_check_lib_save_LIBS=$LIBS
32383 LIBS="-lnsl  $LIBS"
32384 cat >conftest.$ac_ext <<_ACEOF
32385 /* confdefs.h.  */
32386 _ACEOF
32387 cat confdefs.h >>conftest.$ac_ext
32388 cat >>conftest.$ac_ext <<_ACEOF
32389 /* end confdefs.h.  */
32390
32391 /* Override any GCC internal prototype to avoid an error.
32392    Use char because int might match the return type of a GCC
32393    builtin and then its argument prototype would still apply.  */
32394 #ifdef __cplusplus
32395 extern "C"
32396 #endif
32397 char gethostbyname ();
32398 int
32399 main ()
32400 {
32401 return gethostbyname ();
32402   ;
32403   return 0;
32404 }
32405 _ACEOF
32406 rm -f conftest.$ac_objext conftest$ac_exeext
32407 if { (ac_try="$ac_link"
32408 case "(($ac_try" in
32409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410   *) ac_try_echo=$ac_try;;
32411 esac
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413   (eval "$ac_link") 2>conftest.er1
32414   ac_status=$?
32415   grep -v '^ *+' conftest.er1 >conftest.err
32416   rm -f conftest.er1
32417   cat conftest.err >&5
32418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419   (exit $ac_status); } && {
32420          test -z "$ac_c_werror_flag" ||
32421          test ! -s conftest.err
32422        } && test -s conftest$ac_exeext &&
32423        $as_test_x conftest$ac_exeext; then
32424   ac_cv_lib_nsl_gethostbyname=yes
32425 else
32426   echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32428
32429         ac_cv_lib_nsl_gethostbyname=no
32430 fi
32431
32432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32433       conftest$ac_exeext conftest.$ac_ext
32434 LIBS=$ac_check_lib_save_LIBS
32435 fi
32436 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32437 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32438 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32439   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32440 fi
32441
32442       if test $ac_cv_lib_nsl_gethostbyname = no; then
32443         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32444 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32445 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32446   echo $ECHO_N "(cached) $ECHO_C" >&6
32447 else
32448   ac_check_lib_save_LIBS=$LIBS
32449 LIBS="-lbsd  $LIBS"
32450 cat >conftest.$ac_ext <<_ACEOF
32451 /* confdefs.h.  */
32452 _ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h.  */
32456
32457 /* Override any GCC internal prototype to avoid an error.
32458    Use char because int might match the return type of a GCC
32459    builtin and then its argument prototype would still apply.  */
32460 #ifdef __cplusplus
32461 extern "C"
32462 #endif
32463 char gethostbyname ();
32464 int
32465 main ()
32466 {
32467 return gethostbyname ();
32468   ;
32469   return 0;
32470 }
32471 _ACEOF
32472 rm -f conftest.$ac_objext conftest$ac_exeext
32473 if { (ac_try="$ac_link"
32474 case "(($ac_try" in
32475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476   *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479   (eval "$ac_link") 2>conftest.er1
32480   ac_status=$?
32481   grep -v '^ *+' conftest.er1 >conftest.err
32482   rm -f conftest.er1
32483   cat conftest.err >&5
32484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485   (exit $ac_status); } && {
32486          test -z "$ac_c_werror_flag" ||
32487          test ! -s conftest.err
32488        } && test -s conftest$ac_exeext &&
32489        $as_test_x conftest$ac_exeext; then
32490   ac_cv_lib_bsd_gethostbyname=yes
32491 else
32492   echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32494
32495         ac_cv_lib_bsd_gethostbyname=no
32496 fi
32497
32498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32499       conftest$ac_exeext conftest.$ac_ext
32500 LIBS=$ac_check_lib_save_LIBS
32501 fi
32502 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32503 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32504 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32505   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32506 fi
32507
32508       fi
32509     fi
32510
32511     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32512     # socket/setsockopt and other routines are undefined under SCO ODT
32513     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32514     # on later versions), says Simon Leinen: it contains gethostby*
32515     # variants that don't use the name server (or something).  -lsocket
32516     # must be given before -lnsl if both are needed.  We assume that
32517     # if connect needs -lnsl, so does gethostbyname.
32518     { echo "$as_me:$LINENO: checking for connect" >&5
32519 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32520 if test "${ac_cv_func_connect+set}" = set; then
32521   echo $ECHO_N "(cached) $ECHO_C" >&6
32522 else
32523   cat >conftest.$ac_ext <<_ACEOF
32524 /* confdefs.h.  */
32525 _ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h.  */
32529 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32531 #define connect innocuous_connect
32532
32533 /* System header to define __stub macros and hopefully few prototypes,
32534     which can conflict with char connect (); below.
32535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32536     <limits.h> exists even on freestanding compilers.  */
32537
32538 #ifdef __STDC__
32539 # include <limits.h>
32540 #else
32541 # include <assert.h>
32542 #endif
32543
32544 #undef connect
32545
32546 /* Override any GCC internal prototype to avoid an error.
32547    Use char because int might match the return type of a GCC
32548    builtin and then its argument prototype would still apply.  */
32549 #ifdef __cplusplus
32550 extern "C"
32551 #endif
32552 char connect ();
32553 /* The GNU C library defines this for functions which it implements
32554     to always fail with ENOSYS.  Some functions are actually named
32555     something starting with __ and the normal name is an alias.  */
32556 #if defined __stub_connect || defined __stub___connect
32557 choke me
32558 #endif
32559
32560 int
32561 main ()
32562 {
32563 return connect ();
32564   ;
32565   return 0;
32566 }
32567 _ACEOF
32568 rm -f conftest.$ac_objext conftest$ac_exeext
32569 if { (ac_try="$ac_link"
32570 case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_link") 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } && {
32582          test -z "$ac_c_werror_flag" ||
32583          test ! -s conftest.err
32584        } && test -s conftest$ac_exeext &&
32585        $as_test_x conftest$ac_exeext; then
32586   ac_cv_func_connect=yes
32587 else
32588   echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32590
32591         ac_cv_func_connect=no
32592 fi
32593
32594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32595       conftest$ac_exeext conftest.$ac_ext
32596 fi
32597 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32598 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32599
32600     if test $ac_cv_func_connect = no; then
32601       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32602 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32603 if test "${ac_cv_lib_socket_connect+set}" = set; then
32604   echo $ECHO_N "(cached) $ECHO_C" >&6
32605 else
32606   ac_check_lib_save_LIBS=$LIBS
32607 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32608 cat >conftest.$ac_ext <<_ACEOF
32609 /* confdefs.h.  */
32610 _ACEOF
32611 cat confdefs.h >>conftest.$ac_ext
32612 cat >>conftest.$ac_ext <<_ACEOF
32613 /* end confdefs.h.  */
32614
32615 /* Override any GCC internal prototype to avoid an error.
32616    Use char because int might match the return type of a GCC
32617    builtin and then its argument prototype would still apply.  */
32618 #ifdef __cplusplus
32619 extern "C"
32620 #endif
32621 char connect ();
32622 int
32623 main ()
32624 {
32625 return connect ();
32626   ;
32627   return 0;
32628 }
32629 _ACEOF
32630 rm -f conftest.$ac_objext conftest$ac_exeext
32631 if { (ac_try="$ac_link"
32632 case "(($ac_try" in
32633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634   *) ac_try_echo=$ac_try;;
32635 esac
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637   (eval "$ac_link") 2>conftest.er1
32638   ac_status=$?
32639   grep -v '^ *+' conftest.er1 >conftest.err
32640   rm -f conftest.er1
32641   cat conftest.err >&5
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); } && {
32644          test -z "$ac_c_werror_flag" ||
32645          test ! -s conftest.err
32646        } && test -s conftest$ac_exeext &&
32647        $as_test_x conftest$ac_exeext; then
32648   ac_cv_lib_socket_connect=yes
32649 else
32650   echo "$as_me: failed program was:" >&5
32651 sed 's/^/| /' conftest.$ac_ext >&5
32652
32653         ac_cv_lib_socket_connect=no
32654 fi
32655
32656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32657       conftest$ac_exeext conftest.$ac_ext
32658 LIBS=$ac_check_lib_save_LIBS
32659 fi
32660 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32661 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32662 if test $ac_cv_lib_socket_connect = yes; then
32663   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32664 fi
32665
32666     fi
32667
32668     # Guillermo Gomez says -lposix is necessary on A/UX.
32669     { echo "$as_me:$LINENO: checking for remove" >&5
32670 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32671 if test "${ac_cv_func_remove+set}" = set; then
32672   echo $ECHO_N "(cached) $ECHO_C" >&6
32673 else
32674   cat >conftest.$ac_ext <<_ACEOF
32675 /* confdefs.h.  */
32676 _ACEOF
32677 cat confdefs.h >>conftest.$ac_ext
32678 cat >>conftest.$ac_ext <<_ACEOF
32679 /* end confdefs.h.  */
32680 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32682 #define remove innocuous_remove
32683
32684 /* System header to define __stub macros and hopefully few prototypes,
32685     which can conflict with char remove (); below.
32686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32687     <limits.h> exists even on freestanding compilers.  */
32688
32689 #ifdef __STDC__
32690 # include <limits.h>
32691 #else
32692 # include <assert.h>
32693 #endif
32694
32695 #undef remove
32696
32697 /* Override any GCC internal prototype to avoid an error.
32698    Use char because int might match the return type of a GCC
32699    builtin and then its argument prototype would still apply.  */
32700 #ifdef __cplusplus
32701 extern "C"
32702 #endif
32703 char remove ();
32704 /* The GNU C library defines this for functions which it implements
32705     to always fail with ENOSYS.  Some functions are actually named
32706     something starting with __ and the normal name is an alias.  */
32707 #if defined __stub_remove || defined __stub___remove
32708 choke me
32709 #endif
32710
32711 int
32712 main ()
32713 {
32714 return remove ();
32715   ;
32716   return 0;
32717 }
32718 _ACEOF
32719 rm -f conftest.$ac_objext conftest$ac_exeext
32720 if { (ac_try="$ac_link"
32721 case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_link") 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } && {
32733          test -z "$ac_c_werror_flag" ||
32734          test ! -s conftest.err
32735        } && test -s conftest$ac_exeext &&
32736        $as_test_x conftest$ac_exeext; then
32737   ac_cv_func_remove=yes
32738 else
32739   echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32741
32742         ac_cv_func_remove=no
32743 fi
32744
32745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32746       conftest$ac_exeext conftest.$ac_ext
32747 fi
32748 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32749 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32750
32751     if test $ac_cv_func_remove = no; then
32752       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32753 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32754 if test "${ac_cv_lib_posix_remove+set}" = set; then
32755   echo $ECHO_N "(cached) $ECHO_C" >&6
32756 else
32757   ac_check_lib_save_LIBS=$LIBS
32758 LIBS="-lposix  $LIBS"
32759 cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765
32766 /* Override any GCC internal prototype to avoid an error.
32767    Use char because int might match the return type of a GCC
32768    builtin and then its argument prototype would still apply.  */
32769 #ifdef __cplusplus
32770 extern "C"
32771 #endif
32772 char remove ();
32773 int
32774 main ()
32775 {
32776 return remove ();
32777   ;
32778   return 0;
32779 }
32780 _ACEOF
32781 rm -f conftest.$ac_objext conftest$ac_exeext
32782 if { (ac_try="$ac_link"
32783 case "(($ac_try" in
32784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785   *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788   (eval "$ac_link") 2>conftest.er1
32789   ac_status=$?
32790   grep -v '^ *+' conftest.er1 >conftest.err
32791   rm -f conftest.er1
32792   cat conftest.err >&5
32793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794   (exit $ac_status); } && {
32795          test -z "$ac_c_werror_flag" ||
32796          test ! -s conftest.err
32797        } && test -s conftest$ac_exeext &&
32798        $as_test_x conftest$ac_exeext; then
32799   ac_cv_lib_posix_remove=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804         ac_cv_lib_posix_remove=no
32805 fi
32806
32807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32808       conftest$ac_exeext conftest.$ac_ext
32809 LIBS=$ac_check_lib_save_LIBS
32810 fi
32811 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32812 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32813 if test $ac_cv_lib_posix_remove = yes; then
32814   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32815 fi
32816
32817     fi
32818
32819     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32820     { echo "$as_me:$LINENO: checking for shmat" >&5
32821 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_shmat+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32833 #define shmat innocuous_shmat
32834
32835 /* System header to define __stub macros and hopefully few prototypes,
32836     which can conflict with char shmat (); below.
32837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32838     <limits.h> exists even on freestanding compilers.  */
32839
32840 #ifdef __STDC__
32841 # include <limits.h>
32842 #else
32843 # include <assert.h>
32844 #endif
32845
32846 #undef shmat
32847
32848 /* Override any GCC internal prototype to avoid an error.
32849    Use char because int might match the return type of a GCC
32850    builtin and then its argument prototype would still apply.  */
32851 #ifdef __cplusplus
32852 extern "C"
32853 #endif
32854 char shmat ();
32855 /* The GNU C library defines this for functions which it implements
32856     to always fail with ENOSYS.  Some functions are actually named
32857     something starting with __ and the normal name is an alias.  */
32858 #if defined __stub_shmat || defined __stub___shmat
32859 choke me
32860 #endif
32861
32862 int
32863 main ()
32864 {
32865 return shmat ();
32866   ;
32867   return 0;
32868 }
32869 _ACEOF
32870 rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (ac_try="$ac_link"
32872 case "(($ac_try" in
32873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874   *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877   (eval "$ac_link") 2>conftest.er1
32878   ac_status=$?
32879   grep -v '^ *+' conftest.er1 >conftest.err
32880   rm -f conftest.er1
32881   cat conftest.err >&5
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); } && {
32884          test -z "$ac_c_werror_flag" ||
32885          test ! -s conftest.err
32886        } && test -s conftest$ac_exeext &&
32887        $as_test_x conftest$ac_exeext; then
32888   ac_cv_func_shmat=yes
32889 else
32890   echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32892
32893         ac_cv_func_shmat=no
32894 fi
32895
32896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32897       conftest$ac_exeext conftest.$ac_ext
32898 fi
32899 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32900 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32901
32902     if test $ac_cv_func_shmat = no; then
32903       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32904 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32905 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32906   echo $ECHO_N "(cached) $ECHO_C" >&6
32907 else
32908   ac_check_lib_save_LIBS=$LIBS
32909 LIBS="-lipc  $LIBS"
32910 cat >conftest.$ac_ext <<_ACEOF
32911 /* confdefs.h.  */
32912 _ACEOF
32913 cat confdefs.h >>conftest.$ac_ext
32914 cat >>conftest.$ac_ext <<_ACEOF
32915 /* end confdefs.h.  */
32916
32917 /* Override any GCC internal prototype to avoid an error.
32918    Use char because int might match the return type of a GCC
32919    builtin and then its argument prototype would still apply.  */
32920 #ifdef __cplusplus
32921 extern "C"
32922 #endif
32923 char shmat ();
32924 int
32925 main ()
32926 {
32927 return shmat ();
32928   ;
32929   return 0;
32930 }
32931 _ACEOF
32932 rm -f conftest.$ac_objext conftest$ac_exeext
32933 if { (ac_try="$ac_link"
32934 case "(($ac_try" in
32935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936   *) ac_try_echo=$ac_try;;
32937 esac
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939   (eval "$ac_link") 2>conftest.er1
32940   ac_status=$?
32941   grep -v '^ *+' conftest.er1 >conftest.err
32942   rm -f conftest.er1
32943   cat conftest.err >&5
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); } && {
32946          test -z "$ac_c_werror_flag" ||
32947          test ! -s conftest.err
32948        } && test -s conftest$ac_exeext &&
32949        $as_test_x conftest$ac_exeext; then
32950   ac_cv_lib_ipc_shmat=yes
32951 else
32952   echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32954
32955         ac_cv_lib_ipc_shmat=no
32956 fi
32957
32958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32959       conftest$ac_exeext conftest.$ac_ext
32960 LIBS=$ac_check_lib_save_LIBS
32961 fi
32962 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32963 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32964 if test $ac_cv_lib_ipc_shmat = yes; then
32965   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32966 fi
32967
32968     fi
32969   fi
32970
32971   # Check for libraries that X11R6 Xt/Xaw programs need.
32972   ac_save_LDFLAGS=$LDFLAGS
32973   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32974   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32975   # check for ICE first), but we must link in the order -lSM -lICE or
32976   # we get undefined symbols.  So assume we have SM if we have ICE.
32977   # These have to be linked with before -lX11, unlike the other
32978   # libraries we check for below, so use a different variable.
32979   # John Interrante, Karl Berry
32980   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32981 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32982 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32983   echo $ECHO_N "(cached) $ECHO_C" >&6
32984 else
32985   ac_check_lib_save_LIBS=$LIBS
32986 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32987 cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993
32994 /* Override any GCC internal prototype to avoid an error.
32995    Use char because int might match the return type of a GCC
32996    builtin and then its argument prototype would still apply.  */
32997 #ifdef __cplusplus
32998 extern "C"
32999 #endif
33000 char IceConnectionNumber ();
33001 int
33002 main ()
33003 {
33004 return IceConnectionNumber ();
33005   ;
33006   return 0;
33007 }
33008 _ACEOF
33009 rm -f conftest.$ac_objext conftest$ac_exeext
33010 if { (ac_try="$ac_link"
33011 case "(($ac_try" in
33012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013   *) ac_try_echo=$ac_try;;
33014 esac
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016   (eval "$ac_link") 2>conftest.er1
33017   ac_status=$?
33018   grep -v '^ *+' conftest.er1 >conftest.err
33019   rm -f conftest.er1
33020   cat conftest.err >&5
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); } && {
33023          test -z "$ac_c_werror_flag" ||
33024          test ! -s conftest.err
33025        } && test -s conftest$ac_exeext &&
33026        $as_test_x conftest$ac_exeext; then
33027   ac_cv_lib_ICE_IceConnectionNumber=yes
33028 else
33029   echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33031
33032         ac_cv_lib_ICE_IceConnectionNumber=no
33033 fi
33034
33035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33036       conftest$ac_exeext conftest.$ac_ext
33037 LIBS=$ac_check_lib_save_LIBS
33038 fi
33039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33040 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33041 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33042   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33043 fi
33044
33045   LDFLAGS=$ac_save_LDFLAGS
33046
33047 fi
33048
33049
33050         if test "$no_x" = "yes"; then
33051           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33052 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33053    { (exit 1); exit 1; }; }
33054         fi
33055
33056                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33057         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33058         AFMINSTALL=afminstall
33059         COMPILED_X_PROGRAM=0
33060
33061     fi
33062
33063     if test "$wxUSE_X11" = 1; then
33064         if test "$wxUSE_NANOX" = "yes"; then
33065             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33066 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33067             if test "x$MICROWIN" = x ; then
33068                 { echo "$as_me:$LINENO: result: not found" >&5
33069 echo "${ECHO_T}not found" >&6; }
33070                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33071 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33072    { (exit 1); exit 1; }; }
33073             else
33074                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33075 echo "${ECHO_T}$MICROWIN" >&6; }
33076                 cat >>confdefs.h <<\_ACEOF
33077 #define wxUSE_NANOX 1
33078 _ACEOF
33079
33080             fi
33081         fi
33082
33083         if test "$wxUSE_UNICODE" = "yes"; then
33084
33085
33086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33087         if test -n "$ac_tool_prefix"; then
33088   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33092 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   case $PKG_CONFIG in
33096   [\\/]* | ?:[\\/]*)
33097   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33098   ;;
33099   *)
33100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33101 for as_dir in $PATH
33102 do
33103   IFS=$as_save_IFS
33104   test -z "$as_dir" && as_dir=.
33105   for ac_exec_ext in '' $ac_executable_extensions; do
33106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33107     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33109     break 2
33110   fi
33111 done
33112 done
33113 IFS=$as_save_IFS
33114
33115   ;;
33116 esac
33117 fi
33118 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33119 if test -n "$PKG_CONFIG"; then
33120   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33121 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33122 else
33123   { echo "$as_me:$LINENO: result: no" >&5
33124 echo "${ECHO_T}no" >&6; }
33125 fi
33126
33127
33128 fi
33129 if test -z "$ac_cv_path_PKG_CONFIG"; then
33130   ac_pt_PKG_CONFIG=$PKG_CONFIG
33131   # Extract the first word of "pkg-config", so it can be a program name with args.
33132 set dummy pkg-config; ac_word=$2
33133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33135 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33136   echo $ECHO_N "(cached) $ECHO_C" >&6
33137 else
33138   case $ac_pt_PKG_CONFIG in
33139   [\\/]* | ?:[\\/]*)
33140   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33141   ;;
33142   *)
33143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33144 for as_dir in $PATH
33145 do
33146   IFS=$as_save_IFS
33147   test -z "$as_dir" && as_dir=.
33148   for ac_exec_ext in '' $ac_executable_extensions; do
33149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33150     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33152     break 2
33153   fi
33154 done
33155 done
33156 IFS=$as_save_IFS
33157
33158   ;;
33159 esac
33160 fi
33161 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33162 if test -n "$ac_pt_PKG_CONFIG"; then
33163   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33164 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33165 else
33166   { echo "$as_me:$LINENO: result: no" >&5
33167 echo "${ECHO_T}no" >&6; }
33168 fi
33169
33170   if test "x$ac_pt_PKG_CONFIG" = x; then
33171     PKG_CONFIG=""
33172   else
33173     case $cross_compiling:$ac_tool_warned in
33174 yes:)
33175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33176 whose name does not start with the host triplet.  If you think this
33177 configuration is useful to you, please write to autoconf@gnu.org." >&5
33178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33179 whose name does not start with the host triplet.  If you think this
33180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33181 ac_tool_warned=yes ;;
33182 esac
33183     PKG_CONFIG=$ac_pt_PKG_CONFIG
33184   fi
33185 else
33186   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33187 fi
33188
33189 fi
33190 if test -n "$PKG_CONFIG"; then
33191         _pkg_min_version=0.9.0
33192         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33193 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33194         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33195                 { echo "$as_me:$LINENO: result: yes" >&5
33196 echo "${ECHO_T}yes" >&6; }
33197         else
33198                 { echo "$as_me:$LINENO: result: no" >&5
33199 echo "${ECHO_T}no" >&6; }
33200                 PKG_CONFIG=""
33201         fi
33202
33203 fi
33204
33205
33206 pkg_failed=no
33207 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33208 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33209
33210 if test -n "$PKG_CONFIG"; then
33211     if test -n "$PANGOX_CFLAGS"; then
33212         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33213     else
33214         if test -n "$PKG_CONFIG" && \
33215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33216   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; then
33220   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33221 else
33222   pkg_failed=yes
33223 fi
33224     fi
33225 else
33226         pkg_failed=untried
33227 fi
33228 if test -n "$PKG_CONFIG"; then
33229     if test -n "$PANGOX_LIBS"; then
33230         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33231     else
33232         if test -n "$PKG_CONFIG" && \
33233     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33234   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33235   ac_status=$?
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); }; then
33238   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33239 else
33240   pkg_failed=yes
33241 fi
33242     fi
33243 else
33244         pkg_failed=untried
33245 fi
33246
33247
33248
33249 if test $pkg_failed = yes; then
33250
33251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33252         _pkg_short_errors_supported=yes
33253 else
33254         _pkg_short_errors_supported=no
33255 fi
33256         if test $_pkg_short_errors_supported = yes; then
33257                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33258         else
33259                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33260         fi
33261         # Put the nasty error message in config.log where it belongs
33262         echo "$PANGOX_PKG_ERRORS" >&5
33263
33264
33265                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33266 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33267    { (exit 1); exit 1; }; }
33268
33269
33270 elif test $pkg_failed = untried; then
33271
33272                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33273 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33274    { (exit 1); exit 1; }; }
33275
33276
33277 else
33278         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33279         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33280         { echo "$as_me:$LINENO: result: yes" >&5
33281 echo "${ECHO_T}yes" >&6; }
33282
33283                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33284                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33285                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33286
33287 fi
33288
33289 pkg_failed=no
33290 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33291 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33292
33293 if test -n "$PKG_CONFIG"; then
33294     if test -n "$PANGOFT2_CFLAGS"; then
33295         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33296     else
33297         if test -n "$PKG_CONFIG" && \
33298     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33299   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33300   ac_status=$?
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); }; then
33303   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33304 else
33305   pkg_failed=yes
33306 fi
33307     fi
33308 else
33309         pkg_failed=untried
33310 fi
33311 if test -n "$PKG_CONFIG"; then
33312     if test -n "$PANGOFT2_LIBS"; then
33313         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33314     else
33315         if test -n "$PKG_CONFIG" && \
33316     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33317   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33318   ac_status=$?
33319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); }; then
33321   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33322 else
33323   pkg_failed=yes
33324 fi
33325     fi
33326 else
33327         pkg_failed=untried
33328 fi
33329
33330
33331
33332 if test $pkg_failed = yes; then
33333
33334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33335         _pkg_short_errors_supported=yes
33336 else
33337         _pkg_short_errors_supported=no
33338 fi
33339         if test $_pkg_short_errors_supported = yes; then
33340                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33341         else
33342                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33343         fi
33344         # Put the nasty error message in config.log where it belongs
33345         echo "$PANGOFT2_PKG_ERRORS" >&5
33346
33347
33348                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33349 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33350                     wxUSE_PRINTING_ARCHITECTURE="no"
33351
33352
33353 elif test $pkg_failed = untried; then
33354
33355                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33356 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33357                     wxUSE_PRINTING_ARCHITECTURE="no"
33358
33359
33360 else
33361         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33362         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33363         { echo "$as_me:$LINENO: result: yes" >&5
33364 echo "${ECHO_T}yes" >&6; }
33365
33366                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33367                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33368                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33369
33370 fi
33371
33372 pkg_failed=no
33373 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33374 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33375
33376 if test -n "$PKG_CONFIG"; then
33377     if test -n "$PANGOXFT_CFLAGS"; then
33378         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33379     else
33380         if test -n "$PKG_CONFIG" && \
33381     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33382   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33383   ac_status=$?
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); }; then
33386   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33387 else
33388   pkg_failed=yes
33389 fi
33390     fi
33391 else
33392         pkg_failed=untried
33393 fi
33394 if test -n "$PKG_CONFIG"; then
33395     if test -n "$PANGOXFT_LIBS"; then
33396         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33397     else
33398         if test -n "$PKG_CONFIG" && \
33399     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33400   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33401   ac_status=$?
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); }; then
33404   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33405 else
33406   pkg_failed=yes
33407 fi
33408     fi
33409 else
33410         pkg_failed=untried
33411 fi
33412
33413
33414
33415 if test $pkg_failed = yes; then
33416
33417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33418         _pkg_short_errors_supported=yes
33419 else
33420         _pkg_short_errors_supported=no
33421 fi
33422         if test $_pkg_short_errors_supported = yes; then
33423                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33424         else
33425                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33426         fi
33427         # Put the nasty error message in config.log where it belongs
33428         echo "$PANGOXFT_PKG_ERRORS" >&5
33429
33430
33431                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33432 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33433
33434
33435 elif test $pkg_failed = untried; then
33436
33437                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33438 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33439
33440
33441 else
33442         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33443         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33444         { echo "$as_me:$LINENO: result: yes" >&5
33445 echo "${ECHO_T}yes" >&6; }
33446
33447                     cat >>confdefs.h <<\_ACEOF
33448 #define HAVE_PANGO_XFT 1
33449 _ACEOF
33450
33451                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33452                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33453                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33454
33455 fi
33456             save_LIBS="$LIBS"
33457             LIBS="$LIBS $PANGOX_LIBS"
33458
33459 for ac_func in pango_font_family_is_monospace
33460 do
33461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33465   echo $ECHO_N "(cached) $ECHO_C" >&6
33466 else
33467   cat >conftest.$ac_ext <<_ACEOF
33468 /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33475 #define $ac_func innocuous_$ac_func
33476
33477 /* System header to define __stub macros and hopefully few prototypes,
33478     which can conflict with char $ac_func (); below.
33479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33480     <limits.h> exists even on freestanding compilers.  */
33481
33482 #ifdef __STDC__
33483 # include <limits.h>
33484 #else
33485 # include <assert.h>
33486 #endif
33487
33488 #undef $ac_func
33489
33490 /* Override any GCC internal prototype to avoid an error.
33491    Use char because int might match the return type of a GCC
33492    builtin and then its argument prototype would still apply.  */
33493 #ifdef __cplusplus
33494 extern "C"
33495 #endif
33496 char $ac_func ();
33497 /* The GNU C library defines this for functions which it implements
33498     to always fail with ENOSYS.  Some functions are actually named
33499     something starting with __ and the normal name is an alias.  */
33500 #if defined __stub_$ac_func || defined __stub___$ac_func
33501 choke me
33502 #endif
33503
33504 int
33505 main ()
33506 {
33507 return $ac_func ();
33508   ;
33509   return 0;
33510 }
33511 _ACEOF
33512 rm -f conftest.$ac_objext conftest$ac_exeext
33513 if { (ac_try="$ac_link"
33514 case "(($ac_try" in
33515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33516   *) ac_try_echo=$ac_try;;
33517 esac
33518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33519   (eval "$ac_link") 2>conftest.er1
33520   ac_status=$?
33521   grep -v '^ *+' conftest.er1 >conftest.err
33522   rm -f conftest.er1
33523   cat conftest.err >&5
33524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525   (exit $ac_status); } && {
33526          test -z "$ac_c_werror_flag" ||
33527          test ! -s conftest.err
33528        } && test -s conftest$ac_exeext &&
33529        $as_test_x conftest$ac_exeext; then
33530   eval "$as_ac_var=yes"
33531 else
33532   echo "$as_me: failed program was:" >&5
33533 sed 's/^/| /' conftest.$ac_ext >&5
33534
33535         eval "$as_ac_var=no"
33536 fi
33537
33538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33539       conftest$ac_exeext conftest.$ac_ext
33540 fi
33541 ac_res=`eval echo '${'$as_ac_var'}'`
33542                { echo "$as_me:$LINENO: result: $ac_res" >&5
33543 echo "${ECHO_T}$ac_res" >&6; }
33544 if test `eval echo '${'$as_ac_var'}'` = yes; then
33545   cat >>confdefs.h <<_ACEOF
33546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33547 _ACEOF
33548
33549 fi
33550 done
33551
33552             LIBS="$save_LIBS"
33553         fi
33554
33555         wxUSE_UNIVERSAL="yes"
33556
33557         if test "$wxUSE_NANOX" = "yes"; then
33558             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33559             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"
33560             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33561         else
33562             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33563         fi
33564
33565         TOOLKIT=X11
33566         GUIDIST=X11_DIST
33567     fi
33568
33569     if test "$wxUSE_MOTIF" = 1; then
33570         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33571 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33572
33573 ac_find_includes=
33574 for ac_dir in $SEARCH_INCLUDE /usr/include
33575   do
33576     if test -f "$ac_dir/Xm/Xm.h"; then
33577       ac_find_includes=$ac_dir
33578       break
33579     fi
33580   done
33581
33582         if test "$ac_find_includes" != "" ; then
33583             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33584 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33585
33586     if test "x$ac_find_includes" = "x/usr/include"; then
33587     ac_path_to_include=""
33588   else
33589     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33590     result=$?
33591     if test $result = 0; then
33592       ac_path_to_include=""
33593     else
33594       ac_path_to_include=" -I$ac_find_includes"
33595     fi
33596   fi
33597
33598             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33599         else
33600             save_CFLAGS=$CFLAGS
33601             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33602
33603             cat >conftest.$ac_ext <<_ACEOF
33604 /* confdefs.h.  */
33605 _ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h.  */
33609
33610                     #include <Xm/Xm.h>
33611
33612 int
33613 main ()
33614 {
33615
33616                     int version;
33617                     version = xmUseVersion;
33618
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627   *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630   (eval "$ac_compile") 2>conftest.er1
33631   ac_status=$?
33632   grep -v '^ *+' conftest.er1 >conftest.err
33633   rm -f conftest.er1
33634   cat conftest.err >&5
33635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636   (exit $ac_status); } && {
33637          test -z "$ac_c_werror_flag" ||
33638          test ! -s conftest.err
33639        } && test -s conftest.$ac_objext; then
33640
33641                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33642 echo "${ECHO_T}found in default search path" >&6; }
33643                     COMPILED_X_PROGRAM=1
33644
33645 else
33646   echo "$as_me: failed program was:" >&5
33647 sed 's/^/| /' conftest.$ac_ext >&5
33648
33649
33650                     { echo "$as_me:$LINENO: result: no" >&5
33651 echo "${ECHO_T}no" >&6; }
33652                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33653 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33654    { (exit 1); exit 1; }; }
33655
33656
33657 fi
33658
33659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33660
33661             CFLAGS=$save_CFLAGS
33662         fi
33663
33664
33665         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33666 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33667
33668   ac_find_libraries=
33669   for ac_dir in  $SEARCH_LIB
33670   do
33671     for ac_extension in a so sl dylib dll.a; do
33672       if test -f "$ac_dir/libXm.$ac_extension"; then
33673         ac_find_libraries=$ac_dir
33674         break 2
33675       fi
33676     done
33677   done
33678
33679
33680         if test "x$ac_find_libraries" != "x" ; then
33681             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33682 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33683
33684
33685     if test "$ac_find_libraries" = "default location"; then
33686     ac_path_to_link=""
33687   else
33688     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33689     result=$?
33690     if test $result = 0; then
33691       ac_path_to_link=""
33692     else
33693       ac_path_to_link=" -L$ac_find_libraries"
33694     fi
33695   fi
33696
33697             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33698         else
33699                                                 save_CFLAGS=$CFLAGS
33700             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33701             save_LIBS="$LIBS"
33702             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33703
33704             cat >conftest.$ac_ext <<_ACEOF
33705 /* confdefs.h.  */
33706 _ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h.  */
33710
33711                     #include <Xm/Xm.h>
33712
33713 int
33714 main ()
33715 {
33716
33717                     int version;
33718                     version = xmUseVersion;
33719
33720   ;
33721   return 0;
33722 }
33723 _ACEOF
33724 rm -f conftest.$ac_objext conftest$ac_exeext
33725 if { (ac_try="$ac_link"
33726 case "(($ac_try" in
33727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728   *) ac_try_echo=$ac_try;;
33729 esac
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731   (eval "$ac_link") 2>conftest.er1
33732   ac_status=$?
33733   grep -v '^ *+' conftest.er1 >conftest.err
33734   rm -f conftest.er1
33735   cat conftest.err >&5
33736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737   (exit $ac_status); } && {
33738          test -z "$ac_c_werror_flag" ||
33739          test ! -s conftest.err
33740        } && test -s conftest$ac_exeext &&
33741        $as_test_x conftest$ac_exeext; then
33742
33743                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33744 echo "${ECHO_T}found in default search path" >&6; }
33745                     COMPILED_X_PROGRAM=1
33746
33747 else
33748   echo "$as_me: failed program was:" >&5
33749 sed 's/^/| /' conftest.$ac_ext >&5
33750
33751
33752                     { echo "$as_me:$LINENO: result: no" >&5
33753 echo "${ECHO_T}no" >&6; }
33754                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33755 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33756    { (exit 1); exit 1; }; }
33757
33758
33759 fi
33760
33761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33762       conftest$ac_exeext conftest.$ac_ext
33763
33764             CFLAGS=$save_CFLAGS
33765             LIBS="$save_LIBS"
33766         fi
33767
33768         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33769 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33770         libp_link=""
33771         libsm_ice_link=""
33772         libs_found=0
33773         for libp in "" " -lXp"; do
33774             if test "$libs_found" = 0; then
33775                 for libsm_ice in "" " -lSM -lICE"; do
33776                     if test "$libs_found" = 0; then
33777                         save_LIBS="$LIBS"
33778                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33779                         save_CFLAGS=$CFLAGS
33780                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33781
33782                         cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h.  */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h.  */
33788
33789                                 #include <Xm/Xm.h>
33790                                 #include <Xm/List.h>
33791
33792 int
33793 main ()
33794 {
33795
33796                                 XmString string = NULL;
33797                                 Widget w = NULL;
33798                                 int position = 0;
33799                                 XmListAddItem(w, string, position);
33800
33801   ;
33802   return 0;
33803 }
33804 _ACEOF
33805 rm -f conftest.$ac_objext conftest$ac_exeext
33806 if { (ac_try="$ac_link"
33807 case "(($ac_try" in
33808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33809   *) ac_try_echo=$ac_try;;
33810 esac
33811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33812   (eval "$ac_link") 2>conftest.er1
33813   ac_status=$?
33814   grep -v '^ *+' conftest.er1 >conftest.err
33815   rm -f conftest.er1
33816   cat conftest.err >&5
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); } && {
33819          test -z "$ac_c_werror_flag" ||
33820          test ! -s conftest.err
33821        } && test -s conftest$ac_exeext &&
33822        $as_test_x conftest$ac_exeext; then
33823
33824                                 libp_link="$libp"
33825                                 libsm_ice_link="$libsm_ice"
33826                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33827 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33828                                 libs_found=1
33829
33830 else
33831   echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33833
33834
33835
33836 fi
33837
33838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33839       conftest$ac_exeext conftest.$ac_ext
33840
33841                         LIBS="$save_LIBS"
33842                         CFLAGS=$save_CFLAGS
33843                     fi
33844                 done
33845             fi
33846         done
33847
33848         if test "$libs_found" = 0; then
33849             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33850 echo "${ECHO_T}can't find the right libraries" >&6; }
33851             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33852 echo "$as_me: error: can't link a simple motif program" >&2;}
33853    { (exit 1); exit 1; }; }
33854         fi
33855
33856                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33857 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33858 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   ac_check_lib_save_LIBS=$LIBS
33862 LIBS="-lSgm  $LIBS"
33863 cat >conftest.$ac_ext <<_ACEOF
33864 /* confdefs.h.  */
33865 _ACEOF
33866 cat confdefs.h >>conftest.$ac_ext
33867 cat >>conftest.$ac_ext <<_ACEOF
33868 /* end confdefs.h.  */
33869
33870 /* Override any GCC internal prototype to avoid an error.
33871    Use char because int might match the return type of a GCC
33872    builtin and then its argument prototype would still apply.  */
33873 #ifdef __cplusplus
33874 extern "C"
33875 #endif
33876 char SgCreateList ();
33877 int
33878 main ()
33879 {
33880 return SgCreateList ();
33881   ;
33882   return 0;
33883 }
33884 _ACEOF
33885 rm -f conftest.$ac_objext conftest$ac_exeext
33886 if { (ac_try="$ac_link"
33887 case "(($ac_try" in
33888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889   *) ac_try_echo=$ac_try;;
33890 esac
33891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892   (eval "$ac_link") 2>conftest.er1
33893   ac_status=$?
33894   grep -v '^ *+' conftest.er1 >conftest.err
33895   rm -f conftest.er1
33896   cat conftest.err >&5
33897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898   (exit $ac_status); } && {
33899          test -z "$ac_c_werror_flag" ||
33900          test ! -s conftest.err
33901        } && test -s conftest$ac_exeext &&
33902        $as_test_x conftest$ac_exeext; then
33903   ac_cv_lib_Sgm_SgCreateList=yes
33904 else
33905   echo "$as_me: failed program was:" >&5
33906 sed 's/^/| /' conftest.$ac_ext >&5
33907
33908         ac_cv_lib_Sgm_SgCreateList=no
33909 fi
33910
33911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33912       conftest$ac_exeext conftest.$ac_ext
33913 LIBS=$ac_check_lib_save_LIBS
33914 fi
33915 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33916 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33917 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33918   libsgm_link=" -lSgm"
33919 fi
33920
33921
33922         save_CFLAGS=$CFLAGS
33923         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33924
33925         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33926 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33927 if test "${wx_cv_lib_motif2+set}" = set; then
33928   echo $ECHO_N "(cached) $ECHO_C" >&6
33929 else
33930   cat >conftest.$ac_ext <<_ACEOF
33931 /* confdefs.h.  */
33932 _ACEOF
33933 cat confdefs.h >>conftest.$ac_ext
33934 cat >>conftest.$ac_ext <<_ACEOF
33935 /* end confdefs.h.  */
33936
33937                             #include <Xm/Xm.h>
33938
33939 int
33940 main ()
33941 {
33942
33943                             #if XmVersion < 2000
33944                             Not Motif 2
33945                             #endif
33946
33947   ;
33948   return 0;
33949 }
33950 _ACEOF
33951 rm -f conftest.$ac_objext
33952 if { (ac_try="$ac_compile"
33953 case "(($ac_try" in
33954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955   *) ac_try_echo=$ac_try;;
33956 esac
33957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33958   (eval "$ac_compile") 2>conftest.er1
33959   ac_status=$?
33960   grep -v '^ *+' conftest.er1 >conftest.err
33961   rm -f conftest.er1
33962   cat conftest.err >&5
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); } && {
33965          test -z "$ac_c_werror_flag" ||
33966          test ! -s conftest.err
33967        } && test -s conftest.$ac_objext; then
33968   wx_cv_lib_motif2="yes"
33969 else
33970   echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33972
33973         wx_cv_lib_motif2="no"
33974 fi
33975
33976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33977 fi
33978 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33979 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33980         if test "$wx_cv_lib_motif2" = "yes"; then
33981             cat >>confdefs.h <<\_ACEOF
33982 #define __WXMOTIF20__ 1
33983 _ACEOF
33984
33985         else
33986             cat >>confdefs.h <<\_ACEOF
33987 #define __WXMOTIF20__ 0
33988 _ACEOF
33989
33990         fi
33991
33992         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33993 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33994 if test "${wx_cv_lib_lesstif+set}" = set; then
33995   echo $ECHO_N "(cached) $ECHO_C" >&6
33996 else
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 <Xm/Xm.h>
34005
34006 int
34007 main ()
34008 {
34009
34010                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34011                             Not Lesstif
34012                             #endif
34013
34014   ;
34015   return 0;
34016 }
34017 _ACEOF
34018 rm -f conftest.$ac_objext
34019 if { (ac_try="$ac_compile"
34020 case "(($ac_try" in
34021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022   *) ac_try_echo=$ac_try;;
34023 esac
34024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025   (eval "$ac_compile") 2>conftest.er1
34026   ac_status=$?
34027   grep -v '^ *+' conftest.er1 >conftest.err
34028   rm -f conftest.er1
34029   cat conftest.err >&5
34030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); } && {
34032          test -z "$ac_c_werror_flag" ||
34033          test ! -s conftest.err
34034        } && test -s conftest.$ac_objext; then
34035   wx_cv_lib_lesstif="yes"
34036 else
34037   echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34039
34040         wx_cv_lib_lesstif="no"
34041 fi
34042
34043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34044
34045 fi
34046 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34047 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34048         if test "$wx_cv_lib_lesstif" = "yes"; then
34049             cat >>confdefs.h <<\_ACEOF
34050 #define __WXLESSTIF__ 1
34051 _ACEOF
34052
34053         else
34054             cat >>confdefs.h <<\_ACEOF
34055 #define __WXLESSTIF__ 0
34056 _ACEOF
34057
34058         fi
34059
34060         CFLAGS=$save_CFLAGS
34061
34062         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34063         TOOLKIT=MOTIF
34064         GUIDIST=MOTIF_DIST
34065     fi
34066
34067         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34068                 if test "$wxUSE_LIBXPM" = "sys"; then
34069             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34070 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34071
34072   ac_find_libraries=
34073   for ac_dir in  $SEARCH_LIB
34074   do
34075     for ac_extension in a so sl dylib dll.a; do
34076       if test -f "$ac_dir/libXpm.$ac_extension"; then
34077         ac_find_libraries=$ac_dir
34078         break 2
34079       fi
34080     done
34081   done
34082
34083             if test "$ac_find_libraries" != "" ; then
34084
34085     if test "$ac_find_libraries" = "default location"; then
34086     ac_path_to_link=""
34087   else
34088     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34089     result=$?
34090     if test $result = 0; then
34091       ac_path_to_link=""
34092     else
34093       ac_path_to_link=" -L$ac_find_libraries"
34094     fi
34095   fi
34096
34097                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34098                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34099 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34100
34101                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34102 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34103 if test "${wx_cv_x11_xpm_h+set}" = set; then
34104   echo $ECHO_N "(cached) $ECHO_C" >&6
34105 else
34106
34107                         save_CFLAGS=$CFLAGS
34108                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34109
34110                         cat >conftest.$ac_ext <<_ACEOF
34111 /* confdefs.h.  */
34112 _ACEOF
34113 cat confdefs.h >>conftest.$ac_ext
34114 cat >>conftest.$ac_ext <<_ACEOF
34115 /* end confdefs.h.  */
34116
34117                                 #include <X11/xpm.h>
34118
34119 int
34120 main ()
34121 {
34122
34123                                 int version;
34124                                 version = XpmLibraryVersion();
34125
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134   *) ac_try_echo=$ac_try;;
34135 esac
34136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137   (eval "$ac_compile") 2>conftest.er1
34138   ac_status=$?
34139   grep -v '^ *+' conftest.er1 >conftest.err
34140   rm -f conftest.er1
34141   cat conftest.err >&5
34142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); } && {
34144          test -z "$ac_c_werror_flag" ||
34145          test ! -s conftest.err
34146        } && test -s conftest.$ac_objext; then
34147   wx_cv_x11_xpm_h=yes
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152         wx_cv_x11_xpm_h=no
34153
34154 fi
34155
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34157
34158                         CFLAGS=$save_CFLAGS
34159
34160
34161 fi
34162 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34163 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34164
34165                 if test $wx_cv_x11_xpm_h = "yes"; then
34166                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34167                     cat >>confdefs.h <<\_ACEOF
34168 #define wxHAVE_LIB_XPM 1
34169 _ACEOF
34170
34171                 else
34172                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34173 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34174                 fi
34175             fi
34176
34177         fi
34178
34179                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34180 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34181 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34182   echo $ECHO_N "(cached) $ECHO_C" >&6
34183 else
34184   ac_check_lib_save_LIBS=$LIBS
34185 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34186 cat >conftest.$ac_ext <<_ACEOF
34187 /* confdefs.h.  */
34188 _ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h.  */
34192
34193 /* Override any GCC internal prototype to avoid an error.
34194    Use char because int might match the return type of a GCC
34195    builtin and then its argument prototype would still apply.  */
34196 #ifdef __cplusplus
34197 extern "C"
34198 #endif
34199 char XShapeQueryExtension ();
34200 int
34201 main ()
34202 {
34203 return XShapeQueryExtension ();
34204   ;
34205   return 0;
34206 }
34207 _ACEOF
34208 rm -f conftest.$ac_objext conftest$ac_exeext
34209 if { (ac_try="$ac_link"
34210 case "(($ac_try" in
34211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212   *) ac_try_echo=$ac_try;;
34213 esac
34214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215   (eval "$ac_link") 2>conftest.er1
34216   ac_status=$?
34217   grep -v '^ *+' conftest.er1 >conftest.err
34218   rm -f conftest.er1
34219   cat conftest.err >&5
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); } && {
34222          test -z "$ac_c_werror_flag" ||
34223          test ! -s conftest.err
34224        } && test -s conftest$ac_exeext &&
34225        $as_test_x conftest$ac_exeext; then
34226   ac_cv_lib_Xext_XShapeQueryExtension=yes
34227 else
34228   echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34230
34231         ac_cv_lib_Xext_XShapeQueryExtension=no
34232 fi
34233
34234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34235       conftest$ac_exeext conftest.$ac_ext
34236 LIBS=$ac_check_lib_save_LIBS
34237 fi
34238 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34239 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34240 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34241
34242                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34243                       wxHAVE_XEXT_LIB=1
34244
34245 fi
34246
34247
34248         if test "$wxHAVE_XEXT_LIB" = 1; then
34249             save_CFLAGS="$CFLAGS"
34250             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34251
34252             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34253 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34254             cat >conftest.$ac_ext <<_ACEOF
34255 /* confdefs.h.  */
34256 _ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h.  */
34260
34261                             #include <X11/Xlib.h>
34262                             #include <X11/extensions/shape.h>
34263
34264 int
34265 main ()
34266 {
34267
34268                             int dummy1, dummy2;
34269                             XShapeQueryExtension((Display*)NULL,
34270                                                  (int*)NULL, (int*)NULL);
34271
34272   ;
34273   return 0;
34274 }
34275 _ACEOF
34276 rm -f conftest.$ac_objext
34277 if { (ac_try="$ac_compile"
34278 case "(($ac_try" in
34279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34280   *) ac_try_echo=$ac_try;;
34281 esac
34282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34283   (eval "$ac_compile") 2>conftest.er1
34284   ac_status=$?
34285   grep -v '^ *+' conftest.er1 >conftest.err
34286   rm -f conftest.er1
34287   cat conftest.err >&5
34288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289   (exit $ac_status); } && {
34290          test -z "$ac_c_werror_flag" ||
34291          test ! -s conftest.err
34292        } && test -s conftest.$ac_objext; then
34293
34294                             cat >>confdefs.h <<\_ACEOF
34295 #define HAVE_XSHAPE 1
34296 _ACEOF
34297
34298                             { echo "$as_me:$LINENO: result: found" >&5
34299 echo "${ECHO_T}found" >&6; }
34300
34301 else
34302   echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34304
34305
34306                             { echo "$as_me:$LINENO: result: not found" >&5
34307 echo "${ECHO_T}not found" >&6; }
34308
34309 fi
34310
34311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34312             CFLAGS="$save_CFLAGS"
34313
34314         fi
34315     fi
34316
34317     if test "$wxUSE_OSX_CARBON" = 1; then
34318         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34319 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34320         if test "$GCC" = yes; then
34321             { echo "$as_me:$LINENO: result: gcc" >&5
34322 echo "${ECHO_T}gcc" >&6; }
34323             CPPFLAGS_PASCAL="-fpascal-strings"
34324         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34325             { echo "$as_me:$LINENO: result: xlc" >&5
34326 echo "${ECHO_T}xlc" >&6; }
34327             CPPFLAGS_PASCAL="-qmacpstr"
34328         else
34329             { echo "$as_me:$LINENO: result: none" >&5
34330 echo "${ECHO_T}none" >&6; }
34331         fi
34332
34333         if test "x$wxUSE_UNIX" = "xyes"; then
34334             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34335         else
34336                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34337         fi
34338
34339         TOOLKIT=OSX_CARBON
34340                 GUIDIST=OSX_CARBON_DIST
34341                         WXBASEPORT="_carbon"
34342
34343                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34344     fi
34345
34346     if test "$wxUSE_OSX_COCOA" = 1; then
34347         TOOLKIT=OSX_COCOA
34348         GUIDIST=OSX_COCOA_DIST
34349
34350                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34351     fi
34352
34353     if test "$wxUSE_OSX_IPHONE" = 1; then
34354         TOOLKIT=OSX_IPHONE
34355     fi
34356
34357     if test "$wxUSE_OLD_COCOA" = 1; then
34358         TOOLKIT=COCOA
34359         GUIDIST=COCOA_DIST
34360     fi
34361
34362     if test "$wxUSE_PM" = 1; then
34363         TOOLKIT=PM
34364         GUIDIST=PM_DIST
34365         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34366 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34367 if test "${wx_cv_spbcdata+set}" = set; then
34368   echo $ECHO_N "(cached) $ECHO_C" >&6
34369 else
34370
34371                 cat >conftest.$ac_ext <<_ACEOF
34372 /* confdefs.h.  */
34373 _ACEOF
34374 cat confdefs.h >>conftest.$ac_ext
34375 cat >>conftest.$ac_ext <<_ACEOF
34376 /* end confdefs.h.  */
34377
34378                         #define INCL_PM
34379                         #include <os2.h>
34380
34381 int
34382 main ()
34383 {
34384
34385                         SPBCDATA test;
34386
34387   ;
34388   return 0;
34389 }
34390 _ACEOF
34391 rm -f conftest.$ac_objext
34392 if { (ac_try="$ac_compile"
34393 case "(($ac_try" in
34394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34395   *) ac_try_echo=$ac_try;;
34396 esac
34397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34398   (eval "$ac_compile") 2>conftest.er1
34399   ac_status=$?
34400   grep -v '^ *+' conftest.er1 >conftest.err
34401   rm -f conftest.er1
34402   cat conftest.err >&5
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); } && {
34405          test -z "$ac_c_werror_flag" ||
34406          test ! -s conftest.err
34407        } && test -s conftest.$ac_objext; then
34408   wx_cv_spbcdata=yes
34409 else
34410   echo "$as_me: failed program was:" >&5
34411 sed 's/^/| /' conftest.$ac_ext >&5
34412
34413         wx_cv_spbcdata=no
34414
34415 fi
34416
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418
34419
34420 fi
34421 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34422 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34423
34424         if test $wx_cv_spbcdata = "yes"; then
34425             cat >>confdefs.h <<\_ACEOF
34426 #define HAVE_SPBCDATA 1
34427 _ACEOF
34428
34429         fi
34430     fi
34431
34432         if test "$TOOLKIT" = "PM" ; then
34433         TOOLKIT_DIR="os2"
34434     else
34435         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34436     fi
34437
34438     if test "$wxUSE_UNIVERSAL" = "yes"; then
34439         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34440         WIDGET_SET=univ
34441     fi
34442
34443         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34444     DISTDIR="wx\$(TOOLKIT)"
34445 else
34446     USE_GUI=0
34447
34448             TOOLKIT_DIR="base"
34449
34450         if test "$USE_WIN32" = 1 ; then
34451                         TOOLKIT="MSW"
34452     fi
34453
34454         GUIDIST="BASE_DIST"
34455     DISTDIR="wxBase"
34456 fi
34457
34458
34459
34460 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34461     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34462         wxUSE_UNICODE_UTF8=yes
34463     elif test "$USE_OS2" = 1 ; then
34464                                 wxUSE_UNICODE_UTF8=yes
34465     else
34466         wxUSE_UNICODE_UTF8=no
34467     fi
34468 fi
34469
34470
34471 if test "$wxUSE_GUI" = "yes"; then
34472     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34473
34474 for ac_header in X11/Xlib.h
34475 do
34476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34480   echo $ECHO_N "(cached) $ECHO_C" >&6
34481 else
34482   cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488
34489
34490 #include <$ac_header>
34491 _ACEOF
34492 rm -f conftest.$ac_objext
34493 if { (ac_try="$ac_compile"
34494 case "(($ac_try" in
34495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496   *) ac_try_echo=$ac_try;;
34497 esac
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499   (eval "$ac_compile") 2>conftest.er1
34500   ac_status=$?
34501   grep -v '^ *+' conftest.er1 >conftest.err
34502   rm -f conftest.er1
34503   cat conftest.err >&5
34504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505   (exit $ac_status); } && {
34506          test -z "$ac_c_werror_flag" ||
34507          test ! -s conftest.err
34508        } && test -s conftest.$ac_objext; then
34509   eval "$as_ac_Header=yes"
34510 else
34511   echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34513
34514         eval "$as_ac_Header=no"
34515 fi
34516
34517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34518 fi
34519 ac_res=`eval echo '${'$as_ac_Header'}'`
34520                { echo "$as_me:$LINENO: result: $ac_res" >&5
34521 echo "${ECHO_T}$ac_res" >&6; }
34522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34523   cat >>confdefs.h <<_ACEOF
34524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34525 _ACEOF
34526
34527 fi
34528
34529 done
34530
34531
34532 for ac_header in X11/XKBlib.h
34533 do
34534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34538   echo $ECHO_N "(cached) $ECHO_C" >&6
34539 else
34540   cat >conftest.$ac_ext <<_ACEOF
34541 /* confdefs.h.  */
34542 _ACEOF
34543 cat confdefs.h >>conftest.$ac_ext
34544 cat >>conftest.$ac_ext <<_ACEOF
34545 /* end confdefs.h.  */
34546
34547                           #if HAVE_X11_XLIB_H
34548                             #include <X11/Xlib.h>
34549                           #endif
34550
34551
34552 #include <$ac_header>
34553 _ACEOF
34554 rm -f conftest.$ac_objext
34555 if { (ac_try="$ac_compile"
34556 case "(($ac_try" in
34557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34558   *) ac_try_echo=$ac_try;;
34559 esac
34560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34561   (eval "$ac_compile") 2>conftest.er1
34562   ac_status=$?
34563   grep -v '^ *+' conftest.er1 >conftest.err
34564   rm -f conftest.er1
34565   cat conftest.err >&5
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); } && {
34568          test -z "$ac_c_werror_flag" ||
34569          test ! -s conftest.err
34570        } && test -s conftest.$ac_objext; then
34571   eval "$as_ac_Header=yes"
34572 else
34573   echo "$as_me: failed program was:" >&5
34574 sed 's/^/| /' conftest.$ac_ext >&5
34575
34576         eval "$as_ac_Header=no"
34577 fi
34578
34579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34580 fi
34581 ac_res=`eval echo '${'$as_ac_Header'}'`
34582                { echo "$as_me:$LINENO: result: $ac_res" >&5
34583 echo "${ECHO_T}$ac_res" >&6; }
34584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34585   cat >>confdefs.h <<_ACEOF
34586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34587 _ACEOF
34588
34589 fi
34590
34591 done
34592
34593     fi
34594 fi
34595
34596
34597
34598 USE_XINERAMA=0
34599 if test "$wxUSE_DISPLAY" = "yes"; then
34600         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34601
34602   ac_find_libraries=
34603
34604     fl_pkgname=`echo "Xinerama" | tr [:upper:] [:lower:]`
34605
34606
34607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34608         if test -n "$ac_tool_prefix"; then
34609   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34613 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34614   echo $ECHO_N "(cached) $ECHO_C" >&6
34615 else
34616   case $PKG_CONFIG in
34617   [\\/]* | ?:[\\/]*)
34618   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34619   ;;
34620   *)
34621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34622 for as_dir in $PATH
34623 do
34624   IFS=$as_save_IFS
34625   test -z "$as_dir" && as_dir=.
34626   for ac_exec_ext in '' $ac_executable_extensions; do
34627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34628     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34630     break 2
34631   fi
34632 done
34633 done
34634 IFS=$as_save_IFS
34635
34636   ;;
34637 esac
34638 fi
34639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34640 if test -n "$PKG_CONFIG"; then
34641   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34642 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34643 else
34644   { echo "$as_me:$LINENO: result: no" >&5
34645 echo "${ECHO_T}no" >&6; }
34646 fi
34647
34648
34649 fi
34650 if test -z "$ac_cv_path_PKG_CONFIG"; then
34651   ac_pt_PKG_CONFIG=$PKG_CONFIG
34652   # Extract the first word of "pkg-config", so it can be a program name with args.
34653 set dummy pkg-config; ac_word=$2
34654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34656 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
34657   echo $ECHO_N "(cached) $ECHO_C" >&6
34658 else
34659   case $ac_pt_PKG_CONFIG in
34660   [\\/]* | ?:[\\/]*)
34661   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
34662   ;;
34663   *)
34664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34665 for as_dir in $PATH
34666 do
34667   IFS=$as_save_IFS
34668   test -z "$as_dir" && as_dir=.
34669   for ac_exec_ext in '' $ac_executable_extensions; do
34670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34671     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34673     break 2
34674   fi
34675 done
34676 done
34677 IFS=$as_save_IFS
34678
34679   ;;
34680 esac
34681 fi
34682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
34683 if test -n "$ac_pt_PKG_CONFIG"; then
34684   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
34685 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
34686 else
34687   { echo "$as_me:$LINENO: result: no" >&5
34688 echo "${ECHO_T}no" >&6; }
34689 fi
34690
34691   if test "x$ac_pt_PKG_CONFIG" = x; then
34692     PKG_CONFIG=""
34693   else
34694     case $cross_compiling:$ac_tool_warned in
34695 yes:)
34696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34697 whose name does not start with the host triplet.  If you think this
34698 configuration is useful to you, please write to autoconf@gnu.org." >&5
34699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34700 whose name does not start with the host triplet.  If you think this
34701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34702 ac_tool_warned=yes ;;
34703 esac
34704     PKG_CONFIG=$ac_pt_PKG_CONFIG
34705   fi
34706 else
34707   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34708 fi
34709
34710 fi
34711 if test -n "$PKG_CONFIG"; then
34712         _pkg_min_version=0.9.0
34713         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34714 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34715         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34716                 { echo "$as_me:$LINENO: result: yes" >&5
34717 echo "${ECHO_T}yes" >&6; }
34718         else
34719                 { echo "$as_me:$LINENO: result: no" >&5
34720 echo "${ECHO_T}no" >&6; }
34721                 PKG_CONFIG=""
34722         fi
34723
34724 fi 6> /dev/null
34725
34726 pkg_failed=no
34727 { echo "$as_me:$LINENO: checking for Xinerama" >&5
34728 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34729
34730 if test -n "$PKG_CONFIG"; then
34731     if test -n "$Xinerama_CFLAGS"; then
34732         pkg_cv_Xinerama_CFLAGS="$Xinerama_CFLAGS"
34733     else
34734         if test -n "$PKG_CONFIG" && \
34735     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34736   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; then
34740   pkg_cv_Xinerama_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
34741 else
34742   pkg_failed=yes
34743 fi
34744     fi
34745 else
34746         pkg_failed=untried
34747 fi
34748 if test -n "$PKG_CONFIG"; then
34749     if test -n "$Xinerama_LIBS"; then
34750         pkg_cv_Xinerama_LIBS="$Xinerama_LIBS"
34751     else
34752         if test -n "$PKG_CONFIG" && \
34753     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34754   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34755   ac_status=$?
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); }; then
34758   pkg_cv_Xinerama_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
34759 else
34760   pkg_failed=yes
34761 fi
34762     fi
34763 else
34764         pkg_failed=untried
34765 fi
34766
34767
34768
34769 if test $pkg_failed = yes; then
34770
34771 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34772         _pkg_short_errors_supported=yes
34773 else
34774         _pkg_short_errors_supported=no
34775 fi
34776         if test $_pkg_short_errors_supported = yes; then
34777                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
34778         else
34779                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
34780         fi
34781         # Put the nasty error message in config.log where it belongs
34782         echo "$Xinerama_PKG_ERRORS" >&5
34783
34784
34785       if test "x$ac_find_libraries" = "x"; then
34786                 if test "xXineramaQueryScreens" != "x"; then
34787           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34788 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34789 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34790   echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34792   ac_check_lib_save_LIBS=$LIBS
34793 LIBS="-lXinerama  $LIBS"
34794 cat >conftest.$ac_ext <<_ACEOF
34795 /* confdefs.h.  */
34796 _ACEOF
34797 cat confdefs.h >>conftest.$ac_ext
34798 cat >>conftest.$ac_ext <<_ACEOF
34799 /* end confdefs.h.  */
34800
34801 /* Override any GCC internal prototype to avoid an error.
34802    Use char because int might match the return type of a GCC
34803    builtin and then its argument prototype would still apply.  */
34804 #ifdef __cplusplus
34805 extern "C"
34806 #endif
34807 char XineramaQueryScreens ();
34808 int
34809 main ()
34810 {
34811 return XineramaQueryScreens ();
34812   ;
34813   return 0;
34814 }
34815 _ACEOF
34816 rm -f conftest.$ac_objext conftest$ac_exeext
34817 if { (ac_try="$ac_link"
34818 case "(($ac_try" in
34819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34820   *) ac_try_echo=$ac_try;;
34821 esac
34822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34823   (eval "$ac_link") 2>conftest.er1
34824   ac_status=$?
34825   grep -v '^ *+' conftest.er1 >conftest.err
34826   rm -f conftest.er1
34827   cat conftest.err >&5
34828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829   (exit $ac_status); } && {
34830          test -z "$ac_c_werror_flag" ||
34831          test ! -s conftest.err
34832        } && test -s conftest$ac_exeext &&
34833        $as_test_x conftest$ac_exeext; then
34834   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34835 else
34836   echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34838
34839         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34840 fi
34841
34842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34843       conftest$ac_exeext conftest.$ac_ext
34844 LIBS=$ac_check_lib_save_LIBS
34845 fi
34846 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34847 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34848 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34849   ac_find_libraries="std"
34850 fi
34851
34852         fi
34853       fi
34854
34855       if test "x$ac_find_libraries" = "x"; then
34856                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34857 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34858
34859   ac_find_libraries=
34860   for ac_dir in  $SEARCH_LIB
34861   do
34862     for ac_extension in a so sl dylib dll.a; do
34863       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34864         ac_find_libraries=$ac_dir
34865         break 2
34866       fi
34867     done
34868   done
34869
34870         if test "x$ac_find_libraries" != "x"; then
34871           { echo "$as_me:$LINENO: result: yes" >&5
34872 echo "${ECHO_T}yes" >&6; }
34873         else
34874           { echo "$as_me:$LINENO: result: no" >&5
34875 echo "${ECHO_T}no" >&6; }
34876         fi
34877       fi
34878
34879 elif test $pkg_failed = untried; then
34880
34881       if test "x$ac_find_libraries" = "x"; then
34882                 if test "xXineramaQueryScreens" != "x"; then
34883           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34884 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34885 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34886   echo $ECHO_N "(cached) $ECHO_C" >&6
34887 else
34888   ac_check_lib_save_LIBS=$LIBS
34889 LIBS="-lXinerama  $LIBS"
34890 cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896
34897 /* Override any GCC internal prototype to avoid an error.
34898    Use char because int might match the return type of a GCC
34899    builtin and then its argument prototype would still apply.  */
34900 #ifdef __cplusplus
34901 extern "C"
34902 #endif
34903 char XineramaQueryScreens ();
34904 int
34905 main ()
34906 {
34907 return XineramaQueryScreens ();
34908   ;
34909   return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext conftest$ac_exeext
34913 if { (ac_try="$ac_link"
34914 case "(($ac_try" in
34915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916   *) ac_try_echo=$ac_try;;
34917 esac
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919   (eval "$ac_link") 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && {
34926          test -z "$ac_c_werror_flag" ||
34927          test ! -s conftest.err
34928        } && test -s conftest$ac_exeext &&
34929        $as_test_x conftest$ac_exeext; then
34930   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34936 fi
34937
34938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34939       conftest$ac_exeext conftest.$ac_ext
34940 LIBS=$ac_check_lib_save_LIBS
34941 fi
34942 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34943 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34944 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34945   ac_find_libraries="std"
34946 fi
34947
34948         fi
34949       fi
34950
34951       if test "x$ac_find_libraries" = "x"; then
34952                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34953 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34954
34955   ac_find_libraries=
34956   for ac_dir in  $SEARCH_LIB
34957   do
34958     for ac_extension in a so sl dylib dll.a; do
34959       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34960         ac_find_libraries=$ac_dir
34961         break 2
34962       fi
34963     done
34964   done
34965
34966         if test "x$ac_find_libraries" != "x"; then
34967           { echo "$as_me:$LINENO: result: yes" >&5
34968 echo "${ECHO_T}yes" >&6; }
34969         else
34970           { echo "$as_me:$LINENO: result: no" >&5
34971 echo "${ECHO_T}no" >&6; }
34972         fi
34973       fi
34974
34975 else
34976         Xinerama_CFLAGS=$pkg_cv_Xinerama_CFLAGS
34977         Xinerama_LIBS=$pkg_cv_Xinerama_LIBS
34978         { echo "$as_me:$LINENO: result: yes" >&5
34979 echo "${ECHO_T}yes" >&6; }
34980
34981             ac_find_libraries="std"
34982
34983                                                 eval ac_find_cflags=\$Xinerama_CFLAGS
34984       eval fl_libs=\$Xinerama_LIBS
34985
34986                   for fl_path in $fl_libs
34987       do
34988         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
34989                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
34990         fi
34991       done
34992
34993 fi
34994
34995         if test "$ac_find_libraries" != "" ; then
34996             if test "$ac_find_libraries" != "std" ; then
34997
34998     if test "$ac_find_libraries" = "default location"; then
34999     ac_path_to_link=""
35000   else
35001     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35002     result=$?
35003     if test $result = 0; then
35004       ac_path_to_link=""
35005     else
35006       ac_path_to_link=" -L$ac_find_libraries"
35007     fi
35008   fi
35009
35010               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35011                   LDFLAGS="$LDFLAGS $ac_path_to_link"
35012               fi
35013             fi
35014             USE_XINERAMA=1
35015             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35016         else
35017             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35018 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35019             wxUSE_DISPLAY="no"
35020         fi
35021     elif test "$wxUSE_MSW" = 1; then
35022                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35023 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35024 if test "${ac_cv_header_ddraw_h+set}" = set; then
35025   echo $ECHO_N "(cached) $ECHO_C" >&6
35026 else
35027   cat >conftest.$ac_ext <<_ACEOF
35028 /* confdefs.h.  */
35029 _ACEOF
35030 cat confdefs.h >>conftest.$ac_ext
35031 cat >>conftest.$ac_ext <<_ACEOF
35032 /* end confdefs.h.  */
35033 #include <windows.h>
35034
35035 #include <ddraw.h>
35036 _ACEOF
35037 rm -f conftest.$ac_objext
35038 if { (ac_try="$ac_compile"
35039 case "(($ac_try" in
35040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35041   *) ac_try_echo=$ac_try;;
35042 esac
35043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35044   (eval "$ac_compile") 2>conftest.er1
35045   ac_status=$?
35046   grep -v '^ *+' conftest.er1 >conftest.err
35047   rm -f conftest.er1
35048   cat conftest.err >&5
35049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050   (exit $ac_status); } && {
35051          test -z "$ac_c_werror_flag" ||
35052          test ! -s conftest.err
35053        } && test -s conftest.$ac_objext; then
35054   ac_cv_header_ddraw_h=yes
35055 else
35056   echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059         ac_cv_header_ddraw_h=no
35060 fi
35061
35062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35063 fi
35064 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35065 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35066
35067
35068     fi
35069 fi
35070
35071 if test "$wxUSE_DISPLAY" = "yes"; then
35072         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
35073
35074   ac_find_libraries=
35075
35076     fl_pkgname=`echo "Xxf86vm" | tr [:upper:] [:lower:]`
35077
35078
35079 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35080         if test -n "$ac_tool_prefix"; then
35081   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35082 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35085 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35086   echo $ECHO_N "(cached) $ECHO_C" >&6
35087 else
35088   case $PKG_CONFIG in
35089   [\\/]* | ?:[\\/]*)
35090   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35091   ;;
35092   *)
35093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35094 for as_dir in $PATH
35095 do
35096   IFS=$as_save_IFS
35097   test -z "$as_dir" && as_dir=.
35098   for ac_exec_ext in '' $ac_executable_extensions; do
35099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35100     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35102     break 2
35103   fi
35104 done
35105 done
35106 IFS=$as_save_IFS
35107
35108   ;;
35109 esac
35110 fi
35111 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35112 if test -n "$PKG_CONFIG"; then
35113   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35114 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35115 else
35116   { echo "$as_me:$LINENO: result: no" >&5
35117 echo "${ECHO_T}no" >&6; }
35118 fi
35119
35120
35121 fi
35122 if test -z "$ac_cv_path_PKG_CONFIG"; then
35123   ac_pt_PKG_CONFIG=$PKG_CONFIG
35124   # Extract the first word of "pkg-config", so it can be a program name with args.
35125 set dummy pkg-config; ac_word=$2
35126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35128 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35129   echo $ECHO_N "(cached) $ECHO_C" >&6
35130 else
35131   case $ac_pt_PKG_CONFIG in
35132   [\\/]* | ?:[\\/]*)
35133   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35134   ;;
35135   *)
35136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35137 for as_dir in $PATH
35138 do
35139   IFS=$as_save_IFS
35140   test -z "$as_dir" && as_dir=.
35141   for ac_exec_ext in '' $ac_executable_extensions; do
35142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35143     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35145     break 2
35146   fi
35147 done
35148 done
35149 IFS=$as_save_IFS
35150
35151   ;;
35152 esac
35153 fi
35154 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35155 if test -n "$ac_pt_PKG_CONFIG"; then
35156   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35157 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35158 else
35159   { echo "$as_me:$LINENO: result: no" >&5
35160 echo "${ECHO_T}no" >&6; }
35161 fi
35162
35163   if test "x$ac_pt_PKG_CONFIG" = x; then
35164     PKG_CONFIG=""
35165   else
35166     case $cross_compiling:$ac_tool_warned in
35167 yes:)
35168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35169 whose name does not start with the host triplet.  If you think this
35170 configuration is useful to you, please write to autoconf@gnu.org." >&5
35171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35172 whose name does not start with the host triplet.  If you think this
35173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35174 ac_tool_warned=yes ;;
35175 esac
35176     PKG_CONFIG=$ac_pt_PKG_CONFIG
35177   fi
35178 else
35179   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35180 fi
35181
35182 fi
35183 if test -n "$PKG_CONFIG"; then
35184         _pkg_min_version=0.9.0
35185         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35186 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35187         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35188                 { echo "$as_me:$LINENO: result: yes" >&5
35189 echo "${ECHO_T}yes" >&6; }
35190         else
35191                 { echo "$as_me:$LINENO: result: no" >&5
35192 echo "${ECHO_T}no" >&6; }
35193                 PKG_CONFIG=""
35194         fi
35195
35196 fi 6> /dev/null
35197
35198 pkg_failed=no
35199 { echo "$as_me:$LINENO: checking for Xxf86vm" >&5
35200 echo $ECHO_N "checking for Xxf86vm... $ECHO_C" >&6; }
35201
35202 if test -n "$PKG_CONFIG"; then
35203     if test -n "$Xxf86vm_CFLAGS"; then
35204         pkg_cv_Xxf86vm_CFLAGS="$Xxf86vm_CFLAGS"
35205     else
35206         if test -n "$PKG_CONFIG" && \
35207     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35208   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35209   ac_status=$?
35210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211   (exit $ac_status); }; then
35212   pkg_cv_Xxf86vm_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35213 else
35214   pkg_failed=yes
35215 fi
35216     fi
35217 else
35218         pkg_failed=untried
35219 fi
35220 if test -n "$PKG_CONFIG"; then
35221     if test -n "$Xxf86vm_LIBS"; then
35222         pkg_cv_Xxf86vm_LIBS="$Xxf86vm_LIBS"
35223     else
35224         if test -n "$PKG_CONFIG" && \
35225     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35226   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35227   ac_status=$?
35228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229   (exit $ac_status); }; then
35230   pkg_cv_Xxf86vm_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35231 else
35232   pkg_failed=yes
35233 fi
35234     fi
35235 else
35236         pkg_failed=untried
35237 fi
35238
35239
35240
35241 if test $pkg_failed = yes; then
35242
35243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35244         _pkg_short_errors_supported=yes
35245 else
35246         _pkg_short_errors_supported=no
35247 fi
35248         if test $_pkg_short_errors_supported = yes; then
35249                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35250         else
35251                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35252         fi
35253         # Put the nasty error message in config.log where it belongs
35254         echo "$Xxf86vm_PKG_ERRORS" >&5
35255
35256
35257       if test "x$ac_find_libraries" = "x"; then
35258                 if test "xXF86VidModeQueryExtension" != "x"; then
35259           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35260 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35261 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35262   echo $ECHO_N "(cached) $ECHO_C" >&6
35263 else
35264   ac_check_lib_save_LIBS=$LIBS
35265 LIBS="-lXxf86vm  $LIBS"
35266 cat >conftest.$ac_ext <<_ACEOF
35267 /* confdefs.h.  */
35268 _ACEOF
35269 cat confdefs.h >>conftest.$ac_ext
35270 cat >>conftest.$ac_ext <<_ACEOF
35271 /* end confdefs.h.  */
35272
35273 /* Override any GCC internal prototype to avoid an error.
35274    Use char because int might match the return type of a GCC
35275    builtin and then its argument prototype would still apply.  */
35276 #ifdef __cplusplus
35277 extern "C"
35278 #endif
35279 char XF86VidModeQueryExtension ();
35280 int
35281 main ()
35282 {
35283 return XF86VidModeQueryExtension ();
35284   ;
35285   return 0;
35286 }
35287 _ACEOF
35288 rm -f conftest.$ac_objext conftest$ac_exeext
35289 if { (ac_try="$ac_link"
35290 case "(($ac_try" in
35291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35292   *) ac_try_echo=$ac_try;;
35293 esac
35294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35295   (eval "$ac_link") 2>conftest.er1
35296   ac_status=$?
35297   grep -v '^ *+' conftest.er1 >conftest.err
35298   rm -f conftest.er1
35299   cat conftest.err >&5
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); } && {
35302          test -z "$ac_c_werror_flag" ||
35303          test ! -s conftest.err
35304        } && test -s conftest$ac_exeext &&
35305        $as_test_x conftest$ac_exeext; then
35306   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35307 else
35308   echo "$as_me: failed program was:" >&5
35309 sed 's/^/| /' conftest.$ac_ext >&5
35310
35311         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35312 fi
35313
35314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35315       conftest$ac_exeext conftest.$ac_ext
35316 LIBS=$ac_check_lib_save_LIBS
35317 fi
35318 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35319 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35320 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35321   ac_find_libraries="std"
35322 fi
35323
35324         fi
35325       fi
35326
35327       if test "x$ac_find_libraries" = "x"; then
35328                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35329 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35330
35331   ac_find_libraries=
35332   for ac_dir in  $SEARCH_LIB
35333   do
35334     for ac_extension in a so sl dylib dll.a; do
35335       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35336         ac_find_libraries=$ac_dir
35337         break 2
35338       fi
35339     done
35340   done
35341
35342         if test "x$ac_find_libraries" != "x"; then
35343           { echo "$as_me:$LINENO: result: yes" >&5
35344 echo "${ECHO_T}yes" >&6; }
35345         else
35346           { echo "$as_me:$LINENO: result: no" >&5
35347 echo "${ECHO_T}no" >&6; }
35348         fi
35349       fi
35350
35351 elif test $pkg_failed = untried; then
35352
35353       if test "x$ac_find_libraries" = "x"; then
35354                 if test "xXF86VidModeQueryExtension" != "x"; then
35355           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35356 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35357 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35358   echo $ECHO_N "(cached) $ECHO_C" >&6
35359 else
35360   ac_check_lib_save_LIBS=$LIBS
35361 LIBS="-lXxf86vm  $LIBS"
35362 cat >conftest.$ac_ext <<_ACEOF
35363 /* confdefs.h.  */
35364 _ACEOF
35365 cat confdefs.h >>conftest.$ac_ext
35366 cat >>conftest.$ac_ext <<_ACEOF
35367 /* end confdefs.h.  */
35368
35369 /* Override any GCC internal prototype to avoid an error.
35370    Use char because int might match the return type of a GCC
35371    builtin and then its argument prototype would still apply.  */
35372 #ifdef __cplusplus
35373 extern "C"
35374 #endif
35375 char XF86VidModeQueryExtension ();
35376 int
35377 main ()
35378 {
35379 return XF86VidModeQueryExtension ();
35380   ;
35381   return 0;
35382 }
35383 _ACEOF
35384 rm -f conftest.$ac_objext conftest$ac_exeext
35385 if { (ac_try="$ac_link"
35386 case "(($ac_try" in
35387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35388   *) ac_try_echo=$ac_try;;
35389 esac
35390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35391   (eval "$ac_link") 2>conftest.er1
35392   ac_status=$?
35393   grep -v '^ *+' conftest.er1 >conftest.err
35394   rm -f conftest.er1
35395   cat conftest.err >&5
35396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35397   (exit $ac_status); } && {
35398          test -z "$ac_c_werror_flag" ||
35399          test ! -s conftest.err
35400        } && test -s conftest$ac_exeext &&
35401        $as_test_x conftest$ac_exeext; then
35402   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35403 else
35404   echo "$as_me: failed program was:" >&5
35405 sed 's/^/| /' conftest.$ac_ext >&5
35406
35407         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35408 fi
35409
35410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35411       conftest$ac_exeext conftest.$ac_ext
35412 LIBS=$ac_check_lib_save_LIBS
35413 fi
35414 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35415 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35416 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35417   ac_find_libraries="std"
35418 fi
35419
35420         fi
35421       fi
35422
35423       if test "x$ac_find_libraries" = "x"; then
35424                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35425 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35426
35427   ac_find_libraries=
35428   for ac_dir in  $SEARCH_LIB
35429   do
35430     for ac_extension in a so sl dylib dll.a; do
35431       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35432         ac_find_libraries=$ac_dir
35433         break 2
35434       fi
35435     done
35436   done
35437
35438         if test "x$ac_find_libraries" != "x"; then
35439           { echo "$as_me:$LINENO: result: yes" >&5
35440 echo "${ECHO_T}yes" >&6; }
35441         else
35442           { echo "$as_me:$LINENO: result: no" >&5
35443 echo "${ECHO_T}no" >&6; }
35444         fi
35445       fi
35446
35447 else
35448         Xxf86vm_CFLAGS=$pkg_cv_Xxf86vm_CFLAGS
35449         Xxf86vm_LIBS=$pkg_cv_Xxf86vm_LIBS
35450         { echo "$as_me:$LINENO: result: yes" >&5
35451 echo "${ECHO_T}yes" >&6; }
35452
35453             ac_find_libraries="std"
35454
35455                                                 eval ac_find_cflags=\$Xxf86vm_CFLAGS
35456       eval fl_libs=\$Xxf86vm_LIBS
35457
35458                   for fl_path in $fl_libs
35459       do
35460         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35461                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35462         fi
35463       done
35464
35465 fi
35466
35467         if test "$ac_find_libraries" != "" ; then
35468
35469 for ac_header in X11/extensions/xf86vmode.h
35470 do
35471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35475   echo $ECHO_N "(cached) $ECHO_C" >&6
35476 else
35477   cat >conftest.$ac_ext <<_ACEOF
35478 /* confdefs.h.  */
35479 _ACEOF
35480 cat confdefs.h >>conftest.$ac_ext
35481 cat >>conftest.$ac_ext <<_ACEOF
35482 /* end confdefs.h.  */
35483
35484                                   #if HAVE_X11_XLIB_H
35485                                     #include <X11/Xlib.h>
35486                                   #endif
35487
35488
35489 #include <$ac_header>
35490 _ACEOF
35491 rm -f conftest.$ac_objext
35492 if { (ac_try="$ac_compile"
35493 case "(($ac_try" in
35494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495   *) ac_try_echo=$ac_try;;
35496 esac
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498   (eval "$ac_compile") 2>conftest.er1
35499   ac_status=$?
35500   grep -v '^ *+' conftest.er1 >conftest.err
35501   rm -f conftest.er1
35502   cat conftest.err >&5
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); } && {
35505          test -z "$ac_c_werror_flag" ||
35506          test ! -s conftest.err
35507        } && test -s conftest.$ac_objext; then
35508   eval "$as_ac_Header=yes"
35509 else
35510   echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35512
35513         eval "$as_ac_Header=no"
35514 fi
35515
35516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517 fi
35518 ac_res=`eval echo '${'$as_ac_Header'}'`
35519                { echo "$as_me:$LINENO: result: $ac_res" >&5
35520 echo "${ECHO_T}$ac_res" >&6; }
35521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35522   cat >>confdefs.h <<_ACEOF
35523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35524 _ACEOF
35525
35526                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35527
35528 fi
35529
35530 done
35531
35532         fi
35533     fi
35534 fi
35535
35536 if test "$wxUSE_DETECT_SM" = "yes"; then
35537     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
35538
35539   ac_find_libraries=
35540
35541     fl_pkgname=`echo "SM" | tr [:upper:] [:lower:]`
35542
35543
35544 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35545         if test -n "$ac_tool_prefix"; then
35546   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35547 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35550 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35551   echo $ECHO_N "(cached) $ECHO_C" >&6
35552 else
35553   case $PKG_CONFIG in
35554   [\\/]* | ?:[\\/]*)
35555   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35556   ;;
35557   *)
35558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35559 for as_dir in $PATH
35560 do
35561   IFS=$as_save_IFS
35562   test -z "$as_dir" && as_dir=.
35563   for ac_exec_ext in '' $ac_executable_extensions; do
35564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35565     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35567     break 2
35568   fi
35569 done
35570 done
35571 IFS=$as_save_IFS
35572
35573   ;;
35574 esac
35575 fi
35576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35577 if test -n "$PKG_CONFIG"; then
35578   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35579 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35580 else
35581   { echo "$as_me:$LINENO: result: no" >&5
35582 echo "${ECHO_T}no" >&6; }
35583 fi
35584
35585
35586 fi
35587 if test -z "$ac_cv_path_PKG_CONFIG"; then
35588   ac_pt_PKG_CONFIG=$PKG_CONFIG
35589   # Extract the first word of "pkg-config", so it can be a program name with args.
35590 set dummy pkg-config; ac_word=$2
35591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35593 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35594   echo $ECHO_N "(cached) $ECHO_C" >&6
35595 else
35596   case $ac_pt_PKG_CONFIG in
35597   [\\/]* | ?:[\\/]*)
35598   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35599   ;;
35600   *)
35601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35602 for as_dir in $PATH
35603 do
35604   IFS=$as_save_IFS
35605   test -z "$as_dir" && as_dir=.
35606   for ac_exec_ext in '' $ac_executable_extensions; do
35607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35608     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35610     break 2
35611   fi
35612 done
35613 done
35614 IFS=$as_save_IFS
35615
35616   ;;
35617 esac
35618 fi
35619 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35620 if test -n "$ac_pt_PKG_CONFIG"; then
35621   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35622 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35623 else
35624   { echo "$as_me:$LINENO: result: no" >&5
35625 echo "${ECHO_T}no" >&6; }
35626 fi
35627
35628   if test "x$ac_pt_PKG_CONFIG" = x; then
35629     PKG_CONFIG=""
35630   else
35631     case $cross_compiling:$ac_tool_warned in
35632 yes:)
35633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35634 whose name does not start with the host triplet.  If you think this
35635 configuration is useful to you, please write to autoconf@gnu.org." >&5
35636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35637 whose name does not start with the host triplet.  If you think this
35638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35639 ac_tool_warned=yes ;;
35640 esac
35641     PKG_CONFIG=$ac_pt_PKG_CONFIG
35642   fi
35643 else
35644   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35645 fi
35646
35647 fi
35648 if test -n "$PKG_CONFIG"; then
35649         _pkg_min_version=0.9.0
35650         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35651 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35652         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35653                 { echo "$as_me:$LINENO: result: yes" >&5
35654 echo "${ECHO_T}yes" >&6; }
35655         else
35656                 { echo "$as_me:$LINENO: result: no" >&5
35657 echo "${ECHO_T}no" >&6; }
35658                 PKG_CONFIG=""
35659         fi
35660
35661 fi 6> /dev/null
35662
35663 pkg_failed=no
35664 { echo "$as_me:$LINENO: checking for SM" >&5
35665 echo $ECHO_N "checking for SM... $ECHO_C" >&6; }
35666
35667 if test -n "$PKG_CONFIG"; then
35668     if test -n "$SM_CFLAGS"; then
35669         pkg_cv_SM_CFLAGS="$SM_CFLAGS"
35670     else
35671         if test -n "$PKG_CONFIG" && \
35672     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35673   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35674   ac_status=$?
35675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676   (exit $ac_status); }; then
35677   pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35678 else
35679   pkg_failed=yes
35680 fi
35681     fi
35682 else
35683         pkg_failed=untried
35684 fi
35685 if test -n "$PKG_CONFIG"; then
35686     if test -n "$SM_LIBS"; then
35687         pkg_cv_SM_LIBS="$SM_LIBS"
35688     else
35689         if test -n "$PKG_CONFIG" && \
35690     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35691   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35692   ac_status=$?
35693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694   (exit $ac_status); }; then
35695   pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35696 else
35697   pkg_failed=yes
35698 fi
35699     fi
35700 else
35701         pkg_failed=untried
35702 fi
35703
35704
35705
35706 if test $pkg_failed = yes; then
35707
35708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35709         _pkg_short_errors_supported=yes
35710 else
35711         _pkg_short_errors_supported=no
35712 fi
35713         if test $_pkg_short_errors_supported = yes; then
35714                 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35715         else
35716                 SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35717         fi
35718         # Put the nasty error message in config.log where it belongs
35719         echo "$SM_PKG_ERRORS" >&5
35720
35721
35722       if test "x$ac_find_libraries" = "x"; then
35723                 if test "xSmcOpenConnection" != "x"; then
35724           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35725 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35726 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35727   echo $ECHO_N "(cached) $ECHO_C" >&6
35728 else
35729   ac_check_lib_save_LIBS=$LIBS
35730 LIBS="-lSM  $LIBS"
35731 cat >conftest.$ac_ext <<_ACEOF
35732 /* confdefs.h.  */
35733 _ACEOF
35734 cat confdefs.h >>conftest.$ac_ext
35735 cat >>conftest.$ac_ext <<_ACEOF
35736 /* end confdefs.h.  */
35737
35738 /* Override any GCC internal prototype to avoid an error.
35739    Use char because int might match the return type of a GCC
35740    builtin and then its argument prototype would still apply.  */
35741 #ifdef __cplusplus
35742 extern "C"
35743 #endif
35744 char SmcOpenConnection ();
35745 int
35746 main ()
35747 {
35748 return SmcOpenConnection ();
35749   ;
35750   return 0;
35751 }
35752 _ACEOF
35753 rm -f conftest.$ac_objext conftest$ac_exeext
35754 if { (ac_try="$ac_link"
35755 case "(($ac_try" in
35756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35757   *) ac_try_echo=$ac_try;;
35758 esac
35759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35760   (eval "$ac_link") 2>conftest.er1
35761   ac_status=$?
35762   grep -v '^ *+' conftest.er1 >conftest.err
35763   rm -f conftest.er1
35764   cat conftest.err >&5
35765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766   (exit $ac_status); } && {
35767          test -z "$ac_c_werror_flag" ||
35768          test ! -s conftest.err
35769        } && test -s conftest$ac_exeext &&
35770        $as_test_x conftest$ac_exeext; then
35771   ac_cv_lib_SM_SmcOpenConnection=yes
35772 else
35773   echo "$as_me: failed program was:" >&5
35774 sed 's/^/| /' conftest.$ac_ext >&5
35775
35776         ac_cv_lib_SM_SmcOpenConnection=no
35777 fi
35778
35779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35780       conftest$ac_exeext conftest.$ac_ext
35781 LIBS=$ac_check_lib_save_LIBS
35782 fi
35783 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35784 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35785 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35786   ac_find_libraries="std"
35787 fi
35788
35789         fi
35790       fi
35791
35792       if test "x$ac_find_libraries" = "x"; then
35793                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35794 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35795
35796   ac_find_libraries=
35797   for ac_dir in  $SEARCH_LIB
35798   do
35799     for ac_extension in a so sl dylib dll.a; do
35800       if test -f "$ac_dir/libSM.$ac_extension"; then
35801         ac_find_libraries=$ac_dir
35802         break 2
35803       fi
35804     done
35805   done
35806
35807         if test "x$ac_find_libraries" != "x"; then
35808           { echo "$as_me:$LINENO: result: yes" >&5
35809 echo "${ECHO_T}yes" >&6; }
35810         else
35811           { echo "$as_me:$LINENO: result: no" >&5
35812 echo "${ECHO_T}no" >&6; }
35813         fi
35814       fi
35815
35816 elif test $pkg_failed = untried; then
35817
35818       if test "x$ac_find_libraries" = "x"; then
35819                 if test "xSmcOpenConnection" != "x"; then
35820           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35821 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35822 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825   ac_check_lib_save_LIBS=$LIBS
35826 LIBS="-lSM  $LIBS"
35827 cat >conftest.$ac_ext <<_ACEOF
35828 /* confdefs.h.  */
35829 _ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h.  */
35833
35834 /* Override any GCC internal prototype to avoid an error.
35835    Use char because int might match the return type of a GCC
35836    builtin and then its argument prototype would still apply.  */
35837 #ifdef __cplusplus
35838 extern "C"
35839 #endif
35840 char SmcOpenConnection ();
35841 int
35842 main ()
35843 {
35844 return SmcOpenConnection ();
35845   ;
35846   return 0;
35847 }
35848 _ACEOF
35849 rm -f conftest.$ac_objext conftest$ac_exeext
35850 if { (ac_try="$ac_link"
35851 case "(($ac_try" in
35852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35853   *) ac_try_echo=$ac_try;;
35854 esac
35855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35856   (eval "$ac_link") 2>conftest.er1
35857   ac_status=$?
35858   grep -v '^ *+' conftest.er1 >conftest.err
35859   rm -f conftest.er1
35860   cat conftest.err >&5
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); } && {
35863          test -z "$ac_c_werror_flag" ||
35864          test ! -s conftest.err
35865        } && test -s conftest$ac_exeext &&
35866        $as_test_x conftest$ac_exeext; then
35867   ac_cv_lib_SM_SmcOpenConnection=yes
35868 else
35869   echo "$as_me: failed program was:" >&5
35870 sed 's/^/| /' conftest.$ac_ext >&5
35871
35872         ac_cv_lib_SM_SmcOpenConnection=no
35873 fi
35874
35875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35876       conftest$ac_exeext conftest.$ac_ext
35877 LIBS=$ac_check_lib_save_LIBS
35878 fi
35879 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35880 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35881 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35882   ac_find_libraries="std"
35883 fi
35884
35885         fi
35886       fi
35887
35888       if test "x$ac_find_libraries" = "x"; then
35889                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35890 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35891
35892   ac_find_libraries=
35893   for ac_dir in  $SEARCH_LIB
35894   do
35895     for ac_extension in a so sl dylib dll.a; do
35896       if test -f "$ac_dir/libSM.$ac_extension"; then
35897         ac_find_libraries=$ac_dir
35898         break 2
35899       fi
35900     done
35901   done
35902
35903         if test "x$ac_find_libraries" != "x"; then
35904           { echo "$as_me:$LINENO: result: yes" >&5
35905 echo "${ECHO_T}yes" >&6; }
35906         else
35907           { echo "$as_me:$LINENO: result: no" >&5
35908 echo "${ECHO_T}no" >&6; }
35909         fi
35910       fi
35911
35912 else
35913         SM_CFLAGS=$pkg_cv_SM_CFLAGS
35914         SM_LIBS=$pkg_cv_SM_LIBS
35915         { echo "$as_me:$LINENO: result: yes" >&5
35916 echo "${ECHO_T}yes" >&6; }
35917
35918             ac_find_libraries="std"
35919
35920                                                 eval ac_find_cflags=\$SM_CFLAGS
35921       eval fl_libs=\$SM_LIBS
35922
35923                   for fl_path in $fl_libs
35924       do
35925         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35926                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35927         fi
35928       done
35929
35930 fi
35931
35932         if test "$ac_find_libraries" != "" ; then
35933             if test "$ac_find_libraries" != "std" ; then
35934
35935     if test "$ac_find_libraries" = "default location"; then
35936     ac_path_to_link=""
35937   else
35938     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35939     result=$?
35940     if test $result = 0; then
35941       ac_path_to_link=""
35942     else
35943       ac_path_to_link=" -L$ac_find_libraries"
35944     fi
35945   fi
35946
35947               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35948                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35949               fi
35950             fi
35951             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35952         else
35953             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35954 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35955             wxUSE_DETECT_SM="no"
35956         fi
35957     else
35958         wxUSE_DETECT_SM="no"
35959     fi
35960 fi
35961
35962
35963
35964 USE_OPENGL=0
35965 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
35966
35967
35968     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35969         OPENGL_LIBS="-framework OpenGL -framework AGL"
35970     elif test "$wxUSE_MSW" = 1; then
35971         OPENGL_LIBS="-lopengl32 -lglu32"
35972     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
35973
35974                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35975 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35976
35977 ac_find_includes=
35978 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
35979   do
35980     if test -f "$ac_dir/GL/gl.h"; then
35981       ac_find_includes=$ac_dir
35982       break
35983     fi
35984   done
35985
35986         if test "$ac_find_includes" != "" ; then
35987             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35988 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35989
35990     if test "x$ac_find_includes" = "x/usr/include"; then
35991     ac_path_to_include=""
35992   else
35993     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35994     result=$?
35995     if test $result = 0; then
35996       ac_path_to_include=""
35997     else
35998       ac_path_to_include=" -I$ac_find_includes"
35999     fi
36000   fi
36001
36002             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
36003         else
36004             { echo "$as_me:$LINENO: result: not found" >&5
36005 echo "${ECHO_T}not found" >&6; }
36006         fi
36007
36008         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
36009 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
36010 if test "${ac_cv_header_GL_gl_h+set}" = set; then
36011   echo $ECHO_N "(cached) $ECHO_C" >&6
36012 else
36013   cat >conftest.$ac_ext <<_ACEOF
36014 /* confdefs.h.  */
36015 _ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h.  */
36019
36020
36021 #include <GL/gl.h>
36022 _ACEOF
36023 rm -f conftest.$ac_objext
36024 if { (ac_try="$ac_compile"
36025 case "(($ac_try" in
36026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36027   *) ac_try_echo=$ac_try;;
36028 esac
36029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36030   (eval "$ac_compile") 2>conftest.er1
36031   ac_status=$?
36032   grep -v '^ *+' conftest.er1 >conftest.err
36033   rm -f conftest.er1
36034   cat conftest.err >&5
36035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036   (exit $ac_status); } && {
36037          test -z "$ac_c_werror_flag" ||
36038          test ! -s conftest.err
36039        } && test -s conftest.$ac_objext; then
36040   ac_cv_header_GL_gl_h=yes
36041 else
36042   echo "$as_me: failed program was:" >&5
36043 sed 's/^/| /' conftest.$ac_ext >&5
36044
36045         ac_cv_header_GL_gl_h=no
36046 fi
36047
36048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36049 fi
36050 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36051 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36052 if test $ac_cv_header_GL_gl_h = yes; then
36053
36054             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36055 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36056 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36057   echo $ECHO_N "(cached) $ECHO_C" >&6
36058 else
36059   cat >conftest.$ac_ext <<_ACEOF
36060 /* confdefs.h.  */
36061 _ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h.  */
36065
36066
36067 #include <GL/glu.h>
36068 _ACEOF
36069 rm -f conftest.$ac_objext
36070 if { (ac_try="$ac_compile"
36071 case "(($ac_try" in
36072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36073   *) ac_try_echo=$ac_try;;
36074 esac
36075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36076   (eval "$ac_compile") 2>conftest.er1
36077   ac_status=$?
36078   grep -v '^ *+' conftest.er1 >conftest.err
36079   rm -f conftest.er1
36080   cat conftest.err >&5
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); } && {
36083          test -z "$ac_c_werror_flag" ||
36084          test ! -s conftest.err
36085        } && test -s conftest.$ac_objext; then
36086   ac_cv_header_GL_glu_h=yes
36087 else
36088   echo "$as_me: failed program was:" >&5
36089 sed 's/^/| /' conftest.$ac_ext >&5
36090
36091         ac_cv_header_GL_glu_h=no
36092 fi
36093
36094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36095 fi
36096 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36097 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36098 if test $ac_cv_header_GL_glu_h = yes; then
36099
36100                 found_gl=0
36101
36102
36103   ac_find_libraries=
36104
36105     fl_pkgname=`echo "GL" | tr [:upper:] [:lower:]`
36106
36107
36108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36109         if test -n "$ac_tool_prefix"; then
36110   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36115   echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117   case $PKG_CONFIG in
36118   [\\/]* | ?:[\\/]*)
36119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36120   ;;
36121   *)
36122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36123 for as_dir in $PATH
36124 do
36125   IFS=$as_save_IFS
36126   test -z "$as_dir" && as_dir=.
36127   for ac_exec_ext in '' $ac_executable_extensions; do
36128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36131     break 2
36132   fi
36133 done
36134 done
36135 IFS=$as_save_IFS
36136
36137   ;;
36138 esac
36139 fi
36140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36141 if test -n "$PKG_CONFIG"; then
36142   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36143 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36144 else
36145   { echo "$as_me:$LINENO: result: no" >&5
36146 echo "${ECHO_T}no" >&6; }
36147 fi
36148
36149
36150 fi
36151 if test -z "$ac_cv_path_PKG_CONFIG"; then
36152   ac_pt_PKG_CONFIG=$PKG_CONFIG
36153   # Extract the first word of "pkg-config", so it can be a program name with args.
36154 set dummy pkg-config; ac_word=$2
36155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36157 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36158   echo $ECHO_N "(cached) $ECHO_C" >&6
36159 else
36160   case $ac_pt_PKG_CONFIG in
36161   [\\/]* | ?:[\\/]*)
36162   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36163   ;;
36164   *)
36165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36166 for as_dir in $PATH
36167 do
36168   IFS=$as_save_IFS
36169   test -z "$as_dir" && as_dir=.
36170   for ac_exec_ext in '' $ac_executable_extensions; do
36171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36172     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36174     break 2
36175   fi
36176 done
36177 done
36178 IFS=$as_save_IFS
36179
36180   ;;
36181 esac
36182 fi
36183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36184 if test -n "$ac_pt_PKG_CONFIG"; then
36185   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36186 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36187 else
36188   { echo "$as_me:$LINENO: result: no" >&5
36189 echo "${ECHO_T}no" >&6; }
36190 fi
36191
36192   if test "x$ac_pt_PKG_CONFIG" = x; then
36193     PKG_CONFIG=""
36194   else
36195     case $cross_compiling:$ac_tool_warned in
36196 yes:)
36197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36198 whose name does not start with the host triplet.  If you think this
36199 configuration is useful to you, please write to autoconf@gnu.org." >&5
36200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36201 whose name does not start with the host triplet.  If you think this
36202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36203 ac_tool_warned=yes ;;
36204 esac
36205     PKG_CONFIG=$ac_pt_PKG_CONFIG
36206   fi
36207 else
36208   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36209 fi
36210
36211 fi
36212 if test -n "$PKG_CONFIG"; then
36213         _pkg_min_version=0.9.0
36214         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36215 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36216         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36217                 { echo "$as_me:$LINENO: result: yes" >&5
36218 echo "${ECHO_T}yes" >&6; }
36219         else
36220                 { echo "$as_me:$LINENO: result: no" >&5
36221 echo "${ECHO_T}no" >&6; }
36222                 PKG_CONFIG=""
36223         fi
36224
36225 fi 6> /dev/null
36226
36227 pkg_failed=no
36228 { echo "$as_me:$LINENO: checking for GL" >&5
36229 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
36230
36231 if test -n "$PKG_CONFIG"; then
36232     if test -n "$GL_CFLAGS"; then
36233         pkg_cv_GL_CFLAGS="$GL_CFLAGS"
36234     else
36235         if test -n "$PKG_CONFIG" && \
36236     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36237   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36238   ac_status=$?
36239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240   (exit $ac_status); }; then
36241   pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36242 else
36243   pkg_failed=yes
36244 fi
36245     fi
36246 else
36247         pkg_failed=untried
36248 fi
36249 if test -n "$PKG_CONFIG"; then
36250     if test -n "$GL_LIBS"; then
36251         pkg_cv_GL_LIBS="$GL_LIBS"
36252     else
36253         if test -n "$PKG_CONFIG" && \
36254     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36255   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36256   ac_status=$?
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); }; then
36259   pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36260 else
36261   pkg_failed=yes
36262 fi
36263     fi
36264 else
36265         pkg_failed=untried
36266 fi
36267
36268
36269
36270 if test $pkg_failed = yes; then
36271
36272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36273         _pkg_short_errors_supported=yes
36274 else
36275         _pkg_short_errors_supported=no
36276 fi
36277         if test $_pkg_short_errors_supported = yes; then
36278                 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36279         else
36280                 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36281         fi
36282         # Put the nasty error message in config.log where it belongs
36283         echo "$GL_PKG_ERRORS" >&5
36284
36285
36286       if test "x$ac_find_libraries" = "x"; then
36287                 if test "xglBegin" != "x"; then
36288           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36289 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36290 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36291   echo $ECHO_N "(cached) $ECHO_C" >&6
36292 else
36293   ac_check_lib_save_LIBS=$LIBS
36294 LIBS="-lGL  $LIBS"
36295 cat >conftest.$ac_ext <<_ACEOF
36296 /* confdefs.h.  */
36297 _ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h.  */
36301
36302 /* Override any GCC internal prototype to avoid an error.
36303    Use char because int might match the return type of a GCC
36304    builtin and then its argument prototype would still apply.  */
36305 #ifdef __cplusplus
36306 extern "C"
36307 #endif
36308 char glBegin ();
36309 int
36310 main ()
36311 {
36312 return glBegin ();
36313   ;
36314   return 0;
36315 }
36316 _ACEOF
36317 rm -f conftest.$ac_objext conftest$ac_exeext
36318 if { (ac_try="$ac_link"
36319 case "(($ac_try" in
36320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321   *) ac_try_echo=$ac_try;;
36322 esac
36323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36324   (eval "$ac_link") 2>conftest.er1
36325   ac_status=$?
36326   grep -v '^ *+' conftest.er1 >conftest.err
36327   rm -f conftest.er1
36328   cat conftest.err >&5
36329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); } && {
36331          test -z "$ac_c_werror_flag" ||
36332          test ! -s conftest.err
36333        } && test -s conftest$ac_exeext &&
36334        $as_test_x conftest$ac_exeext; then
36335   ac_cv_lib_GL_glBegin=yes
36336 else
36337   echo "$as_me: failed program was:" >&5
36338 sed 's/^/| /' conftest.$ac_ext >&5
36339
36340         ac_cv_lib_GL_glBegin=no
36341 fi
36342
36343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36344       conftest$ac_exeext conftest.$ac_ext
36345 LIBS=$ac_check_lib_save_LIBS
36346 fi
36347 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36348 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36349 if test $ac_cv_lib_GL_glBegin = yes; then
36350   ac_find_libraries="std"
36351 fi
36352
36353         fi
36354       fi
36355
36356       if test "x$ac_find_libraries" = "x"; then
36357                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36358 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36359
36360   ac_find_libraries=
36361   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36362   do
36363     for ac_extension in a so sl dylib dll.a; do
36364       if test -f "$ac_dir/libGL.$ac_extension"; then
36365         ac_find_libraries=$ac_dir
36366         break 2
36367       fi
36368     done
36369   done
36370
36371         if test "x$ac_find_libraries" != "x"; then
36372           { echo "$as_me:$LINENO: result: yes" >&5
36373 echo "${ECHO_T}yes" >&6; }
36374         else
36375           { echo "$as_me:$LINENO: result: no" >&5
36376 echo "${ECHO_T}no" >&6; }
36377         fi
36378       fi
36379
36380 elif test $pkg_failed = untried; then
36381
36382       if test "x$ac_find_libraries" = "x"; then
36383                 if test "xglBegin" != "x"; then
36384           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36385 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36386 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36387   echo $ECHO_N "(cached) $ECHO_C" >&6
36388 else
36389   ac_check_lib_save_LIBS=$LIBS
36390 LIBS="-lGL  $LIBS"
36391 cat >conftest.$ac_ext <<_ACEOF
36392 /* confdefs.h.  */
36393 _ACEOF
36394 cat confdefs.h >>conftest.$ac_ext
36395 cat >>conftest.$ac_ext <<_ACEOF
36396 /* end confdefs.h.  */
36397
36398 /* Override any GCC internal prototype to avoid an error.
36399    Use char because int might match the return type of a GCC
36400    builtin and then its argument prototype would still apply.  */
36401 #ifdef __cplusplus
36402 extern "C"
36403 #endif
36404 char glBegin ();
36405 int
36406 main ()
36407 {
36408 return glBegin ();
36409   ;
36410   return 0;
36411 }
36412 _ACEOF
36413 rm -f conftest.$ac_objext conftest$ac_exeext
36414 if { (ac_try="$ac_link"
36415 case "(($ac_try" in
36416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417   *) ac_try_echo=$ac_try;;
36418 esac
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420   (eval "$ac_link") 2>conftest.er1
36421   ac_status=$?
36422   grep -v '^ *+' conftest.er1 >conftest.err
36423   rm -f conftest.er1
36424   cat conftest.err >&5
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); } && {
36427          test -z "$ac_c_werror_flag" ||
36428          test ! -s conftest.err
36429        } && test -s conftest$ac_exeext &&
36430        $as_test_x conftest$ac_exeext; then
36431   ac_cv_lib_GL_glBegin=yes
36432 else
36433   echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36435
36436         ac_cv_lib_GL_glBegin=no
36437 fi
36438
36439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36440       conftest$ac_exeext conftest.$ac_ext
36441 LIBS=$ac_check_lib_save_LIBS
36442 fi
36443 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36444 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36445 if test $ac_cv_lib_GL_glBegin = yes; then
36446   ac_find_libraries="std"
36447 fi
36448
36449         fi
36450       fi
36451
36452       if test "x$ac_find_libraries" = "x"; then
36453                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36454 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36455
36456   ac_find_libraries=
36457   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36458   do
36459     for ac_extension in a so sl dylib dll.a; do
36460       if test -f "$ac_dir/libGL.$ac_extension"; then
36461         ac_find_libraries=$ac_dir
36462         break 2
36463       fi
36464     done
36465   done
36466
36467         if test "x$ac_find_libraries" != "x"; then
36468           { echo "$as_me:$LINENO: result: yes" >&5
36469 echo "${ECHO_T}yes" >&6; }
36470         else
36471           { echo "$as_me:$LINENO: result: no" >&5
36472 echo "${ECHO_T}no" >&6; }
36473         fi
36474       fi
36475
36476 else
36477         GL_CFLAGS=$pkg_cv_GL_CFLAGS
36478         GL_LIBS=$pkg_cv_GL_LIBS
36479         { echo "$as_me:$LINENO: result: yes" >&5
36480 echo "${ECHO_T}yes" >&6; }
36481
36482             ac_find_libraries="std"
36483
36484                                                 eval ac_find_cflags=\$GL_CFLAGS
36485       eval fl_libs=\$GL_LIBS
36486
36487                   for fl_path in $fl_libs
36488       do
36489         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36490                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36491         fi
36492       done
36493
36494 fi
36495
36496                 if test "$ac_find_libraries" != "" ; then
36497                     if test "$ac_find_libraries" != "std" ; then
36498
36499     if test "$ac_find_libraries" = "default location"; then
36500     ac_path_to_link=""
36501   else
36502     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36503     result=$?
36504     if test $result = 0; then
36505       ac_path_to_link=""
36506     else
36507       ac_path_to_link=" -L$ac_find_libraries"
36508     fi
36509   fi
36510
36511                       if test "$ac_path_to_link" != " -L/usr/lib" ; then
36512                         LDFLAGS_GL="$ac_path_to_link"
36513                       fi
36514                     fi
36515
36516
36517   ac_find_libraries=
36518
36519     fl_pkgname=`echo "GLU" | tr [:upper:] [:lower:]`
36520
36521
36522 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36523         if test -n "$ac_tool_prefix"; then
36524   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36525 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36528 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36529   echo $ECHO_N "(cached) $ECHO_C" >&6
36530 else
36531   case $PKG_CONFIG in
36532   [\\/]* | ?:[\\/]*)
36533   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36534   ;;
36535   *)
36536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36537 for as_dir in $PATH
36538 do
36539   IFS=$as_save_IFS
36540   test -z "$as_dir" && as_dir=.
36541   for ac_exec_ext in '' $ac_executable_extensions; do
36542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36543     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36545     break 2
36546   fi
36547 done
36548 done
36549 IFS=$as_save_IFS
36550
36551   ;;
36552 esac
36553 fi
36554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36555 if test -n "$PKG_CONFIG"; then
36556   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36557 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36558 else
36559   { echo "$as_me:$LINENO: result: no" >&5
36560 echo "${ECHO_T}no" >&6; }
36561 fi
36562
36563
36564 fi
36565 if test -z "$ac_cv_path_PKG_CONFIG"; then
36566   ac_pt_PKG_CONFIG=$PKG_CONFIG
36567   # Extract the first word of "pkg-config", so it can be a program name with args.
36568 set dummy pkg-config; ac_word=$2
36569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36571 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36572   echo $ECHO_N "(cached) $ECHO_C" >&6
36573 else
36574   case $ac_pt_PKG_CONFIG in
36575   [\\/]* | ?:[\\/]*)
36576   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36577   ;;
36578   *)
36579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36580 for as_dir in $PATH
36581 do
36582   IFS=$as_save_IFS
36583   test -z "$as_dir" && as_dir=.
36584   for ac_exec_ext in '' $ac_executable_extensions; do
36585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36586     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36588     break 2
36589   fi
36590 done
36591 done
36592 IFS=$as_save_IFS
36593
36594   ;;
36595 esac
36596 fi
36597 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36598 if test -n "$ac_pt_PKG_CONFIG"; then
36599   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36600 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36601 else
36602   { echo "$as_me:$LINENO: result: no" >&5
36603 echo "${ECHO_T}no" >&6; }
36604 fi
36605
36606   if test "x$ac_pt_PKG_CONFIG" = x; then
36607     PKG_CONFIG=""
36608   else
36609     case $cross_compiling:$ac_tool_warned in
36610 yes:)
36611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36612 whose name does not start with the host triplet.  If you think this
36613 configuration is useful to you, please write to autoconf@gnu.org." >&5
36614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36615 whose name does not start with the host triplet.  If you think this
36616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36617 ac_tool_warned=yes ;;
36618 esac
36619     PKG_CONFIG=$ac_pt_PKG_CONFIG
36620   fi
36621 else
36622   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36623 fi
36624
36625 fi
36626 if test -n "$PKG_CONFIG"; then
36627         _pkg_min_version=0.9.0
36628         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36629 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36630         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36631                 { echo "$as_me:$LINENO: result: yes" >&5
36632 echo "${ECHO_T}yes" >&6; }
36633         else
36634                 { echo "$as_me:$LINENO: result: no" >&5
36635 echo "${ECHO_T}no" >&6; }
36636                 PKG_CONFIG=""
36637         fi
36638
36639 fi 6> /dev/null
36640
36641 pkg_failed=no
36642 { echo "$as_me:$LINENO: checking for GLU" >&5
36643 echo $ECHO_N "checking for GLU... $ECHO_C" >&6; }
36644
36645 if test -n "$PKG_CONFIG"; then
36646     if test -n "$GLU_CFLAGS"; then
36647         pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
36648     else
36649         if test -n "$PKG_CONFIG" && \
36650     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36651   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36652   ac_status=$?
36653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654   (exit $ac_status); }; then
36655   pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36656 else
36657   pkg_failed=yes
36658 fi
36659     fi
36660 else
36661         pkg_failed=untried
36662 fi
36663 if test -n "$PKG_CONFIG"; then
36664     if test -n "$GLU_LIBS"; then
36665         pkg_cv_GLU_LIBS="$GLU_LIBS"
36666     else
36667         if test -n "$PKG_CONFIG" && \
36668     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36669   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36670   ac_status=$?
36671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672   (exit $ac_status); }; then
36673   pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36674 else
36675   pkg_failed=yes
36676 fi
36677     fi
36678 else
36679         pkg_failed=untried
36680 fi
36681
36682
36683
36684 if test $pkg_failed = yes; then
36685
36686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36687         _pkg_short_errors_supported=yes
36688 else
36689         _pkg_short_errors_supported=no
36690 fi
36691         if test $_pkg_short_errors_supported = yes; then
36692                 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36693         else
36694                 GLU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36695         fi
36696         # Put the nasty error message in config.log where it belongs
36697         echo "$GLU_PKG_ERRORS" >&5
36698
36699
36700       if test "x$ac_find_libraries" = "x"; then
36701                 if test "xgluBeginCurve" != "x"; then
36702           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36703 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36704 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36705   echo $ECHO_N "(cached) $ECHO_C" >&6
36706 else
36707   ac_check_lib_save_LIBS=$LIBS
36708 LIBS="-lGLU  $LIBS"
36709 cat >conftest.$ac_ext <<_ACEOF
36710 /* confdefs.h.  */
36711 _ACEOF
36712 cat confdefs.h >>conftest.$ac_ext
36713 cat >>conftest.$ac_ext <<_ACEOF
36714 /* end confdefs.h.  */
36715
36716 /* Override any GCC internal prototype to avoid an error.
36717    Use char because int might match the return type of a GCC
36718    builtin and then its argument prototype would still apply.  */
36719 #ifdef __cplusplus
36720 extern "C"
36721 #endif
36722 char gluBeginCurve ();
36723 int
36724 main ()
36725 {
36726 return gluBeginCurve ();
36727   ;
36728   return 0;
36729 }
36730 _ACEOF
36731 rm -f conftest.$ac_objext conftest$ac_exeext
36732 if { (ac_try="$ac_link"
36733 case "(($ac_try" in
36734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36735   *) ac_try_echo=$ac_try;;
36736 esac
36737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36738   (eval "$ac_link") 2>conftest.er1
36739   ac_status=$?
36740   grep -v '^ *+' conftest.er1 >conftest.err
36741   rm -f conftest.er1
36742   cat conftest.err >&5
36743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744   (exit $ac_status); } && {
36745          test -z "$ac_c_werror_flag" ||
36746          test ! -s conftest.err
36747        } && test -s conftest$ac_exeext &&
36748        $as_test_x conftest$ac_exeext; then
36749   ac_cv_lib_GLU_gluBeginCurve=yes
36750 else
36751   echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36753
36754         ac_cv_lib_GLU_gluBeginCurve=no
36755 fi
36756
36757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36758       conftest$ac_exeext conftest.$ac_ext
36759 LIBS=$ac_check_lib_save_LIBS
36760 fi
36761 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36762 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36763 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36764   ac_find_libraries="std"
36765 fi
36766
36767         fi
36768       fi
36769
36770       if test "x$ac_find_libraries" = "x"; then
36771                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36772 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36773
36774   ac_find_libraries=
36775   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36776   do
36777     for ac_extension in a so sl dylib dll.a; do
36778       if test -f "$ac_dir/libGLU.$ac_extension"; then
36779         ac_find_libraries=$ac_dir
36780         break 2
36781       fi
36782     done
36783   done
36784
36785         if test "x$ac_find_libraries" != "x"; then
36786           { echo "$as_me:$LINENO: result: yes" >&5
36787 echo "${ECHO_T}yes" >&6; }
36788         else
36789           { echo "$as_me:$LINENO: result: no" >&5
36790 echo "${ECHO_T}no" >&6; }
36791         fi
36792       fi
36793
36794 elif test $pkg_failed = untried; then
36795
36796       if test "x$ac_find_libraries" = "x"; then
36797                 if test "xgluBeginCurve" != "x"; then
36798           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36799 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36800 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36801   echo $ECHO_N "(cached) $ECHO_C" >&6
36802 else
36803   ac_check_lib_save_LIBS=$LIBS
36804 LIBS="-lGLU  $LIBS"
36805 cat >conftest.$ac_ext <<_ACEOF
36806 /* confdefs.h.  */
36807 _ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h.  */
36811
36812 /* Override any GCC internal prototype to avoid an error.
36813    Use char because int might match the return type of a GCC
36814    builtin and then its argument prototype would still apply.  */
36815 #ifdef __cplusplus
36816 extern "C"
36817 #endif
36818 char gluBeginCurve ();
36819 int
36820 main ()
36821 {
36822 return gluBeginCurve ();
36823   ;
36824   return 0;
36825 }
36826 _ACEOF
36827 rm -f conftest.$ac_objext conftest$ac_exeext
36828 if { (ac_try="$ac_link"
36829 case "(($ac_try" in
36830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36831   *) ac_try_echo=$ac_try;;
36832 esac
36833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36834   (eval "$ac_link") 2>conftest.er1
36835   ac_status=$?
36836   grep -v '^ *+' conftest.er1 >conftest.err
36837   rm -f conftest.er1
36838   cat conftest.err >&5
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); } && {
36841          test -z "$ac_c_werror_flag" ||
36842          test ! -s conftest.err
36843        } && test -s conftest$ac_exeext &&
36844        $as_test_x conftest$ac_exeext; then
36845   ac_cv_lib_GLU_gluBeginCurve=yes
36846 else
36847   echo "$as_me: failed program was:" >&5
36848 sed 's/^/| /' conftest.$ac_ext >&5
36849
36850         ac_cv_lib_GLU_gluBeginCurve=no
36851 fi
36852
36853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36854       conftest$ac_exeext conftest.$ac_ext
36855 LIBS=$ac_check_lib_save_LIBS
36856 fi
36857 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36858 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36859 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36860   ac_find_libraries="std"
36861 fi
36862
36863         fi
36864       fi
36865
36866       if test "x$ac_find_libraries" = "x"; then
36867                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36868 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36869
36870   ac_find_libraries=
36871   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36872   do
36873     for ac_extension in a so sl dylib dll.a; do
36874       if test -f "$ac_dir/libGLU.$ac_extension"; then
36875         ac_find_libraries=$ac_dir
36876         break 2
36877       fi
36878     done
36879   done
36880
36881         if test "x$ac_find_libraries" != "x"; then
36882           { echo "$as_me:$LINENO: result: yes" >&5
36883 echo "${ECHO_T}yes" >&6; }
36884         else
36885           { echo "$as_me:$LINENO: result: no" >&5
36886 echo "${ECHO_T}no" >&6; }
36887         fi
36888       fi
36889
36890 else
36891         GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
36892         GLU_LIBS=$pkg_cv_GLU_LIBS
36893         { echo "$as_me:$LINENO: result: yes" >&5
36894 echo "${ECHO_T}yes" >&6; }
36895
36896             ac_find_libraries="std"
36897
36898                                                 eval ac_find_cflags=\$GLU_CFLAGS
36899       eval fl_libs=\$GLU_LIBS
36900
36901                   for fl_path in $fl_libs
36902       do
36903         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36904                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36905         fi
36906       done
36907
36908 fi
36909
36910                     if test "$ac_find_libraries" != "" ; then
36911                       if test "$ac_find_libraries" != "std" ; then
36912
36913     if test "$ac_find_libraries" = "default location"; then
36914     ac_path_to_link=""
36915   else
36916     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36917     result=$?
36918     if test $result = 0; then
36919       ac_path_to_link=""
36920     else
36921       ac_path_to_link=" -L$ac_find_libraries"
36922     fi
36923   fi
36924
36925                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36926                                 "$ac_path_to_link" != "$LDFLAGS_GL" ; then
36927                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36928                         fi
36929                       fi
36930
36931                         found_gl=1
36932                         OPENGL_LIBS="-lGL -lGLU"
36933                     fi
36934                 fi
36935
36936                 if test "$found_gl" != 1; then
36937
36938   ac_find_libraries=
36939
36940     fl_pkgname=`echo "MesaGL" | tr [:upper:] [:lower:]`
36941
36942
36943 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36944         if test -n "$ac_tool_prefix"; then
36945   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36946 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36950   echo $ECHO_N "(cached) $ECHO_C" >&6
36951 else
36952   case $PKG_CONFIG in
36953   [\\/]* | ?:[\\/]*)
36954   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36955   ;;
36956   *)
36957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36958 for as_dir in $PATH
36959 do
36960   IFS=$as_save_IFS
36961   test -z "$as_dir" && as_dir=.
36962   for ac_exec_ext in '' $ac_executable_extensions; do
36963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36964     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36966     break 2
36967   fi
36968 done
36969 done
36970 IFS=$as_save_IFS
36971
36972   ;;
36973 esac
36974 fi
36975 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36976 if test -n "$PKG_CONFIG"; then
36977   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36978 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36979 else
36980   { echo "$as_me:$LINENO: result: no" >&5
36981 echo "${ECHO_T}no" >&6; }
36982 fi
36983
36984
36985 fi
36986 if test -z "$ac_cv_path_PKG_CONFIG"; then
36987   ac_pt_PKG_CONFIG=$PKG_CONFIG
36988   # Extract the first word of "pkg-config", so it can be a program name with args.
36989 set dummy pkg-config; ac_word=$2
36990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36992 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36993   echo $ECHO_N "(cached) $ECHO_C" >&6
36994 else
36995   case $ac_pt_PKG_CONFIG in
36996   [\\/]* | ?:[\\/]*)
36997   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36998   ;;
36999   *)
37000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37001 for as_dir in $PATH
37002 do
37003   IFS=$as_save_IFS
37004   test -z "$as_dir" && as_dir=.
37005   for ac_exec_ext in '' $ac_executable_extensions; do
37006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37007     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37009     break 2
37010   fi
37011 done
37012 done
37013 IFS=$as_save_IFS
37014
37015   ;;
37016 esac
37017 fi
37018 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37019 if test -n "$ac_pt_PKG_CONFIG"; then
37020   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37021 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37022 else
37023   { echo "$as_me:$LINENO: result: no" >&5
37024 echo "${ECHO_T}no" >&6; }
37025 fi
37026
37027   if test "x$ac_pt_PKG_CONFIG" = x; then
37028     PKG_CONFIG=""
37029   else
37030     case $cross_compiling:$ac_tool_warned in
37031 yes:)
37032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37033 whose name does not start with the host triplet.  If you think this
37034 configuration is useful to you, please write to autoconf@gnu.org." >&5
37035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37036 whose name does not start with the host triplet.  If you think this
37037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37038 ac_tool_warned=yes ;;
37039 esac
37040     PKG_CONFIG=$ac_pt_PKG_CONFIG
37041   fi
37042 else
37043   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37044 fi
37045
37046 fi
37047 if test -n "$PKG_CONFIG"; then
37048         _pkg_min_version=0.9.0
37049         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37050 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37051         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37052                 { echo "$as_me:$LINENO: result: yes" >&5
37053 echo "${ECHO_T}yes" >&6; }
37054         else
37055                 { echo "$as_me:$LINENO: result: no" >&5
37056 echo "${ECHO_T}no" >&6; }
37057                 PKG_CONFIG=""
37058         fi
37059
37060 fi 6> /dev/null
37061
37062 pkg_failed=no
37063 { echo "$as_me:$LINENO: checking for MesaGL" >&5
37064 echo $ECHO_N "checking for MesaGL... $ECHO_C" >&6; }
37065
37066 if test -n "$PKG_CONFIG"; then
37067     if test -n "$MesaGL_CFLAGS"; then
37068         pkg_cv_MesaGL_CFLAGS="$MesaGL_CFLAGS"
37069     else
37070         if test -n "$PKG_CONFIG" && \
37071     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37072   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37073   ac_status=$?
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); }; then
37076   pkg_cv_MesaGL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
37077 else
37078   pkg_failed=yes
37079 fi
37080     fi
37081 else
37082         pkg_failed=untried
37083 fi
37084 if test -n "$PKG_CONFIG"; then
37085     if test -n "$MesaGL_LIBS"; then
37086         pkg_cv_MesaGL_LIBS="$MesaGL_LIBS"
37087     else
37088         if test -n "$PKG_CONFIG" && \
37089     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37090   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37091   ac_status=$?
37092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093   (exit $ac_status); }; then
37094   pkg_cv_MesaGL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
37095 else
37096   pkg_failed=yes
37097 fi
37098     fi
37099 else
37100         pkg_failed=untried
37101 fi
37102
37103
37104
37105 if test $pkg_failed = yes; then
37106
37107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37108         _pkg_short_errors_supported=yes
37109 else
37110         _pkg_short_errors_supported=no
37111 fi
37112         if test $_pkg_short_errors_supported = yes; then
37113                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
37114         else
37115                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
37116         fi
37117         # Put the nasty error message in config.log where it belongs
37118         echo "$MesaGL_PKG_ERRORS" >&5
37119
37120
37121       if test "x$ac_find_libraries" = "x"; then
37122                 if test "xglEnable" != "x"; then
37123           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37124 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37125 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37126   echo $ECHO_N "(cached) $ECHO_C" >&6
37127 else
37128   ac_check_lib_save_LIBS=$LIBS
37129 LIBS="-lMesaGL  $LIBS"
37130 cat >conftest.$ac_ext <<_ACEOF
37131 /* confdefs.h.  */
37132 _ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h.  */
37136
37137 /* Override any GCC internal prototype to avoid an error.
37138    Use char because int might match the return type of a GCC
37139    builtin and then its argument prototype would still apply.  */
37140 #ifdef __cplusplus
37141 extern "C"
37142 #endif
37143 char glEnable ();
37144 int
37145 main ()
37146 {
37147 return glEnable ();
37148   ;
37149   return 0;
37150 }
37151 _ACEOF
37152 rm -f conftest.$ac_objext conftest$ac_exeext
37153 if { (ac_try="$ac_link"
37154 case "(($ac_try" in
37155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37156   *) ac_try_echo=$ac_try;;
37157 esac
37158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37159   (eval "$ac_link") 2>conftest.er1
37160   ac_status=$?
37161   grep -v '^ *+' conftest.er1 >conftest.err
37162   rm -f conftest.er1
37163   cat conftest.err >&5
37164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165   (exit $ac_status); } && {
37166          test -z "$ac_c_werror_flag" ||
37167          test ! -s conftest.err
37168        } && test -s conftest$ac_exeext &&
37169        $as_test_x conftest$ac_exeext; then
37170   ac_cv_lib_MesaGL_glEnable=yes
37171 else
37172   echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37174
37175         ac_cv_lib_MesaGL_glEnable=no
37176 fi
37177
37178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37179       conftest$ac_exeext conftest.$ac_ext
37180 LIBS=$ac_check_lib_save_LIBS
37181 fi
37182 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37183 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37184 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37185   ac_find_libraries="std"
37186 fi
37187
37188         fi
37189       fi
37190
37191       if test "x$ac_find_libraries" = "x"; then
37192                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37193 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37194
37195   ac_find_libraries=
37196   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37197   do
37198     for ac_extension in a so sl dylib dll.a; do
37199       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37200         ac_find_libraries=$ac_dir
37201         break 2
37202       fi
37203     done
37204   done
37205
37206         if test "x$ac_find_libraries" != "x"; then
37207           { echo "$as_me:$LINENO: result: yes" >&5
37208 echo "${ECHO_T}yes" >&6; }
37209         else
37210           { echo "$as_me:$LINENO: result: no" >&5
37211 echo "${ECHO_T}no" >&6; }
37212         fi
37213       fi
37214
37215 elif test $pkg_failed = untried; then
37216
37217       if test "x$ac_find_libraries" = "x"; then
37218                 if test "xglEnable" != "x"; then
37219           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37220 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37221 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37222   echo $ECHO_N "(cached) $ECHO_C" >&6
37223 else
37224   ac_check_lib_save_LIBS=$LIBS
37225 LIBS="-lMesaGL  $LIBS"
37226 cat >conftest.$ac_ext <<_ACEOF
37227 /* confdefs.h.  */
37228 _ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h.  */
37232
37233 /* Override any GCC internal prototype to avoid an error.
37234    Use char because int might match the return type of a GCC
37235    builtin and then its argument prototype would still apply.  */
37236 #ifdef __cplusplus
37237 extern "C"
37238 #endif
37239 char glEnable ();
37240 int
37241 main ()
37242 {
37243 return glEnable ();
37244   ;
37245   return 0;
37246 }
37247 _ACEOF
37248 rm -f conftest.$ac_objext conftest$ac_exeext
37249 if { (ac_try="$ac_link"
37250 case "(($ac_try" in
37251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37252   *) ac_try_echo=$ac_try;;
37253 esac
37254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37255   (eval "$ac_link") 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } && {
37262          test -z "$ac_c_werror_flag" ||
37263          test ! -s conftest.err
37264        } && test -s conftest$ac_exeext &&
37265        $as_test_x conftest$ac_exeext; then
37266   ac_cv_lib_MesaGL_glEnable=yes
37267 else
37268   echo "$as_me: failed program was:" >&5
37269 sed 's/^/| /' conftest.$ac_ext >&5
37270
37271         ac_cv_lib_MesaGL_glEnable=no
37272 fi
37273
37274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37275       conftest$ac_exeext conftest.$ac_ext
37276 LIBS=$ac_check_lib_save_LIBS
37277 fi
37278 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37279 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37280 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37281   ac_find_libraries="std"
37282 fi
37283
37284         fi
37285       fi
37286
37287       if test "x$ac_find_libraries" = "x"; then
37288                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37289 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37290
37291   ac_find_libraries=
37292   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37293   do
37294     for ac_extension in a so sl dylib dll.a; do
37295       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37296         ac_find_libraries=$ac_dir
37297         break 2
37298       fi
37299     done
37300   done
37301
37302         if test "x$ac_find_libraries" != "x"; then
37303           { echo "$as_me:$LINENO: result: yes" >&5
37304 echo "${ECHO_T}yes" >&6; }
37305         else
37306           { echo "$as_me:$LINENO: result: no" >&5
37307 echo "${ECHO_T}no" >&6; }
37308         fi
37309       fi
37310
37311 else
37312         MesaGL_CFLAGS=$pkg_cv_MesaGL_CFLAGS
37313         MesaGL_LIBS=$pkg_cv_MesaGL_LIBS
37314         { echo "$as_me:$LINENO: result: yes" >&5
37315 echo "${ECHO_T}yes" >&6; }
37316
37317             ac_find_libraries="std"
37318
37319                                                 eval ac_find_cflags=\$MesaGL_CFLAGS
37320       eval fl_libs=\$MesaGL_LIBS
37321
37322                   for fl_path in $fl_libs
37323       do
37324         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
37325                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
37326         fi
37327       done
37328
37329 fi
37330
37331                     if test "$ac_find_libraries" != "" ; then
37332                       if test "$ac_find_libraries" != "std" ; then
37333
37334     if test "$ac_find_libraries" = "default location"; then
37335     ac_path_to_link=""
37336   else
37337     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37338     result=$?
37339     if test $result = 0; then
37340       ac_path_to_link=""
37341     else
37342       ac_path_to_link=" -L$ac_find_libraries"
37343     fi
37344   fi
37345
37346                         if test "$ac_path_to_link" != " -L/usr/lib" ; then
37347                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
37348                         fi
37349                       fi
37350                       OPENGL_LIBS="-lMesaGL -lMesaGLU"
37351                     fi
37352                 fi
37353
37354 fi
37355
37356
37357
37358 fi
37359
37360
37361
37362         if test "x$OPENGL_LIBS" = "x"; then
37363             if test "$wxUSE_OPENGL" = "yes"; then
37364                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
37365 echo "$as_me: error: OpenGL libraries not available" >&2;}
37366    { (exit 1); exit 1; }; }
37367             else
37368                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
37369 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
37370                 wxUSE_OPENGL=no
37371                 USE_OPENGL=0
37372             fi
37373         fi
37374     else
37375         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37376 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37377         wxUSE_OPENGL="no"
37378     fi
37379
37380     if test "$wxUSE_OPENGL" = "auto"; then
37381                                 wxUSE_OPENGL=yes
37382     fi
37383
37384     if test "$wxUSE_OPENGL" = "yes"; then
37385         USE_OPENGL=1
37386         cat >>confdefs.h <<\_ACEOF
37387 #define wxUSE_OPENGL 1
37388 _ACEOF
37389
37390         cat >>confdefs.h <<\_ACEOF
37391 #define wxUSE_GLCANVAS 1
37392 _ACEOF
37393
37394         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
37395     fi
37396 fi
37397
37398
37399 if test -n "$TOOLKIT" ; then
37400     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
37401 fi
37402
37403
37404
37405 if test "$wxUSE_SHARED" = "yes"; then
37406     case "${host}" in
37407       *-pc-msdosdjgpp )
37408                 wxUSE_SHARED=no
37409         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
37410 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
37411       ;;
37412     esac
37413 fi
37414
37415 if test "$wxUSE_SHARED" = "yes"; then
37416
37417
37418     case "${host}" in
37419         *-*-cygwin* | *-*-mingw* )
37420                                                                                                 wx_cv_version_script=no
37421             ;;
37422
37423         *)
37424             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
37425 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
37426 if test "${wx_cv_version_script+set}" = set; then
37427   echo $ECHO_N "(cached) $ECHO_C" >&6
37428 else
37429
37430                 echo "VER_1 { *; };" >conftest.sym
37431                 echo "int main() { return 0; }" >conftest.cpp
37432
37433                 if { ac_try='
37434                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37435                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
37436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37437   (eval $ac_try) 2>&5
37438   ac_status=$?
37439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); }; } ; then
37441                   if test -s conftest.stderr ; then
37442                       wx_cv_version_script=no
37443                   else
37444                       wx_cv_version_script=yes
37445                   fi
37446                 else
37447                   wx_cv_version_script=no
37448                 fi
37449
37450                                                                                                                                                                                                 if test $wx_cv_version_script = yes
37451                 then
37452                   echo "struct B { virtual ~B() { } }; \
37453                         struct D : public B { }; \
37454                         void F() { D d; }" > conftest.cpp
37455
37456                   if { ac_try='
37457                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37458                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
37459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460   (eval $ac_try) 2>&5
37461   ac_status=$?
37462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463   (exit $ac_status); }; } &&
37464                      { ac_try='
37465                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37466                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
37467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37468   (eval $ac_try) 2>&5
37469   ac_status=$?
37470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471   (exit $ac_status); }; }
37472                   then
37473                     if { ac_try='
37474                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37475                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
37476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477   (eval $ac_try) 2>&5
37478   ac_status=$?
37479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480   (exit $ac_status); }; }
37481                     then
37482                       wx_cv_version_script=yes
37483                     else
37484                       wx_cv_version_script=no
37485                     fi
37486                   fi
37487                 fi
37488
37489                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
37490                 rm -f conftest1.output conftest2.output conftest3.output
37491
37492 fi
37493 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
37494 echo "${ECHO_T}$wx_cv_version_script" >&6; }
37495
37496             if test $wx_cv_version_script = yes ; then
37497                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
37498             fi
37499             ;;
37500     esac
37501
37502
37503             if test "$wxUSE_VISIBILITY" != "no"; then
37504
37505
37506   if test -n "$GCC"; then
37507     CFLAGS_VISIBILITY="-fvisibility=hidden"
37508     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
37509     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
37510 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
37511     if test "${wx_cv_cc_visibility+set}" = set; then
37512   echo $ECHO_N "(cached) $ECHO_C" >&6
37513 else
37514
37515       wx_save_CXXFLAGS="$CXXFLAGS"
37516       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37517       ac_ext=cpp
37518 ac_cpp='$CXXCPP $CPPFLAGS'
37519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37522
37523       cat >conftest.$ac_ext <<_ACEOF
37524 /* confdefs.h.  */
37525 _ACEOF
37526 cat confdefs.h >>conftest.$ac_ext
37527 cat >>conftest.$ac_ext <<_ACEOF
37528 /* end confdefs.h.  */
37529
37530          /* we need gcc >= 4.0, older versions with visibility support
37531             didn't have class visibility: */
37532          #if defined(__GNUC__) && __GNUC__ < 4
37533          error this gcc is too old;
37534          #endif
37535
37536          /* visibility only makes sense for ELF shared libs: */
37537          #if !defined(__ELF__) && !defined(__APPLE__)
37538          error this platform has no visibility;
37539          #endif
37540
37541          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
37542          #if defined(__clang__)
37543          clang compiler is still broken w.r.t. visibility;
37544          #endif
37545
37546          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
37547          extern __attribute__((__visibility__("default"))) int exportedvar;
37548          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
37549          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
37550          class __attribute__((__visibility__("default"))) Foo {
37551            Foo() {}
37552          };
37553
37554 int
37555 main ()
37556 {
37557
37558   ;
37559   return 0;
37560 }
37561 _ACEOF
37562 rm -f conftest.$ac_objext
37563 if { (ac_try="$ac_compile"
37564 case "(($ac_try" in
37565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566   *) ac_try_echo=$ac_try;;
37567 esac
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569   (eval "$ac_compile") 2>conftest.er1
37570   ac_status=$?
37571   grep -v '^ *+' conftest.er1 >conftest.err
37572   rm -f conftest.er1
37573   cat conftest.err >&5
37574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575   (exit $ac_status); } && {
37576          test -z "$ac_cxx_werror_flag" ||
37577          test ! -s conftest.err
37578        } && test -s conftest.$ac_objext; then
37579   wx_cv_cc_visibility=yes
37580 else
37581   echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37583
37584         wx_cv_cc_visibility=no
37585 fi
37586
37587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37588       ac_ext=c
37589 ac_cpp='$CPP $CPPFLAGS'
37590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37593
37594       CXXFLAGS="$wx_save_CXXFLAGS"
37595 fi
37596
37597     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
37598 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
37599     if test $wx_cv_cc_visibility = yes; then
37600                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
37601 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
37602       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
37603   echo $ECHO_N "(cached) $ECHO_C" >&6
37604 else
37605
37606         wx_save_CXXFLAGS="$CXXFLAGS"
37607         wx_save_LDFLAGS="$LDFLAGS"
37608         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37609         LDFLAGS="$LDFLAGS -shared -fPIC"
37610         ac_ext=cpp
37611 ac_cpp='$CXXCPP $CPPFLAGS'
37612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37615
37616         cat >conftest.$ac_ext <<_ACEOF
37617 /* confdefs.h.  */
37618 _ACEOF
37619 cat confdefs.h >>conftest.$ac_ext
37620 cat >>conftest.$ac_ext <<_ACEOF
37621 /* end confdefs.h.  */
37622
37623             #include <string>
37624
37625 int
37626 main ()
37627 {
37628
37629             std::string s("hello");
37630             return s.length();
37631
37632   ;
37633   return 0;
37634 }
37635 _ACEOF
37636 rm -f conftest.$ac_objext conftest$ac_exeext
37637 if { (ac_try="$ac_link"
37638 case "(($ac_try" in
37639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37640   *) ac_try_echo=$ac_try;;
37641 esac
37642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37643   (eval "$ac_link") 2>conftest.er1
37644   ac_status=$?
37645   grep -v '^ *+' conftest.er1 >conftest.err
37646   rm -f conftest.er1
37647   cat conftest.err >&5
37648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649   (exit $ac_status); } && {
37650          test -z "$ac_cxx_werror_flag" ||
37651          test ! -s conftest.err
37652        } && test -s conftest$ac_exeext &&
37653        $as_test_x conftest$ac_exeext; then
37654   wx_cv_cc_broken_libstdcxx_visibility=no
37655 else
37656   echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37658
37659         wx_cv_cc_broken_libstdcxx_visibility=yes
37660 fi
37661
37662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37663       conftest$ac_exeext conftest.$ac_ext
37664         ac_ext=c
37665 ac_cpp='$CPP $CPPFLAGS'
37666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37669
37670         CXXFLAGS="$wx_save_CXXFLAGS"
37671         LDFLAGS="$wx_save_LDFLAGS"
37672 fi
37673
37674       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
37675 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
37676
37677       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37678         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
37679 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
37680         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
37681   echo $ECHO_N "(cached) $ECHO_C" >&6
37682 else
37683
37684           ac_ext=cpp
37685 ac_cpp='$CXXCPP $CPPFLAGS'
37686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37689
37690           cat >conftest.$ac_ext <<_ACEOF
37691 /* confdefs.h.  */
37692 _ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h.  */
37696
37697               #pragma GCC visibility push(default)
37698               #include <string>
37699               #pragma GCC visibility pop
37700
37701 int
37702 main ()
37703 {
37704
37705               std::string s("hello");
37706               return s.length();
37707
37708   ;
37709   return 0;
37710 }
37711 _ACEOF
37712 rm -f conftest.$ac_objext conftest$ac_exeext
37713 if { (ac_try="$ac_link"
37714 case "(($ac_try" in
37715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716   *) ac_try_echo=$ac_try;;
37717 esac
37718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37719   (eval "$ac_link") 2>conftest.er1
37720   ac_status=$?
37721   grep -v '^ *+' conftest.er1 >conftest.err
37722   rm -f conftest.er1
37723   cat conftest.err >&5
37724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725   (exit $ac_status); } && {
37726          test -z "$ac_cxx_werror_flag" ||
37727          test ! -s conftest.err
37728        } && test -s conftest$ac_exeext &&
37729        $as_test_x conftest$ac_exeext; then
37730   wx_cv_cc_visibility_workaround=no
37731 else
37732   echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37734
37735         wx_cv_cc_visibility_workaround=yes
37736 fi
37737
37738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37739       conftest$ac_exeext conftest.$ac_ext
37740           ac_ext=c
37741 ac_cpp='$CPP $CPPFLAGS'
37742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37745
37746
37747 fi
37748
37749         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
37750 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
37751
37752         if test $wx_cv_cc_visibility_workaround = no; then
37753                     wx_cv_cc_visibility=no
37754         fi
37755       fi
37756     fi
37757
37758     if test $wx_cv_cc_visibility = yes; then
37759       cat >>confdefs.h <<\_ACEOF
37760 #define HAVE_VISIBILITY 1
37761 _ACEOF
37762
37763       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37764         cat >>confdefs.h <<\_ACEOF
37765 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
37766 _ACEOF
37767
37768       fi
37769     else
37770       CFLAGS_VISIBILITY=""
37771       CXXFLAGS_VISIBILITY=""
37772     fi
37773
37774
37775   fi
37776
37777     fi
37778
37779         if test "x$SUNCXX" = xyes; then
37780         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
37781         WXCONFIG_RPATH="-R\$libdir"
37782     else
37783     case "${host}" in
37784       *-*-linux* | *-*-gnu* )
37785         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37786         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37787         ;;
37788
37789       *-*-solaris2* )
37790
37791                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
37792
37793                         saveLdflags="$LDFLAGS"
37794         LDFLAGS="$saveLdflags -Wl,-rpath,/"
37795         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
37796 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
37797         cat >conftest.$ac_ext <<_ACEOF
37798 /* confdefs.h.  */
37799 _ACEOF
37800 cat confdefs.h >>conftest.$ac_ext
37801 cat >>conftest.$ac_ext <<_ACEOF
37802 /* end confdefs.h.  */
37803
37804 int
37805 main ()
37806 {
37807
37808   ;
37809   return 0;
37810 }
37811 _ACEOF
37812 rm -f conftest.$ac_objext conftest$ac_exeext
37813 if { (ac_try="$ac_link"
37814 case "(($ac_try" in
37815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37816   *) ac_try_echo=$ac_try;;
37817 esac
37818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37819   (eval "$ac_link") 2>conftest.er1
37820   ac_status=$?
37821   grep -v '^ *+' conftest.er1 >conftest.err
37822   rm -f conftest.er1
37823   cat conftest.err >&5
37824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825   (exit $ac_status); } && {
37826          test -z "$ac_c_werror_flag" ||
37827          test ! -s conftest.err
37828        } && test -s conftest$ac_exeext &&
37829        $as_test_x conftest$ac_exeext; then
37830
37831                 { echo "$as_me:$LINENO: result: yes" >&5
37832 echo "${ECHO_T}yes" >&6; }
37833                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37834                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37835
37836 else
37837   echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37839
37840
37841                 { echo "$as_me:$LINENO: result: no" >&5
37842 echo "${ECHO_T}no" >&6; }
37843                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
37844 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
37845                 LDFLAGS="$saveLdflags -Wl,-R,/"
37846                 cat >conftest.$ac_ext <<_ACEOF
37847 /* confdefs.h.  */
37848 _ACEOF
37849 cat confdefs.h >>conftest.$ac_ext
37850 cat >>conftest.$ac_ext <<_ACEOF
37851 /* end confdefs.h.  */
37852
37853 int
37854 main ()
37855 {
37856
37857   ;
37858   return 0;
37859 }
37860 _ACEOF
37861 rm -f conftest.$ac_objext conftest$ac_exeext
37862 if { (ac_try="$ac_link"
37863 case "(($ac_try" in
37864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37865   *) ac_try_echo=$ac_try;;
37866 esac
37867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37868   (eval "$ac_link") 2>conftest.er1
37869   ac_status=$?
37870   grep -v '^ *+' conftest.er1 >conftest.err
37871   rm -f conftest.er1
37872   cat conftest.err >&5
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); } && {
37875          test -z "$ac_c_werror_flag" ||
37876          test ! -s conftest.err
37877        } && test -s conftest$ac_exeext &&
37878        $as_test_x conftest$ac_exeext; then
37879
37880                         { echo "$as_me:$LINENO: result: yes" >&5
37881 echo "${ECHO_T}yes" >&6; }
37882                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
37883                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
37884
37885 else
37886   echo "$as_me: failed program was:" >&5
37887 sed 's/^/| /' conftest.$ac_ext >&5
37888
37889
37890                         { echo "$as_me:$LINENO: result: no" >&5
37891 echo "${ECHO_T}no" >&6; }
37892
37893 fi
37894
37895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37896       conftest$ac_exeext conftest.$ac_ext
37897
37898 fi
37899
37900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37901       conftest$ac_exeext conftest.$ac_ext
37902         LDFLAGS="$saveLdflags"
37903       ;;
37904
37905       *-*-darwin* )
37906         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
37907         if test "$install_name_tool" -a -x "$install_name_tool"; then
37908             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
37909             cat <<EOF >change-install-names
37910 #!/bin/sh
37911 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
37912 for i in \${libnames} ; do
37913     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
37914     for dep in \${libnames} ; do
37915         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
37916     done
37917 done
37918 EOF
37919             chmod +x change-install-names
37920             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
37921         fi
37922
37923                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
37924       ;;
37925
37926       *-*-cygwin* | *-*-mingw32* )
37927         ;;
37928
37929       *-*-hpux* )
37930         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
37931         WXCONFIG_RPATH="-Wl,+b,\$libdir"
37932         ;;
37933
37934     esac
37935     fi
37936
37937             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
37938
37939     if test $wxUSE_RPATH = "no"; then
37940         SAMPLES_RPATH_FLAG=''
37941         DYLIB_PATH_POSTLINK=''
37942         WXCONFIG_RPATH=''
37943     fi
37944
37945     SHARED=1
37946
37947 else
37948
37949     config_linkage_component="-static"
37950     SHARED=0
37951
37952 fi
37953
37954
37955 UNICODE=0
37956 lib_unicode_suffix=
37957 WX_CHARTYPE="ansi"
37958 if test "$wxUSE_UNICODE" = "yes"; then
37959     lib_unicode_suffix=u
37960     WX_CHARTYPE="unicode"
37961     UNICODE=1
37962 fi
37963
37964 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
37965 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
37966
37967 DEBUG_INFO=0
37968 if test "$wxUSE_DEBUG_INFO" = "yes"; then
37969     DEBUG_INFO=1
37970 fi
37971
37972 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
37973
37974 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
37975
37976 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
37977
37978
37979 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
37980     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37981 else
37982     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37983 fi
37984 if test "${TOOLKIT_DIR}" = "os2"; then
37985     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37986 else
37987     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37988 fi
37989
37990
37991
37992 if test "$wxUSE_OLD_COCOA" = 1; then
37993
37994     ac_ext=c
37995 ac_cpp='$CPP $CPPFLAGS'
37996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37999
38000 ac_ext=m
38001
38002     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
38003 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
38004     cat >conftest.$ac_ext <<_ACEOF
38005 /* confdefs.h.  */
38006 _ACEOF
38007 cat confdefs.h >>conftest.$ac_ext
38008 cat >>conftest.$ac_ext <<_ACEOF
38009 /* end confdefs.h.  */
38010 #include <AppKit/NSEvent.h>
38011 #include <CoreFoundation/CoreFoundation.h>
38012
38013 int
38014 main ()
38015 {
38016
38017   ;
38018   return 0;
38019 }
38020 _ACEOF
38021 rm -f conftest.$ac_objext
38022 if { (ac_try="$ac_compile"
38023 case "(($ac_try" in
38024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38025   *) ac_try_echo=$ac_try;;
38026 esac
38027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38028   (eval "$ac_compile") 2>conftest.er1
38029   ac_status=$?
38030   grep -v '^ *+' conftest.er1 >conftest.err
38031   rm -f conftest.er1
38032   cat conftest.err >&5
38033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034   (exit $ac_status); } && {
38035          test -z "$ac_c_werror_flag" ||
38036          test ! -s conftest.err
38037        } && test -s conftest.$ac_objext; then
38038   { echo "$as_me:$LINENO: result: no" >&5
38039 echo "${ECHO_T}no" >&6; }
38040 else
38041   echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38043
38044         { echo "$as_me:$LINENO: result: yes" >&5
38045 echo "${ECHO_T}yes" >&6; }
38046         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
38047 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
38048         cat >conftest.$ac_ext <<_ACEOF
38049 /* confdefs.h.  */
38050 _ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h.  */
38054 #define __Point__ 1
38055 #include <AppKit/NSEvent.h>
38056 #include <CoreFoundation/CoreFoundation.h>
38057
38058 int
38059 main ()
38060 {
38061
38062   ;
38063   return 0;
38064 }
38065 _ACEOF
38066 rm -f conftest.$ac_objext
38067 if { (ac_try="$ac_compile"
38068 case "(($ac_try" in
38069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38070   *) ac_try_echo=$ac_try;;
38071 esac
38072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38073   (eval "$ac_compile") 2>conftest.er1
38074   ac_status=$?
38075   grep -v '^ *+' conftest.er1 >conftest.err
38076   rm -f conftest.er1
38077   cat conftest.err >&5
38078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); } && {
38080          test -z "$ac_c_werror_flag" ||
38081          test ! -s conftest.err
38082        } && test -s conftest.$ac_objext; then
38083   { echo "$as_me:$LINENO: result: yes" >&5
38084 echo "${ECHO_T}yes" >&6; }
38085             cat >>confdefs.h <<\_ACEOF
38086 #define __Point__ 1
38087 _ACEOF
38088
38089
38090 else
38091   echo "$as_me: failed program was:" >&5
38092 sed 's/^/| /' conftest.$ac_ext >&5
38093
38094         { { echo "$as_me:$LINENO: error: no
38095 See \`config.log' for more details." >&5
38096 echo "$as_me: error: no
38097 See \`config.log' for more details." >&2;}
38098    { (exit 1); exit 1; }; }
38099
38100 fi
38101
38102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38103
38104 fi
38105
38106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38107     ac_ext=c
38108 ac_cpp='$CPP $CPPFLAGS'
38109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38112
38113 fi
38114
38115
38116 { echo "$as_me:$LINENO: checking for mode_t" >&5
38117 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
38118 if test "${ac_cv_type_mode_t+set}" = set; then
38119   echo $ECHO_N "(cached) $ECHO_C" >&6
38120 else
38121   cat >conftest.$ac_ext <<_ACEOF
38122 /* confdefs.h.  */
38123 _ACEOF
38124 cat confdefs.h >>conftest.$ac_ext
38125 cat >>conftest.$ac_ext <<_ACEOF
38126 /* end confdefs.h.  */
38127 $ac_includes_default
38128 typedef mode_t ac__type_new_;
38129 int
38130 main ()
38131 {
38132 if ((ac__type_new_ *) 0)
38133   return 0;
38134 if (sizeof (ac__type_new_))
38135   return 0;
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext
38141 if { (ac_try="$ac_compile"
38142 case "(($ac_try" in
38143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38144   *) ac_try_echo=$ac_try;;
38145 esac
38146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38147   (eval "$ac_compile") 2>conftest.er1
38148   ac_status=$?
38149   grep -v '^ *+' conftest.er1 >conftest.err
38150   rm -f conftest.er1
38151   cat conftest.err >&5
38152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153   (exit $ac_status); } && {
38154          test -z "$ac_c_werror_flag" ||
38155          test ! -s conftest.err
38156        } && test -s conftest.$ac_objext; then
38157   ac_cv_type_mode_t=yes
38158 else
38159   echo "$as_me: failed program was:" >&5
38160 sed 's/^/| /' conftest.$ac_ext >&5
38161
38162         ac_cv_type_mode_t=no
38163 fi
38164
38165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38166 fi
38167 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38168 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
38169 if test $ac_cv_type_mode_t = yes; then
38170   :
38171 else
38172
38173 cat >>confdefs.h <<_ACEOF
38174 #define mode_t int
38175 _ACEOF
38176
38177 fi
38178
38179 { echo "$as_me:$LINENO: checking for off_t" >&5
38180 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
38181 if test "${ac_cv_type_off_t+set}" = set; then
38182   echo $ECHO_N "(cached) $ECHO_C" >&6
38183 else
38184   cat >conftest.$ac_ext <<_ACEOF
38185 /* confdefs.h.  */
38186 _ACEOF
38187 cat confdefs.h >>conftest.$ac_ext
38188 cat >>conftest.$ac_ext <<_ACEOF
38189 /* end confdefs.h.  */
38190 $ac_includes_default
38191 typedef off_t ac__type_new_;
38192 int
38193 main ()
38194 {
38195 if ((ac__type_new_ *) 0)
38196   return 0;
38197 if (sizeof (ac__type_new_))
38198   return 0;
38199   ;
38200   return 0;
38201 }
38202 _ACEOF
38203 rm -f conftest.$ac_objext
38204 if { (ac_try="$ac_compile"
38205 case "(($ac_try" in
38206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38207   *) ac_try_echo=$ac_try;;
38208 esac
38209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38210   (eval "$ac_compile") 2>conftest.er1
38211   ac_status=$?
38212   grep -v '^ *+' conftest.er1 >conftest.err
38213   rm -f conftest.er1
38214   cat conftest.err >&5
38215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216   (exit $ac_status); } && {
38217          test -z "$ac_c_werror_flag" ||
38218          test ! -s conftest.err
38219        } && test -s conftest.$ac_objext; then
38220   ac_cv_type_off_t=yes
38221 else
38222   echo "$as_me: failed program was:" >&5
38223 sed 's/^/| /' conftest.$ac_ext >&5
38224
38225         ac_cv_type_off_t=no
38226 fi
38227
38228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38229 fi
38230 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38231 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
38232 if test $ac_cv_type_off_t = yes; then
38233   :
38234 else
38235
38236 cat >>confdefs.h <<_ACEOF
38237 #define off_t long int
38238 _ACEOF
38239
38240 fi
38241
38242 { echo "$as_me:$LINENO: checking for pid_t" >&5
38243 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
38244 if test "${ac_cv_type_pid_t+set}" = set; then
38245   echo $ECHO_N "(cached) $ECHO_C" >&6
38246 else
38247   cat >conftest.$ac_ext <<_ACEOF
38248 /* confdefs.h.  */
38249 _ACEOF
38250 cat confdefs.h >>conftest.$ac_ext
38251 cat >>conftest.$ac_ext <<_ACEOF
38252 /* end confdefs.h.  */
38253 $ac_includes_default
38254 typedef pid_t ac__type_new_;
38255 int
38256 main ()
38257 {
38258 if ((ac__type_new_ *) 0)
38259   return 0;
38260 if (sizeof (ac__type_new_))
38261   return 0;
38262   ;
38263   return 0;
38264 }
38265 _ACEOF
38266 rm -f conftest.$ac_objext
38267 if { (ac_try="$ac_compile"
38268 case "(($ac_try" in
38269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38270   *) ac_try_echo=$ac_try;;
38271 esac
38272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38273   (eval "$ac_compile") 2>conftest.er1
38274   ac_status=$?
38275   grep -v '^ *+' conftest.er1 >conftest.err
38276   rm -f conftest.er1
38277   cat conftest.err >&5
38278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279   (exit $ac_status); } && {
38280          test -z "$ac_c_werror_flag" ||
38281          test ! -s conftest.err
38282        } && test -s conftest.$ac_objext; then
38283   ac_cv_type_pid_t=yes
38284 else
38285   echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288         ac_cv_type_pid_t=no
38289 fi
38290
38291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38292 fi
38293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
38295 if test $ac_cv_type_pid_t = yes; then
38296   :
38297 else
38298
38299 cat >>confdefs.h <<_ACEOF
38300 #define pid_t int
38301 _ACEOF
38302
38303 fi
38304
38305 { echo "$as_me:$LINENO: checking for size_t" >&5
38306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
38307 if test "${ac_cv_type_size_t+set}" = set; then
38308   echo $ECHO_N "(cached) $ECHO_C" >&6
38309 else
38310   cat >conftest.$ac_ext <<_ACEOF
38311 /* confdefs.h.  */
38312 _ACEOF
38313 cat confdefs.h >>conftest.$ac_ext
38314 cat >>conftest.$ac_ext <<_ACEOF
38315 /* end confdefs.h.  */
38316 $ac_includes_default
38317 typedef size_t ac__type_new_;
38318 int
38319 main ()
38320 {
38321 if ((ac__type_new_ *) 0)
38322   return 0;
38323 if (sizeof (ac__type_new_))
38324   return 0;
38325   ;
38326   return 0;
38327 }
38328 _ACEOF
38329 rm -f conftest.$ac_objext
38330 if { (ac_try="$ac_compile"
38331 case "(($ac_try" in
38332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38333   *) ac_try_echo=$ac_try;;
38334 esac
38335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38336   (eval "$ac_compile") 2>conftest.er1
38337   ac_status=$?
38338   grep -v '^ *+' conftest.er1 >conftest.err
38339   rm -f conftest.er1
38340   cat conftest.err >&5
38341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38342   (exit $ac_status); } && {
38343          test -z "$ac_c_werror_flag" ||
38344          test ! -s conftest.err
38345        } && test -s conftest.$ac_objext; then
38346   ac_cv_type_size_t=yes
38347 else
38348   echo "$as_me: failed program was:" >&5
38349 sed 's/^/| /' conftest.$ac_ext >&5
38350
38351         ac_cv_type_size_t=no
38352 fi
38353
38354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38355 fi
38356 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38357 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
38358 if test $ac_cv_type_size_t = yes; then
38359   :
38360 else
38361
38362 cat >>confdefs.h <<_ACEOF
38363 #define size_t unsigned int
38364 _ACEOF
38365
38366 fi
38367
38368
38369 { echo "$as_me:$LINENO: checking for ssize_t" >&5
38370 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38371 if test "${ac_cv_type_ssize_t+set}" = set; then
38372   echo $ECHO_N "(cached) $ECHO_C" >&6
38373 else
38374   cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h.  */
38376 _ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h.  */
38380 $ac_includes_default
38381 typedef ssize_t ac__type_new_;
38382 int
38383 main ()
38384 {
38385 if ((ac__type_new_ *) 0)
38386   return 0;
38387 if (sizeof (ac__type_new_))
38388   return 0;
38389   ;
38390   return 0;
38391 }
38392 _ACEOF
38393 rm -f conftest.$ac_objext
38394 if { (ac_try="$ac_compile"
38395 case "(($ac_try" in
38396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38397   *) ac_try_echo=$ac_try;;
38398 esac
38399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38400   (eval "$ac_compile") 2>conftest.er1
38401   ac_status=$?
38402   grep -v '^ *+' conftest.er1 >conftest.err
38403   rm -f conftest.er1
38404   cat conftest.err >&5
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); } && {
38407          test -z "$ac_c_werror_flag" ||
38408          test ! -s conftest.err
38409        } && test -s conftest.$ac_objext; then
38410   ac_cv_type_ssize_t=yes
38411 else
38412   echo "$as_me: failed program was:" >&5
38413 sed 's/^/| /' conftest.$ac_ext >&5
38414
38415         ac_cv_type_ssize_t=no
38416 fi
38417
38418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38419 fi
38420 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
38422 if test $ac_cv_type_ssize_t = yes; then
38423
38424 cat >>confdefs.h <<_ACEOF
38425 #define HAVE_SSIZE_T 1
38426 _ACEOF
38427
38428
38429 fi
38430
38431
38432 ac_ext=cpp
38433 ac_cpp='$CXXCPP $CPPFLAGS'
38434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38437  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
38438 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
38439 if test "${wx_cv_size_t_is_uint+set}" = set; then
38440   echo $ECHO_N "(cached) $ECHO_C" >&6
38441 else
38442
38443                             cat >conftest.$ac_ext <<_ACEOF
38444 /* confdefs.h.  */
38445 _ACEOF
38446 cat confdefs.h >>conftest.$ac_ext
38447 cat >>conftest.$ac_ext <<_ACEOF
38448 /* end confdefs.h.  */
38449 #include <stddef.h>
38450 int
38451 main ()
38452 {
38453
38454             return 0; }
38455
38456             struct Foo { void foo(size_t); void foo(unsigned int); };
38457
38458             int bar() {
38459
38460   ;
38461   return 0;
38462 }
38463 _ACEOF
38464 rm -f conftest.$ac_objext
38465 if { (ac_try="$ac_compile"
38466 case "(($ac_try" in
38467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38468   *) ac_try_echo=$ac_try;;
38469 esac
38470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38471   (eval "$ac_compile") 2>conftest.er1
38472   ac_status=$?
38473   grep -v '^ *+' conftest.er1 >conftest.err
38474   rm -f conftest.er1
38475   cat conftest.err >&5
38476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477   (exit $ac_status); } && {
38478          test -z "$ac_cxx_werror_flag" ||
38479          test ! -s conftest.err
38480        } && test -s conftest.$ac_objext; then
38481   wx_cv_size_t_is_uint=no
38482 else
38483   echo "$as_me: failed program was:" >&5
38484 sed 's/^/| /' conftest.$ac_ext >&5
38485
38486         wx_cv_size_t_is_uint=yes
38487
38488 fi
38489
38490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38491
38492
38493 fi
38494 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
38495 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
38496
38497 if test "$wx_cv_size_t_is_uint" = "yes"; then
38498     cat >>confdefs.h <<\_ACEOF
38499 #define wxSIZE_T_IS_UINT 1
38500 _ACEOF
38501
38502 else
38503     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
38504 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
38505 if test "${wx_cv_size_t_is_ulong+set}" = set; then
38506   echo $ECHO_N "(cached) $ECHO_C" >&6
38507 else
38508   cat >conftest.$ac_ext <<_ACEOF
38509 /* confdefs.h.  */
38510 _ACEOF
38511 cat confdefs.h >>conftest.$ac_ext
38512 cat >>conftest.$ac_ext <<_ACEOF
38513 /* end confdefs.h.  */
38514 #include <stddef.h>
38515 int
38516 main ()
38517 {
38518
38519                 return 0; }
38520
38521                 struct Foo { void foo(size_t); void foo(unsigned long); };
38522
38523                 int bar() {
38524
38525   ;
38526   return 0;
38527 }
38528 _ACEOF
38529 rm -f conftest.$ac_objext
38530 if { (ac_try="$ac_compile"
38531 case "(($ac_try" in
38532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38533   *) ac_try_echo=$ac_try;;
38534 esac
38535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38536   (eval "$ac_compile") 2>conftest.er1
38537   ac_status=$?
38538   grep -v '^ *+' conftest.er1 >conftest.err
38539   rm -f conftest.er1
38540   cat conftest.err >&5
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); } && {
38543          test -z "$ac_cxx_werror_flag" ||
38544          test ! -s conftest.err
38545        } && test -s conftest.$ac_objext; then
38546   wx_cv_size_t_is_ulong=no
38547 else
38548   echo "$as_me: failed program was:" >&5
38549 sed 's/^/| /' conftest.$ac_ext >&5
38550
38551         wx_cv_size_t_is_ulong=yes
38552
38553 fi
38554
38555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38556
38557 fi
38558 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
38559 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
38560
38561     if test "$wx_cv_size_t_is_ulong" = "yes"; then
38562         cat >>confdefs.h <<\_ACEOF
38563 #define wxSIZE_T_IS_ULONG 1
38564 _ACEOF
38565
38566     fi
38567 fi
38568
38569 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
38570 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
38571 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
38572   echo $ECHO_N "(cached) $ECHO_C" >&6
38573 else
38574   cat >conftest.$ac_ext <<_ACEOF
38575 /* confdefs.h.  */
38576 _ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h.  */
38580 #include <wchar.h>
38581 int
38582 main ()
38583 {
38584
38585             return 0; }
38586
38587             struct Foo { void foo(wchar_t);
38588                          void foo(unsigned short);
38589                          void foo(unsigned int);
38590                          void foo(unsigned long); };
38591
38592             int bar() {
38593
38594   ;
38595   return 0;
38596 }
38597 _ACEOF
38598 rm -f conftest.$ac_objext
38599 if { (ac_try="$ac_compile"
38600 case "(($ac_try" in
38601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38602   *) ac_try_echo=$ac_try;;
38603 esac
38604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38605   (eval "$ac_compile") 2>conftest.er1
38606   ac_status=$?
38607   grep -v '^ *+' conftest.er1 >conftest.err
38608   rm -f conftest.er1
38609   cat conftest.err >&5
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); } && {
38612          test -z "$ac_cxx_werror_flag" ||
38613          test ! -s conftest.err
38614        } && test -s conftest.$ac_objext; then
38615   wx_cv_wchar_t_is_separate_type=yes
38616 else
38617   echo "$as_me: failed program was:" >&5
38618 sed 's/^/| /' conftest.$ac_ext >&5
38619
38620         wx_cv_wchar_t_is_separate_type=no
38621
38622 fi
38623
38624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38625
38626 fi
38627 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
38628 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
38629
38630 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
38631     cat >>confdefs.h <<\_ACEOF
38632 #define wxWCHAR_T_IS_REAL_TYPE 1
38633 _ACEOF
38634
38635 else
38636     cat >>confdefs.h <<\_ACEOF
38637 #define wxWCHAR_T_IS_REAL_TYPE 0
38638 _ACEOF
38639
38640 fi
38641
38642 ac_ext=c
38643 ac_cpp='$CPP $CPPFLAGS'
38644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38647
38648
38649 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
38650 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
38651 if test "${wx_cv_struct_pw_gecos+set}" = set; then
38652   echo $ECHO_N "(cached) $ECHO_C" >&6
38653 else
38654
38655         cat >conftest.$ac_ext <<_ACEOF
38656 /* confdefs.h.  */
38657 _ACEOF
38658 cat confdefs.h >>conftest.$ac_ext
38659 cat >>conftest.$ac_ext <<_ACEOF
38660 /* end confdefs.h.  */
38661 #include <pwd.h>
38662 int
38663 main ()
38664 {
38665
38666                 char *p;
38667                 struct passwd *pw;
38668                 p = pw->pw_gecos;
38669
38670   ;
38671   return 0;
38672 }
38673 _ACEOF
38674 rm -f conftest.$ac_objext
38675 if { (ac_try="$ac_compile"
38676 case "(($ac_try" in
38677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38678   *) ac_try_echo=$ac_try;;
38679 esac
38680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38681   (eval "$ac_compile") 2>conftest.er1
38682   ac_status=$?
38683   grep -v '^ *+' conftest.er1 >conftest.err
38684   rm -f conftest.er1
38685   cat conftest.err >&5
38686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687   (exit $ac_status); } && {
38688          test -z "$ac_c_werror_flag" ||
38689          test ! -s conftest.err
38690        } && test -s conftest.$ac_objext; then
38691
38692                 wx_cv_struct_pw_gecos=yes
38693
38694 else
38695   echo "$as_me: failed program was:" >&5
38696 sed 's/^/| /' conftest.$ac_ext >&5
38697
38698
38699                 wx_cv_struct_pw_gecos=no
38700
38701
38702 fi
38703
38704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38705
38706
38707 fi
38708 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
38709 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
38710
38711 if test "$wx_cv_struct_pw_gecos" = "yes"; then
38712     cat >>confdefs.h <<\_ACEOF
38713 #define HAVE_PW_GECOS 1
38714 _ACEOF
38715
38716 fi
38717
38718
38719 WCSLEN_FOUND=0
38720 WCHAR_LINK=
38721
38722 for ac_func in wcslen
38723 do
38724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38728   echo $ECHO_N "(cached) $ECHO_C" >&6
38729 else
38730   cat >conftest.$ac_ext <<_ACEOF
38731 /* confdefs.h.  */
38732 _ACEOF
38733 cat confdefs.h >>conftest.$ac_ext
38734 cat >>conftest.$ac_ext <<_ACEOF
38735 /* end confdefs.h.  */
38736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38738 #define $ac_func innocuous_$ac_func
38739
38740 /* System header to define __stub macros and hopefully few prototypes,
38741     which can conflict with char $ac_func (); below.
38742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38743     <limits.h> exists even on freestanding compilers.  */
38744
38745 #ifdef __STDC__
38746 # include <limits.h>
38747 #else
38748 # include <assert.h>
38749 #endif
38750
38751 #undef $ac_func
38752
38753 /* Override any GCC internal prototype to avoid an error.
38754    Use char because int might match the return type of a GCC
38755    builtin and then its argument prototype would still apply.  */
38756 #ifdef __cplusplus
38757 extern "C"
38758 #endif
38759 char $ac_func ();
38760 /* The GNU C library defines this for functions which it implements
38761     to always fail with ENOSYS.  Some functions are actually named
38762     something starting with __ and the normal name is an alias.  */
38763 #if defined __stub_$ac_func || defined __stub___$ac_func
38764 choke me
38765 #endif
38766
38767 int
38768 main ()
38769 {
38770 return $ac_func ();
38771   ;
38772   return 0;
38773 }
38774 _ACEOF
38775 rm -f conftest.$ac_objext conftest$ac_exeext
38776 if { (ac_try="$ac_link"
38777 case "(($ac_try" in
38778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38779   *) ac_try_echo=$ac_try;;
38780 esac
38781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38782   (eval "$ac_link") 2>conftest.er1
38783   ac_status=$?
38784   grep -v '^ *+' conftest.er1 >conftest.err
38785   rm -f conftest.er1
38786   cat conftest.err >&5
38787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38788   (exit $ac_status); } && {
38789          test -z "$ac_c_werror_flag" ||
38790          test ! -s conftest.err
38791        } && test -s conftest$ac_exeext &&
38792        $as_test_x conftest$ac_exeext; then
38793   eval "$as_ac_var=yes"
38794 else
38795   echo "$as_me: failed program was:" >&5
38796 sed 's/^/| /' conftest.$ac_ext >&5
38797
38798         eval "$as_ac_var=no"
38799 fi
38800
38801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38802       conftest$ac_exeext conftest.$ac_ext
38803 fi
38804 ac_res=`eval echo '${'$as_ac_var'}'`
38805                { echo "$as_me:$LINENO: result: $ac_res" >&5
38806 echo "${ECHO_T}$ac_res" >&6; }
38807 if test `eval echo '${'$as_ac_var'}'` = yes; then
38808   cat >>confdefs.h <<_ACEOF
38809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38810 _ACEOF
38811  WCSLEN_FOUND=1
38812 fi
38813 done
38814
38815
38816 if test "$WCSLEN_FOUND" = 0; then
38817     if test "$TOOLKIT" = "MSW"; then
38818         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
38819 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
38820 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
38821   echo $ECHO_N "(cached) $ECHO_C" >&6
38822 else
38823   ac_check_lib_save_LIBS=$LIBS
38824 LIBS="-lmsvcrt  $LIBS"
38825 cat >conftest.$ac_ext <<_ACEOF
38826 /* confdefs.h.  */
38827 _ACEOF
38828 cat confdefs.h >>conftest.$ac_ext
38829 cat >>conftest.$ac_ext <<_ACEOF
38830 /* end confdefs.h.  */
38831
38832 /* Override any GCC internal prototype to avoid an error.
38833    Use char because int might match the return type of a GCC
38834    builtin and then its argument prototype would still apply.  */
38835 #ifdef __cplusplus
38836 extern "C"
38837 #endif
38838 char wcslen ();
38839 int
38840 main ()
38841 {
38842 return wcslen ();
38843   ;
38844   return 0;
38845 }
38846 _ACEOF
38847 rm -f conftest.$ac_objext conftest$ac_exeext
38848 if { (ac_try="$ac_link"
38849 case "(($ac_try" in
38850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38851   *) ac_try_echo=$ac_try;;
38852 esac
38853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38854   (eval "$ac_link") 2>conftest.er1
38855   ac_status=$?
38856   grep -v '^ *+' conftest.er1 >conftest.err
38857   rm -f conftest.er1
38858   cat conftest.err >&5
38859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860   (exit $ac_status); } && {
38861          test -z "$ac_c_werror_flag" ||
38862          test ! -s conftest.err
38863        } && test -s conftest$ac_exeext &&
38864        $as_test_x conftest$ac_exeext; then
38865   ac_cv_lib_msvcrt_wcslen=yes
38866 else
38867   echo "$as_me: failed program was:" >&5
38868 sed 's/^/| /' conftest.$ac_ext >&5
38869
38870         ac_cv_lib_msvcrt_wcslen=no
38871 fi
38872
38873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38874       conftest$ac_exeext conftest.$ac_ext
38875 LIBS=$ac_check_lib_save_LIBS
38876 fi
38877 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
38878 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
38879 if test $ac_cv_lib_msvcrt_wcslen = yes; then
38880   WCHAR_OK=1
38881 fi
38882
38883     else
38884         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
38885 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
38886 if test "${ac_cv_lib_w_wcslen+set}" = set; then
38887   echo $ECHO_N "(cached) $ECHO_C" >&6
38888 else
38889   ac_check_lib_save_LIBS=$LIBS
38890 LIBS="-lw  $LIBS"
38891 cat >conftest.$ac_ext <<_ACEOF
38892 /* confdefs.h.  */
38893 _ACEOF
38894 cat confdefs.h >>conftest.$ac_ext
38895 cat >>conftest.$ac_ext <<_ACEOF
38896 /* end confdefs.h.  */
38897
38898 /* Override any GCC internal prototype to avoid an error.
38899    Use char because int might match the return type of a GCC
38900    builtin and then its argument prototype would still apply.  */
38901 #ifdef __cplusplus
38902 extern "C"
38903 #endif
38904 char wcslen ();
38905 int
38906 main ()
38907 {
38908 return wcslen ();
38909   ;
38910   return 0;
38911 }
38912 _ACEOF
38913 rm -f conftest.$ac_objext conftest$ac_exeext
38914 if { (ac_try="$ac_link"
38915 case "(($ac_try" in
38916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38917   *) ac_try_echo=$ac_try;;
38918 esac
38919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38920   (eval "$ac_link") 2>conftest.er1
38921   ac_status=$?
38922   grep -v '^ *+' conftest.er1 >conftest.err
38923   rm -f conftest.er1
38924   cat conftest.err >&5
38925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926   (exit $ac_status); } && {
38927          test -z "$ac_c_werror_flag" ||
38928          test ! -s conftest.err
38929        } && test -s conftest$ac_exeext &&
38930        $as_test_x conftest$ac_exeext; then
38931   ac_cv_lib_w_wcslen=yes
38932 else
38933   echo "$as_me: failed program was:" >&5
38934 sed 's/^/| /' conftest.$ac_ext >&5
38935
38936         ac_cv_lib_w_wcslen=no
38937 fi
38938
38939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38940       conftest$ac_exeext conftest.$ac_ext
38941 LIBS=$ac_check_lib_save_LIBS
38942 fi
38943 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
38944 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
38945 if test $ac_cv_lib_w_wcslen = yes; then
38946
38947                         WCHAR_LINK=" -lw"
38948                         WCSLEN_FOUND=1
38949
38950 fi
38951
38952     fi
38953 fi
38954
38955 if test "$WCSLEN_FOUND" = 1; then
38956     cat >>confdefs.h <<\_ACEOF
38957 #define HAVE_WCSLEN 1
38958 _ACEOF
38959
38960 fi
38961
38962
38963
38964
38965
38966
38967
38968 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
38969 do
38970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38974   echo $ECHO_N "(cached) $ECHO_C" >&6
38975 else
38976   cat >conftest.$ac_ext <<_ACEOF
38977 /* confdefs.h.  */
38978 _ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h.  */
38982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38984 #define $ac_func innocuous_$ac_func
38985
38986 /* System header to define __stub macros and hopefully few prototypes,
38987     which can conflict with char $ac_func (); below.
38988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38989     <limits.h> exists even on freestanding compilers.  */
38990
38991 #ifdef __STDC__
38992 # include <limits.h>
38993 #else
38994 # include <assert.h>
38995 #endif
38996
38997 #undef $ac_func
38998
38999 /* Override any GCC internal prototype to avoid an error.
39000    Use char because int might match the return type of a GCC
39001    builtin and then its argument prototype would still apply.  */
39002 #ifdef __cplusplus
39003 extern "C"
39004 #endif
39005 char $ac_func ();
39006 /* The GNU C library defines this for functions which it implements
39007     to always fail with ENOSYS.  Some functions are actually named
39008     something starting with __ and the normal name is an alias.  */
39009 #if defined __stub_$ac_func || defined __stub___$ac_func
39010 choke me
39011 #endif
39012
39013 int
39014 main ()
39015 {
39016 return $ac_func ();
39017   ;
39018   return 0;
39019 }
39020 _ACEOF
39021 rm -f conftest.$ac_objext conftest$ac_exeext
39022 if { (ac_try="$ac_link"
39023 case "(($ac_try" in
39024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39025   *) ac_try_echo=$ac_try;;
39026 esac
39027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39028   (eval "$ac_link") 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } && {
39035          test -z "$ac_c_werror_flag" ||
39036          test ! -s conftest.err
39037        } && test -s conftest$ac_exeext &&
39038        $as_test_x conftest$ac_exeext; then
39039   eval "$as_ac_var=yes"
39040 else
39041   echo "$as_me: failed program was:" >&5
39042 sed 's/^/| /' conftest.$ac_ext >&5
39043
39044         eval "$as_ac_var=no"
39045 fi
39046
39047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39048       conftest$ac_exeext conftest.$ac_ext
39049 fi
39050 ac_res=`eval echo '${'$as_ac_var'}'`
39051                { echo "$as_me:$LINENO: result: $ac_res" >&5
39052 echo "${ECHO_T}$ac_res" >&6; }
39053 if test `eval echo '${'$as_ac_var'}'` = yes; then
39054   cat >>confdefs.h <<_ACEOF
39055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39056 _ACEOF
39057
39058 fi
39059 done
39060
39061
39062 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
39063     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
39064 fi
39065
39066 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
39067 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
39068 if test "${ac_cv_type_mbstate_t+set}" = set; then
39069   echo $ECHO_N "(cached) $ECHO_C" >&6
39070 else
39071   cat >conftest.$ac_ext <<_ACEOF
39072 /* confdefs.h.  */
39073 _ACEOF
39074 cat confdefs.h >>conftest.$ac_ext
39075 cat >>conftest.$ac_ext <<_ACEOF
39076 /* end confdefs.h.  */
39077 #include <wchar.h>
39078
39079 typedef mbstate_t ac__type_new_;
39080 int
39081 main ()
39082 {
39083 if ((ac__type_new_ *) 0)
39084   return 0;
39085 if (sizeof (ac__type_new_))
39086   return 0;
39087   ;
39088   return 0;
39089 }
39090 _ACEOF
39091 rm -f conftest.$ac_objext
39092 if { (ac_try="$ac_compile"
39093 case "(($ac_try" in
39094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39095   *) ac_try_echo=$ac_try;;
39096 esac
39097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39098   (eval "$ac_compile") 2>conftest.er1
39099   ac_status=$?
39100   grep -v '^ *+' conftest.er1 >conftest.err
39101   rm -f conftest.er1
39102   cat conftest.err >&5
39103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104   (exit $ac_status); } && {
39105          test -z "$ac_c_werror_flag" ||
39106          test ! -s conftest.err
39107        } && test -s conftest.$ac_objext; then
39108   ac_cv_type_mbstate_t=yes
39109 else
39110   echo "$as_me: failed program was:" >&5
39111 sed 's/^/| /' conftest.$ac_ext >&5
39112
39113         ac_cv_type_mbstate_t=no
39114 fi
39115
39116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39117 fi
39118 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
39119 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
39120 if test $ac_cv_type_mbstate_t = yes; then
39121
39122 cat >>confdefs.h <<_ACEOF
39123 #define HAVE_MBSTATE_T 1
39124 _ACEOF
39125
39126
39127 for ac_func in wcsrtombs
39128 do
39129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39133   echo $ECHO_N "(cached) $ECHO_C" >&6
39134 else
39135   cat >conftest.$ac_ext <<_ACEOF
39136 /* confdefs.h.  */
39137 _ACEOF
39138 cat confdefs.h >>conftest.$ac_ext
39139 cat >>conftest.$ac_ext <<_ACEOF
39140 /* end confdefs.h.  */
39141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39143 #define $ac_func innocuous_$ac_func
39144
39145 /* System header to define __stub macros and hopefully few prototypes,
39146     which can conflict with char $ac_func (); below.
39147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39148     <limits.h> exists even on freestanding compilers.  */
39149
39150 #ifdef __STDC__
39151 # include <limits.h>
39152 #else
39153 # include <assert.h>
39154 #endif
39155
39156 #undef $ac_func
39157
39158 /* Override any GCC internal prototype to avoid an error.
39159    Use char because int might match the return type of a GCC
39160    builtin and then its argument prototype would still apply.  */
39161 #ifdef __cplusplus
39162 extern "C"
39163 #endif
39164 char $ac_func ();
39165 /* The GNU C library defines this for functions which it implements
39166     to always fail with ENOSYS.  Some functions are actually named
39167     something starting with __ and the normal name is an alias.  */
39168 #if defined __stub_$ac_func || defined __stub___$ac_func
39169 choke me
39170 #endif
39171
39172 int
39173 main ()
39174 {
39175 return $ac_func ();
39176   ;
39177   return 0;
39178 }
39179 _ACEOF
39180 rm -f conftest.$ac_objext conftest$ac_exeext
39181 if { (ac_try="$ac_link"
39182 case "(($ac_try" in
39183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39184   *) ac_try_echo=$ac_try;;
39185 esac
39186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39187   (eval "$ac_link") 2>conftest.er1
39188   ac_status=$?
39189   grep -v '^ *+' conftest.er1 >conftest.err
39190   rm -f conftest.er1
39191   cat conftest.err >&5
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); } && {
39194          test -z "$ac_c_werror_flag" ||
39195          test ! -s conftest.err
39196        } && test -s conftest$ac_exeext &&
39197        $as_test_x conftest$ac_exeext; then
39198   eval "$as_ac_var=yes"
39199 else
39200   echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39202
39203         eval "$as_ac_var=no"
39204 fi
39205
39206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39207       conftest$ac_exeext conftest.$ac_ext
39208 fi
39209 ac_res=`eval echo '${'$as_ac_var'}'`
39210                { echo "$as_me:$LINENO: result: $ac_res" >&5
39211 echo "${ECHO_T}$ac_res" >&6; }
39212 if test `eval echo '${'$as_ac_var'}'` = yes; then
39213   cat >>confdefs.h <<_ACEOF
39214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39215 _ACEOF
39216
39217 fi
39218 done
39219
39220 fi
39221
39222
39223
39224
39225
39226 for ac_func in snprintf vsnprintf vsscanf
39227 do
39228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39232   echo $ECHO_N "(cached) $ECHO_C" >&6
39233 else
39234   cat >conftest.$ac_ext <<_ACEOF
39235 /* confdefs.h.  */
39236 _ACEOF
39237 cat confdefs.h >>conftest.$ac_ext
39238 cat >>conftest.$ac_ext <<_ACEOF
39239 /* end confdefs.h.  */
39240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39242 #define $ac_func innocuous_$ac_func
39243
39244 /* System header to define __stub macros and hopefully few prototypes,
39245     which can conflict with char $ac_func (); below.
39246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39247     <limits.h> exists even on freestanding compilers.  */
39248
39249 #ifdef __STDC__
39250 # include <limits.h>
39251 #else
39252 # include <assert.h>
39253 #endif
39254
39255 #undef $ac_func
39256
39257 /* Override any GCC internal prototype to avoid an error.
39258    Use char because int might match the return type of a GCC
39259    builtin and then its argument prototype would still apply.  */
39260 #ifdef __cplusplus
39261 extern "C"
39262 #endif
39263 char $ac_func ();
39264 /* The GNU C library defines this for functions which it implements
39265     to always fail with ENOSYS.  Some functions are actually named
39266     something starting with __ and the normal name is an alias.  */
39267 #if defined __stub_$ac_func || defined __stub___$ac_func
39268 choke me
39269 #endif
39270
39271 int
39272 main ()
39273 {
39274 return $ac_func ();
39275   ;
39276   return 0;
39277 }
39278 _ACEOF
39279 rm -f conftest.$ac_objext conftest$ac_exeext
39280 if { (ac_try="$ac_link"
39281 case "(($ac_try" in
39282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39283   *) ac_try_echo=$ac_try;;
39284 esac
39285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39286   (eval "$ac_link") 2>conftest.er1
39287   ac_status=$?
39288   grep -v '^ *+' conftest.er1 >conftest.err
39289   rm -f conftest.er1
39290   cat conftest.err >&5
39291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292   (exit $ac_status); } && {
39293          test -z "$ac_c_werror_flag" ||
39294          test ! -s conftest.err
39295        } && test -s conftest$ac_exeext &&
39296        $as_test_x conftest$ac_exeext; then
39297   eval "$as_ac_var=yes"
39298 else
39299   echo "$as_me: failed program was:" >&5
39300 sed 's/^/| /' conftest.$ac_ext >&5
39301
39302         eval "$as_ac_var=no"
39303 fi
39304
39305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39306       conftest$ac_exeext conftest.$ac_ext
39307 fi
39308 ac_res=`eval echo '${'$as_ac_var'}'`
39309                { echo "$as_me:$LINENO: result: $ac_res" >&5
39310 echo "${ECHO_T}$ac_res" >&6; }
39311 if test `eval echo '${'$as_ac_var'}'` = yes; then
39312   cat >>confdefs.h <<_ACEOF
39313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39314 _ACEOF
39315
39316 fi
39317 done
39318
39319
39320 ac_ext=cpp
39321 ac_cpp='$CXXCPP $CPPFLAGS'
39322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39325
39326 if test "$ac_cv_func_vsnprintf" = "yes"; then
39327         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
39328 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
39329 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
39330   echo $ECHO_N "(cached) $ECHO_C" >&6
39331 else
39332
39333                                                             cat >conftest.$ac_ext <<_ACEOF
39334 /* confdefs.h.  */
39335 _ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h.  */
39339
39340                     #include <stdio.h>
39341                     #include <stdarg.h>
39342                     #ifdef __MSL__
39343                     #if __MSL__ >= 0x6000
39344                     namespace std {}
39345                     using namespace std;
39346                     #endif
39347                     #endif
39348
39349 int
39350 main ()
39351 {
39352
39353                     char *buf;
39354                     va_list ap;
39355                     vsnprintf(buf, 10u, "%s", ap);
39356
39357   ;
39358   return 0;
39359 }
39360 _ACEOF
39361 rm -f conftest.$ac_objext
39362 if { (ac_try="$ac_compile"
39363 case "(($ac_try" in
39364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39365   *) ac_try_echo=$ac_try;;
39366 esac
39367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39368   (eval "$ac_compile") 2>conftest.er1
39369   ac_status=$?
39370   grep -v '^ *+' conftest.er1 >conftest.err
39371   rm -f conftest.er1
39372   cat conftest.err >&5
39373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374   (exit $ac_status); } && {
39375          test -z "$ac_cxx_werror_flag" ||
39376          test ! -s conftest.err
39377        } && test -s conftest.$ac_objext; then
39378   wx_cv_func_vsnprintf_decl=yes
39379 else
39380   echo "$as_me: failed program was:" >&5
39381 sed 's/^/| /' conftest.$ac_ext >&5
39382
39383         wx_cv_func_vsnprintf_decl=no
39384
39385 fi
39386
39387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39388
39389
39390 fi
39391 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
39392 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
39393
39394     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
39395         cat >>confdefs.h <<\_ACEOF
39396 #define HAVE_VSNPRINTF_DECL 1
39397 _ACEOF
39398
39399
39400                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
39401 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
39402 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
39403   echo $ECHO_N "(cached) $ECHO_C" >&6
39404 else
39405
39406                 cat >conftest.$ac_ext <<_ACEOF
39407 /* confdefs.h.  */
39408 _ACEOF
39409 cat confdefs.h >>conftest.$ac_ext
39410 cat >>conftest.$ac_ext <<_ACEOF
39411 /* end confdefs.h.  */
39412
39413                         #include <stdio.h>
39414                         #include <stdarg.h>
39415                         #ifdef __MSL__
39416                         #if __MSL__ >= 0x6000
39417                         namespace std {}
39418                         using namespace std;
39419                         #endif
39420                         #endif
39421
39422 int
39423 main ()
39424 {
39425
39426                         char *buf;
39427                         va_list ap;
39428                         const char *fmt = "%s";
39429                         vsnprintf(buf, 10u, fmt, ap);
39430
39431   ;
39432   return 0;
39433 }
39434 _ACEOF
39435 rm -f conftest.$ac_objext
39436 if { (ac_try="$ac_compile"
39437 case "(($ac_try" in
39438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39439   *) ac_try_echo=$ac_try;;
39440 esac
39441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39442   (eval "$ac_compile") 2>conftest.er1
39443   ac_status=$?
39444   grep -v '^ *+' conftest.er1 >conftest.err
39445   rm -f conftest.er1
39446   cat conftest.err >&5
39447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448   (exit $ac_status); } && {
39449          test -z "$ac_cxx_werror_flag" ||
39450          test ! -s conftest.err
39451        } && test -s conftest.$ac_objext; then
39452   wx_cv_func_broken_vsnprintf_decl=no
39453 else
39454   echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39456
39457         wx_cv_func_broken_vsnprintf_decl=yes
39458
39459 fi
39460
39461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39462
39463
39464 fi
39465 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
39466 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
39467
39468         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
39469             cat >>confdefs.h <<\_ACEOF
39470 #define HAVE_BROKEN_VSNPRINTF_DECL 1
39471 _ACEOF
39472
39473         fi
39474     fi
39475 fi
39476
39477 if test "$ac_cv_func_snprintf" = "yes"; then
39478     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
39479 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
39480 if test "${wx_cv_func_snprintf_decl+set}" = set; then
39481   echo $ECHO_N "(cached) $ECHO_C" >&6
39482 else
39483
39484             cat >conftest.$ac_ext <<_ACEOF
39485 /* confdefs.h.  */
39486 _ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h.  */
39490
39491                     #include <stdio.h>
39492                     #include <stdarg.h>
39493                     #ifdef __MSL__
39494                     #if __MSL__ >= 0x6000
39495                     namespace std {}
39496                     using namespace std;
39497                     #endif
39498                     #endif
39499
39500 int
39501 main ()
39502 {
39503
39504                     char *buf;
39505                     snprintf(buf, 10u, "%s", "wx");
39506
39507   ;
39508   return 0;
39509 }
39510 _ACEOF
39511 rm -f conftest.$ac_objext
39512 if { (ac_try="$ac_compile"
39513 case "(($ac_try" in
39514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39515   *) ac_try_echo=$ac_try;;
39516 esac
39517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39518   (eval "$ac_compile") 2>conftest.er1
39519   ac_status=$?
39520   grep -v '^ *+' conftest.er1 >conftest.err
39521   rm -f conftest.er1
39522   cat conftest.err >&5
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); } && {
39525          test -z "$ac_cxx_werror_flag" ||
39526          test ! -s conftest.err
39527        } && test -s conftest.$ac_objext; then
39528   wx_cv_func_snprintf_decl=yes
39529 else
39530   echo "$as_me: failed program was:" >&5
39531 sed 's/^/| /' conftest.$ac_ext >&5
39532
39533         wx_cv_func_snprintf_decl=no
39534
39535 fi
39536
39537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39538
39539
39540 fi
39541 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
39542 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
39543
39544     if test "$wx_cv_func_snprintf_decl" = "yes"; then
39545         cat >>confdefs.h <<\_ACEOF
39546 #define HAVE_SNPRINTF_DECL 1
39547 _ACEOF
39548
39549     fi
39550
39551     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
39552
39553                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
39554 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
39555 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
39556   echo $ECHO_N "(cached) $ECHO_C" >&6
39557 else
39558
39559                 if test "$cross_compiling" = yes; then
39560
39561                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
39562 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
39563 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
39564 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
39565                         wx_cv_func_snprintf_pos_params=no
39566
39567
39568 else
39569   cat >conftest.$ac_ext <<_ACEOF
39570 /* confdefs.h.  */
39571 _ACEOF
39572 cat confdefs.h >>conftest.$ac_ext
39573 cat >>conftest.$ac_ext <<_ACEOF
39574 /* end confdefs.h.  */
39575
39576                         #include <stdio.h>
39577
39578                         int main (void)
39579                         {
39580                             char buffer[128];
39581                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
39582                             if (strcmp ("2 3 1", buffer) == 0)
39583                                 exit (0);
39584                             exit (1);
39585                         }
39586
39587 _ACEOF
39588 rm -f conftest$ac_exeext
39589 if { (ac_try="$ac_link"
39590 case "(($ac_try" in
39591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39592   *) ac_try_echo=$ac_try;;
39593 esac
39594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39595   (eval "$ac_link") 2>&5
39596   ac_status=$?
39597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39599   { (case "(($ac_try" in
39600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39601   *) ac_try_echo=$ac_try;;
39602 esac
39603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39604   (eval "$ac_try") 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; }; then
39608   wx_cv_func_snprintf_pos_params=no
39609 else
39610   echo "$as_me: program exited with status $ac_status" >&5
39611 echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39613
39614 ( exit $ac_status )
39615 wx_cv_func_snprintf_pos_params=yes
39616 fi
39617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39618 fi
39619
39620
39621
39622
39623 fi
39624 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
39625 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
39626
39627         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
39628             cat >>confdefs.h <<\_ACEOF
39629 #define HAVE_UNIX98_PRINTF 1
39630 _ACEOF
39631
39632         fi
39633     fi
39634 fi
39635
39636 if test "$ac_cv_func_vsscanf" = "yes"; then
39637     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
39638 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
39639 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
39640   echo $ECHO_N "(cached) $ECHO_C" >&6
39641 else
39642
39643             cat >conftest.$ac_ext <<_ACEOF
39644 /* confdefs.h.  */
39645 _ACEOF
39646 cat confdefs.h >>conftest.$ac_ext
39647 cat >>conftest.$ac_ext <<_ACEOF
39648 /* end confdefs.h.  */
39649
39650                     #include <stdio.h>
39651                     #include <stdarg.h>
39652                     #ifdef __MSL__
39653                     #if __MSL__ >= 0x6000
39654                     namespace std {}
39655                     using namespace std;
39656                     #endif
39657                     #endif
39658
39659 int
39660 main ()
39661 {
39662
39663                     char *buf;
39664                     va_list args;
39665                     vsscanf(buf, "%s", args);
39666
39667   ;
39668   return 0;
39669 }
39670 _ACEOF
39671 rm -f conftest.$ac_objext
39672 if { (ac_try="$ac_compile"
39673 case "(($ac_try" in
39674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39675   *) ac_try_echo=$ac_try;;
39676 esac
39677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39678   (eval "$ac_compile") 2>conftest.er1
39679   ac_status=$?
39680   grep -v '^ *+' conftest.er1 >conftest.err
39681   rm -f conftest.er1
39682   cat conftest.err >&5
39683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684   (exit $ac_status); } && {
39685          test -z "$ac_cxx_werror_flag" ||
39686          test ! -s conftest.err
39687        } && test -s conftest.$ac_objext; then
39688   wx_cv_func_vsscanf_decl=yes
39689 else
39690   echo "$as_me: failed program was:" >&5
39691 sed 's/^/| /' conftest.$ac_ext >&5
39692
39693         wx_cv_func_vsscanf_decl=no
39694
39695 fi
39696
39697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39698
39699
39700 fi
39701 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
39702 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
39703
39704     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
39705         cat >>confdefs.h <<\_ACEOF
39706 #define HAVE_VSSCANF_DECL 1
39707 _ACEOF
39708
39709     fi
39710 fi
39711 ac_ext=c
39712 ac_cpp='$CPP $CPPFLAGS'
39713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39716
39717
39718 if test "$wxUSE_UNICODE" = yes; then
39719
39720             wchar_headers="#include <stdio.h>
39721 #include <wchar.h>"
39722     case "${host}" in
39723         *-*-solaris2* )
39724
39725 for ac_header in widec.h
39726 do
39727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39731   echo $ECHO_N "(cached) $ECHO_C" >&6
39732 else
39733   cat >conftest.$ac_ext <<_ACEOF
39734 /* confdefs.h.  */
39735 _ACEOF
39736 cat confdefs.h >>conftest.$ac_ext
39737 cat >>conftest.$ac_ext <<_ACEOF
39738 /* end confdefs.h.  */
39739 $ac_includes_default
39740
39741 #include <$ac_header>
39742 _ACEOF
39743 rm -f conftest.$ac_objext
39744 if { (ac_try="$ac_compile"
39745 case "(($ac_try" in
39746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39747   *) ac_try_echo=$ac_try;;
39748 esac
39749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39750   (eval "$ac_compile") 2>conftest.er1
39751   ac_status=$?
39752   grep -v '^ *+' conftest.er1 >conftest.err
39753   rm -f conftest.er1
39754   cat conftest.err >&5
39755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756   (exit $ac_status); } && {
39757          test -z "$ac_c_werror_flag" ||
39758          test ! -s conftest.err
39759        } && test -s conftest.$ac_objext; then
39760   eval "$as_ac_Header=yes"
39761 else
39762   echo "$as_me: failed program was:" >&5
39763 sed 's/^/| /' conftest.$ac_ext >&5
39764
39765         eval "$as_ac_Header=no"
39766 fi
39767
39768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39769 fi
39770 ac_res=`eval echo '${'$as_ac_Header'}'`
39771                { echo "$as_me:$LINENO: result: $ac_res" >&5
39772 echo "${ECHO_T}$ac_res" >&6; }
39773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39774   cat >>confdefs.h <<_ACEOF
39775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39776 _ACEOF
39777
39778 fi
39779
39780 done
39781
39782             if test "$ac_cv_header_widec_h" = "yes"; then
39783                 wchar_headers="$wchar_headers
39784 #include <widec.h>"
39785             fi
39786     esac
39787
39788
39789   for wx_func in putws fputws wprintf vswprintf vswscanf
39790   do
39791     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39792 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39793 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39794   echo $ECHO_N "(cached) $ECHO_C" >&6
39795 else
39796
39797         cat >conftest.$ac_ext <<_ACEOF
39798
39799             /* confdefs.h.  */
39800 _ACEOF
39801 cat confdefs.h >>conftest.$ac_ext
39802 cat >>conftest.$ac_ext <<_ACEOF
39803 /* end confdefs.h.  */
39804
39805                 $wchar_headers
39806                 $ac_includes_default
39807
39808 int
39809 main ()
39810 {
39811
39812                 #ifndef $wx_func
39813                   &$wx_func;
39814                 #endif
39815
39816
39817   ;
39818   return 0;
39819 }
39820
39821 _ACEOF
39822 rm -f conftest.$ac_objext conftest$ac_exeext
39823 if { (ac_try="$ac_link"
39824 case "(($ac_try" in
39825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39826   *) ac_try_echo=$ac_try;;
39827 esac
39828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39829   (eval "$ac_link") 2>conftest.er1
39830   ac_status=$?
39831   grep -v '^ *+' conftest.er1 >conftest.err
39832   rm -f conftest.er1
39833   cat conftest.err >&5
39834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835   (exit $ac_status); } && {
39836          test -z "$ac_c_werror_flag" ||
39837          test ! -s conftest.err
39838        } && test -s conftest$ac_exeext &&
39839        $as_test_x conftest$ac_exeext; then
39840   eval wx_cv_func_$wx_func=yes
39841 else
39842   echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845         eval wx_cv_func_$wx_func=no
39846 fi
39847
39848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39849       conftest$ac_exeext conftest.$ac_ext
39850
39851 fi
39852 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39853                { echo "$as_me:$LINENO: result: $ac_res" >&5
39854 echo "${ECHO_T}$ac_res" >&6; }
39855
39856     if eval test \$wx_cv_func_$wx_func = yes
39857     then
39858       cat >>confdefs.h <<_ACEOF
39859 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39860 _ACEOF
39861
39862
39863     else
39864       :
39865
39866     fi
39867   done
39868
39869
39870                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39871 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39872     cat >conftest.$ac_ext <<_ACEOF
39873 /* confdefs.h.  */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h.  */
39878 #include <wchar.h>
39879 int
39880 main ()
39881 {
39882 &_vsnwprintf;
39883   ;
39884   return 0;
39885 }
39886 _ACEOF
39887 rm -f conftest.$ac_objext
39888 if { (ac_try="$ac_compile"
39889 case "(($ac_try" in
39890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39891   *) ac_try_echo=$ac_try;;
39892 esac
39893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39894   (eval "$ac_compile") 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } && {
39901          test -z "$ac_c_werror_flag" ||
39902          test ! -s conftest.err
39903        } && test -s conftest.$ac_objext; then
39904   { echo "$as_me:$LINENO: result: yes" >&5
39905 echo "${ECHO_T}yes" >&6; }
39906                     cat >>confdefs.h <<\_ACEOF
39907 #define HAVE__VSNWPRINTF 1
39908 _ACEOF
39909
39910 else
39911   echo "$as_me: failed program was:" >&5
39912 sed 's/^/| /' conftest.$ac_ext >&5
39913
39914         { echo "$as_me:$LINENO: result: no" >&5
39915 echo "${ECHO_T}no" >&6; }
39916 fi
39917
39918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39919 fi
39920
39921 if test "$wxUSE_FILE" = "yes"; then
39922
39923   for wx_func in fsync
39924   do
39925     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39926 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39927 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39928   echo $ECHO_N "(cached) $ECHO_C" >&6
39929 else
39930
39931         cat >conftest.$ac_ext <<_ACEOF
39932
39933             /* confdefs.h.  */
39934 _ACEOF
39935 cat confdefs.h >>conftest.$ac_ext
39936 cat >>conftest.$ac_ext <<_ACEOF
39937 /* end confdefs.h.  */
39938
39939
39940                 $ac_includes_default
39941
39942 int
39943 main ()
39944 {
39945
39946                 #ifndef $wx_func
39947                   &$wx_func;
39948                 #endif
39949
39950
39951   ;
39952   return 0;
39953 }
39954
39955 _ACEOF
39956 rm -f conftest.$ac_objext conftest$ac_exeext
39957 if { (ac_try="$ac_link"
39958 case "(($ac_try" in
39959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39960   *) ac_try_echo=$ac_try;;
39961 esac
39962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39963   (eval "$ac_link") 2>conftest.er1
39964   ac_status=$?
39965   grep -v '^ *+' conftest.er1 >conftest.err
39966   rm -f conftest.er1
39967   cat conftest.err >&5
39968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969   (exit $ac_status); } && {
39970          test -z "$ac_c_werror_flag" ||
39971          test ! -s conftest.err
39972        } && test -s conftest$ac_exeext &&
39973        $as_test_x conftest$ac_exeext; then
39974   eval wx_cv_func_$wx_func=yes
39975 else
39976   echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39978
39979         eval wx_cv_func_$wx_func=no
39980 fi
39981
39982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39983       conftest$ac_exeext conftest.$ac_ext
39984
39985 fi
39986 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39987                { echo "$as_me:$LINENO: result: $ac_res" >&5
39988 echo "${ECHO_T}$ac_res" >&6; }
39989
39990     if eval test \$wx_cv_func_$wx_func = yes
39991     then
39992       cat >>confdefs.h <<_ACEOF
39993 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39994 _ACEOF
39995
39996
39997     else
39998       :
39999
40000     fi
40001   done
40002
40003 fi
40004
40005 ac_ext=cpp
40006 ac_cpp='$CXXCPP $CPPFLAGS'
40007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40010
40011
40012   for wx_func in round
40013   do
40014     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40015 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40016 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40017   echo $ECHO_N "(cached) $ECHO_C" >&6
40018 else
40019
40020         cat >conftest.$ac_ext <<_ACEOF
40021
40022             /* confdefs.h.  */
40023 _ACEOF
40024 cat confdefs.h >>conftest.$ac_ext
40025 cat >>conftest.$ac_ext <<_ACEOF
40026 /* end confdefs.h.  */
40027
40028                 #include <math.h>
40029                 $ac_includes_default
40030
40031 int
40032 main ()
40033 {
40034
40035                 #ifndef $wx_func
40036                   &$wx_func;
40037                 #endif
40038
40039
40040   ;
40041   return 0;
40042 }
40043
40044 _ACEOF
40045 rm -f conftest.$ac_objext conftest$ac_exeext
40046 if { (ac_try="$ac_link"
40047 case "(($ac_try" in
40048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40049   *) ac_try_echo=$ac_try;;
40050 esac
40051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40052   (eval "$ac_link") 2>conftest.er1
40053   ac_status=$?
40054   grep -v '^ *+' conftest.er1 >conftest.err
40055   rm -f conftest.er1
40056   cat conftest.err >&5
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); } && {
40059          test -z "$ac_cxx_werror_flag" ||
40060          test ! -s conftest.err
40061        } && test -s conftest$ac_exeext &&
40062        $as_test_x conftest$ac_exeext; then
40063   eval wx_cv_func_$wx_func=yes
40064 else
40065   echo "$as_me: failed program was:" >&5
40066 sed 's/^/| /' conftest.$ac_ext >&5
40067
40068         eval wx_cv_func_$wx_func=no
40069 fi
40070
40071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40072       conftest$ac_exeext conftest.$ac_ext
40073
40074 fi
40075 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40076                { echo "$as_me:$LINENO: result: $ac_res" >&5
40077 echo "${ECHO_T}$ac_res" >&6; }
40078
40079     if eval test \$wx_cv_func_$wx_func = yes
40080     then
40081       cat >>confdefs.h <<_ACEOF
40082 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40083 _ACEOF
40084
40085
40086     else
40087       :
40088
40089     fi
40090   done
40091
40092 ac_ext=c
40093 ac_cpp='$CPP $CPPFLAGS'
40094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40097
40098
40099 if test "$TOOLKIT" != "MSW"; then
40100
40101 if test "$wxUSE_LIBICONV" != "no" ; then
40102
40103
40104
40105 # Check whether --with-libiconv-prefix was given.
40106 if test "${with_libiconv_prefix+set}" = set; then
40107   withval=$with_libiconv_prefix;
40108     for dir in `echo "$withval" | tr : ' '`; do
40109       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
40110       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
40111     done
40112
40113 fi
40114
40115
40116   { echo "$as_me:$LINENO: checking for iconv" >&5
40117 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
40118 if test "${am_cv_func_iconv+set}" = set; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121
40122     am_cv_func_iconv="no, consider installing GNU libiconv"
40123     am_cv_lib_iconv=no
40124     cat >conftest.$ac_ext <<_ACEOF
40125 /* confdefs.h.  */
40126 _ACEOF
40127 cat confdefs.h >>conftest.$ac_ext
40128 cat >>conftest.$ac_ext <<_ACEOF
40129 /* end confdefs.h.  */
40130 #include <stdlib.h>
40131 #include <iconv.h>
40132 int
40133 main ()
40134 {
40135 iconv_t cd = iconv_open("","");
40136        iconv(cd,NULL,NULL,NULL,NULL);
40137        iconv_close(cd);
40138   ;
40139   return 0;
40140 }
40141 _ACEOF
40142 rm -f conftest.$ac_objext conftest$ac_exeext
40143 if { (ac_try="$ac_link"
40144 case "(($ac_try" in
40145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40146   *) ac_try_echo=$ac_try;;
40147 esac
40148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40149   (eval "$ac_link") 2>conftest.er1
40150   ac_status=$?
40151   grep -v '^ *+' conftest.er1 >conftest.err
40152   rm -f conftest.er1
40153   cat conftest.err >&5
40154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155   (exit $ac_status); } && {
40156          test -z "$ac_c_werror_flag" ||
40157          test ! -s conftest.err
40158        } && test -s conftest$ac_exeext &&
40159        $as_test_x conftest$ac_exeext; then
40160   am_cv_func_iconv=yes
40161 else
40162   echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165
40166 fi
40167
40168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40169       conftest$ac_exeext conftest.$ac_ext
40170     if test "$am_cv_func_iconv" != yes; then
40171       am_save_LIBS="$LIBS"
40172       LIBS="$LIBS -liconv"
40173       cat >conftest.$ac_ext <<_ACEOF
40174 /* confdefs.h.  */
40175 _ACEOF
40176 cat confdefs.h >>conftest.$ac_ext
40177 cat >>conftest.$ac_ext <<_ACEOF
40178 /* end confdefs.h.  */
40179 #include <stdlib.h>
40180 #include <iconv.h>
40181 int
40182 main ()
40183 {
40184 iconv_t cd = iconv_open("","");
40185          iconv(cd,NULL,NULL,NULL,NULL);
40186          iconv_close(cd);
40187   ;
40188   return 0;
40189 }
40190 _ACEOF
40191 rm -f conftest.$ac_objext conftest$ac_exeext
40192 if { (ac_try="$ac_link"
40193 case "(($ac_try" in
40194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40195   *) ac_try_echo=$ac_try;;
40196 esac
40197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40198   (eval "$ac_link") 2>conftest.er1
40199   ac_status=$?
40200   grep -v '^ *+' conftest.er1 >conftest.err
40201   rm -f conftest.er1
40202   cat conftest.err >&5
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); } && {
40205          test -z "$ac_c_werror_flag" ||
40206          test ! -s conftest.err
40207        } && test -s conftest$ac_exeext &&
40208        $as_test_x conftest$ac_exeext; then
40209   am_cv_lib_iconv=yes
40210         am_cv_func_iconv=yes
40211 else
40212   echo "$as_me: failed program was:" >&5
40213 sed 's/^/| /' conftest.$ac_ext >&5
40214
40215
40216 fi
40217
40218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40219       conftest$ac_exeext conftest.$ac_ext
40220       LIBS="$am_save_LIBS"
40221     fi
40222
40223 fi
40224 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40225 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40226   if test "$am_cv_func_iconv" = yes; then
40227
40228 cat >>confdefs.h <<\_ACEOF
40229 #define HAVE_ICONV 1
40230 _ACEOF
40231
40232     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
40233 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
40234 if test "${wx_cv_func_iconv_const+set}" = set; then
40235   echo $ECHO_N "(cached) $ECHO_C" >&6
40236 else
40237   cat >conftest.$ac_ext <<_ACEOF
40238 /* confdefs.h.  */
40239 _ACEOF
40240 cat confdefs.h >>conftest.$ac_ext
40241 cat >>conftest.$ac_ext <<_ACEOF
40242 /* end confdefs.h.  */
40243
40244 #include <stdlib.h>
40245 #include <iconv.h>
40246 extern
40247 #ifdef __cplusplus
40248 "C"
40249 #endif
40250 #if defined(__STDC__) || defined(__cplusplus)
40251 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40252 #else
40253 size_t iconv();
40254 #endif
40255
40256 int
40257 main ()
40258 {
40259
40260   ;
40261   return 0;
40262 }
40263 _ACEOF
40264 rm -f conftest.$ac_objext
40265 if { (ac_try="$ac_compile"
40266 case "(($ac_try" in
40267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40268   *) ac_try_echo=$ac_try;;
40269 esac
40270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40271   (eval "$ac_compile") 2>conftest.er1
40272   ac_status=$?
40273   grep -v '^ *+' conftest.er1 >conftest.err
40274   rm -f conftest.er1
40275   cat conftest.err >&5
40276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277   (exit $ac_status); } && {
40278          test -z "$ac_c_werror_flag" ||
40279          test ! -s conftest.err
40280        } && test -s conftest.$ac_objext; then
40281   wx_cv_func_iconv_const="no"
40282 else
40283   echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40285
40286         wx_cv_func_iconv_const="yes"
40287
40288 fi
40289
40290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40291
40292 fi
40293 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
40294 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
40295
40296     iconv_const=
40297     if test "x$wx_cv_func_iconv_const" = "xyes"; then
40298         iconv_const="const"
40299     fi
40300
40301
40302 cat >>confdefs.h <<_ACEOF
40303 #define ICONV_CONST $iconv_const
40304 _ACEOF
40305
40306   fi
40307   LIBICONV=
40308   if test "$am_cv_lib_iconv" = yes; then
40309     LIBICONV="-liconv"
40310   fi
40311
40312
40313     LIBS="$LIBICONV $LIBS"
40314 fi
40315
40316 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40317
40318 for ac_func in sigaction
40319 do
40320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40324   echo $ECHO_N "(cached) $ECHO_C" >&6
40325 else
40326   cat >conftest.$ac_ext <<_ACEOF
40327 /* confdefs.h.  */
40328 _ACEOF
40329 cat confdefs.h >>conftest.$ac_ext
40330 cat >>conftest.$ac_ext <<_ACEOF
40331 /* end confdefs.h.  */
40332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40334 #define $ac_func innocuous_$ac_func
40335
40336 /* System header to define __stub macros and hopefully few prototypes,
40337     which can conflict with char $ac_func (); below.
40338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40339     <limits.h> exists even on freestanding compilers.  */
40340
40341 #ifdef __STDC__
40342 # include <limits.h>
40343 #else
40344 # include <assert.h>
40345 #endif
40346
40347 #undef $ac_func
40348
40349 /* Override any GCC internal prototype to avoid an error.
40350    Use char because int might match the return type of a GCC
40351    builtin and then its argument prototype would still apply.  */
40352 #ifdef __cplusplus
40353 extern "C"
40354 #endif
40355 char $ac_func ();
40356 /* The GNU C library defines this for functions which it implements
40357     to always fail with ENOSYS.  Some functions are actually named
40358     something starting with __ and the normal name is an alias.  */
40359 #if defined __stub_$ac_func || defined __stub___$ac_func
40360 choke me
40361 #endif
40362
40363 int
40364 main ()
40365 {
40366 return $ac_func ();
40367   ;
40368   return 0;
40369 }
40370 _ACEOF
40371 rm -f conftest.$ac_objext conftest$ac_exeext
40372 if { (ac_try="$ac_link"
40373 case "(($ac_try" in
40374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40375   *) ac_try_echo=$ac_try;;
40376 esac
40377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40378   (eval "$ac_link") 2>conftest.er1
40379   ac_status=$?
40380   grep -v '^ *+' conftest.er1 >conftest.err
40381   rm -f conftest.er1
40382   cat conftest.err >&5
40383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384   (exit $ac_status); } && {
40385          test -z "$ac_c_werror_flag" ||
40386          test ! -s conftest.err
40387        } && test -s conftest$ac_exeext &&
40388        $as_test_x conftest$ac_exeext; then
40389   eval "$as_ac_var=yes"
40390 else
40391   echo "$as_me: failed program was:" >&5
40392 sed 's/^/| /' conftest.$ac_ext >&5
40393
40394         eval "$as_ac_var=no"
40395 fi
40396
40397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40398       conftest$ac_exeext conftest.$ac_ext
40399 fi
40400 ac_res=`eval echo '${'$as_ac_var'}'`
40401                { echo "$as_me:$LINENO: result: $ac_res" >&5
40402 echo "${ECHO_T}$ac_res" >&6; }
40403 if test `eval echo '${'$as_ac_var'}'` = yes; then
40404   cat >>confdefs.h <<_ACEOF
40405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40406 _ACEOF
40407
40408 fi
40409 done
40410
40411
40412     if test "$ac_cv_func_sigaction" = "no"; then
40413         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
40414 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
40415         wxUSE_ON_FATAL_EXCEPTION=no
40416     fi
40417
40418     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40419       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
40420 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
40421 if test "${wx_cv_type_sa_handler+set}" = set; then
40422   echo $ECHO_N "(cached) $ECHO_C" >&6
40423 else
40424
40425                 ac_ext=cpp
40426 ac_cpp='$CXXCPP $CPPFLAGS'
40427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40430
40431         cat >conftest.$ac_ext <<_ACEOF
40432 /* confdefs.h.  */
40433 _ACEOF
40434 cat confdefs.h >>conftest.$ac_ext
40435 cat >>conftest.$ac_ext <<_ACEOF
40436 /* end confdefs.h.  */
40437 #include <signal.h>
40438 int
40439 main ()
40440 {
40441
40442                         extern void testSigHandler(int);
40443
40444                         struct sigaction sa;
40445                         sa.sa_handler = testSigHandler;
40446
40447   ;
40448   return 0;
40449 }
40450 _ACEOF
40451 rm -f conftest.$ac_objext
40452 if { (ac_try="$ac_compile"
40453 case "(($ac_try" in
40454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40455   *) ac_try_echo=$ac_try;;
40456 esac
40457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40458   (eval "$ac_compile") 2>conftest.er1
40459   ac_status=$?
40460   grep -v '^ *+' conftest.er1 >conftest.err
40461   rm -f conftest.er1
40462   cat conftest.err >&5
40463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464   (exit $ac_status); } && {
40465          test -z "$ac_cxx_werror_flag" ||
40466          test ! -s conftest.err
40467        } && test -s conftest.$ac_objext; then
40468
40469                         wx_cv_type_sa_handler=int
40470
40471 else
40472   echo "$as_me: failed program was:" >&5
40473 sed 's/^/| /' conftest.$ac_ext >&5
40474
40475
40476                         wx_cv_type_sa_handler=void
40477
40478 fi
40479
40480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40481         ac_ext=c
40482 ac_cpp='$CPP $CPPFLAGS'
40483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40486
40487
40488 fi
40489 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
40490 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
40491
40492       cat >>confdefs.h <<_ACEOF
40493 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
40494 _ACEOF
40495
40496     fi
40497 fi
40498
40499 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40500     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
40501 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
40502 if test "${wx_cv_func_backtrace+set}" = set; then
40503   echo $ECHO_N "(cached) $ECHO_C" >&6
40504 else
40505
40506             ac_ext=cpp
40507 ac_cpp='$CXXCPP $CPPFLAGS'
40508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40511
40512             cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518 #include <execinfo.h>
40519 int
40520 main ()
40521 {
40522
40523                     void *trace[1];
40524                     char **messages;
40525
40526                     backtrace(trace, 1);
40527                     messages = backtrace_symbols(trace, 1);
40528
40529   ;
40530   return 0;
40531 }
40532 _ACEOF
40533 rm -f conftest.$ac_objext
40534 if { (ac_try="$ac_compile"
40535 case "(($ac_try" in
40536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40537   *) ac_try_echo=$ac_try;;
40538 esac
40539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40540   (eval "$ac_compile") 2>conftest.er1
40541   ac_status=$?
40542   grep -v '^ *+' conftest.er1 >conftest.err
40543   rm -f conftest.er1
40544   cat conftest.err >&5
40545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546   (exit $ac_status); } && {
40547          test -z "$ac_cxx_werror_flag" ||
40548          test ! -s conftest.err
40549        } && test -s conftest.$ac_objext; then
40550   wx_cv_func_backtrace=yes
40551 else
40552   echo "$as_me: failed program was:" >&5
40553 sed 's/^/| /' conftest.$ac_ext >&5
40554
40555         wx_cv_func_backtrace=no
40556
40557 fi
40558
40559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40560             ac_ext=c
40561 ac_cpp='$CPP $CPPFLAGS'
40562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40565
40566
40567
40568 fi
40569 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
40570 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
40571
40572
40573     if test "$wx_cv_func_backtrace" = "no"; then
40574         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
40575 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
40576         wxUSE_STACKWALKER=no
40577     else
40578         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
40579 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
40580 if test "${wx_cv_func_cxa_demangle+set}" = set; then
40581   echo $ECHO_N "(cached) $ECHO_C" >&6
40582 else
40583
40584                 ac_ext=cpp
40585 ac_cpp='$CXXCPP $CPPFLAGS'
40586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40589
40590                 cat >conftest.$ac_ext <<_ACEOF
40591 /* confdefs.h.  */
40592 _ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h.  */
40596 #include <cxxabi.h>
40597 int
40598 main ()
40599 {
40600
40601                         int rc;
40602                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
40603
40604   ;
40605   return 0;
40606 }
40607 _ACEOF
40608 rm -f conftest.$ac_objext conftest$ac_exeext
40609 if { (ac_try="$ac_link"
40610 case "(($ac_try" in
40611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40612   *) ac_try_echo=$ac_try;;
40613 esac
40614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40615   (eval "$ac_link") 2>conftest.er1
40616   ac_status=$?
40617   grep -v '^ *+' conftest.er1 >conftest.err
40618   rm -f conftest.er1
40619   cat conftest.err >&5
40620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621   (exit $ac_status); } && {
40622          test -z "$ac_cxx_werror_flag" ||
40623          test ! -s conftest.err
40624        } && test -s conftest$ac_exeext &&
40625        $as_test_x conftest$ac_exeext; then
40626   wx_cv_func_cxa_demangle=yes
40627 else
40628   echo "$as_me: failed program was:" >&5
40629 sed 's/^/| /' conftest.$ac_ext >&5
40630
40631         wx_cv_func_cxa_demangle=no
40632
40633 fi
40634
40635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40636       conftest$ac_exeext conftest.$ac_ext
40637                 ac_ext=c
40638 ac_cpp='$CPP $CPPFLAGS'
40639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40642
40643
40644
40645 fi
40646 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
40647 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
40648
40649         if test "$wx_cv_func_cxa_demangle" = "yes"; then
40650             cat >>confdefs.h <<\_ACEOF
40651 #define HAVE_CXA_DEMANGLE 1
40652 _ACEOF
40653
40654         fi
40655     fi
40656 fi
40657
40658 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
40659     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
40660 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
40661     wxUSE_STACKWALKER=no
40662 fi
40663
40664
40665
40666
40667 for ac_func in mkstemp mktemp
40668 do
40669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40673   echo $ECHO_N "(cached) $ECHO_C" >&6
40674 else
40675   cat >conftest.$ac_ext <<_ACEOF
40676 /* confdefs.h.  */
40677 _ACEOF
40678 cat confdefs.h >>conftest.$ac_ext
40679 cat >>conftest.$ac_ext <<_ACEOF
40680 /* end confdefs.h.  */
40681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40683 #define $ac_func innocuous_$ac_func
40684
40685 /* System header to define __stub macros and hopefully few prototypes,
40686     which can conflict with char $ac_func (); below.
40687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40688     <limits.h> exists even on freestanding compilers.  */
40689
40690 #ifdef __STDC__
40691 # include <limits.h>
40692 #else
40693 # include <assert.h>
40694 #endif
40695
40696 #undef $ac_func
40697
40698 /* Override any GCC internal prototype to avoid an error.
40699    Use char because int might match the return type of a GCC
40700    builtin and then its argument prototype would still apply.  */
40701 #ifdef __cplusplus
40702 extern "C"
40703 #endif
40704 char $ac_func ();
40705 /* The GNU C library defines this for functions which it implements
40706     to always fail with ENOSYS.  Some functions are actually named
40707     something starting with __ and the normal name is an alias.  */
40708 #if defined __stub_$ac_func || defined __stub___$ac_func
40709 choke me
40710 #endif
40711
40712 int
40713 main ()
40714 {
40715 return $ac_func ();
40716   ;
40717   return 0;
40718 }
40719 _ACEOF
40720 rm -f conftest.$ac_objext conftest$ac_exeext
40721 if { (ac_try="$ac_link"
40722 case "(($ac_try" in
40723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40724   *) ac_try_echo=$ac_try;;
40725 esac
40726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40727   (eval "$ac_link") 2>conftest.er1
40728   ac_status=$?
40729   grep -v '^ *+' conftest.er1 >conftest.err
40730   rm -f conftest.er1
40731   cat conftest.err >&5
40732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733   (exit $ac_status); } && {
40734          test -z "$ac_c_werror_flag" ||
40735          test ! -s conftest.err
40736        } && test -s conftest$ac_exeext &&
40737        $as_test_x conftest$ac_exeext; then
40738   eval "$as_ac_var=yes"
40739 else
40740   echo "$as_me: failed program was:" >&5
40741 sed 's/^/| /' conftest.$ac_ext >&5
40742
40743         eval "$as_ac_var=no"
40744 fi
40745
40746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40747       conftest$ac_exeext conftest.$ac_ext
40748 fi
40749 ac_res=`eval echo '${'$as_ac_var'}'`
40750                { echo "$as_me:$LINENO: result: $ac_res" >&5
40751 echo "${ECHO_T}$ac_res" >&6; }
40752 if test `eval echo '${'$as_ac_var'}'` = yes; then
40753   cat >>confdefs.h <<_ACEOF
40754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40755 _ACEOF
40756  break
40757 fi
40758 done
40759
40760
40761 { echo "$as_me:$LINENO: checking for statfs" >&5
40762 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40763 if test "${wx_cv_func_statfs+set}" = set; then
40764   echo $ECHO_N "(cached) $ECHO_C" >&6
40765 else
40766   cat >conftest.$ac_ext <<_ACEOF
40767 /* confdefs.h.  */
40768 _ACEOF
40769 cat confdefs.h >>conftest.$ac_ext
40770 cat >>conftest.$ac_ext <<_ACEOF
40771 /* end confdefs.h.  */
40772
40773              #if defined(__BSD__)
40774              #include <sys/param.h>
40775              #include <sys/mount.h>
40776              #else
40777              #include <sys/vfs.h>
40778              #endif
40779
40780 int
40781 main ()
40782 {
40783
40784              long l;
40785              struct statfs fs;
40786              statfs("/", &fs);
40787              l = fs.f_bsize;
40788              l += fs.f_blocks;
40789              l += fs.f_bavail;
40790
40791   ;
40792   return 0;
40793 }
40794 _ACEOF
40795 rm -f conftest.$ac_objext
40796 if { (ac_try="$ac_compile"
40797 case "(($ac_try" in
40798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40799   *) ac_try_echo=$ac_try;;
40800 esac
40801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40802   (eval "$ac_compile") 2>conftest.er1
40803   ac_status=$?
40804   grep -v '^ *+' conftest.er1 >conftest.err
40805   rm -f conftest.er1
40806   cat conftest.err >&5
40807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808   (exit $ac_status); } && {
40809          test -z "$ac_c_werror_flag" ||
40810          test ! -s conftest.err
40811        } && test -s conftest.$ac_objext; then
40812   wx_cv_func_statfs=yes
40813 else
40814   echo "$as_me: failed program was:" >&5
40815 sed 's/^/| /' conftest.$ac_ext >&5
40816
40817         wx_cv_func_statfs=no
40818
40819 fi
40820
40821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40822
40823 fi
40824 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40825 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40826
40827 if test "$wx_cv_func_statfs" = "yes"; then
40828         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40829 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40830 if test "${wx_cv_func_statfs_decl+set}" = set; then
40831   echo $ECHO_N "(cached) $ECHO_C" >&6
40832 else
40833   ac_ext=cpp
40834 ac_cpp='$CXXCPP $CPPFLAGS'
40835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40838
40839         cat >conftest.$ac_ext <<_ACEOF
40840 /* confdefs.h.  */
40841 _ACEOF
40842 cat confdefs.h >>conftest.$ac_ext
40843 cat >>conftest.$ac_ext <<_ACEOF
40844 /* end confdefs.h.  */
40845
40846                  #if defined(__BSD__)
40847                  #include <sys/param.h>
40848                  #include <sys/mount.h>
40849                  #else
40850                  #include <sys/vfs.h>
40851                  #endif
40852
40853 int
40854 main ()
40855 {
40856
40857                 struct statfs fs;
40858                 statfs("", &fs);
40859
40860   ;
40861   return 0;
40862 }
40863 _ACEOF
40864 rm -f conftest.$ac_objext
40865 if { (ac_try="$ac_compile"
40866 case "(($ac_try" in
40867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40868   *) ac_try_echo=$ac_try;;
40869 esac
40870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40871   (eval "$ac_compile") 2>conftest.er1
40872   ac_status=$?
40873   grep -v '^ *+' conftest.er1 >conftest.err
40874   rm -f conftest.er1
40875   cat conftest.err >&5
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); } && {
40878          test -z "$ac_cxx_werror_flag" ||
40879          test ! -s conftest.err
40880        } && test -s conftest.$ac_objext; then
40881   wx_cv_func_statfs_decl=yes
40882 else
40883   echo "$as_me: failed program was:" >&5
40884 sed 's/^/| /' conftest.$ac_ext >&5
40885
40886         wx_cv_func_statfs_decl=no
40887
40888 fi
40889
40890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40891         ac_ext=c
40892 ac_cpp='$CPP $CPPFLAGS'
40893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40896
40897
40898 fi
40899 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40900 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40901
40902     if test "$wx_cv_func_statfs_decl" = "yes"; then
40903         cat >>confdefs.h <<\_ACEOF
40904 #define HAVE_STATFS_DECL 1
40905 _ACEOF
40906
40907     fi
40908
40909     wx_cv_type_statvfs_t="struct statfs"
40910     cat >>confdefs.h <<\_ACEOF
40911 #define HAVE_STATFS 1
40912 _ACEOF
40913
40914 else
40915     { echo "$as_me:$LINENO: checking for statvfs" >&5
40916 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40917 if test "${wx_cv_func_statvfs+set}" = set; then
40918   echo $ECHO_N "(cached) $ECHO_C" >&6
40919 else
40920   cat >conftest.$ac_ext <<_ACEOF
40921 /* confdefs.h.  */
40922 _ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h.  */
40926
40927                 #include <stddef.h>
40928                 #include <sys/statvfs.h>
40929
40930 int
40931 main ()
40932 {
40933
40934                 statvfs("/", NULL);
40935
40936   ;
40937   return 0;
40938 }
40939 _ACEOF
40940 rm -f conftest.$ac_objext
40941 if { (ac_try="$ac_compile"
40942 case "(($ac_try" in
40943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40944   *) ac_try_echo=$ac_try;;
40945 esac
40946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40947   (eval "$ac_compile") 2>conftest.er1
40948   ac_status=$?
40949   grep -v '^ *+' conftest.er1 >conftest.err
40950   rm -f conftest.er1
40951   cat conftest.err >&5
40952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953   (exit $ac_status); } && {
40954          test -z "$ac_c_werror_flag" ||
40955          test ! -s conftest.err
40956        } && test -s conftest.$ac_objext; then
40957   wx_cv_func_statvfs=yes
40958 else
40959   echo "$as_me: failed program was:" >&5
40960 sed 's/^/| /' conftest.$ac_ext >&5
40961
40962         wx_cv_func_statvfs=no
40963
40964 fi
40965
40966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40967
40968 fi
40969 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40970 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40971
40972     if test "$wx_cv_func_statvfs" = "yes"; then
40973                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40974 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40975 if test "${wx_cv_type_statvfs_t+set}" = set; then
40976   echo $ECHO_N "(cached) $ECHO_C" >&6
40977 else
40978   ac_ext=cpp
40979 ac_cpp='$CXXCPP $CPPFLAGS'
40980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40983
40984             cat >conftest.$ac_ext <<_ACEOF
40985 /* confdefs.h.  */
40986 _ACEOF
40987 cat confdefs.h >>conftest.$ac_ext
40988 cat >>conftest.$ac_ext <<_ACEOF
40989 /* end confdefs.h.  */
40990
40991                     #include <sys/statvfs.h>
40992
40993 int
40994 main ()
40995 {
40996
40997                     long l;
40998                     statvfs_t fs;
40999                     statvfs("/", &fs);
41000                     l = fs.f_bsize;
41001                     l += fs.f_blocks;
41002                     l += fs.f_bavail;
41003
41004   ;
41005   return 0;
41006 }
41007 _ACEOF
41008 rm -f conftest.$ac_objext
41009 if { (ac_try="$ac_compile"
41010 case "(($ac_try" in
41011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41012   *) ac_try_echo=$ac_try;;
41013 esac
41014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41015   (eval "$ac_compile") 2>conftest.er1
41016   ac_status=$?
41017   grep -v '^ *+' conftest.er1 >conftest.err
41018   rm -f conftest.er1
41019   cat conftest.err >&5
41020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021   (exit $ac_status); } && {
41022          test -z "$ac_cxx_werror_flag" ||
41023          test ! -s conftest.err
41024        } && test -s conftest.$ac_objext; then
41025   wx_cv_type_statvfs_t=statvfs_t
41026 else
41027   echo "$as_me: failed program was:" >&5
41028 sed 's/^/| /' conftest.$ac_ext >&5
41029
41030
41031                     cat >conftest.$ac_ext <<_ACEOF
41032 /* confdefs.h.  */
41033 _ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h.  */
41037
41038                             #include <sys/statvfs.h>
41039
41040 int
41041 main ()
41042 {
41043
41044                             long l;
41045                             struct statvfs fs;
41046                             statvfs("/", &fs);
41047                             l = fs.f_bsize;
41048                             l += fs.f_blocks;
41049                             l += fs.f_bavail;
41050
41051   ;
41052   return 0;
41053 }
41054 _ACEOF
41055 rm -f conftest.$ac_objext
41056 if { (ac_try="$ac_compile"
41057 case "(($ac_try" in
41058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41059   *) ac_try_echo=$ac_try;;
41060 esac
41061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41062   (eval "$ac_compile") 2>conftest.er1
41063   ac_status=$?
41064   grep -v '^ *+' conftest.er1 >conftest.err
41065   rm -f conftest.er1
41066   cat conftest.err >&5
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); } && {
41069          test -z "$ac_cxx_werror_flag" ||
41070          test ! -s conftest.err
41071        } && test -s conftest.$ac_objext; then
41072   wx_cv_type_statvfs_t="struct statvfs"
41073 else
41074   echo "$as_me: failed program was:" >&5
41075 sed 's/^/| /' conftest.$ac_ext >&5
41076
41077         wx_cv_type_statvfs_t="unknown"
41078
41079 fi
41080
41081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41082
41083
41084 fi
41085
41086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41087             ac_ext=c
41088 ac_cpp='$CPP $CPPFLAGS'
41089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41092
41093
41094 fi
41095 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
41096 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
41097
41098         if test "$wx_cv_type_statvfs_t" != "unknown"; then
41099             cat >>confdefs.h <<\_ACEOF
41100 #define HAVE_STATVFS 1
41101 _ACEOF
41102
41103         fi
41104     else
41105                 wx_cv_type_statvfs_t="unknown"
41106     fi
41107 fi
41108
41109 if test "$wx_cv_type_statvfs_t" != "unknown"; then
41110     cat >>confdefs.h <<_ACEOF
41111 #define WX_STATFS_T $wx_cv_type_statvfs_t
41112 _ACEOF
41113
41114 else
41115     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
41116 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
41117 fi
41118
41119 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41120
41121
41122 for ac_func in fcntl flock
41123 do
41124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41128   echo $ECHO_N "(cached) $ECHO_C" >&6
41129 else
41130   cat >conftest.$ac_ext <<_ACEOF
41131 /* confdefs.h.  */
41132 _ACEOF
41133 cat confdefs.h >>conftest.$ac_ext
41134 cat >>conftest.$ac_ext <<_ACEOF
41135 /* end confdefs.h.  */
41136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41138 #define $ac_func innocuous_$ac_func
41139
41140 /* System header to define __stub macros and hopefully few prototypes,
41141     which can conflict with char $ac_func (); below.
41142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41143     <limits.h> exists even on freestanding compilers.  */
41144
41145 #ifdef __STDC__
41146 # include <limits.h>
41147 #else
41148 # include <assert.h>
41149 #endif
41150
41151 #undef $ac_func
41152
41153 /* Override any GCC internal prototype to avoid an error.
41154    Use char because int might match the return type of a GCC
41155    builtin and then its argument prototype would still apply.  */
41156 #ifdef __cplusplus
41157 extern "C"
41158 #endif
41159 char $ac_func ();
41160 /* The GNU C library defines this for functions which it implements
41161     to always fail with ENOSYS.  Some functions are actually named
41162     something starting with __ and the normal name is an alias.  */
41163 #if defined __stub_$ac_func || defined __stub___$ac_func
41164 choke me
41165 #endif
41166
41167 int
41168 main ()
41169 {
41170 return $ac_func ();
41171   ;
41172   return 0;
41173 }
41174 _ACEOF
41175 rm -f conftest.$ac_objext conftest$ac_exeext
41176 if { (ac_try="$ac_link"
41177 case "(($ac_try" in
41178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41179   *) ac_try_echo=$ac_try;;
41180 esac
41181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41182   (eval "$ac_link") 2>conftest.er1
41183   ac_status=$?
41184   grep -v '^ *+' conftest.er1 >conftest.err
41185   rm -f conftest.er1
41186   cat conftest.err >&5
41187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188   (exit $ac_status); } && {
41189          test -z "$ac_c_werror_flag" ||
41190          test ! -s conftest.err
41191        } && test -s conftest$ac_exeext &&
41192        $as_test_x conftest$ac_exeext; then
41193   eval "$as_ac_var=yes"
41194 else
41195   echo "$as_me: failed program was:" >&5
41196 sed 's/^/| /' conftest.$ac_ext >&5
41197
41198         eval "$as_ac_var=no"
41199 fi
41200
41201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41202       conftest$ac_exeext conftest.$ac_ext
41203 fi
41204 ac_res=`eval echo '${'$as_ac_var'}'`
41205                { echo "$as_me:$LINENO: result: $ac_res" >&5
41206 echo "${ECHO_T}$ac_res" >&6; }
41207 if test `eval echo '${'$as_ac_var'}'` = yes; then
41208   cat >>confdefs.h <<_ACEOF
41209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41210 _ACEOF
41211  break
41212 fi
41213 done
41214
41215
41216     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
41217         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
41218 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
41219         wxUSE_SNGLINST_CHECKER=no
41220     fi
41221 fi
41222
41223
41224
41225 for ac_func in setenv putenv
41226 do
41227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41231   echo $ECHO_N "(cached) $ECHO_C" >&6
41232 else
41233   cat >conftest.$ac_ext <<_ACEOF
41234 /* confdefs.h.  */
41235 _ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h.  */
41239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41241 #define $ac_func innocuous_$ac_func
41242
41243 /* System header to define __stub macros and hopefully few prototypes,
41244     which can conflict with char $ac_func (); below.
41245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41246     <limits.h> exists even on freestanding compilers.  */
41247
41248 #ifdef __STDC__
41249 # include <limits.h>
41250 #else
41251 # include <assert.h>
41252 #endif
41253
41254 #undef $ac_func
41255
41256 /* Override any GCC internal prototype to avoid an error.
41257    Use char because int might match the return type of a GCC
41258    builtin and then its argument prototype would still apply.  */
41259 #ifdef __cplusplus
41260 extern "C"
41261 #endif
41262 char $ac_func ();
41263 /* The GNU C library defines this for functions which it implements
41264     to always fail with ENOSYS.  Some functions are actually named
41265     something starting with __ and the normal name is an alias.  */
41266 #if defined __stub_$ac_func || defined __stub___$ac_func
41267 choke me
41268 #endif
41269
41270 int
41271 main ()
41272 {
41273 return $ac_func ();
41274   ;
41275   return 0;
41276 }
41277 _ACEOF
41278 rm -f conftest.$ac_objext conftest$ac_exeext
41279 if { (ac_try="$ac_link"
41280 case "(($ac_try" in
41281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41282   *) ac_try_echo=$ac_try;;
41283 esac
41284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41285   (eval "$ac_link") 2>conftest.er1
41286   ac_status=$?
41287   grep -v '^ *+' conftest.er1 >conftest.err
41288   rm -f conftest.er1
41289   cat conftest.err >&5
41290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41291   (exit $ac_status); } && {
41292          test -z "$ac_c_werror_flag" ||
41293          test ! -s conftest.err
41294        } && test -s conftest$ac_exeext &&
41295        $as_test_x conftest$ac_exeext; then
41296   eval "$as_ac_var=yes"
41297 else
41298   echo "$as_me: failed program was:" >&5
41299 sed 's/^/| /' conftest.$ac_ext >&5
41300
41301         eval "$as_ac_var=no"
41302 fi
41303
41304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41305       conftest$ac_exeext conftest.$ac_ext
41306 fi
41307 ac_res=`eval echo '${'$as_ac_var'}'`
41308                { echo "$as_me:$LINENO: result: $ac_res" >&5
41309 echo "${ECHO_T}$ac_res" >&6; }
41310 if test `eval echo '${'$as_ac_var'}'` = yes; then
41311   cat >>confdefs.h <<_ACEOF
41312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41313 _ACEOF
41314  break
41315 fi
41316 done
41317
41318 if test "$ac_cv_func_setenv" = "yes"; then
41319
41320 for ac_func in unsetenv
41321 do
41322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41326   echo $ECHO_N "(cached) $ECHO_C" >&6
41327 else
41328   cat >conftest.$ac_ext <<_ACEOF
41329 /* confdefs.h.  */
41330 _ACEOF
41331 cat confdefs.h >>conftest.$ac_ext
41332 cat >>conftest.$ac_ext <<_ACEOF
41333 /* end confdefs.h.  */
41334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41336 #define $ac_func innocuous_$ac_func
41337
41338 /* System header to define __stub macros and hopefully few prototypes,
41339     which can conflict with char $ac_func (); below.
41340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41341     <limits.h> exists even on freestanding compilers.  */
41342
41343 #ifdef __STDC__
41344 # include <limits.h>
41345 #else
41346 # include <assert.h>
41347 #endif
41348
41349 #undef $ac_func
41350
41351 /* Override any GCC internal prototype to avoid an error.
41352    Use char because int might match the return type of a GCC
41353    builtin and then its argument prototype would still apply.  */
41354 #ifdef __cplusplus
41355 extern "C"
41356 #endif
41357 char $ac_func ();
41358 /* The GNU C library defines this for functions which it implements
41359     to always fail with ENOSYS.  Some functions are actually named
41360     something starting with __ and the normal name is an alias.  */
41361 #if defined __stub_$ac_func || defined __stub___$ac_func
41362 choke me
41363 #endif
41364
41365 int
41366 main ()
41367 {
41368 return $ac_func ();
41369   ;
41370   return 0;
41371 }
41372 _ACEOF
41373 rm -f conftest.$ac_objext conftest$ac_exeext
41374 if { (ac_try="$ac_link"
41375 case "(($ac_try" in
41376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41377   *) ac_try_echo=$ac_try;;
41378 esac
41379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41380   (eval "$ac_link") 2>conftest.er1
41381   ac_status=$?
41382   grep -v '^ *+' conftest.er1 >conftest.err
41383   rm -f conftest.er1
41384   cat conftest.err >&5
41385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); } && {
41387          test -z "$ac_c_werror_flag" ||
41388          test ! -s conftest.err
41389        } && test -s conftest$ac_exeext &&
41390        $as_test_x conftest$ac_exeext; then
41391   eval "$as_ac_var=yes"
41392 else
41393   echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41395
41396         eval "$as_ac_var=no"
41397 fi
41398
41399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41400       conftest$ac_exeext conftest.$ac_ext
41401 fi
41402 ac_res=`eval echo '${'$as_ac_var'}'`
41403                { echo "$as_me:$LINENO: result: $ac_res" >&5
41404 echo "${ECHO_T}$ac_res" >&6; }
41405 if test `eval echo '${'$as_ac_var'}'` = yes; then
41406   cat >>confdefs.h <<_ACEOF
41407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41408 _ACEOF
41409
41410 fi
41411 done
41412
41413 fi
41414
41415 HAVE_SOME_SLEEP_FUNC=0
41416 if test "$USE_BEOS" = 1; then
41417             cat >>confdefs.h <<\_ACEOF
41418 #define HAVE_SLEEP 1
41419 _ACEOF
41420
41421     HAVE_SOME_SLEEP_FUNC=1
41422 fi
41423
41424 if test "$USE_DARWIN" = 1; then
41425             cat >>confdefs.h <<\_ACEOF
41426 #define HAVE_USLEEP 1
41427 _ACEOF
41428
41429     HAVE_SOME_SLEEP_FUNC=1
41430 fi
41431
41432 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
41433         POSIX4_LINK=
41434
41435 for ac_func in nanosleep
41436 do
41437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 else
41443   cat >conftest.$ac_ext <<_ACEOF
41444 /* confdefs.h.  */
41445 _ACEOF
41446 cat confdefs.h >>conftest.$ac_ext
41447 cat >>conftest.$ac_ext <<_ACEOF
41448 /* end confdefs.h.  */
41449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41451 #define $ac_func innocuous_$ac_func
41452
41453 /* System header to define __stub macros and hopefully few prototypes,
41454     which can conflict with char $ac_func (); below.
41455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41456     <limits.h> exists even on freestanding compilers.  */
41457
41458 #ifdef __STDC__
41459 # include <limits.h>
41460 #else
41461 # include <assert.h>
41462 #endif
41463
41464 #undef $ac_func
41465
41466 /* Override any GCC internal prototype to avoid an error.
41467    Use char because int might match the return type of a GCC
41468    builtin and then its argument prototype would still apply.  */
41469 #ifdef __cplusplus
41470 extern "C"
41471 #endif
41472 char $ac_func ();
41473 /* The GNU C library defines this for functions which it implements
41474     to always fail with ENOSYS.  Some functions are actually named
41475     something starting with __ and the normal name is an alias.  */
41476 #if defined __stub_$ac_func || defined __stub___$ac_func
41477 choke me
41478 #endif
41479
41480 int
41481 main ()
41482 {
41483 return $ac_func ();
41484   ;
41485   return 0;
41486 }
41487 _ACEOF
41488 rm -f conftest.$ac_objext conftest$ac_exeext
41489 if { (ac_try="$ac_link"
41490 case "(($ac_try" in
41491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41492   *) ac_try_echo=$ac_try;;
41493 esac
41494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41495   (eval "$ac_link") 2>conftest.er1
41496   ac_status=$?
41497   grep -v '^ *+' conftest.er1 >conftest.err
41498   rm -f conftest.er1
41499   cat conftest.err >&5
41500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501   (exit $ac_status); } && {
41502          test -z "$ac_c_werror_flag" ||
41503          test ! -s conftest.err
41504        } && test -s conftest$ac_exeext &&
41505        $as_test_x conftest$ac_exeext; then
41506   eval "$as_ac_var=yes"
41507 else
41508   echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41510
41511         eval "$as_ac_var=no"
41512 fi
41513
41514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41515       conftest$ac_exeext conftest.$ac_ext
41516 fi
41517 ac_res=`eval echo '${'$as_ac_var'}'`
41518                { echo "$as_me:$LINENO: result: $ac_res" >&5
41519 echo "${ECHO_T}$ac_res" >&6; }
41520 if test `eval echo '${'$as_ac_var'}'` = yes; then
41521   cat >>confdefs.h <<_ACEOF
41522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41523 _ACEOF
41524  cat >>confdefs.h <<\_ACEOF
41525 #define HAVE_NANOSLEEP 1
41526 _ACEOF
41527
41528 else
41529
41530             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
41531 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
41532 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
41533   echo $ECHO_N "(cached) $ECHO_C" >&6
41534 else
41535   ac_check_lib_save_LIBS=$LIBS
41536 LIBS="-lposix4  $LIBS"
41537 cat >conftest.$ac_ext <<_ACEOF
41538 /* confdefs.h.  */
41539 _ACEOF
41540 cat confdefs.h >>conftest.$ac_ext
41541 cat >>conftest.$ac_ext <<_ACEOF
41542 /* end confdefs.h.  */
41543
41544 /* Override any GCC internal prototype to avoid an error.
41545    Use char because int might match the return type of a GCC
41546    builtin and then its argument prototype would still apply.  */
41547 #ifdef __cplusplus
41548 extern "C"
41549 #endif
41550 char nanosleep ();
41551 int
41552 main ()
41553 {
41554 return nanosleep ();
41555   ;
41556   return 0;
41557 }
41558 _ACEOF
41559 rm -f conftest.$ac_objext conftest$ac_exeext
41560 if { (ac_try="$ac_link"
41561 case "(($ac_try" in
41562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41563   *) ac_try_echo=$ac_try;;
41564 esac
41565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41566   (eval "$ac_link") 2>conftest.er1
41567   ac_status=$?
41568   grep -v '^ *+' conftest.er1 >conftest.err
41569   rm -f conftest.er1
41570   cat conftest.err >&5
41571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572   (exit $ac_status); } && {
41573          test -z "$ac_c_werror_flag" ||
41574          test ! -s conftest.err
41575        } && test -s conftest$ac_exeext &&
41576        $as_test_x conftest$ac_exeext; then
41577   ac_cv_lib_posix4_nanosleep=yes
41578 else
41579   echo "$as_me: failed program was:" >&5
41580 sed 's/^/| /' conftest.$ac_ext >&5
41581
41582         ac_cv_lib_posix4_nanosleep=no
41583 fi
41584
41585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41586       conftest$ac_exeext conftest.$ac_ext
41587 LIBS=$ac_check_lib_save_LIBS
41588 fi
41589 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
41590 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
41591 if test $ac_cv_lib_posix4_nanosleep = yes; then
41592
41593                     cat >>confdefs.h <<\_ACEOF
41594 #define HAVE_NANOSLEEP 1
41595 _ACEOF
41596
41597                     POSIX4_LINK=" -lposix4"
41598
41599 else
41600
41601
41602   for wx_func in usleep
41603   do
41604     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41605 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41606 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41607   echo $ECHO_N "(cached) $ECHO_C" >&6
41608 else
41609
41610         cat >conftest.$ac_ext <<_ACEOF
41611
41612             /* confdefs.h.  */
41613 _ACEOF
41614 cat confdefs.h >>conftest.$ac_ext
41615 cat >>conftest.$ac_ext <<_ACEOF
41616 /* end confdefs.h.  */
41617
41618
41619                 $ac_includes_default
41620
41621 int
41622 main ()
41623 {
41624
41625                 #ifndef $wx_func
41626                   &$wx_func;
41627                 #endif
41628
41629
41630   ;
41631   return 0;
41632 }
41633
41634 _ACEOF
41635 rm -f conftest.$ac_objext conftest$ac_exeext
41636 if { (ac_try="$ac_link"
41637 case "(($ac_try" in
41638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41639   *) ac_try_echo=$ac_try;;
41640 esac
41641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41642   (eval "$ac_link") 2>conftest.er1
41643   ac_status=$?
41644   grep -v '^ *+' conftest.er1 >conftest.err
41645   rm -f conftest.er1
41646   cat conftest.err >&5
41647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648   (exit $ac_status); } && {
41649          test -z "$ac_c_werror_flag" ||
41650          test ! -s conftest.err
41651        } && test -s conftest$ac_exeext &&
41652        $as_test_x conftest$ac_exeext; then
41653   eval wx_cv_func_$wx_func=yes
41654 else
41655   echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41657
41658         eval wx_cv_func_$wx_func=no
41659 fi
41660
41661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41662       conftest$ac_exeext conftest.$ac_ext
41663
41664 fi
41665 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41666                { echo "$as_me:$LINENO: result: $ac_res" >&5
41667 echo "${ECHO_T}$ac_res" >&6; }
41668
41669     if eval test \$wx_cv_func_$wx_func = yes
41670     then
41671       cat >>confdefs.h <<_ACEOF
41672 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41673 _ACEOF
41674
41675
41676     else
41677       :
41678       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
41679 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
41680
41681     fi
41682   done
41683
41684
41685
41686 fi
41687
41688
41689
41690 fi
41691 done
41692
41693 fi
41694
41695
41696   for wx_func in uname
41697   do
41698     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41699 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41700 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41701   echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703
41704         cat >conftest.$ac_ext <<_ACEOF
41705
41706             /* confdefs.h.  */
41707 _ACEOF
41708 cat confdefs.h >>conftest.$ac_ext
41709 cat >>conftest.$ac_ext <<_ACEOF
41710 /* end confdefs.h.  */
41711
41712                 #include <sys/utsname.h>
41713                 $ac_includes_default
41714
41715 int
41716 main ()
41717 {
41718
41719                 #ifndef $wx_func
41720                   &$wx_func;
41721                 #endif
41722
41723
41724   ;
41725   return 0;
41726 }
41727
41728 _ACEOF
41729 rm -f conftest.$ac_objext conftest$ac_exeext
41730 if { (ac_try="$ac_link"
41731 case "(($ac_try" in
41732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41733   *) ac_try_echo=$ac_try;;
41734 esac
41735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41736   (eval "$ac_link") 2>conftest.er1
41737   ac_status=$?
41738   grep -v '^ *+' conftest.er1 >conftest.err
41739   rm -f conftest.er1
41740   cat conftest.err >&5
41741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742   (exit $ac_status); } && {
41743          test -z "$ac_c_werror_flag" ||
41744          test ! -s conftest.err
41745        } && test -s conftest$ac_exeext &&
41746        $as_test_x conftest$ac_exeext; then
41747   eval wx_cv_func_$wx_func=yes
41748 else
41749   echo "$as_me: failed program was:" >&5
41750 sed 's/^/| /' conftest.$ac_ext >&5
41751
41752         eval wx_cv_func_$wx_func=no
41753 fi
41754
41755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41756       conftest$ac_exeext conftest.$ac_ext
41757
41758 fi
41759 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41760                { echo "$as_me:$LINENO: result: $ac_res" >&5
41761 echo "${ECHO_T}$ac_res" >&6; }
41762
41763     if eval test \$wx_cv_func_$wx_func = yes
41764     then
41765       cat >>confdefs.h <<_ACEOF
41766 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41767 _ACEOF
41768
41769
41770     else
41771       :
41772
41773     fi
41774   done
41775
41776 if test "$wx_cv_func_uname" != yes; then
41777
41778   for wx_func in gethostname
41779   do
41780     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41781 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41782 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41783   echo $ECHO_N "(cached) $ECHO_C" >&6
41784 else
41785
41786         cat >conftest.$ac_ext <<_ACEOF
41787
41788             /* confdefs.h.  */
41789 _ACEOF
41790 cat confdefs.h >>conftest.$ac_ext
41791 cat >>conftest.$ac_ext <<_ACEOF
41792 /* end confdefs.h.  */
41793
41794
41795                 $ac_includes_default
41796
41797 int
41798 main ()
41799 {
41800
41801                 #ifndef $wx_func
41802                   &$wx_func;
41803                 #endif
41804
41805
41806   ;
41807   return 0;
41808 }
41809
41810 _ACEOF
41811 rm -f conftest.$ac_objext conftest$ac_exeext
41812 if { (ac_try="$ac_link"
41813 case "(($ac_try" in
41814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41815   *) ac_try_echo=$ac_try;;
41816 esac
41817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41818   (eval "$ac_link") 2>conftest.er1
41819   ac_status=$?
41820   grep -v '^ *+' conftest.er1 >conftest.err
41821   rm -f conftest.er1
41822   cat conftest.err >&5
41823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824   (exit $ac_status); } && {
41825          test -z "$ac_c_werror_flag" ||
41826          test ! -s conftest.err
41827        } && test -s conftest$ac_exeext &&
41828        $as_test_x conftest$ac_exeext; then
41829   eval wx_cv_func_$wx_func=yes
41830 else
41831   echo "$as_me: failed program was:" >&5
41832 sed 's/^/| /' conftest.$ac_ext >&5
41833
41834         eval wx_cv_func_$wx_func=no
41835 fi
41836
41837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41838       conftest$ac_exeext conftest.$ac_ext
41839
41840 fi
41841 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41842                { echo "$as_me:$LINENO: result: $ac_res" >&5
41843 echo "${ECHO_T}$ac_res" >&6; }
41844
41845     if eval test \$wx_cv_func_$wx_func = yes
41846     then
41847       cat >>confdefs.h <<_ACEOF
41848 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41849 _ACEOF
41850
41851
41852     else
41853       :
41854
41855     fi
41856   done
41857
41858 fi
41859
41860
41861   for wx_func in strtok_r
41862   do
41863     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41864 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41865 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41866   echo $ECHO_N "(cached) $ECHO_C" >&6
41867 else
41868
41869         cat >conftest.$ac_ext <<_ACEOF
41870
41871             /* confdefs.h.  */
41872 _ACEOF
41873 cat confdefs.h >>conftest.$ac_ext
41874 cat >>conftest.$ac_ext <<_ACEOF
41875 /* end confdefs.h.  */
41876
41877                 #define _REENTRANT
41878                 $ac_includes_default
41879
41880 int
41881 main ()
41882 {
41883
41884                 #ifndef $wx_func
41885                   &$wx_func;
41886                 #endif
41887
41888
41889   ;
41890   return 0;
41891 }
41892
41893 _ACEOF
41894 rm -f conftest.$ac_objext conftest$ac_exeext
41895 if { (ac_try="$ac_link"
41896 case "(($ac_try" in
41897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41898   *) ac_try_echo=$ac_try;;
41899 esac
41900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41901   (eval "$ac_link") 2>conftest.er1
41902   ac_status=$?
41903   grep -v '^ *+' conftest.er1 >conftest.err
41904   rm -f conftest.er1
41905   cat conftest.err >&5
41906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907   (exit $ac_status); } && {
41908          test -z "$ac_c_werror_flag" ||
41909          test ! -s conftest.err
41910        } && test -s conftest$ac_exeext &&
41911        $as_test_x conftest$ac_exeext; then
41912   eval wx_cv_func_$wx_func=yes
41913 else
41914   echo "$as_me: failed program was:" >&5
41915 sed 's/^/| /' conftest.$ac_ext >&5
41916
41917         eval wx_cv_func_$wx_func=no
41918 fi
41919
41920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41921       conftest$ac_exeext conftest.$ac_ext
41922
41923 fi
41924 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41925                { echo "$as_me:$LINENO: result: $ac_res" >&5
41926 echo "${ECHO_T}$ac_res" >&6; }
41927
41928     if eval test \$wx_cv_func_$wx_func = yes
41929     then
41930       cat >>confdefs.h <<_ACEOF
41931 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41932 _ACEOF
41933
41934
41935     else
41936       :
41937
41938     fi
41939   done
41940
41941
41942 INET_LINK=
41943
41944 for ac_func in inet_addr
41945 do
41946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41950   echo $ECHO_N "(cached) $ECHO_C" >&6
41951 else
41952   cat >conftest.$ac_ext <<_ACEOF
41953 /* confdefs.h.  */
41954 _ACEOF
41955 cat confdefs.h >>conftest.$ac_ext
41956 cat >>conftest.$ac_ext <<_ACEOF
41957 /* end confdefs.h.  */
41958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41960 #define $ac_func innocuous_$ac_func
41961
41962 /* System header to define __stub macros and hopefully few prototypes,
41963     which can conflict with char $ac_func (); below.
41964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41965     <limits.h> exists even on freestanding compilers.  */
41966
41967 #ifdef __STDC__
41968 # include <limits.h>
41969 #else
41970 # include <assert.h>
41971 #endif
41972
41973 #undef $ac_func
41974
41975 /* Override any GCC internal prototype to avoid an error.
41976    Use char because int might match the return type of a GCC
41977    builtin and then its argument prototype would still apply.  */
41978 #ifdef __cplusplus
41979 extern "C"
41980 #endif
41981 char $ac_func ();
41982 /* The GNU C library defines this for functions which it implements
41983     to always fail with ENOSYS.  Some functions are actually named
41984     something starting with __ and the normal name is an alias.  */
41985 #if defined __stub_$ac_func || defined __stub___$ac_func
41986 choke me
41987 #endif
41988
41989 int
41990 main ()
41991 {
41992 return $ac_func ();
41993   ;
41994   return 0;
41995 }
41996 _ACEOF
41997 rm -f conftest.$ac_objext conftest$ac_exeext
41998 if { (ac_try="$ac_link"
41999 case "(($ac_try" in
42000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42001   *) ac_try_echo=$ac_try;;
42002 esac
42003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42004   (eval "$ac_link") 2>conftest.er1
42005   ac_status=$?
42006   grep -v '^ *+' conftest.er1 >conftest.err
42007   rm -f conftest.er1
42008   cat conftest.err >&5
42009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010   (exit $ac_status); } && {
42011          test -z "$ac_c_werror_flag" ||
42012          test ! -s conftest.err
42013        } && test -s conftest$ac_exeext &&
42014        $as_test_x conftest$ac_exeext; then
42015   eval "$as_ac_var=yes"
42016 else
42017   echo "$as_me: failed program was:" >&5
42018 sed 's/^/| /' conftest.$ac_ext >&5
42019
42020         eval "$as_ac_var=no"
42021 fi
42022
42023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42024       conftest$ac_exeext conftest.$ac_ext
42025 fi
42026 ac_res=`eval echo '${'$as_ac_var'}'`
42027                { echo "$as_me:$LINENO: result: $ac_res" >&5
42028 echo "${ECHO_T}$ac_res" >&6; }
42029 if test `eval echo '${'$as_ac_var'}'` = yes; then
42030   cat >>confdefs.h <<_ACEOF
42031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42032 _ACEOF
42033  cat >>confdefs.h <<\_ACEOF
42034 #define HAVE_INET_ADDR 1
42035 _ACEOF
42036
42037 else
42038
42039         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
42040 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
42041 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
42042   echo $ECHO_N "(cached) $ECHO_C" >&6
42043 else
42044   ac_check_lib_save_LIBS=$LIBS
42045 LIBS="-lnsl  $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_nsl_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_nsl_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_nsl_inet_addr" >&5
42099 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
42100 if test $ac_cv_lib_nsl_inet_addr = yes; then
42101   INET_LINK="nsl"
42102 else
42103
42104                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
42105 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
42106 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
42107   echo $ECHO_N "(cached) $ECHO_C" >&6
42108 else
42109   ac_check_lib_save_LIBS=$LIBS
42110 LIBS="-lresolv  $LIBS"
42111 cat >conftest.$ac_ext <<_ACEOF
42112 /* confdefs.h.  */
42113 _ACEOF
42114 cat confdefs.h >>conftest.$ac_ext
42115 cat >>conftest.$ac_ext <<_ACEOF
42116 /* end confdefs.h.  */
42117
42118 /* Override any GCC internal prototype to avoid an error.
42119    Use char because int might match the return type of a GCC
42120    builtin and then its argument prototype would still apply.  */
42121 #ifdef __cplusplus
42122 extern "C"
42123 #endif
42124 char inet_addr ();
42125 int
42126 main ()
42127 {
42128 return inet_addr ();
42129   ;
42130   return 0;
42131 }
42132 _ACEOF
42133 rm -f conftest.$ac_objext conftest$ac_exeext
42134 if { (ac_try="$ac_link"
42135 case "(($ac_try" in
42136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42137   *) ac_try_echo=$ac_try;;
42138 esac
42139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42140   (eval "$ac_link") 2>conftest.er1
42141   ac_status=$?
42142   grep -v '^ *+' conftest.er1 >conftest.err
42143   rm -f conftest.er1
42144   cat conftest.err >&5
42145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146   (exit $ac_status); } && {
42147          test -z "$ac_c_werror_flag" ||
42148          test ! -s conftest.err
42149        } && test -s conftest$ac_exeext &&
42150        $as_test_x conftest$ac_exeext; then
42151   ac_cv_lib_resolv_inet_addr=yes
42152 else
42153   echo "$as_me: failed program was:" >&5
42154 sed 's/^/| /' conftest.$ac_ext >&5
42155
42156         ac_cv_lib_resolv_inet_addr=no
42157 fi
42158
42159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42160       conftest$ac_exeext conftest.$ac_ext
42161 LIBS=$ac_check_lib_save_LIBS
42162 fi
42163 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
42164 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
42165 if test $ac_cv_lib_resolv_inet_addr = yes; then
42166   INET_LINK="resolv"
42167 else
42168
42169                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
42170 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
42171 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
42172   echo $ECHO_N "(cached) $ECHO_C" >&6
42173 else
42174   ac_check_lib_save_LIBS=$LIBS
42175 LIBS="-lsocket  $LIBS"
42176 cat >conftest.$ac_ext <<_ACEOF
42177 /* confdefs.h.  */
42178 _ACEOF
42179 cat confdefs.h >>conftest.$ac_ext
42180 cat >>conftest.$ac_ext <<_ACEOF
42181 /* end confdefs.h.  */
42182
42183 /* Override any GCC internal prototype to avoid an error.
42184    Use char because int might match the return type of a GCC
42185    builtin and then its argument prototype would still apply.  */
42186 #ifdef __cplusplus
42187 extern "C"
42188 #endif
42189 char inet_addr ();
42190 int
42191 main ()
42192 {
42193 return inet_addr ();
42194   ;
42195   return 0;
42196 }
42197 _ACEOF
42198 rm -f conftest.$ac_objext conftest$ac_exeext
42199 if { (ac_try="$ac_link"
42200 case "(($ac_try" in
42201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42202   *) ac_try_echo=$ac_try;;
42203 esac
42204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42205   (eval "$ac_link") 2>conftest.er1
42206   ac_status=$?
42207   grep -v '^ *+' conftest.er1 >conftest.err
42208   rm -f conftest.er1
42209   cat conftest.err >&5
42210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211   (exit $ac_status); } && {
42212          test -z "$ac_c_werror_flag" ||
42213          test ! -s conftest.err
42214        } && test -s conftest$ac_exeext &&
42215        $as_test_x conftest$ac_exeext; then
42216   ac_cv_lib_socket_inet_addr=yes
42217 else
42218   echo "$as_me: failed program was:" >&5
42219 sed 's/^/| /' conftest.$ac_ext >&5
42220
42221         ac_cv_lib_socket_inet_addr=no
42222 fi
42223
42224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42225       conftest$ac_exeext conftest.$ac_ext
42226 LIBS=$ac_check_lib_save_LIBS
42227 fi
42228 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
42229 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
42230 if test $ac_cv_lib_socket_inet_addr = yes; then
42231   INET_LINK="socket"
42232
42233 fi
42234
42235
42236
42237 fi
42238
42239
42240
42241 fi
42242
42243
42244
42245 fi
42246 done
42247
42248
42249
42250 for ac_func in inet_aton
42251 do
42252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42256   echo $ECHO_N "(cached) $ECHO_C" >&6
42257 else
42258   cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h.  */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h.  */
42264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42266 #define $ac_func innocuous_$ac_func
42267
42268 /* System header to define __stub macros and hopefully few prototypes,
42269     which can conflict with char $ac_func (); below.
42270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42271     <limits.h> exists even on freestanding compilers.  */
42272
42273 #ifdef __STDC__
42274 # include <limits.h>
42275 #else
42276 # include <assert.h>
42277 #endif
42278
42279 #undef $ac_func
42280
42281 /* Override any GCC internal prototype to avoid an error.
42282    Use char because int might match the return type of a GCC
42283    builtin and then its argument prototype would still apply.  */
42284 #ifdef __cplusplus
42285 extern "C"
42286 #endif
42287 char $ac_func ();
42288 /* The GNU C library defines this for functions which it implements
42289     to always fail with ENOSYS.  Some functions are actually named
42290     something starting with __ and the normal name is an alias.  */
42291 #if defined __stub_$ac_func || defined __stub___$ac_func
42292 choke me
42293 #endif
42294
42295 int
42296 main ()
42297 {
42298 return $ac_func ();
42299   ;
42300   return 0;
42301 }
42302 _ACEOF
42303 rm -f conftest.$ac_objext conftest$ac_exeext
42304 if { (ac_try="$ac_link"
42305 case "(($ac_try" in
42306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42307   *) ac_try_echo=$ac_try;;
42308 esac
42309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42310   (eval "$ac_link") 2>conftest.er1
42311   ac_status=$?
42312   grep -v '^ *+' conftest.er1 >conftest.err
42313   rm -f conftest.er1
42314   cat conftest.err >&5
42315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316   (exit $ac_status); } && {
42317          test -z "$ac_c_werror_flag" ||
42318          test ! -s conftest.err
42319        } && test -s conftest$ac_exeext &&
42320        $as_test_x conftest$ac_exeext; then
42321   eval "$as_ac_var=yes"
42322 else
42323   echo "$as_me: failed program was:" >&5
42324 sed 's/^/| /' conftest.$ac_ext >&5
42325
42326         eval "$as_ac_var=no"
42327 fi
42328
42329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42330       conftest$ac_exeext conftest.$ac_ext
42331 fi
42332 ac_res=`eval echo '${'$as_ac_var'}'`
42333                { echo "$as_me:$LINENO: result: $ac_res" >&5
42334 echo "${ECHO_T}$ac_res" >&6; }
42335 if test `eval echo '${'$as_ac_var'}'` = yes; then
42336   cat >>confdefs.h <<_ACEOF
42337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42338 _ACEOF
42339  cat >>confdefs.h <<\_ACEOF
42340 #define HAVE_INET_ATON 1
42341 _ACEOF
42342
42343 else
42344
42345                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
42346 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
42347 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
42348 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42349   echo $ECHO_N "(cached) $ECHO_C" >&6
42350 else
42351   ac_check_lib_save_LIBS=$LIBS
42352 LIBS="-l$INET_LINK  $LIBS"
42353 cat >conftest.$ac_ext <<_ACEOF
42354 /* confdefs.h.  */
42355 _ACEOF
42356 cat confdefs.h >>conftest.$ac_ext
42357 cat >>conftest.$ac_ext <<_ACEOF
42358 /* end confdefs.h.  */
42359
42360 /* Override any GCC internal prototype to avoid an error.
42361    Use char because int might match the return type of a GCC
42362    builtin and then its argument prototype would still apply.  */
42363 #ifdef __cplusplus
42364 extern "C"
42365 #endif
42366 char inet_aton ();
42367 int
42368 main ()
42369 {
42370 return inet_aton ();
42371   ;
42372   return 0;
42373 }
42374 _ACEOF
42375 rm -f conftest.$ac_objext conftest$ac_exeext
42376 if { (ac_try="$ac_link"
42377 case "(($ac_try" in
42378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42379   *) ac_try_echo=$ac_try;;
42380 esac
42381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42382   (eval "$ac_link") 2>conftest.er1
42383   ac_status=$?
42384   grep -v '^ *+' conftest.er1 >conftest.err
42385   rm -f conftest.er1
42386   cat conftest.err >&5
42387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388   (exit $ac_status); } && {
42389          test -z "$ac_c_werror_flag" ||
42390          test ! -s conftest.err
42391        } && test -s conftest$ac_exeext &&
42392        $as_test_x conftest$ac_exeext; then
42393   eval "$as_ac_Lib=yes"
42394 else
42395   echo "$as_me: failed program was:" >&5
42396 sed 's/^/| /' conftest.$ac_ext >&5
42397
42398         eval "$as_ac_Lib=no"
42399 fi
42400
42401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42402       conftest$ac_exeext conftest.$ac_ext
42403 LIBS=$ac_check_lib_save_LIBS
42404 fi
42405 ac_res=`eval echo '${'$as_ac_Lib'}'`
42406                { echo "$as_me:$LINENO: result: $ac_res" >&5
42407 echo "${ECHO_T}$ac_res" >&6; }
42408 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42409   cat >>confdefs.h <<\_ACEOF
42410 #define HAVE_INET_ATON 1
42411 _ACEOF
42412
42413 fi
42414
42415
42416 fi
42417 done
42418
42419
42420 if test "x$INET_LINK" != "x"; then
42421     cat >>confdefs.h <<\_ACEOF
42422 #define HAVE_INET_ADDR 1
42423 _ACEOF
42424
42425     INET_LINK=" -l$INET_LINK"
42426 fi
42427
42428
42429   for wx_func in fdopen
42430   do
42431     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42432 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42433 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42434   echo $ECHO_N "(cached) $ECHO_C" >&6
42435 else
42436
42437         cat >conftest.$ac_ext <<_ACEOF
42438
42439             /* confdefs.h.  */
42440 _ACEOF
42441 cat confdefs.h >>conftest.$ac_ext
42442 cat >>conftest.$ac_ext <<_ACEOF
42443 /* end confdefs.h.  */
42444
42445
42446                 $ac_includes_default
42447
42448 int
42449 main ()
42450 {
42451
42452                 #ifndef $wx_func
42453                   &$wx_func;
42454                 #endif
42455
42456
42457   ;
42458   return 0;
42459 }
42460
42461 _ACEOF
42462 rm -f conftest.$ac_objext conftest$ac_exeext
42463 if { (ac_try="$ac_link"
42464 case "(($ac_try" in
42465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42466   *) ac_try_echo=$ac_try;;
42467 esac
42468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42469   (eval "$ac_link") 2>conftest.er1
42470   ac_status=$?
42471   grep -v '^ *+' conftest.er1 >conftest.err
42472   rm -f conftest.er1
42473   cat conftest.err >&5
42474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42475   (exit $ac_status); } && {
42476          test -z "$ac_c_werror_flag" ||
42477          test ! -s conftest.err
42478        } && test -s conftest$ac_exeext &&
42479        $as_test_x conftest$ac_exeext; then
42480   eval wx_cv_func_$wx_func=yes
42481 else
42482   echo "$as_me: failed program was:" >&5
42483 sed 's/^/| /' conftest.$ac_ext >&5
42484
42485         eval wx_cv_func_$wx_func=no
42486 fi
42487
42488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42489       conftest$ac_exeext conftest.$ac_ext
42490
42491 fi
42492 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42493                { echo "$as_me:$LINENO: result: $ac_res" >&5
42494 echo "${ECHO_T}$ac_res" >&6; }
42495
42496     if eval test \$wx_cv_func_$wx_func = yes
42497     then
42498       cat >>confdefs.h <<_ACEOF
42499 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42500 _ACEOF
42501
42502
42503     else
42504       :
42505
42506     fi
42507   done
42508
42509
42510 if test "$wxUSE_TARSTREAM" = "yes"; then
42511
42512   for wx_func in sysconf
42513   do
42514     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42515 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42516 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42517   echo $ECHO_N "(cached) $ECHO_C" >&6
42518 else
42519
42520         cat >conftest.$ac_ext <<_ACEOF
42521
42522             /* confdefs.h.  */
42523 _ACEOF
42524 cat confdefs.h >>conftest.$ac_ext
42525 cat >>conftest.$ac_ext <<_ACEOF
42526 /* end confdefs.h.  */
42527
42528
42529                 $ac_includes_default
42530
42531 int
42532 main ()
42533 {
42534
42535                 #ifndef $wx_func
42536                   &$wx_func;
42537                 #endif
42538
42539
42540   ;
42541   return 0;
42542 }
42543
42544 _ACEOF
42545 rm -f conftest.$ac_objext conftest$ac_exeext
42546 if { (ac_try="$ac_link"
42547 case "(($ac_try" in
42548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42549   *) ac_try_echo=$ac_try;;
42550 esac
42551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42552   (eval "$ac_link") 2>conftest.er1
42553   ac_status=$?
42554   grep -v '^ *+' conftest.er1 >conftest.err
42555   rm -f conftest.er1
42556   cat conftest.err >&5
42557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42558   (exit $ac_status); } && {
42559          test -z "$ac_c_werror_flag" ||
42560          test ! -s conftest.err
42561        } && test -s conftest$ac_exeext &&
42562        $as_test_x conftest$ac_exeext; then
42563   eval wx_cv_func_$wx_func=yes
42564 else
42565   echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42567
42568         eval wx_cv_func_$wx_func=no
42569 fi
42570
42571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42572       conftest$ac_exeext conftest.$ac_ext
42573
42574 fi
42575 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42576                { echo "$as_me:$LINENO: result: $ac_res" >&5
42577 echo "${ECHO_T}$ac_res" >&6; }
42578
42579     if eval test \$wx_cv_func_$wx_func = yes
42580     then
42581       cat >>confdefs.h <<_ACEOF
42582 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42583 _ACEOF
42584
42585
42586     else
42587       :
42588
42589     fi
42590   done
42591
42592
42593
42594   for wx_func in getpwuid_r
42595   do
42596     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42597 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42598 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42599   echo $ECHO_N "(cached) $ECHO_C" >&6
42600 else
42601
42602         cat >conftest.$ac_ext <<_ACEOF
42603
42604             /* confdefs.h.  */
42605 _ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h.  */
42609
42610
42611                     #define _REENTRANT
42612                     #include <pwd.h>
42613
42614                 $ac_includes_default
42615
42616 int
42617 main ()
42618 {
42619
42620                 #ifndef $wx_func
42621                   &$wx_func;
42622                 #endif
42623
42624                     struct passwd pw, *ppw;
42625                     char buf[1024];
42626                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
42627
42628
42629   ;
42630   return 0;
42631 }
42632
42633 _ACEOF
42634 rm -f conftest.$ac_objext conftest$ac_exeext
42635 if { (ac_try="$ac_link"
42636 case "(($ac_try" in
42637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42638   *) ac_try_echo=$ac_try;;
42639 esac
42640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42641   (eval "$ac_link") 2>conftest.er1
42642   ac_status=$?
42643   grep -v '^ *+' conftest.er1 >conftest.err
42644   rm -f conftest.er1
42645   cat conftest.err >&5
42646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647   (exit $ac_status); } && {
42648          test -z "$ac_c_werror_flag" ||
42649          test ! -s conftest.err
42650        } && test -s conftest$ac_exeext &&
42651        $as_test_x conftest$ac_exeext; then
42652   eval wx_cv_func_$wx_func=yes
42653 else
42654   echo "$as_me: failed program was:" >&5
42655 sed 's/^/| /' conftest.$ac_ext >&5
42656
42657         eval wx_cv_func_$wx_func=no
42658 fi
42659
42660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42661       conftest$ac_exeext conftest.$ac_ext
42662
42663 fi
42664 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42665                { echo "$as_me:$LINENO: result: $ac_res" >&5
42666 echo "${ECHO_T}$ac_res" >&6; }
42667
42668     if eval test \$wx_cv_func_$wx_func = yes
42669     then
42670       cat >>confdefs.h <<_ACEOF
42671 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42672 _ACEOF
42673
42674
42675     else
42676       :
42677
42678     fi
42679   done
42680
42681
42682
42683   for wx_func in getgrgid_r
42684   do
42685     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42686 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42687 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42688   echo $ECHO_N "(cached) $ECHO_C" >&6
42689 else
42690
42691         cat >conftest.$ac_ext <<_ACEOF
42692
42693             /* confdefs.h.  */
42694 _ACEOF
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h.  */
42698
42699
42700                     #define _REENTRANT
42701                     #include <grp.h>
42702
42703                 $ac_includes_default
42704
42705 int
42706 main ()
42707 {
42708
42709                 #ifndef $wx_func
42710                   &$wx_func;
42711                 #endif
42712
42713                     struct group grp, *pgrp;
42714                     char buf[1024];
42715                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
42716
42717
42718   ;
42719   return 0;
42720 }
42721
42722 _ACEOF
42723 rm -f conftest.$ac_objext conftest$ac_exeext
42724 if { (ac_try="$ac_link"
42725 case "(($ac_try" in
42726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42727   *) ac_try_echo=$ac_try;;
42728 esac
42729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42730   (eval "$ac_link") 2>conftest.er1
42731   ac_status=$?
42732   grep -v '^ *+' conftest.er1 >conftest.err
42733   rm -f conftest.er1
42734   cat conftest.err >&5
42735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42736   (exit $ac_status); } && {
42737          test -z "$ac_c_werror_flag" ||
42738          test ! -s conftest.err
42739        } && test -s conftest$ac_exeext &&
42740        $as_test_x conftest$ac_exeext; then
42741   eval wx_cv_func_$wx_func=yes
42742 else
42743   echo "$as_me: failed program was:" >&5
42744 sed 's/^/| /' conftest.$ac_ext >&5
42745
42746         eval wx_cv_func_$wx_func=no
42747 fi
42748
42749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42750       conftest$ac_exeext conftest.$ac_ext
42751
42752 fi
42753 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42754                { echo "$as_me:$LINENO: result: $ac_res" >&5
42755 echo "${ECHO_T}$ac_res" >&6; }
42756
42757     if eval test \$wx_cv_func_$wx_func = yes
42758     then
42759       cat >>confdefs.h <<_ACEOF
42760 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42761 _ACEOF
42762
42763
42764     else
42765       :
42766
42767     fi
42768   done
42769
42770 fi
42771
42772 fi
42773
42774
42775
42776 cat >confcache <<\_ACEOF
42777 # This file is a shell script that caches the results of configure
42778 # tests run on this system so they can be shared between configure
42779 # scripts and configure runs, see configure's option --config-cache.
42780 # It is not useful on other systems.  If it contains results you don't
42781 # want to keep, you may remove or edit it.
42782 #
42783 # config.status only pays attention to the cache file if you give it
42784 # the --recheck option to rerun configure.
42785 #
42786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42788 # following values.
42789
42790 _ACEOF
42791
42792 # The following way of writing the cache mishandles newlines in values,
42793 # but we know of no workaround that is simple, portable, and efficient.
42794 # So, we kill variables containing newlines.
42795 # Ultrix sh set writes to stderr and can't be redirected directly,
42796 # and sets the high bit in the cache file unless we assign to the vars.
42797 (
42798   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42799     eval ac_val=\$$ac_var
42800     case $ac_val in #(
42801     *${as_nl}*)
42802       case $ac_var in #(
42803       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42805       esac
42806       case $ac_var in #(
42807       _ | IFS | as_nl) ;; #(
42808       *) $as_unset $ac_var ;;
42809       esac ;;
42810     esac
42811   done
42812
42813   (set) 2>&1 |
42814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42815     *${as_nl}ac_space=\ *)
42816       # `set' does not quote correctly, so add quotes (double-quote
42817       # substitution turns \\\\ into \\, and sed turns \\ into \).
42818       sed -n \
42819         "s/'/'\\\\''/g;
42820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42821       ;; #(
42822     *)
42823       # `set' quotes correctly as required by POSIX, so do not add quotes.
42824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42825       ;;
42826     esac |
42827     sort
42828 ) |
42829   sed '
42830      /^ac_cv_env_/b end
42831      t clear
42832      :clear
42833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42834      t end
42835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42836      :end' >>confcache
42837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42838   if test -w "$cache_file"; then
42839     test "x$cache_file" != "x/dev/null" &&
42840       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42841 echo "$as_me: updating cache $cache_file" >&6;}
42842     cat confcache >$cache_file
42843   else
42844     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42845 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42846   fi
42847 fi
42848 rm -f confcache
42849
42850
42851 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42852
42853
42854     THREADS_LINK=
42855     THREADS_CFLAGS=
42856
42857     if test "$wxUSE_THREADS" = "yes" ; then
42858         if test "$USE_BEOS" = 1; then
42859             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
42860 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
42861             wxUSE_THREADS="no"
42862         fi
42863     fi
42864
42865     if test "$wxUSE_THREADS" = "yes" ; then
42866
42867
42868                                 THREAD_OPTS="-pthread"
42869         if test "x$SUNCXX" = xyes; then
42870             THREAD_OPTS="-mt lthread $THREAD_OPTS"
42871         fi
42872
42873         case "${host}" in
42874           *-*-solaris2* | *-*-sunos4* )
42875                 if test "x$GCC" = "xyes"; then
42876                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
42877                 fi
42878                 ;;
42879           *-*-freebsd*)
42880                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
42881                 ;;
42882           *-*-darwin* | *-*-cygwin* )
42883                                                 THREAD_OPTS=""
42884                 ;;
42885           *-*-aix*)
42886                                 THREAD_OPTS="pthreads"
42887                 ;;
42888           *-hp-hpux* )
42889                 if test "x$GCC" = "xyes"; then
42890                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
42891                         THREAD_OPTS=""
42892                 else
42893                                                             THREAD_OPTS="-mt"
42894                 fi
42895                 ;;
42896
42897           *-*-irix* )
42898                                                                 if test "x$GCC" = "xyes"; then
42899                     THREAD_OPTS=""
42900                 fi
42901                 ;;
42902
42903           *-*-qnx*)
42904                                                 THREAD_OPTS=""
42905                 ;;
42906
42907           *-*-*UnixWare*)
42908                                 if test "x$GCC" != "xyes"; then
42909                     THREAD_OPTS="-Ethread"
42910                 fi
42911                 ;;
42912         esac
42913
42914         case "${host}" in
42915             *-*-qnx*)
42916                                                                 THREAD_OPTS="none pthread"
42917                 ;;
42918
42919             *)
42920                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
42921                 ;;
42922         esac
42923
42924                 THREADS_OK=no
42925         for flag in $THREAD_OPTS; do
42926             case $flag in
42927                 none)
42928                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42929 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42930                     ;;
42931
42932                 -*)
42933                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42934 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42935                     THREADS_CFLAGS="$flag"
42936                     ;;
42937
42938                 *)
42939                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42940 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42941                     THREADS_LINK="-l$flag"
42942                     ;;
42943               esac
42944
42945               save_LIBS="$LIBS"
42946               save_CFLAGS="$CFLAGS"
42947               LIBS="$THREADS_LINK $LIBS"
42948               CFLAGS="$THREADS_CFLAGS $CFLAGS"
42949
42950               cat >conftest.$ac_ext <<_ACEOF
42951 /* confdefs.h.  */
42952 _ACEOF
42953 cat confdefs.h >>conftest.$ac_ext
42954 cat >>conftest.$ac_ext <<_ACEOF
42955 /* end confdefs.h.  */
42956 #include <pthread.h>
42957 int
42958 main ()
42959 {
42960 pthread_create(0,0,0,0);
42961   ;
42962   return 0;
42963 }
42964 _ACEOF
42965 rm -f conftest.$ac_objext conftest$ac_exeext
42966 if { (ac_try="$ac_link"
42967 case "(($ac_try" in
42968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42969   *) ac_try_echo=$ac_try;;
42970 esac
42971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42972   (eval "$ac_link") 2>conftest.er1
42973   ac_status=$?
42974   grep -v '^ *+' conftest.er1 >conftest.err
42975   rm -f conftest.er1
42976   cat conftest.err >&5
42977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978   (exit $ac_status); } && {
42979          test -z "$ac_c_werror_flag" ||
42980          test ! -s conftest.err
42981        } && test -s conftest$ac_exeext &&
42982        $as_test_x conftest$ac_exeext; then
42983   THREADS_OK=yes
42984 else
42985   echo "$as_me: failed program was:" >&5
42986 sed 's/^/| /' conftest.$ac_ext >&5
42987
42988
42989 fi
42990
42991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42992       conftest$ac_exeext conftest.$ac_ext
42993
42994               LIBS="$save_LIBS"
42995               CFLAGS="$save_CFLAGS"
42996
42997               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
42998 echo "${ECHO_T}$THREADS_OK" >&6; }
42999               if test "x$THREADS_OK" = "xyes"; then
43000                       break;
43001               fi
43002
43003               THREADS_LINK=""
43004               THREADS_CFLAGS=""
43005       done
43006
43007       if test "x$THREADS_OK" != "xyes"; then
43008           wxUSE_THREADS=no
43009           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
43010 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
43011       else
43012                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
43013           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
43014           LIBS="$THREADS_LINK $LIBS"
43015
43016           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
43017 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
43018           flag=no
43019           case "${host}" in
43020             *-aix*)
43021                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
43022                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
43023                 flag="-D_THREAD_SAFE"
43024                 ;;
43025             *-freebsd*)
43026                 flag="-D_THREAD_SAFE"
43027                 ;;
43028             *-hp-hpux* )
43029                 flag="-D_REENTRANT"
43030                 if test "x$GCC" != "xyes"; then
43031                                         flag="$flag -D_RWSTD_MULTI_THREAD"
43032                 fi
43033                 ;;
43034             *solaris* | alpha*-osf*)
43035                 flag="-D_REENTRANT"
43036                 ;;
43037           esac
43038           { echo "$as_me:$LINENO: result: ${flag}" >&5
43039 echo "${ECHO_T}${flag}" >&6; }
43040           if test "x$flag" != xno; then
43041               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
43042           fi
43043
43044                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
43045       fi
43046     fi
43047
43048         if test "$wxUSE_THREADS" = "yes" ; then
43049
43050 for ac_func in thr_setconcurrency
43051 do
43052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058   cat >conftest.$ac_ext <<_ACEOF
43059 /* confdefs.h.  */
43060 _ACEOF
43061 cat confdefs.h >>conftest.$ac_ext
43062 cat >>conftest.$ac_ext <<_ACEOF
43063 /* end confdefs.h.  */
43064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43066 #define $ac_func innocuous_$ac_func
43067
43068 /* System header to define __stub macros and hopefully few prototypes,
43069     which can conflict with char $ac_func (); below.
43070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43071     <limits.h> exists even on freestanding compilers.  */
43072
43073 #ifdef __STDC__
43074 # include <limits.h>
43075 #else
43076 # include <assert.h>
43077 #endif
43078
43079 #undef $ac_func
43080
43081 /* Override any GCC internal prototype to avoid an error.
43082    Use char because int might match the return type of a GCC
43083    builtin and then its argument prototype would still apply.  */
43084 #ifdef __cplusplus
43085 extern "C"
43086 #endif
43087 char $ac_func ();
43088 /* The GNU C library defines this for functions which it implements
43089     to always fail with ENOSYS.  Some functions are actually named
43090     something starting with __ and the normal name is an alias.  */
43091 #if defined __stub_$ac_func || defined __stub___$ac_func
43092 choke me
43093 #endif
43094
43095 int
43096 main ()
43097 {
43098 return $ac_func ();
43099   ;
43100   return 0;
43101 }
43102 _ACEOF
43103 rm -f conftest.$ac_objext conftest$ac_exeext
43104 if { (ac_try="$ac_link"
43105 case "(($ac_try" in
43106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43107   *) ac_try_echo=$ac_try;;
43108 esac
43109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43110   (eval "$ac_link") 2>conftest.er1
43111   ac_status=$?
43112   grep -v '^ *+' conftest.er1 >conftest.err
43113   rm -f conftest.er1
43114   cat conftest.err >&5
43115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43116   (exit $ac_status); } && {
43117          test -z "$ac_c_werror_flag" ||
43118          test ! -s conftest.err
43119        } && test -s conftest$ac_exeext &&
43120        $as_test_x conftest$ac_exeext; then
43121   eval "$as_ac_var=yes"
43122 else
43123   echo "$as_me: failed program was:" >&5
43124 sed 's/^/| /' conftest.$ac_ext >&5
43125
43126         eval "$as_ac_var=no"
43127 fi
43128
43129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43130       conftest$ac_exeext conftest.$ac_ext
43131 fi
43132 ac_res=`eval echo '${'$as_ac_var'}'`
43133                { echo "$as_me:$LINENO: result: $ac_res" >&5
43134 echo "${ECHO_T}$ac_res" >&6; }
43135 if test `eval echo '${'$as_ac_var'}'` = yes; then
43136   cat >>confdefs.h <<_ACEOF
43137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43138 _ACEOF
43139
43140 fi
43141 done
43142
43143
43144                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
43145 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
43146 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
43147   echo $ECHO_N "(cached) $ECHO_C" >&6
43148 else
43149
43150                                 ac_ext=cpp
43151 ac_cpp='$CXXCPP $CPPFLAGS'
43152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43155
43156         cat >conftest.$ac_ext <<_ACEOF
43157 /* confdefs.h.  */
43158 _ACEOF
43159 cat confdefs.h >>conftest.$ac_ext
43160 cat >>conftest.$ac_ext <<_ACEOF
43161 /* end confdefs.h.  */
43162 #include <pthread.h>
43163                void ThreadCleanupFunc(void *p);
43164
43165 int
43166 main ()
43167 {
43168
43169                 void *p;
43170                 pthread_cleanup_push(ThreadCleanupFunc, p);
43171                 pthread_cleanup_pop(0);
43172
43173   ;
43174   return 0;
43175 }
43176 _ACEOF
43177 rm -f conftest.$ac_objext
43178 if { (ac_try="$ac_compile"
43179 case "(($ac_try" in
43180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43181   *) ac_try_echo=$ac_try;;
43182 esac
43183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43184   (eval "$ac_compile") 2>conftest.er1
43185   ac_status=$?
43186   grep -v '^ *+' conftest.er1 >conftest.err
43187   rm -f conftest.er1
43188   cat conftest.err >&5
43189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190   (exit $ac_status); } && {
43191          test -z "$ac_cxx_werror_flag" ||
43192          test ! -s conftest.err
43193        } && test -s conftest.$ac_objext; then
43194
43195                wx_cv_func_pthread_cleanup=yes
43196
43197 else
43198   echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43200
43201
43202                wx_cv_func_pthread_cleanup=no
43203
43204
43205 fi
43206
43207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43208         ac_ext=c
43209 ac_cpp='$CPP $CPPFLAGS'
43210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43213
43214
43215 fi
43216 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
43217 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
43218       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
43219         cat >>confdefs.h <<\_ACEOF
43220 #define wxHAVE_PTHREAD_CLEANUP 1
43221 _ACEOF
43222
43223       fi
43224
43225
43226 for ac_header in sched.h
43227 do
43228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43232   echo $ECHO_N "(cached) $ECHO_C" >&6
43233 else
43234   cat >conftest.$ac_ext <<_ACEOF
43235 /* confdefs.h.  */
43236 _ACEOF
43237 cat confdefs.h >>conftest.$ac_ext
43238 cat >>conftest.$ac_ext <<_ACEOF
43239 /* end confdefs.h.  */
43240 $ac_includes_default
43241
43242 #include <$ac_header>
43243 _ACEOF
43244 rm -f conftest.$ac_objext
43245 if { (ac_try="$ac_compile"
43246 case "(($ac_try" in
43247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43248   *) ac_try_echo=$ac_try;;
43249 esac
43250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43251   (eval "$ac_compile") 2>conftest.er1
43252   ac_status=$?
43253   grep -v '^ *+' conftest.er1 >conftest.err
43254   rm -f conftest.er1
43255   cat conftest.err >&5
43256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257   (exit $ac_status); } && {
43258          test -z "$ac_c_werror_flag" ||
43259          test ! -s conftest.err
43260        } && test -s conftest.$ac_objext; then
43261   eval "$as_ac_Header=yes"
43262 else
43263   echo "$as_me: failed program was:" >&5
43264 sed 's/^/| /' conftest.$ac_ext >&5
43265
43266         eval "$as_ac_Header=no"
43267 fi
43268
43269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43270 fi
43271 ac_res=`eval echo '${'$as_ac_Header'}'`
43272                { echo "$as_me:$LINENO: result: $ac_res" >&5
43273 echo "${ECHO_T}$ac_res" >&6; }
43274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43275   cat >>confdefs.h <<_ACEOF
43276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43277 _ACEOF
43278
43279 fi
43280
43281 done
43282
43283       if test "$ac_cv_header_sched_h" = "yes"; then
43284           { echo "$as_me:$LINENO: checking for sched_yield" >&5
43285 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
43286 if test "${ac_cv_func_sched_yield+set}" = set; then
43287   echo $ECHO_N "(cached) $ECHO_C" >&6
43288 else
43289   cat >conftest.$ac_ext <<_ACEOF
43290 /* confdefs.h.  */
43291 _ACEOF
43292 cat confdefs.h >>conftest.$ac_ext
43293 cat >>conftest.$ac_ext <<_ACEOF
43294 /* end confdefs.h.  */
43295 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43297 #define sched_yield innocuous_sched_yield
43298
43299 /* System header to define __stub macros and hopefully few prototypes,
43300     which can conflict with char sched_yield (); below.
43301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43302     <limits.h> exists even on freestanding compilers.  */
43303
43304 #ifdef __STDC__
43305 # include <limits.h>
43306 #else
43307 # include <assert.h>
43308 #endif
43309
43310 #undef sched_yield
43311
43312 /* Override any GCC internal prototype to avoid an error.
43313    Use char because int might match the return type of a GCC
43314    builtin and then its argument prototype would still apply.  */
43315 #ifdef __cplusplus
43316 extern "C"
43317 #endif
43318 char sched_yield ();
43319 /* The GNU C library defines this for functions which it implements
43320     to always fail with ENOSYS.  Some functions are actually named
43321     something starting with __ and the normal name is an alias.  */
43322 #if defined __stub_sched_yield || defined __stub___sched_yield
43323 choke me
43324 #endif
43325
43326 int
43327 main ()
43328 {
43329 return sched_yield ();
43330   ;
43331   return 0;
43332 }
43333 _ACEOF
43334 rm -f conftest.$ac_objext conftest$ac_exeext
43335 if { (ac_try="$ac_link"
43336 case "(($ac_try" in
43337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43338   *) ac_try_echo=$ac_try;;
43339 esac
43340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43341   (eval "$ac_link") 2>conftest.er1
43342   ac_status=$?
43343   grep -v '^ *+' conftest.er1 >conftest.err
43344   rm -f conftest.er1
43345   cat conftest.err >&5
43346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43347   (exit $ac_status); } && {
43348          test -z "$ac_c_werror_flag" ||
43349          test ! -s conftest.err
43350        } && test -s conftest$ac_exeext &&
43351        $as_test_x conftest$ac_exeext; then
43352   ac_cv_func_sched_yield=yes
43353 else
43354   echo "$as_me: failed program was:" >&5
43355 sed 's/^/| /' conftest.$ac_ext >&5
43356
43357         ac_cv_func_sched_yield=no
43358 fi
43359
43360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43361       conftest$ac_exeext conftest.$ac_ext
43362 fi
43363 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
43364 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
43365 if test $ac_cv_func_sched_yield = yes; then
43366   cat >>confdefs.h <<\_ACEOF
43367 #define HAVE_SCHED_YIELD 1
43368 _ACEOF
43369
43370 else
43371
43372                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
43373 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
43374 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
43375   echo $ECHO_N "(cached) $ECHO_C" >&6
43376 else
43377   ac_check_lib_save_LIBS=$LIBS
43378 LIBS="-lposix4  $LIBS"
43379 cat >conftest.$ac_ext <<_ACEOF
43380 /* confdefs.h.  */
43381 _ACEOF
43382 cat confdefs.h >>conftest.$ac_ext
43383 cat >>conftest.$ac_ext <<_ACEOF
43384 /* end confdefs.h.  */
43385
43386 /* Override any GCC internal prototype to avoid an error.
43387    Use char because int might match the return type of a GCC
43388    builtin and then its argument prototype would still apply.  */
43389 #ifdef __cplusplus
43390 extern "C"
43391 #endif
43392 char sched_yield ();
43393 int
43394 main ()
43395 {
43396 return sched_yield ();
43397   ;
43398   return 0;
43399 }
43400 _ACEOF
43401 rm -f conftest.$ac_objext conftest$ac_exeext
43402 if { (ac_try="$ac_link"
43403 case "(($ac_try" in
43404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43405   *) ac_try_echo=$ac_try;;
43406 esac
43407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43408   (eval "$ac_link") 2>conftest.er1
43409   ac_status=$?
43410   grep -v '^ *+' conftest.er1 >conftest.err
43411   rm -f conftest.er1
43412   cat conftest.err >&5
43413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414   (exit $ac_status); } && {
43415          test -z "$ac_c_werror_flag" ||
43416          test ! -s conftest.err
43417        } && test -s conftest$ac_exeext &&
43418        $as_test_x conftest$ac_exeext; then
43419   ac_cv_lib_posix4_sched_yield=yes
43420 else
43421   echo "$as_me: failed program was:" >&5
43422 sed 's/^/| /' conftest.$ac_ext >&5
43423
43424         ac_cv_lib_posix4_sched_yield=no
43425 fi
43426
43427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43428       conftest$ac_exeext conftest.$ac_ext
43429 LIBS=$ac_check_lib_save_LIBS
43430 fi
43431 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
43432 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
43433 if test $ac_cv_lib_posix4_sched_yield = yes; then
43434   cat >>confdefs.h <<\_ACEOF
43435 #define HAVE_SCHED_YIELD 1
43436 _ACEOF
43437  POSIX4_LINK=" -lposix4"
43438 else
43439   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
43440 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
43441
43442 fi
43443
43444
43445
43446 fi
43447
43448       fi
43449
43450                                           HAVE_PRIOR_FUNCS=0
43451       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
43452 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
43453 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
43454   echo $ECHO_N "(cached) $ECHO_C" >&6
43455 else
43456   cat >conftest.$ac_ext <<_ACEOF
43457 /* confdefs.h.  */
43458 _ACEOF
43459 cat confdefs.h >>conftest.$ac_ext
43460 cat >>conftest.$ac_ext <<_ACEOF
43461 /* end confdefs.h.  */
43462 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
43463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43464 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
43465
43466 /* System header to define __stub macros and hopefully few prototypes,
43467     which can conflict with char pthread_attr_getschedpolicy (); below.
43468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43469     <limits.h> exists even on freestanding compilers.  */
43470
43471 #ifdef __STDC__
43472 # include <limits.h>
43473 #else
43474 # include <assert.h>
43475 #endif
43476
43477 #undef pthread_attr_getschedpolicy
43478
43479 /* Override any GCC internal prototype to avoid an error.
43480    Use char because int might match the return type of a GCC
43481    builtin and then its argument prototype would still apply.  */
43482 #ifdef __cplusplus
43483 extern "C"
43484 #endif
43485 char pthread_attr_getschedpolicy ();
43486 /* The GNU C library defines this for functions which it implements
43487     to always fail with ENOSYS.  Some functions are actually named
43488     something starting with __ and the normal name is an alias.  */
43489 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
43490 choke me
43491 #endif
43492
43493 int
43494 main ()
43495 {
43496 return pthread_attr_getschedpolicy ();
43497   ;
43498   return 0;
43499 }
43500 _ACEOF
43501 rm -f conftest.$ac_objext conftest$ac_exeext
43502 if { (ac_try="$ac_link"
43503 case "(($ac_try" in
43504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43505   *) ac_try_echo=$ac_try;;
43506 esac
43507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43508   (eval "$ac_link") 2>conftest.er1
43509   ac_status=$?
43510   grep -v '^ *+' conftest.er1 >conftest.err
43511   rm -f conftest.er1
43512   cat conftest.err >&5
43513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43514   (exit $ac_status); } && {
43515          test -z "$ac_c_werror_flag" ||
43516          test ! -s conftest.err
43517        } && test -s conftest$ac_exeext &&
43518        $as_test_x conftest$ac_exeext; then
43519   ac_cv_func_pthread_attr_getschedpolicy=yes
43520 else
43521   echo "$as_me: failed program was:" >&5
43522 sed 's/^/| /' conftest.$ac_ext >&5
43523
43524         ac_cv_func_pthread_attr_getschedpolicy=no
43525 fi
43526
43527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43528       conftest$ac_exeext conftest.$ac_ext
43529 fi
43530 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
43531 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
43532 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
43533   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
43534 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
43535 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
43536   echo $ECHO_N "(cached) $ECHO_C" >&6
43537 else
43538   cat >conftest.$ac_ext <<_ACEOF
43539 /* confdefs.h.  */
43540 _ACEOF
43541 cat confdefs.h >>conftest.$ac_ext
43542 cat >>conftest.$ac_ext <<_ACEOF
43543 /* end confdefs.h.  */
43544 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
43545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43546 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
43547
43548 /* System header to define __stub macros and hopefully few prototypes,
43549     which can conflict with char pthread_attr_setschedparam (); below.
43550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43551     <limits.h> exists even on freestanding compilers.  */
43552
43553 #ifdef __STDC__
43554 # include <limits.h>
43555 #else
43556 # include <assert.h>
43557 #endif
43558
43559 #undef pthread_attr_setschedparam
43560
43561 /* Override any GCC internal prototype to avoid an error.
43562    Use char because int might match the return type of a GCC
43563    builtin and then its argument prototype would still apply.  */
43564 #ifdef __cplusplus
43565 extern "C"
43566 #endif
43567 char pthread_attr_setschedparam ();
43568 /* The GNU C library defines this for functions which it implements
43569     to always fail with ENOSYS.  Some functions are actually named
43570     something starting with __ and the normal name is an alias.  */
43571 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
43572 choke me
43573 #endif
43574
43575 int
43576 main ()
43577 {
43578 return pthread_attr_setschedparam ();
43579   ;
43580   return 0;
43581 }
43582 _ACEOF
43583 rm -f conftest.$ac_objext conftest$ac_exeext
43584 if { (ac_try="$ac_link"
43585 case "(($ac_try" in
43586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43587   *) ac_try_echo=$ac_try;;
43588 esac
43589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43590   (eval "$ac_link") 2>conftest.er1
43591   ac_status=$?
43592   grep -v '^ *+' conftest.er1 >conftest.err
43593   rm -f conftest.er1
43594   cat conftest.err >&5
43595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43596   (exit $ac_status); } && {
43597          test -z "$ac_c_werror_flag" ||
43598          test ! -s conftest.err
43599        } && test -s conftest$ac_exeext &&
43600        $as_test_x conftest$ac_exeext; then
43601   ac_cv_func_pthread_attr_setschedparam=yes
43602 else
43603   echo "$as_me: failed program was:" >&5
43604 sed 's/^/| /' conftest.$ac_ext >&5
43605
43606         ac_cv_func_pthread_attr_setschedparam=no
43607 fi
43608
43609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43610       conftest$ac_exeext conftest.$ac_ext
43611 fi
43612 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
43613 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
43614 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
43615   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
43616 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
43617 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
43618   echo $ECHO_N "(cached) $ECHO_C" >&6
43619 else
43620   cat >conftest.$ac_ext <<_ACEOF
43621 /* confdefs.h.  */
43622 _ACEOF
43623 cat confdefs.h >>conftest.$ac_ext
43624 cat >>conftest.$ac_ext <<_ACEOF
43625 /* end confdefs.h.  */
43626 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
43627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43628 #define sched_get_priority_max innocuous_sched_get_priority_max
43629
43630 /* System header to define __stub macros and hopefully few prototypes,
43631     which can conflict with char sched_get_priority_max (); below.
43632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43633     <limits.h> exists even on freestanding compilers.  */
43634
43635 #ifdef __STDC__
43636 # include <limits.h>
43637 #else
43638 # include <assert.h>
43639 #endif
43640
43641 #undef sched_get_priority_max
43642
43643 /* Override any GCC internal prototype to avoid an error.
43644    Use char because int might match the return type of a GCC
43645    builtin and then its argument prototype would still apply.  */
43646 #ifdef __cplusplus
43647 extern "C"
43648 #endif
43649 char sched_get_priority_max ();
43650 /* The GNU C library defines this for functions which it implements
43651     to always fail with ENOSYS.  Some functions are actually named
43652     something starting with __ and the normal name is an alias.  */
43653 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
43654 choke me
43655 #endif
43656
43657 int
43658 main ()
43659 {
43660 return sched_get_priority_max ();
43661   ;
43662   return 0;
43663 }
43664 _ACEOF
43665 rm -f conftest.$ac_objext conftest$ac_exeext
43666 if { (ac_try="$ac_link"
43667 case "(($ac_try" in
43668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43669   *) ac_try_echo=$ac_try;;
43670 esac
43671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43672   (eval "$ac_link") 2>conftest.er1
43673   ac_status=$?
43674   grep -v '^ *+' conftest.er1 >conftest.err
43675   rm -f conftest.er1
43676   cat conftest.err >&5
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); } && {
43679          test -z "$ac_c_werror_flag" ||
43680          test ! -s conftest.err
43681        } && test -s conftest$ac_exeext &&
43682        $as_test_x conftest$ac_exeext; then
43683   ac_cv_func_sched_get_priority_max=yes
43684 else
43685   echo "$as_me: failed program was:" >&5
43686 sed 's/^/| /' conftest.$ac_ext >&5
43687
43688         ac_cv_func_sched_get_priority_max=no
43689 fi
43690
43691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43692       conftest$ac_exeext conftest.$ac_ext
43693 fi
43694 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
43695 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
43696 if test $ac_cv_func_sched_get_priority_max = yes; then
43697   HAVE_PRIOR_FUNCS=1
43698 else
43699   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
43700 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
43701 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
43702   echo $ECHO_N "(cached) $ECHO_C" >&6
43703 else
43704   ac_check_lib_save_LIBS=$LIBS
43705 LIBS="-lposix4  $LIBS"
43706 cat >conftest.$ac_ext <<_ACEOF
43707 /* confdefs.h.  */
43708 _ACEOF
43709 cat confdefs.h >>conftest.$ac_ext
43710 cat >>conftest.$ac_ext <<_ACEOF
43711 /* end confdefs.h.  */
43712
43713 /* Override any GCC internal prototype to avoid an error.
43714    Use char because int might match the return type of a GCC
43715    builtin and then its argument prototype would still apply.  */
43716 #ifdef __cplusplus
43717 extern "C"
43718 #endif
43719 char sched_get_priority_max ();
43720 int
43721 main ()
43722 {
43723 return sched_get_priority_max ();
43724   ;
43725   return 0;
43726 }
43727 _ACEOF
43728 rm -f conftest.$ac_objext conftest$ac_exeext
43729 if { (ac_try="$ac_link"
43730 case "(($ac_try" in
43731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43732   *) ac_try_echo=$ac_try;;
43733 esac
43734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43735   (eval "$ac_link") 2>conftest.er1
43736   ac_status=$?
43737   grep -v '^ *+' conftest.er1 >conftest.err
43738   rm -f conftest.er1
43739   cat conftest.err >&5
43740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741   (exit $ac_status); } && {
43742          test -z "$ac_c_werror_flag" ||
43743          test ! -s conftest.err
43744        } && test -s conftest$ac_exeext &&
43745        $as_test_x conftest$ac_exeext; then
43746   ac_cv_lib_posix4_sched_get_priority_max=yes
43747 else
43748   echo "$as_me: failed program was:" >&5
43749 sed 's/^/| /' conftest.$ac_ext >&5
43750
43751         ac_cv_lib_posix4_sched_get_priority_max=no
43752 fi
43753
43754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43755       conftest$ac_exeext conftest.$ac_ext
43756 LIBS=$ac_check_lib_save_LIBS
43757 fi
43758 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
43759 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
43760 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
43761
43762                                 HAVE_PRIOR_FUNCS=1
43763                                 POSIX4_LINK=" -lposix4"
43764
43765 fi
43766
43767
43768 fi
43769
43770
43771 fi
43772
43773
43774 fi
43775
43776
43777       if test "$HAVE_PRIOR_FUNCS" = 1; then
43778         cat >>confdefs.h <<\_ACEOF
43779 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
43780 _ACEOF
43781
43782       else
43783         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
43784 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
43785       fi
43786
43787       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
43788 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
43789 if test "${ac_cv_func_pthread_cancel+set}" = set; then
43790   echo $ECHO_N "(cached) $ECHO_C" >&6
43791 else
43792   cat >conftest.$ac_ext <<_ACEOF
43793 /* confdefs.h.  */
43794 _ACEOF
43795 cat confdefs.h >>conftest.$ac_ext
43796 cat >>conftest.$ac_ext <<_ACEOF
43797 /* end confdefs.h.  */
43798 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
43799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43800 #define pthread_cancel innocuous_pthread_cancel
43801
43802 /* System header to define __stub macros and hopefully few prototypes,
43803     which can conflict with char pthread_cancel (); below.
43804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43805     <limits.h> exists even on freestanding compilers.  */
43806
43807 #ifdef __STDC__
43808 # include <limits.h>
43809 #else
43810 # include <assert.h>
43811 #endif
43812
43813 #undef pthread_cancel
43814
43815 /* Override any GCC internal prototype to avoid an error.
43816    Use char because int might match the return type of a GCC
43817    builtin and then its argument prototype would still apply.  */
43818 #ifdef __cplusplus
43819 extern "C"
43820 #endif
43821 char pthread_cancel ();
43822 /* The GNU C library defines this for functions which it implements
43823     to always fail with ENOSYS.  Some functions are actually named
43824     something starting with __ and the normal name is an alias.  */
43825 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
43826 choke me
43827 #endif
43828
43829 int
43830 main ()
43831 {
43832 return pthread_cancel ();
43833   ;
43834   return 0;
43835 }
43836 _ACEOF
43837 rm -f conftest.$ac_objext conftest$ac_exeext
43838 if { (ac_try="$ac_link"
43839 case "(($ac_try" in
43840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43841   *) ac_try_echo=$ac_try;;
43842 esac
43843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43844   (eval "$ac_link") 2>conftest.er1
43845   ac_status=$?
43846   grep -v '^ *+' conftest.er1 >conftest.err
43847   rm -f conftest.er1
43848   cat conftest.err >&5
43849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850   (exit $ac_status); } && {
43851          test -z "$ac_c_werror_flag" ||
43852          test ! -s conftest.err
43853        } && test -s conftest$ac_exeext &&
43854        $as_test_x conftest$ac_exeext; then
43855   ac_cv_func_pthread_cancel=yes
43856 else
43857   echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43859
43860         ac_cv_func_pthread_cancel=no
43861 fi
43862
43863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43864       conftest$ac_exeext conftest.$ac_ext
43865 fi
43866 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
43867 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
43868 if test $ac_cv_func_pthread_cancel = yes; then
43869   cat >>confdefs.h <<\_ACEOF
43870 #define HAVE_PTHREAD_CANCEL 1
43871 _ACEOF
43872
43873 else
43874   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
43875 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
43876 fi
43877
43878
43879       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
43880 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
43881 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
43882   echo $ECHO_N "(cached) $ECHO_C" >&6
43883 else
43884   cat >conftest.$ac_ext <<_ACEOF
43885 /* confdefs.h.  */
43886 _ACEOF
43887 cat confdefs.h >>conftest.$ac_ext
43888 cat >>conftest.$ac_ext <<_ACEOF
43889 /* end confdefs.h.  */
43890 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
43891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43892 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
43893
43894 /* System header to define __stub macros and hopefully few prototypes,
43895     which can conflict with char pthread_mutex_timedlock (); below.
43896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43897     <limits.h> exists even on freestanding compilers.  */
43898
43899 #ifdef __STDC__
43900 # include <limits.h>
43901 #else
43902 # include <assert.h>
43903 #endif
43904
43905 #undef pthread_mutex_timedlock
43906
43907 /* Override any GCC internal prototype to avoid an error.
43908    Use char because int might match the return type of a GCC
43909    builtin and then its argument prototype would still apply.  */
43910 #ifdef __cplusplus
43911 extern "C"
43912 #endif
43913 char pthread_mutex_timedlock ();
43914 /* The GNU C library defines this for functions which it implements
43915     to always fail with ENOSYS.  Some functions are actually named
43916     something starting with __ and the normal name is an alias.  */
43917 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
43918 choke me
43919 #endif
43920
43921 int
43922 main ()
43923 {
43924 return pthread_mutex_timedlock ();
43925   ;
43926   return 0;
43927 }
43928 _ACEOF
43929 rm -f conftest.$ac_objext conftest$ac_exeext
43930 if { (ac_try="$ac_link"
43931 case "(($ac_try" in
43932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43933   *) ac_try_echo=$ac_try;;
43934 esac
43935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43936   (eval "$ac_link") 2>conftest.er1
43937   ac_status=$?
43938   grep -v '^ *+' conftest.er1 >conftest.err
43939   rm -f conftest.er1
43940   cat conftest.err >&5
43941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942   (exit $ac_status); } && {
43943          test -z "$ac_c_werror_flag" ||
43944          test ! -s conftest.err
43945        } && test -s conftest$ac_exeext &&
43946        $as_test_x conftest$ac_exeext; then
43947   ac_cv_func_pthread_mutex_timedlock=yes
43948 else
43949   echo "$as_me: failed program was:" >&5
43950 sed 's/^/| /' conftest.$ac_ext >&5
43951
43952         ac_cv_func_pthread_mutex_timedlock=no
43953 fi
43954
43955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43956       conftest$ac_exeext conftest.$ac_ext
43957 fi
43958 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
43959 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
43960 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
43961   cat >>confdefs.h <<\_ACEOF
43962 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
43963 _ACEOF
43964
43965 else
43966   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
43967 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
43968 fi
43969
43970
43971       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
43972 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
43973 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
43974   echo $ECHO_N "(cached) $ECHO_C" >&6
43975 else
43976   cat >conftest.$ac_ext <<_ACEOF
43977 /* confdefs.h.  */
43978 _ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h.  */
43982 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
43983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43984 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
43985
43986 /* System header to define __stub macros and hopefully few prototypes,
43987     which can conflict with char pthread_attr_setstacksize (); below.
43988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43989     <limits.h> exists even on freestanding compilers.  */
43990
43991 #ifdef __STDC__
43992 # include <limits.h>
43993 #else
43994 # include <assert.h>
43995 #endif
43996
43997 #undef pthread_attr_setstacksize
43998
43999 /* Override any GCC internal prototype to avoid an error.
44000    Use char because int might match the return type of a GCC
44001    builtin and then its argument prototype would still apply.  */
44002 #ifdef __cplusplus
44003 extern "C"
44004 #endif
44005 char pthread_attr_setstacksize ();
44006 /* The GNU C library defines this for functions which it implements
44007     to always fail with ENOSYS.  Some functions are actually named
44008     something starting with __ and the normal name is an alias.  */
44009 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
44010 choke me
44011 #endif
44012
44013 int
44014 main ()
44015 {
44016 return pthread_attr_setstacksize ();
44017   ;
44018   return 0;
44019 }
44020 _ACEOF
44021 rm -f conftest.$ac_objext conftest$ac_exeext
44022 if { (ac_try="$ac_link"
44023 case "(($ac_try" in
44024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44025   *) ac_try_echo=$ac_try;;
44026 esac
44027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44028   (eval "$ac_link") 2>conftest.er1
44029   ac_status=$?
44030   grep -v '^ *+' conftest.er1 >conftest.err
44031   rm -f conftest.er1
44032   cat conftest.err >&5
44033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034   (exit $ac_status); } && {
44035          test -z "$ac_c_werror_flag" ||
44036          test ! -s conftest.err
44037        } && test -s conftest$ac_exeext &&
44038        $as_test_x conftest$ac_exeext; then
44039   ac_cv_func_pthread_attr_setstacksize=yes
44040 else
44041   echo "$as_me: failed program was:" >&5
44042 sed 's/^/| /' conftest.$ac_ext >&5
44043
44044         ac_cv_func_pthread_attr_setstacksize=no
44045 fi
44046
44047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44048       conftest$ac_exeext conftest.$ac_ext
44049 fi
44050 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
44051 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
44052 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
44053   cat >>confdefs.h <<\_ACEOF
44054 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
44055 _ACEOF
44056
44057 fi
44058
44059
44060
44061       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
44062 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
44063 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
44064   echo $ECHO_N "(cached) $ECHO_C" >&6
44065 else
44066
44067         cat >conftest.$ac_ext <<_ACEOF
44068 /* confdefs.h.  */
44069 _ACEOF
44070 cat confdefs.h >>conftest.$ac_ext
44071 cat >>conftest.$ac_ext <<_ACEOF
44072 /* end confdefs.h.  */
44073 #include <pthread.h>
44074 int
44075 main ()
44076 {
44077
44078                pthread_mutexattr_t attr;
44079                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44080
44081   ;
44082   return 0;
44083 }
44084 _ACEOF
44085 rm -f conftest.$ac_objext
44086 if { (ac_try="$ac_compile"
44087 case "(($ac_try" in
44088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44089   *) ac_try_echo=$ac_try;;
44090 esac
44091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44092   (eval "$ac_compile") 2>conftest.er1
44093   ac_status=$?
44094   grep -v '^ *+' conftest.er1 >conftest.err
44095   rm -f conftest.er1
44096   cat conftest.err >&5
44097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098   (exit $ac_status); } && {
44099          test -z "$ac_c_werror_flag" ||
44100          test ! -s conftest.err
44101        } && test -s conftest.$ac_objext; then
44102   wx_cv_type_pthread_mutexattr_t=yes
44103 else
44104   echo "$as_me: failed program was:" >&5
44105 sed 's/^/| /' conftest.$ac_ext >&5
44106
44107         wx_cv_type_pthread_mutexattr_t=no
44108
44109 fi
44110
44111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44112
44113 fi
44114 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
44115 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
44116
44117       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
44118         cat >>confdefs.h <<\_ACEOF
44119 #define HAVE_PTHREAD_MUTEXATTR_T 1
44120 _ACEOF
44121
44122
44123                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
44124 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
44125 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
44126   echo $ECHO_N "(cached) $ECHO_C" >&6
44127 else
44128
44129                        cat >conftest.$ac_ext <<_ACEOF
44130 /* confdefs.h.  */
44131 _ACEOF
44132 cat confdefs.h >>conftest.$ac_ext
44133 cat >>conftest.$ac_ext <<_ACEOF
44134 /* end confdefs.h.  */
44135 #include <pthread.h>
44136 int
44137 main ()
44138 {
44139
44140                                pthread_mutexattr_t attr;
44141                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44142
44143   ;
44144   return 0;
44145 }
44146 _ACEOF
44147 rm -f conftest.$ac_objext
44148 if { (ac_try="$ac_compile"
44149 case "(($ac_try" in
44150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44151   *) ac_try_echo=$ac_try;;
44152 esac
44153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44154   (eval "$ac_compile") 2>conftest.er1
44155   ac_status=$?
44156   grep -v '^ *+' conftest.er1 >conftest.err
44157   rm -f conftest.er1
44158   cat conftest.err >&5
44159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44160   (exit $ac_status); } && {
44161          test -z "$ac_c_werror_flag" ||
44162          test ! -s conftest.err
44163        } && test -s conftest.$ac_objext; then
44164   wx_cv_func_pthread_mutexattr_settype_decl=yes
44165 else
44166   echo "$as_me: failed program was:" >&5
44167 sed 's/^/| /' conftest.$ac_ext >&5
44168
44169         wx_cv_func_pthread_mutexattr_settype_decl=no
44170
44171 fi
44172
44173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44174
44175 fi
44176 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
44177 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
44178         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
44179             cat >>confdefs.h <<\_ACEOF
44180 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
44181 _ACEOF
44182
44183         fi
44184       else
44185                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
44186 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
44187 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
44188   echo $ECHO_N "(cached) $ECHO_C" >&6
44189 else
44190
44191             cat >conftest.$ac_ext <<_ACEOF
44192 /* confdefs.h.  */
44193 _ACEOF
44194 cat confdefs.h >>conftest.$ac_ext
44195 cat >>conftest.$ac_ext <<_ACEOF
44196 /* end confdefs.h.  */
44197 #include <pthread.h>
44198 int
44199 main ()
44200 {
44201
44202                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
44203
44204   ;
44205   return 0;
44206 }
44207 _ACEOF
44208 rm -f conftest.$ac_objext
44209 if { (ac_try="$ac_compile"
44210 case "(($ac_try" in
44211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44212   *) ac_try_echo=$ac_try;;
44213 esac
44214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44215   (eval "$ac_compile") 2>conftest.er1
44216   ac_status=$?
44217   grep -v '^ *+' conftest.er1 >conftest.err
44218   rm -f conftest.er1
44219   cat conftest.err >&5
44220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44221   (exit $ac_status); } && {
44222          test -z "$ac_c_werror_flag" ||
44223          test ! -s conftest.err
44224        } && test -s conftest.$ac_objext; then
44225
44226                     wx_cv_type_pthread_rec_mutex_init=yes
44227
44228 else
44229   echo "$as_me: failed program was:" >&5
44230 sed 's/^/| /' conftest.$ac_ext >&5
44231
44232
44233                     wx_cv_type_pthread_rec_mutex_init=no
44234
44235
44236 fi
44237
44238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44239
44240 fi
44241 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
44242 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
44243         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
44244           cat >>confdefs.h <<\_ACEOF
44245 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
44246 _ACEOF
44247
44248         else
44249                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
44250 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
44251         fi
44252       fi
44253
44254       if test "$wxUSE_COMPILER_TLS" = "auto"; then
44255           if test "$USE_NETBSD" = 1; then
44256               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
44257 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
44258               wxUSE_COMPILER_TLS=no
44259           else
44260               wxUSE_COMPILER_TLS=yes
44261           fi
44262       fi
44263
44264       if test "$wxUSE_COMPILER_TLS" = "yes"; then
44265                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
44266 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
44267 if test "${wx_cv_cc___thread+set}" = set; then
44268   echo $ECHO_N "(cached) $ECHO_C" >&6
44269 else
44270
44271                   cat >conftest.$ac_ext <<_ACEOF
44272 /* confdefs.h.  */
44273 _ACEOF
44274 cat confdefs.h >>conftest.$ac_ext
44275 cat >>conftest.$ac_ext <<_ACEOF
44276 /* end confdefs.h.  */
44277 #include <pthread.h>
44278 int
44279 main ()
44280 {
44281
44282                           static __thread int n = 0;
44283                           static __thread int *p = 0;
44284
44285   ;
44286   return 0;
44287 }
44288 _ACEOF
44289 rm -f conftest.$ac_objext
44290 if { (ac_try="$ac_compile"
44291 case "(($ac_try" in
44292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44293   *) ac_try_echo=$ac_try;;
44294 esac
44295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44296   (eval "$ac_compile") 2>conftest.er1
44297   ac_status=$?
44298   grep -v '^ *+' conftest.er1 >conftest.err
44299   rm -f conftest.er1
44300   cat conftest.err >&5
44301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44302   (exit $ac_status); } && {
44303          test -z "$ac_c_werror_flag" ||
44304          test ! -s conftest.err
44305        } && test -s conftest.$ac_objext; then
44306   wx_cv_cc___thread=yes
44307 else
44308   echo "$as_me: failed program was:" >&5
44309 sed 's/^/| /' conftest.$ac_ext >&5
44310
44311         wx_cv_cc___thread=no
44312
44313 fi
44314
44315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44316
44317
44318 fi
44319 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
44320 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
44321
44322           if test "$wx_cv_cc___thread" = "yes"; then
44323
44324   GXX_VERSION=""
44325
44326
44327
44328   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
44329 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
44330
44331   if  test "x$GCC" = "xyes" ; then
44332
44333     if  test -z "" ; then
44334
44335       ax_gcc_option_test="int main()
44336 {
44337         return 0;
44338 }"
44339
44340 else
44341
44342       ax_gcc_option_test=""
44343
44344 fi
44345
44346
44347     # Dump the test program to file
44348     cat <<EOF > conftest.c
44349 $ax_gcc_option_test
44350 EOF
44351
44352     # Dump back the file to the log, useful for debugging purposes
44353     { ac_try='cat conftest.c 1>&5'
44354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355   (eval $ac_try) 2>&5
44356   ac_status=$?
44357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358   (exit $ac_status); }; }
44359
44360     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
44361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44362   (eval $ac_try) 2>&5
44363   ac_status=$?
44364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44365   (exit $ac_status); }; } ; then
44366
44367                 { echo "$as_me:$LINENO: result: yes" >&5
44368 echo "${ECHO_T}yes" >&6; }
44369
44370     ax_gcc_version_option=yes
44371
44372
44373 else
44374
44375                 { echo "$as_me:$LINENO: result: no" >&5
44376 echo "${ECHO_T}no" >&6; }
44377
44378     ax_gcc_version_option=no
44379
44380
44381 fi
44382
44383
44384 else
44385
44386     { echo "$as_me:$LINENO: result: no gcc available" >&5
44387 echo "${ECHO_T}no gcc available" >&6; }
44388
44389 fi
44390
44391
44392   if test "x$GXX" = "xyes"; then
44393
44394     if test "x$ax_gxx_version_option" != "no"; then
44395
44396       { echo "$as_me:$LINENO: checking gxx version" >&5
44397 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
44398 if test "${ax_cv_gxx_version+set}" = set; then
44399   echo $ECHO_N "(cached) $ECHO_C" >&6
44400 else
44401
44402         ax_cv_gxx_version="`$CXX -dumpversion`"
44403         if test "x$ax_cv_gxx_version" = "x"; then
44404
44405           ax_cv_gxx_version=""
44406
44407 fi
44408
44409
44410 fi
44411 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
44412 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
44413       GXX_VERSION=$ax_cv_gxx_version
44414
44415 fi
44416
44417
44418 fi
44419
44420
44421
44422               if test -n "$ax_cv_gxx_version"; then
44423                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
44424 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
44425                   case "$ax_cv_gxx_version" in
44426                     1.* | 2.* | 3.* )
44427                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
44428 echo "${ECHO_T}no, it's broken" >&6; }
44429                         wx_cv_cc___thread=no
44430                         ;;
44431                     *)
44432                         { echo "$as_me:$LINENO: result: yes, it works" >&5
44433 echo "${ECHO_T}yes, it works" >&6; }
44434                         ;;
44435                   esac
44436               fi
44437           fi
44438
44439           if test "$wx_cv_cc___thread" = "yes"; then
44440             cat >>confdefs.h <<\_ACEOF
44441 #define HAVE___THREAD_KEYWORD 1
44442 _ACEOF
44443
44444           fi
44445         fi
44446     fi
44447
44448 else
44449     if test "$wxUSE_THREADS" = "yes" ; then
44450       case "${host}" in
44451         x86_64-*-mingw32* )
44452         ;;
44453         *-*-mingw32* )
44454                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
44455 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
44456 if test "${wx_cv_cflags_mthread+set}" = set; then
44457   echo $ECHO_N "(cached) $ECHO_C" >&6
44458 else
44459
44460                     CFLAGS_OLD="$CFLAGS"
44461                     CFLAGS="-mthreads $CFLAGS"
44462                     cat >conftest.$ac_ext <<_ACEOF
44463 /* confdefs.h.  */
44464 _ACEOF
44465 cat confdefs.h >>conftest.$ac_ext
44466 cat >>conftest.$ac_ext <<_ACEOF
44467 /* end confdefs.h.  */
44468
44469 int
44470 main ()
44471 {
44472
44473   ;
44474   return 0;
44475 }
44476 _ACEOF
44477 rm -f conftest.$ac_objext
44478 if { (ac_try="$ac_compile"
44479 case "(($ac_try" in
44480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44481   *) ac_try_echo=$ac_try;;
44482 esac
44483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44484   (eval "$ac_compile") 2>conftest.er1
44485   ac_status=$?
44486   grep -v '^ *+' conftest.er1 >conftest.err
44487   rm -f conftest.er1
44488   cat conftest.err >&5
44489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490   (exit $ac_status); } && {
44491          test -z "$ac_c_werror_flag" ||
44492          test ! -s conftest.err
44493        } && test -s conftest.$ac_objext; then
44494   wx_cv_cflags_mthread=yes
44495 else
44496   echo "$as_me: failed program was:" >&5
44497 sed 's/^/| /' conftest.$ac_ext >&5
44498
44499         wx_cv_cflags_mthread=no
44500
44501 fi
44502
44503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44504
44505
44506 fi
44507 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
44508 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
44509
44510             if test "$wx_cv_cflags_mthread" = "yes"; then
44511                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
44512                 LDFLAGS="$LDFLAGS -mthreads"
44513             else
44514                                 CFLAGS="$CFLAGS_OLD"
44515             fi
44516         ;;
44517         *-pc-os2*emx )
44518             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
44519             LDFLAGS="$LDFLAGS -Zmt"
44520         ;;
44521       esac
44522     fi
44523 fi
44524
44525 { echo "$as_me:$LINENO: checking for localtime_r" >&5
44526 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
44527 if test "${ac_cv_func_localtime_r+set}" = set; then
44528   echo $ECHO_N "(cached) $ECHO_C" >&6
44529 else
44530   cat >conftest.$ac_ext <<_ACEOF
44531 /* confdefs.h.  */
44532 _ACEOF
44533 cat confdefs.h >>conftest.$ac_ext
44534 cat >>conftest.$ac_ext <<_ACEOF
44535 /* end confdefs.h.  */
44536 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
44537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44538 #define localtime_r innocuous_localtime_r
44539
44540 /* System header to define __stub macros and hopefully few prototypes,
44541     which can conflict with char localtime_r (); below.
44542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44543     <limits.h> exists even on freestanding compilers.  */
44544
44545 #ifdef __STDC__
44546 # include <limits.h>
44547 #else
44548 # include <assert.h>
44549 #endif
44550
44551 #undef localtime_r
44552
44553 /* Override any GCC internal prototype to avoid an error.
44554    Use char because int might match the return type of a GCC
44555    builtin and then its argument prototype would still apply.  */
44556 #ifdef __cplusplus
44557 extern "C"
44558 #endif
44559 char localtime_r ();
44560 /* The GNU C library defines this for functions which it implements
44561     to always fail with ENOSYS.  Some functions are actually named
44562     something starting with __ and the normal name is an alias.  */
44563 #if defined __stub_localtime_r || defined __stub___localtime_r
44564 choke me
44565 #endif
44566
44567 int
44568 main ()
44569 {
44570 return localtime_r ();
44571   ;
44572   return 0;
44573 }
44574 _ACEOF
44575 rm -f conftest.$ac_objext conftest$ac_exeext
44576 if { (ac_try="$ac_link"
44577 case "(($ac_try" in
44578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44579   *) ac_try_echo=$ac_try;;
44580 esac
44581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44582   (eval "$ac_link") 2>conftest.er1
44583   ac_status=$?
44584   grep -v '^ *+' conftest.er1 >conftest.err
44585   rm -f conftest.er1
44586   cat conftest.err >&5
44587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44588   (exit $ac_status); } && {
44589          test -z "$ac_c_werror_flag" ||
44590          test ! -s conftest.err
44591        } && test -s conftest$ac_exeext &&
44592        $as_test_x conftest$ac_exeext; then
44593   ac_cv_func_localtime_r=yes
44594 else
44595   echo "$as_me: failed program was:" >&5
44596 sed 's/^/| /' conftest.$ac_ext >&5
44597
44598         ac_cv_func_localtime_r=no
44599 fi
44600
44601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44602       conftest$ac_exeext conftest.$ac_ext
44603 fi
44604 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
44605 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
44606 if test $ac_cv_func_localtime_r = yes; then
44607    cat >>confdefs.h <<\_ACEOF
44608 #define HAVE_LOCALTIME_R 1
44609 _ACEOF
44610
44611 fi
44612
44613 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
44614 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
44615 if test "${ac_cv_func_gmtime_r+set}" = set; then
44616   echo $ECHO_N "(cached) $ECHO_C" >&6
44617 else
44618   cat >conftest.$ac_ext <<_ACEOF
44619 /* confdefs.h.  */
44620 _ACEOF
44621 cat confdefs.h >>conftest.$ac_ext
44622 cat >>conftest.$ac_ext <<_ACEOF
44623 /* end confdefs.h.  */
44624 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
44625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44626 #define gmtime_r innocuous_gmtime_r
44627
44628 /* System header to define __stub macros and hopefully few prototypes,
44629     which can conflict with char gmtime_r (); below.
44630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44631     <limits.h> exists even on freestanding compilers.  */
44632
44633 #ifdef __STDC__
44634 # include <limits.h>
44635 #else
44636 # include <assert.h>
44637 #endif
44638
44639 #undef gmtime_r
44640
44641 /* Override any GCC internal prototype to avoid an error.
44642    Use char because int might match the return type of a GCC
44643    builtin and then its argument prototype would still apply.  */
44644 #ifdef __cplusplus
44645 extern "C"
44646 #endif
44647 char gmtime_r ();
44648 /* The GNU C library defines this for functions which it implements
44649     to always fail with ENOSYS.  Some functions are actually named
44650     something starting with __ and the normal name is an alias.  */
44651 #if defined __stub_gmtime_r || defined __stub___gmtime_r
44652 choke me
44653 #endif
44654
44655 int
44656 main ()
44657 {
44658 return gmtime_r ();
44659   ;
44660   return 0;
44661 }
44662 _ACEOF
44663 rm -f conftest.$ac_objext conftest$ac_exeext
44664 if { (ac_try="$ac_link"
44665 case "(($ac_try" in
44666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44667   *) ac_try_echo=$ac_try;;
44668 esac
44669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44670   (eval "$ac_link") 2>conftest.er1
44671   ac_status=$?
44672   grep -v '^ *+' conftest.er1 >conftest.err
44673   rm -f conftest.er1
44674   cat conftest.err >&5
44675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44676   (exit $ac_status); } && {
44677          test -z "$ac_c_werror_flag" ||
44678          test ! -s conftest.err
44679        } && test -s conftest$ac_exeext &&
44680        $as_test_x conftest$ac_exeext; then
44681   ac_cv_func_gmtime_r=yes
44682 else
44683   echo "$as_me: failed program was:" >&5
44684 sed 's/^/| /' conftest.$ac_ext >&5
44685
44686         ac_cv_func_gmtime_r=no
44687 fi
44688
44689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44690       conftest$ac_exeext conftest.$ac_ext
44691 fi
44692 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
44693 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
44694 if test $ac_cv_func_gmtime_r = yes; then
44695    cat >>confdefs.h <<\_ACEOF
44696 #define HAVE_GMTIME_R 1
44697 _ACEOF
44698
44699 fi
44700
44701
44702
44703
44704     ac_ext=c
44705 ac_cpp='$CPP $CPPFLAGS'
44706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44709
44710     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
44711 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
44712
44713     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
44714   echo $ECHO_N "(cached) $ECHO_C" >&6
44715 else
44716
44717
44718 ################################################################
44719
44720 ac_cv_func_which_gethostbyname_r=unknown
44721
44722 #
44723 # ONE ARGUMENT (sanity check)
44724 #
44725
44726 # This should fail, as there is no variant of gethostbyname_r() that takes
44727 # a single argument. If it actually compiles, then we can assume that
44728 # netdb.h is not declaring the function, and the compiler is thereby
44729 # assuming an implicit prototype. In which case, we're out of luck.
44730 #
44731 cat >conftest.$ac_ext <<_ACEOF
44732 /* confdefs.h.  */
44733 _ACEOF
44734 cat confdefs.h >>conftest.$ac_ext
44735 cat >>conftest.$ac_ext <<_ACEOF
44736 /* end confdefs.h.  */
44737 #include <netdb.h>
44738 int
44739 main ()
44740 {
44741
44742             char *name = "www.gnu.org";
44743             (void)gethostbyname_r(name) /* ; */
44744
44745
44746   ;
44747   return 0;
44748 }
44749 _ACEOF
44750 rm -f conftest.$ac_objext
44751 if { (ac_try="$ac_compile"
44752 case "(($ac_try" in
44753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44754   *) ac_try_echo=$ac_try;;
44755 esac
44756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44757   (eval "$ac_compile") 2>conftest.er1
44758   ac_status=$?
44759   grep -v '^ *+' conftest.er1 >conftest.err
44760   rm -f conftest.er1
44761   cat conftest.err >&5
44762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44763   (exit $ac_status); } && {
44764          test -z "$ac_c_werror_flag" ||
44765          test ! -s conftest.err
44766        } && test -s conftest.$ac_objext; then
44767   ac_cv_func_which_gethostbyname_r=no
44768
44769 else
44770   echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44772
44773
44774 fi
44775
44776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44777
44778 #
44779 # SIX ARGUMENTS
44780 # (e.g. Linux)
44781 #
44782
44783 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44784
44785 cat >conftest.$ac_ext <<_ACEOF
44786 /* confdefs.h.  */
44787 _ACEOF
44788 cat confdefs.h >>conftest.$ac_ext
44789 cat >>conftest.$ac_ext <<_ACEOF
44790 /* end confdefs.h.  */
44791 #include <netdb.h>
44792 int
44793 main ()
44794 {
44795
44796             char *name = "www.gnu.org";
44797             struct hostent ret, *retp;
44798             char buf[1024];
44799             int buflen = 1024;
44800             int my_h_errno;
44801             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
44802
44803
44804   ;
44805   return 0;
44806 }
44807 _ACEOF
44808 rm -f conftest.$ac_objext
44809 if { (ac_try="$ac_compile"
44810 case "(($ac_try" in
44811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44812   *) ac_try_echo=$ac_try;;
44813 esac
44814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44815   (eval "$ac_compile") 2>conftest.er1
44816   ac_status=$?
44817   grep -v '^ *+' conftest.er1 >conftest.err
44818   rm -f conftest.er1
44819   cat conftest.err >&5
44820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44821   (exit $ac_status); } && {
44822          test -z "$ac_c_werror_flag" ||
44823          test ! -s conftest.err
44824        } && test -s conftest.$ac_objext; then
44825   ac_cv_func_which_gethostbyname_r=six
44826
44827 else
44828   echo "$as_me: failed program was:" >&5
44829 sed 's/^/| /' conftest.$ac_ext >&5
44830
44831
44832 fi
44833
44834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44835
44836 fi
44837
44838 #
44839 # FIVE ARGUMENTS
44840 # (e.g. Solaris)
44841 #
44842
44843 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44844
44845 cat >conftest.$ac_ext <<_ACEOF
44846 /* confdefs.h.  */
44847 _ACEOF
44848 cat confdefs.h >>conftest.$ac_ext
44849 cat >>conftest.$ac_ext <<_ACEOF
44850 /* end confdefs.h.  */
44851 #include <netdb.h>
44852 int
44853 main ()
44854 {
44855
44856             char *name = "www.gnu.org";
44857             struct hostent ret;
44858             char buf[1024];
44859             int buflen = 1024;
44860             int my_h_errno;
44861             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
44862
44863
44864   ;
44865   return 0;
44866 }
44867 _ACEOF
44868 rm -f conftest.$ac_objext
44869 if { (ac_try="$ac_compile"
44870 case "(($ac_try" in
44871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44872   *) ac_try_echo=$ac_try;;
44873 esac
44874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44875   (eval "$ac_compile") 2>conftest.er1
44876   ac_status=$?
44877   grep -v '^ *+' conftest.er1 >conftest.err
44878   rm -f conftest.er1
44879   cat conftest.err >&5
44880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44881   (exit $ac_status); } && {
44882          test -z "$ac_c_werror_flag" ||
44883          test ! -s conftest.err
44884        } && test -s conftest.$ac_objext; then
44885   ac_cv_func_which_gethostbyname_r=five
44886
44887 else
44888   echo "$as_me: failed program was:" >&5
44889 sed 's/^/| /' conftest.$ac_ext >&5
44890
44891
44892 fi
44893
44894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44895
44896 fi
44897
44898 #
44899 # THREE ARGUMENTS
44900 # (e.g. AIX, HP-UX, Tru64)
44901 #
44902
44903 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44904
44905 cat >conftest.$ac_ext <<_ACEOF
44906 /* confdefs.h.  */
44907 _ACEOF
44908 cat confdefs.h >>conftest.$ac_ext
44909 cat >>conftest.$ac_ext <<_ACEOF
44910 /* end confdefs.h.  */
44911 #include <netdb.h>
44912 int
44913 main ()
44914 {
44915
44916             char *name = "www.gnu.org";
44917             struct hostent ret;
44918             struct hostent_data data;
44919             (void)gethostbyname_r(name, &ret, &data) /* ; */
44920
44921
44922   ;
44923   return 0;
44924 }
44925 _ACEOF
44926 rm -f conftest.$ac_objext
44927 if { (ac_try="$ac_compile"
44928 case "(($ac_try" in
44929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44930   *) ac_try_echo=$ac_try;;
44931 esac
44932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44933   (eval "$ac_compile") 2>conftest.er1
44934   ac_status=$?
44935   grep -v '^ *+' conftest.er1 >conftest.err
44936   rm -f conftest.er1
44937   cat conftest.err >&5
44938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44939   (exit $ac_status); } && {
44940          test -z "$ac_c_werror_flag" ||
44941          test ! -s conftest.err
44942        } && test -s conftest.$ac_objext; then
44943   ac_cv_func_which_gethostbyname_r=three
44944
44945 else
44946   echo "$as_me: failed program was:" >&5
44947 sed 's/^/| /' conftest.$ac_ext >&5
44948
44949
44950 fi
44951
44952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44953
44954 fi
44955
44956 ################################################################
44957
44958
44959 fi
44960
44961 case "$ac_cv_func_which_gethostbyname_r" in
44962     three)
44963     { echo "$as_me:$LINENO: result: three" >&5
44964 echo "${ECHO_T}three" >&6; }
44965     cat >>confdefs.h <<\_ACEOF
44966 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
44967 _ACEOF
44968
44969     ;;
44970
44971     five)
44972     { echo "$as_me:$LINENO: result: five" >&5
44973 echo "${ECHO_T}five" >&6; }
44974     cat >>confdefs.h <<\_ACEOF
44975 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
44976 _ACEOF
44977
44978     ;;
44979
44980     six)
44981     { echo "$as_me:$LINENO: result: six" >&5
44982 echo "${ECHO_T}six" >&6; }
44983     cat >>confdefs.h <<\_ACEOF
44984 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
44985 _ACEOF
44986
44987     ;;
44988
44989     no)
44990     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
44991 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
44992     ;;
44993
44994     unknown)
44995     { echo "$as_me:$LINENO: result: can't tell" >&5
44996 echo "${ECHO_T}can't tell" >&6; }
44997     ;;
44998
44999     *)
45000     { { echo "$as_me:$LINENO: error: internal error" >&5
45001 echo "$as_me: error: internal error" >&2;}
45002    { (exit 1); exit 1; }; }
45003     ;;
45004 esac
45005
45006 ac_ext=c
45007 ac_cpp='$CPP $CPPFLAGS'
45008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45011
45012
45013
45014       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
45015               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
45016           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
45017 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
45018 if test "${ac_cv_func_gethostbyname+set}" = set; then
45019   echo $ECHO_N "(cached) $ECHO_C" >&6
45020 else
45021   cat >conftest.$ac_ext <<_ACEOF
45022 /* confdefs.h.  */
45023 _ACEOF
45024 cat confdefs.h >>conftest.$ac_ext
45025 cat >>conftest.$ac_ext <<_ACEOF
45026 /* end confdefs.h.  */
45027 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
45028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45029 #define gethostbyname innocuous_gethostbyname
45030
45031 /* System header to define __stub macros and hopefully few prototypes,
45032     which can conflict with char gethostbyname (); below.
45033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45034     <limits.h> exists even on freestanding compilers.  */
45035
45036 #ifdef __STDC__
45037 # include <limits.h>
45038 #else
45039 # include <assert.h>
45040 #endif
45041
45042 #undef gethostbyname
45043
45044 /* Override any GCC internal prototype to avoid an error.
45045    Use char because int might match the return type of a GCC
45046    builtin and then its argument prototype would still apply.  */
45047 #ifdef __cplusplus
45048 extern "C"
45049 #endif
45050 char gethostbyname ();
45051 /* The GNU C library defines this for functions which it implements
45052     to always fail with ENOSYS.  Some functions are actually named
45053     something starting with __ and the normal name is an alias.  */
45054 #if defined __stub_gethostbyname || defined __stub___gethostbyname
45055 choke me
45056 #endif
45057
45058 int
45059 main ()
45060 {
45061 return gethostbyname ();
45062   ;
45063   return 0;
45064 }
45065 _ACEOF
45066 rm -f conftest.$ac_objext conftest$ac_exeext
45067 if { (ac_try="$ac_link"
45068 case "(($ac_try" in
45069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45070   *) ac_try_echo=$ac_try;;
45071 esac
45072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45073   (eval "$ac_link") 2>conftest.er1
45074   ac_status=$?
45075   grep -v '^ *+' conftest.er1 >conftest.err
45076   rm -f conftest.er1
45077   cat conftest.err >&5
45078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45079   (exit $ac_status); } && {
45080          test -z "$ac_c_werror_flag" ||
45081          test ! -s conftest.err
45082        } && test -s conftest$ac_exeext &&
45083        $as_test_x conftest$ac_exeext; then
45084   ac_cv_func_gethostbyname=yes
45085 else
45086   echo "$as_me: failed program was:" >&5
45087 sed 's/^/| /' conftest.$ac_ext >&5
45088
45089         ac_cv_func_gethostbyname=no
45090 fi
45091
45092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45093       conftest$ac_exeext conftest.$ac_ext
45094 fi
45095 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45096 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45097 if test $ac_cv_func_gethostbyname = yes; then
45098    cat >>confdefs.h <<\_ACEOF
45099 #define HAVE_GETHOSTBYNAME 1
45100 _ACEOF
45101
45102 fi
45103
45104       fi
45105
45106 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
45107 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
45108 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
45109   echo $ECHO_N "(cached) $ECHO_C" >&6
45110 else
45111
45112                 ac_ext=cpp
45113 ac_cpp='$CXXCPP $CPPFLAGS'
45114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45117
45118
45119         cat >conftest.$ac_ext <<_ACEOF
45120 /* confdefs.h.  */
45121 _ACEOF
45122 cat confdefs.h >>conftest.$ac_ext
45123 cat >>conftest.$ac_ext <<_ACEOF
45124 /* end confdefs.h.  */
45125 #include <netdb.h>
45126 int
45127 main ()
45128 {
45129
45130                 char *name;
45131                 char *proto;
45132                 struct servent *se, *res;
45133                 char buffer[2048];
45134                 int buflen = 2048;
45135                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
45136
45137   ;
45138   return 0;
45139 }
45140 _ACEOF
45141 rm -f conftest.$ac_objext
45142 if { (ac_try="$ac_compile"
45143 case "(($ac_try" in
45144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45145   *) ac_try_echo=$ac_try;;
45146 esac
45147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45148   (eval "$ac_compile") 2>conftest.er1
45149   ac_status=$?
45150   grep -v '^ *+' conftest.er1 >conftest.err
45151   rm -f conftest.er1
45152   cat conftest.err >&5
45153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45154   (exit $ac_status); } && {
45155          test -z "$ac_cxx_werror_flag" ||
45156          test ! -s conftest.err
45157        } && test -s conftest.$ac_objext; then
45158   ac_cv_func_which_getservbyname_r=six
45159 else
45160   echo "$as_me: failed program was:" >&5
45161 sed 's/^/| /' conftest.$ac_ext >&5
45162
45163
45164                 cat >conftest.$ac_ext <<_ACEOF
45165 /* confdefs.h.  */
45166 _ACEOF
45167 cat confdefs.h >>conftest.$ac_ext
45168 cat >>conftest.$ac_ext <<_ACEOF
45169 /* end confdefs.h.  */
45170 #include <netdb.h>
45171 int
45172 main ()
45173 {
45174
45175                         char *name;
45176                         char *proto;
45177                         struct servent *se;
45178                         char buffer[2048];
45179                         int buflen = 2048;
45180                         (void) getservbyname_r(name, proto, se, buffer, buflen)
45181
45182   ;
45183   return 0;
45184 }
45185 _ACEOF
45186 rm -f conftest.$ac_objext
45187 if { (ac_try="$ac_compile"
45188 case "(($ac_try" in
45189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45190   *) ac_try_echo=$ac_try;;
45191 esac
45192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45193   (eval "$ac_compile") 2>conftest.er1
45194   ac_status=$?
45195   grep -v '^ *+' conftest.er1 >conftest.err
45196   rm -f conftest.er1
45197   cat conftest.err >&5
45198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45199   (exit $ac_status); } && {
45200          test -z "$ac_cxx_werror_flag" ||
45201          test ! -s conftest.err
45202        } && test -s conftest.$ac_objext; then
45203   ac_cv_func_which_getservbyname_r=five
45204 else
45205   echo "$as_me: failed program was:" >&5
45206 sed 's/^/| /' conftest.$ac_ext >&5
45207
45208
45209                         cat >conftest.$ac_ext <<_ACEOF
45210 /* confdefs.h.  */
45211 _ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h.  */
45215 #include <netdb.h>
45216 int
45217 main ()
45218 {
45219
45220                                 char *name;
45221                                 char *proto;
45222                                 struct servent *se;
45223                                 struct servent_data data;
45224                                 (void) getservbyname_r(name, proto, se, &data);
45225
45226   ;
45227   return 0;
45228 }
45229 _ACEOF
45230 rm -f conftest.$ac_objext
45231 if { (ac_try="$ac_compile"
45232 case "(($ac_try" in
45233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45234   *) ac_try_echo=$ac_try;;
45235 esac
45236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45237   (eval "$ac_compile") 2>conftest.er1
45238   ac_status=$?
45239   grep -v '^ *+' conftest.er1 >conftest.err
45240   rm -f conftest.er1
45241   cat conftest.err >&5
45242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45243   (exit $ac_status); } && {
45244          test -z "$ac_cxx_werror_flag" ||
45245          test ! -s conftest.err
45246        } && test -s conftest.$ac_objext; then
45247   ac_cv_func_which_getservbyname_r=four
45248 else
45249   echo "$as_me: failed program was:" >&5
45250 sed 's/^/| /' conftest.$ac_ext >&5
45251
45252         ac_cv_func_which_getservbyname_r=no
45253
45254 fi
45255
45256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45257
45258
45259 fi
45260
45261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45262
45263
45264 fi
45265
45266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45267         ac_ext=c
45268 ac_cpp='$CPP $CPPFLAGS'
45269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45272
45273
45274
45275 fi
45276 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
45277 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
45278
45279 if test $ac_cv_func_which_getservbyname_r = six; then
45280   cat >>confdefs.h <<\_ACEOF
45281 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
45282 _ACEOF
45283
45284 elif test $ac_cv_func_which_getservbyname_r = five; then
45285   cat >>confdefs.h <<\_ACEOF
45286 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
45287 _ACEOF
45288
45289 elif test $ac_cv_func_which_getservbyname_r = four; then
45290   cat >>confdefs.h <<\_ACEOF
45291 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
45292 _ACEOF
45293
45294 fi
45295
45296
45297       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
45298               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
45299
45300 for ac_func in getservbyname
45301 do
45302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45306   echo $ECHO_N "(cached) $ECHO_C" >&6
45307 else
45308   cat >conftest.$ac_ext <<_ACEOF
45309 /* confdefs.h.  */
45310 _ACEOF
45311 cat confdefs.h >>conftest.$ac_ext
45312 cat >>conftest.$ac_ext <<_ACEOF
45313 /* end confdefs.h.  */
45314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45316 #define $ac_func innocuous_$ac_func
45317
45318 /* System header to define __stub macros and hopefully few prototypes,
45319     which can conflict with char $ac_func (); below.
45320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45321     <limits.h> exists even on freestanding compilers.  */
45322
45323 #ifdef __STDC__
45324 # include <limits.h>
45325 #else
45326 # include <assert.h>
45327 #endif
45328
45329 #undef $ac_func
45330
45331 /* Override any GCC internal prototype to avoid an error.
45332    Use char because int might match the return type of a GCC
45333    builtin and then its argument prototype would still apply.  */
45334 #ifdef __cplusplus
45335 extern "C"
45336 #endif
45337 char $ac_func ();
45338 /* The GNU C library defines this for functions which it implements
45339     to always fail with ENOSYS.  Some functions are actually named
45340     something starting with __ and the normal name is an alias.  */
45341 #if defined __stub_$ac_func || defined __stub___$ac_func
45342 choke me
45343 #endif
45344
45345 int
45346 main ()
45347 {
45348 return $ac_func ();
45349   ;
45350   return 0;
45351 }
45352 _ACEOF
45353 rm -f conftest.$ac_objext conftest$ac_exeext
45354 if { (ac_try="$ac_link"
45355 case "(($ac_try" in
45356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45357   *) ac_try_echo=$ac_try;;
45358 esac
45359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45360   (eval "$ac_link") 2>conftest.er1
45361   ac_status=$?
45362   grep -v '^ *+' conftest.er1 >conftest.err
45363   rm -f conftest.er1
45364   cat conftest.err >&5
45365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45366   (exit $ac_status); } && {
45367          test -z "$ac_c_werror_flag" ||
45368          test ! -s conftest.err
45369        } && test -s conftest$ac_exeext &&
45370        $as_test_x conftest$ac_exeext; then
45371   eval "$as_ac_var=yes"
45372 else
45373   echo "$as_me: failed program was:" >&5
45374 sed 's/^/| /' conftest.$ac_ext >&5
45375
45376         eval "$as_ac_var=no"
45377 fi
45378
45379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45380       conftest$ac_exeext conftest.$ac_ext
45381 fi
45382 ac_res=`eval echo '${'$as_ac_var'}'`
45383                { echo "$as_me:$LINENO: result: $ac_res" >&5
45384 echo "${ECHO_T}$ac_res" >&6; }
45385 if test `eval echo '${'$as_ac_var'}'` = yes; then
45386   cat >>confdefs.h <<_ACEOF
45387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45388 _ACEOF
45389   cat >>confdefs.h <<\_ACEOF
45390 #define HAVE_GETSERVBYNAME 1
45391 _ACEOF
45392
45393 fi
45394 done
45395
45396       fi
45397
45398 if test "$wxUSE_THREADS" = "yes"; then
45399   cat >>confdefs.h <<\_ACEOF
45400 #define wxUSE_THREADS 1
45401 _ACEOF
45402
45403
45404   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
45405 else
45406       if test "$wx_cv_func_strtok_r" = "yes"; then
45407     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
45408 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
45409     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
45410         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
45411         { echo "$as_me:$LINENO: result: yes" >&5
45412 echo "${ECHO_T}yes" >&6; }
45413     else
45414         { echo "$as_me:$LINENO: result: no" >&5
45415 echo "${ECHO_T}no" >&6; }
45416     fi
45417   fi
45418 fi
45419
45420 if test "$WXGTK2" = 1 ; then
45421   cat >>confdefs.h <<_ACEOF
45422 #define __WXGTK20__ $WXGTK2
45423 _ACEOF
45424
45425 fi
45426
45427 if test "$WXGTK127" = 1 ; then
45428   cat >>confdefs.h <<_ACEOF
45429 #define __WXGTK127__ $WXGTK127
45430 _ACEOF
45431
45432 fi
45433
45434 if test "$WXGPE" = 1 ; then
45435   cat >>confdefs.h <<_ACEOF
45436 #define __WXGPE__ $WXGPE
45437 _ACEOF
45438
45439 fi
45440
45441 DEBUG_CFLAGS=
45442 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
45443                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
45444 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
45445 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
45446     DEBUG_CFLAGS="-g"
45447 fi
45448
45449 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
45450     wxUSE_DEBUG_INFO=yes
45451     if test "$GCC" = yes; then
45452         DEBUG_CFLAGS="-ggdb"
45453     fi
45454 fi
45455
45456 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
45457     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
45458
45459     if test "$wxUSE_GTK" = 1 ; then
45460         if test "x$wxGTK_VERSION" = "x1" ; then
45461             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
45462         else
45463             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
45464         fi
45465     fi
45466 fi
45467
45468 if test "$wxUSE_MEM_TRACING" = "yes" ; then
45469     cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_MEMORY_TRACING 1
45471 _ACEOF
45472
45473     cat >>confdefs.h <<\_ACEOF
45474 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
45475 _ACEOF
45476
45477     cat >>confdefs.h <<\_ACEOF
45478 #define wxUSE_DEBUG_NEW_ALWAYS 1
45479 _ACEOF
45480
45481     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
45482 fi
45483
45484 if test "$wxUSE_DMALLOC" = "yes" ; then
45485     DMALLOC_LIBS="-ldmallocthcxx"
45486 fi
45487
45488 PROFILE_FLAGS=
45489 if test "$wxUSE_PROFILE" = "yes" ; then
45490     PROFILE_FLAGS=" -pg"
45491 fi
45492
45493 if test "$GCC" = "yes" ; then
45494     if test "$wxUSE_NO_RTTI" = "yes" ; then
45495                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
45496     fi
45497     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45498         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
45499     fi
45500     if test "$wxUSE_PERMISSIVE" = "yes" ; then
45501         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
45502     fi
45503
45504                                                 case "${host}" in
45505       powerpc*-*-aix* )
45506         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
45507         ;;
45508       *-hppa* )
45509         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
45510         ;;
45511     esac
45512 fi
45513
45514 OPTIMISE_CFLAGS=
45515 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
45516                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
45517 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
45518 else
45519     if test "$wxUSE_OPTIMISE" = "no" ; then
45520         if test "$GCC" = yes ; then
45521                                     OPTIMISE_CFLAGS="-O0"
45522         fi
45523     else
45524         if test "$GCC" = yes ; then
45525             case "${host}" in
45526                 *-pc-os2_emx | *-pc-os2-emx )
45527                                                             OPTIMISE_CFLAGS="-O2"
45528                 ;;
45529                 *)
45530                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
45531                 ;;
45532             esac
45533         else
45534             OPTIMISE_CFLAGS="-O"
45535         fi
45536     fi
45537 fi
45538
45539
45540 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
45541     cat >>confdefs.h <<\_ACEOF
45542 #define WXWIN_COMPATIBILITY_2_6 1
45543 _ACEOF
45544
45545
45546     WXWIN_COMPATIBILITY_2_8="yes"
45547 fi
45548
45549 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
45550     cat >>confdefs.h <<\_ACEOF
45551 #define WXWIN_COMPATIBILITY_2_8 1
45552 _ACEOF
45553
45554 fi
45555
45556
45557 if test "$wxUSE_GUI" = "yes"; then
45558     cat >>confdefs.h <<\_ACEOF
45559 #define wxUSE_GUI 1
45560 _ACEOF
45561
45562
45563                                             fi
45564
45565
45566 if test "$wxUSE_UNIX" = "yes"; then
45567   cat >>confdefs.h <<\_ACEOF
45568 #define wxUSE_UNIX 1
45569 _ACEOF
45570
45571 fi
45572
45573
45574 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
45575
45576     HAVE_DL_FUNCS=0
45577     HAVE_SHL_FUNCS=0
45578     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
45579         if test "$USE_DOS" = 1; then
45580             HAVE_DL_FUNCS=0
45581         else
45582
45583 for ac_func in dlopen
45584 do
45585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45589   echo $ECHO_N "(cached) $ECHO_C" >&6
45590 else
45591   cat >conftest.$ac_ext <<_ACEOF
45592 /* confdefs.h.  */
45593 _ACEOF
45594 cat confdefs.h >>conftest.$ac_ext
45595 cat >>conftest.$ac_ext <<_ACEOF
45596 /* end confdefs.h.  */
45597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45599 #define $ac_func innocuous_$ac_func
45600
45601 /* System header to define __stub macros and hopefully few prototypes,
45602     which can conflict with char $ac_func (); below.
45603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45604     <limits.h> exists even on freestanding compilers.  */
45605
45606 #ifdef __STDC__
45607 # include <limits.h>
45608 #else
45609 # include <assert.h>
45610 #endif
45611
45612 #undef $ac_func
45613
45614 /* Override any GCC internal prototype to avoid an error.
45615    Use char because int might match the return type of a GCC
45616    builtin and then its argument prototype would still apply.  */
45617 #ifdef __cplusplus
45618 extern "C"
45619 #endif
45620 char $ac_func ();
45621 /* The GNU C library defines this for functions which it implements
45622     to always fail with ENOSYS.  Some functions are actually named
45623     something starting with __ and the normal name is an alias.  */
45624 #if defined __stub_$ac_func || defined __stub___$ac_func
45625 choke me
45626 #endif
45627
45628 int
45629 main ()
45630 {
45631 return $ac_func ();
45632   ;
45633   return 0;
45634 }
45635 _ACEOF
45636 rm -f conftest.$ac_objext conftest$ac_exeext
45637 if { (ac_try="$ac_link"
45638 case "(($ac_try" in
45639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45640   *) ac_try_echo=$ac_try;;
45641 esac
45642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45643   (eval "$ac_link") 2>conftest.er1
45644   ac_status=$?
45645   grep -v '^ *+' conftest.er1 >conftest.err
45646   rm -f conftest.er1
45647   cat conftest.err >&5
45648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45649   (exit $ac_status); } && {
45650          test -z "$ac_c_werror_flag" ||
45651          test ! -s conftest.err
45652        } && test -s conftest$ac_exeext &&
45653        $as_test_x conftest$ac_exeext; then
45654   eval "$as_ac_var=yes"
45655 else
45656   echo "$as_me: failed program was:" >&5
45657 sed 's/^/| /' conftest.$ac_ext >&5
45658
45659         eval "$as_ac_var=no"
45660 fi
45661
45662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45663       conftest$ac_exeext conftest.$ac_ext
45664 fi
45665 ac_res=`eval echo '${'$as_ac_var'}'`
45666                { echo "$as_me:$LINENO: result: $ac_res" >&5
45667 echo "${ECHO_T}$ac_res" >&6; }
45668 if test `eval echo '${'$as_ac_var'}'` = yes; then
45669   cat >>confdefs.h <<_ACEOF
45670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45671 _ACEOF
45672
45673                 cat >>confdefs.h <<\_ACEOF
45674 #define HAVE_DLOPEN 1
45675 _ACEOF
45676
45677                 HAVE_DL_FUNCS=1
45678
45679 else
45680
45681                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
45682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
45683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
45684   echo $ECHO_N "(cached) $ECHO_C" >&6
45685 else
45686   ac_check_lib_save_LIBS=$LIBS
45687 LIBS="-ldl  $LIBS"
45688 cat >conftest.$ac_ext <<_ACEOF
45689 /* confdefs.h.  */
45690 _ACEOF
45691 cat confdefs.h >>conftest.$ac_ext
45692 cat >>conftest.$ac_ext <<_ACEOF
45693 /* end confdefs.h.  */
45694
45695 /* Override any GCC internal prototype to avoid an error.
45696    Use char because int might match the return type of a GCC
45697    builtin and then its argument prototype would still apply.  */
45698 #ifdef __cplusplus
45699 extern "C"
45700 #endif
45701 char dlopen ();
45702 int
45703 main ()
45704 {
45705 return dlopen ();
45706   ;
45707   return 0;
45708 }
45709 _ACEOF
45710 rm -f conftest.$ac_objext conftest$ac_exeext
45711 if { (ac_try="$ac_link"
45712 case "(($ac_try" in
45713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45714   *) ac_try_echo=$ac_try;;
45715 esac
45716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45717   (eval "$ac_link") 2>conftest.er1
45718   ac_status=$?
45719   grep -v '^ *+' conftest.er1 >conftest.err
45720   rm -f conftest.er1
45721   cat conftest.err >&5
45722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45723   (exit $ac_status); } && {
45724          test -z "$ac_c_werror_flag" ||
45725          test ! -s conftest.err
45726        } && test -s conftest$ac_exeext &&
45727        $as_test_x conftest$ac_exeext; then
45728   ac_cv_lib_dl_dlopen=yes
45729 else
45730   echo "$as_me: failed program was:" >&5
45731 sed 's/^/| /' conftest.$ac_ext >&5
45732
45733         ac_cv_lib_dl_dlopen=no
45734 fi
45735
45736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45737       conftest$ac_exeext conftest.$ac_ext
45738 LIBS=$ac_check_lib_save_LIBS
45739 fi
45740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
45741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
45742 if test $ac_cv_lib_dl_dlopen = yes; then
45743
45744                                 cat >>confdefs.h <<\_ACEOF
45745 #define HAVE_DLOPEN 1
45746 _ACEOF
45747
45748                                 HAVE_DL_FUNCS=1
45749                                 DL_LINK=" -ldl$DL_LINK"
45750
45751 else
45752
45753
45754 for ac_func in shl_load
45755 do
45756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45760   echo $ECHO_N "(cached) $ECHO_C" >&6
45761 else
45762   cat >conftest.$ac_ext <<_ACEOF
45763 /* confdefs.h.  */
45764 _ACEOF
45765 cat confdefs.h >>conftest.$ac_ext
45766 cat >>conftest.$ac_ext <<_ACEOF
45767 /* end confdefs.h.  */
45768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45770 #define $ac_func innocuous_$ac_func
45771
45772 /* System header to define __stub macros and hopefully few prototypes,
45773     which can conflict with char $ac_func (); below.
45774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45775     <limits.h> exists even on freestanding compilers.  */
45776
45777 #ifdef __STDC__
45778 # include <limits.h>
45779 #else
45780 # include <assert.h>
45781 #endif
45782
45783 #undef $ac_func
45784
45785 /* Override any GCC internal prototype to avoid an error.
45786    Use char because int might match the return type of a GCC
45787    builtin and then its argument prototype would still apply.  */
45788 #ifdef __cplusplus
45789 extern "C"
45790 #endif
45791 char $ac_func ();
45792 /* The GNU C library defines this for functions which it implements
45793     to always fail with ENOSYS.  Some functions are actually named
45794     something starting with __ and the normal name is an alias.  */
45795 #if defined __stub_$ac_func || defined __stub___$ac_func
45796 choke me
45797 #endif
45798
45799 int
45800 main ()
45801 {
45802 return $ac_func ();
45803   ;
45804   return 0;
45805 }
45806 _ACEOF
45807 rm -f conftest.$ac_objext conftest$ac_exeext
45808 if { (ac_try="$ac_link"
45809 case "(($ac_try" in
45810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45811   *) ac_try_echo=$ac_try;;
45812 esac
45813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45814   (eval "$ac_link") 2>conftest.er1
45815   ac_status=$?
45816   grep -v '^ *+' conftest.er1 >conftest.err
45817   rm -f conftest.er1
45818   cat conftest.err >&5
45819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820   (exit $ac_status); } && {
45821          test -z "$ac_c_werror_flag" ||
45822          test ! -s conftest.err
45823        } && test -s conftest$ac_exeext &&
45824        $as_test_x conftest$ac_exeext; then
45825   eval "$as_ac_var=yes"
45826 else
45827   echo "$as_me: failed program was:" >&5
45828 sed 's/^/| /' conftest.$ac_ext >&5
45829
45830         eval "$as_ac_var=no"
45831 fi
45832
45833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45834       conftest$ac_exeext conftest.$ac_ext
45835 fi
45836 ac_res=`eval echo '${'$as_ac_var'}'`
45837                { echo "$as_me:$LINENO: result: $ac_res" >&5
45838 echo "${ECHO_T}$ac_res" >&6; }
45839 if test `eval echo '${'$as_ac_var'}'` = yes; then
45840   cat >>confdefs.h <<_ACEOF
45841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45842 _ACEOF
45843
45844                                                 cat >>confdefs.h <<\_ACEOF
45845 #define HAVE_SHL_LOAD 1
45846 _ACEOF
45847
45848                                                 HAVE_SHL_FUNCS=1
45849
45850 else
45851
45852                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
45853 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
45854 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
45855   echo $ECHO_N "(cached) $ECHO_C" >&6
45856 else
45857   ac_check_lib_save_LIBS=$LIBS
45858 LIBS="-lshl_load  $LIBS"
45859 cat >conftest.$ac_ext <<_ACEOF
45860 /* confdefs.h.  */
45861 _ACEOF
45862 cat confdefs.h >>conftest.$ac_ext
45863 cat >>conftest.$ac_ext <<_ACEOF
45864 /* end confdefs.h.  */
45865
45866 /* Override any GCC internal prototype to avoid an error.
45867    Use char because int might match the return type of a GCC
45868    builtin and then its argument prototype would still apply.  */
45869 #ifdef __cplusplus
45870 extern "C"
45871 #endif
45872 char dld ();
45873 int
45874 main ()
45875 {
45876 return dld ();
45877   ;
45878   return 0;
45879 }
45880 _ACEOF
45881 rm -f conftest.$ac_objext conftest$ac_exeext
45882 if { (ac_try="$ac_link"
45883 case "(($ac_try" in
45884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45885   *) ac_try_echo=$ac_try;;
45886 esac
45887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45888   (eval "$ac_link") 2>conftest.er1
45889   ac_status=$?
45890   grep -v '^ *+' conftest.er1 >conftest.err
45891   rm -f conftest.er1
45892   cat conftest.err >&5
45893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45894   (exit $ac_status); } && {
45895          test -z "$ac_c_werror_flag" ||
45896          test ! -s conftest.err
45897        } && test -s conftest$ac_exeext &&
45898        $as_test_x conftest$ac_exeext; then
45899   ac_cv_lib_shl_load_dld=yes
45900 else
45901   echo "$as_me: failed program was:" >&5
45902 sed 's/^/| /' conftest.$ac_ext >&5
45903
45904         ac_cv_lib_shl_load_dld=no
45905 fi
45906
45907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45908       conftest$ac_exeext conftest.$ac_ext
45909 LIBS=$ac_check_lib_save_LIBS
45910 fi
45911 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
45912 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
45913 if test $ac_cv_lib_shl_load_dld = yes; then
45914
45915                                                                 HAVE_SHL_FUNCS=1
45916                                                                 DL_LINK=" -ldld$DL_LINK"
45917
45918 fi
45919
45920
45921 fi
45922 done
45923
45924
45925 fi
45926
45927
45928 fi
45929 done
45930
45931
45932                         if test "$HAVE_DL_FUNCS" = 1; then
45933
45934 for ac_func in dlerror
45935 do
45936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45940   echo $ECHO_N "(cached) $ECHO_C" >&6
45941 else
45942   cat >conftest.$ac_ext <<_ACEOF
45943 /* confdefs.h.  */
45944 _ACEOF
45945 cat confdefs.h >>conftest.$ac_ext
45946 cat >>conftest.$ac_ext <<_ACEOF
45947 /* end confdefs.h.  */
45948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45950 #define $ac_func innocuous_$ac_func
45951
45952 /* System header to define __stub macros and hopefully few prototypes,
45953     which can conflict with char $ac_func (); below.
45954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45955     <limits.h> exists even on freestanding compilers.  */
45956
45957 #ifdef __STDC__
45958 # include <limits.h>
45959 #else
45960 # include <assert.h>
45961 #endif
45962
45963 #undef $ac_func
45964
45965 /* Override any GCC internal prototype to avoid an error.
45966    Use char because int might match the return type of a GCC
45967    builtin and then its argument prototype would still apply.  */
45968 #ifdef __cplusplus
45969 extern "C"
45970 #endif
45971 char $ac_func ();
45972 /* The GNU C library defines this for functions which it implements
45973     to always fail with ENOSYS.  Some functions are actually named
45974     something starting with __ and the normal name is an alias.  */
45975 #if defined __stub_$ac_func || defined __stub___$ac_func
45976 choke me
45977 #endif
45978
45979 int
45980 main ()
45981 {
45982 return $ac_func ();
45983   ;
45984   return 0;
45985 }
45986 _ACEOF
45987 rm -f conftest.$ac_objext conftest$ac_exeext
45988 if { (ac_try="$ac_link"
45989 case "(($ac_try" in
45990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45991   *) ac_try_echo=$ac_try;;
45992 esac
45993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45994   (eval "$ac_link") 2>conftest.er1
45995   ac_status=$?
45996   grep -v '^ *+' conftest.er1 >conftest.err
45997   rm -f conftest.er1
45998   cat conftest.err >&5
45999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000   (exit $ac_status); } && {
46001          test -z "$ac_c_werror_flag" ||
46002          test ! -s conftest.err
46003        } && test -s conftest$ac_exeext &&
46004        $as_test_x conftest$ac_exeext; then
46005   eval "$as_ac_var=yes"
46006 else
46007   echo "$as_me: failed program was:" >&5
46008 sed 's/^/| /' conftest.$ac_ext >&5
46009
46010         eval "$as_ac_var=no"
46011 fi
46012
46013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46014       conftest$ac_exeext conftest.$ac_ext
46015 fi
46016 ac_res=`eval echo '${'$as_ac_var'}'`
46017                { echo "$as_me:$LINENO: result: $ac_res" >&5
46018 echo "${ECHO_T}$ac_res" >&6; }
46019 if test `eval echo '${'$as_ac_var'}'` = yes; then
46020   cat >>confdefs.h <<_ACEOF
46021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46022 _ACEOF
46023  cat >>confdefs.h <<\_ACEOF
46024 #define HAVE_DLERROR 1
46025 _ACEOF
46026
46027 else
46028
46029                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
46030 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
46031 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
46032   echo $ECHO_N "(cached) $ECHO_C" >&6
46033 else
46034   ac_check_lib_save_LIBS=$LIBS
46035 LIBS="-ldl  $LIBS"
46036 cat >conftest.$ac_ext <<_ACEOF
46037 /* confdefs.h.  */
46038 _ACEOF
46039 cat confdefs.h >>conftest.$ac_ext
46040 cat >>conftest.$ac_ext <<_ACEOF
46041 /* end confdefs.h.  */
46042
46043 /* Override any GCC internal prototype to avoid an error.
46044    Use char because int might match the return type of a GCC
46045    builtin and then its argument prototype would still apply.  */
46046 #ifdef __cplusplus
46047 extern "C"
46048 #endif
46049 char dlerror ();
46050 int
46051 main ()
46052 {
46053 return dlerror ();
46054   ;
46055   return 0;
46056 }
46057 _ACEOF
46058 rm -f conftest.$ac_objext conftest$ac_exeext
46059 if { (ac_try="$ac_link"
46060 case "(($ac_try" in
46061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46062   *) ac_try_echo=$ac_try;;
46063 esac
46064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46065   (eval "$ac_link") 2>conftest.er1
46066   ac_status=$?
46067   grep -v '^ *+' conftest.er1 >conftest.err
46068   rm -f conftest.er1
46069   cat conftest.err >&5
46070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46071   (exit $ac_status); } && {
46072          test -z "$ac_c_werror_flag" ||
46073          test ! -s conftest.err
46074        } && test -s conftest$ac_exeext &&
46075        $as_test_x conftest$ac_exeext; then
46076   ac_cv_lib_dl_dlerror=yes
46077 else
46078   echo "$as_me: failed program was:" >&5
46079 sed 's/^/| /' conftest.$ac_ext >&5
46080
46081         ac_cv_lib_dl_dlerror=no
46082 fi
46083
46084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46085       conftest$ac_exeext conftest.$ac_ext
46086 LIBS=$ac_check_lib_save_LIBS
46087 fi
46088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
46089 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
46090 if test $ac_cv_lib_dl_dlerror = yes; then
46091   cat >>confdefs.h <<\_ACEOF
46092 #define HAVE_DLERROR 1
46093 _ACEOF
46094
46095 fi
46096
46097
46098
46099 fi
46100 done
46101
46102             fi
46103         fi
46104
46105                 if test "$USE_DARWIN" = 1; then
46106                         HAVE_DL_FUNCS=1
46107         fi
46108
46109         if test "$HAVE_DL_FUNCS" = 0; then
46110             if test "$HAVE_SHL_FUNCS" = 0; then
46111               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
46112                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
46113 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
46114                   wxUSE_DYNAMIC_LOADER=no
46115                   wxUSE_DYNLIB_CLASS=no
46116               else
46117                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
46118 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
46119               fi
46120             fi
46121         fi
46122     fi
46123 fi
46124
46125 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
46126     cat >>confdefs.h <<\_ACEOF
46127 #define wxUSE_DYNAMIC_LOADER 1
46128 _ACEOF
46129
46130 fi
46131 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
46132     cat >>confdefs.h <<\_ACEOF
46133 #define wxUSE_DYNLIB_CLASS 1
46134 _ACEOF
46135
46136 fi
46137
46138
46139
46140 if test "$wxUSE_PLUGINS" = "yes" ; then
46141     if test "$wxUSE_SHARED" = "no" ; then
46142         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
46143 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
46144         wxUSE_PLUGINS=no
46145     fi
46146     if test "$wxUSE_MONOLITHIC" = "yes" ; then
46147         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
46148 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
46149         wxUSE_PLUGINS=no
46150     fi
46151     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
46152         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
46153 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
46154         wxUSE_PLUGINS=no
46155     fi
46156     if test "$wxUSE_PLUGINS" = "yes" ; then
46157         cat >>confdefs.h <<\_ACEOF
46158 #define wxUSE_PLUGINS 1
46159 _ACEOF
46160
46161     fi
46162 fi
46163
46164
46165 if test "$wxUSE_FSWATCHER" = "yes"; then
46166                 if test "$wxUSE_MSW" != "1"; then
46167         if test "$wxUSE_UNIX" = "yes"; then
46168
46169 for ac_header in sys/inotify.h
46170 do
46171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46175   echo $ECHO_N "(cached) $ECHO_C" >&6
46176 else
46177   cat >conftest.$ac_ext <<_ACEOF
46178 /* confdefs.h.  */
46179 _ACEOF
46180 cat confdefs.h >>conftest.$ac_ext
46181 cat >>conftest.$ac_ext <<_ACEOF
46182 /* end confdefs.h.  */
46183 $ac_includes_default
46184
46185 #include <$ac_header>
46186 _ACEOF
46187 rm -f conftest.$ac_objext
46188 if { (ac_try="$ac_compile"
46189 case "(($ac_try" in
46190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46191   *) ac_try_echo=$ac_try;;
46192 esac
46193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46194   (eval "$ac_compile") 2>conftest.er1
46195   ac_status=$?
46196   grep -v '^ *+' conftest.er1 >conftest.err
46197   rm -f conftest.er1
46198   cat conftest.err >&5
46199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46200   (exit $ac_status); } && {
46201          test -z "$ac_c_werror_flag" ||
46202          test ! -s conftest.err
46203        } && test -s conftest.$ac_objext; then
46204   eval "$as_ac_Header=yes"
46205 else
46206   echo "$as_me: failed program was:" >&5
46207 sed 's/^/| /' conftest.$ac_ext >&5
46208
46209         eval "$as_ac_Header=no"
46210 fi
46211
46212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46213 fi
46214 ac_res=`eval echo '${'$as_ac_Header'}'`
46215                { echo "$as_me:$LINENO: result: $ac_res" >&5
46216 echo "${ECHO_T}$ac_res" >&6; }
46217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46218   cat >>confdefs.h <<_ACEOF
46219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46220 _ACEOF
46221
46222 fi
46223
46224 done
46225
46226             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
46227                 cat >>confdefs.h <<\_ACEOF
46228 #define wxHAS_INOTIFY 1
46229 _ACEOF
46230
46231             else
46232
46233 for ac_header in sys/event.h
46234 do
46235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46239   echo $ECHO_N "(cached) $ECHO_C" >&6
46240 else
46241   cat >conftest.$ac_ext <<_ACEOF
46242 /* confdefs.h.  */
46243 _ACEOF
46244 cat confdefs.h >>conftest.$ac_ext
46245 cat >>conftest.$ac_ext <<_ACEOF
46246 /* end confdefs.h.  */
46247 $ac_includes_default
46248
46249 #include <$ac_header>
46250 _ACEOF
46251 rm -f conftest.$ac_objext
46252 if { (ac_try="$ac_compile"
46253 case "(($ac_try" in
46254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46255   *) ac_try_echo=$ac_try;;
46256 esac
46257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46258   (eval "$ac_compile") 2>conftest.er1
46259   ac_status=$?
46260   grep -v '^ *+' conftest.er1 >conftest.err
46261   rm -f conftest.er1
46262   cat conftest.err >&5
46263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46264   (exit $ac_status); } && {
46265          test -z "$ac_c_werror_flag" ||
46266          test ! -s conftest.err
46267        } && test -s conftest.$ac_objext; then
46268   eval "$as_ac_Header=yes"
46269 else
46270   echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46272
46273         eval "$as_ac_Header=no"
46274 fi
46275
46276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46277 fi
46278 ac_res=`eval echo '${'$as_ac_Header'}'`
46279                { echo "$as_me:$LINENO: result: $ac_res" >&5
46280 echo "${ECHO_T}$ac_res" >&6; }
46281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46282   cat >>confdefs.h <<_ACEOF
46283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46284 _ACEOF
46285
46286 fi
46287
46288 done
46289
46290                 if test "$ac_cv_header_sys_event_h" = "yes"; then
46291                     cat >>confdefs.h <<\_ACEOF
46292 #define wxHAS_KQUEUE 1
46293 _ACEOF
46294
46295                 else
46296                     wxUSE_FSWATCHER=no
46297                 fi
46298             fi
46299         else
46300             wxUSE_FSWATCHER=no
46301         fi
46302     else
46303         if test "$wxUSE_THREADS" != "yes"; then
46304             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
46305 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
46306             wxUSE_FSWATCHER=no
46307         fi
46308     fi
46309
46310     if test "$wxUSE_FSWATCHER" = "yes"; then
46311         cat >>confdefs.h <<\_ACEOF
46312 #define wxUSE_FSWATCHER 1
46313 _ACEOF
46314
46315         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
46316     else
46317         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
46318 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
46319     fi
46320 fi
46321
46322
46323 if test "$wxUSE_STL" = "yes"; then
46324   cat >>confdefs.h <<\_ACEOF
46325 #define wxUSE_STL 1
46326 _ACEOF
46327
46328 fi
46329
46330 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
46331   cat >>confdefs.h <<\_ACEOF
46332 #define wxUSE_EXTENDED_RTTI 1
46333 _ACEOF
46334
46335 fi
46336
46337 if test "$wxUSE_ANY" = "yes"; then
46338     cat >>confdefs.h <<\_ACEOF
46339 #define wxUSE_ANY 1
46340 _ACEOF
46341
46342 fi
46343
46344 if test "$wxUSE_APPLE_IEEE" = "yes"; then
46345   cat >>confdefs.h <<\_ACEOF
46346 #define wxUSE_APPLE_IEEE 1
46347 _ACEOF
46348
46349 fi
46350
46351 if test "$wxUSE_TIMER" = "yes"; then
46352   cat >>confdefs.h <<\_ACEOF
46353 #define wxUSE_TIMER 1
46354 _ACEOF
46355
46356 fi
46357
46358 if test "$USE_UNIX" = 1 ; then
46359         if test "$wxUSE_MGL" != 1; then
46360                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
46361 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
46362 if test "${ac_cv_header_sys_soundcard+set}" = set; then
46363   echo $ECHO_N "(cached) $ECHO_C" >&6
46364 else
46365
46366             cat >conftest.$ac_ext <<_ACEOF
46367 /* confdefs.h.  */
46368 _ACEOF
46369 cat confdefs.h >>conftest.$ac_ext
46370 cat >>conftest.$ac_ext <<_ACEOF
46371 /* end confdefs.h.  */
46372
46373                     #include <sys/ioctl.h>
46374                     #include <sys/soundcard.h>
46375
46376 int
46377 main ()
46378 {
46379
46380                     ioctl(0, SNDCTL_DSP_SPEED, 0);
46381
46382   ;
46383   return 0;
46384 }
46385 _ACEOF
46386 rm -f conftest.$ac_objext conftest$ac_exeext
46387 if { (ac_try="$ac_link"
46388 case "(($ac_try" in
46389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46390   *) ac_try_echo=$ac_try;;
46391 esac
46392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46393   (eval "$ac_link") 2>conftest.er1
46394   ac_status=$?
46395   grep -v '^ *+' conftest.er1 >conftest.err
46396   rm -f conftest.er1
46397   cat conftest.err >&5
46398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399   (exit $ac_status); } && {
46400          test -z "$ac_c_werror_flag" ||
46401          test ! -s conftest.err
46402        } && test -s conftest$ac_exeext &&
46403        $as_test_x conftest$ac_exeext; then
46404   ac_cv_header_sys_soundcard=yes
46405 else
46406   echo "$as_me: failed program was:" >&5
46407 sed 's/^/| /' conftest.$ac_ext >&5
46408
46409
46410                     saveLibs="$LIBS"
46411                     LIBS="$saveLibs -lossaudio"
46412                     cat >conftest.$ac_ext <<_ACEOF
46413 /* confdefs.h.  */
46414 _ACEOF
46415 cat confdefs.h >>conftest.$ac_ext
46416 cat >>conftest.$ac_ext <<_ACEOF
46417 /* end confdefs.h.  */
46418
46419                             #include <sys/ioctl.h>
46420                             #include <sys/soundcard.h>
46421
46422 int
46423 main ()
46424 {
46425
46426                             ioctl(0, SNDCTL_DSP_SPEED, 0);
46427
46428   ;
46429   return 0;
46430 }
46431 _ACEOF
46432 rm -f conftest.$ac_objext conftest$ac_exeext
46433 if { (ac_try="$ac_link"
46434 case "(($ac_try" in
46435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46436   *) ac_try_echo=$ac_try;;
46437 esac
46438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46439   (eval "$ac_link") 2>conftest.er1
46440   ac_status=$?
46441   grep -v '^ *+' conftest.er1 >conftest.err
46442   rm -f conftest.er1
46443   cat conftest.err >&5
46444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46445   (exit $ac_status); } && {
46446          test -z "$ac_c_werror_flag" ||
46447          test ! -s conftest.err
46448        } && test -s conftest$ac_exeext &&
46449        $as_test_x conftest$ac_exeext; then
46450   ac_cv_header_sys_soundcard=yes
46451 else
46452   echo "$as_me: failed program was:" >&5
46453 sed 's/^/| /' conftest.$ac_ext >&5
46454
46455
46456                             LIBS="$saveLibs"
46457                             ac_cv_header_sys_soundcard=no
46458
46459
46460 fi
46461
46462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46463       conftest$ac_exeext conftest.$ac_ext
46464
46465
46466 fi
46467
46468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46469       conftest$ac_exeext conftest.$ac_ext
46470
46471 fi
46472 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
46473 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
46474     fi
46475
46476     if test "$ac_cv_header_sys_soundcard" = "yes"; then
46477         cat >>confdefs.h <<\_ACEOF
46478 #define HAVE_SYS_SOUNDCARD_H 1
46479 _ACEOF
46480
46481     fi
46482 fi
46483
46484 WITH_PLUGIN_SDL=0
46485 if test "$wxUSE_SOUND" = "yes"; then
46486   if test "$USE_UNIX" = 1 ; then
46487     if test "$wxUSE_LIBSDL" != "no"; then
46488
46489 # Check whether --with-sdl-prefix was given.
46490 if test "${with_sdl_prefix+set}" = set; then
46491   withval=$with_sdl_prefix; sdl_prefix="$withval"
46492 else
46493   sdl_prefix=""
46494 fi
46495
46496
46497 # Check whether --with-sdl-exec-prefix was given.
46498 if test "${with_sdl_exec_prefix+set}" = set; then
46499   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
46500 else
46501   sdl_exec_prefix=""
46502 fi
46503
46504 # Check whether --enable-sdltest was given.
46505 if test "${enable_sdltest+set}" = set; then
46506   enableval=$enable_sdltest;
46507 else
46508   enable_sdltest=yes
46509 fi
46510
46511
46512   if test x$sdl_exec_prefix != x ; then
46513     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
46514     if test x${SDL_CONFIG+set} != xset ; then
46515       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
46516     fi
46517   fi
46518   if test x$sdl_prefix != x ; then
46519     sdl_args="$sdl_args --prefix=$sdl_prefix"
46520     if test x${SDL_CONFIG+set} != xset ; then
46521       SDL_CONFIG=$sdl_prefix/bin/sdl-config
46522     fi
46523   fi
46524
46525   if test "x$prefix" != xNONE; then
46526     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
46527   fi
46528   # Extract the first word of "sdl-config", so it can be a program name with args.
46529 set dummy sdl-config; ac_word=$2
46530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46532 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
46533   echo $ECHO_N "(cached) $ECHO_C" >&6
46534 else
46535   case $SDL_CONFIG in
46536   [\\/]* | ?:[\\/]*)
46537   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
46538   ;;
46539   *)
46540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46541 for as_dir in $PATH
46542 do
46543   IFS=$as_save_IFS
46544   test -z "$as_dir" && as_dir=.
46545   for ac_exec_ext in '' $ac_executable_extensions; do
46546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46547     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46549     break 2
46550   fi
46551 done
46552 done
46553 IFS=$as_save_IFS
46554
46555   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
46556   ;;
46557 esac
46558 fi
46559 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
46560 if test -n "$SDL_CONFIG"; then
46561   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
46562 echo "${ECHO_T}$SDL_CONFIG" >&6; }
46563 else
46564   { echo "$as_me:$LINENO: result: no" >&5
46565 echo "${ECHO_T}no" >&6; }
46566 fi
46567
46568
46569   min_sdl_version=1.2.0
46570   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
46571 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
46572   no_sdl=""
46573   if test "$SDL_CONFIG" = "no" ; then
46574     no_sdl=yes
46575   else
46576     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
46577     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
46578
46579     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
46580            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46581     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
46582            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46583     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
46584            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46585     if test "x$enable_sdltest" = "xyes" ; then
46586       ac_save_CFLAGS="$CFLAGS"
46587       ac_save_CXXFLAGS="$CXXFLAGS"
46588       ac_save_LIBS="$LIBS"
46589       CFLAGS="$CFLAGS $SDL_CFLAGS"
46590       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46591       LIBS="$LIBS $SDL_LIBS"
46592       rm -f conf.sdltest
46593       if test "$cross_compiling" = yes; then
46594   echo $ac_n "cross compiling; assumed OK... $ac_c"
46595 else
46596   cat >conftest.$ac_ext <<_ACEOF
46597 /* confdefs.h.  */
46598 _ACEOF
46599 cat confdefs.h >>conftest.$ac_ext
46600 cat >>conftest.$ac_ext <<_ACEOF
46601 /* end confdefs.h.  */
46602
46603 #include <stdio.h>
46604 #include <stdlib.h>
46605 #include <string.h>
46606 #include "SDL.h"
46607
46608 char*
46609 my_strdup (char *str)
46610 {
46611   char *new_str;
46612
46613   if (str)
46614     {
46615       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
46616       strcpy (new_str, str);
46617     }
46618   else
46619     new_str = NULL;
46620
46621   return new_str;
46622 }
46623
46624 int main (int argc, char *argv[])
46625 {
46626   int major, minor, micro;
46627   char *tmp_version;
46628
46629   /* This hangs on some systems (?)
46630   system ("touch conf.sdltest");
46631   */
46632   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
46633
46634   /* HP/UX 9 (%@#!) writes to sscanf strings */
46635   tmp_version = my_strdup("$min_sdl_version");
46636   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
46637      printf("%s, bad version string\n", "$min_sdl_version");
46638      exit(1);
46639    }
46640
46641    if (($sdl_major_version > major) ||
46642       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
46643       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
46644     {
46645       return 0;
46646     }
46647   else
46648     {
46649       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
46650       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
46651       printf("*** best to upgrade to the required version.\n");
46652       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
46653       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
46654       printf("*** config.cache before re-running configure\n");
46655       return 1;
46656     }
46657 }
46658
46659
46660 _ACEOF
46661 rm -f conftest$ac_exeext
46662 if { (ac_try="$ac_link"
46663 case "(($ac_try" in
46664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46665   *) ac_try_echo=$ac_try;;
46666 esac
46667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46668   (eval "$ac_link") 2>&5
46669   ac_status=$?
46670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46672   { (case "(($ac_try" in
46673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46674   *) ac_try_echo=$ac_try;;
46675 esac
46676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46677   (eval "$ac_try") 2>&5
46678   ac_status=$?
46679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46680   (exit $ac_status); }; }; then
46681   :
46682 else
46683   echo "$as_me: program exited with status $ac_status" >&5
46684 echo "$as_me: failed program was:" >&5
46685 sed 's/^/| /' conftest.$ac_ext >&5
46686
46687 ( exit $ac_status )
46688 no_sdl=yes
46689 fi
46690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46691 fi
46692
46693
46694        CFLAGS="$ac_save_CFLAGS"
46695        CXXFLAGS="$ac_save_CXXFLAGS"
46696        LIBS="$ac_save_LIBS"
46697      fi
46698   fi
46699   if test "x$no_sdl" = x ; then
46700      { echo "$as_me:$LINENO: result: yes" >&5
46701 echo "${ECHO_T}yes" >&6; }
46702
46703                     EXTRALIBS_SDL="$SDL_LIBS"
46704                     CFLAGS="$SDL_CFLAGS $CFLAGS"
46705                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
46706                     cat >>confdefs.h <<\_ACEOF
46707 #define wxUSE_LIBSDL 1
46708 _ACEOF
46709
46710
46711   else
46712      { echo "$as_me:$LINENO: result: no" >&5
46713 echo "${ECHO_T}no" >&6; }
46714      if test "$SDL_CONFIG" = "no" ; then
46715        echo "*** The sdl-config script installed by SDL could not be found"
46716        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
46717        echo "*** your path, or set the SDL_CONFIG environment variable to the"
46718        echo "*** full path to sdl-config."
46719      else
46720        if test -f conf.sdltest ; then
46721         :
46722        else
46723           echo "*** Could not run SDL test program, checking why..."
46724           CFLAGS="$CFLAGS $SDL_CFLAGS"
46725           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46726           LIBS="$LIBS $SDL_LIBS"
46727           cat >conftest.$ac_ext <<_ACEOF
46728 /* confdefs.h.  */
46729 _ACEOF
46730 cat confdefs.h >>conftest.$ac_ext
46731 cat >>conftest.$ac_ext <<_ACEOF
46732 /* end confdefs.h.  */
46733
46734 #include <stdio.h>
46735 #include "SDL.h"
46736
46737 int main(int argc, char *argv[])
46738 { return 0; }
46739 #undef  main
46740 #define main K_and_R_C_main
46741
46742 int
46743 main ()
46744 {
46745  return 0;
46746   ;
46747   return 0;
46748 }
46749 _ACEOF
46750 rm -f conftest.$ac_objext conftest$ac_exeext
46751 if { (ac_try="$ac_link"
46752 case "(($ac_try" in
46753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46754   *) ac_try_echo=$ac_try;;
46755 esac
46756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46757   (eval "$ac_link") 2>conftest.er1
46758   ac_status=$?
46759   grep -v '^ *+' conftest.er1 >conftest.err
46760   rm -f conftest.er1
46761   cat conftest.err >&5
46762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46763   (exit $ac_status); } && {
46764          test -z "$ac_c_werror_flag" ||
46765          test ! -s conftest.err
46766        } && test -s conftest$ac_exeext &&
46767        $as_test_x conftest$ac_exeext; then
46768    echo "*** The test program compiled, but did not run. This usually means"
46769           echo "*** that the run-time linker is not finding SDL or finding the wrong"
46770           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
46771           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
46772           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
46773           echo "*** is required on your system"
46774           echo "***"
46775           echo "*** If you have an old version installed, it is best to remove it, although"
46776           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
46777 else
46778   echo "$as_me: failed program was:" >&5
46779 sed 's/^/| /' conftest.$ac_ext >&5
46780
46781          echo "*** The test program failed to compile or link. See the file config.log for the"
46782           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
46783           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
46784           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
46785 fi
46786
46787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46788       conftest$ac_exeext conftest.$ac_ext
46789           CFLAGS="$ac_save_CFLAGS"
46790           CXXFLAGS="$ac_save_CXXFLAGS"
46791           LIBS="$ac_save_LIBS"
46792        fi
46793      fi
46794      SDL_CFLAGS=""
46795      SDL_LIBS=""
46796      wxUSE_LIBSDL="no"
46797   fi
46798
46799
46800   rm -f conf.sdltest
46801
46802       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
46803         WITH_PLUGIN_SDL=1
46804       fi
46805     fi
46806   else
46807         if test "$wxUSE_MGL" = 1; then
46808         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
46809 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
46810         wxUSE_SOUND="no"
46811     fi
46812   fi
46813 fi
46814
46815 if test "$wxUSE_SOUND" = "yes"; then
46816   cat >>confdefs.h <<\_ACEOF
46817 #define wxUSE_SOUND 1
46818 _ACEOF
46819
46820   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
46821 fi
46822
46823 if test "$WXGTK2" = 1; then
46824
46825
46826 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
46827         if test -n "$ac_tool_prefix"; then
46828   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
46829 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
46830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
46833   echo $ECHO_N "(cached) $ECHO_C" >&6
46834 else
46835   case $PKG_CONFIG in
46836   [\\/]* | ?:[\\/]*)
46837   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
46838   ;;
46839   *)
46840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46841 for as_dir in $PATH
46842 do
46843   IFS=$as_save_IFS
46844   test -z "$as_dir" && as_dir=.
46845   for ac_exec_ext in '' $ac_executable_extensions; do
46846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46847     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46849     break 2
46850   fi
46851 done
46852 done
46853 IFS=$as_save_IFS
46854
46855   ;;
46856 esac
46857 fi
46858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
46859 if test -n "$PKG_CONFIG"; then
46860   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
46861 echo "${ECHO_T}$PKG_CONFIG" >&6; }
46862 else
46863   { echo "$as_me:$LINENO: result: no" >&5
46864 echo "${ECHO_T}no" >&6; }
46865 fi
46866
46867
46868 fi
46869 if test -z "$ac_cv_path_PKG_CONFIG"; then
46870   ac_pt_PKG_CONFIG=$PKG_CONFIG
46871   # Extract the first word of "pkg-config", so it can be a program name with args.
46872 set dummy pkg-config; ac_word=$2
46873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46875 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
46876   echo $ECHO_N "(cached) $ECHO_C" >&6
46877 else
46878   case $ac_pt_PKG_CONFIG in
46879   [\\/]* | ?:[\\/]*)
46880   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
46881   ;;
46882   *)
46883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46884 for as_dir in $PATH
46885 do
46886   IFS=$as_save_IFS
46887   test -z "$as_dir" && as_dir=.
46888   for ac_exec_ext in '' $ac_executable_extensions; do
46889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46890     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46892     break 2
46893   fi
46894 done
46895 done
46896 IFS=$as_save_IFS
46897
46898   ;;
46899 esac
46900 fi
46901 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46902 if test -n "$ac_pt_PKG_CONFIG"; then
46903   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
46904 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
46905 else
46906   { echo "$as_me:$LINENO: result: no" >&5
46907 echo "${ECHO_T}no" >&6; }
46908 fi
46909
46910   if test "x$ac_pt_PKG_CONFIG" = x; then
46911     PKG_CONFIG=""
46912   else
46913     case $cross_compiling:$ac_tool_warned in
46914 yes:)
46915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46916 whose name does not start with the host triplet.  If you think this
46917 configuration is useful to you, please write to autoconf@gnu.org." >&5
46918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46919 whose name does not start with the host triplet.  If you think this
46920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46921 ac_tool_warned=yes ;;
46922 esac
46923     PKG_CONFIG=$ac_pt_PKG_CONFIG
46924   fi
46925 else
46926   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46927 fi
46928
46929 fi
46930 if test -n "$PKG_CONFIG"; then
46931         _pkg_min_version=0.9.0
46932         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
46933 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
46934         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46935                 { echo "$as_me:$LINENO: result: yes" >&5
46936 echo "${ECHO_T}yes" >&6; }
46937         else
46938                 { echo "$as_me:$LINENO: result: no" >&5
46939 echo "${ECHO_T}no" >&6; }
46940                 PKG_CONFIG=""
46941         fi
46942
46943 fi
46944
46945     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46946
46947         if test "$wxUSE_GTKPRINT" = "yes" ; then
46948
46949
46950 pkg_failed=no
46951 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
46952 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
46953
46954 if test -n "$PKG_CONFIG"; then
46955     if test -n "$GTKPRINT_CFLAGS"; then
46956         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
46957     else
46958         if test -n "$PKG_CONFIG" && \
46959     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46960   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46961   ac_status=$?
46962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46963   (exit $ac_status); }; then
46964   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46965 else
46966   pkg_failed=yes
46967 fi
46968     fi
46969 else
46970         pkg_failed=untried
46971 fi
46972 if test -n "$PKG_CONFIG"; then
46973     if test -n "$GTKPRINT_LIBS"; then
46974         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
46975     else
46976         if test -n "$PKG_CONFIG" && \
46977     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46978   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46979   ac_status=$?
46980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46981   (exit $ac_status); }; then
46982   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46983 else
46984   pkg_failed=yes
46985 fi
46986     fi
46987 else
46988         pkg_failed=untried
46989 fi
46990
46991
46992
46993 if test $pkg_failed = yes; then
46994
46995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46996         _pkg_short_errors_supported=yes
46997 else
46998         _pkg_short_errors_supported=no
46999 fi
47000         if test $_pkg_short_errors_supported = yes; then
47001                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
47002         else
47003                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
47004         fi
47005         # Put the nasty error message in config.log where it belongs
47006         echo "$GTKPRINT_PKG_ERRORS" >&5
47007
47008
47009                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47010 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47011                         wxUSE_GTKPRINT="no"
47012
47013
47014 elif test $pkg_failed = untried; then
47015
47016                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47017 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47018                         wxUSE_GTKPRINT="no"
47019
47020
47021 else
47022         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
47023         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
47024         { echo "$as_me:$LINENO: result: yes" >&5
47025 echo "${ECHO_T}yes" >&6; }
47026
47027                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
47028                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
47029                         cat >>confdefs.h <<\_ACEOF
47030 #define wxUSE_GTKPRINT 1
47031 _ACEOF
47032
47033
47034 fi
47035         fi
47036
47037         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47038
47039
47040 pkg_failed=no
47041 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
47042 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
47043
47044 if test -n "$PKG_CONFIG"; then
47045     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
47046         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
47047     else
47048         if test -n "$PKG_CONFIG" && \
47049     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47050   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47051   ac_status=$?
47052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47053   (exit $ac_status); }; then
47054   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47055 else
47056   pkg_failed=yes
47057 fi
47058     fi
47059 else
47060         pkg_failed=untried
47061 fi
47062 if test -n "$PKG_CONFIG"; then
47063     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
47064         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
47065     else
47066         if test -n "$PKG_CONFIG" && \
47067     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47068   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47069   ac_status=$?
47070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47071   (exit $ac_status); }; then
47072   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47073 else
47074   pkg_failed=yes
47075 fi
47076     fi
47077 else
47078         pkg_failed=untried
47079 fi
47080
47081
47082
47083 if test $pkg_failed = yes; then
47084
47085 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47086         _pkg_short_errors_supported=yes
47087 else
47088         _pkg_short_errors_supported=no
47089 fi
47090         if test $_pkg_short_errors_supported = yes; then
47091                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47092         else
47093                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47094         fi
47095         # Put the nasty error message in config.log where it belongs
47096         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
47097
47098
47099                         if test "$wxUSE_GTKPRINT" = yes; then
47100                             { echo "$as_me:$LINENO: result: no" >&5
47101 echo "${ECHO_T}no" >&6; }
47102                         else
47103                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47104 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47105                         fi
47106                         wxUSE_LIBGNOMEPRINT="no"
47107
47108
47109 elif test $pkg_failed = untried; then
47110
47111                         if test "$wxUSE_GTKPRINT" = yes; then
47112                             { echo "$as_me:$LINENO: result: no" >&5
47113 echo "${ECHO_T}no" >&6; }
47114                         else
47115                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47116 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47117                         fi
47118                         wxUSE_LIBGNOMEPRINT="no"
47119
47120
47121 else
47122         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
47123         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
47124         { echo "$as_me:$LINENO: result: yes" >&5
47125 echo "${ECHO_T}yes" >&6; }
47126
47127                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
47128                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
47129                         cat >>confdefs.h <<\_ACEOF
47130 #define wxUSE_LIBGNOMEPRINT 1
47131 _ACEOF
47132
47133
47134 fi
47135         fi
47136     fi
47137
47138     if test "$wxUSE_MIMETYPE" = "yes" ; then
47139         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47140
47141
47142 pkg_failed=no
47143 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
47144 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
47145
47146 if test -n "$PKG_CONFIG"; then
47147     if test -n "$GNOMEVFS_CFLAGS"; then
47148         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
47149     else
47150         if test -n "$PKG_CONFIG" && \
47151     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47152   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47153   ac_status=$?
47154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47155   (exit $ac_status); }; then
47156   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47157 else
47158   pkg_failed=yes
47159 fi
47160     fi
47161 else
47162         pkg_failed=untried
47163 fi
47164 if test -n "$PKG_CONFIG"; then
47165     if test -n "$GNOMEVFS_LIBS"; then
47166         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
47167     else
47168         if test -n "$PKG_CONFIG" && \
47169     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47170   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47171   ac_status=$?
47172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47173   (exit $ac_status); }; then
47174   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47175 else
47176   pkg_failed=yes
47177 fi
47178     fi
47179 else
47180         pkg_failed=untried
47181 fi
47182
47183
47184
47185 if test $pkg_failed = yes; then
47186
47187 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47188         _pkg_short_errors_supported=yes
47189 else
47190         _pkg_short_errors_supported=no
47191 fi
47192         if test $_pkg_short_errors_supported = yes; then
47193                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47194         else
47195                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47196         fi
47197         # Put the nasty error message in config.log where it belongs
47198         echo "$GNOMEVFS_PKG_ERRORS" >&5
47199
47200
47201                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47202 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47203                         wxUSE_LIBGNOMEVFS="no"
47204
47205
47206 elif test $pkg_failed = untried; then
47207
47208                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47209 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47210                         wxUSE_LIBGNOMEVFS="no"
47211
47212
47213 else
47214         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
47215         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
47216         { echo "$as_me:$LINENO: result: yes" >&5
47217 echo "${ECHO_T}yes" >&6; }
47218
47219                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
47220                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
47221                         cat >>confdefs.h <<\_ACEOF
47222 #define wxUSE_LIBGNOMEVFS 1
47223 _ACEOF
47224
47225
47226 fi
47227         fi
47228     fi
47229
47230     if test "$wxUSE_LIBHILDON" = "yes" ; then
47231
47232 pkg_failed=no
47233 { echo "$as_me:$LINENO: checking for HILDON" >&5
47234 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
47235
47236 if test -n "$PKG_CONFIG"; then
47237     if test -n "$HILDON_CFLAGS"; then
47238         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
47239     else
47240         if test -n "$PKG_CONFIG" && \
47241     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47242   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47243   ac_status=$?
47244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47245   (exit $ac_status); }; then
47246   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
47247 else
47248   pkg_failed=yes
47249 fi
47250     fi
47251 else
47252         pkg_failed=untried
47253 fi
47254 if test -n "$PKG_CONFIG"; then
47255     if test -n "$HILDON_LIBS"; then
47256         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
47257     else
47258         if test -n "$PKG_CONFIG" && \
47259     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47260   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47261   ac_status=$?
47262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47263   (exit $ac_status); }; then
47264   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
47265 else
47266   pkg_failed=yes
47267 fi
47268     fi
47269 else
47270         pkg_failed=untried
47271 fi
47272
47273
47274
47275 if test $pkg_failed = yes; then
47276
47277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47278         _pkg_short_errors_supported=yes
47279 else
47280         _pkg_short_errors_supported=no
47281 fi
47282         if test $_pkg_short_errors_supported = yes; then
47283                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47284         else
47285                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47286         fi
47287         # Put the nasty error message in config.log where it belongs
47288         echo "$HILDON_PKG_ERRORS" >&5
47289
47290
47291                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47292 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47293                         wxUSE_LIBHILDON="no"
47294                         ac_hildon_lgpl=0
47295
47296
47297 elif test $pkg_failed = untried; then
47298
47299                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47300 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47301                         wxUSE_LIBHILDON="no"
47302                         ac_hildon_lgpl=0
47303
47304
47305 else
47306         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
47307         HILDON_LIBS=$pkg_cv_HILDON_LIBS
47308         { echo "$as_me:$LINENO: result: yes" >&5
47309 echo "${ECHO_T}yes" >&6; }
47310
47311                 EXTRALIBS_HILDON="$HILDON_LIBS"
47312                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
47313                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
47314                 cat >>confdefs.h <<\_ACEOF
47315 #define wxUSE_LIBHILDON 1
47316 _ACEOF
47317
47318                 ac_hildon_lgpl=1
47319
47320 fi
47321
47322         if test "$ac_hildon_lgpl" = 0 ; then
47323
47324 pkg_failed=no
47325 { echo "$as_me:$LINENO: checking for HILDON2" >&5
47326 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
47327
47328 if test -n "$PKG_CONFIG"; then
47329     if test -n "$HILDON2_CFLAGS"; then
47330         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
47331     else
47332         if test -n "$PKG_CONFIG" && \
47333     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47334   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47335   ac_status=$?
47336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47337   (exit $ac_status); }; then
47338   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
47339 else
47340   pkg_failed=yes
47341 fi
47342     fi
47343 else
47344         pkg_failed=untried
47345 fi
47346 if test -n "$PKG_CONFIG"; then
47347     if test -n "$HILDON2_LIBS"; then
47348         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
47349     else
47350         if test -n "$PKG_CONFIG" && \
47351     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47352   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47353   ac_status=$?
47354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47355   (exit $ac_status); }; then
47356   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
47357 else
47358   pkg_failed=yes
47359 fi
47360     fi
47361 else
47362         pkg_failed=untried
47363 fi
47364
47365
47366
47367 if test $pkg_failed = yes; then
47368
47369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47370         _pkg_short_errors_supported=yes
47371 else
47372         _pkg_short_errors_supported=no
47373 fi
47374         if test $_pkg_short_errors_supported = yes; then
47375                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47376         else
47377                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47378         fi
47379         # Put the nasty error message in config.log where it belongs
47380         echo "$HILDON2_PKG_ERRORS" >&5
47381
47382
47383                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47384 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47385                             wxUSE_LIBHILDON2="no"
47386
47387
47388 elif test $pkg_failed = untried; then
47389
47390                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47391 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47392                             wxUSE_LIBHILDON2="no"
47393
47394
47395 else
47396         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
47397         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
47398         { echo "$as_me:$LINENO: result: yes" >&5
47399 echo "${ECHO_T}yes" >&6; }
47400
47401                     EXTRALIBS_HILDON="$HILDON2_LIBS"
47402                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
47403                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
47404                     cat >>confdefs.h <<\_ACEOF
47405 #define wxUSE_LIBHILDON2 1
47406 _ACEOF
47407
47408
47409 fi
47410         fi
47411     fi
47412 fi
47413
47414 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
47415   cat >>confdefs.h <<\_ACEOF
47416 #define wxUSE_CMDLINE_PARSER 1
47417 _ACEOF
47418
47419 fi
47420
47421 if test "$wxUSE_STOPWATCH" = "yes"; then
47422   cat >>confdefs.h <<\_ACEOF
47423 #define wxUSE_STOPWATCH 1
47424 _ACEOF
47425
47426 fi
47427
47428 if test "$wxUSE_DATETIME" = "yes"; then
47429   cat >>confdefs.h <<\_ACEOF
47430 #define wxUSE_DATETIME 1
47431 _ACEOF
47432
47433 fi
47434
47435 if test "$wxUSE_FILE" = "yes"; then
47436   cat >>confdefs.h <<\_ACEOF
47437 #define wxUSE_FILE 1
47438 _ACEOF
47439
47440 fi
47441
47442 if test "$wxUSE_FFILE" = "yes"; then
47443   cat >>confdefs.h <<\_ACEOF
47444 #define wxUSE_FFILE 1
47445 _ACEOF
47446
47447 fi
47448
47449 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
47450   if test "$wxUSE_STREAMS" != yes; then
47451     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
47452 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
47453     wxUSE_ARCHIVE_STREAMS=no
47454   else
47455     cat >>confdefs.h <<\_ACEOF
47456 #define wxUSE_ARCHIVE_STREAMS 1
47457 _ACEOF
47458
47459   fi
47460 fi
47461
47462 if test "$wxUSE_ZIPSTREAM" = "yes"; then
47463   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47464     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
47465 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
47466   elif test "$wxUSE_ZLIB" = "no"; then
47467     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
47468 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
47469   else
47470     cat >>confdefs.h <<\_ACEOF
47471 #define wxUSE_ZIPSTREAM 1
47472 _ACEOF
47473
47474   fi
47475 fi
47476
47477 if test "$wxUSE_TARSTREAM" = "yes"; then
47478   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47479     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
47480 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
47481   else
47482     cat >>confdefs.h <<\_ACEOF
47483 #define wxUSE_TARSTREAM 1
47484 _ACEOF
47485
47486   fi
47487 fi
47488
47489 if test "$wxUSE_FILE_HISTORY" = "yes"; then
47490   cat >>confdefs.h <<\_ACEOF
47491 #define wxUSE_FILE_HISTORY 1
47492 _ACEOF
47493
47494 fi
47495
47496 if test "$wxUSE_FILESYSTEM" = "yes"; then
47497   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
47498     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
47499 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
47500     wxUSE_FILESYSTEM=no
47501   else
47502     cat >>confdefs.h <<\_ACEOF
47503 #define wxUSE_FILESYSTEM 1
47504 _ACEOF
47505
47506   fi
47507 fi
47508
47509 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
47510   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
47511     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
47512 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
47513   else
47514     cat >>confdefs.h <<\_ACEOF
47515 #define wxUSE_FS_ARCHIVE 1
47516 _ACEOF
47517
47518   fi
47519 fi
47520
47521 if test "$wxUSE_FS_ZIP" = "yes"; then
47522   if test "$wxUSE_FS_ARCHIVE" != yes; then
47523     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
47524 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
47525   else
47526     cat >>confdefs.h <<\_ACEOF
47527 #define wxUSE_FS_ZIP 1
47528 _ACEOF
47529
47530   fi
47531 fi
47532
47533 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47534   if test "$USE_UNIX" != 1; then
47535     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
47536 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
47537     wxUSE_ON_FATAL_EXCEPTION=no
47538   else
47539     cat >>confdefs.h <<\_ACEOF
47540 #define wxUSE_ON_FATAL_EXCEPTION 1
47541 _ACEOF
47542
47543   fi
47544 fi
47545
47546 if test "$wxUSE_STACKWALKER" = "yes"; then
47547     cat >>confdefs.h <<\_ACEOF
47548 #define wxUSE_STACKWALKER 1
47549 _ACEOF
47550
47551 fi
47552
47553 if test "$wxUSE_DEBUGREPORT" = "yes"; then
47554     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
47555         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
47556 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
47557         wxUSE_DEBUGREPORT=no
47558     else
47559         cat >>confdefs.h <<\_ACEOF
47560 #define wxUSE_DEBUGREPORT 1
47561 _ACEOF
47562
47563         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47564             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
47565         fi
47566     fi
47567 fi
47568
47569 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
47570   cat >>confdefs.h <<\_ACEOF
47571 #define wxUSE_SNGLINST_CHECKER 1
47572 _ACEOF
47573
47574 fi
47575
47576 if test "$wxUSE_BUSYINFO" = "yes"; then
47577   cat >>confdefs.h <<\_ACEOF
47578 #define wxUSE_BUSYINFO 1
47579 _ACEOF
47580
47581 fi
47582
47583 if test "$wxUSE_HOTKEY" = "yes"; then
47584   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
47585     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
47586 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
47587     wxUSE_HOTKEY=no
47588   fi
47589 elif test "$wxUSE_HOTKEY" = "auto"; then
47590   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
47591     wxUSE_HOTKEY=yes
47592   fi
47593 fi
47594 if test "$wxUSE_HOTKEY" = "yes"; then
47595   cat >>confdefs.h <<\_ACEOF
47596 #define wxUSE_HOTKEY 1
47597 _ACEOF
47598
47599 fi
47600
47601 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
47602   cat >>confdefs.h <<\_ACEOF
47603 #define wxUSE_STD_CONTAINERS 1
47604 _ACEOF
47605
47606 fi
47607
47608 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
47609   cat >>confdefs.h <<\_ACEOF
47610 #define wxUSE_STD_IOSTREAM 1
47611 _ACEOF
47612
47613 fi
47614
47615 if test "$wxUSE_STD_STRING" = "yes"; then
47616   cat >>confdefs.h <<\_ACEOF
47617 #define wxUSE_STD_STRING 1
47618 _ACEOF
47619
47620 fi
47621
47622 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
47623   cat >>confdefs.h <<\_ACEOF
47624 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
47625 _ACEOF
47626
47627 fi
47628
47629 if test "$wxUSE_STDPATHS" = "yes"; then
47630   cat >>confdefs.h <<\_ACEOF
47631 #define wxUSE_STDPATHS 1
47632 _ACEOF
47633
47634 fi
47635
47636 if test "$wxUSE_TEXTBUFFER" = "yes"; then
47637     cat >>confdefs.h <<\_ACEOF
47638 #define wxUSE_TEXTBUFFER 1
47639 _ACEOF
47640
47641 fi
47642
47643 if test "$wxUSE_TEXTFILE" = "yes"; then
47644   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
47645     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
47646 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
47647   else
47648     cat >>confdefs.h <<\_ACEOF
47649 #define wxUSE_TEXTFILE 1
47650 _ACEOF
47651
47652   fi
47653 fi
47654
47655 if test "$wxUSE_CONFIG" = "yes" ; then
47656   if test "$wxUSE_TEXTFILE" != "yes"; then
47657     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
47658 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
47659   else
47660     cat >>confdefs.h <<\_ACEOF
47661 #define wxUSE_CONFIG 1
47662 _ACEOF
47663
47664     cat >>confdefs.h <<\_ACEOF
47665 #define wxUSE_CONFIG_NATIVE 1
47666 _ACEOF
47667
47668     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
47669   fi
47670 fi
47671
47672 if test "$wxUSE_INTL" = "yes" ; then
47673   if test "$wxUSE_FILE" != "yes"; then
47674     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
47675 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
47676   else
47677     cat >>confdefs.h <<\_ACEOF
47678 #define wxUSE_INTL 1
47679 _ACEOF
47680
47681     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
47682     GUIDIST="$GUIDIST INTL_DIST"
47683   fi
47684 fi
47685
47686 if test "$wxUSE_XLOCALE" = "yes" ; then
47687     cat >>confdefs.h <<\_ACEOF
47688 #define wxUSE_XLOCALE 1
47689 _ACEOF
47690
47691     { echo "$as_me:$LINENO: checking for locale_t" >&5
47692 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
47693 if test "${ac_cv_type_locale_t+set}" = set; then
47694   echo $ECHO_N "(cached) $ECHO_C" >&6
47695 else
47696   cat >conftest.$ac_ext <<_ACEOF
47697 /* confdefs.h.  */
47698 _ACEOF
47699 cat confdefs.h >>conftest.$ac_ext
47700 cat >>conftest.$ac_ext <<_ACEOF
47701 /* end confdefs.h.  */
47702 #include <xlocale.h>
47703                     #include <locale.h>
47704
47705 typedef locale_t ac__type_new_;
47706 int
47707 main ()
47708 {
47709 if ((ac__type_new_ *) 0)
47710   return 0;
47711 if (sizeof (ac__type_new_))
47712   return 0;
47713   ;
47714   return 0;
47715 }
47716 _ACEOF
47717 rm -f conftest.$ac_objext
47718 if { (ac_try="$ac_compile"
47719 case "(($ac_try" in
47720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47721   *) ac_try_echo=$ac_try;;
47722 esac
47723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47724   (eval "$ac_compile") 2>conftest.er1
47725   ac_status=$?
47726   grep -v '^ *+' conftest.er1 >conftest.err
47727   rm -f conftest.er1
47728   cat conftest.err >&5
47729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730   (exit $ac_status); } && {
47731          test -z "$ac_c_werror_flag" ||
47732          test ! -s conftest.err
47733        } && test -s conftest.$ac_objext; then
47734   ac_cv_type_locale_t=yes
47735 else
47736   echo "$as_me: failed program was:" >&5
47737 sed 's/^/| /' conftest.$ac_ext >&5
47738
47739         ac_cv_type_locale_t=no
47740 fi
47741
47742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47743 fi
47744 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
47745 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
47746 if test $ac_cv_type_locale_t = yes; then
47747
47748 cat >>confdefs.h <<_ACEOF
47749 #define HAVE_LOCALE_T 1
47750 _ACEOF
47751
47752
47753 fi
47754
47755 fi
47756
47757 if test "$wxUSE_LOG" = "yes"; then
47758   cat >>confdefs.h <<\_ACEOF
47759 #define wxUSE_LOG 1
47760 _ACEOF
47761
47762
47763     if test "$wxUSE_LOGGUI" = "yes"; then
47764       cat >>confdefs.h <<\_ACEOF
47765 #define wxUSE_LOGGUI 1
47766 _ACEOF
47767
47768     fi
47769
47770     if test "$wxUSE_LOGWINDOW" = "yes"; then
47771       cat >>confdefs.h <<\_ACEOF
47772 #define wxUSE_LOGWINDOW 1
47773 _ACEOF
47774
47775     fi
47776
47777     if test "$wxUSE_LOGDIALOG" = "yes"; then
47778       cat >>confdefs.h <<\_ACEOF
47779 #define wxUSE_LOG_DIALOG 1
47780 _ACEOF
47781
47782     fi
47783
47784         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
47785 fi
47786
47787 if test "$wxUSE_LONGLONG" = "yes"; then
47788   cat >>confdefs.h <<\_ACEOF
47789 #define wxUSE_LONGLONG 1
47790 _ACEOF
47791
47792 fi
47793
47794 if test "$wxUSE_GEOMETRY" = "yes"; then
47795   cat >>confdefs.h <<\_ACEOF
47796 #define wxUSE_GEOMETRY 1
47797 _ACEOF
47798
47799 fi
47800
47801 if test "$wxUSE_BASE64" = "yes"; then
47802   cat >>confdefs.h <<\_ACEOF
47803 #define wxUSE_BASE64 1
47804 _ACEOF
47805
47806 fi
47807
47808 if test "$wxUSE_STREAMS" = "yes" ; then
47809   cat >>confdefs.h <<\_ACEOF
47810 #define wxUSE_STREAMS 1
47811 _ACEOF
47812
47813 fi
47814
47815 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
47816   cat >>confdefs.h <<\_ACEOF
47817 #define wxUSE_PRINTF_POS_PARAMS 1
47818 _ACEOF
47819
47820 fi
47821
47822 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
47823   cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_OBJC_UNIQUIFYING 1
47825 _ACEOF
47826
47827 fi
47828
47829
47830 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
47831     cat >>confdefs.h <<\_ACEOF
47832 #define wxUSE_CONSOLE_EVENTLOOP 1
47833 _ACEOF
47834
47835
47836     if test "$wxUSE_UNIX" = "yes"; then
47837         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
47838             cat >>confdefs.h <<\_ACEOF
47839 #define wxUSE_SELECT_DISPATCHER 1
47840 _ACEOF
47841
47842         fi
47843
47844         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
47845
47846 for ac_header in sys/epoll.h
47847 do
47848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47852   echo $ECHO_N "(cached) $ECHO_C" >&6
47853 else
47854   cat >conftest.$ac_ext <<_ACEOF
47855 /* confdefs.h.  */
47856 _ACEOF
47857 cat confdefs.h >>conftest.$ac_ext
47858 cat >>conftest.$ac_ext <<_ACEOF
47859 /* end confdefs.h.  */
47860 $ac_includes_default
47861
47862 #include <$ac_header>
47863 _ACEOF
47864 rm -f conftest.$ac_objext
47865 if { (ac_try="$ac_compile"
47866 case "(($ac_try" in
47867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47868   *) ac_try_echo=$ac_try;;
47869 esac
47870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47871   (eval "$ac_compile") 2>conftest.er1
47872   ac_status=$?
47873   grep -v '^ *+' conftest.er1 >conftest.err
47874   rm -f conftest.er1
47875   cat conftest.err >&5
47876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47877   (exit $ac_status); } && {
47878          test -z "$ac_c_werror_flag" ||
47879          test ! -s conftest.err
47880        } && test -s conftest.$ac_objext; then
47881   eval "$as_ac_Header=yes"
47882 else
47883   echo "$as_me: failed program was:" >&5
47884 sed 's/^/| /' conftest.$ac_ext >&5
47885
47886         eval "$as_ac_Header=no"
47887 fi
47888
47889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47890 fi
47891 ac_res=`eval echo '${'$as_ac_Header'}'`
47892                { echo "$as_me:$LINENO: result: $ac_res" >&5
47893 echo "${ECHO_T}$ac_res" >&6; }
47894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47895   cat >>confdefs.h <<_ACEOF
47896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47897 _ACEOF
47898
47899 fi
47900
47901 done
47902
47903             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
47904                 cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_EPOLL_DISPATCHER 1
47906 _ACEOF
47907
47908             else
47909                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
47910 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
47911             fi
47912         fi
47913     fi
47914 fi
47915
47916
47917
47918
47919 for ac_func in gettimeofday ftime
47920 do
47921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47925   echo $ECHO_N "(cached) $ECHO_C" >&6
47926 else
47927   cat >conftest.$ac_ext <<_ACEOF
47928 /* confdefs.h.  */
47929 _ACEOF
47930 cat confdefs.h >>conftest.$ac_ext
47931 cat >>conftest.$ac_ext <<_ACEOF
47932 /* end confdefs.h.  */
47933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47935 #define $ac_func innocuous_$ac_func
47936
47937 /* System header to define __stub macros and hopefully few prototypes,
47938     which can conflict with char $ac_func (); below.
47939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47940     <limits.h> exists even on freestanding compilers.  */
47941
47942 #ifdef __STDC__
47943 # include <limits.h>
47944 #else
47945 # include <assert.h>
47946 #endif
47947
47948 #undef $ac_func
47949
47950 /* Override any GCC internal prototype to avoid an error.
47951    Use char because int might match the return type of a GCC
47952    builtin and then its argument prototype would still apply.  */
47953 #ifdef __cplusplus
47954 extern "C"
47955 #endif
47956 char $ac_func ();
47957 /* The GNU C library defines this for functions which it implements
47958     to always fail with ENOSYS.  Some functions are actually named
47959     something starting with __ and the normal name is an alias.  */
47960 #if defined __stub_$ac_func || defined __stub___$ac_func
47961 choke me
47962 #endif
47963
47964 int
47965 main ()
47966 {
47967 return $ac_func ();
47968   ;
47969   return 0;
47970 }
47971 _ACEOF
47972 rm -f conftest.$ac_objext conftest$ac_exeext
47973 if { (ac_try="$ac_link"
47974 case "(($ac_try" in
47975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47976   *) ac_try_echo=$ac_try;;
47977 esac
47978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47979   (eval "$ac_link") 2>conftest.er1
47980   ac_status=$?
47981   grep -v '^ *+' conftest.er1 >conftest.err
47982   rm -f conftest.er1
47983   cat conftest.err >&5
47984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47985   (exit $ac_status); } && {
47986          test -z "$ac_c_werror_flag" ||
47987          test ! -s conftest.err
47988        } && test -s conftest$ac_exeext &&
47989        $as_test_x conftest$ac_exeext; then
47990   eval "$as_ac_var=yes"
47991 else
47992   echo "$as_me: failed program was:" >&5
47993 sed 's/^/| /' conftest.$ac_ext >&5
47994
47995         eval "$as_ac_var=no"
47996 fi
47997
47998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47999       conftest$ac_exeext conftest.$ac_ext
48000 fi
48001 ac_res=`eval echo '${'$as_ac_var'}'`
48002                { echo "$as_me:$LINENO: result: $ac_res" >&5
48003 echo "${ECHO_T}$ac_res" >&6; }
48004 if test `eval echo '${'$as_ac_var'}'` = yes; then
48005   cat >>confdefs.h <<_ACEOF
48006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48007 _ACEOF
48008  break
48009 fi
48010 done
48011
48012
48013 if test "$ac_cv_func_gettimeofday" = "yes"; then
48014     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
48015 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
48016 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
48017   echo $ECHO_N "(cached) $ECHO_C" >&6
48018 else
48019
48020                 cat >conftest.$ac_ext <<_ACEOF
48021 /* confdefs.h.  */
48022 _ACEOF
48023 cat confdefs.h >>conftest.$ac_ext
48024 cat >>conftest.$ac_ext <<_ACEOF
48025 /* end confdefs.h.  */
48026
48027                 #include <sys/time.h>
48028                 #include <unistd.h>
48029
48030 int
48031 main ()
48032 {
48033
48034                 struct timeval tv;
48035                 gettimeofday(&tv, NULL);
48036
48037   ;
48038   return 0;
48039 }
48040 _ACEOF
48041 rm -f conftest.$ac_objext
48042 if { (ac_try="$ac_compile"
48043 case "(($ac_try" in
48044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48045   *) ac_try_echo=$ac_try;;
48046 esac
48047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48048   (eval "$ac_compile") 2>conftest.er1
48049   ac_status=$?
48050   grep -v '^ *+' conftest.er1 >conftest.err
48051   rm -f conftest.er1
48052   cat conftest.err >&5
48053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48054   (exit $ac_status); } && {
48055          test -z "$ac_c_werror_flag" ||
48056          test ! -s conftest.err
48057        } && test -s conftest.$ac_objext; then
48058   wx_cv_func_gettimeofday_has_2_args=yes
48059 else
48060   echo "$as_me: failed program was:" >&5
48061 sed 's/^/| /' conftest.$ac_ext >&5
48062
48063         cat >conftest.$ac_ext <<_ACEOF
48064 /* confdefs.h.  */
48065 _ACEOF
48066 cat confdefs.h >>conftest.$ac_ext
48067 cat >>conftest.$ac_ext <<_ACEOF
48068 /* end confdefs.h.  */
48069
48070                     #include <sys/time.h>
48071                     #include <unistd.h>
48072
48073 int
48074 main ()
48075 {
48076
48077                     struct timeval tv;
48078                     gettimeofday(&tv);
48079
48080   ;
48081   return 0;
48082 }
48083 _ACEOF
48084 rm -f conftest.$ac_objext
48085 if { (ac_try="$ac_compile"
48086 case "(($ac_try" in
48087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48088   *) ac_try_echo=$ac_try;;
48089 esac
48090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48091   (eval "$ac_compile") 2>conftest.er1
48092   ac_status=$?
48093   grep -v '^ *+' conftest.er1 >conftest.err
48094   rm -f conftest.er1
48095   cat conftest.err >&5
48096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48097   (exit $ac_status); } && {
48098          test -z "$ac_c_werror_flag" ||
48099          test ! -s conftest.err
48100        } && test -s conftest.$ac_objext; then
48101   wx_cv_func_gettimeofday_has_2_args=no
48102 else
48103   echo "$as_me: failed program was:" >&5
48104 sed 's/^/| /' conftest.$ac_ext >&5
48105
48106
48107                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
48108 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
48109                     wx_cv_func_gettimeofday_has_2_args=unknown
48110
48111
48112 fi
48113
48114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48115
48116 fi
48117
48118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48119
48120 fi
48121 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
48122 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
48123
48124     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
48125         cat >>confdefs.h <<\_ACEOF
48126 #define WX_GETTIMEOFDAY_NO_TZ 1
48127 _ACEOF
48128
48129     fi
48130 fi
48131
48132 if test "$wxUSE_DATETIME" = "yes"; then
48133             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
48134 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
48135 if test "${wx_cv_var_timezone+set}" = set; then
48136   echo $ECHO_N "(cached) $ECHO_C" >&6
48137 else
48138
48139                         ac_ext=cpp
48140 ac_cpp='$CXXCPP $CPPFLAGS'
48141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48144
48145                         cat >conftest.$ac_ext <<_ACEOF
48146 /* confdefs.h.  */
48147 _ACEOF
48148 cat confdefs.h >>conftest.$ac_ext
48149 cat >>conftest.$ac_ext <<_ACEOF
48150 /* end confdefs.h.  */
48151
48152                                 #include <time.h>
48153
48154 int
48155 main ()
48156 {
48157
48158                                 int tz;
48159                                 tz = timezone;
48160
48161   ;
48162   return 0;
48163 }
48164 _ACEOF
48165 rm -f conftest.$ac_objext
48166 if { (ac_try="$ac_compile"
48167 case "(($ac_try" in
48168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48169   *) ac_try_echo=$ac_try;;
48170 esac
48171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48172   (eval "$ac_compile") 2>conftest.er1
48173   ac_status=$?
48174   grep -v '^ *+' conftest.er1 >conftest.err
48175   rm -f conftest.er1
48176   cat conftest.err >&5
48177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48178   (exit $ac_status); } && {
48179          test -z "$ac_cxx_werror_flag" ||
48180          test ! -s conftest.err
48181        } && test -s conftest.$ac_objext; then
48182
48183                                 wx_cv_var_timezone=timezone
48184
48185 else
48186   echo "$as_me: failed program was:" >&5
48187 sed 's/^/| /' conftest.$ac_ext >&5
48188
48189
48190                                 cat >conftest.$ac_ext <<_ACEOF
48191 /* confdefs.h.  */
48192 _ACEOF
48193 cat confdefs.h >>conftest.$ac_ext
48194 cat >>conftest.$ac_ext <<_ACEOF
48195 /* end confdefs.h.  */
48196
48197                                         #include <time.h>
48198
48199 int
48200 main ()
48201 {
48202
48203                                         int tz;
48204                                         tz = _timezone;
48205
48206   ;
48207   return 0;
48208 }
48209 _ACEOF
48210 rm -f conftest.$ac_objext
48211 if { (ac_try="$ac_compile"
48212 case "(($ac_try" in
48213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48214   *) ac_try_echo=$ac_try;;
48215 esac
48216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48217   (eval "$ac_compile") 2>conftest.er1
48218   ac_status=$?
48219   grep -v '^ *+' conftest.er1 >conftest.err
48220   rm -f conftest.er1
48221   cat conftest.err >&5
48222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48223   (exit $ac_status); } && {
48224          test -z "$ac_cxx_werror_flag" ||
48225          test ! -s conftest.err
48226        } && test -s conftest.$ac_objext; then
48227
48228                                         wx_cv_var_timezone=_timezone
48229
48230 else
48231   echo "$as_me: failed program was:" >&5
48232 sed 's/^/| /' conftest.$ac_ext >&5
48233
48234
48235                                         cat >conftest.$ac_ext <<_ACEOF
48236 /* confdefs.h.  */
48237 _ACEOF
48238 cat confdefs.h >>conftest.$ac_ext
48239 cat >>conftest.$ac_ext <<_ACEOF
48240 /* end confdefs.h.  */
48241
48242                                                 #include <time.h>
48243
48244 int
48245 main ()
48246 {
48247
48248                                                 int tz;
48249                                                 tz = __timezone;
48250
48251   ;
48252   return 0;
48253 }
48254 _ACEOF
48255 rm -f conftest.$ac_objext
48256 if { (ac_try="$ac_compile"
48257 case "(($ac_try" in
48258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48259   *) ac_try_echo=$ac_try;;
48260 esac
48261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48262   (eval "$ac_compile") 2>conftest.er1
48263   ac_status=$?
48264   grep -v '^ *+' conftest.er1 >conftest.err
48265   rm -f conftest.er1
48266   cat conftest.err >&5
48267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268   (exit $ac_status); } && {
48269          test -z "$ac_cxx_werror_flag" ||
48270          test ! -s conftest.err
48271        } && test -s conftest.$ac_objext; then
48272
48273                                                 wx_cv_var_timezone=__timezone
48274
48275 else
48276   echo "$as_me: failed program was:" >&5
48277 sed 's/^/| /' conftest.$ac_ext >&5
48278
48279
48280                                                 if test "$USE_DOS" = 0 ; then
48281                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
48282 echo "$as_me: WARNING: no timezone variable" >&2;}
48283                                                 fi
48284
48285
48286 fi
48287
48288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48289
48290
48291 fi
48292
48293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48294
48295
48296 fi
48297
48298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48299                         ac_ext=c
48300 ac_cpp='$CPP $CPPFLAGS'
48301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48304
48305
48306
48307 fi
48308 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
48309 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
48310
48311         if test "x$wx_cv_var_timezone" != x ; then
48312         cat >>confdefs.h <<_ACEOF
48313 #define WX_TIMEZONE $wx_cv_var_timezone
48314 _ACEOF
48315
48316     fi
48317
48318
48319 for ac_func in localtime
48320 do
48321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48325   echo $ECHO_N "(cached) $ECHO_C" >&6
48326 else
48327   cat >conftest.$ac_ext <<_ACEOF
48328 /* confdefs.h.  */
48329 _ACEOF
48330 cat confdefs.h >>conftest.$ac_ext
48331 cat >>conftest.$ac_ext <<_ACEOF
48332 /* end confdefs.h.  */
48333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48335 #define $ac_func innocuous_$ac_func
48336
48337 /* System header to define __stub macros and hopefully few prototypes,
48338     which can conflict with char $ac_func (); below.
48339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48340     <limits.h> exists even on freestanding compilers.  */
48341
48342 #ifdef __STDC__
48343 # include <limits.h>
48344 #else
48345 # include <assert.h>
48346 #endif
48347
48348 #undef $ac_func
48349
48350 /* Override any GCC internal prototype to avoid an error.
48351    Use char because int might match the return type of a GCC
48352    builtin and then its argument prototype would still apply.  */
48353 #ifdef __cplusplus
48354 extern "C"
48355 #endif
48356 char $ac_func ();
48357 /* The GNU C library defines this for functions which it implements
48358     to always fail with ENOSYS.  Some functions are actually named
48359     something starting with __ and the normal name is an alias.  */
48360 #if defined __stub_$ac_func || defined __stub___$ac_func
48361 choke me
48362 #endif
48363
48364 int
48365 main ()
48366 {
48367 return $ac_func ();
48368   ;
48369   return 0;
48370 }
48371 _ACEOF
48372 rm -f conftest.$ac_objext conftest$ac_exeext
48373 if { (ac_try="$ac_link"
48374 case "(($ac_try" in
48375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48376   *) ac_try_echo=$ac_try;;
48377 esac
48378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48379   (eval "$ac_link") 2>conftest.er1
48380   ac_status=$?
48381   grep -v '^ *+' conftest.er1 >conftest.err
48382   rm -f conftest.er1
48383   cat conftest.err >&5
48384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385   (exit $ac_status); } && {
48386          test -z "$ac_c_werror_flag" ||
48387          test ! -s conftest.err
48388        } && test -s conftest$ac_exeext &&
48389        $as_test_x conftest$ac_exeext; then
48390   eval "$as_ac_var=yes"
48391 else
48392   echo "$as_me: failed program was:" >&5
48393 sed 's/^/| /' conftest.$ac_ext >&5
48394
48395         eval "$as_ac_var=no"
48396 fi
48397
48398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48399       conftest$ac_exeext conftest.$ac_ext
48400 fi
48401 ac_res=`eval echo '${'$as_ac_var'}'`
48402                { echo "$as_me:$LINENO: result: $ac_res" >&5
48403 echo "${ECHO_T}$ac_res" >&6; }
48404 if test `eval echo '${'$as_ac_var'}'` = yes; then
48405   cat >>confdefs.h <<_ACEOF
48406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48407 _ACEOF
48408
48409 fi
48410 done
48411
48412
48413     if test "$ac_cv_func_localtime" = "yes"; then
48414         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
48415 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
48416 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
48417   echo $ECHO_N "(cached) $ECHO_C" >&6
48418 else
48419
48420             cat >conftest.$ac_ext <<_ACEOF
48421 /* confdefs.h.  */
48422 _ACEOF
48423 cat confdefs.h >>conftest.$ac_ext
48424 cat >>conftest.$ac_ext <<_ACEOF
48425 /* end confdefs.h.  */
48426
48427                     #include <time.h>
48428
48429 int
48430 main ()
48431 {
48432
48433                     struct tm tm;
48434                     tm.tm_gmtoff++;
48435
48436   ;
48437   return 0;
48438 }
48439 _ACEOF
48440 rm -f conftest.$ac_objext
48441 if { (ac_try="$ac_compile"
48442 case "(($ac_try" in
48443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48444   *) ac_try_echo=$ac_try;;
48445 esac
48446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48447   (eval "$ac_compile") 2>conftest.er1
48448   ac_status=$?
48449   grep -v '^ *+' conftest.er1 >conftest.err
48450   rm -f conftest.er1
48451   cat conftest.err >&5
48452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48453   (exit $ac_status); } && {
48454          test -z "$ac_c_werror_flag" ||
48455          test ! -s conftest.err
48456        } && test -s conftest.$ac_objext; then
48457
48458                     wx_cv_struct_tm_has_gmtoff=yes
48459
48460 else
48461   echo "$as_me: failed program was:" >&5
48462 sed 's/^/| /' conftest.$ac_ext >&5
48463
48464         wx_cv_struct_tm_has_gmtoff=no
48465
48466 fi
48467
48468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48469
48470 fi
48471 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
48472 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
48473     fi
48474
48475     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
48476         cat >>confdefs.h <<\_ACEOF
48477 #define WX_GMTOFF_IN_TM 1
48478 _ACEOF
48479
48480     fi
48481
48482     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
48483 fi
48484
48485
48486 if test "$wxUSE_SOCKETS" = "yes"; then
48487     if test "$wxUSE_MGL" = 1; then
48488         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
48489 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
48490         wxUSE_SOCKETS="no"
48491     fi
48492 fi
48493
48494 if test "$wxUSE_SOCKETS" = "yes"; then
48495         if test "$TOOLKIT" != "MSW"; then
48496                 { echo "$as_me:$LINENO: checking for socket" >&5
48497 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
48498 if test "${ac_cv_func_socket+set}" = set; then
48499   echo $ECHO_N "(cached) $ECHO_C" >&6
48500 else
48501   cat >conftest.$ac_ext <<_ACEOF
48502 /* confdefs.h.  */
48503 _ACEOF
48504 cat confdefs.h >>conftest.$ac_ext
48505 cat >>conftest.$ac_ext <<_ACEOF
48506 /* end confdefs.h.  */
48507 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
48508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48509 #define socket innocuous_socket
48510
48511 /* System header to define __stub macros and hopefully few prototypes,
48512     which can conflict with char socket (); below.
48513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48514     <limits.h> exists even on freestanding compilers.  */
48515
48516 #ifdef __STDC__
48517 # include <limits.h>
48518 #else
48519 # include <assert.h>
48520 #endif
48521
48522 #undef socket
48523
48524 /* Override any GCC internal prototype to avoid an error.
48525    Use char because int might match the return type of a GCC
48526    builtin and then its argument prototype would still apply.  */
48527 #ifdef __cplusplus
48528 extern "C"
48529 #endif
48530 char socket ();
48531 /* The GNU C library defines this for functions which it implements
48532     to always fail with ENOSYS.  Some functions are actually named
48533     something starting with __ and the normal name is an alias.  */
48534 #if defined __stub_socket || defined __stub___socket
48535 choke me
48536 #endif
48537
48538 int
48539 main ()
48540 {
48541 return socket ();
48542   ;
48543   return 0;
48544 }
48545 _ACEOF
48546 rm -f conftest.$ac_objext conftest$ac_exeext
48547 if { (ac_try="$ac_link"
48548 case "(($ac_try" in
48549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48550   *) ac_try_echo=$ac_try;;
48551 esac
48552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48553   (eval "$ac_link") 2>conftest.er1
48554   ac_status=$?
48555   grep -v '^ *+' conftest.er1 >conftest.err
48556   rm -f conftest.er1
48557   cat conftest.err >&5
48558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48559   (exit $ac_status); } && {
48560          test -z "$ac_c_werror_flag" ||
48561          test ! -s conftest.err
48562        } && test -s conftest$ac_exeext &&
48563        $as_test_x conftest$ac_exeext; then
48564   ac_cv_func_socket=yes
48565 else
48566   echo "$as_me: failed program was:" >&5
48567 sed 's/^/| /' conftest.$ac_ext >&5
48568
48569         ac_cv_func_socket=no
48570 fi
48571
48572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48573       conftest$ac_exeext conftest.$ac_ext
48574 fi
48575 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
48576 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
48577 if test $ac_cv_func_socket = yes; then
48578   :
48579 else
48580
48581                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
48582 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
48583 if test "${ac_cv_lib_socket_socket+set}" = set; then
48584   echo $ECHO_N "(cached) $ECHO_C" >&6
48585 else
48586   ac_check_lib_save_LIBS=$LIBS
48587 LIBS="-lsocket  $LIBS"
48588 cat >conftest.$ac_ext <<_ACEOF
48589 /* confdefs.h.  */
48590 _ACEOF
48591 cat confdefs.h >>conftest.$ac_ext
48592 cat >>conftest.$ac_ext <<_ACEOF
48593 /* end confdefs.h.  */
48594
48595 /* Override any GCC internal prototype to avoid an error.
48596    Use char because int might match the return type of a GCC
48597    builtin and then its argument prototype would still apply.  */
48598 #ifdef __cplusplus
48599 extern "C"
48600 #endif
48601 char socket ();
48602 int
48603 main ()
48604 {
48605 return socket ();
48606   ;
48607   return 0;
48608 }
48609 _ACEOF
48610 rm -f conftest.$ac_objext conftest$ac_exeext
48611 if { (ac_try="$ac_link"
48612 case "(($ac_try" in
48613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48614   *) ac_try_echo=$ac_try;;
48615 esac
48616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48617   (eval "$ac_link") 2>conftest.er1
48618   ac_status=$?
48619   grep -v '^ *+' conftest.er1 >conftest.err
48620   rm -f conftest.er1
48621   cat conftest.err >&5
48622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48623   (exit $ac_status); } && {
48624          test -z "$ac_c_werror_flag" ||
48625          test ! -s conftest.err
48626        } && test -s conftest$ac_exeext &&
48627        $as_test_x conftest$ac_exeext; then
48628   ac_cv_lib_socket_socket=yes
48629 else
48630   echo "$as_me: failed program was:" >&5
48631 sed 's/^/| /' conftest.$ac_ext >&5
48632
48633         ac_cv_lib_socket_socket=no
48634 fi
48635
48636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48637       conftest$ac_exeext conftest.$ac_ext
48638 LIBS=$ac_check_lib_save_LIBS
48639 fi
48640 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
48641 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
48642 if test $ac_cv_lib_socket_socket = yes; then
48643   if test "$INET_LINK" != " -lsocket"; then
48644                         INET_LINK="$INET_LINK -lsocket"
48645                     fi
48646 else
48647
48648                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
48649 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
48650                         wxUSE_SOCKETS=no
48651
48652
48653 fi
48654
48655
48656
48657 fi
48658
48659     fi
48660 fi
48661
48662 if test "$wxUSE_SOCKETS" = "yes" ; then
48663                 if test "$TOOLKIT" != "MSW"; then
48664                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
48665 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
48666 if test "${wx_cv_type_getsockname3+set}" = set; then
48667   echo $ECHO_N "(cached) $ECHO_C" >&6
48668 else
48669
48670                 ac_ext=cpp
48671 ac_cpp='$CXXCPP $CPPFLAGS'
48672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48675
48676                 cat >conftest.$ac_ext <<_ACEOF
48677 /* confdefs.h.  */
48678 _ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h.  */
48682
48683                         #include <sys/types.h>
48684                         #include <sys/socket.h>
48685
48686 int
48687 main ()
48688 {
48689
48690                         socklen_t len;
48691                         getsockname(0, 0, &len);
48692
48693   ;
48694   return 0;
48695 }
48696 _ACEOF
48697 rm -f conftest.$ac_objext
48698 if { (ac_try="$ac_compile"
48699 case "(($ac_try" in
48700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48701   *) ac_try_echo=$ac_try;;
48702 esac
48703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48704   (eval "$ac_compile") 2>conftest.er1
48705   ac_status=$?
48706   grep -v '^ *+' conftest.er1 >conftest.err
48707   rm -f conftest.er1
48708   cat conftest.err >&5
48709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48710   (exit $ac_status); } && {
48711          test -z "$ac_cxx_werror_flag" ||
48712          test ! -s conftest.err
48713        } && test -s conftest.$ac_objext; then
48714   wx_cv_type_getsockname3=socklen_t
48715 else
48716   echo "$as_me: failed program was:" >&5
48717 sed 's/^/| /' conftest.$ac_ext >&5
48718
48719
48720                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
48721                         if test "$GCC" = yes ; then
48722                             CFLAGS="-Werror $CFLAGS"
48723                         fi
48724
48725                         cat >conftest.$ac_ext <<_ACEOF
48726 /* confdefs.h.  */
48727 _ACEOF
48728 cat confdefs.h >>conftest.$ac_ext
48729 cat >>conftest.$ac_ext <<_ACEOF
48730 /* end confdefs.h.  */
48731
48732                                 #include <sys/types.h>
48733                                 #include <sys/socket.h>
48734
48735 int
48736 main ()
48737 {
48738
48739                                 size_t len;
48740                                 getsockname(0, 0, &len);
48741
48742   ;
48743   return 0;
48744 }
48745 _ACEOF
48746 rm -f conftest.$ac_objext
48747 if { (ac_try="$ac_compile"
48748 case "(($ac_try" in
48749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48750   *) ac_try_echo=$ac_try;;
48751 esac
48752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48753   (eval "$ac_compile") 2>conftest.er1
48754   ac_status=$?
48755   grep -v '^ *+' conftest.er1 >conftest.err
48756   rm -f conftest.er1
48757   cat conftest.err >&5
48758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48759   (exit $ac_status); } && {
48760          test -z "$ac_cxx_werror_flag" ||
48761          test ! -s conftest.err
48762        } && test -s conftest.$ac_objext; then
48763   wx_cv_type_getsockname3=size_t
48764 else
48765   echo "$as_me: failed program was:" >&5
48766 sed 's/^/| /' conftest.$ac_ext >&5
48767
48768         cat >conftest.$ac_ext <<_ACEOF
48769 /* confdefs.h.  */
48770 _ACEOF
48771 cat confdefs.h >>conftest.$ac_ext
48772 cat >>conftest.$ac_ext <<_ACEOF
48773 /* end confdefs.h.  */
48774
48775                                     #include <sys/types.h>
48776                                     #include <sys/socket.h>
48777
48778 int
48779 main ()
48780 {
48781
48782                                     int len;
48783                                     getsockname(0, 0, &len);
48784
48785   ;
48786   return 0;
48787 }
48788 _ACEOF
48789 rm -f conftest.$ac_objext
48790 if { (ac_try="$ac_compile"
48791 case "(($ac_try" in
48792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48793   *) ac_try_echo=$ac_try;;
48794 esac
48795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48796   (eval "$ac_compile") 2>conftest.er1
48797   ac_status=$?
48798   grep -v '^ *+' conftest.er1 >conftest.err
48799   rm -f conftest.er1
48800   cat conftest.err >&5
48801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48802   (exit $ac_status); } && {
48803          test -z "$ac_cxx_werror_flag" ||
48804          test ! -s conftest.err
48805        } && test -s conftest.$ac_objext; then
48806   wx_cv_type_getsockname3=int
48807 else
48808   echo "$as_me: failed program was:" >&5
48809 sed 's/^/| /' conftest.$ac_ext >&5
48810
48811         wx_cv_type_getsockname3=unknown
48812
48813 fi
48814
48815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48816
48817 fi
48818
48819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48820
48821                         CFLAGS="$CFLAGS_OLD"
48822
48823
48824 fi
48825
48826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48827                 ac_ext=c
48828 ac_cpp='$CPP $CPPFLAGS'
48829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48832
48833
48834 fi
48835 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
48836 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
48837
48838         if test "$wx_cv_type_getsockname3" = "unknown"; then
48839             wxUSE_SOCKETS=no
48840             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48841 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48842         else
48843             cat >>confdefs.h <<_ACEOF
48844 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
48845 _ACEOF
48846
48847         fi
48848                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
48849 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
48850 if test "${wx_cv_type_getsockopt5+set}" = set; then
48851   echo $ECHO_N "(cached) $ECHO_C" >&6
48852 else
48853
48854                                                                                                 ac_ext=cpp
48855 ac_cpp='$CXXCPP $CPPFLAGS'
48856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48859
48860                 cat >conftest.$ac_ext <<_ACEOF
48861 /* confdefs.h.  */
48862 _ACEOF
48863 cat confdefs.h >>conftest.$ac_ext
48864 cat >>conftest.$ac_ext <<_ACEOF
48865 /* end confdefs.h.  */
48866
48867                         #include <sys/types.h>
48868                         #include <sys/socket.h>
48869
48870 int
48871 main ()
48872 {
48873
48874                         socklen_t len;
48875                         getsockopt(0, 0, 0, 0, &len);
48876
48877   ;
48878   return 0;
48879 }
48880 _ACEOF
48881 rm -f conftest.$ac_objext
48882 if { (ac_try="$ac_compile"
48883 case "(($ac_try" in
48884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48885   *) ac_try_echo=$ac_try;;
48886 esac
48887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48888   (eval "$ac_compile") 2>conftest.er1
48889   ac_status=$?
48890   grep -v '^ *+' conftest.er1 >conftest.err
48891   rm -f conftest.er1
48892   cat conftest.err >&5
48893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894   (exit $ac_status); } && {
48895          test -z "$ac_cxx_werror_flag" ||
48896          test ! -s conftest.err
48897        } && test -s conftest.$ac_objext; then
48898   wx_cv_type_getsockopt5=socklen_t
48899 else
48900   echo "$as_me: failed program was:" >&5
48901 sed 's/^/| /' conftest.$ac_ext >&5
48902
48903
48904                         cat >conftest.$ac_ext <<_ACEOF
48905 /* confdefs.h.  */
48906 _ACEOF
48907 cat confdefs.h >>conftest.$ac_ext
48908 cat >>conftest.$ac_ext <<_ACEOF
48909 /* end confdefs.h.  */
48910
48911                                 #include <sys/types.h>
48912                                 #include <sys/socket.h>
48913
48914 int
48915 main ()
48916 {
48917
48918                                 size_t len;
48919                                 getsockopt(0, 0, 0, 0, &len);
48920
48921   ;
48922   return 0;
48923 }
48924 _ACEOF
48925 rm -f conftest.$ac_objext
48926 if { (ac_try="$ac_compile"
48927 case "(($ac_try" in
48928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48929   *) ac_try_echo=$ac_try;;
48930 esac
48931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48932   (eval "$ac_compile") 2>conftest.er1
48933   ac_status=$?
48934   grep -v '^ *+' conftest.er1 >conftest.err
48935   rm -f conftest.er1
48936   cat conftest.err >&5
48937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48938   (exit $ac_status); } && {
48939          test -z "$ac_cxx_werror_flag" ||
48940          test ! -s conftest.err
48941        } && test -s conftest.$ac_objext; then
48942   wx_cv_type_getsockopt5=size_t
48943 else
48944   echo "$as_me: failed program was:" >&5
48945 sed 's/^/| /' conftest.$ac_ext >&5
48946
48947         cat >conftest.$ac_ext <<_ACEOF
48948 /* confdefs.h.  */
48949 _ACEOF
48950 cat confdefs.h >>conftest.$ac_ext
48951 cat >>conftest.$ac_ext <<_ACEOF
48952 /* end confdefs.h.  */
48953
48954                                     #include <sys/types.h>
48955                                     #include <sys/socket.h>
48956
48957 int
48958 main ()
48959 {
48960
48961                                     int len;
48962                                     getsockopt(0, 0, 0, 0, &len);
48963
48964   ;
48965   return 0;
48966 }
48967 _ACEOF
48968 rm -f conftest.$ac_objext
48969 if { (ac_try="$ac_compile"
48970 case "(($ac_try" in
48971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48972   *) ac_try_echo=$ac_try;;
48973 esac
48974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48975   (eval "$ac_compile") 2>conftest.er1
48976   ac_status=$?
48977   grep -v '^ *+' conftest.er1 >conftest.err
48978   rm -f conftest.er1
48979   cat conftest.err >&5
48980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981   (exit $ac_status); } && {
48982          test -z "$ac_cxx_werror_flag" ||
48983          test ! -s conftest.err
48984        } && test -s conftest.$ac_objext; then
48985   wx_cv_type_getsockopt5=int
48986 else
48987   echo "$as_me: failed program was:" >&5
48988 sed 's/^/| /' conftest.$ac_ext >&5
48989
48990         wx_cv_type_getsockopt5=unknown
48991
48992 fi
48993
48994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48995
48996 fi
48997
48998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48999
49000
49001 fi
49002
49003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49004                 ac_ext=c
49005 ac_cpp='$CPP $CPPFLAGS'
49006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49009
49010
49011 fi
49012 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
49013 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
49014
49015         if test "$wx_cv_type_getsockopt5" = "unknown"; then
49016             wxUSE_SOCKETS=no
49017             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
49018 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
49019         else
49020             cat >>confdefs.h <<_ACEOF
49021 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
49022 _ACEOF
49023
49024         fi
49025     fi
49026 fi
49027
49028 if test "$wxUSE_SOCKETS" = "yes" ; then
49029     if test "$wxUSE_IPV6" = "yes"; then
49030         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
49031 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
49032 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
49033   echo $ECHO_N "(cached) $ECHO_C" >&6
49034 else
49035
49036                 cat >conftest.$ac_ext <<_ACEOF
49037 /* confdefs.h.  */
49038 _ACEOF
49039 cat confdefs.h >>conftest.$ac_ext
49040 cat >>conftest.$ac_ext <<_ACEOF
49041 /* end confdefs.h.  */
49042
49043                         #include <sys/types.h>
49044                         #include <sys/socket.h>
49045                         #include <netinet/in.h>
49046
49047 int
49048 main ()
49049 {
49050
49051                         struct sockaddr_in6 sa6;
49052
49053   ;
49054   return 0;
49055 }
49056 _ACEOF
49057 rm -f conftest.$ac_objext
49058 if { (ac_try="$ac_compile"
49059 case "(($ac_try" in
49060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49061   *) ac_try_echo=$ac_try;;
49062 esac
49063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49064   (eval "$ac_compile") 2>conftest.er1
49065   ac_status=$?
49066   grep -v '^ *+' conftest.er1 >conftest.err
49067   rm -f conftest.er1
49068   cat conftest.err >&5
49069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49070   (exit $ac_status); } && {
49071          test -z "$ac_c_werror_flag" ||
49072          test ! -s conftest.err
49073        } && test -s conftest.$ac_objext; then
49074   wx_cv_type_sockaddr_in6=yes
49075 else
49076   echo "$as_me: failed program was:" >&5
49077 sed 's/^/| /' conftest.$ac_ext >&5
49078
49079         wx_cv_type_sockaddr_in6=no
49080
49081 fi
49082
49083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49084
49085
49086 fi
49087 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
49088 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
49089
49090         if test "$wx_cv_type_sockaddr_in6"="yes"; then
49091             cat >>confdefs.h <<\_ACEOF
49092 #define wxUSE_IPV6 1
49093 _ACEOF
49094
49095         else
49096             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
49097 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
49098         fi
49099     fi
49100
49101     cat >>confdefs.h <<\_ACEOF
49102 #define wxUSE_SOCKETS 1
49103 _ACEOF
49104
49105     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49106 fi
49107
49108 if test "$wxUSE_PROTOCOL" = "yes"; then
49109     if test "$wxUSE_SOCKETS" != "yes"; then
49110         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
49111 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
49112         wxUSE_PROTOCOL=no
49113     fi
49114 fi
49115
49116 if test "$wxUSE_PROTOCOL" = "yes"; then
49117     cat >>confdefs.h <<\_ACEOF
49118 #define wxUSE_PROTOCOL 1
49119 _ACEOF
49120
49121
49122     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
49123         cat >>confdefs.h <<\_ACEOF
49124 #define wxUSE_PROTOCOL_HTTP 1
49125 _ACEOF
49126
49127     fi
49128     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
49129         cat >>confdefs.h <<\_ACEOF
49130 #define wxUSE_PROTOCOL_FTP 1
49131 _ACEOF
49132
49133     fi
49134     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
49135         cat >>confdefs.h <<\_ACEOF
49136 #define wxUSE_PROTOCOL_FILE 1
49137 _ACEOF
49138
49139     fi
49140 else
49141     if test "$wxUSE_FS_INET" = "yes"; then
49142         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
49143 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
49144         wxUSE_FS_INET="no"
49145     fi
49146 fi
49147
49148 if test "$wxUSE_URL" = "yes"; then
49149     if test "$wxUSE_PROTOCOL" != "yes"; then
49150         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
49151 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
49152         wxUSE_URL=no
49153     fi
49154     if test "$wxUSE_URL" = "yes"; then
49155         cat >>confdefs.h <<\_ACEOF
49156 #define wxUSE_URL 1
49157 _ACEOF
49158
49159     fi
49160 fi
49161
49162 if test "$wxUSE_VARIANT" = "yes"; then
49163     cat >>confdefs.h <<\_ACEOF
49164 #define wxUSE_VARIANT 1
49165 _ACEOF
49166
49167 fi
49168
49169 if test "$wxUSE_FS_INET" = "yes"; then
49170   cat >>confdefs.h <<\_ACEOF
49171 #define wxUSE_FS_INET 1
49172 _ACEOF
49173
49174 fi
49175
49176
49177 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
49178     wxUSE_JOYSTICK=no
49179
49180         if test "$TOOLKIT" = "MSW"; then
49181         wxUSE_JOYSTICK=yes
49182
49183         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
49184         if test "$USE_DARWIN" = 1; then
49185                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
49186 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
49187             ac_ext=cpp
49188 ac_cpp='$CXXCPP $CPPFLAGS'
49189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49192
49193             cat >conftest.$ac_ext <<_ACEOF
49194 /* confdefs.h.  */
49195 _ACEOF
49196 cat confdefs.h >>conftest.$ac_ext
49197 cat >>conftest.$ac_ext <<_ACEOF
49198 /* end confdefs.h.  */
49199  #include <IOKit/hid/IOHIDLib.h>
49200 int
49201 main ()
49202 {
49203  IOHIDQueueInterface *qi = NULL;
49204                               IOHIDCallbackFunction cb = NULL;
49205                               qi->setEventCallout(NULL, cb, NULL, NULL);
49206   ;
49207   return 0;
49208 }
49209 _ACEOF
49210 rm -f conftest.$ac_objext
49211 if { (ac_try="$ac_compile"
49212 case "(($ac_try" in
49213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49214   *) ac_try_echo=$ac_try;;
49215 esac
49216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49217   (eval "$ac_compile") 2>conftest.er1
49218   ac_status=$?
49219   grep -v '^ *+' conftest.er1 >conftest.err
49220   rm -f conftest.er1
49221   cat conftest.err >&5
49222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49223   (exit $ac_status); } && {
49224          test -z "$ac_cxx_werror_flag" ||
49225          test ! -s conftest.err
49226        } && test -s conftest.$ac_objext; then
49227    wxUSE_JOYSTICK=yes
49228
49229 else
49230   echo "$as_me: failed program was:" >&5
49231 sed 's/^/| /' conftest.$ac_ext >&5
49232
49233
49234 fi
49235
49236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49237             ac_ext=c
49238 ac_cpp='$CPP $CPPFLAGS'
49239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49242
49243             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
49244 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
49245         fi
49246
49247         else
49248                 if test "$wxUSE_MGL" != 1; then
49249
49250 for ac_header in linux/joystick.h
49251 do
49252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49256   echo $ECHO_N "(cached) $ECHO_C" >&6
49257 else
49258   cat >conftest.$ac_ext <<_ACEOF
49259 /* confdefs.h.  */
49260 _ACEOF
49261 cat confdefs.h >>conftest.$ac_ext
49262 cat >>conftest.$ac_ext <<_ACEOF
49263 /* end confdefs.h.  */
49264 $ac_includes_default
49265
49266 #include <$ac_header>
49267 _ACEOF
49268 rm -f conftest.$ac_objext
49269 if { (ac_try="$ac_compile"
49270 case "(($ac_try" in
49271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49272   *) ac_try_echo=$ac_try;;
49273 esac
49274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49275   (eval "$ac_compile") 2>conftest.er1
49276   ac_status=$?
49277   grep -v '^ *+' conftest.er1 >conftest.err
49278   rm -f conftest.er1
49279   cat conftest.err >&5
49280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49281   (exit $ac_status); } && {
49282          test -z "$ac_c_werror_flag" ||
49283          test ! -s conftest.err
49284        } && test -s conftest.$ac_objext; then
49285   eval "$as_ac_Header=yes"
49286 else
49287   echo "$as_me: failed program was:" >&5
49288 sed 's/^/| /' conftest.$ac_ext >&5
49289
49290         eval "$as_ac_Header=no"
49291 fi
49292
49293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49294 fi
49295 ac_res=`eval echo '${'$as_ac_Header'}'`
49296                { echo "$as_me:$LINENO: result: $ac_res" >&5
49297 echo "${ECHO_T}$ac_res" >&6; }
49298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49299   cat >>confdefs.h <<_ACEOF
49300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49301 _ACEOF
49302  wxUSE_JOYSTICK=yes
49303 fi
49304
49305 done
49306
49307         fi
49308     fi
49309
49310     if test "$wxUSE_JOYSTICK" = "yes"; then
49311         cat >>confdefs.h <<\_ACEOF
49312 #define wxUSE_JOYSTICK 1
49313 _ACEOF
49314
49315         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
49316     else
49317         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
49318 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
49319     fi
49320 fi
49321
49322
49323
49324 if test "$wxUSE_FONTENUM" = "yes" ; then
49325   cat >>confdefs.h <<\_ACEOF
49326 #define wxUSE_FONTENUM 1
49327 _ACEOF
49328
49329 fi
49330
49331 if test "$wxUSE_FONTMAP" = "yes" ; then
49332   cat >>confdefs.h <<\_ACEOF
49333 #define wxUSE_FONTMAP 1
49334 _ACEOF
49335
49336 fi
49337
49338 if test "$wxUSE_UNICODE" = "yes" ; then
49339   cat >>confdefs.h <<\_ACEOF
49340 #define wxUSE_UNICODE 1
49341 _ACEOF
49342
49343
49344   if test "$USE_WIN32" != 1; then
49345       wxUSE_UNICODE_MSLU=no
49346   fi
49347
49348   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
49349         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
49350 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
49351 if test "${ac_cv_lib_unicows_main+set}" = set; then
49352   echo $ECHO_N "(cached) $ECHO_C" >&6
49353 else
49354   ac_check_lib_save_LIBS=$LIBS
49355 LIBS="-lunicows  $LIBS"
49356 cat >conftest.$ac_ext <<_ACEOF
49357 /* confdefs.h.  */
49358 _ACEOF
49359 cat confdefs.h >>conftest.$ac_ext
49360 cat >>conftest.$ac_ext <<_ACEOF
49361 /* end confdefs.h.  */
49362
49363
49364 int
49365 main ()
49366 {
49367 return main ();
49368   ;
49369   return 0;
49370 }
49371 _ACEOF
49372 rm -f conftest.$ac_objext conftest$ac_exeext
49373 if { (ac_try="$ac_link"
49374 case "(($ac_try" in
49375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49376   *) ac_try_echo=$ac_try;;
49377 esac
49378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49379   (eval "$ac_link") 2>conftest.er1
49380   ac_status=$?
49381   grep -v '^ *+' conftest.er1 >conftest.err
49382   rm -f conftest.er1
49383   cat conftest.err >&5
49384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49385   (exit $ac_status); } && {
49386          test -z "$ac_c_werror_flag" ||
49387          test ! -s conftest.err
49388        } && test -s conftest$ac_exeext &&
49389        $as_test_x conftest$ac_exeext; then
49390   ac_cv_lib_unicows_main=yes
49391 else
49392   echo "$as_me: failed program was:" >&5
49393 sed 's/^/| /' conftest.$ac_ext >&5
49394
49395         ac_cv_lib_unicows_main=no
49396 fi
49397
49398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49399       conftest$ac_exeext conftest.$ac_ext
49400 LIBS=$ac_check_lib_save_LIBS
49401 fi
49402 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
49403 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
49404 if test $ac_cv_lib_unicows_main = yes; then
49405
49406                 cat >>confdefs.h <<\_ACEOF
49407 #define wxUSE_UNICODE_MSLU 1
49408 _ACEOF
49409
49410
49411 else
49412
49413                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49414                              Applications will only run on Windows NT/2000/XP!" >&5
49415 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49416                              Applications will only run on Windows NT/2000/XP!" >&2;}
49417                 wxUSE_UNICODE_MSLU=no
49418
49419 fi
49420
49421     fi
49422 fi
49423
49424 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
49425     cat >>confdefs.h <<\_ACEOF
49426 #define wxUSE_UNICODE_UTF8 1
49427 _ACEOF
49428
49429
49430     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
49431         cat >>confdefs.h <<\_ACEOF
49432 #define wxUSE_UTF8_LOCALE_ONLY 1
49433 _ACEOF
49434
49435     fi
49436 fi
49437
49438
49439 if test "$wxUSE_CONSTRAINTS" = "yes"; then
49440     cat >>confdefs.h <<\_ACEOF
49441 #define wxUSE_CONSTRAINTS 1
49442 _ACEOF
49443
49444     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
49445 fi
49446
49447 if test "$wxUSE_MDI" = "yes"; then
49448     cat >>confdefs.h <<\_ACEOF
49449 #define wxUSE_MDI 1
49450 _ACEOF
49451
49452
49453     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
49454         cat >>confdefs.h <<\_ACEOF
49455 #define wxUSE_MDI_ARCHITECTURE 1
49456 _ACEOF
49457
49458         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
49459     fi
49460 fi
49461
49462 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
49463     cat >>confdefs.h <<\_ACEOF
49464 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
49465 _ACEOF
49466
49467     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
49468 fi
49469
49470 if test "$wxUSE_HELP" = "yes"; then
49471     cat >>confdefs.h <<\_ACEOF
49472 #define wxUSE_HELP 1
49473 _ACEOF
49474
49475     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
49476
49477     if test "$wxUSE_MSW" = 1; then
49478       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
49479         cat >>confdefs.h <<\_ACEOF
49480 #define wxUSE_MS_HTML_HELP 1
49481 _ACEOF
49482
49483       fi
49484     fi
49485
49486     if test "$wxUSE_WXHTML_HELP" = "yes"; then
49487       if test "$wxUSE_HTML" = "yes"; then
49488         cat >>confdefs.h <<\_ACEOF
49489 #define wxUSE_WXHTML_HELP 1
49490 _ACEOF
49491
49492       else
49493         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
49494 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
49495         wxUSE_WXHTML_HELP=no
49496       fi
49497     fi
49498 fi
49499
49500 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49501     cat >>confdefs.h <<\_ACEOF
49502 #define wxUSE_PRINTING_ARCHITECTURE 1
49503 _ACEOF
49504
49505     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
49506 fi
49507
49508 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
49509   cat >>confdefs.h <<\_ACEOF
49510 #define wxUSE_POSTSCRIPT 1
49511 _ACEOF
49512
49513 fi
49514
49515 cat >>confdefs.h <<\_ACEOF
49516 #define wxUSE_AFM_FOR_POSTSCRIPT 1
49517 _ACEOF
49518
49519
49520 if test "$wxUSE_SVG" = "yes"; then
49521     cat >>confdefs.h <<\_ACEOF
49522 #define wxUSE_SVG 1
49523 _ACEOF
49524
49525 fi
49526
49527
49528 if test "$wxUSE_METAFILE" = "yes"; then
49529     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
49530         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
49531 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
49532         wxUSE_METAFILE=no
49533     fi
49534 elif test "$wxUSE_METAFILE" = "auto"; then
49535     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
49536         wxUSE_METAFILE=yes
49537     fi
49538 fi
49539
49540 if test "$wxUSE_METAFILE" = "yes"; then
49541     cat >>confdefs.h <<\_ACEOF
49542 #define wxUSE_METAFILE 1
49543 _ACEOF
49544
49545     if test "$wxUSE_MSW" = 1; then
49546                 cat >>confdefs.h <<\_ACEOF
49547 #define wxUSE_ENH_METAFILE 1
49548 _ACEOF
49549
49550     fi
49551 fi
49552
49553
49554 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
49555                           -o "$wxUSE_CLIPBOARD"     = "yes" \
49556                           -o "$wxUSE_OLE"     = "yes" \
49557                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
49558     { echo "$as_me:$LINENO: checking for ole2.h" >&5
49559 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
49560 if test "${ac_cv_header_ole2_h+set}" = set; then
49561   echo $ECHO_N "(cached) $ECHO_C" >&6
49562 else
49563   cat >conftest.$ac_ext <<_ACEOF
49564 /* confdefs.h.  */
49565 _ACEOF
49566 cat confdefs.h >>conftest.$ac_ext
49567 cat >>conftest.$ac_ext <<_ACEOF
49568 /* end confdefs.h.  */
49569
49570
49571 #include <ole2.h>
49572 _ACEOF
49573 rm -f conftest.$ac_objext
49574 if { (ac_try="$ac_compile"
49575 case "(($ac_try" in
49576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49577   *) ac_try_echo=$ac_try;;
49578 esac
49579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49580   (eval "$ac_compile") 2>conftest.er1
49581   ac_status=$?
49582   grep -v '^ *+' conftest.er1 >conftest.err
49583   rm -f conftest.er1
49584   cat conftest.err >&5
49585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586   (exit $ac_status); } && {
49587          test -z "$ac_c_werror_flag" ||
49588          test ! -s conftest.err
49589        } && test -s conftest.$ac_objext; then
49590   ac_cv_header_ole2_h=yes
49591 else
49592   echo "$as_me: failed program was:" >&5
49593 sed 's/^/| /' conftest.$ac_ext >&5
49594
49595         ac_cv_header_ole2_h=no
49596 fi
49597
49598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49599 fi
49600 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
49601 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
49602
49603
49604
49605     if test "$ac_cv_header_ole2_h" = "yes" ; then
49606         if test "$GCC" = yes ; then
49607             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
49608 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
49609             cat >conftest.$ac_ext <<_ACEOF
49610 /* confdefs.h.  */
49611 _ACEOF
49612 cat confdefs.h >>conftest.$ac_ext
49613 cat >>conftest.$ac_ext <<_ACEOF
49614 /* end confdefs.h.  */
49615 #include <windows.h>
49616                             #include <ole2.h>
49617 int
49618 main ()
49619 {
49620
49621   ;
49622   return 0;
49623 }
49624 _ACEOF
49625 rm -f conftest.$ac_objext
49626 if { (ac_try="$ac_compile"
49627 case "(($ac_try" in
49628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49629   *) ac_try_echo=$ac_try;;
49630 esac
49631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49632   (eval "$ac_compile") 2>conftest.er1
49633   ac_status=$?
49634   grep -v '^ *+' conftest.er1 >conftest.err
49635   rm -f conftest.er1
49636   cat conftest.err >&5
49637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49638   (exit $ac_status); } && {
49639          test -z "$ac_c_werror_flag" ||
49640          test ! -s conftest.err
49641        } && test -s conftest.$ac_objext; then
49642   { echo "$as_me:$LINENO: result: no" >&5
49643 echo "${ECHO_T}no" >&6; }
49644 else
49645   echo "$as_me: failed program was:" >&5
49646 sed 's/^/| /' conftest.$ac_ext >&5
49647
49648         { echo "$as_me:$LINENO: result: yes" >&5
49649 echo "${ECHO_T}yes" >&6; }
49650                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
49651 fi
49652
49653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49654             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
49655             if test "$wxUSE_OLE" = "yes" ; then
49656                 cat >>confdefs.h <<\_ACEOF
49657 #define wxUSE_OLE 1
49658 _ACEOF
49659
49660                 cat >>confdefs.h <<\_ACEOF
49661 #define wxUSE_OLE_AUTOMATION 1
49662 _ACEOF
49663
49664                 cat >>confdefs.h <<\_ACEOF
49665 #define wxUSE_ACTIVEX 1
49666 _ACEOF
49667
49668                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
49669             fi
49670         fi
49671
49672                 if test "$wxUSE_DATAOBJ" = "yes" ; then
49673             cat >>confdefs.h <<\_ACEOF
49674 #define wxUSE_DATAOBJ 1
49675 _ACEOF
49676
49677         fi
49678     else
49679         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
49680 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
49681
49682         wxUSE_CLIPBOARD=no
49683         wxUSE_DRAG_AND_DROP=no
49684         wxUSE_DATAOBJ=no
49685         wxUSE_OLE=no
49686     fi
49687 fi
49688
49689 if test "$wxUSE_IPC" = "yes"; then
49690     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
49691         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
49692 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
49693         wxUSE_IPC=no
49694     fi
49695
49696     if test "$wxUSE_IPC" = "yes"; then
49697         cat >>confdefs.h <<\_ACEOF
49698 #define wxUSE_IPC 1
49699 _ACEOF
49700
49701         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49702     fi
49703 fi
49704
49705 if test "$wxUSE_DATAOBJ" = "yes"; then
49706     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49707         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
49708 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
49709         wxUSE_DATAOBJ=no
49710     else
49711         cat >>confdefs.h <<\_ACEOF
49712 #define wxUSE_DATAOBJ 1
49713 _ACEOF
49714
49715     fi
49716 else
49717     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
49718 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
49719     wxUSE_CLIPBOARD=no
49720     wxUSE_DRAG_AND_DROP=no
49721 fi
49722
49723 if test "$wxUSE_CLIPBOARD" = "yes"; then
49724     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49725         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
49726 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
49727         wxUSE_CLIPBOARD=no
49728     fi
49729
49730     if test "$wxUSE_CLIPBOARD" = "yes"; then
49731         cat >>confdefs.h <<\_ACEOF
49732 #define wxUSE_CLIPBOARD 1
49733 _ACEOF
49734
49735     fi
49736 fi
49737
49738 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
49739     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
49740             "$wxUSE_DFB" = 1; then
49741         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
49742 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
49743         wxUSE_DRAG_AND_DROP=no
49744     fi
49745
49746     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
49747         cat >>confdefs.h <<\_ACEOF
49748 #define wxUSE_DRAG_AND_DROP 1
49749 _ACEOF
49750
49751     fi
49752
49753 fi
49754
49755 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
49756     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
49757 fi
49758
49759 if test "$wxUSE_CLIPBOARD" = "yes"; then
49760     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
49761 fi
49762
49763 if test "$wxUSE_SPLINES" = "yes" ; then
49764   cat >>confdefs.h <<\_ACEOF
49765 #define wxUSE_SPLINES 1
49766 _ACEOF
49767
49768 fi
49769
49770 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
49771   cat >>confdefs.h <<\_ACEOF
49772 #define wxUSE_MOUSEWHEEL 1
49773 _ACEOF
49774
49775 fi
49776
49777 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
49778     cat >>confdefs.h <<\_ACEOF
49779 #define wxUSE_UIACTIONSIMULATOR 1
49780 _ACEOF
49781
49782     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
49783 fi
49784
49785 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
49786     cat >>confdefs.h <<\_ACEOF
49787 #define wxUSE_DC_TRANSFORM_MATRIX 1
49788 _ACEOF
49789
49790 fi
49791
49792
49793 USES_CONTROLS=0
49794 if test "$wxUSE_CONTROLS" = "yes"; then
49795   USES_CONTROLS=1
49796 fi
49797
49798 if test "$wxUSE_MARKUP" = "yes"; then
49799   cat >>confdefs.h <<\_ACEOF
49800 #define wxUSE_MARKUP 1
49801 _ACEOF
49802
49803 fi
49804
49805 if test "$wxUSE_ACCEL" = "yes"; then
49806   cat >>confdefs.h <<\_ACEOF
49807 #define wxUSE_ACCEL 1
49808 _ACEOF
49809
49810   USES_CONTROLS=1
49811 fi
49812
49813 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
49814   cat >>confdefs.h <<\_ACEOF
49815 #define wxUSE_ANIMATIONCTRL 1
49816 _ACEOF
49817
49818   USES_CONTROLS=1
49819   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
49820 fi
49821
49822 if test "$wxUSE_BANNERWINDOW" = "yes"; then
49823   cat >>confdefs.h <<\_ACEOF
49824 #define wxUSE_BANNERWINDOW 1
49825 _ACEOF
49826
49827 fi
49828
49829 if test "$wxUSE_BUTTON" = "yes"; then
49830   cat >>confdefs.h <<\_ACEOF
49831 #define wxUSE_BUTTON 1
49832 _ACEOF
49833
49834   USES_CONTROLS=1
49835 fi
49836
49837 if test "$wxUSE_BMPBUTTON" = "yes"; then
49838   cat >>confdefs.h <<\_ACEOF
49839 #define wxUSE_BMPBUTTON 1
49840 _ACEOF
49841
49842   USES_CONTROLS=1
49843 fi
49844
49845 if test "$wxUSE_CALCTRL" = "yes"; then
49846   cat >>confdefs.h <<\_ACEOF
49847 #define wxUSE_CALENDARCTRL 1
49848 _ACEOF
49849
49850   USES_CONTROLS=1
49851   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
49852 fi
49853
49854 if test "$wxUSE_CARET" = "yes"; then
49855   cat >>confdefs.h <<\_ACEOF
49856 #define wxUSE_CARET 1
49857 _ACEOF
49858
49859   USES_CONTROLS=1
49860   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
49861 fi
49862
49863 if test "$wxUSE_COLLPANE" = "yes"; then
49864     cat >>confdefs.h <<\_ACEOF
49865 #define wxUSE_COLLPANE 1
49866 _ACEOF
49867
49868     USES_CONTROLS=1
49869     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
49870 fi
49871
49872 if test "$wxUSE_COMBOBOX" = "yes"; then
49873   cat >>confdefs.h <<\_ACEOF
49874 #define wxUSE_COMBOBOX 1
49875 _ACEOF
49876
49877   USES_CONTROLS=1
49878 fi
49879
49880 if test "$wxUSE_COMBOCTRL" = "yes"; then
49881   cat >>confdefs.h <<\_ACEOF
49882 #define wxUSE_COMBOCTRL 1
49883 _ACEOF
49884
49885   USES_CONTROLS=1
49886 fi
49887
49888 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
49889   cat >>confdefs.h <<\_ACEOF
49890 #define wxUSE_COMMANDLINKBUTTON 1
49891 _ACEOF
49892
49893   USES_CONTROLS=1
49894 fi
49895
49896 if test "$wxUSE_CHOICE" = "yes"; then
49897   cat >>confdefs.h <<\_ACEOF
49898 #define wxUSE_CHOICE 1
49899 _ACEOF
49900
49901   USES_CONTROLS=1
49902 fi
49903
49904 if test "$wxUSE_CHOICEBOOK" = "yes"; then
49905     cat >>confdefs.h <<\_ACEOF
49906 #define wxUSE_CHOICEBOOK 1
49907 _ACEOF
49908
49909     USES_CONTROLS=1
49910 fi
49911
49912 if test "$wxUSE_CHECKBOX" = "yes"; then
49913   cat >>confdefs.h <<\_ACEOF
49914 #define wxUSE_CHECKBOX 1
49915 _ACEOF
49916
49917   USES_CONTROLS=1
49918 fi
49919
49920 if test "$wxUSE_CHECKLST" = "yes"; then
49921   cat >>confdefs.h <<\_ACEOF
49922 #define wxUSE_CHECKLISTBOX 1
49923 _ACEOF
49924
49925   USES_CONTROLS=1
49926 fi
49927
49928 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
49929   cat >>confdefs.h <<\_ACEOF
49930 #define wxUSE_COLOURPICKERCTRL 1
49931 _ACEOF
49932
49933   USES_CONTROLS=1
49934 fi
49935
49936 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
49937   cat >>confdefs.h <<\_ACEOF
49938 #define wxUSE_DATEPICKCTRL 1
49939 _ACEOF
49940
49941   USES_CONTROLS=1
49942 fi
49943
49944 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
49945   cat >>confdefs.h <<\_ACEOF
49946 #define wxUSE_DIRPICKERCTRL 1
49947 _ACEOF
49948
49949   USES_CONTROLS=1
49950 fi
49951
49952 if test "$wxUSE_FILECTRL" = "yes"; then
49953   cat >>confdefs.h <<\_ACEOF
49954 #define wxUSE_FILECTRL 1
49955 _ACEOF
49956
49957   USES_CONTROLS=1
49958 fi
49959
49960 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
49961   cat >>confdefs.h <<\_ACEOF
49962 #define wxUSE_FILEPICKERCTRL 1
49963 _ACEOF
49964
49965   USES_CONTROLS=1
49966 fi
49967
49968 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
49969   cat >>confdefs.h <<\_ACEOF
49970 #define wxUSE_FONTPICKERCTRL 1
49971 _ACEOF
49972
49973   USES_CONTROLS=1
49974 fi
49975
49976 if test "$wxUSE_DISPLAY" = "yes"; then
49977     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
49978         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
49979 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
49980         wxUSE_DISPLAY=no
49981     else
49982         cat >>confdefs.h <<\_ACEOF
49983 #define wxUSE_DISPLAY 1
49984 _ACEOF
49985
49986         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
49987     fi
49988 fi
49989
49990 if test "$wxUSE_DETECT_SM" = "yes"; then
49991     cat >>confdefs.h <<\_ACEOF
49992 #define wxUSE_DETECT_SM 1
49993 _ACEOF
49994
49995 fi
49996
49997 if test "$wxUSE_GAUGE" = "yes"; then
49998   cat >>confdefs.h <<\_ACEOF
49999 #define wxUSE_GAUGE 1
50000 _ACEOF
50001
50002   USES_CONTROLS=1
50003 fi
50004
50005 if test "$wxUSE_GRID" = "yes"; then
50006   cat >>confdefs.h <<\_ACEOF
50007 #define wxUSE_GRID 1
50008 _ACEOF
50009
50010   USES_CONTROLS=1
50011   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
50012 fi
50013
50014 if test "$wxUSE_HEADERCTRL" = "yes"; then
50015   cat >>confdefs.h <<\_ACEOF
50016 #define wxUSE_HEADERCTRL 1
50017 _ACEOF
50018
50019   USES_CONTROLS=1
50020 fi
50021
50022 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
50023   cat >>confdefs.h <<\_ACEOF
50024 #define wxUSE_HYPERLINKCTRL 1
50025 _ACEOF
50026
50027   USES_CONTROLS=1
50028 fi
50029
50030 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
50031   cat >>confdefs.h <<\_ACEOF
50032 #define wxUSE_BITMAPCOMBOBOX 1
50033 _ACEOF
50034
50035   USES_CONTROLS=1
50036 fi
50037
50038 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
50039   cat >>confdefs.h <<\_ACEOF
50040 #define wxUSE_DATAVIEWCTRL 1
50041 _ACEOF
50042
50043   USES_CONTROLS=1
50044   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
50045 fi
50046
50047 if test "$wxUSE_IMAGLIST" = "yes"; then
50048     cat >>confdefs.h <<\_ACEOF
50049 #define wxUSE_IMAGLIST 1
50050 _ACEOF
50051
50052 fi
50053
50054 if test "$wxUSE_INFOBAR" = "yes"; then
50055     cat >>confdefs.h <<\_ACEOF
50056 #define wxUSE_INFOBAR 1
50057 _ACEOF
50058
50059 fi
50060
50061 if test "$wxUSE_LISTBOOK" = "yes"; then
50062     cat >>confdefs.h <<\_ACEOF
50063 #define wxUSE_LISTBOOK 1
50064 _ACEOF
50065
50066     USES_CONTROLS=1
50067 fi
50068
50069 if test "$wxUSE_LISTBOX" = "yes"; then
50070     cat >>confdefs.h <<\_ACEOF
50071 #define wxUSE_LISTBOX 1
50072 _ACEOF
50073
50074     USES_CONTROLS=1
50075 fi
50076
50077 if test "$wxUSE_LISTCTRL" = "yes"; then
50078     if test "$wxUSE_IMAGLIST" = "yes"; then
50079         cat >>confdefs.h <<\_ACEOF
50080 #define wxUSE_LISTCTRL 1
50081 _ACEOF
50082
50083         USES_CONTROLS=1
50084         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
50085     else
50086         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
50087 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
50088     fi
50089 fi
50090
50091 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
50092     cat >>confdefs.h <<\_ACEOF
50093 #define wxUSE_EDITABLELISTBOX 1
50094 _ACEOF
50095
50096     USES_CONTROLS=1
50097 fi
50098
50099 if test "$wxUSE_NOTEBOOK" = "yes"; then
50100     cat >>confdefs.h <<\_ACEOF
50101 #define wxUSE_NOTEBOOK 1
50102 _ACEOF
50103
50104     USES_CONTROLS=1
50105     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
50106 fi
50107
50108 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
50109     cat >>confdefs.h <<\_ACEOF
50110 #define wxUSE_NOTIFICATION_MESSAGE 1
50111 _ACEOF
50112
50113 fi
50114
50115 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
50116   cat >>confdefs.h <<\_ACEOF
50117 #define wxUSE_ODCOMBOBOX 1
50118 _ACEOF
50119
50120   USES_CONTROLS=1
50121   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
50122 fi
50123
50124 if test "$wxUSE_RADIOBOX" = "yes"; then
50125     cat >>confdefs.h <<\_ACEOF
50126 #define wxUSE_RADIOBOX 1
50127 _ACEOF
50128
50129     USES_CONTROLS=1
50130 fi
50131
50132 if test "$wxUSE_RADIOBTN" = "yes"; then
50133     cat >>confdefs.h <<\_ACEOF
50134 #define wxUSE_RADIOBTN 1
50135 _ACEOF
50136
50137     USES_CONTROLS=1
50138 fi
50139
50140 if test "$wxUSE_REARRANGECTRL" = "yes"; then
50141     cat >>confdefs.h <<\_ACEOF
50142 #define wxUSE_REARRANGECTRL 1
50143 _ACEOF
50144
50145 fi
50146
50147 if test "$wxUSE_RICHMSGDLG" = "yes"; then
50148     cat >>confdefs.h <<\_ACEOF
50149 #define wxUSE_RICHMSGDLG 1
50150 _ACEOF
50151
50152 fi
50153
50154 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
50155     cat >>confdefs.h <<\_ACEOF
50156 #define wxUSE_RICHTOOLTIP 1
50157 _ACEOF
50158
50159 fi
50160
50161 if test "$wxUSE_SASH" = "yes"; then
50162     cat >>confdefs.h <<\_ACEOF
50163 #define wxUSE_SASH 1
50164 _ACEOF
50165
50166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
50167 fi
50168
50169 if test "$wxUSE_SCROLLBAR" = "yes"; then
50170     cat >>confdefs.h <<\_ACEOF
50171 #define wxUSE_SCROLLBAR 1
50172 _ACEOF
50173
50174     USES_CONTROLS=1
50175     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
50176 fi
50177
50178 if test "$wxUSE_SEARCHCTRL" = "yes"; then
50179     cat >>confdefs.h <<\_ACEOF
50180 #define wxUSE_SEARCHCTRL 1
50181 _ACEOF
50182
50183     USES_CONTROLS=1
50184 fi
50185
50186 if test "$wxUSE_SLIDER" = "yes"; then
50187     cat >>confdefs.h <<\_ACEOF
50188 #define wxUSE_SLIDER 1
50189 _ACEOF
50190
50191     USES_CONTROLS=1
50192 fi
50193
50194 if test "$wxUSE_SPINBTN" = "yes"; then
50195     cat >>confdefs.h <<\_ACEOF
50196 #define wxUSE_SPINBTN 1
50197 _ACEOF
50198
50199     USES_CONTROLS=1
50200 fi
50201
50202 if test "$wxUSE_SPINCTRL" = "yes"; then
50203     cat >>confdefs.h <<\_ACEOF
50204 #define wxUSE_SPINCTRL 1
50205 _ACEOF
50206
50207     USES_CONTROLS=1
50208 fi
50209
50210 if test "$wxUSE_SPLITTER" = "yes"; then
50211     cat >>confdefs.h <<\_ACEOF
50212 #define wxUSE_SPLITTER 1
50213 _ACEOF
50214
50215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
50216 fi
50217
50218 if test "$wxUSE_STATBMP" = "yes"; then
50219     cat >>confdefs.h <<\_ACEOF
50220 #define wxUSE_STATBMP 1
50221 _ACEOF
50222
50223     USES_CONTROLS=1
50224 fi
50225
50226 if test "$wxUSE_STATBOX" = "yes"; then
50227     cat >>confdefs.h <<\_ACEOF
50228 #define wxUSE_STATBOX 1
50229 _ACEOF
50230
50231     USES_CONTROLS=1
50232 fi
50233
50234 if test "$wxUSE_STATTEXT" = "yes"; then
50235     cat >>confdefs.h <<\_ACEOF
50236 #define wxUSE_STATTEXT 1
50237 _ACEOF
50238
50239     USES_CONTROLS=1
50240 fi
50241
50242 if test "$wxUSE_STATLINE" = "yes"; then
50243     cat >>confdefs.h <<\_ACEOF
50244 #define wxUSE_STATLINE 1
50245 _ACEOF
50246
50247     USES_CONTROLS=1
50248 fi
50249
50250 if test "$wxUSE_STATUSBAR" = "yes"; then
50251         cat >>confdefs.h <<\_ACEOF
50252 #define wxUSE_NATIVE_STATUSBAR 1
50253 _ACEOF
50254
50255     cat >>confdefs.h <<\_ACEOF
50256 #define wxUSE_STATUSBAR 1
50257 _ACEOF
50258
50259     USES_CONTROLS=1
50260
50261     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
50262 fi
50263
50264 if test "$wxUSE_TEXTCTRL" = "yes"; then
50265     cat >>confdefs.h <<\_ACEOF
50266 #define wxUSE_TEXTCTRL 1
50267 _ACEOF
50268
50269     USES_CONTROLS=1
50270     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
50271
50272             cat >>confdefs.h <<\_ACEOF
50273 #define wxUSE_RICHEDIT 1
50274 _ACEOF
50275
50276     cat >>confdefs.h <<\_ACEOF
50277 #define wxUSE_RICHEDIT2 1
50278 _ACEOF
50279
50280 fi
50281
50282 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
50283   cat >>confdefs.h <<\_ACEOF
50284 #define wxUSE_TIMEPICKCTRL 1
50285 _ACEOF
50286
50287   USES_CONTROLS=1
50288 fi
50289
50290 if test "$wxUSE_TOGGLEBTN" = "yes"; then
50291     if test "$wxUSE_OLD_COCOA" = 1 ; then
50292         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
50293 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
50294         wxUSE_TOGGLEBTN=no
50295     fi
50296
50297     if test "$wxUSE_TOGGLEBTN" = "yes"; then
50298         cat >>confdefs.h <<\_ACEOF
50299 #define wxUSE_TOGGLEBTN 1
50300 _ACEOF
50301
50302         USES_CONTROLS=1
50303     fi
50304 fi
50305
50306 if test "$wxUSE_TOOLBAR" = "yes"; then
50307     cat >>confdefs.h <<\_ACEOF
50308 #define wxUSE_TOOLBAR 1
50309 _ACEOF
50310
50311     USES_CONTROLS=1
50312
50313     if test "$wxUSE_UNIVERSAL" = "yes"; then
50314         wxUSE_TOOLBAR_NATIVE="no"
50315     else
50316         wxUSE_TOOLBAR_NATIVE="yes"
50317         cat >>confdefs.h <<\_ACEOF
50318 #define wxUSE_TOOLBAR_NATIVE 1
50319 _ACEOF
50320
50321     fi
50322
50323     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
50324 fi
50325
50326 if test "$wxUSE_TOOLTIPS" = "yes"; then
50327     if test "$wxUSE_MOTIF" = 1; then
50328         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
50329 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
50330     else
50331         if test "$wxUSE_UNIVERSAL" = "yes"; then
50332             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
50333 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
50334         else
50335             cat >>confdefs.h <<\_ACEOF
50336 #define wxUSE_TOOLTIPS 1
50337 _ACEOF
50338
50339         fi
50340     fi
50341 fi
50342
50343 if test "$wxUSE_TREEBOOK" = "yes"; then
50344     cat >>confdefs.h <<\_ACEOF
50345 #define wxUSE_TREEBOOK 1
50346 _ACEOF
50347
50348     USES_CONTROLS=1
50349 fi
50350
50351 if test "$wxUSE_TOOLBOOK" = "yes"; then
50352     cat >>confdefs.h <<\_ACEOF
50353 #define wxUSE_TOOLBOOK 1
50354 _ACEOF
50355
50356     USES_CONTROLS=1
50357 fi
50358
50359 if test "$wxUSE_TREECTRL" = "yes"; then
50360     if test "$wxUSE_IMAGLIST" = "yes"; then
50361         cat >>confdefs.h <<\_ACEOF
50362 #define wxUSE_TREECTRL 1
50363 _ACEOF
50364
50365         USES_CONTROLS=1
50366         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
50367     else
50368         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
50369 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
50370     fi
50371 fi
50372
50373 if test "$wxUSE_TREELISTCTRL" = "yes"; then
50374     cat >>confdefs.h <<\_ACEOF
50375 #define wxUSE_TREELISTCTRL 1
50376 _ACEOF
50377
50378     USES_CONTROLS=1
50379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelist"
50380 fi
50381
50382 if test "$wxUSE_POPUPWIN" = "yes"; then
50383     if test "$wxUSE_OLD_COCOA" = 1 ; then
50384         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
50385 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
50386     else
50387         if test "$wxUSE_PM" = 1; then
50388             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
50389 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
50390         else
50391             cat >>confdefs.h <<\_ACEOF
50392 #define wxUSE_POPUPWIN 1
50393 _ACEOF
50394
50395             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
50396
50397             USES_CONTROLS=1
50398         fi
50399     fi
50400 fi
50401
50402 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
50403     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
50404         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
50405 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
50406     else
50407         cat >>confdefs.h <<\_ACEOF
50408 #define wxUSE_DIALUP_MANAGER 1
50409 _ACEOF
50410
50411         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
50412     fi
50413 fi
50414
50415 if test "$wxUSE_TIPWINDOW" = "yes"; then
50416     if test "$wxUSE_PM" = 1; then
50417         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
50418 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
50419     else
50420         cat >>confdefs.h <<\_ACEOF
50421 #define wxUSE_TIPWINDOW 1
50422 _ACEOF
50423
50424     fi
50425 fi
50426
50427 if test "$USES_CONTROLS" = 1; then
50428     cat >>confdefs.h <<\_ACEOF
50429 #define wxUSE_CONTROLS 1
50430 _ACEOF
50431
50432 fi
50433
50434
50435 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
50436     cat >>confdefs.h <<\_ACEOF
50437 #define wxUSE_ACCESSIBILITY 1
50438 _ACEOF
50439
50440     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
50441 fi
50442
50443 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
50444     cat >>confdefs.h <<\_ACEOF
50445 #define wxUSE_ARTPROVIDER_STD 1
50446 _ACEOF
50447
50448 fi
50449
50450 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
50451             if test "$wxUSE_GTK" != 1; then
50452                 if test "$wxUSE_LIBPNG" != no -a \
50453                 "$wxUSE_IMAGE" = yes -a \
50454                 "$wxUSE_STREAMS" = yes; then
50455             wxUSE_ARTPROVIDER_TANGO="yes"
50456         fi
50457     fi
50458 fi
50459
50460 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
50461     cat >>confdefs.h <<\_ACEOF
50462 #define wxUSE_ARTPROVIDER_TANGO 1
50463 _ACEOF
50464
50465 fi
50466
50467 if test "$wxUSE_DRAGIMAGE" = "yes"; then
50468     cat >>confdefs.h <<\_ACEOF
50469 #define wxUSE_DRAGIMAGE 1
50470 _ACEOF
50471
50472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
50473 fi
50474
50475 if test "$wxUSE_EXCEPTIONS" = "yes"; then
50476     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
50477         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
50478 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
50479     else
50480         cat >>confdefs.h <<\_ACEOF
50481 #define wxUSE_EXCEPTIONS 1
50482 _ACEOF
50483
50484         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
50485     fi
50486 fi
50487
50488 USE_HTML=0
50489 if test "$wxUSE_HTML" = "yes"; then
50490     cat >>confdefs.h <<\_ACEOF
50491 #define wxUSE_HTML 1
50492 _ACEOF
50493
50494     USE_HTML=1
50495     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
50496 fi
50497 if test "$wxUSE_WEBKIT" = "yes"; then
50498     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50499         old_CPPFLAGS="$CPPFLAGS"
50500         CPPFLAGS="-x objective-c++ $CPPFLAGS"
50501         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50502 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50503 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50504   echo $ECHO_N "(cached) $ECHO_C" >&6
50505 else
50506   cat >conftest.$ac_ext <<_ACEOF
50507 /* confdefs.h.  */
50508 _ACEOF
50509 cat confdefs.h >>conftest.$ac_ext
50510 cat >>conftest.$ac_ext <<_ACEOF
50511 /* end confdefs.h.  */
50512
50513                            #include <Carbon/Carbon.h>
50514                            #include <WebKit/WebKit.h>
50515
50516
50517 #include <WebKit/HIWebView.h>
50518 _ACEOF
50519 rm -f conftest.$ac_objext
50520 if { (ac_try="$ac_compile"
50521 case "(($ac_try" in
50522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50523   *) ac_try_echo=$ac_try;;
50524 esac
50525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50526   (eval "$ac_compile") 2>conftest.er1
50527   ac_status=$?
50528   grep -v '^ *+' conftest.er1 >conftest.err
50529   rm -f conftest.er1
50530   cat conftest.err >&5
50531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50532   (exit $ac_status); } && {
50533          test -z "$ac_c_werror_flag" ||
50534          test ! -s conftest.err
50535        } && test -s conftest.$ac_objext; then
50536   ac_cv_header_WebKit_HIWebView_h=yes
50537 else
50538   echo "$as_me: failed program was:" >&5
50539 sed 's/^/| /' conftest.$ac_ext >&5
50540
50541         ac_cv_header_WebKit_HIWebView_h=no
50542 fi
50543
50544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50545 fi
50546 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50547 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50548 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50549
50550                            cat >>confdefs.h <<\_ACEOF
50551 #define wxUSE_WEBKIT 1
50552 _ACEOF
50553
50554                            WEBKIT_LINK="-framework WebKit"
50555
50556 else
50557
50558                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
50559 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
50560                            wxUSE_WEBKIT=no
50561
50562 fi
50563
50564
50565         CPPFLAGS="$old_CPPFLAGS"
50566     elif test "$wxUSE_OLD_COCOA" = 1; then
50567         cat >>confdefs.h <<\_ACEOF
50568 #define wxUSE_WEBKIT 1
50569 _ACEOF
50570
50571     else
50572         wxUSE_WEBKIT=no
50573     fi
50574     if test "$wxUSE_WEBKIT" = "yes"; then
50575         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
50576     fi
50577 fi
50578
50579 USE_XRC=0
50580 if test "$wxUSE_XRC" = "yes"; then
50581     if test "$wxUSE_XML" != "yes"; then
50582         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
50583 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
50584         wxUSE_XRC=no
50585     else
50586         cat >>confdefs.h <<\_ACEOF
50587 #define wxUSE_XRC 1
50588 _ACEOF
50589
50590         USE_XRC=1
50591         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
50592     fi
50593 fi
50594
50595 USE_AUI=0
50596 if test "$wxUSE_AUI" = "yes"; then
50597    cat >>confdefs.h <<\_ACEOF
50598 #define wxUSE_AUI 1
50599 _ACEOF
50600
50601    USE_AUI=1
50602    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
50603 fi
50604
50605 USE_PROPGRID=0
50606 if test "$wxUSE_PROPGRID" = "yes"; then
50607    cat >>confdefs.h <<\_ACEOF
50608 #define wxUSE_PROPGRID 1
50609 _ACEOF
50610
50611    USE_PROPGRID=1
50612    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
50613 fi
50614
50615 USE_RIBBON=0
50616 if test "$wxUSE_RIBBON" = "yes"; then
50617    cat >>confdefs.h <<\_ACEOF
50618 #define wxUSE_RIBBON 1
50619 _ACEOF
50620
50621    USE_RIBBON=1
50622    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
50623 fi
50624
50625 USE_STC=0
50626 if test "$wxUSE_STC" = "yes"; then
50627    cat >>confdefs.h <<\_ACEOF
50628 #define wxUSE_STC 1
50629 _ACEOF
50630
50631    USE_STC=1
50632    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
50633
50634       # Extract the first word of "python", so it can be a program name with args.
50635 set dummy python; ac_word=$2
50636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50638 if test "${ac_cv_path_PYTHON+set}" = set; then
50639   echo $ECHO_N "(cached) $ECHO_C" >&6
50640 else
50641   case $PYTHON in
50642   [\\/]* | ?:[\\/]*)
50643   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
50644   ;;
50645   *)
50646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50647 for as_dir in $PATH
50648 do
50649   IFS=$as_save_IFS
50650   test -z "$as_dir" && as_dir=.
50651   for ac_exec_ext in '' $ac_executable_extensions; do
50652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50653     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
50654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50655     break 2
50656   fi
50657 done
50658 done
50659 IFS=$as_save_IFS
50660
50661   ;;
50662 esac
50663 fi
50664 PYTHON=$ac_cv_path_PYTHON
50665 if test -n "$PYTHON"; then
50666   { echo "$as_me:$LINENO: result: $PYTHON" >&5
50667 echo "${ECHO_T}$PYTHON" >&6; }
50668 else
50669   { echo "$as_me:$LINENO: result: no" >&5
50670 echo "${ECHO_T}no" >&6; }
50671 fi
50672
50673
50674    if test "x$PYTHON" = "x"; then
50675      COND_PYTHON="#"
50676    fi
50677
50678 fi
50679
50680 if test "$wxUSE_MENUS" = "yes"; then
50681     cat >>confdefs.h <<\_ACEOF
50682 #define wxUSE_MENUS 1
50683 _ACEOF
50684
50685     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
50686 fi
50687
50688 if test "$wxUSE_MIMETYPE" = "yes"; then
50689     cat >>confdefs.h <<\_ACEOF
50690 #define wxUSE_MIMETYPE 1
50691 _ACEOF
50692
50693 fi
50694
50695 if test "$wxUSE_MINIFRAME" = "yes"; then
50696     cat >>confdefs.h <<\_ACEOF
50697 #define wxUSE_MINIFRAME 1
50698 _ACEOF
50699
50700 fi
50701
50702 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
50703     cat >>confdefs.h <<\_ACEOF
50704 #define wxUSE_SYSTEM_OPTIONS 1
50705 _ACEOF
50706
50707 fi
50708
50709 if test "$wxUSE_TASKBARICON" = "yes"; then
50710     cat >>confdefs.h <<\_ACEOF
50711 #define wxUSE_TASKBARICON 1
50712 _ACEOF
50713
50714     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
50715 fi
50716
50717
50718 if test "$wxUSE_VALIDATORS" = "yes"; then
50719     cat >>confdefs.h <<\_ACEOF
50720 #define wxUSE_VALIDATORS 1
50721 _ACEOF
50722
50723     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
50724 fi
50725
50726 if test "$wxUSE_PALETTE" = "yes" ; then
50727     if test "$wxUSE_DFB" = 1; then
50728         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
50729 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
50730         wxUSE_PALETTE=no
50731     else
50732         cat >>confdefs.h <<\_ACEOF
50733 #define wxUSE_PALETTE 1
50734 _ACEOF
50735
50736     fi
50737 fi
50738
50739 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
50740     LIBS=" -lunicows $LIBS"
50741 fi
50742
50743 USE_RICHTEXT=0
50744 if test "$wxUSE_RICHTEXT" = "yes"; then
50745     cat >>confdefs.h <<\_ACEOF
50746 #define wxUSE_RICHTEXT 1
50747 _ACEOF
50748
50749     USE_RICHTEXT=1
50750     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
50751 fi
50752
50753 if test "$wxUSE_WEBVIEW" = "yes"; then
50754     USE_WEBVIEW_WEBKIT=0
50755     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
50756         if test "$wxUSE_GTK" = 1; then
50757             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
50758 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
50759
50760   ac_find_libraries=
50761   for ac_dir in  $SEARCH_LIB
50762   do
50763     for ac_extension in a so sl dylib dll.a; do
50764       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
50765         ac_find_libraries=$ac_dir
50766         break 2
50767       fi
50768     done
50769   done
50770
50771             if test "$ac_find_libraries" != "" ; then
50772
50773     if test "$ac_find_libraries" = "default location"; then
50774     ac_path_to_link=""
50775   else
50776     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
50777     result=$?
50778     if test $result = 0; then
50779       ac_path_to_link=""
50780     else
50781       ac_path_to_link=" -L$ac_find_libraries"
50782     fi
50783   fi
50784
50785                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
50786                     LDFLAGS="$LDFLAGS $ac_path_to_link"
50787                 fi
50788                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
50789                 { echo "$as_me:$LINENO: result: yes" >&5
50790 echo "${ECHO_T}yes" >&6; }
50791
50792                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
50793 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
50794
50795 ac_find_includes=
50796 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
50797   do
50798     if test -f "$ac_dir/webkit/webkit.h"; then
50799       ac_find_includes=$ac_dir
50800       break
50801     fi
50802   done
50803
50804                 if test "$ac_find_includes" != "" ; then
50805                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50806 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50807
50808     if test "x$ac_find_includes" = "x/usr/include"; then
50809     ac_path_to_include=""
50810   else
50811     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50812     result=$?
50813     if test $result = 0; then
50814       ac_path_to_include=""
50815     else
50816       ac_path_to_include=" -I$ac_find_includes"
50817     fi
50818   fi
50819
50820                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50821
50822                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
50823 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
50824
50825 ac_find_includes=
50826 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
50827   do
50828     if test -f "$ac_dir/libsoup/soup.h"; then
50829       ac_find_includes=$ac_dir
50830       break
50831     fi
50832   done
50833
50834                    if test "$ac_find_includes" != "" ; then
50835                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50836 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50837
50838     if test "x$ac_find_includes" = "x/usr/include"; then
50839     ac_path_to_include=""
50840   else
50841     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50842     result=$?
50843     if test $result = 0; then
50844       ac_path_to_include=""
50845     else
50846       ac_path_to_include=" -I$ac_find_includes"
50847     fi
50848   fi
50849
50850                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50851
50852                        USE_WEBVIEW_WEBKIT=1
50853                    else
50854                        { echo "$as_me:$LINENO: result: not found" >&5
50855 echo "${ECHO_T}not found" >&6; }
50856                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
50857 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
50858                    fi
50859                 else
50860                    { echo "$as_me:$LINENO: result: not found" >&5
50861 echo "${ECHO_T}not found" >&6; }
50862                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
50863 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
50864                 fi
50865             else
50866                 { echo "$as_me:$LINENO: result: no" >&5
50867 echo "${ECHO_T}no" >&6; }
50868                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
50869 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
50870             fi
50871         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50872                                     old_CPPFLAGS="$CPPFLAGS"
50873             CPPFLAGS="-x objective-c++ $CPPFLAGS"
50874             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50875 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50876 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50877   echo $ECHO_N "(cached) $ECHO_C" >&6
50878 else
50879   cat >conftest.$ac_ext <<_ACEOF
50880 /* confdefs.h.  */
50881 _ACEOF
50882 cat confdefs.h >>conftest.$ac_ext
50883 cat >>conftest.$ac_ext <<_ACEOF
50884 /* end confdefs.h.  */
50885
50886                                 #include <Carbon/Carbon.h>
50887                                 #include <WebKit/WebKit.h>
50888
50889
50890 #include <WebKit/HIWebView.h>
50891 _ACEOF
50892 rm -f conftest.$ac_objext
50893 if { (ac_try="$ac_compile"
50894 case "(($ac_try" in
50895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50896   *) ac_try_echo=$ac_try;;
50897 esac
50898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50899   (eval "$ac_compile") 2>conftest.er1
50900   ac_status=$?
50901   grep -v '^ *+' conftest.er1 >conftest.err
50902   rm -f conftest.er1
50903   cat conftest.err >&5
50904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50905   (exit $ac_status); } && {
50906          test -z "$ac_c_werror_flag" ||
50907          test ! -s conftest.err
50908        } && test -s conftest.$ac_objext; then
50909   ac_cv_header_WebKit_HIWebView_h=yes
50910 else
50911   echo "$as_me: failed program was:" >&5
50912 sed 's/^/| /' conftest.$ac_ext >&5
50913
50914         ac_cv_header_WebKit_HIWebView_h=no
50915 fi
50916
50917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50918 fi
50919 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50920 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50921 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50922
50923                                 USE_WEBVIEW_WEBKIT=1
50924                                 WEBKIT_LINK="-framework WebKit"
50925
50926 else
50927
50928                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
50929 echo "$as_me: WARNING: WebKit headers not found" >&2;}
50930
50931 fi
50932
50933
50934             CPPFLAGS="$old_CPPFLAGS"
50935         fi
50936     fi
50937
50938     wxUSE_WEBVIEW="no"
50939     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
50940         if test "$USE_WEBVIEW_WEBKIT" = 1; then
50941             wxUSE_WEBVIEW="yes"
50942             cat >>confdefs.h <<\_ACEOF
50943 #define wxUSE_WEBVIEW_WEBKIT 1
50944 _ACEOF
50945
50946         else
50947             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
50948 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
50949         fi
50950     elif test "$wxUSE_MSW" = 1; then
50951         if test "$wxUSE_WEBVIEW_IE" = "yes"; then
50952                                     wxUSE_WEBVIEW="yes"
50953             cat >>confdefs.h <<\_ACEOF
50954 #define wxUSE_WEBVIEW_IE 1
50955 _ACEOF
50956
50957         fi
50958     fi
50959 fi
50960
50961 if test "$wxUSE_WEBVIEW" = "yes"; then
50962     USE_WEBVIEW=1
50963     cat >>confdefs.h <<\_ACEOF
50964 #define wxUSE_WEBVIEW 1
50965 _ACEOF
50966
50967     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
50968 else
50969     USE_WEBVIEW=0
50970 fi
50971
50972
50973 if test "$wxUSE_IMAGE" = "yes" ; then
50974     cat >>confdefs.h <<\_ACEOF
50975 #define wxUSE_IMAGE 1
50976 _ACEOF
50977
50978
50979     if test "$wxUSE_GIF" = "yes" ; then
50980       cat >>confdefs.h <<\_ACEOF
50981 #define wxUSE_GIF 1
50982 _ACEOF
50983
50984     fi
50985
50986     if test "$wxUSE_PCX" = "yes" ; then
50987       cat >>confdefs.h <<\_ACEOF
50988 #define wxUSE_PCX 1
50989 _ACEOF
50990
50991     fi
50992
50993     if test "$wxUSE_TGA" = "yes" ; then
50994       cat >>confdefs.h <<\_ACEOF
50995 #define wxUSE_TGA 1
50996 _ACEOF
50997
50998     fi
50999
51000     if test "$wxUSE_IFF" = "yes" ; then
51001       cat >>confdefs.h <<\_ACEOF
51002 #define wxUSE_IFF 1
51003 _ACEOF
51004
51005     fi
51006
51007     if test "$wxUSE_PNM" = "yes" ; then
51008       cat >>confdefs.h <<\_ACEOF
51009 #define wxUSE_PNM 1
51010 _ACEOF
51011
51012     fi
51013
51014     if test "$wxUSE_XPM" = "yes" ; then
51015       cat >>confdefs.h <<\_ACEOF
51016 #define wxUSE_XPM 1
51017 _ACEOF
51018
51019     fi
51020
51021     if test "$wxUSE_ICO_CUR" = "yes" ; then
51022       cat >>confdefs.h <<\_ACEOF
51023 #define wxUSE_ICO_CUR 1
51024 _ACEOF
51025
51026     fi
51027 fi
51028
51029
51030 if test "$wxUSE_ABOUTDLG" = "yes"; then
51031     cat >>confdefs.h <<\_ACEOF
51032 #define wxUSE_ABOUTDLG 1
51033 _ACEOF
51034
51035 fi
51036
51037 if test "$wxUSE_CHOICEDLG" = "yes"; then
51038     cat >>confdefs.h <<\_ACEOF
51039 #define wxUSE_CHOICEDLG 1
51040 _ACEOF
51041
51042 fi
51043
51044 if test "$wxUSE_COLOURDLG" = "yes"; then
51045     cat >>confdefs.h <<\_ACEOF
51046 #define wxUSE_COLOURDLG 1
51047 _ACEOF
51048
51049 fi
51050
51051 if test "$wxUSE_FILEDLG" = "yes"; then
51052     cat >>confdefs.h <<\_ACEOF
51053 #define wxUSE_FILEDLG 1
51054 _ACEOF
51055
51056 fi
51057
51058 if test "$wxUSE_FINDREPLDLG" = "yes"; then
51059     cat >>confdefs.h <<\_ACEOF
51060 #define wxUSE_FINDREPLDLG 1
51061 _ACEOF
51062
51063 fi
51064
51065 if test "$wxUSE_FONTDLG" = "yes"; then
51066     cat >>confdefs.h <<\_ACEOF
51067 #define wxUSE_FONTDLG 1
51068 _ACEOF
51069
51070 fi
51071
51072 if test "$wxUSE_DIRDLG" = "yes"; then
51073     if test "$wxUSE_TREECTRL" != "yes"; then
51074         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
51075 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
51076     else
51077         cat >>confdefs.h <<\_ACEOF
51078 #define wxUSE_DIRDLG 1
51079 _ACEOF
51080
51081     fi
51082 fi
51083
51084 if test "$wxUSE_MSGDLG" = "yes"; then
51085     cat >>confdefs.h <<\_ACEOF
51086 #define wxUSE_MSGDLG 1
51087 _ACEOF
51088
51089 fi
51090
51091 if test "$wxUSE_NUMBERDLG" = "yes"; then
51092     cat >>confdefs.h <<\_ACEOF
51093 #define wxUSE_NUMBERDLG 1
51094 _ACEOF
51095
51096 fi
51097
51098 if test "$wxUSE_PROGRESSDLG" = "yes"; then
51099     cat >>confdefs.h <<\_ACEOF
51100 #define wxUSE_PROGRESSDLG 1
51101 _ACEOF
51102
51103 fi
51104
51105 if test "$wxUSE_SPLASH" = "yes"; then
51106     cat >>confdefs.h <<\_ACEOF
51107 #define wxUSE_SPLASH 1
51108 _ACEOF
51109
51110     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
51111 fi
51112
51113 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
51114     cat >>confdefs.h <<\_ACEOF
51115 #define wxUSE_STARTUP_TIPS 1
51116 _ACEOF
51117
51118 fi
51119
51120 if test "$wxUSE_TEXTDLG" = "yes"; then
51121     cat >>confdefs.h <<\_ACEOF
51122 #define wxUSE_TEXTDLG 1
51123 _ACEOF
51124
51125 fi
51126
51127 if test "$wxUSE_WIZARDDLG" = "yes"; then
51128     cat >>confdefs.h <<\_ACEOF
51129 #define wxUSE_WIZARDDLG 1
51130 _ACEOF
51131
51132     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
51133 fi
51134
51135
51136 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
51137     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
51138         cat >>confdefs.h <<\_ACEOF
51139 #define wxUSE_OWNER_DRAWN 1
51140 _ACEOF
51141
51142     fi
51143 fi
51144
51145
51146 if test "$wxUSE_MSW" = 1 ; then
51147
51148     if test "$wxUSE_DC_CACHEING" = "yes"; then
51149         cat >>confdefs.h <<\_ACEOF
51150 #define wxUSE_DC_CACHEING 1
51151 _ACEOF
51152
51153     fi
51154
51155     if test "$wxUSE_DIB" = "yes"; then
51156         cat >>confdefs.h <<\_ACEOF
51157 #define wxUSE_WXDIB 1
51158 _ACEOF
51159
51160     fi
51161
51162     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
51163         cat >>confdefs.h <<\_ACEOF
51164 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
51165 _ACEOF
51166
51167     fi
51168
51169     if test "$wxUSE_UXTHEME" = "yes"; then
51170         cat >>confdefs.h <<\_ACEOF
51171 #define wxUSE_UXTHEME 1
51172 _ACEOF
51173
51174     fi
51175
51176 fi
51177
51178 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
51179     cat >>confdefs.h <<\_ACEOF
51180 #define wxUSE_AUTOID_MANAGEMENT 1
51181 _ACEOF
51182
51183 fi
51184
51185 if test "$USE_WIN32" = 1 ; then
51186     if test "$wxUSE_INICONF" = "yes"; then
51187         cat >>confdefs.h <<\_ACEOF
51188 #define wxUSE_INICONF 1
51189 _ACEOF
51190
51191     fi
51192
51193     if test "$wxUSE_REGKEY" = "yes"; then
51194         cat >>confdefs.h <<\_ACEOF
51195 #define wxUSE_REGKEY 1
51196 _ACEOF
51197
51198     fi
51199 fi
51200
51201
51202 if test "$wxUSE_MAC" = 1; then
51203     wxUSE_GRAPHICS_CONTEXT="yes"
51204 fi
51205
51206 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
51207     wx_has_graphics=0
51208     if test "$wxUSE_MSW" = 1; then
51209         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
51210 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
51211 if test "${wx_cv_lib_gdiplus+set}" = set; then
51212   echo $ECHO_N "(cached) $ECHO_C" >&6
51213 else
51214
51215                                                 ac_ext=cpp
51216 ac_cpp='$CXXCPP $CPPFLAGS'
51217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51220
51221                 cat >conftest.$ac_ext <<_ACEOF
51222 /* confdefs.h.  */
51223 _ACEOF
51224 cat confdefs.h >>conftest.$ac_ext
51225 cat >>conftest.$ac_ext <<_ACEOF
51226 /* end confdefs.h.  */
51227 #include <windows.h>
51228                      #include <gdiplus.h>
51229 int
51230 main ()
51231 {
51232
51233                         using namespace Gdiplus;
51234
51235   ;
51236   return 0;
51237 }
51238 _ACEOF
51239 rm -f conftest.$ac_objext
51240 if { (ac_try="$ac_compile"
51241 case "(($ac_try" in
51242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51243   *) ac_try_echo=$ac_try;;
51244 esac
51245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51246   (eval "$ac_compile") 2>conftest.er1
51247   ac_status=$?
51248   grep -v '^ *+' conftest.er1 >conftest.err
51249   rm -f conftest.er1
51250   cat conftest.err >&5
51251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51252   (exit $ac_status); } && {
51253          test -z "$ac_cxx_werror_flag" ||
51254          test ! -s conftest.err
51255        } && test -s conftest.$ac_objext; then
51256   wx_cv_lib_gdiplus=yes
51257 else
51258   echo "$as_me: failed program was:" >&5
51259 sed 's/^/| /' conftest.$ac_ext >&5
51260
51261         wx_cv_lib_gdiplus=no
51262
51263 fi
51264
51265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51266                 ac_ext=c
51267 ac_cpp='$CPP $CPPFLAGS'
51268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51271
51272
51273
51274 fi
51275 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
51276 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
51277         if test "$wx_cv_lib_gdiplus" = "yes"; then
51278             wx_has_graphics=1
51279         fi
51280     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
51281
51282 pkg_failed=no
51283 { echo "$as_me:$LINENO: checking for CAIRO" >&5
51284 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
51285
51286 if test -n "$PKG_CONFIG"; then
51287     if test -n "$CAIRO_CFLAGS"; then
51288         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
51289     else
51290         if test -n "$PKG_CONFIG" && \
51291     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51292   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51293   ac_status=$?
51294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51295   (exit $ac_status); }; then
51296   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
51297 else
51298   pkg_failed=yes
51299 fi
51300     fi
51301 else
51302         pkg_failed=untried
51303 fi
51304 if test -n "$PKG_CONFIG"; then
51305     if test -n "$CAIRO_LIBS"; then
51306         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
51307     else
51308         if test -n "$PKG_CONFIG" && \
51309     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51310   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51311   ac_status=$?
51312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51313   (exit $ac_status); }; then
51314   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
51315 else
51316   pkg_failed=yes
51317 fi
51318     fi
51319 else
51320         pkg_failed=untried
51321 fi
51322
51323
51324
51325 if test $pkg_failed = yes; then
51326
51327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51328         _pkg_short_errors_supported=yes
51329 else
51330         _pkg_short_errors_supported=no
51331 fi
51332         if test $_pkg_short_errors_supported = yes; then
51333                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
51334         else
51335                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
51336         fi
51337         # Put the nasty error message in config.log where it belongs
51338         echo "$CAIRO_PKG_ERRORS" >&5
51339
51340         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51341 echo "$as_me: WARNING: Cairo library not found" >&2;}
51342
51343 elif test $pkg_failed = untried; then
51344         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51345 echo "$as_me: WARNING: Cairo library not found" >&2;}
51346
51347 else
51348         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
51349         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
51350         { echo "$as_me:$LINENO: result: yes" >&5
51351 echo "${ECHO_T}yes" >&6; }
51352         wx_has_graphics=1
51353 fi
51354         if test "$wx_has_graphics" = 1; then
51355                                                 save_LIBS="$LIBS"
51356             LIBS="$LIBS $CAIRO_LIBS"
51357
51358 for ac_func in cairo_push_group
51359 do
51360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51364   echo $ECHO_N "(cached) $ECHO_C" >&6
51365 else
51366   cat >conftest.$ac_ext <<_ACEOF
51367 /* confdefs.h.  */
51368 _ACEOF
51369 cat confdefs.h >>conftest.$ac_ext
51370 cat >>conftest.$ac_ext <<_ACEOF
51371 /* end confdefs.h.  */
51372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51374 #define $ac_func innocuous_$ac_func
51375
51376 /* System header to define __stub macros and hopefully few prototypes,
51377     which can conflict with char $ac_func (); below.
51378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51379     <limits.h> exists even on freestanding compilers.  */
51380
51381 #ifdef __STDC__
51382 # include <limits.h>
51383 #else
51384 # include <assert.h>
51385 #endif
51386
51387 #undef $ac_func
51388
51389 /* Override any GCC internal prototype to avoid an error.
51390    Use char because int might match the return type of a GCC
51391    builtin and then its argument prototype would still apply.  */
51392 #ifdef __cplusplus
51393 extern "C"
51394 #endif
51395 char $ac_func ();
51396 /* The GNU C library defines this for functions which it implements
51397     to always fail with ENOSYS.  Some functions are actually named
51398     something starting with __ and the normal name is an alias.  */
51399 #if defined __stub_$ac_func || defined __stub___$ac_func
51400 choke me
51401 #endif
51402
51403 int
51404 main ()
51405 {
51406 return $ac_func ();
51407   ;
51408   return 0;
51409 }
51410 _ACEOF
51411 rm -f conftest.$ac_objext conftest$ac_exeext
51412 if { (ac_try="$ac_link"
51413 case "(($ac_try" in
51414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51415   *) ac_try_echo=$ac_try;;
51416 esac
51417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51418   (eval "$ac_link") 2>conftest.er1
51419   ac_status=$?
51420   grep -v '^ *+' conftest.er1 >conftest.err
51421   rm -f conftest.er1
51422   cat conftest.err >&5
51423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51424   (exit $ac_status); } && {
51425          test -z "$ac_c_werror_flag" ||
51426          test ! -s conftest.err
51427        } && test -s conftest$ac_exeext &&
51428        $as_test_x conftest$ac_exeext; then
51429   eval "$as_ac_var=yes"
51430 else
51431   echo "$as_me: failed program was:" >&5
51432 sed 's/^/| /' conftest.$ac_ext >&5
51433
51434         eval "$as_ac_var=no"
51435 fi
51436
51437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51438       conftest$ac_exeext conftest.$ac_ext
51439 fi
51440 ac_res=`eval echo '${'$as_ac_var'}'`
51441                { echo "$as_me:$LINENO: result: $ac_res" >&5
51442 echo "${ECHO_T}$ac_res" >&6; }
51443 if test `eval echo '${'$as_ac_var'}'` = yes; then
51444   cat >>confdefs.h <<_ACEOF
51445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51446 _ACEOF
51447
51448 fi
51449 done
51450
51451             LIBS="$save_LIBS"
51452             if test "$ac_cv_func_cairo_push_group" = "no"; then
51453                 wx_has_graphics=0
51454                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
51455 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
51456             else
51457                 cat >>confdefs.h <<\_ACEOF
51458 #define wxUSE_CAIRO 1
51459 _ACEOF
51460
51461
51462                                                 if test "$wxUSE_GTK" != 1; then
51463                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
51464                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
51465                 fi
51466             fi
51467         fi
51468     else
51469                 wx_has_graphics=1
51470     fi
51471
51472     if test "$wx_has_graphics" = 1; then
51473         cat >>confdefs.h <<\_ACEOF
51474 #define wxUSE_GRAPHICS_CONTEXT 1
51475 _ACEOF
51476
51477     else
51478         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
51479 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
51480     fi
51481 fi
51482
51483
51484 USE_MEDIA=0
51485
51486 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
51487     USE_MEDIA=1
51488
51489                 if test "$wxUSE_GTK" = 1; then
51490         wxUSE_GSTREAMER="no"
51491
51492                                                                 GST_VERSION_MAJOR=0
51493         GST_VERSION_MINOR=10
51494         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51495
51496         if test "$wxUSE_GSTREAMER8" = "no"; then
51497
51498 pkg_failed=no
51499 { echo "$as_me:$LINENO: checking for GST" >&5
51500 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51501
51502 if test -n "$PKG_CONFIG"; then
51503     if test -n "$GST_CFLAGS"; then
51504         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51505     else
51506         if test -n "$PKG_CONFIG" && \
51507     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51508   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51509   ac_status=$?
51510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51511   (exit $ac_status); }; then
51512   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51513 else
51514   pkg_failed=yes
51515 fi
51516     fi
51517 else
51518         pkg_failed=untried
51519 fi
51520 if test -n "$PKG_CONFIG"; then
51521     if test -n "$GST_LIBS"; then
51522         pkg_cv_GST_LIBS="$GST_LIBS"
51523     else
51524         if test -n "$PKG_CONFIG" && \
51525     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51526   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51527   ac_status=$?
51528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51529   (exit $ac_status); }; then
51530   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51531 else
51532   pkg_failed=yes
51533 fi
51534     fi
51535 else
51536         pkg_failed=untried
51537 fi
51538
51539
51540
51541 if test $pkg_failed = yes; then
51542
51543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51544         _pkg_short_errors_supported=yes
51545 else
51546         _pkg_short_errors_supported=no
51547 fi
51548         if test $_pkg_short_errors_supported = yes; then
51549                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51550         else
51551                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51552         fi
51553         # Put the nasty error message in config.log where it belongs
51554         echo "$GST_PKG_ERRORS" >&5
51555
51556
51557                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51558 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51559                     GST_VERSION_MINOR=8
51560
51561
51562 elif test $pkg_failed = untried; then
51563
51564                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51565 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51566                     GST_VERSION_MINOR=8
51567
51568
51569 else
51570         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51571         GST_LIBS=$pkg_cv_GST_LIBS
51572         { echo "$as_me:$LINENO: result: yes" >&5
51573 echo "${ECHO_T}yes" >&6; }
51574
51575                     wxUSE_GSTREAMER="yes"
51576                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
51577
51578 fi
51579         else
51580                         GST_VERSION_MINOR=8
51581         fi
51582
51583         if test $GST_VERSION_MINOR = "8"; then
51584             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51585
51586 pkg_failed=no
51587 { echo "$as_me:$LINENO: checking for GST" >&5
51588 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51589
51590 if test -n "$PKG_CONFIG"; then
51591     if test -n "$GST_CFLAGS"; then
51592         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51593     else
51594         if test -n "$PKG_CONFIG" && \
51595     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51596   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51597   ac_status=$?
51598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51599   (exit $ac_status); }; then
51600   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51601 else
51602   pkg_failed=yes
51603 fi
51604     fi
51605 else
51606         pkg_failed=untried
51607 fi
51608 if test -n "$PKG_CONFIG"; then
51609     if test -n "$GST_LIBS"; then
51610         pkg_cv_GST_LIBS="$GST_LIBS"
51611     else
51612         if test -n "$PKG_CONFIG" && \
51613     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51614   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51615   ac_status=$?
51616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51617   (exit $ac_status); }; then
51618   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51619 else
51620   pkg_failed=yes
51621 fi
51622     fi
51623 else
51624         pkg_failed=untried
51625 fi
51626
51627
51628
51629 if test $pkg_failed = yes; then
51630
51631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51632         _pkg_short_errors_supported=yes
51633 else
51634         _pkg_short_errors_supported=no
51635 fi
51636         if test $_pkg_short_errors_supported = yes; then
51637                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51638         else
51639                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51640         fi
51641         # Put the nasty error message in config.log where it belongs
51642         echo "$GST_PKG_ERRORS" >&5
51643
51644
51645                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51646 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51647
51648 elif test $pkg_failed = untried; then
51649
51650                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51651 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51652
51653 else
51654         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51655         GST_LIBS=$pkg_cv_GST_LIBS
51656         { echo "$as_me:$LINENO: result: yes" >&5
51657 echo "${ECHO_T}yes" >&6; }
51658         wxUSE_GSTREAMER="yes"
51659 fi
51660         fi
51661
51662
51663         if test "$wxUSE_GSTREAMER" = "yes"; then
51664             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
51665             EXTRALIBS_MEDIA="$GST_LIBS"
51666
51667             cat >>confdefs.h <<\_ACEOF
51668 #define wxUSE_GSTREAMER 1
51669 _ACEOF
51670
51671         else
51672             USE_MEDIA=0
51673         fi
51674     fi
51675
51676     if test $USE_MEDIA = 1; then
51677         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
51678         cat >>confdefs.h <<\_ACEOF
51679 #define wxUSE_MEDIACTRL 1
51680 _ACEOF
51681
51682     else
51683         if test "$wxUSE_MEDIACTRL" = "yes"; then
51684             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
51685 echo "$as_me: error: GStreamer not available" >&2;}
51686    { (exit 1); exit 1; }; }
51687         else
51688                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
51689 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
51690         fi
51691     fi
51692 fi
51693
51694
51695 if test "$cross_compiling" != "no"; then
51696         OSINFO="\"$host\""
51697 else
51698         OSINFO=`uname -s -r -m`
51699     OSINFO="\"$OSINFO\""
51700 fi
51701
51702 cat >>confdefs.h <<_ACEOF
51703 #define WXWIN_OS_DESCRIPTION $OSINFO
51704 _ACEOF
51705
51706
51707
51708 if test "x$prefix" != "xNONE"; then
51709     wxPREFIX=$prefix
51710 else
51711     wxPREFIX=$ac_default_prefix
51712 fi
51713
51714 cat >>confdefs.h <<_ACEOF
51715 #define wxINSTALL_PREFIX "$wxPREFIX"
51716 _ACEOF
51717
51718
51719
51720
51721 STD_BASE_LIBS="base"
51722 STD_GUI_LIBS=""
51723 BUILT_WX_LIBS="base"
51724 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
51725
51726 if test "$wxUSE_SOCKETS" = "yes" ; then
51727     STD_BASE_LIBS="net $STD_BASE_LIBS"
51728     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
51729 fi
51730 if test "$wxUSE_XML" = "yes" ; then
51731     STD_BASE_LIBS="xml $STD_BASE_LIBS"
51732     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
51733 fi
51734
51735 if test "$wxUSE_GUI" = "yes"; then
51736     STD_GUI_LIBS="adv core"
51737     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
51738
51739     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
51740         STD_GUI_LIBS="qa $STD_GUI_LIBS"
51741         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
51742     fi
51743     if test "$wxUSE_HTML" = "yes" ; then
51744         STD_GUI_LIBS="html $STD_GUI_LIBS"
51745         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
51746     fi
51747     if test "$wxUSE_MEDIACTRL" = "yes" ; then
51748         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
51749     fi
51750     if test "$wxUSE_OPENGL" = "yes" ; then
51751         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
51752     fi
51753     if test "$wxUSE_AUI" = "yes" ; then
51754         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
51755     fi
51756     if test "$wxUSE_PROPGRID" = "yes" ; then
51757         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
51758     fi
51759     if test "$wxUSE_RIBBON" = "yes" ; then
51760         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
51761     fi
51762     if test "$wxUSE_RICHTEXT" = "yes" ; then
51763         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
51764     fi
51765     if test "$wxUSE_STC" = "yes" ; then
51766         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
51767     fi
51768     if test "$wxUSE_WEBVIEW" = "yes" ; then
51769         STD_GUI_LIBS="webview $STD_GUI_LIBS"
51770         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
51771     fi
51772     if test "$wxUSE_XRC" = "yes" ; then
51773         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
51774         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
51775     fi
51776 fi
51777
51778
51779
51780
51781
51782
51783
51784 EXTRA_FRAMEWORKS=
51785 if test "$wxUSE_MAC" = 1 ; then
51786     if test "$USE_DARWIN" = 1; then
51787         if test "$wxUSE_OSX_IPHONE" = 1; then
51788             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
51789         else
51790             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
51791         fi
51792     fi
51793 fi
51794 if test "$wxUSE_OLD_COCOA" = 1 ; then
51795     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
51796     if test "$wxUSE_MEDIACTRL" = "yes"; then
51797         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
51798     fi
51799 fi
51800 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
51801     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
51802 fi
51803
51804 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
51805 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
51806
51807 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
51808
51809 if test "$wxUSE_GUI" = "yes"; then
51810
51811
51812         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
51813                      erase event exec font image minimal render \
51814                      shaped svg taborder vscroll widgets wrapsizer"
51815
51816     if test "$wxUSE_MONOLITHIC" != "yes"; then
51817         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
51818     fi
51819     if test "$TOOLKIT" = "MSW"; then
51820         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
51821         if test "$wxUSE_UNIVERSAL" != "yes"; then
51822             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
51823         fi
51824     fi
51825     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
51826         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
51827     fi
51828 else
51829     SAMPLES_SUBDIRS="console"
51830     if test "$wxUSE_SOCKETS" = "yes" ; then
51831         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51832     fi
51833     if test "$wxUSE_IPC" = "yes" ; then
51834         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
51835     fi
51836 fi
51837
51838
51839 if test "x$INTELCC" = "xyes" ; then
51840                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
51841 elif test "$GCC" = yes ; then
51842     CWARNINGS="-Wall -Wundef"
51843 fi
51844
51845 if test "x$INTELCXX" = "xyes" ; then
51846                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
51847 elif test "$GXX" = yes ; then
51848     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
51849     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
51850 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
51851 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
51852   echo $ECHO_N "(cached) $ECHO_C" >&6
51853 else
51854   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
51855
51856  ac_ext=cpp
51857 ac_cpp='$CXXCPP $CPPFLAGS'
51858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51861
51862  ac_save_CXXFLAGS="$CXXFLAGS"
51863 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
51864 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
51865    cat >conftest.$ac_ext <<_ACEOF
51866 /* confdefs.h.  */
51867 _ACEOF
51868 cat confdefs.h >>conftest.$ac_ext
51869 cat >>conftest.$ac_ext <<_ACEOF
51870 /* end confdefs.h.  */
51871
51872 int
51873 main ()
51874 {
51875 return 0;
51876   ;
51877   return 0;
51878 }
51879 _ACEOF
51880 rm -f conftest.$ac_objext
51881 if { (ac_try="$ac_compile"
51882 case "(($ac_try" in
51883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51884   *) ac_try_echo=$ac_try;;
51885 esac
51886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51887   (eval "$ac_compile") 2>conftest.er1
51888   ac_status=$?
51889   grep -v '^ *+' conftest.er1 >conftest.err
51890   rm -f conftest.er1
51891   cat conftest.err >&5
51892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51893   (exit $ac_status); } && {
51894          test -z "$ac_cxx_werror_flag" ||
51895          test ! -s conftest.err
51896        } && test -s conftest.$ac_objext; then
51897   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
51898 else
51899   echo "$as_me: failed program was:" >&5
51900 sed 's/^/| /' conftest.$ac_ext >&5
51901
51902
51903 fi
51904
51905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51906 done
51907  CXXFLAGS="$ac_save_CXXFLAGS"
51908  ac_ext=c
51909 ac_cpp='$CPP $CPPFLAGS'
51910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51913
51914
51915 fi
51916 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
51917 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
51918 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
51919      .ok|.ok,*)  ;;
51920    .|.no|.no,*)  ;;
51921    *)
51922    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
51923    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
51924   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
51925   ac_status=$?
51926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51927   (exit $ac_status); }
51928    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
51929   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
51930   ac_status=$?
51931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51932   (exit $ac_status); }
51933                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
51934    fi
51935  ;;
51936 esac
51937
51938
51939                     if test "$wxUSE_MAC" = 1 ; then
51940         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
51941     fi
51942 fi
51943
51944
51945 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
51946 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
51947
51948
51949 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
51950  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
51951  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
51952  $CPPFLAGS `
51953
51954 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
51955 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
51956 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
51957 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
51958 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
51959
51960 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
51961
51962
51963 if test "x$MWCC" = "xyes"; then
51964
51965             CC="$CC -cwd source -I-"
51966     CXX="$CXX -cwd source -I-"
51967 fi
51968
51969
51970 LIBS=`echo $LIBS`
51971 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
51972 EXTRALIBS_XML="$EXPAT_LINK"
51973 EXTRALIBS_HTML="$MSPACK_LINK"
51974 EXTRALIBS_MEDIA="$GST_LIBS"
51975 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
51976 if test "$wxUSE_GUI" = "yes"; then
51977     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
51978 fi
51979 if test "$wxUSE_OPENGL" = "yes"; then
51980     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
51981 fi
51982
51983 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
51984
51985 WXCONFIG_LIBS="$LIBS"
51986
51987 if test "$wxUSE_REGEX" = "builtin" ; then
51988     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
51989 fi
51990 if test "$wxUSE_EXPAT" = "builtin" ; then
51991     wxconfig_3rdparty="expat $wxconfig_3rdparty"
51992 fi
51993 if test "$wxUSE_LIBTIFF" = "builtin" ; then
51994     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
51995 fi
51996 if test "$wxUSE_LIBJPEG" = "builtin" ; then
51997     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
51998 fi
51999 if test "$wxUSE_LIBPNG" = "builtin" ; then
52000     wxconfig_3rdparty="png $wxconfig_3rdparty"
52001 fi
52002 if test "$wxUSE_ZLIB" = "builtin" ; then
52003     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
52004 fi
52005
52006 for i in $wxconfig_3rdparty ; do
52007     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
52008 done
52009
52010
52011 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
52012     WXUNIV=1
52013
52014     case "$wxUNIV_THEMES" in
52015         ''|all)
52016             cat >>confdefs.h <<\_ACEOF
52017 #define wxUSE_ALL_THEMES 1
52018 _ACEOF
52019
52020             ;;
52021
52022         *)
52023             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
52024                 cat >>confdefs.h <<_ACEOF
52025 #define wxUSE_THEME_$t 1
52026 _ACEOF
52027
52028             done
52029     esac
52030 else
52031     WXUNIV=0
52032 fi
52033
52034
52035
52036
52037
52038
52039
52040
52041 if test $wxUSE_MONOLITHIC = "yes" ; then
52042     MONOLITHIC=1
52043 else
52044     MONOLITHIC=0
52045 fi
52046
52047 if test $wxUSE_PLUGINS = "yes" ; then
52048     USE_PLUGINS=1
52049 else
52050     USE_PLUGINS=0
52051 fi
52052
52053 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
52054     USE_QA=1
52055 else
52056     USE_QA=0
52057 fi
52058
52059 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
52060     OFFICIAL_BUILD=1
52061 else
52062     OFFICIAL_BUILD=0
52063 fi
52064
52065
52066
52067
52068
52069
52070
52071
52072
52073
52074
52075
52076
52077
52078
52079
52080
52081
52082
52083
52084
52085
52086
52087
52088
52089
52090
52091 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
52092
52093
52094
52095
52096
52097
52098
52099
52100
52101
52102 case "$TOOLKIT" in
52103     GTK)
52104         TOOLKIT_DESC="GTK+"
52105         if test "$WXGTK2" = 1; then
52106             TOOLKIT_DESC="$TOOLKIT_DESC 2"
52107             if test "$wxUSE_GTKPRINT" = "yes" ; then
52108                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
52109             fi
52110             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
52111                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
52112             fi
52113             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
52114                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
52115             fi
52116             if test "$wxUSE_LIBHILDON" = "yes"; then
52117                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52118             fi
52119             if test "$wxUSE_LIBHILDON2" = "yes"; then
52120                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52121             fi
52122
52123             if test "$TOOLKIT_EXTRA" != ""; then
52124                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
52125             fi
52126         fi
52127         ;;
52128
52129     ?*)
52130         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
52131         ;;
52132
52133     *)
52134         TOOLKIT_DESC="base only"
52135         ;;
52136 esac
52137
52138 if test "$wxUSE_WINE" = "yes"; then
52139     BAKEFILE_FORCE_PLATFORM=win32
52140 fi
52141
52142 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
52143 then
52144     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
52145 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
52146 if test "${wx_cv_gcc_pch_bug+set}" = set; then
52147   echo $ECHO_N "(cached) $ECHO_C" >&6
52148 else
52149
52150             echo '#include <stdio.h>
52151                   const wchar_t test_var[] = L"awidetest";' > conftest.h
52152
52153             echo '#include "conftest.h"
52154                   int main()
52155                   {
52156                      printf("%ls", test_var);
52157                      return 0;
52158                   }' > conftest.cpp
52159
52160             wx_cv_gcc_pch_bug="pch not supported"
52161
52162             if $CXX conftest.h >/dev/null 2>&1
52163             then
52164                 wx_cv_gcc_pch_bug=
52165
52166                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
52167                 then
52168                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
52169                         grep awidetest >/dev/null
52170                     then
52171                         wx_cv_gcc_pch_bug=no
52172                     else
52173                         wx_cv_gcc_pch_bug=yes
52174                     fi
52175                 fi
52176             fi
52177
52178             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
52179
52180 fi
52181 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
52182 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
52183
52184     if test "$wx_cv_gcc_pch_bug" = yes; then
52185                         bk_use_pch=no
52186     fi
52187 fi
52188
52189
52190
52191
52192
52193
52194
52195     if test "x$BAKEFILE_HOST" = "x"; then
52196                if test "x${host}" = "x" ; then
52197                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
52198 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
52199    { (exit 1); exit 1; }; }
52200                fi
52201
52202         BAKEFILE_HOST="${host}"
52203     fi
52204
52205     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
52206
52207     if test -n "$ac_tool_prefix"; then
52208   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
52209 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
52210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52212 if test "${ac_cv_prog_RANLIB+set}" = set; then
52213   echo $ECHO_N "(cached) $ECHO_C" >&6
52214 else
52215   if test -n "$RANLIB"; then
52216   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
52217 else
52218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52219 for as_dir in $PATH
52220 do
52221   IFS=$as_save_IFS
52222   test -z "$as_dir" && as_dir=.
52223   for ac_exec_ext in '' $ac_executable_extensions; do
52224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52225     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
52226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52227     break 2
52228   fi
52229 done
52230 done
52231 IFS=$as_save_IFS
52232
52233 fi
52234 fi
52235 RANLIB=$ac_cv_prog_RANLIB
52236 if test -n "$RANLIB"; then
52237   { echo "$as_me:$LINENO: result: $RANLIB" >&5
52238 echo "${ECHO_T}$RANLIB" >&6; }
52239 else
52240   { echo "$as_me:$LINENO: result: no" >&5
52241 echo "${ECHO_T}no" >&6; }
52242 fi
52243
52244
52245 fi
52246 if test -z "$ac_cv_prog_RANLIB"; then
52247   ac_ct_RANLIB=$RANLIB
52248   # Extract the first word of "ranlib", so it can be a program name with args.
52249 set dummy ranlib; ac_word=$2
52250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52252 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
52253   echo $ECHO_N "(cached) $ECHO_C" >&6
52254 else
52255   if test -n "$ac_ct_RANLIB"; then
52256   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
52257 else
52258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52259 for as_dir in $PATH
52260 do
52261   IFS=$as_save_IFS
52262   test -z "$as_dir" && as_dir=.
52263   for ac_exec_ext in '' $ac_executable_extensions; do
52264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52265     ac_cv_prog_ac_ct_RANLIB="ranlib"
52266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52267     break 2
52268   fi
52269 done
52270 done
52271 IFS=$as_save_IFS
52272
52273 fi
52274 fi
52275 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
52276 if test -n "$ac_ct_RANLIB"; then
52277   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
52278 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
52279 else
52280   { echo "$as_me:$LINENO: result: no" >&5
52281 echo "${ECHO_T}no" >&6; }
52282 fi
52283
52284   if test "x$ac_ct_RANLIB" = x; then
52285     RANLIB=":"
52286   else
52287     case $cross_compiling:$ac_tool_warned in
52288 yes:)
52289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52290 whose name does not start with the host triplet.  If you think this
52291 configuration is useful to you, please write to autoconf@gnu.org." >&5
52292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52293 whose name does not start with the host triplet.  If you think this
52294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52295 ac_tool_warned=yes ;;
52296 esac
52297     RANLIB=$ac_ct_RANLIB
52298   fi
52299 else
52300   RANLIB="$ac_cv_prog_RANLIB"
52301 fi
52302
52303     # Find a good install program.  We prefer a C program (faster),
52304 # so one script is as good as another.  But avoid the broken or
52305 # incompatible versions:
52306 # SysV /etc/install, /usr/sbin/install
52307 # SunOS /usr/etc/install
52308 # IRIX /sbin/install
52309 # AIX /bin/install
52310 # AmigaOS /C/install, which installs bootblocks on floppy discs
52311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
52312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
52313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
52314 # OS/2's system install, which has a completely different semantic
52315 # ./install, which can be erroneously created by make from ./install.sh.
52316 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
52317 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
52318 if test -z "$INSTALL"; then
52319 if test "${ac_cv_path_install+set}" = set; then
52320   echo $ECHO_N "(cached) $ECHO_C" >&6
52321 else
52322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52323 for as_dir in $PATH
52324 do
52325   IFS=$as_save_IFS
52326   test -z "$as_dir" && as_dir=.
52327   # Account for people who put trailing slashes in PATH elements.
52328 case $as_dir/ in
52329   ./ | .// | /cC/* | \
52330   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
52331   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
52332   /usr/ucb/* ) ;;
52333   *)
52334     # OSF1 and SCO ODT 3.0 have their own names for install.
52335     # Don't use installbsd from OSF since it installs stuff as root
52336     # by default.
52337     for ac_prog in ginstall scoinst install; do
52338       for ac_exec_ext in '' $ac_executable_extensions; do
52339         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
52340           if test $ac_prog = install &&
52341             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52342             # AIX install.  It has an incompatible calling convention.
52343             :
52344           elif test $ac_prog = install &&
52345             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52346             # program-specific install script used by HP pwplus--don't use.
52347             :
52348           else
52349             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
52350             break 3
52351           fi
52352         fi
52353       done
52354     done
52355     ;;
52356 esac
52357 done
52358 IFS=$as_save_IFS
52359
52360
52361 fi
52362   if test "${ac_cv_path_install+set}" = set; then
52363     INSTALL=$ac_cv_path_install
52364   else
52365     # As a last resort, use the slow shell script.  Don't cache a
52366     # value for INSTALL within a source directory, because that will
52367     # break other packages using the cache if that directory is
52368     # removed, or if the value is a relative name.
52369     INSTALL=$ac_install_sh
52370   fi
52371 fi
52372 { echo "$as_me:$LINENO: result: $INSTALL" >&5
52373 echo "${ECHO_T}$INSTALL" >&6; }
52374
52375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
52376 # It thinks the first close brace ends the variable substitution.
52377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
52378
52379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
52380
52381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
52382
52383     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
52384 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
52385 LN_S=$as_ln_s
52386 if test "$LN_S" = "ln -s"; then
52387   { echo "$as_me:$LINENO: result: yes" >&5
52388 echo "${ECHO_T}yes" >&6; }
52389 else
52390   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
52391 echo "${ECHO_T}no, using $LN_S" >&6; }
52392 fi
52393
52394
52395     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52396 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52397 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52398 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52399   echo $ECHO_N "(cached) $ECHO_C" >&6
52400 else
52401   cat >conftest.make <<\_ACEOF
52402 SHELL = /bin/sh
52403 all:
52404         @echo '@@@%%%=$(MAKE)=@@@%%%'
52405 _ACEOF
52406 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52407 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52408   *@@@%%%=?*=@@@%%%*)
52409     eval ac_cv_prog_make_${ac_make}_set=yes;;
52410   *)
52411     eval ac_cv_prog_make_${ac_make}_set=no;;
52412 esac
52413 rm -f conftest.make
52414 fi
52415 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52416   { echo "$as_me:$LINENO: result: yes" >&5
52417 echo "${ECHO_T}yes" >&6; }
52418   SET_MAKE=
52419 else
52420   { echo "$as_me:$LINENO: result: no" >&5
52421 echo "${ECHO_T}no" >&6; }
52422   SET_MAKE="MAKE=${MAKE-make}"
52423 fi
52424
52425
52426
52427     if test "x$SUNCXX" = "xyes"; then
52428                                 AR=$CXX
52429         AROPTIONS="-xar -o"
52430
52431     elif test "x$SGICC" = "xyes"; then
52432                 AR=$CXX
52433         AROPTIONS="-ar -o"
52434
52435     else
52436         if test -n "$ac_tool_prefix"; then
52437   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
52438 set dummy ${ac_tool_prefix}ar; ac_word=$2
52439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52441 if test "${ac_cv_prog_AR+set}" = set; then
52442   echo $ECHO_N "(cached) $ECHO_C" >&6
52443 else
52444   if test -n "$AR"; then
52445   ac_cv_prog_AR="$AR" # Let the user override the test.
52446 else
52447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52448 for as_dir in $PATH
52449 do
52450   IFS=$as_save_IFS
52451   test -z "$as_dir" && as_dir=.
52452   for ac_exec_ext in '' $ac_executable_extensions; do
52453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52454     ac_cv_prog_AR="${ac_tool_prefix}ar"
52455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52456     break 2
52457   fi
52458 done
52459 done
52460 IFS=$as_save_IFS
52461
52462 fi
52463 fi
52464 AR=$ac_cv_prog_AR
52465 if test -n "$AR"; then
52466   { echo "$as_me:$LINENO: result: $AR" >&5
52467 echo "${ECHO_T}$AR" >&6; }
52468 else
52469   { echo "$as_me:$LINENO: result: no" >&5
52470 echo "${ECHO_T}no" >&6; }
52471 fi
52472
52473
52474 fi
52475 if test -z "$ac_cv_prog_AR"; then
52476   ac_ct_AR=$AR
52477   # Extract the first word of "ar", so it can be a program name with args.
52478 set dummy ar; ac_word=$2
52479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52481 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
52482   echo $ECHO_N "(cached) $ECHO_C" >&6
52483 else
52484   if test -n "$ac_ct_AR"; then
52485   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
52486 else
52487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52488 for as_dir in $PATH
52489 do
52490   IFS=$as_save_IFS
52491   test -z "$as_dir" && as_dir=.
52492   for ac_exec_ext in '' $ac_executable_extensions; do
52493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52494     ac_cv_prog_ac_ct_AR="ar"
52495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52496     break 2
52497   fi
52498 done
52499 done
52500 IFS=$as_save_IFS
52501
52502 fi
52503 fi
52504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
52505 if test -n "$ac_ct_AR"; then
52506   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
52507 echo "${ECHO_T}$ac_ct_AR" >&6; }
52508 else
52509   { echo "$as_me:$LINENO: result: no" >&5
52510 echo "${ECHO_T}no" >&6; }
52511 fi
52512
52513   if test "x$ac_ct_AR" = x; then
52514     AR="ar"
52515   else
52516     case $cross_compiling:$ac_tool_warned in
52517 yes:)
52518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52519 whose name does not start with the host triplet.  If you think this
52520 configuration is useful to you, please write to autoconf@gnu.org." >&5
52521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52522 whose name does not start with the host triplet.  If you think this
52523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52524 ac_tool_warned=yes ;;
52525 esac
52526     AR=$ac_ct_AR
52527   fi
52528 else
52529   AR="$ac_cv_prog_AR"
52530 fi
52531
52532         AROPTIONS=rcu
52533     fi
52534
52535
52536     if test -n "$ac_tool_prefix"; then
52537   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
52538 set dummy ${ac_tool_prefix}strip; ac_word=$2
52539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52541 if test "${ac_cv_prog_STRIP+set}" = set; then
52542   echo $ECHO_N "(cached) $ECHO_C" >&6
52543 else
52544   if test -n "$STRIP"; then
52545   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
52546 else
52547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52548 for as_dir in $PATH
52549 do
52550   IFS=$as_save_IFS
52551   test -z "$as_dir" && as_dir=.
52552   for ac_exec_ext in '' $ac_executable_extensions; do
52553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52554     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
52555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52556     break 2
52557   fi
52558 done
52559 done
52560 IFS=$as_save_IFS
52561
52562 fi
52563 fi
52564 STRIP=$ac_cv_prog_STRIP
52565 if test -n "$STRIP"; then
52566   { echo "$as_me:$LINENO: result: $STRIP" >&5
52567 echo "${ECHO_T}$STRIP" >&6; }
52568 else
52569   { echo "$as_me:$LINENO: result: no" >&5
52570 echo "${ECHO_T}no" >&6; }
52571 fi
52572
52573
52574 fi
52575 if test -z "$ac_cv_prog_STRIP"; then
52576   ac_ct_STRIP=$STRIP
52577   # Extract the first word of "strip", so it can be a program name with args.
52578 set dummy strip; ac_word=$2
52579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52581 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
52582   echo $ECHO_N "(cached) $ECHO_C" >&6
52583 else
52584   if test -n "$ac_ct_STRIP"; then
52585   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
52586 else
52587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52588 for as_dir in $PATH
52589 do
52590   IFS=$as_save_IFS
52591   test -z "$as_dir" && as_dir=.
52592   for ac_exec_ext in '' $ac_executable_extensions; do
52593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52594     ac_cv_prog_ac_ct_STRIP="strip"
52595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52596     break 2
52597   fi
52598 done
52599 done
52600 IFS=$as_save_IFS
52601
52602 fi
52603 fi
52604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
52605 if test -n "$ac_ct_STRIP"; then
52606   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
52607 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
52608 else
52609   { echo "$as_me:$LINENO: result: no" >&5
52610 echo "${ECHO_T}no" >&6; }
52611 fi
52612
52613   if test "x$ac_ct_STRIP" = x; then
52614     STRIP=":"
52615   else
52616     case $cross_compiling:$ac_tool_warned in
52617 yes:)
52618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52619 whose name does not start with the host triplet.  If you think this
52620 configuration is useful to you, please write to autoconf@gnu.org." >&5
52621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52622 whose name does not start with the host triplet.  If you think this
52623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52624 ac_tool_warned=yes ;;
52625 esac
52626     STRIP=$ac_ct_STRIP
52627   fi
52628 else
52629   STRIP="$ac_cv_prog_STRIP"
52630 fi
52631
52632     if test -n "$ac_tool_prefix"; then
52633   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
52634 set dummy ${ac_tool_prefix}nm; ac_word=$2
52635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52637 if test "${ac_cv_prog_NM+set}" = set; then
52638   echo $ECHO_N "(cached) $ECHO_C" >&6
52639 else
52640   if test -n "$NM"; then
52641   ac_cv_prog_NM="$NM" # Let the user override the test.
52642 else
52643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52644 for as_dir in $PATH
52645 do
52646   IFS=$as_save_IFS
52647   test -z "$as_dir" && as_dir=.
52648   for ac_exec_ext in '' $ac_executable_extensions; do
52649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52650     ac_cv_prog_NM="${ac_tool_prefix}nm"
52651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52652     break 2
52653   fi
52654 done
52655 done
52656 IFS=$as_save_IFS
52657
52658 fi
52659 fi
52660 NM=$ac_cv_prog_NM
52661 if test -n "$NM"; then
52662   { echo "$as_me:$LINENO: result: $NM" >&5
52663 echo "${ECHO_T}$NM" >&6; }
52664 else
52665   { echo "$as_me:$LINENO: result: no" >&5
52666 echo "${ECHO_T}no" >&6; }
52667 fi
52668
52669
52670 fi
52671 if test -z "$ac_cv_prog_NM"; then
52672   ac_ct_NM=$NM
52673   # Extract the first word of "nm", so it can be a program name with args.
52674 set dummy nm; ac_word=$2
52675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52677 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
52678   echo $ECHO_N "(cached) $ECHO_C" >&6
52679 else
52680   if test -n "$ac_ct_NM"; then
52681   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
52682 else
52683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52684 for as_dir in $PATH
52685 do
52686   IFS=$as_save_IFS
52687   test -z "$as_dir" && as_dir=.
52688   for ac_exec_ext in '' $ac_executable_extensions; do
52689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52690     ac_cv_prog_ac_ct_NM="nm"
52691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52692     break 2
52693   fi
52694 done
52695 done
52696 IFS=$as_save_IFS
52697
52698 fi
52699 fi
52700 ac_ct_NM=$ac_cv_prog_ac_ct_NM
52701 if test -n "$ac_ct_NM"; then
52702   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
52703 echo "${ECHO_T}$ac_ct_NM" >&6; }
52704 else
52705   { echo "$as_me:$LINENO: result: no" >&5
52706 echo "${ECHO_T}no" >&6; }
52707 fi
52708
52709   if test "x$ac_ct_NM" = x; then
52710     NM=":"
52711   else
52712     case $cross_compiling:$ac_tool_warned in
52713 yes:)
52714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52715 whose name does not start with the host triplet.  If you think this
52716 configuration is useful to you, please write to autoconf@gnu.org." >&5
52717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52718 whose name does not start with the host triplet.  If you think this
52719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52720 ac_tool_warned=yes ;;
52721 esac
52722     NM=$ac_ct_NM
52723   fi
52724 else
52725   NM="$ac_cv_prog_NM"
52726 fi
52727
52728
52729         INSTALL_DIR="mkdir -p"
52730
52731
52732     LDFLAGS_GUI=
52733     case ${BAKEFILE_HOST} in
52734         *-*-cygwin* | *-*-mingw32* )
52735         LDFLAGS_GUI="-mwindows"
52736     esac
52737
52738
52739     fi
52740
52741         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
52742 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
52743 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
52744   echo $ECHO_N "(cached) $ECHO_C" >&6
52745 else
52746
52747         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
52748                 egrep -s GNU > /dev/null); then
52749             bakefile_cv_prog_makeisgnu="yes"
52750         else
52751             bakefile_cv_prog_makeisgnu="no"
52752         fi
52753
52754 fi
52755 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
52756 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
52757
52758     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
52759         IF_GNU_MAKE=""
52760     else
52761         IF_GNU_MAKE="#"
52762     fi
52763
52764
52765
52766     PLATFORM_UNIX=0
52767     PLATFORM_WIN32=0
52768     PLATFORM_MSDOS=0
52769     PLATFORM_MAC=0
52770     PLATFORM_MACOS=0
52771     PLATFORM_MACOSX=0
52772     PLATFORM_OS2=0
52773     PLATFORM_BEOS=0
52774
52775     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
52776         case "${BAKEFILE_HOST}" in
52777             *-*-mingw32* )
52778                 PLATFORM_WIN32=1
52779             ;;
52780             *-pc-msdosdjgpp )
52781                 PLATFORM_MSDOS=1
52782             ;;
52783             *-pc-os2_emx | *-pc-os2-emx )
52784                 PLATFORM_OS2=1
52785             ;;
52786             *-*-darwin* )
52787                 PLATFORM_MAC=1
52788                 PLATFORM_MACOSX=1
52789             ;;
52790             *-*-beos* )
52791                 PLATFORM_BEOS=1
52792             ;;
52793             powerpc-apple-macos* )
52794                 PLATFORM_MAC=1
52795                 PLATFORM_MACOS=1
52796             ;;
52797             * )
52798                 PLATFORM_UNIX=1
52799             ;;
52800         esac
52801     else
52802         case "$BAKEFILE_FORCE_PLATFORM" in
52803             win32 )
52804                 PLATFORM_WIN32=1
52805             ;;
52806             msdos )
52807                 PLATFORM_MSDOS=1
52808             ;;
52809             os2 )
52810                 PLATFORM_OS2=1
52811             ;;
52812             darwin )
52813                 PLATFORM_MAC=1
52814                 PLATFORM_MACOSX=1
52815             ;;
52816             unix )
52817                 PLATFORM_UNIX=1
52818             ;;
52819             beos )
52820                 PLATFORM_BEOS=1
52821             ;;
52822             * )
52823                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
52824 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
52825    { (exit 1); exit 1; }; }
52826             ;;
52827         esac
52828     fi
52829
52830
52831
52832
52833
52834
52835
52836
52837
52838
52839
52840     # Check whether --enable-omf was given.
52841 if test "${enable_omf+set}" = set; then
52842   enableval=$enable_omf; bk_os2_use_omf="$enableval"
52843 fi
52844
52845
52846     case "${BAKEFILE_HOST}" in
52847       *-*-darwin* )
52848                         if test "x$GCC" = "xyes"; then
52849             CFLAGS="$CFLAGS -fno-common"
52850             CXXFLAGS="$CXXFLAGS -fno-common"
52851         fi
52852         if test "x$XLCC" = "xyes"; then
52853             CFLAGS="$CFLAGS -qnocommon"
52854             CXXFLAGS="$CXXFLAGS -qnocommon"
52855         fi
52856         ;;
52857
52858       *-pc-os2_emx | *-pc-os2-emx )
52859         if test "x$bk_os2_use_omf" = "xyes" ; then
52860             AR=emxomfar
52861             RANLIB=:
52862             LDFLAGS="-Zomf $LDFLAGS"
52863             CFLAGS="-Zomf $CFLAGS"
52864             CXXFLAGS="-Zomf $CXXFLAGS"
52865             OS2_LIBEXT="lib"
52866         else
52867             OS2_LIBEXT="a"
52868         fi
52869         ;;
52870
52871       i*86-*-beos* )
52872         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
52873         ;;
52874     esac
52875
52876
52877     SO_SUFFIX="so"
52878     SO_SUFFIX_MODULE="so"
52879     EXEEXT=""
52880     LIBPREFIX="lib"
52881     LIBEXT=".a"
52882     DLLPREFIX="lib"
52883     DLLPREFIX_MODULE=""
52884     DLLIMP_SUFFIX=""
52885     dlldir="$libdir"
52886
52887     case "${BAKEFILE_HOST}" in
52888                         ia64-hp-hpux* )
52889         ;;
52890         *-hp-hpux* )
52891             SO_SUFFIX="sl"
52892             SO_SUFFIX_MODULE="sl"
52893         ;;
52894         *-*-aix* )
52895                                                                         SO_SUFFIX="a"
52896             SO_SUFFIX_MODULE="a"
52897         ;;
52898         *-*-cygwin* )
52899             SO_SUFFIX="dll"
52900             SO_SUFFIX_MODULE="dll"
52901             DLLIMP_SUFFIX="dll.a"
52902             EXEEXT=".exe"
52903             DLLPREFIX="cyg"
52904             dlldir="$bindir"
52905         ;;
52906         *-*-mingw32* )
52907             SO_SUFFIX="dll"
52908             SO_SUFFIX_MODULE="dll"
52909             DLLIMP_SUFFIX="dll.a"
52910             EXEEXT=".exe"
52911             DLLPREFIX=""
52912             dlldir="$bindir"
52913         ;;
52914         *-pc-msdosdjgpp )
52915             EXEEXT=".exe"
52916             DLLPREFIX=""
52917             dlldir="$bindir"
52918         ;;
52919         *-pc-os2_emx | *-pc-os2-emx )
52920             SO_SUFFIX="dll"
52921             SO_SUFFIX_MODULE="dll"
52922             DLLIMP_SUFFIX=$OS2_LIBEXT
52923             EXEEXT=".exe"
52924             DLLPREFIX=""
52925             LIBPREFIX=""
52926             LIBEXT=".$OS2_LIBEXT"
52927             dlldir="$bindir"
52928         ;;
52929         *-*-darwin* )
52930             SO_SUFFIX="dylib"
52931             SO_SUFFIX_MODULE="bundle"
52932         ;;
52933     esac
52934
52935     if test "x$DLLIMP_SUFFIX" = "x" ; then
52936         DLLIMP_SUFFIX="$SO_SUFFIX"
52937     fi
52938
52939
52940
52941
52942
52943
52944
52945
52946
52947
52948
52949
52950         PIC_FLAG=""
52951     if test "x$GCC" = "xyes"; then
52952                 PIC_FLAG="-fPIC"
52953     fi
52954
52955         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
52956     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
52957     WINDOWS_IMPLIB=0
52958
52959     case "${BAKEFILE_HOST}" in
52960       *-hp-hpux* )
52961                 if test "x$GCC" != "xyes"; then
52962                         LDFLAGS="$LDFLAGS -L/usr/lib"
52963
52964             SHARED_LD_CC="${CC} -b -o"
52965             SHARED_LD_CXX="${CXX} -b -o"
52966             PIC_FLAG="+Z"
52967         fi
52968       ;;
52969
52970       *-*-linux* )
52971                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
52972             PIC_FLAG="-KPIC"
52973         elif test "x$SUNCXX" = "xyes"; then
52974             SHARED_LD_CC="${CC} -G -o"
52975             SHARED_LD_CXX="${CXX} -G -o"
52976             PIC_FLAG="-KPIC"
52977         fi
52978       ;;
52979
52980       *-*-solaris2* )
52981         if test "x$SUNCXX" = xyes ; then
52982             SHARED_LD_CC="${CC} -G -o"
52983             SHARED_LD_CXX="${CXX} -G -o"
52984             PIC_FLAG="-KPIC"
52985         fi
52986       ;;
52987
52988       *-*-darwin* )
52989
52990 D='$'
52991 cat <<EOF >shared-ld-sh
52992 #!/bin/sh
52993 #-----------------------------------------------------------------------------
52994 #-- Name:        distrib/mac/shared-ld-sh
52995 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
52996 #-- Author:      Gilles Depeyrot
52997 #-- Copyright:   (c) 2002 Gilles Depeyrot
52998 #-- Licence:     any use permitted
52999 #-----------------------------------------------------------------------------
53000
53001 verbose=0
53002 args=""
53003 objects=""
53004 linking_flag="-dynamiclib"
53005 ldargs="-r -keep_private_externs -nostdlib"
53006
53007 if test "x${D}CXX" = "x"; then
53008     CXX="c++"
53009 fi
53010
53011 while test ${D}# -gt 0; do
53012     case ${D}1 in
53013
53014        -v)
53015         verbose=1
53016         ;;
53017
53018        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
53019         # collect these options and values
53020         args="${D}{args} ${D}1 ${D}2"
53021         shift
53022         ;;
53023
53024        -arch|-isysroot)
53025         # collect these options and values
53026         ldargs="${D}{ldargs} ${D}1 ${D}2"
53027         shift
53028         ;;
53029
53030        -s|-Wl,*)
53031         # collect these load args
53032         ldargs="${D}{ldargs} ${D}1"
53033         ;;
53034
53035        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
53036         # collect these options
53037         args="${D}{args} ${D}1"
53038         ;;
53039
53040        -dynamiclib|-bundle)
53041         linking_flag="${D}1"
53042         ;;
53043
53044        -*)
53045         echo "shared-ld: unhandled option '${D}1'"
53046         exit 1
53047         ;;
53048
53049         *.o | *.a | *.dylib)
53050         # collect object files
53051         objects="${D}{objects} ${D}1"
53052         ;;
53053
53054         *)
53055         echo "shared-ld: unhandled argument '${D}1'"
53056         exit 1
53057         ;;
53058
53059     esac
53060     shift
53061 done
53062
53063 status=0
53064
53065 #
53066 # Link one module containing all the others
53067 #
53068 if test ${D}{verbose} = 1; then
53069     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
53070 fi
53071 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
53072 status=${D}?
53073
53074 #
53075 # Link the shared library from the single module created, but only if the
53076 # previous command didn't fail:
53077 #
53078 if test ${D}{status} = 0; then
53079     if test ${D}{verbose} = 1; then
53080         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
53081     fi
53082     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
53083     status=${D}?
53084 fi
53085
53086 #
53087 # Remove intermediate module
53088 #
53089 rm -f master.${D}${D}.o
53090
53091 exit ${D}status
53092 EOF
53093
53094         chmod +x shared-ld-sh
53095
53096         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
53097         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
53098
53099
53100                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
53101 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
53102 if test "${bakefile_cv_gcc31+set}" = set; then
53103   echo $ECHO_N "(cached) $ECHO_C" >&6
53104 else
53105
53106            cat >conftest.$ac_ext <<_ACEOF
53107 /* confdefs.h.  */
53108 _ACEOF
53109 cat confdefs.h >>conftest.$ac_ext
53110 cat >>conftest.$ac_ext <<_ACEOF
53111 /* end confdefs.h.  */
53112
53113 int
53114 main ()
53115 {
53116
53117                    #if (__GNUC__ < 3) || \
53118                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
53119                        This is old gcc
53120                    #endif
53121
53122   ;
53123   return 0;
53124 }
53125 _ACEOF
53126 rm -f conftest.$ac_objext
53127 if { (ac_try="$ac_compile"
53128 case "(($ac_try" in
53129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53130   *) ac_try_echo=$ac_try;;
53131 esac
53132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53133   (eval "$ac_compile") 2>conftest.er1
53134   ac_status=$?
53135   grep -v '^ *+' conftest.er1 >conftest.err
53136   rm -f conftest.er1
53137   cat conftest.err >&5
53138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53139   (exit $ac_status); } && {
53140          test -z "$ac_c_werror_flag" ||
53141          test ! -s conftest.err
53142        } && test -s conftest.$ac_objext; then
53143
53144                    bakefile_cv_gcc31=yes
53145
53146 else
53147   echo "$as_me: failed program was:" >&5
53148 sed 's/^/| /' conftest.$ac_ext >&5
53149
53150
53151                    bakefile_cv_gcc31=no
53152
53153
53154 fi
53155
53156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53157
53158 fi
53159 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
53160 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
53161         if test "$bakefile_cv_gcc31" = "no"; then
53162                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
53163             SHARED_LD_CXX="$SHARED_LD_CC"
53164         else
53165                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
53166             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
53167         fi
53168
53169         if test "x$GCC" == "xyes"; then
53170             PIC_FLAG="-dynamic -fPIC"
53171         fi
53172         if test "x$XLCC" = "xyes"; then
53173             PIC_FLAG="-dynamic -DPIC"
53174         fi
53175       ;;
53176
53177       *-*-aix* )
53178         if test "x$GCC" = "xyes"; then
53179                                                             PIC_FLAG=""
53180
53181                                                                                     case "${BAKEFILE_HOST}" in
53182                 *-*-aix5* )
53183                     LD_EXPFULL="-Wl,-bexpfull"
53184                     ;;
53185             esac
53186
53187             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
53188             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
53189         else
53190                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
53191 set dummy makeC++SharedLib; ac_word=$2
53192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53194 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
53195   echo $ECHO_N "(cached) $ECHO_C" >&6
53196 else
53197   if test -n "$AIX_CXX_LD"; then
53198   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
53199 else
53200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53201 for as_dir in $PATH
53202 do
53203   IFS=$as_save_IFS
53204   test -z "$as_dir" && as_dir=.
53205   for ac_exec_ext in '' $ac_executable_extensions; do
53206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53207     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
53208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53209     break 2
53210   fi
53211 done
53212 done
53213 IFS=$as_save_IFS
53214
53215   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
53216 fi
53217 fi
53218 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
53219 if test -n "$AIX_CXX_LD"; then
53220   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
53221 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
53222 else
53223   { echo "$as_me:$LINENO: result: no" >&5
53224 echo "${ECHO_T}no" >&6; }
53225 fi
53226
53227
53228             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
53229             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
53230         fi
53231       ;;
53232
53233       *-*-beos* )
53234                         SHARED_LD_CC="${LD} -nostart -o"
53235         SHARED_LD_CXX="${LD} -nostart -o"
53236       ;;
53237
53238       *-*-irix* )
53239                 if test "x$GCC" != "xyes"; then
53240             PIC_FLAG="-KPIC"
53241         fi
53242       ;;
53243
53244       *-*-cygwin* | *-*-mingw32* )
53245         PIC_FLAG=""
53246         SHARED_LD_CC="\$(CC) -shared -o"
53247         SHARED_LD_CXX="\$(CXX) -shared -o"
53248         WINDOWS_IMPLIB=1
53249       ;;
53250
53251       *-pc-os2_emx | *-pc-os2-emx )
53252         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53253         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53254         PIC_FLAG=""
53255
53256 D='$'
53257 cat <<EOF >dllar.sh
53258 #!/bin/sh
53259 #
53260 # dllar - a tool to build both a .dll and an .a file
53261 # from a set of object (.o) files for EMX/OS2.
53262 #
53263 #  Written by Andrew Zabolotny, bit@freya.etu.ru
53264 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
53265 #
53266 #  This script will accept a set of files on the command line.
53267 #  All the public symbols from the .o files will be exported into
53268 #  a .DEF file, then linker will be run (through gcc) against them to
53269 #  build a shared library consisting of all given .o files. All libraries
53270 #  (.a) will be first decompressed into component .o files then act as
53271 #  described above. You can optionally give a description (-d "description")
53272 #  which will be put into .DLL. To see the list of accepted options (as well
53273 #  as command-line format) simply run this program without options. The .DLL
53274 #  is built to be imported by name (there is no guarantee that new versions
53275 #  of the library you build will have same ordinals for same symbols).
53276 #
53277 #  dllar is free software; you can redistribute it and/or modify
53278 #  it under the terms of the GNU General Public License as published by
53279 #  the Free Software Foundation; either version 2, or (at your option)
53280 #  any later version.
53281 #
53282 #  dllar is distributed in the hope that it will be useful,
53283 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
53284 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53285 #  GNU General Public License for more details.
53286 #
53287 #  You should have received a copy of the GNU General Public License
53288 #  along with dllar; see the file COPYING.  If not, write to the Free
53289 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
53290 #  02111-1307, USA.
53291
53292 # To successfuly run this program you will need:
53293 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
53294 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
53295 #  - gcc
53296 #    (used to build the .dll)
53297 #  - emxexp
53298 #    (used to create .def file from .o files)
53299 #  - emximp
53300 #    (used to create .a file from .def file)
53301 #  - GNU text utilites (cat, sort, uniq)
53302 #    used to process emxexp output
53303 #  - GNU file utilities (mv, rm)
53304 #  - GNU sed
53305 #  - lxlite (optional, see flag below)
53306 #    (used for general .dll cleanup)
53307 #
53308
53309 flag_USE_LXLITE=1;
53310
53311 #
53312 # helper functions
53313 # basnam, variant of basename, which does _not_ remove the path, _iff_
53314 #                              second argument (suffix to remove) is given
53315 basnam(){
53316     case ${D}# in
53317     1)
53318         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
53319         ;;
53320     2)
53321         echo ${D}1 | sed 's/'${D}2'${D}//'
53322         ;;
53323     *)
53324         echo "error in basnam ${D}*"
53325         exit 8
53326         ;;
53327     esac
53328 }
53329
53330 # Cleanup temporary files and output
53331 CleanUp() {
53332     cd ${D}curDir
53333     for i in ${D}inputFiles ; do
53334         case ${D}i in
53335         *!)
53336             rm -rf \`basnam ${D}i !\`
53337             ;;
53338         *)
53339             ;;
53340         esac
53341     done
53342
53343     # Kill result in case of failure as there is just to many stupid make/nmake
53344     # things out there which doesn't do this.
53345     if [ ${D}# -eq 0 ]; then
53346         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
53347     fi
53348 }
53349
53350 # Print usage and exit script with rc=1.
53351 PrintHelp() {
53352  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
53353  echo '       [-name-mangler-script script.sh]'
53354  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
53355  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
53356  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
53357  echo '       [*.o] [*.a]'
53358  echo '*> "output_file" should have no extension.'
53359  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
53360  echo '   The import library name is derived from this and is set to "name".a,'
53361  echo '   unless overridden by -import'
53362  echo '*> "importlib_name" should have no extension.'
53363  echo '   If it has the .o, or .a extension, it is automatically removed.'
53364  echo '   This name is used as the import library name and may be longer and'
53365  echo '   more descriptive than the DLL name which has to follow the old '
53366  echo '   8.3 convention of FAT.'
53367  echo '*> "script.sh may be given to override the output_file name by a'
53368  echo '   different name. It is mainly useful if the regular make process'
53369  echo '   of some package does not take into account OS/2 restriction of'
53370  echo '   DLL name lengths. It takes the importlib name as input and is'
53371  echo '   supposed to procude a shorter name as output. The script should'
53372  echo '   expect to get importlib_name without extension and should produce'
53373  echo '   a (max.) 8 letter name without extension.'
53374  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
53375  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
53376  echo '   These flags will be put at the start of GCC command line.'
53377  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
53378  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
53379  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
53380  echo '   If the last character of a symbol is "*", all symbols beginning'
53381  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
53382  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
53383  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
53384  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
53385  echo '   C runtime DLLs.'
53386  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
53387  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
53388  echo '   unchanged to GCC at the end of command line.'
53389  echo '*> If you create a DLL from a library and you do not specify -o,'
53390  echo '   the basename for DLL and import library will be set to library name,'
53391  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
53392  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
53393  echo '   library will be renamed into gcc_s.a.'
53394  echo '--------'
53395  echo 'Example:'
53396  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
53397  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
53398  CleanUp
53399  exit 1
53400 }
53401
53402 # Execute a command.
53403 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
53404 # @Uses    Whatever CleanUp() uses.
53405 doCommand() {
53406     echo "${D}*"
53407     eval ${D}*
53408     rcCmd=${D}?
53409
53410     if [ ${D}rcCmd -ne 0 ]; then
53411         echo "command failed, exit code="${D}rcCmd
53412         CleanUp
53413         exit ${D}rcCmd
53414     fi
53415 }
53416
53417 # main routine
53418 # setup globals
53419 cmdLine=${D}*
53420 outFile=""
53421 outimpFile=""
53422 inputFiles=""
53423 renameScript=""
53424 description=""
53425 CC=gcc.exe
53426 CFLAGS="-s -Zcrtdll"
53427 EXTRA_CFLAGS=""
53428 EXPORT_BY_ORDINALS=0
53429 exclude_symbols=""
53430 library_flags=""
53431 curDir=\`pwd\`
53432 curDirS=curDir
53433 case ${D}curDirS in
53434 */)
53435   ;;
53436 *)
53437   curDirS=${D}{curDirS}"/"
53438   ;;
53439 esac
53440 # Parse commandline
53441 libsToLink=0
53442 omfLinking=0
53443 while [ ${D}1 ]; do
53444     case ${D}1 in
53445     -ord*)
53446         EXPORT_BY_ORDINALS=1;
53447         ;;
53448     -o*)
53449         shift
53450         outFile=${D}1
53451         ;;
53452     -i*)
53453         shift
53454         outimpFile=${D}1
53455         ;;
53456     -name-mangler-script)
53457         shift
53458         renameScript=${D}1
53459         ;;
53460     -d*)
53461         shift
53462         description=${D}1
53463         ;;
53464     -f*)
53465         shift
53466         CFLAGS=${D}1
53467         ;;
53468     -c*)
53469         shift
53470         CC=${D}1
53471         ;;
53472     -h*)
53473         PrintHelp
53474         ;;
53475     -ex*)
53476         shift
53477         exclude_symbols=${D}{exclude_symbols}${D}1" "
53478         ;;
53479     -libf*)
53480         shift
53481         library_flags=${D}{library_flags}${D}1" "
53482         ;;
53483     -nocrt*)
53484         CFLAGS="-s"
53485         ;;
53486     -nolxl*)
53487         flag_USE_LXLITE=0
53488         ;;
53489     -* | /*)
53490         case ${D}1 in
53491         -L* | -l*)
53492             libsToLink=1
53493             ;;
53494         -Zomf)
53495             omfLinking=1
53496             ;;
53497         *)
53498             ;;
53499         esac
53500         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53501         ;;
53502     *.dll)
53503         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
53504         if [ ${D}omfLinking -eq 1 ]; then
53505             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
53506         else
53507             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
53508         fi
53509         ;;
53510     *)
53511         found=0;
53512         if [ ${D}libsToLink -ne 0 ]; then
53513             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53514         else
53515             for file in ${D}1 ; do
53516                 if [ -f ${D}file ]; then
53517                     inputFiles="${D}{inputFiles} ${D}file"
53518                     found=1
53519                 fi
53520             done
53521             if [ ${D}found -eq 0 ]; then
53522                 echo "ERROR: No file(s) found: "${D}1
53523                 exit 8
53524             fi
53525         fi
53526       ;;
53527     esac
53528     shift
53529 done # iterate cmdline words
53530
53531 #
53532 if [ -z "${D}inputFiles" ]; then
53533     echo "dllar: no input files"
53534     PrintHelp
53535 fi
53536
53537 # Now extract all .o files from .a files
53538 newInputFiles=""
53539 for file in ${D}inputFiles ; do
53540     case ${D}file in
53541     *.a | *.lib)
53542         case ${D}file in
53543         *.a)
53544             suffix=".a"
53545             AR="ar"
53546             ;;
53547         *.lib)
53548             suffix=".lib"
53549             AR="emxomfar"
53550             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
53551             ;;
53552         *)
53553             ;;
53554         esac
53555         dirname=\`basnam ${D}file ${D}suffix\`"_%"
53556         mkdir ${D}dirname
53557         if [ ${D}? -ne 0 ]; then
53558             echo "Failed to create subdirectory ./${D}dirname"
53559             CleanUp
53560             exit 8;
53561         fi
53562         # Append '!' to indicate archive
53563         newInputFiles="${D}newInputFiles ${D}{dirname}!"
53564         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
53565         cd ${D}curDir
53566         found=0;
53567         for subfile in ${D}dirname/*.o* ; do
53568             if [ -f ${D}subfile ]; then
53569                 found=1
53570                 if [ -s ${D}subfile ]; then
53571                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
53572                     newInputFiles="${D}newInputFiles ${D}subfile"
53573                 fi
53574             fi
53575         done
53576         if [ ${D}found -eq 0 ]; then
53577             echo "WARNING: there are no files in archive \\'${D}file\\'"
53578         fi
53579         ;;
53580     *)
53581         newInputFiles="${D}{newInputFiles} ${D}file"
53582         ;;
53583     esac
53584 done
53585 inputFiles="${D}newInputFiles"
53586
53587 # Output filename(s).
53588 do_backup=0;
53589 if [ -z ${D}outFile ]; then
53590     do_backup=1;
53591     set outFile ${D}inputFiles; outFile=${D}2
53592 fi
53593
53594 # If it is an archive, remove the '!' and the '_%' suffixes
53595 case ${D}outFile in
53596 *_%!)
53597     outFile=\`basnam ${D}outFile _%!\`
53598     ;;
53599 *)
53600     ;;
53601 esac
53602 case ${D}outFile in
53603 *.dll)
53604     outFile=\`basnam ${D}outFile .dll\`
53605     ;;
53606 *.DLL)
53607     outFile=\`basnam ${D}outFile .DLL\`
53608     ;;
53609 *.o)
53610     outFile=\`basnam ${D}outFile .o\`
53611     ;;
53612 *.obj)
53613     outFile=\`basnam ${D}outFile .obj\`
53614     ;;
53615 *.a)
53616     outFile=\`basnam ${D}outFile .a\`
53617     ;;
53618 *.lib)
53619     outFile=\`basnam ${D}outFile .lib\`
53620     ;;
53621 *)
53622     ;;
53623 esac
53624 case ${D}outimpFile in
53625 *.a)
53626     outimpFile=\`basnam ${D}outimpFile .a\`
53627     ;;
53628 *.lib)
53629     outimpFile=\`basnam ${D}outimpFile .lib\`
53630     ;;
53631 *)
53632     ;;
53633 esac
53634 if [ -z ${D}outimpFile ]; then
53635     outimpFile=${D}outFile
53636 fi
53637 defFile="${D}{outFile}.def"
53638 arcFile="${D}{outimpFile}.a"
53639 arcFile2="${D}{outimpFile}.lib"
53640
53641 #create ${D}dllFile as something matching 8.3 restrictions,
53642 if [ -z ${D}renameScript ] ; then
53643     dllFile="${D}outFile"
53644 else
53645     dllFile=\`${D}renameScript ${D}outimpFile\`
53646 fi
53647
53648 if [ ${D}do_backup -ne 0 ] ; then
53649     if [ -f ${D}arcFile ] ; then
53650         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
53651     fi
53652     if [ -f ${D}arcFile2 ] ; then
53653         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
53654     fi
53655 fi
53656
53657 # Extract public symbols from all the object files.
53658 tmpdefFile=${D}{defFile}_%
53659 rm -f ${D}tmpdefFile
53660 for file in ${D}inputFiles ; do
53661     case ${D}file in
53662     *!)
53663         ;;
53664     *)
53665         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
53666         ;;
53667     esac
53668 done
53669
53670 # Create the def file.
53671 rm -f ${D}defFile
53672 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
53673 dllFile="${D}{dllFile}.dll"
53674 if [ ! -z ${D}description ]; then
53675     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
53676 fi
53677 echo "EXPORTS" >> ${D}defFile
53678
53679 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
53680 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
53681
53682 # Checks if the export is ok or not.
53683 for word in ${D}exclude_symbols; do
53684     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
53685     mv ${D}{tmpdefFile}% ${D}tmpdefFile
53686 done
53687
53688
53689 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53690     sed "=" < ${D}tmpdefFile | \\
53691     sed '
53692       N
53693       : loop
53694       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
53695       t loop
53696     ' > ${D}{tmpdefFile}%
53697     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
53698 else
53699     rm -f ${D}{tmpdefFile}%
53700 fi
53701 cat ${D}tmpdefFile >> ${D}defFile
53702 rm -f ${D}tmpdefFile
53703
53704 # Do linking, create implib, and apply lxlite.
53705 gccCmdl="";
53706 for file in ${D}inputFiles ; do
53707     case ${D}file in
53708     *!)
53709         ;;
53710     *)
53711         gccCmdl="${D}gccCmdl ${D}file"
53712         ;;
53713     esac
53714 done
53715 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
53716 touch "${D}{outFile}.dll"
53717
53718 doCommand "emximp -o ${D}arcFile ${D}defFile"
53719 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
53720     add_flags="";
53721     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53722         add_flags="-ynd"
53723     fi
53724     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
53725 fi
53726 doCommand "emxomf -s -l ${D}arcFile"
53727
53728 # Successful exit.
53729 CleanUp 1
53730 exit 0
53731 EOF
53732
53733         chmod +x dllar.sh
53734       ;;
53735
53736       powerpc-apple-macos* | \
53737       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
53738       *-*-mirbsd* | \
53739       *-*-sunos4* | \
53740       *-*-osf* | \
53741       *-*-dgux5* | \
53742       *-*-sysv5* | \
53743       *-pc-msdosdjgpp )
53744               ;;
53745
53746       *)
53747         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
53748 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
53749    { (exit 1); exit 1; }; }
53750     esac
53751
53752     if test "x$PIC_FLAG" != "x" ; then
53753         PIC_FLAG="$PIC_FLAG -DPIC"
53754     fi
53755
53756     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
53757         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
53758     fi
53759     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
53760         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
53761     fi
53762
53763
53764
53765
53766
53767
53768
53769
53770
53771     USE_SOVERSION=0
53772     USE_SOVERLINUX=0
53773     USE_SOVERSOLARIS=0
53774     USE_SOVERCYGWIN=0
53775     USE_SOTWOSYMLINKS=0
53776     USE_MACVERSION=0
53777     SONAME_FLAG=
53778
53779     case "${BAKEFILE_HOST}" in
53780       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
53781       *-*-k*bsd*-gnu | *-*-mirbsd* )
53782         if test "x$SUNCXX" = "xyes"; then
53783             SONAME_FLAG="-h "
53784         else
53785             SONAME_FLAG="-Wl,-soname,"
53786         fi
53787         USE_SOVERSION=1
53788         USE_SOVERLINUX=1
53789         USE_SOTWOSYMLINKS=1
53790       ;;
53791
53792       *-*-solaris2* )
53793         SONAME_FLAG="-h "
53794         USE_SOVERSION=1
53795         USE_SOVERSOLARIS=1
53796       ;;
53797
53798       *-*-darwin* )
53799         USE_MACVERSION=1
53800         USE_SOVERSION=1
53801         USE_SOTWOSYMLINKS=1
53802       ;;
53803
53804       *-*-cygwin* )
53805         USE_SOVERSION=1
53806         USE_SOVERCYGWIN=1
53807       ;;
53808     esac
53809
53810
53811
53812
53813
53814
53815
53816
53817
53818
53819     # Check whether --enable-dependency-tracking was given.
53820 if test "${enable_dependency_tracking+set}" = set; then
53821   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
53822 fi
53823
53824
53825     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
53826 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
53827
53828     BK_DEPS=""
53829     if test "x$bk_use_trackdeps" = "xno" ; then
53830         DEPS_TRACKING=0
53831         { echo "$as_me:$LINENO: result: disabled" >&5
53832 echo "${ECHO_T}disabled" >&6; }
53833     else
53834         DEPS_TRACKING=1
53835
53836         if test "x$GCC" = "xyes"; then
53837             DEPSMODE=gcc
53838             case "${BAKEFILE_HOST}" in
53839                 *-*-darwin* )
53840                                                             DEPSFLAG="-no-cpp-precomp -MMD"
53841                 ;;
53842                 * )
53843                     DEPSFLAG="-MMD"
53844                 ;;
53845             esac
53846             { echo "$as_me:$LINENO: result: gcc" >&5
53847 echo "${ECHO_T}gcc" >&6; }
53848         elif test "x$MWCC" = "xyes"; then
53849             DEPSMODE=mwcc
53850             DEPSFLAG="-MM"
53851             { echo "$as_me:$LINENO: result: mwcc" >&5
53852 echo "${ECHO_T}mwcc" >&6; }
53853         elif test "x$SUNCC" = "xyes"; then
53854             DEPSMODE=unixcc
53855             DEPSFLAG="-xM1"
53856             { echo "$as_me:$LINENO: result: Sun cc" >&5
53857 echo "${ECHO_T}Sun cc" >&6; }
53858         elif test "x$SGICC" = "xyes"; then
53859             DEPSMODE=unixcc
53860             DEPSFLAG="-M"
53861             { echo "$as_me:$LINENO: result: SGI cc" >&5
53862 echo "${ECHO_T}SGI cc" >&6; }
53863         elif test "x$HPCC" = "xyes"; then
53864             DEPSMODE=unixcc
53865             DEPSFLAG="+make"
53866             { echo "$as_me:$LINENO: result: HP cc" >&5
53867 echo "${ECHO_T}HP cc" >&6; }
53868         elif test "x$COMPAQCC" = "xyes"; then
53869             DEPSMODE=gcc
53870             DEPSFLAG="-MD"
53871             { echo "$as_me:$LINENO: result: Compaq cc" >&5
53872 echo "${ECHO_T}Compaq cc" >&6; }
53873         else
53874             DEPS_TRACKING=0
53875             { echo "$as_me:$LINENO: result: none" >&5
53876 echo "${ECHO_T}none" >&6; }
53877         fi
53878
53879         if test $DEPS_TRACKING = 1 ; then
53880
53881 D='$'
53882 cat <<EOF >bk-deps
53883 #!/bin/sh
53884
53885 # This script is part of Bakefile (http://www.bakefile.org) autoconf
53886 # script. It is used to track C/C++ files dependencies in portable way.
53887 #
53888 # Permission is given to use this file in any way.
53889
53890 DEPSMODE=${DEPSMODE}
53891 DEPSFLAG="${DEPSFLAG}"
53892 DEPSDIRBASE=.deps
53893
53894 if test ${D}DEPSMODE = gcc ; then
53895     ${D}* ${D}{DEPSFLAG}
53896     status=${D}?
53897
53898     # determine location of created files:
53899     while test ${D}# -gt 0; do
53900         case "${D}1" in
53901             -o )
53902                 shift
53903                 objfile=${D}1
53904             ;;
53905             -* )
53906             ;;
53907             * )
53908                 srcfile=${D}1
53909             ;;
53910         esac
53911         shift
53912     done
53913     objfilebase=\`basename ${D}objfile\`
53914     builddir=\`dirname ${D}objfile\`
53915     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
53916     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
53917     depsdir=${D}builddir/${D}DEPSDIRBASE
53918     mkdir -p ${D}depsdir
53919
53920     # if the compiler failed, we're done:
53921     if test ${D}{status} != 0 ; then
53922         rm -f ${D}depfile
53923         exit ${D}{status}
53924     fi
53925
53926     # move created file to the location we want it in:
53927     if test -f ${D}depfile ; then
53928         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53929         rm -f ${D}depfile
53930     else
53931         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
53932         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
53933         if test ! -f ${D}depfile ; then
53934             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
53935             depfile="${D}objfile.d"
53936         fi
53937         if test -f ${D}depfile ; then
53938             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53939             rm -f ${D}depfile
53940         fi
53941     fi
53942     exit 0
53943
53944 elif test ${D}DEPSMODE = mwcc ; then
53945     ${D}* || exit ${D}?
53946     # Run mwcc again with -MM and redirect into the dep file we want
53947     # NOTE: We can't use shift here because we need ${D}* to be valid
53948     prevarg=
53949     for arg in ${D}* ; do
53950         if test "${D}prevarg" = "-o"; then
53951             objfile=${D}arg
53952         else
53953             case "${D}arg" in
53954                 -* )
53955                 ;;
53956                 * )
53957                     srcfile=${D}arg
53958                 ;;
53959             esac
53960         fi
53961         prevarg="${D}arg"
53962     done
53963
53964     objfilebase=\`basename ${D}objfile\`
53965     builddir=\`dirname ${D}objfile\`
53966     depsdir=${D}builddir/${D}DEPSDIRBASE
53967     mkdir -p ${D}depsdir
53968
53969     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
53970     exit 0
53971
53972 elif test ${D}DEPSMODE = unixcc; then
53973     ${D}* || exit ${D}?
53974     # Run compiler again with deps flag and redirect into the dep file.
53975     # It doesn't work if the '-o FILE' option is used, but without it the
53976     # dependency file will contain the wrong name for the object. So it is
53977     # removed from the command line, and the dep file is fixed with sed.
53978     cmd=""
53979     while test ${D}# -gt 0; do
53980         case "${D}1" in
53981             -o )
53982                 shift
53983                 objfile=${D}1
53984             ;;
53985             * )
53986                 eval arg${D}#=\\${D}1
53987                 cmd="${D}cmd \\${D}arg${D}#"
53988             ;;
53989         esac
53990         shift
53991     done
53992
53993     objfilebase=\`basename ${D}objfile\`
53994     builddir=\`dirname ${D}objfile\`
53995     depsdir=${D}builddir/${D}DEPSDIRBASE
53996     mkdir -p ${D}depsdir
53997
53998     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
53999     exit 0
54000
54001 else
54002     ${D}*
54003     exit ${D}?
54004 fi
54005 EOF
54006
54007             chmod +x bk-deps
54008                                     BK_DEPS="`pwd`/bk-deps"
54009         fi
54010     fi
54011
54012
54013
54014
54015
54016     case ${BAKEFILE_HOST} in
54017         *-*-cygwin* | *-*-mingw32* )
54018                         if test -n "$ac_tool_prefix"; then
54019   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
54020 set dummy ${ac_tool_prefix}windres; ac_word=$2
54021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54023 if test "${ac_cv_prog_WINDRES+set}" = set; then
54024   echo $ECHO_N "(cached) $ECHO_C" >&6
54025 else
54026   if test -n "$WINDRES"; then
54027   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
54028 else
54029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54030 for as_dir in $PATH
54031 do
54032   IFS=$as_save_IFS
54033   test -z "$as_dir" && as_dir=.
54034   for ac_exec_ext in '' $ac_executable_extensions; do
54035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54036     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
54037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54038     break 2
54039   fi
54040 done
54041 done
54042 IFS=$as_save_IFS
54043
54044 fi
54045 fi
54046 WINDRES=$ac_cv_prog_WINDRES
54047 if test -n "$WINDRES"; then
54048   { echo "$as_me:$LINENO: result: $WINDRES" >&5
54049 echo "${ECHO_T}$WINDRES" >&6; }
54050 else
54051   { echo "$as_me:$LINENO: result: no" >&5
54052 echo "${ECHO_T}no" >&6; }
54053 fi
54054
54055
54056 fi
54057 if test -z "$ac_cv_prog_WINDRES"; then
54058   ac_ct_WINDRES=$WINDRES
54059   # Extract the first word of "windres", so it can be a program name with args.
54060 set dummy windres; ac_word=$2
54061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54063 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
54064   echo $ECHO_N "(cached) $ECHO_C" >&6
54065 else
54066   if test -n "$ac_ct_WINDRES"; then
54067   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
54068 else
54069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54070 for as_dir in $PATH
54071 do
54072   IFS=$as_save_IFS
54073   test -z "$as_dir" && as_dir=.
54074   for ac_exec_ext in '' $ac_executable_extensions; do
54075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54076     ac_cv_prog_ac_ct_WINDRES="windres"
54077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54078     break 2
54079   fi
54080 done
54081 done
54082 IFS=$as_save_IFS
54083
54084 fi
54085 fi
54086 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
54087 if test -n "$ac_ct_WINDRES"; then
54088   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
54089 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
54090 else
54091   { echo "$as_me:$LINENO: result: no" >&5
54092 echo "${ECHO_T}no" >&6; }
54093 fi
54094
54095   if test "x$ac_ct_WINDRES" = x; then
54096     WINDRES=""
54097   else
54098     case $cross_compiling:$ac_tool_warned in
54099 yes:)
54100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54101 whose name does not start with the host triplet.  If you think this
54102 configuration is useful to you, please write to autoconf@gnu.org." >&5
54103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54104 whose name does not start with the host triplet.  If you think this
54105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54106 ac_tool_warned=yes ;;
54107 esac
54108     WINDRES=$ac_ct_WINDRES
54109   fi
54110 else
54111   WINDRES="$ac_cv_prog_WINDRES"
54112 fi
54113
54114          ;;
54115
54116       *-*-darwin* | powerpc-apple-macos* )
54117             # Extract the first word of "Rez", so it can be a program name with args.
54118 set dummy Rez; ac_word=$2
54119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54121 if test "${ac_cv_prog_REZ+set}" = set; then
54122   echo $ECHO_N "(cached) $ECHO_C" >&6
54123 else
54124   if test -n "$REZ"; then
54125   ac_cv_prog_REZ="$REZ" # Let the user override the test.
54126 else
54127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54128 for as_dir in $PATH
54129 do
54130   IFS=$as_save_IFS
54131   test -z "$as_dir" && as_dir=.
54132   for ac_exec_ext in '' $ac_executable_extensions; do
54133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54134     ac_cv_prog_REZ="Rez"
54135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54136     break 2
54137   fi
54138 done
54139 done
54140 IFS=$as_save_IFS
54141
54142   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
54143 fi
54144 fi
54145 REZ=$ac_cv_prog_REZ
54146 if test -n "$REZ"; then
54147   { echo "$as_me:$LINENO: result: $REZ" >&5
54148 echo "${ECHO_T}$REZ" >&6; }
54149 else
54150   { echo "$as_me:$LINENO: result: no" >&5
54151 echo "${ECHO_T}no" >&6; }
54152 fi
54153
54154
54155             # Extract the first word of "SetFile", so it can be a program name with args.
54156 set dummy SetFile; ac_word=$2
54157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54159 if test "${ac_cv_prog_SETFILE+set}" = set; then
54160   echo $ECHO_N "(cached) $ECHO_C" >&6
54161 else
54162   if test -n "$SETFILE"; then
54163   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
54164 else
54165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54166 for as_dir in $PATH
54167 do
54168   IFS=$as_save_IFS
54169   test -z "$as_dir" && as_dir=.
54170   for ac_exec_ext in '' $ac_executable_extensions; do
54171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54172     ac_cv_prog_SETFILE="SetFile"
54173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54174     break 2
54175   fi
54176 done
54177 done
54178 IFS=$as_save_IFS
54179
54180   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
54181 fi
54182 fi
54183 SETFILE=$ac_cv_prog_SETFILE
54184 if test -n "$SETFILE"; then
54185   { echo "$as_me:$LINENO: result: $SETFILE" >&5
54186 echo "${ECHO_T}$SETFILE" >&6; }
54187 else
54188   { echo "$as_me:$LINENO: result: no" >&5
54189 echo "${ECHO_T}no" >&6; }
54190 fi
54191
54192
54193         ;;
54194     esac
54195
54196
54197
54198
54199
54200
54201
54202
54203
54204     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
54205
54206
54207 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
54208
54209
54210
54211     # Check whether --enable-precomp-headers was given.
54212 if test "${enable_precomp_headers+set}" = set; then
54213   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
54214 fi
54215
54216
54217     GCC_PCH=0
54218     ICC_PCH=0
54219     USE_PCH=0
54220     BK_MAKE_PCH=""
54221
54222     case ${BAKEFILE_HOST} in
54223         *-*-cygwin* )
54224                                                 bk_use_pch="no"
54225             ;;
54226     esac
54227
54228     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
54229         if test "x$GCC" = "xyes"; then
54230                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
54231 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
54232             cat >conftest.$ac_ext <<_ACEOF
54233 /* confdefs.h.  */
54234 _ACEOF
54235 cat confdefs.h >>conftest.$ac_ext
54236 cat >>conftest.$ac_ext <<_ACEOF
54237 /* end confdefs.h.  */
54238
54239 int
54240 main ()
54241 {
54242
54243                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
54244                         There is no PCH support
54245                     #endif
54246                     #if (__GNUC__ < 3)
54247                         There is no PCH support
54248                     #endif
54249                     #if (__GNUC__ == 3) && \
54250                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
54251                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
54252                        ( defined(__INTEL_COMPILER) )
54253                         There is no PCH support
54254                     #endif
54255
54256   ;
54257   return 0;
54258 }
54259 _ACEOF
54260 rm -f conftest.$ac_objext
54261 if { (ac_try="$ac_compile"
54262 case "(($ac_try" in
54263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54264   *) ac_try_echo=$ac_try;;
54265 esac
54266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54267   (eval "$ac_compile") 2>conftest.er1
54268   ac_status=$?
54269   grep -v '^ *+' conftest.er1 >conftest.err
54270   rm -f conftest.er1
54271   cat conftest.err >&5
54272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54273   (exit $ac_status); } && {
54274          test -z "$ac_c_werror_flag" ||
54275          test ! -s conftest.err
54276        } && test -s conftest.$ac_objext; then
54277
54278                     { echo "$as_me:$LINENO: result: yes" >&5
54279 echo "${ECHO_T}yes" >&6; }
54280                     GCC_PCH=1
54281
54282 else
54283   echo "$as_me: failed program was:" >&5
54284 sed 's/^/| /' conftest.$ac_ext >&5
54285
54286
54287                     if test "$INTELCXX8" = "yes"; then
54288                         { echo "$as_me:$LINENO: result: yes" >&5
54289 echo "${ECHO_T}yes" >&6; }
54290                         ICC_PCH=1
54291                         if test "$INTELCXX10" = "yes"; then
54292                             ICC_PCH_CREATE_SWITCH="-pch-create"
54293                             ICC_PCH_USE_SWITCH="-pch-use"
54294                         else
54295                             ICC_PCH_CREATE_SWITCH="-create-pch"
54296                             ICC_PCH_USE_SWITCH="-use-pch"
54297                         fi
54298                     else
54299                         { echo "$as_me:$LINENO: result: no" >&5
54300 echo "${ECHO_T}no" >&6; }
54301                     fi
54302
54303 fi
54304
54305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54306             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
54307                 USE_PCH=1
54308
54309 D='$'
54310 cat <<EOF >bk-make-pch
54311 #!/bin/sh
54312
54313 # This script is part of Bakefile (http://www.bakefile.org) autoconf
54314 # script. It is used to generated precompiled headers.
54315 #
54316 # Permission is given to use this file in any way.
54317
54318 outfile="${D}{1}"
54319 header="${D}{2}"
54320 shift
54321 shift
54322
54323 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
54324
54325 compiler=""
54326 headerfile=""
54327
54328 while test ${D}{#} -gt 0; do
54329     add_to_cmdline=1
54330     case "${D}{1}" in
54331         -I* )
54332             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
54333             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
54334                 headerfile="${D}{incdir}/${D}{header}"
54335             fi
54336         ;;
54337         -use-pch|-use_pch|-pch-use )
54338             shift
54339             add_to_cmdline=0
54340         ;;
54341     esac
54342     if test ${D}add_to_cmdline = 1 ; then
54343         compiler="${D}{compiler} ${D}{1}"
54344     fi
54345     shift
54346 done
54347
54348 if test "x${D}{headerfile}" = "x" ; then
54349     echo "error: can't find header ${D}{header} in include paths" >&2
54350 else
54351     if test -f ${D}{outfile} ; then
54352         rm -f ${D}{outfile}
54353     else
54354         mkdir -p \`dirname ${D}{outfile}\`
54355     fi
54356     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
54357     mkdir -p ${D}{builddir}/.deps
54358     if test "x${GCC_PCH}" = "x1" ; then
54359         # can do this because gcc is >= 3.4:
54360         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
54361     elif test "x${ICC_PCH}" = "x1" ; then
54362         filename=pch_gen-${D}${D}
54363         file=${D}{filename}.c
54364         dfile=${D}{filename}.d
54365         cat > ${D}file <<EOT
54366 #include "${D}header"
54367 EOT
54368         # using -MF icc complains about differing command lines in creation/use
54369         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
54370           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
54371           rm -f ${D}file ${D}dfile ${D}{filename}.o
54372     fi
54373     exit ${D}{?}
54374 fi
54375 EOF
54376
54377                 chmod +x bk-make-pch
54378                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
54379             fi
54380         fi
54381     fi
54382
54383
54384
54385
54386
54387
54388
54389     COND_BUILD_DEBUG="#"
54390     if test "x$BUILD" = "xdebug" ; then
54391         COND_BUILD_DEBUG=""
54392     fi
54393
54394     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
54395     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54396         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
54397     fi
54398
54399     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
54400     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54401         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
54402     fi
54403
54404     COND_BUILD_DEBUG_UNICODE_0="#"
54405     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54406         COND_BUILD_DEBUG_UNICODE_0=""
54407     fi
54408
54409     COND_BUILD_DEBUG_UNICODE_1="#"
54410     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54411         COND_BUILD_DEBUG_UNICODE_1=""
54412     fi
54413
54414     COND_BUILD_RELEASE="#"
54415     if test "x$BUILD" = "xrelease" ; then
54416         COND_BUILD_RELEASE=""
54417     fi
54418
54419     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
54420     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54421         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
54422     fi
54423
54424     COND_BUILD_RELEASE_UNICODE_0="#"
54425     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54426         COND_BUILD_RELEASE_UNICODE_0=""
54427     fi
54428
54429     COND_BUILD_RELEASE_UNICODE_1="#"
54430     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54431         COND_BUILD_RELEASE_UNICODE_1=""
54432     fi
54433
54434     COND_BUILD_debug="#"
54435     if test "x$BUILD" = "xdebug" ; then
54436         COND_BUILD_debug=""
54437     fi
54438
54439     COND_BUILD_debug_DEBUG_FLAG_default="#"
54440     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54441         COND_BUILD_debug_DEBUG_FLAG_default=""
54442     fi
54443
54444     COND_BUILD_debug_DEBUG_INFO_default="#"
54445     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54446         COND_BUILD_debug_DEBUG_INFO_default=""
54447     fi
54448
54449     COND_BUILD_debug_UNICODE_0="#"
54450     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54451         COND_BUILD_debug_UNICODE_0=""
54452     fi
54453
54454     COND_BUILD_debug_UNICODE_1="#"
54455     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54456         COND_BUILD_debug_UNICODE_1=""
54457     fi
54458
54459     COND_BUILD_release="#"
54460     if test "x$BUILD" = "xrelease" ; then
54461         COND_BUILD_release=""
54462     fi
54463
54464     COND_BUILD_release_DEBUG_INFO_default="#"
54465     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54466         COND_BUILD_release_DEBUG_INFO_default=""
54467     fi
54468
54469     COND_BUILD_release_UNICODE_0="#"
54470     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54471         COND_BUILD_release_UNICODE_0=""
54472     fi
54473
54474     COND_BUILD_release_UNICODE_1="#"
54475     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54476         COND_BUILD_release_UNICODE_1=""
54477     fi
54478
54479     COND_DEBUG_FLAG_0="#"
54480     if test "x$DEBUG_FLAG" = "x0" ; then
54481         COND_DEBUG_FLAG_0=""
54482     fi
54483
54484     COND_DEBUG_FLAG_1="#"
54485     if test "x$DEBUG_FLAG" = "x1" ; then
54486         COND_DEBUG_FLAG_1=""
54487     fi
54488
54489     COND_DEBUG_INFO_0="#"
54490     if test "x$DEBUG_INFO" = "x0" ; then
54491         COND_DEBUG_INFO_0=""
54492     fi
54493
54494     COND_DEBUG_INFO_1="#"
54495     if test "x$DEBUG_INFO" = "x1" ; then
54496         COND_DEBUG_INFO_1=""
54497     fi
54498
54499     COND_DEPS_TRACKING_0="#"
54500     if test "x$DEPS_TRACKING" = "x0" ; then
54501         COND_DEPS_TRACKING_0=""
54502     fi
54503
54504     COND_DEPS_TRACKING_1="#"
54505     if test "x$DEPS_TRACKING" = "x1" ; then
54506         COND_DEPS_TRACKING_1=""
54507     fi
54508
54509     COND_GCC_PCH_1="#"
54510     if test "x$GCC_PCH" = "x1" ; then
54511         COND_GCC_PCH_1=""
54512     fi
54513
54514     COND_ICC_PCH_1="#"
54515     if test "x$ICC_PCH" = "x1" ; then
54516         COND_ICC_PCH_1=""
54517     fi
54518
54519     COND_MONOLITHIC_0="#"
54520     if test "x$MONOLITHIC" = "x0" ; then
54521         COND_MONOLITHIC_0=""
54522     fi
54523
54524     COND_MONOLITHIC_0_SHARED_0="#"
54525     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
54526         COND_MONOLITHIC_0_SHARED_0=""
54527     fi
54528
54529     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
54530     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
54531         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
54532     fi
54533
54534     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
54535     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
54536         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
54537     fi
54538
54539     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
54540     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54541         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
54542     fi
54543
54544     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
54545     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54546         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
54547     fi
54548
54549     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
54550     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54551         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
54552     fi
54553
54554     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
54555     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54556         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
54557     fi
54558
54559     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
54560     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54561         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
54562     fi
54563
54564     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
54565     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54566         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
54567     fi
54568
54569     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
54570     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54571         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
54572     fi
54573
54574     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
54575     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54576         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
54577     fi
54578
54579     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
54580     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
54581         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
54582     fi
54583
54584     COND_MONOLITHIC_0_SHARED_1="#"
54585     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
54586         COND_MONOLITHIC_0_SHARED_1=""
54587     fi
54588
54589     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
54590     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
54591         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
54592     fi
54593
54594     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
54595     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
54596         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
54597     fi
54598
54599     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
54600     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54601         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
54602     fi
54603
54604     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
54605     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54606         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
54607     fi
54608
54609     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
54610     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54611         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
54612     fi
54613
54614     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
54615     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54616         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
54617     fi
54618
54619     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
54620     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
54621         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
54622     fi
54623
54624     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
54625     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
54626         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
54627     fi
54628
54629     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
54630     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
54631         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
54632     fi
54633
54634     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
54635     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
54636         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
54637     fi
54638
54639     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
54640     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
54641         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
54642     fi
54643
54644     COND_MONOLITHIC_0_USE_AUI_1="#"
54645     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
54646         COND_MONOLITHIC_0_USE_AUI_1=""
54647     fi
54648
54649     COND_MONOLITHIC_0_USE_GUI_1="#"
54650     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
54651         COND_MONOLITHIC_0_USE_GUI_1=""
54652     fi
54653
54654     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
54655     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54656         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
54657     fi
54658
54659     COND_MONOLITHIC_0_USE_HTML_1="#"
54660     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
54661         COND_MONOLITHIC_0_USE_HTML_1=""
54662     fi
54663
54664     COND_MONOLITHIC_0_USE_MEDIA_1="#"
54665     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
54666         COND_MONOLITHIC_0_USE_MEDIA_1=""
54667     fi
54668
54669     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
54670     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54671         COND_MONOLITHIC_0_USE_PROPGRID_1=""
54672     fi
54673
54674     COND_MONOLITHIC_0_USE_QA_1="#"
54675     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
54676         COND_MONOLITHIC_0_USE_QA_1=""
54677     fi
54678
54679     COND_MONOLITHIC_0_USE_RIBBON_1="#"
54680     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54681         COND_MONOLITHIC_0_USE_RIBBON_1=""
54682     fi
54683
54684     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
54685     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54686         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
54687     fi
54688
54689     COND_MONOLITHIC_0_USE_STC_1="#"
54690     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
54691         COND_MONOLITHIC_0_USE_STC_1=""
54692     fi
54693
54694     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
54695     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
54696         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
54697     fi
54698
54699     COND_MONOLITHIC_0_USE_XRC_1="#"
54700     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
54701         COND_MONOLITHIC_0_USE_XRC_1=""
54702     fi
54703
54704     COND_MONOLITHIC_1="#"
54705     if test "x$MONOLITHIC" = "x1" ; then
54706         COND_MONOLITHIC_1=""
54707     fi
54708
54709     COND_MONOLITHIC_1_SHARED_0="#"
54710     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
54711         COND_MONOLITHIC_1_SHARED_0=""
54712     fi
54713
54714     COND_MONOLITHIC_1_SHARED_1="#"
54715     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
54716         COND_MONOLITHIC_1_SHARED_1=""
54717     fi
54718
54719     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
54720     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
54721         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
54722     fi
54723
54724     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
54725     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
54726         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
54727     fi
54728
54729     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
54730     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54731         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
54732     fi
54733
54734     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
54735     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54736         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
54737     fi
54738
54739     COND_PLATFORM_MACOSX_1="#"
54740     if test "x$PLATFORM_MACOSX" = "x1" ; then
54741         COND_PLATFORM_MACOSX_1=""
54742     fi
54743
54744     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
54745     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
54746         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
54747     fi
54748
54749     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
54750     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54751         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
54752     fi
54753
54754     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
54755     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
54756         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
54757     fi
54758
54759     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
54760     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54761         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
54762     fi
54763
54764     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
54765     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
54766         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
54767     fi
54768
54769     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
54770     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54771         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
54772     fi
54773
54774     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
54775     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
54776         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
54777     fi
54778
54779     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
54780     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54781         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
54782     fi
54783
54784     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
54785     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
54786         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
54787     fi
54788
54789     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
54790     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54791         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
54792     fi
54793
54794     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
54795     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
54796         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
54797     fi
54798
54799     COND_PLATFORM_MACOS_1="#"
54800     if test "x$PLATFORM_MACOS" = "x1" ; then
54801         COND_PLATFORM_MACOS_1=""
54802     fi
54803
54804     COND_PLATFORM_MAC_0="#"
54805     if test "x$PLATFORM_MAC" = "x0" ; then
54806         COND_PLATFORM_MAC_0=""
54807     fi
54808
54809     COND_PLATFORM_MAC_1="#"
54810     if test "x$PLATFORM_MAC" = "x1" ; then
54811         COND_PLATFORM_MAC_1=""
54812     fi
54813
54814     COND_PLATFORM_MSDOS_0="#"
54815     if test "x$PLATFORM_MSDOS" = "x0" ; then
54816         COND_PLATFORM_MSDOS_0=""
54817     fi
54818
54819     COND_PLATFORM_MSDOS_1="#"
54820     if test "x$PLATFORM_MSDOS" = "x1" ; then
54821         COND_PLATFORM_MSDOS_1=""
54822     fi
54823
54824     COND_PLATFORM_OS2_1="#"
54825     if test "x$PLATFORM_OS2" = "x1" ; then
54826         COND_PLATFORM_OS2_1=""
54827     fi
54828
54829     COND_PLATFORM_UNIX_0="#"
54830     if test "x$PLATFORM_UNIX" = "x0" ; then
54831         COND_PLATFORM_UNIX_0=""
54832     fi
54833
54834     COND_PLATFORM_UNIX_1="#"
54835     if test "x$PLATFORM_UNIX" = "x1" ; then
54836         COND_PLATFORM_UNIX_1=""
54837     fi
54838
54839     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
54840     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
54841         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
54842     fi
54843
54844     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
54845     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
54846         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
54847     fi
54848
54849     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
54850     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
54851         COND_PLATFORM_UNIX_1_USE_GUI_1=""
54852     fi
54853
54854     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
54855     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
54856         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
54857     fi
54858
54859     COND_PLATFORM_WIN32_0="#"
54860     if test "x$PLATFORM_WIN32" = "x0" ; then
54861         COND_PLATFORM_WIN32_0=""
54862     fi
54863
54864     COND_PLATFORM_WIN32_1="#"
54865     if test "x$PLATFORM_WIN32" = "x1" ; then
54866         COND_PLATFORM_WIN32_1=""
54867     fi
54868
54869     COND_PLATFORM_WIN32_1_SHARED_0="#"
54870     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54871         COND_PLATFORM_WIN32_1_SHARED_0=""
54872     fi
54873
54874     COND_SHARED_0="#"
54875     if test "x$SHARED" = "x0" ; then
54876         COND_SHARED_0=""
54877     fi
54878
54879     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
54880     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
54881         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
54882     fi
54883
54884     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
54885     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
54886         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
54887     fi
54888
54889     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
54890     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
54891         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
54892     fi
54893
54894     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
54895     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54896         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
54897     fi
54898
54899     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
54900     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
54901         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
54902     fi
54903
54904     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
54905     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
54906         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
54907     fi
54908
54909     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
54910     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
54911         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
54912     fi
54913
54914     COND_SHARED_0_USE_STC_1="#"
54915     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54916         COND_SHARED_0_USE_STC_1=""
54917     fi
54918
54919     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
54920     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
54921         COND_SHARED_0_wxUSE_EXPAT_builtin=""
54922     fi
54923
54924     COND_SHARED_0_wxUSE_REGEX_builtin="#"
54925     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
54926         COND_SHARED_0_wxUSE_REGEX_builtin=""
54927     fi
54928
54929     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
54930     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
54931         COND_SHARED_0_wxUSE_ZLIB_builtin=""
54932     fi
54933
54934     COND_SHARED_1="#"
54935     if test "x$SHARED" = "x1" ; then
54936         COND_SHARED_1=""
54937     fi
54938
54939     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
54940     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54941         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
54942     fi
54943
54944     COND_TOOLKIT_="#"
54945     if test "x$TOOLKIT" = "x" ; then
54946         COND_TOOLKIT_=""
54947     fi
54948
54949     COND_TOOLKIT_COCOA="#"
54950     if test "x$TOOLKIT" = "xCOCOA" ; then
54951         COND_TOOLKIT_COCOA=""
54952     fi
54953
54954     COND_TOOLKIT_COCOA_USE_GUI_1="#"
54955     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
54956         COND_TOOLKIT_COCOA_USE_GUI_1=""
54957     fi
54958
54959     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
54960     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54961         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
54962     fi
54963
54964     COND_TOOLKIT_DFB="#"
54965     if test "x$TOOLKIT" = "xDFB" ; then
54966         COND_TOOLKIT_DFB=""
54967     fi
54968
54969     COND_TOOLKIT_DFB_USE_GUI_1="#"
54970     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
54971         COND_TOOLKIT_DFB_USE_GUI_1=""
54972     fi
54973
54974     COND_TOOLKIT_GTK="#"
54975     if test "x$TOOLKIT" = "xGTK" ; then
54976         COND_TOOLKIT_GTK=""
54977     fi
54978
54979     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
54980     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
54981         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
54982     fi
54983
54984     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
54985     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
54986         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
54987     fi
54988
54989     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
54990     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
54991         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
54992     fi
54993
54994     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
54995     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54996         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
54997     fi
54998
54999     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
55000     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
55001         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
55002     fi
55003
55004     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
55005     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55006         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
55007     fi
55008
55009     COND_TOOLKIT_GTK_USE_GUI_1="#"
55010     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
55011         COND_TOOLKIT_GTK_USE_GUI_1=""
55012     fi
55013
55014     COND_TOOLKIT_MAC="#"
55015     if test "x$TOOLKIT" = "xMAC" ; then
55016         COND_TOOLKIT_MAC=""
55017     fi
55018
55019     COND_TOOLKIT_MGL="#"
55020     if test "x$TOOLKIT" = "xMGL" ; then
55021         COND_TOOLKIT_MGL=""
55022     fi
55023
55024     COND_TOOLKIT_MGL_USE_GUI_1="#"
55025     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
55026         COND_TOOLKIT_MGL_USE_GUI_1=""
55027     fi
55028
55029     COND_TOOLKIT_MOTIF="#"
55030     if test "x$TOOLKIT" = "xMOTIF" ; then
55031         COND_TOOLKIT_MOTIF=""
55032     fi
55033
55034     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
55035     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
55036         COND_TOOLKIT_MOTIF_USE_GUI_1=""
55037     fi
55038
55039     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
55040     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55041         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
55042     fi
55043
55044     COND_TOOLKIT_MSW="#"
55045     if test "x$TOOLKIT" = "xMSW" ; then
55046         COND_TOOLKIT_MSW=""
55047     fi
55048
55049     COND_TOOLKIT_MSW_USE_GUI_1="#"
55050     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
55051         COND_TOOLKIT_MSW_USE_GUI_1=""
55052     fi
55053
55054     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
55055     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55056         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
55057     fi
55058
55059     COND_TOOLKIT_MSW_WXUNIV_0="#"
55060     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
55061         COND_TOOLKIT_MSW_WXUNIV_0=""
55062     fi
55063
55064     COND_TOOLKIT_OSX_CARBON="#"
55065     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
55066         COND_TOOLKIT_OSX_CARBON=""
55067     fi
55068
55069     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
55070     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
55071         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
55072     fi
55073
55074     COND_TOOLKIT_OSX_COCOA="#"
55075     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
55076         COND_TOOLKIT_OSX_COCOA=""
55077     fi
55078
55079     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
55080     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
55081         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
55082     fi
55083
55084     COND_TOOLKIT_OSX_IPHONE="#"
55085     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
55086         COND_TOOLKIT_OSX_IPHONE=""
55087     fi
55088
55089     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
55090     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
55091         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
55092     fi
55093
55094     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
55095     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55096         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
55097     fi
55098
55099     COND_TOOLKIT_PM="#"
55100     if test "x$TOOLKIT" = "xPM" ; then
55101         COND_TOOLKIT_PM=""
55102     fi
55103
55104     COND_TOOLKIT_PM_USE_GUI_1="#"
55105     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
55106         COND_TOOLKIT_PM_USE_GUI_1=""
55107     fi
55108
55109     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
55110     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55111         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
55112     fi
55113
55114     COND_TOOLKIT_WINCE="#"
55115     if test "x$TOOLKIT" = "xWINCE" ; then
55116         COND_TOOLKIT_WINCE=""
55117     fi
55118
55119     COND_TOOLKIT_WINCE_USE_GUI_1="#"
55120     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
55121         COND_TOOLKIT_WINCE_USE_GUI_1=""
55122     fi
55123
55124     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
55125     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55126         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
55127     fi
55128
55129     COND_TOOLKIT_WINCE_WXUNIV_0="#"
55130     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
55131         COND_TOOLKIT_WINCE_WXUNIV_0=""
55132     fi
55133
55134     COND_TOOLKIT_X11="#"
55135     if test "x$TOOLKIT" = "xX11" ; then
55136         COND_TOOLKIT_X11=""
55137     fi
55138
55139     COND_TOOLKIT_X11_USE_GUI_1="#"
55140     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
55141         COND_TOOLKIT_X11_USE_GUI_1=""
55142     fi
55143
55144     COND_UNICODE_1="#"
55145     if test "x$UNICODE" = "x1" ; then
55146         COND_UNICODE_1=""
55147     fi
55148
55149     COND_USE_CAIRO_1="#"
55150     if test "x$USE_CAIRO" = "x1" ; then
55151         COND_USE_CAIRO_1=""
55152     fi
55153
55154     COND_USE_EXCEPTIONS_0="#"
55155     if test "x$USE_EXCEPTIONS" = "x0" ; then
55156         COND_USE_EXCEPTIONS_0=""
55157     fi
55158
55159     COND_USE_EXCEPTIONS_1="#"
55160     if test "x$USE_EXCEPTIONS" = "x1" ; then
55161         COND_USE_EXCEPTIONS_1=""
55162     fi
55163
55164     COND_USE_GUI_0="#"
55165     if test "x$USE_GUI" = "x0" ; then
55166         COND_USE_GUI_0=""
55167     fi
55168
55169     COND_USE_GUI_1="#"
55170     if test "x$USE_GUI" = "x1" ; then
55171         COND_USE_GUI_1=""
55172     fi
55173
55174     COND_USE_GUI_1_USE_OPENGL_1="#"
55175     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55176         COND_USE_GUI_1_USE_OPENGL_1=""
55177     fi
55178
55179     COND_USE_GUI_1_WXUNIV_0="#"
55180     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55181         COND_USE_GUI_1_WXUNIV_0=""
55182     fi
55183
55184     COND_USE_GUI_1_WXUNIV_1="#"
55185     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
55186         COND_USE_GUI_1_WXUNIV_1=""
55187     fi
55188
55189     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
55190     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55191         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
55192     fi
55193
55194     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
55195     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55196         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
55197     fi
55198
55199     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
55200     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55201         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
55202     fi
55203
55204     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
55205     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55206         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
55207     fi
55208
55209     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
55210     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55211         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
55212     fi
55213
55214     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
55215     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55216         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
55217     fi
55218
55219     COND_USE_OPENGL_1="#"
55220     if test "x$USE_OPENGL" = "x1" ; then
55221         COND_USE_OPENGL_1=""
55222     fi
55223
55224     COND_USE_PCH_1="#"
55225     if test "x$USE_PCH" = "x1" ; then
55226         COND_USE_PCH_1=""
55227     fi
55228
55229     COND_USE_PLUGINS_0="#"
55230     if test "x$USE_PLUGINS" = "x0" ; then
55231         COND_USE_PLUGINS_0=""
55232     fi
55233
55234     COND_USE_RTTI_0="#"
55235     if test "x$USE_RTTI" = "x0" ; then
55236         COND_USE_RTTI_0=""
55237     fi
55238
55239     COND_USE_RTTI_1="#"
55240     if test "x$USE_RTTI" = "x1" ; then
55241         COND_USE_RTTI_1=""
55242     fi
55243
55244     COND_USE_SOTWOSYMLINKS_1="#"
55245     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
55246         COND_USE_SOTWOSYMLINKS_1=""
55247     fi
55248
55249     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
55250     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
55251         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
55252     fi
55253
55254     COND_USE_SOVERLINUX_1="#"
55255     if test "x$USE_SOVERLINUX" = "x1" ; then
55256         COND_USE_SOVERLINUX_1=""
55257     fi
55258
55259     COND_USE_SOVERSION_0="#"
55260     if test "x$USE_SOVERSION" = "x0" ; then
55261         COND_USE_SOVERSION_0=""
55262     fi
55263
55264     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
55265     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
55266         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
55267     fi
55268
55269     COND_USE_SOVERSOLARIS_1="#"
55270     if test "x$USE_SOVERSOLARIS" = "x1" ; then
55271         COND_USE_SOVERSOLARIS_1=""
55272     fi
55273
55274     COND_USE_STC_1="#"
55275     if test "x$USE_STC" = "x1" ; then
55276         COND_USE_STC_1=""
55277     fi
55278
55279     COND_USE_THREADS_0="#"
55280     if test "x$USE_THREADS" = "x0" ; then
55281         COND_USE_THREADS_0=""
55282     fi
55283
55284     COND_USE_THREADS_1="#"
55285     if test "x$USE_THREADS" = "x1" ; then
55286         COND_USE_THREADS_1=""
55287     fi
55288
55289     COND_USE_XRC_1="#"
55290     if test "x$USE_XRC" = "x1" ; then
55291         COND_USE_XRC_1=""
55292     fi
55293
55294     COND_WINDOWS_IMPLIB_1="#"
55295     if test "x$WINDOWS_IMPLIB" = "x1" ; then
55296         COND_WINDOWS_IMPLIB_1=""
55297     fi
55298
55299     COND_WITH_PLUGIN_SDL_1="#"
55300     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
55301         COND_WITH_PLUGIN_SDL_1=""
55302     fi
55303
55304     COND_WXUNIV_0="#"
55305     if test "x$WXUNIV" = "x0" ; then
55306         COND_WXUNIV_0=""
55307     fi
55308
55309     COND_WXUNIV_1="#"
55310     if test "x$WXUNIV" = "x1" ; then
55311         COND_WXUNIV_1=""
55312     fi
55313
55314     COND_WXUSE_EXPAT_BUILTIN="#"
55315     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55316         COND_WXUSE_EXPAT_BUILTIN=""
55317     fi
55318
55319     COND_WXUSE_LIBJPEG_BUILTIN="#"
55320     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55321         COND_WXUSE_LIBJPEG_BUILTIN=""
55322     fi
55323
55324     COND_WXUSE_LIBPNG_BUILTIN="#"
55325     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55326         COND_WXUSE_LIBPNG_BUILTIN=""
55327     fi
55328
55329     COND_WXUSE_LIBTIFF_BUILTIN="#"
55330     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55331         COND_WXUSE_LIBTIFF_BUILTIN=""
55332     fi
55333
55334     COND_WXUSE_REGEX_BUILTIN="#"
55335     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55336         COND_WXUSE_REGEX_BUILTIN=""
55337     fi
55338
55339     COND_WXUSE_ZLIB_BUILTIN="#"
55340     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55341         COND_WXUSE_ZLIB_BUILTIN=""
55342     fi
55343
55344     COND_wxUSE_EXPAT_builtin="#"
55345     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55346         COND_wxUSE_EXPAT_builtin=""
55347     fi
55348
55349     COND_wxUSE_LIBJPEG_builtin="#"
55350     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55351         COND_wxUSE_LIBJPEG_builtin=""
55352     fi
55353
55354     COND_wxUSE_LIBPNG_builtin="#"
55355     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55356         COND_wxUSE_LIBPNG_builtin=""
55357     fi
55358
55359     COND_wxUSE_LIBTIFF_builtin="#"
55360     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55361         COND_wxUSE_LIBTIFF_builtin=""
55362     fi
55363
55364     COND_wxUSE_REGEX_builtin="#"
55365     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55366         COND_wxUSE_REGEX_builtin=""
55367     fi
55368
55369     COND_wxUSE_ZLIB_builtin="#"
55370     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55371         COND_wxUSE_ZLIB_builtin=""
55372     fi
55373
55374
55375
55376     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
55377         { { 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
55378 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;}
55379    { (exit 1); exit 1; }; }
55380     fi
55381
55382     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
55383         { { 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
55384 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;}
55385    { (exit 1); exit 1; }; }
55386     fi
55387
55388
55389 case ${INSTALL} in
55390   /* ) # Absolute
55391      ;;
55392   ?:* ) # Drive letter, considered as absolute.
55393      ;;
55394   *)
55395      INSTALL=`pwd`/${INSTALL} ;;
55396 esac
55397
55398 if test "$wxUSE_GUI" = "yes"; then
55399
55400 if test "$wxUSE_MSW" = 1 ; then
55401     if test "x$WINDRES" = "x"; then
55402         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
55403 echo "$as_me: error: Required windres program not found" >&2;}
55404    { (exit 1); exit 1; }; }
55405     fi
55406
55407     RESCOMP="$WINDRES"
55408 fi
55409
55410 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
55411             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
55412     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
55413
55414         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
55415
55416     # Extract the first word of "DeRez", so it can be a program name with args.
55417 set dummy DeRez; ac_word=$2
55418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55420 if test "${ac_cv_prog_DEREZ+set}" = set; then
55421   echo $ECHO_N "(cached) $ECHO_C" >&6
55422 else
55423   if test -n "$DEREZ"; then
55424   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
55425 else
55426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55427 for as_dir in $PATH
55428 do
55429   IFS=$as_save_IFS
55430   test -z "$as_dir" && as_dir=.
55431   for ac_exec_ext in '' $ac_executable_extensions; do
55432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55433     ac_cv_prog_DEREZ="DeRez"
55434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55435     break 2
55436   fi
55437 done
55438 done
55439 IFS=$as_save_IFS
55440
55441   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
55442 fi
55443 fi
55444 DEREZ=$ac_cv_prog_DEREZ
55445 if test -n "$DEREZ"; then
55446   { echo "$as_me:$LINENO: result: $DEREZ" >&5
55447 echo "${ECHO_T}$DEREZ" >&6; }
55448 else
55449   { echo "$as_me:$LINENO: result: no" >&5
55450 echo "${ECHO_T}no" >&6; }
55451 fi
55452
55453
55454
55455     MACSETFILE="\$(SETFILE)"
55456
55457             if test "$wxUSE_OSX_CARBON" = 1; then
55458         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
55459         RESCOMP="$REZ"
55460         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
55461     else
55462         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
55463         RESCOMP="cat /dev/null \| $REZ"
55464         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
55465     fi
55466
55467 else
55468         MACSETFILE="@true"
55469
55470     if test "$wxUSE_PM" = 1; then
55471         RESCOMP="emxbind"
55472         WXCONFIG_RESFLAGS="-ep"
55473
55474                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
55475     else
55476         POSTLINK_COMMAND="@true"
55477     fi
55478 fi
55479
55480 fi
55481
55482
55483 if test $GCC_PCH = 1
55484 then
55485     if test "$wx_cv_gcc_pch_bug" = yes; then
55486         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
55487 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
55488         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
55489 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
55490         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
55491 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
55492     fi
55493
55494     # Our WX_PRECOMP flag does not make sense for any language except C++ because
55495     # the headers that benefit from precompilation are mostly C++ headers.
55496     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55497     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
55498     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55499 fi
55500
55501
55502 if test "$wxUSE_MAC" = 1 ; then
55503     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
55504         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
55505         mv temp bk-deps
55506         chmod +x bk-deps
55507     fi
55508 fi
55509
55510 if test "$wxUSE_SHARED" = "yes"; then
55511                 case "${host}" in
55512       *-pc-os2_emx | *-pc-os2-emx )
55513         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55514         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55515         cp -p ${srcdir}/src/os2/dllnames.sh .
55516         cp -p ${srcdir}/src/os2/dllar.sh .
55517       ;;
55518     esac
55519 fi
55520 if test "$wxUSE_OMF" = "yes"; then
55521     case "${host}" in
55522       *-pc-os2_emx | *-pc-os2-emx )
55523         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
55524         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55525         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55526       ;;
55527     esac
55528 fi
55529
55530 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
55531
55532
55533 case "${host}" in
55534     *-*-solaris2* )
55535                         if test "$GCC" = yes; then
55536             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//g'`
55537             LIBS=`echo $LIBS | sed 's/-mt//g'`
55538             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//g'`
55539         fi
55540         ;;
55541
55542     *-*-linux* )
55543                         if test "x$SUNCXX" = xyes; then
55544             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//g'`
55545             LIBS=`echo $LIBS | sed 's/-pthread//g'`
55546             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//g'`
55547         fi
55548         ;;
55549 esac
55550
55551 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
55552 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
55553 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
55554 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
55555
55556 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
55557
55558
55559
55560
55561
55562
55563
55564
55565
55566
55567
55568
55569
55570
55571
55572
55573
55574
55575
55576
55577
55578
55579
55580
55581
55582
55583
55584
55585
55586
55587
55588
55589
55590
55591
55592
55593
55594
55595
55596
55597
55598
55599
55600
55601
55602
55603
55604
55605
55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
55616
55617 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
55618 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
55619 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
55620 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
55621   echo $ECHO_N "(cached) $ECHO_C" >&6
55622 else
55623   cat >conftest.make <<\_ACEOF
55624 SHELL = /bin/sh
55625 all:
55626         @echo '@@@%%%=$(MAKE)=@@@%%%'
55627 _ACEOF
55628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
55629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
55630   *@@@%%%=?*=@@@%%%*)
55631     eval ac_cv_prog_make_${ac_make}_set=yes;;
55632   *)
55633     eval ac_cv_prog_make_${ac_make}_set=no;;
55634 esac
55635 rm -f conftest.make
55636 fi
55637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
55638   { echo "$as_me:$LINENO: result: yes" >&5
55639 echo "${ECHO_T}yes" >&6; }
55640   SET_MAKE=
55641 else
55642   { echo "$as_me:$LINENO: result: no" >&5
55643 echo "${ECHO_T}no" >&6; }
55644   SET_MAKE="MAKE=${MAKE-make}"
55645 fi
55646
55647
55648
55649 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
55650
55651
55652 if test "$USE_WIN32" = 1; then
55653     ac_config_commands="$ac_config_commands rcdefs.h"
55654
55655 fi
55656
55657 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
55658
55659
55660 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
55661
55662
55663 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
55664
55665
55666 if test "$wx_cv_version_script" = "yes"; then
55667     ac_config_files="$ac_config_files version-script"
55668
55669 fi
55670 ac_config_files="$ac_config_files Makefile"
55671
55672
55673 ac_config_commands="$ac_config_commands wx-config"
55674
55675
55676
55677 if test "$wxWITH_SUBDIRS" != "no"; then
55678 if test "$wxUSE_GUI" = "yes"; then
55679     SUBDIRS="samples demos utils"
55680 else
55681             SUBDIRS="samples utils"
55682 fi
55683
55684
55685
55686 # Check whether --with-cppunit-prefix was given.
55687 if test "${with_cppunit_prefix+set}" = set; then
55688   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
55689 else
55690   cppunit_config_prefix=""
55691 fi
55692
55693
55694 # Check whether --with-cppunit-exec-prefix was given.
55695 if test "${with_cppunit_exec_prefix+set}" = set; then
55696   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
55697 else
55698   cppunit_config_exec_prefix=""
55699 fi
55700
55701
55702   if test x$cppunit_config_exec_prefix != x ; then
55703      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
55704      if test x${CPPUNIT_CONFIG+set} != xset ; then
55705         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
55706      fi
55707   fi
55708   if test x$cppunit_config_prefix != x ; then
55709      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
55710      if test x${CPPUNIT_CONFIG+set} != xset ; then
55711         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
55712      fi
55713   fi
55714
55715   # Extract the first word of "cppunit-config", so it can be a program name with args.
55716 set dummy cppunit-config; ac_word=$2
55717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55719 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
55720   echo $ECHO_N "(cached) $ECHO_C" >&6
55721 else
55722   case $CPPUNIT_CONFIG in
55723   [\\/]* | ?:[\\/]*)
55724   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
55725   ;;
55726   *)
55727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55728 for as_dir in $PATH
55729 do
55730   IFS=$as_save_IFS
55731   test -z "$as_dir" && as_dir=.
55732   for ac_exec_ext in '' $ac_executable_extensions; do
55733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55734     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55736     break 2
55737   fi
55738 done
55739 done
55740 IFS=$as_save_IFS
55741
55742   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
55743   ;;
55744 esac
55745 fi
55746 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
55747 if test -n "$CPPUNIT_CONFIG"; then
55748   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
55749 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
55750 else
55751   { echo "$as_me:$LINENO: result: no" >&5
55752 echo "${ECHO_T}no" >&6; }
55753 fi
55754
55755
55756   cppunit_version_min=1.8.0
55757
55758   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
55759 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
55760   no_cppunit=""
55761   if test "$CPPUNIT_CONFIG" = "no" ; then
55762     { echo "$as_me:$LINENO: result: no" >&5
55763 echo "${ECHO_T}no" >&6; }
55764     no_cppunit=yes
55765   else
55766     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
55767     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
55768     cppunit_version=`$CPPUNIT_CONFIG --version`
55769
55770     cppunit_major_version=`echo $cppunit_version | \
55771            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55772     cppunit_minor_version=`echo $cppunit_version | \
55773            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55774     cppunit_micro_version=`echo $cppunit_version | \
55775            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55776
55777     cppunit_major_min=`echo $cppunit_version_min | \
55778            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55779     cppunit_minor_min=`echo $cppunit_version_min | \
55780            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55781     cppunit_micro_min=`echo $cppunit_version_min | \
55782            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55783
55784     cppunit_version_proper=`expr \
55785         $cppunit_major_version \> $cppunit_major_min \| \
55786         $cppunit_major_version \= $cppunit_major_min \& \
55787         $cppunit_minor_version \> $cppunit_minor_min \| \
55788         $cppunit_major_version \= $cppunit_major_min \& \
55789         $cppunit_minor_version \= $cppunit_minor_min \& \
55790         $cppunit_micro_version \>= $cppunit_micro_min `
55791
55792     if test "$cppunit_version_proper" = "1" ; then
55793       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
55794 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
55795     else
55796       { echo "$as_me:$LINENO: result: no" >&5
55797 echo "${ECHO_T}no" >&6; }
55798       no_cppunit=yes
55799     fi
55800   fi
55801
55802   if test "x$no_cppunit" = x ; then
55803      SUBDIRS="$SUBDIRS tests"
55804   else
55805      CPPUNIT_CFLAGS=""
55806      CPPUNIT_LIBS=""
55807      :
55808   fi
55809
55810
55811
55812
55813
55814 for subdir in $SUBDIRS; do
55815     if test -d ${srcdir}/${subdir} ; then
55816         if test "$wxUSE_GUI" = "yes"; then
55817             if test ${subdir} = "samples"; then
55818                                                 makefiles="samples/Makefile.in $makefiles"
55819                 for sample in $SAMPLES_SUBDIRS; do
55820                     if test -d $srcdir/samples/$sample; then
55821                         makefiles="samples/$sample/Makefile.in $makefiles"
55822                     fi
55823                 done
55824             else
55825                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
55826                 eval "disabled=\$$disabled_var"
55827                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
55828                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
55829             fi
55830         else
55831                                     if test ${subdir} = "samples"; then
55832                                                 makefiles="samples/Makefile.in $makefiles"
55833                 for sample in `echo $SAMPLES_SUBDIRS`; do
55834                     if test -d $srcdir/samples/$sample; then
55835                         makefiles="samples/$sample/Makefile.in $makefiles"
55836                     fi
55837                 done
55838             elif test ${subdir} = "utils"; then
55839                 makefiles=""
55840                 for util in ifacecheck ; do
55841                     if test -d $srcdir/utils/$util ; then
55842                         makefiles="utils/$util/src/Makefile.in \
55843                                    $makefiles"
55844                     fi
55845                 done
55846             else
55847                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
55848             fi
55849         fi
55850
55851         for mkin in $makefiles ; do
55852             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
55853             ac_config_files="$ac_config_files $mk"
55854
55855         done
55856     fi
55857 done
55858 fi
55859 cat >confcache <<\_ACEOF
55860 # This file is a shell script that caches the results of configure
55861 # tests run on this system so they can be shared between configure
55862 # scripts and configure runs, see configure's option --config-cache.
55863 # It is not useful on other systems.  If it contains results you don't
55864 # want to keep, you may remove or edit it.
55865 #
55866 # config.status only pays attention to the cache file if you give it
55867 # the --recheck option to rerun configure.
55868 #
55869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55871 # following values.
55872
55873 _ACEOF
55874
55875 # The following way of writing the cache mishandles newlines in values,
55876 # but we know of no workaround that is simple, portable, and efficient.
55877 # So, we kill variables containing newlines.
55878 # Ultrix sh set writes to stderr and can't be redirected directly,
55879 # and sets the high bit in the cache file unless we assign to the vars.
55880 (
55881   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55882     eval ac_val=\$$ac_var
55883     case $ac_val in #(
55884     *${as_nl}*)
55885       case $ac_var in #(
55886       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
55887 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
55888       esac
55889       case $ac_var in #(
55890       _ | IFS | as_nl) ;; #(
55891       *) $as_unset $ac_var ;;
55892       esac ;;
55893     esac
55894   done
55895
55896   (set) 2>&1 |
55897     case $as_nl`(ac_space=' '; set) 2>&1` in #(
55898     *${as_nl}ac_space=\ *)
55899       # `set' does not quote correctly, so add quotes (double-quote
55900       # substitution turns \\\\ into \\, and sed turns \\ into \).
55901       sed -n \
55902         "s/'/'\\\\''/g;
55903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55904       ;; #(
55905     *)
55906       # `set' quotes correctly as required by POSIX, so do not add quotes.
55907       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55908       ;;
55909     esac |
55910     sort
55911 ) |
55912   sed '
55913      /^ac_cv_env_/b end
55914      t clear
55915      :clear
55916      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55917      t end
55918      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55919      :end' >>confcache
55920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55921   if test -w "$cache_file"; then
55922     test "x$cache_file" != "x/dev/null" &&
55923       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
55924 echo "$as_me: updating cache $cache_file" >&6;}
55925     cat confcache >$cache_file
55926   else
55927     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
55928 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55929   fi
55930 fi
55931 rm -f confcache
55932
55933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55934 # Let make expand exec_prefix.
55935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55936
55937 DEFS=-DHAVE_CONFIG_H
55938
55939 ac_libobjs=
55940 ac_ltlibobjs=
55941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55942   # 1. Remove the extension, and $U if already installed.
55943   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55944   ac_i=`echo "$ac_i" | sed "$ac_script"`
55945   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55946   #    will be set to the directory where LIBOBJS objects are built.
55947   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55948   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
55949 done
55950 LIBOBJS=$ac_libobjs
55951
55952 LTLIBOBJS=$ac_ltlibobjs
55953
55954
55955
55956 : ${CONFIG_STATUS=./config.status}
55957 ac_clean_files_save=$ac_clean_files
55958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
55960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
55961 cat >$CONFIG_STATUS <<_ACEOF
55962 #! $SHELL
55963 # Generated by $as_me.
55964 # Run this file to recreate the current configuration.
55965 # Compiler output produced by configure, useful for debugging
55966 # configure, is in config.log if it exists.
55967
55968 debug=false
55969 ac_cs_recheck=false
55970 ac_cs_silent=false
55971 SHELL=\${CONFIG_SHELL-$SHELL}
55972 _ACEOF
55973
55974 cat >>$CONFIG_STATUS <<\_ACEOF
55975 ## --------------------- ##
55976 ## M4sh Initialization.  ##
55977 ## --------------------- ##
55978
55979 # Be more Bourne compatible
55980 DUALCASE=1; export DUALCASE # for MKS sh
55981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55982   emulate sh
55983   NULLCMD=:
55984   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55985   # is contrary to our usage.  Disable this feature.
55986   alias -g '${1+"$@"}'='"$@"'
55987   setopt NO_GLOB_SUBST
55988 else
55989   case `(set -o) 2>/dev/null` in
55990   *posix*) set -o posix ;;
55991 esac
55992
55993 fi
55994
55995
55996
55997
55998 # PATH needs CR
55999 # Avoid depending upon Character Ranges.
56000 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56001 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56002 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56003 as_cr_digits='0123456789'
56004 as_cr_alnum=$as_cr_Letters$as_cr_digits
56005
56006 # The user is always right.
56007 if test "${PATH_SEPARATOR+set}" != set; then
56008   echo "#! /bin/sh" >conf$$.sh
56009   echo  "exit 0"   >>conf$$.sh
56010   chmod +x conf$$.sh
56011   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56012     PATH_SEPARATOR=';'
56013   else
56014     PATH_SEPARATOR=:
56015   fi
56016   rm -f conf$$.sh
56017 fi
56018
56019 # Support unset when possible.
56020 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56021   as_unset=unset
56022 else
56023   as_unset=false
56024 fi
56025
56026
56027 # IFS
56028 # We need space, tab and new line, in precisely that order.  Quoting is
56029 # there to prevent editors from complaining about space-tab.
56030 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56031 # splitting by setting IFS to empty value.)
56032 as_nl='
56033 '
56034 IFS=" ""        $as_nl"
56035
56036 # Find who we are.  Look in the path if we contain no directory separator.
56037 case $0 in
56038   *[\\/]* ) as_myself=$0 ;;
56039   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56040 for as_dir in $PATH
56041 do
56042   IFS=$as_save_IFS
56043   test -z "$as_dir" && as_dir=.
56044   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56045 done
56046 IFS=$as_save_IFS
56047
56048      ;;
56049 esac
56050 # We did not find ourselves, most probably we were run as `sh COMMAND'
56051 # in which case we are not to be found in the path.
56052 if test "x$as_myself" = x; then
56053   as_myself=$0
56054 fi
56055 if test ! -f "$as_myself"; then
56056   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56057   { (exit 1); exit 1; }
56058 fi
56059
56060 # Work around bugs in pre-3.0 UWIN ksh.
56061 for as_var in ENV MAIL MAILPATH
56062 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56063 done
56064 PS1='$ '
56065 PS2='> '
56066 PS4='+ '
56067
56068 # NLS nuisances.
56069 for as_var in \
56070   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56071   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56072   LC_TELEPHONE LC_TIME
56073 do
56074   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56075     eval $as_var=C; export $as_var
56076   else
56077     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56078   fi
56079 done
56080
56081 # Required to use basename.
56082 if expr a : '\(a\)' >/dev/null 2>&1 &&
56083    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56084   as_expr=expr
56085 else
56086   as_expr=false
56087 fi
56088
56089 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56090   as_basename=basename
56091 else
56092   as_basename=false
56093 fi
56094
56095
56096 # Name of the executable.
56097 as_me=`$as_basename -- "$0" ||
56098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56099          X"$0" : 'X\(//\)$' \| \
56100          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56101 echo X/"$0" |
56102     sed '/^.*\/\([^/][^/]*\)\/*$/{
56103             s//\1/
56104             q
56105           }
56106           /^X\/\(\/\/\)$/{
56107             s//\1/
56108             q
56109           }
56110           /^X\/\(\/\).*/{
56111             s//\1/
56112             q
56113           }
56114           s/.*/./; q'`
56115
56116 # CDPATH.
56117 $as_unset CDPATH
56118
56119
56120
56121   as_lineno_1=$LINENO
56122   as_lineno_2=$LINENO
56123   test "x$as_lineno_1" != "x$as_lineno_2" &&
56124   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56125
56126   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56127   # uniformly replaced by the line number.  The first 'sed' inserts a
56128   # line-number line after each line using $LINENO; the second 'sed'
56129   # does the real work.  The second script uses 'N' to pair each
56130   # line-number line with the line containing $LINENO, and appends
56131   # trailing '-' during substitution so that $LINENO is not a special
56132   # case at line end.
56133   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56134   # scripts with optimization help from Paolo Bonzini.  Blame Lee
56135   # E. McMahon (1931-1989) for sed's syntax.  :-)
56136   sed -n '
56137     p
56138     /[$]LINENO/=
56139   ' <$as_myself |
56140     sed '
56141       s/[$]LINENO.*/&-/
56142       t lineno
56143       b
56144       :lineno
56145       N
56146       :loop
56147       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56148       t loop
56149       s/-\n.*//
56150     ' >$as_me.lineno &&
56151   chmod +x "$as_me.lineno" ||
56152     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56153    { (exit 1); exit 1; }; }
56154
56155   # Don't try to exec as it changes $[0], causing all sort of problems
56156   # (the dirname of $[0] is not the place where we might find the
56157   # original and so on.  Autoconf is especially sensitive to this).
56158   . "./$as_me.lineno"
56159   # Exit status is that of the last command.
56160   exit
56161 }
56162
56163
56164 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56165   as_dirname=dirname
56166 else
56167   as_dirname=false
56168 fi
56169
56170 ECHO_C= ECHO_N= ECHO_T=
56171 case `echo -n x` in
56172 -n*)
56173   case `echo 'x\c'` in
56174   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
56175   *)   ECHO_C='\c';;
56176   esac;;
56177 *)
56178   ECHO_N='-n';;
56179 esac
56180
56181 if expr a : '\(a\)' >/dev/null 2>&1 &&
56182    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56183   as_expr=expr
56184 else
56185   as_expr=false
56186 fi
56187
56188 rm -f conf$$ conf$$.exe conf$$.file
56189 if test -d conf$$.dir; then
56190   rm -f conf$$.dir/conf$$.file
56191 else
56192   rm -f conf$$.dir
56193   mkdir conf$$.dir
56194 fi
56195 echo >conf$$.file
56196 if ln -s conf$$.file conf$$ 2>/dev/null; then
56197   as_ln_s='ln -s'
56198   # ... but there are two gotchas:
56199   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56200   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56201   # In both cases, we have to default to `cp -p'.
56202   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56203     as_ln_s='cp -p'
56204 elif ln conf$$.file conf$$ 2>/dev/null; then
56205   as_ln_s=ln
56206 else
56207   as_ln_s='cp -p'
56208 fi
56209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56210 rmdir conf$$.dir 2>/dev/null
56211
56212 if mkdir -p . 2>/dev/null; then
56213   as_mkdir_p=:
56214 else
56215   test -d ./-p && rmdir ./-p
56216   as_mkdir_p=false
56217 fi
56218
56219 if test -x / >/dev/null 2>&1; then
56220   as_test_x='test -x'
56221 else
56222   if ls -dL / >/dev/null 2>&1; then
56223     as_ls_L_option=L
56224   else
56225     as_ls_L_option=
56226   fi
56227   as_test_x='
56228     eval sh -c '\''
56229       if test -d "$1"; then
56230         test -d "$1/.";
56231       else
56232         case $1 in
56233         -*)set "./$1";;
56234         esac;
56235         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56236         ???[sx]*):;;*)false;;esac;fi
56237     '\'' sh
56238   '
56239 fi
56240 as_executable_p=$as_test_x
56241
56242 # Sed expression to map a string onto a valid CPP name.
56243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56244
56245 # Sed expression to map a string onto a valid variable name.
56246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56247
56248
56249 exec 6>&1
56250
56251 # Save the log message, to keep $[0] and so on meaningful, and to
56252 # report actual input values of CONFIG_FILES etc. instead of their
56253 # values after options handling.
56254 ac_log="
56255 This file was extended by wxWidgets $as_me 2.9.3, which was
56256 generated by GNU Autoconf 2.61.  Invocation command line was
56257
56258   CONFIG_FILES    = $CONFIG_FILES
56259   CONFIG_HEADERS  = $CONFIG_HEADERS
56260   CONFIG_LINKS    = $CONFIG_LINKS
56261   CONFIG_COMMANDS = $CONFIG_COMMANDS
56262   $ $0 $@
56263
56264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56265 "
56266
56267 _ACEOF
56268
56269 cat >>$CONFIG_STATUS <<_ACEOF
56270 # Files that config.status was made for.
56271 config_files="$ac_config_files"
56272 config_headers="$ac_config_headers"
56273 config_commands="$ac_config_commands"
56274
56275 _ACEOF
56276
56277 cat >>$CONFIG_STATUS <<\_ACEOF
56278 ac_cs_usage="\
56279 \`$as_me' instantiates files from templates according to the
56280 current configuration.
56281
56282 Usage: $0 [OPTIONS] [FILE]...
56283
56284   -h, --help       print this help, then exit
56285   -V, --version    print version number and configuration settings, then exit
56286   -q, --quiet      do not print progress messages
56287   -d, --debug      don't remove temporary files
56288       --recheck    update $as_me by reconfiguring in the same conditions
56289   --file=FILE[:TEMPLATE]
56290                    instantiate the configuration file FILE
56291   --header=FILE[:TEMPLATE]
56292                    instantiate the configuration header FILE
56293
56294 Configuration files:
56295 $config_files
56296
56297 Configuration headers:
56298 $config_headers
56299
56300 Configuration commands:
56301 $config_commands
56302
56303 Report bugs to <bug-autoconf@gnu.org>."
56304
56305 _ACEOF
56306 cat >>$CONFIG_STATUS <<_ACEOF
56307 ac_cs_version="\\
56308 wxWidgets config.status 2.9.3
56309 configured by $0, generated by GNU Autoconf 2.61,
56310   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56311
56312 Copyright (C) 2006 Free Software Foundation, Inc.
56313 This config.status script is free software; the Free Software Foundation
56314 gives unlimited permission to copy, distribute and modify it."
56315
56316 ac_pwd='$ac_pwd'
56317 srcdir='$srcdir'
56318 INSTALL='$INSTALL'
56319 _ACEOF
56320
56321 cat >>$CONFIG_STATUS <<\_ACEOF
56322 # If no file are specified by the user, then we need to provide default
56323 # value.  By we need to know if files were specified by the user.
56324 ac_need_defaults=:
56325 while test $# != 0
56326 do
56327   case $1 in
56328   --*=*)
56329     ac_option=`expr "X$1" : 'X\([^=]*\)='`
56330     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56331     ac_shift=:
56332     ;;
56333   *)
56334     ac_option=$1
56335     ac_optarg=$2
56336     ac_shift=shift
56337     ;;
56338   esac
56339
56340   case $ac_option in
56341   # Handling of the options.
56342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56343     ac_cs_recheck=: ;;
56344   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56345     echo "$ac_cs_version"; exit ;;
56346   --debug | --debu | --deb | --de | --d | -d )
56347     debug=: ;;
56348   --file | --fil | --fi | --f )
56349     $ac_shift
56350     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56351     ac_need_defaults=false;;
56352   --header | --heade | --head | --hea )
56353     $ac_shift
56354     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56355     ac_need_defaults=false;;
56356   --he | --h)
56357     # Conflict between --help and --header
56358     { echo "$as_me: error: ambiguous option: $1
56359 Try \`$0 --help' for more information." >&2
56360    { (exit 1); exit 1; }; };;
56361   --help | --hel | -h )
56362     echo "$ac_cs_usage"; exit ;;
56363   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56364   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56365     ac_cs_silent=: ;;
56366
56367   # This is an error.
56368   -*) { echo "$as_me: error: unrecognized option: $1
56369 Try \`$0 --help' for more information." >&2
56370    { (exit 1); exit 1; }; } ;;
56371
56372   *) ac_config_targets="$ac_config_targets $1"
56373      ac_need_defaults=false ;;
56374
56375   esac
56376   shift
56377 done
56378
56379 ac_configure_extra_args=
56380
56381 if $ac_cs_silent; then
56382   exec 6>/dev/null
56383   ac_configure_extra_args="$ac_configure_extra_args --silent"
56384 fi
56385
56386 _ACEOF
56387 cat >>$CONFIG_STATUS <<_ACEOF
56388 if \$ac_cs_recheck; then
56389   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56390   CONFIG_SHELL=$SHELL
56391   export CONFIG_SHELL
56392   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56393 fi
56394
56395 _ACEOF
56396 cat >>$CONFIG_STATUS <<\_ACEOF
56397 exec 5>>config.log
56398 {
56399   echo
56400   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56401 ## Running $as_me. ##
56402 _ASBOX
56403   echo "$ac_log"
56404 } >&5
56405
56406 _ACEOF
56407 cat >>$CONFIG_STATUS <<_ACEOF
56408 #
56409 # INIT-COMMANDS
56410 #
56411
56412             CPP="$CPP"
56413             infile="$srcdir/include/wx/msw/genrcdefs.h"
56414             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
56415
56416
56417  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56418  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56419  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56420                      LN_S="${LN_S}"
56421
56422
56423 _ACEOF
56424
56425 cat >>$CONFIG_STATUS <<\_ACEOF
56426
56427 # Handling of arguments.
56428 for ac_config_target in $ac_config_targets
56429 do
56430   case $ac_config_target in
56431     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
56432     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
56433     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
56434     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
56435     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
56436     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
56437     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56438     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
56439     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
56440
56441   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56443    { (exit 1); exit 1; }; };;
56444   esac
56445 done
56446
56447
56448 # If the user did not use the arguments to specify the items to instantiate,
56449 # then the envvar interface is used.  Set only those that are not.
56450 # We use the long form for the default assignment because of an extremely
56451 # bizarre bug on SunOS 4.1.3.
56452 if $ac_need_defaults; then
56453   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56454   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56455   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56456 fi
56457
56458 # Have a temporary directory for convenience.  Make it in the build tree
56459 # simply because there is no reason against having it here, and in addition,
56460 # creating and moving files from /tmp can sometimes cause problems.
56461 # Hook for its removal unless debugging.
56462 # Note that there is a small window in which the directory will not be cleaned:
56463 # after its creation but before its name has been assigned to `$tmp'.
56464 $debug ||
56465 {
56466   tmp=
56467   trap 'exit_status=$?
56468   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
56469 ' 0
56470   trap '{ (exit 1); exit 1; }' 1 2 13 15
56471 }
56472 # Create a (secure) tmp directory for tmp files.
56473
56474 {
56475   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56476   test -n "$tmp" && test -d "$tmp"
56477 }  ||
56478 {
56479   tmp=./conf$$-$RANDOM
56480   (umask 077 && mkdir "$tmp")
56481 } ||
56482 {
56483    echo "$me: cannot create a temporary directory in ." >&2
56484    { (exit 1); exit 1; }
56485 }
56486
56487 #
56488 # Set up the sed scripts for CONFIG_FILES section.
56489 #
56490
56491 # No need to generate the scripts if there are no CONFIG_FILES.
56492 # This happens for instance when ./config.status config.h
56493 if test -n "$CONFIG_FILES"; then
56494
56495 _ACEOF
56496
56497
56498
56499 ac_delim='%!_!# '
56500 for ac_last_try in false false false false false :; do
56501   cat >conf$$subs.sed <<_ACEOF
56502 SHELL!$SHELL$ac_delim
56503 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
56504 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
56505 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
56506 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
56507 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
56508 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
56509 exec_prefix!$exec_prefix$ac_delim
56510 prefix!$prefix$ac_delim
56511 program_transform_name!$program_transform_name$ac_delim
56512 bindir!$bindir$ac_delim
56513 sbindir!$sbindir$ac_delim
56514 libexecdir!$libexecdir$ac_delim
56515 datarootdir!$datarootdir$ac_delim
56516 datadir!$datadir$ac_delim
56517 sysconfdir!$sysconfdir$ac_delim
56518 sharedstatedir!$sharedstatedir$ac_delim
56519 localstatedir!$localstatedir$ac_delim
56520 includedir!$includedir$ac_delim
56521 oldincludedir!$oldincludedir$ac_delim
56522 docdir!$docdir$ac_delim
56523 infodir!$infodir$ac_delim
56524 htmldir!$htmldir$ac_delim
56525 dvidir!$dvidir$ac_delim
56526 pdfdir!$pdfdir$ac_delim
56527 psdir!$psdir$ac_delim
56528 libdir!$libdir$ac_delim
56529 localedir!$localedir$ac_delim
56530 mandir!$mandir$ac_delim
56531 DEFS!$DEFS$ac_delim
56532 ECHO_C!$ECHO_C$ac_delim
56533 ECHO_N!$ECHO_N$ac_delim
56534 ECHO_T!$ECHO_T$ac_delim
56535 LIBS!$LIBS$ac_delim
56536 build_alias!$build_alias$ac_delim
56537 host_alias!$host_alias$ac_delim
56538 target_alias!$target_alias$ac_delim
56539 build!$build$ac_delim
56540 build_cpu!$build_cpu$ac_delim
56541 build_vendor!$build_vendor$ac_delim
56542 build_os!$build_os$ac_delim
56543 host!$host$ac_delim
56544 host_cpu!$host_cpu$ac_delim
56545 host_vendor!$host_vendor$ac_delim
56546 host_os!$host_os$ac_delim
56547 wx_top_builddir!$wx_top_builddir$ac_delim
56548 CC!$CC$ac_delim
56549 CFLAGS!$CFLAGS$ac_delim
56550 LDFLAGS!$LDFLAGS$ac_delim
56551 CPPFLAGS!$CPPFLAGS$ac_delim
56552 ac_ct_CC!$ac_ct_CC$ac_delim
56553 EXEEXT!$EXEEXT$ac_delim
56554 OBJEXT!$OBJEXT$ac_delim
56555 CPP!$CPP$ac_delim
56556 GREP!$GREP$ac_delim
56557 EGREP!$EGREP$ac_delim
56558 CXX!$CXX$ac_delim
56559 CXXFLAGS!$CXXFLAGS$ac_delim
56560 ac_ct_CXX!$ac_ct_CXX$ac_delim
56561 AR!$AR$ac_delim
56562 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
56563 CXXCPP!$CXXCPP$ac_delim
56564 subdirs!$subdirs$ac_delim
56565 PKG_CONFIG!$PKG_CONFIG$ac_delim
56566 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
56567 GTK_LIBS!$GTK_LIBS$ac_delim
56568 GTK_CONFIG!$GTK_CONFIG$ac_delim
56569 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
56570 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
56571 XMKMF!$XMKMF$ac_delim
56572 X_CFLAGS!$X_CFLAGS$ac_delim
56573 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
56574 X_LIBS!$X_LIBS$ac_delim
56575 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
56576 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
56577 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
56578 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
56579 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
56580 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
56581 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
56582 Xinerama_CFLAGS!$Xinerama_CFLAGS$ac_delim
56583 Xinerama_LIBS!$Xinerama_LIBS$ac_delim
56584 Xxf86vm_CFLAGS!$Xxf86vm_CFLAGS$ac_delim
56585 Xxf86vm_LIBS!$Xxf86vm_LIBS$ac_delim
56586 SM_CFLAGS!$SM_CFLAGS$ac_delim
56587 SM_LIBS!$SM_LIBS$ac_delim
56588 GL_CFLAGS!$GL_CFLAGS$ac_delim
56589 GL_LIBS!$GL_LIBS$ac_delim
56590 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
56591 GLU_LIBS!$GLU_LIBS$ac_delim
56592 MesaGL_CFLAGS!$MesaGL_CFLAGS$ac_delim
56593 MesaGL_LIBS!$MesaGL_LIBS$ac_delim
56594 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
56595 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
56596 LIBICONV!$LIBICONV$ac_delim
56597 GXX_VERSION!$GXX_VERSION$ac_delim
56598 SDL_CONFIG!$SDL_CONFIG$ac_delim
56599 _ACEOF
56600
56601   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56602     break
56603   elif $ac_last_try; then
56604     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56605 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56606    { (exit 1); exit 1; }; }
56607   else
56608     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56609   fi
56610 done
56611
56612 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56613 if test -n "$ac_eof"; then
56614   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56615   ac_eof=`expr $ac_eof + 1`
56616 fi
56617
56618 cat >>$CONFIG_STATUS <<_ACEOF
56619 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
56620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56621 _ACEOF
56622 sed '
56623 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56624 s/^/s,@/; s/!/@,|#_!!_#|/
56625 :n
56626 t n
56627 s/'"$ac_delim"'$/,g/; t
56628 s/$/\\/; p
56629 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56630 ' >>$CONFIG_STATUS <conf$$subs.sed
56631 rm -f conf$$subs.sed
56632 cat >>$CONFIG_STATUS <<_ACEOF
56633 CEOF$ac_eof
56634 _ACEOF
56635
56636
56637 ac_delim='%!_!# '
56638 for ac_last_try in false false false false false :; do
56639   cat >conf$$subs.sed <<_ACEOF
56640 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
56641 SDL_LIBS!$SDL_LIBS$ac_delim
56642 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
56643 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
56644 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
56645 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
56646 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
56647 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
56648 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
56649 HILDON_LIBS!$HILDON_LIBS$ac_delim
56650 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
56651 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
56652 PYTHON!$PYTHON$ac_delim
56653 COND_PYTHON!$COND_PYTHON$ac_delim
56654 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
56655 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
56656 GST_CFLAGS!$GST_CFLAGS$ac_delim
56657 GST_LIBS!$GST_LIBS$ac_delim
56658 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
56659 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
56660 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
56661 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
56662 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
56663 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
56664 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
56665 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
56666 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
56667 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
56668 VENDOR!$VENDOR$ac_delim
56669 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
56670 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
56671 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
56672 WXUNIV!$WXUNIV$ac_delim
56673 MONOLITHIC!$MONOLITHIC$ac_delim
56674 USE_PLUGINS!$USE_PLUGINS$ac_delim
56675 CXXWARNINGS!$CXXWARNINGS$ac_delim
56676 EXTRALIBS!$EXTRALIBS$ac_delim
56677 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
56678 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
56679 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
56680 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
56681 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
56682 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
56683 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
56684 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
56685 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
56686 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
56687 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
56688 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
56689 UNICODE!$UNICODE$ac_delim
56690 DEBUG_INFO!$DEBUG_INFO$ac_delim
56691 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
56692 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
56693 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
56694 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
56695 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
56696 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
56697 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
56698 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
56699 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
56700 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
56701 RANLIB!$RANLIB$ac_delim
56702 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
56703 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
56704 INSTALL_DATA!$INSTALL_DATA$ac_delim
56705 LN_S!$LN_S$ac_delim
56706 SET_MAKE!$SET_MAKE$ac_delim
56707 MAKE_SET!$MAKE_SET$ac_delim
56708 AROPTIONS!$AROPTIONS$ac_delim
56709 STRIP!$STRIP$ac_delim
56710 NM!$NM$ac_delim
56711 INSTALL_DIR!$INSTALL_DIR$ac_delim
56712 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
56713 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
56714 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
56715 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
56716 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
56717 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
56718 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
56719 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
56720 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
56721 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
56722 SO_SUFFIX!$SO_SUFFIX$ac_delim
56723 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
56724 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
56725 LIBPREFIX!$LIBPREFIX$ac_delim
56726 LIBEXT!$LIBEXT$ac_delim
56727 DLLPREFIX!$DLLPREFIX$ac_delim
56728 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
56729 dlldir!$dlldir$ac_delim
56730 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
56731 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
56732 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
56733 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
56734 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
56735 PIC_FLAG!$PIC_FLAG$ac_delim
56736 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
56737 _ACEOF
56738
56739   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56740     break
56741   elif $ac_last_try; then
56742     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56743 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56744    { (exit 1); exit 1; }; }
56745   else
56746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56747   fi
56748 done
56749
56750 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56751 if test -n "$ac_eof"; then
56752   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56753   ac_eof=`expr $ac_eof + 1`
56754 fi
56755
56756 cat >>$CONFIG_STATUS <<_ACEOF
56757 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
56758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56759 _ACEOF
56760 sed '
56761 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56762 s/^/s,@/; s/!/@,|#_!!_#|/
56763 :n
56764 t n
56765 s/'"$ac_delim"'$/,g/; t
56766 s/$/\\/; p
56767 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56768 ' >>$CONFIG_STATUS <conf$$subs.sed
56769 rm -f conf$$subs.sed
56770 cat >>$CONFIG_STATUS <<_ACEOF
56771 CEOF$ac_eof
56772 _ACEOF
56773
56774
56775 ac_delim='%!_!# '
56776 for ac_last_try in false false false false false :; do
56777   cat >conf$$subs.sed <<_ACEOF
56778 USE_SOVERSION!$USE_SOVERSION$ac_delim
56779 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
56780 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
56781 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
56782 USE_MACVERSION!$USE_MACVERSION$ac_delim
56783 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
56784 SONAME_FLAG!$SONAME_FLAG$ac_delim
56785 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
56786 BK_DEPS!$BK_DEPS$ac_delim
56787 WINDRES!$WINDRES$ac_delim
56788 REZ!$REZ$ac_delim
56789 SETFILE!$SETFILE$ac_delim
56790 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
56791 GCC_PCH!$GCC_PCH$ac_delim
56792 ICC_PCH!$ICC_PCH$ac_delim
56793 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
56794 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
56795 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
56796 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
56797 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
56798 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
56799 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
56800 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
56801 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
56802 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
56803 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
56804 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
56805 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
56806 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
56807 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
56808 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
56809 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
56810 COND_BUILD_release!$COND_BUILD_release$ac_delim
56811 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
56812 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
56813 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
56814 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
56815 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
56816 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
56817 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
56818 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
56819 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
56820 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
56821 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
56822 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
56823 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
56824 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
56825 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
56826 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
56827 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56828 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
56829 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56830 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
56831 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
56832 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
56833 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
56834 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
56835 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
56836 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
56837 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
56838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
56839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
56840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
56841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56842 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
56843 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
56844 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
56845 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
56846 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
56847 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
56848 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
56849 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56850 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
56851 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
56852 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
56853 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
56854 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
56855 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
56856 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
56857 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
56858 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
56859 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
56860 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
56861 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
56862 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
56863 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
56864 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
56865 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
56866 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
56867 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
56868 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
56869 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56870 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
56871 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56872 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
56873 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56874 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
56875 _ACEOF
56876
56877   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56878     break
56879   elif $ac_last_try; then
56880     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56881 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56882    { (exit 1); exit 1; }; }
56883   else
56884     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56885   fi
56886 done
56887
56888 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56889 if test -n "$ac_eof"; then
56890   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56891   ac_eof=`expr $ac_eof + 1`
56892 fi
56893
56894 cat >>$CONFIG_STATUS <<_ACEOF
56895 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
56896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56897 _ACEOF
56898 sed '
56899 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56900 s/^/s,@/; s/!/@,|#_!!_#|/
56901 :n
56902 t n
56903 s/'"$ac_delim"'$/,g/; t
56904 s/$/\\/; p
56905 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56906 ' >>$CONFIG_STATUS <conf$$subs.sed
56907 rm -f conf$$subs.sed
56908 cat >>$CONFIG_STATUS <<_ACEOF
56909 CEOF$ac_eof
56910 _ACEOF
56911
56912
56913 ac_delim='%!_!# '
56914 for ac_last_try in false false false false false :; do
56915   cat >conf$$subs.sed <<_ACEOF
56916 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
56917 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
56918 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
56919 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
56920 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
56921 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
56922 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
56923 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
56924 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
56925 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
56926 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
56927 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
56928 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
56929 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
56930 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
56931 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
56932 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
56933 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
56934 COND_SHARED_0!$COND_SHARED_0$ac_delim
56935 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
56936 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
56937 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
56938 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
56939 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
56940 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
56941 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
56942 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
56943 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
56944 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
56945 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
56946 COND_SHARED_1!$COND_SHARED_1$ac_delim
56947 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
56948 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
56949 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
56950 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
56951 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
56952 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
56953 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
56954 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
56955 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
56956 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
56957 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
56958 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
56959 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
56960 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
56961 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
56962 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
56963 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
56964 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
56965 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
56966 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
56967 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
56968 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
56969 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
56970 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
56971 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
56972 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
56973 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56974 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
56975 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56976 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
56977 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56978 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
56979 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
56980 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
56981 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
56982 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
56983 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
56984 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
56985 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
56986 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
56987 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
56988 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
56989 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
56990 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
56991 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
56992 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
56993 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
56994 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
56995 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
56996 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
56997 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
56998 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
56999 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
57000 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
57001 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
57002 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
57003 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
57004 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
57005 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
57006 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
57007 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
57008 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
57009 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
57010 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
57011 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
57012 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
57013 _ACEOF
57014
57015   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
57016     break
57017   elif $ac_last_try; then
57018     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57020    { (exit 1); exit 1; }; }
57021   else
57022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57023   fi
57024 done
57025
57026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57027 if test -n "$ac_eof"; then
57028   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57029   ac_eof=`expr $ac_eof + 1`
57030 fi
57031
57032 cat >>$CONFIG_STATUS <<_ACEOF
57033 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
57034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57035 _ACEOF
57036 sed '
57037 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57038 s/^/s,@/; s/!/@,|#_!!_#|/
57039 :n
57040 t n
57041 s/'"$ac_delim"'$/,g/; t
57042 s/$/\\/; p
57043 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57044 ' >>$CONFIG_STATUS <conf$$subs.sed
57045 rm -f conf$$subs.sed
57046 cat >>$CONFIG_STATUS <<_ACEOF
57047 CEOF$ac_eof
57048 _ACEOF
57049
57050
57051 ac_delim='%!_!# '
57052 for ac_last_try in false false false false false :; do
57053   cat >conf$$subs.sed <<_ACEOF
57054 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
57055 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
57056 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
57057 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
57058 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
57059 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
57060 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
57061 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
57062 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
57063 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
57064 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
57065 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
57066 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
57067 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
57068 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
57069 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
57070 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
57071 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
57072 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
57073 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
57074 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
57075 DEREZ!$DEREZ$ac_delim
57076 SHARED!$SHARED$ac_delim
57077 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
57078 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
57079 USE_GUI!$USE_GUI$ac_delim
57080 AFMINSTALL!$AFMINSTALL$ac_delim
57081 WIN32INSTALL!$WIN32INSTALL$ac_delim
57082 TOOLKIT!$TOOLKIT$ac_delim
57083 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
57084 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
57085 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
57086 cross_compiling!$cross_compiling$ac_delim
57087 WIDGET_SET!$WIDGET_SET$ac_delim
57088 WX_RELEASE!$WX_RELEASE$ac_delim
57089 WX_VERSION!$WX_VERSION$ac_delim
57090 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
57091 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
57092 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
57093 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
57094 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
57095 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
57096 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
57097 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
57098 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
57099 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
57100 GUIDIST!$GUIDIST$ac_delim
57101 DISTDIR!$DISTDIR$ac_delim
57102 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
57103 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
57104 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
57105 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
57106 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
57107 RESCOMP!$RESCOMP$ac_delim
57108 RESFLAGS!$RESFLAGS$ac_delim
57109 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
57110 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
57111 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
57112 LIBWXMACRES!$LIBWXMACRES$ac_delim
57113 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
57114 MACSETFILE!$MACSETFILE$ac_delim
57115 GCC!$GCC$ac_delim
57116 DLLTOOL!$DLLTOOL$ac_delim
57117 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
57118 LIBOBJS!$LIBOBJS$ac_delim
57119 LTLIBOBJS!$LTLIBOBJS$ac_delim
57120 _ACEOF
57121
57122   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
57123     break
57124   elif $ac_last_try; then
57125     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57127    { (exit 1); exit 1; }; }
57128   else
57129     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57130   fi
57131 done
57132
57133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57134 if test -n "$ac_eof"; then
57135   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57136   ac_eof=`expr $ac_eof + 1`
57137 fi
57138
57139 cat >>$CONFIG_STATUS <<_ACEOF
57140 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
57141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
57142 _ACEOF
57143 sed '
57144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57145 s/^/s,@/; s/!/@,|#_!!_#|/
57146 :n
57147 t n
57148 s/'"$ac_delim"'$/,g/; t
57149 s/$/\\/; p
57150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57151 ' >>$CONFIG_STATUS <conf$$subs.sed
57152 rm -f conf$$subs.sed
57153 cat >>$CONFIG_STATUS <<_ACEOF
57154 :end
57155 s/|#_!!_#|//g
57156 CEOF$ac_eof
57157 _ACEOF
57158
57159
57160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57162 # trailing colons and then remove the whole line if VPATH becomes empty
57163 # (actually we leave an empty line to preserve line numbers).
57164 if test "x$srcdir" = x.; then
57165   ac_vpsub='/^[  ]*VPATH[        ]*=/{
57166 s/:*\$(srcdir):*/:/
57167 s/:*\${srcdir}:*/:/
57168 s/:*@srcdir@:*/:/
57169 s/^\([^=]*=[     ]*\):*/\1/
57170 s/:*$//
57171 s/^[^=]*=[       ]*$//
57172 }'
57173 fi
57174
57175 cat >>$CONFIG_STATUS <<\_ACEOF
57176 fi # test -n "$CONFIG_FILES"
57177
57178
57179 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
57180 do
57181   case $ac_tag in
57182   :[FHLC]) ac_mode=$ac_tag; continue;;
57183   esac
57184   case $ac_mode$ac_tag in
57185   :[FHL]*:*);;
57186   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
57187 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
57188    { (exit 1); exit 1; }; };;
57189   :[FH]-) ac_tag=-:-;;
57190   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57191   esac
57192   ac_save_IFS=$IFS
57193   IFS=:
57194   set x $ac_tag
57195   IFS=$ac_save_IFS
57196   shift
57197   ac_file=$1
57198   shift
57199
57200   case $ac_mode in
57201   :L) ac_source=$1;;
57202   :[FH])
57203     ac_file_inputs=
57204     for ac_f
57205     do
57206       case $ac_f in
57207       -) ac_f="$tmp/stdin";;
57208       *) # Look for the file first in the build tree, then in the source tree
57209          # (if the path is not absolute).  The absolute path cannot be DOS-style,
57210          # because $ac_f cannot contain `:'.
57211          test -f "$ac_f" ||
57212            case $ac_f in
57213            [\\/$]*) false;;
57214            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57215            esac ||
57216            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57217 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57218    { (exit 1); exit 1; }; };;
57219       esac
57220       ac_file_inputs="$ac_file_inputs $ac_f"
57221     done
57222
57223     # Let's still pretend it is `configure' which instantiates (i.e., don't
57224     # use $as_me), people would be surprised to read:
57225     #    /* config.h.  Generated by config.status.  */
57226     configure_input="Generated from "`IFS=:
57227           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
57228     if test x"$ac_file" != x-; then
57229       configure_input="$ac_file.  $configure_input"
57230       { echo "$as_me:$LINENO: creating $ac_file" >&5
57231 echo "$as_me: creating $ac_file" >&6;}
57232     fi
57233
57234     case $ac_tag in
57235     *:-:* | *:-) cat >"$tmp/stdin";;
57236     esac
57237     ;;
57238   esac
57239
57240   ac_dir=`$as_dirname -- "$ac_file" ||
57241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57242          X"$ac_file" : 'X\(//\)[^/]' \| \
57243          X"$ac_file" : 'X\(//\)$' \| \
57244          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57245 echo X"$ac_file" |
57246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57247             s//\1/
57248             q
57249           }
57250           /^X\(\/\/\)[^/].*/{
57251             s//\1/
57252             q
57253           }
57254           /^X\(\/\/\)$/{
57255             s//\1/
57256             q
57257           }
57258           /^X\(\/\).*/{
57259             s//\1/
57260             q
57261           }
57262           s/.*/./; q'`
57263   { as_dir="$ac_dir"
57264   case $as_dir in #(
57265   -*) as_dir=./$as_dir;;
57266   esac
57267   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57268     as_dirs=
57269     while :; do
57270       case $as_dir in #(
57271       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57272       *) as_qdir=$as_dir;;
57273       esac
57274       as_dirs="'$as_qdir' $as_dirs"
57275       as_dir=`$as_dirname -- "$as_dir" ||
57276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57277          X"$as_dir" : 'X\(//\)[^/]' \| \
57278          X"$as_dir" : 'X\(//\)$' \| \
57279          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57280 echo X"$as_dir" |
57281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57282             s//\1/
57283             q
57284           }
57285           /^X\(\/\/\)[^/].*/{
57286             s//\1/
57287             q
57288           }
57289           /^X\(\/\/\)$/{
57290             s//\1/
57291             q
57292           }
57293           /^X\(\/\).*/{
57294             s//\1/
57295             q
57296           }
57297           s/.*/./; q'`
57298       test -d "$as_dir" && break
57299     done
57300     test -z "$as_dirs" || eval "mkdir $as_dirs"
57301   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57303    { (exit 1); exit 1; }; }; }
57304   ac_builddir=.
57305
57306 case "$ac_dir" in
57307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57308 *)
57309   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57310   # A ".." for each directory in $ac_dir_suffix.
57311   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57312   case $ac_top_builddir_sub in
57313   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57314   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57315   esac ;;
57316 esac
57317 ac_abs_top_builddir=$ac_pwd
57318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57319 # for backward compatibility:
57320 ac_top_builddir=$ac_top_build_prefix
57321
57322 case $srcdir in
57323   .)  # We are building in place.
57324     ac_srcdir=.
57325     ac_top_srcdir=$ac_top_builddir_sub
57326     ac_abs_top_srcdir=$ac_pwd ;;
57327   [\\/]* | ?:[\\/]* )  # Absolute name.
57328     ac_srcdir=$srcdir$ac_dir_suffix;
57329     ac_top_srcdir=$srcdir
57330     ac_abs_top_srcdir=$srcdir ;;
57331   *) # Relative name.
57332     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57333     ac_top_srcdir=$ac_top_build_prefix$srcdir
57334     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57335 esac
57336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57337
57338
57339   case $ac_mode in
57340   :F)
57341   #
57342   # CONFIG_FILE
57343   #
57344
57345   case $INSTALL in
57346   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57347   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57348   esac
57349 _ACEOF
57350
57351 cat >>$CONFIG_STATUS <<\_ACEOF
57352 # If the template does not know about datarootdir, expand it.
57353 # FIXME: This hack should be removed a few years after 2.60.
57354 ac_datarootdir_hack=; ac_datarootdir_seen=
57355
57356 case `sed -n '/datarootdir/ {
57357   p
57358   q
57359 }
57360 /@datadir@/p
57361 /@docdir@/p
57362 /@infodir@/p
57363 /@localedir@/p
57364 /@mandir@/p
57365 ' $ac_file_inputs` in
57366 *datarootdir*) ac_datarootdir_seen=yes;;
57367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57368   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57369 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57370 _ACEOF
57371 cat >>$CONFIG_STATUS <<_ACEOF
57372   ac_datarootdir_hack='
57373   s&@datadir@&$datadir&g
57374   s&@docdir@&$docdir&g
57375   s&@infodir@&$infodir&g
57376   s&@localedir@&$localedir&g
57377   s&@mandir@&$mandir&g
57378     s&\\\${datarootdir}&$datarootdir&g' ;;
57379 esac
57380 _ACEOF
57381
57382 # Neutralize VPATH when `$srcdir' = `.'.
57383 # Shell code in configure.ac might set extrasub.
57384 # FIXME: do we really want to maintain this feature?
57385 cat >>$CONFIG_STATUS <<_ACEOF
57386   sed "$ac_vpsub
57387 $extrasub
57388 _ACEOF
57389 cat >>$CONFIG_STATUS <<\_ACEOF
57390 :t
57391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57392 s&@configure_input@&$configure_input&;t t
57393 s&@top_builddir@&$ac_top_builddir_sub&;t t
57394 s&@srcdir@&$ac_srcdir&;t t
57395 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57396 s&@top_srcdir@&$ac_top_srcdir&;t t
57397 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57398 s&@builddir@&$ac_builddir&;t t
57399 s&@abs_builddir@&$ac_abs_builddir&;t t
57400 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57401 s&@INSTALL@&$ac_INSTALL&;t t
57402 $ac_datarootdir_hack
57403 " $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
57404
57405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57406   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57407   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57408   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57409 which seems to be undefined.  Please make sure it is defined." >&5
57410 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57411 which seems to be undefined.  Please make sure it is defined." >&2;}
57412
57413   rm -f "$tmp/stdin"
57414   case $ac_file in
57415   -) cat "$tmp/out"; rm -f "$tmp/out";;
57416   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
57417   esac
57418  ;;
57419   :H)
57420   #
57421   # CONFIG_HEADER
57422   #
57423 _ACEOF
57424
57425 # Transform confdefs.h into a sed script `conftest.defines', that
57426 # substitutes the proper values into config.h.in to produce config.h.
57427 rm -f conftest.defines conftest.tail
57428 # First, append a space to every undef/define line, to ease matching.
57429 echo 's/$/ /' >conftest.defines
57430 # Then, protect against being on the right side of a sed subst, or in
57431 # an unquoted here document, in config.status.  If some macros were
57432 # called several times there might be several #defines for the same
57433 # symbol, which is useless.  But do not sort them, since the last
57434 # AC_DEFINE must be honored.
57435 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57436 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
57437 # NAME is the cpp macro being defined, VALUE is the value it is being given.
57438 # PARAMS is the parameter list in the macro definition--in most cases, it's
57439 # just an empty string.
57440 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
57441 ac_dB='\\)[      (].*,\\1define\\2'
57442 ac_dC=' '
57443 ac_dD=' ,'
57444
57445 uniq confdefs.h |
57446   sed -n '
57447         t rset
57448         :rset
57449         s/^[     ]*#[    ]*define[       ][      ]*//
57450         t ok
57451         d
57452         :ok
57453         s/[\\&,]/\\&/g
57454         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
57455         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
57456   ' >>conftest.defines
57457
57458 # Remove the space that was appended to ease matching.
57459 # Then replace #undef with comments.  This is necessary, for
57460 # example, in the case of _POSIX_SOURCE, which is predefined and required
57461 # on some systems where configure will not decide to define it.
57462 # (The regexp can be short, since the line contains either #define or #undef.)
57463 echo 's/ $//
57464 s,^[     #]*u.*,/* & */,' >>conftest.defines
57465
57466 # Break up conftest.defines:
57467 ac_max_sed_lines=50
57468
57469 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
57470 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
57471 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
57472 # et cetera.
57473 ac_in='$ac_file_inputs'
57474 ac_out='"$tmp/out1"'
57475 ac_nxt='"$tmp/out2"'
57476
57477 while :
57478 do
57479   # Write a here document:
57480     cat >>$CONFIG_STATUS <<_ACEOF
57481     # First, check the format of the line:
57482     cat >"\$tmp/defines.sed" <<\\CEOF
57483 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
57484 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
57485 b
57486 :def
57487 _ACEOF
57488   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
57489   echo 'CEOF
57490     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
57491   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
57492   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
57493   grep . conftest.tail >/dev/null || break
57494   rm -f conftest.defines
57495   mv conftest.tail conftest.defines
57496 done
57497 rm -f conftest.defines conftest.tail
57498
57499 echo "ac_result=$ac_in" >>$CONFIG_STATUS
57500 cat >>$CONFIG_STATUS <<\_ACEOF
57501   if test x"$ac_file" != x-; then
57502     echo "/* $configure_input  */" >"$tmp/config.h"
57503     cat "$ac_result" >>"$tmp/config.h"
57504     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
57505       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57506 echo "$as_me: $ac_file is unchanged" >&6;}
57507     else
57508       rm -f $ac_file
57509       mv "$tmp/config.h" $ac_file
57510     fi
57511   else
57512     echo "/* $configure_input  */"
57513     cat "$ac_result"
57514   fi
57515   rm -f "$tmp/out12"
57516  ;;
57517
57518   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
57519 echo "$as_me: executing $ac_file commands" >&6;}
57520  ;;
57521   esac
57522
57523
57524   case $ac_file$ac_mode in
57525     "rcdefs.h":C)
57526             mkdir -p $outdir &&
57527             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
57528          ;;
57529     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
57530     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
57531     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
57532     "wx-config":C)  rm -f wx-config
57533                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
57534                     ;;
57535
57536   esac
57537 done # for ac_tag
57538
57539
57540 { (exit 0); exit 0; }
57541 _ACEOF
57542 chmod +x $CONFIG_STATUS
57543 ac_clean_files=$ac_clean_files_save
57544
57545
57546 # configure is writing to config.log, and then calls config.status.
57547 # config.status does its own redirection, appending to config.log.
57548 # Unfortunately, on DOS this fails, as config.log is still kept open
57549 # by configure, so config.status won't be able to write to it; its
57550 # output is simply discarded.  So we exec the FD to /dev/null,
57551 # effectively closing config.log, so it can be properly (re)opened and
57552 # appended to by config.status.  When coming back to configure, we
57553 # need to make the FD available again.
57554 if test "$no_create" != yes; then
57555   ac_cs_success=:
57556   ac_config_status_args=
57557   test "$silent" = yes &&
57558     ac_config_status_args="$ac_config_status_args --quiet"
57559   exec 5>/dev/null
57560   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57561   exec 5>>config.log
57562   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57563   # would make configure fail if this is the last instruction.
57564   $ac_cs_success || { (exit 1); exit 1; }
57565 fi
57566
57567 #
57568 # CONFIG_SUBDIRS section.
57569 #
57570 if test "$no_recursion" != yes; then
57571
57572   # Remove --cache-file and --srcdir arguments so they do not pile up.
57573   ac_sub_configure_args=
57574   ac_prev=
57575   eval "set x $ac_configure_args"
57576   shift
57577   for ac_arg
57578   do
57579     if test -n "$ac_prev"; then
57580       ac_prev=
57581       continue
57582     fi
57583     case $ac_arg in
57584     -cache-file | --cache-file | --cache-fil | --cache-fi \
57585     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
57586       ac_prev=cache_file ;;
57587     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
57588     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
57589     | --c=*)
57590       ;;
57591     --config-cache | -C)
57592       ;;
57593     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
57594       ac_prev=srcdir ;;
57595     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
57596       ;;
57597     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
57598       ac_prev=prefix ;;
57599     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
57600       ;;
57601     *)
57602       case $ac_arg in
57603       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57604       esac
57605       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
57606     esac
57607   done
57608
57609   # Always prepend --prefix to ensure using the same prefix
57610   # in subdir configurations.
57611   ac_arg="--prefix=$prefix"
57612   case $ac_arg in
57613   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57614   esac
57615   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
57616
57617   # Pass --silent
57618   if test "$silent" = yes; then
57619     ac_sub_configure_args="--silent $ac_sub_configure_args"
57620   fi
57621
57622   ac_popdir=`pwd`
57623   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
57624
57625     # Do not complain, so a configure script can configure whichever
57626     # parts of a large source tree are present.
57627     test -d "$srcdir/$ac_dir" || continue
57628
57629     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
57630     echo "$as_me:$LINENO: $ac_msg" >&5
57631     echo "$ac_msg" >&6
57632     { as_dir="$ac_dir"
57633   case $as_dir in #(
57634   -*) as_dir=./$as_dir;;
57635   esac
57636   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57637     as_dirs=
57638     while :; do
57639       case $as_dir in #(
57640       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57641       *) as_qdir=$as_dir;;
57642       esac
57643       as_dirs="'$as_qdir' $as_dirs"
57644       as_dir=`$as_dirname -- "$as_dir" ||
57645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57646          X"$as_dir" : 'X\(//\)[^/]' \| \
57647          X"$as_dir" : 'X\(//\)$' \| \
57648          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57649 echo X"$as_dir" |
57650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57651             s//\1/
57652             q
57653           }
57654           /^X\(\/\/\)[^/].*/{
57655             s//\1/
57656             q
57657           }
57658           /^X\(\/\/\)$/{
57659             s//\1/
57660             q
57661           }
57662           /^X\(\/\).*/{
57663             s//\1/
57664             q
57665           }
57666           s/.*/./; q'`
57667       test -d "$as_dir" && break
57668     done
57669     test -z "$as_dirs" || eval "mkdir $as_dirs"
57670   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57671 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57672    { (exit 1); exit 1; }; }; }
57673     ac_builddir=.
57674
57675 case "$ac_dir" in
57676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57677 *)
57678   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57679   # A ".." for each directory in $ac_dir_suffix.
57680   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57681   case $ac_top_builddir_sub in
57682   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57683   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57684   esac ;;
57685 esac
57686 ac_abs_top_builddir=$ac_pwd
57687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57688 # for backward compatibility:
57689 ac_top_builddir=$ac_top_build_prefix
57690
57691 case $srcdir in
57692   .)  # We are building in place.
57693     ac_srcdir=.
57694     ac_top_srcdir=$ac_top_builddir_sub
57695     ac_abs_top_srcdir=$ac_pwd ;;
57696   [\\/]* | ?:[\\/]* )  # Absolute name.
57697     ac_srcdir=$srcdir$ac_dir_suffix;
57698     ac_top_srcdir=$srcdir
57699     ac_abs_top_srcdir=$srcdir ;;
57700   *) # Relative name.
57701     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57702     ac_top_srcdir=$ac_top_build_prefix$srcdir
57703     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57704 esac
57705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57706
57707
57708     cd "$ac_dir"
57709
57710     # Check for guested configure; otherwise get Cygnus style configure.
57711     if test -f "$ac_srcdir/configure.gnu"; then
57712       ac_sub_configure=$ac_srcdir/configure.gnu
57713     elif test -f "$ac_srcdir/configure"; then
57714       ac_sub_configure=$ac_srcdir/configure
57715     elif test -f "$ac_srcdir/configure.in"; then
57716       # This should be Cygnus configure.
57717       ac_sub_configure=$ac_aux_dir/configure
57718     else
57719       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
57720 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
57721       ac_sub_configure=
57722     fi
57723
57724     # The recursion is here.
57725     if test -n "$ac_sub_configure"; then
57726       # Make the cache file name correct relative to the subdirectory.
57727       case $cache_file in
57728       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
57729       *) # Relative name.
57730         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
57731       esac
57732
57733       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
57734 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
57735       # The eval makes quoting arguments work.
57736       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
57737            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
57738         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
57739 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
57740    { (exit 1); exit 1; }; }
57741     fi
57742
57743     cd "$ac_popdir"
57744   done
57745 fi
57746
57747
57748 echo
57749 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
57750 echo ""
57751 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
57752 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
57753 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
57754 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
57755 if test "$wxUSE_UNICODE" = "yes"; then
57756     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
57757         echo " (using UTF-8)"
57758     else
57759         echo " (using wchar_t)"
57760     fi
57761 else
57762     echo
57763 fi
57764
57765 echo "  What level of wxWidgets compatibility should be enabled?"
57766 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
57767 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
57768
57769 echo "  Which libraries should wxWidgets use?"
57770 echo "                                       STL                ${wxUSE_STL}"
57771 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
57772 echo "                                       png                ${wxUSE_LIBPNG-none}"
57773 echo "                                       regex              ${wxUSE_REGEX}"
57774 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
57775 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
57776 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
57777 fi
57778 echo "                                       zlib               ${wxUSE_ZLIB}"
57779 echo "                                       expat              ${wxUSE_EXPAT}"
57780 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
57781 echo "                                       sdl                ${wxUSE_LIBSDL}"
57782
57783 echo ""
57784