autogenerated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHARED
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CXX
670 CXXFLAGS
671 ac_ct_CXX
672 CPP
673 RANLIB
674 SET_MAKE
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 LN_S
679 UNCOMPRESS
680 AREXT
681 AR
682 SLEXT
683 CXXLIBS
684 STRIP
685 target
686 target_cpu
687 target_vendor
688 target_os
689 WORDS_BIGENDIAN
690 SYSTEM_BACKTICKS
691 GREP
692 EGREP
693 PACKAGE
694 VERSION
695 HAVE_UNISTD_H
696 FREETYPE_CONFIG
697 lame_objects
698 AVIFILE_CONFIG
699 VIDEO_LIBS
700 VIDEO_CFLAGS
701 USE_GZIP
702 PYTHON_LIB
703 PYTHON_INCLUDES
704 HAVE_PYTHON_IMAGING
705 PDF2SWF
706 LIBPDF
707 JPEG2SWF
708 GIF2SWF
709 PNG2SWF
710 LIBOBJS
711 LTLIBOBJS'
712 ac_subst_files=''
713       ac_precious_vars='build_alias
714 host_alias
715 target_alias
716 CC
717 CFLAGS
718 LDFLAGS
719 LIBS
720 CPPFLAGS
721 CXX
722 CXXFLAGS
723 CCC
724 CPP'
725
726
727 # Initialize some variables set by options.
728 ac_init_help=
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *)    ac_optarg=yes ;;
787   esac
788
789   # Accept the important Cygnus configure options, so we can diagnose typos.
790
791   case $ac_dashdash$ac_option in
792   --)
793     ac_dashdash=yes ;;
794
795   -bindir | --bindir | --bindi | --bind | --bin | --bi)
796     ac_prev=bindir ;;
797   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798     bindir=$ac_optarg ;;
799
800   -build | --build | --buil | --bui | --bu)
801     ac_prev=build_alias ;;
802   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803     build_alias=$ac_optarg ;;
804
805   -cache-file | --cache-file | --cache-fil | --cache-fi \
806   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807     ac_prev=cache_file ;;
808   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810     cache_file=$ac_optarg ;;
811
812   --config-cache | -C)
813     cache_file=config.cache ;;
814
815   -datadir | --datadir | --datadi | --datad)
816     ac_prev=datadir ;;
817   -datadir=* | --datadir=* | --datadi=* | --datad=*)
818     datadir=$ac_optarg ;;
819
820   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821   | --dataroo | --dataro | --datar)
822     ac_prev=datarootdir ;;
823   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825     datarootdir=$ac_optarg ;;
826
827   -disable-* | --disable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834     eval enable_$ac_feature=no ;;
835
836   -docdir | --docdir | --docdi | --doc | --do)
837     ac_prev=docdir ;;
838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839     docdir=$ac_optarg ;;
840
841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842     ac_prev=dvidir ;;
843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844     dvidir=$ac_optarg ;;
845
846   -enable-* | --enable-*)
847     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848     # Reject names that are not valid shell variable names.
849     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
850       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851    { (exit 1); exit 1; }; }
852     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
853     eval enable_$ac_feature=\$ac_optarg ;;
854
855   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857   | --exec | --exe | --ex)
858     ac_prev=exec_prefix ;;
859   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861   | --exec=* | --exe=* | --ex=*)
862     exec_prefix=$ac_optarg ;;
863
864   -gas | --gas | --ga | --g)
865     # Obsolete; use --with-gas.
866     with_gas=yes ;;
867
868   -help | --help | --hel | --he | -h)
869     ac_init_help=long ;;
870   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871     ac_init_help=recursive ;;
872   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873     ac_init_help=short ;;
874
875   -host | --host | --hos | --ho)
876     ac_prev=host_alias ;;
877   -host=* | --host=* | --hos=* | --ho=*)
878     host_alias=$ac_optarg ;;
879
880   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881     ac_prev=htmldir ;;
882   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883   | --ht=*)
884     htmldir=$ac_optarg ;;
885
886   -includedir | --includedir | --includedi | --included | --include \
887   | --includ | --inclu | --incl | --inc)
888     ac_prev=includedir ;;
889   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890   | --includ=* | --inclu=* | --incl=* | --inc=*)
891     includedir=$ac_optarg ;;
892
893   -infodir | --infodir | --infodi | --infod | --info | --inf)
894     ac_prev=infodir ;;
895   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896     infodir=$ac_optarg ;;
897
898   -libdir | --libdir | --libdi | --libd)
899     ac_prev=libdir ;;
900   -libdir=* | --libdir=* | --libdi=* | --libd=*)
901     libdir=$ac_optarg ;;
902
903   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904   | --libexe | --libex | --libe)
905     ac_prev=libexecdir ;;
906   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907   | --libexe=* | --libex=* | --libe=*)
908     libexecdir=$ac_optarg ;;
909
910   -localedir | --localedir | --localedi | --localed | --locale)
911     ac_prev=localedir ;;
912   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913     localedir=$ac_optarg ;;
914
915   -localstatedir | --localstatedir | --localstatedi | --localstated \
916   | --localstate | --localstat | --localsta | --localst | --locals)
917     ac_prev=localstatedir ;;
918   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920     localstatedir=$ac_optarg ;;
921
922   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923     ac_prev=mandir ;;
924   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925     mandir=$ac_optarg ;;
926
927   -nfp | --nfp | --nf)
928     # Obsolete; use --without-fp.
929     with_fp=no ;;
930
931   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932   | --no-cr | --no-c | -n)
933     no_create=yes ;;
934
935   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937     no_recursion=yes ;;
938
939   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941   | --oldin | --oldi | --old | --ol | --o)
942     ac_prev=oldincludedir ;;
943   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946     oldincludedir=$ac_optarg ;;
947
948   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949     ac_prev=prefix ;;
950   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951     prefix=$ac_optarg ;;
952
953   -program-prefix | --program-prefix | --program-prefi | --program-pref \
954   | --program-pre | --program-pr | --program-p)
955     ac_prev=program_prefix ;;
956   -program-prefix=* | --program-prefix=* | --program-prefi=* \
957   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958     program_prefix=$ac_optarg ;;
959
960   -program-suffix | --program-suffix | --program-suffi | --program-suff \
961   | --program-suf | --program-su | --program-s)
962     ac_prev=program_suffix ;;
963   -program-suffix=* | --program-suffix=* | --program-suffi=* \
964   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965     program_suffix=$ac_optarg ;;
966
967   -program-transform-name | --program-transform-name \
968   | --program-transform-nam | --program-transform-na \
969   | --program-transform-n | --program-transform- \
970   | --program-transform | --program-transfor \
971   | --program-transfo | --program-transf \
972   | --program-trans | --program-tran \
973   | --progr-tra | --program-tr | --program-t)
974     ac_prev=program_transform_name ;;
975   -program-transform-name=* | --program-transform-name=* \
976   | --program-transform-nam=* | --program-transform-na=* \
977   | --program-transform-n=* | --program-transform-=* \
978   | --program-transform=* | --program-transfor=* \
979   | --program-transfo=* | --program-transf=* \
980   | --program-trans=* | --program-tran=* \
981   | --progr-tra=* | --program-tr=* | --program-t=*)
982     program_transform_name=$ac_optarg ;;
983
984   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985     ac_prev=pdfdir ;;
986   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987     pdfdir=$ac_optarg ;;
988
989   -psdir | --psdir | --psdi | --psd | --ps)
990     ac_prev=psdir ;;
991   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992     psdir=$ac_optarg ;;
993
994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995   | -silent | --silent | --silen | --sile | --sil)
996     silent=yes ;;
997
998   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999     ac_prev=sbindir ;;
1000   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001   | --sbi=* | --sb=*)
1002     sbindir=$ac_optarg ;;
1003
1004   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006   | --sharedst | --shareds | --shared | --share | --shar \
1007   | --sha | --sh)
1008     ac_prev=sharedstatedir ;;
1009   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012   | --sha=* | --sh=*)
1013     sharedstatedir=$ac_optarg ;;
1014
1015   -site | --site | --sit)
1016     ac_prev=site ;;
1017   -site=* | --site=* | --sit=*)
1018     site=$ac_optarg ;;
1019
1020   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021     ac_prev=srcdir ;;
1022   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023     srcdir=$ac_optarg ;;
1024
1025   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026   | --syscon | --sysco | --sysc | --sys | --sy)
1027     ac_prev=sysconfdir ;;
1028   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030     sysconfdir=$ac_optarg ;;
1031
1032   -target | --target | --targe | --targ | --tar | --ta | --t)
1033     ac_prev=target_alias ;;
1034   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035     target_alias=$ac_optarg ;;
1036
1037   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038     verbose=yes ;;
1039
1040   -version | --version | --versio | --versi | --vers | -V)
1041     ac_init_version=: ;;
1042
1043   -with-* | --with-*)
1044     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid package name: $ac_package" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050     eval with_$ac_package=\$ac_optarg ;;
1051
1052   -without-* | --without-*)
1053     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid package name: $ac_package" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059     eval with_$ac_package=no ;;
1060
1061   --x)
1062     # Obsolete; use --with-x.
1063     with_x=yes ;;
1064
1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066   | --x-incl | --x-inc | --x-in | --x-i)
1067     ac_prev=x_includes ;;
1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070     x_includes=$ac_optarg ;;
1071
1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074     ac_prev=x_libraries ;;
1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077     x_libraries=$ac_optarg ;;
1078
1079   -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081    { (exit 1); exit 1; }; }
1082     ;;
1083
1084   *=*)
1085     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089    { (exit 1); exit 1; }; }
1090     eval $ac_envvar=\$ac_optarg
1091     export $ac_envvar ;;
1092
1093   *)
1094     # FIXME: should be removed in autoconf 3.0.
1095     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099     ;;
1100
1101   esac
1102 done
1103
1104 if test -n "$ac_prev"; then
1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106   { echo "$as_me: error: missing argument to $ac_option" >&2
1107    { (exit 1); exit 1; }; }
1108 fi
1109
1110 # Be sure to have absolute directory names.
1111 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112                 datadir sysconfdir sharedstatedir localstatedir includedir \
1113                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114                 libdir localedir mandir
1115 do
1116   eval ac_val=\$$ac_var
1117   case $ac_val in
1118     [\\/$]* | ?:[\\/]* )  continue;;
1119     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120   esac
1121   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122    { (exit 1); exit 1; }; }
1123 done
1124
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1128 build=$build_alias
1129 host=$host_alias
1130 target=$target_alias
1131
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134   if test "x$build_alias" = x; then
1135     cross_compiling=maybe
1136     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137     If a cross compiler is detected then cross compile mode will be used." >&2
1138   elif test "x$build_alias" != "x$host_alias"; then
1139     cross_compiling=yes
1140   fi
1141 fi
1142
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146 test "$silent" = yes && exec 6>/dev/null
1147
1148
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152   { echo "$as_me: error: Working directory cannot be determined" >&2
1153    { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155   { echo "$as_me: error: pwd does not report name of working directory" >&2
1156    { (exit 1); exit 1; }; }
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161   ac_srcdir_defaulted=yes
1162   # Try the directory containing this script, then the parent directory.
1163   ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165          X"$0" : 'X\(//\)[^/]' \| \
1166          X"$0" : 'X\(//\)$' \| \
1167          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 echo X"$0" |
1169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\/\)[^/].*/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\).*/{
1182             s//\1/
1183             q
1184           }
1185           s/.*/./; q'`
1186   srcdir=$ac_confdir
1187   if test ! -r "$srcdir/$ac_unique_file"; then
1188     srcdir=..
1189   fi
1190 else
1191   ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196    { (exit 1); exit 1; }; }
1197 fi
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201    { (exit 1); exit 1; }; }
1202         pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205   srcdir=.
1206 fi
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_env_${ac_var}_value=\$${ac_var}
1216   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1219
1220 #
1221 # Report the --help message.
1222 #
1223 if test "$ac_init_help" = "long"; then
1224   # Omit some internal or obsolete options to make the list less imposing.
1225   # This message is too long to be a string in the A/UX 3.1 sh.
1226   cat <<_ACEOF
1227 \`configure' configures this package to adapt to many kinds of systems.
1228
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
1234 Defaults for the options are specified in brackets.
1235
1236 Configuration:
1237   -h, --help              display this help and exit
1238       --help=short        display options specific to this package
1239       --help=recursive    display the short help of all the included packages
1240   -V, --version           display version information and exit
1241   -q, --quiet, --silent   do not print \`checking...' messages
1242       --cache-file=FILE   cache test results in FILE [disabled]
1243   -C, --config-cache      alias for \`--cache-file=config.cache'
1244   -n, --no-create         do not create output files
1245       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
1247 Installation directories:
1248   --prefix=PREFIX         install architecture-independent files in PREFIX
1249                           [$ac_default_prefix]
1250   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251                           [PREFIX]
1252
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1257
1258 For better control, use the options below.
1259
1260 Fine tuning of the installation directories:
1261   --bindir=DIR           user executables [EPREFIX/bin]
1262   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1263   --libexecdir=DIR       program executables [EPREFIX/libexec]
1264   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1265   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1266   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1267   --libdir=DIR           object code libraries [EPREFIX/lib]
1268   --includedir=DIR       C header files [PREFIX/include]
1269   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1270   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1271   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1272   --infodir=DIR          info documentation [DATAROOTDIR/info]
1273   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1274   --mandir=DIR           man documentation [DATAROOTDIR/man]
1275   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1276   --htmldir=DIR          html documentation [DOCDIR]
1277   --dvidir=DIR           dvi documentation [DOCDIR]
1278   --pdfdir=DIR           pdf documentation [DOCDIR]
1279   --psdir=DIR            ps documentation [DOCDIR]
1280 _ACEOF
1281
1282   cat <<\_ACEOF
1283
1284 Program names:
1285   --program-prefix=PREFIX            prepend PREFIX to installed program names
1286   --program-suffix=SUFFIX            append SUFFIX to installed program names
1287   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1288
1289 System types:
1290   --build=BUILD     configure for building on BUILD [guessed]
1291   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1292   --target=TARGET   configure for building compilers for TARGET [HOST]
1293 _ACEOF
1294 fi
1295
1296 if test -n "$ac_init_help"; then
1297
1298   cat <<\_ACEOF
1299
1300 Optional Features:
1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303   --enable-checkmem       turn on ccmalloc debugging
1304   --enable-debug          turn on debugging
1305   --enable-profiling      turn on profiling
1306   --enable-warnings        turn on compiler warnings
1307   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1308   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1309
1310 Some influential environment variables:
1311   CC          C compiler command
1312   CFLAGS      C compiler flags
1313   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1314               nonstandard directory <lib dir>
1315   LIBS        libraries to pass to the linker, e.g. -l<library>
1316   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317               you have headers in a nonstandard directory <include dir>
1318   CXX         C++ compiler command
1319   CXXFLAGS    C++ compiler flags
1320   CPP         C preprocessor
1321
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1324
1325 _ACEOF
1326 ac_status=$?
1327 fi
1328
1329 if test "$ac_init_help" = "recursive"; then
1330   # If there are subdirs, report their specific --help.
1331   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332     test -d "$ac_dir" || continue
1333     ac_builddir=.
1334
1335 case "$ac_dir" in
1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *)
1338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1339   # A ".." for each directory in $ac_dir_suffix.
1340   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1341   case $ac_top_builddir_sub in
1342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1344   esac ;;
1345 esac
1346 ac_abs_top_builddir=$ac_pwd
1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1348 # for backward compatibility:
1349 ac_top_builddir=$ac_top_build_prefix
1350
1351 case $srcdir in
1352   .)  # We are building in place.
1353     ac_srcdir=.
1354     ac_top_srcdir=$ac_top_builddir_sub
1355     ac_abs_top_srcdir=$ac_pwd ;;
1356   [\\/]* | ?:[\\/]* )  # Absolute name.
1357     ac_srcdir=$srcdir$ac_dir_suffix;
1358     ac_top_srcdir=$srcdir
1359     ac_abs_top_srcdir=$srcdir ;;
1360   *) # Relative name.
1361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1362     ac_top_srcdir=$ac_top_build_prefix$srcdir
1363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1364 esac
1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1366
1367     cd "$ac_dir" || { ac_status=$?; continue; }
1368     # Check for guested configure.
1369     if test -f "$ac_srcdir/configure.gnu"; then
1370       echo &&
1371       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1372     elif test -f "$ac_srcdir/configure"; then
1373       echo &&
1374       $SHELL "$ac_srcdir/configure" --help=recursive
1375     else
1376       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1377     fi || ac_status=$?
1378     cd "$ac_pwd" || { ac_status=$?; break; }
1379   done
1380 fi
1381
1382 test -n "$ac_init_help" && exit $ac_status
1383 if $ac_init_version; then
1384   cat <<\_ACEOF
1385 configure
1386 generated by GNU Autoconf 2.61
1387
1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1390 This configure script is free software; the Free Software Foundation
1391 gives unlimited permission to copy, distribute and modify it.
1392 _ACEOF
1393   exit
1394 fi
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1398
1399 It was created by $as_me, which was
1400 generated by GNU Autoconf 2.61.  Invocation command line was
1401
1402   $ $0 $@
1403
1404 _ACEOF
1405 exec 5>>config.log
1406 {
1407 cat <<_ASUNAME
1408 ## --------- ##
1409 ## Platform. ##
1410 ## --------- ##
1411
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1420
1421 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1422 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1425 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1426 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1427 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1428
1429 _ASUNAME
1430
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   echo "PATH: $as_dir"
1437 done
1438 IFS=$as_save_IFS
1439
1440 } >&5
1441
1442 cat >&5 <<_ACEOF
1443
1444
1445 ## ----------- ##
1446 ## Core tests. ##
1447 ## ----------- ##
1448
1449 _ACEOF
1450
1451
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1457 ac_configure_args=
1458 ac_configure_args0=
1459 ac_configure_args1=
1460 ac_must_keep_next=false
1461 for ac_pass in 1 2
1462 do
1463   for ac_arg
1464   do
1465     case $ac_arg in
1466     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468     | -silent | --silent | --silen | --sile | --sil)
1469       continue ;;
1470     *\'*)
1471       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472     esac
1473     case $ac_pass in
1474     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1475     2)
1476       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1477       if test $ac_must_keep_next = true; then
1478         ac_must_keep_next=false # Got value, back to normal.
1479       else
1480         case $ac_arg in
1481           *=* | --config-cache | -C | -disable-* | --disable-* \
1482           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484           | -with-* | --with-* | -without-* | --without-* | --x)
1485             case "$ac_configure_args0 " in
1486               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487             esac
1488             ;;
1489           -* ) ac_must_keep_next=true ;;
1490         esac
1491       fi
1492       ac_configure_args="$ac_configure_args '$ac_arg'"
1493       ;;
1494     esac
1495   done
1496 done
1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1499
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log.  We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506   # Save into config.log some information that might help in debugging.
1507   {
1508     echo
1509
1510     cat <<\_ASBOX
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1514 _ASBOX
1515     echo
1516     # The following way of writing the cache mishandles newlines in values,
1517 (
1518   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519     eval ac_val=\$$ac_var
1520     case $ac_val in #(
1521     *${as_nl}*)
1522       case $ac_var in #(
1523       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1525       esac
1526       case $ac_var in #(
1527       _ | IFS | as_nl) ;; #(
1528       *) $as_unset $ac_var ;;
1529       esac ;;
1530     esac
1531   done
1532   (set) 2>&1 |
1533     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1534     *${as_nl}ac_space=\ *)
1535       sed -n \
1536         "s/'\''/'\''\\\\'\'''\''/g;
1537           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1538       ;; #(
1539     *)
1540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1541       ;;
1542     esac |
1543     sort
1544 )
1545     echo
1546
1547     cat <<\_ASBOX
1548 ## ----------------- ##
1549 ## Output variables. ##
1550 ## ----------------- ##
1551 _ASBOX
1552     echo
1553     for ac_var in $ac_subst_vars
1554     do
1555       eval ac_val=\$$ac_var
1556       case $ac_val in
1557       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558       esac
1559       echo "$ac_var='\''$ac_val'\''"
1560     done | sort
1561     echo
1562
1563     if test -n "$ac_subst_files"; then
1564       cat <<\_ASBOX
1565 ## ------------------- ##
1566 ## File substitutions. ##
1567 ## ------------------- ##
1568 _ASBOX
1569       echo
1570       for ac_var in $ac_subst_files
1571       do
1572         eval ac_val=\$$ac_var
1573         case $ac_val in
1574         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575         esac
1576         echo "$ac_var='\''$ac_val'\''"
1577       done | sort
1578       echo
1579     fi
1580
1581     if test -s confdefs.h; then
1582       cat <<\_ASBOX
1583 ## ----------- ##
1584 ## confdefs.h. ##
1585 ## ----------- ##
1586 _ASBOX
1587       echo
1588       cat confdefs.h
1589       echo
1590     fi
1591     test "$ac_signal" != 0 &&
1592       echo "$as_me: caught signal $ac_signal"
1593     echo "$as_me: exit $exit_status"
1594   } >&5
1595   rm -f core *.core core.conftest.* &&
1596     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1597     exit $exit_status
1598 ' 0
1599 for ac_signal in 1 2 13 15; do
1600   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1601 done
1602 ac_signal=0
1603
1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1605 rm -f -r conftest* confdefs.h
1606
1607 # Predefined preprocessor variables.
1608
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_NAME "$PACKAGE_NAME"
1611 _ACEOF
1612
1613
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1616 _ACEOF
1617
1618
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1621 _ACEOF
1622
1623
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1626 _ACEOF
1627
1628
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1631 _ACEOF
1632
1633
1634 # Let the site file select an alternate cache file if it wants to.
1635 # Prefer explicitly selected file to automatically selected ones.
1636 if test -n "$CONFIG_SITE"; then
1637   set x "$CONFIG_SITE"
1638 elif test "x$prefix" != xNONE; then
1639   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1640 else
1641   set x "$ac_default_prefix/share/config.site" \
1642         "$ac_default_prefix/etc/config.site"
1643 fi
1644 shift
1645 for ac_site_file
1646 do
1647   if test -r "$ac_site_file"; then
1648     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1649 echo "$as_me: loading site script $ac_site_file" >&6;}
1650     sed 's/^/| /' "$ac_site_file" >&5
1651     . "$ac_site_file"
1652   fi
1653 done
1654
1655 if test -r "$cache_file"; then
1656   # Some versions of bash will fail to source /dev/null (special
1657   # files actually), so we avoid doing that.
1658   if test -f "$cache_file"; then
1659     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1660 echo "$as_me: loading cache $cache_file" >&6;}
1661     case $cache_file in
1662       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663       *)                      . "./$cache_file";;
1664     esac
1665   fi
1666 else
1667   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1668 echo "$as_me: creating cache $cache_file" >&6;}
1669   >$cache_file
1670 fi
1671
1672 # Check that the precious variables saved in the cache have kept the same
1673 # value.
1674 ac_cache_corrupted=false
1675 for ac_var in $ac_precious_vars; do
1676   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1677   eval ac_new_set=\$ac_env_${ac_var}_set
1678   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1679   eval ac_new_val=\$ac_env_${ac_var}_value
1680   case $ac_old_set,$ac_new_set in
1681     set,)
1682       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1684       ac_cache_corrupted=: ;;
1685     ,set)
1686       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1687 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1688       ac_cache_corrupted=: ;;
1689     ,);;
1690     *)
1691       if test "x$ac_old_val" != "x$ac_new_val"; then
1692         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1693 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1694         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1695 echo "$as_me:   former value:  $ac_old_val" >&2;}
1696         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1697 echo "$as_me:   current value: $ac_new_val" >&2;}
1698         ac_cache_corrupted=:
1699       fi;;
1700   esac
1701   # Pass precious variables to config.status.
1702   if test "$ac_new_set" = set; then
1703     case $ac_new_val in
1704     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1705     *) ac_arg=$ac_var=$ac_new_val ;;
1706     esac
1707     case " $ac_configure_args " in
1708       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1709       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1710     esac
1711   fi
1712 done
1713 if $ac_cache_corrupted; then
1714   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1715 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1716   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1717 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1718    { (exit 1); exit 1; }; }
1719 fi
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737 ac_ext=c
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742
1743
1744
1745
1746 # Check whether --enable-checkmem was given.
1747 if test "${enable_checkmem+set}" = set; then
1748   enableval=$enable_checkmem; CHECKMEM=true
1749 fi
1750
1751 # Check whether --enable-debug was given.
1752 if test "${enable_debug+set}" = set; then
1753   enableval=$enable_debug; DEBUG=true
1754 fi
1755
1756 # Check whether --enable-profiling was given.
1757 if test "${enable_profiling+set}" = set; then
1758   enableval=$enable_profiling; PROFILING=true
1759 fi
1760
1761 # Check whether --enable-warnings was given.
1762 if test "${enable_warnings+set}" = set; then
1763   enableval=$enable_warnings; ENABLE_WARNINGS=true
1764 fi
1765
1766 # Check whether --enable-optimizations was given.
1767 if test "${enable_optimizations+set}" = set; then
1768   enableval=$enable_optimizations; OPTIMIZE=true
1769 fi
1770
1771 # Check whether --enable-lame was given.
1772 if test "${enable_lame+set}" = set; then
1773   enableval=$enable_lame; DISABLE_LAME=true
1774 fi
1775
1776
1777 PACKAGE=swftools
1778 VERSION=2008-03-26-1351
1779
1780
1781 # ------------------------------------------------------------------
1782
1783 if test "x${srcdir}" != "x."; then
1784     echo "--srcdir is not supported"
1785     exit 1
1786 fi
1787
1788 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1789 if test "x$ENABLE_WARNINGS" '!=' "x";then
1790     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1791 fi
1792
1793 if test "x$CHECKMEM" '!=' "x";then
1794     DEBUG=yes
1795 fi
1796 if test "x$PROFILING" '!=' "x";then
1797     DEBUG=yes
1798 fi
1799 if test "x$DEBUG" '!=' "x";then
1800     if test "x$PROFILING" = "x";then
1801         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1802         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1803         LDFLAGS="-g $LIBS"
1804     else
1805         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1806         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1807         LDFLAGS="-g -pg $LIBS"
1808     fi
1809 else if test "x$OPTIMIZE" '!=' "x"; then
1810     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1811     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1812 else
1813     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1814     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1815 fi
1816 fi
1817
1818 CFLAGS="-fPIC $CFLAGS"
1819 CXXFLAGS="-fPIC $CFLAGS"
1820
1821 #OLDGCC=1
1822 #if test "x$OLDGCC" '!=' "x";then
1823 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1824 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1825 #     CFLAGS="$CFLAGS -ansi -pendantic"
1826 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1827 #fi
1828
1829 export PACKAGE VERSION CFLAGS CXXFLAGS
1830
1831
1832 ac_aux_dir=
1833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1834   if test -f "$ac_dir/install-sh"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/install-sh -c"
1837     break
1838   elif test -f "$ac_dir/install.sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install.sh -c"
1841     break
1842   elif test -f "$ac_dir/shtool"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/shtool install -c"
1845     break
1846   fi
1847 done
1848 if test -z "$ac_aux_dir"; then
1849   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1850 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1851    { (exit 1); exit 1; }; }
1852 fi
1853
1854 # These three variables are undocumented and unsupported,
1855 # and are intended to be withdrawn in a future Autoconf release.
1856 # They can cause serious problems if a builder's source tree is in a directory
1857 # whose full name contains unusual characters.
1858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1860 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1861
1862
1863 # Make sure we can run config.sub.
1864 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1865   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1866 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1867    { (exit 1); exit 1; }; }
1868
1869 { echo "$as_me:$LINENO: checking build system type" >&5
1870 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1871 if test "${ac_cv_build+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   ac_build_alias=$build_alias
1875 test "x$ac_build_alias" = x &&
1876   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1877 test "x$ac_build_alias" = x &&
1878   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880    { (exit 1); exit 1; }; }
1881 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1882   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1884    { (exit 1); exit 1; }; }
1885
1886 fi
1887 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888 echo "${ECHO_T}$ac_cv_build" >&6; }
1889 case $ac_cv_build in
1890 *-*-*) ;;
1891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1892 echo "$as_me: error: invalid value of canonical build" >&2;}
1893    { (exit 1); exit 1; }; };;
1894 esac
1895 build=$ac_cv_build
1896 ac_save_IFS=$IFS; IFS='-'
1897 set x $ac_cv_build
1898 shift
1899 build_cpu=$1
1900 build_vendor=$2
1901 shift; shift
1902 # Remember, the first character of IFS is used to create $*,
1903 # except with old shells:
1904 build_os=$*
1905 IFS=$ac_save_IFS
1906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1907
1908
1909 { echo "$as_me:$LINENO: checking host system type" >&5
1910 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1911 if test "${ac_cv_host+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test "x$host_alias" = x; then
1915   ac_cv_host=$ac_cv_build
1916 else
1917   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1918     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1920    { (exit 1); exit 1; }; }
1921 fi
1922
1923 fi
1924 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1925 echo "${ECHO_T}$ac_cv_host" >&6; }
1926 case $ac_cv_host in
1927 *-*-*) ;;
1928 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1929 echo "$as_me: error: invalid value of canonical host" >&2;}
1930    { (exit 1); exit 1; }; };;
1931 esac
1932 host=$ac_cv_host
1933 ac_save_IFS=$IFS; IFS='-'
1934 set x $ac_cv_host
1935 shift
1936 host_cpu=$1
1937 host_vendor=$2
1938 shift; shift
1939 # Remember, the first character of IFS is used to create $*,
1940 # except with old shells:
1941 host_os=$*
1942 IFS=$ac_save_IFS
1943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1944
1945
1946
1947 SHARED="-shared"
1948 MACOSX=
1949 case $host_os in
1950     *darwin* )
1951         MACOSX=yes
1952         CFLAGS="$CFLAGS"
1953         CXXFLAGS="$CXXFLAGS -fno-rtti"
1954         SHARED="-bundle"
1955         # Use fink packages if available.
1956         #if test -d /sw/include && test -d /sw/lib; then
1957         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1958         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1959         #fi
1960         ;;
1961 esac
1962
1963
1964
1965  ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2002 else
2003   { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008 fi
2009 if test -z "$ac_cv_prog_CC"; then
2010   ac_ct_CC=$CC
2011   # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="gcc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047   if test "x$ac_ct_CC" = x; then
2048     CC=""
2049   else
2050     case $cross_compiling:$ac_tool_warned in
2051 yes:)
2052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet.  If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet.  If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned=yes ;;
2059 esac
2060     CC=$ac_ct_CC
2061   fi
2062 else
2063   CC="$ac_cv_prog_CC"
2064 fi
2065
2066 if test -z "$CC"; then
2067           if test -n "$ac_tool_prefix"; then
2068     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$CC"; then
2076   ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_CC="${ac_tool_prefix}cc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097   { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105   fi
2106 fi
2107 if test -z "$CC"; then
2108   # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118   ac_prog_rejected=no
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127        ac_prog_rejected=yes
2128        continue
2129      fi
2130     ac_cv_prog_CC="cc"
2131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132     break 2
2133   fi
2134 done
2135 done
2136 IFS=$as_save_IFS
2137
2138 if test $ac_prog_rejected = yes; then
2139   # We found a bogon in the path, so make sure we never use it.
2140   set dummy $ac_cv_prog_CC
2141   shift
2142   if test $# != 0; then
2143     # We chose a different compiler from the bogus one.
2144     # However, it has the same basename, so the bogon will be chosen
2145     # first if we set CC to just the basename; use the full file name.
2146     shift
2147     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148   fi
2149 fi
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162 fi
2163 if test -z "$CC"; then
2164   if test -n "$ac_tool_prefix"; then
2165   for ac_prog in cl.exe
2166   do
2167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2198 else
2199   { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 fi
2202
2203
2204     test -n "$CC" && break
2205   done
2206 fi
2207 if test -z "$CC"; then
2208   ac_ct_CC=$CC
2209   for ac_prog in cl.exe
2210 do
2211   # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_ac_ct_CC="$ac_prog"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2242 else
2243   { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2245 fi
2246
2247
2248   test -n "$ac_ct_CC" && break
2249 done
2250
2251   if test "x$ac_ct_CC" = x; then
2252     CC=""
2253   else
2254     case $cross_compiling:$ac_tool_warned in
2255 yes:)
2256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet.  If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet.  If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2263 esac
2264     CC=$ac_ct_CC
2265   fi
2266 fi
2267
2268 fi
2269
2270
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO: checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (ac_try="$ac_compiler --version >&5"
2281 case "(($ac_try" in
2282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283   *) ac_try_echo=$ac_try;;
2284 esac
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286   (eval "$ac_compiler --version >&5") 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (ac_try="$ac_compiler -v >&5"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_compiler -v >&5") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300 { (ac_try="$ac_compiler -V >&5"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_compiler -V >&5") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }
2310
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 #
2335 # List of possible output files, starting from the most likely.
2336 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337 # only as a last resort.  b.out is created by i960 compilers.
2338 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2339 #
2340 # The IRIX 6 linker writes into existing files which may not be
2341 # executable, retaining their permissions.  Remove them first so a
2342 # subsequent execution test works.
2343 ac_rmfiles=
2344 for ac_file in $ac_files
2345 do
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2349   esac
2350 done
2351 rm -f $ac_rmfiles
2352
2353 if { (ac_try="$ac_link_default"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_link_default") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2366 # so that the user can short-circuit this test for compilers unknown to
2367 # Autoconf.
2368 for ac_file in $ac_files ''
2369 do
2370   test -f "$ac_file" || continue
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2373         ;;
2374     [ab].out )
2375         # We found the default executable, but exeext='' is most
2376         # certainly right.
2377         break;;
2378     *.* )
2379         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2380         then :; else
2381            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382         fi
2383         # We set ac_cv_exeext here because the later test for it is not
2384         # safe: cross compilers may not add the suffix if given an `-o'
2385         # argument, so we may need to know it at that point already.
2386         # Even if this section looks crufty: it has the advantage of
2387         # actually working.
2388         break;;
2389     * )
2390         break;;
2391   esac
2392 done
2393 test "$ac_cv_exeext" = no && ac_cv_exeext=
2394
2395 else
2396   ac_file=''
2397 fi
2398
2399 { echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6; }
2401 if test -z "$ac_file"; then
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409    { (exit 77); exit 77; }; }
2410 fi
2411
2412 ac_exeext=$ac_cv_exeext
2413
2414 # Check that the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421   if { ac_try='./$ac_file'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; }; then
2431     cross_compiling=no
2432   else
2433     if test "$cross_compiling" = maybe; then
2434         cross_compiling=yes
2435     else
2436         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }
2443     fi
2444   fi
2445 fi
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2448
2449 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450 ac_clean_files=$ac_clean_files_save
2451 # Check that the compiler produces executables we can run.  If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456 echo "${ECHO_T}$cross_compiling" >&6; }
2457
2458 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460 if { (ac_try="$ac_link"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_link") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; then
2470   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2473 # `rm'.
2474 for ac_file in conftest.exe conftest conftest.*; do
2475   test -f "$ac_file" || continue
2476   case $ac_file in
2477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479           break;;
2480     * ) break;;
2481   esac
2482 done
2483 else
2484   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest$ac_cv_exeext
2492 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494
2495 rm -f conftest.$ac_ext
2496 EXEEXT=$ac_cv_exeext
2497 ac_exeext=$EXEEXT
2498 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 if test "${ac_cv_objext+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.o conftest.obj
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   for ac_file in conftest.o conftest.obj conftest.*; do
2530   test -f "$ac_file" || continue;
2531   case $ac_file in
2532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2534        break;;
2535   esac
2536 done
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549 fi
2550 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6; }
2552 OBJEXT=$ac_cv_objext
2553 ac_objext=$OBJEXT
2554 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569 #ifndef __GNUC__
2570        choke me
2571 #endif
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } && {
2591          test -z "$ac_c_werror_flag" ||
2592          test ! -s conftest.err
2593        } && test -s conftest.$ac_objext; then
2594   ac_compiler_gnu=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599         ac_compiler_gnu=no
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   ac_save_c_werror_flag=$ac_c_werror_flag
2617    ac_c_werror_flag=yes
2618    ac_cv_prog_cc_g=no
2619    CFLAGS="-g"
2620    cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626
2627 int
2628 main ()
2629 {
2630
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642   (eval "$ac_compile") 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } && {
2649          test -z "$ac_c_werror_flag" ||
2650          test ! -s conftest.err
2651        } && test -s conftest.$ac_objext; then
2652   ac_cv_prog_cc_g=yes
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657         CFLAGS=""
2658       cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664
2665 int
2666 main ()
2667 {
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677   *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680   (eval "$ac_compile") 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } && {
2687          test -z "$ac_c_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest.$ac_objext; then
2690   :
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695         ac_c_werror_flag=$ac_save_c_werror_flag
2696          CFLAGS="-g"
2697          cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compile") 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } && {
2726          test -z "$ac_c_werror_flag" ||
2727          test ! -s conftest.err
2728        } && test -s conftest.$ac_objext; then
2729   ac_cv_prog_cc_g=yes
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 fi
2742
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744    ac_c_werror_flag=$ac_save_c_werror_flag
2745 fi
2746 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748 if test "$ac_test_CFLAGS" = set; then
2749   CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751   if test "$GCC" = yes; then
2752     CFLAGS="-g -O2"
2753   else
2754     CFLAGS="-g"
2755   fi
2756 else
2757   if test "$GCC" = yes; then
2758     CFLAGS="-O2"
2759   else
2760     CFLAGS=
2761   fi
2762 fi
2763 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_cc_c89+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   ac_cv_prog_cc_c89=no
2769 ac_save_CC=$CC
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776 #include <stdarg.h>
2777 #include <stdio.h>
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2784      char **p;
2785      int i;
2786 {
2787   return p[i];
2788 }
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2790 {
2791   char *s;
2792   va_list v;
2793   va_start (v,p);
2794   s = g (p, va_arg (v,int));
2795   va_end (v);
2796   return s;
2797 }
2798
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2800    function prototypes and stuff, but not '\xHH' hex character constants.
2801    These don't provoke an error unfortunately, instead are silently treated
2802    as 'x'.  The following induces an error, until -std is added to get
2803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2804    array size at least.  It's necessary to write '\x00'==0 to get something
2805    that's true only with -std.  */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807
2808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809    inside strings and character constants.  */
2810 #define FOO(x) 'x'
2811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 int argc;
2818 char **argv;
2819 int
2820 main ()
2821 {
2822 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 do
2830   CC="$ac_save_CC $ac_arg"
2831   rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_compile") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } && {
2845          test -z "$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        } && test -s conftest.$ac_objext; then
2848   ac_cv_prog_cc_c89=$ac_arg
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853
2854 fi
2855
2856 rm -f core conftest.err conftest.$ac_objext
2857   test "x$ac_cv_prog_cc_c89" != "xno" && break
2858 done
2859 rm -f conftest.$ac_ext
2860 CC=$ac_save_CC
2861
2862 fi
2863 # AC_CACHE_VAL
2864 case "x$ac_cv_prog_cc_c89" in
2865   x)
2866     { echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6; } ;;
2868   xno)
2869     { echo "$as_me:$LINENO: result: unsupported" >&5
2870 echo "${ECHO_T}unsupported" >&6; } ;;
2871   *)
2872     CC="$CC $ac_cv_prog_cc_c89"
2873     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2875 esac
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884  ac_ext=cpp
2885 ac_cpp='$CXXCPP $CPPFLAGS'
2886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 if test -z "$CXX"; then
2890   if test -n "$CCC"; then
2891     CXX=$CCC
2892   else
2893     if test -n "$ac_tool_prefix"; then
2894   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2895   do
2896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CXX+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   if test -n "$CXX"; then
2904   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911   for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CXX=$ac_cv_prog_CXX
2924 if test -n "$CXX"; then
2925   { echo "$as_me:$LINENO: result: $CXX" >&5
2926 echo "${ECHO_T}$CXX" >&6; }
2927 else
2928   { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2930 fi
2931
2932
2933     test -n "$CXX" && break
2934   done
2935 fi
2936 if test -z "$CXX"; then
2937   ac_ct_CXX=$CXX
2938   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 do
2940   # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -n "$ac_ct_CXX"; then
2948   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_ac_ct_CXX="$ac_prog"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2968 if test -n "$ac_ct_CXX"; then
2969   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2970 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2971 else
2972   { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2974 fi
2975
2976
2977   test -n "$ac_ct_CXX" && break
2978 done
2979
2980   if test "x$ac_ct_CXX" = x; then
2981     CXX="g++"
2982   else
2983     case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2986 whose name does not start with the host triplet.  If you think this
2987 configuration is useful to you, please write to autoconf@gnu.org." >&5
2988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2989 whose name does not start with the host triplet.  If you think this
2990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993     CXX=$ac_ct_CXX
2994   fi
2995 fi
2996
2997   fi
2998 fi
2999 # Provide some information about the compiler.
3000 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3001 ac_compiler=`set X $ac_compile; echo $2`
3002 { (ac_try="$ac_compiler --version >&5"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compiler --version >&5") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }
3012 { (ac_try="$ac_compiler -v >&5"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compiler -v >&5") 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }
3022 { (ac_try="$ac_compiler -V >&5"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compiler -V >&5") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }
3032
3033 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048 #ifndef __GNUC__
3049        choke me
3050 #endif
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && {
3070          test -z "$ac_cxx_werror_flag" ||
3071          test ! -s conftest.err
3072        } && test -s conftest.$ac_objext; then
3073   ac_compiler_gnu=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         ac_compiler_gnu=no
3079 fi
3080
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3083
3084 fi
3085 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3086 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3087 GXX=`test $ac_compiler_gnu = yes && echo yes`
3088 ac_test_CXXFLAGS=${CXXFLAGS+set}
3089 ac_save_CXXFLAGS=$CXXFLAGS
3090 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3091 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cxx_g+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3096    ac_cxx_werror_flag=yes
3097    ac_cv_prog_cxx_g=no
3098    CXXFLAGS="-g"
3099    cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3116 case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_compile") 2>conftest.er1
3122   ac_status=$?
3123   grep -v '^ *+' conftest.er1 >conftest.err
3124   rm -f conftest.er1
3125   cat conftest.err >&5
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } && {
3128          test -z "$ac_cxx_werror_flag" ||
3129          test ! -s conftest.err
3130        } && test -s conftest.$ac_objext; then
3131   ac_cv_prog_cxx_g=yes
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         CXXFLAGS=""
3137       cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143
3144 int
3145 main ()
3146 {
3147
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_compile") 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } && {
3166          test -z "$ac_cxx_werror_flag" ||
3167          test ! -s conftest.err
3168        } && test -s conftest.$ac_objext; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175          CXXFLAGS="-g"
3176          cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } && {
3205          test -z "$ac_cxx_werror_flag" ||
3206          test ! -s conftest.err
3207        } && test -s conftest.$ac_objext; then
3208   ac_cv_prog_cxx_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3224 fi
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3227 if test "$ac_test_CXXFLAGS" = set; then
3228   CXXFLAGS=$ac_save_CXXFLAGS
3229 elif test $ac_cv_prog_cxx_g = yes; then
3230   if test "$GXX" = yes; then
3231     CXXFLAGS="-g -O2"
3232   else
3233     CXXFLAGS="-g"
3234   fi
3235 else
3236   if test "$GXX" = yes; then
3237     CXXFLAGS="-O2"
3238   else
3239     CXXFLAGS=
3240   fi
3241 fi
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248
3249
3250
3251 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3252 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3253
3254 cat > conftest.c << EOF
3255 #include <stdlib.h>
3256 #include <stdio.h>
3257
3258 int main (int argc, char*argv)
3259 {
3260     int a,b;
3261     b=3;
3262     int c;
3263     c=4;
3264     return 0;
3265 }
3266 EOF
3267
3268 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3269 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270   { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272   GCC_IS_OK=true
3273   export GCC_IS_OK
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.c >&5
3277   { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3279 fi
3280 rm -f conftest*
3281
3282
3283 if test "x$GCC_IS_OK" '=' "x";then
3284     echo "***************************************************"
3285     echo "* Your gcc is too old to compile this!"
3286     echo "* "
3287     echo "* The last version compilable by this compiler is "
3288     echo "* swftools 0.7.0, which you can download from "
3289     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3290     echo "* ."
3291     echo "* Newer versions require at least gcc 3.0.0 "
3292     echo "***************************************************"
3293     exit 1
3294 fi
3295
3296 if test "x$CHECKMEM" '!=' "x";then
3297     CC="ccmalloc $CC"
3298     CXX="ccmalloc $CXX"
3299     #echo running again
3300     #unset ac_cv_prog_CC
3301     #unset ac_cv_prog_CXX
3302     #AC_PROG_CC
3303     #AC_PROG_CXX
3304 fi
3305  ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3312 # On Suns, sometimes $CPP names a directory.
3313 if test -n "$CPP" && test -d "$CPP"; then
3314   CPP=
3315 fi
3316 if test -z "$CPP"; then
3317   if test "${ac_cv_prog_CPP+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320       # Double quotes because CPP needs to be expanded
3321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322     do
3323       ac_preproc_ok=false
3324 for ac_c_preproc_warn_flag in '' yes
3325 do
3326   # Use a header file that comes with gcc, so configuring glibc
3327   # with a fresh cross-compiler works.
3328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329   # <limits.h> exists even on freestanding compilers.
3330   # On the NeXT, cc -E runs the code through the compiler's parser,
3331   # not just through cpp. "Syntax error" is here to catch this case.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #ifdef __STDC__
3339 # include <limits.h>
3340 #else
3341 # include <assert.h>
3342 #endif
3343                      Syntax error
3344 _ACEOF
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null && {
3358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359          test ! -s conftest.err
3360        }; then
3361   :
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366   # Broken: fails on valid input.
3367 continue
3368 fi
3369
3370 rm -f conftest.err conftest.$ac_ext
3371
3372   # OK, works on sane cases.  Now check whether nonexistent headers
3373   # can be detected and how.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380 #include <ac_nonexistent.h>
3381 _ACEOF
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } >/dev/null && {
3395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396          test ! -s conftest.err
3397        }; then
3398   # Broken: success on invalid input.
3399 continue
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404   # Passes both tests.
3405 ac_preproc_ok=:
3406 break
3407 fi
3408
3409 rm -f conftest.err conftest.$ac_ext
3410
3411 done
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3415   break
3416 fi
3417
3418     done
3419     ac_cv_prog_CPP=$CPP
3420
3421 fi
3422   CPP=$ac_cv_prog_CPP
3423 else
3424   ac_cv_prog_CPP=$CPP
3425 fi
3426 { echo "$as_me:$LINENO: result: $CPP" >&5
3427 echo "${ECHO_T}$CPP" >&6; }
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3430 do
3431   # Use a header file that comes with gcc, so configuring glibc
3432   # with a fresh cross-compiler works.
3433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434   # <limits.h> exists even on freestanding compilers.
3435   # On the NeXT, cc -E runs the code through the compiler's parser,
3436   # not just through cpp. "Syntax error" is here to catch this case.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #ifdef __STDC__
3444 # include <limits.h>
3445 #else
3446 # include <assert.h>
3447 #endif
3448                      Syntax error
3449 _ACEOF
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } >/dev/null && {
3463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3464          test ! -s conftest.err
3465        }; then
3466   :
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Broken: fails on valid input.
3472 continue
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477   # OK, works on sane cases.  Now check whether nonexistent headers
3478   # can be detected and how.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include <ac_nonexistent.h>
3486 _ACEOF
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } >/dev/null && {
3500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501          test ! -s conftest.err
3502        }; then
3503   # Broken: success on invalid input.
3504 continue
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509   # Passes both tests.
3510 ac_preproc_ok=:
3511 break
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 done
3517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518 rm -f conftest.err conftest.$ac_ext
3519 if $ac_preproc_ok; then
3520   :
3521 else
3522   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&5
3524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3525 See \`config.log' for more details." >&2;}
3526    { (exit 1); exit 1; }; }
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535
3536  if test -n "$ac_tool_prefix"; then
3537   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_RANLIB+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if test -n "$RANLIB"; then
3545   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 RANLIB=$ac_cv_prog_RANLIB
3565 if test -n "$RANLIB"; then
3566   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3567 echo "${ECHO_T}$RANLIB" >&6; }
3568 else
3569   { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$ac_cv_prog_RANLIB"; then
3576   ac_ct_RANLIB=$RANLIB
3577   # Extract the first word of "ranlib", so it can be a program name with args.
3578 set dummy ranlib; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$ac_ct_RANLIB"; then
3585   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594     ac_cv_prog_ac_ct_RANLIB="ranlib"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3605 if test -n "$ac_ct_RANLIB"; then
3606   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3607 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3608 else
3609   { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3611 fi
3612
3613   if test "x$ac_ct_RANLIB" = x; then
3614     RANLIB=":"
3615   else
3616     case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3619 whose name does not start with the host triplet.  If you think this
3620 configuration is useful to you, please write to autoconf@gnu.org." >&5
3621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3622 whose name does not start with the host triplet.  If you think this
3623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626     RANLIB=$ac_ct_RANLIB
3627   fi
3628 else
3629   RANLIB="$ac_cv_prog_RANLIB"
3630 fi
3631
3632  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3633 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3634 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3635 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   cat >conftest.make <<\_ACEOF
3639 SHELL = /bin/sh
3640 all:
3641         @echo '@@@%%%=$(MAKE)=@@@%%%'
3642 _ACEOF
3643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3644 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3645   *@@@%%%=?*=@@@%%%*)
3646     eval ac_cv_prog_make_${ac_make}_set=yes;;
3647   *)
3648     eval ac_cv_prog_make_${ac_make}_set=no;;
3649 esac
3650 rm -f conftest.make
3651 fi
3652 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3653   { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3655   SET_MAKE=
3656 else
3657   { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3659   SET_MAKE="MAKE=${MAKE-make}"
3660 fi
3661
3662  # Find a good install program.  We prefer a C program (faster),
3663 # so one script is as good as another.  But avoid the broken or
3664 # incompatible versions:
3665 # SysV /etc/install, /usr/sbin/install
3666 # SunOS /usr/etc/install
3667 # IRIX /sbin/install
3668 # AIX /bin/install
3669 # AmigaOS /C/install, which installs bootblocks on floppy discs
3670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3673 # OS/2's system install, which has a completely different semantic
3674 # ./install, which can be erroneously created by make from ./install.sh.
3675 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3677 if test -z "$INSTALL"; then
3678 if test "${ac_cv_path_install+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   # Account for people who put trailing slashes in PATH elements.
3687 case $as_dir/ in
3688   ./ | .// | /cC/* | \
3689   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3690   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3691   /usr/ucb/* ) ;;
3692   *)
3693     # OSF1 and SCO ODT 3.0 have their own names for install.
3694     # Don't use installbsd from OSF since it installs stuff as root
3695     # by default.
3696     for ac_prog in ginstall scoinst install; do
3697       for ac_exec_ext in '' $ac_executable_extensions; do
3698         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3699           if test $ac_prog = install &&
3700             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3701             # AIX install.  It has an incompatible calling convention.
3702             :
3703           elif test $ac_prog = install &&
3704             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705             # program-specific install script used by HP pwplus--don't use.
3706             :
3707           else
3708             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3709             break 3
3710           fi
3711         fi
3712       done
3713     done
3714     ;;
3715 esac
3716 done
3717 IFS=$as_save_IFS
3718
3719
3720 fi
3721   if test "${ac_cv_path_install+set}" = set; then
3722     INSTALL=$ac_cv_path_install
3723   else
3724     # As a last resort, use the slow shell script.  Don't cache a
3725     # value for INSTALL within a source directory, because that will
3726     # break other packages using the cache if that directory is
3727     # removed, or if the value is a relative name.
3728     INSTALL=$ac_install_sh
3729   fi
3730 fi
3731 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 echo "${ECHO_T}$INSTALL" >&6; }
3733
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739
3740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741
3742  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3744 LN_S=$as_ln_s
3745 if test "$LN_S" = "ln -s"; then
3746   { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3748 else
3749   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3750 echo "${ECHO_T}no, using $LN_S" >&6; }
3751 fi
3752
3753  for ac_prog in gzip uncompress compress
3754 do
3755   # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test -n "$UNCOMPRESS"; then
3763   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_prog_UNCOMPRESS="$ac_prog"
3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3783 if test -n "$UNCOMPRESS"; then
3784   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3785 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3786 else
3787   { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3789 fi
3790
3791
3792   test -n "$UNCOMPRESS" && break
3793 done
3794
3795
3796 OBJEXT="o"
3797 AREXT=".a"
3798 CXXLIBS="-lstdc++"
3799
3800
3801
3802 if test "x$EXEEXT" = "x.exe";then
3803     OBJEXT="obj"
3804     AREXT=".lib"
3805     CXXLIBS=""
3806 fi
3807
3808
3809
3810
3811 { echo "$as_me:$LINENO: checking host system type" >&5
3812 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3813 if test "${ac_cv_host+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test "x$host_alias" = x; then
3817   ac_cv_host=$ac_cv_build
3818 else
3819   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3820     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3821 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3822    { (exit 1); exit 1; }; }
3823 fi
3824
3825 fi
3826 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3827 echo "${ECHO_T}$ac_cv_host" >&6; }
3828 case $ac_cv_host in
3829 *-*-*) ;;
3830 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3831 echo "$as_me: error: invalid value of canonical host" >&2;}
3832    { (exit 1); exit 1; }; };;
3833 esac
3834 host=$ac_cv_host
3835 ac_save_IFS=$IFS; IFS='-'
3836 set x $ac_cv_host
3837 shift
3838 host_cpu=$1
3839 host_vendor=$2
3840 shift; shift
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3843 host_os=$*
3844 IFS=$ac_save_IFS
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848
3849
3850 { echo "$as_me:$LINENO: checking for target system" >&5
3851 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3852 CYGWIN=
3853 MINGW=
3854 case $host_os in
3855     *cygwin* ) CYGWIN=yes;;
3856     *mingw* ) MINGW=yes;;
3857 esac
3858
3859 AR=ar
3860 if test "x$MINGW" = "xyes"; then
3861     #fix for the debian distribution of mingw
3862     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3863         AR="/usr/i586-mingw32msvc/bin/ar"
3864     fi
3865     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3866         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3867     fi
3868     #fix for the gentoo distribution of mingw
3869     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3870         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3871     fi
3872     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3873         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3874     fi
3875     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3876         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3877     fi
3878 fi
3879
3880
3881
3882 if test "x${CYGWIN}" = "xyes"; then
3883     cat >>confdefs.h <<_ACEOF
3884 #define CYGWIN 1
3885 _ACEOF
3886
3887     { echo "$as_me:$LINENO: result: cygwin" >&5
3888 echo "${ECHO_T}cygwin" >&6; }
3889 else
3890     if test "x${MINGW}" = "xyes"; then
3891         cat >>confdefs.h <<_ACEOF
3892 #define MINGW 1
3893 _ACEOF
3894
3895         WIN32=1
3896         cat >>confdefs.h <<_ACEOF
3897 #define WIN32 1
3898 _ACEOF
3899
3900         LIBS="$LIBS -lws2_32 -lgdi32"
3901         { echo "$as_me:$LINENO: result: mingw" >&5
3902 echo "${ECHO_T}mingw" >&6; }
3903     else
3904         LINUX=1
3905         export LINUX
3906         cat >>confdefs.h <<_ACEOF
3907 #define LINUX 1
3908 _ACEOF
3909
3910         { echo "$as_me:$LINENO: result: " >&5
3911 echo "${ECHO_T}" >&6; }
3912     fi
3913 fi
3914
3915
3916 SLEXT="so"
3917 if test "x${MINGW}" != "xyes"; then
3918     # no mingW
3919     cat >>confdefs.h <<_ACEOF
3920 #define O_BINARY 0
3921 _ACEOF
3922
3923 else
3924     # mingW
3925     SLEXT="dll"
3926     CXXLIBS=""
3927 fi
3928 export SLEXT
3929
3930
3931
3932 # The following tries to make use of includes and libraries in
3933 # /usr/local, too. Notice: A -I/usr/local/include might break
3934 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3935 # especially on systems which link /usr/local to /usr, so it has yet
3936 # to be seen how useful this is.
3937 if test -d /usr/local/lib; then
3938     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3939 fi
3940 if test -d /usr/local/include; then
3941 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3942 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3943     echo > /dev/null
3944 fi
3945 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3946     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3947     # and $prefix/include, which should be included in our search paths for libraries
3948     # and includes.
3949     LDFLAGS="$LDFLAGS -L${libdir}"
3950     CPPFLAGS="$CPPFLAGS -I${includedir}"
3951     # TODO- test whether gcc still works after this
3952 fi
3953
3954 #Mac OS:
3955 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3956
3957
3958 # this must be done after (I believe) AC_PROG_MAKE_SET
3959 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3960     STRIP="@echo debug enabled, not stripping "
3961     export STRIP
3962
3963 fi
3964
3965
3966
3967 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3968 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3969 if test "${ac_cv_lib_m_sin+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lm  $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980
3981 /* Override any GCC internal prototype to avoid an error.
3982    Use char because int might match the return type of a GCC
3983    builtin and then its argument prototype would still apply.  */
3984 #ifdef __cplusplus
3985 extern "C"
3986 #endif
3987 char sin ();
3988 int
3989 main ()
3990 {
3991 return sin ();
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (ac_try="$ac_link"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_link") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } && {
4010          test -z "$ac_c_werror_flag" ||
4011          test ! -s conftest.err
4012        } && test -s conftest$ac_exeext &&
4013        $as_test_x conftest$ac_exeext; then
4014   ac_cv_lib_m_sin=yes
4015 else
4016   echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019         ac_cv_lib_m_sin=no
4020 fi
4021
4022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4023       conftest$ac_exeext conftest.$ac_ext
4024 LIBS=$ac_check_lib_save_LIBS
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4027 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4028 if test $ac_cv_lib_m_sin = yes; then
4029   cat >>confdefs.h <<_ACEOF
4030 #define HAVE_LIBM 1
4031 _ACEOF
4032
4033   LIBS="-lm $LIBS"
4034
4035 else
4036   echo "Error: Math library not found.";
4037  exit;
4038
4039 fi
4040
4041
4042 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4043 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4044 if test "${ac_cv_lib_z_deflate+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   ac_check_lib_save_LIBS=$LIBS
4048 LIBS="-lz  $LIBS"
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055
4056 /* Override any GCC internal prototype to avoid an error.
4057    Use char because int might match the return type of a GCC
4058    builtin and then its argument prototype would still apply.  */
4059 #ifdef __cplusplus
4060 extern "C"
4061 #endif
4062 char deflate ();
4063 int
4064 main ()
4065 {
4066 return deflate ();
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (ac_try="$ac_link"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_link") 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } && {
4085          test -z "$ac_c_werror_flag" ||
4086          test ! -s conftest.err
4087        } && test -s conftest$ac_exeext &&
4088        $as_test_x conftest$ac_exeext; then
4089   ac_cv_lib_z_deflate=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094         ac_cv_lib_z_deflate=no
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4098       conftest$ac_exeext conftest.$ac_ext
4099 LIBS=$ac_check_lib_save_LIBS
4100 fi
4101 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4102 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4103 if test $ac_cv_lib_z_deflate = yes; then
4104   cat >>confdefs.h <<_ACEOF
4105 #define HAVE_LIBZ 1
4106 _ACEOF
4107
4108   LIBS="-lz $LIBS"
4109
4110 else
4111   ZLIBMISSING=true
4112 fi
4113
4114
4115 if test "x$ZLIBMISSING" = "xtrue";then
4116     echo
4117     echo "ERROR:"
4118     echo "You need zlib to compile swftools"
4119     echo
4120     exit
4121 fi
4122
4123
4124 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4125 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4126 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   ac_check_lib_save_LIBS=$LIBS
4130 LIBS="-ljpeg  $LIBS"
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137
4138 /* Override any GCC internal prototype to avoid an error.
4139    Use char because int might match the return type of a GCC
4140    builtin and then its argument prototype would still apply.  */
4141 #ifdef __cplusplus
4142 extern "C"
4143 #endif
4144 char jpeg_write_raw_data ();
4145 int
4146 main ()
4147 {
4148 return jpeg_write_raw_data ();
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_link") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } && {
4167          test -z "$ac_c_werror_flag" ||
4168          test ! -s conftest.err
4169        } && test -s conftest$ac_exeext &&
4170        $as_test_x conftest$ac_exeext; then
4171   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4180       conftest$ac_exeext conftest.$ac_ext
4181 LIBS=$ac_check_lib_save_LIBS
4182 fi
4183 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4184 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4185 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4186   cat >>confdefs.h <<_ACEOF
4187 #define HAVE_LIBJPEG 1
4188 _ACEOF
4189
4190   LIBS="-ljpeg $LIBS"
4191
4192 else
4193   JPEGLIBMISSING=true
4194 fi
4195
4196
4197 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4198 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4199 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   ac_check_lib_save_LIBS=$LIBS
4203 LIBS="-lungif  $LIBS"
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210
4211 /* Override any GCC internal prototype to avoid an error.
4212    Use char because int might match the return type of a GCC
4213    builtin and then its argument prototype would still apply.  */
4214 #ifdef __cplusplus
4215 extern "C"
4216 #endif
4217 char DGifOpen ();
4218 int
4219 main ()
4220 {
4221 return DGifOpen ();
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_link") 2>conftest.er1
4234   ac_status=$?
4235   grep -v '^ *+' conftest.er1 >conftest.err
4236   rm -f conftest.er1
4237   cat conftest.err >&5
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && {
4240          test -z "$ac_c_werror_flag" ||
4241          test ! -s conftest.err
4242        } && test -s conftest$ac_exeext &&
4243        $as_test_x conftest$ac_exeext; then
4244   ac_cv_lib_ungif_DGifOpen=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         ac_cv_lib_ungif_DGifOpen=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4253       conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4255 fi
4256 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4257 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4258 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4259   cat >>confdefs.h <<_ACEOF
4260 #define HAVE_LIBUNGIF 1
4261 _ACEOF
4262
4263   LIBS="-lungif $LIBS"
4264
4265 else
4266   UNGIFMISSING=true
4267 fi
4268
4269 if test "$UNGIFMISSING";then
4270     UNGIFMISSING=
4271
4272 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4273 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4274 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   ac_check_lib_save_LIBS=$LIBS
4278 LIBS="-lgif  $LIBS"
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285
4286 /* Override any GCC internal prototype to avoid an error.
4287    Use char because int might match the return type of a GCC
4288    builtin and then its argument prototype would still apply.  */
4289 #ifdef __cplusplus
4290 extern "C"
4291 #endif
4292 char DGifOpen ();
4293 int
4294 main ()
4295 {
4296 return DGifOpen ();
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_link") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest$ac_exeext &&
4318        $as_test_x conftest$ac_exeext; then
4319   ac_cv_lib_gif_DGifOpen=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324         ac_cv_lib_gif_DGifOpen=no
4325 fi
4326
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328       conftest$ac_exeext conftest.$ac_ext
4329 LIBS=$ac_check_lib_save_LIBS
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4332 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4333 if test $ac_cv_lib_gif_DGifOpen = yes; then
4334   cat >>confdefs.h <<_ACEOF
4335 #define HAVE_LIBGIF 1
4336 _ACEOF
4337
4338   LIBS="-lgif $LIBS"
4339
4340 else
4341   UNGIFMISSING=true
4342 fi
4343
4344 fi
4345
4346
4347 { echo "$as_me:$LINENO: checking for byte order" >&5
4348 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4349 if test "$cross_compiling" = yes; then
4350   CROSSCOMPILE=1
4351 else
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358
4359 int main (int argc, char *argv[])
4360 {
4361     int i = 1;
4362     return *(char*)&i;
4363 }
4364
4365 _ACEOF
4366 rm -f conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_link") 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4377   { (case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_try") 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; }; then
4386   BIGENDIAN=1
4387 else
4388   echo "$as_me: program exited with status $ac_status" >&5
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ( exit $ac_status )
4393 LITTLEENDIAN=1
4394 fi
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 fi
4397
4398
4399 export CROSSCOMPILE
4400
4401 if test "x${CROSSCOMPILE}" = "x1"; then
4402  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4403 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4404  { echo "$as_me:$LINENO: checking target system type" >&5
4405 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4406 if test "${ac_cv_target+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   if test "x$target_alias" = x; then
4410   ac_cv_target=$ac_cv_host
4411 else
4412   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4413     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4414 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4415    { (exit 1); exit 1; }; }
4416 fi
4417
4418 fi
4419 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4420 echo "${ECHO_T}$ac_cv_target" >&6; }
4421 case $ac_cv_target in
4422 *-*-*) ;;
4423 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4424 echo "$as_me: error: invalid value of canonical target" >&2;}
4425    { (exit 1); exit 1; }; };;
4426 esac
4427 target=$ac_cv_target
4428 ac_save_IFS=$IFS; IFS='-'
4429 set x $ac_cv_target
4430 shift
4431 target_cpu=$1
4432 target_vendor=$2
4433 shift; shift
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4436 target_os=$*
4437 IFS=$ac_save_IFS
4438 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4439
4440
4441 # The aliases save the names the user supplied, while $host etc.
4442 # will get canonicalized.
4443 test -n "$target_alias" &&
4444   test "$program_prefix$program_suffix$program_transform_name" = \
4445     NONENONEs,x,x, &&
4446   program_prefix=${target_alias}-
4447  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4448 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4449  case "${target}" in
4450   *86* | *-pc-* )
4451      LITTLEENDIAN=1
4452      ;;
4453   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4454      BIGENDIAN=1
4455      ;;
4456  esac
4457 fi
4458
4459 export LITTLEENDIAN
4460 if test "x${LITTLEENDIAN}" = "x1"; then
4461 { echo "$as_me:$LINENO: result: little endian" >&5
4462 echo "${ECHO_T}little endian" >&6; }
4463 BYTEORDERCHECKOK=1
4464 fi
4465 export BIGENDIAN
4466 if test "x${BIGENDIAN}" = "x1"; then
4467 { echo "$as_me:$LINENO: result: big endian" >&5
4468 echo "${ECHO_T}big endian" >&6; }
4469 BYTEORDERCHECKOK=1
4470 WORDS_BIGENDIAN=1
4471 export WORDS_BIGENDIAN
4472 cat >>confdefs.h <<_ACEOF
4473 #define WORDS_BIGENDIAN 1
4474 _ACEOF
4475
4476 fi
4477 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4478 { echo "$as_me:$LINENO: result: unknown" >&5
4479 echo "${ECHO_T}unknown" >&6; }
4480 echo Byte order could not determined.
4481 exit 1
4482 fi
4483
4484
4485
4486 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4487 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4488 if test "$cross_compiling" = yes; then
4489   CROSSCOMPILE=1
4490 else
4491   cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 #include "stdlib.h"
4499 int main (int argc, char*argv[])
4500 {
4501     return system("test `touch config.tmp2`");
4502 }
4503
4504 _ACEOF
4505 rm -f conftest$ac_exeext
4506 if { (ac_try="$ac_link"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_link") 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4516   { (case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_try") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   OK=OK
4526 else
4527   echo "$as_me: program exited with status $ac_status" >&5
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 fi
4532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4533 fi
4534
4535
4536
4537 if test "x${OK}" = "xOK";then
4538     test -f config.tmp2 || OK=
4539 fi
4540
4541 if test "x${CROSSCOMPILE}" = "x1";then
4542     OK=no;
4543 fi
4544 if test "x${OK}" = "xOK";then
4545 rm -f config.tmp2
4546 { echo "$as_me:$LINENO: result: yes" >&5
4547 echo "${ECHO_T}yes" >&6; }
4548 SYSTEM_BACKTICKS=1
4549 export SYSTEM_BACKTICKS
4550 cat >>confdefs.h <<_ACEOF
4551 #define SYSTEM_BACKTICKS 1
4552 _ACEOF
4553
4554 else
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4557 fi
4558
4559
4560
4561 test "$program_prefix" != NONE &&
4562   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $.  echo might interpret backslashes.
4567 # By default was `s,x,x', remove it if useless.
4568 cat <<\_ACEOF >conftest.sed
4569 s/[\\$]/&&/g;s/;s,x,x,$//
4570 _ACEOF
4571 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4572 rm -f conftest.sed
4573
4574
4575  ac_config_headers="$ac_config_headers config.h"
4576
4577
4578
4579
4580
4581
4582 ac_header_dirent=no
4583 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4584   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4585 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4586 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 #include <sys/types.h>
4597 #include <$ac_hdr>
4598
4599 int
4600 main ()
4601 {
4602 if ((DIR *) 0)
4603 return 0;
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_compile") 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } && {
4622          test -z "$ac_c_werror_flag" ||
4623          test ! -s conftest.err
4624        } && test -s conftest.$ac_objext; then
4625   eval "$as_ac_Header=yes"
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         eval "$as_ac_Header=no"
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 ac_res=`eval echo '${'$as_ac_Header'}'`
4636                { echo "$as_me:$LINENO: result: $ac_res" >&5
4637 echo "${ECHO_T}$ac_res" >&6; }
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639   cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4641 _ACEOF
4642
4643 ac_header_dirent=$ac_hdr; break
4644 fi
4645
4646 done
4647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4648 if test $ac_header_dirent = dirent.h; then
4649   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4650 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4651 if test "${ac_cv_search_opendir+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   ac_func_search_save_LIBS=$LIBS
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661
4662 /* Override any GCC internal prototype to avoid an error.
4663    Use char because int might match the return type of a GCC
4664    builtin and then its argument prototype would still apply.  */
4665 #ifdef __cplusplus
4666 extern "C"
4667 #endif
4668 char opendir ();
4669 int
4670 main ()
4671 {
4672 return opendir ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 for ac_lib in '' dir; do
4678   if test -z "$ac_lib"; then
4679     ac_res="none required"
4680   else
4681     ac_res=-l$ac_lib
4682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4683   fi
4684   rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_link") 2>conftest.er1
4692   ac_status=$?
4693   grep -v '^ *+' conftest.er1 >conftest.err
4694   rm -f conftest.er1
4695   cat conftest.err >&5
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } && {
4698          test -z "$ac_c_werror_flag" ||
4699          test ! -s conftest.err
4700        } && test -s conftest$ac_exeext &&
4701        $as_test_x conftest$ac_exeext; then
4702   ac_cv_search_opendir=$ac_res
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707
4708 fi
4709
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711       conftest$ac_exeext
4712   if test "${ac_cv_search_opendir+set}" = set; then
4713   break
4714 fi
4715 done
4716 if test "${ac_cv_search_opendir+set}" = set; then
4717   :
4718 else
4719   ac_cv_search_opendir=no
4720 fi
4721 rm conftest.$ac_ext
4722 LIBS=$ac_func_search_save_LIBS
4723 fi
4724 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4725 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4726 ac_res=$ac_cv_search_opendir
4727 if test "$ac_res" != no; then
4728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4729
4730 fi
4731
4732 else
4733   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4735 if test "${ac_cv_search_opendir+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   ac_func_search_save_LIBS=$LIBS
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745
4746 /* Override any GCC internal prototype to avoid an error.
4747    Use char because int might match the return type of a GCC
4748    builtin and then its argument prototype would still apply.  */
4749 #ifdef __cplusplus
4750 extern "C"
4751 #endif
4752 char opendir ();
4753 int
4754 main ()
4755 {
4756 return opendir ();
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 for ac_lib in '' x; do
4762   if test -z "$ac_lib"; then
4763     ac_res="none required"
4764   else
4765     ac_res=-l$ac_lib
4766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4767   fi
4768   rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (ac_try="$ac_link"
4770 case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_link") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_c_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest$ac_exeext &&
4785        $as_test_x conftest$ac_exeext; then
4786   ac_cv_search_opendir=$ac_res
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791
4792 fi
4793
4794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4795       conftest$ac_exeext
4796   if test "${ac_cv_search_opendir+set}" = set; then
4797   break
4798 fi
4799 done
4800 if test "${ac_cv_search_opendir+set}" = set; then
4801   :
4802 else
4803   ac_cv_search_opendir=no
4804 fi
4805 rm conftest.$ac_ext
4806 LIBS=$ac_func_search_save_LIBS
4807 fi
4808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4810 ac_res=$ac_cv_search_opendir
4811 if test "$ac_res" != no; then
4812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4813
4814 fi
4815
4816 fi
4817
4818
4819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_GREP+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   # Extract the first word of "grep ggrep" to use in msg output
4825 if test -z "$GREP"; then
4826 set dummy grep ggrep; ac_prog_name=$2
4827 if test "${ac_cv_path_GREP+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   ac_path_GREP_found=false
4831 # Loop through the user's path and test for each of PROGNAME-LIST
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_prog in grep ggrep; do
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4840     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4841     # Check for GNU ac_path_GREP and select it if it is found.
4842   # Check for GNU $ac_path_GREP
4843 case `"$ac_path_GREP" --version 2>&1` in
4844 *GNU*)
4845   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4846 *)
4847   ac_count=0
4848   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4849   while :
4850   do
4851     cat "conftest.in" "conftest.in" >"conftest.tmp"
4852     mv "conftest.tmp" "conftest.in"
4853     cp "conftest.in" "conftest.nl"
4854     echo 'GREP' >> "conftest.nl"
4855     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4856     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4857     ac_count=`expr $ac_count + 1`
4858     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4859       # Best one so far, save it but keep looking for a better one
4860       ac_cv_path_GREP="$ac_path_GREP"
4861       ac_path_GREP_max=$ac_count
4862     fi
4863     # 10*(2^10) chars as input seems more than enough
4864     test $ac_count -gt 10 && break
4865   done
4866   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867 esac
4868
4869
4870     $ac_path_GREP_found && break 3
4871   done
4872 done
4873
4874 done
4875 IFS=$as_save_IFS
4876
4877
4878 fi
4879
4880 GREP="$ac_cv_path_GREP"
4881 if test -z "$GREP"; then
4882   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4884    { (exit 1); exit 1; }; }
4885 fi
4886
4887 else
4888   ac_cv_path_GREP=$GREP
4889 fi
4890
4891
4892 fi
4893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4895  GREP="$ac_cv_path_GREP"
4896
4897
4898 { echo "$as_me:$LINENO: checking for egrep" >&5
4899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_EGREP+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4904    then ac_cv_path_EGREP="$GREP -E"
4905    else
4906      # Extract the first word of "egrep" to use in msg output
4907 if test -z "$EGREP"; then
4908 set dummy egrep; ac_prog_name=$2
4909 if test "${ac_cv_path_EGREP+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   ac_path_EGREP_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_prog in egrep; do
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4922     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4923     # Check for GNU ac_path_EGREP and select it if it is found.
4924   # Check for GNU $ac_path_EGREP
4925 case `"$ac_path_EGREP" --version 2>&1` in
4926 *GNU*)
4927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4928 *)
4929   ac_count=0
4930   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4931   while :
4932   do
4933     cat "conftest.in" "conftest.in" >"conftest.tmp"
4934     mv "conftest.tmp" "conftest.in"
4935     cp "conftest.in" "conftest.nl"
4936     echo 'EGREP' >> "conftest.nl"
4937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939     ac_count=`expr $ac_count + 1`
4940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4941       # Best one so far, save it but keep looking for a better one
4942       ac_cv_path_EGREP="$ac_path_EGREP"
4943       ac_path_EGREP_max=$ac_count
4944     fi
4945     # 10*(2^10) chars as input seems more than enough
4946     test $ac_count -gt 10 && break
4947   done
4948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4950
4951
4952     $ac_path_EGREP_found && break 3
4953   done
4954 done
4955
4956 done
4957 IFS=$as_save_IFS
4958
4959
4960 fi
4961
4962 EGREP="$ac_cv_path_EGREP"
4963 if test -z "$EGREP"; then
4964   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4966    { (exit 1); exit 1; }; }
4967 fi
4968
4969 else
4970   ac_cv_path_EGREP=$EGREP
4971 fi
4972
4973
4974    fi
4975 fi
4976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4978  EGREP="$ac_cv_path_EGREP"
4979
4980
4981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4983 if test "${ac_cv_header_stdc+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <stdlib.h>
4993 #include <stdarg.h>
4994 #include <string.h>
4995 #include <float.h>
4996
4997 int
4998 main ()
4999 {
5000
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5007 case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012   (eval "$ac_compile") 2>conftest.er1
5013   ac_status=$?
5014   grep -v '^ *+' conftest.er1 >conftest.err
5015   rm -f conftest.er1
5016   cat conftest.err >&5
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } && {
5019          test -z "$ac_c_werror_flag" ||
5020          test ! -s conftest.err
5021        } && test -s conftest.$ac_objext; then
5022   ac_cv_header_stdc=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027         ac_cv_header_stdc=no
5028 fi
5029
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031
5032 if test $ac_cv_header_stdc = yes; then
5033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5034   cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 #include <string.h>
5041
5042 _ACEOF
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044   $EGREP "memchr" >/dev/null 2>&1; then
5045   :
5046 else
5047   ac_cv_header_stdc=no
5048 fi
5049 rm -f conftest*
5050
5051 fi
5052
5053 if test $ac_cv_header_stdc = yes; then
5054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 #include <stdlib.h>
5062
5063 _ACEOF
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065   $EGREP "free" >/dev/null 2>&1; then
5066   :
5067 else
5068   ac_cv_header_stdc=no
5069 fi
5070 rm -f conftest*
5071
5072 fi
5073
5074 if test $ac_cv_header_stdc = yes; then
5075   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076   if test "$cross_compiling" = yes; then
5077   :
5078 else
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <ctype.h>
5086 #include <stdlib.h>
5087 #if ((' ' & 0x0FF) == 0x020)
5088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5090 #else
5091 # define ISLOWER(c) \
5092                    (('a' <= (c) && (c) <= 'i') \
5093                      || ('j' <= (c) && (c) <= 'r') \
5094                      || ('s' <= (c) && (c) <= 'z'))
5095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5096 #endif
5097
5098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5099 int
5100 main ()
5101 {
5102   int i;
5103   for (i = 0; i < 256; i++)
5104     if (XOR (islower (i), ISLOWER (i))
5105         || toupper (i) != TOUPPER (i))
5106       return 2;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114   *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117   (eval "$ac_link") 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121   { (case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_try") 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   :
5131 else
5132   echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ( exit $ac_status )
5137 ac_cv_header_stdc=no
5138 fi
5139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5140 fi
5141
5142
5143 fi
5144 fi
5145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5147 if test $ac_cv_header_stdc = yes; then
5148
5149 cat >>confdefs.h <<\_ACEOF
5150 #define STDC_HEADERS 1
5151 _ACEOF
5152
5153 fi
5154
5155  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5166                   inttypes.h stdint.h unistd.h
5167 do
5168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 $ac_includes_default
5181
5182 #include <$ac_header>
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compile") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && {
5198          test -z "$ac_c_werror_flag" ||
5199          test ! -s conftest.err
5200        } && test -s conftest.$ac_objext; then
5201   eval "$as_ac_Header=yes"
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206         eval "$as_ac_Header=no"
5207 fi
5208
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 ac_res=`eval echo '${'$as_ac_Header'}'`
5212                { echo "$as_me:$LINENO: result: $ac_res" >&5
5213 echo "${ECHO_T}$ac_res" >&6; }
5214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5215   cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5217 _ACEOF
5218
5219 fi
5220
5221 done
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 for ac_header in zlib.h gif_lib.h io.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5240 do
5241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 fi
5248 ac_res=`eval echo '${'$as_ac_Header'}'`
5249                { echo "$as_me:$LINENO: result: $ac_res" >&5
5250 echo "${ECHO_T}$ac_res" >&6; }
5251 else
5252   # Is the header compilable?
5253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261 $ac_includes_default
5262 #include <$ac_header>
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (ac_try="$ac_compile"
5266 case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_compile") 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } && {
5278          test -z "$ac_c_werror_flag" ||
5279          test ! -s conftest.err
5280        } && test -s conftest.$ac_objext; then
5281   ac_header_compiler=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286         ac_header_compiler=no
5287 fi
5288
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6; }
5292
5293 # Is the header present?
5294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 #include <$ac_header>
5303 _ACEOF
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5305 case "(($ac_try" in
5306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307   *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } >/dev/null && {
5317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5318          test ! -s conftest.err
5319        }; then
5320   ac_header_preproc=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325   ac_header_preproc=no
5326 fi
5327
5328 rm -f conftest.err conftest.$ac_ext
5329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330 echo "${ECHO_T}$ac_header_preproc" >&6; }
5331
5332 # So?  What about this header?
5333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334   yes:no: )
5335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339     ac_header_preproc=yes
5340     ;;
5341   no:yes:* )
5342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5354
5355     ;;
5356 esac
5357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   eval "$as_ac_Header=\$ac_header_preproc"
5363 fi
5364 ac_res=`eval echo '${'$as_ac_Header'}'`
5365                { echo "$as_me:$LINENO: result: $ac_res" >&5
5366 echo "${ECHO_T}$ac_res" >&6; }
5367
5368 fi
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370   cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 _ACEOF
5373
5374 fi
5375
5376 done
5377
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define PACKAGE "$PACKAGE"
5381 _ACEOF
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define VERSION "$VERSION"
5385 _ACEOF
5386
5387
5388
5389
5390
5391
5392
5393  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5394 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5395 if test "${ac_cv_c_const+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404
5405 int
5406 main ()
5407 {
5408 /* FIXME: Include the comments suggested by Paul. */
5409 #ifndef __cplusplus
5410   /* Ultrix mips cc rejects this.  */
5411   typedef int charset[2];
5412   const charset cs;
5413   /* SunOS 4.1.1 cc rejects this.  */
5414   char const *const *pcpcc;
5415   char **ppc;
5416   /* NEC SVR4.0.2 mips cc rejects this.  */
5417   struct point {int x, y;};
5418   static struct point const zero = {0,0};
5419   /* AIX XL C 1.02.0.0 rejects this.
5420      It does not let you subtract one const X* pointer from another in
5421      an arm of an if-expression whose if-part is not a constant
5422      expression */
5423   const char *g = "string";
5424   pcpcc = &g + (g ? g-g : 0);
5425   /* HPUX 7.0 cc rejects these. */
5426   ++pcpcc;
5427   ppc = (char**) pcpcc;
5428   pcpcc = (char const *const *) ppc;
5429   { /* SCO 3.2v4 cc rejects this.  */
5430     char *t;
5431     char const *s = 0 ? (char *) 0 : (char const *) 0;
5432
5433     *t++ = 0;
5434     if (s) return 0;
5435   }
5436   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5437     int x[] = {25, 17};
5438     const int *foo = &x[0];
5439     ++foo;
5440   }
5441   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5442     typedef const int *iptr;
5443     iptr p = 0;
5444     ++p;
5445   }
5446   { /* AIX XL C 1.02.0.0 rejects this saying
5447        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5448     struct s { int j; const int *ap[3]; };
5449     struct s *b; b->j = 5;
5450   }
5451   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5452     const int foo = 10;
5453     if (!foo) return 0;
5454   }
5455   return !cs[0] && !zero.x;
5456 #endif
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_compile") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } && {
5476          test -z "$ac_c_werror_flag" ||
5477          test ! -s conftest.err
5478        } && test -s conftest.$ac_objext; then
5479   ac_cv_c_const=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484         ac_cv_c_const=no
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5490 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5491 if test $ac_cv_c_const = no; then
5492
5493 cat >>confdefs.h <<\_ACEOF
5494 #define const
5495 _ACEOF
5496
5497 fi
5498
5499  { echo "$as_me:$LINENO: checking for inline" >&5
5500 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5501 if test "${ac_cv_c_inline+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   ac_cv_c_inline=no
5505 for ac_kw in inline __inline__ __inline; do
5506   cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 #ifndef __cplusplus
5513 typedef int foo_t;
5514 static $ac_kw foo_t static_foo () {return 0; }
5515 $ac_kw foo_t foo () {return 0; }
5516 #endif
5517
5518 _ACEOF
5519 rm -f conftest.$ac_objext
5520 if { (ac_try="$ac_compile"
5521 case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_compile") 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } && {
5533          test -z "$ac_c_werror_flag" ||
5534          test ! -s conftest.err
5535        } && test -s conftest.$ac_objext; then
5536   ac_cv_c_inline=$ac_kw
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541
5542 fi
5543
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545   test "$ac_cv_c_inline" != no && break
5546 done
5547
5548 fi
5549 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5550 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5551
5552
5553 case $ac_cv_c_inline in
5554   inline | yes) ;;
5555   *)
5556     case $ac_cv_c_inline in
5557       no) ac_val=;;
5558       *) ac_val=$ac_cv_c_inline;;
5559     esac
5560     cat >>confdefs.h <<_ACEOF
5561 #ifndef __cplusplus
5562 #define inline $ac_val
5563 #endif
5564 _ACEOF
5565     ;;
5566 esac
5567
5568  { echo "$as_me:$LINENO: checking for off_t" >&5
5569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5570 if test "${ac_cv_type_off_t+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 $ac_includes_default
5580 typedef off_t ac__type_new_;
5581 int
5582 main ()
5583 {
5584 if ((ac__type_new_ *) 0)
5585   return 0;
5586 if (sizeof (ac__type_new_))
5587   return 0;
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596   *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599   (eval "$ac_compile") 2>conftest.er1
5600   ac_status=$?
5601   grep -v '^ *+' conftest.er1 >conftest.err
5602   rm -f conftest.er1
5603   cat conftest.err >&5
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } && {
5606          test -z "$ac_c_werror_flag" ||
5607          test ! -s conftest.err
5608        } && test -s conftest.$ac_objext; then
5609   ac_cv_type_off_t=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614         ac_cv_type_off_t=no
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5620 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5621 if test $ac_cv_type_off_t = yes; then
5622   :
5623 else
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define off_t long int
5627 _ACEOF
5628
5629 fi
5630
5631  { echo "$as_me:$LINENO: checking for size_t" >&5
5632 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5633 if test "${ac_cv_type_size_t+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642 $ac_includes_default
5643 typedef size_t ac__type_new_;
5644 int
5645 main ()
5646 {
5647 if ((ac__type_new_ *) 0)
5648   return 0;
5649 if (sizeof (ac__type_new_))
5650   return 0;
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_compile") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest.$ac_objext; then
5672   ac_cv_type_size_t=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677         ac_cv_type_size_t=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5683 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5684 if test $ac_cv_type_size_t = yes; then
5685   :
5686 else
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define size_t unsigned int
5690 _ACEOF
5691
5692 fi
5693
5694  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5695 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5696 if test "${ac_cv_struct_tm+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h.  */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h.  */
5705 #include <sys/types.h>
5706 #include <time.h>
5707
5708 int
5709 main ()
5710 {
5711 struct tm tm;
5712                                      int *p = &tm.tm_sec;
5713                                      return !p;
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_compile") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } && {
5732          test -z "$ac_c_werror_flag" ||
5733          test ! -s conftest.err
5734        } && test -s conftest.$ac_objext; then
5735   ac_cv_struct_tm=time.h
5736 else
5737   echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740         ac_cv_struct_tm=sys/time.h
5741 fi
5742
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5746 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5747 if test $ac_cv_struct_tm = sys/time.h; then
5748
5749 cat >>confdefs.h <<\_ACEOF
5750 #define TM_IN_SYS_TIME 1
5751 _ACEOF
5752
5753 fi
5754
5755  { echo "$as_me:$LINENO: checking for boolean" >&5
5756 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5757 if test "${ac_cv_type_boolean+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 $ac_includes_default
5767 typedef boolean ac__type_new_;
5768 int
5769 main ()
5770 {
5771 if ((ac__type_new_ *) 0)
5772   return 0;
5773 if (sizeof (ac__type_new_))
5774   return 0;
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5781 case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_compile") 2>conftest.er1
5787   ac_status=$?
5788   grep -v '^ *+' conftest.er1 >conftest.err
5789   rm -f conftest.er1
5790   cat conftest.err >&5
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } && {
5793          test -z "$ac_c_werror_flag" ||
5794          test ! -s conftest.err
5795        } && test -s conftest.$ac_objext; then
5796   ac_cv_type_boolean=yes
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801         ac_cv_type_boolean=no
5802 fi
5803
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5807 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5808 if test $ac_cv_type_boolean = yes; then
5809   :
5810 else
5811
5812 cat >>confdefs.h <<_ACEOF
5813 #define boolean int
5814 _ACEOF
5815
5816 fi
5817  #needed for jpeglib
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5829 do
5830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5844 #define $ac_func innocuous_$ac_func
5845
5846 /* System header to define __stub macros and hopefully few prototypes,
5847     which can conflict with char $ac_func (); below.
5848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5849     <limits.h> exists even on freestanding compilers.  */
5850
5851 #ifdef __STDC__
5852 # include <limits.h>
5853 #else
5854 # include <assert.h>
5855 #endif
5856
5857 #undef $ac_func
5858
5859 /* Override any GCC internal prototype to avoid an error.
5860    Use char because int might match the return type of a GCC
5861    builtin and then its argument prototype would still apply.  */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 char $ac_func ();
5866 /* The GNU C library defines this for functions which it implements
5867     to always fail with ENOSYS.  Some functions are actually named
5868     something starting with __ and the normal name is an alias.  */
5869 #if defined __stub_$ac_func || defined __stub___$ac_func
5870 choke me
5871 #endif
5872
5873 int
5874 main ()
5875 {
5876 return $ac_func ();
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_link") 2>conftest.er1
5889   ac_status=$?
5890   grep -v '^ *+' conftest.er1 >conftest.err
5891   rm -f conftest.er1
5892   cat conftest.err >&5
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); } && {
5895          test -z "$ac_c_werror_flag" ||
5896          test ! -s conftest.err
5897        } && test -s conftest$ac_exeext &&
5898        $as_test_x conftest$ac_exeext; then
5899   eval "$as_ac_var=yes"
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904         eval "$as_ac_var=no"
5905 fi
5906
5907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5908       conftest$ac_exeext conftest.$ac_ext
5909 fi
5910 ac_res=`eval echo '${'$as_ac_var'}'`
5911                { echo "$as_me:$LINENO: result: $ac_res" >&5
5912 echo "${ECHO_T}$ac_res" >&6; }
5913 if test `eval echo '${'$as_ac_var'}'` = yes; then
5914   cat >>confdefs.h <<_ACEOF
5915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5916 _ACEOF
5917
5918 fi
5919 done
5920
5921
5922 { echo "$as_me:$LINENO: checking for signed" >&5
5923 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5924 if test "${ac_cv_type_signed+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 $ac_includes_default
5934 typedef signed ac__type_new_;
5935 int
5936 main ()
5937 {
5938 if ((ac__type_new_ *) 0)
5939   return 0;
5940 if (sizeof (ac__type_new_))
5941   return 0;
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compile") 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } && {
5960          test -z "$ac_c_werror_flag" ||
5961          test ! -s conftest.err
5962        } && test -s conftest.$ac_objext; then
5963   ac_cv_type_signed=yes
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968         ac_cv_type_signed=no
5969 fi
5970
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5974 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5975
5976 # The cast to long int works around a bug in the HP C Compiler
5977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5979 # This bug is HP SR number 8606223364.
5980 { echo "$as_me:$LINENO: checking size of signed" >&5
5981 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5982 if test "${ac_cv_sizeof_signed+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   if test "$cross_compiling" = yes; then
5986   # Depending upon the size, compute the lo and hi bounds.
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 $ac_includes_default
5994    typedef signed ac__type_sizeof_;
5995 int
5996 main ()
5997 {
5998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5999 test_array [0] = 0
6000
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009   *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012   (eval "$ac_compile") 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } && {
6019          test -z "$ac_c_werror_flag" ||
6020          test ! -s conftest.err
6021        } && test -s conftest.$ac_objext; then
6022   ac_lo=0 ac_mid=0
6023   while :; do
6024     cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030 $ac_includes_default
6031    typedef signed ac__type_sizeof_;
6032 int
6033 main ()
6034 {
6035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6036 test_array [0] = 0
6037
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (ac_try="$ac_compile"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_compile") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } && {
6056          test -z "$ac_c_werror_flag" ||
6057          test ! -s conftest.err
6058        } && test -s conftest.$ac_objext; then
6059   ac_hi=$ac_mid; break
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064         ac_lo=`expr $ac_mid + 1`
6065                         if test $ac_lo -le $ac_mid; then
6066                           ac_lo= ac_hi=
6067                           break
6068                         fi
6069                         ac_mid=`expr 2 '*' $ac_mid + 1`
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073   done
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078         cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 $ac_includes_default
6085    typedef signed ac__type_sizeof_;
6086 int
6087 main ()
6088 {
6089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6090 test_array [0] = 0
6091
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_compile") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } && {
6110          test -z "$ac_c_werror_flag" ||
6111          test ! -s conftest.err
6112        } && test -s conftest.$ac_objext; then
6113   ac_hi=-1 ac_mid=-1
6114   while :; do
6115     cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 $ac_includes_default
6122    typedef signed ac__type_sizeof_;
6123 int
6124 main ()
6125 {
6126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6127 test_array [0] = 0
6128
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_compile") 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } && {
6147          test -z "$ac_c_werror_flag" ||
6148          test ! -s conftest.err
6149        } && test -s conftest.$ac_objext; then
6150   ac_lo=$ac_mid; break
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155         ac_hi=`expr '(' $ac_mid ')' - 1`
6156                         if test $ac_mid -le $ac_hi; then
6157                           ac_lo= ac_hi=
6158                           break
6159                         fi
6160                         ac_mid=`expr 2 '*' $ac_mid`
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164   done
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169         ac_lo= ac_hi=
6170 fi
6171
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 # Binary search between lo and hi bounds.
6177 while test "x$ac_lo" != "x$ac_hi"; do
6178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 $ac_includes_default
6186    typedef signed ac__type_sizeof_;
6187 int
6188 main ()
6189 {
6190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6191 test_array [0] = 0
6192
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6199 case "(($ac_try" in
6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201   *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204   (eval "$ac_compile") 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } && {
6211          test -z "$ac_c_werror_flag" ||
6212          test ! -s conftest.err
6213        } && test -s conftest.$ac_objext; then
6214   ac_hi=$ac_mid
6215 else
6216   echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219         ac_lo=`expr '(' $ac_mid ')' + 1`
6220 fi
6221
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 done
6224 case $ac_lo in
6225 ?*) ac_cv_sizeof_signed=$ac_lo;;
6226 '') if test "$ac_cv_type_signed" = yes; then
6227      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6228 See \`config.log' for more details." >&5
6229 echo "$as_me: error: cannot compute sizeof (signed)
6230 See \`config.log' for more details." >&2;}
6231    { (exit 77); exit 77; }; }
6232    else
6233      ac_cv_sizeof_signed=0
6234    fi ;;
6235 esac
6236 else
6237   cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243 $ac_includes_default
6244    typedef signed ac__type_sizeof_;
6245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6247 #include <stdio.h>
6248 #include <stdlib.h>
6249 int
6250 main ()
6251 {
6252
6253   FILE *f = fopen ("conftest.val", "w");
6254   if (! f)
6255     return 1;
6256   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6257     {
6258       long int i = longval ();
6259       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6260         return 1;
6261       fprintf (f, "%ld\n", i);
6262     }
6263   else
6264     {
6265       unsigned long int i = ulongval ();
6266       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6267         return 1;
6268       fprintf (f, "%lu\n", i);
6269     }
6270   return ferror (f) || fclose (f) != 0;
6271
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_link") 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6287   { (case "(($ac_try" in
6288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289   *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292   (eval "$ac_try") 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; }; then
6296   ac_cv_sizeof_signed=`cat conftest.val`
6297 else
6298   echo "$as_me: program exited with status $ac_status" >&5
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ( exit $ac_status )
6303 if test "$ac_cv_type_signed" = yes; then
6304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: cannot compute sizeof (signed)
6307 See \`config.log' for more details." >&2;}
6308    { (exit 77); exit 77; }; }
6309    else
6310      ac_cv_sizeof_signed=0
6311    fi
6312 fi
6313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 rm -f conftest.val
6316 fi
6317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6318 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6319
6320
6321
6322 cat >>confdefs.h <<_ACEOF
6323 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6324 _ACEOF
6325
6326
6327 { echo "$as_me:$LINENO: checking for unsigned" >&5
6328 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6329 if test "${ac_cv_type_unsigned+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 $ac_includes_default
6339 typedef unsigned ac__type_new_;
6340 int
6341 main ()
6342 {
6343 if ((ac__type_new_ *) 0)
6344   return 0;
6345 if (sizeof (ac__type_new_))
6346   return 0;
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_compile") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_c_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest.$ac_objext; then
6368   ac_cv_type_unsigned=yes
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         ac_cv_type_unsigned=no
6374 fi
6375
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6379 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6380
6381 # The cast to long int works around a bug in the HP C Compiler
6382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6384 # This bug is HP SR number 8606223364.
6385 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6386 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6387 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   if test "$cross_compiling" = yes; then
6391   # Depending upon the size, compute the lo and hi bounds.
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 $ac_includes_default
6399    typedef unsigned ac__type_sizeof_;
6400 int
6401 main ()
6402 {
6403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6404 test_array [0] = 0
6405
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6412 case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_compile") 2>conftest.er1
6418   ac_status=$?
6419   grep -v '^ *+' conftest.er1 >conftest.err
6420   rm -f conftest.er1
6421   cat conftest.err >&5
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } && {
6424          test -z "$ac_c_werror_flag" ||
6425          test ! -s conftest.err
6426        } && test -s conftest.$ac_objext; then
6427   ac_lo=0 ac_mid=0
6428   while :; do
6429     cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436    typedef unsigned ac__type_sizeof_;
6437 int
6438 main ()
6439 {
6440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6441 test_array [0] = 0
6442
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451   *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454   (eval "$ac_compile") 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } && {
6461          test -z "$ac_c_werror_flag" ||
6462          test ! -s conftest.err
6463        } && test -s conftest.$ac_objext; then
6464   ac_hi=$ac_mid; break
6465 else
6466   echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469         ac_lo=`expr $ac_mid + 1`
6470                         if test $ac_lo -le $ac_mid; then
6471                           ac_lo= ac_hi=
6472                           break
6473                         fi
6474                         ac_mid=`expr 2 '*' $ac_mid + 1`
6475 fi
6476
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478   done
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483         cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 $ac_includes_default
6490    typedef unsigned ac__type_sizeof_;
6491 int
6492 main ()
6493 {
6494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6495 test_array [0] = 0
6496
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6503 case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508   (eval "$ac_compile") 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } && {
6515          test -z "$ac_c_werror_flag" ||
6516          test ! -s conftest.err
6517        } && test -s conftest.$ac_objext; then
6518   ac_hi=-1 ac_mid=-1
6519   while :; do
6520     cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h.  */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h.  */
6526 $ac_includes_default
6527    typedef unsigned ac__type_sizeof_;
6528 int
6529 main ()
6530 {
6531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6532 test_array [0] = 0
6533
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6540 case "(($ac_try" in
6541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542   *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545   (eval "$ac_compile") 2>conftest.er1
6546   ac_status=$?
6547   grep -v '^ *+' conftest.er1 >conftest.err
6548   rm -f conftest.er1
6549   cat conftest.err >&5
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); } && {
6552          test -z "$ac_c_werror_flag" ||
6553          test ! -s conftest.err
6554        } && test -s conftest.$ac_objext; then
6555   ac_lo=$ac_mid; break
6556 else
6557   echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560         ac_hi=`expr '(' $ac_mid ')' - 1`
6561                         if test $ac_mid -le $ac_hi; then
6562                           ac_lo= ac_hi=
6563                           break
6564                         fi
6565                         ac_mid=`expr 2 '*' $ac_mid`
6566 fi
6567
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569   done
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574         ac_lo= ac_hi=
6575 fi
6576
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 fi
6579
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 # Binary search between lo and hi bounds.
6582 while test "x$ac_lo" != "x$ac_hi"; do
6583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6584   cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 $ac_includes_default
6591    typedef unsigned ac__type_sizeof_;
6592 int
6593 main ()
6594 {
6595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6596 test_array [0] = 0
6597
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (ac_try="$ac_compile"
6604 case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_compile") 2>conftest.er1
6610   ac_status=$?
6611   grep -v '^ *+' conftest.er1 >conftest.err
6612   rm -f conftest.er1
6613   cat conftest.err >&5
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } && {
6616          test -z "$ac_c_werror_flag" ||
6617          test ! -s conftest.err
6618        } && test -s conftest.$ac_objext; then
6619   ac_hi=$ac_mid
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624         ac_lo=`expr '(' $ac_mid ')' + 1`
6625 fi
6626
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 done
6629 case $ac_lo in
6630 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6631 '') if test "$ac_cv_type_unsigned" = yes; then
6632      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6633 See \`config.log' for more details." >&5
6634 echo "$as_me: error: cannot compute sizeof (unsigned)
6635 See \`config.log' for more details." >&2;}
6636    { (exit 77); exit 77; }; }
6637    else
6638      ac_cv_sizeof_unsigned=0
6639    fi ;;
6640 esac
6641 else
6642   cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 $ac_includes_default
6649    typedef unsigned ac__type_sizeof_;
6650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6652 #include <stdio.h>
6653 #include <stdlib.h>
6654 int
6655 main ()
6656 {
6657
6658   FILE *f = fopen ("conftest.val", "w");
6659   if (! f)
6660     return 1;
6661   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6662     {
6663       long int i = longval ();
6664       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6665         return 1;
6666       fprintf (f, "%ld\n", i);
6667     }
6668   else
6669     {
6670       unsigned long int i = ulongval ();
6671       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6672         return 1;
6673       fprintf (f, "%lu\n", i);
6674     }
6675   return ferror (f) || fclose (f) != 0;
6676
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest$ac_exeext
6682 if { (ac_try="$ac_link"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_link") 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6692   { (case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697   (eval "$ac_try") 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_sizeof_unsigned=`cat conftest.val`
6702 else
6703   echo "$as_me: program exited with status $ac_status" >&5
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 ( exit $ac_status )
6708 if test "$ac_cv_type_unsigned" = yes; then
6709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6710 See \`config.log' for more details." >&5
6711 echo "$as_me: error: cannot compute sizeof (unsigned)
6712 See \`config.log' for more details." >&2;}
6713    { (exit 77); exit 77; }; }
6714    else
6715      ac_cv_sizeof_unsigned=0
6716    fi
6717 fi
6718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6719 fi
6720 rm -f conftest.val
6721 fi
6722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6723 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6724
6725
6726
6727 cat >>confdefs.h <<_ACEOF
6728 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6729 _ACEOF
6730
6731
6732 { echo "$as_me:$LINENO: checking for signed long" >&5
6733 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6734 if test "${ac_cv_type_signed_long+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743 $ac_includes_default
6744 typedef signed long ac__type_new_;
6745 int
6746 main ()
6747 {
6748 if ((ac__type_new_ *) 0)
6749   return 0;
6750 if (sizeof (ac__type_new_))
6751   return 0;
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6758 case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_compile") 2>conftest.er1
6764   ac_status=$?
6765   grep -v '^ *+' conftest.er1 >conftest.err
6766   rm -f conftest.er1
6767   cat conftest.err >&5
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } && {
6770          test -z "$ac_c_werror_flag" ||
6771          test ! -s conftest.err
6772        } && test -s conftest.$ac_objext; then
6773   ac_cv_type_signed_long=yes
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778         ac_cv_type_signed_long=no
6779 fi
6780
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6784 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6785
6786 # The cast to long int works around a bug in the HP C Compiler
6787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6789 # This bug is HP SR number 8606223364.
6790 { echo "$as_me:$LINENO: checking size of signed long" >&5
6791 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6792 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   if test "$cross_compiling" = yes; then
6796   # Depending upon the size, compute the lo and hi bounds.
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803 $ac_includes_default
6804    typedef signed long ac__type_sizeof_;
6805 int
6806 main ()
6807 {
6808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6809 test_array [0] = 0
6810
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (ac_try="$ac_compile"
6817 case "(($ac_try" in
6818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819   *) ac_try_echo=$ac_try;;
6820 esac
6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822   (eval "$ac_compile") 2>conftest.er1
6823   ac_status=$?
6824   grep -v '^ *+' conftest.er1 >conftest.err
6825   rm -f conftest.er1
6826   cat conftest.err >&5
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); } && {
6829          test -z "$ac_c_werror_flag" ||
6830          test ! -s conftest.err
6831        } && test -s conftest.$ac_objext; then
6832   ac_lo=0 ac_mid=0
6833   while :; do
6834     cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_includes_default
6841    typedef signed long ac__type_sizeof_;
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6846 test_array [0] = 0
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (ac_try="$ac_compile"
6854 case "(($ac_try" in
6855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856   *) ac_try_echo=$ac_try;;
6857 esac
6858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6859   (eval "$ac_compile") 2>conftest.er1
6860   ac_status=$?
6861   grep -v '^ *+' conftest.er1 >conftest.err
6862   rm -f conftest.er1
6863   cat conftest.err >&5
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } && {
6866          test -z "$ac_c_werror_flag" ||
6867          test ! -s conftest.err
6868        } && test -s conftest.$ac_objext; then
6869   ac_hi=$ac_mid; break
6870 else
6871   echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874         ac_lo=`expr $ac_mid + 1`
6875                         if test $ac_lo -le $ac_mid; then
6876                           ac_lo= ac_hi=
6877                           break
6878                         fi
6879                         ac_mid=`expr 2 '*' $ac_mid + 1`
6880 fi
6881
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883   done
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888         cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 $ac_includes_default
6895    typedef signed long ac__type_sizeof_;
6896 int
6897 main ()
6898 {
6899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6900 test_array [0] = 0
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_compile") 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } && {
6920          test -z "$ac_c_werror_flag" ||
6921          test ! -s conftest.err
6922        } && test -s conftest.$ac_objext; then
6923   ac_hi=-1 ac_mid=-1
6924   while :; do
6925     cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 $ac_includes_default
6932    typedef signed long ac__type_sizeof_;
6933 int
6934 main ()
6935 {
6936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6937 test_array [0] = 0
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_compile") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && {
6957          test -z "$ac_c_werror_flag" ||
6958          test ! -s conftest.err
6959        } && test -s conftest.$ac_objext; then
6960   ac_lo=$ac_mid; break
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965         ac_hi=`expr '(' $ac_mid ')' - 1`
6966                         if test $ac_mid -le $ac_hi; then
6967                           ac_lo= ac_hi=
6968                           break
6969                         fi
6970                         ac_mid=`expr 2 '*' $ac_mid`
6971 fi
6972
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974   done
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979         ac_lo= ac_hi=
6980 fi
6981
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 # Binary search between lo and hi bounds.
6987 while test "x$ac_lo" != "x$ac_hi"; do
6988   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989   cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995 $ac_includes_default
6996    typedef signed long ac__type_sizeof_;
6997 int
6998 main ()
6999 {
7000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7001 test_array [0] = 0
7002
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7009 case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014   (eval "$ac_compile") 2>conftest.er1
7015   ac_status=$?
7016   grep -v '^ *+' conftest.er1 >conftest.err
7017   rm -f conftest.er1
7018   cat conftest.err >&5
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } && {
7021          test -z "$ac_c_werror_flag" ||
7022          test ! -s conftest.err
7023        } && test -s conftest.$ac_objext; then
7024   ac_hi=$ac_mid
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029         ac_lo=`expr '(' $ac_mid ')' + 1`
7030 fi
7031
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 done
7034 case $ac_lo in
7035 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7036 '') if test "$ac_cv_type_signed_long" = yes; then
7037      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7038 See \`config.log' for more details." >&5
7039 echo "$as_me: error: cannot compute sizeof (signed long)
7040 See \`config.log' for more details." >&2;}
7041    { (exit 77); exit 77; }; }
7042    else
7043      ac_cv_sizeof_signed_long=0
7044    fi ;;
7045 esac
7046 else
7047   cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053 $ac_includes_default
7054    typedef signed long ac__type_sizeof_;
7055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7057 #include <stdio.h>
7058 #include <stdlib.h>
7059 int
7060 main ()
7061 {
7062
7063   FILE *f = fopen ("conftest.val", "w");
7064   if (! f)
7065     return 1;
7066   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7067     {
7068       long int i = longval ();
7069       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7070         return 1;
7071       fprintf (f, "%ld\n", i);
7072     }
7073   else
7074     {
7075       unsigned long int i = ulongval ();
7076       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7077         return 1;
7078       fprintf (f, "%lu\n", i);
7079     }
7080   return ferror (f) || fclose (f) != 0;
7081
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7088 case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093   (eval "$ac_link") 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7097   { (case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102   (eval "$ac_try") 2>&5
7103   ac_status=$?
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_cv_sizeof_signed_long=`cat conftest.val`
7107 else
7108   echo "$as_me: program exited with status $ac_status" >&5
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 ( exit $ac_status )
7113 if test "$ac_cv_type_signed_long" = yes; then
7114      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot compute sizeof (signed long)
7117 See \`config.log' for more details." >&2;}
7118    { (exit 77); exit 77; }; }
7119    else
7120      ac_cv_sizeof_signed_long=0
7121    fi
7122 fi
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7124 fi
7125 rm -f conftest.val
7126 fi
7127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7128 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7129
7130
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7134 _ACEOF
7135
7136
7137 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7138 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7139 if test "${ac_cv_type_unsigned_long+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 $ac_includes_default
7149 typedef unsigned long ac__type_new_;
7150 int
7151 main ()
7152 {
7153 if ((ac__type_new_ *) 0)
7154   return 0;
7155 if (sizeof (ac__type_new_))
7156   return 0;
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7163 case "(($ac_try" in
7164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165   *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168   (eval "$ac_compile") 2>conftest.er1
7169   ac_status=$?
7170   grep -v '^ *+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } && {
7175          test -z "$ac_c_werror_flag" ||
7176          test ! -s conftest.err
7177        } && test -s conftest.$ac_objext; then
7178   ac_cv_type_unsigned_long=yes
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183         ac_cv_type_unsigned_long=no
7184 fi
7185
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7189 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7190
7191 # The cast to long int works around a bug in the HP C Compiler
7192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7194 # This bug is HP SR number 8606223364.
7195 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7196 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7197 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   if test "$cross_compiling" = yes; then
7201   # Depending upon the size, compute the lo and hi bounds.
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 $ac_includes_default
7209    typedef unsigned long ac__type_sizeof_;
7210 int
7211 main ()
7212 {
7213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7214 test_array [0] = 0
7215
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7222 case "(($ac_try" in
7223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224   *) ac_try_echo=$ac_try;;
7225 esac
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227   (eval "$ac_compile") 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } && {
7234          test -z "$ac_c_werror_flag" ||
7235          test ! -s conftest.err
7236        } && test -s conftest.$ac_objext; then
7237   ac_lo=0 ac_mid=0
7238   while :; do
7239     cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h.  */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h.  */
7245 $ac_includes_default
7246    typedef unsigned long ac__type_sizeof_;
7247 int
7248 main ()
7249 {
7250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7251 test_array [0] = 0
7252
7253   ;
7254   return 0;
7255 }
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261   *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264   (eval "$ac_compile") 2>conftest.er1
7265   ac_status=$?
7266   grep -v '^ *+' conftest.er1 >conftest.err
7267   rm -f conftest.er1
7268   cat conftest.err >&5
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } && {
7271          test -z "$ac_c_werror_flag" ||
7272          test ! -s conftest.err
7273        } && test -s conftest.$ac_objext; then
7274   ac_hi=$ac_mid; break
7275 else
7276   echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279         ac_lo=`expr $ac_mid + 1`
7280                         if test $ac_lo -le $ac_mid; then
7281                           ac_lo= ac_hi=
7282                           break
7283                         fi
7284                         ac_mid=`expr 2 '*' $ac_mid + 1`
7285 fi
7286
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288   done
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293         cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 $ac_includes_default
7300    typedef unsigned long ac__type_sizeof_;
7301 int
7302 main ()
7303 {
7304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7305 test_array [0] = 0
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318   (eval "$ac_compile") 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } && {
7325          test -z "$ac_c_werror_flag" ||
7326          test ! -s conftest.err
7327        } && test -s conftest.$ac_objext; then
7328   ac_hi=-1 ac_mid=-1
7329   while :; do
7330     cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336 $ac_includes_default
7337    typedef unsigned long ac__type_sizeof_;
7338 int
7339 main ()
7340 {
7341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7342 test_array [0] = 0
7343
7344   ;
7345   return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   ac_lo=$ac_mid; break
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         ac_hi=`expr '(' $ac_mid ')' - 1`
7371                         if test $ac_mid -le $ac_hi; then
7372                           ac_lo= ac_hi=
7373                           break
7374                         fi
7375                         ac_mid=`expr 2 '*' $ac_mid`
7376 fi
7377
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379   done
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384         ac_lo= ac_hi=
7385 fi
7386
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 # Binary search between lo and hi bounds.
7392 while test "x$ac_lo" != "x$ac_hi"; do
7393   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 $ac_includes_default
7401    typedef unsigned long ac__type_sizeof_;
7402 int
7403 main ()
7404 {
7405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7406 test_array [0] = 0
7407
7408   ;
7409   return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416   *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419   (eval "$ac_compile") 2>conftest.er1
7420   ac_status=$?
7421   grep -v '^ *+' conftest.er1 >conftest.err
7422   rm -f conftest.er1
7423   cat conftest.err >&5
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } && {
7426          test -z "$ac_c_werror_flag" ||
7427          test ! -s conftest.err
7428        } && test -s conftest.$ac_objext; then
7429   ac_hi=$ac_mid
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434         ac_lo=`expr '(' $ac_mid ')' + 1`
7435 fi
7436
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 done
7439 case $ac_lo in
7440 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7441 '') if test "$ac_cv_type_unsigned_long" = yes; then
7442      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7443 See \`config.log' for more details." >&5
7444 echo "$as_me: error: cannot compute sizeof (unsigned long)
7445 See \`config.log' for more details." >&2;}
7446    { (exit 77); exit 77; }; }
7447    else
7448      ac_cv_sizeof_unsigned_long=0
7449    fi ;;
7450 esac
7451 else
7452   cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 $ac_includes_default
7459    typedef unsigned long ac__type_sizeof_;
7460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7462 #include <stdio.h>
7463 #include <stdlib.h>
7464 int
7465 main ()
7466 {
7467
7468   FILE *f = fopen ("conftest.val", "w");
7469   if (! f)
7470     return 1;
7471   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7472     {
7473       long int i = longval ();
7474       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7475         return 1;
7476       fprintf (f, "%ld\n", i);
7477     }
7478   else
7479     {
7480       unsigned long int i = ulongval ();
7481       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7482         return 1;
7483       fprintf (f, "%lu\n", i);
7484     }
7485   return ferror (f) || fclose (f) != 0;
7486
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest$ac_exeext
7492 if { (ac_try="$ac_link"
7493 case "(($ac_try" in
7494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495   *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498   (eval "$ac_link") 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7502   { (case "(($ac_try" in
7503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504   *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507   (eval "$ac_try") 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; }; then
7511   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7512 else
7513   echo "$as_me: program exited with status $ac_status" >&5
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517 ( exit $ac_status )
7518 if test "$ac_cv_type_unsigned_long" = yes; then
7519      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7520 See \`config.log' for more details." >&5
7521 echo "$as_me: error: cannot compute sizeof (unsigned long)
7522 See \`config.log' for more details." >&2;}
7523    { (exit 77); exit 77; }; }
7524    else
7525      ac_cv_sizeof_unsigned_long=0
7526    fi
7527 fi
7528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7529 fi
7530 rm -f conftest.val
7531 fi
7532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7533 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7534
7535
7536
7537 cat >>confdefs.h <<_ACEOF
7538 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7539 _ACEOF
7540
7541
7542 { echo "$as_me:$LINENO: checking for signed long long" >&5
7543 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7544 if test "${ac_cv_type_signed_long_long+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553 $ac_includes_default
7554 typedef signed long long ac__type_new_;
7555 int
7556 main ()
7557 {
7558 if ((ac__type_new_ *) 0)
7559   return 0;
7560 if (sizeof (ac__type_new_))
7561   return 0;
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573   (eval "$ac_compile") 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } && {
7580          test -z "$ac_c_werror_flag" ||
7581          test ! -s conftest.err
7582        } && test -s conftest.$ac_objext; then
7583   ac_cv_type_signed_long_long=yes
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         ac_cv_type_signed_long_long=no
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7594 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7595
7596 # The cast to long int works around a bug in the HP C Compiler
7597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7599 # This bug is HP SR number 8606223364.
7600 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7601 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7602 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   if test "$cross_compiling" = yes; then
7606   # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614    typedef signed long long ac__type_sizeof_;
7615 int
7616 main ()
7617 {
7618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7619 test_array [0] = 0
7620
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_compile") 2>conftest.er1
7633   ac_status=$?
7634   grep -v '^ *+' conftest.er1 >conftest.err
7635   rm -f conftest.er1
7636   cat conftest.err >&5
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } && {
7639          test -z "$ac_c_werror_flag" ||
7640          test ! -s conftest.err
7641        } && test -s conftest.$ac_objext; then
7642   ac_lo=0 ac_mid=0
7643   while :; do
7644     cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 $ac_includes_default
7651    typedef signed long long ac__type_sizeof_;
7652 int
7653 main ()
7654 {
7655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7656 test_array [0] = 0
7657
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666   *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669   (eval "$ac_compile") 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } && {
7676          test -z "$ac_c_werror_flag" ||
7677          test ! -s conftest.err
7678        } && test -s conftest.$ac_objext; then
7679   ac_hi=$ac_mid; break
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684         ac_lo=`expr $ac_mid + 1`
7685                         if test $ac_lo -le $ac_mid; then
7686                           ac_lo= ac_hi=
7687                           break
7688                         fi
7689                         ac_mid=`expr 2 '*' $ac_mid + 1`
7690 fi
7691
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693   done
7694 else
7695   echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698         cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704 $ac_includes_default
7705    typedef signed long long ac__type_sizeof_;
7706 int
7707 main ()
7708 {
7709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7710 test_array [0] = 0
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720   *) ac_try_echo=$ac_try;;
7721 esac
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723   (eval "$ac_compile") 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } && {
7730          test -z "$ac_c_werror_flag" ||
7731          test ! -s conftest.err
7732        } && test -s conftest.$ac_objext; then
7733   ac_hi=-1 ac_mid=-1
7734   while :; do
7735     cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 $ac_includes_default
7742    typedef signed long long ac__type_sizeof_;
7743 int
7744 main ()
7745 {
7746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7747 test_array [0] = 0
7748
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757   *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760   (eval "$ac_compile") 2>conftest.er1
7761   ac_status=$?
7762   grep -v '^ *+' conftest.er1 >conftest.err
7763   rm -f conftest.er1
7764   cat conftest.err >&5
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } && {
7767          test -z "$ac_c_werror_flag" ||
7768          test ! -s conftest.err
7769        } && test -s conftest.$ac_objext; then
7770   ac_lo=$ac_mid; break
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775         ac_hi=`expr '(' $ac_mid ')' - 1`
7776                         if test $ac_mid -le $ac_hi; then
7777                           ac_lo= ac_hi=
7778                           break
7779                         fi
7780                         ac_mid=`expr 2 '*' $ac_mid`
7781 fi
7782
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784   done
7785 else
7786   echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789         ac_lo= ac_hi=
7790 fi
7791
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 # Binary search between lo and hi bounds.
7797 while test "x$ac_lo" != "x$ac_hi"; do
7798   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7799   cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805 $ac_includes_default
7806    typedef signed long long ac__type_sizeof_;
7807 int
7808 main ()
7809 {
7810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7811 test_array [0] = 0
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821   *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824   (eval "$ac_compile") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } && {
7831          test -z "$ac_c_werror_flag" ||
7832          test ! -s conftest.err
7833        } && test -s conftest.$ac_objext; then
7834   ac_hi=$ac_mid
7835 else
7836   echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839         ac_lo=`expr '(' $ac_mid ')' + 1`
7840 fi
7841
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 done
7844 case $ac_lo in
7845 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7846 '') if test "$ac_cv_type_signed_long_long" = yes; then
7847      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7848 See \`config.log' for more details." >&5
7849 echo "$as_me: error: cannot compute sizeof (signed long long)
7850 See \`config.log' for more details." >&2;}
7851    { (exit 77); exit 77; }; }
7852    else
7853      ac_cv_sizeof_signed_long_long=0
7854    fi ;;
7855 esac
7856 else
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 $ac_includes_default
7864    typedef signed long long ac__type_sizeof_;
7865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7867 #include <stdio.h>
7868 #include <stdlib.h>
7869 int
7870 main ()
7871 {
7872
7873   FILE *f = fopen ("conftest.val", "w");
7874   if (! f)
7875     return 1;
7876   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7877     {
7878       long int i = longval ();
7879       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7880         return 1;
7881       fprintf (f, "%ld\n", i);
7882     }
7883   else
7884     {
7885       unsigned long int i = ulongval ();
7886       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7887         return 1;
7888       fprintf (f, "%lu\n", i);
7889     }
7890   return ferror (f) || fclose (f) != 0;
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903   (eval "$ac_link") 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7907   { (case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_try") 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; }; then
7916   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7917 else
7918   echo "$as_me: program exited with status $ac_status" >&5
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ( exit $ac_status )
7923 if test "$ac_cv_type_signed_long_long" = yes; then
7924      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7925 See \`config.log' for more details." >&5
7926 echo "$as_me: error: cannot compute sizeof (signed long long)
7927 See \`config.log' for more details." >&2;}
7928    { (exit 77); exit 77; }; }
7929    else
7930      ac_cv_sizeof_signed_long_long=0
7931    fi
7932 fi
7933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7934 fi
7935 rm -f conftest.val
7936 fi
7937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7938 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7939
7940
7941
7942 cat >>confdefs.h <<_ACEOF
7943 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7944 _ACEOF
7945
7946
7947 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7948 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7949 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958 $ac_includes_default
7959 typedef unsigned long long ac__type_new_;
7960 int
7961 main ()
7962 {
7963 if ((ac__type_new_ *) 0)
7964   return 0;
7965 if (sizeof (ac__type_new_))
7966   return 0;
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (ac_try="$ac_compile"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978   (eval "$ac_compile") 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && {
7985          test -z "$ac_c_werror_flag" ||
7986          test ! -s conftest.err
7987        } && test -s conftest.$ac_objext; then
7988   ac_cv_type_unsigned_long_long=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         ac_cv_type_unsigned_long_long=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 fi
7998 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7999 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8000
8001 # The cast to long int works around a bug in the HP C Compiler
8002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004 # This bug is HP SR number 8606223364.
8005 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8006 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8007 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   if test "$cross_compiling" = yes; then
8011   # Depending upon the size, compute the lo and hi bounds.
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018 $ac_includes_default
8019    typedef unsigned long long ac__type_sizeof_;
8020 int
8021 main ()
8022 {
8023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8024 test_array [0] = 0
8025
8026   ;
8027   return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034   *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037   (eval "$ac_compile") 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } && {
8044          test -z "$ac_c_werror_flag" ||
8045          test ! -s conftest.err
8046        } && test -s conftest.$ac_objext; then
8047   ac_lo=0 ac_mid=0
8048   while :; do
8049     cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 $ac_includes_default
8056    typedef unsigned long long ac__type_sizeof_;
8057 int
8058 main ()
8059 {
8060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8061 test_array [0] = 0
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_compile") 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } && {
8081          test -z "$ac_c_werror_flag" ||
8082          test ! -s conftest.err
8083        } && test -s conftest.$ac_objext; then
8084   ac_hi=$ac_mid; break
8085 else
8086   echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089         ac_lo=`expr $ac_mid + 1`
8090                         if test $ac_lo -le $ac_mid; then
8091                           ac_lo= ac_hi=
8092                           break
8093                         fi
8094                         ac_mid=`expr 2 '*' $ac_mid + 1`
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098   done
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103         cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h.  */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h.  */
8109 $ac_includes_default
8110    typedef unsigned long long ac__type_sizeof_;
8111 int
8112 main ()
8113 {
8114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8115 test_array [0] = 0
8116
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_compile") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest.$ac_objext; then
8138   ac_hi=-1 ac_mid=-1
8139   while :; do
8140     cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146 $ac_includes_default
8147    typedef unsigned long long ac__type_sizeof_;
8148 int
8149 main ()
8150 {
8151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8152 test_array [0] = 0
8153
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165   (eval "$ac_compile") 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } && {
8172          test -z "$ac_c_werror_flag" ||
8173          test ! -s conftest.err
8174        } && test -s conftest.$ac_objext; then
8175   ac_lo=$ac_mid; break
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180         ac_hi=`expr '(' $ac_mid ')' - 1`
8181                         if test $ac_mid -le $ac_hi; then
8182                           ac_lo= ac_hi=
8183                           break
8184                         fi
8185                         ac_mid=`expr 2 '*' $ac_mid`
8186 fi
8187
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189   done
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194         ac_lo= ac_hi=
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 # Binary search between lo and hi bounds.
8202 while test "x$ac_lo" != "x$ac_hi"; do
8203   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8204   cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210 $ac_includes_default
8211    typedef unsigned long long ac__type_sizeof_;
8212 int
8213 main ()
8214 {
8215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8216 test_array [0] = 0
8217
8218   ;
8219   return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8224 case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_compile") 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } && {
8236          test -z "$ac_c_werror_flag" ||
8237          test ! -s conftest.err
8238        } && test -s conftest.$ac_objext; then
8239   ac_hi=$ac_mid
8240 else
8241   echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244         ac_lo=`expr '(' $ac_mid ')' + 1`
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 done
8249 case $ac_lo in
8250 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8251 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8252      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8255 See \`config.log' for more details." >&2;}
8256    { (exit 77); exit 77; }; }
8257    else
8258      ac_cv_sizeof_unsigned_long_long=0
8259    fi ;;
8260 esac
8261 else
8262   cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268 $ac_includes_default
8269    typedef unsigned long long ac__type_sizeof_;
8270 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8272 #include <stdio.h>
8273 #include <stdlib.h>
8274 int
8275 main ()
8276 {
8277
8278   FILE *f = fopen ("conftest.val", "w");
8279   if (! f)
8280     return 1;
8281   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8282     {
8283       long int i = longval ();
8284       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8285         return 1;
8286       fprintf (f, "%ld\n", i);
8287     }
8288   else
8289     {
8290       unsigned long int i = ulongval ();
8291       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292         return 1;
8293       fprintf (f, "%lu\n", i);
8294     }
8295   return ferror (f) || fclose (f) != 0;
8296
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_link") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312   { (case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_try") 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8322 else
8323   echo "$as_me: program exited with status $ac_status" >&5
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ( exit $ac_status )
8328 if test "$ac_cv_type_unsigned_long_long" = yes; then
8329      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8330 See \`config.log' for more details." >&5
8331 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8332 See \`config.log' for more details." >&2;}
8333    { (exit 77); exit 77; }; }
8334    else
8335      ac_cv_sizeof_unsigned_long_long=0
8336    fi
8337 fi
8338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339 fi
8340 rm -f conftest.val
8341 fi
8342 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8343 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8344
8345
8346
8347 cat >>confdefs.h <<_ACEOF
8348 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8349 _ACEOF
8350
8351
8352
8353
8354
8355 # Extract the first word of "freetype-config", so it can be a program name with args.
8356 set dummy freetype-config; ac_word=$2
8357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   case $FREETYPE_CONFIG in
8363   [\\/]* | ?:[\\/]*)
8364   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8365   ;;
8366   *)
8367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8369 for as_dir in $as_dummy
8370 do
8371   IFS=$as_save_IFS
8372   test -z "$as_dir" && as_dir=.
8373   for ac_exec_ext in '' $ac_executable_extensions; do
8374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383   ;;
8384 esac
8385 fi
8386 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8387 if test -n "$FREETYPE_CONFIG"; then
8388   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8389 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8390 else
8391   { echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6; }
8393 fi
8394
8395
8396
8397 OLDCPPFLAGS="${CPPFLAGS}"
8398 OLDLIBS="${LIBS}"
8399 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8400     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8401 else if test -d /usr/include/freetype2; then
8402     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8403 else if test -d /usr/local/include/freetype2; then
8404     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8405 fi
8406 fi
8407 fi
8408
8409 if test "x${FREETYPE_CONFIG}" '=' "x";then
8410     # if we didn't find the freetype-config program, we won't
8411     # know where the libs are expected to be. So just blindly
8412     # try to link against them.
8413     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8414 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8415 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   ac_check_lib_save_LIBS=$LIBS
8419 LIBS="-lfreetype  $LIBS"
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426
8427 /* Override any GCC internal prototype to avoid an error.
8428    Use char because int might match the return type of a GCC
8429    builtin and then its argument prototype would still apply.  */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 char FT_Init_FreeType ();
8434 int
8435 main ()
8436 {
8437 return FT_Init_FreeType ();
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (ac_try="$ac_link"
8444 case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_link") 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } && {
8456          test -z "$ac_c_werror_flag" ||
8457          test ! -s conftest.err
8458        } && test -s conftest$ac_exeext &&
8459        $as_test_x conftest$ac_exeext; then
8460   ac_cv_lib_freetype_FT_Init_FreeType=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465         ac_cv_lib_freetype_FT_Init_FreeType=no
8466 fi
8467
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8469       conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8471 fi
8472 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8473 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8474 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8475   HAVE_LIB_FREETYPE=1
8476 fi
8477
8478 fi
8479
8480
8481 for ac_header in ft2build.h
8482 do
8483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8485   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 fi
8490 ac_res=`eval echo '${'$as_ac_Header'}'`
8491                { echo "$as_me:$LINENO: result: $ac_res" >&5
8492 echo "${ECHO_T}$ac_res" >&6; }
8493 else
8494   # Is the header compilable?
8495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503 $ac_includes_default
8504 #include <$ac_header>
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_compile") 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } && {
8520          test -z "$ac_c_werror_flag" ||
8521          test ! -s conftest.err
8522        } && test -s conftest.$ac_objext; then
8523   ac_header_compiler=yes
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528         ac_header_compiler=no
8529 fi
8530
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8533 echo "${ECHO_T}$ac_header_compiler" >&6; }
8534
8535 # Is the header present?
8536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544 #include <$ac_header>
8545 _ACEOF
8546 if { (ac_try="$ac_cpp conftest.$ac_ext"
8547 case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } >/dev/null && {
8559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8560          test ! -s conftest.err
8561        }; then
8562   ac_header_preproc=yes
8563 else
8564   echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567   ac_header_preproc=no
8568 fi
8569
8570 rm -f conftest.err conftest.$ac_ext
8571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8572 echo "${ECHO_T}$ac_header_preproc" >&6; }
8573
8574 # So?  What about this header?
8575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8576   yes:no: )
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8581     ac_header_preproc=yes
8582     ;;
8583   no:yes:* )
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8596
8597     ;;
8598 esac
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   eval "$as_ac_Header=\$ac_header_preproc"
8605 fi
8606 ac_res=`eval echo '${'$as_ac_Header'}'`
8607                { echo "$as_me:$LINENO: result: $ac_res" >&5
8608 echo "${ECHO_T}$ac_res" >&6; }
8609
8610 fi
8611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612   cat >>confdefs.h <<_ACEOF
8613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8614 _ACEOF
8615  HAVE_FT2BUILD_H=1
8616 fi
8617
8618 done
8619
8620 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8621
8622 for ac_header in freetype/freetype.h
8623 do
8624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8626   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 fi
8631 ac_res=`eval echo '${'$as_ac_Header'}'`
8632                { echo "$as_me:$LINENO: result: $ac_res" >&5
8633 echo "${ECHO_T}$ac_res" >&6; }
8634 else
8635   # Is the header compilable?
8636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644 $ac_includes_default
8645 #include <$ac_header>
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8649 case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_compile") 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } && {
8661          test -z "$ac_c_werror_flag" ||
8662          test ! -s conftest.err
8663        } && test -s conftest.$ac_objext; then
8664   ac_header_compiler=yes
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669         ac_header_compiler=no
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8674 echo "${ECHO_T}$ac_header_compiler" >&6; }
8675
8676 # Is the header present?
8677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685 #include <$ac_header>
8686 _ACEOF
8687 if { (ac_try="$ac_cpp conftest.$ac_ext"
8688 case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } >/dev/null && {
8700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8701          test ! -s conftest.err
8702        }; then
8703   ac_header_preproc=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708   ac_header_preproc=no
8709 fi
8710
8711 rm -f conftest.err conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8713 echo "${ECHO_T}$ac_header_preproc" >&6; }
8714
8715 # So?  What about this header?
8716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8717   yes:no: )
8718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8722     ac_header_preproc=yes
8723     ;;
8724   no:yes:* )
8725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8737
8738     ;;
8739 esac
8740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   eval "$as_ac_Header=\$ac_header_preproc"
8746 fi
8747 ac_res=`eval echo '${'$as_ac_Header'}'`
8748                { echo "$as_me:$LINENO: result: $ac_res" >&5
8749 echo "${ECHO_T}$ac_res" >&6; }
8750
8751 fi
8752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753   cat >>confdefs.h <<_ACEOF
8754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 _ACEOF
8756  HAVE_FREETYPE_FREETYPE_H=1
8757 fi
8758
8759 done
8760
8761 fi
8762
8763 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8764         "x${FREETYPE_CONFIG}" '!=' "x";then
8765     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8766         HAVE_FREETYPE=1
8767     fi
8768     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8769         HAVE_FREETYPE=1
8770     fi
8771 fi
8772
8773 if test "x${HAVE_FREETYPE}" = "x1"; then
8774     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8775         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8776     else
8777         LIBS="$LIBS -lfreetype"
8778     fi
8779
8780     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8781         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8782     fi
8783
8784     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8785 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8786
8787     cat > conftest.c << EOF
8788 $HAVE_FT2BUILD_H_DEFINE
8789
8790 #ifdef HAVE_FT2BUILD_H
8791 #include <ft2build.h>
8792 #include FT_FREETYPE_H
8793 #include FT_GLYPH_H
8794 #include FT_SIZES_H
8795 #include FT_SFNT_NAMES_H
8796 #include FT_TRUETYPE_IDS_H
8797 #include FT_OUTLINE_H
8798 #else
8799 #include <freetype/freetype.h>
8800 #include <freetype/ftglyph.h>
8801 #include <freetype/ftsizes.h>
8802 #include <freetype/ftsnames.h>
8803 #include <freetype/ttnameid.h>
8804 #include <freetype/ftoutln.h>
8805 #endif
8806
8807 int main()
8808 {
8809     FT_Library ftlibrary;
8810     FT_Face face;
8811     FT_Error error;
8812     FT_ULong charcode;
8813     FT_UInt gindex;
8814     FT_Glyph glyph;
8815     FT_BBox bbox;
8816     FT_Matrix matrix;
8817     FT_UInt i;
8818     char* name = 0;
8819     char italic, bold;
8820
8821     FT_Init_FreeType(&ftlibrary);
8822     FT_New_Face(ftlibrary, "filename", 0, &face);
8823     i = face->num_glyphs - 1;
8824     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8825     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8826     FT_Get_Postscript_Name(face);
8827     FT_Get_Char_Index(face, 33);
8828     FT_Get_First_Char(face, &i);
8829     FT_Get_Next_Char(face, 33, &i);
8830     if(FT_HAS_GLYPH_NAMES(face)) {
8831         FT_Get_Glyph_Name(face, 33, name, 127);
8832     }
8833     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8834     FT_Get_Glyph(face->glyph, &glyph);
8835     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8836     FT_Done_Glyph(glyph);
8837     FT_Done_Face(face);
8838     FT_Done_FreeType(ftlibrary);
8839     return 0;
8840 }
8841 EOF
8842
8843     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8844     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8845         { echo "$as_me:$LINENO: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6; }
8847         cat >>confdefs.h <<_ACEOF
8848 #define HAVE_FREETYPE 1
8849 _ACEOF
8850
8851         cat >>confdefs.h <<_ACEOF
8852 #define HAVE_FREETYPE_FREETYPE_H 1
8853 _ACEOF
8854
8855         cat >>confdefs.h <<_ACEOF
8856 #define USE_FREETYPE 1
8857 _ACEOF
8858   # for ttf2tp1
8859     else
8860         echo "configure: failed program was:" >&5
8861         cat conftest.c >&5
8862         HAVE_FREETYPE=0
8863         { echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6; }
8865     fi
8866     rm -f conftest*
8867 fi
8868
8869 # if the above didn't work out, reset all changes to the compiler variables.
8870 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8871     CPPFLAGS=$OLDCPPFLAGS
8872     LIBS=$OLDLIBS
8873 fi
8874
8875
8876
8877 OLDCPPFLAGS="${CPPFLAGS}"
8878 OLDLIBS="${LIBS}"
8879
8880 if test -d /usr/include/fontconfig; then
8881     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8882 fi
8883
8884 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8885 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8886 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   ac_check_lib_save_LIBS=$LIBS
8890 LIBS="-lfontconfig  $LIBS"
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h.  */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h.  */
8897
8898 /* Override any GCC internal prototype to avoid an error.
8899    Use char because int might match the return type of a GCC
8900    builtin and then its argument prototype would still apply.  */
8901 #ifdef __cplusplus
8902 extern "C"
8903 #endif
8904 char FcInit ();
8905 int
8906 main ()
8907 {
8908 return FcInit ();
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_link") 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } && {
8927          test -z "$ac_c_werror_flag" ||
8928          test ! -s conftest.err
8929        } && test -s conftest$ac_exeext &&
8930        $as_test_x conftest$ac_exeext; then
8931   ac_cv_lib_fontconfig_FcInit=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936         ac_cv_lib_fontconfig_FcInit=no
8937 fi
8938
8939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940       conftest$ac_exeext conftest.$ac_ext
8941 LIBS=$ac_check_lib_save_LIBS
8942 fi
8943 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8944 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8945 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8946   HAVE_LIB_FONTCONFIG=1
8947 fi
8948
8949
8950 for ac_header in fontconfig.h
8951 do
8952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8954   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 fi
8959 ac_res=`eval echo '${'$as_ac_Header'}'`
8960                { echo "$as_me:$LINENO: result: $ac_res" >&5
8961 echo "${ECHO_T}$ac_res" >&6; }
8962 else
8963   # Is the header compilable?
8964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972 $ac_includes_default
8973 #include <$ac_header>
8974 _ACEOF
8975 rm -f conftest.$ac_objext
8976 if { (ac_try="$ac_compile"
8977 case "(($ac_try" in
8978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979   *) ac_try_echo=$ac_try;;
8980 esac
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982   (eval "$ac_compile") 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } && {
8989          test -z "$ac_c_werror_flag" ||
8990          test ! -s conftest.err
8991        } && test -s conftest.$ac_objext; then
8992   ac_header_compiler=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997         ac_header_compiler=no
8998 fi
8999
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6; }
9003
9004 # Is the header present?
9005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013 #include <$ac_header>
9014 _ACEOF
9015 if { (ac_try="$ac_cpp conftest.$ac_ext"
9016 case "(($ac_try" in
9017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018   *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } >/dev/null && {
9028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9029          test ! -s conftest.err
9030        }; then
9031   ac_header_preproc=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036   ac_header_preproc=no
9037 fi
9038
9039 rm -f conftest.err conftest.$ac_ext
9040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6; }
9042
9043 # So?  What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9045   yes:no: )
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050     ac_header_preproc=yes
9051     ;;
9052   no:yes:* )
9053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9065
9066     ;;
9067 esac
9068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   eval "$as_ac_Header=\$ac_header_preproc"
9074 fi
9075 ac_res=`eval echo '${'$as_ac_Header'}'`
9076                { echo "$as_me:$LINENO: result: $ac_res" >&5
9077 echo "${ECHO_T}$ac_res" >&6; }
9078
9079 fi
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081   cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9084  HAVE_FONTCONFIG_H=1
9085 fi
9086
9087 done
9088
9089
9090 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
9091 if test "x${HAVE_FONTCONFIG_H}" != "x";then
9092     HAVE_FONTCONFIG=1
9093 fi
9094 fi
9095
9096 if test "x${HAVE_FONTCONFIG}" = "x1"; then
9097     LIBS="$LIBS -lfontconfig"
9098 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
9099 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
9100
9101 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
9102     #move freetype library to the end of libraries, otherwise fontconfig
9103     #won't compile.
9104     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
9105 fi
9106
9107 cat > conftest.c << EOF
9108 #include <string.h>
9109 #include <fontconfig.h>
9110
9111 int main()
9112 {
9113     FcPattern *pattern, *match;
9114     FcResult result;
9115     FcChar8 *v;
9116     char*s1="abc",*s2="ABC";
9117     strcasecmp(s1,s2);
9118     FcInit();
9119     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9120     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9121     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9122     FcConfigSubstitute(0, pattern, FcMatchPattern);
9123     FcDefaultSubstitute(pattern);
9124     match = FcFontMatch(0, pattern, &result);
9125     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9126     FcPatternPrint(pattern);
9127     FcPatternDestroy(pattern);
9128     FcPatternDestroy(match);
9129     return 0;
9130 }
9131 EOF
9132
9133     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9134     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9135         { echo "$as_me:$LINENO: result: yes" >&5
9136 echo "${ECHO_T}yes" >&6; }
9137         cat >>confdefs.h <<_ACEOF
9138 #define HAVE_FONTCONFIG 1
9139 _ACEOF
9140
9141     else
9142         echo "configure: failed program was:" >&5
9143         cat conftest.c >&5
9144         HAVE_FONTCONFIG=0
9145         { echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6; }
9147     fi
9148     rm -f conftest*
9149 fi
9150
9151 # if the above didn't work out, reset all changes to the compiler variables.
9152 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
9153     CPPFLAGS=$OLDCPPFLAGS
9154     LIBS=$OLDLIBS
9155 fi
9156
9157
9158 lame_objects=
9159 lame_makefile=
9160 if test "x${DISABLE_LAME}" = "xtrue"; then
9161     echo "*" Disabling lame support...
9162 else
9163     # old lame code at lib/lame
9164     if test -f lib/lame/Makefile.in; then
9165         lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
9166         lame_makefile="lib/lame/Makefile"
9167         CPPFLAGS="$CPPFLAGS -Ilame"
9168         cat >>confdefs.h <<_ACEOF
9169 #define HAVE_LAME 1
9170 _ACEOF
9171
9172     else
9173         if test -d /usr/include/lame; then
9174             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9175         else
9176             if test -d /usr/local/include/lame; then
9177                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9178             fi
9179         fi
9180
9181 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9182 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9183 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lmp3lame  $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194
9195 /* Override any GCC internal prototype to avoid an error.
9196    Use char because int might match the return type of a GCC
9197    builtin and then its argument prototype would still apply.  */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char lame_init ();
9202 int
9203 main ()
9204 {
9205 return lame_init ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214   *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217   (eval "$ac_link") 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } && {
9224          test -z "$ac_c_werror_flag" ||
9225          test ! -s conftest.err
9226        } && test -s conftest$ac_exeext &&
9227        $as_test_x conftest$ac_exeext; then
9228   ac_cv_lib_mp3lame_lame_init=yes
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233         ac_cv_lib_mp3lame_lame_init=no
9234 fi
9235
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237       conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9239 fi
9240 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9241 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9242 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9243   cat >>confdefs.h <<_ACEOF
9244 #define HAVE_LIBMP3LAME 1
9245 _ACEOF
9246
9247   LIBS="-lmp3lame $LIBS"
9248
9249 else
9250   NO_LIBMP3LAME=1
9251 fi
9252
9253
9254 for ac_header in lame.h
9255 do
9256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 fi
9263 ac_res=`eval echo '${'$as_ac_Header'}'`
9264                { echo "$as_me:$LINENO: result: $ac_res" >&5
9265 echo "${ECHO_T}$ac_res" >&6; }
9266 else
9267   # Is the header compilable?
9268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276 $ac_includes_default
9277 #include <$ac_header>
9278 _ACEOF
9279 rm -f conftest.$ac_objext
9280 if { (ac_try="$ac_compile"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_compile") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && {
9293          test -z "$ac_c_werror_flag" ||
9294          test ! -s conftest.err
9295        } && test -s conftest.$ac_objext; then
9296   ac_header_compiler=yes
9297 else
9298   echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301         ac_header_compiler=no
9302 fi
9303
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9306 echo "${ECHO_T}$ac_header_compiler" >&6; }
9307
9308 # Is the header present?
9309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 #include <$ac_header>
9318 _ACEOF
9319 if { (ac_try="$ac_cpp conftest.$ac_ext"
9320 case "(($ac_try" in
9321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322   *) ac_try_echo=$ac_try;;
9323 esac
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } >/dev/null && {
9332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9333          test ! -s conftest.err
9334        }; then
9335   ac_header_preproc=yes
9336 else
9337   echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340   ac_header_preproc=no
9341 fi
9342
9343 rm -f conftest.err conftest.$ac_ext
9344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9345 echo "${ECHO_T}$ac_header_preproc" >&6; }
9346
9347 # So?  What about this header?
9348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9349   yes:no: )
9350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9354     ac_header_preproc=yes
9355     ;;
9356   no:yes:* )
9357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9369
9370     ;;
9371 esac
9372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   eval "$as_ac_Header=\$ac_header_preproc"
9378 fi
9379 ac_res=`eval echo '${'$as_ac_Header'}'`
9380                { echo "$as_me:$LINENO: result: $ac_res" >&5
9381 echo "${ECHO_T}$ac_res" >&6; }
9382
9383 fi
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385   cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388
9389 fi
9390
9391 done
9392
9393         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9394             cat >>confdefs.h <<_ACEOF
9395 #define HAVE_LAME 1
9396 _ACEOF
9397
9398         fi
9399     fi
9400 fi
9401
9402
9403 # ------------------------------------------------------------------
9404
9405
9406
9407 for ac_prog in avifile-config
9408 do
9409   # Extract the first word of "$ac_prog", so it can be a program name with args.
9410 set dummy $ac_prog; ac_word=$2
9411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9413 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   if test -n "$AVIFILE_CONFIG"; then
9417   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9418 else
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9421 do
9422   IFS=$as_save_IFS
9423   test -z "$as_dir" && as_dir=.
9424   for ac_exec_ext in '' $ac_executable_extensions; do
9425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9428     break 2
9429   fi
9430 done
9431 done
9432 IFS=$as_save_IFS
9433
9434 fi
9435 fi
9436 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9437 if test -n "$AVIFILE_CONFIG"; then
9438   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9439 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9440 else
9441   { echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6; }
9443 fi
9444
9445
9446   test -n "$AVIFILE_CONFIG" && break
9447 done
9448
9449
9450 if test "x$AVIFILE_CONFIG" '!=' "x";then
9451     OLDCPPFLAGS="$CPPFLAGS"
9452     # temporarily add avifile paths to CPPFLAGS...
9453     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9454
9455
9456 for ac_header in avifile/version.h version.h
9457 do
9458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 fi
9465 ac_res=`eval echo '${'$as_ac_Header'}'`
9466                { echo "$as_me:$LINENO: result: $ac_res" >&5
9467 echo "${ECHO_T}$ac_res" >&6; }
9468 else
9469   # Is the header compilable?
9470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 $ac_includes_default
9479 #include <$ac_header>
9480 _ACEOF
9481 rm -f conftest.$ac_objext
9482 if { (ac_try="$ac_compile"
9483 case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_compile") 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && {
9495          test -z "$ac_c_werror_flag" ||
9496          test ! -s conftest.err
9497        } && test -s conftest.$ac_objext; then
9498   ac_header_compiler=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503         ac_header_compiler=no
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508 echo "${ECHO_T}$ac_header_compiler" >&6; }
9509
9510 # Is the header present?
9511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 #include <$ac_header>
9520 _ACEOF
9521 if { (ac_try="$ac_cpp conftest.$ac_ext"
9522 case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } >/dev/null && {
9534          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9535          test ! -s conftest.err
9536        }; then
9537   ac_header_preproc=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542   ac_header_preproc=no
9543 fi
9544
9545 rm -f conftest.err conftest.$ac_ext
9546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547 echo "${ECHO_T}$ac_header_preproc" >&6; }
9548
9549 # So?  What about this header?
9550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9551   yes:no: )
9552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556     ac_header_preproc=yes
9557     ;;
9558   no:yes:* )
9559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9571
9572     ;;
9573 esac
9574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577   echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579   eval "$as_ac_Header=\$ac_header_preproc"
9580 fi
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582                { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9584
9585 fi
9586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9587   cat >>confdefs.h <<_ACEOF
9588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9589 _ACEOF
9590
9591 fi
9592
9593 done
9594
9595     # ... and reset
9596     CPPFLAGS="$OLDCPPFLAGS"
9597 fi
9598
9599 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9600 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9601
9602 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9603     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9604 fi
9605 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9606     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9607 fi
9608
9609 cat > conftest.cpp << EOF
9610
9611 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9612 // so we have to introduce them this way
9613 $HAVE_VERSION_H_DEFINE
9614 $HAVE_AVIFILE_VERSION_H_DEFINE
9615
9616 #ifdef HAVE_VERSION_H
9617   #include <version.h>
9618 #endif
9619 #ifdef HAVE_AVIFILE_VERSION_H
9620   #include <avifile/version.h>
9621 #endif
9622
9623 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9624    #include <avifile.h>
9625    #include <aviplay.h>
9626    #include <avm_fourcc.h>
9627    #include <avm_creators.h>
9628    #include <StreamInfo.h>
9629    #define VERSION6
9630 #else
9631    #include <avifile.h>
9632    #include <aviplay.h>
9633    #include <aviutil.h>
9634    #define Width width
9635    #define Height height
9636    #define Data data
9637    #define Bpp bpp
9638 #endif
9639
9640 void test()
9641 {
9642   IAviReadFile* player;
9643   IAviReadStream* astream;
9644   IAviReadStream* vstream;
9645   player = CreateIAviReadFile(0);
9646   astream = player->GetStream(0, AviStream::Audio);
9647   vstream = player->GetStream(0, AviStream::Video);
9648   vstream -> StartStreaming();
9649   astream -> StartStreaming();
9650 #ifndef VERSION6
9651   MainAVIHeader head;
9652   player->GetFileHeader(&head);
9653   head.dwMicroSecPerFrame;
9654   head.dwTotalFrames;
9655   head.dwStreams;
9656   head.dwWidth;
9657   head.dwHeight;
9658   head.dwMicroSecPerFrame;
9659   astream->GetEndPos(),
9660   astream->GetEndTime());
9661   player->StreamCount();
9662 #else
9663   StreamInfo*audioinfo;
9664   StreamInfo*videoinfo;
9665   audioinfo = astream->GetStreamInfo();
9666   videoinfo = vstream->GetStreamInfo();
9667   videoinfo->GetVideoWidth();
9668   videoinfo->GetVideoHeight();
9669   audioinfo->GetAudioSamplesPerSec();
9670   videoinfo->GetFps();
9671 #endif
9672   CImage*img = vstream->GetFrame();
9673   img->ToRGB();
9674   img->Data();
9675   img->Bpp();
9676   img->Width();
9677   img->Height();
9678   WAVEFORMATEX wave;
9679   astream->GetAudioFormatInfo(&wave,0);
9680   uint_t a,b;
9681   astream->ReadFrames(0,0,0,a,b);
9682 }
9683 int main (int argc, char*argv)
9684 {
9685     return 0;
9686 }
9687 EOF
9688
9689 if test "x$AVIFILE_CONFIG" '!=' "x";then
9690     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9691     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9692     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9693     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9694       { echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6; }
9696       AVIFILE=true
9697       export AVIFILE
9698       cat >>confdefs.h <<_ACEOF
9699 #define AVIFILE true
9700 _ACEOF
9701
9702     else
9703       echo "configure: failed program was:" >&5
9704       cat conftest.cpp >&5
9705       { echo "$as_me:$LINENO: result: no" >&5
9706 echo "${ECHO_T}no" >&6; }
9707     fi
9708 else
9709     { echo "$as_me:$LINENO: result: no" >&5
9710 echo "${ECHO_T}no" >&6; }
9711 fi
9712 rm -f conftest*
9713
9714 if test "x${AVIFILE}" = "xtrue"; then
9715     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9716     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9717     cat >>confdefs.h <<_ACEOF
9718 #define HAVE_AVIFILE 1
9719 _ACEOF
9720
9721 fi
9722
9723 if test "x${WIN32}" != "x"; then
9724     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9725     #if test "x${AVIFIL32}" != "x"; then
9726     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9727     #fi
9728     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9729     AVIFIL32=true
9730 fi
9731
9732
9733
9734 # ------------------------------------------------------------------
9735
9736 if test "x${UNCOMPRESS}" = "xgzip"; then
9737     cat >>confdefs.h <<_ACEOF
9738 #define USE_GZIP 1
9739 _ACEOF
9740
9741 fi
9742
9743
9744 # ------------------------------------------------------------------
9745
9746
9747 { echo "$as_me:$LINENO: checking for Python.h" >&5
9748 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9749
9750 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9751     PY_VERSION=unknown
9752 else
9753     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9754         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9755     fi
9756     # iterate through version 2.2 to 2.5
9757     for v in 2 3 4 5; do
9758         # Linux
9759         if test -f "/usr/include/python2.$v/Python.h";then
9760             PY_VERSION=2.$v
9761             PYTHON_LIB="-lpython$PY_VERSION"
9762             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9763                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9764                 HAVE_PYTHON_IMAGING_LIB=1
9765             else
9766                 PYTHON_LIB2="$PYTHON_LIB"
9767             fi
9768             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9769         # Mac OS X
9770         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9771             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9772             PY_VERSION=2.$v
9773             PYTHON_LIB="-framework Python"
9774             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9775                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9776                 HAVE_PYTHON_IMAGING_LIB=1
9777             else
9778                 PYTHON_LIB2="$PYTHON_LIB"
9779             fi
9780             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9781         # Mac OS X [Fink]:
9782         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9783                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9784                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9785                   ")" \
9786                -a -f "/sw/include/python2.$v/Python.h"; then
9787             PY_VERSION=2.$v
9788             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9789             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9790                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9791                 HAVE_PYTHON_IMAGING_LIB=1
9792             else
9793                 PYTHON_LIB2="$PYTHON_LIB"
9794             fi
9795             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9796         fi
9797     done
9798 fi
9799
9800 if test "x$PY_VERSION" "!=" "x"; then
9801     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9802 echo "${ECHO_T}$PY_VERSION" >&6; }
9803     export PYTHON_INCLUDES PYTHON_LIB
9804
9805
9806     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9807 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9808
9809     cat > conftest.c << EOF
9810 #include <Python.h>
9811
9812 int main()
9813 {
9814     int ret;
9815     ret = Py_Main(0, 0);
9816     int x; // check also for gcc 2.95.x incompatibilities
9817     return ret;
9818 }
9819 EOF
9820
9821     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9822     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9823         { echo "$as_me:$LINENO: result: yes" >&5
9824 echo "${ECHO_T}yes" >&6; }
9825         PYTHON_OK=yes
9826     else
9827         echo "configure: failed program was:" >&5
9828         cat conftest.c >&5
9829         { echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6; }
9831     fi
9832     rm -f conftest*
9833     if test "x$PYTHON_OK" = "xyes";then
9834         { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9835 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9836     cat > conftest.c << EOF
9837 #include <Python.h>
9838 #include <Imaging.h>
9839
9840 int main()
9841 {
9842     Py_Main(0, 0);
9843     return 0;
9844 }
9845 EOF
9846         if test "$HAVE_PYTHON_IMAGING_LIB"; then
9847             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9848             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9849                 PYTHON_LIB="${PYTHON_LIB2}"
9850                 cat >>confdefs.h <<_ACEOF
9851 #define HAVE_PYTHON_IMAGING 1
9852 _ACEOF
9853
9854                 HAVE_PYTHON_IMAGING=yes
9855                 export HAVE_PYTHON_IMAGING
9856
9857                 { echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6; }
9859             else
9860                 echo "configure: failed program was:" >&5
9861                 cat conftest.c >&5
9862                 { echo "$as_me:$LINENO: result: no" >&5
9863 echo "${ECHO_T}no" >&6; }
9864             fi
9865         else
9866             echo "(didn't find the Python-Imaging libraries)" >&5
9867             { echo "$as_me:$LINENO: result: no" >&5
9868 echo "${ECHO_T}no" >&6; }
9869         fi
9870     fi
9871     rm -f conftest*
9872 else
9873     { echo "$as_me:$LINENO: result: nope" >&5
9874 echo "${ECHO_T}nope" >&6; }
9875 fi
9876
9877
9878 if test "x$PYTHON_OK" '!=' "xyes";then
9879     echo all install uninstall clean: > lib/python/Makefile
9880     # fail silently- the most users won't have any need for the
9881     # python interface anyway
9882 else
9883     pythonrfxswf="lib/python/Makefile"
9884 fi
9885
9886 # ------------------------------------------------------------------
9887
9888 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9889 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9890
9891 if test "x$ZLIBMISSING" = "xtrue";then
9892     MISSINGLIBS="${MISSINGLIBS} zlib"
9893     DISABLEPNG2SWF=true
9894     PARTIAL=true
9895 fi
9896 if test "x$JPEGLIBMISSING" = "xtrue";then
9897     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9898     DISABLEPDF2SWF=true
9899     DISABLEJPEG2SWF=true
9900     PARTIAL=true
9901 fi
9902 #if test "x$T1LIBMISSING" = "xtrue";then
9903 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
9904 #fi
9905 if test "x$UNGIFMISSING" = "xtrue";then
9906     DISABLEGIF2SWF=true
9907     MISSINGLIBS="${MISSINGLIBS} ungif"
9908     PARTIAL=true
9909 fi
9910
9911 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9912     DISABLEPDF2SWF=true;
9913     DISABLEJPEG2SWF=true;
9914     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9915     PARTIAL=true
9916 fi
9917 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9918     DISABLEPDF2SWF=true;
9919     MISSINGLIBS="${MISSINGLIBS} freetype"
9920     PARTIAL=true
9921 fi
9922 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9923 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9924 #fi
9925 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9926     DISABLEGIF2SWF=true
9927     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9928     PARTIAL=true
9929 fi
9930 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9931     DISABLEPNG2SWF=true;
9932     MISSINGLIBS="${MISSINGLIBS} zlib.h"
9933     PARTIAL=true
9934 fi
9935 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9936 #    MISSINGLIBS="${MISSINGLIBS} avifile"
9937 #fi
9938
9939 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9940 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9941
9942 # ------------------------------------------------------------------
9943
9944 if test "x${MISSINGLIBS}" '!=' "x"; then
9945   echo "***************************************************"
9946   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9947 fi
9948
9949 avi2swf="avi2swf/Makefile"
9950 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9951  #don't whine, avi2swf is outdated anyway
9952  #echo "* Disabling avi2swf tool..."
9953  echo all install uninstall clean: > avi2swf/Makefile
9954  avi2swf=
9955 fi
9956
9957 pdf2swf_makefile="lib/pdf/Makefile"
9958 PDF2SWF='pdf2swf$(E)'
9959 LIBPDF='libpdf$(A)'
9960
9961 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9962   echo "* Disabling pdf2swf tool..."
9963   rm -f lib/pdf/Makefile
9964   echo all install uninstall clean: > lib/pdf/Makefile
9965   pdf2swf_makefile=""
9966   PDF2SWF=
9967   LIBPDF=
9968 fi
9969
9970
9971
9972 if test "x${ZLIBMISSING}" = "xtrue"; then
9973   echo
9974   echo "* Warning! Without zlib, you will not be able to read"
9975   echo "* or write compressed Flash MX files!"
9976 fi
9977
9978 JPEG2SWF='jpeg2swf$(E)'
9979 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9980   echo "* Disabling jpeg2swf tool..."
9981   JPEG2SWF=
9982 fi
9983 export JPEG2SWF
9984
9985
9986 GIF2SWF='gif2swf$(E)'
9987 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9988   echo "* Disabling gif2swf tool..."
9989   GIF2SWF=
9990 fi
9991 export GIF2SWF
9992
9993
9994 PNG2SWF='png2swf$(E)'
9995 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9996   echo "* Disabling png2swf tool..."
9997   PNG2SWF=
9998 fi
9999 export PNG2SWF
10000
10001
10002 if test "x${MISSINGLIBS}" '!=' "x"; then
10003   if test "x${PARTIAL}" '=' "x"; then
10004     echo "* (never mind)"
10005   fi
10006   echo "***************************************************"
10007 fi
10008
10009 # ------------------------------------------------------------------
10010
10011 if test -f "release.in"; then release_in="./release"; fi
10012 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
10013 FILES="$release_in $wx_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/swf/Makefile"
10014 ac_config_files="$ac_config_files ${FILES}"
10015
10016 cat >confcache <<\_ACEOF
10017 # This file is a shell script that caches the results of configure
10018 # tests run on this system so they can be shared between configure
10019 # scripts and configure runs, see configure's option --config-cache.
10020 # It is not useful on other systems.  If it contains results you don't
10021 # want to keep, you may remove or edit it.
10022 #
10023 # config.status only pays attention to the cache file if you give it
10024 # the --recheck option to rerun configure.
10025 #
10026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10028 # following values.
10029
10030 _ACEOF
10031
10032 # The following way of writing the cache mishandles newlines in values,
10033 # but we know of no workaround that is simple, portable, and efficient.
10034 # So, we kill variables containing newlines.
10035 # Ultrix sh set writes to stderr and can't be redirected directly,
10036 # and sets the high bit in the cache file unless we assign to the vars.
10037 (
10038   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10039     eval ac_val=\$$ac_var
10040     case $ac_val in #(
10041     *${as_nl}*)
10042       case $ac_var in #(
10043       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10044 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10045       esac
10046       case $ac_var in #(
10047       _ | IFS | as_nl) ;; #(
10048       *) $as_unset $ac_var ;;
10049       esac ;;
10050     esac
10051   done
10052
10053   (set) 2>&1 |
10054     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10055     *${as_nl}ac_space=\ *)
10056       # `set' does not quote correctly, so add quotes (double-quote
10057       # substitution turns \\\\ into \\, and sed turns \\ into \).
10058       sed -n \
10059         "s/'/'\\\\''/g;
10060           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10061       ;; #(
10062     *)
10063       # `set' quotes correctly as required by POSIX, so do not add quotes.
10064       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10065       ;;
10066     esac |
10067     sort
10068 ) |
10069   sed '
10070      /^ac_cv_env_/b end
10071      t clear
10072      :clear
10073      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10074      t end
10075      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10076      :end' >>confcache
10077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10078   if test -w "$cache_file"; then
10079     test "x$cache_file" != "x/dev/null" &&
10080       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10081 echo "$as_me: updating cache $cache_file" >&6;}
10082     cat confcache >$cache_file
10083   else
10084     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10085 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10086   fi
10087 fi
10088 rm -f confcache
10089
10090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10091 # Let make expand exec_prefix.
10092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10093
10094 DEFS=-DHAVE_CONFIG_H
10095
10096 ac_libobjs=
10097 ac_ltlibobjs=
10098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10099   # 1. Remove the extension, and $U if already installed.
10100   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10101   ac_i=`echo "$ac_i" | sed "$ac_script"`
10102   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10103   #    will be set to the directory where LIBOBJS objects are built.
10104   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10105   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10106 done
10107 LIBOBJS=$ac_libobjs
10108
10109 LTLIBOBJS=$ac_ltlibobjs
10110
10111
10112
10113 : ${CONFIG_STATUS=./config.status}
10114 ac_clean_files_save=$ac_clean_files
10115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10116 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10117 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10118 cat >$CONFIG_STATUS <<_ACEOF
10119 #! $SHELL
10120 # Generated by $as_me.
10121 # Run this file to recreate the current configuration.
10122 # Compiler output produced by configure, useful for debugging
10123 # configure, is in config.log if it exists.
10124
10125 debug=false
10126 ac_cs_recheck=false
10127 ac_cs_silent=false
10128 SHELL=\${CONFIG_SHELL-$SHELL}
10129 _ACEOF
10130
10131 cat >>$CONFIG_STATUS <<\_ACEOF
10132 ## --------------------- ##
10133 ## M4sh Initialization.  ##
10134 ## --------------------- ##
10135
10136 # Be more Bourne compatible
10137 DUALCASE=1; export DUALCASE # for MKS sh
10138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10139   emulate sh
10140   NULLCMD=:
10141   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10142   # is contrary to our usage.  Disable this feature.
10143   alias -g '${1+"$@"}'='"$@"'
10144   setopt NO_GLOB_SUBST
10145 else
10146   case `(set -o) 2>/dev/null` in
10147   *posix*) set -o posix ;;
10148 esac
10149
10150 fi
10151
10152
10153
10154
10155 # PATH needs CR
10156 # Avoid depending upon Character Ranges.
10157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10160 as_cr_digits='0123456789'
10161 as_cr_alnum=$as_cr_Letters$as_cr_digits
10162
10163 # The user is always right.
10164 if test "${PATH_SEPARATOR+set}" != set; then
10165   echo "#! /bin/sh" >conf$$.sh
10166   echo  "exit 0"   >>conf$$.sh
10167   chmod +x conf$$.sh
10168   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10169     PATH_SEPARATOR=';'
10170   else
10171     PATH_SEPARATOR=:
10172   fi
10173   rm -f conf$$.sh
10174 fi
10175
10176 # Support unset when possible.
10177 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10178   as_unset=unset
10179 else
10180   as_unset=false
10181 fi
10182
10183
10184 # IFS
10185 # We need space, tab and new line, in precisely that order.  Quoting is
10186 # there to prevent editors from complaining about space-tab.
10187 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10188 # splitting by setting IFS to empty value.)
10189 as_nl='
10190 '
10191 IFS=" ""        $as_nl"
10192
10193 # Find who we are.  Look in the path if we contain no directory separator.
10194 case $0 in
10195   *[\\/]* ) as_myself=$0 ;;
10196   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199   IFS=$as_save_IFS
10200   test -z "$as_dir" && as_dir=.
10201   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10202 done
10203 IFS=$as_save_IFS
10204
10205      ;;
10206 esac
10207 # We did not find ourselves, most probably we were run as `sh COMMAND'
10208 # in which case we are not to be found in the path.
10209 if test "x$as_myself" = x; then
10210   as_myself=$0
10211 fi
10212 if test ! -f "$as_myself"; then
10213   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10214   { (exit 1); exit 1; }
10215 fi
10216
10217 # Work around bugs in pre-3.0 UWIN ksh.
10218 for as_var in ENV MAIL MAILPATH
10219 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10220 done
10221 PS1='$ '
10222 PS2='> '
10223 PS4='+ '
10224
10225 # NLS nuisances.
10226 for as_var in \
10227   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10228   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10229   LC_TELEPHONE LC_TIME
10230 do
10231   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10232     eval $as_var=C; export $as_var
10233   else
10234     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10235   fi
10236 done
10237
10238 # Required to use basename.
10239 if expr a : '\(a\)' >/dev/null 2>&1 &&
10240    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10241   as_expr=expr
10242 else
10243   as_expr=false
10244 fi
10245
10246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10247   as_basename=basename
10248 else
10249   as_basename=false
10250 fi
10251
10252
10253 # Name of the executable.
10254 as_me=`$as_basename -- "$0" ||
10255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10256          X"$0" : 'X\(//\)$' \| \
10257          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10258 echo X/"$0" |
10259     sed '/^.*\/\([^/][^/]*\)\/*$/{
10260             s//\1/
10261             q
10262           }
10263           /^X\/\(\/\/\)$/{
10264             s//\1/
10265             q
10266           }
10267           /^X\/\(\/\).*/{
10268             s//\1/
10269             q
10270           }
10271           s/.*/./; q'`
10272
10273 # CDPATH.
10274 $as_unset CDPATH
10275
10276
10277
10278   as_lineno_1=$LINENO
10279   as_lineno_2=$LINENO
10280   test "x$as_lineno_1" != "x$as_lineno_2" &&
10281   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10282
10283   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10284   # uniformly replaced by the line number.  The first 'sed' inserts a
10285   # line-number line after each line using $LINENO; the second 'sed'
10286   # does the real work.  The second script uses 'N' to pair each
10287   # line-number line with the line containing $LINENO, and appends
10288   # trailing '-' during substitution so that $LINENO is not a special
10289   # case at line end.
10290   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10291   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10292   # E. McMahon (1931-1989) for sed's syntax.  :-)
10293   sed -n '
10294     p
10295     /[$]LINENO/=
10296   ' <$as_myself |
10297     sed '
10298       s/[$]LINENO.*/&-/
10299       t lineno
10300       b
10301       :lineno
10302       N
10303       :loop
10304       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10305       t loop
10306       s/-\n.*//
10307     ' >$as_me.lineno &&
10308   chmod +x "$as_me.lineno" ||
10309     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10310    { (exit 1); exit 1; }; }
10311
10312   # Don't try to exec as it changes $[0], causing all sort of problems
10313   # (the dirname of $[0] is not the place where we might find the
10314   # original and so on.  Autoconf is especially sensitive to this).
10315   . "./$as_me.lineno"
10316   # Exit status is that of the last command.
10317   exit
10318 }
10319
10320
10321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10322   as_dirname=dirname
10323 else
10324   as_dirname=false
10325 fi
10326
10327 ECHO_C= ECHO_N= ECHO_T=
10328 case `echo -n x` in
10329 -n*)
10330   case `echo 'x\c'` in
10331   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10332   *)   ECHO_C='\c';;
10333   esac;;
10334 *)
10335   ECHO_N='-n';;
10336 esac
10337
10338 if expr a : '\(a\)' >/dev/null 2>&1 &&
10339    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10340   as_expr=expr
10341 else
10342   as_expr=false
10343 fi
10344
10345 rm -f conf$$ conf$$.exe conf$$.file
10346 if test -d conf$$.dir; then
10347   rm -f conf$$.dir/conf$$.file
10348 else
10349   rm -f conf$$.dir
10350   mkdir conf$$.dir
10351 fi
10352 echo >conf$$.file
10353 if ln -s conf$$.file conf$$ 2>/dev/null; then
10354   as_ln_s='ln -s'
10355   # ... but there are two gotchas:
10356   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10357   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10358   # In both cases, we have to default to `cp -p'.
10359   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10360     as_ln_s='cp -p'
10361 elif ln conf$$.file conf$$ 2>/dev/null; then
10362   as_ln_s=ln
10363 else
10364   as_ln_s='cp -p'
10365 fi
10366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10367 rmdir conf$$.dir 2>/dev/null
10368
10369 if mkdir -p . 2>/dev/null; then
10370   as_mkdir_p=:
10371 else
10372   test -d ./-p && rmdir ./-p
10373   as_mkdir_p=false
10374 fi
10375
10376 if test -x / >/dev/null 2>&1; then
10377   as_test_x='test -x'
10378 else
10379   if ls -dL / >/dev/null 2>&1; then
10380     as_ls_L_option=L
10381   else
10382     as_ls_L_option=
10383   fi
10384   as_test_x='
10385     eval sh -c '\''
10386       if test -d "$1"; then
10387         test -d "$1/.";
10388       else
10389         case $1 in
10390         -*)set "./$1";;
10391         esac;
10392         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10393         ???[sx]*):;;*)false;;esac;fi
10394     '\'' sh
10395   '
10396 fi
10397 as_executable_p=$as_test_x
10398
10399 # Sed expression to map a string onto a valid CPP name.
10400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10401
10402 # Sed expression to map a string onto a valid variable name.
10403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10404
10405
10406 exec 6>&1
10407
10408 # Save the log message, to keep $[0] and so on meaningful, and to
10409 # report actual input values of CONFIG_FILES etc. instead of their
10410 # values after options handling.
10411 ac_log="
10412 This file was extended by $as_me, which was
10413 generated by GNU Autoconf 2.61.  Invocation command line was
10414
10415   CONFIG_FILES    = $CONFIG_FILES
10416   CONFIG_HEADERS  = $CONFIG_HEADERS
10417   CONFIG_LINKS    = $CONFIG_LINKS
10418   CONFIG_COMMANDS = $CONFIG_COMMANDS
10419   $ $0 $@
10420
10421 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10422 "
10423
10424 _ACEOF
10425
10426 cat >>$CONFIG_STATUS <<_ACEOF
10427 # Files that config.status was made for.
10428 config_files="$ac_config_files"
10429 config_headers="$ac_config_headers"
10430
10431 _ACEOF
10432
10433 cat >>$CONFIG_STATUS <<\_ACEOF
10434 ac_cs_usage="\
10435 \`$as_me' instantiates files from templates according to the
10436 current configuration.
10437
10438 Usage: $0 [OPTIONS] [FILE]...
10439
10440   -h, --help       print this help, then exit
10441   -V, --version    print version number and configuration settings, then exit
10442   -q, --quiet      do not print progress messages
10443   -d, --debug      don't remove temporary files
10444       --recheck    update $as_me by reconfiguring in the same conditions
10445   --file=FILE[:TEMPLATE]
10446                    instantiate the configuration file FILE
10447   --header=FILE[:TEMPLATE]
10448                    instantiate the configuration header FILE
10449
10450 Configuration files:
10451 $config_files
10452
10453 Configuration headers:
10454 $config_headers
10455
10456 Report bugs to <bug-autoconf@gnu.org>."
10457
10458 _ACEOF
10459 cat >>$CONFIG_STATUS <<_ACEOF
10460 ac_cs_version="\\
10461 config.status
10462 configured by $0, generated by GNU Autoconf 2.61,
10463   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10464
10465 Copyright (C) 2006 Free Software Foundation, Inc.
10466 This config.status script is free software; the Free Software Foundation
10467 gives unlimited permission to copy, distribute and modify it."
10468
10469 ac_pwd='$ac_pwd'
10470 srcdir='$srcdir'
10471 INSTALL='$INSTALL'
10472 _ACEOF
10473
10474 cat >>$CONFIG_STATUS <<\_ACEOF
10475 # If no file are specified by the user, then we need to provide default
10476 # value.  By we need to know if files were specified by the user.
10477 ac_need_defaults=:
10478 while test $# != 0
10479 do
10480   case $1 in
10481   --*=*)
10482     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10483     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10484     ac_shift=:
10485     ;;
10486   *)
10487     ac_option=$1
10488     ac_optarg=$2
10489     ac_shift=shift
10490     ;;
10491   esac
10492
10493   case $ac_option in
10494   # Handling of the options.
10495   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10496     ac_cs_recheck=: ;;
10497   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10498     echo "$ac_cs_version"; exit ;;
10499   --debug | --debu | --deb | --de | --d | -d )
10500     debug=: ;;
10501   --file | --fil | --fi | --f )
10502     $ac_shift
10503     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10504     ac_need_defaults=false;;
10505   --header | --heade | --head | --hea )
10506     $ac_shift
10507     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10508     ac_need_defaults=false;;
10509   --he | --h)
10510     # Conflict between --help and --header
10511     { echo "$as_me: error: ambiguous option: $1
10512 Try \`$0 --help' for more information." >&2
10513    { (exit 1); exit 1; }; };;
10514   --help | --hel | -h )
10515     echo "$ac_cs_usage"; exit ;;
10516   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10517   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10518     ac_cs_silent=: ;;
10519
10520   # This is an error.
10521   -*) { echo "$as_me: error: unrecognized option: $1
10522 Try \`$0 --help' for more information." >&2
10523    { (exit 1); exit 1; }; } ;;
10524
10525   *) ac_config_targets="$ac_config_targets $1"
10526      ac_need_defaults=false ;;
10527
10528   esac
10529   shift
10530 done
10531
10532 ac_configure_extra_args=
10533
10534 if $ac_cs_silent; then
10535   exec 6>/dev/null
10536   ac_configure_extra_args="$ac_configure_extra_args --silent"
10537 fi
10538
10539 _ACEOF
10540 cat >>$CONFIG_STATUS <<_ACEOF
10541 if \$ac_cs_recheck; then
10542   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10543   CONFIG_SHELL=$SHELL
10544   export CONFIG_SHELL
10545   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10546 fi
10547
10548 _ACEOF
10549 cat >>$CONFIG_STATUS <<\_ACEOF
10550 exec 5>>config.log
10551 {
10552   echo
10553   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10554 ## Running $as_me. ##
10555 _ASBOX
10556   echo "$ac_log"
10557 } >&5
10558
10559 _ACEOF
10560 cat >>$CONFIG_STATUS <<_ACEOF
10561 _ACEOF
10562
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10564
10565 # Handling of arguments.
10566 for ac_config_target in $ac_config_targets
10567 do
10568   case $ac_config_target in
10569     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10570     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10571
10572   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10573 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10574    { (exit 1); exit 1; }; };;
10575   esac
10576 done
10577
10578
10579 # If the user did not use the arguments to specify the items to instantiate,
10580 # then the envvar interface is used.  Set only those that are not.
10581 # We use the long form for the default assignment because of an extremely
10582 # bizarre bug on SunOS 4.1.3.
10583 if $ac_need_defaults; then
10584   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10585   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10586 fi
10587
10588 # Have a temporary directory for convenience.  Make it in the build tree
10589 # simply because there is no reason against having it here, and in addition,
10590 # creating and moving files from /tmp can sometimes cause problems.
10591 # Hook for its removal unless debugging.
10592 # Note that there is a small window in which the directory will not be cleaned:
10593 # after its creation but before its name has been assigned to `$tmp'.
10594 $debug ||
10595 {
10596   tmp=
10597   trap 'exit_status=$?
10598   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10599 ' 0
10600   trap '{ (exit 1); exit 1; }' 1 2 13 15
10601 }
10602 # Create a (secure) tmp directory for tmp files.
10603
10604 {
10605   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10606   test -n "$tmp" && test -d "$tmp"
10607 }  ||
10608 {
10609   tmp=./conf$$-$RANDOM
10610   (umask 077 && mkdir "$tmp")
10611 } ||
10612 {
10613    echo "$me: cannot create a temporary directory in ." >&2
10614    { (exit 1); exit 1; }
10615 }
10616
10617 #
10618 # Set up the sed scripts for CONFIG_FILES section.
10619 #
10620
10621 # No need to generate the scripts if there are no CONFIG_FILES.
10622 # This happens for instance when ./config.status config.h
10623 if test -n "$CONFIG_FILES"; then
10624
10625 _ACEOF
10626
10627
10628
10629 ac_delim='%!_!# '
10630 for ac_last_try in false false false false false :; do
10631   cat >conf$$subs.sed <<_ACEOF
10632 SHELL!$SHELL$ac_delim
10633 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10634 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10635 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10636 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10637 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10638 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10639 exec_prefix!$exec_prefix$ac_delim
10640 prefix!$prefix$ac_delim
10641 program_transform_name!$program_transform_name$ac_delim
10642 bindir!$bindir$ac_delim
10643 sbindir!$sbindir$ac_delim
10644 libexecdir!$libexecdir$ac_delim
10645 datarootdir!$datarootdir$ac_delim
10646 datadir!$datadir$ac_delim
10647 sysconfdir!$sysconfdir$ac_delim
10648 sharedstatedir!$sharedstatedir$ac_delim
10649 localstatedir!$localstatedir$ac_delim
10650 includedir!$includedir$ac_delim
10651 oldincludedir!$oldincludedir$ac_delim
10652 docdir!$docdir$ac_delim
10653 infodir!$infodir$ac_delim
10654 htmldir!$htmldir$ac_delim
10655 dvidir!$dvidir$ac_delim
10656 pdfdir!$pdfdir$ac_delim
10657 psdir!$psdir$ac_delim
10658 libdir!$libdir$ac_delim
10659 localedir!$localedir$ac_delim
10660 mandir!$mandir$ac_delim
10661 DEFS!$DEFS$ac_delim
10662 ECHO_C!$ECHO_C$ac_delim
10663 ECHO_N!$ECHO_N$ac_delim
10664 ECHO_T!$ECHO_T$ac_delim
10665 LIBS!$LIBS$ac_delim
10666 build_alias!$build_alias$ac_delim
10667 host_alias!$host_alias$ac_delim
10668 target_alias!$target_alias$ac_delim
10669 build!$build$ac_delim
10670 build_cpu!$build_cpu$ac_delim
10671 build_vendor!$build_vendor$ac_delim
10672 build_os!$build_os$ac_delim
10673 host!$host$ac_delim
10674 host_cpu!$host_cpu$ac_delim
10675 host_vendor!$host_vendor$ac_delim
10676 host_os!$host_os$ac_delim
10677 SHARED!$SHARED$ac_delim
10678 CC!$CC$ac_delim
10679 CFLAGS!$CFLAGS$ac_delim
10680 LDFLAGS!$LDFLAGS$ac_delim
10681 CPPFLAGS!$CPPFLAGS$ac_delim
10682 ac_ct_CC!$ac_ct_CC$ac_delim
10683 EXEEXT!$EXEEXT$ac_delim
10684 OBJEXT!$OBJEXT$ac_delim
10685 CXX!$CXX$ac_delim
10686 CXXFLAGS!$CXXFLAGS$ac_delim
10687 ac_ct_CXX!$ac_ct_CXX$ac_delim
10688 CPP!$CPP$ac_delim
10689 RANLIB!$RANLIB$ac_delim
10690 SET_MAKE!$SET_MAKE$ac_delim
10691 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10692 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10693 INSTALL_DATA!$INSTALL_DATA$ac_delim
10694 LN_S!$LN_S$ac_delim
10695 UNCOMPRESS!$UNCOMPRESS$ac_delim
10696 AREXT!$AREXT$ac_delim
10697 AR!$AR$ac_delim
10698 SLEXT!$SLEXT$ac_delim
10699 CXXLIBS!$CXXLIBS$ac_delim
10700 STRIP!$STRIP$ac_delim
10701 target!$target$ac_delim
10702 target_cpu!$target_cpu$ac_delim
10703 target_vendor!$target_vendor$ac_delim
10704 target_os!$target_os$ac_delim
10705 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10706 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10707 GREP!$GREP$ac_delim
10708 EGREP!$EGREP$ac_delim
10709 PACKAGE!$PACKAGE$ac_delim
10710 VERSION!$VERSION$ac_delim
10711 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10712 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10713 lame_objects!$lame_objects$ac_delim
10714 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10715 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10716 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10717 USE_GZIP!$USE_GZIP$ac_delim
10718 PYTHON_LIB!$PYTHON_LIB$ac_delim
10719 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10720 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10721 PDF2SWF!$PDF2SWF$ac_delim
10722 LIBPDF!$LIBPDF$ac_delim
10723 JPEG2SWF!$JPEG2SWF$ac_delim
10724 GIF2SWF!$GIF2SWF$ac_delim
10725 PNG2SWF!$PNG2SWF$ac_delim
10726 LIBOBJS!$LIBOBJS$ac_delim
10727 LTLIBOBJS!$LTLIBOBJS$ac_delim
10728 _ACEOF
10729
10730   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
10731     break
10732   elif $ac_last_try; then
10733     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10734 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10735    { (exit 1); exit 1; }; }
10736   else
10737     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10738   fi
10739 done
10740
10741 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10742 if test -n "$ac_eof"; then
10743   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10744   ac_eof=`expr $ac_eof + 1`
10745 fi
10746
10747 cat >>$CONFIG_STATUS <<_ACEOF
10748 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10750 _ACEOF
10751 sed '
10752 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10753 s/^/s,@/; s/!/@,|#_!!_#|/
10754 :n
10755 t n
10756 s/'"$ac_delim"'$/,g/; t
10757 s/$/\\/; p
10758 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10759 ' >>$CONFIG_STATUS <conf$$subs.sed
10760 rm -f conf$$subs.sed
10761 cat >>$CONFIG_STATUS <<_ACEOF
10762 CEOF$ac_eof
10763 _ACEOF
10764
10765
10766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10768 # trailing colons and then remove the whole line if VPATH becomes empty
10769 # (actually we leave an empty line to preserve line numbers).
10770 if test "x$srcdir" = x.; then
10771   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10772 s/:*\$(srcdir):*/:/
10773 s/:*\${srcdir}:*/:/
10774 s/:*@srcdir@:*/:/
10775 s/^\([^=]*=[     ]*\):*/\1/
10776 s/:*$//
10777 s/^[^=]*=[       ]*$//
10778 }'
10779 fi
10780
10781 cat >>$CONFIG_STATUS <<\_ACEOF
10782 fi # test -n "$CONFIG_FILES"
10783
10784
10785 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10786 do
10787   case $ac_tag in
10788   :[FHLC]) ac_mode=$ac_tag; continue;;
10789   esac
10790   case $ac_mode$ac_tag in
10791   :[FHL]*:*);;
10792   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10793 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10794    { (exit 1); exit 1; }; };;
10795   :[FH]-) ac_tag=-:-;;
10796   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10797   esac
10798   ac_save_IFS=$IFS
10799   IFS=:
10800   set x $ac_tag
10801   IFS=$ac_save_IFS
10802   shift
10803   ac_file=$1
10804   shift
10805
10806   case $ac_mode in
10807   :L) ac_source=$1;;
10808   :[FH])
10809     ac_file_inputs=
10810     for ac_f
10811     do
10812       case $ac_f in
10813       -) ac_f="$tmp/stdin";;
10814       *) # Look for the file first in the build tree, then in the source tree
10815          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10816          # because $ac_f cannot contain `:'.
10817          test -f "$ac_f" ||
10818            case $ac_f in
10819            [\\/$]*) false;;
10820            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10821            esac ||
10822            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10823 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10824    { (exit 1); exit 1; }; };;
10825       esac
10826       ac_file_inputs="$ac_file_inputs $ac_f"
10827     done
10828
10829     # Let's still pretend it is `configure' which instantiates (i.e., don't
10830     # use $as_me), people would be surprised to read:
10831     #    /* config.h.  Generated by config.status.  */
10832     configure_input="Generated from "`IFS=:
10833           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10834     if test x"$ac_file" != x-; then
10835       configure_input="$ac_file.  $configure_input"
10836       { echo "$as_me:$LINENO: creating $ac_file" >&5
10837 echo "$as_me: creating $ac_file" >&6;}
10838     fi
10839
10840     case $ac_tag in
10841     *:-:* | *:-) cat >"$tmp/stdin";;
10842     esac
10843     ;;
10844   esac
10845
10846   ac_dir=`$as_dirname -- "$ac_file" ||
10847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10848          X"$ac_file" : 'X\(//\)[^/]' \| \
10849          X"$ac_file" : 'X\(//\)$' \| \
10850          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10851 echo X"$ac_file" |
10852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10853             s//\1/
10854             q
10855           }
10856           /^X\(\/\/\)[^/].*/{
10857             s//\1/
10858             q
10859           }
10860           /^X\(\/\/\)$/{
10861             s//\1/
10862             q
10863           }
10864           /^X\(\/\).*/{
10865             s//\1/
10866             q
10867           }
10868           s/.*/./; q'`
10869   { as_dir="$ac_dir"
10870   case $as_dir in #(
10871   -*) as_dir=./$as_dir;;
10872   esac
10873   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10874     as_dirs=
10875     while :; do
10876       case $as_dir in #(
10877       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10878       *) as_qdir=$as_dir;;
10879       esac
10880       as_dirs="'$as_qdir' $as_dirs"
10881       as_dir=`$as_dirname -- "$as_dir" ||
10882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10883          X"$as_dir" : 'X\(//\)[^/]' \| \
10884          X"$as_dir" : 'X\(//\)$' \| \
10885          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10886 echo X"$as_dir" |
10887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10888             s//\1/
10889             q
10890           }
10891           /^X\(\/\/\)[^/].*/{
10892             s//\1/
10893             q
10894           }
10895           /^X\(\/\/\)$/{
10896             s//\1/
10897             q
10898           }
10899           /^X\(\/\).*/{
10900             s//\1/
10901             q
10902           }
10903           s/.*/./; q'`
10904       test -d "$as_dir" && break
10905     done
10906     test -z "$as_dirs" || eval "mkdir $as_dirs"
10907   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10908 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10909    { (exit 1); exit 1; }; }; }
10910   ac_builddir=.
10911
10912 case "$ac_dir" in
10913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10914 *)
10915   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10916   # A ".." for each directory in $ac_dir_suffix.
10917   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10918   case $ac_top_builddir_sub in
10919   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10920   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10921   esac ;;
10922 esac
10923 ac_abs_top_builddir=$ac_pwd
10924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10925 # for backward compatibility:
10926 ac_top_builddir=$ac_top_build_prefix
10927
10928 case $srcdir in
10929   .)  # We are building in place.
10930     ac_srcdir=.
10931     ac_top_srcdir=$ac_top_builddir_sub
10932     ac_abs_top_srcdir=$ac_pwd ;;
10933   [\\/]* | ?:[\\/]* )  # Absolute name.
10934     ac_srcdir=$srcdir$ac_dir_suffix;
10935     ac_top_srcdir=$srcdir
10936     ac_abs_top_srcdir=$srcdir ;;
10937   *) # Relative name.
10938     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10939     ac_top_srcdir=$ac_top_build_prefix$srcdir
10940     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10941 esac
10942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10943
10944
10945   case $ac_mode in
10946   :F)
10947   #
10948   # CONFIG_FILE
10949   #
10950
10951   case $INSTALL in
10952   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10953   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10954   esac
10955 _ACEOF
10956
10957 cat >>$CONFIG_STATUS <<\_ACEOF
10958 # If the template does not know about datarootdir, expand it.
10959 # FIXME: This hack should be removed a few years after 2.60.
10960 ac_datarootdir_hack=; ac_datarootdir_seen=
10961
10962 case `sed -n '/datarootdir/ {
10963   p
10964   q
10965 }
10966 /@datadir@/p
10967 /@docdir@/p
10968 /@infodir@/p
10969 /@localedir@/p
10970 /@mandir@/p
10971 ' $ac_file_inputs` in
10972 *datarootdir*) ac_datarootdir_seen=yes;;
10973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10974   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10975 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10976 _ACEOF
10977 cat >>$CONFIG_STATUS <<_ACEOF
10978   ac_datarootdir_hack='
10979   s&@datadir@&$datadir&g
10980   s&@docdir@&$docdir&g
10981   s&@infodir@&$infodir&g
10982   s&@localedir@&$localedir&g
10983   s&@mandir@&$mandir&g
10984     s&\\\${datarootdir}&$datarootdir&g' ;;
10985 esac
10986 _ACEOF
10987
10988 # Neutralize VPATH when `$srcdir' = `.'.
10989 # Shell code in configure.ac might set extrasub.
10990 # FIXME: do we really want to maintain this feature?
10991 cat >>$CONFIG_STATUS <<_ACEOF
10992   sed "$ac_vpsub
10993 $extrasub
10994 _ACEOF
10995 cat >>$CONFIG_STATUS <<\_ACEOF
10996 :t
10997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10998 s&@configure_input@&$configure_input&;t t
10999 s&@top_builddir@&$ac_top_builddir_sub&;t t
11000 s&@srcdir@&$ac_srcdir&;t t
11001 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11002 s&@top_srcdir@&$ac_top_srcdir&;t t
11003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11004 s&@builddir@&$ac_builddir&;t t
11005 s&@abs_builddir@&$ac_abs_builddir&;t t
11006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11007 s&@INSTALL@&$ac_INSTALL&;t t
11008 $ac_datarootdir_hack
11009 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
11010
11011 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11012   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11013   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11014   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11015 which seems to be undefined.  Please make sure it is defined." >&5
11016 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11017 which seems to be undefined.  Please make sure it is defined." >&2;}
11018
11019   rm -f "$tmp/stdin"
11020   case $ac_file in
11021   -) cat "$tmp/out"; rm -f "$tmp/out";;
11022   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11023   esac
11024  ;;
11025   :H)
11026   #
11027   # CONFIG_HEADER
11028   #
11029 _ACEOF
11030
11031 # Transform confdefs.h into a sed script `conftest.defines', that
11032 # substitutes the proper values into config.h.in to produce config.h.
11033 rm -f conftest.defines conftest.tail
11034 # First, append a space to every undef/define line, to ease matching.
11035 echo 's/$/ /' >conftest.defines
11036 # Then, protect against being on the right side of a sed subst, or in
11037 # an unquoted here document, in config.status.  If some macros were
11038 # called several times there might be several #defines for the same
11039 # symbol, which is useless.  But do not sort them, since the last
11040 # AC_DEFINE must be honored.
11041 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11042 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11043 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11044 # PARAMS is the parameter list in the macro definition--in most cases, it's
11045 # just an empty string.
11046 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11047 ac_dB='\\)[      (].*,\\1define\\2'
11048 ac_dC=' '
11049 ac_dD=' ,'
11050
11051 uniq confdefs.h |
11052   sed -n '
11053         t rset
11054         :rset
11055         s/^[     ]*#[    ]*define[       ][      ]*//
11056         t ok
11057         d
11058         :ok
11059         s/[\\&,]/\\&/g
11060         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11061         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11062   ' >>conftest.defines
11063
11064 # Remove the space that was appended to ease matching.
11065 # Then replace #undef with comments.  This is necessary, for
11066 # example, in the case of _POSIX_SOURCE, which is predefined and required
11067 # on some systems where configure will not decide to define it.
11068 # (The regexp can be short, since the line contains either #define or #undef.)
11069 echo 's/ $//
11070 s,^[     #]*u.*,/* & */,' >>conftest.defines
11071
11072 # Break up conftest.defines:
11073 ac_max_sed_lines=50
11074
11075 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11076 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11077 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11078 # et cetera.
11079 ac_in='$ac_file_inputs'
11080 ac_out='"$tmp/out1"'
11081 ac_nxt='"$tmp/out2"'
11082
11083 while :
11084 do
11085   # Write a here document:
11086     cat >>$CONFIG_STATUS <<_ACEOF
11087     # First, check the format of the line:
11088     cat >"\$tmp/defines.sed" <<\\CEOF
11089 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11090 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11091 b
11092 :def
11093 _ACEOF
11094   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11095   echo 'CEOF
11096     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11097   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11098   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11099   grep . conftest.tail >/dev/null || break
11100   rm -f conftest.defines
11101   mv conftest.tail conftest.defines
11102 done
11103 rm -f conftest.defines conftest.tail
11104
11105 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11107   if test x"$ac_file" != x-; then
11108     echo "/* $configure_input  */" >"$tmp/config.h"
11109     cat "$ac_result" >>"$tmp/config.h"
11110     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11111       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11112 echo "$as_me: $ac_file is unchanged" >&6;}
11113     else
11114       rm -f $ac_file
11115       mv "$tmp/config.h" $ac_file
11116     fi
11117   else
11118     echo "/* $configure_input  */"
11119     cat "$ac_result"
11120   fi
11121   rm -f "$tmp/out12"
11122  ;;
11123
11124
11125   esac
11126
11127 done # for ac_tag
11128
11129
11130 { (exit 0); exit 0; }
11131 _ACEOF
11132 chmod +x $CONFIG_STATUS
11133 ac_clean_files=$ac_clean_files_save
11134
11135
11136 # configure is writing to config.log, and then calls config.status.
11137 # config.status does its own redirection, appending to config.log.
11138 # Unfortunately, on DOS this fails, as config.log is still kept open
11139 # by configure, so config.status won't be able to write to it; its
11140 # output is simply discarded.  So we exec the FD to /dev/null,
11141 # effectively closing config.log, so it can be properly (re)opened and
11142 # appended to by config.status.  When coming back to configure, we
11143 # need to make the FD available again.
11144 if test "$no_create" != yes; then
11145   ac_cs_success=:
11146   ac_config_status_args=
11147   test "$silent" = yes &&
11148     ac_config_status_args="$ac_config_status_args --quiet"
11149   exec 5>/dev/null
11150   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11151   exec 5>>config.log
11152   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11153   # would make configure fail if this is the last instruction.
11154   $ac_cs_success || { (exit 1); exit 1; }
11155 fi
11156
11157
11158
11159 #
11160 # On development trees, create snapshots of config.status
11161 #
11162 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11163     if test "x${MINGW}" = "xyes"; then
11164         echo cp config.status config.status.win32
11165         cp config.status config.status.win32
11166     else
11167         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11168             echo cp config.status config.status.linux
11169             cp config.status config.status.linux
11170         fi
11171         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11172             echo cp config.status config.status.debug
11173             cp config.status config.status.debug
11174         fi
11175         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11176             echo cp config.status config.status.optimize
11177             cp config.status config.status.optimize
11178         fi
11179     fi
11180 fi